pi-daddy 0.60.0 → 0.61.0
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/CHANGELOG.md +5 -0
- package/README.md +26 -1
- package/dist/kernel/env-names.d.ts +4 -0
- package/dist/kernel/env-names.d.ts.map +1 -1
- package/dist/kernel/env-names.js +7 -0
- package/dist/kernel/env-names.js.map +1 -1
- package/dist/kernel/propagation.d.ts +1 -1
- package/dist/kernel/propagation.d.ts.map +1 -1
- package/dist/kernel/propagation.js +5 -1
- package/dist/kernel/propagation.js.map +1 -1
- package/dist/products/dashboard-cli.d.ts.map +1 -1
- package/dist/products/dashboard-cli.js +27 -0
- package/dist/products/dashboard-cli.js.map +1 -1
- package/dist/products/dashboard-screen.js +1 -1
- package/dist/products/dashboard-screen.js.map +1 -1
- package/dist/products/dashboard-session-client.d.ts +3 -0
- package/dist/products/dashboard-session-client.d.ts.map +1 -1
- package/dist/products/dashboard-session-client.js +3 -1
- package/dist/products/dashboard-session-client.js.map +1 -1
- package/dist/products/dashboard-settings.d.ts +12 -2
- package/dist/products/dashboard-settings.d.ts.map +1 -1
- package/dist/products/dashboard-settings.js +19 -2
- package/dist/products/dashboard-settings.js.map +1 -1
- package/extensions/dashboard-session-server.ts +10 -1
- package/extensions/dashboard-settings.ts +10 -0
- package/extensions/dashboard-telemetry.ts +237 -0
- package/extensions/grants.ts +2 -1
- package/package.json +1 -1
- package/src/kernel/env-names.ts +7 -0
- package/src/kernel/propagation.ts +7 -0
- package/src/products/dashboard-cli.ts +26 -1
- package/src/products/dashboard-screen.ts +1 -1
- package/src/products/dashboard-session-client.ts +4 -1
- package/src/products/dashboard-settings.ts +31 -3
|
@@ -7,7 +7,7 @@ export type JevEditAction = (typeof JEV_EDIT_ACTIONS)[number];
|
|
|
7
7
|
export const isJevEditAction = (value: unknown): value is JevEditAction =>
|
|
8
8
|
JEV_EDIT_ACTIONS.some((key) => value === key);
|
|
9
9
|
export type DashboardSettingKey =
|
|
10
|
-
JevEditAction | "auto" | "jev" | "wall" | "idle" | "descendants" | "depth" | "perCall";
|
|
10
|
+
JevEditAction | "auto" | "jev" | "wall" | "idle" | "descendants" | "depth" | "perCall" | "telemetry";
|
|
11
11
|
export const DASHBOARD_SETTING_KEYS: DashboardSettingKey[] = [
|
|
12
12
|
"auto",
|
|
13
13
|
"jev",
|
|
@@ -36,9 +36,9 @@ export interface DashboardJevState {
|
|
|
36
36
|
storageRoot?: string;
|
|
37
37
|
error?: string;
|
|
38
38
|
}
|
|
39
|
-
export function visibleSettingKeys(jev?: DashboardJevState): DashboardSettingKey[] {
|
|
39
|
+
export function visibleSettingKeys(jev?: DashboardJevState, telemetry = false): DashboardSettingKey[] {
|
|
40
40
|
const extra = JEV_EDIT_ACTIONS.filter((key) => jev?.available && jev.controls?.includes(key));
|
|
41
|
-
return ["auto", "jev", ...extra, ...DASHBOARD_SETTING_KEYS.slice(2)];
|
|
41
|
+
return ["auto", "jev", ...extra, ...(telemetry ? ["telemetry" as const] : []), ...DASHBOARD_SETTING_KEYS.slice(2)];
|
|
42
42
|
}
|
|
43
43
|
export interface DashboardSettingsSnapshot {
|
|
44
44
|
editable: boolean;
|
|
@@ -51,6 +51,16 @@ export interface DashboardSettingsSnapshot {
|
|
|
51
51
|
maxDepth: number;
|
|
52
52
|
perCall: number;
|
|
53
53
|
jev: DashboardJevState;
|
|
54
|
+
telemetry?: {
|
|
55
|
+
enabled: boolean;
|
|
56
|
+
status: "disabled" | "missing-dependency" | "stopped" | "disconnected" | "stale" | "connected";
|
|
57
|
+
gpuPercent?: number;
|
|
58
|
+
temperatureC?: number;
|
|
59
|
+
ramUsedBytes?: number;
|
|
60
|
+
ramTotalBytes?: number;
|
|
61
|
+
note?: string;
|
|
62
|
+
sampledAt?: number;
|
|
63
|
+
};
|
|
54
64
|
}
|
|
55
65
|
export const JEV_EDITOR_NOTICE = "Finish editing in the main Pi session.";
|
|
56
66
|
export const JEV_CONSENT_NOTICE = "Complete JEV paid-call and LoRA-storage choices in the parent Pi session";
|
|
@@ -72,6 +82,13 @@ export function dashboardSettingsLines(
|
|
|
72
82
|
const jev = settings.jev;
|
|
73
83
|
const canConfigure = jev.controls?.includes("configure");
|
|
74
84
|
const providerIndent = canConfigure ? " " : " ";
|
|
85
|
+
const telemetry = settings.telemetry;
|
|
86
|
+
const gpu = telemetry?.gpuPercent === undefined ? "unavailable" : `${telemetry.gpuPercent}%`;
|
|
87
|
+
const temperature = telemetry?.temperatureC === undefined ? "unavailable" : `${telemetry.temperatureC}°C`;
|
|
88
|
+
const ram =
|
|
89
|
+
telemetry?.ramUsedBytes === undefined || telemetry.ramTotalBytes === undefined
|
|
90
|
+
? "unavailable"
|
|
91
|
+
: `${(telemetry.ramUsedBytes / 1024 ** 3).toFixed(1)} / ${(telemetry.ramTotalBytes / 1024 ** 3).toFixed(1)} GiB`;
|
|
75
92
|
const providerLines = [
|
|
76
93
|
jev.controls?.includes("limit")
|
|
77
94
|
? `Provider status: ${jev.availability ?? "unknown"}`
|
|
@@ -126,6 +143,17 @@ export function dashboardSettingsLines(
|
|
|
126
143
|
: [" Load skill-harness to connect JEV controls."]),
|
|
127
144
|
...(jev.error ? [` ${jev.error}`] : []),
|
|
128
145
|
"",
|
|
146
|
+
...(telemetry
|
|
147
|
+
? [
|
|
148
|
+
sectionHeading("LLM TELEMETRY · optional", width),
|
|
149
|
+
row("telemetry", `Telemetry: ${telemetry?.enabled ? telemetry.status : "disabled"}`),
|
|
150
|
+
` GPU: ${gpu} · temperature: ${temperature}`,
|
|
151
|
+
` Shared system RAM: ${ram}`,
|
|
152
|
+
` ${telemetry?.note ?? "Press Enter to enable; configure SSH target and identity in the Pi environment."}`,
|
|
153
|
+
" GPU-only allocation and live prompt/generation speed are unavailable; no rates are inferred.",
|
|
154
|
+
"",
|
|
155
|
+
]
|
|
156
|
+
: []),
|
|
129
157
|
sectionHeading("CHILD TIMEOUTS", width),
|
|
130
158
|
row("wall", `Child wall: ${settings.wallSeconds}s (${settings.wallSource})`),
|
|
131
159
|
row("idle", `Child idle: ${settings.idleSeconds}s (${settings.idleSource})`),
|