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

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 (38) hide show
  1. package/README.md +21 -0
  2. package/dist/api-client.d.ts +250 -93
  3. package/dist/api-client.js +187 -163
  4. package/dist/api-types.d.ts +280 -162
  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 +172 -1
  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 +116 -29
  13. package/dist/command-builders.d.ts +1 -0
  14. package/dist/command-builders.js +1 -0
  15. package/dist/command-groups.js +10 -12
  16. package/dist/command-registry.js +548 -243
  17. package/dist/commands.js +652 -602
  18. package/dist/environment-context.d.ts +9 -0
  19. package/dist/environment-context.js +32 -0
  20. package/dist/{integration-commands.d.ts → extension-commands.d.ts} +3 -2
  21. package/dist/extension-commands.js +446 -0
  22. package/dist/files.d.ts +33 -0
  23. package/dist/files.js +247 -12
  24. package/dist/format.d.ts +5 -0
  25. package/dist/format.js +78 -1
  26. package/dist/runner.js +14 -5
  27. package/dist/schema-registry-data.d.ts +272 -569
  28. package/dist/schema-registry-data.js +307 -700
  29. package/dist/session.d.ts +1 -0
  30. package/dist/transport.d.ts +10 -0
  31. package/dist/transport.js +22 -0
  32. package/dist/types.d.ts +2 -1
  33. package/dist/workspace-source.d.ts +1 -0
  34. package/dist/workspace-source.js +13 -0
  35. package/package.json +2 -1
  36. package/dist/integration-api-client.d.ts +0 -29
  37. package/dist/integration-api-client.js +0 -50
  38. package/dist/integration-commands.js +0 -208
@@ -22,17 +22,13 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
22
22
  readonly metadata: {
23
23
  readonly additionalProperties: false;
24
24
  readonly type: "object";
25
- readonly required: readonly ["name", "scopeId"];
25
+ readonly required: readonly ["name"];
26
26
  readonly properties: {
27
27
  readonly name: {
28
28
  readonly minLength: 1;
29
29
  readonly maxLength: 128;
30
30
  readonly type: "string";
31
31
  };
32
- readonly scopeId: {
33
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
34
- readonly type: "string";
35
- };
36
32
  readonly description: {
37
33
  readonly minLength: 1;
38
34
  readonly maxLength: 1000;
@@ -52,47 +48,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
52
48
  readonly additionalProperties: false;
53
49
  readonly type: "object";
54
50
  readonly properties: {
55
- readonly tools: {
56
- readonly additionalProperties: false;
57
- readonly type: "object";
58
- readonly properties: {
59
- readonly builtin: {
60
- readonly additionalProperties: false;
61
- readonly type: "object";
62
- readonly properties: {
63
- readonly allow: {
64
- readonly minItems: 1;
65
- readonly uniqueItems: true;
66
- readonly type: "array";
67
- readonly items: {
68
- readonly anyOf: readonly [{
69
- readonly const: "read";
70
- readonly type: "string";
71
- }, {
72
- readonly const: "bash";
73
- readonly type: "string";
74
- }, {
75
- readonly const: "edit";
76
- readonly type: "string";
77
- }, {
78
- readonly const: "write";
79
- readonly type: "string";
80
- }, {
81
- readonly const: "grep";
82
- readonly type: "string";
83
- }, {
84
- readonly const: "find";
85
- readonly type: "string";
86
- }, {
87
- readonly const: "ls";
88
- readonly type: "string";
89
- }];
90
- };
91
- };
92
- };
93
- };
94
- };
95
- };
96
51
  readonly limits: {
97
52
  readonly additionalProperties: false;
98
53
  readonly type: "object";
@@ -192,17 +147,13 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
192
147
  readonly metadata: {
193
148
  readonly additionalProperties: false;
194
149
  readonly type: "object";
195
- readonly required: readonly ["name", "scopeId"];
150
+ readonly required: readonly ["name"];
196
151
  readonly properties: {
197
152
  readonly name: {
198
153
  readonly minLength: 1;
199
154
  readonly maxLength: 128;
200
155
  readonly type: "string";
201
156
  };
202
- readonly scopeId: {
203
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
204
- readonly type: "string";
205
- };
206
157
  readonly description: {
207
158
  readonly minLength: 1;
208
159
  readonly maxLength: 1000;
@@ -269,17 +220,13 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
269
220
  readonly metadata: {
270
221
  readonly additionalProperties: false;
271
222
  readonly type: "object";
272
- readonly required: readonly ["name", "scopeId"];
223
+ readonly required: readonly ["name"];
273
224
  readonly properties: {
274
225
  readonly name: {
275
226
  readonly minLength: 1;
276
227
  readonly maxLength: 128;
277
228
  readonly type: "string";
278
229
  };
279
- readonly scopeId: {
280
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
281
- readonly type: "string";
282
- };
283
230
  readonly team: {
284
231
  readonly minLength: 1;
285
232
  readonly maxLength: 256;
@@ -366,17 +313,13 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
366
313
  readonly metadata: {
367
314
  readonly additionalProperties: false;
368
315
  readonly type: "object";
369
- readonly required: readonly ["name", "scopeId"];
316
+ readonly required: readonly ["name"];
370
317
  readonly properties: {
371
318
  readonly name: {
372
319
  readonly minLength: 1;
373
320
  readonly maxLength: 128;
374
321
  readonly type: "string";
375
322
  };
376
- readonly scopeId: {
377
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
378
- readonly type: "string";
379
- };
380
323
  };
381
324
  };
382
325
  readonly spec: {
@@ -440,17 +383,13 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
440
383
  readonly metadata: {
441
384
  readonly additionalProperties: false;
442
385
  readonly type: "object";
443
- readonly required: readonly ["name", "scopeId"];
386
+ readonly required: readonly ["name"];
444
387
  readonly properties: {
445
388
  readonly name: {
446
389
  readonly minLength: 1;
447
390
  readonly maxLength: 128;
448
391
  readonly type: "string";
449
392
  };
450
- readonly scopeId: {
451
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
452
- readonly type: "string";
453
- };
454
393
  };
455
394
  };
456
395
  readonly spec: {
@@ -477,17 +416,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
477
416
  readonly type: "object";
478
417
  readonly properties: {};
479
418
  };
480
- readonly channels: {
481
- readonly additionalProperties: false;
482
- readonly type: "object";
483
- readonly properties: {
484
- readonly slack: {
485
- readonly minLength: 1;
486
- readonly maxLength: 1024;
487
- readonly type: "string";
488
- };
489
- };
490
- };
491
419
  };
492
420
  };
493
421
  };
@@ -516,7 +444,7 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
516
444
  readonly metadata: {
517
445
  readonly additionalProperties: false;
518
446
  readonly type: "object";
519
- readonly required: readonly ["name", "version", "scopeId"];
447
+ readonly required: readonly ["name", "version"];
520
448
  readonly properties: {
521
449
  readonly name: {
522
450
  readonly minLength: 1;
@@ -527,10 +455,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
527
455
  readonly minimum: 1;
528
456
  readonly type: "integer";
529
457
  };
530
- readonly scopeId: {
531
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
532
- readonly type: "string";
533
- };
534
458
  };
535
459
  };
536
460
  readonly spec: {
@@ -616,17 +540,13 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
616
540
  readonly metadata: {
617
541
  readonly additionalProperties: false;
618
542
  readonly type: "object";
619
- readonly required: readonly ["name", "scopeId"];
543
+ readonly required: readonly ["name"];
620
544
  readonly properties: {
621
545
  readonly name: {
622
546
  readonly minLength: 1;
623
547
  readonly maxLength: 128;
624
548
  readonly type: "string";
625
549
  };
626
- readonly scopeId: {
627
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
628
- readonly type: "string";
629
- };
630
550
  readonly category: {
631
551
  readonly minLength: 1;
632
552
  readonly maxLength: 128;
@@ -661,16 +581,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
661
581
  readonly maxLength: 65536;
662
582
  readonly type: "string";
663
583
  };
664
- readonly mcpServers: {
665
- readonly minItems: 1;
666
- readonly uniqueItems: true;
667
- readonly type: "array";
668
- readonly items: {
669
- readonly minLength: 1;
670
- readonly maxLength: 128;
671
- readonly type: "string";
672
- };
673
- };
674
584
  readonly limits: {
675
585
  readonly additionalProperties: false;
676
586
  readonly type: "object";
@@ -689,48 +599,7 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
689
599
  };
690
600
  };
691
601
  };
692
- readonly tools: {
693
- readonly additionalProperties: false;
694
- readonly type: "object";
695
- readonly properties: {
696
- readonly builtin: {
697
- readonly additionalProperties: false;
698
- readonly type: "object";
699
- readonly properties: {
700
- readonly allow: {
701
- readonly minItems: 1;
702
- readonly uniqueItems: true;
703
- readonly type: "array";
704
- readonly items: {
705
- readonly anyOf: readonly [{
706
- readonly const: "read";
707
- readonly type: "string";
708
- }, {
709
- readonly const: "bash";
710
- readonly type: "string";
711
- }, {
712
- readonly const: "edit";
713
- readonly type: "string";
714
- }, {
715
- readonly const: "write";
716
- readonly type: "string";
717
- }, {
718
- readonly const: "grep";
719
- readonly type: "string";
720
- }, {
721
- readonly const: "find";
722
- readonly type: "string";
723
- }, {
724
- readonly const: "ls";
725
- readonly type: "string";
726
- }];
727
- };
728
- };
729
- };
730
- };
731
- };
732
- };
733
- readonly skills: {
602
+ readonly extensions: {
734
603
  readonly minItems: 1;
735
604
  readonly uniqueItems: true;
736
605
  readonly type: "array";
@@ -910,29 +779,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
910
779
  readonly maxLength: 256;
911
780
  readonly type: "string";
912
781
  };
913
- readonly channel: {
914
- readonly additionalProperties: false;
915
- readonly type: "object";
916
- readonly required: readonly ["type", "config"];
917
- readonly properties: {
918
- readonly type: {
919
- readonly minLength: 1;
920
- readonly maxLength: 128;
921
- readonly type: "string";
922
- };
923
- readonly binding: {
924
- readonly minLength: 1;
925
- readonly maxLength: 256;
926
- readonly type: "string";
927
- };
928
- readonly config: {
929
- readonly type: "object";
930
- readonly patternProperties: {
931
- readonly "^(.*)$": {};
932
- };
933
- };
934
- };
935
- };
936
782
  };
937
783
  };
938
784
  };
@@ -963,7 +809,7 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
963
809
  readonly metadata: {
964
810
  readonly additionalProperties: false;
965
811
  readonly type: "object";
966
- readonly required: readonly ["name", "version", "scopeId"];
812
+ readonly required: readonly ["name", "version"];
967
813
  readonly properties: {
968
814
  readonly name: {
969
815
  readonly minLength: 1;
@@ -974,10 +820,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
974
820
  readonly minimum: 1;
975
821
  readonly type: "integer";
976
822
  };
977
- readonly scopeId: {
978
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
979
- readonly type: "string";
980
- };
981
823
  readonly description: {
982
824
  readonly minLength: 1;
983
825
  readonly maxLength: 1000;
@@ -1183,6 +1025,90 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
1183
1025
  };
1184
1026
  };
1185
1027
  };
1028
+ readonly retry: {
1029
+ readonly additionalProperties: false;
1030
+ readonly type: "object";
1031
+ readonly properties: {
1032
+ readonly maxAttempts: {
1033
+ readonly minimum: 1;
1034
+ readonly maximum: 100;
1035
+ readonly type: "integer";
1036
+ };
1037
+ readonly initialIntervalMs: {
1038
+ readonly minimum: 1;
1039
+ readonly type: "integer";
1040
+ };
1041
+ readonly backoffMultiplier: {
1042
+ readonly minimum: 1;
1043
+ readonly type: "number";
1044
+ };
1045
+ readonly maxIntervalMs: {
1046
+ readonly minimum: 1;
1047
+ readonly type: "integer";
1048
+ };
1049
+ readonly retryOn: {
1050
+ readonly type: "array";
1051
+ readonly items: {
1052
+ readonly minLength: 1;
1053
+ readonly maxLength: 128;
1054
+ readonly type: "string";
1055
+ };
1056
+ };
1057
+ readonly nonRetryableErrors: {
1058
+ readonly type: "array";
1059
+ readonly items: {
1060
+ readonly minLength: 1;
1061
+ readonly maxLength: 128;
1062
+ readonly type: "string";
1063
+ };
1064
+ };
1065
+ };
1066
+ };
1067
+ readonly promptAttachments: {
1068
+ readonly additionalProperties: false;
1069
+ readonly type: "object";
1070
+ readonly properties: {
1071
+ readonly imageArtifacts: {
1072
+ readonly additionalProperties: false;
1073
+ readonly type: "object";
1074
+ readonly required: readonly ["fields"];
1075
+ readonly properties: {
1076
+ readonly fields: {
1077
+ readonly minItems: 1;
1078
+ readonly uniqueItems: true;
1079
+ readonly type: "array";
1080
+ readonly items: {
1081
+ readonly minLength: 1;
1082
+ readonly maxLength: 128;
1083
+ readonly type: "string";
1084
+ };
1085
+ };
1086
+ };
1087
+ };
1088
+ readonly textArtifacts: {
1089
+ readonly additionalProperties: false;
1090
+ readonly type: "object";
1091
+ readonly required: readonly ["fields"];
1092
+ readonly properties: {
1093
+ readonly fields: {
1094
+ readonly minItems: 1;
1095
+ readonly uniqueItems: true;
1096
+ readonly type: "array";
1097
+ readonly items: {
1098
+ readonly minLength: 1;
1099
+ readonly maxLength: 128;
1100
+ readonly type: "string";
1101
+ };
1102
+ };
1103
+ readonly maxCharsPerArtifact: {
1104
+ readonly minimum: 1;
1105
+ readonly maximum: 100000;
1106
+ readonly type: "integer";
1107
+ };
1108
+ };
1109
+ };
1110
+ };
1111
+ };
1186
1112
  readonly next: {
1187
1113
  readonly minLength: 1;
1188
1114
  readonly maxLength: 128;
@@ -1443,6 +1369,90 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
1443
1369
  };
1444
1370
  };
1445
1371
  };
1372
+ readonly retry: {
1373
+ readonly additionalProperties: false;
1374
+ readonly type: "object";
1375
+ readonly properties: {
1376
+ readonly maxAttempts: {
1377
+ readonly minimum: 1;
1378
+ readonly maximum: 100;
1379
+ readonly type: "integer";
1380
+ };
1381
+ readonly initialIntervalMs: {
1382
+ readonly minimum: 1;
1383
+ readonly type: "integer";
1384
+ };
1385
+ readonly backoffMultiplier: {
1386
+ readonly minimum: 1;
1387
+ readonly type: "number";
1388
+ };
1389
+ readonly maxIntervalMs: {
1390
+ readonly minimum: 1;
1391
+ readonly type: "integer";
1392
+ };
1393
+ readonly retryOn: {
1394
+ readonly type: "array";
1395
+ readonly items: {
1396
+ readonly minLength: 1;
1397
+ readonly maxLength: 128;
1398
+ readonly type: "string";
1399
+ };
1400
+ };
1401
+ readonly nonRetryableErrors: {
1402
+ readonly type: "array";
1403
+ readonly items: {
1404
+ readonly minLength: 1;
1405
+ readonly maxLength: 128;
1406
+ readonly type: "string";
1407
+ };
1408
+ };
1409
+ };
1410
+ };
1411
+ readonly promptAttachments: {
1412
+ readonly additionalProperties: false;
1413
+ readonly type: "object";
1414
+ readonly properties: {
1415
+ readonly imageArtifacts: {
1416
+ readonly additionalProperties: false;
1417
+ readonly type: "object";
1418
+ readonly required: readonly ["fields"];
1419
+ readonly properties: {
1420
+ readonly fields: {
1421
+ readonly minItems: 1;
1422
+ readonly uniqueItems: true;
1423
+ readonly type: "array";
1424
+ readonly items: {
1425
+ readonly minLength: 1;
1426
+ readonly maxLength: 128;
1427
+ readonly type: "string";
1428
+ };
1429
+ };
1430
+ };
1431
+ };
1432
+ readonly textArtifacts: {
1433
+ readonly additionalProperties: false;
1434
+ readonly type: "object";
1435
+ readonly required: readonly ["fields"];
1436
+ readonly properties: {
1437
+ readonly fields: {
1438
+ readonly minItems: 1;
1439
+ readonly uniqueItems: true;
1440
+ readonly type: "array";
1441
+ readonly items: {
1442
+ readonly minLength: 1;
1443
+ readonly maxLength: 128;
1444
+ readonly type: "string";
1445
+ };
1446
+ };
1447
+ readonly maxCharsPerArtifact: {
1448
+ readonly minimum: 1;
1449
+ readonly maximum: 100000;
1450
+ readonly type: "integer";
1451
+ };
1452
+ };
1453
+ };
1454
+ };
1455
+ };
1446
1456
  readonly next: {
1447
1457
  readonly minLength: 1;
1448
1458
  readonly maxLength: 128;
@@ -1987,7 +1997,7 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
1987
1997
  }, {
1988
1998
  readonly additionalProperties: false;
1989
1999
  readonly type: "object";
1990
- readonly required: readonly ["id", "type", "template", "channel"];
2000
+ readonly required: readonly ["id", "type", "catch", "next"];
1991
2001
  readonly properties: {
1992
2002
  readonly id: {
1993
2003
  readonly minLength: 1;
@@ -1995,7 +2005,7 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
1995
2005
  readonly type: "string";
1996
2006
  };
1997
2007
  readonly type: {
1998
- readonly const: "send";
2008
+ readonly const: "receive";
1999
2009
  readonly type: "string";
2000
2010
  };
2001
2011
  readonly owner: {
@@ -2003,177 +2013,21 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
2003
2013
  readonly maxLength: 128;
2004
2014
  readonly type: "string";
2005
2015
  };
2006
- readonly template: {
2016
+ readonly catch: {
2017
+ readonly minLength: 1;
2018
+ readonly maxLength: 128;
2019
+ readonly type: "string";
2020
+ };
2021
+ readonly correlateOn: {
2007
2022
  readonly minLength: 1;
2008
2023
  readonly maxLength: 256;
2009
2024
  readonly type: "string";
2010
2025
  };
2011
- readonly channel: {
2012
- readonly additionalProperties: false;
2026
+ readonly resultMapping: {
2013
2027
  readonly type: "object";
2014
- readonly required: readonly ["type", "config"];
2015
- readonly properties: {
2016
- readonly type: {
2017
- readonly minLength: 1;
2018
- readonly maxLength: 128;
2019
- readonly type: "string";
2020
- };
2021
- readonly binding: {
2022
- readonly minLength: 1;
2023
- readonly maxLength: 256;
2024
- readonly type: "string";
2025
- };
2026
- readonly config: {
2027
- readonly type: "object";
2028
- readonly patternProperties: {
2029
- readonly "^(.*)$": {};
2030
- };
2031
- };
2032
- };
2033
- };
2034
- readonly input: {
2035
- readonly minLength: 1;
2036
- readonly maxLength: 128;
2037
- readonly type: "string";
2038
- };
2039
- readonly next: {
2040
- readonly minLength: 1;
2041
- readonly maxLength: 128;
2042
- readonly type: "string";
2043
- };
2044
- readonly boundary: {
2045
- readonly type: "array";
2046
- readonly items: {
2047
- readonly anyOf: readonly [{
2048
- readonly additionalProperties: false;
2049
- readonly type: "object";
2050
- readonly required: readonly ["type", "duration", "goto", "interrupting"];
2051
- readonly properties: {
2052
- readonly type: {
2053
- readonly const: "timer";
2054
- readonly type: "string";
2055
- };
2056
- readonly duration: {
2057
- readonly minLength: 1;
2058
- readonly maxLength: 64;
2059
- readonly type: "string";
2060
- };
2061
- readonly goto: {
2062
- readonly minLength: 1;
2063
- readonly maxLength: 128;
2064
- readonly type: "string";
2065
- };
2066
- readonly interrupting: {
2067
- readonly default: true;
2068
- readonly type: "boolean";
2069
- };
2070
- };
2071
- }, {
2072
- readonly additionalProperties: false;
2073
- readonly type: "object";
2074
- readonly required: readonly ["type", "cycle", "goto", "interrupting"];
2075
- readonly properties: {
2076
- readonly type: {
2077
- readonly const: "timer";
2078
- readonly type: "string";
2079
- };
2080
- readonly cycle: {
2081
- readonly minLength: 1;
2082
- readonly maxLength: 64;
2083
- readonly type: "string";
2084
- };
2085
- readonly goto: {
2086
- readonly minLength: 1;
2087
- readonly maxLength: 128;
2088
- readonly type: "string";
2089
- };
2090
- readonly interrupting: {
2091
- readonly default: true;
2092
- readonly type: "boolean";
2093
- };
2094
- };
2095
- }, {
2096
- readonly additionalProperties: false;
2097
- readonly type: "object";
2098
- readonly required: readonly ["type", "name", "goto", "interrupting"];
2099
- readonly properties: {
2100
- readonly type: {
2101
- readonly const: "message";
2102
- readonly type: "string";
2103
- };
2104
- readonly name: {
2105
- readonly minLength: 1;
2106
- readonly maxLength: 128;
2107
- readonly type: "string";
2108
- };
2109
- readonly goto: {
2110
- readonly minLength: 1;
2111
- readonly maxLength: 128;
2112
- readonly type: "string";
2113
- };
2114
- readonly interrupting: {
2115
- readonly default: true;
2116
- readonly type: "boolean";
2117
- };
2118
- };
2119
- }, {
2120
- readonly additionalProperties: false;
2121
- readonly type: "object";
2122
- readonly required: readonly ["type", "goto"];
2123
- readonly properties: {
2124
- readonly type: {
2125
- readonly const: "error";
2126
- readonly type: "string";
2127
- };
2128
- readonly code: {
2129
- readonly minLength: 1;
2130
- readonly maxLength: 128;
2131
- readonly type: "string";
2132
- };
2133
- readonly goto: {
2134
- readonly minLength: 1;
2135
- readonly maxLength: 128;
2136
- readonly type: "string";
2137
- };
2138
- };
2139
- }];
2140
- };
2141
- };
2142
- };
2143
- }, {
2144
- readonly additionalProperties: false;
2145
- readonly type: "object";
2146
- readonly required: readonly ["id", "type", "catch", "next"];
2147
- readonly properties: {
2148
- readonly id: {
2149
- readonly minLength: 1;
2150
- readonly maxLength: 128;
2151
- readonly type: "string";
2152
- };
2153
- readonly type: {
2154
- readonly const: "receive";
2155
- readonly type: "string";
2156
- };
2157
- readonly owner: {
2158
- readonly minLength: 1;
2159
- readonly maxLength: 128;
2160
- readonly type: "string";
2161
- };
2162
- readonly catch: {
2163
- readonly minLength: 1;
2164
- readonly maxLength: 128;
2165
- readonly type: "string";
2166
- };
2167
- readonly correlateOn: {
2168
- readonly minLength: 1;
2169
- readonly maxLength: 256;
2170
- readonly type: "string";
2171
- };
2172
- readonly resultMapping: {
2173
- readonly type: "object";
2174
- readonly patternProperties: {
2175
- readonly "^(.*)$": {
2176
- readonly additionalProperties: false;
2028
+ readonly patternProperties: {
2029
+ readonly "^(.*)$": {
2030
+ readonly additionalProperties: false;
2177
2031
  readonly type: "object";
2178
2032
  readonly required: readonly ["from"];
2179
2033
  readonly properties: {
@@ -3020,63 +2874,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
3020
2874
  };
3021
2875
  };
3022
2876
  };
3023
- }, {
3024
- readonly name: "connector";
3025
- readonly displayName: "Connector";
3026
- readonly ownerDomain: "authoring";
3027
- readonly format: "yaml";
3028
- readonly filePatterns: readonly ["connectors/**/*.yaml", "connectors/**/*.yml"];
3029
- readonly cardinality: "collection";
3030
- readonly kindValue: "Connector";
3031
- readonly jsonSchema: {
3032
- readonly additionalProperties: false;
3033
- readonly type: "object";
3034
- readonly required: readonly ["apiVersion", "kind", "metadata", "spec"];
3035
- readonly properties: {
3036
- readonly apiVersion: {
3037
- readonly const: "kora/v1";
3038
- readonly type: "string";
3039
- };
3040
- readonly kind: {
3041
- readonly const: "Connector";
3042
- readonly type: "string";
3043
- };
3044
- readonly metadata: {
3045
- readonly additionalProperties: false;
3046
- readonly type: "object";
3047
- readonly required: readonly ["name", "scopeId"];
3048
- readonly properties: {
3049
- readonly name: {
3050
- readonly minLength: 1;
3051
- readonly maxLength: 128;
3052
- readonly type: "string";
3053
- };
3054
- readonly scopeId: {
3055
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
3056
- readonly type: "string";
3057
- };
3058
- };
3059
- };
3060
- readonly spec: {
3061
- readonly additionalProperties: false;
3062
- readonly type: "object";
3063
- readonly required: readonly ["type", "config"];
3064
- readonly properties: {
3065
- readonly type: {
3066
- readonly minLength: 1;
3067
- readonly maxLength: 128;
3068
- readonly type: "string";
3069
- };
3070
- readonly config: {
3071
- readonly type: "object";
3072
- readonly patternProperties: {
3073
- readonly "^(.*)$": {};
3074
- };
3075
- };
3076
- };
3077
- };
3078
- };
3079
- };
3080
2877
  }, {
3081
2878
  readonly name: "operation";
3082
2879
  readonly displayName: "Operation";
@@ -3101,43 +2898,109 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
3101
2898
  readonly metadata: {
3102
2899
  readonly additionalProperties: false;
3103
2900
  readonly type: "object";
3104
- readonly required: readonly ["name", "scopeId"];
2901
+ readonly required: readonly ["name"];
3105
2902
  readonly properties: {
3106
2903
  readonly name: {
3107
2904
  readonly minLength: 1;
3108
2905
  readonly maxLength: 128;
3109
2906
  readonly type: "string";
3110
2907
  };
3111
- readonly scopeId: {
3112
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
3113
- readonly type: "string";
3114
- };
3115
2908
  };
3116
2909
  };
3117
2910
  readonly spec: {
3118
2911
  readonly additionalProperties: false;
3119
2912
  readonly type: "object";
3120
- readonly required: readonly ["connector", "action", "config"];
2913
+ readonly required: readonly ["script"];
3121
2914
  readonly properties: {
3122
2915
  readonly description: {
3123
2916
  readonly minLength: 1;
3124
2917
  readonly maxLength: 4000;
3125
2918
  readonly type: "string";
3126
2919
  };
3127
- readonly connector: {
3128
- readonly minLength: 1;
3129
- readonly maxLength: 128;
3130
- readonly type: "string";
2920
+ readonly script: {
2921
+ readonly additionalProperties: false;
2922
+ readonly type: "object";
2923
+ readonly required: readonly ["command"];
2924
+ readonly properties: {
2925
+ readonly command: {
2926
+ readonly minLength: 1;
2927
+ readonly maxLength: 4096;
2928
+ readonly type: "string";
2929
+ };
2930
+ readonly args: {
2931
+ readonly type: "array";
2932
+ readonly items: {
2933
+ readonly maxLength: 4096;
2934
+ readonly type: "string";
2935
+ };
2936
+ };
2937
+ readonly stdin: {
2938
+ readonly maxLength: 1000000;
2939
+ readonly type: "string";
2940
+ };
2941
+ readonly cwd: {
2942
+ readonly minLength: 1;
2943
+ readonly maxLength: 4096;
2944
+ readonly type: "string";
2945
+ };
2946
+ readonly env: {
2947
+ readonly type: "object";
2948
+ readonly patternProperties: {
2949
+ readonly "^(.*)$": {
2950
+ readonly type: "string";
2951
+ };
2952
+ };
2953
+ };
2954
+ readonly parseStdoutAsJson: {
2955
+ readonly type: "boolean";
2956
+ };
2957
+ readonly maxStdoutBytes: {
2958
+ readonly minimum: 1;
2959
+ readonly type: "integer";
2960
+ };
2961
+ readonly maxStderrBytes: {
2962
+ readonly minimum: 1;
2963
+ readonly type: "integer";
2964
+ };
2965
+ };
3131
2966
  };
3132
- readonly action: {
3133
- readonly minLength: 1;
3134
- readonly maxLength: 128;
3135
- readonly type: "string";
2967
+ readonly runtimeSdk: {
2968
+ readonly additionalProperties: true;
2969
+ readonly type: "object";
2970
+ readonly properties: {};
3136
2971
  };
3137
- readonly config: {
2972
+ readonly credentials: {
3138
2973
  readonly type: "object";
3139
2974
  readonly patternProperties: {
3140
- readonly "^(.*)$": {};
2975
+ readonly "^(.*)$": {
2976
+ readonly additionalProperties: false;
2977
+ readonly type: "object";
2978
+ readonly required: readonly ["bindingKind", "connectionRef", "inject"];
2979
+ readonly properties: {
2980
+ readonly bindingKind: {
2981
+ readonly minLength: 1;
2982
+ readonly maxLength: 128;
2983
+ readonly type: "string";
2984
+ };
2985
+ readonly connectionRef: {
2986
+ readonly minLength: 1;
2987
+ readonly maxLength: 128;
2988
+ readonly type: "string";
2989
+ };
2990
+ readonly inject: {
2991
+ readonly additionalProperties: false;
2992
+ readonly type: "object";
2993
+ readonly required: readonly ["env"];
2994
+ readonly properties: {
2995
+ readonly env: {
2996
+ readonly minLength: 1;
2997
+ readonly maxLength: 128;
2998
+ readonly type: "string";
2999
+ };
3000
+ };
3001
+ };
3002
+ };
3003
+ };
3141
3004
  };
3142
3005
  };
3143
3006
  readonly paramBindings: {
@@ -3192,57 +3055,6 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
3192
3055
  };
3193
3056
  };
3194
3057
  };
3195
- readonly credentials: {
3196
- readonly type: "object";
3197
- readonly patternProperties: {
3198
- readonly "^(.*)$": {
3199
- readonly additionalProperties: false;
3200
- readonly type: "object";
3201
- readonly required: readonly ["bindingKind", "connectionRef", "inject"];
3202
- readonly properties: {
3203
- readonly bindingKind: {
3204
- readonly minLength: 1;
3205
- readonly maxLength: 128;
3206
- readonly type: "string";
3207
- };
3208
- readonly connectionRef: {
3209
- readonly minLength: 1;
3210
- readonly maxLength: 128;
3211
- readonly type: "string";
3212
- };
3213
- readonly inject: {
3214
- readonly additionalProperties: false;
3215
- readonly type: "object";
3216
- readonly required: readonly ["env"];
3217
- readonly properties: {
3218
- readonly env: {
3219
- readonly minLength: 1;
3220
- readonly maxLength: 128;
3221
- readonly type: "string";
3222
- };
3223
- };
3224
- };
3225
- };
3226
- };
3227
- };
3228
- };
3229
- readonly script: {
3230
- readonly additionalProperties: false;
3231
- readonly type: "object";
3232
- readonly required: readonly ["name", "entrypointPath"];
3233
- readonly properties: {
3234
- readonly name: {
3235
- readonly minLength: 1;
3236
- readonly maxLength: 128;
3237
- readonly type: "string";
3238
- };
3239
- readonly entrypointPath: {
3240
- readonly minLength: 1;
3241
- readonly maxLength: 4096;
3242
- readonly type: "string";
3243
- };
3244
- };
3245
- };
3246
3058
  readonly timeoutMs: {
3247
3059
  readonly minimum: 1;
3248
3060
  readonly type: "integer";
@@ -3302,17 +3114,13 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
3302
3114
  readonly metadata: {
3303
3115
  readonly additionalProperties: false;
3304
3116
  readonly type: "object";
3305
- readonly required: readonly ["name", "scopeId"];
3117
+ readonly required: readonly ["name"];
3306
3118
  readonly properties: {
3307
3119
  readonly name: {
3308
3120
  readonly minLength: 1;
3309
3121
  readonly maxLength: 128;
3310
3122
  readonly type: "string";
3311
3123
  };
3312
- readonly scopeId: {
3313
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
3314
- readonly type: "string";
3315
- };
3316
3124
  };
3317
3125
  };
3318
3126
  readonly spec: {
@@ -3376,109 +3184,4 @@ export declare const CLI_SCHEMA_REGISTRY_DATA: readonly [{
3376
3184
  };
3377
3185
  };
3378
3186
  };
3379
- }, {
3380
- readonly name: "mcp-server";
3381
- readonly displayName: "MCP Server";
3382
- readonly ownerDomain: "authoring";
3383
- readonly format: "yaml";
3384
- readonly filePatterns: readonly ["mcp-servers/**/*.yaml", "mcp-servers/**/*.yml"];
3385
- readonly cardinality: "collection";
3386
- readonly kindValue: "McpServer";
3387
- readonly jsonSchema: {
3388
- readonly additionalProperties: false;
3389
- readonly type: "object";
3390
- readonly required: readonly ["apiVersion", "kind", "metadata", "spec"];
3391
- readonly properties: {
3392
- readonly apiVersion: {
3393
- readonly const: "kora/v1";
3394
- readonly type: "string";
3395
- };
3396
- readonly kind: {
3397
- readonly const: "McpServer";
3398
- readonly type: "string";
3399
- };
3400
- readonly metadata: {
3401
- readonly additionalProperties: false;
3402
- readonly type: "object";
3403
- readonly required: readonly ["name", "scopeId"];
3404
- readonly properties: {
3405
- readonly name: {
3406
- readonly minLength: 1;
3407
- readonly maxLength: 128;
3408
- readonly type: "string";
3409
- };
3410
- readonly scopeId: {
3411
- readonly pattern: "^[a-z0-9][a-z0-9_-]{2,63}$";
3412
- readonly type: "string";
3413
- };
3414
- };
3415
- };
3416
- readonly spec: {
3417
- readonly additionalProperties: false;
3418
- readonly type: "object";
3419
- readonly required: readonly ["transport", "url"];
3420
- readonly properties: {
3421
- readonly transport: {
3422
- readonly const: "streamable-http";
3423
- readonly type: "string";
3424
- };
3425
- readonly url: {
3426
- readonly minLength: 1;
3427
- readonly maxLength: 4096;
3428
- readonly type: "string";
3429
- };
3430
- readonly headers: {
3431
- readonly minItems: 1;
3432
- readonly type: "array";
3433
- readonly items: {
3434
- readonly additionalProperties: false;
3435
- readonly type: "object";
3436
- readonly required: readonly ["name", "valueFrom"];
3437
- readonly properties: {
3438
- readonly name: {
3439
- readonly minLength: 1;
3440
- readonly maxLength: 256;
3441
- readonly type: "string";
3442
- };
3443
- readonly scheme: {
3444
- readonly minLength: 1;
3445
- readonly maxLength: 128;
3446
- readonly type: "string";
3447
- };
3448
- readonly valueFrom: {
3449
- readonly anyOf: readonly [{
3450
- readonly additionalProperties: false;
3451
- readonly type: "object";
3452
- readonly required: readonly ["secretRef"];
3453
- readonly properties: {
3454
- readonly secretRef: {
3455
- readonly minLength: 1;
3456
- readonly maxLength: 256;
3457
- readonly type: "string";
3458
- };
3459
- };
3460
- }, {
3461
- readonly additionalProperties: false;
3462
- readonly type: "object";
3463
- readonly required: readonly ["runtimeVariable"];
3464
- readonly properties: {
3465
- readonly runtimeVariable: {
3466
- readonly minLength: 1;
3467
- readonly maxLength: 256;
3468
- readonly type: "string";
3469
- };
3470
- };
3471
- }];
3472
- };
3473
- };
3474
- };
3475
- };
3476
- readonly timeoutMs: {
3477
- readonly minimum: 1;
3478
- readonly type: "integer";
3479
- };
3480
- };
3481
- };
3482
- };
3483
- };
3484
3187
  }];