pi-better-background-tasks 0.1.4 → 0.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.
- package/package.json +3 -3
- package/src/shared-navigator.ts +5 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-better-background-tasks",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Pi extension for durable background shell tasks, watchers, logs, and status inspection.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/node": "^22.10.0",
|
|
52
|
+
"typebox": "^1.1.38",
|
|
52
53
|
"typescript": "^5.7.0",
|
|
53
|
-
"vitest": "^3.0.0"
|
|
54
|
-
"typebox": "^1.1.38"
|
|
54
|
+
"vitest": "^3.0.0"
|
|
55
55
|
}
|
|
56
56
|
}
|
package/src/shared-navigator.ts
CHANGED
|
@@ -95,7 +95,11 @@ export const DETAIL_TICK_MS = 1000;
|
|
|
95
95
|
export const CLOSE_ARM_MS = 3000;
|
|
96
96
|
export const DEFAULT_LOG_TAIL_ROWS = 10;
|
|
97
97
|
export const LOG_TAIL_ROW_CHOICES = [10, 25, 50, 100] as const;
|
|
98
|
-
|
|
98
|
+
// Row rebuild cadence. Each tick asks every provider for rows, which stats and
|
|
99
|
+
// parses run logs, so this is a per-provider I/O cadence and not a paint rate:
|
|
100
|
+
// the widget repaints from render() whenever the TUI asks. 1 Hz matches
|
|
101
|
+
// DETAIL_TICK_MS and the elapsed/spinner resolution the rows can actually show.
|
|
102
|
+
const MAIN_LIST_TICK_MS = 1000;
|
|
99
103
|
const MAIN_LIST_FALLBACK_WIDTH = 100;
|
|
100
104
|
const DETAIL_OVERLAY_HEADER_MARGIN_ROWS = 5;
|
|
101
105
|
const DETAIL_OVERLAY_FOOTER_MARGIN_ROWS = 3;
|