@eventmodelers/cli 0.0.17 → 0.0.18

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.
Files changed (2) hide show
  1. package/cli.js +20 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -873,6 +873,25 @@ async function runModeling(kitDir, projectDir) {
873
873
  let stdoutBuffer = '';
874
874
  let pending = null; // one in-flight turn at a time
875
875
 
876
+ // Bare tool names (`→ Bash`, `→ Skill`) tell you nothing happened worth
877
+ // reading — this pulls out the one input field that actually says what the
878
+ // tool did, so the trace is skimmable without the interactive TUI.
879
+ function describeToolUse(block) {
880
+ const input = block.input ?? {};
881
+ switch (block.name) {
882
+ case 'Bash': return `Bash: ${input.command}`;
883
+ case 'Skill': return `Skill: ${input.skill}${input.args ? ` ${input.args}` : ''}`;
884
+ case 'Read': return `Read: ${input.file_path}`;
885
+ case 'Edit': return `Edit: ${input.file_path}`;
886
+ case 'Write': return `Write: ${input.file_path}`;
887
+ case 'Grep': return `Grep: ${input.pattern}`;
888
+ case 'Glob': return `Glob: ${input.pattern}`;
889
+ case 'WebFetch': return `WebFetch: ${input.url}`;
890
+ case 'Agent': return `Agent: ${input.description ?? input.subagent_type ?? ''}`;
891
+ default: return block.name;
892
+ }
893
+ }
894
+
876
895
  // stream-json output loses the normal interactive TUI (tool cards, live diffs) —
877
896
  // this is a plain-text approximation, good enough for a headless/voice runner.
878
897
  function handleLine(line) {
@@ -883,7 +902,7 @@ async function runModeling(kitDir, projectDir) {
883
902
  if (msg.type === 'assistant') {
884
903
  for (const block of msg.message?.content ?? []) {
885
904
  if (block.type === 'text' && block.text) log(block.text);
886
- if (block.type === 'tool_use') log(`→ ${block.name}`);
905
+ if (block.type === 'tool_use') log(`→ ${describeToolUse(block)}`);
887
906
  }
888
907
  return;
889
908
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventmodelers/cli",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Eventmodelers CLI — real-time Claude agent + skills for Claude Code, for any stack (Node, Supabase, Axon, Cratis, or modeling-only)",
5
5
  "type": "module",
6
6
  "bin": {