@kora-platform/cli 0.7.0-rc1 → 0.8.0-rc10

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 (49) hide show
  1. package/README.md +21 -0
  2. package/dist/api-client.d.ts +274 -106
  3. package/dist/api-client.js +192 -167
  4. package/dist/api-types.d.ts +301 -163
  5. package/dist/artifact-api-client.d.ts +28 -1
  6. package/dist/artifact-api-client.js +33 -0
  7. package/dist/artifact-commands.d.ts +5 -0
  8. package/dist/artifact-commands.js +177 -4
  9. package/dist/audit-commands.d.ts +12 -0
  10. package/dist/audit-commands.js +74 -0
  11. package/dist/auth-commands.d.ts +1 -0
  12. package/dist/auth-commands.js +195 -32
  13. package/dist/cli-errors.d.ts +7 -1
  14. package/dist/cli-errors.js +12 -1
  15. package/dist/command-builders.d.ts +1 -0
  16. package/dist/command-builders.js +1 -0
  17. package/dist/command-flags.d.ts +1 -0
  18. package/dist/command-flags.js +7 -0
  19. package/dist/command-groups.js +10 -12
  20. package/dist/command-registry.js +595 -277
  21. package/dist/commands.js +728 -636
  22. package/dist/environment-context.d.ts +9 -0
  23. package/dist/environment-context.js +32 -0
  24. package/dist/error-code.d.ts +2 -0
  25. package/dist/error-code.js +9 -0
  26. package/dist/{integration-commands.d.ts → extension-commands.d.ts} +3 -2
  27. package/dist/extension-commands.js +446 -0
  28. package/dist/files.d.ts +44 -4
  29. package/dist/files.js +349 -26
  30. package/dist/format.d.ts +6 -0
  31. package/dist/format.js +83 -1
  32. package/dist/runner.js +28 -10
  33. package/dist/schema-registry-data.d.ts +318 -571
  34. package/dist/schema-registry-data.js +356 -698
  35. package/dist/session-store.js +80 -0
  36. package/dist/session.d.ts +1 -0
  37. package/dist/transport-refresh.d.ts +10 -0
  38. package/dist/transport-refresh.js +51 -0
  39. package/dist/transport.d.ts +31 -0
  40. package/dist/transport.js +102 -36
  41. package/dist/types.d.ts +2 -1
  42. package/dist/workspace-source.d.ts +1 -0
  43. package/dist/workspace-source.js +13 -0
  44. package/package.json +2 -1
  45. package/dist/dotenv.d.ts +0 -1
  46. package/dist/dotenv.js +0 -26
  47. package/dist/integration-api-client.d.ts +0 -29
  48. package/dist/integration-api-client.js +0 -50
  49. package/dist/integration-commands.js +0 -208
@@ -31,8 +31,7 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
31
31
  "additionalProperties": false,
32
32
  "type": "object",
33
33
  "required": [
34
- "name",
35
- "scopeId"
34
+ "name"
36
35
  ],
37
36
  "properties": {
38
37
  "name": {
@@ -40,10 +39,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
40
39
  "maxLength": 128,
41
40
  "type": "string"
42
41
  },
43
- "scopeId": {
44
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
45
- "type": "string"
46
- },
47
42
  "description": {
48
43
  "minLength": 1,
49
44
  "maxLength": 1000,
@@ -63,55 +58,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
63
58
  "additionalProperties": false,
64
59
  "type": "object",
65
60
  "properties": {
66
- "tools": {
67
- "additionalProperties": false,
68
- "type": "object",
69
- "properties": {
70
- "builtin": {
71
- "additionalProperties": false,
72
- "type": "object",
73
- "properties": {
74
- "allow": {
75
- "minItems": 1,
76
- "uniqueItems": true,
77
- "type": "array",
78
- "items": {
79
- "anyOf": [
80
- {
81
- "const": "read",
82
- "type": "string"
83
- },
84
- {
85
- "const": "bash",
86
- "type": "string"
87
- },
88
- {
89
- "const": "edit",
90
- "type": "string"
91
- },
92
- {
93
- "const": "write",
94
- "type": "string"
95
- },
96
- {
97
- "const": "grep",
98
- "type": "string"
99
- },
100
- {
101
- "const": "find",
102
- "type": "string"
103
- },
104
- {
105
- "const": "ls",
106
- "type": "string"
107
- }
108
- ]
109
- }
110
- }
111
- }
112
- }
113
- }
114
- },
115
61
  "limits": {
116
62
  "additionalProperties": false,
117
63
  "type": "object",
@@ -229,8 +175,7 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
229
175
  "additionalProperties": false,
230
176
  "type": "object",
231
177
  "required": [
232
- "name",
233
- "scopeId"
178
+ "name"
234
179
  ],
235
180
  "properties": {
236
181
  "name": {
@@ -238,10 +183,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
238
183
  "maxLength": 128,
239
184
  "type": "string"
240
185
  },
241
- "scopeId": {
242
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
243
- "type": "string"
244
- },
245
186
  "description": {
246
187
  "minLength": 1,
247
188
  "maxLength": 1000,
@@ -320,8 +261,7 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
320
261
  "additionalProperties": false,
321
262
  "type": "object",
322
263
  "required": [
323
- "name",
324
- "scopeId"
264
+ "name"
325
265
  ],
326
266
  "properties": {
327
267
  "name": {
@@ -329,10 +269,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
329
269
  "maxLength": 128,
330
270
  "type": "string"
331
271
  },
332
- "scopeId": {
333
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
334
- "type": "string"
335
- },
336
272
  "team": {
337
273
  "minLength": 1,
338
274
  "maxLength": 256,
@@ -431,18 +367,13 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
431
367
  "additionalProperties": false,
432
368
  "type": "object",
433
369
  "required": [
434
- "name",
435
- "scopeId"
370
+ "name"
436
371
  ],
437
372
  "properties": {
438
373
  "name": {
439
374
  "minLength": 1,
440
375
  "maxLength": 128,
441
376
  "type": "string"
442
- },
443
- "scopeId": {
444
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
445
- "type": "string"
446
377
  }
447
378
  }
448
379
  },
@@ -519,18 +450,13 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
519
450
  "additionalProperties": false,
520
451
  "type": "object",
521
452
  "required": [
522
- "name",
523
- "scopeId"
453
+ "name"
524
454
  ],
525
455
  "properties": {
526
456
  "name": {
527
457
  "minLength": 1,
528
458
  "maxLength": 128,
529
459
  "type": "string"
530
- },
531
- "scopeId": {
532
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
533
- "type": "string"
534
460
  }
535
461
  }
536
462
  },
@@ -559,17 +485,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
559
485
  "additionalProperties": true,
560
486
  "type": "object",
561
487
  "properties": {}
562
- },
563
- "channels": {
564
- "additionalProperties": false,
565
- "type": "object",
566
- "properties": {
567
- "slack": {
568
- "minLength": 1,
569
- "maxLength": 1024,
570
- "type": "string"
571
- }
572
- }
573
488
  }
574
489
  }
575
490
  }
@@ -609,8 +524,7 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
609
524
  "type": "object",
610
525
  "required": [
611
526
  "name",
612
- "version",
613
- "scopeId"
527
+ "version"
614
528
  ],
615
529
  "properties": {
616
530
  "name": {
@@ -621,10 +535,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
621
535
  "version": {
622
536
  "minimum": 1,
623
537
  "type": "integer"
624
- },
625
- "scopeId": {
626
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
627
- "type": "string"
628
538
  }
629
539
  }
630
540
  },
@@ -735,8 +645,7 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
735
645
  "additionalProperties": false,
736
646
  "type": "object",
737
647
  "required": [
738
- "name",
739
- "scopeId"
648
+ "name"
740
649
  ],
741
650
  "properties": {
742
651
  "name": {
@@ -744,10 +653,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
744
653
  "maxLength": 128,
745
654
  "type": "string"
746
655
  },
747
- "scopeId": {
748
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
749
- "type": "string"
750
- },
751
656
  "category": {
752
657
  "minLength": 1,
753
658
  "maxLength": 128,
@@ -785,16 +690,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
785
690
  "maxLength": 65536,
786
691
  "type": "string"
787
692
  },
788
- "mcpServers": {
789
- "minItems": 1,
790
- "uniqueItems": true,
791
- "type": "array",
792
- "items": {
793
- "minLength": 1,
794
- "maxLength": 128,
795
- "type": "string"
796
- }
797
- },
798
693
  "limits": {
799
694
  "additionalProperties": false,
800
695
  "type": "object",
@@ -813,56 +708,7 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
813
708
  }
814
709
  }
815
710
  },
816
- "tools": {
817
- "additionalProperties": false,
818
- "type": "object",
819
- "properties": {
820
- "builtin": {
821
- "additionalProperties": false,
822
- "type": "object",
823
- "properties": {
824
- "allow": {
825
- "minItems": 1,
826
- "uniqueItems": true,
827
- "type": "array",
828
- "items": {
829
- "anyOf": [
830
- {
831
- "const": "read",
832
- "type": "string"
833
- },
834
- {
835
- "const": "bash",
836
- "type": "string"
837
- },
838
- {
839
- "const": "edit",
840
- "type": "string"
841
- },
842
- {
843
- "const": "write",
844
- "type": "string"
845
- },
846
- {
847
- "const": "grep",
848
- "type": "string"
849
- },
850
- {
851
- "const": "find",
852
- "type": "string"
853
- },
854
- {
855
- "const": "ls",
856
- "type": "string"
857
- }
858
- ]
859
- }
860
- }
861
- }
862
- }
863
- }
864
- },
865
- "skills": {
711
+ "extensions": {
866
712
  "minItems": 1,
867
713
  "uniqueItems": true,
868
714
  "type": "array",
@@ -1065,32 +911,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
1065
911
  "minLength": 1,
1066
912
  "maxLength": 256,
1067
913
  "type": "string"
1068
- },
1069
- "channel": {
1070
- "additionalProperties": false,
1071
- "type": "object",
1072
- "required": [
1073
- "type",
1074
- "config"
1075
- ],
1076
- "properties": {
1077
- "type": {
1078
- "minLength": 1,
1079
- "maxLength": 128,
1080
- "type": "string"
1081
- },
1082
- "binding": {
1083
- "minLength": 1,
1084
- "maxLength": 256,
1085
- "type": "string"
1086
- },
1087
- "config": {
1088
- "type": "object",
1089
- "patternProperties": {
1090
- "^(.*)$": {}
1091
- }
1092
- }
1093
- }
1094
914
  }
1095
915
  }
1096
916
  }
@@ -1134,8 +954,7 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
1134
954
  "type": "object",
1135
955
  "required": [
1136
956
  "name",
1137
- "version",
1138
- "scopeId"
957
+ "version"
1139
958
  ],
1140
959
  "properties": {
1141
960
  "name": {
@@ -1147,10 +966,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
1147
966
  "minimum": 1,
1148
967
  "type": "integer"
1149
968
  },
1150
- "scopeId": {
1151
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
1152
- "type": "string"
1153
- },
1154
969
  "description": {
1155
970
  "minLength": 1,
1156
971
  "maxLength": 1000,
@@ -1391,6 +1206,94 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
1391
1206
  }
1392
1207
  }
1393
1208
  },
1209
+ "retry": {
1210
+ "additionalProperties": false,
1211
+ "type": "object",
1212
+ "properties": {
1213
+ "maxAttempts": {
1214
+ "minimum": 1,
1215
+ "maximum": 100,
1216
+ "type": "integer"
1217
+ },
1218
+ "initialIntervalMs": {
1219
+ "minimum": 1,
1220
+ "type": "integer"
1221
+ },
1222
+ "backoffMultiplier": {
1223
+ "minimum": 1,
1224
+ "type": "number"
1225
+ },
1226
+ "maxIntervalMs": {
1227
+ "minimum": 1,
1228
+ "type": "integer"
1229
+ },
1230
+ "retryOn": {
1231
+ "type": "array",
1232
+ "items": {
1233
+ "minLength": 1,
1234
+ "maxLength": 128,
1235
+ "type": "string"
1236
+ }
1237
+ },
1238
+ "nonRetryableErrors": {
1239
+ "type": "array",
1240
+ "items": {
1241
+ "minLength": 1,
1242
+ "maxLength": 128,
1243
+ "type": "string"
1244
+ }
1245
+ }
1246
+ }
1247
+ },
1248
+ "promptAttachments": {
1249
+ "additionalProperties": false,
1250
+ "type": "object",
1251
+ "properties": {
1252
+ "imageArtifacts": {
1253
+ "additionalProperties": false,
1254
+ "type": "object",
1255
+ "required": [
1256
+ "fields"
1257
+ ],
1258
+ "properties": {
1259
+ "fields": {
1260
+ "minItems": 1,
1261
+ "uniqueItems": true,
1262
+ "type": "array",
1263
+ "items": {
1264
+ "minLength": 1,
1265
+ "maxLength": 128,
1266
+ "type": "string"
1267
+ }
1268
+ }
1269
+ }
1270
+ },
1271
+ "textArtifacts": {
1272
+ "additionalProperties": false,
1273
+ "type": "object",
1274
+ "required": [
1275
+ "fields"
1276
+ ],
1277
+ "properties": {
1278
+ "fields": {
1279
+ "minItems": 1,
1280
+ "uniqueItems": true,
1281
+ "type": "array",
1282
+ "items": {
1283
+ "minLength": 1,
1284
+ "maxLength": 128,
1285
+ "type": "string"
1286
+ }
1287
+ },
1288
+ "maxCharsPerArtifact": {
1289
+ "minimum": 1,
1290
+ "maximum": 100000,
1291
+ "type": "integer"
1292
+ }
1293
+ }
1294
+ }
1295
+ }
1296
+ },
1394
1297
  "next": {
1395
1298
  "minLength": 1,
1396
1299
  "maxLength": 128,
@@ -1697,27 +1600,115 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
1697
1600
  }
1698
1601
  }
1699
1602
  },
1700
- "next": {
1701
- "minLength": 1,
1702
- "maxLength": 128,
1703
- "type": "string"
1603
+ "retry": {
1604
+ "additionalProperties": false,
1605
+ "type": "object",
1606
+ "properties": {
1607
+ "maxAttempts": {
1608
+ "minimum": 1,
1609
+ "maximum": 100,
1610
+ "type": "integer"
1611
+ },
1612
+ "initialIntervalMs": {
1613
+ "minimum": 1,
1614
+ "type": "integer"
1615
+ },
1616
+ "backoffMultiplier": {
1617
+ "minimum": 1,
1618
+ "type": "number"
1619
+ },
1620
+ "maxIntervalMs": {
1621
+ "minimum": 1,
1622
+ "type": "integer"
1623
+ },
1624
+ "retryOn": {
1625
+ "type": "array",
1626
+ "items": {
1627
+ "minLength": 1,
1628
+ "maxLength": 128,
1629
+ "type": "string"
1630
+ }
1631
+ },
1632
+ "nonRetryableErrors": {
1633
+ "type": "array",
1634
+ "items": {
1635
+ "minLength": 1,
1636
+ "maxLength": 128,
1637
+ "type": "string"
1638
+ }
1639
+ }
1640
+ }
1704
1641
  },
1705
- "boundary": {
1706
- "type": "array",
1707
- "items": {
1708
- "anyOf": [
1709
- {
1710
- "additionalProperties": false,
1711
- "type": "object",
1712
- "required": [
1713
- "type",
1714
- "duration",
1715
- "goto",
1716
- "interrupting"
1717
- ],
1718
- "properties": {
1719
- "type": {
1720
- "const": "timer",
1642
+ "promptAttachments": {
1643
+ "additionalProperties": false,
1644
+ "type": "object",
1645
+ "properties": {
1646
+ "imageArtifacts": {
1647
+ "additionalProperties": false,
1648
+ "type": "object",
1649
+ "required": [
1650
+ "fields"
1651
+ ],
1652
+ "properties": {
1653
+ "fields": {
1654
+ "minItems": 1,
1655
+ "uniqueItems": true,
1656
+ "type": "array",
1657
+ "items": {
1658
+ "minLength": 1,
1659
+ "maxLength": 128,
1660
+ "type": "string"
1661
+ }
1662
+ }
1663
+ }
1664
+ },
1665
+ "textArtifacts": {
1666
+ "additionalProperties": false,
1667
+ "type": "object",
1668
+ "required": [
1669
+ "fields"
1670
+ ],
1671
+ "properties": {
1672
+ "fields": {
1673
+ "minItems": 1,
1674
+ "uniqueItems": true,
1675
+ "type": "array",
1676
+ "items": {
1677
+ "minLength": 1,
1678
+ "maxLength": 128,
1679
+ "type": "string"
1680
+ }
1681
+ },
1682
+ "maxCharsPerArtifact": {
1683
+ "minimum": 1,
1684
+ "maximum": 100000,
1685
+ "type": "integer"
1686
+ }
1687
+ }
1688
+ }
1689
+ }
1690
+ },
1691
+ "next": {
1692
+ "minLength": 1,
1693
+ "maxLength": 128,
1694
+ "type": "string"
1695
+ },
1696
+ "boundary": {
1697
+ "type": "array",
1698
+ "items": {
1699
+ "anyOf": [
1700
+ {
1701
+ "additionalProperties": false,
1702
+ "type": "object",
1703
+ "required": [
1704
+ "type",
1705
+ "duration",
1706
+ "goto",
1707
+ "interrupting"
1708
+ ],
1709
+ "properties": {
1710
+ "type": {
1711
+ "const": "timer",
1721
1712
  "type": "string"
1722
1713
  },
1723
1714
  "duration": {
@@ -2351,194 +2342,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
2351
2342
  }
2352
2343
  }
2353
2344
  },
2354
- {
2355
- "additionalProperties": false,
2356
- "type": "object",
2357
- "required": [
2358
- "id",
2359
- "type",
2360
- "template",
2361
- "channel"
2362
- ],
2363
- "properties": {
2364
- "id": {
2365
- "minLength": 1,
2366
- "maxLength": 128,
2367
- "type": "string"
2368
- },
2369
- "type": {
2370
- "const": "send",
2371
- "type": "string"
2372
- },
2373
- "owner": {
2374
- "minLength": 1,
2375
- "maxLength": 128,
2376
- "type": "string"
2377
- },
2378
- "template": {
2379
- "minLength": 1,
2380
- "maxLength": 256,
2381
- "type": "string"
2382
- },
2383
- "channel": {
2384
- "additionalProperties": false,
2385
- "type": "object",
2386
- "required": [
2387
- "type",
2388
- "config"
2389
- ],
2390
- "properties": {
2391
- "type": {
2392
- "minLength": 1,
2393
- "maxLength": 128,
2394
- "type": "string"
2395
- },
2396
- "binding": {
2397
- "minLength": 1,
2398
- "maxLength": 256,
2399
- "type": "string"
2400
- },
2401
- "config": {
2402
- "type": "object",
2403
- "patternProperties": {
2404
- "^(.*)$": {}
2405
- }
2406
- }
2407
- }
2408
- },
2409
- "input": {
2410
- "minLength": 1,
2411
- "maxLength": 128,
2412
- "type": "string"
2413
- },
2414
- "next": {
2415
- "minLength": 1,
2416
- "maxLength": 128,
2417
- "type": "string"
2418
- },
2419
- "boundary": {
2420
- "type": "array",
2421
- "items": {
2422
- "anyOf": [
2423
- {
2424
- "additionalProperties": false,
2425
- "type": "object",
2426
- "required": [
2427
- "type",
2428
- "duration",
2429
- "goto",
2430
- "interrupting"
2431
- ],
2432
- "properties": {
2433
- "type": {
2434
- "const": "timer",
2435
- "type": "string"
2436
- },
2437
- "duration": {
2438
- "minLength": 1,
2439
- "maxLength": 64,
2440
- "type": "string"
2441
- },
2442
- "goto": {
2443
- "minLength": 1,
2444
- "maxLength": 128,
2445
- "type": "string"
2446
- },
2447
- "interrupting": {
2448
- "default": true,
2449
- "type": "boolean"
2450
- }
2451
- }
2452
- },
2453
- {
2454
- "additionalProperties": false,
2455
- "type": "object",
2456
- "required": [
2457
- "type",
2458
- "cycle",
2459
- "goto",
2460
- "interrupting"
2461
- ],
2462
- "properties": {
2463
- "type": {
2464
- "const": "timer",
2465
- "type": "string"
2466
- },
2467
- "cycle": {
2468
- "minLength": 1,
2469
- "maxLength": 64,
2470
- "type": "string"
2471
- },
2472
- "goto": {
2473
- "minLength": 1,
2474
- "maxLength": 128,
2475
- "type": "string"
2476
- },
2477
- "interrupting": {
2478
- "default": true,
2479
- "type": "boolean"
2480
- }
2481
- }
2482
- },
2483
- {
2484
- "additionalProperties": false,
2485
- "type": "object",
2486
- "required": [
2487
- "type",
2488
- "name",
2489
- "goto",
2490
- "interrupting"
2491
- ],
2492
- "properties": {
2493
- "type": {
2494
- "const": "message",
2495
- "type": "string"
2496
- },
2497
- "name": {
2498
- "minLength": 1,
2499
- "maxLength": 128,
2500
- "type": "string"
2501
- },
2502
- "goto": {
2503
- "minLength": 1,
2504
- "maxLength": 128,
2505
- "type": "string"
2506
- },
2507
- "interrupting": {
2508
- "default": true,
2509
- "type": "boolean"
2510
- }
2511
- }
2512
- },
2513
- {
2514
- "additionalProperties": false,
2515
- "type": "object",
2516
- "required": [
2517
- "type",
2518
- "goto"
2519
- ],
2520
- "properties": {
2521
- "type": {
2522
- "const": "error",
2523
- "type": "string"
2524
- },
2525
- "code": {
2526
- "minLength": 1,
2527
- "maxLength": 128,
2528
- "type": "string"
2529
- },
2530
- "goto": {
2531
- "minLength": 1,
2532
- "maxLength": 128,
2533
- "type": "string"
2534
- }
2535
- }
2536
- }
2537
- ]
2538
- }
2539
- }
2540
- }
2541
- },
2542
2345
  {
2543
2346
  "additionalProperties": false,
2544
2347
  "type": "object",
@@ -3601,16 +3404,16 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
3601
3404
  }
3602
3405
  },
3603
3406
  {
3604
- "name": "connector",
3605
- "displayName": "Connector",
3407
+ "name": "operation",
3408
+ "displayName": "Operation",
3606
3409
  "ownerDomain": "authoring",
3607
3410
  "format": "yaml",
3608
3411
  "filePatterns": [
3609
- "connectors/**/*.yaml",
3610
- "connectors/**/*.yml"
3412
+ "operations/**/*.yaml",
3413
+ "operations/**/*.yml"
3611
3414
  ],
3612
3415
  "cardinality": "collection",
3613
- "kindValue": "Connector",
3416
+ "kindValue": "Operation",
3614
3417
  "jsonSchema": {
3615
3418
  "additionalProperties": false,
3616
3419
  "type": "object",
@@ -3626,25 +3429,20 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
3626
3429
  "type": "string"
3627
3430
  },
3628
3431
  "kind": {
3629
- "const": "Connector",
3432
+ "const": "Operation",
3630
3433
  "type": "string"
3631
3434
  },
3632
3435
  "metadata": {
3633
3436
  "additionalProperties": false,
3634
3437
  "type": "object",
3635
3438
  "required": [
3636
- "name",
3637
- "scopeId"
3439
+ "name"
3638
3440
  ],
3639
3441
  "properties": {
3640
3442
  "name": {
3641
3443
  "minLength": 1,
3642
3444
  "maxLength": 128,
3643
3445
  "type": "string"
3644
- },
3645
- "scopeId": {
3646
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
3647
- "type": "string"
3648
3446
  }
3649
3447
  }
3650
3448
  },
@@ -3652,102 +3450,157 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
3652
3450
  "additionalProperties": false,
3653
3451
  "type": "object",
3654
3452
  "required": [
3655
- "type",
3656
- "config"
3453
+ "script"
3657
3454
  ],
3658
3455
  "properties": {
3659
- "type": {
3456
+ "description": {
3660
3457
  "minLength": 1,
3661
- "maxLength": 128,
3458
+ "maxLength": 4000,
3662
3459
  "type": "string"
3663
3460
  },
3664
- "config": {
3461
+ "script": {
3462
+ "additionalProperties": false,
3665
3463
  "type": "object",
3666
- "patternProperties": {
3667
- "^(.*)$": {}
3668
- }
3669
- }
3670
- }
3671
- }
3672
- }
3673
- }
3674
- },
3675
- {
3676
- "name": "operation",
3677
- "displayName": "Operation",
3678
- "ownerDomain": "authoring",
3679
- "format": "yaml",
3680
- "filePatterns": [
3681
- "operations/**/*.yaml",
3682
- "operations/**/*.yml"
3683
- ],
3684
- "cardinality": "collection",
3685
- "kindValue": "Operation",
3686
- "jsonSchema": {
3687
- "additionalProperties": false,
3688
- "type": "object",
3689
- "required": [
3690
- "apiVersion",
3691
- "kind",
3692
- "metadata",
3693
- "spec"
3694
- ],
3695
- "properties": {
3696
- "apiVersion": {
3697
- "const": "kora/v1",
3698
- "type": "string"
3699
- },
3700
- "kind": {
3701
- "const": "Operation",
3702
- "type": "string"
3703
- },
3704
- "metadata": {
3705
- "additionalProperties": false,
3706
- "type": "object",
3707
- "required": [
3708
- "name",
3709
- "scopeId"
3710
- ],
3711
- "properties": {
3712
- "name": {
3713
- "minLength": 1,
3714
- "maxLength": 128,
3715
- "type": "string"
3716
- },
3717
- "scopeId": {
3718
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
3719
- "type": "string"
3720
- }
3721
- }
3722
- },
3723
- "spec": {
3724
- "additionalProperties": false,
3725
- "type": "object",
3726
- "required": [
3727
- "connector",
3728
- "action",
3729
- "config"
3730
- ],
3731
- "properties": {
3732
- "description": {
3733
- "minLength": 1,
3734
- "maxLength": 4000,
3735
- "type": "string"
3736
- },
3737
- "connector": {
3738
- "minLength": 1,
3739
- "maxLength": 128,
3740
- "type": "string"
3741
- },
3742
- "action": {
3743
- "minLength": 1,
3744
- "maxLength": 128,
3745
- "type": "string"
3464
+ "required": [
3465
+ "command"
3466
+ ],
3467
+ "properties": {
3468
+ "command": {
3469
+ "minLength": 1,
3470
+ "maxLength": 4096,
3471
+ "type": "string"
3472
+ },
3473
+ "args": {
3474
+ "type": "array",
3475
+ "items": {
3476
+ "maxLength": 4096,
3477
+ "type": "string"
3478
+ }
3479
+ },
3480
+ "stdin": {
3481
+ "maxLength": 1000000,
3482
+ "type": "string"
3483
+ },
3484
+ "cwd": {
3485
+ "minLength": 1,
3486
+ "maxLength": 4096,
3487
+ "type": "string"
3488
+ },
3489
+ "parseStdoutAsJson": {
3490
+ "type": "boolean"
3491
+ },
3492
+ "maxStdoutBytes": {
3493
+ "minimum": 1,
3494
+ "type": "integer"
3495
+ },
3496
+ "maxStderrBytes": {
3497
+ "minimum": 1,
3498
+ "type": "integer"
3499
+ }
3500
+ }
3746
3501
  },
3747
- "config": {
3502
+ "bindings": {
3503
+ "additionalProperties": false,
3748
3504
  "type": "object",
3749
- "patternProperties": {
3750
- "^(.*)$": {}
3505
+ "properties": {
3506
+ "env": {
3507
+ "type": "array",
3508
+ "items": {
3509
+ "anyOf": [
3510
+ {
3511
+ "minLength": 1,
3512
+ "maxLength": 128,
3513
+ "pattern": "^(?!KORA_)[A-Za-z_][A-Za-z0-9_]*$",
3514
+ "type": "string"
3515
+ },
3516
+ {
3517
+ "additionalProperties": false,
3518
+ "type": "object",
3519
+ "required": [
3520
+ "name"
3521
+ ],
3522
+ "properties": {
3523
+ "name": {
3524
+ "minLength": 1,
3525
+ "maxLength": 128,
3526
+ "pattern": "^(?!KORA_)[A-Za-z_][A-Za-z0-9_]*$",
3527
+ "type": "string"
3528
+ },
3529
+ "as": {
3530
+ "minLength": 1,
3531
+ "maxLength": 128,
3532
+ "pattern": "^(?!KORA_)[A-Za-z_][A-Za-z0-9_]*$",
3533
+ "type": "string"
3534
+ }
3535
+ }
3536
+ }
3537
+ ]
3538
+ }
3539
+ },
3540
+ "secrets": {
3541
+ "type": "array",
3542
+ "items": {
3543
+ "anyOf": [
3544
+ {
3545
+ "minLength": 1,
3546
+ "maxLength": 128,
3547
+ "pattern": "^(?!KORA_)[A-Za-z_][A-Za-z0-9_]*$",
3548
+ "type": "string"
3549
+ },
3550
+ {
3551
+ "additionalProperties": false,
3552
+ "type": "object",
3553
+ "required": [
3554
+ "name"
3555
+ ],
3556
+ "properties": {
3557
+ "name": {
3558
+ "minLength": 1,
3559
+ "maxLength": 128,
3560
+ "pattern": "^(?!KORA_)[A-Za-z_][A-Za-z0-9_]*$",
3561
+ "type": "string"
3562
+ },
3563
+ "as": {
3564
+ "minLength": 1,
3565
+ "maxLength": 128,
3566
+ "pattern": "^(?!KORA_)[A-Za-z_][A-Za-z0-9_]*$",
3567
+ "type": "string"
3568
+ }
3569
+ }
3570
+ }
3571
+ ]
3572
+ }
3573
+ },
3574
+ "extensions": {
3575
+ "type": "object",
3576
+ "patternProperties": {
3577
+ "^(.*)$": {
3578
+ "additionalProperties": false,
3579
+ "type": "object",
3580
+ "required": [
3581
+ "install",
3582
+ "functions"
3583
+ ],
3584
+ "properties": {
3585
+ "install": {
3586
+ "minLength": 1,
3587
+ "maxLength": 128,
3588
+ "type": "string"
3589
+ },
3590
+ "functions": {
3591
+ "minItems": 1,
3592
+ "uniqueItems": true,
3593
+ "type": "array",
3594
+ "items": {
3595
+ "minLength": 1,
3596
+ "maxLength": 128,
3597
+ "type": "string"
3598
+ }
3599
+ }
3600
+ }
3601
+ }
3602
+ }
3603
+ }
3751
3604
  }
3752
3605
  },
3753
3606
  "paramBindings": {
@@ -3809,66 +3662,6 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
3809
3662
  }
3810
3663
  }
3811
3664
  },
3812
- "credentials": {
3813
- "type": "object",
3814
- "patternProperties": {
3815
- "^(.*)$": {
3816
- "additionalProperties": false,
3817
- "type": "object",
3818
- "required": [
3819
- "bindingKind",
3820
- "connectionRef",
3821
- "inject"
3822
- ],
3823
- "properties": {
3824
- "bindingKind": {
3825
- "minLength": 1,
3826
- "maxLength": 128,
3827
- "type": "string"
3828
- },
3829
- "connectionRef": {
3830
- "minLength": 1,
3831
- "maxLength": 128,
3832
- "type": "string"
3833
- },
3834
- "inject": {
3835
- "additionalProperties": false,
3836
- "type": "object",
3837
- "required": [
3838
- "env"
3839
- ],
3840
- "properties": {
3841
- "env": {
3842
- "minLength": 1,
3843
- "maxLength": 128,
3844
- "type": "string"
3845
- }
3846
- }
3847
- }
3848
- }
3849
- }
3850
- }
3851
- },
3852
- "script": {
3853
- "additionalProperties": false,
3854
- "type": "object",
3855
- "required": [
3856
- "name",
3857
- "entrypointPath"
3858
- ],
3859
- "properties": {
3860
- "name": {
3861
- "minLength": 1,
3862
- "maxLength": 128,
3863
- "type": "string"
3864
- },
3865
- "entrypointPath": {
3866
- "minLength": 1,
3867
- "maxLength": 4096,
3868
- "type": "string"
3869
- }
3870
- }
3871
- },
3872
3665
  "timeoutMs": {
3873
3666
  "minimum": 1,
3874
3667
  "type": "integer"
@@ -3938,18 +3731,13 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
3938
3731
  "additionalProperties": false,
3939
3732
  "type": "object",
3940
3733
  "required": [
3941
- "name",
3942
- "scopeId"
3734
+ "name"
3943
3735
  ],
3944
3736
  "properties": {
3945
3737
  "name": {
3946
3738
  "minLength": 1,
3947
3739
  "maxLength": 128,
3948
3740
  "type": "string"
3949
- },
3950
- "scopeId": {
3951
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
3952
- "type": "string"
3953
3741
  }
3954
3742
  }
3955
3743
  },
@@ -4024,135 +3812,5 @@ export const CLI_SCHEMA_REGISTRY_DATA = [
4024
3812
  }
4025
3813
  }
4026
3814
  }
4027
- },
4028
- {
4029
- "name": "mcp-server",
4030
- "displayName": "MCP Server",
4031
- "ownerDomain": "authoring",
4032
- "format": "yaml",
4033
- "filePatterns": [
4034
- "mcp-servers/**/*.yaml",
4035
- "mcp-servers/**/*.yml"
4036
- ],
4037
- "cardinality": "collection",
4038
- "kindValue": "McpServer",
4039
- "jsonSchema": {
4040
- "additionalProperties": false,
4041
- "type": "object",
4042
- "required": [
4043
- "apiVersion",
4044
- "kind",
4045
- "metadata",
4046
- "spec"
4047
- ],
4048
- "properties": {
4049
- "apiVersion": {
4050
- "const": "kora/v1",
4051
- "type": "string"
4052
- },
4053
- "kind": {
4054
- "const": "McpServer",
4055
- "type": "string"
4056
- },
4057
- "metadata": {
4058
- "additionalProperties": false,
4059
- "type": "object",
4060
- "required": [
4061
- "name",
4062
- "scopeId"
4063
- ],
4064
- "properties": {
4065
- "name": {
4066
- "minLength": 1,
4067
- "maxLength": 128,
4068
- "type": "string"
4069
- },
4070
- "scopeId": {
4071
- "pattern": "^[a-z0-9][a-z0-9_-]{2,63}$",
4072
- "type": "string"
4073
- }
4074
- }
4075
- },
4076
- "spec": {
4077
- "additionalProperties": false,
4078
- "type": "object",
4079
- "required": [
4080
- "transport",
4081
- "url"
4082
- ],
4083
- "properties": {
4084
- "transport": {
4085
- "const": "streamable-http",
4086
- "type": "string"
4087
- },
4088
- "url": {
4089
- "minLength": 1,
4090
- "maxLength": 4096,
4091
- "type": "string"
4092
- },
4093
- "headers": {
4094
- "minItems": 1,
4095
- "type": "array",
4096
- "items": {
4097
- "additionalProperties": false,
4098
- "type": "object",
4099
- "required": [
4100
- "name",
4101
- "valueFrom"
4102
- ],
4103
- "properties": {
4104
- "name": {
4105
- "minLength": 1,
4106
- "maxLength": 256,
4107
- "type": "string"
4108
- },
4109
- "scheme": {
4110
- "minLength": 1,
4111
- "maxLength": 128,
4112
- "type": "string"
4113
- },
4114
- "valueFrom": {
4115
- "anyOf": [
4116
- {
4117
- "additionalProperties": false,
4118
- "type": "object",
4119
- "required": [
4120
- "secretRef"
4121
- ],
4122
- "properties": {
4123
- "secretRef": {
4124
- "minLength": 1,
4125
- "maxLength": 256,
4126
- "type": "string"
4127
- }
4128
- }
4129
- },
4130
- {
4131
- "additionalProperties": false,
4132
- "type": "object",
4133
- "required": [
4134
- "runtimeVariable"
4135
- ],
4136
- "properties": {
4137
- "runtimeVariable": {
4138
- "minLength": 1,
4139
- "maxLength": 256,
4140
- "type": "string"
4141
- }
4142
- }
4143
- }
4144
- ]
4145
- }
4146
- }
4147
- }
4148
- },
4149
- "timeoutMs": {
4150
- "minimum": 1,
4151
- "type": "integer"
4152
- }
4153
- }
4154
- }
4155
- }
4156
- }
4157
3815
  }
4158
3816
  ];