@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,3909 @@
1
+ import { z } from "zod";
2
+ export declare const indexerProviderRouteInputSchema: z.ZodObject<{
3
+ protocol: z.ZodLiteral<"context.indexer.provider-route-input/v1">;
4
+ project_ref: z.ZodString;
5
+ registry: z.ZodEffects<z.ZodObject<{
6
+ protocol: z.ZodLiteral<"context.indexer.registry/v1">;
7
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
8
+ id: z.ZodEffects<z.ZodString, string, string>;
9
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
10
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
11
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
12
+ ref: z.ZodString;
13
+ authority: z.ZodObject<{
14
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
15
+ ref: z.ZodString;
16
+ digest: z.ZodString;
17
+ }, "strict", z.ZodTypeAny, {
18
+ kind: "cli-base-contract" | "verified-contract-overlay";
19
+ ref: string;
20
+ digest: string;
21
+ }, {
22
+ kind: "cli-base-contract" | "verified-contract-overlay";
23
+ ref: string;
24
+ digest: string;
25
+ }>;
26
+ contract_version: z.ZodNumber;
27
+ contract_digest: z.ZodString;
28
+ }, "strict", z.ZodTypeAny, {
29
+ ref: string;
30
+ authority: {
31
+ kind: "cli-base-contract" | "verified-contract-overlay";
32
+ ref: string;
33
+ digest: string;
34
+ };
35
+ contract_version: number;
36
+ contract_digest: string;
37
+ }, {
38
+ ref: string;
39
+ authority: {
40
+ kind: "cli-base-contract" | "verified-contract-overlay";
41
+ ref: string;
42
+ digest: string;
43
+ };
44
+ contract_version: number;
45
+ contract_digest: string;
46
+ }>, "many">>;
47
+ target_scope: z.ZodEffects<z.ZodObject<{
48
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
49
+ source_ref: z.ZodString;
50
+ module_refs: z.ZodArray<z.ZodString, "many">;
51
+ }, "strict", z.ZodTypeAny, {
52
+ source_ref: string;
53
+ module_refs: string[];
54
+ }, {
55
+ source_ref: string;
56
+ module_refs: string[];
57
+ }>, {
58
+ source_ref: string;
59
+ module_refs: string[];
60
+ }, {
61
+ source_ref: string;
62
+ module_refs: string[];
63
+ }>, "many">;
64
+ }, "strict", z.ZodTypeAny, {
65
+ targets: {
66
+ source_ref: string;
67
+ module_refs: string[];
68
+ }[];
69
+ }, {
70
+ targets: {
71
+ source_ref: string;
72
+ module_refs: string[];
73
+ }[];
74
+ }>, {
75
+ targets: {
76
+ source_ref: string;
77
+ module_refs: string[];
78
+ }[];
79
+ }, {
80
+ targets: {
81
+ source_ref: string;
82
+ module_refs: string[];
83
+ }[];
84
+ }>;
85
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
86
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
87
+ source_ref: z.ZodString;
88
+ module_refs: z.ZodArray<z.ZodString, "many">;
89
+ }, "strict", z.ZodTypeAny, {
90
+ source_ref: string;
91
+ module_refs: string[];
92
+ }, {
93
+ source_ref: string;
94
+ module_refs: string[];
95
+ }>, {
96
+ source_ref: string;
97
+ module_refs: string[];
98
+ }, {
99
+ source_ref: string;
100
+ module_refs: string[];
101
+ }>, "many">;
102
+ }, "strict", z.ZodTypeAny, {
103
+ targets: {
104
+ source_ref: string;
105
+ module_refs: string[];
106
+ }[];
107
+ }, {
108
+ targets: {
109
+ source_ref: string;
110
+ module_refs: string[];
111
+ }[];
112
+ }>, {
113
+ targets: {
114
+ source_ref: string;
115
+ module_refs: string[];
116
+ }[];
117
+ }, {
118
+ targets: {
119
+ source_ref: string;
120
+ module_refs: string[];
121
+ }[];
122
+ }>;
123
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
+ id: z.ZodEffects<z.ZodString, string, string>;
125
+ scope: z.ZodEffects<z.ZodObject<{
126
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
127
+ source_ref: z.ZodString;
128
+ module_refs: z.ZodArray<z.ZodString, "many">;
129
+ }, "strict", z.ZodTypeAny, {
130
+ source_ref: string;
131
+ module_refs: string[];
132
+ }, {
133
+ source_ref: string;
134
+ module_refs: string[];
135
+ }>, {
136
+ source_ref: string;
137
+ module_refs: string[];
138
+ }, {
139
+ source_ref: string;
140
+ module_refs: string[];
141
+ }>, "many">;
142
+ }, "strict", z.ZodTypeAny, {
143
+ targets: {
144
+ source_ref: string;
145
+ module_refs: string[];
146
+ }[];
147
+ }, {
148
+ targets: {
149
+ source_ref: string;
150
+ module_refs: string[];
151
+ }[];
152
+ }>, {
153
+ targets: {
154
+ source_ref: string;
155
+ module_refs: string[];
156
+ }[];
157
+ }, {
158
+ targets: {
159
+ source_ref: string;
160
+ module_refs: string[];
161
+ }[];
162
+ }>;
163
+ reason: z.ZodString;
164
+ }, "strict", z.ZodTypeAny, {
165
+ id: string;
166
+ scope: {
167
+ targets: {
168
+ source_ref: string;
169
+ module_refs: string[];
170
+ }[];
171
+ };
172
+ reason: string;
173
+ }, {
174
+ id: string;
175
+ scope: {
176
+ targets: {
177
+ source_ref: string;
178
+ module_refs: string[];
179
+ }[];
180
+ };
181
+ reason: string;
182
+ }>, "many">>;
183
+ }, "strict", z.ZodTypeAny, {
184
+ id: string;
185
+ reader_goals: string[];
186
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
187
+ target_scope: {
188
+ targets: {
189
+ source_ref: string;
190
+ module_refs: string[];
191
+ }[];
192
+ };
193
+ evidence_source_scope: {
194
+ targets: {
195
+ source_ref: string;
196
+ module_refs: string[];
197
+ }[];
198
+ };
199
+ questions?: {
200
+ ref: string;
201
+ authority: {
202
+ kind: "cli-base-contract" | "verified-contract-overlay";
203
+ ref: string;
204
+ digest: string;
205
+ };
206
+ contract_version: number;
207
+ contract_digest: string;
208
+ }[] | undefined;
209
+ exclusions?: {
210
+ id: string;
211
+ scope: {
212
+ targets: {
213
+ source_ref: string;
214
+ module_refs: string[];
215
+ }[];
216
+ };
217
+ reason: string;
218
+ }[] | undefined;
219
+ }, {
220
+ id: string;
221
+ reader_goals: string[];
222
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
223
+ target_scope: {
224
+ targets: {
225
+ source_ref: string;
226
+ module_refs: string[];
227
+ }[];
228
+ };
229
+ evidence_source_scope: {
230
+ targets: {
231
+ source_ref: string;
232
+ module_refs: string[];
233
+ }[];
234
+ };
235
+ questions?: {
236
+ ref: string;
237
+ authority: {
238
+ kind: "cli-base-contract" | "verified-contract-overlay";
239
+ ref: string;
240
+ digest: string;
241
+ };
242
+ contract_version: number;
243
+ contract_digest: string;
244
+ }[] | undefined;
245
+ exclusions?: {
246
+ id: string;
247
+ scope: {
248
+ targets: {
249
+ source_ref: string;
250
+ module_refs: string[];
251
+ }[];
252
+ };
253
+ reason: string;
254
+ }[] | undefined;
255
+ }>, {
256
+ id: string;
257
+ reader_goals: string[];
258
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
259
+ target_scope: {
260
+ targets: {
261
+ source_ref: string;
262
+ module_refs: string[];
263
+ }[];
264
+ };
265
+ evidence_source_scope: {
266
+ targets: {
267
+ source_ref: string;
268
+ module_refs: string[];
269
+ }[];
270
+ };
271
+ questions?: {
272
+ ref: string;
273
+ authority: {
274
+ kind: "cli-base-contract" | "verified-contract-overlay";
275
+ ref: string;
276
+ digest: string;
277
+ };
278
+ contract_version: number;
279
+ contract_digest: string;
280
+ }[] | undefined;
281
+ exclusions?: {
282
+ id: string;
283
+ scope: {
284
+ targets: {
285
+ source_ref: string;
286
+ module_refs: string[];
287
+ }[];
288
+ };
289
+ reason: string;
290
+ }[] | undefined;
291
+ }, {
292
+ id: string;
293
+ reader_goals: string[];
294
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
295
+ target_scope: {
296
+ targets: {
297
+ source_ref: string;
298
+ module_refs: string[];
299
+ }[];
300
+ };
301
+ evidence_source_scope: {
302
+ targets: {
303
+ source_ref: string;
304
+ module_refs: string[];
305
+ }[];
306
+ };
307
+ questions?: {
308
+ ref: string;
309
+ authority: {
310
+ kind: "cli-base-contract" | "verified-contract-overlay";
311
+ ref: string;
312
+ digest: string;
313
+ };
314
+ contract_version: number;
315
+ contract_digest: string;
316
+ }[] | undefined;
317
+ exclusions?: {
318
+ id: string;
319
+ scope: {
320
+ targets: {
321
+ source_ref: string;
322
+ module_refs: string[];
323
+ }[];
324
+ };
325
+ reason: string;
326
+ }[] | undefined;
327
+ }>, "many">;
328
+ indexers: z.ZodArray<z.ZodEffects<z.ZodObject<{
329
+ id: z.ZodEffects<z.ZodString, string, string>;
330
+ operations: z.ZodArray<z.ZodEnum<["main-index", "material-answer"]>, "many">;
331
+ requirement_bindings: z.ZodArray<z.ZodEffects<z.ZodObject<{
332
+ requirement_ref: z.ZodEffects<z.ZodString, string, string>;
333
+ coverage_domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
334
+ owned_scope: z.ZodUnion<[z.ZodObject<{
335
+ ref: z.ZodString;
336
+ }, "strict", z.ZodTypeAny, {
337
+ ref: string;
338
+ }, {
339
+ ref: string;
340
+ }>, z.ZodEffects<z.ZodObject<{
341
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
342
+ source_ref: z.ZodString;
343
+ module_refs: z.ZodArray<z.ZodString, "many">;
344
+ }, "strict", z.ZodTypeAny, {
345
+ source_ref: string;
346
+ module_refs: string[];
347
+ }, {
348
+ source_ref: string;
349
+ module_refs: string[];
350
+ }>, {
351
+ source_ref: string;
352
+ module_refs: string[];
353
+ }, {
354
+ source_ref: string;
355
+ module_refs: string[];
356
+ }>, "many">;
357
+ }, "strict", z.ZodTypeAny, {
358
+ targets: {
359
+ source_ref: string;
360
+ module_refs: string[];
361
+ }[];
362
+ }, {
363
+ targets: {
364
+ source_ref: string;
365
+ module_refs: string[];
366
+ }[];
367
+ }>, {
368
+ targets: {
369
+ source_ref: string;
370
+ module_refs: string[];
371
+ }[];
372
+ }, {
373
+ targets: {
374
+ source_ref: string;
375
+ module_refs: string[];
376
+ }[];
377
+ }>]>;
378
+ role: z.ZodEnum<["primary", "enricher"]>;
379
+ }, "strict", z.ZodTypeAny, {
380
+ coverage_domains: string[];
381
+ requirement_ref: string;
382
+ owned_scope: {
383
+ targets: {
384
+ source_ref: string;
385
+ module_refs: string[];
386
+ }[];
387
+ } | {
388
+ ref: string;
389
+ };
390
+ role: "primary" | "enricher";
391
+ }, {
392
+ coverage_domains: string[];
393
+ requirement_ref: string;
394
+ owned_scope: {
395
+ targets: {
396
+ source_ref: string;
397
+ module_refs: string[];
398
+ }[];
399
+ } | {
400
+ ref: string;
401
+ };
402
+ role: "primary" | "enricher";
403
+ }>, {
404
+ coverage_domains: string[];
405
+ requirement_ref: string;
406
+ owned_scope: {
407
+ targets: {
408
+ source_ref: string;
409
+ module_refs: string[];
410
+ }[];
411
+ } | {
412
+ ref: string;
413
+ };
414
+ role: "primary" | "enricher";
415
+ }, {
416
+ coverage_domains: string[];
417
+ requirement_ref: string;
418
+ owned_scope: {
419
+ targets: {
420
+ source_ref: string;
421
+ module_refs: string[];
422
+ }[];
423
+ } | {
424
+ ref: string;
425
+ };
426
+ role: "primary" | "enricher";
427
+ }>, "many">;
428
+ read_scope: z.ZodEffects<z.ZodObject<{
429
+ refs: z.ZodArray<z.ZodString, "many">;
430
+ extra_targets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
431
+ source_ref: z.ZodString;
432
+ module_refs: z.ZodArray<z.ZodString, "many">;
433
+ }, "strict", z.ZodTypeAny, {
434
+ source_ref: string;
435
+ module_refs: string[];
436
+ }, {
437
+ source_ref: string;
438
+ module_refs: string[];
439
+ }>, {
440
+ source_ref: string;
441
+ module_refs: string[];
442
+ }, {
443
+ source_ref: string;
444
+ module_refs: string[];
445
+ }>, "many">>;
446
+ }, "strict", z.ZodTypeAny, {
447
+ refs: string[];
448
+ extra_targets?: {
449
+ source_ref: string;
450
+ module_refs: string[];
451
+ }[] | undefined;
452
+ }, {
453
+ refs: string[];
454
+ extra_targets?: {
455
+ source_ref: string;
456
+ module_refs: string[];
457
+ }[] | undefined;
458
+ }>, {
459
+ refs: string[];
460
+ extra_targets?: {
461
+ source_ref: string;
462
+ module_refs: string[];
463
+ }[] | undefined;
464
+ }, {
465
+ refs: string[];
466
+ extra_targets?: {
467
+ source_ref: string;
468
+ module_refs: string[];
469
+ }[] | undefined;
470
+ }>;
471
+ profile: z.ZodObject<{
472
+ primary: z.ZodObject<{
473
+ id: z.ZodEffects<z.ZodString, string, string>;
474
+ provider: z.ZodEffects<z.ZodString, string, string>;
475
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
476
+ }, "strict", z.ZodTypeAny, {
477
+ id: string;
478
+ provider: string;
479
+ variants?: Record<string, string> | undefined;
480
+ }, {
481
+ id: string;
482
+ provider: string;
483
+ variants?: Record<string, string> | undefined;
484
+ }>;
485
+ additional: z.ZodOptional<z.ZodArray<z.ZodObject<{
486
+ id: z.ZodEffects<z.ZodString, string, string>;
487
+ provider: z.ZodEffects<z.ZodString, string, string>;
488
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
489
+ } & {
490
+ kind: z.ZodEnum<["supporting", "extension"]>;
491
+ }, "strict", z.ZodTypeAny, {
492
+ id: string;
493
+ kind: "supporting" | "extension";
494
+ provider: string;
495
+ variants?: Record<string, string> | undefined;
496
+ }, {
497
+ id: string;
498
+ kind: "supporting" | "extension";
499
+ provider: string;
500
+ variants?: Record<string, string> | undefined;
501
+ }>, "many">>;
502
+ composers: z.ZodOptional<z.ZodArray<z.ZodObject<{
503
+ id: z.ZodEffects<z.ZodString, string, string>;
504
+ provider: z.ZodEffects<z.ZodString, string, string>;
505
+ }, "strict", z.ZodTypeAny, {
506
+ id: string;
507
+ provider: string;
508
+ }, {
509
+ id: string;
510
+ provider: string;
511
+ }>, "many">>;
512
+ }, "strict", z.ZodTypeAny, {
513
+ primary: {
514
+ id: string;
515
+ provider: string;
516
+ variants?: Record<string, string> | undefined;
517
+ };
518
+ additional?: {
519
+ id: string;
520
+ kind: "supporting" | "extension";
521
+ provider: string;
522
+ variants?: Record<string, string> | undefined;
523
+ }[] | undefined;
524
+ composers?: {
525
+ id: string;
526
+ provider: string;
527
+ }[] | undefined;
528
+ }, {
529
+ primary: {
530
+ id: string;
531
+ provider: string;
532
+ variants?: Record<string, string> | undefined;
533
+ };
534
+ additional?: {
535
+ id: string;
536
+ kind: "supporting" | "extension";
537
+ provider: string;
538
+ variants?: Record<string, string> | undefined;
539
+ }[] | undefined;
540
+ composers?: {
541
+ id: string;
542
+ provider: string;
543
+ }[] | undefined;
544
+ }>;
545
+ providers: z.ZodArray<z.ZodEffects<z.ZodObject<{
546
+ id: z.ZodEffects<z.ZodString, string, string>;
547
+ role: z.ZodEnum<["primary", "extension"]>;
548
+ skill: z.ZodEffects<z.ZodString, string, string>;
549
+ version: z.ZodString;
550
+ integrity: z.ZodString;
551
+ distribution: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
552
+ kind: z.ZodLiteral<"cli-bundled">;
553
+ locator: z.ZodString;
554
+ }, "strict", z.ZodTypeAny, {
555
+ kind: "cli-bundled";
556
+ locator: string;
557
+ }, {
558
+ kind: "cli-bundled";
559
+ locator: string;
560
+ }>, z.ZodObject<{
561
+ kind: z.ZodLiteral<"bundled">;
562
+ locator: z.ZodString;
563
+ }, "strict", z.ZodTypeAny, {
564
+ kind: "bundled";
565
+ locator: string;
566
+ }, {
567
+ kind: "bundled";
568
+ locator: string;
569
+ }>, z.ZodObject<{
570
+ kind: z.ZodLiteral<"workspace">;
571
+ locator: z.ZodString;
572
+ }, "strict", z.ZodTypeAny, {
573
+ kind: "workspace";
574
+ locator: string;
575
+ }, {
576
+ kind: "workspace";
577
+ locator: string;
578
+ }>, z.ZodObject<{
579
+ kind: z.ZodLiteral<"package">;
580
+ locator: z.ZodString;
581
+ }, "strict", z.ZodTypeAny, {
582
+ kind: "package";
583
+ locator: string;
584
+ }, {
585
+ kind: "package";
586
+ locator: string;
587
+ }>, z.ZodObject<{
588
+ kind: z.ZodLiteral<"marketplace">;
589
+ locator: z.ZodString;
590
+ }, "strict", z.ZodTypeAny, {
591
+ kind: "marketplace";
592
+ locator: string;
593
+ }, {
594
+ kind: "marketplace";
595
+ locator: string;
596
+ }>]>, {
597
+ kind: "cli-bundled";
598
+ locator: string;
599
+ } | {
600
+ kind: "bundled";
601
+ locator: string;
602
+ } | {
603
+ kind: "workspace";
604
+ locator: string;
605
+ } | {
606
+ kind: "package";
607
+ locator: string;
608
+ } | {
609
+ kind: "marketplace";
610
+ locator: string;
611
+ }, {
612
+ kind: "cli-bundled";
613
+ locator: string;
614
+ } | {
615
+ kind: "bundled";
616
+ locator: string;
617
+ } | {
618
+ kind: "workspace";
619
+ locator: string;
620
+ } | {
621
+ kind: "package";
622
+ locator: string;
623
+ } | {
624
+ kind: "marketplace";
625
+ locator: string;
626
+ }>;
627
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>>>;
628
+ }, "strict", z.ZodTypeAny, {
629
+ id: string;
630
+ role: "primary" | "extension";
631
+ skill: string;
632
+ version: string;
633
+ integrity: string;
634
+ distribution: {
635
+ kind: "cli-bundled";
636
+ locator: string;
637
+ } | {
638
+ kind: "bundled";
639
+ locator: string;
640
+ } | {
641
+ kind: "workspace";
642
+ locator: string;
643
+ } | {
644
+ kind: "package";
645
+ locator: string;
646
+ } | {
647
+ kind: "marketplace";
648
+ locator: string;
649
+ };
650
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
651
+ }, {
652
+ id: string;
653
+ role: "primary" | "extension";
654
+ skill: string;
655
+ version: string;
656
+ integrity: string;
657
+ distribution: {
658
+ kind: "cli-bundled";
659
+ locator: string;
660
+ } | {
661
+ kind: "bundled";
662
+ locator: string;
663
+ } | {
664
+ kind: "workspace";
665
+ locator: string;
666
+ } | {
667
+ kind: "package";
668
+ locator: string;
669
+ } | {
670
+ kind: "marketplace";
671
+ locator: string;
672
+ };
673
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
674
+ }>, {
675
+ id: string;
676
+ role: "primary" | "extension";
677
+ skill: string;
678
+ version: string;
679
+ integrity: string;
680
+ distribution: {
681
+ kind: "cli-bundled";
682
+ locator: string;
683
+ } | {
684
+ kind: "bundled";
685
+ locator: string;
686
+ } | {
687
+ kind: "workspace";
688
+ locator: string;
689
+ } | {
690
+ kind: "package";
691
+ locator: string;
692
+ } | {
693
+ kind: "marketplace";
694
+ locator: string;
695
+ };
696
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
697
+ }, {
698
+ id: string;
699
+ role: "primary" | "extension";
700
+ skill: string;
701
+ version: string;
702
+ integrity: string;
703
+ distribution: {
704
+ kind: "cli-bundled";
705
+ locator: string;
706
+ } | {
707
+ kind: "bundled";
708
+ locator: string;
709
+ } | {
710
+ kind: "workspace";
711
+ locator: string;
712
+ } | {
713
+ kind: "package";
714
+ locator: string;
715
+ } | {
716
+ kind: "marketplace";
717
+ locator: string;
718
+ };
719
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
720
+ }>, "many">;
721
+ customization: z.ZodOptional<z.ZodObject<{
722
+ mode: z.ZodEnum<["extend", "replace"]>;
723
+ }, "strict", z.ZodTypeAny, {
724
+ mode: "replace" | "extend";
725
+ }, {
726
+ mode: "replace" | "extend";
727
+ }>>;
728
+ }, "strict", z.ZodTypeAny, {
729
+ id: string;
730
+ operations: ("main-index" | "material-answer")[];
731
+ requirement_bindings: {
732
+ coverage_domains: string[];
733
+ requirement_ref: string;
734
+ owned_scope: {
735
+ targets: {
736
+ source_ref: string;
737
+ module_refs: string[];
738
+ }[];
739
+ } | {
740
+ ref: string;
741
+ };
742
+ role: "primary" | "enricher";
743
+ }[];
744
+ read_scope: {
745
+ refs: string[];
746
+ extra_targets?: {
747
+ source_ref: string;
748
+ module_refs: string[];
749
+ }[] | undefined;
750
+ };
751
+ profile: {
752
+ primary: {
753
+ id: string;
754
+ provider: string;
755
+ variants?: Record<string, string> | undefined;
756
+ };
757
+ additional?: {
758
+ id: string;
759
+ kind: "supporting" | "extension";
760
+ provider: string;
761
+ variants?: Record<string, string> | undefined;
762
+ }[] | undefined;
763
+ composers?: {
764
+ id: string;
765
+ provider: string;
766
+ }[] | undefined;
767
+ };
768
+ providers: {
769
+ id: string;
770
+ role: "primary" | "extension";
771
+ skill: string;
772
+ version: string;
773
+ integrity: string;
774
+ distribution: {
775
+ kind: "cli-bundled";
776
+ locator: string;
777
+ } | {
778
+ kind: "bundled";
779
+ locator: string;
780
+ } | {
781
+ kind: "workspace";
782
+ locator: string;
783
+ } | {
784
+ kind: "package";
785
+ locator: string;
786
+ } | {
787
+ kind: "marketplace";
788
+ locator: string;
789
+ };
790
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
791
+ }[];
792
+ customization?: {
793
+ mode: "replace" | "extend";
794
+ } | undefined;
795
+ }, {
796
+ id: string;
797
+ operations: ("main-index" | "material-answer")[];
798
+ requirement_bindings: {
799
+ coverage_domains: string[];
800
+ requirement_ref: string;
801
+ owned_scope: {
802
+ targets: {
803
+ source_ref: string;
804
+ module_refs: string[];
805
+ }[];
806
+ } | {
807
+ ref: string;
808
+ };
809
+ role: "primary" | "enricher";
810
+ }[];
811
+ read_scope: {
812
+ refs: string[];
813
+ extra_targets?: {
814
+ source_ref: string;
815
+ module_refs: string[];
816
+ }[] | undefined;
817
+ };
818
+ profile: {
819
+ primary: {
820
+ id: string;
821
+ provider: string;
822
+ variants?: Record<string, string> | undefined;
823
+ };
824
+ additional?: {
825
+ id: string;
826
+ kind: "supporting" | "extension";
827
+ provider: string;
828
+ variants?: Record<string, string> | undefined;
829
+ }[] | undefined;
830
+ composers?: {
831
+ id: string;
832
+ provider: string;
833
+ }[] | undefined;
834
+ };
835
+ providers: {
836
+ id: string;
837
+ role: "primary" | "extension";
838
+ skill: string;
839
+ version: string;
840
+ integrity: string;
841
+ distribution: {
842
+ kind: "cli-bundled";
843
+ locator: string;
844
+ } | {
845
+ kind: "bundled";
846
+ locator: string;
847
+ } | {
848
+ kind: "workspace";
849
+ locator: string;
850
+ } | {
851
+ kind: "package";
852
+ locator: string;
853
+ } | {
854
+ kind: "marketplace";
855
+ locator: string;
856
+ };
857
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
858
+ }[];
859
+ customization?: {
860
+ mode: "replace" | "extend";
861
+ } | undefined;
862
+ }>, {
863
+ id: string;
864
+ operations: ("main-index" | "material-answer")[];
865
+ requirement_bindings: {
866
+ coverage_domains: string[];
867
+ requirement_ref: string;
868
+ owned_scope: {
869
+ targets: {
870
+ source_ref: string;
871
+ module_refs: string[];
872
+ }[];
873
+ } | {
874
+ ref: string;
875
+ };
876
+ role: "primary" | "enricher";
877
+ }[];
878
+ read_scope: {
879
+ refs: string[];
880
+ extra_targets?: {
881
+ source_ref: string;
882
+ module_refs: string[];
883
+ }[] | undefined;
884
+ };
885
+ profile: {
886
+ primary: {
887
+ id: string;
888
+ provider: string;
889
+ variants?: Record<string, string> | undefined;
890
+ };
891
+ additional?: {
892
+ id: string;
893
+ kind: "supporting" | "extension";
894
+ provider: string;
895
+ variants?: Record<string, string> | undefined;
896
+ }[] | undefined;
897
+ composers?: {
898
+ id: string;
899
+ provider: string;
900
+ }[] | undefined;
901
+ };
902
+ providers: {
903
+ id: string;
904
+ role: "primary" | "extension";
905
+ skill: string;
906
+ version: string;
907
+ integrity: string;
908
+ distribution: {
909
+ kind: "cli-bundled";
910
+ locator: string;
911
+ } | {
912
+ kind: "bundled";
913
+ locator: string;
914
+ } | {
915
+ kind: "workspace";
916
+ locator: string;
917
+ } | {
918
+ kind: "package";
919
+ locator: string;
920
+ } | {
921
+ kind: "marketplace";
922
+ locator: string;
923
+ };
924
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
925
+ }[];
926
+ customization?: {
927
+ mode: "replace" | "extend";
928
+ } | undefined;
929
+ }, {
930
+ id: string;
931
+ operations: ("main-index" | "material-answer")[];
932
+ requirement_bindings: {
933
+ coverage_domains: string[];
934
+ requirement_ref: string;
935
+ owned_scope: {
936
+ targets: {
937
+ source_ref: string;
938
+ module_refs: string[];
939
+ }[];
940
+ } | {
941
+ ref: string;
942
+ };
943
+ role: "primary" | "enricher";
944
+ }[];
945
+ read_scope: {
946
+ refs: string[];
947
+ extra_targets?: {
948
+ source_ref: string;
949
+ module_refs: string[];
950
+ }[] | undefined;
951
+ };
952
+ profile: {
953
+ primary: {
954
+ id: string;
955
+ provider: string;
956
+ variants?: Record<string, string> | undefined;
957
+ };
958
+ additional?: {
959
+ id: string;
960
+ kind: "supporting" | "extension";
961
+ provider: string;
962
+ variants?: Record<string, string> | undefined;
963
+ }[] | undefined;
964
+ composers?: {
965
+ id: string;
966
+ provider: string;
967
+ }[] | undefined;
968
+ };
969
+ providers: {
970
+ id: string;
971
+ role: "primary" | "extension";
972
+ skill: string;
973
+ version: string;
974
+ integrity: string;
975
+ distribution: {
976
+ kind: "cli-bundled";
977
+ locator: string;
978
+ } | {
979
+ kind: "bundled";
980
+ locator: string;
981
+ } | {
982
+ kind: "workspace";
983
+ locator: string;
984
+ } | {
985
+ kind: "package";
986
+ locator: string;
987
+ } | {
988
+ kind: "marketplace";
989
+ locator: string;
990
+ };
991
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
992
+ }[];
993
+ customization?: {
994
+ mode: "replace" | "extend";
995
+ } | undefined;
996
+ }>, "many">;
997
+ }, "strict", z.ZodTypeAny, {
998
+ protocol: "context.indexer.registry/v1";
999
+ requirements: {
1000
+ id: string;
1001
+ reader_goals: string[];
1002
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1003
+ target_scope: {
1004
+ targets: {
1005
+ source_ref: string;
1006
+ module_refs: string[];
1007
+ }[];
1008
+ };
1009
+ evidence_source_scope: {
1010
+ targets: {
1011
+ source_ref: string;
1012
+ module_refs: string[];
1013
+ }[];
1014
+ };
1015
+ questions?: {
1016
+ ref: string;
1017
+ authority: {
1018
+ kind: "cli-base-contract" | "verified-contract-overlay";
1019
+ ref: string;
1020
+ digest: string;
1021
+ };
1022
+ contract_version: number;
1023
+ contract_digest: string;
1024
+ }[] | undefined;
1025
+ exclusions?: {
1026
+ id: string;
1027
+ scope: {
1028
+ targets: {
1029
+ source_ref: string;
1030
+ module_refs: string[];
1031
+ }[];
1032
+ };
1033
+ reason: string;
1034
+ }[] | undefined;
1035
+ }[];
1036
+ indexers: {
1037
+ id: string;
1038
+ operations: ("main-index" | "material-answer")[];
1039
+ requirement_bindings: {
1040
+ coverage_domains: string[];
1041
+ requirement_ref: string;
1042
+ owned_scope: {
1043
+ targets: {
1044
+ source_ref: string;
1045
+ module_refs: string[];
1046
+ }[];
1047
+ } | {
1048
+ ref: string;
1049
+ };
1050
+ role: "primary" | "enricher";
1051
+ }[];
1052
+ read_scope: {
1053
+ refs: string[];
1054
+ extra_targets?: {
1055
+ source_ref: string;
1056
+ module_refs: string[];
1057
+ }[] | undefined;
1058
+ };
1059
+ profile: {
1060
+ primary: {
1061
+ id: string;
1062
+ provider: string;
1063
+ variants?: Record<string, string> | undefined;
1064
+ };
1065
+ additional?: {
1066
+ id: string;
1067
+ kind: "supporting" | "extension";
1068
+ provider: string;
1069
+ variants?: Record<string, string> | undefined;
1070
+ }[] | undefined;
1071
+ composers?: {
1072
+ id: string;
1073
+ provider: string;
1074
+ }[] | undefined;
1075
+ };
1076
+ providers: {
1077
+ id: string;
1078
+ role: "primary" | "extension";
1079
+ skill: string;
1080
+ version: string;
1081
+ integrity: string;
1082
+ distribution: {
1083
+ kind: "cli-bundled";
1084
+ locator: string;
1085
+ } | {
1086
+ kind: "bundled";
1087
+ locator: string;
1088
+ } | {
1089
+ kind: "workspace";
1090
+ locator: string;
1091
+ } | {
1092
+ kind: "package";
1093
+ locator: string;
1094
+ } | {
1095
+ kind: "marketplace";
1096
+ locator: string;
1097
+ };
1098
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1099
+ }[];
1100
+ customization?: {
1101
+ mode: "replace" | "extend";
1102
+ } | undefined;
1103
+ }[];
1104
+ }, {
1105
+ protocol: "context.indexer.registry/v1";
1106
+ requirements: {
1107
+ id: string;
1108
+ reader_goals: string[];
1109
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1110
+ target_scope: {
1111
+ targets: {
1112
+ source_ref: string;
1113
+ module_refs: string[];
1114
+ }[];
1115
+ };
1116
+ evidence_source_scope: {
1117
+ targets: {
1118
+ source_ref: string;
1119
+ module_refs: string[];
1120
+ }[];
1121
+ };
1122
+ questions?: {
1123
+ ref: string;
1124
+ authority: {
1125
+ kind: "cli-base-contract" | "verified-contract-overlay";
1126
+ ref: string;
1127
+ digest: string;
1128
+ };
1129
+ contract_version: number;
1130
+ contract_digest: string;
1131
+ }[] | undefined;
1132
+ exclusions?: {
1133
+ id: string;
1134
+ scope: {
1135
+ targets: {
1136
+ source_ref: string;
1137
+ module_refs: string[];
1138
+ }[];
1139
+ };
1140
+ reason: string;
1141
+ }[] | undefined;
1142
+ }[];
1143
+ indexers: {
1144
+ id: string;
1145
+ operations: ("main-index" | "material-answer")[];
1146
+ requirement_bindings: {
1147
+ coverage_domains: string[];
1148
+ requirement_ref: string;
1149
+ owned_scope: {
1150
+ targets: {
1151
+ source_ref: string;
1152
+ module_refs: string[];
1153
+ }[];
1154
+ } | {
1155
+ ref: string;
1156
+ };
1157
+ role: "primary" | "enricher";
1158
+ }[];
1159
+ read_scope: {
1160
+ refs: string[];
1161
+ extra_targets?: {
1162
+ source_ref: string;
1163
+ module_refs: string[];
1164
+ }[] | undefined;
1165
+ };
1166
+ profile: {
1167
+ primary: {
1168
+ id: string;
1169
+ provider: string;
1170
+ variants?: Record<string, string> | undefined;
1171
+ };
1172
+ additional?: {
1173
+ id: string;
1174
+ kind: "supporting" | "extension";
1175
+ provider: string;
1176
+ variants?: Record<string, string> | undefined;
1177
+ }[] | undefined;
1178
+ composers?: {
1179
+ id: string;
1180
+ provider: string;
1181
+ }[] | undefined;
1182
+ };
1183
+ providers: {
1184
+ id: string;
1185
+ role: "primary" | "extension";
1186
+ skill: string;
1187
+ version: string;
1188
+ integrity: string;
1189
+ distribution: {
1190
+ kind: "cli-bundled";
1191
+ locator: string;
1192
+ } | {
1193
+ kind: "bundled";
1194
+ locator: string;
1195
+ } | {
1196
+ kind: "workspace";
1197
+ locator: string;
1198
+ } | {
1199
+ kind: "package";
1200
+ locator: string;
1201
+ } | {
1202
+ kind: "marketplace";
1203
+ locator: string;
1204
+ };
1205
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1206
+ }[];
1207
+ customization?: {
1208
+ mode: "replace" | "extend";
1209
+ } | undefined;
1210
+ }[];
1211
+ }>, {
1212
+ protocol: "context.indexer.registry/v1";
1213
+ requirements: {
1214
+ id: string;
1215
+ reader_goals: string[];
1216
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1217
+ target_scope: {
1218
+ targets: {
1219
+ source_ref: string;
1220
+ module_refs: string[];
1221
+ }[];
1222
+ };
1223
+ evidence_source_scope: {
1224
+ targets: {
1225
+ source_ref: string;
1226
+ module_refs: string[];
1227
+ }[];
1228
+ };
1229
+ questions?: {
1230
+ ref: string;
1231
+ authority: {
1232
+ kind: "cli-base-contract" | "verified-contract-overlay";
1233
+ ref: string;
1234
+ digest: string;
1235
+ };
1236
+ contract_version: number;
1237
+ contract_digest: string;
1238
+ }[] | undefined;
1239
+ exclusions?: {
1240
+ id: string;
1241
+ scope: {
1242
+ targets: {
1243
+ source_ref: string;
1244
+ module_refs: string[];
1245
+ }[];
1246
+ };
1247
+ reason: string;
1248
+ }[] | undefined;
1249
+ }[];
1250
+ indexers: {
1251
+ id: string;
1252
+ operations: ("main-index" | "material-answer")[];
1253
+ requirement_bindings: {
1254
+ coverage_domains: string[];
1255
+ requirement_ref: string;
1256
+ owned_scope: {
1257
+ targets: {
1258
+ source_ref: string;
1259
+ module_refs: string[];
1260
+ }[];
1261
+ } | {
1262
+ ref: string;
1263
+ };
1264
+ role: "primary" | "enricher";
1265
+ }[];
1266
+ read_scope: {
1267
+ refs: string[];
1268
+ extra_targets?: {
1269
+ source_ref: string;
1270
+ module_refs: string[];
1271
+ }[] | undefined;
1272
+ };
1273
+ profile: {
1274
+ primary: {
1275
+ id: string;
1276
+ provider: string;
1277
+ variants?: Record<string, string> | undefined;
1278
+ };
1279
+ additional?: {
1280
+ id: string;
1281
+ kind: "supporting" | "extension";
1282
+ provider: string;
1283
+ variants?: Record<string, string> | undefined;
1284
+ }[] | undefined;
1285
+ composers?: {
1286
+ id: string;
1287
+ provider: string;
1288
+ }[] | undefined;
1289
+ };
1290
+ providers: {
1291
+ id: string;
1292
+ role: "primary" | "extension";
1293
+ skill: string;
1294
+ version: string;
1295
+ integrity: string;
1296
+ distribution: {
1297
+ kind: "cli-bundled";
1298
+ locator: string;
1299
+ } | {
1300
+ kind: "bundled";
1301
+ locator: string;
1302
+ } | {
1303
+ kind: "workspace";
1304
+ locator: string;
1305
+ } | {
1306
+ kind: "package";
1307
+ locator: string;
1308
+ } | {
1309
+ kind: "marketplace";
1310
+ locator: string;
1311
+ };
1312
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1313
+ }[];
1314
+ customization?: {
1315
+ mode: "replace" | "extend";
1316
+ } | undefined;
1317
+ }[];
1318
+ }, {
1319
+ protocol: "context.indexer.registry/v1";
1320
+ requirements: {
1321
+ id: string;
1322
+ reader_goals: string[];
1323
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1324
+ target_scope: {
1325
+ targets: {
1326
+ source_ref: string;
1327
+ module_refs: string[];
1328
+ }[];
1329
+ };
1330
+ evidence_source_scope: {
1331
+ targets: {
1332
+ source_ref: string;
1333
+ module_refs: string[];
1334
+ }[];
1335
+ };
1336
+ questions?: {
1337
+ ref: string;
1338
+ authority: {
1339
+ kind: "cli-base-contract" | "verified-contract-overlay";
1340
+ ref: string;
1341
+ digest: string;
1342
+ };
1343
+ contract_version: number;
1344
+ contract_digest: string;
1345
+ }[] | undefined;
1346
+ exclusions?: {
1347
+ id: string;
1348
+ scope: {
1349
+ targets: {
1350
+ source_ref: string;
1351
+ module_refs: string[];
1352
+ }[];
1353
+ };
1354
+ reason: string;
1355
+ }[] | undefined;
1356
+ }[];
1357
+ indexers: {
1358
+ id: string;
1359
+ operations: ("main-index" | "material-answer")[];
1360
+ requirement_bindings: {
1361
+ coverage_domains: string[];
1362
+ requirement_ref: string;
1363
+ owned_scope: {
1364
+ targets: {
1365
+ source_ref: string;
1366
+ module_refs: string[];
1367
+ }[];
1368
+ } | {
1369
+ ref: string;
1370
+ };
1371
+ role: "primary" | "enricher";
1372
+ }[];
1373
+ read_scope: {
1374
+ refs: string[];
1375
+ extra_targets?: {
1376
+ source_ref: string;
1377
+ module_refs: string[];
1378
+ }[] | undefined;
1379
+ };
1380
+ profile: {
1381
+ primary: {
1382
+ id: string;
1383
+ provider: string;
1384
+ variants?: Record<string, string> | undefined;
1385
+ };
1386
+ additional?: {
1387
+ id: string;
1388
+ kind: "supporting" | "extension";
1389
+ provider: string;
1390
+ variants?: Record<string, string> | undefined;
1391
+ }[] | undefined;
1392
+ composers?: {
1393
+ id: string;
1394
+ provider: string;
1395
+ }[] | undefined;
1396
+ };
1397
+ providers: {
1398
+ id: string;
1399
+ role: "primary" | "extension";
1400
+ skill: string;
1401
+ version: string;
1402
+ integrity: string;
1403
+ distribution: {
1404
+ kind: "cli-bundled";
1405
+ locator: string;
1406
+ } | {
1407
+ kind: "bundled";
1408
+ locator: string;
1409
+ } | {
1410
+ kind: "workspace";
1411
+ locator: string;
1412
+ } | {
1413
+ kind: "package";
1414
+ locator: string;
1415
+ } | {
1416
+ kind: "marketplace";
1417
+ locator: string;
1418
+ };
1419
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1420
+ }[];
1421
+ customization?: {
1422
+ mode: "replace" | "extend";
1423
+ } | undefined;
1424
+ }[];
1425
+ }>;
1426
+ visible_skills: z.ZodArray<z.ZodObject<{
1427
+ skill: z.ZodEffects<z.ZodString, string, string>;
1428
+ version: z.ZodNullable<z.ZodString>;
1429
+ source_type: z.ZodEnum<["community-plugin", "cli-bundled", "workspace", "installed-plugin", "marketplace"]>;
1430
+ }, "strict", z.ZodTypeAny, {
1431
+ skill: string;
1432
+ version: string | null;
1433
+ source_type: "cli-bundled" | "workspace" | "marketplace" | "community-plugin" | "installed-plugin";
1434
+ }, {
1435
+ skill: string;
1436
+ version: string | null;
1437
+ source_type: "cli-bundled" | "workspace" | "marketplace" | "community-plugin" | "installed-plugin";
1438
+ }>, "many">;
1439
+ community_fallback_attempted: z.ZodBoolean;
1440
+ } & {
1441
+ input_digest: z.ZodString;
1442
+ }, "strict", z.ZodTypeAny, {
1443
+ protocol: "context.indexer.provider-route-input/v1";
1444
+ registry: {
1445
+ protocol: "context.indexer.registry/v1";
1446
+ requirements: {
1447
+ id: string;
1448
+ reader_goals: string[];
1449
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1450
+ target_scope: {
1451
+ targets: {
1452
+ source_ref: string;
1453
+ module_refs: string[];
1454
+ }[];
1455
+ };
1456
+ evidence_source_scope: {
1457
+ targets: {
1458
+ source_ref: string;
1459
+ module_refs: string[];
1460
+ }[];
1461
+ };
1462
+ questions?: {
1463
+ ref: string;
1464
+ authority: {
1465
+ kind: "cli-base-contract" | "verified-contract-overlay";
1466
+ ref: string;
1467
+ digest: string;
1468
+ };
1469
+ contract_version: number;
1470
+ contract_digest: string;
1471
+ }[] | undefined;
1472
+ exclusions?: {
1473
+ id: string;
1474
+ scope: {
1475
+ targets: {
1476
+ source_ref: string;
1477
+ module_refs: string[];
1478
+ }[];
1479
+ };
1480
+ reason: string;
1481
+ }[] | undefined;
1482
+ }[];
1483
+ indexers: {
1484
+ id: string;
1485
+ operations: ("main-index" | "material-answer")[];
1486
+ requirement_bindings: {
1487
+ coverage_domains: string[];
1488
+ requirement_ref: string;
1489
+ owned_scope: {
1490
+ targets: {
1491
+ source_ref: string;
1492
+ module_refs: string[];
1493
+ }[];
1494
+ } | {
1495
+ ref: string;
1496
+ };
1497
+ role: "primary" | "enricher";
1498
+ }[];
1499
+ read_scope: {
1500
+ refs: string[];
1501
+ extra_targets?: {
1502
+ source_ref: string;
1503
+ module_refs: string[];
1504
+ }[] | undefined;
1505
+ };
1506
+ profile: {
1507
+ primary: {
1508
+ id: string;
1509
+ provider: string;
1510
+ variants?: Record<string, string> | undefined;
1511
+ };
1512
+ additional?: {
1513
+ id: string;
1514
+ kind: "supporting" | "extension";
1515
+ provider: string;
1516
+ variants?: Record<string, string> | undefined;
1517
+ }[] | undefined;
1518
+ composers?: {
1519
+ id: string;
1520
+ provider: string;
1521
+ }[] | undefined;
1522
+ };
1523
+ providers: {
1524
+ id: string;
1525
+ role: "primary" | "extension";
1526
+ skill: string;
1527
+ version: string;
1528
+ integrity: string;
1529
+ distribution: {
1530
+ kind: "cli-bundled";
1531
+ locator: string;
1532
+ } | {
1533
+ kind: "bundled";
1534
+ locator: string;
1535
+ } | {
1536
+ kind: "workspace";
1537
+ locator: string;
1538
+ } | {
1539
+ kind: "package";
1540
+ locator: string;
1541
+ } | {
1542
+ kind: "marketplace";
1543
+ locator: string;
1544
+ };
1545
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1546
+ }[];
1547
+ customization?: {
1548
+ mode: "replace" | "extend";
1549
+ } | undefined;
1550
+ }[];
1551
+ };
1552
+ input_digest: string;
1553
+ project_ref: string;
1554
+ visible_skills: {
1555
+ skill: string;
1556
+ version: string | null;
1557
+ source_type: "cli-bundled" | "workspace" | "marketplace" | "community-plugin" | "installed-plugin";
1558
+ }[];
1559
+ community_fallback_attempted: boolean;
1560
+ }, {
1561
+ protocol: "context.indexer.provider-route-input/v1";
1562
+ registry: {
1563
+ protocol: "context.indexer.registry/v1";
1564
+ requirements: {
1565
+ id: string;
1566
+ reader_goals: string[];
1567
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1568
+ target_scope: {
1569
+ targets: {
1570
+ source_ref: string;
1571
+ module_refs: string[];
1572
+ }[];
1573
+ };
1574
+ evidence_source_scope: {
1575
+ targets: {
1576
+ source_ref: string;
1577
+ module_refs: string[];
1578
+ }[];
1579
+ };
1580
+ questions?: {
1581
+ ref: string;
1582
+ authority: {
1583
+ kind: "cli-base-contract" | "verified-contract-overlay";
1584
+ ref: string;
1585
+ digest: string;
1586
+ };
1587
+ contract_version: number;
1588
+ contract_digest: string;
1589
+ }[] | undefined;
1590
+ exclusions?: {
1591
+ id: string;
1592
+ scope: {
1593
+ targets: {
1594
+ source_ref: string;
1595
+ module_refs: string[];
1596
+ }[];
1597
+ };
1598
+ reason: string;
1599
+ }[] | undefined;
1600
+ }[];
1601
+ indexers: {
1602
+ id: string;
1603
+ operations: ("main-index" | "material-answer")[];
1604
+ requirement_bindings: {
1605
+ coverage_domains: string[];
1606
+ requirement_ref: string;
1607
+ owned_scope: {
1608
+ targets: {
1609
+ source_ref: string;
1610
+ module_refs: string[];
1611
+ }[];
1612
+ } | {
1613
+ ref: string;
1614
+ };
1615
+ role: "primary" | "enricher";
1616
+ }[];
1617
+ read_scope: {
1618
+ refs: string[];
1619
+ extra_targets?: {
1620
+ source_ref: string;
1621
+ module_refs: string[];
1622
+ }[] | undefined;
1623
+ };
1624
+ profile: {
1625
+ primary: {
1626
+ id: string;
1627
+ provider: string;
1628
+ variants?: Record<string, string> | undefined;
1629
+ };
1630
+ additional?: {
1631
+ id: string;
1632
+ kind: "supporting" | "extension";
1633
+ provider: string;
1634
+ variants?: Record<string, string> | undefined;
1635
+ }[] | undefined;
1636
+ composers?: {
1637
+ id: string;
1638
+ provider: string;
1639
+ }[] | undefined;
1640
+ };
1641
+ providers: {
1642
+ id: string;
1643
+ role: "primary" | "extension";
1644
+ skill: string;
1645
+ version: string;
1646
+ integrity: string;
1647
+ distribution: {
1648
+ kind: "cli-bundled";
1649
+ locator: string;
1650
+ } | {
1651
+ kind: "bundled";
1652
+ locator: string;
1653
+ } | {
1654
+ kind: "workspace";
1655
+ locator: string;
1656
+ } | {
1657
+ kind: "package";
1658
+ locator: string;
1659
+ } | {
1660
+ kind: "marketplace";
1661
+ locator: string;
1662
+ };
1663
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1664
+ }[];
1665
+ customization?: {
1666
+ mode: "replace" | "extend";
1667
+ } | undefined;
1668
+ }[];
1669
+ };
1670
+ input_digest: string;
1671
+ project_ref: string;
1672
+ visible_skills: {
1673
+ skill: string;
1674
+ version: string | null;
1675
+ source_type: "cli-bundled" | "workspace" | "marketplace" | "community-plugin" | "installed-plugin";
1676
+ }[];
1677
+ community_fallback_attempted: boolean;
1678
+ }>;
1679
+ export type IndexerProviderRouteInput = z.infer<typeof indexerProviderRouteInputSchema>;
1680
+ export declare const indexerCapabilityGapProofSchema: z.ZodObject<{
1681
+ protocol: z.ZodLiteral<"context.indexer.capability-gap-proof/v1">;
1682
+ project_ref: z.ZodString;
1683
+ route_input_digest: z.ZodString;
1684
+ requirement_set_digest: z.ZodString;
1685
+ registry_digest: z.ZodString;
1686
+ visible_skill_set_digest: z.ZodString;
1687
+ community_fallback_attempted: z.ZodLiteral<true>;
1688
+ gaps: z.ZodArray<z.ZodObject<{
1689
+ owner_cell_ref: z.ZodNullable<z.ZodString>;
1690
+ requirement_ref: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1691
+ coverage_domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1692
+ capability: z.ZodString;
1693
+ }, "strict", z.ZodTypeAny, {
1694
+ requirement_ref: string | null;
1695
+ capability: string;
1696
+ coverage_domain: string | null;
1697
+ owner_cell_ref: string | null;
1698
+ }, {
1699
+ requirement_ref: string | null;
1700
+ capability: string;
1701
+ coverage_domain: string | null;
1702
+ owner_cell_ref: string | null;
1703
+ }>, "many">;
1704
+ } & {
1705
+ gap_digest: z.ZodString;
1706
+ }, "strict", z.ZodTypeAny, {
1707
+ protocol: "context.indexer.capability-gap-proof/v1";
1708
+ project_ref: string;
1709
+ requirement_set_digest: string;
1710
+ registry_digest: string;
1711
+ community_fallback_attempted: true;
1712
+ route_input_digest: string;
1713
+ visible_skill_set_digest: string;
1714
+ gaps: {
1715
+ requirement_ref: string | null;
1716
+ capability: string;
1717
+ coverage_domain: string | null;
1718
+ owner_cell_ref: string | null;
1719
+ }[];
1720
+ gap_digest: string;
1721
+ }, {
1722
+ protocol: "context.indexer.capability-gap-proof/v1";
1723
+ project_ref: string;
1724
+ requirement_set_digest: string;
1725
+ registry_digest: string;
1726
+ community_fallback_attempted: true;
1727
+ route_input_digest: string;
1728
+ visible_skill_set_digest: string;
1729
+ gaps: {
1730
+ requirement_ref: string | null;
1731
+ capability: string;
1732
+ coverage_domain: string | null;
1733
+ owner_cell_ref: string | null;
1734
+ }[];
1735
+ gap_digest: string;
1736
+ }>;
1737
+ export type IndexerCapabilityGapProof = z.infer<typeof indexerCapabilityGapProofSchema>;
1738
+ export declare const indexerProviderRouteReportSchema: z.ZodObject<{
1739
+ protocol: z.ZodLiteral<"context.indexer.provider-route-report/v1">;
1740
+ project_ref: z.ZodString;
1741
+ input_digest: z.ZodString;
1742
+ requirement_set_digest: z.ZodString;
1743
+ registry_digest: z.ZodString;
1744
+ visible_skill_set_digest: z.ZodString;
1745
+ selected_skill_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1746
+ composition_mode: z.ZodEnum<["none", "single-skill", "multi-skill"]>;
1747
+ community_fallback_attempted: z.ZodBoolean;
1748
+ unowned_required_owner_cells: z.ZodArray<z.ZodString, "many">;
1749
+ conflicting_owner_cells: z.ZodArray<z.ZodObject<{
1750
+ owner_cell_ref: z.ZodString;
1751
+ indexer_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1752
+ skill_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1753
+ }, "strict", z.ZodTypeAny, {
1754
+ owner_cell_ref: string;
1755
+ indexer_ids: string[];
1756
+ skill_ids: string[];
1757
+ }, {
1758
+ owner_cell_ref: string;
1759
+ indexer_ids: string[];
1760
+ skill_ids: string[];
1761
+ }>, "many">;
1762
+ read_scope_overlaps: z.ZodArray<z.ZodObject<{
1763
+ left_indexer_id: z.ZodEffects<z.ZodString, string, string>;
1764
+ right_indexer_id: z.ZodEffects<z.ZodString, string, string>;
1765
+ scope_refs: z.ZodArray<z.ZodString, "many">;
1766
+ }, "strict", z.ZodTypeAny, {
1767
+ left_indexer_id: string;
1768
+ right_indexer_id: string;
1769
+ scope_refs: string[];
1770
+ }, {
1771
+ left_indexer_id: string;
1772
+ right_indexer_id: string;
1773
+ scope_refs: string[];
1774
+ }>, "many">;
1775
+ capability_gaps: z.ZodArray<z.ZodObject<{
1776
+ owner_cell_ref: z.ZodNullable<z.ZodString>;
1777
+ requirement_ref: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1778
+ coverage_domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1779
+ capability: z.ZodString;
1780
+ }, "strict", z.ZodTypeAny, {
1781
+ requirement_ref: string | null;
1782
+ capability: string;
1783
+ coverage_domain: string | null;
1784
+ owner_cell_ref: string | null;
1785
+ }, {
1786
+ requirement_ref: string | null;
1787
+ capability: string;
1788
+ coverage_domain: string | null;
1789
+ owner_cell_ref: string | null;
1790
+ }>, "many">;
1791
+ capability_gap_proof: z.ZodNullable<z.ZodObject<{
1792
+ protocol: z.ZodLiteral<"context.indexer.capability-gap-proof/v1">;
1793
+ project_ref: z.ZodString;
1794
+ route_input_digest: z.ZodString;
1795
+ requirement_set_digest: z.ZodString;
1796
+ registry_digest: z.ZodString;
1797
+ visible_skill_set_digest: z.ZodString;
1798
+ community_fallback_attempted: z.ZodLiteral<true>;
1799
+ gaps: z.ZodArray<z.ZodObject<{
1800
+ owner_cell_ref: z.ZodNullable<z.ZodString>;
1801
+ requirement_ref: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1802
+ coverage_domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
1803
+ capability: z.ZodString;
1804
+ }, "strict", z.ZodTypeAny, {
1805
+ requirement_ref: string | null;
1806
+ capability: string;
1807
+ coverage_domain: string | null;
1808
+ owner_cell_ref: string | null;
1809
+ }, {
1810
+ requirement_ref: string | null;
1811
+ capability: string;
1812
+ coverage_domain: string | null;
1813
+ owner_cell_ref: string | null;
1814
+ }>, "many">;
1815
+ } & {
1816
+ gap_digest: z.ZodString;
1817
+ }, "strict", z.ZodTypeAny, {
1818
+ protocol: "context.indexer.capability-gap-proof/v1";
1819
+ project_ref: string;
1820
+ requirement_set_digest: string;
1821
+ registry_digest: string;
1822
+ community_fallback_attempted: true;
1823
+ route_input_digest: string;
1824
+ visible_skill_set_digest: string;
1825
+ gaps: {
1826
+ requirement_ref: string | null;
1827
+ capability: string;
1828
+ coverage_domain: string | null;
1829
+ owner_cell_ref: string | null;
1830
+ }[];
1831
+ gap_digest: string;
1832
+ }, {
1833
+ protocol: "context.indexer.capability-gap-proof/v1";
1834
+ project_ref: string;
1835
+ requirement_set_digest: string;
1836
+ registry_digest: string;
1837
+ community_fallback_attempted: true;
1838
+ route_input_digest: string;
1839
+ visible_skill_set_digest: string;
1840
+ gaps: {
1841
+ requirement_ref: string | null;
1842
+ capability: string;
1843
+ coverage_domain: string | null;
1844
+ owner_cell_ref: string | null;
1845
+ }[];
1846
+ gap_digest: string;
1847
+ }>>;
1848
+ route: z.ZodDiscriminatedUnion<"outcome", [z.ZodObject<{
1849
+ outcome: z.ZodLiteral<"selection-validation-required">;
1850
+ graph_outcome: z.ZodLiteral<"completed">;
1851
+ next_action: z.ZodLiteral<"validate-indexer-selection-proposal">;
1852
+ }, "strict", z.ZodTypeAny, {
1853
+ outcome: "selection-validation-required";
1854
+ graph_outcome: "completed";
1855
+ next_action: "validate-indexer-selection-proposal";
1856
+ }, {
1857
+ outcome: "selection-validation-required";
1858
+ graph_outcome: "completed";
1859
+ next_action: "validate-indexer-selection-proposal";
1860
+ }>, z.ZodObject<{
1861
+ outcome: z.ZodLiteral<"community-fallback-required">;
1862
+ graph_outcome: z.ZodLiteral<"partial">;
1863
+ next_action: z.ZodLiteral<"configure-community-indexer-fallback">;
1864
+ }, "strict", z.ZodTypeAny, {
1865
+ outcome: "community-fallback-required";
1866
+ graph_outcome: "partial";
1867
+ next_action: "configure-community-indexer-fallback";
1868
+ }, {
1869
+ outcome: "community-fallback-required";
1870
+ graph_outcome: "partial";
1871
+ next_action: "configure-community-indexer-fallback";
1872
+ }>, z.ZodObject<{
1873
+ outcome: z.ZodLiteral<"indexer-provider-conflict">;
1874
+ graph_outcome: z.ZodLiteral<"waiting-user">;
1875
+ next_action: z.ZodLiteral<"configure-indexer-providers">;
1876
+ }, "strict", z.ZodTypeAny, {
1877
+ outcome: "indexer-provider-conflict";
1878
+ graph_outcome: "waiting-user";
1879
+ next_action: "configure-indexer-providers";
1880
+ }, {
1881
+ outcome: "indexer-provider-conflict";
1882
+ graph_outcome: "waiting-user";
1883
+ next_action: "configure-indexer-providers";
1884
+ }>, z.ZodObject<{
1885
+ outcome: z.ZodLiteral<"indexer-customization-required">;
1886
+ graph_outcome: z.ZodLiteral<"blocked">;
1887
+ next_action: z.ZodLiteral<"propose-indexer-customization">;
1888
+ }, "strict", z.ZodTypeAny, {
1889
+ outcome: "indexer-customization-required";
1890
+ graph_outcome: "blocked";
1891
+ next_action: "propose-indexer-customization";
1892
+ }, {
1893
+ outcome: "indexer-customization-required";
1894
+ graph_outcome: "blocked";
1895
+ next_action: "propose-indexer-customization";
1896
+ }>]>;
1897
+ selection_proposal_input: z.ZodNullable<z.ZodObject<{
1898
+ protocol: z.ZodLiteral<"context.indexer.selection-proposal-input/v1">;
1899
+ project_ref: z.ZodString;
1900
+ registry: z.ZodEffects<z.ZodObject<{
1901
+ protocol: z.ZodLiteral<"context.indexer.registry/v1">;
1902
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
1903
+ id: z.ZodEffects<z.ZodString, string, string>;
1904
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1905
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
1906
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1907
+ ref: z.ZodString;
1908
+ authority: z.ZodObject<{
1909
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
1910
+ ref: z.ZodString;
1911
+ digest: z.ZodString;
1912
+ }, "strict", z.ZodTypeAny, {
1913
+ kind: "cli-base-contract" | "verified-contract-overlay";
1914
+ ref: string;
1915
+ digest: string;
1916
+ }, {
1917
+ kind: "cli-base-contract" | "verified-contract-overlay";
1918
+ ref: string;
1919
+ digest: string;
1920
+ }>;
1921
+ contract_version: z.ZodNumber;
1922
+ contract_digest: z.ZodString;
1923
+ }, "strict", z.ZodTypeAny, {
1924
+ ref: string;
1925
+ authority: {
1926
+ kind: "cli-base-contract" | "verified-contract-overlay";
1927
+ ref: string;
1928
+ digest: string;
1929
+ };
1930
+ contract_version: number;
1931
+ contract_digest: string;
1932
+ }, {
1933
+ ref: string;
1934
+ authority: {
1935
+ kind: "cli-base-contract" | "verified-contract-overlay";
1936
+ ref: string;
1937
+ digest: string;
1938
+ };
1939
+ contract_version: number;
1940
+ contract_digest: string;
1941
+ }>, "many">>;
1942
+ target_scope: z.ZodEffects<z.ZodObject<{
1943
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1944
+ source_ref: z.ZodString;
1945
+ module_refs: z.ZodArray<z.ZodString, "many">;
1946
+ }, "strict", z.ZodTypeAny, {
1947
+ source_ref: string;
1948
+ module_refs: string[];
1949
+ }, {
1950
+ source_ref: string;
1951
+ module_refs: string[];
1952
+ }>, {
1953
+ source_ref: string;
1954
+ module_refs: string[];
1955
+ }, {
1956
+ source_ref: string;
1957
+ module_refs: string[];
1958
+ }>, "many">;
1959
+ }, "strict", z.ZodTypeAny, {
1960
+ targets: {
1961
+ source_ref: string;
1962
+ module_refs: string[];
1963
+ }[];
1964
+ }, {
1965
+ targets: {
1966
+ source_ref: string;
1967
+ module_refs: string[];
1968
+ }[];
1969
+ }>, {
1970
+ targets: {
1971
+ source_ref: string;
1972
+ module_refs: string[];
1973
+ }[];
1974
+ }, {
1975
+ targets: {
1976
+ source_ref: string;
1977
+ module_refs: string[];
1978
+ }[];
1979
+ }>;
1980
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
1981
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1982
+ source_ref: z.ZodString;
1983
+ module_refs: z.ZodArray<z.ZodString, "many">;
1984
+ }, "strict", z.ZodTypeAny, {
1985
+ source_ref: string;
1986
+ module_refs: string[];
1987
+ }, {
1988
+ source_ref: string;
1989
+ module_refs: string[];
1990
+ }>, {
1991
+ source_ref: string;
1992
+ module_refs: string[];
1993
+ }, {
1994
+ source_ref: string;
1995
+ module_refs: string[];
1996
+ }>, "many">;
1997
+ }, "strict", z.ZodTypeAny, {
1998
+ targets: {
1999
+ source_ref: string;
2000
+ module_refs: string[];
2001
+ }[];
2002
+ }, {
2003
+ targets: {
2004
+ source_ref: string;
2005
+ module_refs: string[];
2006
+ }[];
2007
+ }>, {
2008
+ targets: {
2009
+ source_ref: string;
2010
+ module_refs: string[];
2011
+ }[];
2012
+ }, {
2013
+ targets: {
2014
+ source_ref: string;
2015
+ module_refs: string[];
2016
+ }[];
2017
+ }>;
2018
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
2019
+ id: z.ZodEffects<z.ZodString, string, string>;
2020
+ scope: z.ZodEffects<z.ZodObject<{
2021
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
2022
+ source_ref: z.ZodString;
2023
+ module_refs: z.ZodArray<z.ZodString, "many">;
2024
+ }, "strict", z.ZodTypeAny, {
2025
+ source_ref: string;
2026
+ module_refs: string[];
2027
+ }, {
2028
+ source_ref: string;
2029
+ module_refs: string[];
2030
+ }>, {
2031
+ source_ref: string;
2032
+ module_refs: string[];
2033
+ }, {
2034
+ source_ref: string;
2035
+ module_refs: string[];
2036
+ }>, "many">;
2037
+ }, "strict", z.ZodTypeAny, {
2038
+ targets: {
2039
+ source_ref: string;
2040
+ module_refs: string[];
2041
+ }[];
2042
+ }, {
2043
+ targets: {
2044
+ source_ref: string;
2045
+ module_refs: string[];
2046
+ }[];
2047
+ }>, {
2048
+ targets: {
2049
+ source_ref: string;
2050
+ module_refs: string[];
2051
+ }[];
2052
+ }, {
2053
+ targets: {
2054
+ source_ref: string;
2055
+ module_refs: string[];
2056
+ }[];
2057
+ }>;
2058
+ reason: z.ZodString;
2059
+ }, "strict", z.ZodTypeAny, {
2060
+ id: string;
2061
+ scope: {
2062
+ targets: {
2063
+ source_ref: string;
2064
+ module_refs: string[];
2065
+ }[];
2066
+ };
2067
+ reason: string;
2068
+ }, {
2069
+ id: string;
2070
+ scope: {
2071
+ targets: {
2072
+ source_ref: string;
2073
+ module_refs: string[];
2074
+ }[];
2075
+ };
2076
+ reason: string;
2077
+ }>, "many">>;
2078
+ }, "strict", z.ZodTypeAny, {
2079
+ id: string;
2080
+ reader_goals: string[];
2081
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2082
+ target_scope: {
2083
+ targets: {
2084
+ source_ref: string;
2085
+ module_refs: string[];
2086
+ }[];
2087
+ };
2088
+ evidence_source_scope: {
2089
+ targets: {
2090
+ source_ref: string;
2091
+ module_refs: string[];
2092
+ }[];
2093
+ };
2094
+ questions?: {
2095
+ ref: string;
2096
+ authority: {
2097
+ kind: "cli-base-contract" | "verified-contract-overlay";
2098
+ ref: string;
2099
+ digest: string;
2100
+ };
2101
+ contract_version: number;
2102
+ contract_digest: string;
2103
+ }[] | undefined;
2104
+ exclusions?: {
2105
+ id: string;
2106
+ scope: {
2107
+ targets: {
2108
+ source_ref: string;
2109
+ module_refs: string[];
2110
+ }[];
2111
+ };
2112
+ reason: string;
2113
+ }[] | undefined;
2114
+ }, {
2115
+ id: string;
2116
+ reader_goals: string[];
2117
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2118
+ target_scope: {
2119
+ targets: {
2120
+ source_ref: string;
2121
+ module_refs: string[];
2122
+ }[];
2123
+ };
2124
+ evidence_source_scope: {
2125
+ targets: {
2126
+ source_ref: string;
2127
+ module_refs: string[];
2128
+ }[];
2129
+ };
2130
+ questions?: {
2131
+ ref: string;
2132
+ authority: {
2133
+ kind: "cli-base-contract" | "verified-contract-overlay";
2134
+ ref: string;
2135
+ digest: string;
2136
+ };
2137
+ contract_version: number;
2138
+ contract_digest: string;
2139
+ }[] | undefined;
2140
+ exclusions?: {
2141
+ id: string;
2142
+ scope: {
2143
+ targets: {
2144
+ source_ref: string;
2145
+ module_refs: string[];
2146
+ }[];
2147
+ };
2148
+ reason: string;
2149
+ }[] | undefined;
2150
+ }>, {
2151
+ id: string;
2152
+ reader_goals: string[];
2153
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2154
+ target_scope: {
2155
+ targets: {
2156
+ source_ref: string;
2157
+ module_refs: string[];
2158
+ }[];
2159
+ };
2160
+ evidence_source_scope: {
2161
+ targets: {
2162
+ source_ref: string;
2163
+ module_refs: string[];
2164
+ }[];
2165
+ };
2166
+ questions?: {
2167
+ ref: string;
2168
+ authority: {
2169
+ kind: "cli-base-contract" | "verified-contract-overlay";
2170
+ ref: string;
2171
+ digest: string;
2172
+ };
2173
+ contract_version: number;
2174
+ contract_digest: string;
2175
+ }[] | undefined;
2176
+ exclusions?: {
2177
+ id: string;
2178
+ scope: {
2179
+ targets: {
2180
+ source_ref: string;
2181
+ module_refs: string[];
2182
+ }[];
2183
+ };
2184
+ reason: string;
2185
+ }[] | undefined;
2186
+ }, {
2187
+ id: string;
2188
+ reader_goals: string[];
2189
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2190
+ target_scope: {
2191
+ targets: {
2192
+ source_ref: string;
2193
+ module_refs: string[];
2194
+ }[];
2195
+ };
2196
+ evidence_source_scope: {
2197
+ targets: {
2198
+ source_ref: string;
2199
+ module_refs: string[];
2200
+ }[];
2201
+ };
2202
+ questions?: {
2203
+ ref: string;
2204
+ authority: {
2205
+ kind: "cli-base-contract" | "verified-contract-overlay";
2206
+ ref: string;
2207
+ digest: string;
2208
+ };
2209
+ contract_version: number;
2210
+ contract_digest: string;
2211
+ }[] | undefined;
2212
+ exclusions?: {
2213
+ id: string;
2214
+ scope: {
2215
+ targets: {
2216
+ source_ref: string;
2217
+ module_refs: string[];
2218
+ }[];
2219
+ };
2220
+ reason: string;
2221
+ }[] | undefined;
2222
+ }>, "many">;
2223
+ indexers: z.ZodArray<z.ZodEffects<z.ZodObject<{
2224
+ id: z.ZodEffects<z.ZodString, string, string>;
2225
+ operations: z.ZodArray<z.ZodEnum<["main-index", "material-answer"]>, "many">;
2226
+ requirement_bindings: z.ZodArray<z.ZodEffects<z.ZodObject<{
2227
+ requirement_ref: z.ZodEffects<z.ZodString, string, string>;
2228
+ coverage_domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2229
+ owned_scope: z.ZodUnion<[z.ZodObject<{
2230
+ ref: z.ZodString;
2231
+ }, "strict", z.ZodTypeAny, {
2232
+ ref: string;
2233
+ }, {
2234
+ ref: string;
2235
+ }>, z.ZodEffects<z.ZodObject<{
2236
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
2237
+ source_ref: z.ZodString;
2238
+ module_refs: z.ZodArray<z.ZodString, "many">;
2239
+ }, "strict", z.ZodTypeAny, {
2240
+ source_ref: string;
2241
+ module_refs: string[];
2242
+ }, {
2243
+ source_ref: string;
2244
+ module_refs: string[];
2245
+ }>, {
2246
+ source_ref: string;
2247
+ module_refs: string[];
2248
+ }, {
2249
+ source_ref: string;
2250
+ module_refs: string[];
2251
+ }>, "many">;
2252
+ }, "strict", z.ZodTypeAny, {
2253
+ targets: {
2254
+ source_ref: string;
2255
+ module_refs: string[];
2256
+ }[];
2257
+ }, {
2258
+ targets: {
2259
+ source_ref: string;
2260
+ module_refs: string[];
2261
+ }[];
2262
+ }>, {
2263
+ targets: {
2264
+ source_ref: string;
2265
+ module_refs: string[];
2266
+ }[];
2267
+ }, {
2268
+ targets: {
2269
+ source_ref: string;
2270
+ module_refs: string[];
2271
+ }[];
2272
+ }>]>;
2273
+ role: z.ZodEnum<["primary", "enricher"]>;
2274
+ }, "strict", z.ZodTypeAny, {
2275
+ coverage_domains: string[];
2276
+ requirement_ref: string;
2277
+ owned_scope: {
2278
+ targets: {
2279
+ source_ref: string;
2280
+ module_refs: string[];
2281
+ }[];
2282
+ } | {
2283
+ ref: string;
2284
+ };
2285
+ role: "primary" | "enricher";
2286
+ }, {
2287
+ coverage_domains: string[];
2288
+ requirement_ref: string;
2289
+ owned_scope: {
2290
+ targets: {
2291
+ source_ref: string;
2292
+ module_refs: string[];
2293
+ }[];
2294
+ } | {
2295
+ ref: string;
2296
+ };
2297
+ role: "primary" | "enricher";
2298
+ }>, {
2299
+ coverage_domains: string[];
2300
+ requirement_ref: string;
2301
+ owned_scope: {
2302
+ targets: {
2303
+ source_ref: string;
2304
+ module_refs: string[];
2305
+ }[];
2306
+ } | {
2307
+ ref: string;
2308
+ };
2309
+ role: "primary" | "enricher";
2310
+ }, {
2311
+ coverage_domains: string[];
2312
+ requirement_ref: string;
2313
+ owned_scope: {
2314
+ targets: {
2315
+ source_ref: string;
2316
+ module_refs: string[];
2317
+ }[];
2318
+ } | {
2319
+ ref: string;
2320
+ };
2321
+ role: "primary" | "enricher";
2322
+ }>, "many">;
2323
+ read_scope: z.ZodEffects<z.ZodObject<{
2324
+ refs: z.ZodArray<z.ZodString, "many">;
2325
+ extra_targets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2326
+ source_ref: z.ZodString;
2327
+ module_refs: z.ZodArray<z.ZodString, "many">;
2328
+ }, "strict", z.ZodTypeAny, {
2329
+ source_ref: string;
2330
+ module_refs: string[];
2331
+ }, {
2332
+ source_ref: string;
2333
+ module_refs: string[];
2334
+ }>, {
2335
+ source_ref: string;
2336
+ module_refs: string[];
2337
+ }, {
2338
+ source_ref: string;
2339
+ module_refs: string[];
2340
+ }>, "many">>;
2341
+ }, "strict", z.ZodTypeAny, {
2342
+ refs: string[];
2343
+ extra_targets?: {
2344
+ source_ref: string;
2345
+ module_refs: string[];
2346
+ }[] | undefined;
2347
+ }, {
2348
+ refs: string[];
2349
+ extra_targets?: {
2350
+ source_ref: string;
2351
+ module_refs: string[];
2352
+ }[] | undefined;
2353
+ }>, {
2354
+ refs: string[];
2355
+ extra_targets?: {
2356
+ source_ref: string;
2357
+ module_refs: string[];
2358
+ }[] | undefined;
2359
+ }, {
2360
+ refs: string[];
2361
+ extra_targets?: {
2362
+ source_ref: string;
2363
+ module_refs: string[];
2364
+ }[] | undefined;
2365
+ }>;
2366
+ profile: z.ZodObject<{
2367
+ primary: z.ZodObject<{
2368
+ id: z.ZodEffects<z.ZodString, string, string>;
2369
+ provider: z.ZodEffects<z.ZodString, string, string>;
2370
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
2371
+ }, "strict", z.ZodTypeAny, {
2372
+ id: string;
2373
+ provider: string;
2374
+ variants?: Record<string, string> | undefined;
2375
+ }, {
2376
+ id: string;
2377
+ provider: string;
2378
+ variants?: Record<string, string> | undefined;
2379
+ }>;
2380
+ additional: z.ZodOptional<z.ZodArray<z.ZodObject<{
2381
+ id: z.ZodEffects<z.ZodString, string, string>;
2382
+ provider: z.ZodEffects<z.ZodString, string, string>;
2383
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
2384
+ } & {
2385
+ kind: z.ZodEnum<["supporting", "extension"]>;
2386
+ }, "strict", z.ZodTypeAny, {
2387
+ id: string;
2388
+ kind: "supporting" | "extension";
2389
+ provider: string;
2390
+ variants?: Record<string, string> | undefined;
2391
+ }, {
2392
+ id: string;
2393
+ kind: "supporting" | "extension";
2394
+ provider: string;
2395
+ variants?: Record<string, string> | undefined;
2396
+ }>, "many">>;
2397
+ composers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2398
+ id: z.ZodEffects<z.ZodString, string, string>;
2399
+ provider: z.ZodEffects<z.ZodString, string, string>;
2400
+ }, "strict", z.ZodTypeAny, {
2401
+ id: string;
2402
+ provider: string;
2403
+ }, {
2404
+ id: string;
2405
+ provider: string;
2406
+ }>, "many">>;
2407
+ }, "strict", z.ZodTypeAny, {
2408
+ primary: {
2409
+ id: string;
2410
+ provider: string;
2411
+ variants?: Record<string, string> | undefined;
2412
+ };
2413
+ additional?: {
2414
+ id: string;
2415
+ kind: "supporting" | "extension";
2416
+ provider: string;
2417
+ variants?: Record<string, string> | undefined;
2418
+ }[] | undefined;
2419
+ composers?: {
2420
+ id: string;
2421
+ provider: string;
2422
+ }[] | undefined;
2423
+ }, {
2424
+ primary: {
2425
+ id: string;
2426
+ provider: string;
2427
+ variants?: Record<string, string> | undefined;
2428
+ };
2429
+ additional?: {
2430
+ id: string;
2431
+ kind: "supporting" | "extension";
2432
+ provider: string;
2433
+ variants?: Record<string, string> | undefined;
2434
+ }[] | undefined;
2435
+ composers?: {
2436
+ id: string;
2437
+ provider: string;
2438
+ }[] | undefined;
2439
+ }>;
2440
+ providers: z.ZodArray<z.ZodEffects<z.ZodObject<{
2441
+ id: z.ZodEffects<z.ZodString, string, string>;
2442
+ role: z.ZodEnum<["primary", "extension"]>;
2443
+ skill: z.ZodEffects<z.ZodString, string, string>;
2444
+ version: z.ZodString;
2445
+ integrity: z.ZodString;
2446
+ distribution: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2447
+ kind: z.ZodLiteral<"cli-bundled">;
2448
+ locator: z.ZodString;
2449
+ }, "strict", z.ZodTypeAny, {
2450
+ kind: "cli-bundled";
2451
+ locator: string;
2452
+ }, {
2453
+ kind: "cli-bundled";
2454
+ locator: string;
2455
+ }>, z.ZodObject<{
2456
+ kind: z.ZodLiteral<"bundled">;
2457
+ locator: z.ZodString;
2458
+ }, "strict", z.ZodTypeAny, {
2459
+ kind: "bundled";
2460
+ locator: string;
2461
+ }, {
2462
+ kind: "bundled";
2463
+ locator: string;
2464
+ }>, z.ZodObject<{
2465
+ kind: z.ZodLiteral<"workspace">;
2466
+ locator: z.ZodString;
2467
+ }, "strict", z.ZodTypeAny, {
2468
+ kind: "workspace";
2469
+ locator: string;
2470
+ }, {
2471
+ kind: "workspace";
2472
+ locator: string;
2473
+ }>, z.ZodObject<{
2474
+ kind: z.ZodLiteral<"package">;
2475
+ locator: z.ZodString;
2476
+ }, "strict", z.ZodTypeAny, {
2477
+ kind: "package";
2478
+ locator: string;
2479
+ }, {
2480
+ kind: "package";
2481
+ locator: string;
2482
+ }>, z.ZodObject<{
2483
+ kind: z.ZodLiteral<"marketplace">;
2484
+ locator: z.ZodString;
2485
+ }, "strict", z.ZodTypeAny, {
2486
+ kind: "marketplace";
2487
+ locator: string;
2488
+ }, {
2489
+ kind: "marketplace";
2490
+ locator: string;
2491
+ }>]>, {
2492
+ kind: "cli-bundled";
2493
+ locator: string;
2494
+ } | {
2495
+ kind: "bundled";
2496
+ locator: string;
2497
+ } | {
2498
+ kind: "workspace";
2499
+ locator: string;
2500
+ } | {
2501
+ kind: "package";
2502
+ locator: string;
2503
+ } | {
2504
+ kind: "marketplace";
2505
+ locator: string;
2506
+ }, {
2507
+ kind: "cli-bundled";
2508
+ locator: string;
2509
+ } | {
2510
+ kind: "bundled";
2511
+ locator: string;
2512
+ } | {
2513
+ kind: "workspace";
2514
+ locator: string;
2515
+ } | {
2516
+ kind: "package";
2517
+ locator: string;
2518
+ } | {
2519
+ kind: "marketplace";
2520
+ locator: string;
2521
+ }>;
2522
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>>>;
2523
+ }, "strict", z.ZodTypeAny, {
2524
+ id: string;
2525
+ role: "primary" | "extension";
2526
+ skill: string;
2527
+ version: string;
2528
+ integrity: string;
2529
+ distribution: {
2530
+ kind: "cli-bundled";
2531
+ locator: string;
2532
+ } | {
2533
+ kind: "bundled";
2534
+ locator: string;
2535
+ } | {
2536
+ kind: "workspace";
2537
+ locator: string;
2538
+ } | {
2539
+ kind: "package";
2540
+ locator: string;
2541
+ } | {
2542
+ kind: "marketplace";
2543
+ locator: string;
2544
+ };
2545
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2546
+ }, {
2547
+ id: string;
2548
+ role: "primary" | "extension";
2549
+ skill: string;
2550
+ version: string;
2551
+ integrity: string;
2552
+ distribution: {
2553
+ kind: "cli-bundled";
2554
+ locator: string;
2555
+ } | {
2556
+ kind: "bundled";
2557
+ locator: string;
2558
+ } | {
2559
+ kind: "workspace";
2560
+ locator: string;
2561
+ } | {
2562
+ kind: "package";
2563
+ locator: string;
2564
+ } | {
2565
+ kind: "marketplace";
2566
+ locator: string;
2567
+ };
2568
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2569
+ }>, {
2570
+ id: string;
2571
+ role: "primary" | "extension";
2572
+ skill: string;
2573
+ version: string;
2574
+ integrity: string;
2575
+ distribution: {
2576
+ kind: "cli-bundled";
2577
+ locator: string;
2578
+ } | {
2579
+ kind: "bundled";
2580
+ locator: string;
2581
+ } | {
2582
+ kind: "workspace";
2583
+ locator: string;
2584
+ } | {
2585
+ kind: "package";
2586
+ locator: string;
2587
+ } | {
2588
+ kind: "marketplace";
2589
+ locator: string;
2590
+ };
2591
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2592
+ }, {
2593
+ id: string;
2594
+ role: "primary" | "extension";
2595
+ skill: string;
2596
+ version: string;
2597
+ integrity: string;
2598
+ distribution: {
2599
+ kind: "cli-bundled";
2600
+ locator: string;
2601
+ } | {
2602
+ kind: "bundled";
2603
+ locator: string;
2604
+ } | {
2605
+ kind: "workspace";
2606
+ locator: string;
2607
+ } | {
2608
+ kind: "package";
2609
+ locator: string;
2610
+ } | {
2611
+ kind: "marketplace";
2612
+ locator: string;
2613
+ };
2614
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2615
+ }>, "many">;
2616
+ customization: z.ZodOptional<z.ZodObject<{
2617
+ mode: z.ZodEnum<["extend", "replace"]>;
2618
+ }, "strict", z.ZodTypeAny, {
2619
+ mode: "replace" | "extend";
2620
+ }, {
2621
+ mode: "replace" | "extend";
2622
+ }>>;
2623
+ }, "strict", z.ZodTypeAny, {
2624
+ id: string;
2625
+ operations: ("main-index" | "material-answer")[];
2626
+ requirement_bindings: {
2627
+ coverage_domains: string[];
2628
+ requirement_ref: string;
2629
+ owned_scope: {
2630
+ targets: {
2631
+ source_ref: string;
2632
+ module_refs: string[];
2633
+ }[];
2634
+ } | {
2635
+ ref: string;
2636
+ };
2637
+ role: "primary" | "enricher";
2638
+ }[];
2639
+ read_scope: {
2640
+ refs: string[];
2641
+ extra_targets?: {
2642
+ source_ref: string;
2643
+ module_refs: string[];
2644
+ }[] | undefined;
2645
+ };
2646
+ profile: {
2647
+ primary: {
2648
+ id: string;
2649
+ provider: string;
2650
+ variants?: Record<string, string> | undefined;
2651
+ };
2652
+ additional?: {
2653
+ id: string;
2654
+ kind: "supporting" | "extension";
2655
+ provider: string;
2656
+ variants?: Record<string, string> | undefined;
2657
+ }[] | undefined;
2658
+ composers?: {
2659
+ id: string;
2660
+ provider: string;
2661
+ }[] | undefined;
2662
+ };
2663
+ providers: {
2664
+ id: string;
2665
+ role: "primary" | "extension";
2666
+ skill: string;
2667
+ version: string;
2668
+ integrity: string;
2669
+ distribution: {
2670
+ kind: "cli-bundled";
2671
+ locator: string;
2672
+ } | {
2673
+ kind: "bundled";
2674
+ locator: string;
2675
+ } | {
2676
+ kind: "workspace";
2677
+ locator: string;
2678
+ } | {
2679
+ kind: "package";
2680
+ locator: string;
2681
+ } | {
2682
+ kind: "marketplace";
2683
+ locator: string;
2684
+ };
2685
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2686
+ }[];
2687
+ customization?: {
2688
+ mode: "replace" | "extend";
2689
+ } | undefined;
2690
+ }, {
2691
+ id: string;
2692
+ operations: ("main-index" | "material-answer")[];
2693
+ requirement_bindings: {
2694
+ coverage_domains: string[];
2695
+ requirement_ref: string;
2696
+ owned_scope: {
2697
+ targets: {
2698
+ source_ref: string;
2699
+ module_refs: string[];
2700
+ }[];
2701
+ } | {
2702
+ ref: string;
2703
+ };
2704
+ role: "primary" | "enricher";
2705
+ }[];
2706
+ read_scope: {
2707
+ refs: string[];
2708
+ extra_targets?: {
2709
+ source_ref: string;
2710
+ module_refs: string[];
2711
+ }[] | undefined;
2712
+ };
2713
+ profile: {
2714
+ primary: {
2715
+ id: string;
2716
+ provider: string;
2717
+ variants?: Record<string, string> | undefined;
2718
+ };
2719
+ additional?: {
2720
+ id: string;
2721
+ kind: "supporting" | "extension";
2722
+ provider: string;
2723
+ variants?: Record<string, string> | undefined;
2724
+ }[] | undefined;
2725
+ composers?: {
2726
+ id: string;
2727
+ provider: string;
2728
+ }[] | undefined;
2729
+ };
2730
+ providers: {
2731
+ id: string;
2732
+ role: "primary" | "extension";
2733
+ skill: string;
2734
+ version: string;
2735
+ integrity: string;
2736
+ distribution: {
2737
+ kind: "cli-bundled";
2738
+ locator: string;
2739
+ } | {
2740
+ kind: "bundled";
2741
+ locator: string;
2742
+ } | {
2743
+ kind: "workspace";
2744
+ locator: string;
2745
+ } | {
2746
+ kind: "package";
2747
+ locator: string;
2748
+ } | {
2749
+ kind: "marketplace";
2750
+ locator: string;
2751
+ };
2752
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2753
+ }[];
2754
+ customization?: {
2755
+ mode: "replace" | "extend";
2756
+ } | undefined;
2757
+ }>, {
2758
+ id: string;
2759
+ operations: ("main-index" | "material-answer")[];
2760
+ requirement_bindings: {
2761
+ coverage_domains: string[];
2762
+ requirement_ref: string;
2763
+ owned_scope: {
2764
+ targets: {
2765
+ source_ref: string;
2766
+ module_refs: string[];
2767
+ }[];
2768
+ } | {
2769
+ ref: string;
2770
+ };
2771
+ role: "primary" | "enricher";
2772
+ }[];
2773
+ read_scope: {
2774
+ refs: string[];
2775
+ extra_targets?: {
2776
+ source_ref: string;
2777
+ module_refs: string[];
2778
+ }[] | undefined;
2779
+ };
2780
+ profile: {
2781
+ primary: {
2782
+ id: string;
2783
+ provider: string;
2784
+ variants?: Record<string, string> | undefined;
2785
+ };
2786
+ additional?: {
2787
+ id: string;
2788
+ kind: "supporting" | "extension";
2789
+ provider: string;
2790
+ variants?: Record<string, string> | undefined;
2791
+ }[] | undefined;
2792
+ composers?: {
2793
+ id: string;
2794
+ provider: string;
2795
+ }[] | undefined;
2796
+ };
2797
+ providers: {
2798
+ id: string;
2799
+ role: "primary" | "extension";
2800
+ skill: string;
2801
+ version: string;
2802
+ integrity: string;
2803
+ distribution: {
2804
+ kind: "cli-bundled";
2805
+ locator: string;
2806
+ } | {
2807
+ kind: "bundled";
2808
+ locator: string;
2809
+ } | {
2810
+ kind: "workspace";
2811
+ locator: string;
2812
+ } | {
2813
+ kind: "package";
2814
+ locator: string;
2815
+ } | {
2816
+ kind: "marketplace";
2817
+ locator: string;
2818
+ };
2819
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2820
+ }[];
2821
+ customization?: {
2822
+ mode: "replace" | "extend";
2823
+ } | undefined;
2824
+ }, {
2825
+ id: string;
2826
+ operations: ("main-index" | "material-answer")[];
2827
+ requirement_bindings: {
2828
+ coverage_domains: string[];
2829
+ requirement_ref: string;
2830
+ owned_scope: {
2831
+ targets: {
2832
+ source_ref: string;
2833
+ module_refs: string[];
2834
+ }[];
2835
+ } | {
2836
+ ref: string;
2837
+ };
2838
+ role: "primary" | "enricher";
2839
+ }[];
2840
+ read_scope: {
2841
+ refs: string[];
2842
+ extra_targets?: {
2843
+ source_ref: string;
2844
+ module_refs: string[];
2845
+ }[] | undefined;
2846
+ };
2847
+ profile: {
2848
+ primary: {
2849
+ id: string;
2850
+ provider: string;
2851
+ variants?: Record<string, string> | undefined;
2852
+ };
2853
+ additional?: {
2854
+ id: string;
2855
+ kind: "supporting" | "extension";
2856
+ provider: string;
2857
+ variants?: Record<string, string> | undefined;
2858
+ }[] | undefined;
2859
+ composers?: {
2860
+ id: string;
2861
+ provider: string;
2862
+ }[] | undefined;
2863
+ };
2864
+ providers: {
2865
+ id: string;
2866
+ role: "primary" | "extension";
2867
+ skill: string;
2868
+ version: string;
2869
+ integrity: string;
2870
+ distribution: {
2871
+ kind: "cli-bundled";
2872
+ locator: string;
2873
+ } | {
2874
+ kind: "bundled";
2875
+ locator: string;
2876
+ } | {
2877
+ kind: "workspace";
2878
+ locator: string;
2879
+ } | {
2880
+ kind: "package";
2881
+ locator: string;
2882
+ } | {
2883
+ kind: "marketplace";
2884
+ locator: string;
2885
+ };
2886
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2887
+ }[];
2888
+ customization?: {
2889
+ mode: "replace" | "extend";
2890
+ } | undefined;
2891
+ }>, "many">;
2892
+ }, "strict", z.ZodTypeAny, {
2893
+ protocol: "context.indexer.registry/v1";
2894
+ requirements: {
2895
+ id: string;
2896
+ reader_goals: string[];
2897
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2898
+ target_scope: {
2899
+ targets: {
2900
+ source_ref: string;
2901
+ module_refs: string[];
2902
+ }[];
2903
+ };
2904
+ evidence_source_scope: {
2905
+ targets: {
2906
+ source_ref: string;
2907
+ module_refs: string[];
2908
+ }[];
2909
+ };
2910
+ questions?: {
2911
+ ref: string;
2912
+ authority: {
2913
+ kind: "cli-base-contract" | "verified-contract-overlay";
2914
+ ref: string;
2915
+ digest: string;
2916
+ };
2917
+ contract_version: number;
2918
+ contract_digest: string;
2919
+ }[] | undefined;
2920
+ exclusions?: {
2921
+ id: string;
2922
+ scope: {
2923
+ targets: {
2924
+ source_ref: string;
2925
+ module_refs: string[];
2926
+ }[];
2927
+ };
2928
+ reason: string;
2929
+ }[] | undefined;
2930
+ }[];
2931
+ indexers: {
2932
+ id: string;
2933
+ operations: ("main-index" | "material-answer")[];
2934
+ requirement_bindings: {
2935
+ coverage_domains: string[];
2936
+ requirement_ref: string;
2937
+ owned_scope: {
2938
+ targets: {
2939
+ source_ref: string;
2940
+ module_refs: string[];
2941
+ }[];
2942
+ } | {
2943
+ ref: string;
2944
+ };
2945
+ role: "primary" | "enricher";
2946
+ }[];
2947
+ read_scope: {
2948
+ refs: string[];
2949
+ extra_targets?: {
2950
+ source_ref: string;
2951
+ module_refs: string[];
2952
+ }[] | undefined;
2953
+ };
2954
+ profile: {
2955
+ primary: {
2956
+ id: string;
2957
+ provider: string;
2958
+ variants?: Record<string, string> | undefined;
2959
+ };
2960
+ additional?: {
2961
+ id: string;
2962
+ kind: "supporting" | "extension";
2963
+ provider: string;
2964
+ variants?: Record<string, string> | undefined;
2965
+ }[] | undefined;
2966
+ composers?: {
2967
+ id: string;
2968
+ provider: string;
2969
+ }[] | undefined;
2970
+ };
2971
+ providers: {
2972
+ id: string;
2973
+ role: "primary" | "extension";
2974
+ skill: string;
2975
+ version: string;
2976
+ integrity: string;
2977
+ distribution: {
2978
+ kind: "cli-bundled";
2979
+ locator: string;
2980
+ } | {
2981
+ kind: "bundled";
2982
+ locator: string;
2983
+ } | {
2984
+ kind: "workspace";
2985
+ locator: string;
2986
+ } | {
2987
+ kind: "package";
2988
+ locator: string;
2989
+ } | {
2990
+ kind: "marketplace";
2991
+ locator: string;
2992
+ };
2993
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2994
+ }[];
2995
+ customization?: {
2996
+ mode: "replace" | "extend";
2997
+ } | undefined;
2998
+ }[];
2999
+ }, {
3000
+ protocol: "context.indexer.registry/v1";
3001
+ requirements: {
3002
+ id: string;
3003
+ reader_goals: string[];
3004
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3005
+ target_scope: {
3006
+ targets: {
3007
+ source_ref: string;
3008
+ module_refs: string[];
3009
+ }[];
3010
+ };
3011
+ evidence_source_scope: {
3012
+ targets: {
3013
+ source_ref: string;
3014
+ module_refs: string[];
3015
+ }[];
3016
+ };
3017
+ questions?: {
3018
+ ref: string;
3019
+ authority: {
3020
+ kind: "cli-base-contract" | "verified-contract-overlay";
3021
+ ref: string;
3022
+ digest: string;
3023
+ };
3024
+ contract_version: number;
3025
+ contract_digest: string;
3026
+ }[] | undefined;
3027
+ exclusions?: {
3028
+ id: string;
3029
+ scope: {
3030
+ targets: {
3031
+ source_ref: string;
3032
+ module_refs: string[];
3033
+ }[];
3034
+ };
3035
+ reason: string;
3036
+ }[] | undefined;
3037
+ }[];
3038
+ indexers: {
3039
+ id: string;
3040
+ operations: ("main-index" | "material-answer")[];
3041
+ requirement_bindings: {
3042
+ coverage_domains: string[];
3043
+ requirement_ref: string;
3044
+ owned_scope: {
3045
+ targets: {
3046
+ source_ref: string;
3047
+ module_refs: string[];
3048
+ }[];
3049
+ } | {
3050
+ ref: string;
3051
+ };
3052
+ role: "primary" | "enricher";
3053
+ }[];
3054
+ read_scope: {
3055
+ refs: string[];
3056
+ extra_targets?: {
3057
+ source_ref: string;
3058
+ module_refs: string[];
3059
+ }[] | undefined;
3060
+ };
3061
+ profile: {
3062
+ primary: {
3063
+ id: string;
3064
+ provider: string;
3065
+ variants?: Record<string, string> | undefined;
3066
+ };
3067
+ additional?: {
3068
+ id: string;
3069
+ kind: "supporting" | "extension";
3070
+ provider: string;
3071
+ variants?: Record<string, string> | undefined;
3072
+ }[] | undefined;
3073
+ composers?: {
3074
+ id: string;
3075
+ provider: string;
3076
+ }[] | undefined;
3077
+ };
3078
+ providers: {
3079
+ id: string;
3080
+ role: "primary" | "extension";
3081
+ skill: string;
3082
+ version: string;
3083
+ integrity: string;
3084
+ distribution: {
3085
+ kind: "cli-bundled";
3086
+ locator: string;
3087
+ } | {
3088
+ kind: "bundled";
3089
+ locator: string;
3090
+ } | {
3091
+ kind: "workspace";
3092
+ locator: string;
3093
+ } | {
3094
+ kind: "package";
3095
+ locator: string;
3096
+ } | {
3097
+ kind: "marketplace";
3098
+ locator: string;
3099
+ };
3100
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3101
+ }[];
3102
+ customization?: {
3103
+ mode: "replace" | "extend";
3104
+ } | undefined;
3105
+ }[];
3106
+ }>, {
3107
+ protocol: "context.indexer.registry/v1";
3108
+ requirements: {
3109
+ id: string;
3110
+ reader_goals: string[];
3111
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3112
+ target_scope: {
3113
+ targets: {
3114
+ source_ref: string;
3115
+ module_refs: string[];
3116
+ }[];
3117
+ };
3118
+ evidence_source_scope: {
3119
+ targets: {
3120
+ source_ref: string;
3121
+ module_refs: string[];
3122
+ }[];
3123
+ };
3124
+ questions?: {
3125
+ ref: string;
3126
+ authority: {
3127
+ kind: "cli-base-contract" | "verified-contract-overlay";
3128
+ ref: string;
3129
+ digest: string;
3130
+ };
3131
+ contract_version: number;
3132
+ contract_digest: string;
3133
+ }[] | undefined;
3134
+ exclusions?: {
3135
+ id: string;
3136
+ scope: {
3137
+ targets: {
3138
+ source_ref: string;
3139
+ module_refs: string[];
3140
+ }[];
3141
+ };
3142
+ reason: string;
3143
+ }[] | undefined;
3144
+ }[];
3145
+ indexers: {
3146
+ id: string;
3147
+ operations: ("main-index" | "material-answer")[];
3148
+ requirement_bindings: {
3149
+ coverage_domains: string[];
3150
+ requirement_ref: string;
3151
+ owned_scope: {
3152
+ targets: {
3153
+ source_ref: string;
3154
+ module_refs: string[];
3155
+ }[];
3156
+ } | {
3157
+ ref: string;
3158
+ };
3159
+ role: "primary" | "enricher";
3160
+ }[];
3161
+ read_scope: {
3162
+ refs: string[];
3163
+ extra_targets?: {
3164
+ source_ref: string;
3165
+ module_refs: string[];
3166
+ }[] | undefined;
3167
+ };
3168
+ profile: {
3169
+ primary: {
3170
+ id: string;
3171
+ provider: string;
3172
+ variants?: Record<string, string> | undefined;
3173
+ };
3174
+ additional?: {
3175
+ id: string;
3176
+ kind: "supporting" | "extension";
3177
+ provider: string;
3178
+ variants?: Record<string, string> | undefined;
3179
+ }[] | undefined;
3180
+ composers?: {
3181
+ id: string;
3182
+ provider: string;
3183
+ }[] | undefined;
3184
+ };
3185
+ providers: {
3186
+ id: string;
3187
+ role: "primary" | "extension";
3188
+ skill: string;
3189
+ version: string;
3190
+ integrity: string;
3191
+ distribution: {
3192
+ kind: "cli-bundled";
3193
+ locator: string;
3194
+ } | {
3195
+ kind: "bundled";
3196
+ locator: string;
3197
+ } | {
3198
+ kind: "workspace";
3199
+ locator: string;
3200
+ } | {
3201
+ kind: "package";
3202
+ locator: string;
3203
+ } | {
3204
+ kind: "marketplace";
3205
+ locator: string;
3206
+ };
3207
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3208
+ }[];
3209
+ customization?: {
3210
+ mode: "replace" | "extend";
3211
+ } | undefined;
3212
+ }[];
3213
+ }, {
3214
+ protocol: "context.indexer.registry/v1";
3215
+ requirements: {
3216
+ id: string;
3217
+ reader_goals: string[];
3218
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3219
+ target_scope: {
3220
+ targets: {
3221
+ source_ref: string;
3222
+ module_refs: string[];
3223
+ }[];
3224
+ };
3225
+ evidence_source_scope: {
3226
+ targets: {
3227
+ source_ref: string;
3228
+ module_refs: string[];
3229
+ }[];
3230
+ };
3231
+ questions?: {
3232
+ ref: string;
3233
+ authority: {
3234
+ kind: "cli-base-contract" | "verified-contract-overlay";
3235
+ ref: string;
3236
+ digest: string;
3237
+ };
3238
+ contract_version: number;
3239
+ contract_digest: string;
3240
+ }[] | undefined;
3241
+ exclusions?: {
3242
+ id: string;
3243
+ scope: {
3244
+ targets: {
3245
+ source_ref: string;
3246
+ module_refs: string[];
3247
+ }[];
3248
+ };
3249
+ reason: string;
3250
+ }[] | undefined;
3251
+ }[];
3252
+ indexers: {
3253
+ id: string;
3254
+ operations: ("main-index" | "material-answer")[];
3255
+ requirement_bindings: {
3256
+ coverage_domains: string[];
3257
+ requirement_ref: string;
3258
+ owned_scope: {
3259
+ targets: {
3260
+ source_ref: string;
3261
+ module_refs: string[];
3262
+ }[];
3263
+ } | {
3264
+ ref: string;
3265
+ };
3266
+ role: "primary" | "enricher";
3267
+ }[];
3268
+ read_scope: {
3269
+ refs: string[];
3270
+ extra_targets?: {
3271
+ source_ref: string;
3272
+ module_refs: string[];
3273
+ }[] | undefined;
3274
+ };
3275
+ profile: {
3276
+ primary: {
3277
+ id: string;
3278
+ provider: string;
3279
+ variants?: Record<string, string> | undefined;
3280
+ };
3281
+ additional?: {
3282
+ id: string;
3283
+ kind: "supporting" | "extension";
3284
+ provider: string;
3285
+ variants?: Record<string, string> | undefined;
3286
+ }[] | undefined;
3287
+ composers?: {
3288
+ id: string;
3289
+ provider: string;
3290
+ }[] | undefined;
3291
+ };
3292
+ providers: {
3293
+ id: string;
3294
+ role: "primary" | "extension";
3295
+ skill: string;
3296
+ version: string;
3297
+ integrity: string;
3298
+ distribution: {
3299
+ kind: "cli-bundled";
3300
+ locator: string;
3301
+ } | {
3302
+ kind: "bundled";
3303
+ locator: string;
3304
+ } | {
3305
+ kind: "workspace";
3306
+ locator: string;
3307
+ } | {
3308
+ kind: "package";
3309
+ locator: string;
3310
+ } | {
3311
+ kind: "marketplace";
3312
+ locator: string;
3313
+ };
3314
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3315
+ }[];
3316
+ customization?: {
3317
+ mode: "replace" | "extend";
3318
+ } | undefined;
3319
+ }[];
3320
+ }>;
3321
+ }, "strict", z.ZodTypeAny, {
3322
+ protocol: "context.indexer.selection-proposal-input/v1";
3323
+ registry: {
3324
+ protocol: "context.indexer.registry/v1";
3325
+ requirements: {
3326
+ id: string;
3327
+ reader_goals: string[];
3328
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3329
+ target_scope: {
3330
+ targets: {
3331
+ source_ref: string;
3332
+ module_refs: string[];
3333
+ }[];
3334
+ };
3335
+ evidence_source_scope: {
3336
+ targets: {
3337
+ source_ref: string;
3338
+ module_refs: string[];
3339
+ }[];
3340
+ };
3341
+ questions?: {
3342
+ ref: string;
3343
+ authority: {
3344
+ kind: "cli-base-contract" | "verified-contract-overlay";
3345
+ ref: string;
3346
+ digest: string;
3347
+ };
3348
+ contract_version: number;
3349
+ contract_digest: string;
3350
+ }[] | undefined;
3351
+ exclusions?: {
3352
+ id: string;
3353
+ scope: {
3354
+ targets: {
3355
+ source_ref: string;
3356
+ module_refs: string[];
3357
+ }[];
3358
+ };
3359
+ reason: string;
3360
+ }[] | undefined;
3361
+ }[];
3362
+ indexers: {
3363
+ id: string;
3364
+ operations: ("main-index" | "material-answer")[];
3365
+ requirement_bindings: {
3366
+ coverage_domains: string[];
3367
+ requirement_ref: string;
3368
+ owned_scope: {
3369
+ targets: {
3370
+ source_ref: string;
3371
+ module_refs: string[];
3372
+ }[];
3373
+ } | {
3374
+ ref: string;
3375
+ };
3376
+ role: "primary" | "enricher";
3377
+ }[];
3378
+ read_scope: {
3379
+ refs: string[];
3380
+ extra_targets?: {
3381
+ source_ref: string;
3382
+ module_refs: string[];
3383
+ }[] | undefined;
3384
+ };
3385
+ profile: {
3386
+ primary: {
3387
+ id: string;
3388
+ provider: string;
3389
+ variants?: Record<string, string> | undefined;
3390
+ };
3391
+ additional?: {
3392
+ id: string;
3393
+ kind: "supporting" | "extension";
3394
+ provider: string;
3395
+ variants?: Record<string, string> | undefined;
3396
+ }[] | undefined;
3397
+ composers?: {
3398
+ id: string;
3399
+ provider: string;
3400
+ }[] | undefined;
3401
+ };
3402
+ providers: {
3403
+ id: string;
3404
+ role: "primary" | "extension";
3405
+ skill: string;
3406
+ version: string;
3407
+ integrity: string;
3408
+ distribution: {
3409
+ kind: "cli-bundled";
3410
+ locator: string;
3411
+ } | {
3412
+ kind: "bundled";
3413
+ locator: string;
3414
+ } | {
3415
+ kind: "workspace";
3416
+ locator: string;
3417
+ } | {
3418
+ kind: "package";
3419
+ locator: string;
3420
+ } | {
3421
+ kind: "marketplace";
3422
+ locator: string;
3423
+ };
3424
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3425
+ }[];
3426
+ customization?: {
3427
+ mode: "replace" | "extend";
3428
+ } | undefined;
3429
+ }[];
3430
+ };
3431
+ project_ref: string;
3432
+ }, {
3433
+ protocol: "context.indexer.selection-proposal-input/v1";
3434
+ registry: {
3435
+ protocol: "context.indexer.registry/v1";
3436
+ requirements: {
3437
+ id: string;
3438
+ reader_goals: string[];
3439
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3440
+ target_scope: {
3441
+ targets: {
3442
+ source_ref: string;
3443
+ module_refs: string[];
3444
+ }[];
3445
+ };
3446
+ evidence_source_scope: {
3447
+ targets: {
3448
+ source_ref: string;
3449
+ module_refs: string[];
3450
+ }[];
3451
+ };
3452
+ questions?: {
3453
+ ref: string;
3454
+ authority: {
3455
+ kind: "cli-base-contract" | "verified-contract-overlay";
3456
+ ref: string;
3457
+ digest: string;
3458
+ };
3459
+ contract_version: number;
3460
+ contract_digest: string;
3461
+ }[] | undefined;
3462
+ exclusions?: {
3463
+ id: string;
3464
+ scope: {
3465
+ targets: {
3466
+ source_ref: string;
3467
+ module_refs: string[];
3468
+ }[];
3469
+ };
3470
+ reason: string;
3471
+ }[] | undefined;
3472
+ }[];
3473
+ indexers: {
3474
+ id: string;
3475
+ operations: ("main-index" | "material-answer")[];
3476
+ requirement_bindings: {
3477
+ coverage_domains: string[];
3478
+ requirement_ref: string;
3479
+ owned_scope: {
3480
+ targets: {
3481
+ source_ref: string;
3482
+ module_refs: string[];
3483
+ }[];
3484
+ } | {
3485
+ ref: string;
3486
+ };
3487
+ role: "primary" | "enricher";
3488
+ }[];
3489
+ read_scope: {
3490
+ refs: string[];
3491
+ extra_targets?: {
3492
+ source_ref: string;
3493
+ module_refs: string[];
3494
+ }[] | undefined;
3495
+ };
3496
+ profile: {
3497
+ primary: {
3498
+ id: string;
3499
+ provider: string;
3500
+ variants?: Record<string, string> | undefined;
3501
+ };
3502
+ additional?: {
3503
+ id: string;
3504
+ kind: "supporting" | "extension";
3505
+ provider: string;
3506
+ variants?: Record<string, string> | undefined;
3507
+ }[] | undefined;
3508
+ composers?: {
3509
+ id: string;
3510
+ provider: string;
3511
+ }[] | undefined;
3512
+ };
3513
+ providers: {
3514
+ id: string;
3515
+ role: "primary" | "extension";
3516
+ skill: string;
3517
+ version: string;
3518
+ integrity: string;
3519
+ distribution: {
3520
+ kind: "cli-bundled";
3521
+ locator: string;
3522
+ } | {
3523
+ kind: "bundled";
3524
+ locator: string;
3525
+ } | {
3526
+ kind: "workspace";
3527
+ locator: string;
3528
+ } | {
3529
+ kind: "package";
3530
+ locator: string;
3531
+ } | {
3532
+ kind: "marketplace";
3533
+ locator: string;
3534
+ };
3535
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3536
+ }[];
3537
+ customization?: {
3538
+ mode: "replace" | "extend";
3539
+ } | undefined;
3540
+ }[];
3541
+ };
3542
+ project_ref: string;
3543
+ }>>;
3544
+ } & {
3545
+ report_digest: z.ZodString;
3546
+ }, "strict", z.ZodTypeAny, {
3547
+ protocol: "context.indexer.provider-route-report/v1";
3548
+ route: {
3549
+ outcome: "selection-validation-required";
3550
+ graph_outcome: "completed";
3551
+ next_action: "validate-indexer-selection-proposal";
3552
+ } | {
3553
+ outcome: "community-fallback-required";
3554
+ graph_outcome: "partial";
3555
+ next_action: "configure-community-indexer-fallback";
3556
+ } | {
3557
+ outcome: "indexer-provider-conflict";
3558
+ graph_outcome: "waiting-user";
3559
+ next_action: "configure-indexer-providers";
3560
+ } | {
3561
+ outcome: "indexer-customization-required";
3562
+ graph_outcome: "blocked";
3563
+ next_action: "propose-indexer-customization";
3564
+ };
3565
+ input_digest: string;
3566
+ project_ref: string;
3567
+ report_digest: string;
3568
+ requirement_set_digest: string;
3569
+ registry_digest: string;
3570
+ community_fallback_attempted: boolean;
3571
+ visible_skill_set_digest: string;
3572
+ selected_skill_ids: string[];
3573
+ composition_mode: "none" | "single-skill" | "multi-skill";
3574
+ unowned_required_owner_cells: string[];
3575
+ conflicting_owner_cells: {
3576
+ owner_cell_ref: string;
3577
+ indexer_ids: string[];
3578
+ skill_ids: string[];
3579
+ }[];
3580
+ read_scope_overlaps: {
3581
+ left_indexer_id: string;
3582
+ right_indexer_id: string;
3583
+ scope_refs: string[];
3584
+ }[];
3585
+ capability_gaps: {
3586
+ requirement_ref: string | null;
3587
+ capability: string;
3588
+ coverage_domain: string | null;
3589
+ owner_cell_ref: string | null;
3590
+ }[];
3591
+ capability_gap_proof: {
3592
+ protocol: "context.indexer.capability-gap-proof/v1";
3593
+ project_ref: string;
3594
+ requirement_set_digest: string;
3595
+ registry_digest: string;
3596
+ community_fallback_attempted: true;
3597
+ route_input_digest: string;
3598
+ visible_skill_set_digest: string;
3599
+ gaps: {
3600
+ requirement_ref: string | null;
3601
+ capability: string;
3602
+ coverage_domain: string | null;
3603
+ owner_cell_ref: string | null;
3604
+ }[];
3605
+ gap_digest: string;
3606
+ } | null;
3607
+ selection_proposal_input: {
3608
+ protocol: "context.indexer.selection-proposal-input/v1";
3609
+ registry: {
3610
+ protocol: "context.indexer.registry/v1";
3611
+ requirements: {
3612
+ id: string;
3613
+ reader_goals: string[];
3614
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3615
+ target_scope: {
3616
+ targets: {
3617
+ source_ref: string;
3618
+ module_refs: string[];
3619
+ }[];
3620
+ };
3621
+ evidence_source_scope: {
3622
+ targets: {
3623
+ source_ref: string;
3624
+ module_refs: string[];
3625
+ }[];
3626
+ };
3627
+ questions?: {
3628
+ ref: string;
3629
+ authority: {
3630
+ kind: "cli-base-contract" | "verified-contract-overlay";
3631
+ ref: string;
3632
+ digest: string;
3633
+ };
3634
+ contract_version: number;
3635
+ contract_digest: string;
3636
+ }[] | undefined;
3637
+ exclusions?: {
3638
+ id: string;
3639
+ scope: {
3640
+ targets: {
3641
+ source_ref: string;
3642
+ module_refs: string[];
3643
+ }[];
3644
+ };
3645
+ reason: string;
3646
+ }[] | undefined;
3647
+ }[];
3648
+ indexers: {
3649
+ id: string;
3650
+ operations: ("main-index" | "material-answer")[];
3651
+ requirement_bindings: {
3652
+ coverage_domains: string[];
3653
+ requirement_ref: string;
3654
+ owned_scope: {
3655
+ targets: {
3656
+ source_ref: string;
3657
+ module_refs: string[];
3658
+ }[];
3659
+ } | {
3660
+ ref: string;
3661
+ };
3662
+ role: "primary" | "enricher";
3663
+ }[];
3664
+ read_scope: {
3665
+ refs: string[];
3666
+ extra_targets?: {
3667
+ source_ref: string;
3668
+ module_refs: string[];
3669
+ }[] | undefined;
3670
+ };
3671
+ profile: {
3672
+ primary: {
3673
+ id: string;
3674
+ provider: string;
3675
+ variants?: Record<string, string> | undefined;
3676
+ };
3677
+ additional?: {
3678
+ id: string;
3679
+ kind: "supporting" | "extension";
3680
+ provider: string;
3681
+ variants?: Record<string, string> | undefined;
3682
+ }[] | undefined;
3683
+ composers?: {
3684
+ id: string;
3685
+ provider: string;
3686
+ }[] | undefined;
3687
+ };
3688
+ providers: {
3689
+ id: string;
3690
+ role: "primary" | "extension";
3691
+ skill: string;
3692
+ version: string;
3693
+ integrity: string;
3694
+ distribution: {
3695
+ kind: "cli-bundled";
3696
+ locator: string;
3697
+ } | {
3698
+ kind: "bundled";
3699
+ locator: string;
3700
+ } | {
3701
+ kind: "workspace";
3702
+ locator: string;
3703
+ } | {
3704
+ kind: "package";
3705
+ locator: string;
3706
+ } | {
3707
+ kind: "marketplace";
3708
+ locator: string;
3709
+ };
3710
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3711
+ }[];
3712
+ customization?: {
3713
+ mode: "replace" | "extend";
3714
+ } | undefined;
3715
+ }[];
3716
+ };
3717
+ project_ref: string;
3718
+ } | null;
3719
+ }, {
3720
+ protocol: "context.indexer.provider-route-report/v1";
3721
+ route: {
3722
+ outcome: "selection-validation-required";
3723
+ graph_outcome: "completed";
3724
+ next_action: "validate-indexer-selection-proposal";
3725
+ } | {
3726
+ outcome: "community-fallback-required";
3727
+ graph_outcome: "partial";
3728
+ next_action: "configure-community-indexer-fallback";
3729
+ } | {
3730
+ outcome: "indexer-provider-conflict";
3731
+ graph_outcome: "waiting-user";
3732
+ next_action: "configure-indexer-providers";
3733
+ } | {
3734
+ outcome: "indexer-customization-required";
3735
+ graph_outcome: "blocked";
3736
+ next_action: "propose-indexer-customization";
3737
+ };
3738
+ input_digest: string;
3739
+ project_ref: string;
3740
+ report_digest: string;
3741
+ requirement_set_digest: string;
3742
+ registry_digest: string;
3743
+ community_fallback_attempted: boolean;
3744
+ visible_skill_set_digest: string;
3745
+ selected_skill_ids: string[];
3746
+ composition_mode: "none" | "single-skill" | "multi-skill";
3747
+ unowned_required_owner_cells: string[];
3748
+ conflicting_owner_cells: {
3749
+ owner_cell_ref: string;
3750
+ indexer_ids: string[];
3751
+ skill_ids: string[];
3752
+ }[];
3753
+ read_scope_overlaps: {
3754
+ left_indexer_id: string;
3755
+ right_indexer_id: string;
3756
+ scope_refs: string[];
3757
+ }[];
3758
+ capability_gaps: {
3759
+ requirement_ref: string | null;
3760
+ capability: string;
3761
+ coverage_domain: string | null;
3762
+ owner_cell_ref: string | null;
3763
+ }[];
3764
+ capability_gap_proof: {
3765
+ protocol: "context.indexer.capability-gap-proof/v1";
3766
+ project_ref: string;
3767
+ requirement_set_digest: string;
3768
+ registry_digest: string;
3769
+ community_fallback_attempted: true;
3770
+ route_input_digest: string;
3771
+ visible_skill_set_digest: string;
3772
+ gaps: {
3773
+ requirement_ref: string | null;
3774
+ capability: string;
3775
+ coverage_domain: string | null;
3776
+ owner_cell_ref: string | null;
3777
+ }[];
3778
+ gap_digest: string;
3779
+ } | null;
3780
+ selection_proposal_input: {
3781
+ protocol: "context.indexer.selection-proposal-input/v1";
3782
+ registry: {
3783
+ protocol: "context.indexer.registry/v1";
3784
+ requirements: {
3785
+ id: string;
3786
+ reader_goals: string[];
3787
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3788
+ target_scope: {
3789
+ targets: {
3790
+ source_ref: string;
3791
+ module_refs: string[];
3792
+ }[];
3793
+ };
3794
+ evidence_source_scope: {
3795
+ targets: {
3796
+ source_ref: string;
3797
+ module_refs: string[];
3798
+ }[];
3799
+ };
3800
+ questions?: {
3801
+ ref: string;
3802
+ authority: {
3803
+ kind: "cli-base-contract" | "verified-contract-overlay";
3804
+ ref: string;
3805
+ digest: string;
3806
+ };
3807
+ contract_version: number;
3808
+ contract_digest: string;
3809
+ }[] | undefined;
3810
+ exclusions?: {
3811
+ id: string;
3812
+ scope: {
3813
+ targets: {
3814
+ source_ref: string;
3815
+ module_refs: string[];
3816
+ }[];
3817
+ };
3818
+ reason: string;
3819
+ }[] | undefined;
3820
+ }[];
3821
+ indexers: {
3822
+ id: string;
3823
+ operations: ("main-index" | "material-answer")[];
3824
+ requirement_bindings: {
3825
+ coverage_domains: string[];
3826
+ requirement_ref: string;
3827
+ owned_scope: {
3828
+ targets: {
3829
+ source_ref: string;
3830
+ module_refs: string[];
3831
+ }[];
3832
+ } | {
3833
+ ref: string;
3834
+ };
3835
+ role: "primary" | "enricher";
3836
+ }[];
3837
+ read_scope: {
3838
+ refs: string[];
3839
+ extra_targets?: {
3840
+ source_ref: string;
3841
+ module_refs: string[];
3842
+ }[] | undefined;
3843
+ };
3844
+ profile: {
3845
+ primary: {
3846
+ id: string;
3847
+ provider: string;
3848
+ variants?: Record<string, string> | undefined;
3849
+ };
3850
+ additional?: {
3851
+ id: string;
3852
+ kind: "supporting" | "extension";
3853
+ provider: string;
3854
+ variants?: Record<string, string> | undefined;
3855
+ }[] | undefined;
3856
+ composers?: {
3857
+ id: string;
3858
+ provider: string;
3859
+ }[] | undefined;
3860
+ };
3861
+ providers: {
3862
+ id: string;
3863
+ role: "primary" | "extension";
3864
+ skill: string;
3865
+ version: string;
3866
+ integrity: string;
3867
+ distribution: {
3868
+ kind: "cli-bundled";
3869
+ locator: string;
3870
+ } | {
3871
+ kind: "bundled";
3872
+ locator: string;
3873
+ } | {
3874
+ kind: "workspace";
3875
+ locator: string;
3876
+ } | {
3877
+ kind: "package";
3878
+ locator: string;
3879
+ } | {
3880
+ kind: "marketplace";
3881
+ locator: string;
3882
+ };
3883
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3884
+ }[];
3885
+ customization?: {
3886
+ mode: "replace" | "extend";
3887
+ } | undefined;
3888
+ }[];
3889
+ };
3890
+ project_ref: string;
3891
+ } | null;
3892
+ }>;
3893
+ export type IndexerProviderRouteReport = z.infer<typeof indexerProviderRouteReportSchema>;
3894
+ export declare function buildIndexerProviderRouteInput(input: {
3895
+ project_ref: string;
3896
+ registry: unknown;
3897
+ visible_skills: unknown[];
3898
+ community_fallback_attempted: boolean;
3899
+ }): IndexerProviderRouteInput;
3900
+ export declare function validateIndexerProviderRouteInput(value: unknown): IndexerProviderRouteInput;
3901
+ export declare function buildIndexerProviderRouteReport(value: unknown): IndexerProviderRouteReport;
3902
+ export declare function validateIndexerProviderRouteReport(input: {
3903
+ route_input: unknown;
3904
+ report: unknown;
3905
+ }): IndexerProviderRouteReport;
3906
+ export declare function validateIndexerCapabilityGapProof(input: {
3907
+ route_input: unknown;
3908
+ report: unknown;
3909
+ }): IndexerCapabilityGapProof;