agentfootprint 10.9.0 → 11.0.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 +14 -4
- package/CAPABILITIES.md +16 -3
- package/README.md +115 -52
- package/ai-instructions/claude-code/SKILL.md +14 -4
- package/dist/adapters/hosting/agentCoreA2A.js +4 -0
- package/dist/adapters/hosting/agentCoreA2A.js.map +1 -1
- package/dist/adapters/hosting/firestoreSessions.js +9 -2
- package/dist/adapters/hosting/firestoreSessions.js.map +1 -1
- package/dist/adapters/hosting/googleAgentEngine.js +4 -6
- package/dist/adapters/hosting/googleAgentEngine.js.map +1 -1
- package/dist/adapters/llm/AnthropicProvider.js +4 -0
- package/dist/adapters/llm/AnthropicProvider.js.map +1 -1
- package/dist/adapters/llm/BrowserAnthropicProvider.js +4 -0
- package/dist/adapters/llm/BrowserAnthropicProvider.js.map +1 -1
- package/dist/adapters/llm/MockProvider.js +2 -0
- package/dist/adapters/llm/MockProvider.js.map +1 -1
- package/dist/ag-ui/request.js +27 -2
- package/dist/ag-ui/request.js.map +1 -1
- package/dist/ag-ui/serializer.js +21 -8
- package/dist/ag-ui/serializer.js.map +1 -1
- package/dist/answer-account/facts/howSure.js +3 -0
- package/dist/answer-account/facts/howSure.js.map +1 -1
- package/dist/answer-account/templates.js +4 -1
- package/dist/answer-account/templates.js.map +1 -1
- package/dist/answer-validation/agentChecks.js +130 -0
- package/dist/answer-validation/agentChecks.js.map +1 -0
- package/dist/answer-validation/index.js +5 -1
- package/dist/answer-validation/index.js.map +1 -1
- package/dist/answer-validation/outputSchema.js +8 -1
- package/dist/answer-validation/outputSchema.js.map +1 -1
- package/dist/answer-validation/types.js +9 -2
- package/dist/answer-validation/types.js.map +1 -1
- package/dist/answer-validation/validate.js +82 -3
- package/dist/answer-validation/validate.js.map +1 -1
- package/dist/core/Agent.js +214 -59
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/RunnerBase.js +4 -0
- package/dist/core/RunnerBase.js.map +1 -1
- package/dist/core/agent/AgentBuilder.js +139 -33
- package/dist/core/agent/AgentBuilder.js.map +1 -1
- package/dist/core/agent/arguments/checks.js +1 -1
- package/dist/core/agent/arguments/subflow.js +1 -0
- package/dist/core/agent/arguments/subflow.js.map +1 -1
- package/dist/core/agent/assessment/assess.js +31 -0
- package/dist/core/agent/assessment/assess.js.map +1 -1
- package/dist/core/agent/assessment/compose.js +3 -0
- package/dist/core/agent/assessment/compose.js.map +1 -1
- package/dist/core/agent/assessment/reasons.js +19 -1
- package/dist/core/agent/assessment/reasons.js.map +1 -1
- package/dist/core/agent/buildAgentChart.js +7 -17
- package/dist/core/agent/buildAgentChart.js.map +1 -1
- package/dist/core/agent/buildDynamicAgentChart.js +18 -15
- package/dist/core/agent/buildDynamicAgentChart.js.map +1 -1
- package/dist/core/agent/buildToolRegistry.js +13 -0
- package/dist/core/agent/buildToolRegistry.js.map +1 -1
- package/dist/core/agent/composeRequest.js +19 -1
- package/dist/core/agent/composeRequest.js.map +1 -1
- package/dist/core/agent/evidence/answerCarriers.js +1 -1
- package/dist/core/agent/evidence/answerCarriers.js.map +1 -1
- package/dist/core/agent/evidence/evidenceIndex.js +1 -1
- package/dist/core/agent/evidence/evidenceIndex.js.map +1 -1
- package/dist/core/agent/evidence/extract.js +139 -32
- package/dist/core/agent/evidence/extract.js.map +1 -1
- package/dist/core/agent/evidence/figures.js +1 -1
- package/dist/core/agent/evidence/figures.js.map +1 -1
- package/dist/core/agent/evidence/frames.js +3 -1
- package/dist/core/agent/evidence/frames.js.map +1 -1
- package/dist/core/agent/evidence/gate.js +10 -2
- package/dist/core/agent/evidence/gate.js.map +1 -1
- package/dist/core/agent/evidence/numericRanges.js +1 -1
- package/dist/core/agent/evidence/numericRanges.js.map +1 -1
- package/dist/core/agent/evidence/recovery.js +3 -1
- package/dist/core/agent/evidence/recovery.js.map +1 -1
- package/dist/core/agent/evidence/resultCarries.js +3 -3
- package/dist/core/agent/evidence/resultCarries.js.map +1 -1
- package/dist/core/agent/findings/context.js +163 -0
- package/dist/core/agent/findings/context.js.map +1 -0
- package/dist/core/agent/findings/contingent.js +1 -1
- package/dist/core/agent/findings/contingent.js.map +1 -1
- package/dist/core/agent/findings/instruction.js +26 -0
- package/dist/core/agent/findings/instruction.js.map +1 -0
- package/dist/core/agent/findings/ledger.js +49 -0
- package/dist/core/agent/findings/ledger.js.map +1 -1
- package/dist/core/agent/findings/negativeProse.js +53 -0
- package/dist/core/agent/findings/negativeProse.js.map +1 -0
- package/dist/core/agent/findings/offer.js +9 -57
- package/dist/core/agent/findings/offer.js.map +1 -1
- package/dist/core/agent/findings/reserved.js +12 -83
- package/dist/core/agent/findings/reserved.js.map +1 -1
- package/dist/core/agent/findings/types.js +3 -2
- package/dist/core/agent/findings/types.js.map +1 -1
- package/dist/core/agent/honesty/mounts.js +6 -0
- package/dist/core/agent/honesty/mounts.js.map +1 -1
- package/dist/core/agent/nativeOutputFormat.js +19 -1
- package/dist/core/agent/nativeOutputFormat.js.map +1 -1
- package/dist/core/agent/negativeClaims/capture.js +522 -0
- package/dist/core/agent/negativeClaims/capture.js.map +1 -0
- package/dist/core/agent/negativeClaims/checkpoint.js +83 -0
- package/dist/core/agent/negativeClaims/checkpoint.js.map +1 -0
- package/dist/core/agent/negativeClaims/config.js +192 -0
- package/dist/core/agent/negativeClaims/config.js.map +1 -0
- package/dist/core/agent/negativeClaims/delivery.js +249 -0
- package/dist/core/agent/negativeClaims/delivery.js.map +1 -0
- package/dist/core/agent/negativeClaims/observe.js +38 -0
- package/dist/core/agent/negativeClaims/observe.js.map +1 -0
- package/dist/core/agent/negativeClaims/prose.js +116 -0
- package/dist/core/agent/negativeClaims/prose.js.map +1 -0
- package/dist/core/agent/negativeClaims/recheck.js +37 -0
- package/dist/core/agent/negativeClaims/recheck.js.map +1 -0
- package/dist/core/agent/outputEnforcement.js.map +1 -1
- package/dist/core/agent/stages/answerEvidence.js +21 -0
- package/dist/core/agent/stages/answerEvidence.js.map +1 -0
- package/dist/core/agent/stages/answerValidation.js +112 -4
- package/dist/core/agent/stages/answerValidation.js.map +1 -1
- package/dist/core/agent/stages/callLLM.js +82 -41
- package/dist/core/agent/stages/callLLM.js.map +1 -1
- package/dist/core/agent/stages/evidenceRecheck.js +16 -2
- package/dist/core/agent/stages/evidenceRecheck.js.map +1 -1
- package/dist/core/agent/stages/outputRetry.js +23 -7
- package/dist/core/agent/stages/outputRetry.js.map +1 -1
- package/dist/core/agent/stages/prepareFinal.js +6 -1
- package/dist/core/agent/stages/prepareFinal.js.map +1 -1
- package/dist/core/agent/stages/reliabilityExecution.js +3 -0
- package/dist/core/agent/stages/reliabilityExecution.js.map +1 -1
- package/dist/core/agent/stages/route.js +81 -33
- package/dist/core/agent/stages/route.js.map +1 -1
- package/dist/core/agent/stages/searchCoverage.js +121 -0
- package/dist/core/agent/stages/searchCoverage.js.map +1 -0
- package/dist/core/agent/stages/seed.js +19 -21
- package/dist/core/agent/stages/seed.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +699 -76
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/agent/toolChoice/compose.js +1 -0
- package/dist/core/agent/toolChoice/compose.js.map +1 -1
- package/dist/core/agent/toolChoice/pick.js +2 -0
- package/dist/core/agent/toolChoice/pick.js.map +1 -1
- package/dist/core/checkin.js +82 -18
- package/dist/core/checkin.js.map +1 -1
- package/dist/core/consentRequest.js +844 -0
- package/dist/core/consentRequest.js.map +1 -0
- package/dist/core/pause.js +104 -6
- package/dist/core/pause.js.map +1 -1
- package/dist/core/runCheckpoint.js +8 -1
- package/dist/core/runCheckpoint.js.map +1 -1
- package/dist/core/slots/buildToolsSlot.js +4 -24
- package/dist/core/slots/buildToolsSlot.js.map +1 -1
- package/dist/debug.js +2 -0
- package/dist/debug.js.map +1 -1
- package/dist/esm/adapters/hosting/agentCoreA2A.js +4 -0
- package/dist/esm/adapters/hosting/agentCoreA2A.js.map +1 -1
- package/dist/esm/adapters/hosting/firestoreSessions.js +9 -2
- package/dist/esm/adapters/hosting/firestoreSessions.js.map +1 -1
- package/dist/esm/adapters/hosting/googleAgentEngine.js +4 -6
- package/dist/esm/adapters/hosting/googleAgentEngine.js.map +1 -1
- package/dist/esm/adapters/llm/AnthropicProvider.d.ts +1 -0
- package/dist/esm/adapters/llm/AnthropicProvider.js +5 -1
- package/dist/esm/adapters/llm/AnthropicProvider.js.map +1 -1
- package/dist/esm/adapters/llm/BrowserAnthropicProvider.d.ts +1 -0
- package/dist/esm/adapters/llm/BrowserAnthropicProvider.js +5 -1
- package/dist/esm/adapters/llm/BrowserAnthropicProvider.js.map +1 -1
- package/dist/esm/adapters/llm/MockProvider.d.ts +2 -0
- package/dist/esm/adapters/llm/MockProvider.js +2 -0
- package/dist/esm/adapters/llm/MockProvider.js.map +1 -1
- package/dist/esm/ag-ui/request.d.ts +4 -1
- package/dist/esm/ag-ui/request.js +27 -2
- package/dist/esm/ag-ui/request.js.map +1 -1
- package/dist/esm/ag-ui/serializer.d.ts +15 -2
- package/dist/esm/ag-ui/serializer.js +20 -7
- package/dist/esm/ag-ui/serializer.js.map +1 -1
- package/dist/esm/answer-account/facts/howSure.js +3 -0
- package/dist/esm/answer-account/facts/howSure.js.map +1 -1
- package/dist/esm/answer-account/templates.d.ts +4 -1
- package/dist/esm/answer-account/templates.js +4 -1
- package/dist/esm/answer-account/templates.js.map +1 -1
- package/dist/esm/answer-validation/agentChecks.d.ts +75 -0
- package/dist/esm/answer-validation/agentChecks.js +125 -0
- package/dist/esm/answer-validation/agentChecks.js.map +1 -0
- package/dist/esm/answer-validation/index.d.ts +2 -1
- package/dist/esm/answer-validation/index.js +1 -0
- package/dist/esm/answer-validation/index.js.map +1 -1
- package/dist/esm/answer-validation/outputSchema.d.ts +18 -7
- package/dist/esm/answer-validation/outputSchema.js +8 -1
- package/dist/esm/answer-validation/outputSchema.js.map +1 -1
- package/dist/esm/answer-validation/types.d.ts +125 -1
- package/dist/esm/answer-validation/types.js +9 -2
- package/dist/esm/answer-validation/types.js.map +1 -1
- package/dist/esm/answer-validation/validate.d.ts +11 -2
- package/dist/esm/answer-validation/validate.js +82 -3
- package/dist/esm/answer-validation/validate.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +25 -1
- package/dist/esm/core/Agent.js +202 -47
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/RunnerBase.js +4 -0
- package/dist/esm/core/RunnerBase.js.map +1 -1
- package/dist/esm/core/agent/AgentBuilder.d.ts +43 -12
- package/dist/esm/core/agent/AgentBuilder.js +135 -29
- package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/core/agent/arguments/checks.d.ts +1 -1
- package/dist/esm/core/agent/arguments/checks.js +1 -1
- package/dist/esm/core/agent/arguments/subflow.d.ts +6 -0
- package/dist/esm/core/agent/arguments/subflow.js +1 -0
- package/dist/esm/core/agent/arguments/subflow.js.map +1 -1
- package/dist/esm/core/agent/assessment/assess.js +31 -0
- package/dist/esm/core/agent/assessment/assess.js.map +1 -1
- package/dist/esm/core/agent/assessment/compose.js +3 -0
- package/dist/esm/core/agent/assessment/compose.js.map +1 -1
- package/dist/esm/core/agent/assessment/reasons.js +19 -1
- package/dist/esm/core/agent/assessment/reasons.js.map +1 -1
- package/dist/esm/core/agent/assessment/types.d.ts +3 -2
- package/dist/esm/core/agent/buildAgentChart.d.ts +4 -12
- package/dist/esm/core/agent/buildAgentChart.js +7 -17
- package/dist/esm/core/agent/buildAgentChart.js.map +1 -1
- package/dist/esm/core/agent/buildDynamicAgentChart.js +18 -15
- package/dist/esm/core/agent/buildDynamicAgentChart.js.map +1 -1
- package/dist/esm/core/agent/buildToolRegistry.js +13 -0
- package/dist/esm/core/agent/buildToolRegistry.js.map +1 -1
- package/dist/esm/core/agent/composeRequest.d.ts +19 -0
- package/dist/esm/core/agent/composeRequest.js +17 -0
- package/dist/esm/core/agent/composeRequest.js.map +1 -1
- package/dist/esm/core/agent/evidence/answerCarriers.js +1 -1
- package/dist/esm/core/agent/evidence/answerCarriers.js.map +1 -1
- package/dist/esm/core/agent/evidence/evidenceIndex.js +1 -1
- package/dist/esm/core/agent/evidence/evidenceIndex.js.map +1 -1
- package/dist/esm/core/agent/evidence/extract.d.ts +45 -6
- package/dist/esm/core/agent/evidence/extract.js +136 -30
- package/dist/esm/core/agent/evidence/extract.js.map +1 -1
- package/dist/esm/core/agent/evidence/figures.js +1 -1
- package/dist/esm/core/agent/evidence/figures.js.map +1 -1
- package/dist/esm/core/agent/evidence/frames.js +4 -2
- package/dist/esm/core/agent/evidence/frames.js.map +1 -1
- package/dist/esm/core/agent/evidence/gate.d.ts +6 -0
- package/dist/esm/core/agent/evidence/gate.js +11 -3
- package/dist/esm/core/agent/evidence/gate.js.map +1 -1
- package/dist/esm/core/agent/evidence/numericRanges.js +1 -1
- package/dist/esm/core/agent/evidence/numericRanges.js.map +1 -1
- package/dist/esm/core/agent/evidence/recovery.d.ts +2 -0
- package/dist/esm/core/agent/evidence/recovery.js +3 -1
- package/dist/esm/core/agent/evidence/recovery.js.map +1 -1
- package/dist/esm/core/agent/evidence/resultCarries.d.ts +2 -2
- package/dist/esm/core/agent/evidence/resultCarries.js +3 -3
- package/dist/esm/core/agent/evidence/resultCarries.js.map +1 -1
- package/dist/esm/core/agent/evidence/types.d.ts +17 -0
- package/dist/esm/core/agent/findings/context.d.ts +13 -0
- package/dist/esm/core/agent/findings/context.js +158 -0
- package/dist/esm/core/agent/findings/context.js.map +1 -0
- package/dist/esm/core/agent/findings/contingent.js +1 -1
- package/dist/esm/core/agent/findings/contingent.js.map +1 -1
- package/dist/esm/core/agent/findings/instruction.d.ts +12 -0
- package/dist/esm/core/agent/findings/instruction.js +22 -0
- package/dist/esm/core/agent/findings/instruction.js.map +1 -0
- package/dist/esm/core/agent/findings/ledger.d.ts +3 -0
- package/dist/esm/core/agent/findings/ledger.js +49 -0
- package/dist/esm/core/agent/findings/ledger.js.map +1 -1
- package/dist/esm/core/agent/findings/negativeProse.d.ts +1 -0
- package/dist/esm/core/agent/findings/negativeProse.js +49 -0
- package/dist/esm/core/agent/findings/negativeProse.js.map +1 -0
- package/dist/esm/core/agent/findings/offer.d.ts +9 -57
- package/dist/esm/core/agent/findings/offer.js +9 -57
- package/dist/esm/core/agent/findings/offer.js.map +1 -1
- package/dist/esm/core/agent/findings/reserved.d.ts +7 -31
- package/dist/esm/core/agent/findings/reserved.js +12 -83
- package/dist/esm/core/agent/findings/reserved.js.map +1 -1
- package/dist/esm/core/agent/findings/types.d.ts +11 -4
- package/dist/esm/core/agent/findings/types.js +3 -2
- package/dist/esm/core/agent/findings/types.js.map +1 -1
- package/dist/esm/core/agent/honesty/mounts.d.ts +7 -0
- package/dist/esm/core/agent/honesty/mounts.js +6 -0
- package/dist/esm/core/agent/honesty/mounts.js.map +1 -1
- package/dist/esm/core/agent/nativeOutputFormat.d.ts +2 -1
- package/dist/esm/core/agent/nativeOutputFormat.js +19 -1
- package/dist/esm/core/agent/nativeOutputFormat.js.map +1 -1
- package/dist/esm/core/agent/negativeClaims/capture.d.ts +65 -0
- package/dist/esm/core/agent/negativeClaims/capture.js +508 -0
- package/dist/esm/core/agent/negativeClaims/capture.js.map +1 -0
- package/dist/esm/core/agent/negativeClaims/checkpoint.d.ts +7 -0
- package/dist/esm/core/agent/negativeClaims/checkpoint.js +79 -0
- package/dist/esm/core/agent/negativeClaims/checkpoint.js.map +1 -0
- package/dist/esm/core/agent/negativeClaims/config.d.ts +66 -0
- package/dist/esm/core/agent/negativeClaims/config.js +185 -0
- package/dist/esm/core/agent/negativeClaims/config.js.map +1 -0
- package/dist/esm/core/agent/negativeClaims/delivery.d.ts +24 -0
- package/dist/esm/core/agent/negativeClaims/delivery.js +244 -0
- package/dist/esm/core/agent/negativeClaims/delivery.js.map +1 -0
- package/dist/esm/core/agent/negativeClaims/observe.d.ts +14 -0
- package/dist/esm/core/agent/negativeClaims/observe.js +34 -0
- package/dist/esm/core/agent/negativeClaims/observe.js.map +1 -0
- package/dist/esm/core/agent/negativeClaims/prose.d.ts +9 -0
- package/dist/esm/core/agent/negativeClaims/prose.js +112 -0
- package/dist/esm/core/agent/negativeClaims/prose.js.map +1 -0
- package/dist/esm/core/agent/negativeClaims/recheck.d.ts +7 -0
- package/dist/esm/core/agent/negativeClaims/recheck.js +32 -0
- package/dist/esm/core/agent/negativeClaims/recheck.js.map +1 -0
- package/dist/esm/core/agent/outputEnforcement.d.ts +5 -1
- package/dist/esm/core/agent/outputEnforcement.js.map +1 -1
- package/dist/esm/core/agent/receipt/receipt.d.ts +2 -2
- package/dist/esm/core/agent/stages/answerEvidence.d.ts +28 -0
- package/dist/esm/core/agent/stages/answerEvidence.js +16 -0
- package/dist/esm/core/agent/stages/answerEvidence.js.map +1 -0
- package/dist/esm/core/agent/stages/answerValidation.d.ts +15 -3
- package/dist/esm/core/agent/stages/answerValidation.js +113 -5
- package/dist/esm/core/agent/stages/answerValidation.js.map +1 -1
- package/dist/esm/core/agent/stages/callLLM.d.ts +11 -2
- package/dist/esm/core/agent/stages/callLLM.js +85 -44
- package/dist/esm/core/agent/stages/callLLM.js.map +1 -1
- package/dist/esm/core/agent/stages/evidenceRecheck.d.ts +6 -1
- package/dist/esm/core/agent/stages/evidenceRecheck.js +16 -2
- package/dist/esm/core/agent/stages/evidenceRecheck.js.map +1 -1
- package/dist/esm/core/agent/stages/outputRetry.js +23 -7
- package/dist/esm/core/agent/stages/outputRetry.js.map +1 -1
- package/dist/esm/core/agent/stages/prepareFinal.js +6 -1
- package/dist/esm/core/agent/stages/prepareFinal.js.map +1 -1
- package/dist/esm/core/agent/stages/reliabilityExecution.d.ts +3 -0
- package/dist/esm/core/agent/stages/reliabilityExecution.js +3 -0
- package/dist/esm/core/agent/stages/reliabilityExecution.js.map +1 -1
- package/dist/esm/core/agent/stages/route.d.ts +8 -2
- package/dist/esm/core/agent/stages/route.js +81 -33
- package/dist/esm/core/agent/stages/route.js.map +1 -1
- package/dist/esm/core/agent/stages/searchCoverage.d.ts +94 -0
- package/dist/esm/core/agent/stages/searchCoverage.js +117 -0
- package/dist/esm/core/agent/stages/searchCoverage.js.map +1 -0
- package/dist/esm/core/agent/stages/seed.d.ts +10 -0
- package/dist/esm/core/agent/stages/seed.js +19 -21
- package/dist/esm/core/agent/stages/seed.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.d.ts +16 -0
- package/dist/esm/core/agent/stages/toolCalls.js +700 -77
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/toolChoice/compose.d.ts +2 -0
- package/dist/esm/core/agent/toolChoice/compose.js +1 -0
- package/dist/esm/core/agent/toolChoice/compose.js.map +1 -1
- package/dist/esm/core/agent/toolChoice/pick.d.ts +2 -0
- package/dist/esm/core/agent/toolChoice/pick.js +2 -0
- package/dist/esm/core/agent/toolChoice/pick.js.map +1 -1
- package/dist/esm/core/agent/toolChoice/types.d.ts +1 -1
- package/dist/esm/core/agent/types.d.ts +86 -5
- package/dist/esm/core/checkin.d.ts +83 -7
- package/dist/esm/core/checkin.js +77 -15
- package/dist/esm/core/checkin.js.map +1 -1
- package/dist/esm/core/consentRequest.d.ts +488 -0
- package/dist/esm/core/consentRequest.js +817 -0
- package/dist/esm/core/consentRequest.js.map +1 -0
- package/dist/esm/core/pause.d.ts +88 -7
- package/dist/esm/core/pause.js +102 -5
- package/dist/esm/core/pause.js.map +1 -1
- package/dist/esm/core/runCheckpoint.d.ts +5 -1
- package/dist/esm/core/runCheckpoint.js +8 -1
- package/dist/esm/core/runCheckpoint.js.map +1 -1
- package/dist/esm/core/slots/buildToolsSlot.d.ts +4 -11
- package/dist/esm/core/slots/buildToolsSlot.js +4 -24
- package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
- package/dist/esm/debug.d.ts +1 -1
- package/dist/esm/debug.js +2 -0
- package/dist/esm/debug.js.map +1 -1
- package/dist/esm/events/payloads.d.ts +145 -3
- package/dist/esm/events/registry.d.ts +3 -1
- package/dist/esm/events/registry.js +2 -0
- package/dist/esm/events/registry.js.map +1 -1
- package/dist/esm/hosting/answeredPause.d.ts +301 -0
- package/dist/esm/hosting/answeredPause.js +522 -0
- package/dist/esm/hosting/answeredPause.js.map +1 -0
- package/dist/esm/hosting/conformance/cases.js +81 -1
- package/dist/esm/hosting/conformance/cases.js.map +1 -1
- package/dist/esm/hosting/conformance/types.d.ts +1 -1
- package/dist/esm/hosting/envelope.d.ts +6 -0
- package/dist/esm/hosting/envelope.js +14 -0
- package/dist/esm/hosting/envelope.js.map +1 -1
- package/dist/esm/hosting/errors.d.ts +14 -2
- package/dist/esm/hosting/errors.js +13 -6
- package/dist/esm/hosting/errors.js.map +1 -1
- package/dist/esm/hosting/index.d.ts +2 -1
- package/dist/esm/hosting/index.js +3 -0
- package/dist/esm/hosting/index.js.map +1 -1
- package/dist/esm/hosting/memorySessions.js +10 -2
- package/dist/esm/hosting/memorySessions.js.map +1 -1
- package/dist/esm/hosting/processLocalStore.d.ts +20 -0
- package/dist/esm/hosting/processLocalStore.js +26 -0
- package/dist/esm/hosting/processLocalStore.js.map +1 -0
- package/dist/esm/hosting/protocolAdapter.d.ts +13 -0
- package/dist/esm/hosting/refusalStatus.d.ts +6 -0
- package/dist/esm/hosting/refusalStatus.js +13 -0
- package/dist/esm/hosting/refusalStatus.js.map +1 -1
- package/dist/esm/hosting/sessionWire.d.ts +8 -3
- package/dist/esm/hosting/sessionWire.js.map +1 -1
- package/dist/esm/hosting/sqliteSessions.js +27 -3
- package/dist/esm/hosting/sqliteSessions.js.map +1 -1
- package/dist/esm/hosting/standingAgent.js +70 -26
- package/dist/esm/hosting/standingAgent.js.map +1 -1
- package/dist/esm/hosting/streamHandler.d.ts +3 -1
- package/dist/esm/hosting/streamHandler.js +150 -32
- package/dist/esm/hosting/streamHandler.js.map +1 -1
- package/dist/esm/hosting/types.d.ts +28 -6
- package/dist/esm/hosting/types.js.map +1 -1
- package/dist/esm/index.d.ts +7 -3
- package/dist/esm/index.js +21 -17
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/integrity/negative-claim/anchor.d.ts +9 -0
- package/dist/esm/integrity/negative-claim/anchor.js +120 -0
- package/dist/esm/integrity/negative-claim/anchor.js.map +1 -0
- package/dist/esm/integrity/negative-claim/citation.d.ts +34 -0
- package/dist/esm/integrity/negative-claim/citation.js +367 -0
- package/dist/esm/integrity/negative-claim/citation.js.map +1 -0
- package/dist/esm/integrity/negative-claim/containment.d.ts +40 -0
- package/dist/esm/integrity/negative-claim/containment.js +257 -0
- package/dist/esm/integrity/negative-claim/containment.js.map +1 -0
- package/dist/esm/integrity/negative-claim/derive.d.ts +17 -0
- package/dist/esm/integrity/negative-claim/derive.js +122 -0
- package/dist/esm/integrity/negative-claim/derive.js.map +1 -0
- package/dist/esm/integrity/negative-claim/detect.d.ts +44 -0
- package/dist/esm/integrity/negative-claim/detect.js +65 -0
- package/dist/esm/integrity/negative-claim/detect.js.map +1 -0
- package/dist/esm/integrity/negative-claim/judge.d.ts +41 -0
- package/dist/esm/integrity/negative-claim/judge.js +95 -0
- package/dist/esm/integrity/negative-claim/judge.js.map +1 -0
- package/dist/esm/integrity/negative-claim/language.d.ts +14 -0
- package/dist/esm/integrity/negative-claim/language.js +42 -0
- package/dist/esm/integrity/negative-claim/language.js.map +1 -0
- package/dist/esm/integrity/negative-claim/limits.d.ts +2 -0
- package/dist/esm/integrity/negative-claim/limits.js +3 -0
- package/dist/esm/integrity/negative-claim/limits.js.map +1 -0
- package/dist/esm/integrity/negative-claim/matcher.d.ts +51 -0
- package/dist/esm/integrity/negative-claim/matcher.js +164 -0
- package/dist/esm/integrity/negative-claim/matcher.js.map +1 -0
- package/dist/esm/integrity/negative-claim/noRead.d.ts +8 -0
- package/dist/esm/integrity/negative-claim/noRead.js +9 -0
- package/dist/esm/integrity/negative-claim/noRead.js.map +1 -0
- package/dist/esm/integrity/negative-claim/phrases.d.ts +69 -0
- package/dist/esm/integrity/negative-claim/phrases.js +249 -0
- package/dist/esm/integrity/negative-claim/phrases.js.map +1 -0
- package/dist/esm/integrity/negative-claim/prose.d.ts +36 -0
- package/dist/esm/integrity/negative-claim/prose.js +143 -0
- package/dist/esm/integrity/negative-claim/prose.js.map +1 -0
- package/dist/esm/integrity/negative-claim/readings.d.ts +81 -0
- package/dist/esm/integrity/negative-claim/readings.js +322 -0
- package/dist/esm/integrity/negative-claim/readings.js.map +1 -0
- package/dist/esm/integrity/negative-claim/resolve.d.ts +37 -0
- package/dist/esm/integrity/negative-claim/resolve.js +179 -0
- package/dist/esm/integrity/negative-claim/resolve.js.map +1 -0
- package/dist/esm/integrity/negative-claim/statement.d.ts +75 -0
- package/dist/esm/integrity/negative-claim/statement.js +361 -0
- package/dist/esm/integrity/negative-claim/statement.js.map +1 -0
- package/dist/esm/integrity/negative-claim/types.d.ts +144 -0
- package/dist/esm/integrity/negative-claim/types.js +39 -0
- package/dist/esm/integrity/negative-claim/types.js.map +1 -0
- package/dist/esm/integrity/negative-claim/units.d.ts +33 -0
- package/dist/esm/integrity/negative-claim/units.js +185 -0
- package/dist/esm/integrity/negative-claim/units.js.map +1 -0
- package/dist/esm/integrity/negative-claim/work.d.ts +12 -0
- package/dist/esm/integrity/negative-claim/work.js +19 -0
- package/dist/esm/integrity/negative-claim/work.js.map +1 -0
- package/dist/esm/integrity/unsupported-claim/check.d.ts +33 -0
- package/dist/esm/integrity/unsupported-claim/check.js +48 -26
- package/dist/esm/integrity/unsupported-claim/check.js.map +1 -1
- package/dist/esm/integrity/unsupported-claim/delivered.d.ts +72 -0
- package/dist/esm/integrity/unsupported-claim/delivered.js +98 -0
- package/dist/esm/integrity/unsupported-claim/delivered.js.map +1 -0
- package/dist/esm/integrity/unsupported-claim/evaluate.d.ts +103 -1
- package/dist/esm/integrity/unsupported-claim/evaluate.js +373 -0
- package/dist/esm/integrity/unsupported-claim/evaluate.js.map +1 -1
- package/dist/esm/lib/conventions.d.ts +1 -0
- package/dist/esm/lib/conventions.js +3 -0
- package/dist/esm/lib/conventions.js.map +1 -1
- package/dist/esm/lib/frozenCopy.d.ts +75 -0
- package/dist/esm/lib/frozenCopy.js +198 -0
- package/dist/esm/lib/frozenCopy.js.map +1 -0
- package/dist/esm/lib/jsonFaithful.d.ts +34 -0
- package/dist/esm/lib/jsonFaithful.js +111 -0
- package/dist/esm/lib/jsonFaithful.js.map +1 -0
- package/dist/esm/lib/normalize.d.ts +96 -0
- package/dist/esm/{tools → lib}/normalize.js +142 -6
- package/dist/esm/lib/normalize.js.map +1 -0
- package/dist/esm/lib/saidByPerson.d.ts +2 -0
- package/dist/esm/lib/saidByPerson.js +3 -0
- package/dist/esm/lib/saidByPerson.js.map +1 -1
- package/dist/esm/mcp/toolExtras.d.ts +10 -0
- package/dist/esm/mcp/toolExtras.js +11 -0
- package/dist/esm/mcp/toolExtras.js.map +1 -1
- package/dist/esm/provider-contract/nativeOutputSchema.d.ts +6 -2
- package/dist/esm/provider-contract/nativeOutputSchema.js +9 -2
- package/dist/esm/provider-contract/nativeOutputSchema.js.map +1 -1
- package/dist/esm/provider-contract/types.d.ts +12 -1
- package/dist/esm/provider-contract/types.js.map +1 -1
- package/dist/esm/recorders/core/CheckInRecorder.d.ts +6 -1
- package/dist/esm/recorders/core/CheckInRecorder.js +5 -1
- package/dist/esm/recorders/core/CheckInRecorder.js.map +1 -1
- package/dist/esm/redaction/conversation.js +6 -0
- package/dist/esm/redaction/conversation.js.map +1 -1
- package/dist/esm/redaction/knownStrings.d.ts +9 -7
- package/dist/esm/redaction/knownStrings.js +74 -0
- package/dist/esm/redaction/knownStrings.js.map +1 -1
- package/dist/esm/resilience/withCircuitBreaker.js +3 -0
- package/dist/esm/resilience/withCircuitBreaker.js.map +1 -1
- package/dist/esm/resilience/withFallback.js +8 -1
- package/dist/esm/resilience/withFallback.js.map +1 -1
- package/dist/esm/resilience/withRetry.js +3 -0
- package/dist/esm/resilience/withRetry.js.map +1 -1
- package/dist/esm/semantics/check.d.ts +44 -2
- package/dist/esm/semantics/check.js +112 -3
- package/dist/esm/semantics/check.js.map +1 -1
- package/dist/esm/semantics/cli.js +33 -3
- package/dist/esm/semantics/cli.js.map +1 -1
- package/dist/esm/semantics/coverage/absent.d.ts +19 -2
- package/dist/esm/semantics/coverage/absent.js +56 -52
- package/dist/esm/semantics/coverage/absent.js.map +1 -1
- package/dist/esm/semantics/coverage/among.d.ts +73 -0
- package/dist/esm/semantics/coverage/among.js +172 -0
- package/dist/esm/semantics/coverage/among.js.map +1 -0
- package/dist/esm/semantics/coverage/composedCoverage.d.ts +220 -0
- package/dist/esm/semantics/coverage/composedCoverage.js +42 -0
- package/dist/esm/semantics/coverage/composedCoverage.js.map +1 -0
- package/dist/esm/semantics/coverage/evidence.js +27 -2
- package/dist/esm/semantics/coverage/evidence.js.map +1 -1
- package/dist/esm/semantics/coverage/index.d.ts +4 -1
- package/dist/esm/semantics/coverage/index.js +2 -0
- package/dist/esm/semantics/coverage/index.js.map +1 -1
- package/dist/esm/semantics/coverage/ledger.d.ts +2 -1
- package/dist/esm/semantics/coverage/ledger.js +15 -53
- package/dist/esm/semantics/coverage/ledger.js.map +1 -1
- package/dist/esm/semantics/coverage/read.d.ts +19 -0
- package/dist/esm/semantics/coverage/read.js.map +1 -1
- package/dist/esm/semantics/coverage/recognize.d.ts +17 -1
- package/dist/esm/semantics/coverage/recognize.js +40 -0
- package/dist/esm/semantics/coverage/recognize.js.map +1 -1
- package/dist/esm/semantics/coverage/search/binding.d.ts +27 -0
- package/dist/esm/semantics/coverage/search/binding.js +42 -0
- package/dist/esm/semantics/coverage/search/binding.js.map +1 -0
- package/dist/esm/semantics/coverage/search/compose.d.ts +90 -0
- package/dist/esm/semantics/coverage/search/compose.js +120 -0
- package/dist/esm/semantics/coverage/search/compose.js.map +1 -0
- package/dist/esm/semantics/coverage/search/declaration.d.ts +75 -0
- package/dist/esm/semantics/coverage/search/declaration.js +453 -0
- package/dist/esm/semantics/coverage/search/declaration.js.map +1 -0
- package/dist/esm/semantics/coverage/search/door.d.ts +46 -0
- package/dist/esm/semantics/coverage/search/door.js +130 -0
- package/dist/esm/semantics/coverage/search/door.js.map +1 -0
- package/dist/esm/semantics/coverage/search/events.d.ts +42 -0
- package/dist/esm/semantics/coverage/search/events.js +100 -0
- package/dist/esm/semantics/coverage/search/events.js.map +1 -0
- package/dist/esm/semantics/coverage/search/facets.d.ts +52 -0
- package/dist/esm/semantics/coverage/search/facets.js +191 -0
- package/dist/esm/semantics/coverage/search/facets.js.map +1 -0
- package/dist/esm/semantics/coverage/search/gaps.d.ts +63 -0
- package/dist/esm/semantics/coverage/search/gaps.js +221 -0
- package/dist/esm/semantics/coverage/search/gaps.js.map +1 -0
- package/dist/esm/semantics/coverage/search/inEffect.d.ts +65 -0
- package/dist/esm/semantics/coverage/search/inEffect.js +48 -0
- package/dist/esm/semantics/coverage/search/inEffect.js.map +1 -0
- package/dist/esm/semantics/coverage/search/resultFacts.d.ts +42 -0
- package/dist/esm/semantics/coverage/search/resultFacts.js +100 -0
- package/dist/esm/semantics/coverage/search/resultFacts.js.map +1 -0
- package/dist/esm/semantics/coverage/search/review.d.ts +36 -0
- package/dist/esm/semantics/coverage/search/review.js +89 -0
- package/dist/esm/semantics/coverage/search/review.js.map +1 -0
- package/dist/esm/semantics/coverage/search/served.d.ts +51 -0
- package/dist/esm/semantics/coverage/search/served.js +130 -0
- package/dist/esm/semantics/coverage/search/served.js.map +1 -0
- package/dist/esm/semantics/coverage/search/span.d.ts +34 -0
- package/dist/esm/semantics/coverage/search/span.js +61 -0
- package/dist/esm/semantics/coverage/search/span.js.map +1 -0
- package/dist/esm/semantics/coverage/search/statementText.d.ts +46 -0
- package/dist/esm/semantics/coverage/search/statementText.js +102 -0
- package/dist/esm/semantics/coverage/search/statementText.js.map +1 -0
- package/dist/esm/semantics/coverage/search/types.d.ts +120 -0
- package/dist/esm/semantics/coverage/search/types.js +11 -0
- package/dist/esm/semantics/coverage/search/types.js.map +1 -0
- package/dist/esm/semantics/coverage/search/valueWords.d.ts +22 -0
- package/dist/esm/semantics/coverage/search/valueWords.js +32 -0
- package/dist/esm/semantics/coverage/search/valueWords.js.map +1 -0
- package/dist/esm/semantics/coverage/types.d.ts +163 -0
- package/dist/esm/semantics/described.js +3 -1
- package/dist/esm/semantics/described.js.map +1 -1
- package/dist/esm/semantics/envelope.js +26 -2
- package/dist/esm/semantics/envelope.js.map +1 -1
- package/dist/esm/semantics/index.d.ts +2 -1
- package/dist/esm/semantics/index.js.map +1 -1
- package/dist/esm/semantics/overclaim.d.ts +105 -0
- package/dist/esm/semantics/overclaim.js +397 -0
- package/dist/esm/semantics/overclaim.js.map +1 -0
- package/dist/esm/semantics/types.d.ts +13 -0
- package/dist/esm/semantics/types.js.map +1 -1
- package/dist/esm/time/forms.js +1 -1
- package/dist/esm/time/textForms.js +1 -1
- package/dist/esm/time-travel/servedView.d.ts +2 -2
- package/dist/esm/time-travel/servedView.js +52 -160
- package/dist/esm/time-travel/servedView.js.map +1 -1
- package/dist/esm/tools/declare.d.ts +1 -1
- package/dist/esm/tools/declare.js +2 -2
- package/dist/esm/tools/declare.js.map +1 -1
- package/dist/esm/tools/hostFilled.d.ts +20 -1
- package/dist/esm/tools/hostFilled.js +46 -1
- package/dist/esm/tools/hostFilled.js.map +1 -1
- package/dist/esm/tools/searchOf.d.ts +60 -0
- package/dist/esm/tools/searchOf.js +97 -0
- package/dist/esm/tools/searchOf.js.map +1 -0
- package/dist/esm/tools/tools.d.ts +49 -0
- package/dist/esm/tools/tools.js +76 -1
- package/dist/esm/tools/tools.js.map +1 -1
- package/dist/esm/trace-toolpack/causeCapture.d.ts +17 -0
- package/dist/esm/trace-toolpack/causeCapture.js +96 -0
- package/dist/esm/trace-toolpack/causeCapture.js.map +1 -0
- package/dist/esm/trace-toolpack/causeControl.d.ts +6 -0
- package/dist/esm/trace-toolpack/causeControl.js +45 -0
- package/dist/esm/trace-toolpack/causeControl.js.map +1 -0
- package/dist/esm/trace-toolpack/causeReader.js +11 -9
- package/dist/esm/trace-toolpack/causeReader.js.map +1 -1
- package/dist/esm/trace-toolpack/causeResponse.d.ts +3 -2
- package/dist/esm/trace-toolpack/causeResponse.js +27 -7
- package/dist/esm/trace-toolpack/causeResponse.js.map +1 -1
- package/dist/esm/trace-toolpack/causeSnapshot.d.ts +6 -1
- package/dist/esm/trace-toolpack/causeSnapshot.js +26 -15
- package/dist/esm/trace-toolpack/causeSnapshot.js.map +1 -1
- package/dist/esm/trace-toolpack/causeTools.js +1 -1
- package/dist/esm/trace-toolpack/causeTools.js.map +1 -1
- package/dist/events/registry.js +2 -0
- package/dist/events/registry.js.map +1 -1
- package/dist/hosting/answeredPause.js +536 -0
- package/dist/hosting/answeredPause.js.map +1 -0
- package/dist/hosting/conformance/cases.js +80 -0
- package/dist/hosting/conformance/cases.js.map +1 -1
- package/dist/hosting/envelope.js +14 -0
- package/dist/hosting/envelope.js.map +1 -1
- package/dist/hosting/errors.js +13 -6
- package/dist/hosting/errors.js.map +1 -1
- package/dist/hosting/index.js +7 -3
- package/dist/hosting/index.js.map +1 -1
- package/dist/hosting/memorySessions.js +10 -2
- package/dist/hosting/memorySessions.js.map +1 -1
- package/dist/hosting/processLocalStore.js +31 -0
- package/dist/hosting/processLocalStore.js.map +1 -0
- package/dist/hosting/refusalStatus.js +13 -0
- package/dist/hosting/refusalStatus.js.map +1 -1
- package/dist/hosting/sessionWire.js.map +1 -1
- package/dist/hosting/sqliteSessions.js +27 -3
- package/dist/hosting/sqliteSessions.js.map +1 -1
- package/dist/hosting/standingAgent.js +69 -25
- package/dist/hosting/standingAgent.js.map +1 -1
- package/dist/hosting/streamHandler.js +149 -31
- package/dist/hosting/streamHandler.js.map +1 -1
- package/dist/hosting/types.js.map +1 -1
- package/dist/index.js +26 -21
- package/dist/index.js.map +1 -1
- package/dist/integrity/negative-claim/anchor.js +124 -0
- package/dist/integrity/negative-claim/anchor.js.map +1 -0
- package/dist/integrity/negative-claim/citation.js +371 -0
- package/dist/integrity/negative-claim/citation.js.map +1 -0
- package/dist/integrity/negative-claim/containment.js +262 -0
- package/dist/integrity/negative-claim/containment.js.map +1 -0
- package/dist/integrity/negative-claim/derive.js +130 -0
- package/dist/integrity/negative-claim/derive.js.map +1 -0
- package/dist/integrity/negative-claim/detect.js +69 -0
- package/dist/integrity/negative-claim/detect.js.map +1 -0
- package/dist/integrity/negative-claim/judge.js +100 -0
- package/dist/integrity/negative-claim/judge.js.map +1 -0
- package/dist/integrity/negative-claim/language.js +46 -0
- package/dist/integrity/negative-claim/language.js.map +1 -0
- package/dist/integrity/negative-claim/limits.js +6 -0
- package/dist/integrity/negative-claim/limits.js.map +1 -0
- package/dist/integrity/negative-claim/matcher.js +179 -0
- package/dist/integrity/negative-claim/matcher.js.map +1 -0
- package/dist/integrity/negative-claim/noRead.js +13 -0
- package/dist/integrity/negative-claim/noRead.js.map +1 -0
- package/dist/integrity/negative-claim/phrases.js +253 -0
- package/dist/integrity/negative-claim/phrases.js.map +1 -0
- package/dist/integrity/negative-claim/prose.js +147 -0
- package/dist/integrity/negative-claim/prose.js.map +1 -0
- package/dist/integrity/negative-claim/readings.js +338 -0
- package/dist/integrity/negative-claim/readings.js.map +1 -0
- package/dist/integrity/negative-claim/resolve.js +184 -0
- package/dist/integrity/negative-claim/resolve.js.map +1 -0
- package/dist/integrity/negative-claim/statement.js +369 -0
- package/dist/integrity/negative-claim/statement.js.map +1 -0
- package/dist/integrity/negative-claim/types.js +42 -0
- package/dist/integrity/negative-claim/types.js.map +1 -0
- package/dist/integrity/negative-claim/units.js +190 -0
- package/dist/integrity/negative-claim/units.js.map +1 -0
- package/dist/integrity/negative-claim/work.js +24 -0
- package/dist/integrity/negative-claim/work.js.map +1 -0
- package/dist/integrity/unsupported-claim/check.js +50 -27
- package/dist/integrity/unsupported-claim/check.js.map +1 -1
- package/dist/integrity/unsupported-claim/delivered.js +102 -0
- package/dist/integrity/unsupported-claim/delivered.js.map +1 -0
- package/dist/integrity/unsupported-claim/evaluate.js +377 -1
- package/dist/integrity/unsupported-claim/evaluate.js.map +1 -1
- package/dist/lib/conventions.js +3 -0
- package/dist/lib/conventions.js.map +1 -1
- package/dist/lib/frozenCopy.js +207 -0
- package/dist/lib/frozenCopy.js.map +1 -0
- package/dist/lib/jsonFaithful.js +115 -0
- package/dist/lib/jsonFaithful.js.map +1 -0
- package/dist/{tools → lib}/normalize.js +151 -7
- package/dist/lib/normalize.js.map +1 -0
- package/dist/lib/saidByPerson.js +4 -1
- package/dist/lib/saidByPerson.js.map +1 -1
- package/dist/mcp/toolExtras.js +11 -0
- package/dist/mcp/toolExtras.js.map +1 -1
- package/dist/provider-contract/nativeOutputSchema.js +11 -3
- package/dist/provider-contract/nativeOutputSchema.js.map +1 -1
- package/dist/provider-contract/types.js.map +1 -1
- package/dist/recorders/core/CheckInRecorder.js +5 -1
- package/dist/recorders/core/CheckInRecorder.js.map +1 -1
- package/dist/redaction/conversation.js +6 -0
- package/dist/redaction/conversation.js.map +1 -1
- package/dist/redaction/knownStrings.js +74 -0
- package/dist/redaction/knownStrings.js.map +1 -1
- package/dist/resilience/withCircuitBreaker.js +3 -0
- package/dist/resilience/withCircuitBreaker.js.map +1 -1
- package/dist/resilience/withFallback.js +7 -0
- package/dist/resilience/withFallback.js.map +1 -1
- package/dist/resilience/withRetry.js +3 -0
- package/dist/resilience/withRetry.js.map +1 -1
- package/dist/semantics/check.js +112 -3
- package/dist/semantics/check.js.map +1 -1
- package/dist/semantics/cli.js +32 -2
- package/dist/semantics/cli.js.map +1 -1
- package/dist/semantics/coverage/absent.js +56 -52
- package/dist/semantics/coverage/absent.js.map +1 -1
- package/dist/semantics/coverage/among.js +177 -0
- package/dist/semantics/coverage/among.js.map +1 -0
- package/dist/semantics/coverage/composedCoverage.js +46 -0
- package/dist/semantics/coverage/composedCoverage.js.map +1 -0
- package/dist/semantics/coverage/evidence.js +27 -2
- package/dist/semantics/coverage/evidence.js.map +1 -1
- package/dist/semantics/coverage/index.js +5 -1
- package/dist/semantics/coverage/index.js.map +1 -1
- package/dist/semantics/coverage/ledger.js +18 -56
- package/dist/semantics/coverage/ledger.js.map +1 -1
- package/dist/semantics/coverage/read.js.map +1 -1
- package/dist/semantics/coverage/recognize.js +43 -1
- package/dist/semantics/coverage/recognize.js.map +1 -1
- package/dist/semantics/coverage/search/binding.js +46 -0
- package/dist/semantics/coverage/search/binding.js.map +1 -0
- package/dist/semantics/coverage/search/compose.js +124 -0
- package/dist/semantics/coverage/search/compose.js.map +1 -0
- package/dist/semantics/coverage/search/declaration.js +462 -0
- package/dist/semantics/coverage/search/declaration.js.map +1 -0
- package/dist/semantics/coverage/search/door.js +134 -0
- package/dist/semantics/coverage/search/door.js.map +1 -0
- package/dist/semantics/coverage/search/events.js +104 -0
- package/dist/semantics/coverage/search/events.js.map +1 -0
- package/dist/semantics/coverage/search/facets.js +196 -0
- package/dist/semantics/coverage/search/facets.js.map +1 -0
- package/dist/semantics/coverage/search/gaps.js +226 -0
- package/dist/semantics/coverage/search/gaps.js.map +1 -0
- package/dist/semantics/coverage/search/inEffect.js +52 -0
- package/dist/semantics/coverage/search/inEffect.js.map +1 -0
- package/dist/semantics/coverage/search/resultFacts.js +109 -0
- package/dist/semantics/coverage/search/resultFacts.js.map +1 -0
- package/dist/semantics/coverage/search/review.js +93 -0
- package/dist/semantics/coverage/search/review.js.map +1 -0
- package/dist/semantics/coverage/search/served.js +137 -0
- package/dist/semantics/coverage/search/served.js.map +1 -0
- package/dist/semantics/coverage/search/span.js +66 -0
- package/dist/semantics/coverage/search/span.js.map +1 -0
- package/dist/semantics/coverage/search/statementText.js +107 -0
- package/dist/semantics/coverage/search/statementText.js.map +1 -0
- package/dist/semantics/coverage/search/types.js +12 -0
- package/dist/semantics/coverage/search/types.js.map +1 -0
- package/dist/semantics/coverage/search/valueWords.js +36 -0
- package/dist/semantics/coverage/search/valueWords.js.map +1 -0
- package/dist/semantics/described.js +3 -1
- package/dist/semantics/described.js.map +1 -1
- package/dist/semantics/envelope.js +26 -2
- package/dist/semantics/envelope.js.map +1 -1
- package/dist/semantics/index.js.map +1 -1
- package/dist/semantics/overclaim.js +407 -0
- package/dist/semantics/overclaim.js.map +1 -0
- package/dist/semantics/types.js.map +1 -1
- package/dist/time/forms.js +1 -1
- package/dist/time/textForms.js +1 -1
- package/dist/time-travel/servedView.js +51 -159
- package/dist/time-travel/servedView.js.map +1 -1
- package/dist/tools/declare.js +2 -2
- package/dist/tools/declare.js.map +1 -1
- package/dist/tools/hostFilled.js +48 -2
- package/dist/tools/hostFilled.js.map +1 -1
- package/dist/tools/searchOf.js +104 -0
- package/dist/tools/searchOf.js.map +1 -0
- package/dist/tools/tools.js +80 -2
- package/dist/tools/tools.js.map +1 -1
- package/dist/trace-toolpack/causeCapture.js +103 -0
- package/dist/trace-toolpack/causeCapture.js.map +1 -0
- package/dist/trace-toolpack/causeControl.js +49 -0
- package/dist/trace-toolpack/causeControl.js.map +1 -0
- package/dist/trace-toolpack/causeReader.js +11 -9
- package/dist/trace-toolpack/causeReader.js.map +1 -1
- package/dist/trace-toolpack/causeResponse.js +27 -7
- package/dist/trace-toolpack/causeResponse.js.map +1 -1
- package/dist/trace-toolpack/causeSnapshot.js +31 -20
- package/dist/trace-toolpack/causeSnapshot.js.map +1 -1
- package/dist/trace-toolpack/causeTools.js +1 -1
- package/dist/trace-toolpack/causeTools.js.map +1 -1
- package/dist/types/adapters/hosting/agentCoreA2A.d.ts.map +1 -1
- package/dist/types/adapters/hosting/firestoreSessions.d.ts.map +1 -1
- package/dist/types/adapters/hosting/googleAgentEngine.d.ts.map +1 -1
- package/dist/types/adapters/llm/AnthropicProvider.d.ts +1 -0
- package/dist/types/adapters/llm/AnthropicProvider.d.ts.map +1 -1
- package/dist/types/adapters/llm/BrowserAnthropicProvider.d.ts +1 -0
- package/dist/types/adapters/llm/BrowserAnthropicProvider.d.ts.map +1 -1
- package/dist/types/adapters/llm/MockProvider.d.ts +2 -0
- package/dist/types/adapters/llm/MockProvider.d.ts.map +1 -1
- package/dist/types/ag-ui/request.d.ts +4 -1
- package/dist/types/ag-ui/request.d.ts.map +1 -1
- package/dist/types/ag-ui/serializer.d.ts +15 -2
- package/dist/types/ag-ui/serializer.d.ts.map +1 -1
- package/dist/types/answer-account/facts/howSure.d.ts.map +1 -1
- package/dist/types/answer-account/templates.d.ts +4 -1
- package/dist/types/answer-account/templates.d.ts.map +1 -1
- package/dist/types/answer-validation/agentChecks.d.ts +76 -0
- package/dist/types/answer-validation/agentChecks.d.ts.map +1 -0
- package/dist/types/answer-validation/index.d.ts +2 -1
- package/dist/types/answer-validation/index.d.ts.map +1 -1
- package/dist/types/answer-validation/outputSchema.d.ts +18 -7
- package/dist/types/answer-validation/outputSchema.d.ts.map +1 -1
- package/dist/types/answer-validation/types.d.ts +125 -1
- package/dist/types/answer-validation/types.d.ts.map +1 -1
- package/dist/types/answer-validation/validate.d.ts +11 -2
- package/dist/types/answer-validation/validate.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts +25 -1
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/RunnerBase.d.ts.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts +43 -12
- package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
- package/dist/types/core/agent/arguments/checks.d.ts +1 -1
- package/dist/types/core/agent/arguments/subflow.d.ts +6 -0
- package/dist/types/core/agent/arguments/subflow.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/assess.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/compose.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/reasons.d.ts.map +1 -1
- package/dist/types/core/agent/assessment/types.d.ts +3 -2
- package/dist/types/core/agent/assessment/types.d.ts.map +1 -1
- package/dist/types/core/agent/buildAgentChart.d.ts +4 -12
- package/dist/types/core/agent/buildAgentChart.d.ts.map +1 -1
- package/dist/types/core/agent/buildDynamicAgentChart.d.ts.map +1 -1
- package/dist/types/core/agent/buildToolRegistry.d.ts.map +1 -1
- package/dist/types/core/agent/composeRequest.d.ts +19 -0
- package/dist/types/core/agent/composeRequest.d.ts.map +1 -1
- package/dist/types/core/agent/evidence/extract.d.ts +45 -6
- package/dist/types/core/agent/evidence/extract.d.ts.map +1 -1
- package/dist/types/core/agent/evidence/frames.d.ts.map +1 -1
- package/dist/types/core/agent/evidence/gate.d.ts +6 -0
- package/dist/types/core/agent/evidence/gate.d.ts.map +1 -1
- package/dist/types/core/agent/evidence/recovery.d.ts +2 -0
- package/dist/types/core/agent/evidence/recovery.d.ts.map +1 -1
- package/dist/types/core/agent/evidence/resultCarries.d.ts +2 -2
- package/dist/types/core/agent/evidence/types.d.ts +17 -0
- package/dist/types/core/agent/evidence/types.d.ts.map +1 -1
- package/dist/types/core/agent/findings/context.d.ts +14 -0
- package/dist/types/core/agent/findings/context.d.ts.map +1 -0
- package/dist/types/core/agent/findings/instruction.d.ts +13 -0
- package/dist/types/core/agent/findings/instruction.d.ts.map +1 -0
- package/dist/types/core/agent/findings/ledger.d.ts +3 -0
- package/dist/types/core/agent/findings/ledger.d.ts.map +1 -1
- package/dist/types/core/agent/findings/negativeProse.d.ts +2 -0
- package/dist/types/core/agent/findings/negativeProse.d.ts.map +1 -0
- package/dist/types/core/agent/findings/offer.d.ts +9 -57
- package/dist/types/core/agent/findings/offer.d.ts.map +1 -1
- package/dist/types/core/agent/findings/reserved.d.ts +7 -31
- package/dist/types/core/agent/findings/reserved.d.ts.map +1 -1
- package/dist/types/core/agent/findings/types.d.ts +11 -4
- package/dist/types/core/agent/findings/types.d.ts.map +1 -1
- package/dist/types/core/agent/honesty/mounts.d.ts +7 -0
- package/dist/types/core/agent/honesty/mounts.d.ts.map +1 -1
- package/dist/types/core/agent/nativeOutputFormat.d.ts +2 -1
- package/dist/types/core/agent/nativeOutputFormat.d.ts.map +1 -1
- package/dist/types/core/agent/negativeClaims/capture.d.ts +66 -0
- package/dist/types/core/agent/negativeClaims/capture.d.ts.map +1 -0
- package/dist/types/core/agent/negativeClaims/checkpoint.d.ts +8 -0
- package/dist/types/core/agent/negativeClaims/checkpoint.d.ts.map +1 -0
- package/dist/types/core/agent/negativeClaims/config.d.ts +67 -0
- package/dist/types/core/agent/negativeClaims/config.d.ts.map +1 -0
- package/dist/types/core/agent/negativeClaims/delivery.d.ts +25 -0
- package/dist/types/core/agent/negativeClaims/delivery.d.ts.map +1 -0
- package/dist/types/core/agent/negativeClaims/observe.d.ts +15 -0
- package/dist/types/core/agent/negativeClaims/observe.d.ts.map +1 -0
- package/dist/types/core/agent/negativeClaims/prose.d.ts +10 -0
- package/dist/types/core/agent/negativeClaims/prose.d.ts.map +1 -0
- package/dist/types/core/agent/negativeClaims/recheck.d.ts +8 -0
- package/dist/types/core/agent/negativeClaims/recheck.d.ts.map +1 -0
- package/dist/types/core/agent/outputEnforcement.d.ts +5 -1
- package/dist/types/core/agent/outputEnforcement.d.ts.map +1 -1
- package/dist/types/core/agent/receipt/receipt.d.ts +2 -2
- package/dist/types/core/agent/receipt/receipt.d.ts.map +1 -1
- package/dist/types/core/agent/stages/answerEvidence.d.ts +29 -0
- package/dist/types/core/agent/stages/answerEvidence.d.ts.map +1 -0
- package/dist/types/core/agent/stages/answerValidation.d.ts +15 -3
- package/dist/types/core/agent/stages/answerValidation.d.ts.map +1 -1
- package/dist/types/core/agent/stages/callLLM.d.ts +11 -2
- package/dist/types/core/agent/stages/callLLM.d.ts.map +1 -1
- package/dist/types/core/agent/stages/evidenceRecheck.d.ts +6 -1
- package/dist/types/core/agent/stages/evidenceRecheck.d.ts.map +1 -1
- package/dist/types/core/agent/stages/outputRetry.d.ts.map +1 -1
- package/dist/types/core/agent/stages/prepareFinal.d.ts.map +1 -1
- package/dist/types/core/agent/stages/reliabilityExecution.d.ts +3 -0
- package/dist/types/core/agent/stages/reliabilityExecution.d.ts.map +1 -1
- package/dist/types/core/agent/stages/route.d.ts +8 -2
- package/dist/types/core/agent/stages/route.d.ts.map +1 -1
- package/dist/types/core/agent/stages/searchCoverage.d.ts +95 -0
- package/dist/types/core/agent/stages/searchCoverage.d.ts.map +1 -0
- package/dist/types/core/agent/stages/seed.d.ts +10 -0
- package/dist/types/core/agent/stages/seed.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts +16 -0
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/toolChoice/compose.d.ts +2 -0
- package/dist/types/core/agent/toolChoice/compose.d.ts.map +1 -1
- package/dist/types/core/agent/toolChoice/pick.d.ts +2 -0
- package/dist/types/core/agent/toolChoice/pick.d.ts.map +1 -1
- package/dist/types/core/agent/toolChoice/types.d.ts +1 -1
- package/dist/types/core/agent/toolChoice/types.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +86 -5
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/checkin.d.ts +83 -7
- package/dist/types/core/checkin.d.ts.map +1 -1
- package/dist/types/core/consentRequest.d.ts +489 -0
- package/dist/types/core/consentRequest.d.ts.map +1 -0
- package/dist/types/core/pause.d.ts +88 -7
- package/dist/types/core/pause.d.ts.map +1 -1
- package/dist/types/core/runCheckpoint.d.ts +5 -1
- package/dist/types/core/runCheckpoint.d.ts.map +1 -1
- package/dist/types/core/slots/buildToolsSlot.d.ts +4 -11
- package/dist/types/core/slots/buildToolsSlot.d.ts.map +1 -1
- package/dist/types/debug.d.ts +1 -1
- package/dist/types/debug.d.ts.map +1 -1
- package/dist/types/events/payloads.d.ts +145 -3
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/events/registry.d.ts +3 -1
- package/dist/types/events/registry.d.ts.map +1 -1
- package/dist/types/hosting/answeredPause.d.ts +302 -0
- package/dist/types/hosting/answeredPause.d.ts.map +1 -0
- package/dist/types/hosting/conformance/cases.d.ts.map +1 -1
- package/dist/types/hosting/conformance/types.d.ts +1 -1
- package/dist/types/hosting/conformance/types.d.ts.map +1 -1
- package/dist/types/hosting/envelope.d.ts +6 -0
- package/dist/types/hosting/envelope.d.ts.map +1 -1
- package/dist/types/hosting/errors.d.ts +14 -2
- package/dist/types/hosting/errors.d.ts.map +1 -1
- package/dist/types/hosting/index.d.ts +2 -1
- package/dist/types/hosting/index.d.ts.map +1 -1
- package/dist/types/hosting/memorySessions.d.ts.map +1 -1
- package/dist/types/hosting/processLocalStore.d.ts +21 -0
- package/dist/types/hosting/processLocalStore.d.ts.map +1 -0
- package/dist/types/hosting/protocolAdapter.d.ts +13 -0
- package/dist/types/hosting/protocolAdapter.d.ts.map +1 -1
- package/dist/types/hosting/refusalStatus.d.ts +6 -0
- package/dist/types/hosting/refusalStatus.d.ts.map +1 -1
- package/dist/types/hosting/sessionWire.d.ts +8 -3
- package/dist/types/hosting/sessionWire.d.ts.map +1 -1
- package/dist/types/hosting/sqliteSessions.d.ts.map +1 -1
- package/dist/types/hosting/standingAgent.d.ts.map +1 -1
- package/dist/types/hosting/streamHandler.d.ts +3 -1
- package/dist/types/hosting/streamHandler.d.ts.map +1 -1
- package/dist/types/hosting/types.d.ts +28 -6
- package/dist/types/hosting/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +7 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/integrity/negative-claim/anchor.d.ts +10 -0
- package/dist/types/integrity/negative-claim/anchor.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/citation.d.ts +35 -0
- package/dist/types/integrity/negative-claim/citation.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/containment.d.ts +41 -0
- package/dist/types/integrity/negative-claim/containment.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/derive.d.ts +18 -0
- package/dist/types/integrity/negative-claim/derive.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/detect.d.ts +45 -0
- package/dist/types/integrity/negative-claim/detect.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/judge.d.ts +42 -0
- package/dist/types/integrity/negative-claim/judge.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/language.d.ts +15 -0
- package/dist/types/integrity/negative-claim/language.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/limits.d.ts +3 -0
- package/dist/types/integrity/negative-claim/limits.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/matcher.d.ts +52 -0
- package/dist/types/integrity/negative-claim/matcher.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/noRead.d.ts +9 -0
- package/dist/types/integrity/negative-claim/noRead.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/phrases.d.ts +70 -0
- package/dist/types/integrity/negative-claim/phrases.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/prose.d.ts +37 -0
- package/dist/types/integrity/negative-claim/prose.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/readings.d.ts +82 -0
- package/dist/types/integrity/negative-claim/readings.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/resolve.d.ts +38 -0
- package/dist/types/integrity/negative-claim/resolve.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/statement.d.ts +76 -0
- package/dist/types/integrity/negative-claim/statement.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/types.d.ts +145 -0
- package/dist/types/integrity/negative-claim/types.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/units.d.ts +34 -0
- package/dist/types/integrity/negative-claim/units.d.ts.map +1 -0
- package/dist/types/integrity/negative-claim/work.d.ts +13 -0
- package/dist/types/integrity/negative-claim/work.d.ts.map +1 -0
- package/dist/types/integrity/unsupported-claim/check.d.ts +33 -0
- package/dist/types/integrity/unsupported-claim/check.d.ts.map +1 -1
- package/dist/types/integrity/unsupported-claim/delivered.d.ts +73 -0
- package/dist/types/integrity/unsupported-claim/delivered.d.ts.map +1 -0
- package/dist/types/integrity/unsupported-claim/evaluate.d.ts +103 -1
- package/dist/types/integrity/unsupported-claim/evaluate.d.ts.map +1 -1
- package/dist/types/lib/conventions.d.ts +1 -0
- package/dist/types/lib/conventions.d.ts.map +1 -1
- package/dist/types/lib/frozenCopy.d.ts +76 -0
- package/dist/types/lib/frozenCopy.d.ts.map +1 -0
- package/dist/types/lib/jsonFaithful.d.ts +35 -0
- package/dist/types/lib/jsonFaithful.d.ts.map +1 -0
- package/dist/types/lib/normalize.d.ts +97 -0
- package/dist/types/lib/normalize.d.ts.map +1 -0
- package/dist/types/lib/saidByPerson.d.ts +2 -0
- package/dist/types/lib/saidByPerson.d.ts.map +1 -1
- package/dist/types/mcp/toolExtras.d.ts +10 -0
- package/dist/types/mcp/toolExtras.d.ts.map +1 -1
- package/dist/types/provider-contract/nativeOutputSchema.d.ts +6 -2
- package/dist/types/provider-contract/nativeOutputSchema.d.ts.map +1 -1
- package/dist/types/provider-contract/types.d.ts +12 -1
- package/dist/types/provider-contract/types.d.ts.map +1 -1
- package/dist/types/recorders/core/CheckInRecorder.d.ts +6 -1
- package/dist/types/recorders/core/CheckInRecorder.d.ts.map +1 -1
- package/dist/types/redaction/conversation.d.ts.map +1 -1
- package/dist/types/redaction/knownStrings.d.ts +9 -7
- package/dist/types/redaction/knownStrings.d.ts.map +1 -1
- package/dist/types/resilience/withCircuitBreaker.d.ts.map +1 -1
- package/dist/types/resilience/withFallback.d.ts.map +1 -1
- package/dist/types/resilience/withRetry.d.ts.map +1 -1
- package/dist/types/semantics/check.d.ts +44 -2
- package/dist/types/semantics/check.d.ts.map +1 -1
- package/dist/types/semantics/cli.d.ts.map +1 -1
- package/dist/types/semantics/coverage/absent.d.ts +19 -2
- package/dist/types/semantics/coverage/absent.d.ts.map +1 -1
- package/dist/types/semantics/coverage/among.d.ts +74 -0
- package/dist/types/semantics/coverage/among.d.ts.map +1 -0
- package/dist/types/semantics/coverage/composedCoverage.d.ts +221 -0
- package/dist/types/semantics/coverage/composedCoverage.d.ts.map +1 -0
- package/dist/types/semantics/coverage/evidence.d.ts.map +1 -1
- package/dist/types/semantics/coverage/index.d.ts +4 -1
- package/dist/types/semantics/coverage/index.d.ts.map +1 -1
- package/dist/types/semantics/coverage/ledger.d.ts +2 -1
- package/dist/types/semantics/coverage/ledger.d.ts.map +1 -1
- package/dist/types/semantics/coverage/read.d.ts +19 -0
- package/dist/types/semantics/coverage/read.d.ts.map +1 -1
- package/dist/types/semantics/coverage/recognize.d.ts +17 -1
- package/dist/types/semantics/coverage/recognize.d.ts.map +1 -1
- package/dist/types/semantics/coverage/search/binding.d.ts +28 -0
- package/dist/types/semantics/coverage/search/binding.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/compose.d.ts +91 -0
- package/dist/types/semantics/coverage/search/compose.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/declaration.d.ts +76 -0
- package/dist/types/semantics/coverage/search/declaration.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/door.d.ts +47 -0
- package/dist/types/semantics/coverage/search/door.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/events.d.ts +43 -0
- package/dist/types/semantics/coverage/search/events.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/facets.d.ts +53 -0
- package/dist/types/semantics/coverage/search/facets.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/gaps.d.ts +64 -0
- package/dist/types/semantics/coverage/search/gaps.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/inEffect.d.ts +66 -0
- package/dist/types/semantics/coverage/search/inEffect.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/resultFacts.d.ts +43 -0
- package/dist/types/semantics/coverage/search/resultFacts.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/review.d.ts +37 -0
- package/dist/types/semantics/coverage/search/review.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/served.d.ts +52 -0
- package/dist/types/semantics/coverage/search/served.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/span.d.ts +35 -0
- package/dist/types/semantics/coverage/search/span.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/statementText.d.ts +47 -0
- package/dist/types/semantics/coverage/search/statementText.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/types.d.ts +121 -0
- package/dist/types/semantics/coverage/search/types.d.ts.map +1 -0
- package/dist/types/semantics/coverage/search/valueWords.d.ts +23 -0
- package/dist/types/semantics/coverage/search/valueWords.d.ts.map +1 -0
- package/dist/types/semantics/coverage/types.d.ts +163 -0
- package/dist/types/semantics/coverage/types.d.ts.map +1 -1
- package/dist/types/semantics/described.d.ts.map +1 -1
- package/dist/types/semantics/envelope.d.ts.map +1 -1
- package/dist/types/semantics/index.d.ts +2 -1
- package/dist/types/semantics/index.d.ts.map +1 -1
- package/dist/types/semantics/overclaim.d.ts +106 -0
- package/dist/types/semantics/overclaim.d.ts.map +1 -0
- package/dist/types/semantics/types.d.ts +13 -0
- package/dist/types/semantics/types.d.ts.map +1 -1
- package/dist/types/time-travel/servedView.d.ts +2 -2
- package/dist/types/time-travel/servedView.d.ts.map +1 -1
- package/dist/types/tools/declare.d.ts +1 -1
- package/dist/types/tools/hostFilled.d.ts +20 -1
- package/dist/types/tools/hostFilled.d.ts.map +1 -1
- package/dist/types/tools/searchOf.d.ts +61 -0
- package/dist/types/tools/searchOf.d.ts.map +1 -0
- package/dist/types/tools/tools.d.ts +49 -0
- package/dist/types/tools/tools.d.ts.map +1 -1
- package/dist/types/trace-toolpack/causeCapture.d.ts +18 -0
- package/dist/types/trace-toolpack/causeCapture.d.ts.map +1 -0
- package/dist/types/trace-toolpack/causeControl.d.ts +7 -0
- package/dist/types/trace-toolpack/causeControl.d.ts.map +1 -0
- package/dist/types/trace-toolpack/causeReader.d.ts.map +1 -1
- package/dist/types/trace-toolpack/causeResponse.d.ts +3 -2
- package/dist/types/trace-toolpack/causeResponse.d.ts.map +1 -1
- package/dist/types/trace-toolpack/causeSnapshot.d.ts +6 -1
- package/dist/types/trace-toolpack/causeSnapshot.d.ts.map +1 -1
- package/package.json +3 -2
- package/dist/esm/tools/normalize.d.ts +0 -43
- package/dist/esm/tools/normalize.js.map +0 -1
- package/dist/tools/normalize.js.map +0 -1
- package/dist/types/tools/normalize.d.ts +0 -44
- package/dist/types/tools/normalize.d.ts.map +0 -1
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* consentRequest — the request a consent gate puts to a person: how it is
|
|
3
|
+
* named, what it is bound to, and how a decision is held to it, once.
|
|
4
|
+
*
|
|
5
|
+
* Role: the ONE owner of that law. A consent gate (a tool's `checkIn`, a
|
|
6
|
+
* middleware's `ask`) pauses the run; `mintConsentRequest` mints the request
|
|
7
|
+
* at the pause, and `heldDecision` + `spendDecision` hold a resume's
|
|
8
|
+
* decision to it. The dispatch loop (`agent/stages/toolCalls.ts`) is
|
|
9
|
+
* the only writer and the only place a decision is used; `Agent.resume`
|
|
10
|
+
* asks the same pure question earlier, so a mismatch is refused before
|
|
11
|
+
* anything moves.
|
|
12
|
+
* Reads: the call about to pause; at a resume, the paused run's own state
|
|
13
|
+
* (`gatedCallOf`) and the decision.
|
|
14
|
+
* Writes: nothing — the dispatch loop writes what `mintConsentRequest` returns.
|
|
15
|
+
*
|
|
16
|
+
* ── WHY THE ID IS A COMMITMENT, NOT ONLY A NAME ─────────────────────────────
|
|
17
|
+
* `id = sha256(domain ‖ nonce ‖ canonicalJson(call))`, where the call is
|
|
18
|
+
* everything that runs on approval: the gate, the tool, the call id, the
|
|
19
|
+
* served party, the arguments and — for an ask — the middleware, where the
|
|
20
|
+
* chain resumes and the names of the rules from the asking one on (a resume
|
|
21
|
+
* refuses an agent whose chain no longer runs those rules, and a rule after
|
|
22
|
+
* the ask that hands back other arguments than the ones approved — the tool
|
|
23
|
+
* does not run). The nonce is 128 random bits kept in the paused run's state.
|
|
24
|
+
*
|
|
25
|
+
* - A random nonce makes every pause's id unique and unguessable, so a
|
|
26
|
+
* decision for one pause can never answer another — even two pauses of
|
|
27
|
+
* the same tool, with the same model-chosen call id and the same
|
|
28
|
+
* arguments.
|
|
29
|
+
* - Re-deriving the id from the state at resume binds the decision to the
|
|
30
|
+
* exact call: a checkpoint whose arguments, tool, call id, party or chain
|
|
31
|
+
* position changed after the person was asked derives a different id, and
|
|
32
|
+
* no nonce makes it derive the old one (that would be a SHA-256 preimage).
|
|
33
|
+
* The person's decision quotes the id they were shown, so a checkpoint
|
|
34
|
+
* changed after the ask cannot be made to match it.
|
|
35
|
+
* - What it does NOT stop is a hostile writer of the checkpoint store: one
|
|
36
|
+
* who rewrites the call, the nonce and the request shown together BEFORE
|
|
37
|
+
* the person decides (they then approve what they were shown), or who
|
|
38
|
+
* switches the pause into a kind whose resume takes no decision (a
|
|
39
|
+
* credential-consent pause). The binding detects drift and replay, not
|
|
40
|
+
* that writer; a host that does not trust its store signs checkpoints or
|
|
41
|
+
* keeps them server-side.
|
|
42
|
+
* - The id carries no run value. The nonce does unlock it — whoever holds
|
|
43
|
+
* the nonce can confirm a guess of the arguments — so the state key that
|
|
44
|
+
* carries it (`pausedRequest`) is named with the arguments in the
|
|
45
|
+
* conversation redaction vocabulary (`redaction/conversation.ts`).
|
|
46
|
+
*
|
|
47
|
+
* ── THE DOMAIN ─────────────────────────────────────────────────────────────
|
|
48
|
+
* The call is fingerprinted as JSON, because JSON is what a person is shown and
|
|
49
|
+
* what a stored checkpoint holds. A call JSON cannot write down faithfully (a
|
|
50
|
+
* `Date`, a `Map`, `Infinity` — `lib/jsonFaithful.ts`) cannot be bound, and
|
|
51
|
+
* `mintConsentRequest` says so instead of fingerprinting a value two different calls
|
|
52
|
+
* would share. JSON's own equivalences hold: a property whose value is
|
|
53
|
+
* `undefined` is the property absent, and `-0` is `0`.
|
|
54
|
+
*
|
|
55
|
+
* ── ONCE ───────────────────────────────────────────────────────────────────
|
|
56
|
+
* A request is spent the moment a resume uses a decision for it, approved or
|
|
57
|
+
* declined (`DecisionLedger`), and "once" holds PER LEDGER. The default is one
|
|
58
|
+
* ledger in this process's memory, shared by every agent that names none — a
|
|
59
|
+
* pool that rebuilds an evicted instance, a host that builds a runner per
|
|
60
|
+
* request, a composition's nested agents all spend in it. It is gone after a
|
|
61
|
+
* restart and no other process sees it: where more than one process (or a
|
|
62
|
+
* restart) can resume the same paused run, every agent that can resume it is
|
|
63
|
+
* given one ledger in a store they all reach (`Agent.create({ decisionLedger })`).
|
|
64
|
+
* The process's ledger and everything below that is process-wide live on
|
|
65
|
+
* `globalThis` under one versioned key, so an app that loads both builds of
|
|
66
|
+
* this package (CJS and ESM) still has ONE (`processState`).
|
|
67
|
+
*
|
|
68
|
+
* ── WAS IT USED? ───────────────────────────────────────────────────────────
|
|
69
|
+
* A host that keeps the pause asks this after a resume of it failed: the call
|
|
70
|
+
* may have run only if the decision reached a ledger. `spendDecision` is the
|
|
71
|
+
* one place a decision does, so it reports every attempt to whoever watches
|
|
72
|
+
* that request (`watchDecisionUse`), and the ledger it went to is asked when
|
|
73
|
+
* the attempt's own answer was lost. A resume this library took up and never
|
|
74
|
+
* took to a ledger used nothing; one it never took up cannot be told apart
|
|
75
|
+
* from a use (`hosting/answeredPause.ts`).
|
|
76
|
+
*
|
|
77
|
+
* ── DID IT NEVER RUN? ──────────────────────────────────────────────────────
|
|
78
|
+
* A watch sees one resume. A host closing a pause no answer can reach asks a
|
|
79
|
+
* stronger question — can ANY decision for it have been used, by any resume,
|
|
80
|
+
* before this process started included — and says "did not run" only on
|
|
81
|
+
* proof (`proveNeverRan`): the ledger the request was MINTED under (its
|
|
82
|
+
* identity rides the pause, `PendingRequest.ledger`) spends the request
|
|
83
|
+
* itself, atomically. `true` means no decision had reached it, and none ever
|
|
84
|
+
* can now — the spend is a tombstone, not a read that a resume elsewhere
|
|
85
|
+
* could overtake. Anything else is not proof.
|
|
86
|
+
*/
|
|
87
|
+
import type { FlowchartCheckpoint } from 'footprintjs';
|
|
88
|
+
import { type CheckInDecision } from './checkin.js';
|
|
89
|
+
import { type ConsentGate, type ConsentGateKind } from './pause.js';
|
|
90
|
+
/**
|
|
91
|
+
* The call a consent gate asked a person about — what runs on approval. Read
|
|
92
|
+
* loosely (`unknown`) because at a resume it comes from a checkpoint: whatever
|
|
93
|
+
* the state holds is what would run, and that is what gets fingerprinted.
|
|
94
|
+
*/
|
|
95
|
+
export interface GatedCall {
|
|
96
|
+
readonly gate: ConsentGateKind;
|
|
97
|
+
/** The tool's name. */
|
|
98
|
+
readonly tool: unknown;
|
|
99
|
+
/** The model's id for the call. */
|
|
100
|
+
readonly toolCallId: unknown;
|
|
101
|
+
/** The party the tool resolves against (`AgentState.pausedToolParty`), when one was recorded. */
|
|
102
|
+
readonly party?: unknown;
|
|
103
|
+
/** The arguments the call runs with. */
|
|
104
|
+
readonly args: unknown;
|
|
105
|
+
/** `'ask'` only — the middleware that asked. */
|
|
106
|
+
readonly middleware?: unknown;
|
|
107
|
+
/** `'ask'` only — the asking link's index; the chain resumes after it. */
|
|
108
|
+
readonly askIndex?: unknown;
|
|
109
|
+
/**
|
|
110
|
+
* `'ask'` only — the names of the asking link and of every link after it,
|
|
111
|
+
* in chain order: the rules the call still passes once the person answers.
|
|
112
|
+
* A position alone would let a redeploy that removed or moved a later rule
|
|
113
|
+
* resume past it; the names make that a refusal (`'chain-changed'`).
|
|
114
|
+
*/
|
|
115
|
+
readonly chain?: unknown;
|
|
116
|
+
}
|
|
117
|
+
/** A consent gate's request as the paused run's state carries it (`AgentState.pausedRequest`). */
|
|
118
|
+
export interface PendingRequest {
|
|
119
|
+
/** The id a decision quotes — 64 hex characters. */
|
|
120
|
+
readonly id: string;
|
|
121
|
+
/** 128 random bits, hex — the commitment's key. Never served on the request. */
|
|
122
|
+
readonly nonce: string;
|
|
123
|
+
/**
|
|
124
|
+
* The identity of the ledger the request was minted under — the agent's
|
|
125
|
+
* `decisionLedger` (`store:` + its `storeId`) or this process's default
|
|
126
|
+
* (`process:` + a per-process random id). Only that ledger can prove the
|
|
127
|
+
* paused call never ran ({@link proveNeverRan}). Absent when the ledger has
|
|
128
|
+
* no stable identity, and on a pause stored before it was recorded: such a
|
|
129
|
+
* pause can never be proven.
|
|
130
|
+
*/
|
|
131
|
+
readonly ledger?: string;
|
|
132
|
+
}
|
|
133
|
+
/** What {@link mintConsentRequest} hands the dispatch loop. */
|
|
134
|
+
export interface BoundRequest {
|
|
135
|
+
readonly request: PendingRequest;
|
|
136
|
+
/**
|
|
137
|
+
* The detached copy of the arguments the request is bound to. The call
|
|
138
|
+
* carries THIS copy from here on — on the request the person is shown, in
|
|
139
|
+
* the paused run's state, and into the tool on approval — so nothing that
|
|
140
|
+
* still holds the original can change what was approved.
|
|
141
|
+
*/
|
|
142
|
+
readonly args: Readonly<Record<string, unknown>>;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Where the consent requests that have been answered are recorded, so one
|
|
146
|
+
* decision runs one call — once per LEDGER.
|
|
147
|
+
*
|
|
148
|
+
* By default every agent that names none spends in one ledger in this
|
|
149
|
+
* process's memory: "once" holds across this process's agents — a pool that
|
|
150
|
+
* rebuilds an evicted instance, a server that builds an agent per request —
|
|
151
|
+
* and only there. A restart forgets it, and another process never saw it.
|
|
152
|
+
* When more than one process can resume the same paused run, or a restart
|
|
153
|
+
* must not forget, give every agent that can resume it one ledger backed by a
|
|
154
|
+
* store they all reach (`Agent.create({ decisionLedger })`).
|
|
155
|
+
*/
|
|
156
|
+
export interface DecisionLedger {
|
|
157
|
+
/**
|
|
158
|
+
* OPTIONAL — the identity of the store this ledger records into. A host that
|
|
159
|
+
* closes a pause no answer can reach asks the ledger the pause was minted
|
|
160
|
+
* under — and only that one — to prove its call never ran
|
|
161
|
+
* ({@link DecisionLedger.spend}); a ledger without a `storeId` never proves,
|
|
162
|
+
* and the call is recorded as possibly run.
|
|
163
|
+
*
|
|
164
|
+
* The contract this library cannot check, and that the proof rests on:
|
|
165
|
+
*
|
|
166
|
+
* - unique per BACKING STORE: one value for one table (or collection, or
|
|
167
|
+
* key space) and every process that writes it — never copied from
|
|
168
|
+
* staging to production, never shared by per-tenant tables;
|
|
169
|
+
* - permanent: the same for the life of that store;
|
|
170
|
+
* - changed on any migration to a new store — a request spent in the old
|
|
171
|
+
* store is not in the new one, and must not be read as never spent there.
|
|
172
|
+
* Pending approvals are then asked again: a decision is spent only in the
|
|
173
|
+
* ledger its request was asked under (`'ledger-changed'`).
|
|
174
|
+
*
|
|
175
|
+
* Spends in it are permanent too (no expiry) — see `spend`.
|
|
176
|
+
*/
|
|
177
|
+
readonly storeId?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Record `requestId` as answered. Resolve `true` when THIS call recorded it
|
|
180
|
+
* and `false` when it was already recorded — atomically per id: of two
|
|
181
|
+
* concurrent calls for one id, exactly one may see `true`. Anything other
|
|
182
|
+
* than `true` refuses the decision; a throw fails the resume. Both fail
|
|
183
|
+
* closed: the tool does not run.
|
|
184
|
+
*
|
|
185
|
+
* A recorded id stays recorded: for a ledger that is to prove a paused call
|
|
186
|
+
* never ran (one with a {@link DecisionLedger.storeId}), the result is
|
|
187
|
+
* permanent — no expiry. A host closing a pause spends its request here as
|
|
188
|
+
* the proof (`true`: no decision had reached it, and none ever can), then
|
|
189
|
+
* `closed-proven:<requestId>` to record that IT closed it; a key that expired
|
|
190
|
+
* would let a spent request read as never spent.
|
|
191
|
+
*/
|
|
192
|
+
spend(requestId: string): boolean | Promise<boolean>;
|
|
193
|
+
/**
|
|
194
|
+
* OPTIONAL — whether `requestId` is recorded as answered, without recording
|
|
195
|
+
* it. Asked only after a {@link DecisionLedger.spend} for it failed, so a
|
|
196
|
+
* host can tell a spend that never landed (the call did not run; the pause
|
|
197
|
+
* stays answerable) from one that did. A ledger without it, or one that
|
|
198
|
+
* throws or answers anything but `false`, counts as spent: the host stops
|
|
199
|
+
* offering the pause. Asked, too, whether a host recorded closing a request
|
|
200
|
+
* (`closed-proven:<requestId>`) — so a retried close keeps the verdict the
|
|
201
|
+
* first one proved, and a person whose answer arrives after the close is
|
|
202
|
+
* told the host closed it. Never asked whether the REQUEST is unspent as a
|
|
203
|
+
* proof that its call did not run: a read can be overtaken by a resume
|
|
204
|
+
* elsewhere; only `spend` proves.
|
|
205
|
+
*/
|
|
206
|
+
isSpent?(requestId: string): boolean | Promise<boolean>;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* A NEW {@link DecisionLedger} in this process's memory. Grows by one id per
|
|
210
|
+
* answered request.
|
|
211
|
+
*
|
|
212
|
+
* Agents that name no ledger already share one of these per process, so this
|
|
213
|
+
* is for a ledger of their own: agents given different ledgers spend
|
|
214
|
+
* separately, and a decision spent in one is not known to the others.
|
|
215
|
+
*/
|
|
216
|
+
export declare function inMemoryDecisionLedger(): DecisionLedger;
|
|
217
|
+
/**
|
|
218
|
+
* Register the rules `agent` holds an ask's approval to — its `toolMiddleware`
|
|
219
|
+
* chain by link name, read each time it is asked — for a host that keeps its
|
|
220
|
+
* pauses ({@link consentRulesOf}). Called by every `Agent` it builds.
|
|
221
|
+
*/
|
|
222
|
+
export declare function registerConsentRules(agent: object, rules: () => readonly string[]): void;
|
|
223
|
+
/**
|
|
224
|
+
* The rules `runner` holds an ask's approval to, when it is an agent this
|
|
225
|
+
* library built — `undefined` for any other runner (a composition, an app's
|
|
226
|
+
* own), whose nested agents' rules a host cannot see.
|
|
227
|
+
*/
|
|
228
|
+
export declare function consentRulesOf(runner: unknown): readonly string[] | undefined;
|
|
229
|
+
/**
|
|
230
|
+
* This process's ledger — where an agent that names no `decisionLedger`
|
|
231
|
+
* spends. One per process, so a decision runs once across every agent
|
|
232
|
+
* instance this process builds (and every copy of this package it loaded),
|
|
233
|
+
* not once per instance. It lives as long as the process and grows by one id
|
|
234
|
+
* per answered request; request ids are unique per pause, so sharing it never
|
|
235
|
+
* makes one agent's answer collide with another's.
|
|
236
|
+
*/
|
|
237
|
+
export declare function processDecisionLedger(): DecisionLedger;
|
|
238
|
+
/**
|
|
239
|
+
* Register the ledger `agent` spends its decisions in — `undefined` for the
|
|
240
|
+
* process's ({@link processDecisionLedger}) — so a host that closes one of its
|
|
241
|
+
* pauses can ask it for the proof ({@link proveNeverRan}). Called by every
|
|
242
|
+
* `Agent` it builds.
|
|
243
|
+
*/
|
|
244
|
+
export declare function registerConsentLedger(agent: object, ledger: DecisionLedger | undefined): void;
|
|
245
|
+
/**
|
|
246
|
+
* The ledger `runner` spends decisions in, when it is an agent this library
|
|
247
|
+
* built — `undefined` for any other runner (a composition, an app's own).
|
|
248
|
+
*/
|
|
249
|
+
export declare function consentLedgerOf(runner: unknown): DecisionLedger | undefined;
|
|
250
|
+
/**
|
|
251
|
+
* The identity a pause records for the ledger its request is minted under
|
|
252
|
+
* ({@link PendingRequest.ledger}), or `undefined` for one that has none:
|
|
253
|
+
*
|
|
254
|
+
* - this process's default ledger: `process:` + an id drawn when the process
|
|
255
|
+
* first asked. A restart draws another, so it never answers for a pause an
|
|
256
|
+
* earlier process stored — that process took its ledger with it;
|
|
257
|
+
* - a ledger naming its store (`DecisionLedger.storeId`): `store:` + that id;
|
|
258
|
+
* - any other — an app's own `inMemoryDecisionLedger()`, a ledger without a
|
|
259
|
+
* `storeId` — none: it may be one agent's alone, and nothing tells it
|
|
260
|
+
* apart from another.
|
|
261
|
+
*/
|
|
262
|
+
export declare function ledgerIdentityOf(ledger: DecisionLedger): string | undefined;
|
|
263
|
+
/** What {@link proveNeverRan} needs to know about a pause being closed, and the door closing it. */
|
|
264
|
+
export interface NeverRanQuestion {
|
|
265
|
+
/** Every id the paused request is known by — the state's and the question's. */
|
|
266
|
+
readonly requestIds: readonly string[];
|
|
267
|
+
/** The identity of the ledger the request was minted under ({@link PendingRequest.ledger}). */
|
|
268
|
+
readonly mintedUnder: string | undefined;
|
|
269
|
+
/** The runner serving the session — an agent this library built names its ledger. */
|
|
270
|
+
readonly runner: unknown;
|
|
271
|
+
/**
|
|
272
|
+
* The door keeps its pauses in this process's memory, so no other process
|
|
273
|
+
* can have answered one. Asked only of this process's default ledger.
|
|
274
|
+
*/
|
|
275
|
+
readonly storeIsProcessLocal: boolean;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* The key a closer spends, after it won a request, to record that IT closed it
|
|
279
|
+
* ({@link proveNeverRan}). Request ids are 64 hex characters, so no request id
|
|
280
|
+
* is ever one of these.
|
|
281
|
+
*/
|
|
282
|
+
export declare function closedProvenKey(requestId: string): string;
|
|
283
|
+
/**
|
|
284
|
+
* Prove that no decision for a paused request can ever run its call — or say
|
|
285
|
+
* that it cannot be proven. Spending is the one way a decision reaches a call
|
|
286
|
+
* (`spendDecision` runs before the tool, on every door), so the proof is the
|
|
287
|
+
* ledger the request was MINTED under spending the request itself: `true`
|
|
288
|
+
* there means no decision had reached it and — in the same atomic step — that
|
|
289
|
+
* none ever can (a later resume is refused). A read (`isSpent`) of the request
|
|
290
|
+
* would not do: a resume on another replica could spend and run the call
|
|
291
|
+
* between the read and the close, and a ledger may expire what it reads.
|
|
292
|
+
*
|
|
293
|
+
* IDEMPOTENT. Having won the request, the closer spends a second key,
|
|
294
|
+
* {@link closedProvenKey}, to record that it closed it. The closed pause is
|
|
295
|
+
* stored only afterwards, and that can fail (the store's write, the run that
|
|
296
|
+
* goes on from it); a retried close finds the request spent and reads the
|
|
297
|
+
* marker (`isSpent`) — present: the verdict the first close proved; absent
|
|
298
|
+
* (a crash between the two spends, a ledger without `isSpent`): not proven, the
|
|
299
|
+
* safe direction. A request a DECISION spent never has the marker.
|
|
300
|
+
*
|
|
301
|
+
* CONSUMES the request: asked only for a pause being closed.
|
|
302
|
+
*
|
|
303
|
+
* Fails closed — `false` — whenever the proof cannot be had:
|
|
304
|
+
*
|
|
305
|
+
* - the pause names no request, or no minting ledger (one stored before
|
|
306
|
+
* either was recorded, or minted under a ledger with no identity);
|
|
307
|
+
* - `runner` is not an agent this library built (a composition, an app's
|
|
308
|
+
* own), so its ledger is unknown;
|
|
309
|
+
* - its ledger is not the one the request was minted under: a redeploy that
|
|
310
|
+
* switched ledgers, or a restart (this process's ledger is a new one) —
|
|
311
|
+
* that ledger never saw the spends;
|
|
312
|
+
* - the request was minted under this process's default ledger and the
|
|
313
|
+
* door's session store is not this process's memory: another replica, on
|
|
314
|
+
* its own default ledger, may have spent it and run the call;
|
|
315
|
+
* - a spend throws, or answers anything but `true` with no close recorded.
|
|
316
|
+
*/
|
|
317
|
+
export declare function proveNeverRan(question: NeverRanQuestion): Promise<boolean>;
|
|
318
|
+
/**
|
|
319
|
+
* Whether a host already closed this paused request with the proof that its
|
|
320
|
+
* call never ran — read, never spent: the ledger it was minted under holds the
|
|
321
|
+
* close marker for every id ({@link closedProvenKey}). Asked by a door whose
|
|
322
|
+
* answer to the pause failed because the request was already spent, so a pause
|
|
323
|
+
* closed elsewhere (whose closed conversation was never stored) is closed as
|
|
324
|
+
* not run rather than marked as possibly run.
|
|
325
|
+
*/
|
|
326
|
+
export declare function closedByAHost(question: NeverRanQuestion): Promise<boolean>;
|
|
327
|
+
/**
|
|
328
|
+
* Mint the request for a call about to pause, over a detached copy of its
|
|
329
|
+
* arguments. `undefined` when the call cannot be bound — its arguments cannot
|
|
330
|
+
* be copied, are not an object, or are not values JSON writes down faithfully
|
|
331
|
+
* — and the gate must refuse the call instead of pausing.
|
|
332
|
+
*
|
|
333
|
+
* @param ledger the ledger a decision for it will be spent in — its identity
|
|
334
|
+
* rides the request ({@link PendingRequest.ledger}), so only that ledger can
|
|
335
|
+
* later prove the call never ran.
|
|
336
|
+
*/
|
|
337
|
+
export declare function mintConsentRequest(call: GatedCall, ledger?: DecisionLedger): BoundRequest | undefined;
|
|
338
|
+
/**
|
|
339
|
+
* The paused call as the paused run's state records it — the one reading both
|
|
340
|
+
* the resume's early check and the dispatch loop take, so they cannot disagree
|
|
341
|
+
* about what the request was bound to.
|
|
342
|
+
*/
|
|
343
|
+
export declare function gatedCallOf(read: (key: string) => unknown, gate: ConsentGateKind): GatedCall;
|
|
344
|
+
/**
|
|
345
|
+
* Hold a resume's input to the request the run is paused on. Pure: it spends
|
|
346
|
+
* nothing (see {@link spendDecision}).
|
|
347
|
+
*
|
|
348
|
+
* @param recorded the paused run's `pausedRequest`, as read — never trusted.
|
|
349
|
+
* @param call the paused call, as read ({@link gatedCallOf}).
|
|
350
|
+
* @param rules the resuming agent's own `toolMiddleware` chain, by link
|
|
351
|
+
* name — an ask's approval holds only for the rules it was asked under.
|
|
352
|
+
* @param ledger the ledger the resuming agent spends decisions in — a
|
|
353
|
+
* request minted under a ledger that can prove is spent only there.
|
|
354
|
+
* @returns a detached copy of the decision.
|
|
355
|
+
* @throws DecisionRequiredError when the input is not a decision at all.
|
|
356
|
+
* @throws ResumeDecisionError (`'no-request'`, `'request-not-recorded'`,
|
|
357
|
+
* `'other-request'`, `'call-changed'`, `'chain-changed'`,
|
|
358
|
+
* `'ledger-changed'`) when it cannot answer this request.
|
|
359
|
+
*/
|
|
360
|
+
export declare function heldDecision(input: unknown, gate: ConsentGate, recorded: unknown, call: GatedCall, rules: readonly string[], ledger?: DecisionLedger): CheckInDecision;
|
|
361
|
+
/**
|
|
362
|
+
* The refusals no decision can change — a paused request that can never be
|
|
363
|
+
* answered by the agent whose rules are `rules`. See {@link unanswerableReason}.
|
|
364
|
+
*/
|
|
365
|
+
export type UnanswerableReason = 'request-not-recorded' | 'call-changed' | 'chain-changed' | 'ledger-changed';
|
|
366
|
+
/**
|
|
367
|
+
* Why the request a checkpoint's paused stage records can never be answered —
|
|
368
|
+
* by any decision — or `undefined` when it can, or when that cannot be told
|
|
369
|
+
* from the checkpoint (its paused state is not where it should be).
|
|
370
|
+
*
|
|
371
|
+
* Read by a host that keeps the pause, so a session is not held by a question
|
|
372
|
+
* nobody can answer any more: one paused before requests were named
|
|
373
|
+
* (`'request-not-recorded'`), one whose call changed after the ask
|
|
374
|
+
* (`'call-changed'`), an ask made under rules the resuming agent no longer
|
|
375
|
+
* runs (`'chain-changed'` — told only when `rules` are known), or a request
|
|
376
|
+
* minted under a proving ledger the resuming agent no longer spends in
|
|
377
|
+
* (`'ledger-changed'` — told only when `ledger` is known).
|
|
378
|
+
*/
|
|
379
|
+
export declare function unanswerableReason(checkpoint: FlowchartCheckpoint, gate: ConsentGateKind, rules: readonly string[] | undefined, ledger?: DecisionLedger): UnanswerableReason | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* Whether `wouldRun` are the arguments the paused request was minted over —
|
|
382
|
+
* decided by re-deriving the request's id with them in place of the recorded
|
|
383
|
+
* ones: the call that runs must be the call the id the person was shown
|
|
384
|
+
* commits to. Key order and JSON's own equivalences do not count; a value
|
|
385
|
+
* JSON cannot write down faithfully never matches.
|
|
386
|
+
*
|
|
387
|
+
* Held to the REQUEST, never to a copy: an ask's resume hands the rest of the
|
|
388
|
+
* chain a copy of the approved arguments, and a link that edited that copy in
|
|
389
|
+
* place would make any comparison against it agree with itself.
|
|
390
|
+
*
|
|
391
|
+
* @param recorded the paused run's `pausedRequest`, as read.
|
|
392
|
+
* @param call the paused call, as read ({@link gatedCallOf}); its own
|
|
393
|
+
* `args` are replaced by `wouldRun`.
|
|
394
|
+
*/
|
|
395
|
+
export declare function runsAsAsked(recorded: unknown, call: GatedCall, wouldRun: unknown): boolean;
|
|
396
|
+
/**
|
|
397
|
+
* The same question as {@link heldDecision}, asked of a checkpoint before a
|
|
398
|
+
* resume starts — so a mismatch is refused while nothing has moved. Reads the
|
|
399
|
+
* paused stage's own state (the root's, or the innermost subflow's on the
|
|
400
|
+
* pause path). A state it cannot find is left to the dispatch loop, which asks
|
|
401
|
+
* again where the decision is used.
|
|
402
|
+
*/
|
|
403
|
+
export declare function checkDecisionAgainst(checkpoint: FlowchartCheckpoint, gate: ConsentGate, input: unknown, rules: readonly string[], ledger?: DecisionLedger): void;
|
|
404
|
+
/**
|
|
405
|
+
* Spend the decision's request in `ledger` — the one place a decision reaches
|
|
406
|
+
* a ledger, so every attempt is reported to whoever watches the request
|
|
407
|
+
* ({@link watchDecisionUse}).
|
|
408
|
+
*
|
|
409
|
+
* @param signal the resumed run's signal. The engine stops waiting on a stage
|
|
410
|
+
* when its run is aborted, but the stage goes on running: a resume whose run
|
|
411
|
+
* was aborted takes nothing to a ledger, and one aborted while its ledger
|
|
412
|
+
* answered is refused after the spend — spent, and its call never run.
|
|
413
|
+
* @throws ResumeDecisionError `'already-answered'` when a resume already spent
|
|
414
|
+
* it, or `'closed-by-host'` when a host closed it and recorded that its call
|
|
415
|
+
* never ran (`closedProvenKey`).
|
|
416
|
+
*/
|
|
417
|
+
export declare function spendDecision(ledger: DecisionLedger, decision: CheckInDecision, gate: ConsentGateKind, signal?: AbortSignal): Promise<void>;
|
|
418
|
+
/**
|
|
419
|
+
* What an aborted run ended with — the signal's own reason, as the engine
|
|
420
|
+
* reports it — or `undefined` while the run goes on. Asked before the spend,
|
|
421
|
+
* after it, and by the dispatch loop once more at the last moment before an
|
|
422
|
+
* approved call runs (`toolCalls.ts` · `resolveCredentialAndExecute`): the
|
|
423
|
+
* engine stops waiting on an aborted run's stage, but the stage goes on, and
|
|
424
|
+
* nothing may run for a caller who was already told the run ended.
|
|
425
|
+
*/
|
|
426
|
+
export declare function runEndedBy(signal: AbortSignal | undefined): Error | undefined;
|
|
427
|
+
/**
|
|
428
|
+
* A resume of this library has taken up the request `requestId` names: from
|
|
429
|
+
* here every use of its decision passes through {@link spendDecision}, where a
|
|
430
|
+
* watch sees it. Called by every runner's resume (`RunnerBase` ·
|
|
431
|
+
* `emitPauseResume`, and `Agent.resume` before its first check) and by the
|
|
432
|
+
* dispatch loop where it takes the decision up.
|
|
433
|
+
*/
|
|
434
|
+
export declare function noteDecisionTakenUp(requestId: string | undefined): void;
|
|
435
|
+
/** What a door that keeps a pause learns, for one resume, about its request ({@link watchDecisionUse}). */
|
|
436
|
+
export interface DecisionUseWatch {
|
|
437
|
+
/**
|
|
438
|
+
* Whether the request's decision may have been used while watched — by
|
|
439
|
+
* this resume, or by any other in this process:
|
|
440
|
+
*
|
|
441
|
+
* - taken to a ledger that spent it, refused it (an earlier resume had)
|
|
442
|
+
* or has not answered yet → `true`;
|
|
443
|
+
* - taken to a ledger whose spend failed → asked again of that ledger
|
|
444
|
+
* (`DecisionLedger.isSpent`): `false` there means the spend never landed;
|
|
445
|
+
* no answer, a throw, or a ledger that cannot be asked → `true`;
|
|
446
|
+
* - never taken to a ledger, by a resume this library took up → `false`;
|
|
447
|
+
* - never taken up by this library at all → `true`: that cannot be told
|
|
448
|
+
* apart from a use.
|
|
449
|
+
*/
|
|
450
|
+
mayHaveBeenUsed(): Promise<boolean>;
|
|
451
|
+
/**
|
|
452
|
+
* Whether a ledger SPENT the request for a decline while watched, and no
|
|
453
|
+
* approval of it was taken to a ledger meanwhile: the decline won the
|
|
454
|
+
* ledger, so no approval can have run the call there. Only then does a door
|
|
455
|
+
* record the paused call as declined. A decline the ledger refused (an
|
|
456
|
+
* earlier resume — an approval, perhaps in another process — had spent the
|
|
457
|
+
* request) is not one: that call may have run.
|
|
458
|
+
*/
|
|
459
|
+
spentAsDecline(): boolean;
|
|
460
|
+
/** Stop watching. A door releases its watch once it has decided. */
|
|
461
|
+
release(): void;
|
|
462
|
+
}
|
|
463
|
+
/**
|
|
464
|
+
* Watch the request `requestId` names for the length of one resume — opened
|
|
465
|
+
* by a door that keeps the pause, before it hands the decision over, and
|
|
466
|
+
* released once it has decided what a failure means for the stored pause.
|
|
467
|
+
* Keyed by the request, never by the decision object a door may copy or wrap.
|
|
468
|
+
*/
|
|
469
|
+
export declare function watchDecisionUse(requestId: string): DecisionUseWatch;
|
|
470
|
+
/** The id of the request a paused run's state records (`pausedRequest`), or `undefined`. */
|
|
471
|
+
export declare function recordedRequestId(recorded: unknown): string | undefined;
|
|
472
|
+
/**
|
|
473
|
+
* The id of the call a checkpoint's paused stage records as paused
|
|
474
|
+
* (`pausedToolCallId`), or `undefined` — never a throw, whatever the
|
|
475
|
+
* checkpoint holds.
|
|
476
|
+
*/
|
|
477
|
+
export declare function pausedCallIdOf(checkpoint: FlowchartCheckpoint): string | undefined;
|
|
478
|
+
/**
|
|
479
|
+
* The identity of the ledger the request a checkpoint's paused stage records
|
|
480
|
+
* was minted under ({@link PendingRequest.ledger}), or `undefined` — never a
|
|
481
|
+
* throw, whatever the checkpoint holds.
|
|
482
|
+
*/
|
|
483
|
+
export declare function pausedRequestLedgerOf(checkpoint: FlowchartCheckpoint): string | undefined;
|
|
484
|
+
/**
|
|
485
|
+
* The id of the request a checkpoint's paused stage records, or `undefined`
|
|
486
|
+
* — never a throw, whatever the checkpoint holds.
|
|
487
|
+
*/
|
|
488
|
+
export declare function pausedRequestIdOf(checkpoint: FlowchartCheckpoint): string | undefined;
|