Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 11 lines 449 Bytes
Raw
1 import { Effect } from 'effect';
2 import { detectMasterFromHost } from 'src/services/master-detector';
3 import { TerminalUI } from 'src/services/terminal-ui';
4
5 /** Prints which agent, if any, drives this process. */
6 export const runDebugWhoIsMyMaster = () =>
7 Effect.gen(function* () {
8 const ui = yield* TerminalUI;
9 const master = yield* detectMasterFromHost;
10 yield* ui.output(JSON.stringify({ master }, null, 2), { force: true });
11 });