@c4a/context 0.7.8 → 0.7.9

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.
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { DEFAULT_INDEXER_REGISTRY_PATH } from "./indexerProtocolCommon.js";
3
+ export declare const indexerJsonSchema: z.ZodType<IndexerJson>;
3
4
  export type IndexerJson = null | boolean | number | string | IndexerJson[] | {
4
5
  [key: string]: IndexerJson;
5
6
  };
@@ -928,6 +929,611 @@ export declare const indexerDistributionSchema: z.ZodEffects<z.ZodDiscriminatedU
928
929
  kind: "marketplace";
929
930
  locator: string;
930
931
  }>;
932
+ export declare const indexerRegistryEntryInputSchema: z.ZodObject<{
933
+ id: z.ZodEffects<z.ZodString, string, string>;
934
+ operations: z.ZodDefault<z.ZodArray<z.ZodEnum<["main-index"]>, "many">>;
935
+ requirement_bindings: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
936
+ requirement_ref: z.ZodEffects<z.ZodString, string, string>;
937
+ coverage_domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
938
+ owned_scope: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
939
+ ref: z.ZodString;
940
+ }, "strict", z.ZodTypeAny, {
941
+ ref: string;
942
+ }, {
943
+ ref: string;
944
+ }>, z.ZodEffects<z.ZodObject<{
945
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
946
+ source_ref: z.ZodString;
947
+ module_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
948
+ }, "strict", z.ZodTypeAny, {
949
+ source_ref: string;
950
+ module_refs: string[];
951
+ }, {
952
+ source_ref: string;
953
+ module_refs?: string[] | undefined;
954
+ }>, {
955
+ source_ref: string;
956
+ module_refs: string[];
957
+ }, {
958
+ source_ref: string;
959
+ module_refs?: string[] | undefined;
960
+ }>, "many">;
961
+ }, "strict", z.ZodTypeAny, {
962
+ targets: {
963
+ source_ref: string;
964
+ module_refs: string[];
965
+ }[];
966
+ }, {
967
+ targets: {
968
+ source_ref: string;
969
+ module_refs?: string[] | undefined;
970
+ }[];
971
+ }>, {
972
+ targets: {
973
+ source_ref: string;
974
+ module_refs: string[];
975
+ }[];
976
+ }, {
977
+ targets: {
978
+ source_ref: string;
979
+ module_refs?: string[] | undefined;
980
+ }[];
981
+ }>]>>;
982
+ role: z.ZodEnum<["primary", "enricher"]>;
983
+ }, "strict", z.ZodTypeAny, {
984
+ coverage_domains: string[];
985
+ requirement_ref: string;
986
+ role: "primary" | "enricher";
987
+ owned_scope?: {
988
+ targets: {
989
+ source_ref: string;
990
+ module_refs: string[];
991
+ }[];
992
+ } | {
993
+ ref: string;
994
+ } | undefined;
995
+ }, {
996
+ coverage_domains: string[];
997
+ requirement_ref: string;
998
+ role: "primary" | "enricher";
999
+ owned_scope?: {
1000
+ targets: {
1001
+ source_ref: string;
1002
+ module_refs?: string[] | undefined;
1003
+ }[];
1004
+ } | {
1005
+ ref: string;
1006
+ } | undefined;
1007
+ }>, {
1008
+ owned_scope: {
1009
+ targets: {
1010
+ source_ref: string;
1011
+ module_refs: string[];
1012
+ }[];
1013
+ } | {
1014
+ ref: string;
1015
+ };
1016
+ coverage_domains: string[];
1017
+ requirement_ref: string;
1018
+ role: "primary" | "enricher";
1019
+ }, {
1020
+ coverage_domains: string[];
1021
+ requirement_ref: string;
1022
+ role: "primary" | "enricher";
1023
+ owned_scope?: {
1024
+ targets: {
1025
+ source_ref: string;
1026
+ module_refs?: string[] | undefined;
1027
+ }[];
1028
+ } | {
1029
+ ref: string;
1030
+ } | undefined;
1031
+ }>, {
1032
+ owned_scope: {
1033
+ targets: {
1034
+ source_ref: string;
1035
+ module_refs: string[];
1036
+ }[];
1037
+ } | {
1038
+ ref: string;
1039
+ };
1040
+ coverage_domains: string[];
1041
+ requirement_ref: string;
1042
+ role: "primary" | "enricher";
1043
+ }, {
1044
+ coverage_domains: string[];
1045
+ requirement_ref: string;
1046
+ role: "primary" | "enricher";
1047
+ owned_scope?: {
1048
+ targets: {
1049
+ source_ref: string;
1050
+ module_refs?: string[] | undefined;
1051
+ }[];
1052
+ } | {
1053
+ ref: string;
1054
+ } | undefined;
1055
+ }>, "many">;
1056
+ read_scope: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1057
+ refs: z.ZodArray<z.ZodString, "many">;
1058
+ extra_targets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1059
+ source_ref: z.ZodString;
1060
+ module_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1061
+ }, "strict", z.ZodTypeAny, {
1062
+ source_ref: string;
1063
+ module_refs: string[];
1064
+ }, {
1065
+ source_ref: string;
1066
+ module_refs?: string[] | undefined;
1067
+ }>, {
1068
+ source_ref: string;
1069
+ module_refs: string[];
1070
+ }, {
1071
+ source_ref: string;
1072
+ module_refs?: string[] | undefined;
1073
+ }>, "many">>;
1074
+ }, "strict", z.ZodTypeAny, {
1075
+ refs: string[];
1076
+ extra_targets?: {
1077
+ source_ref: string;
1078
+ module_refs: string[];
1079
+ }[] | undefined;
1080
+ }, {
1081
+ refs: string[];
1082
+ extra_targets?: {
1083
+ source_ref: string;
1084
+ module_refs?: string[] | undefined;
1085
+ }[] | undefined;
1086
+ }>, {
1087
+ refs: string[];
1088
+ extra_targets?: {
1089
+ source_ref: string;
1090
+ module_refs: string[];
1091
+ }[] | undefined;
1092
+ }, {
1093
+ refs: string[];
1094
+ extra_targets?: {
1095
+ source_ref: string;
1096
+ module_refs?: string[] | undefined;
1097
+ }[] | undefined;
1098
+ }>>;
1099
+ profile: z.ZodObject<{
1100
+ primary: z.ZodObject<{
1101
+ id: z.ZodEffects<z.ZodString, string, string>;
1102
+ provider: z.ZodEffects<z.ZodString, string, string>;
1103
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
1104
+ }, "strict", z.ZodTypeAny, {
1105
+ id: string;
1106
+ provider: string;
1107
+ variants?: Record<string, string> | undefined;
1108
+ }, {
1109
+ id: string;
1110
+ provider: string;
1111
+ variants?: Record<string, string> | undefined;
1112
+ }>;
1113
+ additional: z.ZodOptional<z.ZodArray<z.ZodObject<{
1114
+ id: z.ZodEffects<z.ZodString, string, string>;
1115
+ provider: z.ZodEffects<z.ZodString, string, string>;
1116
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
1117
+ } & {
1118
+ kind: z.ZodEnum<["supporting", "extension"]>;
1119
+ }, "strict", z.ZodTypeAny, {
1120
+ id: string;
1121
+ kind: "supporting" | "extension";
1122
+ provider: string;
1123
+ variants?: Record<string, string> | undefined;
1124
+ }, {
1125
+ id: string;
1126
+ kind: "supporting" | "extension";
1127
+ provider: string;
1128
+ variants?: Record<string, string> | undefined;
1129
+ }>, "many">>;
1130
+ composers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1131
+ id: z.ZodEffects<z.ZodString, string, string>;
1132
+ provider: z.ZodEffects<z.ZodString, string, string>;
1133
+ }, "strict", z.ZodTypeAny, {
1134
+ id: string;
1135
+ provider: string;
1136
+ }, {
1137
+ id: string;
1138
+ provider: string;
1139
+ }>, "many">>;
1140
+ }, "strict", z.ZodTypeAny, {
1141
+ primary: {
1142
+ id: string;
1143
+ provider: string;
1144
+ variants?: Record<string, string> | undefined;
1145
+ };
1146
+ additional?: {
1147
+ id: string;
1148
+ kind: "supporting" | "extension";
1149
+ provider: string;
1150
+ variants?: Record<string, string> | undefined;
1151
+ }[] | undefined;
1152
+ composers?: {
1153
+ id: string;
1154
+ provider: string;
1155
+ }[] | undefined;
1156
+ }, {
1157
+ primary: {
1158
+ id: string;
1159
+ provider: string;
1160
+ variants?: Record<string, string> | undefined;
1161
+ };
1162
+ additional?: {
1163
+ id: string;
1164
+ kind: "supporting" | "extension";
1165
+ provider: string;
1166
+ variants?: Record<string, string> | undefined;
1167
+ }[] | undefined;
1168
+ composers?: {
1169
+ id: string;
1170
+ provider: string;
1171
+ }[] | undefined;
1172
+ }>;
1173
+ providers: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
1174
+ id: z.ZodEffects<z.ZodString, string, string>;
1175
+ role: z.ZodDefault<z.ZodEnum<["primary", "extension"]>>;
1176
+ skill: z.ZodEffects<z.ZodString, string, string>;
1177
+ version: z.ZodString;
1178
+ integrity: z.ZodString;
1179
+ distribution: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1180
+ kind: z.ZodLiteral<"cli-bundled">;
1181
+ locator: z.ZodString;
1182
+ }, "strict", z.ZodTypeAny, {
1183
+ kind: "cli-bundled";
1184
+ locator: string;
1185
+ }, {
1186
+ kind: "cli-bundled";
1187
+ locator: string;
1188
+ }>, z.ZodObject<{
1189
+ kind: z.ZodLiteral<"bundled">;
1190
+ locator: z.ZodString;
1191
+ }, "strict", z.ZodTypeAny, {
1192
+ kind: "bundled";
1193
+ locator: string;
1194
+ }, {
1195
+ kind: "bundled";
1196
+ locator: string;
1197
+ }>, z.ZodObject<{
1198
+ kind: z.ZodLiteral<"workspace">;
1199
+ locator: z.ZodString;
1200
+ }, "strict", z.ZodTypeAny, {
1201
+ kind: "workspace";
1202
+ locator: string;
1203
+ }, {
1204
+ kind: "workspace";
1205
+ locator: string;
1206
+ }>, z.ZodObject<{
1207
+ kind: z.ZodLiteral<"package">;
1208
+ locator: z.ZodString;
1209
+ }, "strict", z.ZodTypeAny, {
1210
+ kind: "package";
1211
+ locator: string;
1212
+ }, {
1213
+ kind: "package";
1214
+ locator: string;
1215
+ }>, z.ZodObject<{
1216
+ kind: z.ZodLiteral<"marketplace">;
1217
+ locator: z.ZodString;
1218
+ }, "strict", z.ZodTypeAny, {
1219
+ kind: "marketplace";
1220
+ locator: string;
1221
+ }, {
1222
+ kind: "marketplace";
1223
+ locator: string;
1224
+ }>]>, {
1225
+ kind: "cli-bundled";
1226
+ locator: string;
1227
+ } | {
1228
+ kind: "bundled";
1229
+ locator: string;
1230
+ } | {
1231
+ kind: "workspace";
1232
+ locator: string;
1233
+ } | {
1234
+ kind: "package";
1235
+ locator: string;
1236
+ } | {
1237
+ kind: "marketplace";
1238
+ locator: string;
1239
+ }, {
1240
+ kind: "cli-bundled";
1241
+ locator: string;
1242
+ } | {
1243
+ kind: "bundled";
1244
+ locator: string;
1245
+ } | {
1246
+ kind: "workspace";
1247
+ locator: string;
1248
+ } | {
1249
+ kind: "package";
1250
+ locator: string;
1251
+ } | {
1252
+ kind: "marketplace";
1253
+ locator: string;
1254
+ }>>;
1255
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
1256
+ }, "strict", z.ZodTypeAny, {
1257
+ id: string;
1258
+ role: "primary" | "extension";
1259
+ skill: string;
1260
+ version: string;
1261
+ integrity: string;
1262
+ distribution?: {
1263
+ kind: "cli-bundled";
1264
+ locator: string;
1265
+ } | {
1266
+ kind: "bundled";
1267
+ locator: string;
1268
+ } | {
1269
+ kind: "workspace";
1270
+ locator: string;
1271
+ } | {
1272
+ kind: "package";
1273
+ locator: string;
1274
+ } | {
1275
+ kind: "marketplace";
1276
+ locator: string;
1277
+ } | undefined;
1278
+ config?: Record<string, IndexerJson> | undefined;
1279
+ }, {
1280
+ id: string;
1281
+ skill: string;
1282
+ version: string;
1283
+ integrity: string;
1284
+ role?: "primary" | "extension" | undefined;
1285
+ distribution?: {
1286
+ kind: "cli-bundled";
1287
+ locator: string;
1288
+ } | {
1289
+ kind: "bundled";
1290
+ locator: string;
1291
+ } | {
1292
+ kind: "workspace";
1293
+ locator: string;
1294
+ } | {
1295
+ kind: "package";
1296
+ locator: string;
1297
+ } | {
1298
+ kind: "marketplace";
1299
+ locator: string;
1300
+ } | undefined;
1301
+ config?: Record<string, IndexerJson> | undefined;
1302
+ }>, {
1303
+ distribution: {
1304
+ kind: "cli-bundled";
1305
+ locator: string;
1306
+ } | {
1307
+ kind: "bundled";
1308
+ locator: string;
1309
+ } | {
1310
+ kind: "workspace";
1311
+ locator: string;
1312
+ } | {
1313
+ kind: "package";
1314
+ locator: string;
1315
+ } | {
1316
+ kind: "marketplace";
1317
+ locator: string;
1318
+ };
1319
+ id: string;
1320
+ role: "primary" | "extension";
1321
+ skill: string;
1322
+ version: string;
1323
+ integrity: string;
1324
+ config?: Record<string, IndexerJson> | undefined;
1325
+ }, {
1326
+ id: string;
1327
+ skill: string;
1328
+ version: string;
1329
+ integrity: string;
1330
+ role?: "primary" | "extension" | undefined;
1331
+ distribution?: {
1332
+ kind: "cli-bundled";
1333
+ locator: string;
1334
+ } | {
1335
+ kind: "bundled";
1336
+ locator: string;
1337
+ } | {
1338
+ kind: "workspace";
1339
+ locator: string;
1340
+ } | {
1341
+ kind: "package";
1342
+ locator: string;
1343
+ } | {
1344
+ kind: "marketplace";
1345
+ locator: string;
1346
+ } | undefined;
1347
+ config?: Record<string, IndexerJson> | undefined;
1348
+ }>, {
1349
+ distribution: {
1350
+ kind: "cli-bundled";
1351
+ locator: string;
1352
+ } | {
1353
+ kind: "bundled";
1354
+ locator: string;
1355
+ } | {
1356
+ kind: "workspace";
1357
+ locator: string;
1358
+ } | {
1359
+ kind: "package";
1360
+ locator: string;
1361
+ } | {
1362
+ kind: "marketplace";
1363
+ locator: string;
1364
+ };
1365
+ id: string;
1366
+ role: "primary" | "extension";
1367
+ skill: string;
1368
+ version: string;
1369
+ integrity: string;
1370
+ config?: Record<string, IndexerJson> | undefined;
1371
+ }, {
1372
+ id: string;
1373
+ skill: string;
1374
+ version: string;
1375
+ integrity: string;
1376
+ role?: "primary" | "extension" | undefined;
1377
+ distribution?: {
1378
+ kind: "cli-bundled";
1379
+ locator: string;
1380
+ } | {
1381
+ kind: "bundled";
1382
+ locator: string;
1383
+ } | {
1384
+ kind: "workspace";
1385
+ locator: string;
1386
+ } | {
1387
+ kind: "package";
1388
+ locator: string;
1389
+ } | {
1390
+ kind: "marketplace";
1391
+ locator: string;
1392
+ } | undefined;
1393
+ config?: Record<string, IndexerJson> | undefined;
1394
+ }>, "many">;
1395
+ customization: z.ZodOptional<z.ZodObject<{
1396
+ mode: z.ZodEnum<["extend", "replace"]>;
1397
+ }, "strict", z.ZodTypeAny, {
1398
+ mode: "replace" | "extend";
1399
+ }, {
1400
+ mode: "replace" | "extend";
1401
+ }>>;
1402
+ }, "strict", z.ZodTypeAny, {
1403
+ id: string;
1404
+ operations: "main-index"[];
1405
+ requirement_bindings: {
1406
+ owned_scope: {
1407
+ targets: {
1408
+ source_ref: string;
1409
+ module_refs: string[];
1410
+ }[];
1411
+ } | {
1412
+ ref: string;
1413
+ };
1414
+ coverage_domains: string[];
1415
+ requirement_ref: string;
1416
+ role: "primary" | "enricher";
1417
+ }[];
1418
+ profile: {
1419
+ primary: {
1420
+ id: string;
1421
+ provider: string;
1422
+ variants?: Record<string, string> | undefined;
1423
+ };
1424
+ additional?: {
1425
+ id: string;
1426
+ kind: "supporting" | "extension";
1427
+ provider: string;
1428
+ variants?: Record<string, string> | undefined;
1429
+ }[] | undefined;
1430
+ composers?: {
1431
+ id: string;
1432
+ provider: string;
1433
+ }[] | undefined;
1434
+ };
1435
+ providers: {
1436
+ distribution: {
1437
+ kind: "cli-bundled";
1438
+ locator: string;
1439
+ } | {
1440
+ kind: "bundled";
1441
+ locator: string;
1442
+ } | {
1443
+ kind: "workspace";
1444
+ locator: string;
1445
+ } | {
1446
+ kind: "package";
1447
+ locator: string;
1448
+ } | {
1449
+ kind: "marketplace";
1450
+ locator: string;
1451
+ };
1452
+ id: string;
1453
+ role: "primary" | "extension";
1454
+ skill: string;
1455
+ version: string;
1456
+ integrity: string;
1457
+ config?: Record<string, IndexerJson> | undefined;
1458
+ }[];
1459
+ read_scope?: {
1460
+ refs: string[];
1461
+ extra_targets?: {
1462
+ source_ref: string;
1463
+ module_refs: string[];
1464
+ }[] | undefined;
1465
+ } | undefined;
1466
+ customization?: {
1467
+ mode: "replace" | "extend";
1468
+ } | undefined;
1469
+ }, {
1470
+ id: string;
1471
+ requirement_bindings: {
1472
+ coverage_domains: string[];
1473
+ requirement_ref: string;
1474
+ role: "primary" | "enricher";
1475
+ owned_scope?: {
1476
+ targets: {
1477
+ source_ref: string;
1478
+ module_refs?: string[] | undefined;
1479
+ }[];
1480
+ } | {
1481
+ ref: string;
1482
+ } | undefined;
1483
+ }[];
1484
+ profile: {
1485
+ primary: {
1486
+ id: string;
1487
+ provider: string;
1488
+ variants?: Record<string, string> | undefined;
1489
+ };
1490
+ additional?: {
1491
+ id: string;
1492
+ kind: "supporting" | "extension";
1493
+ provider: string;
1494
+ variants?: Record<string, string> | undefined;
1495
+ }[] | undefined;
1496
+ composers?: {
1497
+ id: string;
1498
+ provider: string;
1499
+ }[] | undefined;
1500
+ };
1501
+ providers: {
1502
+ id: string;
1503
+ skill: string;
1504
+ version: string;
1505
+ integrity: string;
1506
+ role?: "primary" | "extension" | undefined;
1507
+ distribution?: {
1508
+ kind: "cli-bundled";
1509
+ locator: string;
1510
+ } | {
1511
+ kind: "bundled";
1512
+ locator: string;
1513
+ } | {
1514
+ kind: "workspace";
1515
+ locator: string;
1516
+ } | {
1517
+ kind: "package";
1518
+ locator: string;
1519
+ } | {
1520
+ kind: "marketplace";
1521
+ locator: string;
1522
+ } | undefined;
1523
+ config?: Record<string, IndexerJson> | undefined;
1524
+ }[];
1525
+ operations?: "main-index"[] | undefined;
1526
+ read_scope?: {
1527
+ refs: string[];
1528
+ extra_targets?: {
1529
+ source_ref: string;
1530
+ module_refs?: string[] | undefined;
1531
+ }[] | undefined;
1532
+ } | undefined;
1533
+ customization?: {
1534
+ mode: "replace" | "extend";
1535
+ } | undefined;
1536
+ }>;
931
1537
  export declare const indexerRegistryEntrySchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
932
1538
  id: z.ZodEffects<z.ZodString, string, string>;
933
1539
  operations: z.ZodDefault<z.ZodArray<z.ZodEnum<["main-index"]>, "many">>;