agentfootprint 9.75.0 → 9.76.1
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.
- package/CHANGELOG.md +94 -0
- package/CLAUDE.md +22 -18
- package/dist/artifacts/index.js +3 -1
- package/dist/artifacts/index.js.map +1 -1
- package/dist/artifacts/recordingArtifact.js +47 -1
- package/dist/artifacts/recordingArtifact.js.map +1 -1
- package/dist/core/Agent.js +30 -0
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +42 -0
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/agent/toolDispatch.js +101 -0
- package/dist/core/agent/toolDispatch.js.map +1 -0
- package/dist/core/flowchartAsTool.js +9 -2
- package/dist/core/flowchartAsTool.js.map +1 -1
- package/dist/core/runbook/coverage.js +162 -0
- package/dist/core/runbook/coverage.js.map +1 -0
- package/dist/core/runbook/dispatch.js +119 -0
- package/dist/core/runbook/dispatch.js.map +1 -0
- package/dist/core/runbook/index.js +24 -0
- package/dist/core/runbook/index.js.map +1 -0
- package/dist/core/runbook/report.js +69 -0
- package/dist/core/runbook/report.js.map +1 -0
- package/dist/core/runbook/runbookAsTool.js +381 -0
- package/dist/core/runbook/runbookAsTool.js.map +1 -0
- package/dist/core/runbook/types.js +22 -0
- package/dist/core/runbook/types.js.map +1 -0
- package/dist/core/runbook/verdicts.js +156 -0
- package/dist/core/runbook/verdicts.js.map +1 -0
- package/dist/core/runbook/walk.js +115 -0
- package/dist/core/runbook/walk.js.map +1 -0
- package/dist/core/tools.js +55 -1
- package/dist/core/tools.js.map +1 -1
- package/dist/esm/artifacts/index.d.ts +1 -1
- package/dist/esm/artifacts/index.js +1 -1
- package/dist/esm/artifacts/index.js.map +1 -1
- package/dist/esm/artifacts/recordingArtifact.d.ts +36 -0
- package/dist/esm/artifacts/recordingArtifact.js +45 -0
- package/dist/esm/artifacts/recordingArtifact.js.map +1 -1
- package/dist/esm/core/Agent.js +30 -0
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.js +42 -0
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/toolDispatch.d.ts +50 -0
- package/dist/esm/core/agent/toolDispatch.js +97 -0
- package/dist/esm/core/agent/toolDispatch.js.map +1 -0
- package/dist/esm/core/flowchartAsTool.d.ts +6 -0
- package/dist/esm/core/flowchartAsTool.js +9 -2
- package/dist/esm/core/flowchartAsTool.js.map +1 -1
- package/dist/esm/core/runbook/coverage.d.ts +69 -0
- package/dist/esm/core/runbook/coverage.js +155 -0
- package/dist/esm/core/runbook/coverage.js.map +1 -0
- package/dist/esm/core/runbook/dispatch.d.ts +69 -0
- package/dist/esm/core/runbook/dispatch.js +112 -0
- package/dist/esm/core/runbook/dispatch.js.map +1 -0
- package/dist/esm/core/runbook/index.d.ts +9 -0
- package/dist/esm/core/runbook/index.js +9 -0
- package/dist/esm/core/runbook/index.js.map +1 -0
- package/dist/esm/core/runbook/report.d.ts +52 -0
- package/dist/esm/core/runbook/report.js +64 -0
- package/dist/esm/core/runbook/report.js.map +1 -0
- package/dist/esm/core/runbook/runbookAsTool.d.ts +90 -0
- package/dist/esm/core/runbook/runbookAsTool.js +377 -0
- package/dist/esm/core/runbook/runbookAsTool.js.map +1 -0
- package/dist/esm/core/runbook/types.d.ts +203 -0
- package/dist/esm/core/runbook/types.js +21 -0
- package/dist/esm/core/runbook/types.js.map +1 -0
- package/dist/esm/core/runbook/verdicts.d.ts +78 -0
- package/dist/esm/core/runbook/verdicts.js +148 -0
- package/dist/esm/core/runbook/verdicts.js.map +1 -0
- package/dist/esm/core/runbook/walk.d.ts +72 -0
- package/dist/esm/core/runbook/walk.js +110 -0
- package/dist/esm/core/runbook/walk.js.map +1 -0
- package/dist/esm/core/tools.d.ts +112 -0
- package/dist/esm/core/tools.js +52 -0
- package/dist/esm/core/tools.js.map +1 -1
- package/dist/esm/index.d.ts +4 -3
- package/dist/esm/index.js +19 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/mcp/toolExtras.d.ts +8 -0
- package/dist/esm/lib/mcp/toolExtras.js +7 -1
- package/dist/esm/lib/mcp/toolExtras.js.map +1 -1
- package/dist/index.js +97 -66
- package/dist/index.js.map +1 -1
- package/dist/lib/mcp/toolExtras.js +6 -0
- package/dist/lib/mcp/toolExtras.js.map +1 -1
- package/dist/types/artifacts/index.d.ts +1 -1
- package/dist/types/artifacts/index.d.ts.map +1 -1
- package/dist/types/artifacts/recordingArtifact.d.ts +36 -0
- package/dist/types/artifacts/recordingArtifact.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/toolDispatch.d.ts +51 -0
- package/dist/types/core/agent/toolDispatch.d.ts.map +1 -0
- package/dist/types/core/flowchartAsTool.d.ts +6 -0
- package/dist/types/core/flowchartAsTool.d.ts.map +1 -1
- package/dist/types/core/runbook/coverage.d.ts +70 -0
- package/dist/types/core/runbook/coverage.d.ts.map +1 -0
- package/dist/types/core/runbook/dispatch.d.ts +70 -0
- package/dist/types/core/runbook/dispatch.d.ts.map +1 -0
- package/dist/types/core/runbook/index.d.ts +10 -0
- package/dist/types/core/runbook/index.d.ts.map +1 -0
- package/dist/types/core/runbook/report.d.ts +53 -0
- package/dist/types/core/runbook/report.d.ts.map +1 -0
- package/dist/types/core/runbook/runbookAsTool.d.ts +91 -0
- package/dist/types/core/runbook/runbookAsTool.d.ts.map +1 -0
- package/dist/types/core/runbook/types.d.ts +204 -0
- package/dist/types/core/runbook/types.d.ts.map +1 -0
- package/dist/types/core/runbook/verdicts.d.ts +79 -0
- package/dist/types/core/runbook/verdicts.d.ts.map +1 -0
- package/dist/types/core/runbook/walk.d.ts +73 -0
- package/dist/types/core/runbook/walk.d.ts.map +1 -0
- package/dist/types/core/tools.d.ts +112 -0
- package/dist/types/core/tools.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/mcp/toolExtras.d.ts +8 -0
- package/dist/types/lib/mcp/toolExtras.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/core/tools.d.ts
CHANGED
|
@@ -208,6 +208,41 @@ export interface Tool<TArgs = Record<string, unknown>, TResult = unknown> {
|
|
|
208
208
|
* tool is never that check's subject, byte-identical.
|
|
209
209
|
*/
|
|
210
210
|
readonly argumentsFrom?: readonly string[];
|
|
211
|
+
/**
|
|
212
|
+
* THE NAMED INGREDIENT TOOLS THIS TOOL IS COMPOSED OF (9.76.0) — the
|
|
213
|
+
* registered tools its body calls through the run's own dispatch
|
|
214
|
+
* (`ctx.tools`), declared by the author, never inferred.
|
|
215
|
+
*
|
|
216
|
+
* Consumer-side readers, which is what earns it a place here (the
|
|
217
|
+
* `resultKind` / `argumentsFrom` law — a declaration rails read, nothing
|
|
218
|
+
* that governs execution): the agent-build drift gate asserts every named
|
|
219
|
+
* ingredient is a registered tool, so a runbook whose inventory tool was
|
|
220
|
+
* renamed fails the BUILD by name instead of failing its first run; and it
|
|
221
|
+
* joins the MCP `_meta` declaration list so a composed tool served over the
|
|
222
|
+
* wire says what it is made of.
|
|
223
|
+
*
|
|
224
|
+
* Checked at AGENT BUILD, not at definition — the ingredients need not
|
|
225
|
+
* exist before this tool is defined, and the catalog is only complete once
|
|
226
|
+
* every `.tool()` registration has landed. Tools delivered by a
|
|
227
|
+
* `ToolProvider` are invisible to the check (there is no build-time list);
|
|
228
|
+
* with a provider configured the gate warns instead of refusing.
|
|
229
|
+
* Omitted → nothing is checked, byte-identical.
|
|
230
|
+
*/
|
|
231
|
+
readonly composedOf?: readonly string[];
|
|
232
|
+
/**
|
|
233
|
+
* WHETHER THIS TOOL'S PROCEDURE CAN RAISE AN APPROVAL GATE (9.76.0) — a
|
|
234
|
+
* mid-run pause that asks a human before continuing. Declared, never
|
|
235
|
+
* inferred (the `capabilities` law): the framework cannot see through a
|
|
236
|
+
* tool boundary into an inner chart that gates.
|
|
237
|
+
*
|
|
238
|
+
* Consumer-side readers: composition-time checks that must refuse a gating
|
|
239
|
+
* tool where a pause cannot be resumed (a fan-out branch — the runbook
|
|
240
|
+
* grammar's compiler is the named reader). It does not govern execution;
|
|
241
|
+
* the runtime pause refusal remains the backstop for a tool that omits it.
|
|
242
|
+
* `false` is a declaration too ("this procedure never gates"), distinct
|
|
243
|
+
* from saying nothing. Omitted → byte-identical.
|
|
244
|
+
*/
|
|
245
|
+
readonly gates?: boolean;
|
|
211
246
|
/**
|
|
212
247
|
* FINGERPRINT THE REPEATED-CALL LEDGER ON ARGUMENTS ALONE (9.62.0) —
|
|
213
248
|
* `'arguments'` tells `core/agent/repeatedCall.ts` that this tool's own
|
|
@@ -349,6 +384,67 @@ export declare function assertToolOwner(toolName: string, owner: ToolOwner | und
|
|
|
349
384
|
* on a declaration a remote server sent.
|
|
350
385
|
*/
|
|
351
386
|
export declare function assertArgumentsFrom(toolName: string, argumentsFrom: readonly string[] | undefined): void;
|
|
387
|
+
/**
|
|
388
|
+
* Refuse a `composedOf` list that could never be drift-checked, at definition
|
|
389
|
+
* time — the {@link assertArgumentsFrom} law applied to composition: the
|
|
390
|
+
* agent-build gate joins on these names, and a blank one — or a tool composed
|
|
391
|
+
* of itself — would join the wrong subjects or none. The REGISTRATION check
|
|
392
|
+
* (is every named ingredient actually registered?) deliberately does NOT
|
|
393
|
+
* happen here: the ingredients need not exist before this tool is defined,
|
|
394
|
+
* and only the agent build sees the complete catalog.
|
|
395
|
+
*/
|
|
396
|
+
export declare function assertComposedOf(toolName: string, composedOf: readonly string[] | undefined): void;
|
|
397
|
+
/**
|
|
398
|
+
* Refuse a `gates` declaration that is not a boolean, at definition time.
|
|
399
|
+
* Trivial for anyone the compiler vets; load-bearing at the MCP ingest
|
|
400
|
+
* boundary, where a foreign server can put anything under the key and a
|
|
401
|
+
* truthy string would silently declare a gate nobody wrote.
|
|
402
|
+
*/
|
|
403
|
+
export declare function assertGates(toolName: string, gates: boolean | undefined): void;
|
|
404
|
+
/** Options for one {@link ToolDispatch.call}. */
|
|
405
|
+
export interface ToolDispatchCallOptions {
|
|
406
|
+
/** Abort signal for the inner call. Defaults to the outer call's own. */
|
|
407
|
+
readonly signal?: AbortSignal;
|
|
408
|
+
/**
|
|
409
|
+
* Declare an inner ABSENCE survivable (9.76.0). By default a dispatch
|
|
410
|
+
* consumer that composes answers (runbookAsTool) propagates an inner
|
|
411
|
+
* `absent()` as its own answer — "the inventory found nothing" IS the
|
|
412
|
+
* runbook's result, and pretending to a verdict over it would be the
|
|
413
|
+
* confident-partial-answer failure. Pass `true` when the caller can carry
|
|
414
|
+
* on without this source and will state the gap itself (usually as a
|
|
415
|
+
* coverage entry). The raw dispatch delivered on `ctx.tools` returns every
|
|
416
|
+
* result untouched either way — the propagation policy belongs to the
|
|
417
|
+
* consumer that wraps it.
|
|
418
|
+
*/
|
|
419
|
+
readonly allowAbsent?: boolean;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* The run's own tool dispatch, delivered at execute time as `ctx.tools`
|
|
423
|
+
* (9.76.0) — how one tool's body calls ANOTHER registered tool through the
|
|
424
|
+
* same map the model dispatches by, instead of importing its module and
|
|
425
|
+
* building a second query stack.
|
|
426
|
+
*
|
|
427
|
+
* What it sees: the agent's static catalog (`.tool()` registrations plus
|
|
428
|
+
* skill-carried tools) — the same dispatch map the tool-calls handler uses.
|
|
429
|
+
* Tools delivered by a `ToolProvider` are NOT visible (there is no build-time
|
|
430
|
+
* list), a stated caveat, not an accident.
|
|
431
|
+
*
|
|
432
|
+
* What an inner call gets: the outer call's own facts (credentials, signal,
|
|
433
|
+
* progress) with `hasArtifacts: false` — an inner tool must not mint claim
|
|
434
|
+
* tickets competing with the composed answer's own — and a derived
|
|
435
|
+
* `toolCallId` naming the outer call it belongs to. A declared `needs` is
|
|
436
|
+
* resolved before the inner execute (fail-closed: a service that requires
|
|
437
|
+
* interactive consent refuses by name — an inner call cannot pause).
|
|
438
|
+
*/
|
|
439
|
+
export interface ToolDispatch {
|
|
440
|
+
/** Is this name in the dispatch map? Provider-delivered tools answer false. */
|
|
441
|
+
has(name: string): boolean;
|
|
442
|
+
/**
|
|
443
|
+
* Execute a registered tool and return its result exactly as returned —
|
|
444
|
+
* a coverage envelope arrives as the envelope, an absence as the absence.
|
|
445
|
+
*/
|
|
446
|
+
call(name: string, args: unknown, opts?: ToolDispatchCallOptions): Promise<unknown>;
|
|
447
|
+
}
|
|
352
448
|
/** Runtime context passed to tool.execute(). */
|
|
353
449
|
export interface ToolExecutionContext {
|
|
354
450
|
/** Unique id of THIS tool invocation (matches stream.tool_start.toolCallId). */
|
|
@@ -392,6 +488,15 @@ export interface ToolExecutionContext {
|
|
|
392
488
|
/** The credential resolved for this tool's declared `needs` (declare-and-push).
|
|
393
489
|
* Present only when the tool declared a need and it resolved successfully. */
|
|
394
490
|
readonly credential?: Credential;
|
|
491
|
+
/**
|
|
492
|
+
* The run's own tool dispatch (9.76.0) — see {@link ToolDispatch}. Present
|
|
493
|
+
* on the agent's dispatch paths; ABSENT at doors with no dispatch map
|
|
494
|
+
* (`mcpServe`, the offline trace context, a hand-built context in a test).
|
|
495
|
+
* Absent and empty are different facts: branch on the absence rather than
|
|
496
|
+
* optional-chaining past it, and prefer a fail-closed refusal (the
|
|
497
|
+
* `credentials` law) when your tool cannot work without it.
|
|
498
|
+
*/
|
|
499
|
+
readonly tools?: ToolDispatch;
|
|
395
500
|
/**
|
|
396
501
|
* Report progress from INSIDE a long-running tool — "hop 3 of 12 done", said
|
|
397
502
|
* mid-`execute`, while the call is still running.
|
|
@@ -575,6 +680,13 @@ export interface DefineToolOptions<TArgs, TResult> {
|
|
|
575
680
|
readonly owner?: ToolOwner;
|
|
576
681
|
/** The declared argument grounds — see {@link Tool.argumentsFrom}. */
|
|
577
682
|
readonly argumentsFrom?: readonly string[];
|
|
683
|
+
/** The named ingredient tools this tool calls through `ctx.tools` — see
|
|
684
|
+
* {@link Tool.composedOf}. Drift-checked at agent build, when the catalog
|
|
685
|
+
* is complete. Omitted → nothing checked, byte-identical. */
|
|
686
|
+
readonly composedOf?: readonly string[];
|
|
687
|
+
/** Whether this tool's procedure can raise an approval gate — see
|
|
688
|
+
* {@link Tool.gates}. Omitted → nothing declared, byte-identical. */
|
|
689
|
+
readonly gates?: boolean;
|
|
578
690
|
/** Fingerprint the repeated-call ledger on arguments alone, ignoring this
|
|
579
691
|
* tool's own result — see {@link Tool.repeatedWhen}. Omitted →
|
|
580
692
|
* byte-identical (the ledger keeps comparing results, as always). */
|
package/dist/esm/core/tools.js
CHANGED
|
@@ -147,6 +147,51 @@ export function assertArgumentsFrom(toolName, argumentsFrom) {
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Refuse a `composedOf` list that could never be drift-checked, at definition
|
|
152
|
+
* time — the {@link assertArgumentsFrom} law applied to composition: the
|
|
153
|
+
* agent-build gate joins on these names, and a blank one — or a tool composed
|
|
154
|
+
* of itself — would join the wrong subjects or none. The REGISTRATION check
|
|
155
|
+
* (is every named ingredient actually registered?) deliberately does NOT
|
|
156
|
+
* happen here: the ingredients need not exist before this tool is defined,
|
|
157
|
+
* and only the agent build sees the complete catalog.
|
|
158
|
+
*/
|
|
159
|
+
export function assertComposedOf(toolName, composedOf) {
|
|
160
|
+
if (composedOf === undefined)
|
|
161
|
+
return;
|
|
162
|
+
// Same reason as `assertArgumentsFrom`: this rule is also asked about
|
|
163
|
+
// untyped values from a foreign MCP server, and `for…of` over a bare string
|
|
164
|
+
// would walk its CHARACTERS.
|
|
165
|
+
if (!Array.isArray(composedOf) || composedOf.length === 0) {
|
|
166
|
+
throw new Error(`defineTool('${toolName}'): \`composedOf\` must name at least one ingredient tool — ` +
|
|
167
|
+
`omitting the field is how "not composed" is said.`);
|
|
168
|
+
}
|
|
169
|
+
for (const ingredient of composedOf) {
|
|
170
|
+
if (typeof ingredient !== 'string' || ingredient.length === 0) {
|
|
171
|
+
throw new Error(`defineTool('${toolName}'): \`composedOf\` entries must be non-empty tool names. ` +
|
|
172
|
+
`Got ${JSON.stringify(ingredient)}.`);
|
|
173
|
+
}
|
|
174
|
+
if (ingredient === toolName) {
|
|
175
|
+
throw new Error(`defineTool('${toolName}'): \`composedOf\` names the tool itself — a tool cannot ` +
|
|
176
|
+
`be its own ingredient.`);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Refuse a `gates` declaration that is not a boolean, at definition time.
|
|
182
|
+
* Trivial for anyone the compiler vets; load-bearing at the MCP ingest
|
|
183
|
+
* boundary, where a foreign server can put anything under the key and a
|
|
184
|
+
* truthy string would silently declare a gate nobody wrote.
|
|
185
|
+
*/
|
|
186
|
+
export function assertGates(toolName, gates) {
|
|
187
|
+
if (gates === undefined)
|
|
188
|
+
return;
|
|
189
|
+
if (typeof gates !== 'boolean') {
|
|
190
|
+
throw new Error(`defineTool('${toolName}'): \`gates\` must be a boolean — \`true\` (this tool's ` +
|
|
191
|
+
`procedure can raise an approval gate), \`false\` (declared gate-free), or omitted ` +
|
|
192
|
+
`(nothing declared). Got ${JSON.stringify(gates)}.`);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
150
195
|
/**
|
|
151
196
|
* Ergonomic builder for `Tool`. Equivalent to constructing an object
|
|
152
197
|
* literal with `schema` + `execute`, but flatter and safer — the name
|
|
@@ -251,6 +296,11 @@ export function defineTool(options) {
|
|
|
251
296
|
// dangling-reference check joins on these names, and a blank one — or a
|
|
252
297
|
// tool grounded by itself — would join the wrong subjects or none.
|
|
253
298
|
assertArgumentsFrom(options.name, options.argumentsFrom);
|
|
299
|
+
// Composition edges get the same shape discipline; the REGISTRATION check
|
|
300
|
+
// (does every ingredient exist?) waits for the agent build, where the
|
|
301
|
+
// catalog is complete.
|
|
302
|
+
assertComposedOf(options.name, options.composedOf);
|
|
303
|
+
assertGates(options.name, options.gates);
|
|
254
304
|
return {
|
|
255
305
|
schema: {
|
|
256
306
|
name: options.name,
|
|
@@ -271,6 +321,8 @@ export function defineTool(options) {
|
|
|
271
321
|
...(options.resultKind !== undefined && { resultKind: options.resultKind }),
|
|
272
322
|
...(options.owner !== undefined && { owner: options.owner }),
|
|
273
323
|
...(options.argumentsFrom !== undefined && { argumentsFrom: options.argumentsFrom }),
|
|
324
|
+
...(options.composedOf !== undefined && { composedOf: options.composedOf }),
|
|
325
|
+
...(options.gates !== undefined && { gates: options.gates }),
|
|
274
326
|
...(options.repeatedWhen !== undefined && { repeatedWhen: options.repeatedWhen }),
|
|
275
327
|
execute: options.execute,
|
|
276
328
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/core/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAE,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAqB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../../src/core/tools.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,OAAO,EAAE,eAAe,EAAkB,MAAM,uBAAuB,CAAC;AAGxE,OAAO,EAAE,cAAc,EAAwB,MAAM,2BAA2B,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAqB,MAAM,mBAAmB,CAAC;AAgU1E;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,QAAgB,EAChB,OAAsC;IAEtC,IAAI,OAAO,KAAK,SAAS;QAAE,OAAO;IAClC,wEAAwE;IACxE,sEAAsE;IACtE,2EAA2E;IAC3E,4DAA4D;IAC5D,MAAM,EAAE,Q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CAAC,YAAY,EAAE,CAAC;QACjF,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC;QACpF,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC;QAC9E,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;QAC3E,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;QAC5D,GAAG,CAAC,OAAO,CAAC,aAAa,KAAK,SAAS,IAAI,EAAE,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC;QACpF,GAAG,CAAC,OAAO,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC;QAC3E,GAAG,CAAC,OAAO,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC,KAAK,EAAE,CAAC;QAC5D,GAAG,CAAC,OAAO,CAAC,YAAY,KAAK,SAAS,IAAI,EAAE,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,CAAC;QACjF,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC;AACJ,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -53,15 +53,16 @@ export { browserSessionId, DEFAULT_SESSION_STORAGE_KEY, type BrowserSessionIdOpt
|
|
|
53
53
|
export { ContextWindowExceededError, ERR_CONTEXT_WINDOW_EXCEEDED, isContextWindowExceeded, } from './adapters/llm/contextWindow.js';
|
|
54
54
|
export { NoConversationError, PendingQuestionError, RunInFlightError, } from './core/conversation.js';
|
|
55
55
|
export { flowchartAsTool, type FlowchartAsToolOptions, type FlowchartResultMapper, type FlowchartToolSnapshot, } from './core/flowchartAsTool.js';
|
|
56
|
-
export type
|
|
57
|
-
export {
|
|
56
|
+
export { absenceSignalOf, DECLINED_VERDICT, DEFAULT_MAX_ROWS, DEFAULT_WALK_CAP, probeDispatch, projectWalk, recordingDispatch, renderVerdictTable, runbookAsTool, RunbookAbsenceSignal, VERDICT_RENDER_NOTE, verdictRowsOf, type InnerCallRecord, type ProjectedWalk, type RecordedDispatch, type RunbookAsToolOptions, type RunbookEnvelope, type RunbookProcedure, type RunbookRules, type RunbookVerdictsOptions, type RunbookWalkOptions, type VerdictRow, type WalkDescriptor, type WalkRow, } from './core/runbook/index.js';
|
|
57
|
+
export type { Tool, ToolExecutionContext, ToolRegistryEntry, DefineToolOptions, ToolDispatch, ToolDispatchCallOptions, ToolResultCeiling, } from './core/tools.js';
|
|
58
|
+
export { defineTool, assertValidToolName, assertResultCeiling, assertResultClass, assertResultKind, assertComposedOf, assertGates, warnIfInvalidToolName, } from './core/tools.js';
|
|
58
59
|
export { explainStatusOnlyNearMiss, readToolResultEnvelope, TOOL_RESULT_STATUSES, type InstructionDeliveryLease, type InstructionLease, type PendingToolTransition, type ProposedEffect, type ProposeTransitionEffect, type ReadToolResultEnvelope, type RequireInstructionEffect, type ToolResultEnvelope, type ToolResultStatus, } from './core/agent/toolEffects.js';
|
|
59
60
|
export { ABSENCE_MARKER, ABSENCE_NOTE, absent, coverage, COVERAGE_BLOCK_HEADING, COVERAGE_MARKER, COVERAGE_NOTE, readAbsence, readCoverageLedger, readCoverageResult, type AbsenceDeclaration, type Coverage, type CoverageDeclaration, type CoverageInput, type CoverageItem, type CoverageReading, type CoveredResult, type DeclaredCoverage, type ToolAbsence, } from './core/agent/coverage/index.js';
|
|
60
61
|
export { composeNotCovered, COUNTER_AGGREGATION_WORDS, explainSemantics, isCounterLookingAggregation, readSemantics, RESULT_CLASSES, semantic, SEMANTICS_MARKER, SEMANTICS_NOTE, semanticsForModel, type SemanticClarify, type SemanticCoverage, type SemanticDeclaration, type SemanticEdge, type SemanticFact, type SemanticGrain, type SemanticIssue, type SemanticIssueCode, type SemanticProvenance, type SemanticRender, type SemanticSeriesPoint, type ToolResultClass, type ToolSemantics, } from './lib/semantics/index.js';
|
|
61
62
|
export { toolSessionKey, hashSessionKey, ToolTeardownTimeoutError, TOOL_TEARDOWN_TIMEOUT_MS, type TeardownScope, type TeardownReason, type TeardownOptions, } from './core/toolSessions.js';
|
|
62
63
|
export { codeRunnerTool, codeShape, codeRunsOf, toolSessionsOf, TOOL_SESSIONS, type CodeRunnerToolOptions, type CodeRunnerToolScope, type HoldsToolSessions, type CodeRunFacts, } from './core/codeRunnerTool.js';
|
|
63
64
|
export { toolContractCheckup, formatToolContractCheckup, type ToolContractCheckup, type ToolContractProblem, type ToolContractCode, type ServerToolEntry, } from './core/toolContract.js';
|
|
64
|
-
export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts, RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, type ArtifactEventFact, type ArtifactEventSink, type ArtifactListOptions, type ArtifactListResult, type ArtifactMeta, type ArtifactOp, type ArtifactOrigin, type ArtifactPutResult, type ArtifactRecord, type ArtifactRef, type ArtifactRefusalReason, type ArtifactRetention, type ArtifactScope, type ArtifactStore, type ArtifactSweepReason, type BindArtifactsOptions, type FileArtifactsOptions, type GcsArtifactsOptions, type InMemoryArtifacts, type InMemoryArtifactsOptions, type PutArtifactInput, type RecordingMintFacts, type S3ArtifactsOptions, type SqliteArtifacts, type SqliteArtifactsOptions, type SweptArtifact, type ToolArtifactPutInput, type ToolArtifacts, } from './artifacts/index.js';
|
|
65
|
+
export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts, RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput, CHART_WALK_ARTIFACT_KIND, chartWalkPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, type ArtifactEventFact, type ArtifactEventSink, type ArtifactListOptions, type ArtifactListResult, type ArtifactMeta, type ArtifactOp, type ArtifactOrigin, type ArtifactPutResult, type ArtifactRecord, type ArtifactRef, type ArtifactRefusalReason, type ArtifactRetention, type ArtifactScope, type ArtifactStore, type ArtifactSweepReason, type BindArtifactsOptions, type FileArtifactsOptions, type GcsArtifactsOptions, type InMemoryArtifacts, type InMemoryArtifactsOptions, type PutArtifactInput, type RecordingMintFacts, type S3ArtifactsOptions, type SqliteArtifacts, type SqliteArtifactsOptions, type SweptArtifact, type ToolArtifactPutInput, type ToolArtifacts, } from './artifacts/index.js';
|
|
65
66
|
export { canGetArtifactStream, canPutArtifactStream, canStreamArtifacts, type ArtifactStreamPutInput, type ArtifactStreamRecord, type StreamingArtifactStore, } from './artifacts/index.js';
|
|
66
67
|
export { artifactStoreConformance, formatArtifactStoreReport, runArtifactStoreCase, runArtifactStoreConformance, type ArtifactConformanceKit, type ArtifactStoreCase, type ArtifactStoreCaseName, type ArtifactStoreHarness, type ArtifactStoreHarnessHook, type ArtifactStoreMember, type ArtifactStoreOutcome, type ArtifactStoreReport, } from './artifacts/index.js';
|
|
67
68
|
export { assertToolWants, isPlacedToolResult, placedResultKind, PRESENT_TOOL_NAME, type ArtifactPlacement, type PlacedToolResult, type PresentedResult, type PresentSnapshot, type ToolWants, } from './artifacts/index.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -191,12 +191,25 @@ export { ContextWindowExceededError, ERR_CONTEXT_WINDOW_EXCEEDED, isContextWindo
|
|
|
191
191
|
// "there is nothing to follow up on".
|
|
192
192
|
export { NoConversationError, PendingQuestionError, RunInFlightError, } from './core/conversation.js';
|
|
193
193
|
export { flowchartAsTool, } from './core/flowchartAsTool.js';
|
|
194
|
+
// runbookAsTool (9.76.0) — the STANDARD bridge from a footprintjs procedure
|
|
195
|
+
// to an Agent tool: every answer is the mandatory honesty spine (coverage
|
|
196
|
+
// with inner-tool ledgers folded upward, provenance first, rule name+version,
|
|
197
|
+
// the recorded walk as a `recording/chart-walk` artifact ticket) plus an
|
|
198
|
+
// optional verdict/rowset projection selected by `resultKind: 'verdict/*'`.
|
|
199
|
+
// `flowchartAsTool` stays for compatibility (its `resultMapper` users stay
|
|
200
|
+
// put); new procedures start here.
|
|
201
|
+
export { absenceSignalOf, DECLINED_VERDICT, DEFAULT_MAX_ROWS, DEFAULT_WALK_CAP, probeDispatch, projectWalk, recordingDispatch, renderVerdictTable, runbookAsTool, RunbookAbsenceSignal, VERDICT_RENDER_NOTE, verdictRowsOf, } from './core/runbook/index.js';
|
|
194
202
|
export { defineTool, assertValidToolName, assertResultCeiling, assertResultClass,
|
|
195
203
|
// The placed-result kind (9.70.0) — `Tool.resultKind` lets a tool declare
|
|
196
204
|
// the artifact kind its PLACED result is minted under, so the ticket speaks
|
|
197
205
|
// the vocabulary a `wants` argument names. Exported beside the other two
|
|
198
206
|
// for consumers assembling `Tool` objects by hand.
|
|
199
|
-
assertResultKind,
|
|
207
|
+
assertResultKind,
|
|
208
|
+
// The composition declarations (9.76.0) — `composedOf` (drift-checked at
|
|
209
|
+
// agent build, when the catalog is complete) and `gates` (whether the
|
|
210
|
+
// procedure can raise an approval gate). Exported beside the others for
|
|
211
|
+
// consumers assembling `Tool` objects by hand.
|
|
212
|
+
assertComposedOf, assertGates, warnIfInvalidToolName, } from './core/tools.js';
|
|
200
213
|
// Typed tool effects (9.19.0) — the result envelope a tool may return to
|
|
201
214
|
// steer the run with DATA instead of string conventions: propose a graph
|
|
202
215
|
// transition, push a registered instruction, declare an outcome status. The
|
|
@@ -250,7 +263,11 @@ export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts,
|
|
|
250
263
|
// Recordings-as-artifacts (9.26.0) — a completed run's
|
|
251
264
|
// `{ snapshot, events, structure }` checked in under kind 'recording/run',
|
|
252
265
|
// so the existing artifact wire ops serve the Lens with no new operation.
|
|
253
|
-
RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput,
|
|
266
|
+
RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput,
|
|
267
|
+
// The chart-walk kind (9.76.0) — a runbook's inner walk, one row per
|
|
268
|
+
// execution step with the decide() evidence in the `condition` rows,
|
|
269
|
+
// checked in under 'recording/chart-walk' beside 'recording/run'.
|
|
270
|
+
CHART_WALK_ARTIFACT_KIND, chartWalkPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, } from './artifacts/index.js';
|
|
254
271
|
// Artifacts, the optional streaming leg (9.25.0) — `putStream`/`getStream` are
|
|
255
272
|
// FEATURE-DETECTED members of the port, so a store that cannot move bytes
|
|
256
273
|
// without holding them whole leaves them absent rather than faking one. The
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oEAAoE;AACpE,8DAA8D;AAC9D,uEAAuE;AACvE,kEAAkE;AAClE,sEAAsE;AACtE,sDAAsD;AACtD,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAsCpD,6BAA6B;A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AAkE;AAClE,iEAAiE;AACjE,wEAAwE;AACxE,gEAAgE;AAChE,gEAAgE;AAChE,6CAA6C;AAC7C,EAAE;AACF,2FAA2F;AAC3F,wFAAwF;AAExF,OAAO,EACL,eAAe,GAIhB,MAAM,kCAAkC,CAAC;AAE1C,+DAA+D;AAE/D,oEAAoE;AACpE,gEAAgE;AAEhE,qEAAqE;AACrE,0DAA0D;AAC1D,cAAc,qBAAqB,CAAC;AAEpC,uEAAuE;AACvE,uEAAuE;AACvE,oEAAoE;AACpE,sEAAsE;AACtE,8CAA8C;AAE9C,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,OAAO,EACL,SAAS,EACT,uBAAuB,EAEvB,cAAc,GAGf,MAAM,oBAAoB,CAAC;AAE5B,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,iEAAiE;AACjE,OAAO,EACL,IAAI,GAML,MAAM,6BAA6B,CAAC;AAErC,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,oEAAoE;AACpE,yDAAyD;AACzD,wEAAwE;AACxE,gDAAgD;AAChD,wEAAwE;AACxE,gEAAgE;AAEhE,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,mEAAmE;AACnE,oEAAoE;AACpE,sDAAsD"}
|
|
@@ -86,6 +86,14 @@ export interface McpToolExtras {
|
|
|
86
86
|
/** The author's refusing ceiling on this tool's result — see
|
|
87
87
|
* {@link Tool.resultCeiling}. */
|
|
88
88
|
readonly resultCeiling?: ToolResultCeiling;
|
|
89
|
+
/** The named ingredient tools this tool is composed of (9.76.0) — see
|
|
90
|
+
* {@link Tool.composedOf}. Feeds the receiving agent's build-time drift
|
|
91
|
+
* gate. */
|
|
92
|
+
readonly composedOf?: readonly string[];
|
|
93
|
+
/** Whether this tool's procedure can raise an approval gate (9.76.0) — see
|
|
94
|
+
* {@link Tool.gates}. Read by composition-time checks that must keep a
|
|
95
|
+
* gating tool out of a fan-out branch. */
|
|
96
|
+
readonly gates?: boolean;
|
|
89
97
|
}
|
|
90
98
|
/**
|
|
91
99
|
* The declarations on `tool`, ready to be written into an MCP `_meta` bag —
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
* That is the honest outcome: the rail it would have armed stays unarmed, and
|
|
50
50
|
* the developer is told which rail and why.
|
|
51
51
|
*/
|
|
52
|
-
import { assertArgumentsFrom, assertResultCeiling, assertResultClass, assertResultKind, assertToolOwner, } from '../../core/tools.js';
|
|
52
|
+
import { assertArgumentsFrom, assertComposedOf, assertGates, assertResultCeiling, assertResultClass, assertResultKind, assertToolOwner, } from '../../core/tools.js';
|
|
53
53
|
/**
|
|
54
54
|
* The single `_meta` key every agentfootprint declaration travels under.
|
|
55
55
|
*
|
|
@@ -74,6 +74,8 @@ export function toolExtrasOf(tool) {
|
|
|
74
74
|
...(tool.owner !== undefined && { owner: tool.owner }),
|
|
75
75
|
...(tool.resultClass !== undefined && { resultClass: tool.resultClass }),
|
|
76
76
|
...(tool.resultCeiling !== undefined && { resultCeiling: tool.resultCeiling }),
|
|
77
|
+
...(tool.composedOf !== undefined && { composedOf: tool.composedOf }),
|
|
78
|
+
...(tool.gates !== undefined && { gates: tool.gates }),
|
|
77
79
|
};
|
|
78
80
|
return Object.keys(extras).length > 0 ? extras : undefined;
|
|
79
81
|
}
|
|
@@ -108,12 +110,16 @@ export function readToolExtras(meta, origin) {
|
|
|
108
110
|
const owner = kept('owner', (v) => assertToolOwner(origin.tool, v));
|
|
109
111
|
const resultClass = kept('resultClass', (v) => assertResultClass(origin.tool, v));
|
|
110
112
|
const resultCeiling = kept('resultCeiling', (v) => assertResultCeiling(origin.tool, v));
|
|
113
|
+
const composedOf = kept('composedOf', (v) => assertComposedOf(origin.tool, v));
|
|
114
|
+
const gates = kept('gates', (v) => assertGates(origin.tool, v));
|
|
111
115
|
return {
|
|
112
116
|
...(argumentsFrom !== undefined && { argumentsFrom }),
|
|
113
117
|
...(resultKind !== undefined && { resultKind }),
|
|
114
118
|
...(owner !== undefined && { owner }),
|
|
115
119
|
...(resultClass !== undefined && { resultClass }),
|
|
116
120
|
...(resultCeiling !== undefined && { resultCeiling }),
|
|
121
|
+
...(composedOf !== undefined && { composedOf }),
|
|
122
|
+
...(gates !== undefined && { gates }),
|
|
117
123
|
};
|
|
118
124
|
}
|
|
119
125
|
// ─── The reading, field by field ───────────────────────────────────
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolExtras.js","sourceRoot":"","sources":["../../../../src/lib/mcp/toolExtras.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAIhB,MAAM,qBAAqB,CAAC;AAG7B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"toolExtras.js","sourceRoot":"","sources":["../../../../src/lib/mcp/toolExtras.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,GAIhB,MAAM,qBAAqB,CAAC;AAG7B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,gBAAgB,CAAC;AAsCpD;;;;;;;GAOG;AACH,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,MAAM,MAAM,GAAkB;QAC5B,GAAG,CAAC,IAAI,CAAC,aAAa,KAAK,SAAS,IAAI,EAAE,aAAa,EAAE,IAAI,CAAC,aAAa,EAAE,CAAC;QAC9E,GAAG,CAAC,IAAI,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,UAA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