@phnx-labs/agents-cli 1.23.16 → 1.23.18

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 (205) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +140 -165
  3. package/dist/bootstrap.js +10 -16
  4. package/dist/cli/command-registry.d.ts +1 -2
  5. package/dist/cli/command-registry.js +1 -10
  6. package/dist/commands/accounts.js +7 -7
  7. package/dist/commands/cloud-transcripts.d.ts +0 -1
  8. package/dist/commands/cloud-transcripts.js +2 -2
  9. package/dist/commands/cloud.js +1 -1
  10. package/dist/commands/config.js +0 -4
  11. package/dist/commands/cost.js +1 -1
  12. package/dist/commands/daemon-index.js +0 -1
  13. package/dist/commands/detach.d.ts +1 -1
  14. package/dist/commands/detach.js +5 -5
  15. package/dist/commands/exec.js +10 -22
  16. package/dist/commands/feed.d.ts +1 -1
  17. package/dist/commands/feed.js +3 -3
  18. package/dist/commands/focus.d.ts +1 -4
  19. package/dist/commands/focus.js +12 -13
  20. package/dist/commands/fork.d.ts +0 -1
  21. package/dist/commands/fork.js +7 -16
  22. package/dist/commands/harness-wizard.js +1 -1
  23. package/dist/commands/harness.js +1 -1
  24. package/dist/commands/insights.d.ts +0 -1
  25. package/dist/commands/insights.js +3 -7
  26. package/dist/commands/open.js +1 -1
  27. package/dist/commands/output.js +1 -1
  28. package/dist/commands/profiles.d.ts +1 -1
  29. package/dist/commands/profiles.js +2 -2
  30. package/dist/commands/projects.js +1 -1
  31. package/dist/commands/prune.js +1 -1
  32. package/dist/commands/ps.d.ts +0 -1
  33. package/dist/commands/ps.js +63 -18
  34. package/dist/commands/routines.js +1 -1
  35. package/dist/commands/send.js +1 -1
  36. package/dist/commands/sessions-backfill.d.ts +0 -1
  37. package/dist/commands/sessions-backfill.js +3 -6
  38. package/dist/commands/sessions-browser.d.ts +0 -10
  39. package/dist/commands/sessions-browser.js +19 -25
  40. package/dist/commands/sessions-migrate.d.ts +2 -2
  41. package/dist/commands/sessions-migrate.js +13 -13
  42. package/dist/commands/sessions-optimize.d.ts +0 -1
  43. package/dist/commands/sessions-optimize.js +0 -3
  44. package/dist/commands/sessions-picker.js +11 -11
  45. package/dist/commands/sessions-resume.d.ts +16 -15
  46. package/dist/commands/sessions-resume.js +101 -269
  47. package/dist/commands/sessions-stats.d.ts +0 -1
  48. package/dist/commands/sessions-stats.js +5 -8
  49. package/dist/commands/sessions-stop.d.ts +1 -1
  50. package/dist/commands/sessions-stop.js +6 -6
  51. package/dist/commands/sessions-trace.d.ts +1 -1
  52. package/dist/commands/sessions-trace.js +40 -17
  53. package/dist/commands/sessions-watch.js +2 -2
  54. package/dist/commands/sessions.test-fixture.d.ts +1 -0
  55. package/dist/commands/sessions.test-fixture.js +14 -0
  56. package/dist/commands/setup-browser.js +4 -4
  57. package/dist/commands/setup-computer.js +4 -4
  58. package/dist/commands/setup-fleet.js +1 -1
  59. package/dist/commands/setup-preferences.js +1 -1
  60. package/dist/commands/{sessions-backup-setup.d.ts → setup-session-backup.d.ts} +2 -2
  61. package/dist/commands/{sessions-backup-setup.js → setup-session-backup.js} +8 -8
  62. package/dist/commands/setup.js +3 -1
  63. package/dist/commands/ssh.js +4 -5
  64. package/dist/commands/sync.js +1 -1
  65. package/dist/commands/teams.js +2 -2
  66. package/dist/commands/utils.d.ts +0 -1
  67. package/dist/commands/utils.js +0 -10
  68. package/dist/index.js +0 -71
  69. package/dist/lib/accounting/rotate.js +1 -1
  70. package/dist/lib/analytics/mix-commands.js +1 -1
  71. package/dist/lib/auth-mint.js +2 -2
  72. package/dist/lib/browser-client.d.ts +0 -1
  73. package/dist/lib/browser-client.js +0 -3
  74. package/dist/lib/cloud/antigravity.js +1 -1
  75. package/dist/lib/cloud/cursor.js +3 -3
  76. package/dist/lib/cloudflare/creds.js +2 -2
  77. package/dist/lib/computer/context.d.ts +4 -21
  78. package/dist/lib/computer/context.js +3 -24
  79. package/dist/lib/computer/policy.d.ts +0 -10
  80. package/dist/lib/computer/policy.js +0 -28
  81. package/dist/lib/computer-client.d.ts +0 -44
  82. package/dist/lib/computer-client.js +17 -121
  83. package/dist/lib/config-keys.d.ts +1 -1
  84. package/dist/lib/config-keys.js +0 -3
  85. package/dist/lib/crabbox/cli.js +1 -1
  86. package/dist/lib/device-config.js +5 -28
  87. package/dist/lib/devices/connect.d.ts +1 -1
  88. package/dist/lib/devices/connect.js +3 -6
  89. package/dist/lib/devices/doctor-findings.d.ts +2 -1
  90. package/dist/lib/devices/doctor-findings.js +4 -4
  91. package/dist/lib/exec.js +1 -1
  92. package/dist/lib/feed/activity.js +1 -1
  93. package/dist/lib/fleet/apply.js +1 -1
  94. package/dist/lib/help.d.ts +0 -1
  95. package/dist/lib/help.js +2 -10
  96. package/dist/lib/hosts/option.js +1 -1
  97. package/dist/lib/hosts/passthrough.d.ts +0 -1
  98. package/dist/lib/hosts/passthrough.js +2 -26
  99. package/dist/lib/hosts/reconnect.js +5 -5
  100. package/dist/lib/hosts/remote-cmd.d.ts +3 -5
  101. package/dist/lib/hosts/remote-cmd.js +15 -20
  102. package/dist/lib/hosts/remote-session-id.js +1 -1
  103. package/dist/lib/installations/active-check.js +1 -1
  104. package/dist/lib/installations/migrate.js +4 -15
  105. package/dist/lib/installations/versions.js +1 -1
  106. package/dist/lib/launch-log.js +3 -6
  107. package/dist/lib/owner-notify.d.ts +1 -6
  108. package/dist/lib/owner-notify.js +0 -2
  109. package/dist/lib/paths.d.ts +0 -1
  110. package/dist/lib/paths.js +0 -8
  111. package/dist/lib/permissions.js +1 -1
  112. package/dist/lib/redact.d.ts +0 -1
  113. package/dist/lib/redact.js +0 -4
  114. package/dist/lib/remote-agents-json.d.ts +3 -1
  115. package/dist/lib/remote-agents-json.js +8 -6
  116. package/dist/lib/reserved-stores.js +1 -1
  117. package/dist/lib/scheduling/routines.d.ts +0 -1
  118. package/dist/lib/scheduling/routines.js +1 -1
  119. package/dist/lib/session/active.d.ts +1 -1
  120. package/dist/lib/session/db.js +3 -3
  121. package/dist/lib/session/detached.d.ts +0 -1
  122. package/dist/lib/session/detached.js +0 -23
  123. package/dist/lib/session/discover.d.ts +2 -2
  124. package/dist/lib/session/presentation.d.ts +0 -7
  125. package/dist/lib/session/presentation.js +4 -4
  126. package/dist/lib/session/projection.js +1 -1
  127. package/dist/lib/session/remote/remote-list.d.ts +2 -0
  128. package/dist/lib/session/remote/remote-list.js +3 -2
  129. package/dist/lib/session/remote/watch.js +4 -5
  130. package/dist/lib/session/remote-active.js +1 -1
  131. package/dist/lib/session/resume-command.d.ts +0 -1
  132. package/dist/lib/session/resume-command.js +1 -4
  133. package/dist/lib/session/resume-owner.d.ts +0 -2
  134. package/dist/lib/session/resume-owner.js +0 -6
  135. package/dist/lib/session/selection.d.ts +4 -5
  136. package/dist/lib/session/selection.js +2 -2
  137. package/dist/lib/session/sync/config.d.ts +0 -25
  138. package/dist/lib/session/sync/config.js +0 -62
  139. package/dist/lib/session/sync/managed-config.d.ts +0 -1
  140. package/dist/lib/session/sync/managed-config.js +0 -3
  141. package/dist/lib/session/sync/worker-template.js +1 -1
  142. package/dist/lib/sessions-client.d.ts +0 -16
  143. package/dist/lib/sessions-client.js +1 -187
  144. package/dist/lib/startup/command-registry.d.ts +2 -0
  145. package/dist/lib/startup/command-registry.js +36 -3
  146. package/dist/lib/startup/root-command.d.ts +0 -1
  147. package/dist/lib/startup/root-command.js +0 -21
  148. package/dist/lib/sync-umbrella.js +1 -1
  149. package/dist/lib/terminal/resolve.js +1 -1
  150. package/dist/lib/watchdog/rotate.js +1 -1
  151. package/dist/lib/watchdog/watchdog.d.ts +1 -1
  152. package/dist/lib/watchdog/watchdog.js +2 -2
  153. package/package.json +1 -1
  154. package/dist/commands/browser.d.ts +0 -7
  155. package/dist/commands/browser.js +0 -139
  156. package/dist/commands/computer.d.ts +0 -48
  157. package/dist/commands/computer.js +0 -244
  158. package/dist/commands/resume.d.ts +0 -23
  159. package/dist/commands/resume.js +0 -158
  160. package/dist/commands/secrets-passthrough.d.ts +0 -3
  161. package/dist/commands/secrets-passthrough.js +0 -52
  162. package/dist/commands/sessions-bookmark.d.ts +0 -2
  163. package/dist/commands/sessions-bookmark.js +0 -92
  164. package/dist/commands/sessions-export.d.ts +0 -31
  165. package/dist/commands/sessions-export.js +0 -409
  166. package/dist/commands/sessions-import.d.ts +0 -6
  167. package/dist/commands/sessions-import.js +0 -343
  168. package/dist/commands/sessions-inject.d.ts +0 -14
  169. package/dist/commands/sessions-inject.js +0 -143
  170. package/dist/commands/sessions-picker-factory.d.ts +0 -24
  171. package/dist/commands/sessions-picker-factory.js +0 -59
  172. package/dist/commands/sessions-render.d.ts +0 -11
  173. package/dist/commands/sessions-render.js +0 -119
  174. package/dist/commands/sessions-share.d.ts +0 -15
  175. package/dist/commands/sessions-share.js +0 -171
  176. package/dist/commands/sessions.d.ts +0 -122
  177. package/dist/commands/sessions.js +0 -1760
  178. package/dist/lib/address.d.ts +0 -39
  179. package/dist/lib/address.js +0 -128
  180. package/dist/lib/computer/record.d.ts +0 -6
  181. package/dist/lib/computer/record.js +0 -25
  182. package/dist/lib/openclaw-keychain.d.ts +0 -43
  183. package/dist/lib/openclaw-keychain.js +0 -227
  184. package/dist/lib/session/bundle.d.ts +0 -76
  185. package/dist/lib/session/bundle.js +0 -146
  186. package/dist/lib/session/remote/remote-bundle.d.ts +0 -7
  187. package/dist/lib/session/remote/remote-bundle.js +0 -40
  188. package/dist/lib/session/remote/remote.d.ts +0 -35
  189. package/dist/lib/session/remote/remote.js +0 -198
  190. package/dist/lib/session/remote-bundle.d.ts +0 -1
  191. package/dist/lib/session/remote-bundle.js +0 -1
  192. package/dist/lib/session/remote.d.ts +0 -1
  193. package/dist/lib/session/remote.js +0 -1
  194. package/dist/lib/session/sync/agents.d.ts +0 -24
  195. package/dist/lib/session/sync/agents.js +0 -0
  196. package/dist/lib/session/sync/backend.d.ts +0 -22
  197. package/dist/lib/session/sync/backend.js +0 -44
  198. package/dist/lib/session/sync/managed-key.d.ts +0 -5
  199. package/dist/lib/session/sync/managed-key.js +0 -87
  200. package/dist/lib/session/sync/net-client.d.ts +0 -29
  201. package/dist/lib/session/sync/net-client.js +0 -87
  202. package/dist/lib/session/sync/r2.d.ts +0 -20
  203. package/dist/lib/session/sync/r2.js +0 -103
  204. package/dist/lib/session/sync/transcript-crypto.d.ts +0 -41
  205. package/dist/lib/session/sync/transcript-crypto.js +0 -115
package/CHANGELOG.md CHANGED
@@ -1,5 +1,80 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.23.18
4
+
5
+ - **Fleet hops call peers by the canonical `ps` and `daemon index` spellings (PHNX-4227).**
6
+ A session on another device is now stopped there with `agents ps stop <id> --local`
7
+ and detached with `agents ps detach <id> --local`, the fleet roster asks each peer
8
+ for `agents ps --local --json`, and `backfill tools --fleet`/`--device` drives
9
+ each peer with `agents daemon index backfill tools --json --local` plus the same
10
+ filters. Each peer must run the release that carries this change.
11
+ An older peer is not detected or worked around: its roster and backfill rows
12
+ read as unreachable, and a stop or detach prints the peer's own unknown-command
13
+ error. Source:
14
+ `cli/src/commands/sessions-stop.ts`, `cli/src/commands/detach.ts`,
15
+ `cli/src/lib/session/remote-active.ts`, `cli/src/commands/sessions-backfill.ts`.
16
+
17
+ - **`agents browser`, `agents computer`, `agents secrets` and `agents sessions` are removed (PHNX-4227, owner decision 2026-10-12).**
18
+ There is no alias, passthrough or forwarder. Each exits 1 with one line naming
19
+ what to run instead, including under `--help`:
20
+ `error: 'agents browser' was removed; use the standalone 'browser' CLI (browser --help).`
21
+ Call the standalone `browser`, `computer`, `secrets` and `sessions` CLIs directly
22
+ (`agents setup tools` installs the pinned releases). The `sessions` verbs that
23
+ agents-cli owned have homes of their own, and the refusal names them:
24
+ `sessions resume` → `agents run auto --resume <id>`, `sessions --active` → `agents ps`,
25
+ `stop`/`focus`/`detach`/`migrate`/`migrations`/`preview` → `agents ps <verb>`,
26
+ `watch` → `agents ps watch --json`, `inject` → `agents send --channel session`,
27
+ `fork` → `agents fork` (now listed in `--help`), `backfill`/`optimize`/`--roots` →
28
+ `agents daemon index`, `stats` → `agents insights resources`, `insights` →
29
+ `agents insights`, `backup-setup` → `agents setup session-backup`.
30
+ Source: `cli/src/lib/startup/command-registry.ts`, `cli/src/bootstrap.ts`.
31
+ - **Fleet peers are asked with the new spellings, so every device needs this release.**
32
+ Selector resolution (what `agents run --resume <id>`, `ps focus` and `ps preview`
33
+ use to find a session on another box) asks the hidden `agents ps resolve <selector>
34
+ --json --local`; launch-id lookup after a `--device` dispatch asks `agents ps resolve
35
+ --launch-id <id>`; remote previews ask `agents ps preview <id> --local --json`; the
36
+ fleet session stream asks `agents ps watch --json --local`. The session picker's
37
+ history pool now asks each peer's standalone `sessions --all --json --local`. A peer
38
+ on an older agents-cli answers with an unknown command and reads as unreachable until
39
+ it updates (auto-update runs within 24 hours).
40
+ Source: `cli/src/commands/ps.ts`, `cli/src/lib/session/selection.ts`,
41
+ `cli/src/lib/session/remote/watch.ts`, `cli/src/commands/sessions-browser.ts`.
42
+ - **Session rows recover with `agents ps focus <id>`.** The `recovery` command on
43
+ `agents ps watch --json` and `agents feed watch --json` rows was
44
+ `agents sessions resume <id> --device <owner>`; it is now `agents ps focus <id>`,
45
+ which attaches a live pane or recovers an ended session on its owning device.
46
+ Source: `cli/src/lib/session/remote/watch.ts`, `cli/src/lib/session/projection.ts`.
47
+ - **`devices.<name>.computer.host` is removed** with the `agents computer --device`
48
+ path that read it. Drive another desktop with `computer <verb> --host <address>`.
49
+ Source: `cli/src/lib/device-config.ts`, `cli/src/lib/computer-client.ts`.
50
+ - **Help, prompts and scripts name the commands that exist.** `--help` for `run`,
51
+ `trace`, `fork` and every `-D/--device` option no longer points at `agents hosts`
52
+ or the removed groups. Agent-facing text
53
+ (the watchdog nudge, the migrate rehydrate prompt, the rotate resume prompt) now
54
+ says `sessions <id>` to read a transcript, and the release and CI scripts call
55
+ `secrets exec` directly.
56
+ - **The `agents ps` picker's `y` key copies a command that runs.** It copied
57
+ `ag sessions …`; a running or status view now copies `agents ps` with its
58
+ `--status`, `-D`, `--bookmarks` and `--routine` flags, and a history view copies
59
+ the standalone `sessions …` with its filters.
60
+ Source: `cli/src/commands/sessions-browser.ts`.
61
+
62
+ - **Owner notifications no longer have quiet hours.** rush/api dropped quiet hours
63
+ and the notification timezone, so the CLI no longer sends a `settings` object to
64
+ `PUT /me/preferences` and no longer reports a `quiet_hours` suppression. The
65
+ one-time `humans.yaml` upload lists `quietHours`, `quiet_hours` and `timezone`
66
+ under "not migrated" instead of uploading them. Source:
67
+ `cli/src/lib/owner-notify.ts`, `cli/src/lib/installations/migrate.ts`.
68
+
69
+ ## 1.23.17
70
+
71
+ - **A worker with one stale account and the rest unknown now launches.** `balanced`
72
+ routing refused with `NO_VERIFIED_USAGE` whenever any account's usage was stale, even
73
+ when every other account simply had no usage number yet. It now refuses only when
74
+ every account is stale, as documented; a pool with unknown-usage accounts picks one
75
+ and relies on the existing failover if it is rejected. Source:
76
+ `cli/src/lib/accounting/rotate.ts`.
77
+
3
78
  ## 1.23.16
4
79
 
5
80
  - **Every harness's session row on `agents feed watch --json` now carries