@oxagen/cli 0.6.3 → 1.0.0
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 +63 -9
- package/oxagen.mjs +144054 -68711
- package/package.json +4 -1
- package/tree-sitter-python.wasm +0 -0
- package/tree-sitter-typescript.wasm +0 -0
- package/tree-sitter.wasm +0 -0
package/README.md
CHANGED
|
@@ -37,13 +37,45 @@ usage — `oxagen <command> …`, pipes, and CI — is unaffected.
|
|
|
37
37
|
|
|
38
38
|
## Authentication
|
|
39
39
|
|
|
40
|
+
### Interactive (default)
|
|
41
|
+
|
|
42
|
+
Run `oxagen login` in a terminal. A browser window opens at
|
|
43
|
+
`https://app.oxagen.sh/cli/authorize`. After you approve, the CLI receives
|
|
44
|
+
the token via a local loopback callback and saves the session automatically.
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
oxagen login # opens browser, handles the full OAuth + PKCE flow
|
|
48
|
+
oxagen logout # clear the saved session
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### CI / headless
|
|
52
|
+
|
|
53
|
+
When running in a non-interactive environment (CI, Docker, SSH pipe), pass
|
|
54
|
+
`--token`, `--org`, and `--workspace` directly:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
oxagen login \
|
|
58
|
+
--token oxg_live_... \
|
|
59
|
+
--org my-org \
|
|
60
|
+
--workspace main
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
You can also set environment variables instead of flags (checked first, before
|
|
64
|
+
config file):
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
export OXAGEN_API_TOKEN=oxg_live_...
|
|
68
|
+
export OXAGEN_ORG_ID=my-org
|
|
69
|
+
export OXAGEN_WORKSPACE_ID=main
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Opt out of the browser on an interactive TTY
|
|
73
|
+
|
|
40
74
|
```bash
|
|
41
|
-
oxagen
|
|
42
|
-
oxagen auth whoami
|
|
43
|
-
oxagen auth logout
|
|
75
|
+
oxagen login --no-browser # prompts for token, org, and workspace inline
|
|
44
76
|
```
|
|
45
77
|
|
|
46
|
-
Your session is written to `~/.config/oxagen
|
|
78
|
+
Your session is written to `~/.config/oxagen/config.json` and reused by all subsequent commands.
|
|
47
79
|
|
|
48
80
|
## Real-world scenarios
|
|
49
81
|
|
|
@@ -251,7 +283,7 @@ oxagen automation list
|
|
|
251
283
|
## All commands
|
|
252
284
|
|
|
253
285
|
```
|
|
254
|
-
oxagen
|
|
286
|
+
oxagen login / logout
|
|
255
287
|
|
|
256
288
|
oxagen chat send
|
|
257
289
|
oxagen conversation list / rename / archive / delete / purge / chat
|
|
@@ -331,8 +363,30 @@ oxagen automation list
|
|
|
331
363
|
# Overrides env var with explicit flag
|
|
332
364
|
oxagen automation list --workspace ws_different456
|
|
333
365
|
|
|
334
|
-
# Authenticate and save defaults to config
|
|
335
|
-
oxagen
|
|
366
|
+
# Authenticate and save defaults to config (opens browser)
|
|
367
|
+
oxagen login
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
## Telemetry
|
|
373
|
+
|
|
374
|
+
The CLI collects anonymous usage telemetry (command names, durations, coarse
|
|
375
|
+
success/error categories, OS/arch) to improve the product. It **never**
|
|
376
|
+
collects code, prompts, file contents, file paths, model slugs, API keys, or
|
|
377
|
+
any other personal or identifying data — see [TELEMETRY.md](../../TELEMETRY.md)
|
|
378
|
+
for the exact field list.
|
|
379
|
+
|
|
380
|
+
Telemetry is **on by default**. Opt out any time:
|
|
381
|
+
|
|
382
|
+
```bash
|
|
383
|
+
oxagen telemetry off # persists the choice to ~/.config/oxagen/config.json
|
|
384
|
+
oxagen telemetry status # show enabled/disabled, install id, ingest endpoint
|
|
385
|
+
oxagen telemetry on # re-enable
|
|
386
|
+
|
|
387
|
+
# or, without touching config:
|
|
388
|
+
export OXAGEN_TELEMETRY=0
|
|
389
|
+
export DO_NOT_TRACK=1 # https://consoledonottrack.com/
|
|
336
390
|
```
|
|
337
391
|
|
|
338
392
|
---
|
|
@@ -349,7 +403,7 @@ npm install -g @oxagen/cli
|
|
|
349
403
|
**Auth failures** — clear and re-authenticate:
|
|
350
404
|
|
|
351
405
|
```bash
|
|
352
|
-
oxagen
|
|
406
|
+
oxagen logout && oxagen login
|
|
353
407
|
```
|
|
354
408
|
|
|
355
409
|
---
|
|
@@ -372,7 +426,7 @@ source edit is live on the next invocation, with no reinstall step:
|
|
|
372
426
|
```bash
|
|
373
427
|
oxagen --version
|
|
374
428
|
oxagen --help
|
|
375
|
-
oxagen
|
|
429
|
+
oxagen login
|
|
376
430
|
```
|
|
377
431
|
|
|
378
432
|
**How it works.** The installed binary is a symlink from a PATH directory
|