@pi-unipi/footer 2.4.0 → 2.4.1
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/README.md +2 -2
- package/package.json +3 -3
- package/src/events.ts +0 -10
- package/src/segments/core.ts +0 -9
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ Footer subscribes to events from every Unipi package:
|
|
|
22
22
|
| Group | Events | Segments |
|
|
23
23
|
|-------|--------|----------|
|
|
24
24
|
| core | Pi SDK | model, thinking, path, git, context_pct, cost, tokens, session |
|
|
25
|
-
| compactor | `
|
|
25
|
+
| compactor | Pi session data + `COMPACTOR_COMPACTED` | session_events, compactions, tokens_saved, compression_ratio |
|
|
26
26
|
| memory | `MEMORY_STORED`/`DELETED`/`CONSOLIDATED` | project_count, total_count, consolidations |
|
|
27
27
|
| mcp | `MCP_SERVER_STARTED`/`STOPPED`/`ERROR` | servers_total, servers_active, tools_total |
|
|
28
28
|
| ralph | `RALPH_LOOP_START`/`END`/`ITERATION_DONE` | active_loops, total_iterations, loop_status |
|
|
@@ -48,7 +48,7 @@ Footer works even if packages load after it — late-arriving events update the
|
|
|
48
48
|
| Group | Default | Data Source |
|
|
49
49
|
|-------|---------|-------------|
|
|
50
50
|
| **core** | ON | Pi SDK (ctx.sessionManager, footerData) |
|
|
51
|
-
| **compactor** | ON |
|
|
51
|
+
| **compactor** | ON | Live Pi session data; last-compaction event |
|
|
52
52
|
| **memory** | ON | `MEMORY_STORED`/`DELETED`/`CONSOLIDATED` events |
|
|
53
53
|
| **mcp** | ON | `MCP_SERVER_STARTED`/`STOPPED`/`ERROR` events |
|
|
54
54
|
| **ralph** | ON | `RALPH_LOOP_START`/`END`/`ITERATION_DONE` events |
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pi-unipi/footer",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Persistent status bar for Unipi — subscribes to UNIPI_EVENTS and renders key stats from all unipi packages",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "index.ts",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "Neuron Mr White",
|
|
9
9
|
"repository": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@pi-unipi/core": "2.4.
|
|
35
|
+
"@pi-unipi/core": "2.4.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@earendil-works/pi-coding-agent": "^0.80.0",
|
package/src/events.ts
CHANGED
|
@@ -26,16 +26,6 @@ export function subscribeToEvents(
|
|
|
26
26
|
|
|
27
27
|
// ─── Compactor events ───────────────────────────────────────────────────
|
|
28
28
|
|
|
29
|
-
unsubscribers.push(
|
|
30
|
-
pi.events.on(UNIPI_EVENTS.COMPACTOR_STATS_UPDATED, (event: unknown) => {
|
|
31
|
-
try {
|
|
32
|
-
registry.updateData("compactor", event);
|
|
33
|
-
} catch {
|
|
34
|
-
// Silently ignore — event handler errors are non-blocking.
|
|
35
|
-
}
|
|
36
|
-
})
|
|
37
|
-
);
|
|
38
|
-
|
|
39
29
|
unsubscribers.push(
|
|
40
30
|
pi.events.on(UNIPI_EVENTS.COMPACTOR_COMPACTED, (event: unknown) => {
|
|
41
31
|
try {
|
package/src/segments/core.ts
CHANGED
|
@@ -219,15 +219,6 @@ function renderHostnameSegment(_ctx: FooterSegmentContext): RenderedSegment {
|
|
|
219
219
|
return { content, visible: true };
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
function renderTimeSegment(ctx: FooterSegmentContext): RenderedSegment {
|
|
223
|
-
const now = new Date();
|
|
224
|
-
const hours = now.getHours();
|
|
225
|
-
const mins = now.getMinutes().toString().padStart(2, "0");
|
|
226
|
-
const timeStr = `${hours}:${mins}`;
|
|
227
|
-
const content = withIcon("time", timeStr);
|
|
228
|
-
return { content, visible: true };
|
|
229
|
-
}
|
|
230
|
-
|
|
231
222
|
// ─── TPS tier color function ────────────────────────────────────────────────
|
|
232
223
|
|
|
233
224
|
function getTpsSemanticColor(tps: number): SemanticColor {
|