@phnx-labs/agents-cli 1.18.4 → 1.18.5

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,21 +1,32 @@
1
1
  # Changelog
2
2
 
3
- ## 1.18.4
3
+ ## 1.18.5
4
4
 
5
5
  **Browser**
6
6
 
7
- - New canonical shape for action commands: bind the task once per shell via
8
- `AGENTS_BROWSER_TASK`, then drop the positional `<task>` from every later
9
- call. The old positional shape still works but emits a one-line deprecation
10
- warning on stderr — agents and scripts can migrate at their own pace.
7
+ - **Breaking:** action commands no longer accept a leading `<task>` positional.
8
+ Bind the task once per shell via `AGENTS_BROWSER_TASK`, or pass `--task <name>`
9
+ for a per-call override:
11
10
  ```bash
12
11
  export AGENTS_BROWSER_TASK=$(agents browser start --profile work)
13
- agents browser navigate https://example.com
12
+ agents browser navigate --url https://example.com
14
13
  agents browser click 42
15
14
  agents browser screenshot
16
15
  ```
17
16
  Env vars are per-process, so parallel agents in different shells never collide.
18
- `--task <name>` is supported on every action command as an explicit one-off override.
17
+ - **Breaking:** URL/text/expression/scroll arguments are now flag-only positional forms removed:
18
+ - `navigate --url <url>` (was `navigate <url>`)
19
+ - `tab add --url <url>` (was `tab add <url>`)
20
+ - `type <ref> --text "..."` (was `type <ref> "..."`)
21
+ - `evaluate --expression "..."` or `--file <path>` (was `evaluate "..."`)
22
+ - `scroll --dx <n> --dy <n>` (was `scroll <dx> <dy>` — fixes negative-value parser collision)
23
+ - `screenshot` prints a one-line auto-save tip on stderr when `--output` is not passed,
24
+ so agents see the directory without having to dirname() the path.
25
+
26
+ ## 1.18.4
27
+
28
+ **Browser**
29
+
19
30
  - `agents browser start` writes the resolved task name to **stdout** as a
20
31
  single line (e.g. `swift-crab-falcon-a3f92b1c`), and routes the human
21
32
  commentary ("Started task ... with tab ...", "Tip: export
package/README.md CHANGED
@@ -310,7 +310,7 @@ agents browser profiles create work --browser chrome
310
310
  export AGENTS_BROWSER_TASK=$(agents browser start --profile work --url https://app.example.com)
311
311
  agents browser refs # Get interactive element refs
312
312
  agents browser click 42 # Click element ref 42
313
- agents browser type 15 "hello" # Type into element ref 15
313
+ agents browser type 15 --text "hello" # Type into element ref 15
314
314
  agents browser screenshot # Smart resizing, token-efficient
315
315
  agents browser tabs # List tabs open for the current task
316
316
  agents browser tab focus tab123 # Switch focus to another tab