import { InlineAgent, InlineAgentSchema } from "@agimon-ai/doompi-core/delegation"; import { Static, Type } from "typebox"; //#region src/schemas/subagentTool.d.ts declare const SUBAGENT_ACTIONS: { readonly agents: 'agents'; readonly run: 'run'; readonly status: 'status'; readonly steer: 'steer'; readonly stop: 'stop'; readonly suspended: 'suspended'; readonly restore: 'restore'; }; type SubagentAction = (typeof SUBAGENT_ACTIONS)[keyof typeof SUBAGENT_ACTIONS]; declare const SUBAGENT_ACTION_FIELDS: { readonly agents: readonly ["action", "name", "cwd", "scope"]; readonly run: readonly ["action", "requests", "concurrency", "artifacts", "scope"]; readonly status: readonly ["action", "id", "transcriptLines"]; readonly steer: readonly ["action", "id", "message"]; readonly stop: readonly ["action", "id", "reason"]; readonly suspended: readonly ["action"]; readonly restore: readonly ["action", "id"]; }; declare function isSubagentAction(value: unknown): value is SubagentAction; declare function subagentActionAcceptsField(action: SubagentAction, field: string): boolean; /** Remove the one legacy field emitted by Doom Plan before strict validation. */ declare function normalizeSubagentToolParams(input: unknown): unknown; declare const SubagentParams: Type.TUnion<[Type.TObject<{ action: Type.TLiteral<"agents">; name: Type.TOptional; cwd: Type.TOptional; scope: Type.TOptional, Type.TLiteral<"project">, Type.TLiteral<"both">]>>; }>, Type.TObject<{ action: Type.TLiteral<"run">; requests: Type.TArray>; task: Type.TString; cwd: Type.TOptional; model: Type.TOptional; runtime: Type.TOptional; }>>; concurrency: Type.TOptional; artifacts: Type.TOptional; scope: Type.TOptional, Type.TLiteral<"project">, Type.TLiteral<"both">]>>; }>, Type.TObject<{ action: Type.TLiteral<"status">; }>, Type.TObject<{ action: Type.TLiteral<"status">; id: Type.TString; transcriptLines: Type.TOptional; }>, Type.TObject<{ action: Type.TLiteral<"steer">; id: Type.TString; message: Type.TString; }>, Type.TObject<{ action: Type.TLiteral<"stop">; id: Type.TString; reason: Type.TOptional; }>, Type.TObject<{ action: Type.TLiteral<"suspended">; }>, Type.TObject<{ action: Type.TLiteral<"restore">; id: Type.TString; }>]>; /** * The schema declared to the model. * * A flat object rather than `SubagentParams` itself. A top-level union is * `{anyOf:[...]}` with no `properties`, and Pi's Anthropic Messages adapter * rebuilds tool input as `{type:'object', properties: schema.properties ?? {}, * required: schema.required ?? []}`, so the union arrived at the model as an * empty object while the host went on validating calls against it. Nothing here * relaxes what is accepted: `validateParams` still rejects an unknown action, a * field the action does not take, and a missing required one. */ declare const SubagentToolSchema: Type.TObject<{ action: Type.TString; name: Type.TOptional; cwd: Type.TOptional; scope: Type.TOptional; requests: Type.TOptional>; task: Type.TString; cwd: Type.TOptional; model: Type.TOptional; runtime: Type.TOptional; }>>>; concurrency: Type.TOptional; artifacts: Type.TOptional; id: Type.TOptional; transcriptLines: Type.TOptional; message: Type.TOptional; reason: Type.TOptional; }>; type SubagentToolParams = Static; //#endregion export { SubagentAction as a, SubagentToolSchema as c, subagentActionAcceptsField as d, SUBAGENT_ACTION_FIELDS as i, isSubagentAction as l, InlineAgentSchema as n, SubagentParams as o, SUBAGENT_ACTIONS as r, SubagentToolParams as s, InlineAgent as t, normalizeSubagentToolParams as u }; //# sourceMappingURL=subagentTool-6prjmrQG.d.mts.map