agentfootprint 2.7.0 → 2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +1 -0
- package/ai-instructions/claude-code/SKILL.md +4 -2
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -426,7 +426,7 @@ agent.on('agentfootprint.agent.turn_end', (e) =>
|
|
|
426
426
|
console.log(`[${e.payload.iterationCount} iter, ${e.payload.totalInputTokens}+${e.payload.totalOutputTokens} tokens]`));
|
|
427
427
|
```
|
|
428
428
|
|
|
429
|
-
|
|
429
|
+
Wildcards: `.on('*', ...)` for every event, or `.on('agentfootprint.<domain>.*', ...)` per-domain (`agent`, `stream`, `context`, `tools`, `memory`, `cost`, `error`, …). `'agentfootprint.*'` is NOT a valid pattern — the dispatcher accepts `'*'` or `'agentfootprint.<DOMAIN>.*'` only. All events typed via `AgentfootprintEventMap`.
|
|
430
430
|
|
|
431
431
|
Recorders (auto-attached when relevant builder method is called):
|
|
432
432
|
- `ContextRecorder` — `context.evaluated` / `context.injected` / `context.slot_composed`
|
package/CLAUDE.md
CHANGED
|
@@ -426,7 +426,7 @@ agent.on('agentfootprint.agent.turn_end', (e) =>
|
|
|
426
426
|
console.log(`[${e.payload.iterationCount} iter, ${e.payload.totalInputTokens}+${e.payload.totalOutputTokens} tokens]`));
|
|
427
427
|
```
|
|
428
428
|
|
|
429
|
-
|
|
429
|
+
Wildcards: `.on('*', ...)` for every event, or `.on('agentfootprint.<domain>.*', ...)` per-domain (`agent`, `stream`, `context`, `tools`, `memory`, `cost`, `error`, …). `'agentfootprint.*'` is NOT a valid pattern — the dispatcher accepts `'*'` or `'agentfootprint.<DOMAIN>.*'` only. All events typed via `AgentfootprintEventMap`.
|
|
430
430
|
|
|
431
431
|
Recorders (auto-attached when relevant builder method is called):
|
|
432
432
|
- `ContextRecorder` — `context.evaluated` / `context.injected` / `context.slot_composed`
|
package/README.md
CHANGED
|
@@ -505,6 +505,7 @@ Every code snippet on the docs site is imported from a real, runnable file in [`
|
|
|
505
505
|
- **MCP** — `mcpClient({ transport })` for real servers · `mockMcpClient({ tools })` for in-memory development
|
|
506
506
|
- **Memory store adapters** — `InMemoryStore` · `RedisStore` (subpath `agentfootprint/memory-redis`) · `AgentCoreStore` (subpath `agentfootprint/memory-agentcore`)
|
|
507
507
|
- **48+ typed observability events** across context · stream · agent · cost · skill · permission · eval · memory · cache · embedding · error · …
|
|
508
|
+
- **Chat-bubble status surface** — `agent.enable.thinking({ onStatus })` for one-callback Claude-Code-style updates · `agentfootprint/status` subpath (`selectThinkingState` · `renderThinkingLine` · `defaultThinkingTemplates`) for custom UIs with per-tool template overrides + locale switching — see [`examples/features/06-status-subpath.md`](./examples/features/06-status-subpath.md)
|
|
508
509
|
- **Pause / resume** — JSON-serializable checkpoints; pause via `askHuman` / `pauseHere`, resume hours later on a different server
|
|
509
510
|
- **Resilience** — `withRetry`, `withFallback`, `resilientProvider`
|
|
510
511
|
- **AI-coding-tool support** — bundled instructions for Claude Code · Cursor · Windsurf · Cline · Kiro · Copilot (see `ai-instructions/`)
|
|
@@ -367,8 +367,10 @@ agent.on('agentfootprint.stream.tool_start', (e) =>
|
|
|
367
367
|
agent.on('agentfootprint.agent.turn_end', (e) =>
|
|
368
368
|
console.log(`[${e.payload.iterationCount} iter, tokens=${e.payload.totalInputTokens}+${e.payload.totalOutputTokens}]`));
|
|
369
369
|
|
|
370
|
-
// Wildcards
|
|
371
|
-
|
|
370
|
+
// Wildcards: '*' for every event, or 'agentfootprint.<domain>.*' per-domain.
|
|
371
|
+
// 'agentfootprint.*' is NOT a valid pattern — silently matches nothing.
|
|
372
|
+
agent.on('*', (e) => log(e));
|
|
373
|
+
agent.on('agentfootprint.stream.*', (e) => log(e));
|
|
372
374
|
```
|
|
373
375
|
|
|
374
376
|
## Anti-patterns — Don't
|
package/package.json
CHANGED