@c4a/context 0.6.18 → 0.7.0

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 (130) hide show
  1. package/README.md +5 -5
  2. package/README.zh-CN.md +5 -5
  3. package/codeIndexPlan.d.ts +84 -0
  4. package/contracts.d.ts +2 -1
  5. package/docs/README.md +7 -0
  6. package/docs/README.zh-CN.md +5 -0
  7. package/docs/getting-started.md +12 -12
  8. package/docs/guides/agent-guide.md +18 -9
  9. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  10. package/docs/guides/indexer-provider-and-customization.md +140 -0
  11. package/docs/guides/lark-resources.md +7 -0
  12. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  13. package/docs/guides/package-outputs.md +3 -3
  14. package/docs/reference/code-extractors.md +7 -6
  15. package/docs/reference/indexer-provider-protocol.md +819 -0
  16. package/docs/reference/package-templates.md +18 -10
  17. package/docs/reference/project-api.md +49 -24
  18. package/index.d.ts +48 -2
  19. package/index.js +28239 -3948
  20. package/indexerAgentStepProtocol.d.ts +9391 -0
  21. package/indexerArtifactDependencies.d.ts +689 -0
  22. package/indexerArtifactPolicy.d.ts +335 -0
  23. package/indexerArtifactResult.d.ts +2010 -0
  24. package/indexerAuditFacts.d.ts +66 -0
  25. package/indexerAuditOverrideReadiness.d.ts +27 -0
  26. package/indexerAuditProtocol.d.ts +238 -0
  27. package/indexerAuditRevision.d.ts +726 -0
  28. package/indexerAuditRevisionActions.d.ts +236 -0
  29. package/indexerAuthoringFixture.d.ts +152 -0
  30. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  31. package/indexerBenchmark.d.ts +1062 -0
  32. package/indexerCandidateCompile.d.ts +801 -0
  33. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  34. package/indexerCatalogFallback.d.ts +1262 -0
  35. package/indexerCollectionMapping.d.ts +75 -0
  36. package/indexerContentLayers.d.ts +137 -0
  37. package/indexerControlledInvocation.d.ts +512 -0
  38. package/indexerControlledProgram.d.ts +12535 -0
  39. package/indexerCoreExports.d.ts +21 -0
  40. package/indexerCustomizationDraft.d.ts +13800 -0
  41. package/indexerCustomizationLadder.d.ts +103 -0
  42. package/indexerDependencyView.d.ts +1610 -0
  43. package/indexerEvidenceAdapterResult.d.ts +504 -0
  44. package/indexerExampleDecision.d.ts +1606 -0
  45. package/indexerExampleIdentity.d.ts +132 -0
  46. package/indexerExampleIdentityAudit.d.ts +70 -0
  47. package/indexerExampleLinkageAudit.d.ts +80 -0
  48. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  49. package/indexerIncrementalImpact.d.ts +221 -0
  50. package/indexerInventoryDisposition.d.ts +443 -0
  51. package/indexerLayerComposition.d.ts +1652 -0
  52. package/indexerLayoutChange.d.ts +329 -0
  53. package/indexerLayoutProposalSet.d.ts +447 -0
  54. package/indexerLayoutResolver.d.ts +342 -0
  55. package/indexerLayoutTransition.d.ts +247 -0
  56. package/indexerLifecycle.d.ts +53 -0
  57. package/indexerMainLifecycle.d.ts +258 -0
  58. package/indexerMainRunLedger.d.ts +888 -0
  59. package/indexerMainRunProtocol.d.ts +6471 -0
  60. package/indexerMainWorkset.d.ts +2141 -0
  61. package/indexerMaterialAnswer.d.ts +738 -0
  62. package/indexerMaterialAnswerActualization.d.ts +91 -0
  63. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  64. package/indexerMaterialAnswerFlow.d.ts +63 -0
  65. package/indexerMaterialAnswerLayout.d.ts +76 -0
  66. package/indexerMaterialAnswerReview.d.ts +217 -0
  67. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  68. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  69. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  70. package/indexerMaterialGapLedger.d.ts +3111 -0
  71. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  72. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  73. package/indexerNavigationArtifactGraph.d.ts +5 -0
  74. package/indexerNavigationArtifactPlan.d.ts +39 -0
  75. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  76. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  77. package/indexerOverlayTrust.d.ts +1425 -0
  78. package/indexerParserCoordinate.d.ts +222 -0
  79. package/indexerParserFactView.d.ts +503 -0
  80. package/indexerPartitionConvergence.d.ts +496 -0
  81. package/indexerPartitionPlan.d.ts +919 -0
  82. package/indexerPartitionStrategyResolution.d.ts +594 -0
  83. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  84. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  85. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  86. package/indexerPostAuthorComposition.d.ts +2000 -0
  87. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  88. package/indexerPrimaryProjection.d.ts +262 -0
  89. package/indexerProfileContract.d.ts +3034 -0
  90. package/indexerProfileMetricAudit.d.ts +218 -0
  91. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  92. package/indexerProgramRunProtocol.d.ts +7642 -0
  93. package/indexerProjectProposal.d.ts +2807 -0
  94. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  95. package/indexerProjectedArtifactPlan.d.ts +217 -0
  96. package/indexerProtocolCommon.d.ts +29 -0
  97. package/indexerProvider.d.ts +2573 -0
  98. package/indexerProviderComposition.d.ts +1357 -0
  99. package/indexerProviderContractReferences.d.ts +13 -0
  100. package/indexerProviderProfileResolution.d.ts +20 -0
  101. package/indexerProviderResolution.d.ts +752 -0
  102. package/indexerProviderResolutionAction.d.ts +678 -0
  103. package/indexerProviderRouting.d.ts +3909 -0
  104. package/indexerProviderSelectionProposal.d.ts +3311 -0
  105. package/indexerQuestionAuthority.d.ts +419 -0
  106. package/indexerReaderTargetInventory.d.ts +161 -0
  107. package/indexerReferenceOnlyAudit.d.ts +90 -0
  108. package/indexerRegistry.d.ts +3019 -0
  109. package/indexerRequirementComparison.d.ts +44 -0
  110. package/indexerRequirementConfirmation.d.ts +1193 -0
  111. package/indexerRequirementLifecycle.d.ts +3314 -0
  112. package/indexerRestrictedSelector.d.ts +63 -0
  113. package/indexerResultReconciliation.d.ts +6844 -0
  114. package/indexerResultReconciliationRun.d.ts +15 -0
  115. package/indexerRunEnvelope.d.ts +384 -0
  116. package/indexerRunProtocolCommon.d.ts +21 -0
  117. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  118. package/indexerStructuredDeclaration.d.ts +513 -0
  119. package/indexerSubjectCatalog.d.ts +230 -0
  120. package/indexerSubjectIdentity.d.ts +19 -0
  121. package/indexerSubjectKeyAuthority.d.ts +785 -0
  122. package/indexerTemplateRendering.d.ts +485 -0
  123. package/indexerToolSnapshot.d.ts +431 -0
  124. package/indexerWorksetRead.d.ts +287 -0
  125. package/package.json +1 -1
  126. package/phases.d.ts +11 -9
  127. package/templates/package-templates/kb/AGENTS.md +1 -1
  128. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +1 -1
  129. package/templates/package-templates.zh-CN/kb/AGENTS.md +1 -1
  130. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +1 -1
@@ -0,0 +1,3019 @@
1
+ import { z } from "zod";
2
+ import { DEFAULT_INDEXER_REGISTRY_PATH } from "./indexerProtocolCommon.js";
3
+ export type IndexerJson = null | boolean | number | string | IndexerJson[] | {
4
+ [key: string]: IndexerJson;
5
+ };
6
+ declare const scopeTargetSchema: z.ZodEffects<z.ZodObject<{
7
+ source_ref: z.ZodString;
8
+ module_refs: z.ZodArray<z.ZodString, "many">;
9
+ }, "strict", z.ZodTypeAny, {
10
+ source_ref: string;
11
+ module_refs: string[];
12
+ }, {
13
+ source_ref: string;
14
+ module_refs: string[];
15
+ }>, {
16
+ source_ref: string;
17
+ module_refs: string[];
18
+ }, {
19
+ source_ref: string;
20
+ module_refs: string[];
21
+ }>;
22
+ export declare const indexRequirementSchema: z.ZodEffects<z.ZodObject<{
23
+ id: z.ZodEffects<z.ZodString, string, string>;
24
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
25
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
26
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
+ ref: z.ZodString;
28
+ authority: z.ZodObject<{
29
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
30
+ ref: z.ZodString;
31
+ digest: z.ZodString;
32
+ }, "strict", z.ZodTypeAny, {
33
+ kind: "cli-base-contract" | "verified-contract-overlay";
34
+ ref: string;
35
+ digest: string;
36
+ }, {
37
+ kind: "cli-base-contract" | "verified-contract-overlay";
38
+ ref: string;
39
+ digest: string;
40
+ }>;
41
+ contract_version: z.ZodNumber;
42
+ contract_digest: z.ZodString;
43
+ }, "strict", z.ZodTypeAny, {
44
+ ref: string;
45
+ authority: {
46
+ kind: "cli-base-contract" | "verified-contract-overlay";
47
+ ref: string;
48
+ digest: string;
49
+ };
50
+ contract_version: number;
51
+ contract_digest: string;
52
+ }, {
53
+ ref: string;
54
+ authority: {
55
+ kind: "cli-base-contract" | "verified-contract-overlay";
56
+ ref: string;
57
+ digest: string;
58
+ };
59
+ contract_version: number;
60
+ contract_digest: string;
61
+ }>, "many">>;
62
+ target_scope: z.ZodEffects<z.ZodObject<{
63
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
64
+ source_ref: z.ZodString;
65
+ module_refs: z.ZodArray<z.ZodString, "many">;
66
+ }, "strict", z.ZodTypeAny, {
67
+ source_ref: string;
68
+ module_refs: string[];
69
+ }, {
70
+ source_ref: string;
71
+ module_refs: string[];
72
+ }>, {
73
+ source_ref: string;
74
+ module_refs: string[];
75
+ }, {
76
+ source_ref: string;
77
+ module_refs: string[];
78
+ }>, "many">;
79
+ }, "strict", z.ZodTypeAny, {
80
+ targets: {
81
+ source_ref: string;
82
+ module_refs: string[];
83
+ }[];
84
+ }, {
85
+ targets: {
86
+ source_ref: string;
87
+ module_refs: string[];
88
+ }[];
89
+ }>, {
90
+ targets: {
91
+ source_ref: string;
92
+ module_refs: string[];
93
+ }[];
94
+ }, {
95
+ targets: {
96
+ source_ref: string;
97
+ module_refs: string[];
98
+ }[];
99
+ }>;
100
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
101
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
102
+ source_ref: z.ZodString;
103
+ module_refs: z.ZodArray<z.ZodString, "many">;
104
+ }, "strict", z.ZodTypeAny, {
105
+ source_ref: string;
106
+ module_refs: string[];
107
+ }, {
108
+ source_ref: string;
109
+ module_refs: string[];
110
+ }>, {
111
+ source_ref: string;
112
+ module_refs: string[];
113
+ }, {
114
+ source_ref: string;
115
+ module_refs: string[];
116
+ }>, "many">;
117
+ }, "strict", z.ZodTypeAny, {
118
+ targets: {
119
+ source_ref: string;
120
+ module_refs: string[];
121
+ }[];
122
+ }, {
123
+ targets: {
124
+ source_ref: string;
125
+ module_refs: string[];
126
+ }[];
127
+ }>, {
128
+ targets: {
129
+ source_ref: string;
130
+ module_refs: string[];
131
+ }[];
132
+ }, {
133
+ targets: {
134
+ source_ref: string;
135
+ module_refs: string[];
136
+ }[];
137
+ }>;
138
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
139
+ id: z.ZodEffects<z.ZodString, string, string>;
140
+ scope: z.ZodEffects<z.ZodObject<{
141
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
142
+ source_ref: z.ZodString;
143
+ module_refs: z.ZodArray<z.ZodString, "many">;
144
+ }, "strict", z.ZodTypeAny, {
145
+ source_ref: string;
146
+ module_refs: string[];
147
+ }, {
148
+ source_ref: string;
149
+ module_refs: string[];
150
+ }>, {
151
+ source_ref: string;
152
+ module_refs: string[];
153
+ }, {
154
+ source_ref: string;
155
+ module_refs: string[];
156
+ }>, "many">;
157
+ }, "strict", z.ZodTypeAny, {
158
+ targets: {
159
+ source_ref: string;
160
+ module_refs: string[];
161
+ }[];
162
+ }, {
163
+ targets: {
164
+ source_ref: string;
165
+ module_refs: string[];
166
+ }[];
167
+ }>, {
168
+ targets: {
169
+ source_ref: string;
170
+ module_refs: string[];
171
+ }[];
172
+ }, {
173
+ targets: {
174
+ source_ref: string;
175
+ module_refs: string[];
176
+ }[];
177
+ }>;
178
+ reason: z.ZodString;
179
+ }, "strict", z.ZodTypeAny, {
180
+ id: string;
181
+ scope: {
182
+ targets: {
183
+ source_ref: string;
184
+ module_refs: string[];
185
+ }[];
186
+ };
187
+ reason: string;
188
+ }, {
189
+ id: string;
190
+ scope: {
191
+ targets: {
192
+ source_ref: string;
193
+ module_refs: string[];
194
+ }[];
195
+ };
196
+ reason: string;
197
+ }>, "many">>;
198
+ }, "strict", z.ZodTypeAny, {
199
+ id: string;
200
+ reader_goals: string[];
201
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
202
+ target_scope: {
203
+ targets: {
204
+ source_ref: string;
205
+ module_refs: string[];
206
+ }[];
207
+ };
208
+ evidence_source_scope: {
209
+ targets: {
210
+ source_ref: string;
211
+ module_refs: string[];
212
+ }[];
213
+ };
214
+ questions?: {
215
+ ref: string;
216
+ authority: {
217
+ kind: "cli-base-contract" | "verified-contract-overlay";
218
+ ref: string;
219
+ digest: string;
220
+ };
221
+ contract_version: number;
222
+ contract_digest: string;
223
+ }[] | undefined;
224
+ exclusions?: {
225
+ id: string;
226
+ scope: {
227
+ targets: {
228
+ source_ref: string;
229
+ module_refs: string[];
230
+ }[];
231
+ };
232
+ reason: string;
233
+ }[] | undefined;
234
+ }, {
235
+ id: string;
236
+ reader_goals: string[];
237
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
238
+ target_scope: {
239
+ targets: {
240
+ source_ref: string;
241
+ module_refs: string[];
242
+ }[];
243
+ };
244
+ evidence_source_scope: {
245
+ targets: {
246
+ source_ref: string;
247
+ module_refs: string[];
248
+ }[];
249
+ };
250
+ questions?: {
251
+ ref: string;
252
+ authority: {
253
+ kind: "cli-base-contract" | "verified-contract-overlay";
254
+ ref: string;
255
+ digest: string;
256
+ };
257
+ contract_version: number;
258
+ contract_digest: string;
259
+ }[] | undefined;
260
+ exclusions?: {
261
+ id: string;
262
+ scope: {
263
+ targets: {
264
+ source_ref: string;
265
+ module_refs: string[];
266
+ }[];
267
+ };
268
+ reason: string;
269
+ }[] | undefined;
270
+ }>, {
271
+ id: string;
272
+ reader_goals: string[];
273
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
274
+ target_scope: {
275
+ targets: {
276
+ source_ref: string;
277
+ module_refs: string[];
278
+ }[];
279
+ };
280
+ evidence_source_scope: {
281
+ targets: {
282
+ source_ref: string;
283
+ module_refs: string[];
284
+ }[];
285
+ };
286
+ questions?: {
287
+ ref: string;
288
+ authority: {
289
+ kind: "cli-base-contract" | "verified-contract-overlay";
290
+ ref: string;
291
+ digest: string;
292
+ };
293
+ contract_version: number;
294
+ contract_digest: string;
295
+ }[] | undefined;
296
+ exclusions?: {
297
+ id: string;
298
+ scope: {
299
+ targets: {
300
+ source_ref: string;
301
+ module_refs: string[];
302
+ }[];
303
+ };
304
+ reason: string;
305
+ }[] | undefined;
306
+ }, {
307
+ id: string;
308
+ reader_goals: string[];
309
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
310
+ target_scope: {
311
+ targets: {
312
+ source_ref: string;
313
+ module_refs: string[];
314
+ }[];
315
+ };
316
+ evidence_source_scope: {
317
+ targets: {
318
+ source_ref: string;
319
+ module_refs: string[];
320
+ }[];
321
+ };
322
+ questions?: {
323
+ ref: string;
324
+ authority: {
325
+ kind: "cli-base-contract" | "verified-contract-overlay";
326
+ ref: string;
327
+ digest: string;
328
+ };
329
+ contract_version: number;
330
+ contract_digest: string;
331
+ }[] | undefined;
332
+ exclusions?: {
333
+ id: string;
334
+ scope: {
335
+ targets: {
336
+ source_ref: string;
337
+ module_refs: string[];
338
+ }[];
339
+ };
340
+ reason: string;
341
+ }[] | undefined;
342
+ }>;
343
+ export declare const indexRequirementSetSchema: z.ZodEffects<z.ZodObject<{
344
+ protocol: z.ZodLiteral<"context.indexer.requirement-set/v1">;
345
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
346
+ id: z.ZodEffects<z.ZodString, string, string>;
347
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
348
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
349
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
350
+ ref: z.ZodString;
351
+ authority: z.ZodObject<{
352
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
353
+ ref: z.ZodString;
354
+ digest: z.ZodString;
355
+ }, "strict", z.ZodTypeAny, {
356
+ kind: "cli-base-contract" | "verified-contract-overlay";
357
+ ref: string;
358
+ digest: string;
359
+ }, {
360
+ kind: "cli-base-contract" | "verified-contract-overlay";
361
+ ref: string;
362
+ digest: string;
363
+ }>;
364
+ contract_version: z.ZodNumber;
365
+ contract_digest: z.ZodString;
366
+ }, "strict", z.ZodTypeAny, {
367
+ ref: string;
368
+ authority: {
369
+ kind: "cli-base-contract" | "verified-contract-overlay";
370
+ ref: string;
371
+ digest: string;
372
+ };
373
+ contract_version: number;
374
+ contract_digest: string;
375
+ }, {
376
+ ref: string;
377
+ authority: {
378
+ kind: "cli-base-contract" | "verified-contract-overlay";
379
+ ref: string;
380
+ digest: string;
381
+ };
382
+ contract_version: number;
383
+ contract_digest: string;
384
+ }>, "many">>;
385
+ target_scope: z.ZodEffects<z.ZodObject<{
386
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
387
+ source_ref: z.ZodString;
388
+ module_refs: z.ZodArray<z.ZodString, "many">;
389
+ }, "strict", z.ZodTypeAny, {
390
+ source_ref: string;
391
+ module_refs: string[];
392
+ }, {
393
+ source_ref: string;
394
+ module_refs: string[];
395
+ }>, {
396
+ source_ref: string;
397
+ module_refs: string[];
398
+ }, {
399
+ source_ref: string;
400
+ module_refs: string[];
401
+ }>, "many">;
402
+ }, "strict", z.ZodTypeAny, {
403
+ targets: {
404
+ source_ref: string;
405
+ module_refs: string[];
406
+ }[];
407
+ }, {
408
+ targets: {
409
+ source_ref: string;
410
+ module_refs: string[];
411
+ }[];
412
+ }>, {
413
+ targets: {
414
+ source_ref: string;
415
+ module_refs: string[];
416
+ }[];
417
+ }, {
418
+ targets: {
419
+ source_ref: string;
420
+ module_refs: string[];
421
+ }[];
422
+ }>;
423
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
424
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
425
+ source_ref: z.ZodString;
426
+ module_refs: z.ZodArray<z.ZodString, "many">;
427
+ }, "strict", z.ZodTypeAny, {
428
+ source_ref: string;
429
+ module_refs: string[];
430
+ }, {
431
+ source_ref: string;
432
+ module_refs: string[];
433
+ }>, {
434
+ source_ref: string;
435
+ module_refs: string[];
436
+ }, {
437
+ source_ref: string;
438
+ module_refs: string[];
439
+ }>, "many">;
440
+ }, "strict", z.ZodTypeAny, {
441
+ targets: {
442
+ source_ref: string;
443
+ module_refs: string[];
444
+ }[];
445
+ }, {
446
+ targets: {
447
+ source_ref: string;
448
+ module_refs: string[];
449
+ }[];
450
+ }>, {
451
+ targets: {
452
+ source_ref: string;
453
+ module_refs: string[];
454
+ }[];
455
+ }, {
456
+ targets: {
457
+ source_ref: string;
458
+ module_refs: string[];
459
+ }[];
460
+ }>;
461
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
462
+ id: z.ZodEffects<z.ZodString, string, string>;
463
+ scope: z.ZodEffects<z.ZodObject<{
464
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
465
+ source_ref: z.ZodString;
466
+ module_refs: z.ZodArray<z.ZodString, "many">;
467
+ }, "strict", z.ZodTypeAny, {
468
+ source_ref: string;
469
+ module_refs: string[];
470
+ }, {
471
+ source_ref: string;
472
+ module_refs: string[];
473
+ }>, {
474
+ source_ref: string;
475
+ module_refs: string[];
476
+ }, {
477
+ source_ref: string;
478
+ module_refs: string[];
479
+ }>, "many">;
480
+ }, "strict", z.ZodTypeAny, {
481
+ targets: {
482
+ source_ref: string;
483
+ module_refs: string[];
484
+ }[];
485
+ }, {
486
+ targets: {
487
+ source_ref: string;
488
+ module_refs: string[];
489
+ }[];
490
+ }>, {
491
+ targets: {
492
+ source_ref: string;
493
+ module_refs: string[];
494
+ }[];
495
+ }, {
496
+ targets: {
497
+ source_ref: string;
498
+ module_refs: string[];
499
+ }[];
500
+ }>;
501
+ reason: z.ZodString;
502
+ }, "strict", z.ZodTypeAny, {
503
+ id: string;
504
+ scope: {
505
+ targets: {
506
+ source_ref: string;
507
+ module_refs: string[];
508
+ }[];
509
+ };
510
+ reason: string;
511
+ }, {
512
+ id: string;
513
+ scope: {
514
+ targets: {
515
+ source_ref: string;
516
+ module_refs: string[];
517
+ }[];
518
+ };
519
+ reason: string;
520
+ }>, "many">>;
521
+ }, "strict", z.ZodTypeAny, {
522
+ id: string;
523
+ reader_goals: string[];
524
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
525
+ target_scope: {
526
+ targets: {
527
+ source_ref: string;
528
+ module_refs: string[];
529
+ }[];
530
+ };
531
+ evidence_source_scope: {
532
+ targets: {
533
+ source_ref: string;
534
+ module_refs: string[];
535
+ }[];
536
+ };
537
+ questions?: {
538
+ ref: string;
539
+ authority: {
540
+ kind: "cli-base-contract" | "verified-contract-overlay";
541
+ ref: string;
542
+ digest: string;
543
+ };
544
+ contract_version: number;
545
+ contract_digest: string;
546
+ }[] | undefined;
547
+ exclusions?: {
548
+ id: string;
549
+ scope: {
550
+ targets: {
551
+ source_ref: string;
552
+ module_refs: string[];
553
+ }[];
554
+ };
555
+ reason: string;
556
+ }[] | undefined;
557
+ }, {
558
+ id: string;
559
+ reader_goals: string[];
560
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
561
+ target_scope: {
562
+ targets: {
563
+ source_ref: string;
564
+ module_refs: string[];
565
+ }[];
566
+ };
567
+ evidence_source_scope: {
568
+ targets: {
569
+ source_ref: string;
570
+ module_refs: string[];
571
+ }[];
572
+ };
573
+ questions?: {
574
+ ref: string;
575
+ authority: {
576
+ kind: "cli-base-contract" | "verified-contract-overlay";
577
+ ref: string;
578
+ digest: string;
579
+ };
580
+ contract_version: number;
581
+ contract_digest: string;
582
+ }[] | undefined;
583
+ exclusions?: {
584
+ id: string;
585
+ scope: {
586
+ targets: {
587
+ source_ref: string;
588
+ module_refs: string[];
589
+ }[];
590
+ };
591
+ reason: string;
592
+ }[] | undefined;
593
+ }>, {
594
+ id: string;
595
+ reader_goals: string[];
596
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
597
+ target_scope: {
598
+ targets: {
599
+ source_ref: string;
600
+ module_refs: string[];
601
+ }[];
602
+ };
603
+ evidence_source_scope: {
604
+ targets: {
605
+ source_ref: string;
606
+ module_refs: string[];
607
+ }[];
608
+ };
609
+ questions?: {
610
+ ref: string;
611
+ authority: {
612
+ kind: "cli-base-contract" | "verified-contract-overlay";
613
+ ref: string;
614
+ digest: string;
615
+ };
616
+ contract_version: number;
617
+ contract_digest: string;
618
+ }[] | undefined;
619
+ exclusions?: {
620
+ id: string;
621
+ scope: {
622
+ targets: {
623
+ source_ref: string;
624
+ module_refs: string[];
625
+ }[];
626
+ };
627
+ reason: string;
628
+ }[] | undefined;
629
+ }, {
630
+ id: string;
631
+ reader_goals: string[];
632
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
633
+ target_scope: {
634
+ targets: {
635
+ source_ref: string;
636
+ module_refs: string[];
637
+ }[];
638
+ };
639
+ evidence_source_scope: {
640
+ targets: {
641
+ source_ref: string;
642
+ module_refs: string[];
643
+ }[];
644
+ };
645
+ questions?: {
646
+ ref: string;
647
+ authority: {
648
+ kind: "cli-base-contract" | "verified-contract-overlay";
649
+ ref: string;
650
+ digest: string;
651
+ };
652
+ contract_version: number;
653
+ contract_digest: string;
654
+ }[] | undefined;
655
+ exclusions?: {
656
+ id: string;
657
+ scope: {
658
+ targets: {
659
+ source_ref: string;
660
+ module_refs: string[];
661
+ }[];
662
+ };
663
+ reason: string;
664
+ }[] | undefined;
665
+ }>, "many">;
666
+ }, "strict", z.ZodTypeAny, {
667
+ protocol: "context.indexer.requirement-set/v1";
668
+ requirements: {
669
+ id: string;
670
+ reader_goals: string[];
671
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
672
+ target_scope: {
673
+ targets: {
674
+ source_ref: string;
675
+ module_refs: string[];
676
+ }[];
677
+ };
678
+ evidence_source_scope: {
679
+ targets: {
680
+ source_ref: string;
681
+ module_refs: string[];
682
+ }[];
683
+ };
684
+ questions?: {
685
+ ref: string;
686
+ authority: {
687
+ kind: "cli-base-contract" | "verified-contract-overlay";
688
+ ref: string;
689
+ digest: string;
690
+ };
691
+ contract_version: number;
692
+ contract_digest: string;
693
+ }[] | undefined;
694
+ exclusions?: {
695
+ id: string;
696
+ scope: {
697
+ targets: {
698
+ source_ref: string;
699
+ module_refs: string[];
700
+ }[];
701
+ };
702
+ reason: string;
703
+ }[] | undefined;
704
+ }[];
705
+ }, {
706
+ protocol: "context.indexer.requirement-set/v1";
707
+ requirements: {
708
+ id: string;
709
+ reader_goals: string[];
710
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
711
+ target_scope: {
712
+ targets: {
713
+ source_ref: string;
714
+ module_refs: string[];
715
+ }[];
716
+ };
717
+ evidence_source_scope: {
718
+ targets: {
719
+ source_ref: string;
720
+ module_refs: string[];
721
+ }[];
722
+ };
723
+ questions?: {
724
+ ref: string;
725
+ authority: {
726
+ kind: "cli-base-contract" | "verified-contract-overlay";
727
+ ref: string;
728
+ digest: string;
729
+ };
730
+ contract_version: number;
731
+ contract_digest: string;
732
+ }[] | undefined;
733
+ exclusions?: {
734
+ id: string;
735
+ scope: {
736
+ targets: {
737
+ source_ref: string;
738
+ module_refs: string[];
739
+ }[];
740
+ };
741
+ reason: string;
742
+ }[] | undefined;
743
+ }[];
744
+ }>, {
745
+ protocol: "context.indexer.requirement-set/v1";
746
+ requirements: {
747
+ id: string;
748
+ reader_goals: string[];
749
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
750
+ target_scope: {
751
+ targets: {
752
+ source_ref: string;
753
+ module_refs: string[];
754
+ }[];
755
+ };
756
+ evidence_source_scope: {
757
+ targets: {
758
+ source_ref: string;
759
+ module_refs: string[];
760
+ }[];
761
+ };
762
+ questions?: {
763
+ ref: string;
764
+ authority: {
765
+ kind: "cli-base-contract" | "verified-contract-overlay";
766
+ ref: string;
767
+ digest: string;
768
+ };
769
+ contract_version: number;
770
+ contract_digest: string;
771
+ }[] | undefined;
772
+ exclusions?: {
773
+ id: string;
774
+ scope: {
775
+ targets: {
776
+ source_ref: string;
777
+ module_refs: string[];
778
+ }[];
779
+ };
780
+ reason: string;
781
+ }[] | undefined;
782
+ }[];
783
+ }, {
784
+ protocol: "context.indexer.requirement-set/v1";
785
+ requirements: {
786
+ id: string;
787
+ reader_goals: string[];
788
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
789
+ target_scope: {
790
+ targets: {
791
+ source_ref: string;
792
+ module_refs: string[];
793
+ }[];
794
+ };
795
+ evidence_source_scope: {
796
+ targets: {
797
+ source_ref: string;
798
+ module_refs: string[];
799
+ }[];
800
+ };
801
+ questions?: {
802
+ ref: string;
803
+ authority: {
804
+ kind: "cli-base-contract" | "verified-contract-overlay";
805
+ ref: string;
806
+ digest: string;
807
+ };
808
+ contract_version: number;
809
+ contract_digest: string;
810
+ }[] | undefined;
811
+ exclusions?: {
812
+ id: string;
813
+ scope: {
814
+ targets: {
815
+ source_ref: string;
816
+ module_refs: string[];
817
+ }[];
818
+ };
819
+ reason: string;
820
+ }[] | undefined;
821
+ }[];
822
+ }>;
823
+ export declare const indexerDistributionSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
824
+ kind: z.ZodLiteral<"cli-bundled">;
825
+ locator: z.ZodString;
826
+ }, "strict", z.ZodTypeAny, {
827
+ kind: "cli-bundled";
828
+ locator: string;
829
+ }, {
830
+ kind: "cli-bundled";
831
+ locator: string;
832
+ }>, z.ZodObject<{
833
+ kind: z.ZodLiteral<"bundled">;
834
+ locator: z.ZodString;
835
+ }, "strict", z.ZodTypeAny, {
836
+ kind: "bundled";
837
+ locator: string;
838
+ }, {
839
+ kind: "bundled";
840
+ locator: string;
841
+ }>, z.ZodObject<{
842
+ kind: z.ZodLiteral<"workspace">;
843
+ locator: z.ZodString;
844
+ }, "strict", z.ZodTypeAny, {
845
+ kind: "workspace";
846
+ locator: string;
847
+ }, {
848
+ kind: "workspace";
849
+ locator: string;
850
+ }>, z.ZodObject<{
851
+ kind: z.ZodLiteral<"package">;
852
+ locator: z.ZodString;
853
+ }, "strict", z.ZodTypeAny, {
854
+ kind: "package";
855
+ locator: string;
856
+ }, {
857
+ kind: "package";
858
+ locator: string;
859
+ }>, z.ZodObject<{
860
+ kind: z.ZodLiteral<"marketplace">;
861
+ locator: z.ZodString;
862
+ }, "strict", z.ZodTypeAny, {
863
+ kind: "marketplace";
864
+ locator: string;
865
+ }, {
866
+ kind: "marketplace";
867
+ locator: string;
868
+ }>]>, {
869
+ kind: "cli-bundled";
870
+ locator: string;
871
+ } | {
872
+ kind: "bundled";
873
+ locator: string;
874
+ } | {
875
+ kind: "workspace";
876
+ locator: string;
877
+ } | {
878
+ kind: "package";
879
+ locator: string;
880
+ } | {
881
+ kind: "marketplace";
882
+ locator: string;
883
+ }, {
884
+ kind: "cli-bundled";
885
+ locator: string;
886
+ } | {
887
+ kind: "bundled";
888
+ locator: string;
889
+ } | {
890
+ kind: "workspace";
891
+ locator: string;
892
+ } | {
893
+ kind: "package";
894
+ locator: string;
895
+ } | {
896
+ kind: "marketplace";
897
+ locator: string;
898
+ }>;
899
+ export declare const indexerRegistryEntrySchema: z.ZodEffects<z.ZodObject<{
900
+ id: z.ZodEffects<z.ZodString, string, string>;
901
+ operations: z.ZodArray<z.ZodEnum<["main-index", "material-answer"]>, "many">;
902
+ requirement_bindings: z.ZodArray<z.ZodEffects<z.ZodObject<{
903
+ requirement_ref: z.ZodEffects<z.ZodString, string, string>;
904
+ coverage_domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
905
+ owned_scope: z.ZodUnion<[z.ZodObject<{
906
+ ref: z.ZodString;
907
+ }, "strict", z.ZodTypeAny, {
908
+ ref: string;
909
+ }, {
910
+ ref: string;
911
+ }>, z.ZodEffects<z.ZodObject<{
912
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
913
+ source_ref: z.ZodString;
914
+ module_refs: z.ZodArray<z.ZodString, "many">;
915
+ }, "strict", z.ZodTypeAny, {
916
+ source_ref: string;
917
+ module_refs: string[];
918
+ }, {
919
+ source_ref: string;
920
+ module_refs: string[];
921
+ }>, {
922
+ source_ref: string;
923
+ module_refs: string[];
924
+ }, {
925
+ source_ref: string;
926
+ module_refs: string[];
927
+ }>, "many">;
928
+ }, "strict", z.ZodTypeAny, {
929
+ targets: {
930
+ source_ref: string;
931
+ module_refs: string[];
932
+ }[];
933
+ }, {
934
+ targets: {
935
+ source_ref: string;
936
+ module_refs: string[];
937
+ }[];
938
+ }>, {
939
+ targets: {
940
+ source_ref: string;
941
+ module_refs: string[];
942
+ }[];
943
+ }, {
944
+ targets: {
945
+ source_ref: string;
946
+ module_refs: string[];
947
+ }[];
948
+ }>]>;
949
+ role: z.ZodEnum<["primary", "enricher"]>;
950
+ }, "strict", z.ZodTypeAny, {
951
+ coverage_domains: string[];
952
+ requirement_ref: string;
953
+ owned_scope: {
954
+ targets: {
955
+ source_ref: string;
956
+ module_refs: string[];
957
+ }[];
958
+ } | {
959
+ ref: string;
960
+ };
961
+ role: "primary" | "enricher";
962
+ }, {
963
+ coverage_domains: string[];
964
+ requirement_ref: string;
965
+ owned_scope: {
966
+ targets: {
967
+ source_ref: string;
968
+ module_refs: string[];
969
+ }[];
970
+ } | {
971
+ ref: string;
972
+ };
973
+ role: "primary" | "enricher";
974
+ }>, {
975
+ coverage_domains: string[];
976
+ requirement_ref: string;
977
+ owned_scope: {
978
+ targets: {
979
+ source_ref: string;
980
+ module_refs: string[];
981
+ }[];
982
+ } | {
983
+ ref: string;
984
+ };
985
+ role: "primary" | "enricher";
986
+ }, {
987
+ coverage_domains: string[];
988
+ requirement_ref: string;
989
+ owned_scope: {
990
+ targets: {
991
+ source_ref: string;
992
+ module_refs: string[];
993
+ }[];
994
+ } | {
995
+ ref: string;
996
+ };
997
+ role: "primary" | "enricher";
998
+ }>, "many">;
999
+ read_scope: z.ZodEffects<z.ZodObject<{
1000
+ refs: z.ZodArray<z.ZodString, "many">;
1001
+ extra_targets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1002
+ source_ref: z.ZodString;
1003
+ module_refs: z.ZodArray<z.ZodString, "many">;
1004
+ }, "strict", z.ZodTypeAny, {
1005
+ source_ref: string;
1006
+ module_refs: string[];
1007
+ }, {
1008
+ source_ref: string;
1009
+ module_refs: string[];
1010
+ }>, {
1011
+ source_ref: string;
1012
+ module_refs: string[];
1013
+ }, {
1014
+ source_ref: string;
1015
+ module_refs: string[];
1016
+ }>, "many">>;
1017
+ }, "strict", z.ZodTypeAny, {
1018
+ refs: string[];
1019
+ extra_targets?: {
1020
+ source_ref: string;
1021
+ module_refs: string[];
1022
+ }[] | undefined;
1023
+ }, {
1024
+ refs: string[];
1025
+ extra_targets?: {
1026
+ source_ref: string;
1027
+ module_refs: string[];
1028
+ }[] | undefined;
1029
+ }>, {
1030
+ refs: string[];
1031
+ extra_targets?: {
1032
+ source_ref: string;
1033
+ module_refs: string[];
1034
+ }[] | undefined;
1035
+ }, {
1036
+ refs: string[];
1037
+ extra_targets?: {
1038
+ source_ref: string;
1039
+ module_refs: string[];
1040
+ }[] | undefined;
1041
+ }>;
1042
+ profile: z.ZodObject<{
1043
+ primary: z.ZodObject<{
1044
+ id: z.ZodEffects<z.ZodString, string, string>;
1045
+ provider: z.ZodEffects<z.ZodString, string, string>;
1046
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
1047
+ }, "strict", z.ZodTypeAny, {
1048
+ id: string;
1049
+ provider: string;
1050
+ variants?: Record<string, string> | undefined;
1051
+ }, {
1052
+ id: string;
1053
+ provider: string;
1054
+ variants?: Record<string, string> | undefined;
1055
+ }>;
1056
+ additional: z.ZodOptional<z.ZodArray<z.ZodObject<{
1057
+ id: z.ZodEffects<z.ZodString, string, string>;
1058
+ provider: z.ZodEffects<z.ZodString, string, string>;
1059
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
1060
+ } & {
1061
+ kind: z.ZodEnum<["supporting", "extension"]>;
1062
+ }, "strict", z.ZodTypeAny, {
1063
+ id: string;
1064
+ kind: "supporting" | "extension";
1065
+ provider: string;
1066
+ variants?: Record<string, string> | undefined;
1067
+ }, {
1068
+ id: string;
1069
+ kind: "supporting" | "extension";
1070
+ provider: string;
1071
+ variants?: Record<string, string> | undefined;
1072
+ }>, "many">>;
1073
+ composers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1074
+ id: z.ZodEffects<z.ZodString, string, string>;
1075
+ provider: z.ZodEffects<z.ZodString, string, string>;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ id: string;
1078
+ provider: string;
1079
+ }, {
1080
+ id: string;
1081
+ provider: string;
1082
+ }>, "many">>;
1083
+ }, "strict", z.ZodTypeAny, {
1084
+ primary: {
1085
+ id: string;
1086
+ provider: string;
1087
+ variants?: Record<string, string> | undefined;
1088
+ };
1089
+ additional?: {
1090
+ id: string;
1091
+ kind: "supporting" | "extension";
1092
+ provider: string;
1093
+ variants?: Record<string, string> | undefined;
1094
+ }[] | undefined;
1095
+ composers?: {
1096
+ id: string;
1097
+ provider: string;
1098
+ }[] | undefined;
1099
+ }, {
1100
+ primary: {
1101
+ id: string;
1102
+ provider: string;
1103
+ variants?: Record<string, string> | undefined;
1104
+ };
1105
+ additional?: {
1106
+ id: string;
1107
+ kind: "supporting" | "extension";
1108
+ provider: string;
1109
+ variants?: Record<string, string> | undefined;
1110
+ }[] | undefined;
1111
+ composers?: {
1112
+ id: string;
1113
+ provider: string;
1114
+ }[] | undefined;
1115
+ }>;
1116
+ providers: z.ZodArray<z.ZodEffects<z.ZodObject<{
1117
+ id: z.ZodEffects<z.ZodString, string, string>;
1118
+ role: z.ZodEnum<["primary", "extension"]>;
1119
+ skill: z.ZodEffects<z.ZodString, string, string>;
1120
+ version: z.ZodString;
1121
+ integrity: z.ZodString;
1122
+ distribution: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1123
+ kind: z.ZodLiteral<"cli-bundled">;
1124
+ locator: z.ZodString;
1125
+ }, "strict", z.ZodTypeAny, {
1126
+ kind: "cli-bundled";
1127
+ locator: string;
1128
+ }, {
1129
+ kind: "cli-bundled";
1130
+ locator: string;
1131
+ }>, z.ZodObject<{
1132
+ kind: z.ZodLiteral<"bundled">;
1133
+ locator: z.ZodString;
1134
+ }, "strict", z.ZodTypeAny, {
1135
+ kind: "bundled";
1136
+ locator: string;
1137
+ }, {
1138
+ kind: "bundled";
1139
+ locator: string;
1140
+ }>, z.ZodObject<{
1141
+ kind: z.ZodLiteral<"workspace">;
1142
+ locator: z.ZodString;
1143
+ }, "strict", z.ZodTypeAny, {
1144
+ kind: "workspace";
1145
+ locator: string;
1146
+ }, {
1147
+ kind: "workspace";
1148
+ locator: string;
1149
+ }>, z.ZodObject<{
1150
+ kind: z.ZodLiteral<"package">;
1151
+ locator: z.ZodString;
1152
+ }, "strict", z.ZodTypeAny, {
1153
+ kind: "package";
1154
+ locator: string;
1155
+ }, {
1156
+ kind: "package";
1157
+ locator: string;
1158
+ }>, z.ZodObject<{
1159
+ kind: z.ZodLiteral<"marketplace">;
1160
+ locator: z.ZodString;
1161
+ }, "strict", z.ZodTypeAny, {
1162
+ kind: "marketplace";
1163
+ locator: string;
1164
+ }, {
1165
+ kind: "marketplace";
1166
+ locator: string;
1167
+ }>]>, {
1168
+ kind: "cli-bundled";
1169
+ locator: string;
1170
+ } | {
1171
+ kind: "bundled";
1172
+ locator: string;
1173
+ } | {
1174
+ kind: "workspace";
1175
+ locator: string;
1176
+ } | {
1177
+ kind: "package";
1178
+ locator: string;
1179
+ } | {
1180
+ kind: "marketplace";
1181
+ locator: string;
1182
+ }, {
1183
+ kind: "cli-bundled";
1184
+ locator: string;
1185
+ } | {
1186
+ kind: "bundled";
1187
+ locator: string;
1188
+ } | {
1189
+ kind: "workspace";
1190
+ locator: string;
1191
+ } | {
1192
+ kind: "package";
1193
+ locator: string;
1194
+ } | {
1195
+ kind: "marketplace";
1196
+ locator: string;
1197
+ }>;
1198
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
1199
+ }, "strict", z.ZodTypeAny, {
1200
+ id: string;
1201
+ role: "primary" | "extension";
1202
+ skill: string;
1203
+ version: string;
1204
+ integrity: string;
1205
+ distribution: {
1206
+ kind: "cli-bundled";
1207
+ locator: string;
1208
+ } | {
1209
+ kind: "bundled";
1210
+ locator: string;
1211
+ } | {
1212
+ kind: "workspace";
1213
+ locator: string;
1214
+ } | {
1215
+ kind: "package";
1216
+ locator: string;
1217
+ } | {
1218
+ kind: "marketplace";
1219
+ locator: string;
1220
+ };
1221
+ config?: Record<string, IndexerJson> | undefined;
1222
+ }, {
1223
+ id: string;
1224
+ role: "primary" | "extension";
1225
+ skill: string;
1226
+ version: string;
1227
+ integrity: string;
1228
+ distribution: {
1229
+ kind: "cli-bundled";
1230
+ locator: string;
1231
+ } | {
1232
+ kind: "bundled";
1233
+ locator: string;
1234
+ } | {
1235
+ kind: "workspace";
1236
+ locator: string;
1237
+ } | {
1238
+ kind: "package";
1239
+ locator: string;
1240
+ } | {
1241
+ kind: "marketplace";
1242
+ locator: string;
1243
+ };
1244
+ config?: Record<string, IndexerJson> | undefined;
1245
+ }>, {
1246
+ id: string;
1247
+ role: "primary" | "extension";
1248
+ skill: string;
1249
+ version: string;
1250
+ integrity: string;
1251
+ distribution: {
1252
+ kind: "cli-bundled";
1253
+ locator: string;
1254
+ } | {
1255
+ kind: "bundled";
1256
+ locator: string;
1257
+ } | {
1258
+ kind: "workspace";
1259
+ locator: string;
1260
+ } | {
1261
+ kind: "package";
1262
+ locator: string;
1263
+ } | {
1264
+ kind: "marketplace";
1265
+ locator: string;
1266
+ };
1267
+ config?: Record<string, IndexerJson> | undefined;
1268
+ }, {
1269
+ id: string;
1270
+ role: "primary" | "extension";
1271
+ skill: string;
1272
+ version: string;
1273
+ integrity: string;
1274
+ distribution: {
1275
+ kind: "cli-bundled";
1276
+ locator: string;
1277
+ } | {
1278
+ kind: "bundled";
1279
+ locator: string;
1280
+ } | {
1281
+ kind: "workspace";
1282
+ locator: string;
1283
+ } | {
1284
+ kind: "package";
1285
+ locator: string;
1286
+ } | {
1287
+ kind: "marketplace";
1288
+ locator: string;
1289
+ };
1290
+ config?: Record<string, IndexerJson> | undefined;
1291
+ }>, "many">;
1292
+ customization: z.ZodOptional<z.ZodObject<{
1293
+ mode: z.ZodEnum<["extend", "replace"]>;
1294
+ }, "strict", z.ZodTypeAny, {
1295
+ mode: "replace" | "extend";
1296
+ }, {
1297
+ mode: "replace" | "extend";
1298
+ }>>;
1299
+ }, "strict", z.ZodTypeAny, {
1300
+ id: string;
1301
+ operations: ("main-index" | "material-answer")[];
1302
+ requirement_bindings: {
1303
+ coverage_domains: string[];
1304
+ requirement_ref: string;
1305
+ owned_scope: {
1306
+ targets: {
1307
+ source_ref: string;
1308
+ module_refs: string[];
1309
+ }[];
1310
+ } | {
1311
+ ref: string;
1312
+ };
1313
+ role: "primary" | "enricher";
1314
+ }[];
1315
+ read_scope: {
1316
+ refs: string[];
1317
+ extra_targets?: {
1318
+ source_ref: string;
1319
+ module_refs: string[];
1320
+ }[] | undefined;
1321
+ };
1322
+ profile: {
1323
+ primary: {
1324
+ id: string;
1325
+ provider: string;
1326
+ variants?: Record<string, string> | undefined;
1327
+ };
1328
+ additional?: {
1329
+ id: string;
1330
+ kind: "supporting" | "extension";
1331
+ provider: string;
1332
+ variants?: Record<string, string> | undefined;
1333
+ }[] | undefined;
1334
+ composers?: {
1335
+ id: string;
1336
+ provider: string;
1337
+ }[] | undefined;
1338
+ };
1339
+ providers: {
1340
+ id: string;
1341
+ role: "primary" | "extension";
1342
+ skill: string;
1343
+ version: string;
1344
+ integrity: string;
1345
+ distribution: {
1346
+ kind: "cli-bundled";
1347
+ locator: string;
1348
+ } | {
1349
+ kind: "bundled";
1350
+ locator: string;
1351
+ } | {
1352
+ kind: "workspace";
1353
+ locator: string;
1354
+ } | {
1355
+ kind: "package";
1356
+ locator: string;
1357
+ } | {
1358
+ kind: "marketplace";
1359
+ locator: string;
1360
+ };
1361
+ config?: Record<string, IndexerJson> | undefined;
1362
+ }[];
1363
+ customization?: {
1364
+ mode: "replace" | "extend";
1365
+ } | undefined;
1366
+ }, {
1367
+ id: string;
1368
+ operations: ("main-index" | "material-answer")[];
1369
+ requirement_bindings: {
1370
+ coverage_domains: string[];
1371
+ requirement_ref: string;
1372
+ owned_scope: {
1373
+ targets: {
1374
+ source_ref: string;
1375
+ module_refs: string[];
1376
+ }[];
1377
+ } | {
1378
+ ref: string;
1379
+ };
1380
+ role: "primary" | "enricher";
1381
+ }[];
1382
+ read_scope: {
1383
+ refs: string[];
1384
+ extra_targets?: {
1385
+ source_ref: string;
1386
+ module_refs: string[];
1387
+ }[] | undefined;
1388
+ };
1389
+ profile: {
1390
+ primary: {
1391
+ id: string;
1392
+ provider: string;
1393
+ variants?: Record<string, string> | undefined;
1394
+ };
1395
+ additional?: {
1396
+ id: string;
1397
+ kind: "supporting" | "extension";
1398
+ provider: string;
1399
+ variants?: Record<string, string> | undefined;
1400
+ }[] | undefined;
1401
+ composers?: {
1402
+ id: string;
1403
+ provider: string;
1404
+ }[] | undefined;
1405
+ };
1406
+ providers: {
1407
+ id: string;
1408
+ role: "primary" | "extension";
1409
+ skill: string;
1410
+ version: string;
1411
+ integrity: string;
1412
+ distribution: {
1413
+ kind: "cli-bundled";
1414
+ locator: string;
1415
+ } | {
1416
+ kind: "bundled";
1417
+ locator: string;
1418
+ } | {
1419
+ kind: "workspace";
1420
+ locator: string;
1421
+ } | {
1422
+ kind: "package";
1423
+ locator: string;
1424
+ } | {
1425
+ kind: "marketplace";
1426
+ locator: string;
1427
+ };
1428
+ config?: Record<string, IndexerJson> | undefined;
1429
+ }[];
1430
+ customization?: {
1431
+ mode: "replace" | "extend";
1432
+ } | undefined;
1433
+ }>, {
1434
+ id: string;
1435
+ operations: ("main-index" | "material-answer")[];
1436
+ requirement_bindings: {
1437
+ coverage_domains: string[];
1438
+ requirement_ref: string;
1439
+ owned_scope: {
1440
+ targets: {
1441
+ source_ref: string;
1442
+ module_refs: string[];
1443
+ }[];
1444
+ } | {
1445
+ ref: string;
1446
+ };
1447
+ role: "primary" | "enricher";
1448
+ }[];
1449
+ read_scope: {
1450
+ refs: string[];
1451
+ extra_targets?: {
1452
+ source_ref: string;
1453
+ module_refs: string[];
1454
+ }[] | undefined;
1455
+ };
1456
+ profile: {
1457
+ primary: {
1458
+ id: string;
1459
+ provider: string;
1460
+ variants?: Record<string, string> | undefined;
1461
+ };
1462
+ additional?: {
1463
+ id: string;
1464
+ kind: "supporting" | "extension";
1465
+ provider: string;
1466
+ variants?: Record<string, string> | undefined;
1467
+ }[] | undefined;
1468
+ composers?: {
1469
+ id: string;
1470
+ provider: string;
1471
+ }[] | undefined;
1472
+ };
1473
+ providers: {
1474
+ id: string;
1475
+ role: "primary" | "extension";
1476
+ skill: string;
1477
+ version: string;
1478
+ integrity: string;
1479
+ distribution: {
1480
+ kind: "cli-bundled";
1481
+ locator: string;
1482
+ } | {
1483
+ kind: "bundled";
1484
+ locator: string;
1485
+ } | {
1486
+ kind: "workspace";
1487
+ locator: string;
1488
+ } | {
1489
+ kind: "package";
1490
+ locator: string;
1491
+ } | {
1492
+ kind: "marketplace";
1493
+ locator: string;
1494
+ };
1495
+ config?: Record<string, IndexerJson> | undefined;
1496
+ }[];
1497
+ customization?: {
1498
+ mode: "replace" | "extend";
1499
+ } | undefined;
1500
+ }, {
1501
+ id: string;
1502
+ operations: ("main-index" | "material-answer")[];
1503
+ requirement_bindings: {
1504
+ coverage_domains: string[];
1505
+ requirement_ref: string;
1506
+ owned_scope: {
1507
+ targets: {
1508
+ source_ref: string;
1509
+ module_refs: string[];
1510
+ }[];
1511
+ } | {
1512
+ ref: string;
1513
+ };
1514
+ role: "primary" | "enricher";
1515
+ }[];
1516
+ read_scope: {
1517
+ refs: string[];
1518
+ extra_targets?: {
1519
+ source_ref: string;
1520
+ module_refs: string[];
1521
+ }[] | undefined;
1522
+ };
1523
+ profile: {
1524
+ primary: {
1525
+ id: string;
1526
+ provider: string;
1527
+ variants?: Record<string, string> | undefined;
1528
+ };
1529
+ additional?: {
1530
+ id: string;
1531
+ kind: "supporting" | "extension";
1532
+ provider: string;
1533
+ variants?: Record<string, string> | undefined;
1534
+ }[] | undefined;
1535
+ composers?: {
1536
+ id: string;
1537
+ provider: string;
1538
+ }[] | undefined;
1539
+ };
1540
+ providers: {
1541
+ id: string;
1542
+ role: "primary" | "extension";
1543
+ skill: string;
1544
+ version: string;
1545
+ integrity: string;
1546
+ distribution: {
1547
+ kind: "cli-bundled";
1548
+ locator: string;
1549
+ } | {
1550
+ kind: "bundled";
1551
+ locator: string;
1552
+ } | {
1553
+ kind: "workspace";
1554
+ locator: string;
1555
+ } | {
1556
+ kind: "package";
1557
+ locator: string;
1558
+ } | {
1559
+ kind: "marketplace";
1560
+ locator: string;
1561
+ };
1562
+ config?: Record<string, IndexerJson> | undefined;
1563
+ }[];
1564
+ customization?: {
1565
+ mode: "replace" | "extend";
1566
+ } | undefined;
1567
+ }>;
1568
+ export declare const indexerRegistrySchema: z.ZodEffects<z.ZodObject<{
1569
+ protocol: z.ZodLiteral<"context.indexer.registry/v1">;
1570
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
1571
+ id: z.ZodEffects<z.ZodString, string, string>;
1572
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1573
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
1574
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1575
+ ref: z.ZodString;
1576
+ authority: z.ZodObject<{
1577
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
1578
+ ref: z.ZodString;
1579
+ digest: z.ZodString;
1580
+ }, "strict", z.ZodTypeAny, {
1581
+ kind: "cli-base-contract" | "verified-contract-overlay";
1582
+ ref: string;
1583
+ digest: string;
1584
+ }, {
1585
+ kind: "cli-base-contract" | "verified-contract-overlay";
1586
+ ref: string;
1587
+ digest: string;
1588
+ }>;
1589
+ contract_version: z.ZodNumber;
1590
+ contract_digest: z.ZodString;
1591
+ }, "strict", z.ZodTypeAny, {
1592
+ ref: string;
1593
+ authority: {
1594
+ kind: "cli-base-contract" | "verified-contract-overlay";
1595
+ ref: string;
1596
+ digest: string;
1597
+ };
1598
+ contract_version: number;
1599
+ contract_digest: string;
1600
+ }, {
1601
+ ref: string;
1602
+ authority: {
1603
+ kind: "cli-base-contract" | "verified-contract-overlay";
1604
+ ref: string;
1605
+ digest: string;
1606
+ };
1607
+ contract_version: number;
1608
+ contract_digest: string;
1609
+ }>, "many">>;
1610
+ target_scope: z.ZodEffects<z.ZodObject<{
1611
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1612
+ source_ref: z.ZodString;
1613
+ module_refs: z.ZodArray<z.ZodString, "many">;
1614
+ }, "strict", z.ZodTypeAny, {
1615
+ source_ref: string;
1616
+ module_refs: string[];
1617
+ }, {
1618
+ source_ref: string;
1619
+ module_refs: string[];
1620
+ }>, {
1621
+ source_ref: string;
1622
+ module_refs: string[];
1623
+ }, {
1624
+ source_ref: string;
1625
+ module_refs: string[];
1626
+ }>, "many">;
1627
+ }, "strict", z.ZodTypeAny, {
1628
+ targets: {
1629
+ source_ref: string;
1630
+ module_refs: string[];
1631
+ }[];
1632
+ }, {
1633
+ targets: {
1634
+ source_ref: string;
1635
+ module_refs: string[];
1636
+ }[];
1637
+ }>, {
1638
+ targets: {
1639
+ source_ref: string;
1640
+ module_refs: string[];
1641
+ }[];
1642
+ }, {
1643
+ targets: {
1644
+ source_ref: string;
1645
+ module_refs: string[];
1646
+ }[];
1647
+ }>;
1648
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
1649
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1650
+ source_ref: z.ZodString;
1651
+ module_refs: z.ZodArray<z.ZodString, "many">;
1652
+ }, "strict", z.ZodTypeAny, {
1653
+ source_ref: string;
1654
+ module_refs: string[];
1655
+ }, {
1656
+ source_ref: string;
1657
+ module_refs: string[];
1658
+ }>, {
1659
+ source_ref: string;
1660
+ module_refs: string[];
1661
+ }, {
1662
+ source_ref: string;
1663
+ module_refs: string[];
1664
+ }>, "many">;
1665
+ }, "strict", z.ZodTypeAny, {
1666
+ targets: {
1667
+ source_ref: string;
1668
+ module_refs: string[];
1669
+ }[];
1670
+ }, {
1671
+ targets: {
1672
+ source_ref: string;
1673
+ module_refs: string[];
1674
+ }[];
1675
+ }>, {
1676
+ targets: {
1677
+ source_ref: string;
1678
+ module_refs: string[];
1679
+ }[];
1680
+ }, {
1681
+ targets: {
1682
+ source_ref: string;
1683
+ module_refs: string[];
1684
+ }[];
1685
+ }>;
1686
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1687
+ id: z.ZodEffects<z.ZodString, string, string>;
1688
+ scope: z.ZodEffects<z.ZodObject<{
1689
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1690
+ source_ref: z.ZodString;
1691
+ module_refs: z.ZodArray<z.ZodString, "many">;
1692
+ }, "strict", z.ZodTypeAny, {
1693
+ source_ref: string;
1694
+ module_refs: string[];
1695
+ }, {
1696
+ source_ref: string;
1697
+ module_refs: string[];
1698
+ }>, {
1699
+ source_ref: string;
1700
+ module_refs: string[];
1701
+ }, {
1702
+ source_ref: string;
1703
+ module_refs: string[];
1704
+ }>, "many">;
1705
+ }, "strict", z.ZodTypeAny, {
1706
+ targets: {
1707
+ source_ref: string;
1708
+ module_refs: string[];
1709
+ }[];
1710
+ }, {
1711
+ targets: {
1712
+ source_ref: string;
1713
+ module_refs: string[];
1714
+ }[];
1715
+ }>, {
1716
+ targets: {
1717
+ source_ref: string;
1718
+ module_refs: string[];
1719
+ }[];
1720
+ }, {
1721
+ targets: {
1722
+ source_ref: string;
1723
+ module_refs: string[];
1724
+ }[];
1725
+ }>;
1726
+ reason: z.ZodString;
1727
+ }, "strict", z.ZodTypeAny, {
1728
+ id: string;
1729
+ scope: {
1730
+ targets: {
1731
+ source_ref: string;
1732
+ module_refs: string[];
1733
+ }[];
1734
+ };
1735
+ reason: string;
1736
+ }, {
1737
+ id: string;
1738
+ scope: {
1739
+ targets: {
1740
+ source_ref: string;
1741
+ module_refs: string[];
1742
+ }[];
1743
+ };
1744
+ reason: string;
1745
+ }>, "many">>;
1746
+ }, "strict", z.ZodTypeAny, {
1747
+ id: string;
1748
+ reader_goals: string[];
1749
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1750
+ target_scope: {
1751
+ targets: {
1752
+ source_ref: string;
1753
+ module_refs: string[];
1754
+ }[];
1755
+ };
1756
+ evidence_source_scope: {
1757
+ targets: {
1758
+ source_ref: string;
1759
+ module_refs: string[];
1760
+ }[];
1761
+ };
1762
+ questions?: {
1763
+ ref: string;
1764
+ authority: {
1765
+ kind: "cli-base-contract" | "verified-contract-overlay";
1766
+ ref: string;
1767
+ digest: string;
1768
+ };
1769
+ contract_version: number;
1770
+ contract_digest: string;
1771
+ }[] | undefined;
1772
+ exclusions?: {
1773
+ id: string;
1774
+ scope: {
1775
+ targets: {
1776
+ source_ref: string;
1777
+ module_refs: string[];
1778
+ }[];
1779
+ };
1780
+ reason: string;
1781
+ }[] | undefined;
1782
+ }, {
1783
+ id: string;
1784
+ reader_goals: string[];
1785
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1786
+ target_scope: {
1787
+ targets: {
1788
+ source_ref: string;
1789
+ module_refs: string[];
1790
+ }[];
1791
+ };
1792
+ evidence_source_scope: {
1793
+ targets: {
1794
+ source_ref: string;
1795
+ module_refs: string[];
1796
+ }[];
1797
+ };
1798
+ questions?: {
1799
+ ref: string;
1800
+ authority: {
1801
+ kind: "cli-base-contract" | "verified-contract-overlay";
1802
+ ref: string;
1803
+ digest: string;
1804
+ };
1805
+ contract_version: number;
1806
+ contract_digest: string;
1807
+ }[] | undefined;
1808
+ exclusions?: {
1809
+ id: string;
1810
+ scope: {
1811
+ targets: {
1812
+ source_ref: string;
1813
+ module_refs: string[];
1814
+ }[];
1815
+ };
1816
+ reason: string;
1817
+ }[] | undefined;
1818
+ }>, {
1819
+ id: string;
1820
+ reader_goals: string[];
1821
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1822
+ target_scope: {
1823
+ targets: {
1824
+ source_ref: string;
1825
+ module_refs: string[];
1826
+ }[];
1827
+ };
1828
+ evidence_source_scope: {
1829
+ targets: {
1830
+ source_ref: string;
1831
+ module_refs: string[];
1832
+ }[];
1833
+ };
1834
+ questions?: {
1835
+ ref: string;
1836
+ authority: {
1837
+ kind: "cli-base-contract" | "verified-contract-overlay";
1838
+ ref: string;
1839
+ digest: string;
1840
+ };
1841
+ contract_version: number;
1842
+ contract_digest: string;
1843
+ }[] | undefined;
1844
+ exclusions?: {
1845
+ id: string;
1846
+ scope: {
1847
+ targets: {
1848
+ source_ref: string;
1849
+ module_refs: string[];
1850
+ }[];
1851
+ };
1852
+ reason: string;
1853
+ }[] | undefined;
1854
+ }, {
1855
+ id: string;
1856
+ reader_goals: string[];
1857
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1858
+ target_scope: {
1859
+ targets: {
1860
+ source_ref: string;
1861
+ module_refs: string[];
1862
+ }[];
1863
+ };
1864
+ evidence_source_scope: {
1865
+ targets: {
1866
+ source_ref: string;
1867
+ module_refs: string[];
1868
+ }[];
1869
+ };
1870
+ questions?: {
1871
+ ref: string;
1872
+ authority: {
1873
+ kind: "cli-base-contract" | "verified-contract-overlay";
1874
+ ref: string;
1875
+ digest: string;
1876
+ };
1877
+ contract_version: number;
1878
+ contract_digest: string;
1879
+ }[] | undefined;
1880
+ exclusions?: {
1881
+ id: string;
1882
+ scope: {
1883
+ targets: {
1884
+ source_ref: string;
1885
+ module_refs: string[];
1886
+ }[];
1887
+ };
1888
+ reason: string;
1889
+ }[] | undefined;
1890
+ }>, "many">;
1891
+ indexers: z.ZodArray<z.ZodEffects<z.ZodObject<{
1892
+ id: z.ZodEffects<z.ZodString, string, string>;
1893
+ operations: z.ZodArray<z.ZodEnum<["main-index", "material-answer"]>, "many">;
1894
+ requirement_bindings: z.ZodArray<z.ZodEffects<z.ZodObject<{
1895
+ requirement_ref: z.ZodEffects<z.ZodString, string, string>;
1896
+ coverage_domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1897
+ owned_scope: z.ZodUnion<[z.ZodObject<{
1898
+ ref: z.ZodString;
1899
+ }, "strict", z.ZodTypeAny, {
1900
+ ref: string;
1901
+ }, {
1902
+ ref: string;
1903
+ }>, z.ZodEffects<z.ZodObject<{
1904
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1905
+ source_ref: z.ZodString;
1906
+ module_refs: z.ZodArray<z.ZodString, "many">;
1907
+ }, "strict", z.ZodTypeAny, {
1908
+ source_ref: string;
1909
+ module_refs: string[];
1910
+ }, {
1911
+ source_ref: string;
1912
+ module_refs: string[];
1913
+ }>, {
1914
+ source_ref: string;
1915
+ module_refs: string[];
1916
+ }, {
1917
+ source_ref: string;
1918
+ module_refs: string[];
1919
+ }>, "many">;
1920
+ }, "strict", z.ZodTypeAny, {
1921
+ targets: {
1922
+ source_ref: string;
1923
+ module_refs: string[];
1924
+ }[];
1925
+ }, {
1926
+ targets: {
1927
+ source_ref: string;
1928
+ module_refs: string[];
1929
+ }[];
1930
+ }>, {
1931
+ targets: {
1932
+ source_ref: string;
1933
+ module_refs: string[];
1934
+ }[];
1935
+ }, {
1936
+ targets: {
1937
+ source_ref: string;
1938
+ module_refs: string[];
1939
+ }[];
1940
+ }>]>;
1941
+ role: z.ZodEnum<["primary", "enricher"]>;
1942
+ }, "strict", z.ZodTypeAny, {
1943
+ coverage_domains: string[];
1944
+ requirement_ref: string;
1945
+ owned_scope: {
1946
+ targets: {
1947
+ source_ref: string;
1948
+ module_refs: string[];
1949
+ }[];
1950
+ } | {
1951
+ ref: string;
1952
+ };
1953
+ role: "primary" | "enricher";
1954
+ }, {
1955
+ coverage_domains: string[];
1956
+ requirement_ref: string;
1957
+ owned_scope: {
1958
+ targets: {
1959
+ source_ref: string;
1960
+ module_refs: string[];
1961
+ }[];
1962
+ } | {
1963
+ ref: string;
1964
+ };
1965
+ role: "primary" | "enricher";
1966
+ }>, {
1967
+ coverage_domains: string[];
1968
+ requirement_ref: string;
1969
+ owned_scope: {
1970
+ targets: {
1971
+ source_ref: string;
1972
+ module_refs: string[];
1973
+ }[];
1974
+ } | {
1975
+ ref: string;
1976
+ };
1977
+ role: "primary" | "enricher";
1978
+ }, {
1979
+ coverage_domains: string[];
1980
+ requirement_ref: string;
1981
+ owned_scope: {
1982
+ targets: {
1983
+ source_ref: string;
1984
+ module_refs: string[];
1985
+ }[];
1986
+ } | {
1987
+ ref: string;
1988
+ };
1989
+ role: "primary" | "enricher";
1990
+ }>, "many">;
1991
+ read_scope: z.ZodEffects<z.ZodObject<{
1992
+ refs: z.ZodArray<z.ZodString, "many">;
1993
+ extra_targets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
1994
+ source_ref: z.ZodString;
1995
+ module_refs: z.ZodArray<z.ZodString, "many">;
1996
+ }, "strict", z.ZodTypeAny, {
1997
+ source_ref: string;
1998
+ module_refs: string[];
1999
+ }, {
2000
+ source_ref: string;
2001
+ module_refs: string[];
2002
+ }>, {
2003
+ source_ref: string;
2004
+ module_refs: string[];
2005
+ }, {
2006
+ source_ref: string;
2007
+ module_refs: string[];
2008
+ }>, "many">>;
2009
+ }, "strict", z.ZodTypeAny, {
2010
+ refs: string[];
2011
+ extra_targets?: {
2012
+ source_ref: string;
2013
+ module_refs: string[];
2014
+ }[] | undefined;
2015
+ }, {
2016
+ refs: string[];
2017
+ extra_targets?: {
2018
+ source_ref: string;
2019
+ module_refs: string[];
2020
+ }[] | undefined;
2021
+ }>, {
2022
+ refs: string[];
2023
+ extra_targets?: {
2024
+ source_ref: string;
2025
+ module_refs: string[];
2026
+ }[] | undefined;
2027
+ }, {
2028
+ refs: string[];
2029
+ extra_targets?: {
2030
+ source_ref: string;
2031
+ module_refs: string[];
2032
+ }[] | undefined;
2033
+ }>;
2034
+ profile: z.ZodObject<{
2035
+ primary: z.ZodObject<{
2036
+ id: z.ZodEffects<z.ZodString, string, string>;
2037
+ provider: z.ZodEffects<z.ZodString, string, string>;
2038
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
2039
+ }, "strict", z.ZodTypeAny, {
2040
+ id: string;
2041
+ provider: string;
2042
+ variants?: Record<string, string> | undefined;
2043
+ }, {
2044
+ id: string;
2045
+ provider: string;
2046
+ variants?: Record<string, string> | undefined;
2047
+ }>;
2048
+ additional: z.ZodOptional<z.ZodArray<z.ZodObject<{
2049
+ id: z.ZodEffects<z.ZodString, string, string>;
2050
+ provider: z.ZodEffects<z.ZodString, string, string>;
2051
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
2052
+ } & {
2053
+ kind: z.ZodEnum<["supporting", "extension"]>;
2054
+ }, "strict", z.ZodTypeAny, {
2055
+ id: string;
2056
+ kind: "supporting" | "extension";
2057
+ provider: string;
2058
+ variants?: Record<string, string> | undefined;
2059
+ }, {
2060
+ id: string;
2061
+ kind: "supporting" | "extension";
2062
+ provider: string;
2063
+ variants?: Record<string, string> | undefined;
2064
+ }>, "many">>;
2065
+ composers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2066
+ id: z.ZodEffects<z.ZodString, string, string>;
2067
+ provider: z.ZodEffects<z.ZodString, string, string>;
2068
+ }, "strict", z.ZodTypeAny, {
2069
+ id: string;
2070
+ provider: string;
2071
+ }, {
2072
+ id: string;
2073
+ provider: string;
2074
+ }>, "many">>;
2075
+ }, "strict", z.ZodTypeAny, {
2076
+ primary: {
2077
+ id: string;
2078
+ provider: string;
2079
+ variants?: Record<string, string> | undefined;
2080
+ };
2081
+ additional?: {
2082
+ id: string;
2083
+ kind: "supporting" | "extension";
2084
+ provider: string;
2085
+ variants?: Record<string, string> | undefined;
2086
+ }[] | undefined;
2087
+ composers?: {
2088
+ id: string;
2089
+ provider: string;
2090
+ }[] | undefined;
2091
+ }, {
2092
+ primary: {
2093
+ id: string;
2094
+ provider: string;
2095
+ variants?: Record<string, string> | undefined;
2096
+ };
2097
+ additional?: {
2098
+ id: string;
2099
+ kind: "supporting" | "extension";
2100
+ provider: string;
2101
+ variants?: Record<string, string> | undefined;
2102
+ }[] | undefined;
2103
+ composers?: {
2104
+ id: string;
2105
+ provider: string;
2106
+ }[] | undefined;
2107
+ }>;
2108
+ providers: z.ZodArray<z.ZodEffects<z.ZodObject<{
2109
+ id: z.ZodEffects<z.ZodString, string, string>;
2110
+ role: z.ZodEnum<["primary", "extension"]>;
2111
+ skill: z.ZodEffects<z.ZodString, string, string>;
2112
+ version: z.ZodString;
2113
+ integrity: z.ZodString;
2114
+ distribution: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2115
+ kind: z.ZodLiteral<"cli-bundled">;
2116
+ locator: z.ZodString;
2117
+ }, "strict", z.ZodTypeAny, {
2118
+ kind: "cli-bundled";
2119
+ locator: string;
2120
+ }, {
2121
+ kind: "cli-bundled";
2122
+ locator: string;
2123
+ }>, z.ZodObject<{
2124
+ kind: z.ZodLiteral<"bundled">;
2125
+ locator: z.ZodString;
2126
+ }, "strict", z.ZodTypeAny, {
2127
+ kind: "bundled";
2128
+ locator: string;
2129
+ }, {
2130
+ kind: "bundled";
2131
+ locator: string;
2132
+ }>, z.ZodObject<{
2133
+ kind: z.ZodLiteral<"workspace">;
2134
+ locator: z.ZodString;
2135
+ }, "strict", z.ZodTypeAny, {
2136
+ kind: "workspace";
2137
+ locator: string;
2138
+ }, {
2139
+ kind: "workspace";
2140
+ locator: string;
2141
+ }>, z.ZodObject<{
2142
+ kind: z.ZodLiteral<"package">;
2143
+ locator: z.ZodString;
2144
+ }, "strict", z.ZodTypeAny, {
2145
+ kind: "package";
2146
+ locator: string;
2147
+ }, {
2148
+ kind: "package";
2149
+ locator: string;
2150
+ }>, z.ZodObject<{
2151
+ kind: z.ZodLiteral<"marketplace">;
2152
+ locator: z.ZodString;
2153
+ }, "strict", z.ZodTypeAny, {
2154
+ kind: "marketplace";
2155
+ locator: string;
2156
+ }, {
2157
+ kind: "marketplace";
2158
+ locator: string;
2159
+ }>]>, {
2160
+ kind: "cli-bundled";
2161
+ locator: string;
2162
+ } | {
2163
+ kind: "bundled";
2164
+ locator: string;
2165
+ } | {
2166
+ kind: "workspace";
2167
+ locator: string;
2168
+ } | {
2169
+ kind: "package";
2170
+ locator: string;
2171
+ } | {
2172
+ kind: "marketplace";
2173
+ locator: string;
2174
+ }, {
2175
+ kind: "cli-bundled";
2176
+ locator: string;
2177
+ } | {
2178
+ kind: "bundled";
2179
+ locator: string;
2180
+ } | {
2181
+ kind: "workspace";
2182
+ locator: string;
2183
+ } | {
2184
+ kind: "package";
2185
+ locator: string;
2186
+ } | {
2187
+ kind: "marketplace";
2188
+ locator: string;
2189
+ }>;
2190
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
2191
+ }, "strict", z.ZodTypeAny, {
2192
+ id: string;
2193
+ role: "primary" | "extension";
2194
+ skill: string;
2195
+ version: string;
2196
+ integrity: string;
2197
+ distribution: {
2198
+ kind: "cli-bundled";
2199
+ locator: string;
2200
+ } | {
2201
+ kind: "bundled";
2202
+ locator: string;
2203
+ } | {
2204
+ kind: "workspace";
2205
+ locator: string;
2206
+ } | {
2207
+ kind: "package";
2208
+ locator: string;
2209
+ } | {
2210
+ kind: "marketplace";
2211
+ locator: string;
2212
+ };
2213
+ config?: Record<string, IndexerJson> | undefined;
2214
+ }, {
2215
+ id: string;
2216
+ role: "primary" | "extension";
2217
+ skill: string;
2218
+ version: string;
2219
+ integrity: string;
2220
+ distribution: {
2221
+ kind: "cli-bundled";
2222
+ locator: string;
2223
+ } | {
2224
+ kind: "bundled";
2225
+ locator: string;
2226
+ } | {
2227
+ kind: "workspace";
2228
+ locator: string;
2229
+ } | {
2230
+ kind: "package";
2231
+ locator: string;
2232
+ } | {
2233
+ kind: "marketplace";
2234
+ locator: string;
2235
+ };
2236
+ config?: Record<string, IndexerJson> | undefined;
2237
+ }>, {
2238
+ id: string;
2239
+ role: "primary" | "extension";
2240
+ skill: string;
2241
+ version: string;
2242
+ integrity: string;
2243
+ distribution: {
2244
+ kind: "cli-bundled";
2245
+ locator: string;
2246
+ } | {
2247
+ kind: "bundled";
2248
+ locator: string;
2249
+ } | {
2250
+ kind: "workspace";
2251
+ locator: string;
2252
+ } | {
2253
+ kind: "package";
2254
+ locator: string;
2255
+ } | {
2256
+ kind: "marketplace";
2257
+ locator: string;
2258
+ };
2259
+ config?: Record<string, IndexerJson> | undefined;
2260
+ }, {
2261
+ id: string;
2262
+ role: "primary" | "extension";
2263
+ skill: string;
2264
+ version: string;
2265
+ integrity: string;
2266
+ distribution: {
2267
+ kind: "cli-bundled";
2268
+ locator: string;
2269
+ } | {
2270
+ kind: "bundled";
2271
+ locator: string;
2272
+ } | {
2273
+ kind: "workspace";
2274
+ locator: string;
2275
+ } | {
2276
+ kind: "package";
2277
+ locator: string;
2278
+ } | {
2279
+ kind: "marketplace";
2280
+ locator: string;
2281
+ };
2282
+ config?: Record<string, IndexerJson> | undefined;
2283
+ }>, "many">;
2284
+ customization: z.ZodOptional<z.ZodObject<{
2285
+ mode: z.ZodEnum<["extend", "replace"]>;
2286
+ }, "strict", z.ZodTypeAny, {
2287
+ mode: "replace" | "extend";
2288
+ }, {
2289
+ mode: "replace" | "extend";
2290
+ }>>;
2291
+ }, "strict", z.ZodTypeAny, {
2292
+ id: string;
2293
+ operations: ("main-index" | "material-answer")[];
2294
+ requirement_bindings: {
2295
+ coverage_domains: string[];
2296
+ requirement_ref: string;
2297
+ owned_scope: {
2298
+ targets: {
2299
+ source_ref: string;
2300
+ module_refs: string[];
2301
+ }[];
2302
+ } | {
2303
+ ref: string;
2304
+ };
2305
+ role: "primary" | "enricher";
2306
+ }[];
2307
+ read_scope: {
2308
+ refs: string[];
2309
+ extra_targets?: {
2310
+ source_ref: string;
2311
+ module_refs: string[];
2312
+ }[] | undefined;
2313
+ };
2314
+ profile: {
2315
+ primary: {
2316
+ id: string;
2317
+ provider: string;
2318
+ variants?: Record<string, string> | undefined;
2319
+ };
2320
+ additional?: {
2321
+ id: string;
2322
+ kind: "supporting" | "extension";
2323
+ provider: string;
2324
+ variants?: Record<string, string> | undefined;
2325
+ }[] | undefined;
2326
+ composers?: {
2327
+ id: string;
2328
+ provider: string;
2329
+ }[] | undefined;
2330
+ };
2331
+ providers: {
2332
+ id: string;
2333
+ role: "primary" | "extension";
2334
+ skill: string;
2335
+ version: string;
2336
+ integrity: string;
2337
+ distribution: {
2338
+ kind: "cli-bundled";
2339
+ locator: string;
2340
+ } | {
2341
+ kind: "bundled";
2342
+ locator: string;
2343
+ } | {
2344
+ kind: "workspace";
2345
+ locator: string;
2346
+ } | {
2347
+ kind: "package";
2348
+ locator: string;
2349
+ } | {
2350
+ kind: "marketplace";
2351
+ locator: string;
2352
+ };
2353
+ config?: Record<string, IndexerJson> | undefined;
2354
+ }[];
2355
+ customization?: {
2356
+ mode: "replace" | "extend";
2357
+ } | undefined;
2358
+ }, {
2359
+ id: string;
2360
+ operations: ("main-index" | "material-answer")[];
2361
+ requirement_bindings: {
2362
+ coverage_domains: string[];
2363
+ requirement_ref: string;
2364
+ owned_scope: {
2365
+ targets: {
2366
+ source_ref: string;
2367
+ module_refs: string[];
2368
+ }[];
2369
+ } | {
2370
+ ref: string;
2371
+ };
2372
+ role: "primary" | "enricher";
2373
+ }[];
2374
+ read_scope: {
2375
+ refs: string[];
2376
+ extra_targets?: {
2377
+ source_ref: string;
2378
+ module_refs: string[];
2379
+ }[] | undefined;
2380
+ };
2381
+ profile: {
2382
+ primary: {
2383
+ id: string;
2384
+ provider: string;
2385
+ variants?: Record<string, string> | undefined;
2386
+ };
2387
+ additional?: {
2388
+ id: string;
2389
+ kind: "supporting" | "extension";
2390
+ provider: string;
2391
+ variants?: Record<string, string> | undefined;
2392
+ }[] | undefined;
2393
+ composers?: {
2394
+ id: string;
2395
+ provider: string;
2396
+ }[] | undefined;
2397
+ };
2398
+ providers: {
2399
+ id: string;
2400
+ role: "primary" | "extension";
2401
+ skill: string;
2402
+ version: string;
2403
+ integrity: string;
2404
+ distribution: {
2405
+ kind: "cli-bundled";
2406
+ locator: string;
2407
+ } | {
2408
+ kind: "bundled";
2409
+ locator: string;
2410
+ } | {
2411
+ kind: "workspace";
2412
+ locator: string;
2413
+ } | {
2414
+ kind: "package";
2415
+ locator: string;
2416
+ } | {
2417
+ kind: "marketplace";
2418
+ locator: string;
2419
+ };
2420
+ config?: Record<string, IndexerJson> | undefined;
2421
+ }[];
2422
+ customization?: {
2423
+ mode: "replace" | "extend";
2424
+ } | undefined;
2425
+ }>, {
2426
+ id: string;
2427
+ operations: ("main-index" | "material-answer")[];
2428
+ requirement_bindings: {
2429
+ coverage_domains: string[];
2430
+ requirement_ref: string;
2431
+ owned_scope: {
2432
+ targets: {
2433
+ source_ref: string;
2434
+ module_refs: string[];
2435
+ }[];
2436
+ } | {
2437
+ ref: string;
2438
+ };
2439
+ role: "primary" | "enricher";
2440
+ }[];
2441
+ read_scope: {
2442
+ refs: string[];
2443
+ extra_targets?: {
2444
+ source_ref: string;
2445
+ module_refs: string[];
2446
+ }[] | undefined;
2447
+ };
2448
+ profile: {
2449
+ primary: {
2450
+ id: string;
2451
+ provider: string;
2452
+ variants?: Record<string, string> | undefined;
2453
+ };
2454
+ additional?: {
2455
+ id: string;
2456
+ kind: "supporting" | "extension";
2457
+ provider: string;
2458
+ variants?: Record<string, string> | undefined;
2459
+ }[] | undefined;
2460
+ composers?: {
2461
+ id: string;
2462
+ provider: string;
2463
+ }[] | undefined;
2464
+ };
2465
+ providers: {
2466
+ id: string;
2467
+ role: "primary" | "extension";
2468
+ skill: string;
2469
+ version: string;
2470
+ integrity: string;
2471
+ distribution: {
2472
+ kind: "cli-bundled";
2473
+ locator: string;
2474
+ } | {
2475
+ kind: "bundled";
2476
+ locator: string;
2477
+ } | {
2478
+ kind: "workspace";
2479
+ locator: string;
2480
+ } | {
2481
+ kind: "package";
2482
+ locator: string;
2483
+ } | {
2484
+ kind: "marketplace";
2485
+ locator: string;
2486
+ };
2487
+ config?: Record<string, IndexerJson> | undefined;
2488
+ }[];
2489
+ customization?: {
2490
+ mode: "replace" | "extend";
2491
+ } | undefined;
2492
+ }, {
2493
+ id: string;
2494
+ operations: ("main-index" | "material-answer")[];
2495
+ requirement_bindings: {
2496
+ coverage_domains: string[];
2497
+ requirement_ref: string;
2498
+ owned_scope: {
2499
+ targets: {
2500
+ source_ref: string;
2501
+ module_refs: string[];
2502
+ }[];
2503
+ } | {
2504
+ ref: string;
2505
+ };
2506
+ role: "primary" | "enricher";
2507
+ }[];
2508
+ read_scope: {
2509
+ refs: string[];
2510
+ extra_targets?: {
2511
+ source_ref: string;
2512
+ module_refs: string[];
2513
+ }[] | undefined;
2514
+ };
2515
+ profile: {
2516
+ primary: {
2517
+ id: string;
2518
+ provider: string;
2519
+ variants?: Record<string, string> | undefined;
2520
+ };
2521
+ additional?: {
2522
+ id: string;
2523
+ kind: "supporting" | "extension";
2524
+ provider: string;
2525
+ variants?: Record<string, string> | undefined;
2526
+ }[] | undefined;
2527
+ composers?: {
2528
+ id: string;
2529
+ provider: string;
2530
+ }[] | undefined;
2531
+ };
2532
+ providers: {
2533
+ id: string;
2534
+ role: "primary" | "extension";
2535
+ skill: string;
2536
+ version: string;
2537
+ integrity: string;
2538
+ distribution: {
2539
+ kind: "cli-bundled";
2540
+ locator: string;
2541
+ } | {
2542
+ kind: "bundled";
2543
+ locator: string;
2544
+ } | {
2545
+ kind: "workspace";
2546
+ locator: string;
2547
+ } | {
2548
+ kind: "package";
2549
+ locator: string;
2550
+ } | {
2551
+ kind: "marketplace";
2552
+ locator: string;
2553
+ };
2554
+ config?: Record<string, IndexerJson> | undefined;
2555
+ }[];
2556
+ customization?: {
2557
+ mode: "replace" | "extend";
2558
+ } | undefined;
2559
+ }>, "many">;
2560
+ }, "strict", z.ZodTypeAny, {
2561
+ protocol: "context.indexer.registry/v1";
2562
+ requirements: {
2563
+ id: string;
2564
+ reader_goals: string[];
2565
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2566
+ target_scope: {
2567
+ targets: {
2568
+ source_ref: string;
2569
+ module_refs: string[];
2570
+ }[];
2571
+ };
2572
+ evidence_source_scope: {
2573
+ targets: {
2574
+ source_ref: string;
2575
+ module_refs: string[];
2576
+ }[];
2577
+ };
2578
+ questions?: {
2579
+ ref: string;
2580
+ authority: {
2581
+ kind: "cli-base-contract" | "verified-contract-overlay";
2582
+ ref: string;
2583
+ digest: string;
2584
+ };
2585
+ contract_version: number;
2586
+ contract_digest: string;
2587
+ }[] | undefined;
2588
+ exclusions?: {
2589
+ id: string;
2590
+ scope: {
2591
+ targets: {
2592
+ source_ref: string;
2593
+ module_refs: string[];
2594
+ }[];
2595
+ };
2596
+ reason: string;
2597
+ }[] | undefined;
2598
+ }[];
2599
+ indexers: {
2600
+ id: string;
2601
+ operations: ("main-index" | "material-answer")[];
2602
+ requirement_bindings: {
2603
+ coverage_domains: string[];
2604
+ requirement_ref: string;
2605
+ owned_scope: {
2606
+ targets: {
2607
+ source_ref: string;
2608
+ module_refs: string[];
2609
+ }[];
2610
+ } | {
2611
+ ref: string;
2612
+ };
2613
+ role: "primary" | "enricher";
2614
+ }[];
2615
+ read_scope: {
2616
+ refs: string[];
2617
+ extra_targets?: {
2618
+ source_ref: string;
2619
+ module_refs: string[];
2620
+ }[] | undefined;
2621
+ };
2622
+ profile: {
2623
+ primary: {
2624
+ id: string;
2625
+ provider: string;
2626
+ variants?: Record<string, string> | undefined;
2627
+ };
2628
+ additional?: {
2629
+ id: string;
2630
+ kind: "supporting" | "extension";
2631
+ provider: string;
2632
+ variants?: Record<string, string> | undefined;
2633
+ }[] | undefined;
2634
+ composers?: {
2635
+ id: string;
2636
+ provider: string;
2637
+ }[] | undefined;
2638
+ };
2639
+ providers: {
2640
+ id: string;
2641
+ role: "primary" | "extension";
2642
+ skill: string;
2643
+ version: string;
2644
+ integrity: string;
2645
+ distribution: {
2646
+ kind: "cli-bundled";
2647
+ locator: string;
2648
+ } | {
2649
+ kind: "bundled";
2650
+ locator: string;
2651
+ } | {
2652
+ kind: "workspace";
2653
+ locator: string;
2654
+ } | {
2655
+ kind: "package";
2656
+ locator: string;
2657
+ } | {
2658
+ kind: "marketplace";
2659
+ locator: string;
2660
+ };
2661
+ config?: Record<string, IndexerJson> | undefined;
2662
+ }[];
2663
+ customization?: {
2664
+ mode: "replace" | "extend";
2665
+ } | undefined;
2666
+ }[];
2667
+ }, {
2668
+ protocol: "context.indexer.registry/v1";
2669
+ requirements: {
2670
+ id: string;
2671
+ reader_goals: string[];
2672
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2673
+ target_scope: {
2674
+ targets: {
2675
+ source_ref: string;
2676
+ module_refs: string[];
2677
+ }[];
2678
+ };
2679
+ evidence_source_scope: {
2680
+ targets: {
2681
+ source_ref: string;
2682
+ module_refs: string[];
2683
+ }[];
2684
+ };
2685
+ questions?: {
2686
+ ref: string;
2687
+ authority: {
2688
+ kind: "cli-base-contract" | "verified-contract-overlay";
2689
+ ref: string;
2690
+ digest: string;
2691
+ };
2692
+ contract_version: number;
2693
+ contract_digest: string;
2694
+ }[] | undefined;
2695
+ exclusions?: {
2696
+ id: string;
2697
+ scope: {
2698
+ targets: {
2699
+ source_ref: string;
2700
+ module_refs: string[];
2701
+ }[];
2702
+ };
2703
+ reason: string;
2704
+ }[] | undefined;
2705
+ }[];
2706
+ indexers: {
2707
+ id: string;
2708
+ operations: ("main-index" | "material-answer")[];
2709
+ requirement_bindings: {
2710
+ coverage_domains: string[];
2711
+ requirement_ref: string;
2712
+ owned_scope: {
2713
+ targets: {
2714
+ source_ref: string;
2715
+ module_refs: string[];
2716
+ }[];
2717
+ } | {
2718
+ ref: string;
2719
+ };
2720
+ role: "primary" | "enricher";
2721
+ }[];
2722
+ read_scope: {
2723
+ refs: string[];
2724
+ extra_targets?: {
2725
+ source_ref: string;
2726
+ module_refs: string[];
2727
+ }[] | undefined;
2728
+ };
2729
+ profile: {
2730
+ primary: {
2731
+ id: string;
2732
+ provider: string;
2733
+ variants?: Record<string, string> | undefined;
2734
+ };
2735
+ additional?: {
2736
+ id: string;
2737
+ kind: "supporting" | "extension";
2738
+ provider: string;
2739
+ variants?: Record<string, string> | undefined;
2740
+ }[] | undefined;
2741
+ composers?: {
2742
+ id: string;
2743
+ provider: string;
2744
+ }[] | undefined;
2745
+ };
2746
+ providers: {
2747
+ id: string;
2748
+ role: "primary" | "extension";
2749
+ skill: string;
2750
+ version: string;
2751
+ integrity: string;
2752
+ distribution: {
2753
+ kind: "cli-bundled";
2754
+ locator: string;
2755
+ } | {
2756
+ kind: "bundled";
2757
+ locator: string;
2758
+ } | {
2759
+ kind: "workspace";
2760
+ locator: string;
2761
+ } | {
2762
+ kind: "package";
2763
+ locator: string;
2764
+ } | {
2765
+ kind: "marketplace";
2766
+ locator: string;
2767
+ };
2768
+ config?: Record<string, IndexerJson> | undefined;
2769
+ }[];
2770
+ customization?: {
2771
+ mode: "replace" | "extend";
2772
+ } | undefined;
2773
+ }[];
2774
+ }>, {
2775
+ protocol: "context.indexer.registry/v1";
2776
+ requirements: {
2777
+ id: string;
2778
+ reader_goals: string[];
2779
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2780
+ target_scope: {
2781
+ targets: {
2782
+ source_ref: string;
2783
+ module_refs: string[];
2784
+ }[];
2785
+ };
2786
+ evidence_source_scope: {
2787
+ targets: {
2788
+ source_ref: string;
2789
+ module_refs: string[];
2790
+ }[];
2791
+ };
2792
+ questions?: {
2793
+ ref: string;
2794
+ authority: {
2795
+ kind: "cli-base-contract" | "verified-contract-overlay";
2796
+ ref: string;
2797
+ digest: string;
2798
+ };
2799
+ contract_version: number;
2800
+ contract_digest: string;
2801
+ }[] | undefined;
2802
+ exclusions?: {
2803
+ id: string;
2804
+ scope: {
2805
+ targets: {
2806
+ source_ref: string;
2807
+ module_refs: string[];
2808
+ }[];
2809
+ };
2810
+ reason: string;
2811
+ }[] | undefined;
2812
+ }[];
2813
+ indexers: {
2814
+ id: string;
2815
+ operations: ("main-index" | "material-answer")[];
2816
+ requirement_bindings: {
2817
+ coverage_domains: string[];
2818
+ requirement_ref: string;
2819
+ owned_scope: {
2820
+ targets: {
2821
+ source_ref: string;
2822
+ module_refs: string[];
2823
+ }[];
2824
+ } | {
2825
+ ref: string;
2826
+ };
2827
+ role: "primary" | "enricher";
2828
+ }[];
2829
+ read_scope: {
2830
+ refs: string[];
2831
+ extra_targets?: {
2832
+ source_ref: string;
2833
+ module_refs: string[];
2834
+ }[] | undefined;
2835
+ };
2836
+ profile: {
2837
+ primary: {
2838
+ id: string;
2839
+ provider: string;
2840
+ variants?: Record<string, string> | undefined;
2841
+ };
2842
+ additional?: {
2843
+ id: string;
2844
+ kind: "supporting" | "extension";
2845
+ provider: string;
2846
+ variants?: Record<string, string> | undefined;
2847
+ }[] | undefined;
2848
+ composers?: {
2849
+ id: string;
2850
+ provider: string;
2851
+ }[] | undefined;
2852
+ };
2853
+ providers: {
2854
+ id: string;
2855
+ role: "primary" | "extension";
2856
+ skill: string;
2857
+ version: string;
2858
+ integrity: string;
2859
+ distribution: {
2860
+ kind: "cli-bundled";
2861
+ locator: string;
2862
+ } | {
2863
+ kind: "bundled";
2864
+ locator: string;
2865
+ } | {
2866
+ kind: "workspace";
2867
+ locator: string;
2868
+ } | {
2869
+ kind: "package";
2870
+ locator: string;
2871
+ } | {
2872
+ kind: "marketplace";
2873
+ locator: string;
2874
+ };
2875
+ config?: Record<string, IndexerJson> | undefined;
2876
+ }[];
2877
+ customization?: {
2878
+ mode: "replace" | "extend";
2879
+ } | undefined;
2880
+ }[];
2881
+ }, {
2882
+ protocol: "context.indexer.registry/v1";
2883
+ requirements: {
2884
+ id: string;
2885
+ reader_goals: string[];
2886
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2887
+ target_scope: {
2888
+ targets: {
2889
+ source_ref: string;
2890
+ module_refs: string[];
2891
+ }[];
2892
+ };
2893
+ evidence_source_scope: {
2894
+ targets: {
2895
+ source_ref: string;
2896
+ module_refs: string[];
2897
+ }[];
2898
+ };
2899
+ questions?: {
2900
+ ref: string;
2901
+ authority: {
2902
+ kind: "cli-base-contract" | "verified-contract-overlay";
2903
+ ref: string;
2904
+ digest: string;
2905
+ };
2906
+ contract_version: number;
2907
+ contract_digest: string;
2908
+ }[] | undefined;
2909
+ exclusions?: {
2910
+ id: string;
2911
+ scope: {
2912
+ targets: {
2913
+ source_ref: string;
2914
+ module_refs: string[];
2915
+ }[];
2916
+ };
2917
+ reason: string;
2918
+ }[] | undefined;
2919
+ }[];
2920
+ indexers: {
2921
+ id: string;
2922
+ operations: ("main-index" | "material-answer")[];
2923
+ requirement_bindings: {
2924
+ coverage_domains: string[];
2925
+ requirement_ref: string;
2926
+ owned_scope: {
2927
+ targets: {
2928
+ source_ref: string;
2929
+ module_refs: string[];
2930
+ }[];
2931
+ } | {
2932
+ ref: string;
2933
+ };
2934
+ role: "primary" | "enricher";
2935
+ }[];
2936
+ read_scope: {
2937
+ refs: string[];
2938
+ extra_targets?: {
2939
+ source_ref: string;
2940
+ module_refs: string[];
2941
+ }[] | undefined;
2942
+ };
2943
+ profile: {
2944
+ primary: {
2945
+ id: string;
2946
+ provider: string;
2947
+ variants?: Record<string, string> | undefined;
2948
+ };
2949
+ additional?: {
2950
+ id: string;
2951
+ kind: "supporting" | "extension";
2952
+ provider: string;
2953
+ variants?: Record<string, string> | undefined;
2954
+ }[] | undefined;
2955
+ composers?: {
2956
+ id: string;
2957
+ provider: string;
2958
+ }[] | undefined;
2959
+ };
2960
+ providers: {
2961
+ id: string;
2962
+ role: "primary" | "extension";
2963
+ skill: string;
2964
+ version: string;
2965
+ integrity: string;
2966
+ distribution: {
2967
+ kind: "cli-bundled";
2968
+ locator: string;
2969
+ } | {
2970
+ kind: "bundled";
2971
+ locator: string;
2972
+ } | {
2973
+ kind: "workspace";
2974
+ locator: string;
2975
+ } | {
2976
+ kind: "package";
2977
+ locator: string;
2978
+ } | {
2979
+ kind: "marketplace";
2980
+ locator: string;
2981
+ };
2982
+ config?: Record<string, IndexerJson> | undefined;
2983
+ }[];
2984
+ customization?: {
2985
+ mode: "replace" | "extend";
2986
+ } | undefined;
2987
+ }[];
2988
+ }>;
2989
+ export type IndexRequirement = z.infer<typeof indexRequirementSchema>;
2990
+ export type IndexRequirementSet = z.infer<typeof indexRequirementSetSchema>;
2991
+ export type IndexerDistribution = z.infer<typeof indexerDistributionSchema>;
2992
+ export type IndexerRegistryEntry = z.infer<typeof indexerRegistryEntrySchema>;
2993
+ export type IndexerRegistry = z.infer<typeof indexerRegistrySchema>;
2994
+ export type IndexerScopeTarget = z.infer<typeof scopeTargetSchema>;
2995
+ export interface LoadedIndexerRegistry {
2996
+ path: typeof DEFAULT_INDEXER_REGISTRY_PATH;
2997
+ absolutePath: string;
2998
+ registry: IndexerRegistry;
2999
+ requirementSet: IndexRequirementSet;
3000
+ requirementSetDigest: string;
3001
+ indexerSelectionDigest: string;
3002
+ registryDigest: string;
3003
+ }
3004
+ export declare function parseIndexerRegistry(source: string, label?: string): IndexerRegistry;
3005
+ export declare function requirementSetFromRegistry(registry: IndexerRegistry): IndexRequirementSet;
3006
+ export declare function indexerRegistryDigests(registry: IndexerRegistry): {
3007
+ requirementSetDigest: string;
3008
+ indexerSelectionDigest: string;
3009
+ registryDigest: string;
3010
+ };
3011
+ export declare function canonicalOwnerCellRef(input: {
3012
+ requirementRef: string;
3013
+ coverageDomain: string;
3014
+ sourceRef: string;
3015
+ moduleRef: string | null;
3016
+ }): string;
3017
+ export declare function validateFinalizedIndexerRegistry(registry: IndexerRegistry): void;
3018
+ export declare function loadIndexerRegistry(rootDir: string): Promise<LoadedIndexerRegistry>;
3019
+ export {};