throughline 0.3.13 → 0.3.15

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": "throughline",
3
- "version": "0.3.13",
3
+ "version": "0.3.15",
4
4
  "type": "module",
5
5
  "description": "Claude Code hooks plugin for structured context compression (/clear-safe persistent memory)",
6
6
  "keywords": [
@@ -401,9 +401,11 @@ function renderFrame(args) {
401
401
  }
402
402
  }
403
403
  } else {
404
+ // runtime cols を毎フレーム出してリサイズ追従状況を可視化する (診断目的、将来削除可)
405
+ const runtimeCols = process.stdout.columns ?? '?';
404
406
  const header = color(
405
407
  ANSI.bold,
406
- `[Throughline] ${filtered.length} セッション${args.all ? ' (--all)' : ''}`,
408
+ `[Throughline] ${filtered.length} セッション cols=${runtimeCols}${args.all ? ' (--all)' : ''}`,
407
409
  );
408
410
  lines.push(header);
409
411
  const now = Date.now();
@@ -557,7 +559,13 @@ export function main() {
557
559
  }
558
560
 
559
561
  process.stdout.write(ANSI.hideCursor);
560
- process.stdout.write(color(ANSI.dim, `[Throughline] モニター起動 (state: ${getStateDir()}, Ctrl+C で終了)\n`));
562
+ // 起動時に実 runtime での TTY/columns/resolveColumns を出す。
563
+ // diag と runtime で値がズレる (PTY allocation タイミング違い等) を直視できるようにするため。
564
+ const startupCols = resolveColumns();
565
+ const ttyFlag = process.stdout.isTTY ? 'T' : '-';
566
+ process.stdout.write(color(ANSI.dim,
567
+ `[Throughline] モニター起動 [${ttyFlag} cols=${process.stdout.columns ?? '?'} clip=${startupCols}] Ctrl+C で終了\n`,
568
+ ));
561
569
 
562
570
  safeRenderFrame(args);
563
571
  // columns の最後に使った値。polling で resize 検知するために使う。