my-durable 0.0.118 → 0.0.119

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.
@@ -7,7 +7,7 @@
7
7
  <meta name="referrer" content="no-referrer" />
8
8
  <link rel="icon" type="image/svg+xml" href="/icons/durable-pi.svg" />
9
9
  <title>Durable Pi | Network</title>
10
- <script type="module" crossorigin src="/assets/index-DDRkB11b.js"></script>
10
+ <script type="module" crossorigin src="/assets/index-CLWbWp89.js"></script>
11
11
  <link rel="stylesheet" crossorigin href="/assets/index-DD66rPUN.css">
12
12
  </head>
13
13
  <body>
@@ -457,6 +457,21 @@ export interface DeviceUsageReport {
457
457
  projects: Array<{ rootPath: string; name: string; tokens: number; cost: number; sessions: number }>;
458
458
  }
459
459
 
460
+ /**
461
+ * Event-loop lag vitals (run-12): the wire copy of dpi-backend's
462
+ * `EventLoopLagVitals` (R7 perf lane). api.ts duplicates wire types by design
463
+ * — no cross-package imports — so this mirrors the backend shape exactly.
464
+ * `loadavg` is host-wide and cannot see the device's own stalls; these can.
465
+ */
466
+ export interface EventLoopLagVitals {
467
+ /** Worst event-loop delay in the most recent 1 s window, ms (0 before the first window completes). */
468
+ lagMsLast: number;
469
+ /** Worst delay across the last 60 windows (a rolling minute), ms. */
470
+ lagMsMax1m: number;
471
+ /** Windows sampled so far — grows to 60 as the process ages; <60 right after boot. */
472
+ samples: number;
473
+ }
474
+
460
475
  /** One device's live host health — asked for on demand, never polled. */
461
476
  export interface DeviceVitals {
462
477
  /** Seconds the host has been up. */
@@ -475,6 +490,20 @@ export interface DeviceVitals {
475
490
  };
476
491
  /** Free/total bytes for the volume holding the device's data dir. */
477
492
  disk: { path: string; totalBytes: number; freeBytes: number; known: boolean };
493
+ /**
494
+ * Event-loop lag (run-12): how long ready JS actually waited to run — the
495
+ * number `loadavg` cannot express. Backend-side since the R7 perf lane;
496
+ * typed here now so the run-12 TUI ops view renders it with real SDK types.
497
+ */
498
+ eventLoop: EventLoopLagVitals;
499
+ /**
500
+ * Git spawn semaphore (run-11 h2-2, typed here in run-12): children live
501
+ * now, callers waiting for a slot, and how many waiters sit in the
502
+ * interactive "high" lane — the number that says "a status-batch fan-out
503
+ * is stalling the panel". Required: the backend always returns it (0.0.117+,
504
+ * pinned by dpi-backend/tests/git-priority-r11.test.ts).
505
+ */
506
+ gitSpawns: { live: number; queued: number; queuedHigh: number };
478
507
  pid: number;
479
508
  at: number;
480
509
  /** Sessions this device knows about; `archived` counts the archive directories. */
@@ -35,6 +35,7 @@ import {
35
35
  renderHerd,
36
36
  renderHerdPanel,
37
37
  renderNetwork,
38
+ renderOps,
38
39
  renderStatusbar,
39
40
  renderViewbar,
40
41
  gitStateSuffix,
@@ -42,6 +43,9 @@ import {
42
43
  joinPanel,
43
44
  networkRows,
44
45
  VIEW_TABS,
46
+ type OpsData,
47
+ type OpsErrors,
48
+ type View,
45
49
  } from "./views.ts";
46
50
  import { appendFileSync } from "node:fs";
47
51
  import { fetchHubNetwork } from "./hub-feed.ts";
@@ -58,7 +62,10 @@ export interface DeviceRef {
58
62
  token: string;
59
63
  }
60
64
 
61
- type View = "herd" | "network" | "agent" | "log";
65
+ // VIEW_TABS and the View union live in views.ts — ONE source of truth shared
66
+ // by the viewbar labels, the digit keys and this app's view state (live-
67
+ // caught: a local copy here kept the old order while the viewbar taught the
68
+ // new one, so 1 printed "network" but opened herd).
62
69
  type AgentTab = "transcript" | "tasks" | "tools" | "state" | "config";
63
70
  type InputKind = "message" | "filter" | "palette" | "new" | "kill";
64
71
 
@@ -98,6 +105,7 @@ const PALETTE: { name: string; hint: string; run: (a: App) => void }[] = [
98
105
  { name: "network", hint: "devices and sessions", run: (a) => a.setView("network") },
99
106
  { name: "agent", hint: "back to the conversation", run: (a) => a.setView("agent") },
100
107
  { name: "log", hint: "device events", run: (a) => a.setView("log") },
108
+ { name: "ops", hint: "vitals · usage · schedules · env · notify", run: (a) => a.setView("ops") },
101
109
  { name: "sessions", hint: "switch or create a session", run: (a) => void a.command("sessions") },
102
110
  { name: "agents", hint: "switch agent: roots, forks, subagents", run: (a) => void a.command("agents") },
103
111
  { name: "model", hint: "choose this agent's model", run: (a) => void a.command("model") },
@@ -266,6 +274,54 @@ export class App {
266
274
  /** Long-running fetch note (dirs on a cold tunnel, R4 finding 8): message line. */
267
275
  private pendingNote: string | null = null;
268
276
 
277
+ // ops view (run-12) -----------------------------------------------------
278
+ /** The five device-ops reads, each failing ALONE (see refreshOps). */
279
+ private opsData: OpsData = {};
280
+ private opsErrors: OpsErrors = {};
281
+ private opsLoading = false;
282
+ /** ~30 s auto-refresh counter while the ops view is on screen (see tick). */
283
+ private opsTick = 0;
284
+ /** Rendered ops body lines / height — scrollBy needs them at keypress time. */
285
+ private lastOpsLen = 0;
286
+ private lastOpsInner = 0;
287
+
288
+ /**
289
+ * Fetch all five ops sections (run-12): vitals, usage, schedules, env,
290
+ * notify sinks. One flight at a time — enter, R and the 30 s tick all ride
291
+ * this door. Loading follows the per-view pattern (setPending on the first
292
+ * load only); a failing section degrades to its own ✗ line in the view, and
293
+ * a total outage toasts once (notify) instead of five toasts.
294
+ */
295
+ private refreshOps() {
296
+ if (this.opsLoading) return;
297
+ this.opsLoading = true;
298
+ if (!Object.keys(this.opsData).length) this.setPending("loading device ops…");
299
+ const grab = <K extends keyof OpsData>(key: K, p: Promise<OpsData[K]>) =>
300
+ p
301
+ .then((v) => {
302
+ this.opsData[key] = v;
303
+ delete this.opsErrors[key];
304
+ this.requestRender();
305
+ })
306
+ .catch((e) => {
307
+ this.opsErrors[key] = oneLine((e as Error).message || String(e));
308
+ this.requestRender();
309
+ });
310
+ void Promise.allSettled([
311
+ grab("vitals", this.client.vitals()),
312
+ grab("usage", this.client.deviceUsage()),
313
+ grab("schedules", this.client.schedules().then((r) => r.schedules)),
314
+ grab("env", this.client.envView()),
315
+ grab("sinks", this.client.notifySinks().then((r) => r.sinks)),
316
+ ]).then(() => {
317
+ this.opsLoading = false;
318
+ this.setPending(null);
319
+ if (!Object.keys(this.opsData).length && Object.keys(this.opsErrors).length)
320
+ this.notify(`ops: ${Object.values(this.opsErrors)[0] ?? "device unreachable"}`, true);
321
+ this.requestRender();
322
+ });
323
+ }
324
+
269
325
  constructor(
270
326
  device: DeviceRef,
271
327
  client: DpiClient,
@@ -481,7 +537,11 @@ export class App {
481
537
  setView(view: View) {
482
538
  this.view = view;
483
539
  this.cursor = 0;
484
- this.scrollState = FOLLOW_TAIL;
540
+ // r12 review m4: every other view is a feed (tail = newest), but ops is a
541
+ // DOCUMENT with VITALS on top — entering at the bottom (NOTIFY) hid the
542
+ // section an operator opens the view for. Anchor the ops view at the
543
+ // document top (offset>0 pins viewportTop to the recorded `top` = 0).
544
+ this.scrollState = view === "ops" ? { offset: 1, top: 0 } : FOLLOW_TAIL;
485
545
  if (view === "herd") void this.refreshSessions();
486
546
  if (view === "herd") this.refreshBranches();
487
547
  if (view === "network") {
@@ -490,6 +550,9 @@ export class App {
490
550
  // lost with a reconnecting hub — poll once instead of waiting out the tick.
491
551
  if (!this.devicesCache.length && this.mux?.live) this.refreshHubNetwork();
492
552
  }
553
+ // run-12: entering ops loads the device-ops bundle on demand (the backend
554
+ // serves vitals on request, never polled — same contract as the web panel).
555
+ if (view === "ops") this.refreshOps();
493
556
  this.requestRender();
494
557
  }
495
558
 
@@ -587,18 +650,17 @@ export class App {
587
650
  });
588
651
  }
589
652
 
590
- /** 1-4 switch views (see jump). */
591
653
  /**
592
- * 1-4 switch views — everywhere, matching the digits printed in the
654
+ * 1-5 switch views — everywhere, matching the digits printed in the
593
655
  * viewbar. Usability pass: digits used to jump the nth session, which only
594
656
  * made sense in the herd list and left view switching to three mixed-case
595
657
  * mnemonics (g/N/L). Sessions open with j/k + enter, which every list
596
- * already teaches in its status line.
658
+ * already teaches in its status line. Run-12: view 5 is the ops dashboard.
597
659
  */
598
660
  private jump(n: number) {
599
661
  const tab = VIEW_TABS[n - 1];
600
662
  if (tab) this.setView(tab.id);
601
- else this.notify("views are 1-4 (network · herd · agent · log)");
663
+ else this.notify("views are 1-5 (network · herd · agent · log · ops)");
602
664
  }
603
665
 
604
666
  private async submit(text: string, mode?: "followUp") {
@@ -720,6 +782,13 @@ export class App {
720
782
  else if (data === "g") this.setView("herd");
721
783
  else if (data === "N") this.setView("network");
722
784
  else if (data === "L") this.setView("log");
785
+ // run-12: R re-fetches the ops bundle. Verified unbound before use (the
786
+ // uppercase aliases were g/N/L only); scoped to the ops view anyway so the
787
+ // four existing views keep their exact keyboard behavior.
788
+ else if (data === "R" && this.view === "ops") {
789
+ this.opsTick = 0;
790
+ this.refreshOps();
791
+ }
723
792
  else if (data === "j" || matchesKey(data, "down")) this.move(1);
724
793
  else if (data === "k" || matchesKey(data, "up")) this.move(-1);
725
794
  else if (matchesKey(data, "enter")) this.enter();
@@ -886,7 +955,7 @@ export class App {
886
955
  if (this.filter) {
887
956
  this.filter = "";
888
957
  this.notify("filter cleared");
889
- } else if (this.view === "agent" || this.view === "log") {
958
+ } else if (this.view === "agent" || this.view === "log" || this.view === "ops") {
890
959
  this.setView("herd");
891
960
  }
892
961
  }
@@ -909,6 +978,13 @@ export class App {
909
978
  this.requestRender();
910
979
  return;
911
980
  }
981
+ // run-12: the ops body is one stacked document, not a selectable list — j/k
982
+ // scroll it with the same viewport math the transcript uses (scroll.ts).
983
+ if (this.view === "ops") {
984
+ this.scrollState = scrollBy(this.scrollState, delta, this.lastOpsLen, this.lastOpsInner);
985
+ this.requestRender();
986
+ return;
987
+ }
912
988
  const rows = this.rows();
913
989
  if (!rows.length) return;
914
990
  const selectable = (i: number) => !!rows[i] && rows[i].kind !== "group";
@@ -1103,6 +1179,13 @@ export class App {
1103
1179
  this.hubTick = 0;
1104
1180
  this.refreshHubNetwork();
1105
1181
  }
1182
+ // run-12: the ops view re-reads the device every ~30 s (250 × 120 ms) while
1183
+ // it is the active view — same cadence pattern as the hub feed above, and
1184
+ // gated on the view so background tabs never poll a health endpoint.
1185
+ if (this.view === "ops" && ++this.opsTick >= 250) {
1186
+ this.opsTick = 0;
1187
+ this.refreshOps();
1188
+ }
1106
1189
  this.requestRender();
1107
1190
  }
1108
1191
 
@@ -1167,7 +1250,9 @@ export class App {
1167
1250
  ? `${oneLine(this.device.id)}:${oneLine(session.name)}:${this.agentId ?? 1}` // R20 cold-1 M4
1168
1251
  : this.view === "agent"
1169
1252
  ? "no workspace"
1170
- : "j/k move · ↵ open";
1253
+ : this.view === "ops"
1254
+ ? "j/k scroll · R refresh"
1255
+ : "j/k move · ↵ open";
1171
1256
  return " " + renderViewbar(w - 2, this.view === "log" ? "log" : this.view, right);
1172
1257
  }
1173
1258
 
@@ -1176,6 +1261,7 @@ export class App {
1176
1261
  if (this.view === "agent") return this.agentBody(w, h);
1177
1262
  if (this.view === "network") return this.networkBody(w, h);
1178
1263
  if (this.view === "log") return this.logBody(w, h);
1264
+ if (this.view === "ops") return this.opsBody(w, h);
1179
1265
  return this.herdBody(w, h);
1180
1266
  }
1181
1267
 
@@ -1210,6 +1296,22 @@ export class App {
1210
1296
  }).slice(0, h);
1211
1297
  }
1212
1298
 
1299
+ // ------------------------------------------------------------------- ops
1300
+
1301
+ /**
1302
+ * The ops view body (run-12): one stacked document, scrolled j/k like the
1303
+ * transcript (scroll.ts absolute-anchor math — new frames must not slide
1304
+ * the page under the operator who scrolled up).
1305
+ */
1306
+ private opsBody(w: number, h: number): string[] {
1307
+ const content = renderOps(w, this.opsData, { errors: this.opsErrors, loading: this.opsLoading });
1308
+ const view = viewportTop(this.scrollState, content.length, h);
1309
+ this.scrollState = view.state;
1310
+ this.lastOpsLen = content.length;
1311
+ this.lastOpsInner = h;
1312
+ return content.slice(view.from, view.from + h);
1313
+ }
1314
+
1213
1315
  // ----------------------------------------------------------------- agent
1214
1316
 
1215
1317
  private agentState(): RowState {
@@ -1419,6 +1521,8 @@ export class App {
1419
1521
  : "esc herd · [ ] tabs · m message";
1420
1522
  return " " + c.muted(hint).slice(0, w);
1421
1523
  }
1524
+ if (this.view === "ops")
1525
+ return " " + c.muted("j/k scroll · R refresh · : palette · / msg · ? help").slice(0, w);
1422
1526
  return " " + c.muted("j/k move · ↵ open · : palette · n new · f filter · / msg · ? help").slice(0, w);
1423
1527
  }
1424
1528
 
@@ -1462,7 +1566,7 @@ export class App {
1462
1566
  // rows drifted every time a label changed — "↵"-style keys made raw
1463
1567
  // padding lie, so pad on visibleWidth before styling.
1464
1568
  const keys: { k1: string; d1: string; k2?: string; d2?: string; muted?: boolean }[] = [
1465
- { k1: "j k ↑ ↓", d1: "move/scroll", k2: "1-4", d2: "views: net/herd/agent/log" },
1569
+ { k1: "j k ↑ ↓", d1: "move/scroll", k2: "1-5", d2: "views: net/herd/agent/log/ops" },
1466
1570
  { k1: "↵", d1: "open", k2: "g N L", d2: "same views, aliases" },
1467
1571
  { k1: "[ ] t", d1: "agent tabs", k2: "m", d2: "message (enter sends)" },
1468
1572
  // esc is BACK only (R5 finding 7): it never interrupts (the 0.0.52/0.0.58
@@ -4,7 +4,7 @@ import { THINKING_LEVELS, type ThinkingLevel } from "../../dpi-sdk/src/api.ts";
4
4
  import type { App } from "./app.ts";
5
5
  import { sanitizeTerminal, oneLine } from "./sanitize.ts";
6
6
  export { oneLine };
7
- import { Panel, pickAgent, pickDevice, pickModel, pickSession, pickThinking } from "./pickers.ts";
7
+ import { Panel, pickAgent, pickDevice, pickEnv, pickModel, pickNotify, pickSession, pickSchedules, pickThinking } from "./pickers.ts";
8
8
  import { parsePairArgs, runPairing } from "./pairing.ts";
9
9
  import { gitStateSuffix } from "./views.ts";
10
10
  import { c } from "./theme.ts";
@@ -39,6 +39,14 @@ export const COMMANDS: SlashCommand[] = [
39
39
  .filter((s) => s.startsWith(prefix))
40
40
  .map((s) => ({ value: s, label: s })),
41
41
  },
42
+ // run-12 device-ops doors. None takes an argument — each opens a picker
43
+ // (or, for :usage/:vitals, dumps straight to the toast + log view), so there
44
+ // are no subcommands to complete; the row hotkeys live in the pickers.
45
+ { name: "schedules", description: "scheduled sessions: run now, toggle, delete, create" },
46
+ { name: "env", description: "the device's env file: view, edit, set, remove" },
47
+ { name: "notify", description: "notify sinks: list them and fire a test event" },
48
+ { name: "usage", description: "token/cost rollup — toast + log view" },
49
+ { name: "vitals", description: "device health: uptime, memory, disk, lag, git spawns" },
42
50
  { name: "help", description: "keys and commands" },
43
51
  { name: "quit", description: "exit (the agent keeps running)" },
44
52
  ];
@@ -105,6 +113,97 @@ async function gitCommand(app: App, arg: string) {
105
113
  }
106
114
  }
107
115
 
116
+ // ---------------------------------------------- run-12: :usage and :vitals
117
+
118
+ /** Bytes → "8.0G" / "512M" / "42B" — one toast/log line, not a spreadsheet. */
119
+ export function fmtBytes(n: number): string {
120
+ if (!Number.isFinite(n) || n <= 0) return "0";
121
+ const units = ["K", "M", "G", "T"];
122
+ let v = n;
123
+ let i = -1;
124
+ while (v >= 1024 && i < units.length - 1) {
125
+ v /= 1024;
126
+ i += 1;
127
+ }
128
+ return i < 0 ? `${n}B` : `${v >= 100 ? Math.round(v) : v.toFixed(1)}${units[i]}`;
129
+ }
130
+
131
+ /** Seconds → "2d3h" / "5h01m" / "12m" / "45s" (run-12 vitals rows). */
132
+ export function fmtDur(sec: number): string {
133
+ const s = Math.max(0, Math.floor(sec));
134
+ const d = Math.floor(s / 86400);
135
+ const h = Math.floor((s % 86400) / 3600);
136
+ const m = Math.floor((s % 3600) / 60);
137
+ if (d) return `${d}d${h}h`;
138
+ if (h) return `${h}h${String(m).padStart(2, "0")}m`;
139
+ if (m) return `${m}m`;
140
+ return `${s}s`;
141
+ }
142
+
143
+ /** /vitals (run-12) — the :git status shape: headline toast, full report in
144
+ * the log view. Read-only, so there is nothing to confirm anywhere here. */
145
+ async function vitalsCommand(app: App) {
146
+ try {
147
+ const v = await app.client.vitals();
148
+ // r12 review m2: a device on a pre-0.0.117 build omits eventLoop/gitSpawns
149
+ // — degrade to 0s instead of throwing the whole command away (the ops
150
+ // view's renderer already defends the same way).
151
+ const lag1m = Number(v.eventLoop?.lagMsMax1m) || 0;
152
+ const lagLast = Number(v.eventLoop?.lagMsLast) || 0;
153
+ const samples = Number(v.eventLoop?.samples) || 0;
154
+ const gitLive = Number(v.gitSpawns?.live) || 0;
155
+ const gitQ = Number(v.gitSpawns?.queued) || 0;
156
+ const gitQh = Number(v.gitSpawns?.queuedHigh) || 0;
157
+ app.notify(
158
+ `up ${fmtDur(v.uptime)} · mem ${fmtBytes(v.memory.usedBytes)}/${fmtBytes(v.memory.totalBytes)} · disk ${fmtBytes(v.disk.freeBytes)} free · lag ${lag1m}ms (log view: L)`,
159
+ );
160
+ app.logEvent("vitals", `uptime ${fmtDur(v.uptime)} · process ${fmtDur(v.processUptime)} · pid ${v.pid} · ${v.cpuCount} cpu`);
161
+ app.logEvent("vitals", `load ${v.loadavg.join(" / ")}`);
162
+ app.logEvent(
163
+ "vitals",
164
+ `mem used ${fmtBytes(v.memory.usedBytes)} · free ${fmtBytes(v.memory.freeBytes)} · rss ${fmtBytes(v.memory.processRssBytes)} · heap ${fmtBytes(v.memory.heapUsedBytes)} of ${fmtBytes(v.memory.totalBytes)}`,
165
+ );
166
+ app.logEvent(
167
+ "vitals",
168
+ `disk ${oneLine(v.disk.path)} — ${fmtBytes(v.disk.freeBytes)} free of ${fmtBytes(v.disk.totalBytes)}${v.disk.known ? "" : " (size unknown)"}`,
169
+ );
170
+ app.logEvent("vitals", `event-loop lag ${lagLast}ms last · ${lag1m}ms max/1m · ${samples} samples`);
171
+ app.logEvent("vitals", `git spawns ${gitLive} live · ${gitQ} queued · ${gitQh} queued-high`);
172
+ if (v.counts) app.logEvent("vitals", `sessions ${v.counts.sessions} live · ${v.counts.archived} archived`);
173
+ } catch (e) {
174
+ app.notify(`vitals: ${(e as Error).message.slice(0, 80)}`, true);
175
+ }
176
+ }
177
+
178
+ /** /usage (run-12) — same shape: tokens/cost headline, per-model/-session/
179
+ * -project detail in the log view. Each list is top-sliced so one command
180
+ * cannot flood the 500-entry log ring. */
181
+ async function usageCommand(app: App) {
182
+ try {
183
+ const u = await app.client.deviceUsage();
184
+ const tok = (n: number) => n.toLocaleString("en-US");
185
+ const usd = (n: number) => `$${n.toFixed(2)}`;
186
+ app.notify(
187
+ `usage: ${tok(u.totals.tokens)} tokens · ${usd(u.totals.cost)} · ${u.sessions.length} session${u.sessions.length === 1 ? "" : "s"} (log view: L)`,
188
+ );
189
+ app.logEvent(
190
+ "usage",
191
+ `device rollup · ${u.sessions.length} sessions · ${u.projects.length} projects · ${u.models.length} models`,
192
+ );
193
+ for (const m of u.models.slice(0, 12))
194
+ app.logEvent(
195
+ "usage",
196
+ ` ${oneLine(m.key)} — ${tok(m.tokens)} tok · ${usd(m.cost)} (in ${tok(m.input)} · out ${tok(m.output)} · cache ${tok(m.cacheRead)})`,
197
+ );
198
+ for (const s of [...u.sessions].sort((a, b) => b.tokens - a.tokens).slice(0, 8))
199
+ app.logEvent("usage", ` ${oneLine(s.name)} — ${tok(s.tokens)} tok · ${usd(s.cost)} · ${s.agents} agent${s.agents === 1 ? "" : "s"} · ${oneLine(s.cwd)}`);
200
+ for (const p of u.projects.slice(0, 8))
201
+ app.logEvent("usage", ` ${oneLine(p.name)} — ${tok(p.tokens)} tok · ${usd(p.cost)} · ${p.sessions} session${p.sessions === 1 ? "" : "s"} · ${oneLine(p.rootPath)}`);
202
+ } catch (e) {
203
+ app.notify(`usage: ${(e as Error).message.slice(0, 80)}`, true);
204
+ }
205
+ }
206
+
108
207
  const KEYS: [string, string][] = [
109
208
  ["enter", "send; steers the agent while it works"],
110
209
  ["alt+enter", "queue as a follow-up"],
@@ -236,6 +335,22 @@ export async function runCommand(app: App, text: string): Promise<boolean> {
236
335
  case "git":
237
336
  await gitCommand(app, arg);
238
337
  break;
338
+ // run-12: the five device-ops doors — the pickers own their row hotkeys.
339
+ case "schedules":
340
+ await pickSchedules(app);
341
+ break;
342
+ case "env":
343
+ await pickEnv(app);
344
+ break;
345
+ case "notify":
346
+ await pickNotify(app);
347
+ break;
348
+ case "usage":
349
+ await usageCommand(app);
350
+ break;
351
+ case "vitals":
352
+ await vitalsCommand(app);
353
+ break;
239
354
  case "pair":
240
355
  await runPairing(app, parsePairArgs(arg));
241
356
  break;