sync: update from private repo (c764df2f)
CI / build-and-test (push) Has been cancelled

This commit is contained in:
oss-sync
2026-06-29 01:32:25 +00:00
parent b857c33ef6
commit a6d1879d63
75 changed files with 3874 additions and 334 deletions
+11
View File
@@ -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. */