create-claude-workspace 2.1.5 → 2.1.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.
@@ -254,6 +254,7 @@ export async function runScheduler(opts) {
254
254
  process.on('SIGTERM', cleanup);
255
255
  // ─── Loop ───
256
256
  for (let i = state.iteration; i < opts.maxIterations && !stopping; i++) {
257
+ tui.setIteration(i + 1, opts.maxIterations);
257
258
  appendEvent(opts.projectDir, createEvent('health_check', { detail: `Iteration ${i + 1}` }));
258
259
  try {
259
260
  const workDone = await runIteration({
@@ -293,6 +294,7 @@ export async function runScheduler(opts) {
293
294
  await sleep(opts.cooldown, stoppingRef);
294
295
  }
295
296
  writeState(opts.projectDir, state);
297
+ tui.iterationEnd();
296
298
  // Pause support
297
299
  while (tui.isPaused() && !stopping) {
298
300
  await sleep(1000, stoppingRef);
@@ -461,7 +461,16 @@ export class TUI {
461
461
  if (msg.session_id)
462
462
  this.fileOnly(`SESSION: ${msg.session_id}`);
463
463
  }
464
- pushAgent(name) { this.state.agents.push(name); }
464
+ pushAgent(name) {
465
+ this.state.agents.push(name);
466
+ if (!this.interactive) {
467
+ const elapsed = fmtDur(Date.now() - this.state.loopStart);
468
+ const iterTime = this.state.iterStart ? fmtDur(Date.now() - this.state.iterStart) : '—';
469
+ const tok = fmtTok(this.state.tokensIn + this.state.tokensOut);
470
+ const col = ANSI_COLORS[agentColor(name)] || '';
471
+ this.log(` ${ANSI_COLORS.gray}──── ${elapsed} │ iter ${iterTime} │ ${this.state.tools} tools │ ${tok} tok │ ${col}${BOLD}${name}${RESET}${ANSI_COLORS.gray} ────${RESET}`);
472
+ }
473
+ }
465
474
  popAgent() { if (this.state.agents.length > 1)
466
475
  this.state.agents.pop(); }
467
476
  resetAgentStack() { this.state.agents = this.topAgent ? [this.topAgent] : []; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-workspace",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "author": "",
5
5
  "repository": {
6
6
  "type": "git",