agentfootprint 8.19.0 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bin/agentfootprint-index.mjs +28 -3
- package/dist/adapters/hosting/agentcore.js +1 -1
- package/dist/adapters/identity/agentcore.js +1 -1
- package/dist/adapters/llm/AnthropicProvider.js +1 -1
- package/dist/adapters/llm/BrowserOpenAIProvider.js +1 -1
- package/dist/adapters/llm/MockProvider.js +1 -1
- package/dist/adapters/llm/OpenAIProvider.js +2 -2
- package/dist/adapters/memory/agentcore.js +1 -1
- package/dist/adapters/memory/bedrockAgentMemory.js +1 -1
- package/dist/adapters/memory/redis.js +1 -1
- package/dist/adapters/observability/agentcore.js +2 -2
- package/dist/adapters/observability/audit.js +1 -1
- package/dist/adapters/observability/cloudwatch.js +2 -2
- package/dist/adapters/observability/otel.js +3 -3
- package/dist/adapters/observability/xray.js +2 -2
- package/dist/core/Agent.js +1 -1
- package/dist/core/agent/AgentBuilder.js +35 -23
- package/dist/core/agent/AgentBuilder.js.map +1 -1
- package/dist/core/agent/stages/window.js +11 -13
- package/dist/core/agent/stages/window.js.map +1 -1
- package/dist/core/agent/watch.js +1 -1
- package/dist/core/agent/window/index.js.map +1 -1
- package/dist/core/agent/window/strategies/summarizeOldest.js +0 -5
- package/dist/core/agent/window/strategies/summarizeOldest.js.map +1 -1
- package/dist/core/slots/helpers.js +4 -7
- package/dist/core/slots/helpers.js.map +1 -1
- package/dist/debug/finders.js +7 -10
- package/dist/debug/finders.js.map +1 -1
- package/dist/debug.js +4 -4
- package/dist/doors/context.js +3 -3
- package/dist/esm/adapters/hosting/agentcore.d.ts +1 -1
- package/dist/esm/adapters/hosting/agentcore.js +1 -1
- package/dist/esm/adapters/identity/agentcore.d.ts +1 -1
- package/dist/esm/adapters/identity/agentcore.js +1 -1
- package/dist/esm/adapters/llm/AnthropicProvider.d.ts +1 -1
- package/dist/esm/adapters/llm/AnthropicProvider.js +1 -1
- package/dist/esm/adapters/llm/BrowserOpenAIProvider.d.ts +1 -1
- package/dist/esm/adapters/llm/BrowserOpenAIProvider.js +1 -1
- package/dist/esm/adapters/llm/MockProvider.d.ts +1 -1
- package/dist/esm/adapters/llm/MockProvider.js +1 -1
- package/dist/esm/adapters/llm/OpenAIProvider.d.ts +2 -2
- package/dist/esm/adapters/llm/OpenAIProvider.js +2 -2
- package/dist/esm/adapters/memory/agentcore.d.ts +1 -1
- package/dist/esm/adapters/memory/agentcore.js +1 -1
- package/dist/esm/adapters/memory/bedrockAgentMemory.d.ts +1 -1
- package/dist/esm/adapters/memory/bedrockAgentMemory.js +1 -1
- package/dist/esm/adapters/memory/redis.d.ts +1 -1
- package/dist/esm/adapters/memory/redis.js +1 -1
- package/dist/esm/adapters/observability/agentcore.d.ts +2 -2
- package/dist/esm/adapters/observability/agentcore.js +2 -2
- package/dist/esm/adapters/observability/audit.d.ts +1 -1
- package/dist/esm/adapters/observability/audit.js +1 -1
- package/dist/esm/adapters/observability/cloudwatch.d.ts +2 -2
- package/dist/esm/adapters/observability/cloudwatch.js +2 -2
- package/dist/esm/adapters/observability/otel.d.ts +4 -4
- package/dist/esm/adapters/observability/otel.js +3 -3
- package/dist/esm/adapters/observability/xray.d.ts +2 -2
- package/dist/esm/adapters/observability/xray.js +2 -2
- package/dist/esm/core/Agent.js +1 -1
- package/dist/esm/core/agent/AgentBuilder.d.ts +17 -14
- package/dist/esm/core/agent/AgentBuilder.js +35 -23
- package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
- package/dist/esm/core/agent/stages/window.js +11 -13
- package/dist/esm/core/agent/stages/window.js.map +1 -1
- package/dist/esm/core/agent/types.d.ts +2 -2
- package/dist/esm/core/agent/watch.d.ts +1 -1
- package/dist/esm/core/agent/watch.js +1 -1
- package/dist/esm/core/agent/window/index.d.ts +1 -1
- package/dist/esm/core/agent/window/index.js.map +1 -1
- package/dist/esm/core/agent/window/strategies/summarizeOldest.js +0 -5
- package/dist/esm/core/agent/window/strategies/summarizeOldest.js.map +1 -1
- package/dist/esm/core/agent/window/types.d.ts +0 -30
- package/dist/esm/core/runner.d.ts +1 -1
- package/dist/esm/core/slots/helpers.d.ts +3 -4
- package/dist/esm/core/slots/helpers.js +4 -7
- package/dist/esm/core/slots/helpers.js.map +1 -1
- package/dist/esm/debug/finders.d.ts +7 -10
- package/dist/esm/debug/finders.js +7 -10
- package/dist/esm/debug/finders.js.map +1 -1
- package/dist/esm/debug.d.ts +4 -4
- package/dist/esm/debug.js +4 -4
- package/dist/esm/doors/context.d.ts +3 -3
- package/dist/esm/doors/context.js +3 -3
- package/dist/esm/embedders/index.d.ts +4 -4
- package/dist/esm/events/payloads.d.ts +10 -14
- package/dist/esm/hosting-providers.d.ts +16 -16
- package/dist/esm/hosting-providers.js +16 -16
- package/dist/esm/identity/types.d.ts +1 -1
- package/dist/esm/identity/types.js +1 -1
- package/dist/esm/identity/withCredentialRetry.d.ts +1 -1
- package/dist/esm/identity/withCredentialRetry.js +1 -1
- package/dist/esm/identity.d.ts +5 -5
- package/dist/esm/identity.js +5 -5
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/injection-engine.d.ts +4 -4
- package/dist/esm/injection-engine.js +4 -4
- package/dist/esm/lib/context-ledger/gates.d.ts +1 -1
- package/dist/esm/lib/context-ledger/gates.js +1 -1
- package/dist/esm/lib/injection-engine/SkillRegistry.d.ts +1 -1
- package/dist/esm/lib/injection-engine/SkillRegistry.js +1 -1
- package/dist/esm/lib/injection-engine/factories/defineSkill.d.ts +1 -16
- package/dist/esm/lib/injection-engine/factories/defineSkill.js +29 -1
- package/dist/esm/lib/injection-engine/factories/defineSkill.js.map +1 -1
- package/dist/esm/lib/injection-engine/skillsFromDir.d.ts +1 -11
- package/dist/esm/lib/injection-engine/skillsFromDir.js +22 -2
- package/dist/esm/lib/injection-engine/skillsFromDir.js.map +1 -1
- package/dist/esm/lib/injection-engine/types.d.ts +1 -1
- package/dist/esm/lib/mcp/gatewayTransport.d.ts +2 -2
- package/dist/esm/lib/mcp/gatewayTransport.js +2 -2
- package/dist/esm/lib/rag/defineRAG.d.ts +9 -6
- package/dist/esm/lib/rag/defineRAG.js.map +1 -1
- package/dist/esm/lib/recorded-chat/index.d.ts +1 -1
- package/dist/esm/lib/recorded-chat/index.js +1 -1
- package/dist/esm/llm-providers.d.ts +5 -19
- package/dist/esm/llm-providers.js +5 -19
- package/dist/esm/llm-providers.js.map +1 -1
- package/dist/esm/locales/index.d.ts +7 -7
- package/dist/esm/locales/index.js +7 -7
- package/dist/esm/memory/causal/evidenceRecorder.d.ts +1 -1
- package/dist/esm/memory/causal/evidenceRecorder.js +1 -1
- package/dist/esm/memory/define.types.d.ts +3 -2
- package/dist/esm/memory/define.types.js.map +1 -1
- package/dist/esm/memory/index.d.ts +0 -10
- package/dist/esm/memory/index.js +6 -0
- package/dist/esm/memory/index.js.map +1 -1
- package/dist/esm/memory/retrieval/topK.d.ts +12 -6
- package/dist/esm/memory/retrieval/topK.js.map +1 -1
- package/dist/esm/memory/store/index.d.ts +1 -0
- package/dist/esm/memory/store/index.js +1 -0
- package/dist/esm/memory/store/index.js.map +1 -1
- package/dist/esm/memory/store/staticVectorStore.d.ts +83 -0
- package/dist/esm/memory/store/staticVectorStore.js +224 -0
- package/dist/esm/memory/store/staticVectorStore.js.map +1 -0
- package/dist/esm/memory-providers.d.ts +8 -24
- package/dist/esm/memory-providers.js +8 -24
- package/dist/esm/memory-providers.js.map +1 -1
- package/dist/esm/observability/contextError/finders/index.d.ts +4 -4
- package/dist/esm/observability-providers.d.ts +5 -5
- package/dist/esm/observability-providers.js +5 -5
- package/dist/esm/observe.d.ts +1 -0
- package/dist/esm/observe.js +11 -6
- package/dist/esm/observe.js.map +1 -1
- package/dist/esm/providers.d.ts +2 -2
- package/dist/esm/providers.js +2 -2
- package/dist/esm/rag/exportCorpus.d.ts +64 -0
- package/dist/esm/rag/exportCorpus.js +172 -0
- package/dist/esm/rag/exportCorpus.js.map +1 -0
- package/dist/esm/rag/index.d.ts +3 -1
- package/dist/esm/rag/index.js +8 -1
- package/dist/esm/rag/index.js.map +1 -1
- package/dist/esm/rag/splitters/byHeading.d.ts +39 -0
- package/dist/esm/rag/splitters/byHeading.js +133 -15
- package/dist/esm/rag/splitters/byHeading.js.map +1 -1
- package/dist/esm/rag/splitters/byParagraph.d.ts +14 -0
- package/dist/esm/rag/splitters/byParagraph.js +4 -2
- package/dist/esm/rag/splitters/byParagraph.js.map +1 -1
- package/dist/esm/rag/splitters/constants.d.ts +24 -1
- package/dist/esm/rag/splitters/constants.js +24 -1
- package/dist/esm/rag/splitters/constants.js.map +1 -1
- package/dist/esm/rag/splitters/index.d.ts +15 -1
- package/dist/esm/rag/splitters/index.js +15 -1
- package/dist/esm/rag/splitters/index.js.map +1 -1
- package/dist/esm/rag/splitters/shared.d.ts +32 -0
- package/dist/esm/rag/splitters/shared.js +77 -1
- package/dist/esm/rag/splitters/shared.js.map +1 -1
- package/dist/esm/recorders/core/ContextRecorder.js +47 -11
- package/dist/esm/recorders/core/ContextRecorder.js.map +1 -1
- package/dist/esm/recorders/core/types.d.ts +16 -18
- package/dist/esm/recorders/core/types.js.map +1 -1
- package/dist/esm/recorders/observability/BoundaryRecorder.d.ts +24 -0
- package/dist/esm/recorders/observability/BoundaryRecorder.js +19 -6
- package/dist/esm/recorders/observability/BoundaryRecorder.js.map +1 -1
- package/dist/esm/recorders/observability/RouteRecorder.d.ts +1 -1
- package/dist/esm/recorders/observability/RouteRecorder.js +1 -1
- package/dist/esm/recorders/observability/ToolChoiceRecorder.d.ts +1 -1
- package/dist/esm/recorders/observability/ToolChoiceRecorder.js +1 -1
- package/dist/esm/recorders/observability/embeddingSummary.d.ts +56 -0
- package/dist/esm/recorders/observability/embeddingSummary.js +114 -0
- package/dist/esm/recorders/observability/embeddingSummary.js.map +1 -0
- package/dist/esm/recorders/observability/recordRun.d.ts +16 -0
- package/dist/esm/recorders/observability/recordRun.js +17 -3
- package/dist/esm/recorders/observability/recordRun.js.map +1 -1
- package/dist/esm/reliability/index.d.ts +15 -3
- package/dist/esm/reliability/index.js +15 -3
- package/dist/esm/reliability/index.js.map +1 -1
- package/dist/esm/resilience/fallbackProvider.d.ts +1 -1
- package/dist/esm/resilience/fallbackProvider.js +1 -1
- package/dist/esm/resilience/withCircuitBreaker.d.ts +1 -1
- package/dist/esm/resilience/withCircuitBreaker.js +1 -1
- package/dist/esm/resilience/withRetry.d.ts +1 -1
- package/dist/esm/resilience/withRetry.js +1 -1
- package/dist/esm/security/PermissionPolicy.d.ts +2 -2
- package/dist/esm/security/PermissionPolicy.js +2 -2
- package/dist/esm/security/index.d.ts +3 -3
- package/dist/esm/security/index.js +3 -3
- package/dist/esm/status.d.ts +14 -24
- package/dist/esm/status.js +15 -25
- package/dist/esm/status.js.map +1 -1
- package/dist/esm/strategies/index.d.ts +9 -16
- package/dist/esm/strategies/index.js +9 -16
- package/dist/esm/strategies/index.js.map +1 -1
- package/dist/esm/strategies/registry.d.ts +1 -1
- package/dist/esm/strategies/registry.js +1 -1
- package/dist/esm/stream.d.ts +4 -4
- package/dist/esm/stream.js +4 -4
- package/dist/esm/thinking/index.d.ts +5 -5
- package/dist/esm/thinking/index.js +5 -5
- package/dist/esm/tool-providers/index.d.ts +4 -4
- package/dist/esm/tool-providers/index.js +4 -4
- package/dist/hosting-providers.js +16 -16
- package/dist/identity/types.js +1 -1
- package/dist/identity/withCredentialRetry.js +1 -1
- package/dist/identity.js +5 -5
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/injection-engine.js +4 -4
- package/dist/lib/context-ledger/gates.js +1 -1
- package/dist/lib/injection-engine/SkillRegistry.js +1 -1
- package/dist/lib/injection-engine/factories/defineSkill.js +29 -1
- package/dist/lib/injection-engine/factories/defineSkill.js.map +1 -1
- package/dist/lib/injection-engine/skillsFromDir.js +22 -2
- package/dist/lib/injection-engine/skillsFromDir.js.map +1 -1
- package/dist/lib/mcp/gatewayTransport.js +2 -2
- package/dist/lib/rag/defineRAG.js.map +1 -1
- package/dist/lib/recorded-chat/index.js +1 -1
- package/dist/llm-providers.js +5 -19
- package/dist/llm-providers.js.map +1 -1
- package/dist/locales/index.js +6 -6
- package/dist/memory/causal/evidenceRecorder.js +1 -1
- package/dist/memory/define.types.js.map +1 -1
- package/dist/memory/index.js +6 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/retrieval/topK.js.map +1 -1
- package/dist/memory/store/index.js +6 -1
- package/dist/memory/store/index.js.map +1 -1
- package/dist/memory/store/staticVectorStore.js +230 -0
- package/dist/memory/store/staticVectorStore.js.map +1 -0
- package/dist/memory-providers.js +8 -24
- package/dist/memory-providers.js.map +1 -1
- package/dist/observability-providers.js +5 -5
- package/dist/observe.js +14 -7
- package/dist/observe.js.map +1 -1
- package/dist/providers.js +2 -2
- package/dist/rag/exportCorpus.js +177 -0
- package/dist/rag/exportCorpus.js.map +1 -0
- package/dist/rag/index.js +13 -1
- package/dist/rag/index.js.map +1 -1
- package/dist/rag/splitters/byHeading.js +132 -14
- package/dist/rag/splitters/byHeading.js.map +1 -1
- package/dist/rag/splitters/byParagraph.js +3 -1
- package/dist/rag/splitters/byParagraph.js.map +1 -1
- package/dist/rag/splitters/constants.js +25 -2
- package/dist/rag/splitters/constants.js.map +1 -1
- package/dist/rag/splitters/index.js +16 -1
- package/dist/rag/splitters/index.js.map +1 -1
- package/dist/rag/splitters/shared.js +79 -1
- package/dist/rag/splitters/shared.js.map +1 -1
- package/dist/recorders/core/ContextRecorder.js +47 -11
- package/dist/recorders/core/ContextRecorder.js.map +1 -1
- package/dist/recorders/core/types.js.map +1 -1
- package/dist/recorders/observability/BoundaryRecorder.js +19 -6
- package/dist/recorders/observability/BoundaryRecorder.js.map +1 -1
- package/dist/recorders/observability/RouteRecorder.js +1 -1
- package/dist/recorders/observability/ToolChoiceRecorder.js +1 -1
- package/dist/recorders/observability/embeddingSummary.js +119 -0
- package/dist/recorders/observability/embeddingSummary.js.map +1 -0
- package/dist/recorders/observability/recordRun.js +17 -3
- package/dist/recorders/observability/recordRun.js.map +1 -1
- package/dist/reliability/index.js +15 -3
- package/dist/reliability/index.js.map +1 -1
- package/dist/resilience/fallbackProvider.js +1 -1
- package/dist/resilience/withCircuitBreaker.js +1 -1
- package/dist/resilience/withRetry.js +1 -1
- package/dist/security/PermissionPolicy.js +2 -2
- package/dist/security/index.js +3 -3
- package/dist/status.js +14 -24
- package/dist/status.js.map +1 -1
- package/dist/strategies/index.js +9 -16
- package/dist/strategies/index.js.map +1 -1
- package/dist/strategies/registry.js +1 -1
- package/dist/stream.js +4 -4
- package/dist/thinking/index.js +5 -5
- package/dist/tool-providers/index.js +4 -4
- package/dist/types/adapters/hosting/agentcore.d.ts +1 -1
- package/dist/types/adapters/identity/agentcore.d.ts +1 -1
- package/dist/types/adapters/llm/AnthropicProvider.d.ts +1 -1
- package/dist/types/adapters/llm/BrowserOpenAIProvider.d.ts +1 -1
- package/dist/types/adapters/llm/MockProvider.d.ts +1 -1
- package/dist/types/adapters/llm/OpenAIProvider.d.ts +2 -2
- package/dist/types/adapters/memory/agentcore.d.ts +1 -1
- package/dist/types/adapters/memory/bedrockAgentMemory.d.ts +1 -1
- package/dist/types/adapters/memory/redis.d.ts +1 -1
- package/dist/types/adapters/observability/agentcore.d.ts +2 -2
- package/dist/types/adapters/observability/audit.d.ts +1 -1
- package/dist/types/adapters/observability/cloudwatch.d.ts +2 -2
- package/dist/types/adapters/observability/otel.d.ts +4 -4
- package/dist/types/adapters/observability/xray.d.ts +2 -2
- package/dist/types/core/agent/AgentBuilder.d.ts +17 -14
- package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
- package/dist/types/core/agent/stages/window.d.ts.map +1 -1
- package/dist/types/core/agent/types.d.ts +2 -2
- package/dist/types/core/agent/watch.d.ts +1 -1
- package/dist/types/core/agent/window/index.d.ts +1 -1
- package/dist/types/core/agent/window/index.d.ts.map +1 -1
- package/dist/types/core/agent/window/strategies/summarizeOldest.d.ts.map +1 -1
- package/dist/types/core/agent/window/types.d.ts +0 -30
- package/dist/types/core/agent/window/types.d.ts.map +1 -1
- package/dist/types/core/runner.d.ts +1 -1
- package/dist/types/core/slots/helpers.d.ts +3 -4
- package/dist/types/core/slots/helpers.d.ts.map +1 -1
- package/dist/types/debug/finders.d.ts +7 -10
- package/dist/types/debug/finders.d.ts.map +1 -1
- package/dist/types/debug.d.ts +4 -4
- package/dist/types/doors/context.d.ts +3 -3
- package/dist/types/embedders/index.d.ts +4 -4
- package/dist/types/events/payloads.d.ts +10 -14
- package/dist/types/events/payloads.d.ts.map +1 -1
- package/dist/types/hosting-providers.d.ts +16 -16
- package/dist/types/identity/types.d.ts +1 -1
- package/dist/types/identity/withCredentialRetry.d.ts +1 -1
- package/dist/types/identity.d.ts +5 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/injection-engine.d.ts +4 -4
- package/dist/types/lib/context-ledger/gates.d.ts +1 -1
- package/dist/types/lib/injection-engine/SkillRegistry.d.ts +1 -1
- package/dist/types/lib/injection-engine/factories/defineSkill.d.ts +1 -16
- package/dist/types/lib/injection-engine/factories/defineSkill.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/skillsFromDir.d.ts +1 -11
- package/dist/types/lib/injection-engine/skillsFromDir.d.ts.map +1 -1
- package/dist/types/lib/injection-engine/types.d.ts +1 -1
- package/dist/types/lib/mcp/gatewayTransport.d.ts +2 -2
- package/dist/types/lib/rag/defineRAG.d.ts +9 -6
- package/dist/types/lib/rag/defineRAG.d.ts.map +1 -1
- package/dist/types/lib/recorded-chat/index.d.ts +1 -1
- package/dist/types/llm-providers.d.ts +5 -19
- package/dist/types/llm-providers.d.ts.map +1 -1
- package/dist/types/locales/index.d.ts +7 -7
- package/dist/types/memory/causal/evidenceRecorder.d.ts +1 -1
- package/dist/types/memory/define.types.d.ts +3 -2
- package/dist/types/memory/define.types.d.ts.map +1 -1
- package/dist/types/memory/index.d.ts +0 -10
- package/dist/types/memory/index.d.ts.map +1 -1
- package/dist/types/memory/retrieval/topK.d.ts +12 -6
- package/dist/types/memory/retrieval/topK.d.ts.map +1 -1
- package/dist/types/memory/store/index.d.ts +1 -0
- package/dist/types/memory/store/index.d.ts.map +1 -1
- package/dist/types/memory/store/staticVectorStore.d.ts +84 -0
- package/dist/types/memory/store/staticVectorStore.d.ts.map +1 -0
- package/dist/types/memory-providers.d.ts +8 -24
- package/dist/types/memory-providers.d.ts.map +1 -1
- package/dist/types/observability/contextError/finders/index.d.ts +4 -4
- package/dist/types/observability-providers.d.ts +5 -5
- package/dist/types/observe.d.ts +1 -0
- package/dist/types/observe.d.ts.map +1 -1
- package/dist/types/providers.d.ts +2 -2
- package/dist/types/rag/exportCorpus.d.ts +65 -0
- package/dist/types/rag/exportCorpus.d.ts.map +1 -0
- package/dist/types/rag/index.d.ts +3 -1
- package/dist/types/rag/index.d.ts.map +1 -1
- package/dist/types/rag/splitters/byHeading.d.ts +39 -0
- package/dist/types/rag/splitters/byHeading.d.ts.map +1 -1
- package/dist/types/rag/splitters/byParagraph.d.ts +14 -0
- package/dist/types/rag/splitters/byParagraph.d.ts.map +1 -1
- package/dist/types/rag/splitters/constants.d.ts +24 -1
- package/dist/types/rag/splitters/constants.d.ts.map +1 -1
- package/dist/types/rag/splitters/index.d.ts +15 -1
- package/dist/types/rag/splitters/index.d.ts.map +1 -1
- package/dist/types/rag/splitters/shared.d.ts +32 -0
- package/dist/types/rag/splitters/shared.d.ts.map +1 -1
- package/dist/types/recorders/core/ContextRecorder.d.ts.map +1 -1
- package/dist/types/recorders/core/types.d.ts +16 -18
- package/dist/types/recorders/core/types.d.ts.map +1 -1
- package/dist/types/recorders/observability/BoundaryRecorder.d.ts +24 -0
- package/dist/types/recorders/observability/BoundaryRecorder.d.ts.map +1 -1
- package/dist/types/recorders/observability/RouteRecorder.d.ts +1 -1
- package/dist/types/recorders/observability/ToolChoiceRecorder.d.ts +1 -1
- package/dist/types/recorders/observability/embeddingSummary.d.ts +57 -0
- package/dist/types/recorders/observability/embeddingSummary.d.ts.map +1 -0
- package/dist/types/recorders/observability/recordRun.d.ts +16 -0
- package/dist/types/recorders/observability/recordRun.d.ts.map +1 -1
- package/dist/types/reliability/index.d.ts +15 -3
- package/dist/types/reliability/index.d.ts.map +1 -1
- package/dist/types/resilience/fallbackProvider.d.ts +1 -1
- package/dist/types/resilience/withCircuitBreaker.d.ts +1 -1
- package/dist/types/resilience/withRetry.d.ts +1 -1
- package/dist/types/security/PermissionPolicy.d.ts +2 -2
- package/dist/types/security/index.d.ts +3 -3
- package/dist/types/status.d.ts +14 -24
- package/dist/types/status.d.ts.map +1 -1
- package/dist/types/strategies/index.d.ts +9 -16
- package/dist/types/strategies/index.d.ts.map +1 -1
- package/dist/types/strategies/registry.d.ts +1 -1
- package/dist/types/stream.d.ts +4 -4
- package/dist/types/thinking/index.d.ts +5 -5
- package/dist/types/tool-providers/index.d.ts +4 -4
- package/package.json +1 -209
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* debug/finders — context-error finder strategies.
|
|
3
3
|
*
|
|
4
4
|
* Collapsed home for what was the 3-level-deep
|
|
5
|
-
* `
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* `src/observability/contextError/finders/` barrel. Same tree-shakeable,
|
|
6
|
+
* re-export-only shape — one finder = one file = one named export — now under
|
|
7
|
+
* the Debug category where it belongs.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* @deprecated Since 8.0.0 — import from `agentfootprint/observe` instead.
|
|
13
|
-
* This path keeps working for all of 8.x and is removed in 9.0.0. Every name
|
|
14
|
-
* here is the same symbol on the new door, not a copy.
|
|
9
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
10
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
11
|
+
* symbols, one door. Import from the door.
|
|
15
12
|
*/
|
|
16
13
|
export * from '../observability/contextError/finders/index.js';
|
|
17
14
|
//# sourceMappingURL=finders.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finders.js","sourceRoot":"","sources":["../../../src/debug/finders.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"finders.js","sourceRoot":"","sources":["../../../src/debug/finders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,gDAAgD,CAAC"}
|
package/dist/esm/debug.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* debug — diagnosis tools for a BROKEN run.
|
|
3
3
|
*
|
|
4
4
|
* Where `agentfootprint/observe` watches a HEALTHY run (recorders), this
|
|
5
5
|
* subpath is the autopsy kit for a wrong answer. Split out of `observe` in
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* For backward compatibility these are ALSO re-exported (deprecated) from
|
|
18
18
|
* `agentfootprint/observe` for one transition version.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
21
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
22
|
+
* symbols, one door. Import from the door.
|
|
23
23
|
*/
|
|
24
24
|
export { adaptWeights, averageRelevancy, compositeScore, contentHash, DEFAULT_CLEAR_WINNER_MARGIN, DEFAULT_CLEAR_WINNER_RATIO, DEFAULT_INFLUENCE_WEIGHTS, DEFAULT_MARGIN_THRESHOLD, DEFAULT_PERSISTENCE_THRESHOLD, DEFAULT_SHORTLIST_BAND, EmbeddingCache, embeddingCache, finalAnswerSimilarity, attributeChoice, explainChoice, lexicalOverlapStrategy, listInfluenceStrategies, marginStrategy, pairwiseSimilarity, persistence, rankingConfidence, ratioStrategy, scoreContrastiveInfluence, scoreInfluence, scoreLexicalInfluence, scoreMargin, semanticAlignmentStrategy, snippetUnits, structuralProximity, type AttributeChoiceArgs, type AttributionUnit, type CandidateScore, type ChannelVerdict, type ChoiceAttribution, type ChoiceExplanation, type ConfidenceStrategy, type Embedder, type EmbeddingCacheOptions, type EmbeddingCacheStats, type EvidenceInput, type ExplainChoiceArgs, type InfluenceScore, type InfluenceScorer, type InfluenceStrategy, type InfluenceStrategyRequirement, type InfluenceWeights, type MarginCandidate, type MarginResult, type PairwiseSimilarityArgs, type PairwiseSimilarityResult, type RankingConfidence, type RankingConfidenceOptions, type ScoreContrastiveInfluenceArgs, type ScoreInfluenceArgs, type ScoreLexicalInfluenceArgs, type ScoreMarginArgs, type SignalScores, type SimilarityItem, type SimilarityPair, type SnippetUnitsOptions, type UnitScore, } from './lib/influence-core/index.js';
|
|
25
25
|
export { callTraceTool, lazyTraceToolpack, NO_COMPLETED_RUN_MESSAGE, TOOLPACK_HARD_CAPS, TRACE_TOOL_NAMES, traceToolpack, type TraceToolpackArtifacts, type TraceToolpackOptions, } from './lib/trace-toolpack/index.js';
|
package/dist/esm/debug.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* debug — diagnosis tools for a BROKEN run.
|
|
3
3
|
*
|
|
4
4
|
* Where `agentfootprint/observe` watches a HEALTHY run (recorders), this
|
|
5
5
|
* subpath is the autopsy kit for a wrong answer. Split out of `observe` in
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* For backward compatibility these are ALSO re-exported (deprecated) from
|
|
18
18
|
* `agentfootprint/observe` for one transition version.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
20
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
21
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
22
|
+
* symbols, one door. Import from the door.
|
|
23
23
|
*/
|
|
24
24
|
// influence-core — the ONE embedding-based scoring engine (RFC-002/003
|
|
25
25
|
// block D6). Not a recorder: pure, embedder-injected scoring functions
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* one, and the engine subflow that resolves them into the three slots a
|
|
6
6
|
* request is made of (system prompt, messages, tools).
|
|
7
7
|
*
|
|
8
|
-
* Named for the job rather than the machine — this was
|
|
9
|
-
* `agentfootprint/injection-engine`, which described our
|
|
10
|
-
* instead of your task.
|
|
8
|
+
* Named for the job rather than the machine — through 8.x this was also
|
|
9
|
+
* reachable at `agentfootprint/injection-engine`, which described our
|
|
10
|
+
* implementation instead of your task. That path was removed in 9.0.0.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* one, and the engine subflow that resolves them into the three slots a
|
|
6
6
|
* request is made of (system prompt, messages, tools).
|
|
7
7
|
*
|
|
8
|
-
* Named for the job rather than the machine — this was
|
|
9
|
-
* `agentfootprint/injection-engine`, which described our
|
|
10
|
-
* instead of your task.
|
|
8
|
+
* Named for the job rather than the machine — through 8.x this was also
|
|
9
|
+
* reachable at `agentfootprint/injection-engine`, which described our
|
|
10
|
+
* implementation instead of your task. That path was removed in 9.0.0.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* embedders — ready-made {@link Embedder} implementations for the
|
|
3
3
|
* embedding-backed scorers (memory retrieval, toolChoiceRecorder / scoreMargin).
|
|
4
4
|
*
|
|
5
5
|
* The core deliberately ships only `mockEmbedder` (bring-your-own). These are
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
* AgentCoreStore): the library states the surface it needs, the host owns the
|
|
37
37
|
* construction. Nothing changes for Node callers who pass nothing.
|
|
38
38
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
39
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
40
|
+
* behind `agentfootprint/providers`, which re-exports every name here — same
|
|
41
|
+
* symbols, one door. Import from the door.
|
|
42
42
|
*/
|
|
43
43
|
export type { Embedder } from '../memory/embedding/types.js';
|
|
44
44
|
import type { Embedder } from '../memory/embedding/types.js';
|
|
@@ -248,18 +248,6 @@ export interface ContextSlotComposedPayload {
|
|
|
248
248
|
*/
|
|
249
249
|
export interface ContextBudgetPressurePayload {
|
|
250
250
|
readonly slot: ContextSlot;
|
|
251
|
-
/**
|
|
252
|
-
* @deprecated Misnamed since the event shipped: this is CHARS on the slot
|
|
253
|
-
* channel and TOKENS on the window channel. Read {@link cap} with
|
|
254
|
-
* {@link unit}. Still written, with the identical value, and not going
|
|
255
|
-
* away in 8.x.
|
|
256
|
-
*/
|
|
257
|
-
readonly capTokens: number;
|
|
258
|
-
/**
|
|
259
|
-
* @deprecated Misnamed — see {@link capTokens}. Read {@link projected} with
|
|
260
|
-
* {@link unit}. Still written, with the identical value.
|
|
261
|
-
*/
|
|
262
|
-
readonly projectedTokens: number;
|
|
263
251
|
/** How far over the cap, in {@link unit}. Never carried a unit in its name. */
|
|
264
252
|
readonly overflowBy: number;
|
|
265
253
|
readonly planAction: 'evict' | 'summarize' | 'abort' | 'none';
|
|
@@ -270,9 +258,17 @@ export interface ContextBudgetPressurePayload {
|
|
|
270
258
|
* anything.
|
|
271
259
|
*/
|
|
272
260
|
readonly unit: 'chars' | 'tokens';
|
|
273
|
-
/**
|
|
261
|
+
/**
|
|
262
|
+
* The budget that was exceeded, in {@link unit}.
|
|
263
|
+
*
|
|
264
|
+
* Called `capTokens` until 9.0.0 — a name that asserted tokens on a channel
|
|
265
|
+
* that is CHARS half the time, since `contextBudget` is on by default and a
|
|
266
|
+
* slot counts `String.length`. Both spellings shipped through 8.x with the
|
|
267
|
+
* identical value; 9.0.0 keeps only this one.
|
|
268
|
+
*/
|
|
274
269
|
readonly cap: number;
|
|
275
|
-
/** What was measured, in {@link unit}.
|
|
270
|
+
/** What was measured, in {@link unit}. Called `projectedTokens` until 9.0.0
|
|
271
|
+
* — see {@link cap}. */
|
|
276
272
|
readonly projected: number;
|
|
277
273
|
}
|
|
278
274
|
/**
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* hosting-providers — adapters for the two hosting ports.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* src/hosting/ ← the PORTS (`AgentHost`, `SessionLifecycle`), the
|
|
5
|
+
* composer, and the local adapters
|
|
6
|
+
* src/hosting-providers.ts ← adapters for somewhere you deploy (this file)
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* name or assumption in
|
|
11
|
-
* for vendor names to keep that honest
|
|
12
|
-
* adapters
|
|
13
|
-
*
|
|
8
|
+
* The split is a source-tree split, not an import split: both halves come out
|
|
9
|
+
* of the one `agentfootprint/hosting` door. It exists because the PORT files
|
|
10
|
+
* promise that not one field, name or assumption in them comes from any cloud,
|
|
11
|
+
* and a test greps those sources for vendor names to keep that honest. So the
|
|
12
|
+
* cloud adapters live in this file, and the port files stay readable without
|
|
13
|
+
* learning anybody's product names.
|
|
14
14
|
*
|
|
15
|
-
* One
|
|
16
|
-
*
|
|
15
|
+
* One file that grows: an adapter for the next runtime lands here beside this
|
|
16
|
+
* one.
|
|
17
17
|
*
|
|
18
18
|
* ── What ships here ──────────────────────────────────────────────────────────
|
|
19
19
|
* • `agentCoreRuntimeHost({ port?, hostname?, busy? })` — an `AgentHost` for
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
*
|
|
43
43
|
* @example An agent in an AgentCore Runtime container
|
|
44
44
|
* import { standingAgent } from 'agentfootprint/hosting';
|
|
45
|
-
* import { agentCoreRuntimeHost, agentCoreSessions } from 'agentfootprint/hosting
|
|
45
|
+
* import { agentCoreRuntimeHost, agentCoreSessions } from 'agentfootprint/hosting';
|
|
46
46
|
*
|
|
47
47
|
* const handle = await standingAgent({
|
|
48
48
|
* agent,
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
* });
|
|
52
52
|
* process.on('SIGTERM', () => void handle.close());
|
|
53
53
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
54
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
55
|
+
* behind `agentfootprint/hosting`, which re-exports every name here — same
|
|
56
|
+
* symbols, one door. Import from the door.
|
|
57
57
|
*/
|
|
58
58
|
export { agentCoreRuntimeHost, agentCoreRuntimeWire, readAgentCoreConversation, agentCoreSessions, DEFAULT_SESSION_STORAGE_PATH, } from './adapters/hosting/agentcore.js';
|
|
59
59
|
export type { AgentCoreRuntimeHostOptions, AgentCoreSessionsOptions, AgentCoreSessionStore, AgentCoreFileSessionsOptions, AgentCoreMemorySessionsOptions, AgentCoreSessionClientLike, AgentCoreSessionEvent, BedrockAgentCoreSessionSdkModule, } from './adapters/hosting/agentcore.js';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* hosting-providers — adapters for the two hosting ports.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* src/hosting/ ← the PORTS (`AgentHost`, `SessionLifecycle`), the
|
|
5
|
+
* composer, and the local adapters
|
|
6
|
+
* src/hosting-providers.ts ← adapters for somewhere you deploy (this file)
|
|
7
7
|
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* name or assumption in
|
|
11
|
-
* for vendor names to keep that honest
|
|
12
|
-
* adapters
|
|
13
|
-
*
|
|
8
|
+
* The split is a source-tree split, not an import split: both halves come out
|
|
9
|
+
* of the one `agentfootprint/hosting` door. It exists because the PORT files
|
|
10
|
+
* promise that not one field, name or assumption in them comes from any cloud,
|
|
11
|
+
* and a test greps those sources for vendor names to keep that honest. So the
|
|
12
|
+
* cloud adapters live in this file, and the port files stay readable without
|
|
13
|
+
* learning anybody's product names.
|
|
14
14
|
*
|
|
15
|
-
* One
|
|
16
|
-
*
|
|
15
|
+
* One file that grows: an adapter for the next runtime lands here beside this
|
|
16
|
+
* one.
|
|
17
17
|
*
|
|
18
18
|
* ── What ships here ──────────────────────────────────────────────────────────
|
|
19
19
|
* • `agentCoreRuntimeHost({ port?, hostname?, busy? })` — an `AgentHost` for
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
*
|
|
43
43
|
* @example An agent in an AgentCore Runtime container
|
|
44
44
|
* import { standingAgent } from 'agentfootprint/hosting';
|
|
45
|
-
* import { agentCoreRuntimeHost, agentCoreSessions } from 'agentfootprint/hosting
|
|
45
|
+
* import { agentCoreRuntimeHost, agentCoreSessions } from 'agentfootprint/hosting';
|
|
46
46
|
*
|
|
47
47
|
* const handle = await standingAgent({
|
|
48
48
|
* agent,
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
* });
|
|
52
52
|
* process.on('SIGTERM', () => void handle.close());
|
|
53
53
|
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
54
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
55
|
+
* behind `agentfootprint/hosting`, which re-exports every name here — same
|
|
56
|
+
* symbols, one door. Import from the door.
|
|
57
57
|
*/
|
|
58
58
|
export { agentCoreRuntimeHost, agentCoreRuntimeWire, readAgentCoreConversation, agentCoreSessions, DEFAULT_SESSION_STORAGE_PATH, } from './adapters/hosting/agentcore.js';
|
|
59
59
|
//# sourceMappingURL=hosting-providers.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* identity — the CredentialProvider port.
|
|
3
3
|
*
|
|
4
4
|
* OUTBOUND auth: vend a credential/token so a tool can call a downstream service
|
|
5
5
|
* (GitHub, Slack, Google…) on behalf of the agent or the end user. This is
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* identity — the CredentialProvider port.
|
|
3
3
|
*
|
|
4
4
|
* OUTBOUND auth: vend a credential/token so a tool can call a downstream service
|
|
5
5
|
* (GitHub, Slack, Google…) on behalf of the agent or the end user. This is
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* No new event types.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* import { agentCoreIdentity, withCredentialRetry } from 'agentfootprint/
|
|
40
|
+
* import { agentCoreIdentity, withCredentialRetry } from 'agentfootprint/security';
|
|
41
41
|
*
|
|
42
42
|
* const credentials = withCredentialRetry(agentCoreIdentity({ region: 'us-east-1' }), {
|
|
43
43
|
* maxAttempts: 3,
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* No new event types.
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* import { agentCoreIdentity, withCredentialRetry } from 'agentfootprint/
|
|
40
|
+
* import { agentCoreIdentity, withCredentialRetry } from 'agentfootprint/security';
|
|
41
41
|
*
|
|
42
42
|
* const credentials = withCredentialRetry(agentCoreIdentity({ region: 'us-east-1' }), {
|
|
43
43
|
* maxAttempts: 3,
|
package/dist/esm/identity.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* identity — outbound credential vending for agent tools.
|
|
3
3
|
*
|
|
4
4
|
* The {@link CredentialProvider} port + adapters. A tool calls
|
|
5
5
|
* `provider.getCredential({ service })` to get a token for a downstream service;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* import { agentCoreIdentity } from 'agentfootprint/
|
|
15
|
+
* import { agentCoreIdentity } from 'agentfootprint/security';
|
|
16
16
|
*
|
|
17
17
|
* const credentials = agentCoreIdentity({ region: 'us-east-1' });
|
|
18
18
|
* const r = await credentials.getCredential({ service: 'github', mode: 'user', scopes: ['repo'] });
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
* }
|
|
24
24
|
* ```
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
27
|
+
* behind `agentfootprint/security`, which re-exports every name here — same
|
|
28
|
+
* symbols, one door. Import from the door.
|
|
29
29
|
*/
|
|
30
30
|
export type { Credential, CredentialProvider, CredentialRequest, CredentialResult, CredentialIssued, CredentialAuthorizationRequired, CredentialNeed, } from './identity/types.js';
|
|
31
31
|
export { isCredentialIssued, unconfiguredCredentialProvider } from './identity/types.js';
|
package/dist/esm/identity.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* identity — outbound credential vending for agent tools.
|
|
3
3
|
*
|
|
4
4
|
* The {@link CredentialProvider} port + adapters. A tool calls
|
|
5
5
|
* `provider.getCredential({ service })` to get a token for a downstream service;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @example
|
|
14
14
|
* ```ts
|
|
15
|
-
* import { agentCoreIdentity } from 'agentfootprint/
|
|
15
|
+
* import { agentCoreIdentity } from 'agentfootprint/security';
|
|
16
16
|
*
|
|
17
17
|
* const credentials = agentCoreIdentity({ region: 'us-east-1' });
|
|
18
18
|
* const r = await credentials.getCredential({ service: 'github', mode: 'user', scopes: ['repo'] });
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
* }
|
|
24
24
|
* ```
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
27
|
+
* behind `agentfootprint/security`, which re-exports every name here — same
|
|
28
|
+
* symbols, one door. Import from the door.
|
|
29
29
|
*/
|
|
30
30
|
export { isCredentialIssued, unconfiguredCredentialProvider } from './identity/types.js';
|
|
31
31
|
export { bearer, apiKey, basic, headers, } from './identity/kinds.js';
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export { LLMCall, LLMCallBuilder, type LLMCallInput, type LLMCallOptions, type L
|
|
|
32
32
|
export { type MessageApiChartDeps } from './core/agent/buildMessageApiChart.js';
|
|
33
33
|
export { buildAgentMessageApiChart, type AgentMessageApiChartDeps, } from './core/agent/buildAgentMessageApiChart.js';
|
|
34
34
|
export { Agent, AgentBuilder, type AgentInput, type AgentOptions, type AgentOutput, type ObserverDeliveryOptions, } from './core/Agent.js';
|
|
35
|
-
export { CompactionUnmeasurableError, COMPACTED_FRAME_PREFIX, DROP_NOTICE_PREFIX, foldedMessages, foldedSpanFor, isCompactedSummary, isDropNotice, slidingWindow, summarizeOldest, tokenBudget, type CompactionOptions, type CompactionRecord, type CompactionRetention, type FoldedConversation, type FoldedSpan, type
|
|
35
|
+
export { CompactionUnmeasurableError, COMPACTED_FRAME_PREFIX, DROP_NOTICE_PREFIX, foldedMessages, foldedSpanFor, isCompactedSummary, isDropNotice, slidingWindow, summarizeOldest, tokenBudget, type CompactionOptions, type CompactionRecord, type CompactionRetention, type FoldedConversation, type FoldedSpan, type RemovalFacts, type RemovalPlan, type SlidingWindowOptions, type SlidingWindowRecord, type TokenBudgetOptions, type TokenBudgetRecord, type Turn, type WindowEviction, type WindowRecord, type WindowRefusal, type WindowRefusalReason, type WindowStrategy, type WindowStrategyInput, type WindowStrategyResult, } from './core/agent/window/index.js';
|
|
36
36
|
export type { SelfExplainInclude, SelfExplainOptions } from './lib/trace-toolpack/selfExplain.js';
|
|
37
37
|
export type { ObserverDrainResult, ObserverStats } from 'footprintjs';
|
|
38
38
|
export type { ToolArgValidationMode } from './core/agent/toolArgsValidation.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -166,14 +166,14 @@ export { graph, Graph, } from './core-flow/Graph.js';
|
|
|
166
166
|
// because bundlers walking these never touch optional peer-dep code.
|
|
167
167
|
//
|
|
168
168
|
// Vendor-SDK-backed providers (AnthropicProvider, OpenAIProvider,
|
|
169
|
-
// BedrockProvider) live ONLY at `agentfootprint/
|
|
169
|
+
// BedrockProvider) live ONLY at `agentfootprint/providers`. That
|
|
170
170
|
// subpath segregation means bundlers walking from `agentfootprint` main
|
|
171
171
|
// never see the lazy peer-dep requires for `@anthropic-ai/sdk`,
|
|
172
172
|
// `openai`, `@aws-sdk/client-bedrock-runtime`, etc. — automatic
|
|
173
173
|
// tree-shaking, no bundler-side workarounds.
|
|
174
174
|
//
|
|
175
175
|
// import { AnthropicProvider } from 'agentfootprint'; // ❌ not exported
|
|
176
|
-
// import { AnthropicProvider } from 'agentfootprint/
|
|
176
|
+
// import { AnthropicProvider } from 'agentfootprint/providers'; // ✓ canonical
|
|
177
177
|
export { providerFromEnv, } from './adapters/llm/createProvider.js';
|
|
178
178
|
// Streaming helpers — agent events → SSE for browser delivery.
|
|
179
179
|
// Injection Engine — the unifying primitive of context engineering.
|
|
@@ -199,7 +199,7 @@ export { topK, } from './memory/retrieval/index.js';
|
|
|
199
199
|
// which connect to a Model Context Protocol server and expose its tools
|
|
200
200
|
// as agentfootprint `Tool[]` for `agent.tools(...)` — and the dispatch
|
|
201
201
|
// primitives `staticTools` / `gatedTools` / `skillScopedTools` live
|
|
202
|
-
// ONLY under `agentfootprint/
|
|
202
|
+
// ONLY under `agentfootprint/providers`: one subpath for
|
|
203
203
|
// everything tool-related, so the main barrel stays focused on the core
|
|
204
204
|
// agent API. NONE of them are re-exported here.
|
|
205
205
|
// `@modelcontextprotocol/sdk` stays a lazy-required peer-dep, so an app
|
|
@@ -207,7 +207,7 @@ export { topK, } from './memory/retrieval/index.js';
|
|
|
207
207
|
// Cross-cutting authorization (v2.5+). `agentfootprint/security` is the
|
|
208
208
|
// dedicated subpath; the root barrel also re-exports `PermissionPolicy`
|
|
209
209
|
// so existing v2.4 consumers find it at the top level.
|
|
210
|
-
// Message Catalog Pattern (v2.5+). `agentfootprint/
|
|
210
|
+
// Message Catalog Pattern (v2.5+). `agentfootprint/observe` is the
|
|
211
211
|
// dedicated subpath; the root barrel also re-exports the helpers so
|
|
212
212
|
// existing v2.4 consumers find them at the top level.
|
|
213
213
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,oEAAoE;AACpE,8DAA8D;AAC9D,uEAAuE;AACvE,kEAAkE;AAClE,sEAAsE;AACtE,sDAAsD;AACtD,OAAO,8CAA8C,CAAC;AACtD,OAAO,2CAA2C,CAAC;AACnD,OAAO,4CAA4C,CAAC;AAsCpD,6BAA6B;AAC7B,cAAc,qBAAqB,CAAC;AAEpC,yEAAyE;AACzE,uDAAuD;AACvD,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc;AAEd,yEAAyE;AACzE,wEAAwE;AACxE,yEAAyE;AACzE,gBAAgB;AAChB,SAAS;AAET,2EAA2E;AAC3E,6EAA6E;AAC7E,6EAA6E;AAC7E,6DAA6D;AAC7D,YAAY,GAGb,MAAM,kBAAkB,CAAC;AAC1B,oEAAoE;AACpE,yEAAyE;AACzE,wEAAwE;AACxE,qEAAqE;AACrE,kDAAkD;AAClD,OAAO,EACL,gBAAgB,GAMjB,MAAM,2BAA2B,CAAC;AAKnC,yCAAyC;AACzC,EAAE;AACF,yEAAyE;AACzE,kEAAkE;AAClE,oEAAoE;AACpE,qEAAqE;AACrE,2EAA2E;AAC3E,8EAA8E;AAC9E,0DAA0D;AAC1D,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GAKjB,MAAM,wCAAwC,CAAC;AAIhD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAc7D,sEAAsE;AACtE,wEAAwE;AACxE,iEAAiE;AACjE,sEAAsE;AACtE,uEAAuE;AACvE,OAAO,EACL,SAAS,EACT,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,cAAc,EACd,UAAU;AAC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,CAAC;AAE1C,+DAA+D;AAE/D,oEAAoE;AACpE,gEAAgE;AAEhE,qEAAqE;AACrE,0DAA0D;AAC1D,cAAc,qBAAqB,CAAC;AAEpC,uEAAuE;AACvE,uEAAuE;AACvE,oEAAoE;AACpE,sEAAsE;AACtE,8CAA8C;AAE9C,wEAAwE;AACxE,sEAAsE;AACtE,sEAAsE;AACtE,OAAO,EACL,SAAS,EACT,uBAAuB,EAEvB,cAAc,GAGf,MAAM,oBAAoB,CAAC;AAE5B,yEAAyE;AACzE,0EAA0E;AAC1E,qEAAqE;AACrE,iEAAiE;AACjE,OAAO,EACL,IAAI,GAML,MAAM,6BAA6B,CAAC;AAErC,qEAAqE;AACrE,wEAAwE;AACxE,uEAAuE;AACvE,oEAAoE;AACpE,yDAAyD;AACzD,wEAAwE;AACxE,gDAAgD;AAChD,wEAAwE;AACxE,gEAAgE;AAEhE,wEAAwE;AACxE,wEAAwE;AACxE,uDAAuD;AAEvD,mEAAmE;AACnE,oEAAoE;AACpE,sDAAsD"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* injection-engine — public re-export for the InjectionEngine subsystem.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
5
|
+
* behind `agentfootprint/context`, which re-exports every name here — same
|
|
6
|
+
* symbols, one door. Import from the door.
|
|
7
7
|
*/
|
|
8
8
|
export * from './lib/injection-engine/index.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* injection-engine — public re-export for the InjectionEngine subsystem.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
5
|
+
* behind `agentfootprint/context`, which re-exports every name here — same
|
|
6
|
+
* symbols, one door. Import from the door.
|
|
7
7
|
*/
|
|
8
8
|
export * from './lib/injection-engine/index.js';
|
|
9
9
|
//# sourceMappingURL=injection-engine.js.map
|
|
@@ -36,7 +36,7 @@ export interface LedgerPolicy {
|
|
|
36
36
|
* TOOL GATE — plug into the existing provider combinator:
|
|
37
37
|
*
|
|
38
38
|
* ```ts
|
|
39
|
-
* import { gatedTools, staticTools } from 'agentfootprint/
|
|
39
|
+
* import { gatedTools, staticTools } from 'agentfootprint/providers';
|
|
40
40
|
* builder.toolProvider(gatedTools(staticTools(tools), ledgerToolGate(ledger)));
|
|
41
41
|
* ```
|
|
42
42
|
*
|
|
@@ -40,7 +40,7 @@ function makeVerdict(ledger, policy) {
|
|
|
40
40
|
* TOOL GATE — plug into the existing provider combinator:
|
|
41
41
|
*
|
|
42
42
|
* ```ts
|
|
43
|
-
* import { gatedTools, staticTools } from 'agentfootprint/
|
|
43
|
+
* import { gatedTools, staticTools } from 'agentfootprint/providers';
|
|
44
44
|
* builder.toolProvider(gatedTools(staticTools(tools), ledgerToolGate(ledger)));
|
|
45
45
|
* ```
|
|
46
46
|
*
|
|
@@ -111,7 +111,7 @@ export declare class SkillRegistry {
|
|
|
111
111
|
* const { listSkills, readSkill } = registry.toTools();
|
|
112
112
|
* const tools = [listSkills, readSkill, ...other].filter(Boolean) as Tool[];
|
|
113
113
|
*
|
|
114
|
-
* Composes with `gatedTools` from `agentfootprint/
|
|
114
|
+
* Composes with `gatedTools` from `agentfootprint/providers`
|
|
115
115
|
* so PermissionPolicy can scope which roles see the skill discovery
|
|
116
116
|
* surface.
|
|
117
117
|
*
|
|
@@ -120,7 +120,7 @@ export class SkillRegistry {
|
|
|
120
120
|
* const { listSkills, readSkill } = registry.toTools();
|
|
121
121
|
* const tools = [listSkills, readSkill, ...other].filter(Boolean) as Tool[];
|
|
122
122
|
*
|
|
123
|
-
* Composes with `gatedTools` from `agentfootprint/
|
|
123
|
+
* Composes with `gatedTools` from `agentfootprint/providers`
|
|
124
124
|
* so PermissionPolicy can scope which roles see the skill discovery
|
|
125
125
|
* surface.
|
|
126
126
|
*
|
|
@@ -107,21 +107,6 @@ export interface DefineSkillOptions {
|
|
|
107
107
|
* every leaf. If a tool must never be offered before activation, that is not a
|
|
108
108
|
* default — say so with `autoActivate`. */
|
|
109
109
|
readonly tools?: readonly Tool[];
|
|
110
|
-
/**
|
|
111
|
-
* Override the activation tool name. Defaults to `'read_skill'`.
|
|
112
|
-
* Multiple Skills sharing one activation tool is the common pattern;
|
|
113
|
-
* the LLM picks WHICH skill via the tool's argument.
|
|
114
|
-
*
|
|
115
|
-
* @deprecated Since 8.7.0 — `'read_skill'` is the only value that has ever worked,
|
|
116
|
-
* and anything else is now REFUSED when the skill is mounted on an agent. No tool is
|
|
117
|
-
* built from this name: the evaluator activates an `llm-activated` skill by matching
|
|
118
|
-
* `ctx.activatedInjectionIds`, which only `read_skill` writes, and it never reads
|
|
119
|
-
* this field. A skill declaring another name activated through `read_skill` exactly
|
|
120
|
-
* like every other skill, so the declaration described a door that does not exist.
|
|
121
|
-
* Drop it — skills already share ONE activation tool and the model picks which skill
|
|
122
|
-
* by id. Removed in 9.0.0.
|
|
123
|
-
*/
|
|
124
|
-
readonly viaToolName?: string;
|
|
125
110
|
/**
|
|
126
111
|
* Where the body lands when activated. See `SurfaceMode`. Default
|
|
127
112
|
* `'auto'`, which delivers like `'system-prompt'`; name a mode
|
|
@@ -144,7 +129,7 @@ export interface DefineSkillOptions {
|
|
|
144
129
|
* static tool list and offered to the model only on iterations where
|
|
145
130
|
* the Skill is active. Outside the Agent's own wiring, materialize the
|
|
146
131
|
* same gate with `skillScopedTools(id, tools)` from
|
|
147
|
-
* `agentfootprint/
|
|
132
|
+
* `agentfootprint/providers`.
|
|
148
133
|
* - `undefined` (default) — additive: this Skill's tools go into the
|
|
149
134
|
* agent's registry at BUILD time and the model can see and call them
|
|
150
135
|
* from iteration 1, activated or not.
|
|
@@ -58,6 +58,33 @@ export function resolveSurfaceMode(provider, model) {
|
|
|
58
58
|
}
|
|
59
59
|
return 'tool-only';
|
|
60
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Refuse a `viaToolName` option that no longer exists (9.0.0 grace error).
|
|
63
|
+
*
|
|
64
|
+
* The option was deprecated in 8.7.0 and removed here. `'read_skill'` is the
|
|
65
|
+
* only activation tool this library has ever built: the evaluator activates an
|
|
66
|
+
* `llm-activated` skill by matching `ctx.activatedInjectionIds`, only
|
|
67
|
+
* `read_skill` writes that array, and nothing ever read the field. 8.7.0 made
|
|
68
|
+
* a non-`read_skill` value a mount-time refusal; 9.0.0 deletes the option.
|
|
69
|
+
*
|
|
70
|
+
* Deleting a type member alone would have been a silent DOWNGRADE: an object
|
|
71
|
+
* literal gets an excess-property error, but an options bag arriving through a
|
|
72
|
+
* variable does not — and the value would then be ignored where 8.7.0 refused
|
|
73
|
+
* it. So the field is read at run time exactly once more, to say it is gone.
|
|
74
|
+
*
|
|
75
|
+
* Deleted in 10.0.0.
|
|
76
|
+
*/
|
|
77
|
+
function assertNoViaToolName(where, opts) {
|
|
78
|
+
const legacy = opts.viaToolName;
|
|
79
|
+
if (legacy === undefined)
|
|
80
|
+
return;
|
|
81
|
+
throw new Error(`${where}: \`viaToolName\` was removed in 9.0.0 (deprecated since 8.7.0), and this call ` +
|
|
82
|
+
`passes '${String(legacy)}'. It never did anything: 'read_skill' is the only activation ` +
|
|
83
|
+
`tool this library builds, the evaluator matches on ctx.activatedInjectionIds — which ` +
|
|
84
|
+
`only read_skill writes — and no tool was ever created from this name. Drop the option: ` +
|
|
85
|
+
`skills already share ONE activation tool and the model picks WHICH skill by id. If you ` +
|
|
86
|
+
`need the skill gated on something else, use a \`rule\` trigger or a skillGraph() edge.`);
|
|
87
|
+
}
|
|
61
88
|
export function defineSkill(opts) {
|
|
62
89
|
if (!opts.id || opts.id.trim().length === 0) {
|
|
63
90
|
throw new Error('defineSkill: `id` is required and must be non-empty.');
|
|
@@ -68,13 +95,14 @@ export function defineSkill(opts) {
|
|
|
68
95
|
if (!opts.body || opts.body.length === 0) {
|
|
69
96
|
throw new Error(`defineSkill(${opts.id}): \`body\` is required.`);
|
|
70
97
|
}
|
|
98
|
+
assertNoViaToolName(`defineSkill(${opts.id})`, opts);
|
|
71
99
|
return Object.freeze({
|
|
72
100
|
id: opts.id,
|
|
73
101
|
description: opts.description,
|
|
74
102
|
flavor: 'skill',
|
|
75
103
|
trigger: {
|
|
76
104
|
kind: 'llm-activated',
|
|
77
|
-
viaToolName:
|
|
105
|
+
viaToolName: 'read_skill',
|
|
78
106
|
},
|
|
79
107
|
inject: {
|
|
80
108
|
systemPrompt: opts.body,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineSkill.js","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineSkill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"defineSkill.js","sourceRoot":"","sources":["../../../../../src/lib/injection-engine/factories/defineSkill.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAwIxE;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,kBAAkB,CAAC,QAAgB,EAAE,KAAc;IACjE,MAAM,CAAC,GAAG,QAAQ,CAAC,WAAW,EAAE,CAAC;IACjC,IAAI,CAAC,KAAK,WAAW,EAAE,CAAC;QACtB,2CAA2C;QAC3C,4CAA4C;QAC5C,+EAA+E;QAC/E,gFAAgF;QAChF,IAAI,KAAK,IAAI,iEAAiE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3F,OAAO,MAAM,CAAC;QAChB,CAAC;QACD,OAAO,WAAW,CAAC;IACrB,CAAC;IACD,OAAO,WAAW,CAAC;AACrB,CAAC;AAED;;;;;;;;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