@rnbsolucoes/axion-code 0.1.84 → 0.1.86
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
|
|
|
@@ -34,7 +35,7 @@ axion-code doctor --json
|
|
|
34
35
|
axion-code init --json
|
|
35
36
|
axion-code init --project --json
|
|
36
37
|
axion-code session list --json
|
|
37
|
-
axion-code remote-control start --ttl
|
|
38
|
+
axion-code remote-control start --ttl 24h --json
|
|
38
39
|
axion-code remote-control status --json
|
|
39
40
|
axion-code remote-control stop --json
|
|
40
41
|
axion-code remote-control pair --json < pair.json
|
|
@@ -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,59 @@ 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
|
+
Remote-control leases expire after `24h` by default. Override one run with
|
|
121
|
+
`/remote-control --ttl 2h` or `axion-code remote-control start --ttl 2h`. Set
|
|
122
|
+
the local default in the TUI with `/settings remote-control-ttl 24h`; use
|
|
123
|
+
`/settings remote-control-ttl never` to keep the URL online while the local
|
|
124
|
+
Axion Code session is open.
|
|
125
|
+
|
|
126
|
+
When remote-control is active, the TUI footer shows `mode remote-control` in
|
|
127
|
+
green with `Ctrl+U URL`. Press `Ctrl+U` to show and copy the active remote URL
|
|
128
|
+
again. Timeline text selection is terminal-native by default so URLs printed in
|
|
129
|
+
the chat area can be selected with the mouse and copied with the terminal copy
|
|
130
|
+
shortcut. For positional mouse capture, use `/settings mouse advanced`; return
|
|
131
|
+
to selection-first behavior with `/settings mouse text-select`.
|
|
132
|
+
|
|
133
|
+
## Native Browser And Computer-Use
|
|
134
|
+
|
|
135
|
+
`axion-code browser` is the native localhost navigation plugin. It can start a
|
|
136
|
+
workspace-contained dev server, open a localhost URL in a supervised Chrome/Edge
|
|
137
|
+
instance, inspect console logs, evaluate JavaScript, click/type by CSS selector
|
|
138
|
+
and save page screenshots.
|
|
139
|
+
|
|
140
|
+
Browser control is intentionally local-only: accepted hosts are `localhost`,
|
|
141
|
+
`127.0.0.1` and `[::1]`, with `localhost` normalized to `127.0.0.1` for Windows
|
|
142
|
+
dev-server reliability. CDP binds to `127.0.0.1` and uses an isolated profile
|
|
143
|
+
under `%USERPROFILE%\.axion\browser-control\profile`.
|
|
144
|
+
|
|
145
|
+
```powershell
|
|
146
|
+
axion-code browser dev start --command "npm run dev" --cwd . --json
|
|
147
|
+
axion-code browser open http://127.0.0.1:5173 --json
|
|
148
|
+
axion-code browser logs --duration 5s --json
|
|
149
|
+
axion-code browser eval --expr "document.title" --json
|
|
150
|
+
axion-code browser click --selector "button[type=submit]" --json
|
|
151
|
+
axion-code browser type --selector "input[name=q]" --text "Axion" --json
|
|
152
|
+
axion-code browser screenshot --path .context/runtime/browser/screenshot.png --json
|
|
153
|
+
axion-code browser dev stop --json
|
|
154
|
+
axion-code browser stop --json
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
`axion-code computer-use` is a guarded Windows MVP for desktop screenshot,
|
|
158
|
+
absolute-coordinate click, text entry and hotkeys. Mutating actions are
|
|
159
|
+
classified as high-risk browser-action tools and require approval unless the
|
|
160
|
+
active permission mode is `YOLO`.
|
|
161
|
+
|
|
162
|
+
```powershell
|
|
163
|
+
axion-code computer-use status --json
|
|
164
|
+
axion-code computer-use screenshot --path .context/runtime/computer-use/screenshot.png --json
|
|
165
|
+
axion-code computer-use click --x 100 --y 200 --json
|
|
166
|
+
axion-code computer-use type --text "hello" --json
|
|
167
|
+
axion-code computer-use hotkey --keys ctrl+l --json
|
|
168
|
+
```
|
|
169
|
+
|
|
111
170
|
## Install
|
|
112
|
-
|
|
113
|
-
Official install, after the package is published to the public npm registry:
|
|
171
|
+
|
|
172
|
+
Official install, after the package is published to the public npm registry:
|
|
114
173
|
|
|
115
174
|
```powershell
|
|
116
175
|
npm install -g @rnbsolucoes/axion-code
|
|
@@ -390,16 +449,17 @@ provider as a follow-up `tool_result` continuation turn, so the agent can use
|
|
|
390
449
|
the evidence before answering. Unsupported tools remain explicitly pending until
|
|
391
450
|
a dedicated adapter exists.
|
|
392
451
|
|
|
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,
|
|
397
|
-
`mcp__<server-id>__<tool-name
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
452
|
+
`axion tool run` exposes the guarded dispatcher surface. The CLI and TUI
|
|
453
|
+
currently support workspace-local `Read`, `Glob`, `Grep`, `Write` and `Edit`,
|
|
454
|
+
governed `Shell`/`Bash`/`PowerShell` commands that run from a workspace
|
|
455
|
+
directory with timeout and bounded output, enabled stdio MCP tools named as
|
|
456
|
+
`mcp__<server-id>__<tool-name>`, native localhost `browser_*` tools and guarded
|
|
457
|
+
Windows `computer_*` tools. Provider tool aliases such as `read_file`,
|
|
458
|
+
`write_file` and `run_command` are normalized to native tool names before
|
|
459
|
+
approval/execution. When the active permission mode requires approval, execution
|
|
460
|
+
is allowed only if the supplied approval is already approved and matches the
|
|
461
|
+
exact redacted tool request. Remote MCP transports, arbitrary process tools and
|
|
462
|
+
unknown tools remain unsupported even when an approval exists.
|
|
403
463
|
|
|
404
464
|
Examples:
|
|
405
465
|
|
|
@@ -491,12 +551,14 @@ This is a functional direction MVP, not the full harness:
|
|
|
491
551
|
placeholders; real CLI media generation remains deferred;
|
|
492
552
|
- terminal logo uses Sixel when available and falls back to width-bounded ANSI/block rendering;
|
|
493
553
|
- initial chat splash shows the Axion logo and system name until the first interaction;
|
|
494
|
-
- guarded dispatcher execution
|
|
495
|
-
`Grep`, `Write` and `Edit`, governed workspace-scoped shell commands
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
554
|
+
- guarded dispatcher execution includes workspace-local `Read`, `Glob`,
|
|
555
|
+
`Grep`, `Write` and `Edit`, governed workspace-scoped shell commands, enabled
|
|
556
|
+
stdio MCP tools, native localhost `browser_*` tools and guarded Windows
|
|
557
|
+
`computer_*` tools;
|
|
558
|
+
the TUI executes these after approval and shows the result, then feeds
|
|
559
|
+
successful supported results back into the provider as an iterative
|
|
560
|
+
`tool_result` continuation turn;
|
|
561
|
+
- remote MCP transports, arbitrary process control and unknown tools remain
|
|
562
|
+
blocked;
|
|
501
563
|
- no executable Pi RPC bridge yet;
|
|
502
564
|
- 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
|
|
Binary file
|