agentfootprint 8.20.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/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/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-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.js +6 -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/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/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/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/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-providers.js +8 -24
- package/dist/memory-providers.js.map +1 -1
- package/dist/observability-providers.js +5 -5
- package/dist/observe.js +6 -6
- package/dist/observe.js.map +1 -1
- package/dist/providers.js +2 -2
- 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/RouteRecorder.js +1 -1
- package/dist/recorders/observability/ToolChoiceRecorder.js +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/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-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/providers.d.ts +2 -2
- 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/RouteRecorder.d.ts +1 -1
- package/dist/types/recorders/observability/ToolChoiceRecorder.d.ts +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
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
*
|
|
60
60
|
* Node-only. `node:fs/promises` and `node:path` are imported lazily inside the
|
|
61
61
|
* call, the same gating `lib/tool-lint/cli.ts` uses: this module is reachable
|
|
62
|
-
* from the `agentfootprint/
|
|
62
|
+
* from the `agentfootprint/context` barrel, and a TOP-LEVEL node:fs
|
|
63
63
|
* import detonates a browser bundle at module-eval even when nothing calls it.
|
|
64
64
|
*/
|
|
65
65
|
import { defineSkill } from './factories/defineSkill.js';
|
|
@@ -95,6 +95,7 @@ const URL_LIKE_RE = /^[a-zA-Z][a-zA-Z0-9+.-]*:\/\//;
|
|
|
95
95
|
*/
|
|
96
96
|
export async function skillsFromDir(dir, opts = {}) {
|
|
97
97
|
assertLocalDirectoryArgument(dir);
|
|
98
|
+
assertNoViaToolNameOption(opts);
|
|
98
99
|
// Lazy node imports (browser-compat) — see module header.
|
|
99
100
|
const { readdir, readFile, stat } = await import('node:fs/promises');
|
|
100
101
|
const { join } = await import('node:path');
|
|
@@ -156,11 +157,30 @@ export async function skillsFromDir(dir, opts = {}) {
|
|
|
156
157
|
id: skill.name,
|
|
157
158
|
description: skill.description,
|
|
158
159
|
body: skill.body,
|
|
159
|
-
...(opts.viaToolName !== undefined && { viaToolName: opts.viaToolName }),
|
|
160
160
|
...(opts.surfaceMode !== undefined && { surfaceMode: opts.surfaceMode }),
|
|
161
161
|
}));
|
|
162
162
|
}
|
|
163
163
|
// ─── Authorship guard ──────────────────────────────────────────────
|
|
164
|
+
/**
|
|
165
|
+
* Refuse a `viaToolName` option that no longer exists (9.0.0 grace error).
|
|
166
|
+
*
|
|
167
|
+
* Deprecated in 8.7.0, removed here — see the same guard in `defineSkill` for
|
|
168
|
+
* the whole story. It is refused rather than ignored because a directory
|
|
169
|
+
* loaded with this option used to produce skills that an agent then REFUSED at
|
|
170
|
+
* mount, and silently accepting them now would be a downgrade: the caller
|
|
171
|
+
* would believe a per-directory activation tool exists. It never did.
|
|
172
|
+
*
|
|
173
|
+
* Deleted in 10.0.0.
|
|
174
|
+
*/
|
|
175
|
+
function assertNoViaToolNameOption(opts) {
|
|
176
|
+
const legacy = opts.viaToolName;
|
|
177
|
+
if (legacy === undefined)
|
|
178
|
+
return;
|
|
179
|
+
throw new Error(`skillsFromDir: \`viaToolName\` was removed in 9.0.0 (deprecated since 8.7.0), and this ` +
|
|
180
|
+
`call passes '${String(legacy)}'. Nothing ever read it — 'read_skill' is the only ` +
|
|
181
|
+
`activation tool this library builds, and every skill loaded here already shares it. ` +
|
|
182
|
+
`Drop the option; the model picks WHICH skill by id.`);
|
|
183
|
+
}
|
|
164
184
|
/**
|
|
165
185
|
* Refuse anything that is not a local path, BY NAME. The message quotes what
|
|
166
186
|
* was passed, because the whole point is that the reader can see the thing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skillsFromDir.js","sourceRoot":"","sources":["../../../../src/lib/injection-engine/skillsFromDir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AAGH,OAAO,EAAE,WAAW,EAAoB,MAAM,4BAA4B,CAAC;AAE3E,2DAA2D;AAC3D,MAAM,UAAU,GAAG,UAAU,CAAC;AAE9B;;;;GAIG;AACH,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,4EAA4E;AAC5E,MAAM,WAAW,GAAG,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"skillsFromDir.js","sourceRoot":"","sources":["../../../../src/lib/injection-engine/skillsFromDir.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AAGH,OAAO,EAAE,WAAW,EAAoB,MAAM,4BAA4B,CAAC;AAE3E,2DAA2D;AAC3D,MAAM,UAAU,GAAG,UAAU,CAAC;AAE9B;;;;GAIG;AACH,MAAM,aAAa,GAAG,uBAAuB,CAAC;AAE9C,4EAA4E;AAC5E,MAAM,WAAW,GAAG,+BAA+B,CAAC;AAuBpD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,GAAW,EACX,OAA6B,EAAE;IAE/B,4BAA4B,CAAC,GAAG,CAAC,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ACtB,MAAM,IAAI,KAAK,CACb,mBAAmB,IAAI,+DAA+D;YACpF,6BAA6B,CAChC,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CACb,mBAAmB,IAAI,uBAAuB,IAAI,eAAe;YAC/D,wEAAwE,CAC3E,CAAC;IACJ,CAAC;IACD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,MAAM,IAAI,KAAK,CACb,mBAAmB,IAAI,+DAA+D;YACpF,2DAA2D,CAC9D,CAAC;IACJ,CAAC;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,KAAK,CACb,mBAAmB,IAAI,8DAA8D;YACnF,0CAA0C,CAC7C,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED,kFAAkF;AAClF,SAAS,OAAO,CAAC,KAAa;IAC5B,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACrC,IAAI,CAAC,KAAK,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,CAAC,IAAI,CAAC,KAAK,KAAK,GAAG,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACvE,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5B,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -264,7 +264,7 @@ export interface ActiveInjection {
|
|
|
264
264
|
* readmit them for as long as the skill is active — which is exactly what
|
|
265
265
|
* `buildToolsSlot` does with `inject.tools` on every active injection.
|
|
266
266
|
* Compose your own ToolProvider instead with `skillScopedTools` from
|
|
267
|
-
* `agentfootprint/
|
|
267
|
+
* `agentfootprint/providers`.
|
|
268
268
|
*/
|
|
269
269
|
readonly autoActivate?: 'currentSkill';
|
|
270
270
|
/**
|
|
@@ -61,8 +61,8 @@ export interface GatewayTransportOptions {
|
|
|
61
61
|
* Describe an MCP connection whose auth headers are vended per request.
|
|
62
62
|
*
|
|
63
63
|
* @example A managed gateway with a token vault behind it
|
|
64
|
-
* import { agentCoreIdentity } from 'agentfootprint/
|
|
65
|
-
* import { gatewayTransport, mcpClient } from 'agentfootprint/
|
|
64
|
+
* import { agentCoreIdentity } from 'agentfootprint/security';
|
|
65
|
+
* import { gatewayTransport, mcpClient } from 'agentfootprint/providers';
|
|
66
66
|
*
|
|
67
67
|
* const gateway = await mcpClient({
|
|
68
68
|
* name: 'gateway',
|
|
@@ -39,8 +39,8 @@ const DEFAULT_SERVICE = 'gateway';
|
|
|
39
39
|
* Describe an MCP connection whose auth headers are vended per request.
|
|
40
40
|
*
|
|
41
41
|
* @example A managed gateway with a token vault behind it
|
|
42
|
-
* import { agentCoreIdentity } from 'agentfootprint/
|
|
43
|
-
* import { gatewayTransport, mcpClient } from 'agentfootprint/
|
|
42
|
+
* import { agentCoreIdentity } from 'agentfootprint/security';
|
|
43
|
+
* import { gatewayTransport, mcpClient } from 'agentfootprint/providers';
|
|
44
44
|
*
|
|
45
45
|
* const gateway = await mcpClient({
|
|
46
46
|
* name: 'gateway',
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* (per-turn artifact freezing, byte-exact history threading, same-factory
|
|
5
5
|
* runner derivation) while COMPOSING with the 7.5 surface, not duplicating it.
|
|
6
6
|
*
|
|
7
|
-
* Exported from `agentfootprint/
|
|
7
|
+
* Exported from `agentfootprint/observe` (every symbol it composes with lives
|
|
8
8
|
* there). Named exports — `export *` is not the house style.
|
|
9
9
|
*/
|
|
10
10
|
export { recordedChat } from './recordedChat.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* (per-turn artifact freezing, byte-exact history threading, same-factory
|
|
5
5
|
* runner derivation) while COMPOSING with the 7.5 surface, not duplicating it.
|
|
6
6
|
*
|
|
7
|
-
* Exported from `agentfootprint/
|
|
7
|
+
* Exported from `agentfootprint/observe` (every symbol it composes with lives
|
|
8
8
|
* there). Named exports — `export *` is not the house style.
|
|
9
9
|
*/
|
|
10
10
|
export { recordedChat } from './recordedChat.js';
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* The Block B canonical name. Mirrors the parallel structure shipped in
|
|
5
|
-
* v2.5:
|
|
6
|
-
*
|
|
7
|
-
* agentfootprint/llm-providers ← LLM provider adapters (this file)
|
|
8
|
-
* agentfootprint/tool-providers ← tool dispatch + tool sources
|
|
9
|
-
* agentfootprint/memory-providers ← memory store adapters
|
|
10
|
-
* agentfootprint/security ← cross-cutting authorization
|
|
11
|
-
*
|
|
12
|
-
* The legacy `agentfootprint/providers` subpath stays available as an
|
|
13
|
-
* alias through the v2.x line — it points at the same exports. New
|
|
14
|
-
* code SHOULD import from `agentfootprint/llm-providers` for clarity:
|
|
15
|
-
* grep'ing for "llm-providers" finds every LLM-side import in one
|
|
16
|
-
* shot, parallel to "tool-providers" and "memory-providers".
|
|
2
|
+
* llm-providers — LLM provider adapters.
|
|
17
3
|
*
|
|
18
4
|
* Pattern: Adapter (GoF) — concrete `LLMProvider` implementations that
|
|
19
5
|
* translate the agentfootprint port to a specific vendor SDK.
|
|
@@ -21,10 +7,10 @@
|
|
|
21
7
|
* knows nothing about vendor specifics.
|
|
22
8
|
*
|
|
23
9
|
* @example
|
|
24
|
-
* import { mock, AnthropicProvider } from 'agentfootprint/
|
|
10
|
+
* import { mock, AnthropicProvider } from 'agentfootprint/providers';
|
|
25
11
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
12
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
13
|
+
* behind `agentfootprint/providers`, which re-exports every name here — same
|
|
14
|
+
* symbols, one door. Import from the door.
|
|
29
15
|
*/
|
|
30
16
|
export * from './providers.js';
|
|
@@ -1,19 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* The Block B canonical name. Mirrors the parallel structure shipped in
|
|
5
|
-
* v2.5:
|
|
6
|
-
*
|
|
7
|
-
* agentfootprint/llm-providers ← LLM provider adapters (this file)
|
|
8
|
-
* agentfootprint/tool-providers ← tool dispatch + tool sources
|
|
9
|
-
* agentfootprint/memory-providers ← memory store adapters
|
|
10
|
-
* agentfootprint/security ← cross-cutting authorization
|
|
11
|
-
*
|
|
12
|
-
* The legacy `agentfootprint/providers` subpath stays available as an
|
|
13
|
-
* alias through the v2.x line — it points at the same exports. New
|
|
14
|
-
* code SHOULD import from `agentfootprint/llm-providers` for clarity:
|
|
15
|
-
* grep'ing for "llm-providers" finds every LLM-side import in one
|
|
16
|
-
* shot, parallel to "tool-providers" and "memory-providers".
|
|
2
|
+
* llm-providers — LLM provider adapters.
|
|
17
3
|
*
|
|
18
4
|
* Pattern: Adapter (GoF) — concrete `LLMProvider` implementations that
|
|
19
5
|
* translate the agentfootprint port to a specific vendor SDK.
|
|
@@ -21,11 +7,11 @@
|
|
|
21
7
|
* knows nothing about vendor specifics.
|
|
22
8
|
*
|
|
23
9
|
* @example
|
|
24
|
-
* import { mock, AnthropicProvider } from 'agentfootprint/
|
|
10
|
+
* import { mock, AnthropicProvider } from 'agentfootprint/providers';
|
|
25
11
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
12
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
13
|
+
* behind `agentfootprint/providers`, which re-exports every name here — same
|
|
14
|
+
* symbols, one door. Import from the door.
|
|
29
15
|
*/
|
|
30
16
|
export * from './providers.js';
|
|
31
17
|
//# sourceMappingURL=llm-providers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"llm-providers.js","sourceRoot":"","sources":["../../src/llm-providers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"llm-providers.js","sourceRoot":"","sources":["../../src/llm-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* locales — Message Catalog Pattern.
|
|
3
3
|
*
|
|
4
4
|
* The Block D piece. agentfootprint emits user-facing prose at two
|
|
5
5
|
* audience levels:
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* The natural consumer pattern is to ship locale packs alongside the
|
|
33
33
|
* agent code:
|
|
34
34
|
*
|
|
35
|
-
* import { defaultCommentaryMessages, composeMessages } from 'agentfootprint/
|
|
35
|
+
* import { defaultCommentaryMessages, composeMessages } from 'agentfootprint/observe';
|
|
36
36
|
* import { esCommentaryMessages } from './locales/es.js';
|
|
37
37
|
*
|
|
38
38
|
* const merged = composeMessages(defaultCommentaryMessages, esCommentaryMessages);
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
* const agent = Agent.create({...}).thinkingTemplates(esThinking).build();
|
|
54
54
|
*
|
|
55
55
|
* @example Validate a locale pack against the framework's required keys
|
|
56
|
-
* import { defaultCommentaryMessages, composeMessages, validateMessages } from 'agentfootprint/
|
|
56
|
+
* import { defaultCommentaryMessages, composeMessages, validateMessages } from 'agentfootprint/observe';
|
|
57
57
|
*
|
|
58
58
|
* const myCatalog = composeMessages(defaultCommentaryMessages, customOverrides);
|
|
59
59
|
* validateMessages(myCatalog, Object.keys(defaultCommentaryMessages));
|
|
60
60
|
* // throws on first missing OR empty key — fail-fast at boot
|
|
61
61
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
62
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
63
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
64
|
+
* symbols, one door. Import from the door.
|
|
65
65
|
*/
|
|
66
66
|
import { defaultStatusTemplates } from '../recorders/observability/status/statusTemplates.js';
|
|
67
67
|
export type { CommentaryTemplates as MessageCatalog } from '../recorders/observability/commentary/commentaryTemplates.js';
|
|
@@ -83,7 +83,7 @@ export declare const defaultCommentaryMessages: Readonly<Record<string, string>>
|
|
|
83
83
|
export declare const defaultThinkingMessages: Readonly<Record<string, string>>;
|
|
84
84
|
/**
|
|
85
85
|
* Canonical English status bundle — the chat-bubble prose. `/locales` is the
|
|
86
|
-
* single i18n home for ALL prose catalogs; `agentfootprint/
|
|
86
|
+
* single i18n home for ALL prose catalogs; `agentfootprint/observe` keeps the
|
|
87
87
|
* status LOGIC (`selectStatus` / `renderStatusLine`) and renders with these
|
|
88
88
|
* words. Same object as `defaultThinkingMessages`.
|
|
89
89
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* locales — Message Catalog Pattern.
|
|
3
3
|
*
|
|
4
4
|
* The Block D piece. agentfootprint emits user-facing prose at two
|
|
5
5
|
* audience levels:
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* The natural consumer pattern is to ship locale packs alongside the
|
|
33
33
|
* agent code:
|
|
34
34
|
*
|
|
35
|
-
* import { defaultCommentaryMessages, composeMessages } from 'agentfootprint/
|
|
35
|
+
* import { defaultCommentaryMessages, composeMessages } from 'agentfootprint/observe';
|
|
36
36
|
* import { esCommentaryMessages } from './locales/es.js';
|
|
37
37
|
*
|
|
38
38
|
* const merged = composeMessages(defaultCommentaryMessages, esCommentaryMessages);
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
* const agent = Agent.create({...}).thinkingTemplates(esThinking).build();
|
|
54
54
|
*
|
|
55
55
|
* @example Validate a locale pack against the framework's required keys
|
|
56
|
-
* import { defaultCommentaryMessages, composeMessages, validateMessages } from 'agentfootprint/
|
|
56
|
+
* import { defaultCommentaryMessages, composeMessages, validateMessages } from 'agentfootprint/observe';
|
|
57
57
|
*
|
|
58
58
|
* const myCatalog = composeMessages(defaultCommentaryMessages, customOverrides);
|
|
59
59
|
* validateMessages(myCatalog, Object.keys(defaultCommentaryMessages));
|
|
60
60
|
* // throws on first missing OR empty key — fail-fast at boot
|
|
61
61
|
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
62
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
63
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
64
|
+
* symbols, one door. Import from the door.
|
|
65
65
|
*/
|
|
66
66
|
import { defaultCommentaryTemplates } from '../recorders/observability/commentary/commentaryTemplates.js';
|
|
67
67
|
import { defaultStatusTemplates } from '../recorders/observability/status/statusTemplates.js';
|
|
@@ -83,7 +83,7 @@ export const defaultCommentaryMessages = defaultCommentaryTemplates;
|
|
|
83
83
|
export const defaultThinkingMessages = defaultStatusTemplates;
|
|
84
84
|
/**
|
|
85
85
|
* Canonical English status bundle — the chat-bubble prose. `/locales` is the
|
|
86
|
-
* single i18n home for ALL prose catalogs; `agentfootprint/
|
|
86
|
+
* single i18n home for ALL prose catalogs; `agentfootprint/observe` keeps the
|
|
87
87
|
* status LOGIC (`selectStatus` / `renderStatusLine`) and renders with these
|
|
88
88
|
* words. Same object as `defaultThinkingMessages`.
|
|
89
89
|
*/
|
|
@@ -61,6 +61,6 @@ export interface CausalEvidenceRecorderHandle {
|
|
|
61
61
|
onDecision(event: FlowDecisionEvent): void;
|
|
62
62
|
onSelected(event: FlowSelectedEvent): void;
|
|
63
63
|
}
|
|
64
|
-
/** Build the evidence-harvesting recorder. Attach via `.
|
|
64
|
+
/** Build the evidence-harvesting recorder. Attach via `.watch(rec)` (the
|
|
65
65
|
* Agent does this automatically for CAUSAL memories). */
|
|
66
66
|
export declare function causalEvidenceRecorder(options?: CausalEvidenceRecorderOptions): CausalEvidenceRecorderHandle;
|
|
@@ -56,7 +56,7 @@ function bounded(value, max) {
|
|
|
56
56
|
return { __truncated: String(value).slice(0, max) };
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
/** Build the evidence-harvesting recorder. Attach via `.
|
|
59
|
+
/** Build the evidence-harvesting recorder. Attach via `.watch(rec)` (the
|
|
60
60
|
* Agent does this automatically for CAUSAL memories). */
|
|
61
61
|
export function causalEvidenceRecorder(options = {}) {
|
|
62
62
|
const maxPreview = options.maxPreviewChars ?? 200;
|
|
@@ -117,8 +117,9 @@ export type SnapshotProjection = (typeof SNAPSHOT_PROJECTIONS)[keyof typeof SNAP
|
|
|
117
117
|
* core/agent/window/strategy.ts, public since 7.17.0). Two exported types of
|
|
118
118
|
* the same name and incompatible shapes, reachable from two entry points, is
|
|
119
119
|
* a trap for anyone importing from the wrong one — so the memory config
|
|
120
|
-
* record took the prefix. `agentfootprint/memory`
|
|
121
|
-
* as a deprecated alias, so
|
|
120
|
+
* record took the prefix. Through 8.x `agentfootprint/memory` also exported
|
|
121
|
+
* the old bare name as a deprecated alias; 9.0.0 removed it, so the collision
|
|
122
|
+
* is gone in both directions.
|
|
122
123
|
*/
|
|
123
124
|
export interface MemoryWindowStrategy {
|
|
124
125
|
readonly kind: typeof MEMORY_STRATEGIES.WINDOW;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define.types.js","sourceRoot":"","sources":["../../../src/memory/define.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAQH,uEAAuE;AAEvE;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACR,CAAC;AAGX;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,iBAAiB,GA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 -17,14 +17,4 @@ export * from './store/index.js';
|
|
|
17
17
|
export * from './wire/index.js';
|
|
18
18
|
export * from './retrieval/index.js';
|
|
19
19
|
export { MEMORY_TYPES, MEMORY_STRATEGIES, MEMORY_TIMING, SNAPSHOT_PROJECTIONS, MEMORY_INJECTION_KEY_PREFIX, RETRIEVAL_EVIDENCE_KEY_PREFIX, isMemoryType, isMemoryStrategyKind, isMemoryTiming, isSnapshotProjection, memoryInjectionKey, isMemoryInjectionKey, retrievalEvidenceKey, isRetrievalEvidenceKey, type MemoryType, type MemoryStrategyKind, type MemoryTiming, type SnapshotProjection, type Strategy, type MemoryWindowStrategy, type BudgetStrategy, type SummarizeStrategy, type TopKStrategy, type TopKShorthandStrategy, type TopKRetrievalStrategy, type MemoryFlavor, type ExtractStrategy, type DecayStrategy, type HybridStrategy, type MemoryDefinition, type DefineMemoryOptions, type DefineEpisodicOptions, type DefineSemanticOptions, type DefineNarrativeOptions, type DefineCausalOptions, type MemoryRedactionPolicy, } from './define.types.js';
|
|
20
|
-
/**
|
|
21
|
-
* @deprecated Since 7.27.1 — use `MemoryWindowStrategy`.
|
|
22
|
-
*
|
|
23
|
-
* `WindowStrategy` is the name of the CONVERSATION-window seam exported from
|
|
24
|
-
* the package root (`{ name, plan(input) }`). This one is the memory
|
|
25
|
-
* subsystem's window CONFIG (`{ kind: 'window', size }`). Same name, two
|
|
26
|
-
* entry points, incompatible shapes — so the memory one was renamed and this
|
|
27
|
-
* alias kept so that nothing importing it breaks.
|
|
28
|
-
*/
|
|
29
|
-
export type { MemoryWindowStrategy as WindowStrategy } from './define.types.js';
|
|
30
20
|
export { defineMemory } from './define.js';
|
package/dist/esm/memory/index.js
CHANGED
|
@@ -18,5 +18,11 @@ export * from './wire/index.js';
|
|
|
18
18
|
export * from './retrieval/index.js';
|
|
19
19
|
// Consumer-facing factory + const-objects for memory configuration.
|
|
20
20
|
export { MEMORY_TYPES, MEMORY_STRATEGIES, MEMORY_TIMING, SNAPSHOT_PROJECTIONS, MEMORY_INJECTION_KEY_PREFIX, RETRIEVAL_EVIDENCE_KEY_PREFIX, isMemoryType, isMemoryStrategyKind, isMemoryTiming, isSnapshotProjection, memoryInjectionKey, isMemoryInjectionKey, retrievalEvidenceKey, isRetrievalEvidenceKey, } from './define.types.js';
|
|
21
|
+
// `WindowStrategy` was this module's 7.27.0 name for `MemoryWindowStrategy`.
|
|
22
|
+
// It collided with the CONVERSATION-window seam of the same name on the
|
|
23
|
+
// package root (`{ name, plan(input) }`) — same name, two entry points,
|
|
24
|
+
// incompatible shapes — so the memory one was renamed in 7.27.1 and the old
|
|
25
|
+
// spelling kept as a deprecated alias. 9.0.0 removed the alias:
|
|
26
|
+
// `MemoryWindowStrategy` is the only name for `{ kind: 'window', size }`.
|
|
21
27
|
export { defineMemory } from './define.js';
|
|
22
28
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/memory/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AAErC,oEAAoE;AACpE,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,GAuBvB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/memory/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AAErC,oEAAoE;AACpE,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,2BAA2B,EAC3B,6BAA6B,EAC7B,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,GAuBvB,MAAM,mBAAmB,CAAC;AAC3B,6EAA6E;AAC7E,wEAAwE;AACxE,wEAAwE;AACxE,4EAA4E;AAC5E,gEAAgE;AAChE,0EAA0E;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* memory-providers — memory store adapters.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* agentfootprint/llm-providers ← LLM provider adapters
|
|
8
|
-
* agentfootprint/tool-providers ← tool dispatch + tool sources
|
|
9
|
-
* agentfootprint/memory-providers ← memory store adapters (this file)
|
|
10
|
-
* agentfootprint/security ← cross-cutting authorization
|
|
11
|
-
*
|
|
12
|
-
* One subpath that grows — RedisStore, AgentCoreStore, and future
|
|
13
|
-
* stores (DynamoDB, Postgres, Pinecone, …) all live here. No more
|
|
14
|
-
* adding `agentfootprint/memory-<vendor>` per-adapter subpath each
|
|
15
|
-
* time a new store ships.
|
|
16
|
-
*
|
|
17
|
-
* Per-adapter aliases (`agentfootprint/memory-redis`,
|
|
18
|
-
* `agentfootprint/memory-agentcore`) stay available through the v2.x
|
|
19
|
-
* line — they point at the same files. New code SHOULD import from
|
|
20
|
-
* `agentfootprint/memory-providers`:
|
|
21
|
-
*
|
|
22
|
-
* import { RedisStore, AgentCoreStore } from 'agentfootprint/memory-providers';
|
|
4
|
+
* RedisStore, AgentCoreStore, and future stores (DynamoDB, Postgres,
|
|
5
|
+
* Pinecone, …) all live here — a new store adds an export, never a new
|
|
6
|
+
* import path.
|
|
23
7
|
*
|
|
24
8
|
* Pattern: Adapter (GoF) — each store translates the `MemoryStore`
|
|
25
9
|
* interface onto a specific backend (Redis, DynamoDB-style
|
|
@@ -30,11 +14,11 @@
|
|
|
30
14
|
* actually instantiate pull their SDK in.
|
|
31
15
|
*
|
|
32
16
|
* @example
|
|
33
|
-
* import { RedisStore, AgentCoreStore } from 'agentfootprint/memory
|
|
17
|
+
* import { RedisStore, AgentCoreStore } from 'agentfootprint/memory';
|
|
34
18
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
19
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
20
|
+
* behind `agentfootprint/memory`, which re-exports every name here — same
|
|
21
|
+
* symbols, one door. Import from the door.
|
|
38
22
|
*/
|
|
39
23
|
export { RedisStore, type RedisStoreOptions, type RedisLikeClient, type RedisLikePipeline, } from './adapters/memory/redis.js';
|
|
40
24
|
export { AgentCoreStore, UnreadableMemoryEntryError, type AgentCoreStoreOptions, type AgentCoreLikeClient, type AgentCoreEvent, type AgentCoreMemoryRecord, } from './adapters/memory/agentcore.js';
|
|
@@ -1,25 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* memory-providers — memory store adapters.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* agentfootprint/llm-providers ← LLM provider adapters
|
|
8
|
-
* agentfootprint/tool-providers ← tool dispatch + tool sources
|
|
9
|
-
* agentfootprint/memory-providers ← memory store adapters (this file)
|
|
10
|
-
* agentfootprint/security ← cross-cutting authorization
|
|
11
|
-
*
|
|
12
|
-
* One subpath that grows — RedisStore, AgentCoreStore, and future
|
|
13
|
-
* stores (DynamoDB, Postgres, Pinecone, …) all live here. No more
|
|
14
|
-
* adding `agentfootprint/memory-<vendor>` per-adapter subpath each
|
|
15
|
-
* time a new store ships.
|
|
16
|
-
*
|
|
17
|
-
* Per-adapter aliases (`agentfootprint/memory-redis`,
|
|
18
|
-
* `agentfootprint/memory-agentcore`) stay available through the v2.x
|
|
19
|
-
* line — they point at the same files. New code SHOULD import from
|
|
20
|
-
* `agentfootprint/memory-providers`:
|
|
21
|
-
*
|
|
22
|
-
* import { RedisStore, AgentCoreStore } from 'agentfootprint/memory-providers';
|
|
4
|
+
* RedisStore, AgentCoreStore, and future stores (DynamoDB, Postgres,
|
|
5
|
+
* Pinecone, …) all live here — a new store adds an export, never a new
|
|
6
|
+
* import path.
|
|
23
7
|
*
|
|
24
8
|
* Pattern: Adapter (GoF) — each store translates the `MemoryStore`
|
|
25
9
|
* interface onto a specific backend (Redis, DynamoDB-style
|
|
@@ -30,11 +14,11 @@
|
|
|
30
14
|
* actually instantiate pull their SDK in.
|
|
31
15
|
*
|
|
32
16
|
* @example
|
|
33
|
-
* import { RedisStore, AgentCoreStore } from 'agentfootprint/memory
|
|
17
|
+
* import { RedisStore, AgentCoreStore } from 'agentfootprint/memory';
|
|
34
18
|
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
19
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
20
|
+
* behind `agentfootprint/memory`, which re-exports every name here — same
|
|
21
|
+
* symbols, one door. Import from the door.
|
|
38
22
|
*/
|
|
39
23
|
// Lazy-required peer-dep stores. Both adapters defer their vendor SDK
|
|
40
24
|
// `require()` to constructor time; importing this barrel doesn't load
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-providers.js","sourceRoot":"","sources":["../../src/memory-providers.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"memory-providers.js","sourceRoot":"","sources":["../../src/memory-providers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,sEAAsE;AACtE,sEAAsE;AACtE,wDAAwD;AACxD,OAAO,EACL,UAAU,GAIX,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,cAAc,EACd,0BAA0B,GAK3B,MAAM,gCAAgC,CAAC;AAExC,gFAAgF;AAChF,gFAAgF;AAChF,8EAA8E;AAC9E,mDAAmD;AACnD,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,qBAAqB,GAMtB,MAAM,mCAAmC,CAAC;AAE3C,6EAA6E;AAC7E,8EAA8E;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,8EAA8E;AAC9E,yEAAyE;AACzE,OAAO,EACL,kBAAkB,GAInB,MAAM,yCAAyC,CAAC"}
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
* `src/lib/context-bisect` + `src/lib/influence-core`; the academic method + citation
|
|
7
7
|
* live in `meta`, never in the import name.
|
|
8
8
|
*
|
|
9
|
-
* import { rankSuspects } from 'agentfootprint/
|
|
9
|
+
* import { rankSuspects } from 'agentfootprint/observe';
|
|
10
10
|
* const r = await rankSuspects.find(input); // r.lead, r.evidence ('guessed'|'proven')
|
|
11
11
|
*
|
|
12
12
|
* Tree-shakeable: one finder = one file = one named export. Importing one finder does
|
|
13
13
|
* not pull the others (or the heavy ablation path behind removeAndRetry). This barrel
|
|
14
14
|
* is re-export-only — no runtime code, no registry.
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
17
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
18
|
+
* symbols, one door. Import from the door.
|
|
19
19
|
*/
|
|
20
20
|
export type { ContextPiece, Evidence, Finder, FinderMeta, FindInput, FindResult, Granularity, ScoredSuspect, StepInput, } from './types.js';
|
|
21
21
|
export { rankSuspects } from './rankSuspects.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* observability-providers — vendor observability strategies.
|
|
3
3
|
*
|
|
4
4
|
* Grouped subpath following the parallel-providers pattern v2.5
|
|
5
5
|
* established for `llm-providers` / `tool-providers` /
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
-
* import { agentcoreObservability } from 'agentfootprint/
|
|
16
|
+
* import { agentcoreObservability } from 'agentfootprint/observe';
|
|
17
17
|
* import { microtaskBatchDriver } from 'footprintjs/detach';
|
|
18
18
|
*
|
|
19
19
|
* agent.enable.observability({
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
* dedicated `dd-trace`-based adapter only if real-world feedback
|
|
39
39
|
* demands the native Datadog APM client.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
42
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
43
|
+
* symbols, one door. Import from the door.
|
|
44
44
|
*/
|
|
45
45
|
export { agentcoreObservability, type AgentcoreObservabilityOptions, } from './adapters/observability/agentcore.js';
|
|
46
46
|
export { cloudwatchObservability, type CloudwatchObservabilityOptions, } from './adapters/observability/cloudwatch.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* observability-providers — vendor observability strategies.
|
|
3
3
|
*
|
|
4
4
|
* Grouped subpath following the parallel-providers pattern v2.5
|
|
5
5
|
* established for `llm-providers` / `tool-providers` /
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
|
-
* import { agentcoreObservability } from 'agentfootprint/
|
|
16
|
+
* import { agentcoreObservability } from 'agentfootprint/observe';
|
|
17
17
|
* import { microtaskBatchDriver } from 'footprintjs/detach';
|
|
18
18
|
*
|
|
19
19
|
* agent.enable.observability({
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
* dedicated `dd-trace`-based adapter only if real-world feedback
|
|
39
39
|
* demands the native Datadog APM client.
|
|
40
40
|
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* Not an import path of its own since 9.0.0. This is the implementation barrel
|
|
42
|
+
* behind `agentfootprint/observe`, which re-exports every name here — same
|
|
43
|
+
* symbols, one door. Import from the door.
|
|
44
44
|
*/
|
|
45
45
|
export { agentcoreObservability, } from './adapters/observability/agentcore.js';
|
|
46
46
|
export { cloudwatchObservability, } from './adapters/observability/cloudwatch.js';
|
package/dist/esm/observe.js
CHANGED
|
@@ -83,12 +83,12 @@ export { toolLineageRecorder, } from './recorders/observability/ToolLineageRecor
|
|
|
83
83
|
export { agentThinkingTrace, } from './recorders/observability/AgentThinkingTraceRecorder.js';
|
|
84
84
|
// Emit primitive — used by every Tier-3 source-domain.
|
|
85
85
|
export { typedEmit } from './recorders/core/typedEmit.js';
|
|
86
|
-
// ──
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
//
|
|
86
|
+
// ── Diagnosis tools ────────────────────────────────────────────
|
|
87
|
+
// influence-core, trace-toolpack, context-bisect and tool-lint live in
|
|
88
|
+
// `src/debug.ts`. 8.0.0 folded their import path INTO this one, and 9.0.0
|
|
89
|
+
// removed the separate `agentfootprint/debug` subpath, so this re-export is
|
|
90
|
+
// how they reach the door. Watching a healthy run and performing the autopsy
|
|
91
|
+
// on a broken one come through the same door on purpose.
|
|
92
92
|
export * from './debug.js';
|
|
93
93
|
// Tool-choice margin recorder (RFC-002 tier 2, C4–C6) — per LLM call,
|
|
94
94
|
// ranks the OFFERED catalog against the choice context (user message +
|
package/dist/esm/observe.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observe.js","sourceRoot":"","sources":["../../src/observe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,4BAA4B;AAC5B,OAAO,EAAE,eAAe,EAA+B,MAAM,qCAAqC,CAAC;AACnG,OAAO,EAAE,cAAc,EAA8B,MAAM,oCAAoC,CAAC;AAEhG,+BAA+B;AAC/B,OAAO,EACL,mBAAmB,GAEpB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,aAAa,EAA6B,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GAkBjB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EACL,aAAa,EACb,eAAe,EACf,eAAe,GAQhB,MAAM,8CAA8C,CAAC;AACtD,OAAO,EACL,eAAe,EACf,cAAc,EACd,wBAAwB,GAQzB,MAAM,gDAAgD,CAAC;AAExD,yEAAyE;AACzE,6EAA6E;AAC7E,6EAA6E;AAC7E,8EAA8E;AAC9E,OAAO,EACL,SAAS,GAIV,MAAM,wCAAwC,CAAC;AAEhD,gFAAgF;AAChF,6EAA6E;AAC7E,4EAA4E;AAC5E,iCAAiC;AACjC,OAAO,EACL,mBAAmB,EACnB,eAAe,GAEhB,MAAM,+CAA+C,CAAC;AAEvD,8EAA8E;AAC9E,gFAAgF;AAChF,iEAAiE;AACjE,OAAO,EACL,cAAc,EACd,aAAa,EACb,gBAAgB,GAKjB,MAAM,oCAAoC,CAAC;AAE5C,mEAAmE;AACnE,4EAA4E;AAC5E,mDAAmD;AACnD,OAAO,EACL,wBAAwB,GAGzB,MAAM,iDAAiD,CAAC;AAEzD,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,oBAAoB,GAKr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