@phnx-labs/computer-cli 0.1.7 → 0.1.8

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.8
4
+
5
+ - 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.
6
+ - 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.
7
+ - `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.
8
+
3
9
  ## 0.1.7
4
10
 
5
11
  - `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
- `bun scripts/gen-docs.ts` regenerates all three from the registered command
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.7",
3
+ "version": "0.1.8",
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.7",
29
- "@phnx-labs/computer-cli-darwin-x64": "0.1.7",
30
- "@phnx-labs/computer-cli-linux-arm64": "0.1.7",
31
- "@phnx-labs/computer-cli-linux-x64": "0.1.7",
32
- "@phnx-labs/computer-cli-win32-x64": "0.1.7"
28
+ "@phnx-labs/computer-cli-darwin-arm64": "0.1.8",
29
+ "@phnx-labs/computer-cli-darwin-x64": "0.1.8",
30
+ "@phnx-labs/computer-cli-linux-arm64": "0.1.8",
31
+ "@phnx-labs/computer-cli-linux-x64": "0.1.8",
32
+ "@phnx-labs/computer-cli-win32-x64": "0.1.8"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@modelcontextprotocol/sdk": "1.30.0",