@eventmodelers/cli 2.0.5 → 2.0.6
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eventmodelers/cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "Eventmodelers CLI — real-time Claude agent + skills for Claude Code, for any stack (Node, Supabase, Axon, OpenCQRS, UmaDB, Kurrent, or modeling-only)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
// runner that sees its agent's individual tool calls records them through here, so every runner logs the same shape.
|
|
3
3
|
|
|
4
4
|
import { appendEvent } from './slice-events.js';
|
|
5
|
-
import { redactString } from './redact.js';
|
|
6
5
|
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
export function recordToolCall({ kitDir, slice, tool,
|
|
6
|
+
// Only the tool's name is recorded — never its input. A Bash command, a skill's arguments or a path can hold
|
|
7
|
+
// credentials or local details, and this log is shared with everyone who can open the board. Best effort, like the
|
|
8
|
+
// rest of the sharing: a failed write must not cost the build. Only a planned-slice build (`slice.sliceId`) records.
|
|
9
|
+
export function recordToolCall({ kitDir, slice, tool, meta }) {
|
|
11
10
|
if (!slice?.sliceId) return;
|
|
12
11
|
try {
|
|
13
|
-
appendEvent(kitDir, { type: 'tool-call', slice: slice.sliceId, tool
|
|
12
|
+
appendEvent(kitDir, { type: 'tool-call', slice: slice.sliceId, tool }, meta);
|
|
14
13
|
} catch (err) {
|
|
15
14
|
console.error(`[ralph] could not record a tool call (${err.message})`);
|
|
16
15
|
}
|
|
@@ -107,7 +107,7 @@ function runClaude(prompt, slice = null, extraEnv = {}) {
|
|
|
107
107
|
for (const block of msg.message?.content ?? []) {
|
|
108
108
|
if (block.type === 'text' && block.text && verbose) console.log(block.text);
|
|
109
109
|
if (block.type === 'tool_use') {
|
|
110
|
-
recordToolCall({ kitDir, slice, tool: block.name,
|
|
110
|
+
recordToolCall({ kitDir, slice, tool: block.name, meta: eventMeta(cfg) });
|
|
111
111
|
if (verbose) console.log(`→ ${describeToolUse(block)}`);
|
|
112
112
|
else if (block.name === 'Skill') console.log(`→ Skill: ${block.input?.skill ?? ''}`);
|
|
113
113
|
else console.log(`→ ${block.name}`);
|