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