@odla-ai/cli 0.5.0 → 0.6.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 +30 -9
- package/dist/bin.cjs +800 -400
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-7WZIZCGA.js → chunk-OERLHVLH.js} +805 -392
- package/dist/chunk-OERLHVLH.js.map +1 -0
- package/dist/index.cjs +808 -400
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +114 -5
- package/dist/index.d.ts +114 -5
- package/dist/index.js +9 -1
- package/llms.txt +146 -16
- package/package.json +5 -4
- package/skills/odla/SKILL.md +6 -2
- package/skills/odla/references/build.md +15 -2
- package/skills/odla/references/sdks.md +8 -5
- package/skills/odla-migrate/references/phase-2-db.md +2 -2
- package/skills/odla-migrate/references/phase-5-cutover.md +6 -2
- package/skills/odla-migrate/references/secrets-map.md +5 -0
- package/dist/chunk-7WZIZCGA.js.map +0 -1
package/README.md
CHANGED
|
@@ -7,9 +7,11 @@
|
|
|
7
7
|
|
|
8
8
|
Project-neutral provisioning CLI for odla apps. It creates and validates an
|
|
9
9
|
`odla.config.mjs`, then uses that config to register an app, enable services,
|
|
10
|
-
push odla-db schema/rules, configure
|
|
10
|
+
push odla-db schema/rules, configure per-app BYOK AI, configure Clerk auth, record
|
|
11
11
|
deployment links, provision o11y ingest credentials, and transfer local or
|
|
12
|
-
deployed Worker secrets without printing them.
|
|
12
|
+
deployed Worker secrets without printing them. It also gives platform admins a
|
|
13
|
+
scoped System AI control surface and gives app owners a provider-key-free
|
|
14
|
+
hosted security command.
|
|
13
15
|
|
|
14
16
|
It does not know about any specific app. App identity, environments, services,
|
|
15
17
|
schema, rules, auth, AI provider, and links all come from config.
|
|
@@ -27,8 +29,8 @@ For a project you keep working in, install it as a dev dependency so the
|
|
|
27
29
|
shorter `npx odla-ai` form works and the version is pinned by your lockfile:
|
|
28
30
|
|
|
29
31
|
```bash
|
|
30
|
-
npm view @odla-ai/cli@0.
|
|
31
|
-
npm i -D --save-exact @odla-ai/cli@0.
|
|
32
|
+
npm view @odla-ai/cli@0.6.0 version
|
|
33
|
+
npm i -D --save-exact @odla-ai/cli@0.6.0
|
|
32
34
|
```
|
|
33
35
|
|
|
34
36
|
## Prerequisites
|
|
@@ -57,6 +59,11 @@ npx odla-ai provision --dry-run
|
|
|
57
59
|
npx odla-ai provision --write-dev-vars --push-secrets
|
|
58
60
|
npx odla-ai smoke --env dev
|
|
59
61
|
npx odla-ai secrets push --env dev
|
|
62
|
+
npx odla-ai security run . --env dev --ack-redacted-source
|
|
63
|
+
npx odla-ai admin ai show
|
|
64
|
+
npx odla-ai admin ai set security.discovery --provider anthropic --model claude-opus-4-8 --enabled
|
|
65
|
+
npx odla-ai admin ai credentials
|
|
66
|
+
npx odla-ai admin ai credential set anthropic --from-env ANTHROPIC_API_KEY
|
|
60
67
|
npx odla-ai skill install
|
|
61
68
|
npx odla-ai version
|
|
62
69
|
```
|
|
@@ -117,17 +124,30 @@ when provisioning has not written `.odla/credentials.local.json`.
|
|
|
117
124
|
|
|
118
125
|
The bundled build/migration skills add a passive pre-ship gate with
|
|
119
126
|
`@odla-ai/security`: after the exact-version availability check, run
|
|
120
|
-
`npm i -D --save-exact @odla-ai/security@0.
|
|
127
|
+
`npm i -D --save-exact @odla-ai/security@0.2.0`, then
|
|
121
128
|
`npx odla-security scan . --profile odla --out .odla/security/pre-ship --fail-on high --fail-on-candidates critical`.
|
|
122
|
-
|
|
123
|
-
|
|
129
|
+
The passive scan remains a separate binary: it makes no model calls and does
|
|
130
|
+
not execute target code. After explicit redacted-source approval,
|
|
131
|
+
`odla-ai security run . --env dev --ack-redacted-source` adds hosted discovery
|
|
132
|
+
and independent validation. The CLI obtains/reuses app-owner auth and the
|
|
133
|
+
platform supplies bounded role grants; it never requests provider keys.
|
|
134
|
+
Early-access run ceilings are rolling; a `429` includes the platform's safe
|
|
135
|
+
retry hint, which the CLI surfaces without echoing arbitrary response text.
|
|
124
136
|
Before installing the exact release, require
|
|
125
|
-
`npm view @odla-ai/security@0.
|
|
137
|
+
`npm view @odla-ai/security@0.2.0 version` to succeed before installation. An
|
|
126
138
|
exact-version `E404` means the release is unavailable, not that the security
|
|
127
139
|
preflight passed, and does not prove the package name is absent. odla's own
|
|
128
140
|
engineering environment uses an equivalent internal gate; customer projects
|
|
129
141
|
should use the published `odla-security` command above.
|
|
130
142
|
|
|
143
|
+
`admin ai show|set|credentials|credential set` manages platform-funded System
|
|
144
|
+
AI (`o11y.triage`, `security.discovery`, `security.validation`). It uses a
|
|
145
|
+
separate, mode-`0600` `.odla/admin-token.local.json` cache. Studio displays the
|
|
146
|
+
exact scope, only an admin can approve it, and it expires after ~15 minutes;
|
|
147
|
+
the token never becomes ambient admin. Credential writes accept only
|
|
148
|
+
`--from-env <NAME>` or `--stdin` and never place the value in argv, output, or
|
|
149
|
+
the cache. System AI and each app's BYOK AI are separate vault/funding paths.
|
|
150
|
+
|
|
131
151
|
`secrets push --env <env>` is the narrower recovery/retry command. It moves the
|
|
132
152
|
configured env's odla-db key and/or o11y ingest token from
|
|
133
153
|
`.odla/credentials.local.json` into the deployed Worker by piping each value
|
|
@@ -149,7 +169,8 @@ agent owns application semantics: installing `@odla-ai/o11y`, wrapping the
|
|
|
149
169
|
Worker with `withObservability`, and choosing useful spans, metrics, errors, and
|
|
150
170
|
LLM-usage records. The human owns the device approval, production consent, and
|
|
151
171
|
explicit destructive rotation. Studio is where people view telemetry and
|
|
152
|
-
perform manual recovery
|
|
172
|
+
perform manual recovery, configure System AI, and inspect app/run-attributed
|
|
173
|
+
platform usage; its o11y token control is not the normal setup path.
|
|
153
174
|
Run `npx odla-ai capabilities` for the human-readable contract or add `--json`
|
|
154
175
|
when an agent or tool needs to branch on it without scraping prose.
|
|
155
176
|
|