This commit is contained in:
@@ -115,6 +115,11 @@ export interface ToolContext {
|
||||
mcpQuotaState?: { files: number; bytes: number };
|
||||
runIsolatedLlm?: (messages: Message[]) => Promise<string>;
|
||||
spawnSubTask?: (params: { title: string; instruction: string; piece?: string }) => Promise<{ jobId: string; subtaskIndex: number; workspacePath: string }>;
|
||||
/**
|
||||
* WaitSubTask: このジョブに未完了(非 terminal)の子サブタスクが残っているか。
|
||||
* worker が getSubJobs ベースで実装する。未配線(サブタスク非対応経路)なら undefined。
|
||||
*/
|
||||
hasPendingSubtasks?: () => Promise<boolean>;
|
||||
/**
|
||||
* 相 B: 直列・文脈節約型サブエージェント実行。delegate ツールから呼ぶ。
|
||||
* 親ループ内で同期的にサブエージェントを完了まで走らせ最終結果のみ返す。
|
||||
@@ -212,6 +217,12 @@ export interface ToolContext {
|
||||
* for inline approval of the named tool. Read + reset by agent-loop.
|
||||
*/
|
||||
pendingToolApproval?: { toolName: string } | null;
|
||||
/**
|
||||
* Set by WaitSubTask to signal the movement loop to park (waiting_subtasks)
|
||||
* until this job's spawned children finish. Read + reset by agent-loop, which
|
||||
* then resumes the SAME movement. Mirrors pendingToolApproval.
|
||||
*/
|
||||
pendingSubtaskWait?: boolean;
|
||||
/** Per-task option: when true, MCP tools are not loaded/dispatched. */
|
||||
mcpDisabled?: boolean;
|
||||
/** Per-task option: when true, skill index is not injected into the system prompt. */
|
||||
|
||||
Reference in New Issue
Block a user