@rnbsolucoes/axion-code 0.1.28 → 0.1.31
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
|
@@ -42,6 +42,8 @@ axion-code provider profile set or-free
|
|
|
42
42
|
axion-code provider profile delete or-free
|
|
43
43
|
axion-code provider profile active
|
|
44
44
|
axion-code provider model list openrouter --json
|
|
45
|
+
axion-code provider cost set openrouter --model openai/gpt-5-mini --max-usd 0.25 --input-usd-per-1m 0.25 --output-usd-per-1m 2 --max-output-tokens 4000
|
|
46
|
+
axion-code provider cost status --profile openrouter --model openai/gpt-5-mini --json
|
|
45
47
|
axion-code provider test openrouter google/gemini-2.5-flash-lite
|
|
46
48
|
axion-code permission list --json
|
|
47
49
|
axion-code permission set full_permission
|
|
@@ -64,6 +66,7 @@ axion-code agents run bug-hunter "review this login flow"
|
|
|
64
66
|
axion-code agents run-many bug-hunter,performance-reviewer "review this login flow" --budget-tokens 2000 --stream
|
|
65
67
|
axion-code learn --json
|
|
66
68
|
axion-code package inspect <path>
|
|
69
|
+
axion-code package self-check --json
|
|
67
70
|
```
|
|
68
71
|
|
|
69
72
|
## Install
|
|
@@ -103,6 +106,18 @@ current platform into the local Axion Code bin directory and then executes it. I
|
|
|
103
106
|
a source clone only, if no packaged binary exists, the wrapper can build from Go
|
|
104
107
|
as a development fallback.
|
|
105
108
|
|
|
109
|
+
To classify the currently executed binary for support or security review, run:
|
|
110
|
+
|
|
111
|
+
```powershell
|
|
112
|
+
axion package self-check --json
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
The self-check reports the executable path, real path, runtime version,
|
|
116
|
+
SHA-256, file size, package cache marker when present and a provenance
|
|
117
|
+
classification such as `npm-wrapper-cache`, `npm-package-release`,
|
|
118
|
+
`source-build` or `unknown-local-binary`. It is deterministic local
|
|
119
|
+
provenance, not a replacement for future Authenticode signing.
|
|
120
|
+
|
|
106
121
|
Requirements:
|
|
107
122
|
|
|
108
123
|
- Node.js 18+ for the npm wrapper.
|
|
@@ -173,10 +188,21 @@ Axion Code selection is isolated:
|
|
|
173
188
|
%USERPROFILE%\.axion\mcp-servers.json
|
|
174
189
|
%USERPROFILE%\.axion\plugins.json
|
|
175
190
|
%USERPROFILE%\.axion\sub-agents.json
|
|
191
|
+
%USERPROFILE%\.axion\harness\cost-policy.json
|
|
176
192
|
```
|
|
177
193
|
|
|
178
194
|
OpenRouter uses `OPENROUTER_API_KEY` from the environment or a `secret:<NAME>` reference stored in `C:\Israel\Pesoal\secrets.env` (override for tests: `AXION_SECRETS_ENV`). Provider profile config stores only references, never the key value.
|
|
179
195
|
|
|
196
|
+
Provider-specific cost ceilings are stored outside the Desktop profile schema in
|
|
197
|
+
`%USERPROFILE%\.axion\harness\cost-policy.json`. Use `provider cost set` to
|
|
198
|
+
bind a ceiling and token prices to a profile or profile/model pair. The runtime
|
|
199
|
+
blocks a request before provider execution when the estimated input or configured
|
|
200
|
+
maximum output cost would exceed the ceiling. After a response, actual
|
|
201
|
+
input/output usage is converted to cost and surfaced in provider/subagent stream
|
|
202
|
+
telemetry; if actual cost exceeds the ceiling, the turn returns an explicit cost
|
|
203
|
+
ceiling error. A ceiling without token prices is not enforced, because Axion Code
|
|
204
|
+
does not infer provider pricing silently.
|
|
205
|
+
|
|
180
206
|
For test/dev isolation, set `AXION_HOME` to a temporary folder. In normal use,
|
|
181
207
|
leave it unset so Desktop and CLI share the same provider catalog while keeping
|
|
182
208
|
their active provider/model selections independent.
|
|
@@ -355,6 +381,20 @@ axion provider profile set or-free
|
|
|
355
381
|
axion
|
|
356
382
|
```
|
|
357
383
|
|
|
384
|
+
Nexus profiles share the same `%USERPROFILE%\.axion\harness\nexus-config.json`
|
|
385
|
+
used by Axion Desktop. The default `fusion` engine runs the existing
|
|
386
|
+
panel -> judge -> final flow. The `pcp` engine enables the text-only
|
|
387
|
+
Maestro/workers loop from the new Desktop Nexus provider:
|
|
388
|
+
|
|
389
|
+
```powershell
|
|
390
|
+
axion provider nexus status --profile nexus
|
|
391
|
+
axion provider nexus set --profile pcp-nexus --engine pcp --judge-kind sakana --judge sakana:fugu --exec3 mock:mock/worker --exec3-instruction "general text worker"
|
|
392
|
+
```
|
|
393
|
+
|
|
394
|
+
PCP in the CLI currently supports Maestro tool-calling with text workers
|
|
395
|
+
`exec3` and `exec4`. Image/video generative slots are preserved in the shared
|
|
396
|
+
schema for Desktop compatibility but are not executed by the CLI yet.
|
|
397
|
+
|
|
358
398
|
## Build
|
|
359
399
|
|
|
360
400
|
```powershell
|
|
@@ -369,8 +409,10 @@ If Go is not on PATH, use a verified local Go toolchain and keep generated binar
|
|
|
369
409
|
This is a functional direction MVP, not the full harness:
|
|
370
410
|
|
|
371
411
|
- direct provider streaming exists for OpenAI-compatible chat completions,
|
|
372
|
-
OpenAI Responses and Anthropic Messages;
|
|
373
|
-
|
|
412
|
+
OpenAI Responses and Anthropic Messages;
|
|
413
|
+
- Nexus supports the legacy Fusion engine and the new PCP text-only
|
|
414
|
+
Maestro/workers engine; Nexus streaming normalization, judge telemetry,
|
|
415
|
+
redaction/audit surfacing and image/video workers remain deferred;
|
|
374
416
|
- terminal logo uses Sixel when available and falls back to width-bounded ANSI/block rendering;
|
|
375
417
|
- initial chat splash shows the Axion logo and system name until the first interaction;
|
|
376
418
|
- guarded dispatcher execution is limited to workspace-local `Read`, `Glob`,
|
|
@@ -381,4 +423,4 @@ This is a functional direction MVP, not the full harness:
|
|
|
381
423
|
`tool_result` continuation turn;
|
|
382
424
|
- remote MCP transports, browser, process and unknown tools remain blocked;
|
|
383
425
|
- no executable Pi RPC bridge yet;
|
|
384
|
-
- 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
|
|
426
|
+
- 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
|