@rnbsolucoes/axion-code 0.1.83 → 0.1.85

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/README.md CHANGED
@@ -19,9 +19,10 @@ This MVP follows the PREVC-P documentation package in `.context/`:
19
19
  - Axion Desktop fallback provider presets, including OpenAI-compatible and Anthropic-compatible endpoints;
20
20
  - shared Axion Desktop/CLI provider, model and permission stores under `%USERPROFILE%\.axion`;
21
21
  - Pi Agent assets in inspect/import-only mode;
22
- - native dotcontext and MCP management posture;
23
- - plan-scoped PREVC + A learning consolidation through `/learn`;
24
- - shared plugin and native isolated subagent catalogs.
22
+ - native dotcontext and MCP management posture;
23
+ - plan-scoped PREVC + A learning consolidation through `/learn`;
24
+ - shared plugin and native isolated subagent catalogs;
25
+ - native localhost browser control and Windows computer-use inspection commands.
25
26
 
26
27
  ## MVP Commands
27
28
 
@@ -43,9 +44,17 @@ axion-code remote-control events --json
43
44
  axion-code remote-control seal --json < payload.json
44
45
  axion-code remote-control open --json < secure-frame.json
45
46
  axion-code remote-control relay --listen 127.0.0.1:8787 --json
47
+ axion-code browser dev start --command "npm run dev" --cwd . --json
48
+ axion-code browser open http://127.0.0.1:5173 --json
49
+ axion-code browser logs --duration 5s --json
50
+ axion-code browser eval --expr "document.title" --json
51
+ axion-code browser click --selector "button[type=submit]" --json
52
+ axion-code browser screenshot --path .context/runtime/browser/screenshot.png --json
53
+ axion-code computer-use status --json
54
+ axion-code computer-use screenshot --path .context/runtime/computer-use/screenshot.png --json
46
55
  axion-code provider list --json
47
- axion-code provider profile init
48
- axion-code provider profile list --json
56
+ axion-code provider profile init
57
+ axion-code provider profile list --json
49
58
  axion-code provider profile add or-free --catalog openrouter --model openrouter/free --credential-ref env:OPENROUTER_API_KEY
50
59
  axion-code provider profile set or-free
51
60
  axion-code provider profile delete or-free
@@ -108,9 +117,46 @@ The relay exposes `GET /remote-control/sessions`, `POST /remote-control/pair`,
108
117
  It is loopback-only, keeps provider/tool execution in the CLI and accepts mobile
109
118
  intents only after SAS pairing.
110
119
 
120
+ ## Native Browser And Computer-Use
121
+
122
+ `axion-code browser` is the native localhost navigation plugin. It can start a
123
+ workspace-contained dev server, open a localhost URL in a supervised Chrome/Edge
124
+ instance, inspect console logs, evaluate JavaScript, click/type by CSS selector
125
+ and save page screenshots.
126
+
127
+ Browser control is intentionally local-only: accepted hosts are `localhost`,
128
+ `127.0.0.1` and `[::1]`, with `localhost` normalized to `127.0.0.1` for Windows
129
+ dev-server reliability. CDP binds to `127.0.0.1` and uses an isolated profile
130
+ under `%USERPROFILE%\.axion\browser-control\profile`.
131
+
132
+ ```powershell
133
+ axion-code browser dev start --command "npm run dev" --cwd . --json
134
+ axion-code browser open http://127.0.0.1:5173 --json
135
+ axion-code browser logs --duration 5s --json
136
+ axion-code browser eval --expr "document.title" --json
137
+ axion-code browser click --selector "button[type=submit]" --json
138
+ axion-code browser type --selector "input[name=q]" --text "Axion" --json
139
+ axion-code browser screenshot --path .context/runtime/browser/screenshot.png --json
140
+ axion-code browser dev stop --json
141
+ axion-code browser stop --json
142
+ ```
143
+
144
+ `axion-code computer-use` is a guarded Windows MVP for desktop screenshot,
145
+ absolute-coordinate click, text entry and hotkeys. Mutating actions are
146
+ classified as high-risk browser-action tools and require approval unless the
147
+ active permission mode is `YOLO`.
148
+
149
+ ```powershell
150
+ axion-code computer-use status --json
151
+ axion-code computer-use screenshot --path .context/runtime/computer-use/screenshot.png --json
152
+ axion-code computer-use click --x 100 --y 200 --json
153
+ axion-code computer-use type --text "hello" --json
154
+ axion-code computer-use hotkey --keys ctrl+l --json
155
+ ```
156
+
111
157
  ## Install
112
-
113
- Official install, after the package is published to the public npm registry:
158
+
159
+ Official install, after the package is published to the public npm registry:
114
160
 
115
161
  ```powershell
116
162
  npm install -g @rnbsolucoes/axion-code
@@ -390,16 +436,17 @@ provider as a follow-up `tool_result` continuation turn, so the agent can use
390
436
  the evidence before answering. Unsupported tools remain explicitly pending until
391
437
  a dedicated adapter exists.
392
438
 
393
- `axion tool run` exposes the guarded dispatcher surface. The CLI and TUI
394
- currently support workspace-local `Read`, `Glob`, `Grep`, `Write` and `Edit`,
395
- governed `Shell`/`Bash`/`PowerShell` commands that run from a workspace
396
- directory with timeout and bounded output, and enabled stdio MCP tools named as
397
- `mcp__<server-id>__<tool-name>`. Provider tool aliases such as `read_file`,
398
- `write_file` and `run_command` are normalized to native tool names before
399
- approval/execution. When the active permission mode requires approval, execution
400
- is allowed only if the supplied approval is already approved and matches the
401
- exact redacted tool request. Remote MCP transports, browser, process and
402
- unknown tools remain unsupported even when an approval exists.
439
+ `axion tool run` exposes the guarded dispatcher surface. The CLI and TUI
440
+ currently support workspace-local `Read`, `Glob`, `Grep`, `Write` and `Edit`,
441
+ governed `Shell`/`Bash`/`PowerShell` commands that run from a workspace
442
+ directory with timeout and bounded output, enabled stdio MCP tools named as
443
+ `mcp__<server-id>__<tool-name>`, native localhost `browser_*` tools and guarded
444
+ Windows `computer_*` tools. Provider tool aliases such as `read_file`,
445
+ `write_file` and `run_command` are normalized to native tool names before
446
+ approval/execution. When the active permission mode requires approval, execution
447
+ is allowed only if the supplied approval is already approved and matches the
448
+ exact redacted tool request. Remote MCP transports, arbitrary process tools and
449
+ unknown tools remain unsupported even when an approval exists.
403
450
 
404
451
  Examples:
405
452
 
@@ -491,12 +538,14 @@ This is a functional direction MVP, not the full harness:
491
538
  placeholders; real CLI media generation remains deferred;
492
539
  - terminal logo uses Sixel when available and falls back to width-bounded ANSI/block rendering;
493
540
  - initial chat splash shows the Axion logo and system name until the first interaction;
494
- - guarded dispatcher execution is limited to workspace-local `Read`, `Glob`,
495
- `Grep`, `Write` and `Edit`, governed workspace-scoped shell commands and
496
- enabled stdio MCP tools;
497
- the TUI executes these after approval and shows the result, then feeds
498
- successful supported results back into the provider as an iterative
499
- `tool_result` continuation turn;
500
- - remote MCP transports, browser, process and unknown tools remain blocked;
541
+ - guarded dispatcher execution includes workspace-local `Read`, `Glob`,
542
+ `Grep`, `Write` and `Edit`, governed workspace-scoped shell commands, enabled
543
+ stdio MCP tools, native localhost `browser_*` tools and guarded Windows
544
+ `computer_*` tools;
545
+ the TUI executes these after approval and shows the result, then feeds
546
+ successful supported results back into the provider as an iterative
547
+ `tool_result` continuation turn;
548
+ - remote MCP transports, arbitrary process control and unknown tools remain
549
+ blocked;
501
550
  - no executable Pi RPC bridge yet;
502
551
  - native subagent execution is prompt-isolated and provider/model-inherited; `agents run-many` provides parallel fan-out, compact comparison, aggregate usage, a token budget ceiling and streamed lifecycle/telemetry events. Provider/model cost ceilings are enforced by the shared Axion cost policy.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rnbsolucoes/axion-code",
3
- "version": "0.1.83",
3
+ "version": "0.1.85",
4
4
  "description": "Axion Code CLI harness for the Axion ecosystem.",
5
5
  "type": "module",
6
6
  "repository": {