@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,3311 @@
1
+ import { z } from "zod";
2
+ export declare const indexerProviderSelectionProposalInputSchema: z.ZodObject<{
3
+ protocol: z.ZodLiteral<"context.indexer.selection-proposal-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
+ }, "strict", z.ZodTypeAny, {
1427
+ protocol: "context.indexer.selection-proposal-input/v1";
1428
+ registry: {
1429
+ protocol: "context.indexer.registry/v1";
1430
+ requirements: {
1431
+ id: string;
1432
+ reader_goals: string[];
1433
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1434
+ target_scope: {
1435
+ targets: {
1436
+ source_ref: string;
1437
+ module_refs: string[];
1438
+ }[];
1439
+ };
1440
+ evidence_source_scope: {
1441
+ targets: {
1442
+ source_ref: string;
1443
+ module_refs: string[];
1444
+ }[];
1445
+ };
1446
+ questions?: {
1447
+ ref: string;
1448
+ authority: {
1449
+ kind: "cli-base-contract" | "verified-contract-overlay";
1450
+ ref: string;
1451
+ digest: string;
1452
+ };
1453
+ contract_version: number;
1454
+ contract_digest: string;
1455
+ }[] | undefined;
1456
+ exclusions?: {
1457
+ id: string;
1458
+ scope: {
1459
+ targets: {
1460
+ source_ref: string;
1461
+ module_refs: string[];
1462
+ }[];
1463
+ };
1464
+ reason: string;
1465
+ }[] | undefined;
1466
+ }[];
1467
+ indexers: {
1468
+ id: string;
1469
+ operations: ("main-index" | "material-answer")[];
1470
+ requirement_bindings: {
1471
+ coverage_domains: string[];
1472
+ requirement_ref: string;
1473
+ owned_scope: {
1474
+ targets: {
1475
+ source_ref: string;
1476
+ module_refs: string[];
1477
+ }[];
1478
+ } | {
1479
+ ref: string;
1480
+ };
1481
+ role: "primary" | "enricher";
1482
+ }[];
1483
+ read_scope: {
1484
+ refs: string[];
1485
+ extra_targets?: {
1486
+ source_ref: string;
1487
+ module_refs: string[];
1488
+ }[] | undefined;
1489
+ };
1490
+ profile: {
1491
+ primary: {
1492
+ id: string;
1493
+ provider: string;
1494
+ variants?: Record<string, string> | undefined;
1495
+ };
1496
+ additional?: {
1497
+ id: string;
1498
+ kind: "supporting" | "extension";
1499
+ provider: string;
1500
+ variants?: Record<string, string> | undefined;
1501
+ }[] | undefined;
1502
+ composers?: {
1503
+ id: string;
1504
+ provider: string;
1505
+ }[] | undefined;
1506
+ };
1507
+ providers: {
1508
+ id: string;
1509
+ role: "primary" | "extension";
1510
+ skill: string;
1511
+ version: string;
1512
+ integrity: string;
1513
+ distribution: {
1514
+ kind: "cli-bundled";
1515
+ locator: string;
1516
+ } | {
1517
+ kind: "bundled";
1518
+ locator: string;
1519
+ } | {
1520
+ kind: "workspace";
1521
+ locator: string;
1522
+ } | {
1523
+ kind: "package";
1524
+ locator: string;
1525
+ } | {
1526
+ kind: "marketplace";
1527
+ locator: string;
1528
+ };
1529
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1530
+ }[];
1531
+ customization?: {
1532
+ mode: "replace" | "extend";
1533
+ } | undefined;
1534
+ }[];
1535
+ };
1536
+ project_ref: string;
1537
+ }, {
1538
+ protocol: "context.indexer.selection-proposal-input/v1";
1539
+ registry: {
1540
+ protocol: "context.indexer.registry/v1";
1541
+ requirements: {
1542
+ id: string;
1543
+ reader_goals: string[];
1544
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1545
+ target_scope: {
1546
+ targets: {
1547
+ source_ref: string;
1548
+ module_refs: string[];
1549
+ }[];
1550
+ };
1551
+ evidence_source_scope: {
1552
+ targets: {
1553
+ source_ref: string;
1554
+ module_refs: string[];
1555
+ }[];
1556
+ };
1557
+ questions?: {
1558
+ ref: string;
1559
+ authority: {
1560
+ kind: "cli-base-contract" | "verified-contract-overlay";
1561
+ ref: string;
1562
+ digest: string;
1563
+ };
1564
+ contract_version: number;
1565
+ contract_digest: string;
1566
+ }[] | undefined;
1567
+ exclusions?: {
1568
+ id: string;
1569
+ scope: {
1570
+ targets: {
1571
+ source_ref: string;
1572
+ module_refs: string[];
1573
+ }[];
1574
+ };
1575
+ reason: string;
1576
+ }[] | undefined;
1577
+ }[];
1578
+ indexers: {
1579
+ id: string;
1580
+ operations: ("main-index" | "material-answer")[];
1581
+ requirement_bindings: {
1582
+ coverage_domains: string[];
1583
+ requirement_ref: string;
1584
+ owned_scope: {
1585
+ targets: {
1586
+ source_ref: string;
1587
+ module_refs: string[];
1588
+ }[];
1589
+ } | {
1590
+ ref: string;
1591
+ };
1592
+ role: "primary" | "enricher";
1593
+ }[];
1594
+ read_scope: {
1595
+ refs: string[];
1596
+ extra_targets?: {
1597
+ source_ref: string;
1598
+ module_refs: string[];
1599
+ }[] | undefined;
1600
+ };
1601
+ profile: {
1602
+ primary: {
1603
+ id: string;
1604
+ provider: string;
1605
+ variants?: Record<string, string> | undefined;
1606
+ };
1607
+ additional?: {
1608
+ id: string;
1609
+ kind: "supporting" | "extension";
1610
+ provider: string;
1611
+ variants?: Record<string, string> | undefined;
1612
+ }[] | undefined;
1613
+ composers?: {
1614
+ id: string;
1615
+ provider: string;
1616
+ }[] | undefined;
1617
+ };
1618
+ providers: {
1619
+ id: string;
1620
+ role: "primary" | "extension";
1621
+ skill: string;
1622
+ version: string;
1623
+ integrity: string;
1624
+ distribution: {
1625
+ kind: "cli-bundled";
1626
+ locator: string;
1627
+ } | {
1628
+ kind: "bundled";
1629
+ locator: string;
1630
+ } | {
1631
+ kind: "workspace";
1632
+ locator: string;
1633
+ } | {
1634
+ kind: "package";
1635
+ locator: string;
1636
+ } | {
1637
+ kind: "marketplace";
1638
+ locator: string;
1639
+ };
1640
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
1641
+ }[];
1642
+ customization?: {
1643
+ mode: "replace" | "extend";
1644
+ } | undefined;
1645
+ }[];
1646
+ };
1647
+ project_ref: string;
1648
+ }>;
1649
+ export declare const indexerProviderSelectionProposalSchema: z.ZodObject<{
1650
+ protocol: z.ZodLiteral<"context.indexer.selection-proposal/v1">;
1651
+ project_ref: z.ZodString;
1652
+ requirement_set_digest: z.ZodString;
1653
+ indexer_selection_digest: z.ZodString;
1654
+ registry_digest: z.ZodString;
1655
+ registry: z.ZodEffects<z.ZodObject<{
1656
+ protocol: z.ZodLiteral<"context.indexer.registry/v1">;
1657
+ requirements: z.ZodArray<z.ZodEffects<z.ZodObject<{
1658
+ id: z.ZodEffects<z.ZodString, string, string>;
1659
+ reader_goals: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1660
+ coverage_domains: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEnum<["required", "optional", "out-of-scope"]>>;
1661
+ questions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1662
+ ref: z.ZodString;
1663
+ authority: z.ZodObject<{
1664
+ kind: z.ZodEnum<["cli-base-contract", "verified-contract-overlay"]>;
1665
+ ref: z.ZodString;
1666
+ digest: z.ZodString;
1667
+ }, "strict", z.ZodTypeAny, {
1668
+ kind: "cli-base-contract" | "verified-contract-overlay";
1669
+ ref: string;
1670
+ digest: string;
1671
+ }, {
1672
+ kind: "cli-base-contract" | "verified-contract-overlay";
1673
+ ref: string;
1674
+ digest: string;
1675
+ }>;
1676
+ contract_version: z.ZodNumber;
1677
+ contract_digest: z.ZodString;
1678
+ }, "strict", z.ZodTypeAny, {
1679
+ ref: string;
1680
+ authority: {
1681
+ kind: "cli-base-contract" | "verified-contract-overlay";
1682
+ ref: string;
1683
+ digest: string;
1684
+ };
1685
+ contract_version: number;
1686
+ contract_digest: string;
1687
+ }, {
1688
+ ref: string;
1689
+ authority: {
1690
+ kind: "cli-base-contract" | "verified-contract-overlay";
1691
+ ref: string;
1692
+ digest: string;
1693
+ };
1694
+ contract_version: number;
1695
+ contract_digest: string;
1696
+ }>, "many">>;
1697
+ target_scope: z.ZodEffects<z.ZodObject<{
1698
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1699
+ source_ref: z.ZodString;
1700
+ module_refs: z.ZodArray<z.ZodString, "many">;
1701
+ }, "strict", z.ZodTypeAny, {
1702
+ source_ref: string;
1703
+ module_refs: string[];
1704
+ }, {
1705
+ source_ref: string;
1706
+ module_refs: string[];
1707
+ }>, {
1708
+ source_ref: string;
1709
+ module_refs: string[];
1710
+ }, {
1711
+ source_ref: string;
1712
+ module_refs: string[];
1713
+ }>, "many">;
1714
+ }, "strict", z.ZodTypeAny, {
1715
+ targets: {
1716
+ source_ref: string;
1717
+ module_refs: string[];
1718
+ }[];
1719
+ }, {
1720
+ targets: {
1721
+ source_ref: string;
1722
+ module_refs: string[];
1723
+ }[];
1724
+ }>, {
1725
+ targets: {
1726
+ source_ref: string;
1727
+ module_refs: string[];
1728
+ }[];
1729
+ }, {
1730
+ targets: {
1731
+ source_ref: string;
1732
+ module_refs: string[];
1733
+ }[];
1734
+ }>;
1735
+ evidence_source_scope: z.ZodEffects<z.ZodObject<{
1736
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1737
+ source_ref: z.ZodString;
1738
+ module_refs: z.ZodArray<z.ZodString, "many">;
1739
+ }, "strict", z.ZodTypeAny, {
1740
+ source_ref: string;
1741
+ module_refs: string[];
1742
+ }, {
1743
+ source_ref: string;
1744
+ module_refs: string[];
1745
+ }>, {
1746
+ source_ref: string;
1747
+ module_refs: string[];
1748
+ }, {
1749
+ source_ref: string;
1750
+ module_refs: string[];
1751
+ }>, "many">;
1752
+ }, "strict", z.ZodTypeAny, {
1753
+ targets: {
1754
+ source_ref: string;
1755
+ module_refs: string[];
1756
+ }[];
1757
+ }, {
1758
+ targets: {
1759
+ source_ref: string;
1760
+ module_refs: string[];
1761
+ }[];
1762
+ }>, {
1763
+ targets: {
1764
+ source_ref: string;
1765
+ module_refs: string[];
1766
+ }[];
1767
+ }, {
1768
+ targets: {
1769
+ source_ref: string;
1770
+ module_refs: string[];
1771
+ }[];
1772
+ }>;
1773
+ exclusions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1774
+ id: z.ZodEffects<z.ZodString, string, string>;
1775
+ scope: z.ZodEffects<z.ZodObject<{
1776
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1777
+ source_ref: z.ZodString;
1778
+ module_refs: z.ZodArray<z.ZodString, "many">;
1779
+ }, "strict", z.ZodTypeAny, {
1780
+ source_ref: string;
1781
+ module_refs: string[];
1782
+ }, {
1783
+ source_ref: string;
1784
+ module_refs: string[];
1785
+ }>, {
1786
+ source_ref: string;
1787
+ module_refs: string[];
1788
+ }, {
1789
+ source_ref: string;
1790
+ module_refs: string[];
1791
+ }>, "many">;
1792
+ }, "strict", z.ZodTypeAny, {
1793
+ targets: {
1794
+ source_ref: string;
1795
+ module_refs: string[];
1796
+ }[];
1797
+ }, {
1798
+ targets: {
1799
+ source_ref: string;
1800
+ module_refs: string[];
1801
+ }[];
1802
+ }>, {
1803
+ targets: {
1804
+ source_ref: string;
1805
+ module_refs: string[];
1806
+ }[];
1807
+ }, {
1808
+ targets: {
1809
+ source_ref: string;
1810
+ module_refs: string[];
1811
+ }[];
1812
+ }>;
1813
+ reason: z.ZodString;
1814
+ }, "strict", z.ZodTypeAny, {
1815
+ id: string;
1816
+ scope: {
1817
+ targets: {
1818
+ source_ref: string;
1819
+ module_refs: string[];
1820
+ }[];
1821
+ };
1822
+ reason: string;
1823
+ }, {
1824
+ id: string;
1825
+ scope: {
1826
+ targets: {
1827
+ source_ref: string;
1828
+ module_refs: string[];
1829
+ }[];
1830
+ };
1831
+ reason: string;
1832
+ }>, "many">>;
1833
+ }, "strict", z.ZodTypeAny, {
1834
+ id: string;
1835
+ reader_goals: string[];
1836
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1837
+ target_scope: {
1838
+ targets: {
1839
+ source_ref: string;
1840
+ module_refs: string[];
1841
+ }[];
1842
+ };
1843
+ evidence_source_scope: {
1844
+ targets: {
1845
+ source_ref: string;
1846
+ module_refs: string[];
1847
+ }[];
1848
+ };
1849
+ questions?: {
1850
+ ref: string;
1851
+ authority: {
1852
+ kind: "cli-base-contract" | "verified-contract-overlay";
1853
+ ref: string;
1854
+ digest: string;
1855
+ };
1856
+ contract_version: number;
1857
+ contract_digest: string;
1858
+ }[] | undefined;
1859
+ exclusions?: {
1860
+ id: string;
1861
+ scope: {
1862
+ targets: {
1863
+ source_ref: string;
1864
+ module_refs: string[];
1865
+ }[];
1866
+ };
1867
+ reason: string;
1868
+ }[] | undefined;
1869
+ }, {
1870
+ id: string;
1871
+ reader_goals: string[];
1872
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1873
+ target_scope: {
1874
+ targets: {
1875
+ source_ref: string;
1876
+ module_refs: string[];
1877
+ }[];
1878
+ };
1879
+ evidence_source_scope: {
1880
+ targets: {
1881
+ source_ref: string;
1882
+ module_refs: string[];
1883
+ }[];
1884
+ };
1885
+ questions?: {
1886
+ ref: string;
1887
+ authority: {
1888
+ kind: "cli-base-contract" | "verified-contract-overlay";
1889
+ ref: string;
1890
+ digest: string;
1891
+ };
1892
+ contract_version: number;
1893
+ contract_digest: string;
1894
+ }[] | undefined;
1895
+ exclusions?: {
1896
+ id: string;
1897
+ scope: {
1898
+ targets: {
1899
+ source_ref: string;
1900
+ module_refs: string[];
1901
+ }[];
1902
+ };
1903
+ reason: string;
1904
+ }[] | undefined;
1905
+ }>, {
1906
+ id: string;
1907
+ reader_goals: string[];
1908
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1909
+ target_scope: {
1910
+ targets: {
1911
+ source_ref: string;
1912
+ module_refs: string[];
1913
+ }[];
1914
+ };
1915
+ evidence_source_scope: {
1916
+ targets: {
1917
+ source_ref: string;
1918
+ module_refs: string[];
1919
+ }[];
1920
+ };
1921
+ questions?: {
1922
+ ref: string;
1923
+ authority: {
1924
+ kind: "cli-base-contract" | "verified-contract-overlay";
1925
+ ref: string;
1926
+ digest: string;
1927
+ };
1928
+ contract_version: number;
1929
+ contract_digest: string;
1930
+ }[] | undefined;
1931
+ exclusions?: {
1932
+ id: string;
1933
+ scope: {
1934
+ targets: {
1935
+ source_ref: string;
1936
+ module_refs: string[];
1937
+ }[];
1938
+ };
1939
+ reason: string;
1940
+ }[] | undefined;
1941
+ }, {
1942
+ id: string;
1943
+ reader_goals: string[];
1944
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
1945
+ target_scope: {
1946
+ targets: {
1947
+ source_ref: string;
1948
+ module_refs: string[];
1949
+ }[];
1950
+ };
1951
+ evidence_source_scope: {
1952
+ targets: {
1953
+ source_ref: string;
1954
+ module_refs: string[];
1955
+ }[];
1956
+ };
1957
+ questions?: {
1958
+ ref: string;
1959
+ authority: {
1960
+ kind: "cli-base-contract" | "verified-contract-overlay";
1961
+ ref: string;
1962
+ digest: string;
1963
+ };
1964
+ contract_version: number;
1965
+ contract_digest: string;
1966
+ }[] | undefined;
1967
+ exclusions?: {
1968
+ id: string;
1969
+ scope: {
1970
+ targets: {
1971
+ source_ref: string;
1972
+ module_refs: string[];
1973
+ }[];
1974
+ };
1975
+ reason: string;
1976
+ }[] | undefined;
1977
+ }>, "many">;
1978
+ indexers: z.ZodArray<z.ZodEffects<z.ZodObject<{
1979
+ id: z.ZodEffects<z.ZodString, string, string>;
1980
+ operations: z.ZodArray<z.ZodEnum<["main-index", "material-answer"]>, "many">;
1981
+ requirement_bindings: z.ZodArray<z.ZodEffects<z.ZodObject<{
1982
+ requirement_ref: z.ZodEffects<z.ZodString, string, string>;
1983
+ coverage_domains: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1984
+ owned_scope: z.ZodUnion<[z.ZodObject<{
1985
+ ref: z.ZodString;
1986
+ }, "strict", z.ZodTypeAny, {
1987
+ ref: string;
1988
+ }, {
1989
+ ref: string;
1990
+ }>, z.ZodEffects<z.ZodObject<{
1991
+ targets: z.ZodArray<z.ZodEffects<z.ZodObject<{
1992
+ source_ref: z.ZodString;
1993
+ module_refs: z.ZodArray<z.ZodString, "many">;
1994
+ }, "strict", z.ZodTypeAny, {
1995
+ source_ref: string;
1996
+ module_refs: string[];
1997
+ }, {
1998
+ source_ref: string;
1999
+ module_refs: string[];
2000
+ }>, {
2001
+ source_ref: string;
2002
+ module_refs: string[];
2003
+ }, {
2004
+ source_ref: string;
2005
+ module_refs: string[];
2006
+ }>, "many">;
2007
+ }, "strict", z.ZodTypeAny, {
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
+ targets: {
2019
+ source_ref: string;
2020
+ module_refs: string[];
2021
+ }[];
2022
+ }, {
2023
+ targets: {
2024
+ source_ref: string;
2025
+ module_refs: string[];
2026
+ }[];
2027
+ }>]>;
2028
+ role: z.ZodEnum<["primary", "enricher"]>;
2029
+ }, "strict", z.ZodTypeAny, {
2030
+ coverage_domains: string[];
2031
+ requirement_ref: string;
2032
+ owned_scope: {
2033
+ targets: {
2034
+ source_ref: string;
2035
+ module_refs: string[];
2036
+ }[];
2037
+ } | {
2038
+ ref: string;
2039
+ };
2040
+ role: "primary" | "enricher";
2041
+ }, {
2042
+ coverage_domains: string[];
2043
+ requirement_ref: string;
2044
+ owned_scope: {
2045
+ targets: {
2046
+ source_ref: string;
2047
+ module_refs: string[];
2048
+ }[];
2049
+ } | {
2050
+ ref: string;
2051
+ };
2052
+ role: "primary" | "enricher";
2053
+ }>, {
2054
+ coverage_domains: string[];
2055
+ requirement_ref: string;
2056
+ owned_scope: {
2057
+ targets: {
2058
+ source_ref: string;
2059
+ module_refs: string[];
2060
+ }[];
2061
+ } | {
2062
+ ref: string;
2063
+ };
2064
+ role: "primary" | "enricher";
2065
+ }, {
2066
+ coverage_domains: string[];
2067
+ requirement_ref: string;
2068
+ owned_scope: {
2069
+ targets: {
2070
+ source_ref: string;
2071
+ module_refs: string[];
2072
+ }[];
2073
+ } | {
2074
+ ref: string;
2075
+ };
2076
+ role: "primary" | "enricher";
2077
+ }>, "many">;
2078
+ read_scope: z.ZodEffects<z.ZodObject<{
2079
+ refs: z.ZodArray<z.ZodString, "many">;
2080
+ extra_targets: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
2081
+ source_ref: z.ZodString;
2082
+ module_refs: z.ZodArray<z.ZodString, "many">;
2083
+ }, "strict", z.ZodTypeAny, {
2084
+ source_ref: string;
2085
+ module_refs: string[];
2086
+ }, {
2087
+ source_ref: string;
2088
+ module_refs: string[];
2089
+ }>, {
2090
+ source_ref: string;
2091
+ module_refs: string[];
2092
+ }, {
2093
+ source_ref: string;
2094
+ module_refs: string[];
2095
+ }>, "many">>;
2096
+ }, "strict", z.ZodTypeAny, {
2097
+ refs: string[];
2098
+ extra_targets?: {
2099
+ source_ref: string;
2100
+ module_refs: string[];
2101
+ }[] | undefined;
2102
+ }, {
2103
+ refs: string[];
2104
+ extra_targets?: {
2105
+ source_ref: string;
2106
+ module_refs: string[];
2107
+ }[] | undefined;
2108
+ }>, {
2109
+ refs: string[];
2110
+ extra_targets?: {
2111
+ source_ref: string;
2112
+ module_refs: string[];
2113
+ }[] | undefined;
2114
+ }, {
2115
+ refs: string[];
2116
+ extra_targets?: {
2117
+ source_ref: string;
2118
+ module_refs: string[];
2119
+ }[] | undefined;
2120
+ }>;
2121
+ profile: z.ZodObject<{
2122
+ primary: z.ZodObject<{
2123
+ id: z.ZodEffects<z.ZodString, string, string>;
2124
+ provider: z.ZodEffects<z.ZodString, string, string>;
2125
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
2126
+ }, "strict", z.ZodTypeAny, {
2127
+ id: string;
2128
+ provider: string;
2129
+ variants?: Record<string, string> | undefined;
2130
+ }, {
2131
+ id: string;
2132
+ provider: string;
2133
+ variants?: Record<string, string> | undefined;
2134
+ }>;
2135
+ additional: z.ZodOptional<z.ZodArray<z.ZodObject<{
2136
+ id: z.ZodEffects<z.ZodString, string, string>;
2137
+ provider: z.ZodEffects<z.ZodString, string, string>;
2138
+ variants: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>>;
2139
+ } & {
2140
+ kind: z.ZodEnum<["supporting", "extension"]>;
2141
+ }, "strict", z.ZodTypeAny, {
2142
+ id: string;
2143
+ kind: "supporting" | "extension";
2144
+ provider: string;
2145
+ variants?: Record<string, string> | undefined;
2146
+ }, {
2147
+ id: string;
2148
+ kind: "supporting" | "extension";
2149
+ provider: string;
2150
+ variants?: Record<string, string> | undefined;
2151
+ }>, "many">>;
2152
+ composers: z.ZodOptional<z.ZodArray<z.ZodObject<{
2153
+ id: z.ZodEffects<z.ZodString, string, string>;
2154
+ provider: z.ZodEffects<z.ZodString, string, string>;
2155
+ }, "strict", z.ZodTypeAny, {
2156
+ id: string;
2157
+ provider: string;
2158
+ }, {
2159
+ id: string;
2160
+ provider: string;
2161
+ }>, "many">>;
2162
+ }, "strict", z.ZodTypeAny, {
2163
+ primary: {
2164
+ id: string;
2165
+ provider: string;
2166
+ variants?: Record<string, string> | undefined;
2167
+ };
2168
+ additional?: {
2169
+ id: string;
2170
+ kind: "supporting" | "extension";
2171
+ provider: string;
2172
+ variants?: Record<string, string> | undefined;
2173
+ }[] | undefined;
2174
+ composers?: {
2175
+ id: string;
2176
+ provider: string;
2177
+ }[] | undefined;
2178
+ }, {
2179
+ primary: {
2180
+ id: string;
2181
+ provider: string;
2182
+ variants?: Record<string, string> | undefined;
2183
+ };
2184
+ additional?: {
2185
+ id: string;
2186
+ kind: "supporting" | "extension";
2187
+ provider: string;
2188
+ variants?: Record<string, string> | undefined;
2189
+ }[] | undefined;
2190
+ composers?: {
2191
+ id: string;
2192
+ provider: string;
2193
+ }[] | undefined;
2194
+ }>;
2195
+ providers: z.ZodArray<z.ZodEffects<z.ZodObject<{
2196
+ id: z.ZodEffects<z.ZodString, string, string>;
2197
+ role: z.ZodEnum<["primary", "extension"]>;
2198
+ skill: z.ZodEffects<z.ZodString, string, string>;
2199
+ version: z.ZodString;
2200
+ integrity: z.ZodString;
2201
+ distribution: z.ZodEffects<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2202
+ kind: z.ZodLiteral<"cli-bundled">;
2203
+ locator: z.ZodString;
2204
+ }, "strict", z.ZodTypeAny, {
2205
+ kind: "cli-bundled";
2206
+ locator: string;
2207
+ }, {
2208
+ kind: "cli-bundled";
2209
+ locator: string;
2210
+ }>, z.ZodObject<{
2211
+ kind: z.ZodLiteral<"bundled">;
2212
+ locator: z.ZodString;
2213
+ }, "strict", z.ZodTypeAny, {
2214
+ kind: "bundled";
2215
+ locator: string;
2216
+ }, {
2217
+ kind: "bundled";
2218
+ locator: string;
2219
+ }>, z.ZodObject<{
2220
+ kind: z.ZodLiteral<"workspace">;
2221
+ locator: z.ZodString;
2222
+ }, "strict", z.ZodTypeAny, {
2223
+ kind: "workspace";
2224
+ locator: string;
2225
+ }, {
2226
+ kind: "workspace";
2227
+ locator: string;
2228
+ }>, z.ZodObject<{
2229
+ kind: z.ZodLiteral<"package">;
2230
+ locator: z.ZodString;
2231
+ }, "strict", z.ZodTypeAny, {
2232
+ kind: "package";
2233
+ locator: string;
2234
+ }, {
2235
+ kind: "package";
2236
+ locator: string;
2237
+ }>, z.ZodObject<{
2238
+ kind: z.ZodLiteral<"marketplace">;
2239
+ locator: z.ZodString;
2240
+ }, "strict", z.ZodTypeAny, {
2241
+ kind: "marketplace";
2242
+ locator: string;
2243
+ }, {
2244
+ kind: "marketplace";
2245
+ locator: string;
2246
+ }>]>, {
2247
+ kind: "cli-bundled";
2248
+ locator: string;
2249
+ } | {
2250
+ kind: "bundled";
2251
+ locator: string;
2252
+ } | {
2253
+ kind: "workspace";
2254
+ locator: string;
2255
+ } | {
2256
+ kind: "package";
2257
+ locator: string;
2258
+ } | {
2259
+ kind: "marketplace";
2260
+ locator: string;
2261
+ }, {
2262
+ kind: "cli-bundled";
2263
+ locator: string;
2264
+ } | {
2265
+ kind: "bundled";
2266
+ locator: string;
2267
+ } | {
2268
+ kind: "workspace";
2269
+ locator: string;
2270
+ } | {
2271
+ kind: "package";
2272
+ locator: string;
2273
+ } | {
2274
+ kind: "marketplace";
2275
+ locator: string;
2276
+ }>;
2277
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>>>;
2278
+ }, "strict", z.ZodTypeAny, {
2279
+ id: string;
2280
+ role: "primary" | "extension";
2281
+ skill: string;
2282
+ version: string;
2283
+ integrity: string;
2284
+ distribution: {
2285
+ kind: "cli-bundled";
2286
+ locator: string;
2287
+ } | {
2288
+ kind: "bundled";
2289
+ locator: string;
2290
+ } | {
2291
+ kind: "workspace";
2292
+ locator: string;
2293
+ } | {
2294
+ kind: "package";
2295
+ locator: string;
2296
+ } | {
2297
+ kind: "marketplace";
2298
+ locator: string;
2299
+ };
2300
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2301
+ }, {
2302
+ id: string;
2303
+ role: "primary" | "extension";
2304
+ skill: string;
2305
+ version: string;
2306
+ integrity: string;
2307
+ distribution: {
2308
+ kind: "cli-bundled";
2309
+ locator: string;
2310
+ } | {
2311
+ kind: "bundled";
2312
+ locator: string;
2313
+ } | {
2314
+ kind: "workspace";
2315
+ locator: string;
2316
+ } | {
2317
+ kind: "package";
2318
+ locator: string;
2319
+ } | {
2320
+ kind: "marketplace";
2321
+ locator: string;
2322
+ };
2323
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2324
+ }>, {
2325
+ id: string;
2326
+ role: "primary" | "extension";
2327
+ skill: string;
2328
+ version: string;
2329
+ integrity: string;
2330
+ distribution: {
2331
+ kind: "cli-bundled";
2332
+ locator: string;
2333
+ } | {
2334
+ kind: "bundled";
2335
+ locator: string;
2336
+ } | {
2337
+ kind: "workspace";
2338
+ locator: string;
2339
+ } | {
2340
+ kind: "package";
2341
+ locator: string;
2342
+ } | {
2343
+ kind: "marketplace";
2344
+ locator: string;
2345
+ };
2346
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2347
+ }, {
2348
+ id: string;
2349
+ role: "primary" | "extension";
2350
+ skill: string;
2351
+ version: string;
2352
+ integrity: string;
2353
+ distribution: {
2354
+ kind: "cli-bundled";
2355
+ locator: string;
2356
+ } | {
2357
+ kind: "bundled";
2358
+ locator: string;
2359
+ } | {
2360
+ kind: "workspace";
2361
+ locator: string;
2362
+ } | {
2363
+ kind: "package";
2364
+ locator: string;
2365
+ } | {
2366
+ kind: "marketplace";
2367
+ locator: string;
2368
+ };
2369
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2370
+ }>, "many">;
2371
+ customization: z.ZodOptional<z.ZodObject<{
2372
+ mode: z.ZodEnum<["extend", "replace"]>;
2373
+ }, "strict", z.ZodTypeAny, {
2374
+ mode: "replace" | "extend";
2375
+ }, {
2376
+ mode: "replace" | "extend";
2377
+ }>>;
2378
+ }, "strict", z.ZodTypeAny, {
2379
+ id: string;
2380
+ operations: ("main-index" | "material-answer")[];
2381
+ requirement_bindings: {
2382
+ coverage_domains: string[];
2383
+ requirement_ref: string;
2384
+ owned_scope: {
2385
+ targets: {
2386
+ source_ref: string;
2387
+ module_refs: string[];
2388
+ }[];
2389
+ } | {
2390
+ ref: string;
2391
+ };
2392
+ role: "primary" | "enricher";
2393
+ }[];
2394
+ read_scope: {
2395
+ refs: string[];
2396
+ extra_targets?: {
2397
+ source_ref: string;
2398
+ module_refs: string[];
2399
+ }[] | undefined;
2400
+ };
2401
+ profile: {
2402
+ primary: {
2403
+ id: string;
2404
+ provider: string;
2405
+ variants?: Record<string, string> | undefined;
2406
+ };
2407
+ additional?: {
2408
+ id: string;
2409
+ kind: "supporting" | "extension";
2410
+ provider: string;
2411
+ variants?: Record<string, string> | undefined;
2412
+ }[] | undefined;
2413
+ composers?: {
2414
+ id: string;
2415
+ provider: string;
2416
+ }[] | undefined;
2417
+ };
2418
+ providers: {
2419
+ id: string;
2420
+ role: "primary" | "extension";
2421
+ skill: string;
2422
+ version: string;
2423
+ integrity: string;
2424
+ distribution: {
2425
+ kind: "cli-bundled";
2426
+ locator: string;
2427
+ } | {
2428
+ kind: "bundled";
2429
+ locator: string;
2430
+ } | {
2431
+ kind: "workspace";
2432
+ locator: string;
2433
+ } | {
2434
+ kind: "package";
2435
+ locator: string;
2436
+ } | {
2437
+ kind: "marketplace";
2438
+ locator: string;
2439
+ };
2440
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2441
+ }[];
2442
+ customization?: {
2443
+ mode: "replace" | "extend";
2444
+ } | undefined;
2445
+ }, {
2446
+ id: string;
2447
+ operations: ("main-index" | "material-answer")[];
2448
+ requirement_bindings: {
2449
+ coverage_domains: string[];
2450
+ requirement_ref: string;
2451
+ owned_scope: {
2452
+ targets: {
2453
+ source_ref: string;
2454
+ module_refs: string[];
2455
+ }[];
2456
+ } | {
2457
+ ref: string;
2458
+ };
2459
+ role: "primary" | "enricher";
2460
+ }[];
2461
+ read_scope: {
2462
+ refs: string[];
2463
+ extra_targets?: {
2464
+ source_ref: string;
2465
+ module_refs: string[];
2466
+ }[] | undefined;
2467
+ };
2468
+ profile: {
2469
+ primary: {
2470
+ id: string;
2471
+ provider: string;
2472
+ variants?: Record<string, string> | undefined;
2473
+ };
2474
+ additional?: {
2475
+ id: string;
2476
+ kind: "supporting" | "extension";
2477
+ provider: string;
2478
+ variants?: Record<string, string> | undefined;
2479
+ }[] | undefined;
2480
+ composers?: {
2481
+ id: string;
2482
+ provider: string;
2483
+ }[] | undefined;
2484
+ };
2485
+ providers: {
2486
+ id: string;
2487
+ role: "primary" | "extension";
2488
+ skill: string;
2489
+ version: string;
2490
+ integrity: string;
2491
+ distribution: {
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
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2508
+ }[];
2509
+ customization?: {
2510
+ mode: "replace" | "extend";
2511
+ } | undefined;
2512
+ }>, {
2513
+ id: string;
2514
+ operations: ("main-index" | "material-answer")[];
2515
+ requirement_bindings: {
2516
+ coverage_domains: string[];
2517
+ requirement_ref: string;
2518
+ owned_scope: {
2519
+ targets: {
2520
+ source_ref: string;
2521
+ module_refs: string[];
2522
+ }[];
2523
+ } | {
2524
+ ref: string;
2525
+ };
2526
+ role: "primary" | "enricher";
2527
+ }[];
2528
+ read_scope: {
2529
+ refs: string[];
2530
+ extra_targets?: {
2531
+ source_ref: string;
2532
+ module_refs: string[];
2533
+ }[] | undefined;
2534
+ };
2535
+ profile: {
2536
+ primary: {
2537
+ id: string;
2538
+ provider: string;
2539
+ variants?: Record<string, string> | undefined;
2540
+ };
2541
+ additional?: {
2542
+ id: string;
2543
+ kind: "supporting" | "extension";
2544
+ provider: string;
2545
+ variants?: Record<string, string> | undefined;
2546
+ }[] | undefined;
2547
+ composers?: {
2548
+ id: string;
2549
+ provider: string;
2550
+ }[] | undefined;
2551
+ };
2552
+ providers: {
2553
+ id: string;
2554
+ role: "primary" | "extension";
2555
+ skill: string;
2556
+ version: string;
2557
+ integrity: string;
2558
+ distribution: {
2559
+ kind: "cli-bundled";
2560
+ locator: string;
2561
+ } | {
2562
+ kind: "bundled";
2563
+ locator: string;
2564
+ } | {
2565
+ kind: "workspace";
2566
+ locator: string;
2567
+ } | {
2568
+ kind: "package";
2569
+ locator: string;
2570
+ } | {
2571
+ kind: "marketplace";
2572
+ locator: string;
2573
+ };
2574
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2575
+ }[];
2576
+ customization?: {
2577
+ mode: "replace" | "extend";
2578
+ } | undefined;
2579
+ }, {
2580
+ id: string;
2581
+ operations: ("main-index" | "material-answer")[];
2582
+ requirement_bindings: {
2583
+ coverage_domains: string[];
2584
+ requirement_ref: string;
2585
+ owned_scope: {
2586
+ targets: {
2587
+ source_ref: string;
2588
+ module_refs: string[];
2589
+ }[];
2590
+ } | {
2591
+ ref: string;
2592
+ };
2593
+ role: "primary" | "enricher";
2594
+ }[];
2595
+ read_scope: {
2596
+ refs: string[];
2597
+ extra_targets?: {
2598
+ source_ref: string;
2599
+ module_refs: string[];
2600
+ }[] | undefined;
2601
+ };
2602
+ profile: {
2603
+ primary: {
2604
+ id: string;
2605
+ provider: string;
2606
+ variants?: Record<string, string> | undefined;
2607
+ };
2608
+ additional?: {
2609
+ id: string;
2610
+ kind: "supporting" | "extension";
2611
+ provider: string;
2612
+ variants?: Record<string, string> | undefined;
2613
+ }[] | undefined;
2614
+ composers?: {
2615
+ id: string;
2616
+ provider: string;
2617
+ }[] | undefined;
2618
+ };
2619
+ providers: {
2620
+ id: string;
2621
+ role: "primary" | "extension";
2622
+ skill: string;
2623
+ version: string;
2624
+ integrity: string;
2625
+ distribution: {
2626
+ kind: "cli-bundled";
2627
+ locator: string;
2628
+ } | {
2629
+ kind: "bundled";
2630
+ locator: string;
2631
+ } | {
2632
+ kind: "workspace";
2633
+ locator: string;
2634
+ } | {
2635
+ kind: "package";
2636
+ locator: string;
2637
+ } | {
2638
+ kind: "marketplace";
2639
+ locator: string;
2640
+ };
2641
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2642
+ }[];
2643
+ customization?: {
2644
+ mode: "replace" | "extend";
2645
+ } | undefined;
2646
+ }>, "many">;
2647
+ }, "strict", z.ZodTypeAny, {
2648
+ protocol: "context.indexer.registry/v1";
2649
+ requirements: {
2650
+ id: string;
2651
+ reader_goals: string[];
2652
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2653
+ target_scope: {
2654
+ targets: {
2655
+ source_ref: string;
2656
+ module_refs: string[];
2657
+ }[];
2658
+ };
2659
+ evidence_source_scope: {
2660
+ targets: {
2661
+ source_ref: string;
2662
+ module_refs: string[];
2663
+ }[];
2664
+ };
2665
+ questions?: {
2666
+ ref: string;
2667
+ authority: {
2668
+ kind: "cli-base-contract" | "verified-contract-overlay";
2669
+ ref: string;
2670
+ digest: string;
2671
+ };
2672
+ contract_version: number;
2673
+ contract_digest: string;
2674
+ }[] | undefined;
2675
+ exclusions?: {
2676
+ id: string;
2677
+ scope: {
2678
+ targets: {
2679
+ source_ref: string;
2680
+ module_refs: string[];
2681
+ }[];
2682
+ };
2683
+ reason: string;
2684
+ }[] | undefined;
2685
+ }[];
2686
+ indexers: {
2687
+ id: string;
2688
+ operations: ("main-index" | "material-answer")[];
2689
+ requirement_bindings: {
2690
+ coverage_domains: string[];
2691
+ requirement_ref: string;
2692
+ owned_scope: {
2693
+ targets: {
2694
+ source_ref: string;
2695
+ module_refs: string[];
2696
+ }[];
2697
+ } | {
2698
+ ref: string;
2699
+ };
2700
+ role: "primary" | "enricher";
2701
+ }[];
2702
+ read_scope: {
2703
+ refs: string[];
2704
+ extra_targets?: {
2705
+ source_ref: string;
2706
+ module_refs: string[];
2707
+ }[] | undefined;
2708
+ };
2709
+ profile: {
2710
+ primary: {
2711
+ id: string;
2712
+ provider: string;
2713
+ variants?: Record<string, string> | undefined;
2714
+ };
2715
+ additional?: {
2716
+ id: string;
2717
+ kind: "supporting" | "extension";
2718
+ provider: string;
2719
+ variants?: Record<string, string> | undefined;
2720
+ }[] | undefined;
2721
+ composers?: {
2722
+ id: string;
2723
+ provider: string;
2724
+ }[] | undefined;
2725
+ };
2726
+ providers: {
2727
+ id: string;
2728
+ role: "primary" | "extension";
2729
+ skill: string;
2730
+ version: string;
2731
+ integrity: string;
2732
+ distribution: {
2733
+ kind: "cli-bundled";
2734
+ locator: string;
2735
+ } | {
2736
+ kind: "bundled";
2737
+ locator: string;
2738
+ } | {
2739
+ kind: "workspace";
2740
+ locator: string;
2741
+ } | {
2742
+ kind: "package";
2743
+ locator: string;
2744
+ } | {
2745
+ kind: "marketplace";
2746
+ locator: string;
2747
+ };
2748
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2749
+ }[];
2750
+ customization?: {
2751
+ mode: "replace" | "extend";
2752
+ } | undefined;
2753
+ }[];
2754
+ }, {
2755
+ protocol: "context.indexer.registry/v1";
2756
+ requirements: {
2757
+ id: string;
2758
+ reader_goals: string[];
2759
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2760
+ target_scope: {
2761
+ targets: {
2762
+ source_ref: string;
2763
+ module_refs: string[];
2764
+ }[];
2765
+ };
2766
+ evidence_source_scope: {
2767
+ targets: {
2768
+ source_ref: string;
2769
+ module_refs: string[];
2770
+ }[];
2771
+ };
2772
+ questions?: {
2773
+ ref: string;
2774
+ authority: {
2775
+ kind: "cli-base-contract" | "verified-contract-overlay";
2776
+ ref: string;
2777
+ digest: string;
2778
+ };
2779
+ contract_version: number;
2780
+ contract_digest: string;
2781
+ }[] | undefined;
2782
+ exclusions?: {
2783
+ id: string;
2784
+ scope: {
2785
+ targets: {
2786
+ source_ref: string;
2787
+ module_refs: string[];
2788
+ }[];
2789
+ };
2790
+ reason: string;
2791
+ }[] | undefined;
2792
+ }[];
2793
+ indexers: {
2794
+ id: string;
2795
+ operations: ("main-index" | "material-answer")[];
2796
+ requirement_bindings: {
2797
+ coverage_domains: string[];
2798
+ requirement_ref: string;
2799
+ owned_scope: {
2800
+ targets: {
2801
+ source_ref: string;
2802
+ module_refs: string[];
2803
+ }[];
2804
+ } | {
2805
+ ref: string;
2806
+ };
2807
+ role: "primary" | "enricher";
2808
+ }[];
2809
+ read_scope: {
2810
+ refs: string[];
2811
+ extra_targets?: {
2812
+ source_ref: string;
2813
+ module_refs: string[];
2814
+ }[] | undefined;
2815
+ };
2816
+ profile: {
2817
+ primary: {
2818
+ id: string;
2819
+ provider: string;
2820
+ variants?: Record<string, string> | undefined;
2821
+ };
2822
+ additional?: {
2823
+ id: string;
2824
+ kind: "supporting" | "extension";
2825
+ provider: string;
2826
+ variants?: Record<string, string> | undefined;
2827
+ }[] | undefined;
2828
+ composers?: {
2829
+ id: string;
2830
+ provider: string;
2831
+ }[] | undefined;
2832
+ };
2833
+ providers: {
2834
+ id: string;
2835
+ role: "primary" | "extension";
2836
+ skill: string;
2837
+ version: string;
2838
+ integrity: string;
2839
+ distribution: {
2840
+ kind: "cli-bundled";
2841
+ locator: string;
2842
+ } | {
2843
+ kind: "bundled";
2844
+ locator: string;
2845
+ } | {
2846
+ kind: "workspace";
2847
+ locator: string;
2848
+ } | {
2849
+ kind: "package";
2850
+ locator: string;
2851
+ } | {
2852
+ kind: "marketplace";
2853
+ locator: string;
2854
+ };
2855
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2856
+ }[];
2857
+ customization?: {
2858
+ mode: "replace" | "extend";
2859
+ } | undefined;
2860
+ }[];
2861
+ }>, {
2862
+ protocol: "context.indexer.registry/v1";
2863
+ requirements: {
2864
+ id: string;
2865
+ reader_goals: string[];
2866
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2867
+ target_scope: {
2868
+ targets: {
2869
+ source_ref: string;
2870
+ module_refs: string[];
2871
+ }[];
2872
+ };
2873
+ evidence_source_scope: {
2874
+ targets: {
2875
+ source_ref: string;
2876
+ module_refs: string[];
2877
+ }[];
2878
+ };
2879
+ questions?: {
2880
+ ref: string;
2881
+ authority: {
2882
+ kind: "cli-base-contract" | "verified-contract-overlay";
2883
+ ref: string;
2884
+ digest: string;
2885
+ };
2886
+ contract_version: number;
2887
+ contract_digest: string;
2888
+ }[] | undefined;
2889
+ exclusions?: {
2890
+ id: string;
2891
+ scope: {
2892
+ targets: {
2893
+ source_ref: string;
2894
+ module_refs: string[];
2895
+ }[];
2896
+ };
2897
+ reason: string;
2898
+ }[] | undefined;
2899
+ }[];
2900
+ indexers: {
2901
+ id: string;
2902
+ operations: ("main-index" | "material-answer")[];
2903
+ requirement_bindings: {
2904
+ coverage_domains: string[];
2905
+ requirement_ref: string;
2906
+ owned_scope: {
2907
+ targets: {
2908
+ source_ref: string;
2909
+ module_refs: string[];
2910
+ }[];
2911
+ } | {
2912
+ ref: string;
2913
+ };
2914
+ role: "primary" | "enricher";
2915
+ }[];
2916
+ read_scope: {
2917
+ refs: string[];
2918
+ extra_targets?: {
2919
+ source_ref: string;
2920
+ module_refs: string[];
2921
+ }[] | undefined;
2922
+ };
2923
+ profile: {
2924
+ primary: {
2925
+ id: string;
2926
+ provider: string;
2927
+ variants?: Record<string, string> | undefined;
2928
+ };
2929
+ additional?: {
2930
+ id: string;
2931
+ kind: "supporting" | "extension";
2932
+ provider: string;
2933
+ variants?: Record<string, string> | undefined;
2934
+ }[] | undefined;
2935
+ composers?: {
2936
+ id: string;
2937
+ provider: string;
2938
+ }[] | undefined;
2939
+ };
2940
+ providers: {
2941
+ id: string;
2942
+ role: "primary" | "extension";
2943
+ skill: string;
2944
+ version: string;
2945
+ integrity: string;
2946
+ distribution: {
2947
+ kind: "cli-bundled";
2948
+ locator: string;
2949
+ } | {
2950
+ kind: "bundled";
2951
+ locator: string;
2952
+ } | {
2953
+ kind: "workspace";
2954
+ locator: string;
2955
+ } | {
2956
+ kind: "package";
2957
+ locator: string;
2958
+ } | {
2959
+ kind: "marketplace";
2960
+ locator: string;
2961
+ };
2962
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
2963
+ }[];
2964
+ customization?: {
2965
+ mode: "replace" | "extend";
2966
+ } | undefined;
2967
+ }[];
2968
+ }, {
2969
+ protocol: "context.indexer.registry/v1";
2970
+ requirements: {
2971
+ id: string;
2972
+ reader_goals: string[];
2973
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
2974
+ target_scope: {
2975
+ targets: {
2976
+ source_ref: string;
2977
+ module_refs: string[];
2978
+ }[];
2979
+ };
2980
+ evidence_source_scope: {
2981
+ targets: {
2982
+ source_ref: string;
2983
+ module_refs: string[];
2984
+ }[];
2985
+ };
2986
+ questions?: {
2987
+ ref: string;
2988
+ authority: {
2989
+ kind: "cli-base-contract" | "verified-contract-overlay";
2990
+ ref: string;
2991
+ digest: string;
2992
+ };
2993
+ contract_version: number;
2994
+ contract_digest: string;
2995
+ }[] | undefined;
2996
+ exclusions?: {
2997
+ id: string;
2998
+ scope: {
2999
+ targets: {
3000
+ source_ref: string;
3001
+ module_refs: string[];
3002
+ }[];
3003
+ };
3004
+ reason: string;
3005
+ }[] | undefined;
3006
+ }[];
3007
+ indexers: {
3008
+ id: string;
3009
+ operations: ("main-index" | "material-answer")[];
3010
+ requirement_bindings: {
3011
+ coverage_domains: string[];
3012
+ requirement_ref: string;
3013
+ owned_scope: {
3014
+ targets: {
3015
+ source_ref: string;
3016
+ module_refs: string[];
3017
+ }[];
3018
+ } | {
3019
+ ref: string;
3020
+ };
3021
+ role: "primary" | "enricher";
3022
+ }[];
3023
+ read_scope: {
3024
+ refs: string[];
3025
+ extra_targets?: {
3026
+ source_ref: string;
3027
+ module_refs: string[];
3028
+ }[] | undefined;
3029
+ };
3030
+ profile: {
3031
+ primary: {
3032
+ id: string;
3033
+ provider: string;
3034
+ variants?: Record<string, string> | undefined;
3035
+ };
3036
+ additional?: {
3037
+ id: string;
3038
+ kind: "supporting" | "extension";
3039
+ provider: string;
3040
+ variants?: Record<string, string> | undefined;
3041
+ }[] | undefined;
3042
+ composers?: {
3043
+ id: string;
3044
+ provider: string;
3045
+ }[] | undefined;
3046
+ };
3047
+ providers: {
3048
+ id: string;
3049
+ role: "primary" | "extension";
3050
+ skill: string;
3051
+ version: string;
3052
+ integrity: string;
3053
+ distribution: {
3054
+ kind: "cli-bundled";
3055
+ locator: string;
3056
+ } | {
3057
+ kind: "bundled";
3058
+ locator: string;
3059
+ } | {
3060
+ kind: "workspace";
3061
+ locator: string;
3062
+ } | {
3063
+ kind: "package";
3064
+ locator: string;
3065
+ } | {
3066
+ kind: "marketplace";
3067
+ locator: string;
3068
+ };
3069
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3070
+ }[];
3071
+ customization?: {
3072
+ mode: "replace" | "extend";
3073
+ } | undefined;
3074
+ }[];
3075
+ }>;
3076
+ proposal_digest: z.ZodString;
3077
+ }, "strict", z.ZodTypeAny, {
3078
+ protocol: "context.indexer.selection-proposal/v1";
3079
+ registry: {
3080
+ protocol: "context.indexer.registry/v1";
3081
+ requirements: {
3082
+ id: string;
3083
+ reader_goals: string[];
3084
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3085
+ target_scope: {
3086
+ targets: {
3087
+ source_ref: string;
3088
+ module_refs: string[];
3089
+ }[];
3090
+ };
3091
+ evidence_source_scope: {
3092
+ targets: {
3093
+ source_ref: string;
3094
+ module_refs: string[];
3095
+ }[];
3096
+ };
3097
+ questions?: {
3098
+ ref: string;
3099
+ authority: {
3100
+ kind: "cli-base-contract" | "verified-contract-overlay";
3101
+ ref: string;
3102
+ digest: string;
3103
+ };
3104
+ contract_version: number;
3105
+ contract_digest: string;
3106
+ }[] | undefined;
3107
+ exclusions?: {
3108
+ id: string;
3109
+ scope: {
3110
+ targets: {
3111
+ source_ref: string;
3112
+ module_refs: string[];
3113
+ }[];
3114
+ };
3115
+ reason: string;
3116
+ }[] | undefined;
3117
+ }[];
3118
+ indexers: {
3119
+ id: string;
3120
+ operations: ("main-index" | "material-answer")[];
3121
+ requirement_bindings: {
3122
+ coverage_domains: string[];
3123
+ requirement_ref: string;
3124
+ owned_scope: {
3125
+ targets: {
3126
+ source_ref: string;
3127
+ module_refs: string[];
3128
+ }[];
3129
+ } | {
3130
+ ref: string;
3131
+ };
3132
+ role: "primary" | "enricher";
3133
+ }[];
3134
+ read_scope: {
3135
+ refs: string[];
3136
+ extra_targets?: {
3137
+ source_ref: string;
3138
+ module_refs: string[];
3139
+ }[] | undefined;
3140
+ };
3141
+ profile: {
3142
+ primary: {
3143
+ id: string;
3144
+ provider: string;
3145
+ variants?: Record<string, string> | undefined;
3146
+ };
3147
+ additional?: {
3148
+ id: string;
3149
+ kind: "supporting" | "extension";
3150
+ provider: string;
3151
+ variants?: Record<string, string> | undefined;
3152
+ }[] | undefined;
3153
+ composers?: {
3154
+ id: string;
3155
+ provider: string;
3156
+ }[] | undefined;
3157
+ };
3158
+ providers: {
3159
+ id: string;
3160
+ role: "primary" | "extension";
3161
+ skill: string;
3162
+ version: string;
3163
+ integrity: string;
3164
+ distribution: {
3165
+ kind: "cli-bundled";
3166
+ locator: string;
3167
+ } | {
3168
+ kind: "bundled";
3169
+ locator: string;
3170
+ } | {
3171
+ kind: "workspace";
3172
+ locator: string;
3173
+ } | {
3174
+ kind: "package";
3175
+ locator: string;
3176
+ } | {
3177
+ kind: "marketplace";
3178
+ locator: string;
3179
+ };
3180
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3181
+ }[];
3182
+ customization?: {
3183
+ mode: "replace" | "extend";
3184
+ } | undefined;
3185
+ }[];
3186
+ };
3187
+ project_ref: string;
3188
+ requirement_set_digest: string;
3189
+ registry_digest: string;
3190
+ indexer_selection_digest: string;
3191
+ proposal_digest: string;
3192
+ }, {
3193
+ protocol: "context.indexer.selection-proposal/v1";
3194
+ registry: {
3195
+ protocol: "context.indexer.registry/v1";
3196
+ requirements: {
3197
+ id: string;
3198
+ reader_goals: string[];
3199
+ coverage_domains: Record<string, "required" | "optional" | "out-of-scope">;
3200
+ target_scope: {
3201
+ targets: {
3202
+ source_ref: string;
3203
+ module_refs: string[];
3204
+ }[];
3205
+ };
3206
+ evidence_source_scope: {
3207
+ targets: {
3208
+ source_ref: string;
3209
+ module_refs: string[];
3210
+ }[];
3211
+ };
3212
+ questions?: {
3213
+ ref: string;
3214
+ authority: {
3215
+ kind: "cli-base-contract" | "verified-contract-overlay";
3216
+ ref: string;
3217
+ digest: string;
3218
+ };
3219
+ contract_version: number;
3220
+ contract_digest: string;
3221
+ }[] | undefined;
3222
+ exclusions?: {
3223
+ id: string;
3224
+ scope: {
3225
+ targets: {
3226
+ source_ref: string;
3227
+ module_refs: string[];
3228
+ }[];
3229
+ };
3230
+ reason: string;
3231
+ }[] | undefined;
3232
+ }[];
3233
+ indexers: {
3234
+ id: string;
3235
+ operations: ("main-index" | "material-answer")[];
3236
+ requirement_bindings: {
3237
+ coverage_domains: string[];
3238
+ requirement_ref: string;
3239
+ owned_scope: {
3240
+ targets: {
3241
+ source_ref: string;
3242
+ module_refs: string[];
3243
+ }[];
3244
+ } | {
3245
+ ref: string;
3246
+ };
3247
+ role: "primary" | "enricher";
3248
+ }[];
3249
+ read_scope: {
3250
+ refs: string[];
3251
+ extra_targets?: {
3252
+ source_ref: string;
3253
+ module_refs: string[];
3254
+ }[] | undefined;
3255
+ };
3256
+ profile: {
3257
+ primary: {
3258
+ id: string;
3259
+ provider: string;
3260
+ variants?: Record<string, string> | undefined;
3261
+ };
3262
+ additional?: {
3263
+ id: string;
3264
+ kind: "supporting" | "extension";
3265
+ provider: string;
3266
+ variants?: Record<string, string> | undefined;
3267
+ }[] | undefined;
3268
+ composers?: {
3269
+ id: string;
3270
+ provider: string;
3271
+ }[] | undefined;
3272
+ };
3273
+ providers: {
3274
+ id: string;
3275
+ role: "primary" | "extension";
3276
+ skill: string;
3277
+ version: string;
3278
+ integrity: string;
3279
+ distribution: {
3280
+ kind: "cli-bundled";
3281
+ locator: string;
3282
+ } | {
3283
+ kind: "bundled";
3284
+ locator: string;
3285
+ } | {
3286
+ kind: "workspace";
3287
+ locator: string;
3288
+ } | {
3289
+ kind: "package";
3290
+ locator: string;
3291
+ } | {
3292
+ kind: "marketplace";
3293
+ locator: string;
3294
+ };
3295
+ config?: Record<string, import("./indexerRegistry.js").IndexerJson> | undefined;
3296
+ }[];
3297
+ customization?: {
3298
+ mode: "replace" | "extend";
3299
+ } | undefined;
3300
+ }[];
3301
+ };
3302
+ project_ref: string;
3303
+ requirement_set_digest: string;
3304
+ registry_digest: string;
3305
+ indexer_selection_digest: string;
3306
+ proposal_digest: string;
3307
+ }>;
3308
+ export type IndexerProviderSelectionProposalInput = z.infer<typeof indexerProviderSelectionProposalInputSchema>;
3309
+ export type IndexerProviderSelectionProposal = z.infer<typeof indexerProviderSelectionProposalSchema>;
3310
+ export declare function buildIndexerProviderSelectionProposal(value: unknown): IndexerProviderSelectionProposal;
3311
+ export declare function validateIndexerProviderSelectionProposal(value: unknown): IndexerProviderSelectionProposal;