agentfootprint 9.41.0 → 9.44.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 +30 -1
- package/CLAUDE.md +3 -1
- package/ai-instructions/claude-code/SKILL.md +31 -1
- package/dist/adapters/hosting/agentcore.js +163 -23
- package/dist/adapters/hosting/agentcore.js.map +1 -1
- package/dist/adapters/hosting/firestoreSessions.js +184 -14
- package/dist/adapters/hosting/firestoreSessions.js.map +1 -1
- package/dist/adapters/hosting/googleAgentEngine.js +29 -0
- package/dist/adapters/hosting/googleAgentEngine.js.map +1 -1
- package/dist/artifacts/conformance/cases.js +20 -0
- package/dist/artifacts/conformance/cases.js.map +1 -1
- package/dist/artifacts/scopePath.js +41 -1
- package/dist/artifacts/scopePath.js.map +1 -1
- package/dist/core/Agent.js +17 -1
- package/dist/core/Agent.js.map +1 -1
- package/dist/core/agent/AgentBuilder.js +56 -1
- package/dist/core/agent/AgentBuilder.js.map +1 -1
- package/dist/core/agent/buildAgentChart.js +5 -1
- package/dist/core/agent/buildAgentChart.js.map +1 -1
- package/dist/core/agent/buildDynamicAgentChart.js +5 -1
- package/dist/core/agent/buildDynamicAgentChart.js.map +1 -1
- package/dist/core/agent/coverage/absent.js +163 -0
- package/dist/core/agent/coverage/absent.js.map +1 -0
- package/dist/core/agent/coverage/answer.js +90 -0
- package/dist/core/agent/coverage/answer.js.map +1 -0
- package/dist/core/agent/coverage/evidence.js +90 -0
- package/dist/core/agent/coverage/evidence.js.map +1 -0
- package/dist/core/agent/coverage/index.js +37 -0
- package/dist/core/agent/coverage/index.js.map +1 -0
- package/dist/core/agent/coverage/items.js +91 -0
- package/dist/core/agent/coverage/items.js.map +1 -0
- package/dist/core/agent/coverage/ledger.js +131 -0
- package/dist/core/agent/coverage/ledger.js.map +1 -0
- package/dist/core/agent/coverage/read.js +56 -0
- package/dist/core/agent/coverage/read.js.map +1 -0
- package/dist/core/agent/coverage/types.js +15 -0
- package/dist/core/agent/coverage/types.js.map +1 -0
- package/dist/core/agent/evidence/evidenceIndex.js +18 -1
- package/dist/core/agent/evidence/evidenceIndex.js.map +1 -1
- package/dist/core/agent/stages/prepareFinal.js +44 -3
- package/dist/core/agent/stages/prepareFinal.js.map +1 -1
- package/dist/core/agent/stages/toolCalls.js +109 -3
- package/dist/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/core/agent/toolEffects.js +1 -1
- package/dist/core/outputFallback.js.map +1 -1
- package/dist/debug.js +49 -25
- package/dist/debug.js.map +1 -1
- package/dist/esm/adapters/hosting/agentcore.d.ts +8 -0
- package/dist/esm/adapters/hosting/agentcore.js +163 -23
- package/dist/esm/adapters/hosting/agentcore.js.map +1 -1
- package/dist/esm/adapters/hosting/firestoreSessions.d.ts +162 -14
- package/dist/esm/adapters/hosting/firestoreSessions.js +182 -13
- package/dist/esm/adapters/hosting/firestoreSessions.js.map +1 -1
- package/dist/esm/adapters/hosting/googleAgentEngine.d.ts +16 -1
- package/dist/esm/adapters/hosting/googleAgentEngine.js +29 -0
- package/dist/esm/adapters/hosting/googleAgentEngine.js.map +1 -1
- package/dist/esm/artifacts/conformance/cases.js +20 -0
- package/dist/esm/artifacts/conformance/cases.js.map +1 -1
- package/dist/esm/artifacts/scopePath.d.ts +31 -0
- package/dist/esm/artifacts/scopePath.js +41 -1
- package/dist/esm/artifacts/scopePath.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +8 -1
- package/dist/esm/core/Agent.js +18 -2
- package/dist/esm/core/Agent.js.map +1 -1
- package/dist/esm/core/agent/AgentBuilder.d.ts +43 -0
- package/dist/esm/core/agent/AgentBuilder.js +56 -1
- package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/core/agent/buildAgentChart.d.ts +9 -0
- package/dist/esm/core/agent/buildAgentChart.js +6 -2
- package/dist/esm/core/agent/buildAgentChart.js.map +1 -1
- package/dist/esm/core/agent/buildDynamicAgentChart.js +6 -2
- package/dist/esm/core/agent/buildDynamicAgentChart.js.map +1 -1
- package/dist/esm/core/agent/coverage/absent.d.ts +104 -0
- package/dist/esm/core/agent/coverage/absent.js +157 -0
- package/dist/esm/core/agent/coverage/absent.js.map +1 -0
- package/dist/esm/core/agent/coverage/answer.d.ts +46 -0
- package/dist/esm/core/agent/coverage/answer.js +86 -0
- package/dist/esm/core/agent/coverage/answer.js.map +1 -0
- package/dist/esm/core/agent/coverage/evidence.d.ts +68 -0
- package/dist/esm/core/agent/coverage/evidence.js +86 -0
- package/dist/esm/core/agent/coverage/evidence.js.map +1 -0
- package/dist/esm/core/agent/coverage/index.d.ts +17 -0
- package/dist/esm/core/agent/coverage/index.js +17 -0
- package/dist/esm/core/agent/coverage/index.js.map +1 -0
- package/dist/esm/core/agent/coverage/items.d.ts +35 -0
- package/dist/esm/core/agent/coverage/items.js +85 -0
- package/dist/esm/core/agent/coverage/items.js.map +1 -0
- package/dist/esm/core/agent/coverage/ledger.d.ts +80 -0
- package/dist/esm/core/agent/coverage/ledger.js +125 -0
- package/dist/esm/core/agent/coverage/ledger.js.map +1 -0
- package/dist/esm/core/agent/coverage/read.d.ts +51 -0
- package/dist/esm/core/agent/coverage/read.js +52 -0
- package/dist/esm/core/agent/coverage/read.js.map +1 -0
- package/dist/esm/core/agent/coverage/types.d.ts +142 -0
- package/dist/esm/core/agent/coverage/types.js +14 -0
- package/dist/esm/core/agent/coverage/types.js.map +1 -0
- package/dist/esm/core/agent/evidence/evidenceIndex.d.ts +7 -0
- package/dist/esm/core/agent/evidence/evidenceIndex.js +18 -1
- package/dist/esm/core/agent/evidence/evidenceIndex.js.map +1 -1
- package/dist/esm/core/agent/stages/prepareFinal.d.ts +18 -0
- package/dist/esm/core/agent/stages/prepareFinal.js +42 -2
- package/dist/esm/core/agent/stages/prepareFinal.js.map +1 -1
- package/dist/esm/core/agent/stages/toolCalls.js +109 -3
- package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
- package/dist/esm/core/agent/toolEffects.d.ts +2 -2
- package/dist/esm/core/agent/toolEffects.js +1 -1
- package/dist/esm/core/agent/types.d.ts +14 -0
- package/dist/esm/core/outputFallback.d.ts +15 -1
- package/dist/esm/core/outputFallback.js.map +1 -1
- package/dist/esm/debug.d.ts +1 -0
- package/dist/esm/debug.js +7 -0
- package/dist/esm/debug.js.map +1 -1
- package/dist/esm/events/dispatcher.d.ts +1 -1
- package/dist/esm/events/dispatcher.js.map +1 -1
- package/dist/esm/events/payloads.d.ts +82 -0
- package/dist/esm/events/registry.d.ts +11 -1
- package/dist/esm/events/registry.js +10 -0
- package/dist/esm/events/registry.js.map +1 -1
- package/dist/esm/hosting/conformance/cases.d.ts +2 -1
- package/dist/esm/hosting/conformance/cases.js +229 -22
- package/dist/esm/hosting/conformance/cases.js.map +1 -1
- package/dist/esm/hosting/conformance/types.d.ts +7 -7
- package/dist/esm/hosting/errors.d.ts +28 -0
- package/dist/esm/hosting/errors.js +40 -0
- package/dist/esm/hosting/errors.js.map +1 -1
- package/dist/esm/hosting/index.d.ts +11 -3
- package/dist/esm/hosting/index.js +15 -2
- package/dist/esm/hosting/index.js.map +1 -1
- package/dist/esm/hosting/memorySessions.js +39 -0
- package/dist/esm/hosting/memorySessions.js.map +1 -1
- package/dist/esm/hosting/sessionRetention.d.ts +56 -0
- package/dist/esm/hosting/sessionRetention.js +69 -0
- package/dist/esm/hosting/sessionRetention.js.map +1 -0
- package/dist/esm/hosting/sqliteSessions.d.ts +11 -1
- package/dist/esm/hosting/sqliteSessions.js +51 -0
- package/dist/esm/hosting/sqliteSessions.js.map +1 -1
- package/dist/esm/hosting/types.d.ts +184 -0
- package/dist/esm/hosting/types.js +9 -0
- package/dist/esm/hosting/types.js.map +1 -1
- package/dist/esm/hosting-providers.d.ts +15 -11
- package/dist/esm/hosting-providers.js +21 -11
- package/dist/esm/hosting-providers.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/context-bisect/arms/apply.d.ts +54 -0
- package/dist/esm/lib/context-bisect/arms/apply.js +41 -0
- package/dist/esm/lib/context-bisect/arms/apply.js.map +1 -0
- package/dist/esm/lib/context-bisect/arms/compare.d.ts +27 -0
- package/dist/esm/lib/context-bisect/arms/compare.js +112 -0
- package/dist/esm/lib/context-bisect/arms/compare.js.map +1 -0
- package/dist/esm/lib/context-bisect/arms/index.d.ts +16 -0
- package/dist/esm/lib/context-bisect/arms/index.js +16 -0
- package/dist/esm/lib/context-bisect/arms/index.js.map +1 -0
- package/dist/esm/lib/context-bisect/arms/manifest.d.ts +79 -0
- package/dist/esm/lib/context-bisect/arms/manifest.js +199 -0
- package/dist/esm/lib/context-bisect/arms/manifest.js.map +1 -0
- package/dist/esm/lib/context-bisect/arms/probe.d.ts +54 -0
- package/dist/esm/lib/context-bisect/arms/probe.js +125 -0
- package/dist/esm/lib/context-bisect/arms/probe.js.map +1 -0
- package/dist/esm/lib/context-bisect/arms/types.d.ts +319 -0
- package/dist/esm/lib/context-bisect/arms/types.js +67 -0
- package/dist/esm/lib/context-bisect/arms/types.js.map +1 -0
- package/dist/esm/lib/context-bisect/arms/validate.d.ts +26 -0
- package/dist/esm/lib/context-bisect/arms/validate.js +122 -0
- package/dist/esm/lib/context-bisect/arms/validate.js.map +1 -0
- package/dist/esm/lib/context-bisect/arms/verdict.d.ts +53 -0
- package/dist/esm/lib/context-bisect/arms/verdict.js +103 -0
- package/dist/esm/lib/context-bisect/arms/verdict.js.map +1 -0
- package/dist/esm/lib/context-bisect/index.d.ts +1 -0
- package/dist/esm/lib/context-bisect/index.js +5 -0
- package/dist/esm/lib/context-bisect/index.js.map +1 -1
- package/dist/esm/lib/injection-engine/index.d.ts +1 -1
- package/dist/esm/lib/injection-engine/index.js +3 -1
- package/dist/esm/lib/injection-engine/index.js.map +1 -1
- package/dist/esm/lib/injection-engine/skillExamples.d.ts +16 -13
- package/dist/esm/lib/injection-engine/skillExamples.js +16 -60
- package/dist/esm/lib/injection-engine/skillExamples.js.map +1 -1
- package/dist/esm/lib/injection-engine/skillGraph.d.ts +50 -0
- package/dist/esm/lib/injection-engine/skillGraph.js +52 -1
- package/dist/esm/lib/injection-engine/skillGraph.js.map +1 -1
- package/dist/esm/lib/injection-engine/skillGraphCheckup.d.ts +6 -5
- package/dist/esm/lib/injection-engine/skillGraphCheckup.js.map +1 -1
- package/dist/esm/lib/injection-engine/skillNeverRoutes.d.ts +131 -0
- package/dist/esm/lib/injection-engine/skillNeverRoutes.js +228 -0
- package/dist/esm/lib/injection-engine/skillNeverRoutes.js.map +1 -0
- package/dist/esm/lib/injection-engine/skillPartition.d.ts +69 -0
- package/dist/esm/lib/injection-engine/skillPartition.js +273 -0
- package/dist/esm/lib/injection-engine/skillPartition.js.map +1 -0
- package/dist/esm/lib/injection-engine/skillsFromDir.d.ts +83 -3
- package/dist/esm/lib/injection-engine/skillsFromDir.js +118 -7
- package/dist/esm/lib/injection-engine/skillsFromDir.js.map +1 -1
- package/dist/esm/lib/injection-engine/skillsFromDirRoutes.d.ts +105 -0
- package/dist/esm/lib/injection-engine/skillsFromDirRoutes.js +169 -0
- package/dist/esm/lib/injection-engine/skillsFromDirRoutes.js.map +1 -0
- package/dist/esm/lib/injection-engine/startRuleClaim.d.ts +91 -0
- package/dist/esm/lib/injection-engine/startRuleClaim.js +78 -0
- package/dist/esm/lib/injection-engine/startRuleClaim.js.map +1 -0
- package/dist/esm/lib/injection-engine/toolOutcome.d.ts +12 -3
- package/dist/esm/lib/injection-engine/toolOutcome.js +2 -1
- package/dist/esm/lib/injection-engine/toolOutcome.js.map +1 -1
- package/dist/events/dispatcher.js.map +1 -1
- package/dist/events/registry.js +10 -0
- package/dist/events/registry.js.map +1 -1
- package/dist/hosting/conformance/cases.js +229 -22
- package/dist/hosting/conformance/cases.js.map +1 -1
- package/dist/hosting/errors.js +42 -1
- package/dist/hosting/errors.js.map +1 -1
- package/dist/hosting/index.js +18 -2
- package/dist/hosting/index.js.map +1 -1
- package/dist/hosting/memorySessions.js +39 -0
- package/dist/hosting/memorySessions.js.map +1 -1
- package/dist/hosting/sessionRetention.js +73 -0
- package/dist/hosting/sessionRetention.js.map +1 -0
- package/dist/hosting/sqliteSessions.js +51 -0
- package/dist/hosting/sqliteSessions.js.map +1 -1
- package/dist/hosting/types.js +10 -1
- package/dist/hosting/types.js.map +1 -1
- package/dist/hosting-providers.js +21 -11
- package/dist/hosting-providers.js.map +1 -1
- package/dist/index.js +72 -43
- package/dist/index.js.map +1 -1
- package/dist/lib/context-bisect/arms/apply.js +45 -0
- package/dist/lib/context-bisect/arms/apply.js.map +1 -0
- package/dist/lib/context-bisect/arms/compare.js +116 -0
- package/dist/lib/context-bisect/arms/compare.js.map +1 -0
- package/dist/lib/context-bisect/arms/index.js +35 -0
- package/dist/lib/context-bisect/arms/index.js.map +1 -0
- package/dist/lib/context-bisect/arms/manifest.js +207 -0
- package/dist/lib/context-bisect/arms/manifest.js.map +1 -0
- package/dist/lib/context-bisect/arms/probe.js +132 -0
- package/dist/lib/context-bisect/arms/probe.js.map +1 -0
- package/dist/lib/context-bisect/arms/types.js +68 -0
- package/dist/lib/context-bisect/arms/types.js.map +1 -0
- package/dist/lib/context-bisect/arms/validate.js +128 -0
- package/dist/lib/context-bisect/arms/validate.js.map +1 -0
- package/dist/lib/context-bisect/arms/verdict.js +107 -0
- package/dist/lib/context-bisect/arms/verdict.js.map +1 -0
- package/dist/lib/context-bisect/index.js +23 -1
- package/dist/lib/context-bisect/index.js.map +1 -1
- package/dist/lib/injection-engine/index.js +4 -1
- package/dist/lib/injection-engine/index.js.map +1 -1
- package/dist/lib/injection-engine/skillExamples.js +24 -68
- package/dist/lib/injection-engine/skillExamples.js.map +1 -1
- package/dist/lib/injection-engine/skillGraph.js +52 -1
- package/dist/lib/injection-engine/skillGraph.js.map +1 -1
- package/dist/lib/injection-engine/skillGraphCheckup.js.map +1 -1
- package/dist/lib/injection-engine/skillNeverRoutes.js +234 -0
- package/dist/lib/injection-engine/skillNeverRoutes.js.map +1 -0
- package/dist/lib/injection-engine/skillPartition.js +277 -0
- package/dist/lib/injection-engine/skillPartition.js.map +1 -0
- package/dist/lib/injection-engine/skillsFromDir.js +121 -9
- package/dist/lib/injection-engine/skillsFromDir.js.map +1 -1
- package/dist/lib/injection-engine/skillsFromDirRoutes.js +174 -0
- package/dist/lib/injection-engine/skillsFromDirRoutes.js.map +1 -0
- package/dist/lib/injection-engine/startRuleClaim.js +85 -0
- package/dist/lib/injection-engine/startRuleClaim.js.map +1 -0
- package/dist/lib/injection-engine/toolOutcome.js +2 -1
- package/dist/lib/injection-engine/toolOutcome.js.map +1 -1
- package/dist/types/adapters/hosting/agentcore.d.ts +8 -0
- package/dist/types/adapters/hosting/agentcore.d.ts.map +1 -1
- package/dist/types/adapters/hosting/firestoreSessions.d.ts +162 -14
- package/dist/types/adapters/hosting/firestoreSessions.d.ts.map +1 -1
- package/dist/types/adapters/hosting/googleAgentEngine.d.ts +16 -1
- package/dist/types/adapters/hosting/googleAgentEngine.d.ts.map +1 -1
- package/dist/types/artifacts/conformance/cases.d.ts.map +1 -1
- package/dist/types/artifacts/scopePath.d.ts +31 -0
- package/dist/types/artifacts/scopePath.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts +8 -1
- package/dist/types/core/Agent.d.ts.map +1 -1
- package/dist/types/core/agent/AgentBuilder.d.ts +43 -0
- package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
- package/dist/types/core/agent/buildAgentChart.d.ts +9 -0
- 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/coverage/absent.d.ts +105 -0
- package/dist/types/core/agent/coverage/absent.d.ts.map +1 -0
- package/dist/types/core/agent/coverage/answer.d.ts +47 -0
- package/dist/types/core/agent/coverage/answer.d.ts.map +1 -0
- package/dist/types/core/agent/coverage/evidence.d.ts +69 -0
- package/dist/types/core/agent/coverage/evidence.d.ts.map +1 -0
- package/dist/types/core/agent/coverage/index.d.ts +18 -0
- package/dist/types/core/agent/coverage/index.d.ts.map +1 -0
- package/dist/types/core/agent/coverage/items.d.ts +36 -0
- package/dist/types/core/agent/coverage/items.d.ts.map +1 -0
- package/dist/types/core/agent/coverage/ledger.d.ts +81 -0
- package/dist/types/core/agent/coverage/ledger.d.ts.map +1 -0
- package/dist/types/core/agent/coverage/read.d.ts +52 -0
- package/dist/types/core/agent/coverage/read.d.ts.map +1 -0
- package/dist/types/core/agent/coverage/types.d.ts +143 -0
- package/dist/types/core/agent/coverage/types.d.ts.map +1 -0
- package/dist/types/core/agent/evidence/evidenceIndex.d.ts +7 -0
- package/dist/types/core/agent/evidence/evidenceIndex.d.ts.map +1 -1
- package/dist/types/core/agent/stages/prepareFinal.d.ts +18 -0
- package/dist/types/core/agent/stages/prepareFinal.d.ts.map +1 -1
- package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
- package/dist/types/core/agent/toolEffects.d.ts +2 -2
- package/dist/types/core/agent/types.d.ts +14 -0
- package/dist/types/core/agent/types.d.ts.map +1 -1
- package/dist/types/core/outputFallback.d.ts +15 -1
- package/dist/types/core/outputFallback.d.ts.map +1 -1
- package/dist/types/debug.d.ts +1 -0
- package/dist/types/debug.d.ts.map +1 -1
- package/dist/types/events/dispatcher.d.ts +1 -1
- package/dist/types/events/dispatcher.d.ts.map +1 -1
- package/dist/types/events/payloads.d.ts +82 -0
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/events/registry.d.ts +11 -1
- package/dist/types/events/registry.d.ts.map +1 -1
- package/dist/types/hosting/conformance/cases.d.ts +2 -1
- package/dist/types/hosting/conformance/cases.d.ts.map +1 -1
- package/dist/types/hosting/conformance/types.d.ts +7 -7
- package/dist/types/hosting/conformance/types.d.ts.map +1 -1
- package/dist/types/hosting/errors.d.ts +28 -0
- package/dist/types/hosting/errors.d.ts.map +1 -1
- package/dist/types/hosting/index.d.ts +11 -3
- package/dist/types/hosting/index.d.ts.map +1 -1
- package/dist/types/hosting/memorySessions.d.ts.map +1 -1
- package/dist/types/hosting/sessionRetention.d.ts +57 -0
- package/dist/types/hosting/sessionRetention.d.ts.map +1 -0
- package/dist/types/hosting/sqliteSessions.d.ts +11 -1
- package/dist/types/hosting/sqliteSessions.d.ts.map +1 -1
- package/dist/types/hosting/types.d.ts +184 -0
- package/dist/types/hosting/types.d.ts.map +1 -1
- package/dist/types/hosting-providers.d.ts +15 -11
- package/dist/types/hosting-providers.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/lib/context-bisect/arms/apply.d.ts +55 -0
- package/dist/types/lib/context-bisect/arms/apply.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/arms/compare.d.ts +28 -0
- package/dist/types/lib/context-bisect/arms/compare.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/arms/index.d.ts +17 -0
- package/dist/types/lib/context-bisect/arms/index.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/arms/manifest.d.ts +80 -0
- package/dist/types/lib/context-bisect/arms/manifest.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/arms/probe.d.ts +55 -0
- package/dist/types/lib/context-bisect/arms/probe.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/arms/types.d.ts +320 -0
- package/dist/types/lib/context-bisect/arms/types.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/arms/validate.d.ts +27 -0
- package/dist/types/lib/context-bisect/arms/validate.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/arms/verdict.d.ts +54 -0
- package/dist/types/lib/context-bisect/arms/verdict.d.ts.map +1 -0
- package/dist/types/lib/context-bisect/index.d.ts +1 -0
- package/dist/types/lib/context-bisect/index.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/index.d.ts +1 -1
- package/dist/types/lib/injection-engine/index.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/skillExamples.d.ts +16 -13
- package/dist/types/lib/injection-engine/skillExamples.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/skillGraph.d.ts +50 -0
- package/dist/types/lib/injection-engine/skillGraph.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/skillGraphCheckup.d.ts +6 -5
- package/dist/types/lib/injection-engine/skillGraphCheckup.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/skillNeverRoutes.d.ts +132 -0
- package/dist/types/lib/injection-engine/skillNeverRoutes.d.ts.map +1 -0
- package/dist/types/lib/injection-engine/skillPartition.d.ts +70 -0
- package/dist/types/lib/injection-engine/skillPartition.d.ts.map +1 -0
- package/dist/types/lib/injection-engine/skillsFromDir.d.ts +83 -3
- package/dist/types/lib/injection-engine/skillsFromDir.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/skillsFromDirRoutes.d.ts +106 -0
- package/dist/types/lib/injection-engine/skillsFromDirRoutes.d.ts.map +1 -0
- package/dist/types/lib/injection-engine/startRuleClaim.d.ts +92 -0
- package/dist/types/lib/injection-engine/startRuleClaim.d.ts.map +1 -0
- package/dist/types/lib/injection-engine/toolOutcome.d.ts +12 -3
- package/dist/types/lib/injection-engine/toolOutcome.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
* well is the cheap half of that promise: a row this store could not read back
|
|
53
53
|
* never gets written in the first place.
|
|
54
54
|
*/
|
|
55
|
-
import type { SessionLifecycle } from './types.js';
|
|
55
|
+
import type { SessionLifecycle, SessionSweep } from './types.js';
|
|
56
56
|
/** One prepared statement, as this adapter calls it. */
|
|
57
57
|
export interface SqliteStatementLike {
|
|
58
58
|
run(...params: readonly unknown[]): unknown;
|
|
@@ -125,6 +125,16 @@ export interface SqliteSessions extends SessionLifecycle {
|
|
|
125
125
|
readonly journalMode: string;
|
|
126
126
|
/** Forget one session. No-op if there is nothing stored for it. */
|
|
127
127
|
forget(sessionId: string): Promise<void>;
|
|
128
|
+
/**
|
|
129
|
+
* How conversations here stop existing: **this store deletes them**, when a
|
|
130
|
+
* job of yours asks it to (9.42.0).
|
|
131
|
+
*
|
|
132
|
+
* Narrowed from the port's optional member to a required one, and to the one
|
|
133
|
+
* arm a file-backed store can be — a caller holding a `SqliteSessions` needs
|
|
134
|
+
* no feature check, and reaching for a backend policy that does not exist
|
|
135
|
+
* here is a compile error rather than a surprise at 3am.
|
|
136
|
+
*/
|
|
137
|
+
retention(): SessionSweep;
|
|
128
138
|
/**
|
|
129
139
|
* Close the file. Idempotent — a shutdown hook and an explicit close can
|
|
130
140
|
* coexist. Reading or writing afterwards refuses by name rather than
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sqliteSessions.d.ts","sourceRoot":"","sources":["../../../src/hosting/sqliteSessions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;
|
|
1
|
+
{"version":3,"file":"sqliteSessions.d.ts","sourceRoot":"","sources":["../../../src/hosting/sqliteSessions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAQH,OAAO,KAAK,EAEV,gBAAgB,EAGhB,YAAY,EAGb,MAAM,YAAY,CAAC;AAIpB,wDAAwD;AACxD,MAAM,WAAW,mBAAmB;IAClC,GAAG,CAAC,GAAG,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5C,GAAG,CAAC,GAAG,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,CAAC;IAC5C,GAAG,CAAC,GAAG,MAAM,EAAE,SAAS,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC;CAC/C;AAED,mDAAmD;AACnD,MAAM,WAAW,kBAAkB;IACjC,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAC;IAC1C,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;;;;GAKG;A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a request field.
|
|
774
774
|
*/
|
|
775
775
|
ownerOf?(sessionId: string): Promise<string | undefined>;
|
|
776
|
+
/**
|
|
777
|
+
* OPTIONAL (9.42.0) — how conversations in this store stop existing.
|
|
778
|
+
*
|
|
779
|
+
* Feature-detected exactly like the two members above, and for the same
|
|
780
|
+
* reason: the two required methods are a key/value map, and demanding a
|
|
781
|
+
* retention mechanism of every implementation that will ever exist would be
|
|
782
|
+
* this port breaking its own rule ("anything a real store also wants is that
|
|
783
|
+
* store's API, not a demand this port makes"). A store that leaves this
|
|
784
|
+
* absent makes {@link sessionRetention} refuse BY NAME, naming the store's
|
|
785
|
+
* limitation and which shipped stores do implement it — never a silent
|
|
786
|
+
* no-op, which is the one failure mode a retention feature must not have,
|
|
787
|
+
* because from the outside "nothing was deleted" and "everything is fine"
|
|
788
|
+
* look identical until somebody asks how long you keep conversations.
|
|
789
|
+
*
|
|
790
|
+
* ── Why it is one member with two arms, and not one verb ────────────────────
|
|
791
|
+
* Because there are exactly two honest implementations of retention, and a
|
|
792
|
+
* port member only half the shipped stores could implement would not be a
|
|
793
|
+
* port member at all:
|
|
794
|
+
*
|
|
795
|
+
* - some stores **delete when you ask them to** — a `Map`, a table, a file.
|
|
796
|
+
* A sweep is one loop or one statement there, and the caller's cron
|
|
797
|
+
* decides when.
|
|
798
|
+
* - some stores **cannot honestly sweep, because the backend already
|
|
799
|
+
* expires rows on a policy the operator configured** out of band. Asking
|
|
800
|
+
* such a store to sweep would mean a query plus one delete per row, at an
|
|
801
|
+
* unbounded cost, duplicating a job the service does for free — and a
|
|
802
|
+
* store that reported "0 deleted" from a backend that deletes plenty
|
|
803
|
+
* would be lying by omission.
|
|
804
|
+
*
|
|
805
|
+
* So the answer is a DISCRIMINATED UNION and `deletedBy` is the field a
|
|
806
|
+
* consumer branches on: one feature check, then one exhaustive branch the
|
|
807
|
+
* compiler enforces. See {@link SessionRetention}.
|
|
808
|
+
*
|
|
809
|
+
* ── The shape that was deliberately NOT chosen ──────────────────────────────
|
|
810
|
+
* A stated expiry at persist time — `persist(id, envelope, { expiresAt })` —
|
|
811
|
+
* reads well and is the wrong shape twice over. It puts a demand on the one
|
|
812
|
+
* method every store must implement, so every store that will ever exist has
|
|
813
|
+
* to honour it; and it cannot be feature-detected, because `typeof
|
|
814
|
+
* store.persist === 'function'` is true whether or not the third argument is
|
|
815
|
+
* read. A store that ignored it would keep every conversation forever while
|
|
816
|
+
* its caller believed retention was configured. An optional member that is
|
|
817
|
+
* absent refuses; an optional ARGUMENT that is ignored does not.
|
|
818
|
+
*
|
|
819
|
+
* ── Why not the shape the ARTIFACT port already uses ────────────────────────
|
|
820
|
+
* That sibling port states an expiry at MINT (`ttlMs` → a stamped
|
|
821
|
+
* `expiresAt`) and sweeps a scope when a put next touches it. It is the right
|
|
822
|
+
* shape THERE because every artifact store in that family holds its own
|
|
823
|
+
* bytes, so every one of them can sweep. This family does not: two of its
|
|
824
|
+
* stores are managed services that expire rows on a policy nobody here
|
|
825
|
+
* controls, and one has no delete at all. A port copies its sibling's
|
|
826
|
+
* vocabulary only where the sibling's assumption also holds.
|
|
827
|
+
*
|
|
828
|
+
* ── What this is not ────────────────────────────────────────────────────────
|
|
829
|
+
* Not a wire op. No door in this package deletes conversations on request,
|
|
830
|
+
* and the composer never expires anything on its own: retention is an
|
|
831
|
+
* operator's job with an operator's blast radius, and a request that could
|
|
832
|
+
* delete somebody's history because it named a cutoff is not a feature.
|
|
833
|
+
*
|
|
834
|
+
* @example A cleanup job that works against any store that can answer
|
|
835
|
+
* const policy = sessionRetention(sessions);
|
|
836
|
+
* if (policy.deletedBy === 'this-store') {
|
|
837
|
+
* const { forgotten, more } = await policy.forgetOlderThan(Date.now() - THIRTY_DAYS);
|
|
838
|
+
* log(`forgot ${forgotten} conversations${more ? ', more remain' : ''}`);
|
|
839
|
+
* } else {
|
|
840
|
+
* log(`the backend expires these on '${policy.expiresOn}': ${policy.enableWith}`);
|
|
841
|
+
* }
|
|
842
|
+
*/
|
|
843
|
+
retention?(): SessionRetention;
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* How one store's conversations stop existing — the answer
|
|
847
|
+
* {@link SessionLifecycle.retention} gives, in the two shapes a store can
|
|
848
|
+
* honestly give it.
|
|
849
|
+
*
|
|
850
|
+
* `deletedBy` is the discriminant, and it is spelled as WHO does the deleting
|
|
851
|
+
* rather than as a mechanism, because that is the fact a caller acts on: one
|
|
852
|
+
* arm hands you something to call, the other hands you something to configure.
|
|
853
|
+
*/
|
|
854
|
+
export type SessionRetention = SessionSweep | SessionExpiryPolicy;
|
|
855
|
+
/**
|
|
856
|
+
* This store deletes, when you ask it to.
|
|
857
|
+
*
|
|
858
|
+
* The shape for a store that holds its own bytes — a map, a table, a file.
|
|
859
|
+
* Nothing sweeps on a timer of its own: a library that started an interval
|
|
860
|
+
* would be deciding your process's lifetime for you, and a sweep that runs
|
|
861
|
+
* without anybody asking is a deletion nobody can point at afterwards.
|
|
862
|
+
*/
|
|
863
|
+
export interface SessionSweep {
|
|
864
|
+
readonly deletedBy: 'this-store';
|
|
865
|
+
/**
|
|
866
|
+
* Forget every session whose stored `savedAt` is STRICTLY BEFORE `before`
|
|
867
|
+
* (epoch milliseconds), and say how many went.
|
|
868
|
+
*
|
|
869
|
+
* Strictly before, so that passing the same cutoff twice is stable and a
|
|
870
|
+
* session written exactly at the boundary survives — an off-by-one here
|
|
871
|
+
* deletes a conversation somebody is still holding.
|
|
872
|
+
*
|
|
873
|
+
* The clock is the ENVELOPE's `savedAt` — the same value the listing sorts
|
|
874
|
+
* on — and not the store's own wall clock. That makes a sweep a pure
|
|
875
|
+
* function of what is stored: the same cutoff over the same rows forgets the
|
|
876
|
+
* same conversations, in a test and at 3am.
|
|
877
|
+
*
|
|
878
|
+
* Bounded by `options.limit` ({@link DEFAULT_SWEEP_LIMIT} when absent), so a
|
|
879
|
+
* first sweep of a store that has been running for a year cannot become one
|
|
880
|
+
* unbounded transaction. `more` says whether another call has work to do.
|
|
881
|
+
*
|
|
882
|
+
* Deleting a session that is not there is not an error, and a sweep that
|
|
883
|
+
* matches nothing answers `{ forgotten: 0, more: false }` rather than
|
|
884
|
+
* refusing — a cleanup job runs on a schedule, and most of its runs have
|
|
885
|
+
* nothing to do.
|
|
886
|
+
*/
|
|
887
|
+
forgetOlderThan(before: number, options?: SessionSweepOptions): Promise<SessionSweepResult>;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* The BACKEND deletes, on a policy an operator configured — this store only
|
|
891
|
+
* writes what that policy reads, and can say exactly what to turn on.
|
|
892
|
+
*
|
|
893
|
+
* There is nothing to call here on purpose. A method that did nothing but
|
|
894
|
+
* report "the backend handles it" would be a method somebody puts in a cron
|
|
895
|
+
* job, and a cron job that deletes nothing is worse than no cron job: it looks
|
|
896
|
+
* like retention is running.
|
|
897
|
+
*/
|
|
898
|
+
export interface SessionExpiryPolicy {
|
|
899
|
+
readonly deletedBy: 'the-backend';
|
|
900
|
+
/**
|
|
901
|
+
* Whether this store is actually stamping an expiry on every write.
|
|
902
|
+
*
|
|
903
|
+
* `false` means the mechanism exists and nothing is using it — the store was
|
|
904
|
+
* built without a retention setting, so the backend's policy has nothing to
|
|
905
|
+
* act on and conversations live until somebody deletes them. Reported rather
|
|
906
|
+
* than implied, because "there is a TTL field" and "things are expiring" are
|
|
907
|
+
* different facts and only one of them answers an auditor.
|
|
908
|
+
*/
|
|
909
|
+
readonly active: boolean;
|
|
910
|
+
/**
|
|
911
|
+
* What the backend's policy acts on — a stored field name, or the setting
|
|
912
|
+
* that starts the clock. Named so an operator can configure the policy
|
|
913
|
+
* against the right thing rather than guessing from a schema dump.
|
|
914
|
+
*/
|
|
915
|
+
readonly expiresOn: string;
|
|
916
|
+
/**
|
|
917
|
+
* What an operator does to turn the policy on, in one step they can act on
|
|
918
|
+
* — with this store's own collection, database or resource already filled
|
|
919
|
+
* in where the step needs one.
|
|
920
|
+
*
|
|
921
|
+
* A sentence rather than a code, for the same reason the refusals in this
|
|
922
|
+
* package print a whole command instead of naming a concept: the operator
|
|
923
|
+
* reading this is the person who can fix it in sixty seconds, and only if
|
|
924
|
+
* nobody makes them go and look it up first.
|
|
925
|
+
*/
|
|
926
|
+
readonly enableWith: string;
|
|
776
927
|
}
|
|
928
|
+
/** Options for {@link SessionSweep.forgetOlderThan}. */
|
|
929
|
+
export interface SessionSweepOptions {
|
|
930
|
+
/**
|
|
931
|
+
* The most sessions to forget in this call. Default
|
|
932
|
+
* {@link DEFAULT_SWEEP_LIMIT}; stores may cap it lower.
|
|
933
|
+
*
|
|
934
|
+
* A bound rather than "delete everything matching", because the first sweep
|
|
935
|
+
* after this feature is turned on is the biggest one that store will ever
|
|
936
|
+
* do, and it is the one most likely to hold a write lock long enough to be
|
|
937
|
+
* noticed by every request behind it.
|
|
938
|
+
*/
|
|
939
|
+
readonly limit?: number;
|
|
940
|
+
}
|
|
941
|
+
/** What one sweep did. */
|
|
942
|
+
export interface SessionSweepResult {
|
|
943
|
+
/** How many conversations this call forgot. */
|
|
944
|
+
readonly forgotten: number;
|
|
945
|
+
/**
|
|
946
|
+
* True when sessions older than the cutoff REMAIN — i.e. the limit was
|
|
947
|
+
* reached. A caller that loops until this is `false` drains the backlog in
|
|
948
|
+
* bounded steps; one that ignores it simply sweeps again next time.
|
|
949
|
+
*/
|
|
950
|
+
readonly more: boolean;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* How many sessions one {@link SessionSweep.forgetOlderThan} forgets when the
|
|
954
|
+
* caller names no limit.
|
|
955
|
+
*
|
|
956
|
+
* Big enough that an ordinary nightly sweep finishes in one call, small enough
|
|
957
|
+
* that the first sweep of a neglected store is a series of short transactions
|
|
958
|
+
* rather than one long one.
|
|
959
|
+
*/
|
|
960
|
+
export declare const DEFAULT_SWEEP_LIMIT = 1000;
|
|
777
961
|
/** Paging for {@link SessionLifecycle.listByUser} — the cursor convention every
|
|
778
962
|
* listing in this package follows. */
|
|
779
963
|
export interface SessionListOptions {
|
|
@@ -1 +1 @@
|
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AAmE;IACnE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsCG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,KAAK,CAAC;IACnC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CACrC;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,oBAAoB,CAAC,EAAE,SAAS,UAAU,GAAG,UAAU,IAC/D,0BAA0B,CAAC,EAAE,CAAC,GAC9B,wBAAwB,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -56,16 +56,20 @@
|
|
|
56
56
|
* the `_client` seam and no test pretends to have reached AWS. Real-cloud
|
|
57
57
|
* verification lands with a field deployment.
|
|
58
58
|
*
|
|
59
|
-
* `firestoreSessions` is **
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
59
|
+
* `firestoreSessions` is **field-validated except the ownership refusal
|
|
60
|
+
* (2026-08)**: an independent trial ran it against a real Firestore and
|
|
61
|
+
* exercised seven of its eight areas live — the round trip, the indexed and
|
|
62
|
+
* cursored listing, the missing-index refusal, the hashed document name, the
|
|
63
|
+
* size ceiling, derived ownership and `forget`. The eighth, refusing a turn
|
|
64
|
+
* signed by somebody ELSE, was added after that trial and is held by tests
|
|
65
|
+
* here and by nothing in the field. Two further caveats stand: every SDK
|
|
66
|
+
* member it calls was read off a real install of `@google-cloud/firestore`
|
|
67
|
+
* 9.0.0 and hand-verified there, but the package is deliberately NOT installed
|
|
68
|
+
* in this repository (it would hoist `@opentelemetry/api` and disarm an
|
|
69
|
+
* absent-peer refusal test), so the assertion that re-checks those names
|
|
70
|
+
* against the real package SKIPS here and runs for anyone who installs it
|
|
71
|
+
* locally; what CI checks is dispatch. See the adapter's module header for the
|
|
72
|
+
* full account.
|
|
69
73
|
*
|
|
70
74
|
* @example An agent in an AgentCore Runtime container
|
|
71
75
|
* import { standingAgent } from 'agentfootprint/hosting';
|
|
@@ -85,7 +89,7 @@
|
|
|
85
89
|
export { agentCoreRuntimeHost, agentCoreRuntimeWire, readAgentCoreConversation, agentCoreSessions, DEFAULT_SESSION_STORAGE_PATH, } from './adapters/hosting/agentcore.js';
|
|
86
90
|
export { agentEngineSessions, DEFAULT_USER_ID, SESSION_STATE_KEY, SESSION_EVENT_AUTHOR, } from './adapters/hosting/googleAgentEngine.js';
|
|
87
91
|
export type { AgentEngineSessions, AgentEngineSessionsOptions, } from './adapters/hosting/googleAgentEngine.js';
|
|
88
|
-
export { firestoreSessions, DEFAULT_SESSION_COLLECTION, FIRESTORE_MAX_DOCUMENT_BYTES, FIRESTORE_MAX_ENVELOPE_BYTES, EnvelopeTooLargeError, FirestoreIndexMissingError, } from './adapters/hosting/firestoreSessions.js';
|
|
92
|
+
export { firestoreSessions, DEFAULT_SESSION_COLLECTION, EXPIRES_AT_FIELD, FIRESTORE_MAX_DOCUMENT_BYTES, FIRESTORE_MAX_ENVELOPE_BYTES, EnvelopeTooLargeError, FirestoreIndexMissingError, } from './adapters/hosting/firestoreSessions.js';
|
|
89
93
|
export type { FirestoreSessions, FirestoreSessionsOptions, FirestoreSdkModule, FirestoreConstructorLike, FirestoreLike, FirestoreCollectionLike, FirestoreQueryLike, FirestoreQuerySnapshotLike, FirestoreDocumentReferenceLike, FirestoreDocumentSnapshotLike, FirestoreTransactionLike, } from './adapters/hosting/firestoreSessions.js';
|
|
90
94
|
export type { AgentCoreRuntimeHostOptions, AgentCoreSessionsOptions, AgentCoreSessionStore, AgentCoreFileSessionsOptions, AgentCoreMemorySessionsOptions, AgentCoreSessionClientLike, AgentCoreSessionEvent, BedrockAgentCoreSessionSdkModule, } from './adapters/hosting/agentcore.js';
|
|
91
95
|
//# sourceMappingURL=hosting-providers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosting-providers.d.ts","sourceRoot":"","sources":["../../src/hosting-providers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hosting-providers.d.ts","sourceRoot":"","sources":["../../src/hosting-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuFG;AAEH,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,4BAA4B,GAC7B,MAAM,iCAAiC,CAAC;AAEzC,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,GACrB,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EACV,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,yCAAyC,CAAC;AAQjD,OAAO,EACL,iBAAiB,EACjB,0BAA0B,EAM1B,gBAAgB,EAChB,4BAA4B,EAC5B,4BAA4B,EAC5B,qBAAqB,EACrB,0BAA0B,GAC3B,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EACV,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,aAAa,EACb,uBAAuB,EACvB,kBAAkB,EAClB,0BAA0B,EAC1B,8BAA8B,EAC9B,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,yCAAyC,CAAC;AAEjD,YAAY,EACV,2BAA2B,EAC3B,wBAAwB,EACxB,qBAAqB,EACrB,4BAA4B,EAC5B,8BAA8B,EAC9B,0BAA0B,EAC1B,qBAAqB,EACrB,gCAAgC,GACjC,MAAM,iCAAiC,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export { flowchartAsTool, type FlowchartAsToolOptions, type FlowchartResultMappe
|
|
|
54
54
|
export type { Tool, ToolExecutionContext, ToolRegistryEntry, DefineToolOptions, ToolResultCeiling, } from './core/tools.js';
|
|
55
55
|
export { defineTool, assertValidToolName, assertResultCeiling, warnIfInvalidToolName, } from './core/tools.js';
|
|
56
56
|
export { explainStatusOnlyNearMiss, readToolResultEnvelope, TOOL_RESULT_STATUSES, type InstructionDeliveryLease, type InstructionLease, type PendingToolTransition, type ProposedEffect, type ProposeTransitionEffect, type ReadToolResultEnvelope, type RequireInstructionEffect, type ToolResultEnvelope, type ToolResultStatus, } from './core/agent/toolEffects.js';
|
|
57
|
+
export { ABSENCE_MARKER, ABSENCE_NOTE, absent, coverage, COVERAGE_BLOCK_HEADING, COVERAGE_MARKER, COVERAGE_NOTE, readAbsence, readCoverageLedger, readCoverageResult, type AbsenceDeclaration, type Coverage, type CoverageDeclaration, type CoverageInput, type CoverageItem, type CoverageReading, type CoveredResult, type DeclaredCoverage, type ToolAbsence, } from './core/agent/coverage/index.js';
|
|
57
58
|
export { toolSessionKey, hashSessionKey, ToolTeardownTimeoutError, TOOL_TEARDOWN_TIMEOUT_MS, type TeardownScope, type TeardownReason, type TeardownOptions, } from './core/toolSessions.js';
|
|
58
59
|
export { codeRunnerTool, toolSessionsOf, TOOL_SESSIONS, type CodeRunnerToolOptions, type CodeRunnerToolScope, type HoldsToolSessions, } from './core/codeRunnerTool.js';
|
|
59
60
|
export { toolContractCheckup, formatToolContractCheckup, type ToolContractCheckup, type ToolContractProblem, type ToolContractCode, type ServerToolEntry, } from './core/toolContract.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAQH,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAOpD,YAAY,EAEV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,YAAY,EAEZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,UAAU,EACV,UAAU,EAEV,cAAc,EACd,aAAa,E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sB,CAAC;AAkB9B,OAAO,EACL,eAAe,EACf,KAAK,YAAY,EACjB,KAAK,qBAAqB,EAC1B,KAAK,eAAe,GACrB,MAAM,kCAAkC,CAAC;AAS1C,cAAc,qBAAqB,CAAC;AAWpC,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,gBAAgB,EACrB,cAAc,EACd,KAAK,qBAAqB,EAC1B,KAAK,WAAW,GACjB,MAAM,oBAAoB,CAAC;AAM5B,OAAO,EACL,IAAI,EACJ,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,GAC3B,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `applyArm` — the arm-shaped door onto the UNCHANGED removal machinery.
|
|
3
|
+
*
|
|
4
|
+
* The asymmetry this file exists to make visible: for a REMOVAL the library can
|
|
5
|
+
* perform the intervention, because a removal is a filter over inputs and
|
|
6
|
+
* `applyAblations` is that filter. For a SUBSTITUTION it cannot — replacing a
|
|
7
|
+
* scorer happens inside the consumer's construction code, which no library can
|
|
8
|
+
* reach into. So an arm's two halves are applied in two different places and by
|
|
9
|
+
* two different parties:
|
|
10
|
+
*
|
|
11
|
+
* - `arm.ablations` → HERE, by `applyAblations`, byte-for-byte the same call
|
|
12
|
+
* an `AblationRunner` already makes. No new filtering logic exists.
|
|
13
|
+
* - `arm.facets` → by the consumer's own builder, which is why the engine
|
|
14
|
+
* VERIFIES them against the run manifest afterwards instead of applying
|
|
15
|
+
* them (see `manifest.ts`).
|
|
16
|
+
*
|
|
17
|
+
* There is deliberately no `applyFacets`. A function that took `{ scorer:
|
|
18
|
+
* 'embedding' }` and returned something the consumer still had to interpret
|
|
19
|
+
* would be a rename of the problem wearing the costume of a solution.
|
|
20
|
+
*/
|
|
21
|
+
import { type AblationTargets } from '../ablation.js';
|
|
22
|
+
import type { StrategyArm } from './types.js';
|
|
23
|
+
/** Anything with a stable id — mirrors `applyAblations`' own constraints. */
|
|
24
|
+
interface Identified {
|
|
25
|
+
readonly id: string;
|
|
26
|
+
}
|
|
27
|
+
/** Anything with a named schema — the library's `Tool` fits. */
|
|
28
|
+
interface NamedTool {
|
|
29
|
+
readonly schema: {
|
|
30
|
+
readonly name: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Apply this arm's REMOVALS to the inputs the agent is constructed from. An arm
|
|
35
|
+
* with no `ablations` returns the targets unfiltered — the honest identity.
|
|
36
|
+
*
|
|
37
|
+
* @example inside an ArmRunner
|
|
38
|
+
* ```ts
|
|
39
|
+
* const runner: ArmRunner = async (arm, { seed }) => {
|
|
40
|
+
* const { tools, injections } = applyArm(arm, { tools: ALL_TOOLS, injections: ALL_FACTS });
|
|
41
|
+
* const agent = buildAgent({ retrieval: arm.facets?.memory?.retrieval, tools, injections, seed });
|
|
42
|
+
* const events: AgentfootprintEvent[] = [];
|
|
43
|
+
* agent.on('*', (e) => events.push(e));
|
|
44
|
+
* const output = await agent.run(question);
|
|
45
|
+
* return { output, manifest: manifestFromEvents(events) };
|
|
46
|
+
* };
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare function applyArm<TTool extends NamedTool, TInjection extends Identified, TMemoryEntry extends Identified>(arm: StrategyArm, targets: AblationTargets<TTool, TInjection, TMemoryEntry>): {
|
|
50
|
+
tools: readonly TTool[];
|
|
51
|
+
injections: readonly TInjection[];
|
|
52
|
+
memoryEntries: readonly TMemoryEntry[];
|
|
53
|
+
};
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=apply.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apply.d.ts","sourceRoot":"","sources":["../../../../../src/lib/context-bisect/arms/apply.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAE9C,6EAA6E;AAC7E,UAAU,UAAU;IAClB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;CACrB;AAED,gEAAgE;AAChE,UAAU,SAAS;IACjB,QAAQ,CAAC,MAAM,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC5C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,QAAQ,CACtB,KAAK,SAAS,SAAS,EACvB,UAAU,SAAS,UAAU,EAC7B,YAAY,SAAS,UAAU,EAE/B,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,YAAY,CAAC,GACxD;IACD,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC;IACxB,UAAU,EAAE,SAAS,UAAU,EAAE,CAAC;IAClC,aAAa,EAAE,SAAS,YAAY,EAAE,CAAC;CACxC,CAEA"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `compareStrategyArms` — the substitution counterfactual as ONE call.
|
|
3
|
+
*
|
|
4
|
+
* Take two or more named configurations, run each of them N seeded times
|
|
5
|
+
* through the consumer's factory, and say — honestly — which ones answer
|
|
6
|
+
* differently from the incumbent. The product loop over `probe.ts` +
|
|
7
|
+
* `verdict.ts`, the way `rerunWithoutSources` is the product loop over the
|
|
8
|
+
* ablation machinery.
|
|
9
|
+
*
|
|
10
|
+
* ## The order of operations, and why it is this order
|
|
11
|
+
*
|
|
12
|
+
* 1. VALIDATE first (`validate.ts`): every refusal that can be known from the
|
|
13
|
+
* declaration fires before a single model call.
|
|
14
|
+
* 2. RUN the baseline arm. Its answers are needed before the reference can be
|
|
15
|
+
* chosen, because a caller with no prior run gets the baseline arm's own
|
|
16
|
+
* seed-0 answer as the reference.
|
|
17
|
+
* 3. SCORE the baseline against the reference. This one probe does three jobs
|
|
18
|
+
* at once and pays for none of them twice: the STABILITY gate (zero flips),
|
|
19
|
+
* the NULL BAND (its similarity spread), and the baseline's own row in the
|
|
20
|
+
* readout.
|
|
21
|
+
* 4. RUN + SCORE each challenger, check its manifest, issue its verdict.
|
|
22
|
+
*
|
|
23
|
+
* Cost is exactly `samples × arms` runner calls, reported as `runsUsed`. There
|
|
24
|
+
* is no hidden extra probe: the incumbent is one of the arms, not a surcharge.
|
|
25
|
+
*/
|
|
26
|
+
import type { CompareStrategyArmsOptions, StrategyComparison } from './types.js';
|
|
27
|
+
export declare function compareStrategyArms(options: CompareStrategyArmsOptions): Promise<StrategyComparison>;
|
|
28
|
+
//# sourceMappingURL=compare.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["../../../../../src/lib/context-bisect/arms/compare.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAYH,OAAO,KAAK,EAEV,0BAA0B,EAE1B,kBAAkB,EACnB,MAAM,YAAY,CAAC;AAIpB,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,kBAAkB,CAAC,CA4E7B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Strategy arms — SUBSTITUTION counterfactuals, kept distinct from ablation's
|
|
3
|
+
* removals and sharing its statistics. See README.md in this folder for the
|
|
4
|
+
* design argument, and `types.ts` for why this is not a fifth `AblationSpec`
|
|
5
|
+
* arm.
|
|
6
|
+
*
|
|
7
|
+
* @beta Beta feature (RFC-003 Part B). The API works and is tested, but may
|
|
8
|
+
* change before GA.
|
|
9
|
+
*/
|
|
10
|
+
export { applyArm } from './apply.js';
|
|
11
|
+
export { compareStrategyArms } from './compare.js';
|
|
12
|
+
export { armFacetsFromManifest, armLabel, checkArmApplied, manifestFromEvents, matchArm, RUN_CONFIGURED_EVENT, } from './manifest.js';
|
|
13
|
+
export { checkArmApplication, collectArmRuns, nullBandFrom, scoreArmRuns, type ArmRuns, } from './probe.js';
|
|
14
|
+
export { armConfigKey, declaredFacetCount, validateStrategyArms } from './validate.js';
|
|
15
|
+
export { verdictForArm, type ArmVerdictContext } from './verdict.js';
|
|
16
|
+
export type { ArmApplication, ArmFacetMismatch, ArmFacets, ArmMemoryFacet, ArmOutcome, ArmRunResult, ArmRunner, CompareStrategyArmsOptions, ManifestMemoryLike, NullBand, RunManifestLike, StrategyArm, StrategyComparison, } from './types.js';
|
|
17
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/context-bisect/arms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EACL,qBAAqB,EACrB,QAAQ,EACR,eAAe,EACf,kBAAkB,EAClB,QAAQ,EACR,oBAAoB,GACrB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,KAAK,OAAO,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,aAAa,EAAE,KAAK,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACrE,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,UAAU,EACV,YAAY,EACZ,SAAS,EACT,0BAA0B,EAC1B,kBAAkB,EAClB,QAAQ,EACR,eAAe,EACf,WAAW,EACX,kBAAkB,GACnB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The manifest bridge — which arm did this run belong to, according to the RUN
|
|
3
|
+
* rather than according to the experimenter.
|
|
4
|
+
*
|
|
5
|
+
* Before 9.41.0 an arm label was bookkeeping: the consumer set a variable to
|
|
6
|
+
* `'rerank'`, built an agent it believed re-ranked, and nothing in the library
|
|
7
|
+
* could contradict it. `agentfootprint.agent.run_configured` names the adapters
|
|
8
|
+
* and strategies a run is about to use, so the belief became checkable — and
|
|
9
|
+
* {@link ArmFacets} is deliberately spelled in that event's own vocabulary so
|
|
10
|
+
* the check is a field-by-field comparison and not a translation layer.
|
|
11
|
+
*
|
|
12
|
+
* Two directions, both here:
|
|
13
|
+
* - **verify** — `checkArmApplied(arm, manifest)`: the arm said `retrieval:
|
|
14
|
+
* 'rerank'`; did the run agree? A contradiction costs the arm its verdict
|
|
15
|
+
* (`compare.ts`), because a difference measured between two arms that were
|
|
16
|
+
* secretly one configuration is not evidence about either.
|
|
17
|
+
* - **classify** — `matchArm(arms, manifest)`: hand it a recorded run's
|
|
18
|
+
* manifest and it says which declared arm that run belongs to. This is the
|
|
19
|
+
* door for grouping runs a study already made, offline, out of saved
|
|
20
|
+
* recordings.
|
|
21
|
+
*
|
|
22
|
+
* ## Absence is a contradiction, not a wildcard
|
|
23
|
+
*
|
|
24
|
+
* The manifest's own rule is that an absent field means "not configured", never
|
|
25
|
+
* a guessed default. So an arm declaring `window: 'tokenBudget'` against a
|
|
26
|
+
* manifest with no `window` is a MISMATCH, reported with `observed` absent. The
|
|
27
|
+
* alternative — treating absence as "could be anything" — would let a run with
|
|
28
|
+
* no window stage pass as the token-budget arm, which is exactly the mis-wiring
|
|
29
|
+
* this file exists to catch.
|
|
30
|
+
*/
|
|
31
|
+
import type { CapturedEventLike } from '../types.js';
|
|
32
|
+
import type { ArmFacetMismatch, ArmFacets, RunManifestLike, StrategyArm } from './types.js';
|
|
33
|
+
/** The event type the run manifest rides on (9.41.0). */
|
|
34
|
+
export declare const RUN_CONFIGURED_EVENT = "agentfootprint.agent.run_configured";
|
|
35
|
+
/**
|
|
36
|
+
* Pull the run manifest out of a run's captured typed events — the same
|
|
37
|
+
* `CapturedEventLike[]` bag `localizeContextBug` already accepts, so a consumer
|
|
38
|
+
* who collected events with `agent.on('*', …)` needs no second capture.
|
|
39
|
+
*
|
|
40
|
+
* One manifest per run by design; the FIRST is returned. A bag holding events
|
|
41
|
+
* from several runs is the caller's own mixing — filter by `meta.runId` first.
|
|
42
|
+
*/
|
|
43
|
+
export declare function manifestFromEvents(events: readonly CapturedEventLike[] | undefined): RunManifestLike | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Project a manifest onto the arm-facet vocabulary — the inverse of what an arm
|
|
46
|
+
* declares. Memory rows collapse to the FIRST one; a study varying retrieval
|
|
47
|
+
* across several mounted memories should declare `memory.id` and read the rows
|
|
48
|
+
* itself rather than trust a projection to pick.
|
|
49
|
+
*/
|
|
50
|
+
export declare function armFacetsFromManifest(manifest: RunManifestLike): ArmFacets;
|
|
51
|
+
/**
|
|
52
|
+
* A stable label for a set of facets — sorted `key=value`, so two runs of one
|
|
53
|
+
* configuration produce the same string whatever order the fields were written
|
|
54
|
+
* in. Useful as a grouping key for N recorded runs.
|
|
55
|
+
*/
|
|
56
|
+
export declare function armLabel(facets: ArmFacets): string;
|
|
57
|
+
/**
|
|
58
|
+
* Compare one arm's DECLARED facets against a run's manifest. Empty result =
|
|
59
|
+
* the run agreed with everything the arm claimed.
|
|
60
|
+
*
|
|
61
|
+
* Only declared facets are compared. An arm is a claim about the facets it
|
|
62
|
+
* names and says nothing about the rest — checking undeclared fields would fail
|
|
63
|
+
* every arm for differing from the manifest in ways it never claimed.
|
|
64
|
+
*/
|
|
65
|
+
export declare function checkArmApplied(arm: StrategyArm, manifest: RunManifestLike): readonly ArmFacetMismatch[];
|
|
66
|
+
/**
|
|
67
|
+
* Which declared arm does this run belong to? The offline door: group N
|
|
68
|
+
* recorded runs into arms by what each run's own manifest says.
|
|
69
|
+
*
|
|
70
|
+
* Rules, all conservative:
|
|
71
|
+
* - only arms that DECLARE facets are candidates (an arm naming nothing matches
|
|
72
|
+
* every run and would swallow the whole study);
|
|
73
|
+
* - a candidate matches when the manifest contradicts none of its facets;
|
|
74
|
+
* - the MOST SPECIFIC match wins (most declared facets), and a tie returns
|
|
75
|
+
* `undefined` — two arms fitting one run equally well is an ambiguity, and
|
|
76
|
+
* guessing which the experimenter meant is exactly the bookkeeping this
|
|
77
|
+
* function replaces.
|
|
78
|
+
*/
|
|
79
|
+
export declare function matchArm(arms: readonly StrategyArm[], manifest: RunManifestLike): StrategyArm | undefined;
|
|
80
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../../../../../src/lib/context-bisect/arms/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,KAAK,EACV,gBAAgB,EAChB,SAAS,EAET,eAAe,EACf,WAAW,EACZ,MAAM,YAAY,CAAC;AAEpB,yDAAyD;AACzD,eAAO,MAAM,oBAAoB,wCAAwC,CAAC;AAE1E;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,SAAS,iBAAiB,EAAE,GAAG,SAAS,GAC/C,eAAe,GAAG,SAAS,CAO7B;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,CAoB1E;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CAalD;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,WAAW,EAChB,QAAQ,EAAE,eAAe,GACxB,SAAS,gBAAgB,EAAE,CA8C7B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CACtB,IAAI,EAAE,SAAS,WAAW,EAAE,EAC5B,QAAQ,EAAE,eAAe,GACxB,WAAW,GAAG,SAAS,CASzB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The arm probe — seeded runs in, shared statistics out.
|
|
3
|
+
*
|
|
4
|
+
* Split in two on purpose. `collectArmRuns` only RUNS (it cannot know the
|
|
5
|
+
* reference yet: when no prior answer was supplied, the reference IS the
|
|
6
|
+
* baseline arm's first answer). `scoreArmRuns` only SCORES. Keeping them apart
|
|
7
|
+
* is what lets the reference be chosen between the two halves without a second
|
|
8
|
+
* pass over the model — the same "one ablation, two readouts" thrift
|
|
9
|
+
* `runAblationProbe` applies to cost.
|
|
10
|
+
*
|
|
11
|
+
* Everything statistical is borrowed, not re-derived: `similarityStats`,
|
|
12
|
+
* `costStatsFrom` and `resolveSamples` come from `ablation.ts` unchanged, so an
|
|
13
|
+
* arm's `AblationRunStats` is the same number computed the same way as an
|
|
14
|
+
* ablation's — which is the point of sharing the statistics while keeping the
|
|
15
|
+
* spec types apart.
|
|
16
|
+
*/
|
|
17
|
+
import type { AblationRunStats, Embedder, OutcomeComparator } from '../types.js';
|
|
18
|
+
import type { ArmApplication, ArmRunner, NullBand, RunManifestLike, StrategyArm } from './types.js';
|
|
19
|
+
/** The raw harvest of one arm's seeded runs — no scoring yet. */
|
|
20
|
+
export interface ArmRuns {
|
|
21
|
+
readonly answers: readonly string[];
|
|
22
|
+
readonly loops: readonly number[];
|
|
23
|
+
readonly tokens: readonly number[];
|
|
24
|
+
readonly manifests: readonly RunManifestLike[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Call the consumer's runner once per seed (0..samples-1) for ONE arm and
|
|
28
|
+
* normalize the two return shapes (`string` | `{output, cost?, manifest?}`) —
|
|
29
|
+
* the same normalization `runAblationProbe` performs, so a bare-string runner
|
|
30
|
+
* costs the caller nothing in ceremony.
|
|
31
|
+
*/
|
|
32
|
+
export declare function collectArmRuns(arm: StrategyArm, runner: ArmRunner, samples: number): Promise<ArmRuns>;
|
|
33
|
+
/**
|
|
34
|
+
* Score one arm's harvested answers against the reference: similarity per seed
|
|
35
|
+
* (mean/min/max/stdev) plus the outcome-flip count. Shape-identical to what an
|
|
36
|
+
* ablation probe reports.
|
|
37
|
+
*/
|
|
38
|
+
export declare function scoreArmRuns(runs: ArmRuns, reference: string, embedder: Embedder, outcomeChanged: OutcomeComparator): Promise<AblationRunStats>;
|
|
39
|
+
/**
|
|
40
|
+
* Build the inert-intervention control from the baseline arm's OWN seeded runs.
|
|
41
|
+
* See {@link NullBand} for why leave-one-out does not transfer and this does.
|
|
42
|
+
*/
|
|
43
|
+
export declare function nullBandFrom(baselineArmId: string, baselineStats: AblationRunStats, gates: boolean): NullBand;
|
|
44
|
+
/**
|
|
45
|
+
* Did this arm actually take effect? Compares every manifest the runner
|
|
46
|
+
* reported against the arm's declared facets.
|
|
47
|
+
*
|
|
48
|
+
* `checked: false` — and therefore no refusal — in exactly two cases, both of
|
|
49
|
+
* which are absence of evidence rather than evidence of absence: the runner
|
|
50
|
+
* reported no manifest, or the arm declares only ablations (no manifest names a
|
|
51
|
+
* tool catalog). Refusing a verdict in either case would punish a consumer for
|
|
52
|
+
* a capture they were never required to make.
|
|
53
|
+
*/
|
|
54
|
+
export declare function checkArmApplication(arm: StrategyArm, manifests: readonly RunManifestLike[]): ArmApplication;
|
|
55
|
+
//# sourceMappingURL=probe.d.ts.map
|