agentfootprint 14.7.2 → 14.8.0
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/AGENTS.md +1 -1
- package/CAPABILITIES.md +1 -0
- package/ai-instructions/claude-code/SKILL.md +1 -1
- package/dist/adapters/observability/auditShapes/events/decisions.js +11 -0
- package/dist/adapters/observability/auditShapes/events/decisions.js.map +1 -1
- package/dist/artifacts/sourceEvidence/datasets.js.map +1 -1
- package/dist/core/agent/resultRowsets/catalog.js +55 -0
- package/dist/core/agent/resultRowsets/catalog.js.map +1 -0
- package/dist/core/agent/resultRowsets/finalization.js +116 -0
- package/dist/core/agent/resultRowsets/finalization.js.map +1 -0
- package/dist/core/agent/resultRowsets/inlineRows.js +125 -0
- package/dist/core/agent/resultRowsets/inlineRows.js.map +1 -0
- package/dist/core/agent/resultRowsets/judge.js +104 -0
- package/dist/core/agent/resultRowsets/judge.js.map +1 -0
- package/dist/core/agent/resultRowsets/read.js +91 -0
- package/dist/core/agent/resultRowsets/read.js.map +1 -0
- package/dist/core/agent/resultRowsets/resumed.js +18 -0
- package/dist/core/agent/resultRowsets/resumed.js.map +1 -0
- package/dist/core/agent/runtime/chart/owner.js +5 -1
- package/dist/core/agent/runtime/chart/owner.js.map +1 -1
- package/dist/core/agent/runtime/integrity/owner.js +1 -1
- package/dist/core/agent/runtime/integrity/owner.js.map +1 -1
- package/dist/core/agent/runtime/request/factory.js +10 -2
- package/dist/core/agent/runtime/request/factory.js.map +1 -1
- package/dist/core/agent/runtime/slots/buildSlots.js +16 -1
- package/dist/core/agent/runtime/slots/buildSlots.js.map +1 -1
- package/dist/core/agent/runtime/toolCalls/factory.js +9 -2
- package/dist/core/agent/runtime/toolCalls/factory.js.map +1 -1
- package/dist/core/agent/sourceEvidence/capture.js +9 -4
- package/dist/core/agent/sourceEvidence/capture.js.map +1 -1
- package/dist/core/agent/sourceEvidence/publications.js +57 -22
- package/dist/core/agent/sourceEvidence/publications.js.map +1 -1
- package/dist/core/agent/stages/argumentAsk.js +1 -0
- package/dist/core/agent/stages/argumentAsk.js.map +1 -1
- package/dist/core/agent/stages/argumentAskDeps.js +3 -0
- package/dist/core/agent/stages/argumentAskDeps.js.map +1 -0
- package/dist/core/agent/stages/callLLM.js +7 -8
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/batch/execute.js +33 -0
- package/dist/core/agent/stages/toolCalls/batch/execute.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/contextOperations.js +2 -2
- package/dist/core/agent/stages/toolCalls/execution/contextOperations.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/dispatchCall.js +415 -442
- package/dist/core/agent/stages/toolCalls/execution/dispatchCall.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/finalizeCallResult.js +73 -0
- package/dist/core/agent/stages/toolCalls/execution/finalizeCallResult.js.map +1 -0
- package/dist/core/agent/stages/toolCalls/execution/initialInvocation.js +4 -5
- package/dist/core/agent/stages/toolCalls/execution/initialInvocation.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/execution/resumedInvocation.js +7 -6
- package/dist/core/agent/stages/toolCalls/execution/resumedInvocation.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/resume/ask.js +354 -333
- package/dist/core/agent/stages/toolCalls/resume/ask.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/resume/checkIn.js +159 -136
- package/dist/core/agent/stages/toolCalls/resume/checkIn.js.map +1 -1
- package/dist/core/agent/stages/toolCalls/resume/credential.js +142 -117
- package/dist/core/agent/stages/toolCalls/resume/credential.js.map +1 -1
- package/dist/core/slots/discoverTools.js +5 -0
- package/dist/core/slots/discoverTools.js.map +1 -1
- package/dist/esm/adapters/observability/auditShapes/events/decisions.d.ts +1 -0
- package/dist/esm/adapters/observability/auditShapes/events/decisions.js +11 -0
- package/dist/esm/adapters/observability/auditShapes/events/decisions.js.map +1 -1
- package/dist/esm/artifacts/sourceEvidence/datasets.d.ts +1 -1
- package/dist/esm/artifacts/sourceEvidence/datasets.js.map +1 -1
- package/dist/esm/core/agent/resultRowsets/catalog.d.ts +17 -0
- package/dist/esm/core/agent/resultRowsets/catalog.js +47 -0
- package/dist/esm/core/agent/resultRowsets/catalog.js.map +1 -0
- package/dist/esm/core/agent/resultRowsets/finalization.d.ts +25 -0
- package/dist/esm/core/agent/resultRowsets/finalization.js +112 -0
- package/dist/esm/core/agent/resultRowsets/finalization.js.map +1 -0
- package/dist/esm/core/agent/resultRowsets/inlineRows.d.ts +15 -0
- package/dist/esm/core/agent/resultRowsets/inlineRows.js +119 -0
- package/dist/esm/core/agent/resultRowsets/inlineRows.js.map +1 -0
- package/dist/esm/core/agent/resultRowsets/judge.d.ts +18 -0
- package/dist/esm/core/agent/resultRowsets/judge.js +99 -0
- package/dist/esm/core/agent/resultRowsets/judge.js.map +1 -0
- package/dist/esm/core/agent/resultRowsets/read.d.ts +12 -0
- package/dist/esm/core/agent/resultRowsets/read.js +87 -0
- package/dist/esm/core/agent/resultRowsets/read.js.map +1 -0
- package/dist/esm/core/agent/resultRowsets/resumed.d.ts +21 -0
- package/dist/esm/core/agent/resultRowsets/resumed.js +14 -0
- package/dist/esm/core/agent/resultRowsets/resumed.js.map +1 -0
- package/dist/esm/core/agent/runtime/chart/owner.js +5 -1
- package/dist/esm/core/agent/runtime/chart/owner.js.map +1 -1
- package/dist/esm/core/agent/runtime/integrity/owner.js +1 -1
- package/dist/esm/core/agent/runtime/integrity/owner.js.map +1 -1
- package/dist/esm/core/agent/runtime/request/factory.d.ts +3 -0
- package/dist/esm/core/agent/runtime/request/factory.js +10 -2
- package/dist/esm/core/agent/runtime/request/factory.js.map +1 -1
- package/dist/esm/core/agent/runtime/slots/buildSlots.d.ts +3 -0
- package/dist/esm/core/agent/runtime/slots/buildSlots.js +16 -1
- package/dist/esm/core/agent/runtime/slots/buildSlots.js.map +1 -1
- package/dist/esm/core/agent/runtime/toolCalls/factory.d.ts +3 -0
- package/dist/esm/core/agent/runtime/toolCalls/factory.js +9 -2
- package/dist/esm/core/agent/runtime/toolCalls/factory.js.map +1 -1
- package/dist/esm/core/agent/sourceEvidence/capture.d.ts +2 -1
- package/dist/esm/core/agent/sourceEvidence/capture.js +10 -5
- package/dist/esm/core/agent/sourceEvidence/capture.js.map +1 -1
- package/dist/esm/core/agent/sourceEvidence/publications.d.ts +3 -1
- package/dist/esm/core/agent/sourceEvidence/publications.js +55 -20
- package/dist/esm/core/agent/sourceEvidence/publications.js.map +1 -1
- package/dist/esm/core/agent/stages/argumentAsk.d.ts +3 -37
- package/dist/esm/core/agent/stages/argumentAsk.js +1 -0
- package/dist/esm/core/agent/stages/argumentAsk.js.map +1 -1
- package/dist/esm/core/agent/stages/argumentAskDeps.d.ts +39 -0
- package/dist/esm/core/agent/stages/argumentAskDeps.js +2 -0
- package/dist/esm/core/agent/stages/argumentAskDeps.js.map +1 -0
- package/dist/esm/core/agent/stages/callLLM/types.d.ts +4 -3
- package/dist/esm/core/agent/stages/callLLM.js +7 -8
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/batch/execute.js +33 -0
- package/dist/esm/core/agent/stages/toolCalls/batch/execute.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/compose.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/contracts/callCells.d.ts +2 -2
- package/dist/esm/core/agent/stages/toolCalls/contracts/callFacts.d.ts +2 -2
- package/dist/esm/core/agent/stages/toolCalls/contracts/evidence.d.ts +7 -0
- package/dist/esm/core/agent/stages/toolCalls/contracts/operations/context.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/contextOperations.js +2 -2
- package/dist/esm/core/agent/stages/toolCalls/execution/contextOperations.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/dispatchCall.js +415 -442
- package/dist/esm/core/agent/stages/toolCalls/execution/dispatchCall.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/finalizeCallResult.d.ts +25 -0
- package/dist/esm/core/agent/stages/toolCalls/execution/finalizeCallResult.js +69 -0
- package/dist/esm/core/agent/stages/toolCalls/execution/finalizeCallResult.js.map +1 -0
- package/dist/esm/core/agent/stages/toolCalls/execution/initialInvocation.js +4 -5
- package/dist/esm/core/agent/stages/toolCalls/execution/initialInvocation.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/resumedInvocation.d.ts +1 -1
- package/dist/esm/core/agent/stages/toolCalls/execution/resumedInvocation.js +7 -6
- package/dist/esm/core/agent/stages/toolCalls/execution/resumedInvocation.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/resume/ask.js +354 -333
- package/dist/esm/core/agent/stages/toolCalls/resume/ask.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/resume/checkIn.js +159 -136
- package/dist/esm/core/agent/stages/toolCalls/resume/checkIn.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls/resume/credential.js +142 -117
- package/dist/esm/core/agent/stages/toolCalls/resume/credential.js.map +1 -1
- package/dist/esm/core/slots/discoverTools.js +5 -0
- package/dist/esm/core/slots/discoverTools.js.map +1 -1
- package/dist/esm/events/payloads/toolRowsets.d.ts +14 -0
- package/dist/esm/events/payloads/toolRowsets.js +2 -0
- package/dist/esm/events/payloads/toolRowsets.js.map +1 -0
- package/dist/esm/events/payloads.d.ts +1 -0
- package/dist/esm/events/registry/names.d.ts +1 -0
- package/dist/esm/events/registry/names.js +1 -0
- package/dist/esm/events/registry/names.js.map +1 -1
- package/dist/esm/events/registry/toolEvents.d.ts +32 -0
- package/dist/esm/events/registry/toolEvents.js +2 -0
- package/dist/esm/events/registry/toolEvents.js.map +1 -0
- package/dist/esm/events/registry.d.ts +3 -28
- package/dist/esm/events/registry.js +1 -0
- package/dist/esm/events/registry.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrity/column-types/check.d.ts +2 -0
- package/dist/esm/integrity/column-types/check.js +8 -2
- package/dist/esm/integrity/column-types/check.js.map +1 -1
- package/dist/esm/integrity/finding/types.d.ts +2 -0
- package/dist/esm/integrity/finding/types.js +18 -0
- package/dist/esm/integrity/finding/types.js.map +1 -1
- package/dist/esm/mcp/toolExtras.d.ts +8 -4
- package/dist/esm/mcp/toolExtras.js +20 -4
- package/dist/esm/mcp/toolExtras.js.map +1 -1
- package/dist/esm/recorders/observability/commentary/commentaryTemplates/dispositions.js +1 -0
- package/dist/esm/recorders/observability/commentary/commentaryTemplates/dispositions.js.map +1 -1
- package/dist/esm/redaction/knownStrings/fields-1.d.ts +1 -1
- package/dist/esm/redaction/knownStrings/fields-1.js +1 -1
- package/dist/esm/redaction/knownStrings/fields-1.js.map +1 -1
- package/dist/esm/redaction/knownStrings/fields-2.d.ts +1 -0
- package/dist/esm/redaction/knownStrings/fields-2.js +1 -0
- package/dist/esm/redaction/knownStrings/fields-2.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-0.d.ts +4 -4
- package/dist/esm/redaction/knownStrings/words-0.js +4 -4
- package/dist/esm/redaction/knownStrings/words-0.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-1.d.ts +15 -15
- package/dist/esm/redaction/knownStrings/words-1.js +15 -15
- package/dist/esm/redaction/knownStrings/words-1.js.map +1 -1
- package/dist/esm/redaction/knownStrings/words-2.d.ts +18 -0
- package/dist/esm/redaction/knownStrings/words-2.js +18 -0
- package/dist/esm/redaction/knownStrings/words-2.js.map +1 -1
- package/dist/esm/tools/resultRowsets.d.ts +22 -0
- package/dist/esm/tools/resultRowsets.js +65 -0
- package/dist/esm/tools/resultRowsets.js.map +1 -0
- package/dist/esm/tools/tools.d.ts +7 -9
- package/dist/esm/tools/tools.js +5 -9
- package/dist/esm/tools/tools.js.map +1 -1
- package/dist/events/payloads/toolRowsets.js +3 -0
- package/dist/events/payloads/toolRowsets.js.map +1 -0
- package/dist/events/registry/names.js +1 -0
- package/dist/events/registry/names.js.map +1 -1
- package/dist/events/registry/toolEvents.js +3 -0
- package/dist/events/registry/toolEvents.js.map +1 -0
- package/dist/events/registry.js +1 -0
- package/dist/events/registry.js.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/integrity/column-types/check.js +8 -2
- package/dist/integrity/column-types/check.js.map +1 -1
- package/dist/integrity/finding/types.js +18 -0
- package/dist/integrity/finding/types.js.map +1 -1
- package/dist/mcp/toolExtras.js +20 -4
- package/dist/mcp/toolExtras.js.map +1 -1
- package/dist/recorders/observability/commentary/commentaryTemplates/dispositions.js +1 -0
- package/dist/recorders/observability/commentary/commentaryTemplates/dispositions.js.map +1 -1
- package/dist/redaction/knownStrings/fields-1.js +1 -1
- package/dist/redaction/knownStrings/fields-1.js.map +1 -1
- package/dist/redaction/knownStrings/fields-2.js +1 -0
- package/dist/redaction/knownStrings/fields-2.js.map +1 -1
- package/dist/redaction/knownStrings/words-0.js +4 -4
- package/dist/redaction/knownStrings/words-0.js.map +1 -1
- package/dist/redaction/knownStrings/words-1.js +15 -15
- package/dist/redaction/knownStrings/words-1.js.map +1 -1
- package/dist/redaction/knownStrings/words-2.js +18 -0
- package/dist/redaction/knownStrings/words-2.js.map +1 -1
- package/dist/tools/resultRowsets.js +70 -0
- package/dist/tools/resultRowsets.js.map +1 -0
- package/dist/tools/tools.js +5 -9
- package/dist/tools/tools.js.map +1 -1
- package/dist/types/adapters/observability/auditShapes/events/decisions.d.ts +1 -0
- package/dist/types/adapters/observability/auditShapes/events/decisions.d.ts.map +1 -1
- package/dist/types/artifacts/sourceEvidence/datasets.d.ts +1 -1
- package/dist/types/artifacts/sourceEvidence/datasets.d.ts.map +1 -1
- package/dist/types/core/agent/resultRowsets/catalog.d.ts +18 -0
- package/dist/types/core/agent/resultRowsets/catalog.d.ts.map +1 -0
- package/dist/types/core/agent/resultRowsets/finalization.d.ts +26 -0
- package/dist/types/core/agent/resultRowsets/finalization.d.ts.map +1 -0
- package/dist/types/core/agent/resultRowsets/inlineRows.d.ts +16 -0
- package/dist/types/core/agent/resultRowsets/inlineRows.d.ts.map +1 -0
- package/dist/types/core/agent/resultRowsets/judge.d.ts +19 -0
- package/dist/types/core/agent/resultRowsets/judge.d.ts.map +1 -0
- package/dist/types/core/agent/resultRowsets/read.d.ts +13 -0
- package/dist/types/core/agent/resultRowsets/read.d.ts.map +1 -0
- package/dist/types/core/agent/resultRowsets/resumed.d.ts +22 -0
- package/dist/types/core/agent/resultRowsets/resumed.d.ts.map +1 -0
- package/dist/types/core/agent/runtime/chart/owner.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/request/factory.d.ts +3 -0
- package/dist/types/core/agent/runtime/request/factory.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/slots/buildSlots.d.ts +3 -0
- package/dist/types/core/agent/runtime/slots/buildSlots.d.ts.map +1 -1
- package/dist/types/core/agent/runtime/toolCalls/factory.d.ts +3 -0
- package/dist/types/core/agent/runtime/toolCalls/factory.d.ts.map +1 -1
- package/dist/types/core/agent/sourceEvidence/capture.d.ts +2 -1
- package/dist/types/core/agent/sourceEvidence/capture.d.ts.map +1 -1
- package/dist/types/core/agent/sourceEvidence/publications.d.ts +3 -1
- package/dist/types/core/agent/sourceEvidence/publications.d.ts.map +1 -1
- package/dist/types/core/agent/stages/argumentAsk.d.ts +3 -37
- package/dist/types/core/agent/stages/argumentAsk.d.ts.map +1 -1
- package/dist/types/core/agent/stages/argumentAskDeps.d.ts +40 -0
- package/dist/types/core/agent/stages/argumentAskDeps.d.ts.map +1 -0
- package/dist/types/core/agent/stages/callLLM/types.d.ts +4 -3
- package/dist/types/core/agent/stages/callLLM/types.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/batch/execute.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/compose.d.ts +1 -1
- package/dist/types/core/agent/stages/toolCalls/contracts/callCells.d.ts +2 -2
- package/dist/types/core/agent/stages/toolCalls/contracts/callCells.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/contracts/callFacts.d.ts +2 -2
- package/dist/types/core/agent/stages/toolCalls/contracts/callFacts.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/contracts/evidence.d.ts +7 -0
- package/dist/types/core/agent/stages/toolCalls/contracts/evidence.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/contracts/operations/context.d.ts +1 -1
- package/dist/types/core/agent/stages/toolCalls/contracts/operations/context.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/dispatchCall.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/finalizeCallResult.d.ts +26 -0
- package/dist/types/core/agent/stages/toolCalls/execution/finalizeCallResult.d.ts.map +1 -0
- package/dist/types/core/agent/stages/toolCalls/execution/initialInvocation.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/resumedInvocation.d.ts +1 -1
- package/dist/types/core/agent/stages/toolCalls/execution/resumedInvocation.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/resume/ask.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/resume/checkIn.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls/resume/credential.d.ts.map +1 -1
- package/dist/types/core/slots/discoverTools.d.ts.map +1 -1
- package/dist/types/events/payloads/toolRowsets.d.ts +15 -0
- package/dist/types/events/payloads/toolRowsets.d.ts.map +1 -0
- package/dist/types/events/payloads.d.ts +1 -0
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/events/registry/names.d.ts +1 -0
- package/dist/types/events/registry/names.d.ts.map +1 -1
- package/dist/types/events/registry/toolEvents.d.ts +33 -0
- package/dist/types/events/registry/toolEvents.d.ts.map +1 -0
- package/dist/types/events/registry.d.ts +3 -28
- package/dist/types/events/registry.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrity/column-types/check.d.ts +2 -0
- package/dist/types/integrity/column-types/check.d.ts.map +1 -1
- package/dist/types/integrity/finding/types.d.ts +2 -0
- package/dist/types/integrity/finding/types.d.ts.map +1 -1
- package/dist/types/mcp/toolExtras.d.ts +8 -4
- package/dist/types/mcp/toolExtras.d.ts.map +1 -1
- package/dist/types/recorders/observability/commentary/commentaryTemplates/dispositions.d.ts.map +1 -1
- package/dist/types/redaction/knownStrings/fields-1.d.ts +1 -1
- package/dist/types/redaction/knownStrings/fields-2.d.ts +1 -0
- package/dist/types/redaction/knownStrings/fields-2.d.ts.map +1 -1
- package/dist/types/redaction/knownStrings/words-0.d.ts +4 -4
- package/dist/types/redaction/knownStrings/words-1.d.ts +15 -15
- package/dist/types/redaction/knownStrings/words-2.d.ts +18 -0
- package/dist/types/redaction/knownStrings/words-2.d.ts.map +1 -1
- package/dist/types/tools/resultRowsets.d.ts +23 -0
- package/dist/types/tools/resultRowsets.d.ts.map +1 -0
- package/dist/types/tools/tools.d.ts +7 -9
- package/dist/types/tools/tools.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readResultRowsets = exports.resultRowsetsOf = void 0;
|
|
4
|
+
/** Explicit inert result bindings, shared by local definition and MCP intake. */
|
|
5
|
+
const boundedJson_js_1 = require("../lib/boundedJson.js");
|
|
6
|
+
const guards_js_1 = require("../artifacts/sourceEvidence/guards.js");
|
|
7
|
+
const types_js_1 = require("../integrity/column-types/types.js");
|
|
8
|
+
const pathIsValid = (value) => Array.isArray(value) && value.length <= 16 && value.every((key) => (0, guards_js_1.sourceEvidenceText)(key, 256));
|
|
9
|
+
/** @internal Read the new metadata property without invoking an accessor or inheriting authority. */
|
|
10
|
+
function resultRowsetsOf(toolName, owner, legacyColumns) {
|
|
11
|
+
const property = Object.getOwnPropertyDescriptor(owner, 'resultRowsets');
|
|
12
|
+
if (property === undefined && !('resultRowsets' in owner))
|
|
13
|
+
return undefined;
|
|
14
|
+
if (!property?.enumerable || !('value' in property))
|
|
15
|
+
throw new TypeError(`defineTool: tool '${toolName}' requires resultRowsets as own enumerable data.`);
|
|
16
|
+
return readResultRowsets(toolName, property.value, legacyColumns);
|
|
17
|
+
}
|
|
18
|
+
exports.resultRowsetsOf = resultRowsetsOf;
|
|
19
|
+
/** @internal One bounded detached/frozen declaration reader; absent keeps the old path. */
|
|
20
|
+
function readResultRowsets(toolName, input, legacyColumns) {
|
|
21
|
+
if (input === undefined)
|
|
22
|
+
return undefined;
|
|
23
|
+
if (legacyColumns !== undefined)
|
|
24
|
+
throw new TypeError(`defineTool: tool '${toolName}' cannot combine resultColumns and resultRowsets.`);
|
|
25
|
+
try {
|
|
26
|
+
const declarations = (0, boundedJson_js_1.copyJson)(input, 8192, true);
|
|
27
|
+
if (!Array.isArray(declarations) || declarations.length < 1 || declarations.length > 8)
|
|
28
|
+
throw new Error('Invalid rowset count.');
|
|
29
|
+
const keys = new Set();
|
|
30
|
+
for (const raw of declarations) {
|
|
31
|
+
const rowset = (0, boundedJson_js_1.ownData)(raw, ['key', 'columns', 'source']);
|
|
32
|
+
if (!(0, guards_js_1.sourceEvidenceText)(rowset.key, 128) || !rowset.key.trim() || keys.has(rowset.key))
|
|
33
|
+
throw new Error('Invalid or duplicate rowset key.');
|
|
34
|
+
keys.add(rowset.key);
|
|
35
|
+
const columns = (0, boundedJson_js_1.ownData)(rowset.columns);
|
|
36
|
+
for (const column of Object.values(columns))
|
|
37
|
+
if (column !== null && typeof column === 'object')
|
|
38
|
+
(0, boundedJson_js_1.ownData)(column, ['type', 'nullable']);
|
|
39
|
+
(0, types_js_1.assertResultColumns)(toolName, columns);
|
|
40
|
+
const source = (0, boundedJson_js_1.ownData)(rowset.source);
|
|
41
|
+
if (source.kind === 'inline') {
|
|
42
|
+
(0, boundedJson_js_1.ownData)(source, ['kind', 'path']);
|
|
43
|
+
if (!pathIsValid(source.path))
|
|
44
|
+
throw new Error('Invalid inline path.');
|
|
45
|
+
}
|
|
46
|
+
else if (source.kind === 'published-dataset') {
|
|
47
|
+
(0, boundedJson_js_1.ownData)(source, ['kind', 'refPath', 'artifactKind', 'maxRows', 'maxBytes']);
|
|
48
|
+
if (!pathIsValid(source.refPath) ||
|
|
49
|
+
!(0, guards_js_1.sourceEvidenceText)(source.artifactKind, 256) ||
|
|
50
|
+
!Number.isSafeInteger(source.maxRows) ||
|
|
51
|
+
source.maxRows < 1 ||
|
|
52
|
+
source.maxRows > 1000 ||
|
|
53
|
+
!Number.isSafeInteger(source.maxBytes) ||
|
|
54
|
+
source.maxBytes < 1 ||
|
|
55
|
+
source.maxBytes > 1048576)
|
|
56
|
+
throw new Error('Invalid published dataset binding.');
|
|
57
|
+
}
|
|
58
|
+
else
|
|
59
|
+
throw new Error('Invalid rowset source.');
|
|
60
|
+
}
|
|
61
|
+
return declarations;
|
|
62
|
+
}
|
|
63
|
+
catch {
|
|
64
|
+
// Do not stringify untrusted declarations, call getters, or retain their values in diagnostics.
|
|
65
|
+
throw new TypeError(`defineTool: tool '${toolName}' declares invalid resultRowsets. ` +
|
|
66
|
+
'Use 1–8 unique named rowsets with valid columns and an explicit inline or bounded published-dataset source.');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.readResultRowsets = readResultRowsets;
|
|
70
|
+
//# sourceMappingURL=resultRowsets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resultRowsets.js","sourceRoot":"","sources":["../../src/tools/resultRowsets.ts"],"names":[],"mappings":";;;AAAA,iFAAiF;AACjF,0DAA0D;AAC1D,qEAA2E;AAC3E,iEAAiG;AAoBjG,MAAM,WAAW,GAAG,CAAC,KAAc,EAA8B,EAAE,CACjE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,IAAI,EAAE,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,8BAAkB,EAAC,GAA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AAC,IAAA,8BAAkB,EAAC,MAAM,CAAC,YAAY,EAAE,GAAG,CAAC;oBAC7C,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,CAAC;oBACpC,MAAM,CAAC,OAAkB,GAAG,CAAC;oBAC7B,MAAM,CAAC,OAAkB,GAAG,IAAI;oBACjC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,QAAQ,CAAC;oBACrC,MAAM,CAAC,QAAmB,GAAG,CAAC;oBAC9B,MAAM,CAAC,QAAmB,GAAG,OAAO;oBAErC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;YAC1D,CAAC;;gBAAM,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;QACnD,CAAC;QACD,OAAO,YAAsD,CAAC;IAChE,CAAC;IAAC,MAAM,CAAC;QACP,gGAAgG;QAChG,MAAM,IAAI,SAAS,CACjB,qBAAqB,QAAQ,oCAAoC;YAC/D,6GAA6G,CAChH,CAAC;IACJ,CAAC;AACH,CAAC;AAnDD,8CAmDC"}
|
package/dist/tools/tools.js
CHANGED
|
@@ -12,6 +12,7 @@ exports.defineTool = exports.assertGates = exports.assertComposedOf = exports.as
|
|
|
12
12
|
const wants_js_1 = require("../artifacts/wants.js");
|
|
13
13
|
const types_js_1 = require("../semantics/types.js");
|
|
14
14
|
const types_js_2 = require("../integrity/column-types/types.js");
|
|
15
|
+
const resultRowsets_js_1 = require("./resultRowsets.js");
|
|
15
16
|
const askComponent_js_1 = require("./askComponent.js");
|
|
16
17
|
const toolName_js_1 = require("../lib/toolName.js");
|
|
17
18
|
require("../lib/displayName.js");
|
|
@@ -112,15 +113,8 @@ function assertResultClass(toolName, resultClass) {
|
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
exports.assertResultClass = assertResultClass;
|
|
115
|
-
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* They are DEFINED in `src/integrity/column-types/types.ts`, because
|
|
119
|
-
* `src/integrity/` is a strict leaf that imports nothing outside itself and
|
|
120
|
-
* the check has to be able to read the words. They are re-exported here
|
|
121
|
-
* because `defineTool` and the MCP ingest both reach for their rules through
|
|
122
|
-
* `tools/tools.ts` — one door for every declaration's rule, and no second copy
|
|
123
|
-
* of any of them anywhere.
|
|
116
|
+
/** Column vocabulary and validation live in `src/integrity/column-types/types.ts`.
|
|
117
|
+
* Local definition and MCP intake share this one rule through this module.
|
|
124
118
|
*/
|
|
125
119
|
var types_js_3 = require("../integrity/column-types/types.js");
|
|
126
120
|
Object.defineProperty(exports, "assertResultColumns", { enumerable: true, get: function () { return types_js_3.assertResultColumns; } });
|
|
@@ -314,6 +308,7 @@ function defineTool(options) {
|
|
|
314
308
|
// first rowset of the first armed run, where the symptom would be a check
|
|
315
309
|
// that quietly judges nothing.
|
|
316
310
|
(0, types_js_2.assertResultColumns)(options.name, options.resultColumns);
|
|
311
|
+
const resultRowsets = (0, resultRowsets_js_1.resultRowsetsOf)(options.name, options, options.resultColumns);
|
|
317
312
|
// A decision component for a gate that never fires is configuration that
|
|
318
313
|
// lies — configured-and-inert looks exactly like configured-and-working
|
|
319
314
|
// (the `.checkIn({ scorer })`-with-minimal-evidence precedent). And a
|
|
@@ -382,6 +377,7 @@ function defineTool(options) {
|
|
|
382
377
|
...(options.resultClass !== undefined && { resultClass: options.resultClass }),
|
|
383
378
|
...(options.resultKind !== undefined && { resultKind: options.resultKind }),
|
|
384
379
|
...(options.resultColumns !== undefined && { resultColumns: options.resultColumns }),
|
|
380
|
+
...(resultRowsets !== undefined && { resultRowsets }),
|
|
385
381
|
...(options.owner !== undefined && { owner: options.owner }),
|
|
386
382
|
...(options.argumentsFrom !== undefined && { argumentsFrom: options.argumentsFrom }),
|
|
387
383
|
...(options.composedOf !== undefined && { composedOf: options.composedOf }),
|
package/dist/tools/tools.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.js","sourceRoot":"","sources":["../../src/tools/tools.ts"],"names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C,OAAO,CAAC,OAAO,KAAK,SAAS,IAAI,EAAE,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;QAClE,GAAG,CAAC,OAAO,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,CAAC;QACrF,GAAG,CAAC,OAAO,CAAC,MAAM,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,IAAA,0BAAc,EAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;QAC/E,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC;IACF,2EAA2E;IAC3E,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM;QAAE,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAC1D,8EAA8E;IAC9E,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS;QAAE,IAAA,4BAAc,EAAC,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IACjE,OAAO,IAAI,CAAC;AACd,CAAC;AA3HD,gCA2HC"}
|
|
@@ -15,6 +15,7 @@ export declare function decisionsShapes(): {
|
|
|
15
15
|
'agentfootprint.fallback.triggered': import("../../auditBounding.js").BoundRule;
|
|
16
16
|
'agentfootprint.memory.retrieved': import("../../auditBounding.js").BoundRule;
|
|
17
17
|
'agentfootprint.integrity.context_error': import("../../auditBounding.js").BoundRule;
|
|
18
|
+
'agentfootprint.tools.rowset_checked': import("../../auditBounding.js").BoundRule;
|
|
18
19
|
'agentfootprint.tools.effect': import("../../auditBounding.js").BoundRule;
|
|
19
20
|
'agentfootprint.pause.request': import("../../auditBounding.js").BoundRule;
|
|
20
21
|
'agentfootprint.artifacts.minted': import("../../auditBounding.js").BoundRule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../../../../../../src/adapters/observability/auditShapes/events/decisions.ts"],"names":[],"mappings":"AAkBA,wBAAgB,eAAe
|
|
1
|
+
{"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../../../../../../src/adapters/observability/auditShapes/events/decisions.ts"],"names":[],"mappings":"AAkBA,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgb9B"}
|
|
@@ -9,7 +9,7 @@ export declare function sameArtifactMeta(left: ArtifactMeta, right: ArtifactMeta
|
|
|
9
9
|
export declare function boundedSourceDataset(artifacts: ToolArtifacts, expected: ArtifactMeta, maxBytes: number, signal?: AbortSignal): Promise<ArtifactRecord | undefined>;
|
|
10
10
|
/** Explicitly authorized paths only; unrelated cells never reach a producer mapper. */
|
|
11
11
|
export declare function selectedSourceFields(rows: readonly unknown[], fields: Readonly<Record<string, readonly string[]>>): readonly Readonly<Record<string, unknown>>[];
|
|
12
|
-
export declare function declaredSourceDatasets(declarations: readonly SourceEvidenceDatasetDeclaration[] | undefined, served: unknown, artifacts: ToolArtifacts, publications: ReadonlyMap<string, ArtifactMeta>, signal?: AbortSignal): Promise<Readonly<Record<string, SourceEvidenceSource>>>;
|
|
12
|
+
export declare function declaredSourceDatasets(declarations: readonly SourceEvidenceDatasetDeclaration[] | undefined, served: unknown, artifacts: ToolArtifacts, publications: Pick<ReadonlyMap<string, ArtifactMeta>, 'get'>, signal?: AbortSignal): Promise<Readonly<Record<string, SourceEvidenceSource>>>;
|
|
13
13
|
/** Exact value presence establishes association, not truth of a producer's relationships. */
|
|
14
14
|
export declare function containsSourceRef(value: unknown, ref: string): boolean;
|
|
15
15
|
/** Exact structural occurrence, not semantic attribution or identifier extraction. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasets.d.ts","sourceRoot":"","sources":["../../../../src/artifacts/sourceEvidence/datasets.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,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GAAG,OAAO,CAS/E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,CAItE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Component-owned declarations, paired with actual native catalog implementations. */
|
|
2
|
+
import type { Tool } from '../../../tools/tools.js';
|
|
3
|
+
import type { ToolParty } from '../../../tools/toolParty.js';
|
|
4
|
+
import { type ToolResultRowset } from '../../../tools/resultRowsets.js';
|
|
5
|
+
import type { ToolResolver } from '../stages/toolResolver.js';
|
|
6
|
+
export interface ResultRowsetCatalog {
|
|
7
|
+
readonly declarations: ReadonlyMap<string, readonly ToolResultRowset[]>;
|
|
8
|
+
readonly get: (tool: Tool) => readonly ToolResultRowset[] | undefined;
|
|
9
|
+
}
|
|
10
|
+
/** Snapshot only inert metadata; preserve class/private-field/this-backed Tool identity. */
|
|
11
|
+
export declare function resultRowsetCatalog(entries: Iterable<readonly [string, Tool]>): ResultRowsetCatalog;
|
|
12
|
+
export declare function clearProviderRowsets(cache: object): void;
|
|
13
|
+
export declare function holdProviderRowsets(cache: object, catalog: ResultRowsetCatalog): void;
|
|
14
|
+
/** Read the same current/pinned party as dispatch, then the exact Tool's held metadata. */
|
|
15
|
+
export declare function resultRowsetsReader(registered: ResultRowsetCatalog, providerCache: object, resolve: ToolResolver): (toolName: string, tool: Tool, party?: ToolParty) => readonly ToolResultRowset[] | undefined;
|
|
16
|
+
/** Resolve only names in the current response, not the whole provider catalog. */
|
|
17
|
+
export declare function declaringRowsetTools(registered: ResultRowsetCatalog, providerCache: object, resolve: ToolResolver, names: Iterable<string>): ReadonlySet<string>;
|
|
18
|
+
//# sourceMappingURL=catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/resultRowsets/catalog.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,OAAO,KAAK,EAAE,IAAI,EA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types.js';
|
|
3
|
+
import type { ToolParty } from '../../slots/buildToolsSlot.js';
|
|
4
|
+
import type { Tool, ToolExecutionContext } from '../../../tools/tools.js';
|
|
5
|
+
import type { ToolRowsetCheckReason } from '../../../events/payloads/toolRowsets.js';
|
|
6
|
+
import type { ToolCallsHandlerDeps } from '../stages/toolCalls/contracts/handlerDeps.js';
|
|
7
|
+
import { type SourceCaptureLanding } from '../sourceEvidence/capture.js';
|
|
8
|
+
import { type RowsetCall } from './judge.js';
|
|
9
|
+
export interface ResultFinalizationLanding extends SourceCaptureLanding {
|
|
10
|
+
readonly unavailableReason?: ToolRowsetCheckReason;
|
|
11
|
+
}
|
|
12
|
+
export interface NativeResultFinalizer {
|
|
13
|
+
(served: unknown, landing: ResultFinalizationLanding): Promise<string | undefined>;
|
|
14
|
+
readonly needsPublications: boolean;
|
|
15
|
+
entered(context: ToolExecutionContext): void;
|
|
16
|
+
returned(): void;
|
|
17
|
+
withheld(): void;
|
|
18
|
+
assertFinalized(): void;
|
|
19
|
+
close(): void;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* One invocation owns publication membership, final column checks and source
|
|
23
|
+
* retention. No capability, payload or callback crosses a native checkpoint.
|
|
24
|
+
*/
|
|
25
|
+
export declare function nativeResultFinalizer(scope: TypedScope<AgentState>, tool: Tool | undefined, call: RowsetCall, deps: Pick<ToolCallsHandlerDeps, 'columnCheckMode' | 'resultRowsetsFor' | 'integrityLedger' | 'sourceEvidenceConfig' | 'currentRun' | 'isRunRetired'>, runId: string | undefined, party?: ToolParty): NativeResultFinalizer | undefined;
|
|
26
|
+
//# sourceMappingURL=finalization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"finalization.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/resultRowsets/finalization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,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16 @@
|
|
|
1
|
+
import type { RowsetReading } from '../../../integrity/column-types/check.js';
|
|
2
|
+
/** An unavailable binding is not a fabricated column violation. */
|
|
3
|
+
export declare class RowsetUnavailable extends Error {
|
|
4
|
+
readonly reason: 'source-over-bound' | 'unsupported-shape';
|
|
5
|
+
constructor(reason: 'source-over-bound' | 'unsupported-shape');
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Detach the declared inline rows without executing accessors or serialization
|
|
9
|
+
* hooks. Primitive types and genuine Dates retain the existing column judge's
|
|
10
|
+
* semantics. The byte budget counts JSON punctuation/escaping; non-JSON atoms
|
|
11
|
+
* use their literal spelling, and Dates use their ISO-width representation.
|
|
12
|
+
*/
|
|
13
|
+
export declare function inlineSnapshot(value: unknown, maxBytes?: number, maxDepth?: number): unknown;
|
|
14
|
+
/** Read only bounded own row objects; empty is deliberately left to the caller. */
|
|
15
|
+
export declare function inlineRowset(value: unknown, maxRows?: number, maxBytes?: number): RowsetReading;
|
|
16
|
+
//# sourceMappingURL=inlineRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inlineRows.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/resultRowsets/inlineRows.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAE9E,mEAAmE;AACnE,qBAAa,iBAAkB,SAAQ,KAAK;IAC9B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,GAAG,mBAAmB;gBAAjD,MAAM,EAAE,mBAAmB,GAAG,mBAAmB;CAGvE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,SAAU,EAAE,QAAQ,SAAK,GAAG,OAAO,CAgFzF;AAED,mFAAmF;AACnF,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,SAAO,EAAE,QAAQ,SAAU,GAAG,aAAa,CAc9F"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TypedScope } from 'footprintjs';
|
|
2
|
+
import type { AgentState } from '../types.js';
|
|
3
|
+
import type { ToolExecutionContext } from '../../../tools/tools.js';
|
|
4
|
+
import type { ToolResultRowset } from '../../../tools/resultRowsets.js';
|
|
5
|
+
import type { ToolRowsetCheckReason } from '../../../events/payloads/toolRowsets.js';
|
|
6
|
+
import { type ColumnCheckMode } from '../../../integrity/column-types/check.js';
|
|
7
|
+
import type { ToolCallsHandlerDeps } from '../stages/toolCalls/contracts/handlerDeps.js';
|
|
8
|
+
import type { SourcePublicationReceipt } from '../sourceEvidence/publications.js';
|
|
9
|
+
export declare const UNAVAILABLE_ROWSET_REFUSAL = "Result rejected: a declared rowset was unavailable for its column check. No data was returned.";
|
|
10
|
+
export interface RowsetCall {
|
|
11
|
+
readonly toolName: string;
|
|
12
|
+
readonly toolCallId: string;
|
|
13
|
+
readonly iteration: number;
|
|
14
|
+
}
|
|
15
|
+
/** The existing two check kinds account honestly for an undispatched result. */
|
|
16
|
+
export declare function noteUnansweredRowsets(ledger: ToolCallsHandlerDeps['integrityLedger'], declarations: readonly ToolResultRowset[] | undefined): void;
|
|
17
|
+
/** One deterministic final-surface judgment, before retention or delivery. */
|
|
18
|
+
export declare function judgeGovernedRowsets(scope: TypedScope<AgentState>, call: RowsetCall, declarations: readonly ToolResultRowset[], mode: ColumnCheckMode, served: unknown, context: ToolExecutionContext | undefined, publications: SourcePublicationReceipt | undefined, active: () => boolean, ledger: ToolCallsHandlerDeps['integrityLedger'], unavailableReason?: ToolRowsetCheckReason): Promise<string | undefined>;
|
|
19
|
+
//# sourceMappingURL=judge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"judge.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/resultRowsets/judge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,UAA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../tools/resultRowsets.js';
|
|
2
|
+
import type { ToolExecutionContext } from '../../../tools/tools.js';
|
|
3
|
+
import type { ToolRowsetCheckReason } from '../../../events/payloads/toolRowsets.js';
|
|
4
|
+
import type { RowsetReading } from '../../../integrity/column-types/check.js';
|
|
5
|
+
import type { SourcePublicationReceipt } from '../sourceEvidence/publications.js';
|
|
6
|
+
export interface GovernedRowset {
|
|
7
|
+
readonly reason: ToolRowsetCheckReason;
|
|
8
|
+
readonly available: boolean;
|
|
9
|
+
readonly reading?: RowsetReading;
|
|
10
|
+
}
|
|
11
|
+
/** Read only the explicit final binding and this invocation's native receipt. */
|
|
12
|
+
export declare function readGovernedRowset(declaration: ToolResultRowset, served: unknown, context: ToolExecutionContext | undefined, publications: SourcePublicationReceipt | undefined, active: () => boolean): Promise<GovernedRowset>;
|
|
13
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/resultRowsets/read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAW9E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAGlF,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IACvC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC;CAClC;AAMD,iFAAiF;AACjF,wBAAsB,kBAAkB,CACtC,WAAW,EAAE,gBAAgB,EAC7B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,oBAAoB,GAAG,SAAS,EACzC,YAAY,EAAE,wBAAwB,GAAG,SAAS,EAClD,MAAM,EAAE,MAAM,OAAO,GACpB,OAAO,CAAC,cAAc,CAAC,CA8DzB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TypedScope } from 'footprintjs';
|
|
2
|
+
import type { AgentState } from '../types.js';
|
|
3
|
+
import type { NativeResultFinalizer, ResultFinalizationLanding } from './finalization.js';
|
|
4
|
+
import type { ToolLimitsOperations } from '../stages/toolCalls/contracts/operations/limits.js';
|
|
5
|
+
/** The three executing resume owners use the same final refusal on both channels. */
|
|
6
|
+
export declare function finalizeResumedResult(scope: TypedScope<AgentState>, finalizer: NativeResultFinalizer, toolName: string, values: {
|
|
7
|
+
readonly result: unknown;
|
|
8
|
+
readonly modelResult: unknown;
|
|
9
|
+
}, landing: ResultFinalizationLanding, cap: ToolLimitsOperations['capResults'], negativeResultId?: string): Promise<{
|
|
10
|
+
values: {
|
|
11
|
+
readonly result: unknown;
|
|
12
|
+
readonly modelResult: unknown;
|
|
13
|
+
};
|
|
14
|
+
refused: false;
|
|
15
|
+
} | {
|
|
16
|
+
values: {
|
|
17
|
+
readonly result: unknown;
|
|
18
|
+
readonly modelResult: unknown;
|
|
19
|
+
};
|
|
20
|
+
refused: true;
|
|
21
|
+
}>;
|
|
22
|
+
//# sourceMappingURL=resumed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resumed.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/resultRowsets/resumed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC1F,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oDAAoD,CAAC;AAG/F,qFAAqF;AACrF,wBAAsB,qBAAqB,CACzC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,EAC7B,SAAS,EAAE,qBAAqB,EAChC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE;IAAE,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAA;CAAE,EACnE,OAAO,EAAE,yBAAyB,EAClC,GAAG,EAAE,oBAAoB,CAAC,YAAY,CAAC,EACvC,gBAAgB,CAAC,EAAE,MAAM;;yBAHE,OAAO;8BAAwB,OAAO;;;;;;;;;GAYlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"owner.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/runtime/chart/owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAQlE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AA2B7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,CACR,YAAY,EACV,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,QAAQ,GACR,eAAe,GACf,cAAc,GACd,wBAAwB,GACxB,QAAQ,GACR,gBAAgB,GAChB,cAAc,CACjB,GACC,iBAAiB,CAAC,OAAO,YAAY,CAAC,GACtC,iBAAiB,CAAC,OAAO,UAAU,CAAC,GACpC,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,GAC3C,iBAAiB,CAAC,OAAO,YAAY,CAAC,GACvC,SAAS,
|
|
1
|
+
{"version":3,"file":"owner.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/runtime/chart/owner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAQlE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AA2B7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAIpD,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,CACR,YAAY,EACV,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,QAAQ,GACR,eAAe,GACf,cAAc,GACd,wBAAwB,GACxB,QAAQ,GACR,gBAAgB,GAChB,cAAc,CACjB,GACC,iBAAiB,CAAC,OAAO,YAAY,CAAC,GACtC,iBAAiB,CAAC,OAAO,UAAU,CAAC,GACpC,iBAAiB,CAAC,OAAO,iBAAiB,CAAC,GAC3C,iBAAiB,CAAC,OAAO,YAAY,CAAC,GACvC,SAAS,CA4eX"}
|
|
@@ -3,6 +3,7 @@ import { type RunnerScopeValues } from '../../../runnerExecution.js';
|
|
|
3
3
|
import type { LLMToolSchema } from '../../../../provider-contract/types.js';
|
|
4
4
|
import { buildCallLLMStage } from '../../stages/callLLM.js';
|
|
5
5
|
import type { AgentConfiguration } from '../configuration/types.js';
|
|
6
|
+
import type { buildSlots } from '../slots/buildSlots.js';
|
|
6
7
|
/** Build-time declarations and live native ports for this one stage factory. */
|
|
7
8
|
export interface RequestEnvironment {
|
|
8
9
|
readonly configuration: AgentConfiguration;
|
|
@@ -20,6 +21,8 @@ export interface RequestEnvironment {
|
|
|
20
21
|
readonly toolGrounding: NonNullable<Parameters<typeof buildCallLLMStage>[0]['toolGrounding']>;
|
|
21
22
|
readonly toolWants: NonNullable<Parameters<typeof buildCallLLMStage>[0]['toolWants']>;
|
|
22
23
|
readonly toolColumns: ReadonlyMap<string, unknown>;
|
|
24
|
+
readonly toolRowsets: ReturnType<typeof buildSlots>['toolRowsets'];
|
|
25
|
+
readonly rowsetDeclaringToolsForValues: ReturnType<typeof buildSlots>['rowsetDeclaringToolsForValues'];
|
|
23
26
|
revisionWithholdsTools(): boolean;
|
|
24
27
|
}
|
|
25
28
|
/** Keep per-invocation stage creation inside the native component's existing memo. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/runtime/request/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/runtime/request/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAE5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,gFAAgF;AAChF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,aAAa,EAAE,kBAAkB,CAAC;IAC3C,QAAQ,CAAC,eAAe,EAAE,OAAO,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Slots(this: Pick<AgentContext, 'configuration' | 'i
|
|
|
24
24
|
displayNameOfFor: ((scope: object) => (toolName: string) => string | undefined) | undefined;
|
|
25
25
|
toolGrounding: Map<string, readonly string[]>;
|
|
26
26
|
toolColumns: Map<string, Readonly<Record<string, import("../../../../index.js").ColumnType | import("../../../../index.js").ColumnDeclaration>>>;
|
|
27
|
+
toolRowsets: ReadonlyMap<string, readonly import("../../../../index.js").ToolResultRowset[]>;
|
|
28
|
+
resultRowsetsForValues: (values: AgentRunValues) => (toolName: string, tool: import("../../../../index.js").Tool<Record<string, unknown>, unknown>, party?: import("../../../slots/buildToolsSlot.js").ToolParty | undefined) => readonly import("../../../../index.js").ToolResultRowset[] | undefined;
|
|
29
|
+
rowsetDeclaringToolsForValues: (values: AgentRunValues, names: readonly string[]) => ReadonlySet<string>;
|
|
27
30
|
toolWants: ReadonlyMap<string, readonly string[]>;
|
|
28
31
|
toolsSubflow: import("footprintjs").FlowChart;
|
|
29
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildSlots.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/runtime/slots/buildSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAW5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"buildSlots.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/runtime/slots/buildSlots.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAW5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAM/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4CAA4C,CAAC;AAE9E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,aAAa,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,eAAe,CAAC,CAAC;IAC9E,QAAQ,CAAC,WAAW,EAAE,WAAW,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,cAAc,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAChF,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAClD,QAAQ,CAAC,WAAW,EAAE,SAAS,aAAa,EAAE,CAAC;IAC/C,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,YAAY,EAAE,OAAO,CAAC;IAC/B,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;CAC1E;AAED,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,CACR,YAAY,EACV,eAAe,GACf,yBAAyB,GACzB,0BAA0B,GAC1B,QAAQ,GACR,mBAAmB,CACtB,EACD,WAAW,EAAE,gBAAgB;;;gCA4BM,cAAc;6BAajB,MAAM;+BAKxB,MAAM,gBAEM,MAAM,KAAG,MAAM,GAAG,SAAS;;;;qCAyEb,cAAc;4CAEP,cAAc,SAAS,SAAS,MAAM,EAAE;;;EA2GxF"}
|
|
@@ -6,6 +6,7 @@ import { buildToolCallsHandler } from '../../stages/toolCalls/index.js';
|
|
|
6
6
|
import { buildToolRegistry } from '../../buildToolRegistry.js';
|
|
7
7
|
import type { AgentConfiguration } from '../configuration/types.js';
|
|
8
8
|
import type { StepPlanFor } from '../../../../injection-engine/skillSteps.js';
|
|
9
|
+
import type { buildSlots } from '../slots/buildSlots.js';
|
|
9
10
|
/** Build-time declarations and live native ports for this one stage factory. */
|
|
10
11
|
export interface ToolCallsEnvironment {
|
|
11
12
|
readonly configuration: AgentConfiguration;
|
|
@@ -20,6 +21,8 @@ export interface ToolCallsEnvironment {
|
|
|
20
21
|
readonly answerArmed: boolean;
|
|
21
22
|
readonly toolGrounding: NonNullable<Parameters<typeof buildToolCallsHandler>[0]['emptyLookupGrounding']>;
|
|
22
23
|
readonly toolColumns: NonNullable<Parameters<typeof buildToolCallsHandler>[0]['columnDeclarations']>;
|
|
24
|
+
readonly toolRowsets: ReturnType<typeof buildSlots>['toolRowsets'];
|
|
25
|
+
readonly resultRowsetsForValues: ReturnType<typeof buildSlots>['resultRowsetsForValues'];
|
|
23
26
|
readonly permissionChecker: AgentConfiguration['permissionChecker'];
|
|
24
27
|
readonly credentialProvider: AgentConfiguration['credentialProvider'];
|
|
25
28
|
readonly artifactStore: AgentConfiguration['artifactStore'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../../../../src/core/agent/runtime/toolCalls/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAIrE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,KAAK,EAAE,WAAW,EAAE,M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kBAAkB,cAAc,CAAC,qFA2Q/C"}
|
|
@@ -3,6 +3,7 @@ import type { Tool, ToolExecutionContext } from '../../../tools/tools.js';
|
|
|
3
3
|
import { type ResolvedSourceEvidenceOptions } from '../../../tools/sourceEvidence.js';
|
|
4
4
|
import type { ToolResultStatus } from '../../../semantics/toolOutcome.js';
|
|
5
5
|
import type { AgentState } from '../types.js';
|
|
6
|
+
import { type SourcePublicationReceipt } from './publications.js';
|
|
6
7
|
export interface SourceCaptureLanding {
|
|
7
8
|
readonly eligible: boolean;
|
|
8
9
|
readonly status?: ToolResultStatus;
|
|
@@ -15,5 +16,5 @@ export interface NativeSourceCapture {
|
|
|
15
16
|
withheld(): void;
|
|
16
17
|
}
|
|
17
18
|
/** Only actual native execution can create this closure; producer callbacks cannot append the index. */
|
|
18
|
-
export declare function nativeSourceCapture(scope: TypedScope<AgentState>, tool: Tool, context: ToolExecutionContext, options: ResolvedSourceEvidenceOptions | undefined, active: () => boolean): NativeSourceCapture | undefined;
|
|
19
|
+
export declare function nativeSourceCapture(scope: TypedScope<AgentState>, tool: Tool, context: ToolExecutionContext, options: ResolvedSourceEvidenceOptions | undefined, active: () => boolean, sharedPublications?: () => SourcePublicationReceipt | undefined): NativeSourceCapture | undefined;
|
|
19
20
|
//# sourceMappingURL=capture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/sourceEvidence/capture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"capture.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/sourceEvidence/capture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,KAAK,EAAE,IAAI,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAgB1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAGL,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAC;AAG3B,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,gBAAgB,CAAC;CACpC;AACD,MAAM,WAAW,mBAAmB;IAClC,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChE,iFAAiF;IACjF,QAAQ,IAAI,IAAI,CAAC;IACjB,6EAA6E;IAC7E,QAAQ,IAAI,IAAI,CAAC;CAClB;AAED,wGAAwG;AACxG,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,EAC7B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,6BAA6B,GAAG,SAAS,EAClD,MAAM,EAAE,MAAM,OAAO,EACrB,kBAAkB,CAAC,EAAE,MAAM,wBAAwB,GAAG,SAAS,GAC9D,mBAAmB,GAAG,SAAS,CAsKjC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { ArtifactMeta } from '../../../artifacts/types.js';
|
|
2
2
|
import type { ToolArtifacts } from '../../../artifacts/capability.js';
|
|
3
|
+
export type SourcePublicationReceipt = Pick<ReadonlyMap<string, ArtifactMeta>, 'get'>;
|
|
3
4
|
export declare function sourcePublicationSink(artifacts: ToolArtifacts): (meta: ArtifactMeta) => void;
|
|
4
|
-
|
|
5
|
+
/** Seal once at actual execute return; all native consumers share this same inert receipt. */
|
|
6
|
+
export declare function finalizeSourcePublications(artifacts: ToolArtifacts): SourcePublicationReceipt;
|
|
5
7
|
export declare function closeSourcePublications(artifacts: ToolArtifacts): void;
|
|
6
8
|
//# sourceMappingURL=publications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publications.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/sourceEvidence/publications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"publications.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/sourceEvidence/publications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAItE,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,YAAY,CAAC,EAAE,KAAK,CAAC,CAAC;AAqCtF,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,aAAa,GAAG,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAO5F;AACD,8FAA8F;AAC9F,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,aAAa,GAAG,wBAAwB,CAc7F;AACD,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,aAAa,GAAG,IAAI,CAYtE"}
|
|
@@ -39,44 +39,10 @@
|
|
|
39
39
|
* again, and the call's own step pauses in that batch, which asked nothing.
|
|
40
40
|
*/
|
|
41
41
|
import { type TypedScope } from 'footprintjs';
|
|
42
|
-
import
|
|
42
|
+
import type { ArgumentAskDeps } from './argumentAskDeps.js';
|
|
43
|
+
export type { ArgumentAskDeps } from './argumentAskDeps.js';
|
|
44
|
+
import { type ArgumentResolution } from '../arguments/resolve.js';
|
|
43
45
|
import type { AgentState } from '../types.js';
|
|
44
|
-
import type { ZoneName } from '../../../time/zone.js';
|
|
45
|
-
import type { TimeAskMessages } from '../../../time/ask.js';
|
|
46
|
-
import type { TimePolicy } from '../../../time/resolve.js';
|
|
47
|
-
/** What the dispatch stage hands the ask — closures, never scope. */
|
|
48
|
-
export interface ArgumentAskDeps {
|
|
49
|
-
/** Already refused calls do not acquire new obligations. */
|
|
50
|
-
readonly excludedCallIds?: readonly string[];
|
|
51
|
-
readonly admitAnswer?: () => void;
|
|
52
|
-
readonly saveParties?: () => void;
|
|
53
|
-
readonly pendingAsk?: boolean;
|
|
54
|
-
readonly settledAsk?: () => void;
|
|
55
|
-
readonly refuseMalformedBatch?: () => boolean;
|
|
56
|
-
readonly argumentSources?: true;
|
|
57
|
-
/** The implementation that will answer a name — the shared dispatch resolver's. */
|
|
58
|
-
readonly toolOf: ToolOf;
|
|
59
|
-
/** The run id a stamped request id carries; absent → the turn's start time. */
|
|
60
|
-
readonly runId?: () => string | undefined;
|
|
61
|
-
/** The host's own context for the ask (`AgentOptions.argumentAskContext`). */
|
|
62
|
-
readonly hostContext?: () => unknown;
|
|
63
|
-
/**
|
|
64
|
-
* Present exactly under `.time()`: an answer for a period argument is also
|
|
65
|
-
* judged against the tool's declared facts at the turn's clock
|
|
66
|
-
* (`arguments/ask/validation.ts` · `checkAnswer`) — `appZone` is the app's `.time({ zone })`.
|
|
67
|
-
* `reader` is present exactly under `.time({ reader })`: a call that left
|
|
68
|
-
* its period out while the turn's one mention was open is asked THAT
|
|
69
|
-
* mention's window (the lazy word-driven ask) — `policy` re-reads the
|
|
70
|
-
* mention after a zone answer, `messages` are the app's catalog overrides.
|
|
71
|
-
*/
|
|
72
|
-
readonly time?: {
|
|
73
|
-
readonly appZone?: ZoneName;
|
|
74
|
-
readonly reader?: {
|
|
75
|
-
readonly policy: TimePolicy;
|
|
76
|
-
readonly messages?: Partial<TimeAskMessages>;
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
46
|
/** What the ask hands the batch back. */
|
|
81
47
|
export interface AskedBatch {
|
|
82
48
|
/** Per call id, the entry ToolCalls applies: the layer's fills plus the answered ones, or a refusal. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argumentAsk.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/argumentAsk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAAoC,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"argumentAsk.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/argumentAsk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EAAoC,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAChF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAoB5D,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAC;AAwBjC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA2F9C,yCAAyC;AACzC,MAAM,WAAW,UAAU;IACzB,wGAAwG;IACxG,QAAQ,CAAC,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC;IAC9D,6FAA6F;IAC7F,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC;CACzB;AAuGD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,EAC7B,WAAW,EAAE,WAAW,CAAC,MAAM,EAAE,kBAAkB,CAAC,EACpD,IAAI,EAAE,eAAe,GACpB,UAAU,CAiQZ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ToolOf } from '../arguments/resolve.js';
|
|
2
|
+
import type { ZoneName } from '../../../time/zone.js';
|
|
3
|
+
import type { TimeAskMessages } from '../../../time/ask.js';
|
|
4
|
+
import type { TimePolicy } from '../../../time/resolve.js';
|
|
5
|
+
/** What the dispatch stage hands the ask — closures, never scope. */
|
|
6
|
+
export interface ArgumentAskDeps {
|
|
7
|
+
/** Already refused calls do not acquire new obligations. */
|
|
8
|
+
readonly excludedCallIds?: readonly string[];
|
|
9
|
+
readonly admitAnswer?: () => void;
|
|
10
|
+
readonly saveParties?: () => void;
|
|
11
|
+
/** Immediately before a newly raised input pause, while this batch is wholly undispatched. */
|
|
12
|
+
readonly beforePause?: () => void;
|
|
13
|
+
readonly pendingAsk?: boolean;
|
|
14
|
+
readonly settledAsk?: () => void;
|
|
15
|
+
readonly refuseMalformedBatch?: () => boolean;
|
|
16
|
+
readonly argumentSources?: true;
|
|
17
|
+
/** The implementation that will answer a name — the shared dispatch resolver's. */
|
|
18
|
+
readonly toolOf: ToolOf;
|
|
19
|
+
/** The run id a stamped request id carries; absent → the turn's start time. */
|
|
20
|
+
readonly runId?: () => string | undefined;
|
|
21
|
+
/** The host's own context for the ask (`AgentOptions.argumentAskContext`). */
|
|
22
|
+
readonly hostContext?: () => unknown;
|
|
23
|
+
/**
|
|
24
|
+
* Present exactly under `.time()`: an answer for a period argument is also
|
|
25
|
+
* judged against the tool's declared facts at the turn's clock
|
|
26
|
+
* (`arguments/ask/validation.ts` · `checkAnswer`) — `appZone` is the app's `.time({ zone })`.
|
|
27
|
+
* `reader` is present exactly under `.time({ reader })`: a call that left
|
|
28
|
+
* its period out while the turn's one mention was open is asked THAT
|
|
29
|
+
* mention's window (the lazy word-driven ask) — `policy` re-reads the
|
|
30
|
+
* mention after a zone answer, `messages` are the app's catalog overrides.
|
|
31
|
+
*/
|
|
32
|
+
readonly time?: {
|
|
33
|
+
readonly appZone?: ZoneName;
|
|
34
|
+
readonly reader?: {
|
|
35
|
+
readonly policy: TimePolicy;
|
|
36
|
+
readonly messages?: Partial<TimeAskMessages>;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=argumentAskDeps.d.ts.map
|