@oxagen/cli 2.1.4-672 → 2.1.4-684

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.
Files changed (3) hide show
  1. package/README.md +29 -26
  2. package/oxagen.mjs +752 -1147
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -5,12 +5,8 @@ cost, run traces, knowledge-graph grounding, agent memory,
5
5
  environments, the credential vault, and audit logs — from the terminal.
6
6
 
7
7
  Oxagen **governs, grounds, explains, meters/bills and rates** agents; it does
8
- not run them ([ADR-043](../../docs/adr/ADR-043-runtime-excision.md)). The
9
- interactive coding agent this CLI used to ship — the REPL, sandboxes, skills,
10
- slash commands, evals, local rules and settings — is gone. Stella owns all
11
- things agentic: use the `stella` CLI with the oxagen MCP server. Every removed
12
- entry point stays registered as a stub that prints exactly that, so a stale
13
- script fails with guidance instead of an unknown-command error.
8
+ not run them ([ADR-043](../../docs/adr/ADR-043-runtime-excision.md)). Stella
9
+ owns all things agentic: use the `stella` CLI with the oxagen MCP server.
14
10
 
15
11
  Full reference: **https://docs.oxagen.sh/docs/cli**
16
12
 
@@ -19,9 +15,8 @@ Full reference: **https://docs.oxagen.sh/docs/cli**
19
15
  - **Owns:** the `oxagen` command tree (`src/program.ts`), the browser login
20
16
  with PKCE and a loopback listener (`src/auth/`), the local config and
21
17
  workspace binding (`src/lib/config.ts`, `.oxagen/workspace.json`), the HTTP
22
- client for the platform API (`src/lib/api.ts`), output formatting, the
23
- retirement stubs for the former coding-agent commands, and anonymous usage
24
- telemetry (`src/telemetry/usage.ts`).
18
+ client for the platform API (`src/lib/api.ts`), output formatting, and
19
+ anonymous usage telemetry (`src/telemetry/usage.ts`).
25
20
  - **Does not own:** any capability logic. Every command that reads or changes
26
21
  platform state calls [`apps/api`](../api/README.md) over HTTP, and the
27
22
  kernel runs there. It also does not own the work behind the machine
@@ -46,11 +41,10 @@ Full reference: **https://docs.oxagen.sh/docs/cli**
46
41
  |---|---|---|---|
47
42
  | Platform API client (`/v1/{org}/{workspace}/…`, `/v1/user/…`, bearer token) | boundary | `apps/cli/src/lib/api.ts` | Commands in `apps/cli/src/commands/`. Served by `apps/api/src/app.ts` |
48
43
  | Browser login (`/cli/authorize`, then `POST /v1/auth/cli/token`) | boundary | `apps/cli/src/auth/loopback-login.ts`, `pkce.ts` | `oxagen login` |
49
- | `CliDeps` from `defaultCliDeps` | adapter | `apps/cli/src/commands/tacho.ts` | `oxagen agent enroll`, `status`, `reassign`, `unenroll`, `export`, `verify`, `hosts`, `run`, and `detect`, and the hidden alias group that keeps the older spelling. The work lives in `@oxagen/recorder/cli` |
44
+ | `CliDeps` from `defaultCliDeps` | adapter | `apps/cli/src/commands/tacho.ts` | `oxagen agent enroll`, `status`, `reassign`, `unenroll`, `export`, `verify`, `hosts`, `run`, and `detect`. The work lives in `@oxagen/recorder/cli` |
50
45
  | Machine command dispatch | adapter | `apps/cli/src/index.ts`, `apps/cli/src/machine/` | `oxagen hook`, `daemon`, `mcp-stdio`, `credential`, `github`, and `arp`, which go straight to the recorder before the command tree loads. Hidden from `oxagen --help` |
51
46
  | `evaluateGate`, `renderGate`, `installHook` | adapter | `apps/cli/src/commands/steering.ts` | `oxagen steering …`, and each harness's prompt-submit hook |
52
47
  | Usage telemetry (`POST /v1/telemetry/usage`) | boundary | `apps/cli/src/telemetry/usage.ts` | Every command, unless `oxagen telemetry off` or `DO_NOT_TRACK=1` |
53
- | Retired command stubs | registry | `apps/cli/src/commands/retired.ts` | `apps/cli/src/program.ts` |
54
48
 
55
49
  The CLI bootstraps no kernel gate and registers no handler. Contracts that
56
50
  declare the `cli` surface are served through the API, and
@@ -70,8 +64,7 @@ for the capability or a command file names it.
70
64
 
71
65
  ## Rules
72
66
 
73
- - The CLI governs agents and runs none (ADR-043). A former coding-agent
74
- command stays registered as a stub that points to `stella`.
67
+ - The CLI governs agents and runs none (ADR-043).
75
68
  - Commands reach platform state through the API only, never through a
76
69
  database client or the kernel.
77
70
  - Telemetry never carries code, prompts, file contents, paths, model slugs,
@@ -145,8 +138,8 @@ command for its flags. The full command tree lives in
145
138
  `apps/cli/src/program.ts` and is documented at
146
139
  https://docs.oxagen.sh/docs/cli/commands.
147
140
 
148
- Everything except `cost`, `logs` and `telemetry` talks to the platform API and
149
- needs `oxagen login` first. `oxagen agent enroll` with a one-time enrollment
141
+ Everything except `cost`, `logs`, `telemetry` and `codegraph` talks to the
142
+ platform API and needs `oxagen login` first. `oxagen agent enroll` with a one-time enrollment
150
143
  token needs no login either.
151
144
 
152
145
  **Meter and bill**
@@ -159,6 +152,25 @@ oxagen cost --rates # print the rate card
159
152
  oxagen router stats|preview|policy # the verified-outcome market router
160
153
  ```
161
154
 
155
+ **Map the code** — the local code graph and CI upload
156
+
157
+ ```bash
158
+ oxagen codegraph init [path] # index a repo on this machine, watch it, and write the codegraph MCP entry
159
+ oxagen codegraph init --embed-url http://127.0.0.1:11434/v1/embeddings # embed through a server on this machine
160
+ oxagen codegraph init --scip # also build SCIP links
161
+ oxagen codegraph status # each local graph with its pin, build state, and pending jobs
162
+ oxagen codegraph rebuild [path] # build a fresh copy from the working tree
163
+ oxagen codegraph stop [path] # stop watching and remove the MCP entries; --purge deletes the local tables
164
+ oxagen codegraph upload --coverage "lcov=coverage/lcov.info" # CI: send coverage, reports, profiles, dumps, plans, and specs
165
+ ```
166
+
167
+ `init` needs an enrolled machine. The local graph never leaves the machine.
168
+ `upload` runs in CI and signs in with the CI provider's OIDC token, so it
169
+ needs no login. Its other flags are `--test-report`, `--runtime`,
170
+ `--schema-dump`, `--infra-plan`, `--api-spec`, `--environment`, `--api-url`,
171
+ and `--fail-on-unconnected`. Each file flag takes `source=pattern` lines and
172
+ can repeat. See https://docs.oxagen.sh/docs/cli/code-graph.
173
+
162
174
  **Explain** — traces and audit
163
175
 
164
176
  ```bash
@@ -213,17 +225,8 @@ oxagen telemetry [on|off|status] # anonymous usage telemetry (on by default)
213
225
  oxagen login / logout
214
226
  ```
215
227
 
216
- ### Retired commands
217
-
218
- `sandbox`, `sandbox-template`, `code`, `eval`, `file-lock`, `a2a`, `models`,
219
- `skill`, `prompt`, `command`, `rules`, `settings`, `config`, `mcp`, `import`,
220
- `pr`, `recover`, `lineage`, plus the interactive surfaces (`view`, `agents`, `solve`,
221
- `replay`, `fleet`) and a bare `oxagen "<prompt>"`. Each prints a
222
- retirement notice and exits non-zero. Use the `stella` CLI instead.
223
-
224
- The CLI no longer reads `.oxagen/settings.json` — that file configured the
225
- local coding agent. The only project-local state it writes is
226
- `.oxagen/workspace.json` (the org + workspace binding `oxagen init` creates).
228
+ The only project-local state the CLI writes is `.oxagen/workspace.json`, the
229
+ org and workspace binding that `oxagen init` creates.
227
230
 
228
231
  ## Configuration
229
232