@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.
- package/CHANGELOG.md +75 -0
- package/README.md +140 -165
- package/dist/bootstrap.js +10 -16
- package/dist/cli/command-registry.d.ts +1 -2
- package/dist/cli/command-registry.js +1 -10
- package/dist/commands/accounts.js +7 -7
- package/dist/commands/cloud-transcripts.d.ts +0 -1
- package/dist/commands/cloud-transcripts.js +2 -2
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/config.js +0 -4
- package/dist/commands/cost.js +1 -1
- package/dist/commands/daemon-index.js +0 -1
- package/dist/commands/detach.d.ts +1 -1
- package/dist/commands/detach.js +5 -5
- package/dist/commands/exec.js +10 -22
- package/dist/commands/feed.d.ts +1 -1
- package/dist/commands/feed.js +3 -3
- package/dist/commands/focus.d.ts +1 -4
- package/dist/commands/focus.js +12 -13
- package/dist/commands/fork.d.ts +0 -1
- package/dist/commands/fork.js +7 -16
- package/dist/commands/harness-wizard.js +1 -1
- package/dist/commands/harness.js +1 -1
- package/dist/commands/insights.d.ts +0 -1
- package/dist/commands/insights.js +3 -7
- package/dist/commands/open.js +1 -1
- package/dist/commands/output.js +1 -1
- package/dist/commands/profiles.d.ts +1 -1
- package/dist/commands/profiles.js +2 -2
- package/dist/commands/projects.js +1 -1
- package/dist/commands/prune.js +1 -1
- package/dist/commands/ps.d.ts +0 -1
- package/dist/commands/ps.js +63 -18
- package/dist/commands/routines.js +1 -1
- package/dist/commands/send.js +1 -1
- package/dist/commands/sessions-backfill.d.ts +0 -1
- package/dist/commands/sessions-backfill.js +3 -6
- package/dist/commands/sessions-browser.d.ts +0 -10
- package/dist/commands/sessions-browser.js +19 -25
- package/dist/commands/sessions-migrate.d.ts +2 -2
- package/dist/commands/sessions-migrate.js +13 -13
- package/dist/commands/sessions-optimize.d.ts +0 -1
- package/dist/commands/sessions-optimize.js +0 -3
- package/dist/commands/sessions-picker.js +11 -11
- package/dist/commands/sessions-resume.d.ts +16 -15
- package/dist/commands/sessions-resume.js +101 -269
- package/dist/commands/sessions-stats.d.ts +0 -1
- package/dist/commands/sessions-stats.js +5 -8
- package/dist/commands/sessions-stop.d.ts +1 -1
- package/dist/commands/sessions-stop.js +6 -6
- package/dist/commands/sessions-trace.d.ts +1 -1
- package/dist/commands/sessions-trace.js +40 -17
- package/dist/commands/sessions-watch.js +2 -2
- package/dist/commands/sessions.test-fixture.d.ts +1 -0
- package/dist/commands/sessions.test-fixture.js +14 -0
- package/dist/commands/setup-browser.js +4 -4
- package/dist/commands/setup-computer.js +4 -4
- package/dist/commands/setup-fleet.js +1 -1
- package/dist/commands/setup-preferences.js +1 -1
- package/dist/commands/{sessions-backup-setup.d.ts → setup-session-backup.d.ts} +2 -2
- package/dist/commands/{sessions-backup-setup.js → setup-session-backup.js} +8 -8
- package/dist/commands/setup.js +3 -1
- package/dist/commands/ssh.js +4 -5
- package/dist/commands/sync.js +1 -1
- package/dist/commands/teams.js +2 -2
- package/dist/commands/utils.d.ts +0 -1
- package/dist/commands/utils.js +0 -10
- package/dist/index.js +0 -71
- package/dist/lib/accounting/rotate.js +1 -1
- package/dist/lib/analytics/mix-commands.js +1 -1
- package/dist/lib/auth-mint.js +2 -2
- package/dist/lib/browser-client.d.ts +0 -1
- package/dist/lib/browser-client.js +0 -3
- package/dist/lib/cloud/antigravity.js +1 -1
- package/dist/lib/cloud/cursor.js +3 -3
- package/dist/lib/cloudflare/creds.js +2 -2
- package/dist/lib/computer/context.d.ts +4 -21
- package/dist/lib/computer/context.js +3 -24
- package/dist/lib/computer/policy.d.ts +0 -10
- package/dist/lib/computer/policy.js +0 -28
- package/dist/lib/computer-client.d.ts +0 -44
- package/dist/lib/computer-client.js +17 -121
- package/dist/lib/config-keys.d.ts +1 -1
- package/dist/lib/config-keys.js +0 -3
- package/dist/lib/crabbox/cli.js +1 -1
- package/dist/lib/device-config.js +5 -28
- package/dist/lib/devices/connect.d.ts +1 -1
- package/dist/lib/devices/connect.js +3 -6
- package/dist/lib/devices/doctor-findings.d.ts +2 -1
- package/dist/lib/devices/doctor-findings.js +4 -4
- package/dist/lib/exec.js +1 -1
- package/dist/lib/feed/activity.js +1 -1
- package/dist/lib/fleet/apply.js +1 -1
- package/dist/lib/help.d.ts +0 -1
- package/dist/lib/help.js +2 -10
- package/dist/lib/hosts/option.js +1 -1
- package/dist/lib/hosts/passthrough.d.ts +0 -1
- package/dist/lib/hosts/passthrough.js +2 -26
- package/dist/lib/hosts/reconnect.js +5 -5
- package/dist/lib/hosts/remote-cmd.d.ts +3 -5
- package/dist/lib/hosts/remote-cmd.js +15 -20
- package/dist/lib/hosts/remote-session-id.js +1 -1
- package/dist/lib/installations/active-check.js +1 -1
- package/dist/lib/installations/migrate.js +4 -15
- package/dist/lib/installations/versions.js +1 -1
- package/dist/lib/launch-log.js +3 -6
- package/dist/lib/owner-notify.d.ts +1 -6
- package/dist/lib/owner-notify.js +0 -2
- package/dist/lib/paths.d.ts +0 -1
- package/dist/lib/paths.js +0 -8
- package/dist/lib/permissions.js +1 -1
- package/dist/lib/redact.d.ts +0 -1
- package/dist/lib/redact.js +0 -4
- package/dist/lib/remote-agents-json.d.ts +3 -1
- package/dist/lib/remote-agents-json.js +8 -6
- package/dist/lib/reserved-stores.js +1 -1
- package/dist/lib/scheduling/routines.d.ts +0 -1
- package/dist/lib/scheduling/routines.js +1 -1
- package/dist/lib/session/active.d.ts +1 -1
- package/dist/lib/session/db.js +3 -3
- package/dist/lib/session/detached.d.ts +0 -1
- package/dist/lib/session/detached.js +0 -23
- package/dist/lib/session/discover.d.ts +2 -2
- package/dist/lib/session/presentation.d.ts +0 -7
- package/dist/lib/session/presentation.js +4 -4
- package/dist/lib/session/projection.js +1 -1
- package/dist/lib/session/remote/remote-list.d.ts +2 -0
- package/dist/lib/session/remote/remote-list.js +3 -2
- package/dist/lib/session/remote/watch.js +4 -5
- package/dist/lib/session/remote-active.js +1 -1
- package/dist/lib/session/resume-command.d.ts +0 -1
- package/dist/lib/session/resume-command.js +1 -4
- package/dist/lib/session/resume-owner.d.ts +0 -2
- package/dist/lib/session/resume-owner.js +0 -6
- package/dist/lib/session/selection.d.ts +4 -5
- package/dist/lib/session/selection.js +2 -2
- package/dist/lib/session/sync/config.d.ts +0 -25
- package/dist/lib/session/sync/config.js +0 -62
- package/dist/lib/session/sync/managed-config.d.ts +0 -1
- package/dist/lib/session/sync/managed-config.js +0 -3
- package/dist/lib/session/sync/worker-template.js +1 -1
- package/dist/lib/sessions-client.d.ts +0 -16
- package/dist/lib/sessions-client.js +1 -187
- package/dist/lib/startup/command-registry.d.ts +2 -0
- package/dist/lib/startup/command-registry.js +36 -3
- package/dist/lib/startup/root-command.d.ts +0 -1
- package/dist/lib/startup/root-command.js +0 -21
- package/dist/lib/sync-umbrella.js +1 -1
- package/dist/lib/terminal/resolve.js +1 -1
- package/dist/lib/watchdog/rotate.js +1 -1
- package/dist/lib/watchdog/watchdog.d.ts +1 -1
- package/dist/lib/watchdog/watchdog.js +2 -2
- package/package.json +1 -1
- package/dist/commands/browser.d.ts +0 -7
- package/dist/commands/browser.js +0 -139
- package/dist/commands/computer.d.ts +0 -48
- package/dist/commands/computer.js +0 -244
- package/dist/commands/resume.d.ts +0 -23
- package/dist/commands/resume.js +0 -158
- package/dist/commands/secrets-passthrough.d.ts +0 -3
- package/dist/commands/secrets-passthrough.js +0 -52
- package/dist/commands/sessions-bookmark.d.ts +0 -2
- package/dist/commands/sessions-bookmark.js +0 -92
- package/dist/commands/sessions-export.d.ts +0 -31
- package/dist/commands/sessions-export.js +0 -409
- package/dist/commands/sessions-import.d.ts +0 -6
- package/dist/commands/sessions-import.js +0 -343
- package/dist/commands/sessions-inject.d.ts +0 -14
- package/dist/commands/sessions-inject.js +0 -143
- package/dist/commands/sessions-picker-factory.d.ts +0 -24
- package/dist/commands/sessions-picker-factory.js +0 -59
- package/dist/commands/sessions-render.d.ts +0 -11
- package/dist/commands/sessions-render.js +0 -119
- package/dist/commands/sessions-share.d.ts +0 -15
- package/dist/commands/sessions-share.js +0 -171
- package/dist/commands/sessions.d.ts +0 -122
- package/dist/commands/sessions.js +0 -1760
- package/dist/lib/address.d.ts +0 -39
- package/dist/lib/address.js +0 -128
- package/dist/lib/computer/record.d.ts +0 -6
- package/dist/lib/computer/record.js +0 -25
- package/dist/lib/openclaw-keychain.d.ts +0 -43
- package/dist/lib/openclaw-keychain.js +0 -227
- package/dist/lib/session/bundle.d.ts +0 -76
- package/dist/lib/session/bundle.js +0 -146
- package/dist/lib/session/remote/remote-bundle.d.ts +0 -7
- package/dist/lib/session/remote/remote-bundle.js +0 -40
- package/dist/lib/session/remote/remote.d.ts +0 -35
- package/dist/lib/session/remote/remote.js +0 -198
- package/dist/lib/session/remote-bundle.d.ts +0 -1
- package/dist/lib/session/remote-bundle.js +0 -1
- package/dist/lib/session/remote.d.ts +0 -1
- package/dist/lib/session/remote.js +0 -1
- package/dist/lib/session/sync/agents.d.ts +0 -24
- package/dist/lib/session/sync/agents.js +0 -0
- package/dist/lib/session/sync/backend.d.ts +0 -22
- package/dist/lib/session/sync/backend.js +0 -44
- package/dist/lib/session/sync/managed-key.d.ts +0 -5
- package/dist/lib/session/sync/managed-key.js +0 -87
- package/dist/lib/session/sync/net-client.d.ts +0 -29
- package/dist/lib/session/sync/net-client.js +0 -87
- package/dist/lib/session/sync/r2.d.ts +0 -20
- package/dist/lib/session/sync/r2.js +0 -103
- package/dist/lib/session/sync/transcript-crypto.d.ts +0 -41
- 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
|