agentfootprint 2.7.0 → 2.7.1
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/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`
|
|
@@ -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