/** * pi-invoke — resolve the pi CLI invocation command and arguments. * * Detects whether we are running inside a pi process (via process.argv) * or as a standalone npm package, and returns the appropriate * command + arguments to spawn a child pi instance. */ /** * Resolve the command and arguments needed to invoke pi as a child process. * When running inside pi, reuses the current executable and script. * When running standalone, falls back to the `pi` CLI command. */ export declare function getPiInvocation(args: string[]): { command: string; args: string[]; }; /** * Build the standard pi CLI arguments for a subagent in --print mode. * * --print mode produces JSON Lines on stdout where each line is a * structured event (message_end, tool_result_end, etc.). */ export declare function buildSubagentArgs(opts: { task: string; model?: string; tools?: string[]; maxTurns?: number; cwd?: string; systemPromptFile?: string; }): string[]; //# sourceMappingURL=pi-invoke.d.ts.map