throughline 0.3.13 → 0.3.14
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 +1 -1
- package/src/token-monitor.mjs +7 -1
package/package.json
CHANGED
package/src/token-monitor.mjs
CHANGED
|
@@ -557,7 +557,13 @@ export function main() {
|
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
process.stdout.write(ANSI.hideCursor);
|
|
560
|
-
|
|
560
|
+
// 起動時に実 runtime での TTY/columns/resolveColumns を出す。
|
|
561
|
+
// diag と runtime で値がズレる (PTY allocation タイミング違い等) を直視できるようにするため。
|
|
562
|
+
const startupCols = resolveColumns();
|
|
563
|
+
const ttyFlag = process.stdout.isTTY ? 'T' : '-';
|
|
564
|
+
process.stdout.write(color(ANSI.dim,
|
|
565
|
+
`[Throughline] モニター起動 [${ttyFlag} cols=${process.stdout.columns ?? '?'} clip=${startupCols}] Ctrl+C で終了\n`,
|
|
566
|
+
));
|
|
561
567
|
|
|
562
568
|
safeRenderFrame(args);
|
|
563
569
|
// columns の最後に使った値。polling で resize 検知するために使う。
|