create-claude-workspace 2.1.2 → 2.1.4
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/dist/scheduler/types.mjs
CHANGED
|
@@ -362,7 +362,7 @@ export class TUI {
|
|
|
362
362
|
}
|
|
363
363
|
for (const block of content) {
|
|
364
364
|
if (block.type === 'text' && block.text?.trim()) {
|
|
365
|
-
this.log(` ${this.prefix()}${trunc(block.text,
|
|
365
|
+
this.log(` ${this.prefix()}${trunc(block.text, 500)}`, `TEXT: ${trunc(block.text, 500)}`);
|
|
366
366
|
}
|
|
367
367
|
if (block.type === 'tool_use')
|
|
368
368
|
this.onToolUse(block);
|
|
@@ -387,7 +387,7 @@ export class TUI {
|
|
|
387
387
|
let detail;
|
|
388
388
|
switch (name) {
|
|
389
389
|
case 'Bash':
|
|
390
|
-
detail = `${ANSI_COLORS.yellow}${trunc(input.command || '',
|
|
390
|
+
detail = `${ANSI_COLORS.yellow}${trunc(input.command || '', 200)}${RESET}`;
|
|
391
391
|
break;
|
|
392
392
|
case 'Read':
|
|
393
393
|
detail = `${ANSI_COLORS.cyan}${(input.file_path || '').replace(/^\/project\//, '')}${RESET}`;
|
|
@@ -402,7 +402,7 @@ export class TUI {
|
|
|
402
402
|
case 'Grep':
|
|
403
403
|
detail = `${ANSI_COLORS.cyan}/${input.pattern || ''}/${RESET}${input.path ? ` ${ANSI_COLORS.gray}in ${input.path}${RESET}` : ''}`;
|
|
404
404
|
break;
|
|
405
|
-
default: detail = `${ANSI_COLORS.gray}${trunc(JSON.stringify(input),
|
|
405
|
+
default: detail = `${ANSI_COLORS.gray}${trunc(JSON.stringify(input), 150)}${RESET}`;
|
|
406
406
|
}
|
|
407
407
|
this.log(` ${pre}${time} ${icon} ${BOLD}${name}${RESET} ${detail}`, `TOOL: ${name} ${JSON.stringify(input).slice(0, 200)}`);
|
|
408
408
|
}
|
|
@@ -418,10 +418,10 @@ export class TUI {
|
|
|
418
418
|
continue;
|
|
419
419
|
const pre = this.prefix();
|
|
420
420
|
if (block.is_error) {
|
|
421
|
-
this.log(` ${pre} ${ANSI_COLORS.red}✗ ${trunc(output,
|
|
421
|
+
this.log(` ${pre} ${ANSI_COLORS.red}✗ ${trunc(output, 200)}${RESET}`, `ERROR: ${trunc(output, 200)}`);
|
|
422
422
|
}
|
|
423
|
-
else if (output.length <
|
|
424
|
-
this.log(` ${pre} ${ANSI_COLORS.green}✓${RESET} ${DIM}${trunc(output,
|
|
423
|
+
else if (output.length < 300) {
|
|
424
|
+
this.log(` ${pre} ${ANSI_COLORS.green}✓${RESET} ${DIM}${trunc(output, 200)}${RESET}`, `OK: ${trunc(output, 200)}`);
|
|
425
425
|
}
|
|
426
426
|
else {
|
|
427
427
|
const n = output.split('\n').length;
|