@phnx-labs/computer-cli 0.1.7 → 0.1.9
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 +10 -0
- package/README.md +15 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.9
|
|
4
|
+
|
|
5
|
+
- Removing a `Computer(<bundle-id>)` grant now applies to the next local `computer` invocation, as it already did under `agents computer`. Before, a direct call kept listing and driving the app until `computer reload`. Adding a grant still needs `computer reload`, a running `computer mcp` keeps the groups it read at startup, and remote TCP/VNC helpers keep their own policy. An inherited allowlist, including an empty one, still replaces the groups.
|
|
6
|
+
|
|
7
|
+
## 0.1.8
|
|
8
|
+
|
|
9
|
+
- Add `scripts/generate-cli-docs.sh` with `--check` and `--out-dir`, downloadable command references in PR/release-branch CI, and a freshness check that also covers releases with tests/build skipped.
|
|
10
|
+
- Calling `computer` directly records the same session as `agents computer`: it now reads `CLAUDE_SESSION_ID` and `AGENTS_RUN_ID`, prefers `CODEX_THREAD_ID` and `CLAUDE_CODE_SESSION_ID` over `AGENTS_SESSION_ID` / `AGENT_SESSION_ID`, and skips empty values. An inherited context session still wins. Target admissions use the same resolver.
|
|
11
|
+
- `computer run` exits 1 when it stops at `--max-steps` without a completion, in both human and `--json` output; the JSON result is unchanged. `--max-steps` and `--max-tokens` reject values that are not positive integers (such as `0`, `abc` or `1.5`) before any request.
|
|
12
|
+
|
|
3
13
|
## 0.1.7
|
|
4
14
|
|
|
5
15
|
- `computer sessions` uses the shared `@phnx-labs/tui` picker, list and stdout writer (PHNX-4227), so its controls and output match standalone `sessions` and `browser sessions`. The picker still lists every run.
|
package/README.md
CHANGED
|
@@ -172,11 +172,25 @@ for the recorded run and delivery limits. Source links require repository access
|
|
|
172
172
|
|
|
173
173
|
## Command reference
|
|
174
174
|
|
|
175
|
+
```bash
|
|
176
|
+
scripts/generate-cli-docs.sh # refresh docs/
|
|
177
|
+
scripts/generate-cli-docs.sh --check # fail on stale docs
|
|
178
|
+
scripts/generate-cli-docs.sh --out-dir .agents/scratch/cli-docs # preview
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
Run after `bun install --frozen-lockfile`. The script works from any directory;
|
|
182
|
+
`--out-dir` is relative to your current directory. Open `command-reference.html`
|
|
183
|
+
from the output folder to browse the tree and search commands.
|
|
184
|
+
CI uploads a `computer-cli-docs` artifact on pull requests and pushes to `main`
|
|
185
|
+
or `release/**`. It contains the HTML reference plus Markdown and JSON indexes.
|
|
186
|
+
Tests and releases check the committed files; commit regenerated `docs/` with
|
|
187
|
+
command changes. Release checks also run with `--skip-tests` / `--skip-build`.
|
|
188
|
+
|
|
175
189
|
[docs/command-reference.html](docs/command-reference.html) lists every command
|
|
176
190
|
with its arguments and options, searchable, with the command tree in a sidebar.
|
|
177
191
|
[docs/command-index.md](docs/command-index.md) is the one-line-per-command index,
|
|
178
192
|
and [docs/command-index.json](docs/command-index.json) the structured form.
|
|
179
|
-
`
|
|
193
|
+
`scripts/generate-cli-docs.sh` regenerates all three from the registered command
|
|
180
194
|
tree; `scripts/test.sh` fails when they are stale.
|
|
181
195
|
|
|
182
196
|
## Using it through agents-cli
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/computer-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Native desktop automation over Accessibility, UI Automation and VNC",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"test": "bash scripts/test.sh"
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@phnx-labs/computer-cli-darwin-arm64": "0.1.
|
|
29
|
-
"@phnx-labs/computer-cli-darwin-x64": "0.1.
|
|
30
|
-
"@phnx-labs/computer-cli-linux-arm64": "0.1.
|
|
31
|
-
"@phnx-labs/computer-cli-linux-x64": "0.1.
|
|
32
|
-
"@phnx-labs/computer-cli-win32-x64": "0.1.
|
|
28
|
+
"@phnx-labs/computer-cli-darwin-arm64": "0.1.9",
|
|
29
|
+
"@phnx-labs/computer-cli-darwin-x64": "0.1.9",
|
|
30
|
+
"@phnx-labs/computer-cli-linux-arm64": "0.1.9",
|
|
31
|
+
"@phnx-labs/computer-cli-linux-x64": "0.1.9",
|
|
32
|
+
"@phnx-labs/computer-cli-win32-x64": "0.1.9"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@modelcontextprotocol/sdk": "1.30.0",
|