@codiac.io/codiac-cli 1.3.253 → 1.3.255
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 +556 -165
- package/dist/apis/codiac-relay/gen/client.d.ts +12 -1
- package/dist/apis/codiac-relay/gen/client.js +23 -0
- package/dist/apis/codiac-relay/gen/client.js.map +1 -1
- package/dist/apis/codiac-relay/gen/contracts/types.gen.d.ts +120 -0
- package/dist/apis/codiac-relay/gen/contracts/types.gen.js.map +1 -1
- package/dist/apis/codiac-relay/i-client.d.ts +11 -0
- package/dist/apis/codiac-relay-nats/gen/client.d.ts +15 -0
- package/dist/apis/codiac-relay-nats/gen/client.js +27 -0
- package/dist/apis/codiac-relay-nats/gen/client.js.map +1 -1
- package/dist/apis/codiac-relay-nats/gen/contracts/types.gen.d.ts +49 -0
- package/dist/commands/ai/model/attach.d.ts +37 -0
- package/dist/commands/ai/model/attach.js +173 -0
- package/dist/commands/ai/model/attach.js.map +1 -0
- package/dist/commands/ai/model/install.d.ts +105 -0
- package/dist/commands/ai/model/install.js +655 -0
- package/dist/commands/ai/model/install.js.map +1 -0
- package/dist/commands/ai/model/list.d.ts +37 -0
- package/dist/commands/ai/model/list.js +160 -0
- package/dist/commands/ai/model/list.js.map +1 -0
- package/dist/commands/ai/model/uninstall.d.ts +40 -0
- package/dist/commands/ai/model/uninstall.js +144 -0
- package/dist/commands/ai/model/uninstall.js.map +1 -0
- package/dist/commands/ai/model/view.d.ts +35 -0
- package/dist/commands/ai/model/view.js +143 -0
- package/dist/commands/ai/model/view.js.map +1 -0
- package/dist/commands/asset/create.js +5 -4
- package/dist/commands/asset/create.js.map +1 -1
- package/dist/commands/asset/edit.d.ts +9 -0
- package/dist/commands/asset/edit.js +38 -0
- package/dist/commands/asset/edit.js.map +1 -1
- package/dist/commands/imageRegistry/edit.d.ts +47 -0
- package/dist/commands/imageRegistry/edit.js +163 -0
- package/dist/commands/imageRegistry/edit.js.map +1 -0
- package/dist/uilogic/model-spec.d.ts +40 -0
- package/dist/uilogic/model-spec.js +71 -0
- package/dist/uilogic/model-spec.js.map +1 -0
- package/dist/uilogic/registry-resolver.d.ts +21 -0
- package/dist/uilogic/registry-resolver.js +42 -0
- package/dist/uilogic/registry-resolver.js.map +1 -0
- package/oclif.manifest.json +670 -1
- package/package.json +1 -1
- package/skill/references/cli-reference.md +1 -1
- package/skill/references/concepts.md +26 -3
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ Top-level: `branch`, `build`, `cli`, `commit`, `deploy`, `dep`, `identity`, `ini
|
|
|
33
33
|
- **filestore**: `capture`, `forget`, `list`
|
|
34
34
|
- **host**: `map`, `list`, `view`, `delete`
|
|
35
35
|
- **identity**: `list`, `delete`
|
|
36
|
-
- **imageRegistry**: `capture`, `forget`, `list`; `pullSecret set/unset`
|
|
36
|
+
- **imageRegistry**: `capture`, `edit`, `forget`, `list`; `pullSecret set/unset` *(`-r`/`--registry` and `--chart-repo` take the registry **code**, e.g. `devCodiacContainers`, NOT its url; `edit` fixes an existing registry's url in place)*
|
|
37
37
|
- **images**: `add`, `list`, `patch`, `remove`, `version`, `version bump`
|
|
38
38
|
- **import**: `cluster`
|
|
39
39
|
- **kit**: `create`
|
|
@@ -74,9 +74,32 @@ Lifecycle:
|
|
|
74
74
|
4. Inspect/operate: `cod asset list`, `cod asset view` (logs/term/exec/env/config/status),
|
|
75
75
|
`cod asset undeploy`, `cod asset recycle`.
|
|
76
76
|
|
|
77
|
-
**Image registries
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
**Image registries.** Never AWS ECR — images live in **Docker Hub** or **Azure Container
|
|
78
|
+
Registry (ACR)** (plus generic OCI registries like ghcr/quay/Harbor via provider `other`).
|
|
79
|
+
A registry is a first-class object with two fields you must **not** conflate:
|
|
80
|
+
|
|
81
|
+
- **`code`** — the Codiac identifier you reference everywhere: `-r`/`--registry` on
|
|
82
|
+
`asset create`, `--chart-repo`, `asset edit --registry`. Its shape depends on how it was
|
|
83
|
+
captured — Azure ACR → the resource name (`devCodiacContainers`); Docker Hub →
|
|
84
|
+
`DockerHub|<org>` (`DockerHub|codiacimages`); generic OCI → `Other|<label>` (`Other|ghcr`);
|
|
85
|
+
Helm repo → `helm|<provider>|<name>` (`helm|artifactHub|hermes-agent`).
|
|
86
|
+
- **`url`** — the registry endpoint (`devCodiacContainers.azurecr.io`, `index.docker.io`).
|
|
87
|
+
|
|
88
|
+
`-r`/`--registry` matches the **code**, never the url. Passing the url
|
|
89
|
+
(`devCodiacContainers.azurecr.io`) fails with *"No image registry has code […]"* — which
|
|
90
|
+
reads like it was never registered. **Always `cod imageRegistry list` first** to read the
|
|
91
|
+
exact code.
|
|
92
|
+
|
|
93
|
+
Managing them: `cod imageRegistry capture` (add — create-only; it *throws* if the code already
|
|
94
|
+
exists), `cod imageRegistry edit` (fix an existing registry's **url** or private/public in
|
|
95
|
+
place — `code`/`provider`/`type` are immutable), `cod imageRegistry forget` (drop the
|
|
96
|
+
reference), `cod imageRegistry list`, and `cod imageRegistry pullSecret set/unset` for auth.
|
|
97
|
+
`cod secretStore ...` holds the pull secrets themselves.
|
|
98
|
+
|
|
99
|
+
**Gotcha — assets snapshot their registry.** An asset stores a *copy* of `image.registry`
|
|
100
|
+
(url included) at create time, and the deploy path reads that copy, not the registry record.
|
|
101
|
+
So after `cod imageRegistry edit` corrects a url, already-created assets still carry the old
|
|
102
|
+
one — run `cod asset edit --registry <code>` on each to re-resolve its embedded reference.
|
|
80
103
|
|
|
81
104
|
The `type` of an asset (`helm` vs `service`) changes which config `targetFile`s apply (see §3):
|
|
82
105
|
`[helm]` values for charts, `[env]`/`[footprint]`/etc. for services.
|