@eventmodelers/cli 0.0.34 → 0.0.35
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/cli.js +5 -11
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -1140,25 +1140,19 @@ async function runModeling(kitDir, projectDir) {
|
|
|
1140
1140
|
|
|
1141
1141
|
// Bare tool names (`→ Bash`, `→ Skill`) tell you nothing happened worth
|
|
1142
1142
|
// reading — this pulls out the one input field that actually says what the
|
|
1143
|
-
// tool did, so the trace is skimmable without the interactive TUI.
|
|
1144
|
-
// to one line and capped in length — a raw multi-line curl or a long grep
|
|
1145
|
-
// pattern wrapping across the terminal is just as unreadable as no detail at all.
|
|
1146
|
-
const oneLine = (s, max = 100) => {
|
|
1147
|
-
const flat = String(s ?? '').replace(/\s+/g, ' ').trim();
|
|
1148
|
-
return flat.length > max ? `${flat.slice(0, max)}…` : flat;
|
|
1149
|
-
};
|
|
1143
|
+
// tool did, so the trace is skimmable without the interactive TUI.
|
|
1150
1144
|
function describeToolUse(block) {
|
|
1151
1145
|
const input = block.input ?? {};
|
|
1152
1146
|
switch (block.name) {
|
|
1153
|
-
case 'Bash': return `Bash: ${
|
|
1154
|
-
case 'Skill': return `Skill: ${input.skill}${input.args ? ` ${
|
|
1147
|
+
case 'Bash': return `Bash: ${input.command}`;
|
|
1148
|
+
case 'Skill': return `Skill: ${input.skill}${input.args ? ` ${input.args}` : ''}`;
|
|
1155
1149
|
case 'Read': return `Read: ${input.file_path}`;
|
|
1156
1150
|
case 'Edit': return `Edit: ${input.file_path}`;
|
|
1157
1151
|
case 'Write': return `Write: ${input.file_path}`;
|
|
1158
|
-
case 'Grep': return `Grep: ${
|
|
1152
|
+
case 'Grep': return `Grep: ${input.pattern}`;
|
|
1159
1153
|
case 'Glob': return `Glob: ${input.pattern}`;
|
|
1160
1154
|
case 'WebFetch': return `WebFetch: ${input.url}`;
|
|
1161
|
-
case 'Agent': return `Agent: ${
|
|
1155
|
+
case 'Agent': return `Agent: ${input.description ?? input.subagent_type ?? ''}`;
|
|
1162
1156
|
default: return block.name;
|
|
1163
1157
|
}
|
|
1164
1158
|
}
|
package/package.json
CHANGED