my-durable 0.0.53 → 0.0.55

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.
Files changed (28) hide show
  1. package/apps/dpi-backend/src/daemon.ts +18 -1
  2. package/apps/dpi-backend/src/doctor.ts +4 -3
  3. package/apps/dpi-backend/src/errors.ts +21 -0
  4. package/apps/dpi-backend/src/notify-sinks.ts +11 -4
  5. package/apps/dpi-backend/src/pair-cli.ts +45 -32
  6. package/apps/dpi-backend/src/routes.ts +73 -15
  7. package/apps/dpi-backend/src/store.ts +60 -9
  8. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/{index-_rDvatx4.css → index-BfkkE43K.css} +1 -1
  9. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-DKSCI99E.js +81 -0
  10. package/apps/dpi-playground/apps/dpi-playground-fe/dist/index.html +2 -2
  11. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/commands.ts +5 -3
  12. package/apps/dpi-playground/apps/dpi-playground-fe/src/client/worktree.ts +78 -0
  13. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/GitPanel.vue +9 -11
  14. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/Inspector.vue +53 -1
  15. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/NetworkSidebar.vue +23 -1
  16. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/NewSessionDialog.vue +10 -1
  17. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/SchedulesPanel.vue +4 -1
  18. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TopBar.vue +3 -1
  19. package/apps/dpi-playground/apps/dpi-playground-fe/src/components/TreeRow.vue +15 -0
  20. package/apps/dpi-playground/apps/dpi-playground-hub/src/main.ts +24 -0
  21. package/apps/dpi-sdk/src/api.ts +4 -1
  22. package/apps/dpi-tui/src/app.ts +37 -4
  23. package/apps/dpi-tui/src/commands.ts +3 -1
  24. package/apps/dpi-tui/src/pickers.ts +33 -1
  25. package/apps/dpi-tui/src/views.ts +11 -2
  26. package/bin/dpi.mjs +16 -3
  27. package/package.json +1 -1
  28. package/apps/dpi-playground/apps/dpi-playground-fe/dist/assets/index-CBxu8tMi.js +0 -81
package/bin/dpi.mjs CHANGED
@@ -25,8 +25,9 @@ const COMMANDS = {
25
25
  const HELP = `dpi — Durable Pi (bare "dpi" opens the TUI)
26
26
 
27
27
  Usage:
28
- dpi hub [--port 4781] [--host 127.0.0.1] [--public-host <host>]
29
- Web UI + device tunnel server (devices dial this).
28
+ dpi hub [--port 4781] [--host 127.0.0.1] [--public-host <host>] [--dev]
29
+ Web UI + device tunnel server (devices dial this). --dev serves the web
30
+ client straight from Vite instead of the built shell (local development).
30
31
  dpi device run the device daemon (foreground)
31
32
  dpi device start | stop | status background daemon without a terminal
32
33
  dpi device install | uninstall OS service (systemd/launchd); Windows: no
@@ -35,6 +36,13 @@ Usage:
35
36
  dpi pair --hub <origin> this machine asks the hub itself
36
37
  dpi pair offer|list|approve|revoke operator side, from the CLI (dpi pair --help)
37
38
  dpi devices [--watch] [--hub <origin>] paired machines + live status (CLI, no web)
39
+ dpi schedule [list|add|enable|disable|run|remove] scheduled sessions (dpi schedule --help)
40
+ dpi notify [list|add|enable|disable|remove|test] outbound notifications (dpi notify --help)
41
+ dpi gc --closed-before 30d [--dry-run|--yes] retention for archived sessions (dry-run default)
42
+ dpi backup [create|list|restore] whole-home snapshots (restore is plan-first)
43
+ dpi diagnostics [--out F] redacted bug-report bundle
44
+ dpi telegram status|bind|unbind|sessions Telegram chat bridge
45
+ dpi graph list|show|add|run|remove|archive|unarchive task-graph DAG (dpi graph --help)
38
46
  dpi tui
39
47
  Terminal admin client.
40
48
  dpi doctor [--json] [--quiet]
@@ -42,7 +50,7 @@ Usage:
42
50
  the default-model probe and the hub. Exit 1 when a check fails.
43
51
  dpi help | dpi --help | dpi -h
44
52
  dpi version | dpi --version | dpi -v
45
- dpi update [--check]
53
+ dpi update | upgrade [--check]
46
54
  --check compare the installed version with the registry, change nothing
47
55
  (no flag) install the latest published version globally
48
56
 
@@ -124,6 +132,11 @@ if (command === "update" || command === "upgrade") {
124
132
  process.argv = [process.argv[0], process.argv[1], ...commandRest];
125
133
  const { register } = await loadTsx();
126
134
  register();
135
+ if (commandRest.includes("--help") || commandRest.includes("-h")) {
136
+ const { DEVICES_USAGE } = await import("../apps/dpi-backend/src/pair-cli.ts");
137
+ process.stdout.write(DEVICES_USAGE);
138
+ process.exit(0);
139
+ }
127
140
  const { listDevices } = await import("../apps/dpi-backend/src/pair-cli.ts");
128
141
  const hubIdx = commandRest.indexOf("--hub");
129
142
  process.exit(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "my-durable",
3
- "version": "0.0.53",
3
+ "version": "0.0.55",
4
4
  "description": "Durable Pi — the durable agent network: hub web UI, device backend daemon, TUI admin and the shared SDK, packaged as one runnable monorepo install",
5
5
  "license": "MIT",
6
6
  "repository": {