agentfootprint 9.40.0 → 9.43.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 +4 -1
- package/ai-instructions/claude-code/SKILL.md +31 -1
- package/dist/adapters/hosting/agentcore.js +71 -10
- 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/adapters/memory/agentcore.js +3 -1
- package/dist/adapters/memory/agentcore.js.map +1 -1
- package/dist/artifacts/conformance/cases.js +840 -0
- package/dist/artifacts/conformance/cases.js.map +1 -0
- package/dist/artifacts/conformance/index.js +18 -0
- package/dist/artifacts/conformance/index.js.map +1 -0
- package/dist/artifacts/conformance/run.js +223 -0
- package/dist/artifacts/conformance/run.js.map +1 -0
- package/dist/artifacts/conformance/types.js +11 -0
- package/dist/artifacts/conformance/types.js.map +1 -0
- package/dist/artifacts/index.js +10 -1
- package/dist/artifacts/index.js.map +1 -1
- package/dist/core/Agent.js +100 -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/runManifest.js +102 -0
- package/dist/core/agent/runManifest.js.map +1 -0
- 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/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 +71 -10
- 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/adapters/memory/agentcore.js +3 -1
- package/dist/esm/adapters/memory/agentcore.js.map +1 -1
- package/dist/esm/artifacts/conformance/cases.d.ts +23 -0
- package/dist/esm/artifacts/conformance/cases.js +837 -0
- package/dist/esm/artifacts/conformance/cases.js.map +1 -0
- package/dist/esm/artifacts/conformance/index.d.ts +11 -0
- package/dist/esm/artifacts/conformance/index.js +11 -0
- package/dist/esm/artifacts/conformance/index.js.map +1 -0
- package/dist/esm/artifacts/conformance/run.d.ts +47 -0
- package/dist/esm/artifacts/conformance/run.js +217 -0
- package/dist/esm/artifacts/conformance/run.js.map +1 -0
- package/dist/esm/artifacts/conformance/types.d.ts +197 -0
- package/dist/esm/artifacts/conformance/types.js +10 -0
- package/dist/esm/artifacts/conformance/types.js.map +1 -0
- package/dist/esm/artifacts/index.d.ts +1 -0
- package/dist/esm/artifacts/index.js +5 -0
- package/dist/esm/artifacts/index.js.map +1 -1
- package/dist/esm/core/Agent.d.ts +34 -1
- package/dist/esm/core/Agent.js +100 -1
- 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/runManifest.d.ts +80 -0
- package/dist/esm/core/agent/runManifest.js +98 -0
- package/dist/esm/core/agent/runManifest.js.map +1 -0
- 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/debug.d.ts +1 -0
- package/dist/esm/debug.js +7 -0
- package/dist/esm/debug.js.map +1 -1
- package/dist/esm/events/payloads.d.ts +205 -0
- package/dist/esm/events/registry.d.ts +7 -1
- package/dist/esm/events/registry.js +6 -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 +88 -2
- 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 +2 -0
- package/dist/esm/index.js +25 -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/esm/memory/define.js +12 -0
- package/dist/esm/memory/define.js.map +1 -1
- package/dist/esm/memory/define.types.d.ts +27 -0
- package/dist/esm/memory/define.types.js.map +1 -1
- package/dist/esm/strategies/attach.js.map +1 -1
- package/dist/events/registry.js +6 -0
- package/dist/events/registry.js.map +1 -1
- package/dist/hosting/conformance/cases.js +88 -2
- 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 +78 -38
- 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/memory/define.js +12 -0
- package/dist/memory/define.js.map +1 -1
- package/dist/memory/define.types.js.map +1 -1
- package/dist/strategies/attach.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/adapters/memory/agentcore.d.ts.map +1 -1
- package/dist/types/artifacts/conformance/cases.d.ts +24 -0
- package/dist/types/artifacts/conformance/cases.d.ts.map +1 -0
- package/dist/types/artifacts/conformance/index.d.ts +12 -0
- package/dist/types/artifacts/conformance/index.d.ts.map +1 -0
- package/dist/types/artifacts/conformance/run.d.ts +48 -0
- package/dist/types/artifacts/conformance/run.d.ts.map +1 -0
- package/dist/types/artifacts/conformance/types.d.ts +198 -0
- package/dist/types/artifacts/conformance/types.d.ts.map +1 -0
- package/dist/types/artifacts/index.d.ts +1 -0
- package/dist/types/artifacts/index.d.ts.map +1 -1
- package/dist/types/core/Agent.d.ts +34 -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/runManifest.d.ts +81 -0
- package/dist/types/core/agent/runManifest.d.ts.map +1 -0
- 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/debug.d.ts +1 -0
- package/dist/types/debug.d.ts.map +1 -1
- package/dist/types/events/payloads.d.ts +205 -0
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/events/registry.d.ts +7 -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 +2 -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/dist/types/memory/define.d.ts.map +1 -1
- package/dist/types/memory/define.types.d.ts +27 -0
- package/dist/types/memory/define.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -72,6 +72,13 @@
|
|
|
72
72
|
* adapter inherits when a stored session is PRESENT but cannot be read. An
|
|
73
73
|
* unreadable stored conversation and an absent one are different facts, and
|
|
74
74
|
* only one of them is safe to answer with a fresh start.
|
|
75
|
+
* • `sessionRetention(sessions)` — how long a store keeps a conversation.
|
|
76
|
+
* The port's optional `retention()` member, feature-detected once: a store
|
|
77
|
+
* that deletes its own bytes hands back a sweep your cron calls, one whose
|
|
78
|
+
* backend expires rows hands back the policy and the step that arms it, and
|
|
79
|
+
* a store that can do neither is REFUSED BY NAME rather than sweeping
|
|
80
|
+
* nothing. Nothing here runs on a timer of its own, and no wire op deletes
|
|
81
|
+
* a conversation.
|
|
75
82
|
* • `requireCapability` — feature-detection with teeth.
|
|
76
83
|
*
|
|
77
84
|
* @example An agent that stays up and remembers
|
|
@@ -94,9 +101,10 @@ export { sqliteSessions, SqliteUnavailableError, UnreadableSessionFileError, } f
|
|
|
94
101
|
export type { SqliteSessions, SqliteSessionsOptions } from './sqliteSessions.js';
|
|
95
102
|
export { toEnvelope, envelopeOwner, envelopeTranscript, toPausedEnvelope, readEnvelope, readPausedRun, checkEnvelope, } from './envelope.js';
|
|
96
103
|
export { standingAgent } from './standingAgent.js';
|
|
97
|
-
export { DEFAULT_MAX_ACTIVE_SESSIONS } from './types.js';
|
|
98
|
-
export { requireCapability, HostClosedError, ConcurrentRunError, PauseNotCarriedError, AwaitingDecisionError, NoPendingAskError, UnreadableEnvelopeError, ConversationClosedError, FrameTooLargeError, InvalidWireOpError, ArtifactSessionRequiredError, NoArtifactStoreError, ArtifactNotFoundError, ArtifactNotCarriedError, IdentityNotVerifiedError, VerifierUnavailableError, AdmissionRefusedError, SessionOpNeedsIdentityError, SessionIndexUnavailableError, SessionNotFoundError, SessionOwnershipConflictError, SessionsNotCarriedError, } from './errors.js';
|
|
104
|
+
export { DEFAULT_MAX_ACTIVE_SESSIONS, DEFAULT_SWEEP_LIMIT } from './types.js';
|
|
105
|
+
export { requireCapability, HostClosedError, ConcurrentRunError, PauseNotCarriedError, AwaitingDecisionError, NoPendingAskError, UnreadableEnvelopeError, ConversationClosedError, FrameTooLargeError, InvalidWireOpError, ArtifactSessionRequiredError, NoArtifactStoreError, ArtifactNotFoundError, ArtifactNotCarriedError, IdentityNotVerifiedError, VerifierUnavailableError, AdmissionRefusedError, SessionOpNeedsIdentityError, SessionIndexUnavailableError, SessionRetentionUnavailableError, SessionNotFoundError, SessionOwnershipConflictError, SessionsNotCarriedError, } from './errors.js';
|
|
99
106
|
export type { IdentityFailureClass } from './errors.js';
|
|
107
|
+
export { sessionRetention } from './sessionRetention.js';
|
|
100
108
|
export { resolveSessionOwner } from './sessionOwnership.js';
|
|
101
109
|
export { formatConformanceReport, runSessionLifecycleCase, runSessionLifecycleConformance, sessionLifecycleConformance, } from './conformance/index.js';
|
|
102
110
|
export type { ConformanceKit, SessionLifecycleCase, SessionLifecycleCaseName, SessionLifecycleOutcome, SessionLifecycleReport, SessionStoreHarness, SessionStoreMember, } from './conformance/index.js';
|
|
@@ -111,5 +119,5 @@ export { ALL_WIRE_OPS, isWireOp, refuseUnknownWireOp, WIRE_OPS } from './wireOps
|
|
|
111
119
|
export type { WireOpName } from './wireOps.js';
|
|
112
120
|
export { readArtifactWireOp, artifactWireBody, ARTIFACT_HEAD_OP, ARTIFACT_GET_OP, } from './artifactWire.js';
|
|
113
121
|
export type { ArtifactWireRequest, ArtifactWireResult } from './artifactWire.js';
|
|
114
|
-
export type { AgentHost, CheckpointEnvelope, ConcurrentInvokePolicy, ConversationClose, ConversationEnvelope, ConversationHandler, ConversationHost, ConversationLimits, DurabilityMode, HostCapability, HostConversation, HostHandle, HostHandler, HostReply, HostRequest, PausedRun, PausedRunEnvelope, PendingAsk, SessionLifecycle, SessionListOptions, SessionListPage, StandingAgentBaseOptions, StandingAgentOptions, StandingAgentPoolOptions, StandingAgentSharedOptions, Unsubscribe, WakeReason, } from './types.js';
|
|
122
|
+
export type { AgentHost, CheckpointEnvelope, ConcurrentInvokePolicy, ConversationClose, ConversationEnvelope, ConversationHandler, ConversationHost, ConversationLimits, DurabilityMode, HostCapability, HostConversation, HostHandle, HostHandler, HostReply, HostRequest, PausedRun, PausedRunEnvelope, PendingAsk, SessionExpiryPolicy, SessionLifecycle, SessionListOptions, SessionListPage, SessionRetention, SessionSweep, SessionSweepOptions, SessionSweepResult, StandingAgentBaseOptions, StandingAgentOptions, StandingAgentPoolOptions, StandingAgentSharedOptions, Unsubscribe, WakeReason, } from './types.js';
|
|
115
123
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hosting/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hosting/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAe,GAChB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEjF,YAAY,EACV,SAAS,EACT,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,WAAW,EACX,UAAU,GACX,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memorySessions.d.ts","sourceRoot":"","sources":["../../../src/hosting/memorySessions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;
|
|
1
|
+
{"version":3,"file":"memorySessions.d.ts","sourceRoot":"","sources":["../../../src/hosting/memorySessions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAKH,OAAO,KAAK,EAEV,gBAAgB,EAMjB,MAAM,YAAY,CAAC;AAKpB;;;;;;GAMG;AACH,wBAAgB,cAAc,IAAI,gBAAgB,CA4HjD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* hosting/sessionRetention — the ONE feature detection for the port's
|
|
3
|
+
* retention member, and the refusal a store that has none produces.
|
|
4
|
+
*
|
|
5
|
+
* ── Why this is a function and not `sessions.retention?.()` ──────────────────
|
|
6
|
+
* Because `?.()` answers `undefined`, and `undefined` is exactly the wrong
|
|
7
|
+
* answer here. Every other optional member on this port is asked for behind a
|
|
8
|
+
* door that refuses by name when it is absent — `session-list` does not report
|
|
9
|
+
* "you have no conversations" when a store keeps no index — and retention needs
|
|
10
|
+
* that more than either of them, not less: a cleanup job whose call returned
|
|
11
|
+
* without complaining looks precisely like a cleanup job that is working. The
|
|
12
|
+
* difference surfaces the day somebody asks how long conversations are kept,
|
|
13
|
+
* and by then the answer is "all of them, since the beginning".
|
|
14
|
+
*
|
|
15
|
+
* So the detection lives here, once, and produces
|
|
16
|
+
* {@link SessionRetentionUnavailableError} rather than a value that reads as
|
|
17
|
+
* "fine". A caller that wants the silent shape can still write
|
|
18
|
+
* `sessions.retention?.()` — the port is honest about what it has — but nothing
|
|
19
|
+
* in this package does, and the door somebody reaches for first refuses.
|
|
20
|
+
*
|
|
21
|
+
* ── What it deliberately does not do ────────────────────────────────────────
|
|
22
|
+
* It does not sweep, schedule, or decide a cutoff. The cutoff is a policy
|
|
23
|
+
* decision — a jurisdiction, a contract, a retention schedule somebody signed —
|
|
24
|
+
* and a library that shipped a default would be answering a legal question with
|
|
25
|
+
* a constant. It hands back what the store can do; WHEN is yours.
|
|
26
|
+
*/
|
|
27
|
+
import type { SessionLifecycle, SessionRetention } from './types.js';
|
|
28
|
+
/**
|
|
29
|
+
* How a store's conversations stop existing — or a refusal that names the
|
|
30
|
+
* store's limitation.
|
|
31
|
+
*
|
|
32
|
+
* The same detection every door in this package uses (`typeof … ===
|
|
33
|
+
* 'function'`), in the one place a consumer reaches for it, so a store that
|
|
34
|
+
* implements the member and a store that does not are told apart once rather
|
|
35
|
+
* than at every call site.
|
|
36
|
+
*
|
|
37
|
+
* @param sessions The store to ask.
|
|
38
|
+
* @param purpose What you are doing, in your own words. It becomes the first
|
|
39
|
+
* clause of the refusal, so an operator reading a log knows which job stopped
|
|
40
|
+
* — the same reason the session-history refusals carry their op name.
|
|
41
|
+
*
|
|
42
|
+
* @throws SessionRetentionUnavailableError when the store implements no
|
|
43
|
+
* `retention()`. Never returns `undefined`: a caller cannot mistake "this
|
|
44
|
+
* store cannot expire anything" for "there was nothing to expire".
|
|
45
|
+
*
|
|
46
|
+
* @example A nightly job, against whatever store this deployment was built with
|
|
47
|
+
* const policy = sessionRetention(sessions, 'the nightly retention job');
|
|
48
|
+
* if (policy.deletedBy === 'this-store') {
|
|
49
|
+
* let more = true;
|
|
50
|
+
* while (more) ({ more } = await policy.forgetOlderThan(Date.now() - THIRTY_DAYS));
|
|
51
|
+
* } else {
|
|
52
|
+
* // Nothing to run: the backend expires them. Log what turns it on.
|
|
53
|
+
* console.log(policy.active ? 'expiry is armed' : policy.enableWith);
|
|
54
|
+
* }
|
|
55
|
+
*/
|
|
56
|
+
export declare function sessionRetention(sessions: SessionLifecycle, purpose?: string): SessionRetention;
|
|
57
|
+
//# sourceMappingURL=sessionRetention.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionRetention.d.ts","sourceRoot":"","sources":["../../../src/hosting/sessionRetention.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,gBAAgB,EAC1B,OAAO,SAA+B,GACrC,gBAAgB,CAWlB"}
|
|
@@ -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,I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;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CA2Q7E"}
|
|
@@ -773,7 +773,191 @@ export interface SessionLifecycle {
|
|
|
773
773
|
* built a permission system out of 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 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/hosting/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;;AAEH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE9F,YAAY,EAAE,WAAW,EAAE,CAAC;AAI5B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,cAAc,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,iCAAiC;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;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B,CAAC,EAAE,SAAS,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB,CAAC,EAAE,SAAS,UAAU,GAAG,UAAU,CAC1E,SAAQ,wBAAwB,CAAC,EAAE,CAAC;IACpC,mEAAmE;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,11 +54,13 @@ 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';
|
|
60
61
|
export { ARTIFACT_REF_PREFIX, ArtifactIntegrityError, bindArtifacts, RECORDING_ARTIFACT_KIND, RECORDING_MEDIA_TYPE, recordingPutInput, UnserializableRecordingError, DEFAULT_IN_MEMORY_ARTIFACT_RETENTION, fileArtifacts, gcsArtifacts, inMemoryArtifacts, InvalidArtifactError, isArtifactRef, mintArtifactRef, s3Artifacts, sqliteArtifacts, unconfiguredArtifacts, UnknownParentRefError, UnreadableArtifactFileError, UnreadableArtifactStoreError, type ArtifactEventFact, type ArtifactEventSink, type ArtifactListOptions, type ArtifactListResult, type ArtifactMeta, type ArtifactOp, type ArtifactOrigin, type ArtifactPutResult, type ArtifactRecord, type ArtifactRef, type ArtifactRefusalReason, type ArtifactRetention, type ArtifactScope, type ArtifactStore, type ArtifactSweepReason, type BindArtifactsOptions, type FileArtifactsOptions, type GcsArtifactsOptions, type InMemoryArtifacts, type InMemoryArtifactsOptions, type PutArtifactInput, type RecordingMintFacts, type S3ArtifactsOptions, type SqliteArtifacts, type SqliteArtifactsOptions, type SweptArtifact, type ToolArtifactPutInput, type ToolArtifacts, } from './artifacts/index.js';
|
|
61
62
|
export { canGetArtifactStream, canPutArtifactStream, canStreamArtifacts, type ArtifactStreamPutInput, type ArtifactStreamRecord, type StreamingArtifactStore, } from './artifacts/index.js';
|
|
63
|
+
export { artifactStoreConformance, formatArtifactStoreReport, runArtifactStoreCase, runArtifactStoreConformance, type ArtifactConformanceKit, type ArtifactStoreCase, type ArtifactStoreCaseName, type ArtifactStoreHarness, type ArtifactStoreHarnessHook, type ArtifactStoreMember, type ArtifactStoreOutcome, type ArtifactStoreReport, } from './artifacts/index.js';
|
|
62
64
|
export { assertToolWants, isPlacedToolResult, placedResultKind, PRESENT_TOOL_NAME, type ArtifactPlacement, type PlacedToolResult, type PresentedResult, type PresentSnapshot, type ToolWants, } from './artifacts/index.js';
|
|
63
65
|
export { Sequence, SequenceBuilder, type SequenceInput, type SequenceOptions, type SequenceOutput, } from './core-flow/Sequence.js';
|
|
64
66
|
export { Parallel, ParallelBuilder, type BranchOutcome, type MergeFn, type MergeOutcomesFn, type MergeWithLLMOptions, type ParallelBranchOptions, type ParallelInput, type ParallelOptions, type ParallelOutput, } from './core-flow/Parallel.js';
|
|
@@ -1 +1 @@
|
|
|
1
|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AK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,UAAU,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,eAAe,GACrB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,KAAK,EACL,KAAK,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,WAAW,GACjB,MAAM,sBAAsB,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"}
|