@frontmcp/sdk 1.9.3 → 1.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/agent/agent-builtin-tools.d.ts +75 -0
  2. package/agent/agent-builtin-tools.d.ts.map +1 -0
  3. package/agent/agent-execution-loop.d.ts +24 -1
  4. package/agent/agent-execution-loop.d.ts.map +1 -1
  5. package/agent/agent.instance.d.ts +15 -9
  6. package/agent/agent.instance.d.ts.map +1 -1
  7. package/agent/agent.scope.d.ts +3 -1
  8. package/agent/agent.scope.d.ts.map +1 -1
  9. package/agent/flows/call-agent.flow.d.ts +3 -1
  10. package/agent/flows/call-agent.flow.d.ts.map +1 -1
  11. package/agent/hooks/agent.hooks.d.ts +4 -4
  12. package/browser/index.cjs +3772 -2974
  13. package/browser/index.mjs +3341 -2544
  14. package/common/dynamic/dynamic.plugin.d.ts +5 -0
  15. package/common/dynamic/dynamic.plugin.d.ts.map +1 -1
  16. package/common/entries/workflow.entry.d.ts +2 -0
  17. package/common/entries/workflow.entry.d.ts.map +1 -1
  18. package/common/interfaces/agent.interface.d.ts +22 -2
  19. package/common/interfaces/agent.interface.d.ts.map +1 -1
  20. package/common/interfaces/execution-context.interface.d.ts +6 -2
  21. package/common/interfaces/execution-context.interface.d.ts.map +1 -1
  22. package/common/interfaces/flow.interface.d.ts +12 -0
  23. package/common/interfaces/flow.interface.d.ts.map +1 -1
  24. package/common/metadata/agent.metadata.d.ts +22 -8
  25. package/common/metadata/agent.metadata.d.ts.map +1 -1
  26. package/common/metadata/app.metadata.d.ts +28 -1
  27. package/common/metadata/app.metadata.d.ts.map +1 -1
  28. package/common/metadata/front-mcp.metadata.d.ts +226 -3
  29. package/common/metadata/front-mcp.metadata.d.ts.map +1 -1
  30. package/common/metadata/ui-serving-mode.d.ts +30 -0
  31. package/common/metadata/ui-serving-mode.d.ts.map +1 -0
  32. package/common/schemas/annotated-class.schema.d.ts +1 -1
  33. package/common/tokens/app.tokens.d.ts.map +1 -1
  34. package/common/tokens/front-mcp.tokens.d.ts.map +1 -1
  35. package/common/types/options/session/interfaces.d.ts +16 -24
  36. package/common/types/options/session/interfaces.d.ts.map +1 -1
  37. package/common/types/options/session/schema.d.ts +29 -0
  38. package/common/types/options/session/schema.d.ts.map +1 -1
  39. package/common/types/options/transport/interfaces.d.ts +29 -16
  40. package/common/types/options/transport/interfaces.d.ts.map +1 -1
  41. package/common/types/options/transport/schema.d.ts +2 -0
  42. package/common/types/options/transport/schema.d.ts.map +1 -1
  43. package/context/frontmcp-context-storage.d.ts +3 -2
  44. package/context/frontmcp-context-storage.d.ts.map +1 -1
  45. package/context/frontmcp-context.d.ts +4 -4
  46. package/direct/client.types.d.ts +10 -0
  47. package/direct/client.types.d.ts.map +1 -1
  48. package/direct/create.d.ts.map +1 -1
  49. package/direct/create.types.d.ts +4 -1
  50. package/direct/create.types.d.ts.map +1 -1
  51. package/direct/direct-server.d.ts +4 -2
  52. package/direct/direct-server.d.ts.map +1 -1
  53. package/direct/direct.types.d.ts +41 -0
  54. package/direct/direct.types.d.ts.map +1 -1
  55. package/direct/index.d.ts +1 -1
  56. package/direct/index.d.ts.map +1 -1
  57. package/errors/error-handler.d.ts.map +1 -1
  58. package/errors/mcp.error.d.ts +6 -0
  59. package/errors/mcp.error.d.ts.map +1 -1
  60. package/esm/index.mjs +3346 -2549
  61. package/flows/flow.instance.d.ts.map +1 -1
  62. package/flows/flow.registry.d.ts.map +1 -1
  63. package/flows/resolved-entries.d.ts +2 -0
  64. package/flows/resolved-entries.d.ts.map +1 -1
  65. package/front-mcp/front-mcp.d.ts +5 -2
  66. package/front-mcp/front-mcp.d.ts.map +1 -1
  67. package/hooks/entry-class-hooks.d.ts +8 -6
  68. package/hooks/entry-class-hooks.d.ts.map +1 -1
  69. package/hooks/hooks.utils.d.ts +12 -2
  70. package/hooks/hooks.utils.d.ts.map +1 -1
  71. package/index.d.ts +13 -5
  72. package/index.d.ts.map +1 -1
  73. package/index.js +3784 -2986
  74. package/job/execution/job-execution.manager.d.ts +12 -4
  75. package/job/execution/job-execution.manager.d.ts.map +1 -1
  76. package/job/flows/execute-job.flow.d.ts +124 -0
  77. package/job/flows/execute-job.flow.d.ts.map +1 -0
  78. package/job/index.d.ts +3 -0
  79. package/job/index.d.ts.map +1 -1
  80. package/job/job-attempt.d.ts +91 -0
  81. package/job/job-attempt.d.ts.map +1 -0
  82. package/job/job-scope.helper.d.ts +3 -0
  83. package/job/job-scope.helper.d.ts.map +1 -1
  84. package/job/job.instance.d.ts.map +1 -1
  85. package/job/job.utils.d.ts +0 -6
  86. package/job/job.utils.d.ts.map +1 -1
  87. package/package.json +10 -10
  88. package/plugin/plugin.registry.d.ts +2 -1
  89. package/plugin/plugin.registry.d.ts.map +1 -1
  90. package/prompt/flows/get-prompt.flow.d.ts +9 -3
  91. package/prompt/flows/get-prompt.flow.d.ts.map +1 -1
  92. package/prompt/flows/prompts-list.flow.d.ts +4 -1
  93. package/prompt/flows/prompts-list.flow.d.ts.map +1 -1
  94. package/resource/flows/read-resource.flow.d.ts +3 -1
  95. package/resource/flows/read-resource.flow.d.ts.map +1 -1
  96. package/scope/scope.instance.d.ts.map +1 -1
  97. package/tool/flows/call-tool.flow.d.ts +3 -1
  98. package/tool/flows/call-tool.flow.d.ts.map +1 -1
  99. package/tool/tool.utils.d.ts +2 -0
  100. package/tool/tool.utils.d.ts.map +1 -1
  101. package/tool/ui/serving-mode-default.d.ts +24 -0
  102. package/tool/ui/serving-mode-default.d.ts.map +1 -0
  103. package/tool/ui/ui-option-warnings.d.ts +8 -0
  104. package/tool/ui/ui-option-warnings.d.ts.map +1 -1
  105. package/transport/in-memory-server.d.ts +6 -0
  106. package/transport/in-memory-server.d.ts.map +1 -1
  107. package/transport/session-mode.check.d.ts +15 -5
  108. package/transport/session-mode.check.d.ts.map +1 -1
  109. package/transport/transport.registry.d.ts +16 -1
  110. package/transport/transport.registry.d.ts.map +1 -1
  111. package/workflow/engine/workflow-step.executor.d.ts +13 -2
  112. package/workflow/engine/workflow-step.executor.d.ts.map +1 -1
  113. package/workflow/engine/workflow.engine.d.ts.map +1 -1
@@ -0,0 +1,75 @@
1
+ import { type GetPromptResult, type ListPromptsResult, type ListResourcesResult, type ListResourceTemplatesResult, type ReadResourceResult } from '@frontmcp/protocol';
2
+ import { type AgentToolDefinition, type ScopeEntry } from '../common';
3
+ /** The names of the built-in tools, as the model calls them. */
4
+ export declare const AGENT_BUILTIN_TOOL_NAMES: {
5
+ readonly listResources: "list_resources";
6
+ readonly readResource: "read_resource";
7
+ readonly listPrompts: "list_prompts";
8
+ readonly getPrompt: "get_prompt";
9
+ };
10
+ export type AgentBuiltinToolName = (typeof AGENT_BUILTIN_TOOL_NAMES)[keyof typeof AGENT_BUILTIN_TOOL_NAMES];
11
+ /** The scope the built-in tools read from: the agent's private scope. */
12
+ export type AgentBuiltinToolScope = Pick<ScopeEntry, 'resources' | 'prompts' | 'runFlowForOutput'>;
13
+ /** What the built-in tools pass to the flows they run, besides the request. */
14
+ export interface AgentBuiltinToolContext {
15
+ /** The auth info of the caller the agent runs for: authorities are evaluated against it. */
16
+ authInfo: unknown;
17
+ }
18
+ /** The definitions the model is sent for each built-in tool. */
19
+ export declare const AGENT_BUILTIN_TOOL_DEFINITIONS: Readonly<Record<AgentBuiltinToolName, AgentToolDefinition>>;
20
+ /**
21
+ * The built-in tools the model is offered for what `scope` holds: the resource tools when it holds a
22
+ * resource or resource template, the prompt tools when it holds a prompt. Entries whose
23
+ * `availableWhen` leaves out the agent surface, or this environment, don't count.
24
+ */
25
+ export declare function offeredAgentBuiltinTools(scope: Pick<AgentBuiltinToolScope, 'resources' | 'prompts'>): AgentBuiltinToolName[];
26
+ /**
27
+ * Run a built-in tool through the flows of `scope`, and return what the model reads: the text of a
28
+ * resource or prompt, or a listing (which the agent loop sends as JSON). A flow's error (an unknown
29
+ * URI or prompt name, a denied authority) is thrown as it is, so the model reads it as the tool's error.
30
+ */
31
+ export declare function runAgentBuiltinTool(scope: AgentBuiltinToolScope, name: AgentBuiltinToolName, args: Record<string, unknown>, context: AgentBuiltinToolContext): Promise<unknown>;
32
+ /** The listing `list_resources` returns: what the model needs to pick a URI. */
33
+ export declare function describeResourceListing(listed: ListResourcesResult, templates: ListResourceTemplatesResult): {
34
+ resources: {
35
+ mimeType?: string | undefined;
36
+ description?: string | undefined;
37
+ title?: string | undefined;
38
+ uri: string;
39
+ name: string;
40
+ }[];
41
+ resourceTemplates: {
42
+ mimeType?: string | undefined;
43
+ description?: string | undefined;
44
+ title?: string | undefined;
45
+ uriTemplate: string;
46
+ name: string;
47
+ }[];
48
+ };
49
+ /** The listing `list_prompts` returns: each prompt with the arguments it takes. */
50
+ export declare function describePromptListing(listed: ListPromptsResult): {
51
+ prompts: {
52
+ arguments?: {
53
+ required?: boolean | undefined;
54
+ description?: string | undefined;
55
+ name: string;
56
+ }[] | undefined;
57
+ description?: string | undefined;
58
+ title?: string | undefined;
59
+ name: string;
60
+ }[];
61
+ };
62
+ /**
63
+ * A resource read as the model reads it. A single text content is its text as it is. Several contents
64
+ * are each headed by their URI (and MIME type). Binary (`blob`) content is never sent to the model: it
65
+ * is replaced by a one-line description with its URI, MIME type and size.
66
+ */
67
+ export declare function resourceContentsToText(result: ReadResourceResult): string;
68
+ /**
69
+ * A prompt as the model reads it: its description, then each message headed by its role. Text is kept
70
+ * as it is, an embedded text resource is inlined, and anything binary (an image, audio, a blob
71
+ * resource) is replaced by a one-line description. A resource link is named by its URI, which
72
+ * `read_resource` can read.
73
+ */
74
+ export declare function promptResultToText(result: GetPromptResult): string;
75
+ //# sourceMappingURL=agent-builtin-tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-builtin-tools.d.ts","sourceRoot":"","sources":["../../src/agent/agent-builtin-tools.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAEhC,KA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;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAGlE"}
@@ -157,14 +157,37 @@ export declare class AgentExecutionLoop {
157
157
  /**
158
158
  * Run the execution loop with streaming.
159
159
  *
160
+ * Yields the model's text as it arrives (`content`), the tool calls it makes and runs
161
+ * (`tool_call`, `tool_start`, `tool_end`), each iteration and its token usage, and finally a `done`
162
+ * event with the same result {@link run} returns, which is also the generator's return value. A run
163
+ * that fails yields `error` and then a `done` event whose result has `success: false`.
164
+ *
165
+ * The model is streamed through the adapter's `streamCompletion()` when it has one, and called
166
+ * through `completion()` otherwise. Tool calls are taken from the completion the stream ends with
167
+ * (its `done` chunk), which holds their complete arguments; the `tool_call` chunks before it only
168
+ * announce them. The whole run is bounded by `timeout`, as {@link run} is.
169
+ *
160
170
  * @param userMessage - The user's input message
161
171
  * @param toolExecutor - Function to execute tools
162
172
  * @param existingMessages - Optional existing conversation history
163
173
  * @returns AsyncGenerator yielding chunks and final result
164
174
  */
165
- runStreaming(userMessage: string, toolExecutor: ToolExecutor, existingMessages?: AgentMessage[]): AsyncGenerator<AgentStreamEvent>;
175
+ runStreaming(userMessage: string, toolExecutor: ToolExecutor, existingMessages?: AgentMessage[]): AsyncGenerator<AgentStreamEvent, AgentExecutionResult>;
176
+ /**
177
+ * `step`, or the run's timeout error when `deadline` passes first. The timer is cleared either way,
178
+ * so a finished run leaves none behind.
179
+ */
180
+ private beforeDeadline;
166
181
  private executeLoop;
167
182
  private executeLoopStreaming;
183
+ /**
184
+ * One reply of the model, streamed: yields its text as it arrives, the tool calls it announces and its
185
+ * usage, and returns the whole completion. The completion the adapter's stream ends with (`done`) is
186
+ * authoritative: it holds the tool calls with their complete arguments, which the `tool_call` chunks
187
+ * announce before they are known. A reply that arrives in one piece (an adapter without
188
+ * `streamCompletion()`, or one whose stream only ends with `done`) yields its text as one chunk.
189
+ */
190
+ private streamCompletion;
168
191
  }
169
192
  /**
170
193
  * Events emitted during streaming execution.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AQ,KAAK;aAG9B,aAAa,EAAE,MAAM;gBADrC,OAAO,EAAE,MAAM,EACC,aAAa,EAAE,MAAM;CAKxC"}
@@ -56,11 +56,12 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
56
56
  constructor(record: AgentRecord, providers: ProviderRegistry, owner: EntryOwnerRef);
57
57
  protected initialize(): Promise<void>;
58
58
  /**
59
- * Options the agent accepts that have no effect yet, logged at startup instead of being dropped
60
- * silently: `execution.enableStreaming`, and resources or prompts nothing reads (the agent's model
61
- * is sent tools only, so its resources and prompts reach nothing unless they are exported).
59
+ * Fail startup when one of the agent's own tools (its `tools`, a plugin's or adapter's tool, a nested
60
+ * agent's `invoke_<agent>` tool) takes the name of a built-in tool its model is offered to read its
61
+ * resources and prompts (`list_resources`, `read_resource`, `list_prompts`, `get_prompt`): the model
62
+ * could not tell them apart.
62
63
  */
63
- private warnAboutUnusedOptions;
64
+ private assertNoBuiltinToolClash;
64
65
  /**
65
66
  * Initialize the agent's private scope.
66
67
  *
@@ -191,13 +192,17 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
191
192
  private buildAgentCtorArgs;
192
193
  /**
193
194
  * The tools this agent's model is offered, each under the name the model calls it by:
194
- * 1. the agent's own tools (`tools`, and its nested agents' `invoke_<agent>` tools), run in its private scope
195
+ * 1. when the agent declares resources, `list_resources` and `read_resource`, and when it declares
196
+ * prompts, `list_prompts` and `get_prompt`: they run through its private scope's resource and prompt
197
+ * flows (see {@link runAgentBuiltinTool});
198
+ * 2. the agent's own tools (`tools`, and its nested agents' `invoke_<agent>` tools), run in its private scope
195
199
  * (a nested agent always through that scope's `tools:call-tool` flow, see {@link createToolExecutor});
196
- * 2. with `swarm.canSeeOtherAgents`, the `invoke_<agent>` tools of the other agents of its scope that it
200
+ * 3. with `swarm.canSeeOtherAgents`, the `invoke_<agent>` tools of the other agents of its scope that it
197
201
  * sees (`swarm.visibleAgents`, and each one's `swarm.isVisible`), run through that scope;
198
- * 3. with `execution.inheritParentTools`, the tools of the scope it is registered in, other than agents,
202
+ * 4. with `execution.inheritParentTools`, the tools of the scope it is registered in, other than agents,
199
203
  * run through that scope.
200
- * A name already taken by an earlier tool is not offered again. Only tools whose `availableWhen.surface`
204
+ * A name already taken by an earlier tool is not offered again (an own tool by a built-in's name fails
205
+ * startup instead, see {@link assertNoBuiltinToolClash}). Only tools whose `availableWhen.surface`
201
206
  * offers them to agents are included.
202
207
  */
203
208
  private getModelTools;
@@ -224,7 +229,8 @@ export declare class AgentInstance<InSchema extends ToolInputType = ToolInputTyp
224
229
  * private scope's call-tool flow: that flow applies the gates a nested agent declares (authorities,
225
230
  * rate limit, concurrency, plugin gates), which the nested agent's `agents:call-agent` flow leaves to
226
231
  * it. Tools of the parent scope (swarm agents, inherited tools) always run through the parent
227
- * scope's call-tool flow, which applies what they declare.
232
+ * scope's call-tool flow, which applies what they declare. The built-in tools that read the agent's
233
+ * resources and prompts always run through its private scope's resource and prompt flows.
228
234
  *
229
235
  * @param ctx - Extra context including authInfo
230
236
  * @param modelTools - The tools the model is offered for this run
@@ -1 +1 @@
1
- {"version":3,"file":"agent.instance.d.ts","sourceRoot":"","sources":["../../src/agent/agent.instance.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,eAAe,EAAyC,KAAK,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAG5G,OAAO,EACL,YAAY,EACZ,UAAU,EAEV,KAAK,aAAa,EAClB,KAAK,cAAc,EAGnB,KAAK,YAAY,EAEjB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EAEf,KAAK,SAAS,EACd,KAAK,aAAa,EAElB,KAAK,cAAc,EACpB,MAAM,WAAW,CAAC;AAiBnB,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAC;AAGvD,OAAO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IAAI;IA+BlC;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAanB,gBAAgB,IAAI,OAAO;IAI3B,WAAW,IAAI,OAAO;IAItB,kBAAkB,IAAI,MAAM,EAAE;CAGxC"}
@@ -33,7 +33,9 @@ export interface AgentScopeOptions {
33
33
  * resources, prompts, and nested agents are private.
34
34
  *
35
35
  * 2. **Flow Integration**: Tool calls route through the standard `tools:call-tool`
36
- * flow, enabling hooks, plugins, authorization, and other flow features.
36
+ * flow, and the model's reads of the agent's resources and prompts through
37
+ * `resources:read-resource` and `prompts:get-prompt` (and their listing flows),
38
+ * enabling hooks, plugins, authorization, and other flow features.
37
39
  *
38
40
  * 3. **Plugin/Adapter Support**: Agent can define its own plugins and adapters
39
41
  * for custom functionality.
@@ -1 +1 @@
1
- {"version":3,"file":"agent.scope.d.ts","sourceRoot":"","sources":["../../src/agent/agent.scope.ts"],"names":[],"mappings":"AAEA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAiB,KAAK,KAAK,EAAE,KAAK,IAAI,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EACL,cAAc,EACd,UAAU,EACV,KAAK,aAAa,EAElB,KAAK,WAAW,EAChB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,YAAY,EAClB,MAAM,WAAW,CAAC;AAGnB,OAAO,YAAY,MAAM,wBAAwB,CAAC;AAClD,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,cAAc,MAAM,2BAA2B,CAAC;AACvD,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAC7D,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAI7D,OAAO,YAAY,MAAM,uBAAuB,CAAC;AAEjD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAG7C,2FAA2F;AAC3F,MAA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ChH,IAAI,yBAAyB,mEAE5B;IAED,6EAA6E;IAC7E,IAAI,uBAAuB,iEAE1B;IAED;;;;;OAKG;IACH,IAAI,gBAAgB,IAAI,YAAY,GAAG,SAAS,CAE/C;IAED,gDAAgD;IAChD,IAAI,iBAAiB,IAAI,YAAY,GAAG,SAAS,CAEhD;IAMK,aAAa,CAAC,GAAG,KAAK,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIxD,OAAO,CAAC,IAAI,SAAS,QAAQ,EAC3B,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,IAAI,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GACtB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAIpC,gBAAgB,CAAC,IAAI,SAAS,QAAQ,EAC1C,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,WAAW,CAAC,IAAI,CAAC,EACxB,IAAI,CAAC,EAAE,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,GACtB,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;CAO/B"}
@@ -1,6 +1,6 @@
1
1
  import { z } from '@frontmcp/lazy-zod';
2
2
  import { type AuthInfo } from '@frontmcp/protocol';
3
- import { AgentContext, AgentEntry, FlowBase, type FlowRunOptions } from '../../common';
3
+ import { AgentContext, AgentEntry, FlowBase, type FlowRunOptions, type ScopeEntry, type Token } from '../../common';
4
4
  import { type EntryClassHooksJoin } from '../../hooks/entry-class-hooks';
5
5
  declare const inputSchema: import("@frontmcp/lazy-zod").ZodObject<{
6
6
  request: import("@frontmcp/lazy-zod").ZodObject<{
@@ -262,6 +262,8 @@ declare const name: "agents:call-agent";
262
262
  /** Where the hooks an agent class declares join a run: they run on the instance 'createAgentContext' builds. */
263
263
  export declare const agentClassHooksJoin: EntryClassHooksJoin;
264
264
  export default class CallAgentFlow extends FlowBase<typeof name> {
265
+ /** The class of the agent the call names, whose `static` hooks run from `parseInput` on (#701). */
266
+ static resolveHookEntryClass(rawInput: unknown, scope: ScopeEntry): Token | undefined;
265
267
  logger: import("../../common").FrontMcpLogger;
266
268
  /** Whether the `invoke_<agent>` tool's flow already applied the agent's gates. */
267
269
  private get gatedByToolFlow();
@@ -1 +1 @@
1
- {"version":3,"file":"call-agent.flow.d.ts","sourceRoot":"","sources":["../../../src/agent/flows/call-agent.flow.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,oBAAoB,CAAC;AACvC,OAAO,EAA+C,KAAK,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAGhG,OAAO,EAEL,YAAY,EACZ,UAAU,EAGV,QAAQ,EAKR,KAAK,cAAc,EACpB,MAAM,cAAc,CAAC;AAWtB,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAUzE,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;gCAWf,CAAC;AAEH,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAuB,CAAC;AAE1C,QAAA,MAAM,WAAW;;;;;cAKiB,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAoCnD,CAAC;AAMH,QAAA,MAAM,IAAI;;;;CAa2B,CAAC;AAMtC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,mBAAmB,EAAE,cAAc,CACjC,aAAa,EACb,OAAO,IAAI,EACX,OAAO,WAAW,EAClB,OAAO,YAAY,EACnB,OAAO,WAAW,CACnB,CAAC;KACH;CACF;AAOD,Q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tB;;OAEG;IAEG,YAAY;IAOlB;;;;OAIG;IACH;;;OAGG;IAEG,WAAW;IASX,cAAc;IAwBpB;;;;;;;;;OASG;IAEG,QAAQ;CAoEf"}
@@ -29,7 +29,7 @@
29
29
  * }
30
30
  * ```
31
31
  */
32
- declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
32
+ declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "parseOutput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "parseOutput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator, Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "parseOutput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
33
33
  /**
34
34
  * Agent hook decorators for the call-agent flow.
35
35
  *
@@ -44,9 +44,9 @@ declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryA
44
44
  * - Finalize stages: releaseSemaphore, releaseQuota, finalize
45
45
  */
46
46
  export declare const AgentHook: {
47
- Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
48
- Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
49
- Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "parseOutput" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
47
+ Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "parseOutput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
48
+ Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "parseOutput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
49
+ Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "validateInput" | "parseOutput" | "acquireSemaphore" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkCallDepth" | "checkAgentAuthorization" | "createAgentContext" | "emitCompletion", opts?: import("../../common").HookOptions<import("..").CallAgentFlow>) => MethodDecorator;
50
50
  };
51
51
  export { Will as WillAgentStage, Did as DidAgentStage, Stage as OnAgentStage };
52
52
  //# sourceMappingURL=agent.hooks.d.ts.map