@codiac.io/codiac-cli 1.3.252 → 1.3.254

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 (33) hide show
  1. package/README.md +502 -163
  2. package/dist/apis/codiac-relay/gen/client.d.ts +12 -1
  3. package/dist/apis/codiac-relay/gen/client.js +23 -0
  4. package/dist/apis/codiac-relay/gen/client.js.map +1 -1
  5. package/dist/apis/codiac-relay/gen/contracts/types.gen.d.ts +120 -0
  6. package/dist/apis/codiac-relay/gen/contracts/types.gen.js.map +1 -1
  7. package/dist/apis/codiac-relay/i-client.d.ts +11 -0
  8. package/dist/apis/codiac-relay-nats/gen/client.d.ts +15 -0
  9. package/dist/apis/codiac-relay-nats/gen/client.js +27 -0
  10. package/dist/apis/codiac-relay-nats/gen/client.js.map +1 -1
  11. package/dist/apis/codiac-relay-nats/gen/contracts/types.gen.d.ts +49 -0
  12. package/dist/commands/ai/model/attach.d.ts +37 -0
  13. package/dist/commands/ai/model/attach.js +173 -0
  14. package/dist/commands/ai/model/attach.js.map +1 -0
  15. package/dist/commands/ai/model/install.d.ts +105 -0
  16. package/dist/commands/ai/model/install.js +655 -0
  17. package/dist/commands/ai/model/install.js.map +1 -0
  18. package/dist/commands/ai/model/list.d.ts +37 -0
  19. package/dist/commands/ai/model/list.js +160 -0
  20. package/dist/commands/ai/model/list.js.map +1 -0
  21. package/dist/commands/ai/model/uninstall.d.ts +40 -0
  22. package/dist/commands/ai/model/uninstall.js +144 -0
  23. package/dist/commands/ai/model/uninstall.js.map +1 -0
  24. package/dist/commands/ai/model/view.d.ts +35 -0
  25. package/dist/commands/ai/model/view.js +143 -0
  26. package/dist/commands/ai/model/view.js.map +1 -0
  27. package/dist/commands/host/map.js +7 -1
  28. package/dist/commands/host/map.js.map +1 -1
  29. package/dist/uilogic/model-spec.d.ts +40 -0
  30. package/dist/uilogic/model-spec.js +71 -0
  31. package/dist/uilogic/model-spec.js.map +1 -0
  32. package/oclif.manifest.json +568 -1
  33. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.252",
2
+ "version": "1.3.254",
3
3
  "commands": {
4
4
  "branch": {
5
5
  "id": "branch",
@@ -9929,6 +9929,573 @@
9929
9929
  },
9930
9930
  "args": {}
9931
9931
  },
9932
+ "ai:model:attach": {
9933
+ "id": "ai:model:attach",
9934
+ "description": "Wires an already-provisioned model into an already-installed agent (writes the model endpoint onto the agent and redeploys it so it uses the private model).",
9935
+ "strict": true,
9936
+ "pluginName": "@codiac.io/codiac-cli",
9937
+ "pluginAlias": "@codiac.io/codiac-cli",
9938
+ "pluginType": "core",
9939
+ "aliases": [],
9940
+ "hiddenAliases": [],
9941
+ "examples": [
9942
+ {
9943
+ "description": "Wire the qwen3-dev model into the hermes-agent in the dev cabinet.",
9944
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev --agent hermes-agent -c dev"
9945
+ },
9946
+ {
9947
+ "description": "Non-interactive (scripted) invocation.",
9948
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev --agent hermes-agent -c dev --silent"
9949
+ }
9950
+ ],
9951
+ "flags": {
9952
+ "help": {
9953
+ "name": "help",
9954
+ "type": "boolean",
9955
+ "char": "h",
9956
+ "description": "Show CLI help.",
9957
+ "allowNo": false
9958
+ },
9959
+ "enterpriseCode": {
9960
+ "name": "enterpriseCode",
9961
+ "type": "option",
9962
+ "char": "e",
9963
+ "description": "Code name identifying the target enterprise.",
9964
+ "required": false,
9965
+ "multiple": false
9966
+ },
9967
+ "model": {
9968
+ "name": "model",
9969
+ "type": "option",
9970
+ "char": "m",
9971
+ "description": "Handle of the provisioned model to wire in.",
9972
+ "multiple": false
9973
+ },
9974
+ "agent": {
9975
+ "name": "agent",
9976
+ "type": "option",
9977
+ "description": "Name of the already-installed agent to wire the model into.",
9978
+ "multiple": false
9979
+ },
9980
+ "cabinet": {
9981
+ "name": "cabinet",
9982
+ "type": "option",
9983
+ "char": "c",
9984
+ "description": "Cabinet the model and agent are deployed in.",
9985
+ "multiple": false
9986
+ },
9987
+ "silent": {
9988
+ "name": "silent",
9989
+ "type": "boolean",
9990
+ "description": "Executes without any user interaction; fails on missing or invalid arguments.",
9991
+ "allowNo": false,
9992
+ "exclusive": [
9993
+ "echo",
9994
+ "to-script"
9995
+ ]
9996
+ },
9997
+ "echo": {
9998
+ "name": "echo",
9999
+ "type": "boolean",
10000
+ "description": "Renders the equivalent non-interactive command for future use before executing.",
10001
+ "allowNo": false,
10002
+ "exclusive": [
10003
+ "to-script",
10004
+ "silent"
10005
+ ]
10006
+ },
10007
+ "to-script": {
10008
+ "name": "to-script",
10009
+ "type": "boolean",
10010
+ "description": "Renders the equivalent non-interactive command without executing it.",
10011
+ "allowNo": false,
10012
+ "exclusive": [
10013
+ "echo",
10014
+ "silent"
10015
+ ]
10016
+ }
10017
+ },
10018
+ "args": {}
10019
+ },
10020
+ "ai:model:install": {
10021
+ "id": "ai:model:install",
10022
+ "description": "Provisions a private LLM into an enterprise cabinet — either an in-cluster (ClusterIP-only) catalog model served via Ollama, or a registered bring-your-own OpenAI-compatible endpoint.",
10023
+ "strict": true,
10024
+ "pluginName": "@codiac.io/codiac-cli",
10025
+ "pluginAlias": "@codiac.io/codiac-cli",
10026
+ "pluginType": "core",
10027
+ "aliases": [],
10028
+ "hiddenAliases": [],
10029
+ "examples": [
10030
+ {
10031
+ "description": "Serve the Qwen3 catalog model (CPU) into the dev cabinet of the ben enterprise.",
10032
+ "command": "<%= config.bin %> <%= command.id %> -e ben --source served -m qwen3 --runtime cpu -c dev"
10033
+ },
10034
+ {
10035
+ "description": "Non-interactive (scripted) served install; a served model needs both --model and --runtime.",
10036
+ "command": "<%= config.bin %> <%= command.id %> -e ben --source served -m qwen3 --runtime cpu -c dev --attach none --silent"
10037
+ },
10038
+ {
10039
+ "description": "Register a BYO OpenAI-compatible endpoint and attach it to an existing agent.",
10040
+ "command": "<%= config.bin %> <%= command.id %> -e ben --source byo --base-url https://host/v1 --key sk-... -c dev --attach existing --agent hermes-agent --silent"
10041
+ },
10042
+ {
10043
+ "description": "Renders the equivalent silent command and then executes.",
10044
+ "command": "<%= config.bin %> <%= command.id %> -e ben --source served -m qwen3 --runtime cpu -c dev --echo"
10045
+ },
10046
+ {
10047
+ "description": "Renders the equivalent silent command without executing.",
10048
+ "command": "<%= config.bin %> <%= command.id %> -e ben --source served -m qwen3 --runtime cpu -c dev --to-script"
10049
+ }
10050
+ ],
10051
+ "flags": {
10052
+ "help": {
10053
+ "name": "help",
10054
+ "type": "boolean",
10055
+ "char": "h",
10056
+ "description": "Show CLI help.",
10057
+ "allowNo": false
10058
+ },
10059
+ "enterpriseCode": {
10060
+ "name": "enterpriseCode",
10061
+ "type": "option",
10062
+ "char": "e",
10063
+ "description": "Code name identifying the target enterprise.",
10064
+ "required": false,
10065
+ "multiple": false
10066
+ },
10067
+ "source": {
10068
+ "name": "source",
10069
+ "type": "option",
10070
+ "description": "Serve a license-clean catalog model in-cluster (served) or register an external OpenAI-compatible endpoint (byo).",
10071
+ "multiple": false,
10072
+ "options": [
10073
+ "served",
10074
+ "byo"
10075
+ ]
10076
+ },
10077
+ "model": {
10078
+ "name": "model",
10079
+ "type": "option",
10080
+ "char": "m",
10081
+ "description": "Catalog model kind to serve when --source served (one of: qwen3, gpt-oss, glm, deepseek-r1).",
10082
+ "multiple": false
10083
+ },
10084
+ "runtime": {
10085
+ "name": "runtime",
10086
+ "type": "option",
10087
+ "description": "Compute tier for a served model: cpu-only, or scheduled onto a GPU node pool.",
10088
+ "multiple": false,
10089
+ "options": [
10090
+ "cpu",
10091
+ "gpu"
10092
+ ]
10093
+ },
10094
+ "base-url": {
10095
+ "name": "base-url",
10096
+ "type": "option",
10097
+ "description": "OpenAI-compatible base URL of the endpoint to register when --source byo (e.g. https://host/v1).",
10098
+ "multiple": false
10099
+ },
10100
+ "key": {
10101
+ "name": "key",
10102
+ "type": "option",
10103
+ "description": "API key for the BYO endpoint (prompted as a secret during install when omitted; stored server-side as a secret).",
10104
+ "multiple": false
10105
+ },
10106
+ "cabinet": {
10107
+ "name": "cabinet",
10108
+ "type": "option",
10109
+ "char": "c",
10110
+ "description": "Cabinet (environment) the model is deployed into (served) or registered against (byo).",
10111
+ "multiple": false
10112
+ },
10113
+ "name": {
10114
+ "name": "name",
10115
+ "type": "option",
10116
+ "char": "n",
10117
+ "description": "Handle for the model workload (server-assigns a default when omitted).",
10118
+ "multiple": false
10119
+ },
10120
+ "attach": {
10121
+ "name": "attach",
10122
+ "type": "option",
10123
+ "description": "Wire the model to an agent once ready: attach to an existing agent, install a new one, or neither (defaults to none).",
10124
+ "multiple": false,
10125
+ "options": [
10126
+ "existing",
10127
+ "new",
10128
+ "none"
10129
+ ]
10130
+ },
10131
+ "agent": {
10132
+ "name": "agent",
10133
+ "type": "option",
10134
+ "description": "Name of the already-installed agent to wire the model into (required with --attach existing).",
10135
+ "multiple": false
10136
+ },
10137
+ "framework": {
10138
+ "name": "framework",
10139
+ "type": "option",
10140
+ "description": "Agent framework to install and wire to the model (required with --attach new).",
10141
+ "multiple": false
10142
+ },
10143
+ "input": {
10144
+ "name": "input",
10145
+ "type": "option",
10146
+ "description": "Pre-supply a needs_action input as key=value (repeatable), e.g. --input skipReachabilityCheck=true . Lets --silent/headless runs resolve secret/decision prompts without interaction.",
10147
+ "multiple": true
10148
+ },
10149
+ "take-defaults": {
10150
+ "name": "take-defaults",
10151
+ "type": "boolean",
10152
+ "description": "Prevents prompting for confirmation on parameters that were passed in or were automatically set to default values (Irrelevant in --silent mode). This behavior does NOT apply to scenarios where the command needs to override invalid user input; such cases will always prompt for confirmation.",
10153
+ "allowNo": false,
10154
+ "exclusive": [
10155
+ "silent"
10156
+ ]
10157
+ },
10158
+ "silent": {
10159
+ "name": "silent",
10160
+ "type": "boolean",
10161
+ "description": "Executes without any user interaction; fails on missing or invalid arguments.",
10162
+ "allowNo": false,
10163
+ "exclusive": [
10164
+ "echo",
10165
+ "to-script"
10166
+ ]
10167
+ },
10168
+ "echo": {
10169
+ "name": "echo",
10170
+ "type": "boolean",
10171
+ "description": "Renders the equivalent non-interactive command for future use before executing.",
10172
+ "allowNo": false,
10173
+ "exclusive": [
10174
+ "to-script",
10175
+ "silent"
10176
+ ]
10177
+ },
10178
+ "to-script": {
10179
+ "name": "to-script",
10180
+ "type": "boolean",
10181
+ "description": "Renders the equivalent non-interactive command without executing it.",
10182
+ "allowNo": false,
10183
+ "exclusive": [
10184
+ "echo",
10185
+ "silent"
10186
+ ]
10187
+ }
10188
+ },
10189
+ "args": {}
10190
+ },
10191
+ "ai:model:list": {
10192
+ "id": "ai:model:list",
10193
+ "description": "Lists the private models provisioned for an enterprise — both in-cluster (served) catalog models and registered bring-your-own (BYO) OpenAI-compatible endpoints.",
10194
+ "strict": true,
10195
+ "pluginName": "@codiac.io/codiac-cli",
10196
+ "pluginAlias": "@codiac.io/codiac-cli",
10197
+ "pluginType": "core",
10198
+ "aliases": [
10199
+ "ai:model:ls"
10200
+ ],
10201
+ "hiddenAliases": [],
10202
+ "examples": [
10203
+ {
10204
+ "description": "Simple listing for an enterprise.",
10205
+ "command": "<%= config.bin %> <%= command.id %> -e ben"
10206
+ },
10207
+ {
10208
+ "description": "Only the models in one cabinet.",
10209
+ "command": "<%= config.bin %> <%= command.id %> -e ben -c dev"
10210
+ },
10211
+ {
10212
+ "description": "Handles only.",
10213
+ "command": "<%= config.bin %> <%= command.id %> -e ben -q '[].handle'"
10214
+ },
10215
+ {
10216
+ "description": "Filter to served models.",
10217
+ "command": "<%= config.bin %> <%= command.id %> -e ben -q \"[?mode == 'served']\""
10218
+ },
10219
+ {
10220
+ "description": "Export as YAML.",
10221
+ "command": "<%= config.bin %> <%= command.id %> -e ben -o yaml"
10222
+ },
10223
+ {
10224
+ "description": "Non-interactive invocation.",
10225
+ "command": "<%= config.bin %> <%= command.id %> -e ben --silent"
10226
+ }
10227
+ ],
10228
+ "flags": {
10229
+ "help": {
10230
+ "name": "help",
10231
+ "type": "boolean",
10232
+ "char": "h",
10233
+ "description": "Show CLI help.",
10234
+ "allowNo": false
10235
+ },
10236
+ "enterpriseCode": {
10237
+ "name": "enterpriseCode",
10238
+ "type": "option",
10239
+ "char": "e",
10240
+ "description": "Code name identifying the target enterprise.",
10241
+ "required": false,
10242
+ "multiple": false
10243
+ },
10244
+ "cabinet": {
10245
+ "name": "cabinet",
10246
+ "type": "option",
10247
+ "char": "c",
10248
+ "description": "Restrict the listing to one cabinet (also resolves served endpoints to that cabinet's in-cluster service DNS).",
10249
+ "multiple": false
10250
+ },
10251
+ "output": {
10252
+ "name": "output",
10253
+ "type": "option",
10254
+ "char": "o",
10255
+ "description": "Format in which to render the results.",
10256
+ "multiple": false,
10257
+ "options": [
10258
+ "text",
10259
+ "tree",
10260
+ "json",
10261
+ "yaml",
10262
+ "tsv",
10263
+ "csv"
10264
+ ]
10265
+ },
10266
+ "query": {
10267
+ "name": "query",
10268
+ "type": "option",
10269
+ "char": "q",
10270
+ "description": "JMESPath expression to filter or reshape the results (see jmespath.org).",
10271
+ "multiple": false
10272
+ },
10273
+ "silent": {
10274
+ "name": "silent",
10275
+ "type": "boolean",
10276
+ "description": "Executes without any user interaction; fails on missing or invalid arguments.",
10277
+ "allowNo": false,
10278
+ "exclusive": [
10279
+ "echo",
10280
+ "to-script"
10281
+ ]
10282
+ },
10283
+ "echo": {
10284
+ "name": "echo",
10285
+ "type": "boolean",
10286
+ "description": "Renders the equivalent non-interactive command for future use before executing.",
10287
+ "allowNo": false,
10288
+ "exclusive": [
10289
+ "to-script",
10290
+ "silent"
10291
+ ]
10292
+ },
10293
+ "to-script": {
10294
+ "name": "to-script",
10295
+ "type": "boolean",
10296
+ "description": "Renders the equivalent non-interactive command without executing it.",
10297
+ "allowNo": false,
10298
+ "exclusive": [
10299
+ "echo",
10300
+ "silent"
10301
+ ]
10302
+ }
10303
+ },
10304
+ "args": {}
10305
+ },
10306
+ "ai:model:uninstall": {
10307
+ "id": "ai:model:uninstall",
10308
+ "description": "Removes a provisioned model. A served (in-cluster) model is undeployed from its cabinet (its asset is destroyed); BYO endpoints are not yet removable here.",
10309
+ "strict": true,
10310
+ "pluginName": "@codiac.io/codiac-cli",
10311
+ "pluginAlias": "@codiac.io/codiac-cli",
10312
+ "pluginType": "core",
10313
+ "aliases": [
10314
+ "ai:model:remove"
10315
+ ],
10316
+ "hiddenAliases": [],
10317
+ "examples": [
10318
+ {
10319
+ "description": "Undeploy the served qwen3-dev model from the dev cabinet.",
10320
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev -c dev"
10321
+ },
10322
+ {
10323
+ "description": "Non-interactive (scripted) invocation.",
10324
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev -c dev --silent"
10325
+ }
10326
+ ],
10327
+ "flags": {
10328
+ "help": {
10329
+ "name": "help",
10330
+ "type": "boolean",
10331
+ "char": "h",
10332
+ "description": "Show CLI help.",
10333
+ "allowNo": false
10334
+ },
10335
+ "enterpriseCode": {
10336
+ "name": "enterpriseCode",
10337
+ "type": "option",
10338
+ "char": "e",
10339
+ "description": "Code name identifying the target enterprise.",
10340
+ "required": false,
10341
+ "multiple": false
10342
+ },
10343
+ "model": {
10344
+ "name": "model",
10345
+ "type": "option",
10346
+ "char": "m",
10347
+ "description": "Handle of the model to remove.",
10348
+ "multiple": false
10349
+ },
10350
+ "cabinet": {
10351
+ "name": "cabinet",
10352
+ "type": "option",
10353
+ "char": "c",
10354
+ "description": "Cabinet the model was deployed into (served) or registered against (byo).",
10355
+ "multiple": false
10356
+ },
10357
+ "silent": {
10358
+ "name": "silent",
10359
+ "type": "boolean",
10360
+ "description": "Executes without any user interaction; fails on missing or invalid arguments.",
10361
+ "allowNo": false,
10362
+ "exclusive": [
10363
+ "echo",
10364
+ "to-script"
10365
+ ]
10366
+ },
10367
+ "echo": {
10368
+ "name": "echo",
10369
+ "type": "boolean",
10370
+ "description": "Renders the equivalent non-interactive command for future use before executing.",
10371
+ "allowNo": false,
10372
+ "exclusive": [
10373
+ "to-script",
10374
+ "silent"
10375
+ ]
10376
+ },
10377
+ "to-script": {
10378
+ "name": "to-script",
10379
+ "type": "boolean",
10380
+ "description": "Renders the equivalent non-interactive command without executing it.",
10381
+ "allowNo": false,
10382
+ "exclusive": [
10383
+ "echo",
10384
+ "silent"
10385
+ ]
10386
+ }
10387
+ },
10388
+ "args": {}
10389
+ },
10390
+ "ai:model:view": {
10391
+ "id": "ai:model:view",
10392
+ "description": "Shows the details of a single provisioned model (served or BYO) by its handle.",
10393
+ "strict": true,
10394
+ "pluginName": "@codiac.io/codiac-cli",
10395
+ "pluginAlias": "@codiac.io/codiac-cli",
10396
+ "pluginType": "core",
10397
+ "aliases": [],
10398
+ "hiddenAliases": [],
10399
+ "examples": [
10400
+ {
10401
+ "description": "View a model by handle.",
10402
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev"
10403
+ },
10404
+ {
10405
+ "description": "View as JSON.",
10406
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev -o json"
10407
+ },
10408
+ {
10409
+ "description": "Just the endpoint.",
10410
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev -q endpoint"
10411
+ },
10412
+ {
10413
+ "description": "Non-interactive invocation.",
10414
+ "command": "<%= config.bin %> <%= command.id %> -e ben -m qwen3-dev --silent"
10415
+ }
10416
+ ],
10417
+ "flags": {
10418
+ "help": {
10419
+ "name": "help",
10420
+ "type": "boolean",
10421
+ "char": "h",
10422
+ "description": "Show CLI help.",
10423
+ "allowNo": false
10424
+ },
10425
+ "enterpriseCode": {
10426
+ "name": "enterpriseCode",
10427
+ "type": "option",
10428
+ "char": "e",
10429
+ "description": "Code name identifying the target enterprise.",
10430
+ "required": false,
10431
+ "multiple": false
10432
+ },
10433
+ "model": {
10434
+ "name": "model",
10435
+ "type": "option",
10436
+ "char": "m",
10437
+ "description": "Handle of the model to view.",
10438
+ "multiple": false
10439
+ },
10440
+ "cabinet": {
10441
+ "name": "cabinet",
10442
+ "type": "option",
10443
+ "char": "c",
10444
+ "description": "Cabinet the model lives in (resolves a served endpoint to that cabinet's in-cluster service DNS).",
10445
+ "multiple": false
10446
+ },
10447
+ "output": {
10448
+ "name": "output",
10449
+ "type": "option",
10450
+ "char": "o",
10451
+ "description": "Format in which to render the result.",
10452
+ "multiple": false,
10453
+ "options": [
10454
+ "text",
10455
+ "json",
10456
+ "yaml"
10457
+ ]
10458
+ },
10459
+ "query": {
10460
+ "name": "query",
10461
+ "type": "option",
10462
+ "char": "q",
10463
+ "description": "JMESPath expression to reshape the result (see jmespath.org).",
10464
+ "multiple": false
10465
+ },
10466
+ "silent": {
10467
+ "name": "silent",
10468
+ "type": "boolean",
10469
+ "description": "Executes without any user interaction; fails on missing or invalid arguments.",
10470
+ "allowNo": false,
10471
+ "exclusive": [
10472
+ "echo",
10473
+ "to-script"
10474
+ ]
10475
+ },
10476
+ "echo": {
10477
+ "name": "echo",
10478
+ "type": "boolean",
10479
+ "description": "Renders the equivalent non-interactive command for future use before executing.",
10480
+ "allowNo": false,
10481
+ "exclusive": [
10482
+ "to-script",
10483
+ "silent"
10484
+ ]
10485
+ },
10486
+ "to-script": {
10487
+ "name": "to-script",
10488
+ "type": "boolean",
10489
+ "description": "Renders the equivalent non-interactive command without executing it.",
10490
+ "allowNo": false,
10491
+ "exclusive": [
10492
+ "echo",
10493
+ "silent"
10494
+ ]
10495
+ }
10496
+ },
10497
+ "args": {}
10498
+ },
9932
10499
  "asset:entrypoint:delete": {
9933
10500
  "id": "asset:entrypoint:delete",
9934
10501
  "description": "Removes an existing override of the image startup command for this asset (restores the original ENTRYPOINT set in the image itself, as well as any image elements specified using CMD)).",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codiac.io/codiac-cli",
3
3
  "description": "Local command line interface for managing enterprise assets and environments.",
4
- "version": "1.3.252",
4
+ "version": "1.3.254",
5
5
  "author": "Codiac",
6
6
  "bin": {
7
7
  "codiac": "./bin/run",