@drip-apex/apex-cli 0.15.3 → 0.16.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/AGENTS.md +17 -10
- package/README.md +47 -23
- package/dist/cli.js +2892 -351
- package/package.json +1 -1
- package/skills/apex-cli/SKILL.md +7 -0
package/package.json
CHANGED
package/skills/apex-cli/SKILL.md
CHANGED
|
@@ -5,6 +5,8 @@ description: Use the Apex CLI to build, inspect, QA, and hand off Apex experimen
|
|
|
5
5
|
|
|
6
6
|
# Apex CLI
|
|
7
7
|
|
|
8
|
+
If `apex` is not on the PATH, install it once with `npm install -g @drip-apex/apex-cli`, then call `apex`. Do not run `npx @drip-apex/apex-cli@latest` per command: npx contacts the npm registry before the CLI starts and hangs with no output when the registry is slow or blocked. `apex --help` and `apex schema --json` need no network.
|
|
9
|
+
|
|
8
10
|
Start by asking the installed CLI for its live contract:
|
|
9
11
|
|
|
10
12
|
```bash
|
|
@@ -63,9 +65,12 @@ but a human must launch from the dashboard approval surface.
|
|
|
63
65
|
- `3`: validation
|
|
64
66
|
- `4`: confirmation required; inspect `error.details.retry`
|
|
65
67
|
- `5`: conflict
|
|
68
|
+
- `6`: a check command reported a definite failing verdict
|
|
66
69
|
|
|
67
70
|
## Headless Behavior
|
|
68
71
|
|
|
72
|
+
Every JSON envelope may carry update and warnings. If update.required is true, or a warning has code cli_upgrade_required, first check whether the command succeeded (ok is true). If it succeeded, do not rerun it: run apex upgrade (or the command in update.command) before any further work. If it failed with the upgrade-required error (code cli_upgrade_required), run apex upgrade, then rerun the same command. Tell your user you upgraded. If only cli_update_available is present, finish the current task, then upgrade before the next one.
|
|
73
|
+
|
|
69
74
|
Do not wait for prompts in CI or agent runs. If a command returns exit `4`,
|
|
70
75
|
rerun with the exact flag named in the JSON error details only after checking
|
|
71
76
|
the plan or destructive action.
|
|
@@ -107,6 +112,8 @@ shop keys must match the requested identity before any backup or write.
|
|
|
107
112
|
|
|
108
113
|
Experiment references accept an ID, slug, or test key (for example `BIO-085`). Test keys resolve within the selected shop; use `--shop <shop-id>` to change it. Bare lowercase references remain slugs.
|
|
109
114
|
|
|
115
|
+
Commerce drafts live in typed `commerce/<kind>.json` files. Define each lever once, include every variation arm, and leave `serverOwned` unchanged.
|
|
116
|
+
|
|
110
117
|
Filesystem apply preserves authored local bytes by default. Use
|
|
111
118
|
`apex experiments apply <folder> --sync` to refresh them from stored server bytes.
|
|
112
119
|
The receipt's `files` contains SHA-256 digests for every pull path; `synced` reports
|