@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,2141 @@
1
+ import { z } from "zod";
2
+ export declare const indexerTargetResolutionViewSchema: z.ZodEffects<z.ZodObject<{
3
+ protocol: z.ZodLiteral<"context.indexer.target-resolution-view/v1">;
4
+ view_digest: z.ZodString;
5
+ requirement_ref: z.ZodString;
6
+ subject_key_schema_digest: z.ZodString;
7
+ query_digest: z.ZodString;
8
+ entries: z.ZodArray<z.ZodUnion<[z.ZodObject<{
9
+ query_ref: z.ZodString;
10
+ state: z.ZodLiteral<"resolved">;
11
+ subject_key: z.ZodObject<{
12
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
13
+ namespace: z.ZodEffects<z.ZodString, string, string>;
14
+ kind: z.ZodEffects<z.ZodString, string, string>;
15
+ local_key: z.ZodEffects<z.ZodString, string, string>;
16
+ }, "strict", z.ZodTypeAny, {
17
+ kind: string;
18
+ protocol: "context.subject-key/v1";
19
+ namespace: string;
20
+ local_key: string;
21
+ }, {
22
+ kind: string;
23
+ protocol: "context.subject-key/v1";
24
+ namespace: string;
25
+ local_key: string;
26
+ }>;
27
+ node_ref: z.ZodString;
28
+ }, "strict", z.ZodTypeAny, {
29
+ state: "resolved";
30
+ subject_key: {
31
+ kind: string;
32
+ protocol: "context.subject-key/v1";
33
+ namespace: string;
34
+ local_key: string;
35
+ };
36
+ query_ref: string;
37
+ node_ref: string;
38
+ }, {
39
+ state: "resolved";
40
+ subject_key: {
41
+ kind: string;
42
+ protocol: "context.subject-key/v1";
43
+ namespace: string;
44
+ local_key: string;
45
+ };
46
+ query_ref: string;
47
+ node_ref: string;
48
+ }>, z.ZodObject<{
49
+ query_ref: z.ZodString;
50
+ state: z.ZodLiteral<"absent">;
51
+ }, "strict", z.ZodTypeAny, {
52
+ state: "absent";
53
+ query_ref: string;
54
+ }, {
55
+ state: "absent";
56
+ query_ref: string;
57
+ }>, z.ZodEffects<z.ZodObject<{
58
+ query_ref: z.ZodString;
59
+ state: z.ZodLiteral<"ambiguous">;
60
+ conflicting_node_refs: z.ZodArray<z.ZodString, "many">;
61
+ }, "strict", z.ZodTypeAny, {
62
+ state: "ambiguous";
63
+ query_ref: string;
64
+ conflicting_node_refs: string[];
65
+ }, {
66
+ state: "ambiguous";
67
+ query_ref: string;
68
+ conflicting_node_refs: string[];
69
+ }>, {
70
+ state: "ambiguous";
71
+ query_ref: string;
72
+ conflicting_node_refs: string[];
73
+ }, {
74
+ state: "ambiguous";
75
+ query_ref: string;
76
+ conflicting_node_refs: string[];
77
+ }>]>, "many">;
78
+ }, "strict", z.ZodTypeAny, {
79
+ entries: ({
80
+ state: "resolved";
81
+ subject_key: {
82
+ kind: string;
83
+ protocol: "context.subject-key/v1";
84
+ namespace: string;
85
+ local_key: string;
86
+ };
87
+ query_ref: string;
88
+ node_ref: string;
89
+ } | {
90
+ state: "absent";
91
+ query_ref: string;
92
+ } | {
93
+ state: "ambiguous";
94
+ query_ref: string;
95
+ conflicting_node_refs: string[];
96
+ })[];
97
+ protocol: "context.indexer.target-resolution-view/v1";
98
+ requirement_ref: string;
99
+ view_digest: string;
100
+ subject_key_schema_digest: string;
101
+ query_digest: string;
102
+ }, {
103
+ entries: ({
104
+ state: "resolved";
105
+ subject_key: {
106
+ kind: string;
107
+ protocol: "context.subject-key/v1";
108
+ namespace: string;
109
+ local_key: string;
110
+ };
111
+ query_ref: string;
112
+ node_ref: string;
113
+ } | {
114
+ state: "absent";
115
+ query_ref: string;
116
+ } | {
117
+ state: "ambiguous";
118
+ query_ref: string;
119
+ conflicting_node_refs: string[];
120
+ })[];
121
+ protocol: "context.indexer.target-resolution-view/v1";
122
+ requirement_ref: string;
123
+ view_digest: string;
124
+ subject_key_schema_digest: string;
125
+ query_digest: string;
126
+ }>, {
127
+ entries: ({
128
+ state: "resolved";
129
+ subject_key: {
130
+ kind: string;
131
+ protocol: "context.subject-key/v1";
132
+ namespace: string;
133
+ local_key: string;
134
+ };
135
+ query_ref: string;
136
+ node_ref: string;
137
+ } | {
138
+ state: "absent";
139
+ query_ref: string;
140
+ } | {
141
+ state: "ambiguous";
142
+ query_ref: string;
143
+ conflicting_node_refs: string[];
144
+ })[];
145
+ protocol: "context.indexer.target-resolution-view/v1";
146
+ requirement_ref: string;
147
+ view_digest: string;
148
+ subject_key_schema_digest: string;
149
+ query_digest: string;
150
+ }, {
151
+ entries: ({
152
+ state: "resolved";
153
+ subject_key: {
154
+ kind: string;
155
+ protocol: "context.subject-key/v1";
156
+ namespace: string;
157
+ local_key: string;
158
+ };
159
+ query_ref: string;
160
+ node_ref: string;
161
+ } | {
162
+ state: "absent";
163
+ query_ref: string;
164
+ } | {
165
+ state: "ambiguous";
166
+ query_ref: string;
167
+ conflicting_node_refs: string[];
168
+ })[];
169
+ protocol: "context.indexer.target-resolution-view/v1";
170
+ requirement_ref: string;
171
+ view_digest: string;
172
+ subject_key_schema_digest: string;
173
+ query_digest: string;
174
+ }>;
175
+ export type IndexerTargetResolutionView = z.infer<typeof indexerTargetResolutionViewSchema>;
176
+ export declare function indexerTargetResolutionViewDigest(value: Omit<IndexerTargetResolutionView, "view_digest">): string;
177
+ export declare function buildIndexerTargetResolutionView(input: Omit<IndexerTargetResolutionView, "protocol" | "view_digest">): IndexerTargetResolutionView;
178
+ export declare function validateIndexerTargetResolutionView(value: unknown): IndexerTargetResolutionView;
179
+ declare const partitionWorksetSchema: z.ZodEffects<z.ZodObject<{
180
+ stage: z.ZodLiteral<"partition">;
181
+ partition_subject_key: z.ZodObject<{
182
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
183
+ namespace: z.ZodEffects<z.ZodString, string, string>;
184
+ kind: z.ZodEffects<z.ZodString, string, string>;
185
+ local_key: z.ZodEffects<z.ZodString, string, string>;
186
+ }, "strict", z.ZodTypeAny, {
187
+ kind: string;
188
+ protocol: "context.subject-key/v1";
189
+ namespace: string;
190
+ local_key: string;
191
+ }, {
192
+ kind: string;
193
+ protocol: "context.subject-key/v1";
194
+ namespace: string;
195
+ local_key: string;
196
+ }>;
197
+ strategy_set_digest: z.ZodString;
198
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
199
+ partition_input_digests: z.ZodArray<z.ZodString, "many">;
200
+ partition_inventory_digest: z.ZodString;
201
+ allowed_question_target_refs: z.ZodArray<z.ZodString, "many">;
202
+ protocol: z.ZodLiteral<"context.indexer.main-workset/v1">;
203
+ workset_digest: z.ZodString;
204
+ operation: z.ZodLiteral<"main-index">;
205
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
206
+ requirement_ref: z.ZodString;
207
+ owner_cell_refs: z.ZodArray<z.ZodString, "many">;
208
+ source_ref: z.ZodString;
209
+ module_ref: z.ZodNullable<z.ZodString>;
210
+ primary_registry_projection_digest: z.ZodString;
211
+ requirement_set_digest: z.ZodString;
212
+ primary_execution_fingerprint: z.ZodString;
213
+ profile_contract_digest: z.ZodString;
214
+ subject_key_schema_digest: z.ZodString;
215
+ source_scope_digest: z.ZodString;
216
+ parser_contract_digest: z.ZodString;
217
+ primary_resource_binding_digest: z.ZodString;
218
+ question_target_inventory_digest: z.ZodString;
219
+ }, "strict", z.ZodTypeAny, {
220
+ source_ref: string;
221
+ operation: "main-index";
222
+ protocol: "context.indexer.main-workset/v1";
223
+ requirement_ref: string;
224
+ workset_digest: string;
225
+ module_ref: string | null;
226
+ indexer_id: string;
227
+ profile_contract_digest: string;
228
+ reader_question_refs: string[];
229
+ subject_key_schema_digest: string;
230
+ stage: "partition";
231
+ partition_subject_key: {
232
+ kind: string;
233
+ protocol: "context.subject-key/v1";
234
+ namespace: string;
235
+ local_key: string;
236
+ };
237
+ strategy_set_digest: string;
238
+ partition_input_digests: string[];
239
+ partition_inventory_digest: string;
240
+ allowed_question_target_refs: string[];
241
+ owner_cell_refs: string[];
242
+ primary_registry_projection_digest: string;
243
+ requirement_set_digest: string;
244
+ primary_execution_fingerprint: string;
245
+ source_scope_digest: string;
246
+ parser_contract_digest: string;
247
+ primary_resource_binding_digest: string;
248
+ question_target_inventory_digest: string;
249
+ }, {
250
+ source_ref: string;
251
+ operation: "main-index";
252
+ protocol: "context.indexer.main-workset/v1";
253
+ requirement_ref: string;
254
+ workset_digest: string;
255
+ module_ref: string | null;
256
+ indexer_id: string;
257
+ profile_contract_digest: string;
258
+ reader_question_refs: string[];
259
+ subject_key_schema_digest: string;
260
+ stage: "partition";
261
+ partition_subject_key: {
262
+ kind: string;
263
+ protocol: "context.subject-key/v1";
264
+ namespace: string;
265
+ local_key: string;
266
+ };
267
+ strategy_set_digest: string;
268
+ partition_input_digests: string[];
269
+ partition_inventory_digest: string;
270
+ allowed_question_target_refs: string[];
271
+ owner_cell_refs: string[];
272
+ primary_registry_projection_digest: string;
273
+ requirement_set_digest: string;
274
+ primary_execution_fingerprint: string;
275
+ source_scope_digest: string;
276
+ parser_contract_digest: string;
277
+ primary_resource_binding_digest: string;
278
+ question_target_inventory_digest: string;
279
+ }>, {
280
+ source_ref: string;
281
+ operation: "main-index";
282
+ protocol: "context.indexer.main-workset/v1";
283
+ requirement_ref: string;
284
+ workset_digest: string;
285
+ module_ref: string | null;
286
+ indexer_id: string;
287
+ profile_contract_digest: string;
288
+ reader_question_refs: string[];
289
+ subject_key_schema_digest: string;
290
+ stage: "partition";
291
+ partition_subject_key: {
292
+ kind: string;
293
+ protocol: "context.subject-key/v1";
294
+ namespace: string;
295
+ local_key: string;
296
+ };
297
+ strategy_set_digest: string;
298
+ partition_input_digests: string[];
299
+ partition_inventory_digest: string;
300
+ allowed_question_target_refs: string[];
301
+ owner_cell_refs: string[];
302
+ primary_registry_projection_digest: string;
303
+ requirement_set_digest: string;
304
+ primary_execution_fingerprint: string;
305
+ source_scope_digest: string;
306
+ parser_contract_digest: string;
307
+ primary_resource_binding_digest: string;
308
+ question_target_inventory_digest: string;
309
+ }, {
310
+ source_ref: string;
311
+ operation: "main-index";
312
+ protocol: "context.indexer.main-workset/v1";
313
+ requirement_ref: string;
314
+ workset_digest: string;
315
+ module_ref: string | null;
316
+ indexer_id: string;
317
+ profile_contract_digest: string;
318
+ reader_question_refs: string[];
319
+ subject_key_schema_digest: string;
320
+ stage: "partition";
321
+ partition_subject_key: {
322
+ kind: string;
323
+ protocol: "context.subject-key/v1";
324
+ namespace: string;
325
+ local_key: string;
326
+ };
327
+ strategy_set_digest: string;
328
+ partition_input_digests: string[];
329
+ partition_inventory_digest: string;
330
+ allowed_question_target_refs: string[];
331
+ owner_cell_refs: string[];
332
+ primary_registry_projection_digest: string;
333
+ requirement_set_digest: string;
334
+ primary_execution_fingerprint: string;
335
+ source_scope_digest: string;
336
+ parser_contract_digest: string;
337
+ primary_resource_binding_digest: string;
338
+ question_target_inventory_digest: string;
339
+ }>;
340
+ declare const authorWorksetSchema: z.ZodEffects<z.ZodObject<{
341
+ stage: z.ZodLiteral<"author">;
342
+ partition_plan_binding_digest: z.ZodString;
343
+ group_key: z.ZodString;
344
+ logical_unit_ref: z.ZodString;
345
+ member_ids_digest: z.ZodString;
346
+ member_inventory_digest: z.ZodString;
347
+ group_projection_digest: z.ZodString;
348
+ group_dependency_view_digest: z.ZodString;
349
+ target_resolution_view: z.ZodOptional<z.ZodEffects<z.ZodObject<{
350
+ protocol: z.ZodLiteral<"context.indexer.target-resolution-view/v1">;
351
+ view_digest: z.ZodString;
352
+ requirement_ref: z.ZodString;
353
+ subject_key_schema_digest: z.ZodString;
354
+ query_digest: z.ZodString;
355
+ entries: z.ZodArray<z.ZodUnion<[z.ZodObject<{
356
+ query_ref: z.ZodString;
357
+ state: z.ZodLiteral<"resolved">;
358
+ subject_key: z.ZodObject<{
359
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
360
+ namespace: z.ZodEffects<z.ZodString, string, string>;
361
+ kind: z.ZodEffects<z.ZodString, string, string>;
362
+ local_key: z.ZodEffects<z.ZodString, string, string>;
363
+ }, "strict", z.ZodTypeAny, {
364
+ kind: string;
365
+ protocol: "context.subject-key/v1";
366
+ namespace: string;
367
+ local_key: string;
368
+ }, {
369
+ kind: string;
370
+ protocol: "context.subject-key/v1";
371
+ namespace: string;
372
+ local_key: string;
373
+ }>;
374
+ node_ref: z.ZodString;
375
+ }, "strict", z.ZodTypeAny, {
376
+ state: "resolved";
377
+ subject_key: {
378
+ kind: string;
379
+ protocol: "context.subject-key/v1";
380
+ namespace: string;
381
+ local_key: string;
382
+ };
383
+ query_ref: string;
384
+ node_ref: string;
385
+ }, {
386
+ state: "resolved";
387
+ subject_key: {
388
+ kind: string;
389
+ protocol: "context.subject-key/v1";
390
+ namespace: string;
391
+ local_key: string;
392
+ };
393
+ query_ref: string;
394
+ node_ref: string;
395
+ }>, z.ZodObject<{
396
+ query_ref: z.ZodString;
397
+ state: z.ZodLiteral<"absent">;
398
+ }, "strict", z.ZodTypeAny, {
399
+ state: "absent";
400
+ query_ref: string;
401
+ }, {
402
+ state: "absent";
403
+ query_ref: string;
404
+ }>, z.ZodEffects<z.ZodObject<{
405
+ query_ref: z.ZodString;
406
+ state: z.ZodLiteral<"ambiguous">;
407
+ conflicting_node_refs: z.ZodArray<z.ZodString, "many">;
408
+ }, "strict", z.ZodTypeAny, {
409
+ state: "ambiguous";
410
+ query_ref: string;
411
+ conflicting_node_refs: string[];
412
+ }, {
413
+ state: "ambiguous";
414
+ query_ref: string;
415
+ conflicting_node_refs: string[];
416
+ }>, {
417
+ state: "ambiguous";
418
+ query_ref: string;
419
+ conflicting_node_refs: string[];
420
+ }, {
421
+ state: "ambiguous";
422
+ query_ref: string;
423
+ conflicting_node_refs: string[];
424
+ }>]>, "many">;
425
+ }, "strict", z.ZodTypeAny, {
426
+ entries: ({
427
+ state: "resolved";
428
+ subject_key: {
429
+ kind: string;
430
+ protocol: "context.subject-key/v1";
431
+ namespace: string;
432
+ local_key: string;
433
+ };
434
+ query_ref: string;
435
+ node_ref: string;
436
+ } | {
437
+ state: "absent";
438
+ query_ref: string;
439
+ } | {
440
+ state: "ambiguous";
441
+ query_ref: string;
442
+ conflicting_node_refs: string[];
443
+ })[];
444
+ protocol: "context.indexer.target-resolution-view/v1";
445
+ requirement_ref: string;
446
+ view_digest: string;
447
+ subject_key_schema_digest: string;
448
+ query_digest: string;
449
+ }, {
450
+ entries: ({
451
+ state: "resolved";
452
+ subject_key: {
453
+ kind: string;
454
+ protocol: "context.subject-key/v1";
455
+ namespace: string;
456
+ local_key: string;
457
+ };
458
+ query_ref: string;
459
+ node_ref: string;
460
+ } | {
461
+ state: "absent";
462
+ query_ref: string;
463
+ } | {
464
+ state: "ambiguous";
465
+ query_ref: string;
466
+ conflicting_node_refs: string[];
467
+ })[];
468
+ protocol: "context.indexer.target-resolution-view/v1";
469
+ requirement_ref: string;
470
+ view_digest: string;
471
+ subject_key_schema_digest: string;
472
+ query_digest: string;
473
+ }>, {
474
+ entries: ({
475
+ state: "resolved";
476
+ subject_key: {
477
+ kind: string;
478
+ protocol: "context.subject-key/v1";
479
+ namespace: string;
480
+ local_key: string;
481
+ };
482
+ query_ref: string;
483
+ node_ref: string;
484
+ } | {
485
+ state: "absent";
486
+ query_ref: string;
487
+ } | {
488
+ state: "ambiguous";
489
+ query_ref: string;
490
+ conflicting_node_refs: string[];
491
+ })[];
492
+ protocol: "context.indexer.target-resolution-view/v1";
493
+ requirement_ref: string;
494
+ view_digest: string;
495
+ subject_key_schema_digest: string;
496
+ query_digest: string;
497
+ }, {
498
+ entries: ({
499
+ state: "resolved";
500
+ subject_key: {
501
+ kind: string;
502
+ protocol: "context.subject-key/v1";
503
+ namespace: string;
504
+ local_key: string;
505
+ };
506
+ query_ref: string;
507
+ node_ref: string;
508
+ } | {
509
+ state: "absent";
510
+ query_ref: string;
511
+ } | {
512
+ state: "ambiguous";
513
+ query_ref: string;
514
+ conflicting_node_refs: string[];
515
+ })[];
516
+ protocol: "context.indexer.target-resolution-view/v1";
517
+ requirement_ref: string;
518
+ view_digest: string;
519
+ subject_key_schema_digest: string;
520
+ query_digest: string;
521
+ }>>;
522
+ allowed_artifact_policy_variants: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
523
+ artifact_policy_eligibility_digest: z.ZodString;
524
+ protocol: z.ZodLiteral<"context.indexer.main-workset/v1">;
525
+ workset_digest: z.ZodString;
526
+ operation: z.ZodLiteral<"main-index">;
527
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
528
+ requirement_ref: z.ZodString;
529
+ owner_cell_refs: z.ZodArray<z.ZodString, "many">;
530
+ source_ref: z.ZodString;
531
+ module_ref: z.ZodNullable<z.ZodString>;
532
+ primary_registry_projection_digest: z.ZodString;
533
+ requirement_set_digest: z.ZodString;
534
+ primary_execution_fingerprint: z.ZodString;
535
+ profile_contract_digest: z.ZodString;
536
+ subject_key_schema_digest: z.ZodString;
537
+ source_scope_digest: z.ZodString;
538
+ parser_contract_digest: z.ZodString;
539
+ primary_resource_binding_digest: z.ZodString;
540
+ question_target_inventory_digest: z.ZodString;
541
+ }, "strict", z.ZodTypeAny, {
542
+ source_ref: string;
543
+ operation: "main-index";
544
+ protocol: "context.indexer.main-workset/v1";
545
+ requirement_ref: string;
546
+ workset_digest: string;
547
+ module_ref: string | null;
548
+ indexer_id: string;
549
+ profile_contract_digest: string;
550
+ logical_unit_ref: string;
551
+ subject_key_schema_digest: string;
552
+ stage: "author";
553
+ owner_cell_refs: string[];
554
+ primary_registry_projection_digest: string;
555
+ requirement_set_digest: string;
556
+ primary_execution_fingerprint: string;
557
+ source_scope_digest: string;
558
+ parser_contract_digest: string;
559
+ primary_resource_binding_digest: string;
560
+ question_target_inventory_digest: string;
561
+ partition_plan_binding_digest: string;
562
+ group_key: string;
563
+ member_ids_digest: string;
564
+ member_inventory_digest: string;
565
+ group_projection_digest: string;
566
+ group_dependency_view_digest: string;
567
+ allowed_artifact_policy_variants: string[];
568
+ artifact_policy_eligibility_digest: string;
569
+ target_resolution_view?: {
570
+ entries: ({
571
+ state: "resolved";
572
+ subject_key: {
573
+ kind: string;
574
+ protocol: "context.subject-key/v1";
575
+ namespace: string;
576
+ local_key: string;
577
+ };
578
+ query_ref: string;
579
+ node_ref: string;
580
+ } | {
581
+ state: "absent";
582
+ query_ref: string;
583
+ } | {
584
+ state: "ambiguous";
585
+ query_ref: string;
586
+ conflicting_node_refs: string[];
587
+ })[];
588
+ protocol: "context.indexer.target-resolution-view/v1";
589
+ requirement_ref: string;
590
+ view_digest: string;
591
+ subject_key_schema_digest: string;
592
+ query_digest: string;
593
+ } | undefined;
594
+ }, {
595
+ source_ref: string;
596
+ operation: "main-index";
597
+ protocol: "context.indexer.main-workset/v1";
598
+ requirement_ref: string;
599
+ workset_digest: string;
600
+ module_ref: string | null;
601
+ indexer_id: string;
602
+ profile_contract_digest: string;
603
+ logical_unit_ref: string;
604
+ subject_key_schema_digest: string;
605
+ stage: "author";
606
+ owner_cell_refs: string[];
607
+ primary_registry_projection_digest: string;
608
+ requirement_set_digest: string;
609
+ primary_execution_fingerprint: string;
610
+ source_scope_digest: string;
611
+ parser_contract_digest: string;
612
+ primary_resource_binding_digest: string;
613
+ question_target_inventory_digest: string;
614
+ partition_plan_binding_digest: string;
615
+ group_key: string;
616
+ member_ids_digest: string;
617
+ member_inventory_digest: string;
618
+ group_projection_digest: string;
619
+ group_dependency_view_digest: string;
620
+ allowed_artifact_policy_variants: string[];
621
+ artifact_policy_eligibility_digest: string;
622
+ target_resolution_view?: {
623
+ entries: ({
624
+ state: "resolved";
625
+ subject_key: {
626
+ kind: string;
627
+ protocol: "context.subject-key/v1";
628
+ namespace: string;
629
+ local_key: string;
630
+ };
631
+ query_ref: string;
632
+ node_ref: string;
633
+ } | {
634
+ state: "absent";
635
+ query_ref: string;
636
+ } | {
637
+ state: "ambiguous";
638
+ query_ref: string;
639
+ conflicting_node_refs: string[];
640
+ })[];
641
+ protocol: "context.indexer.target-resolution-view/v1";
642
+ requirement_ref: string;
643
+ view_digest: string;
644
+ subject_key_schema_digest: string;
645
+ query_digest: string;
646
+ } | undefined;
647
+ }>, {
648
+ source_ref: string;
649
+ operation: "main-index";
650
+ protocol: "context.indexer.main-workset/v1";
651
+ requirement_ref: string;
652
+ workset_digest: string;
653
+ module_ref: string | null;
654
+ indexer_id: string;
655
+ profile_contract_digest: string;
656
+ logical_unit_ref: string;
657
+ subject_key_schema_digest: string;
658
+ stage: "author";
659
+ owner_cell_refs: string[];
660
+ primary_registry_projection_digest: string;
661
+ requirement_set_digest: string;
662
+ primary_execution_fingerprint: string;
663
+ source_scope_digest: string;
664
+ parser_contract_digest: string;
665
+ primary_resource_binding_digest: string;
666
+ question_target_inventory_digest: string;
667
+ partition_plan_binding_digest: string;
668
+ group_key: string;
669
+ member_ids_digest: string;
670
+ member_inventory_digest: string;
671
+ group_projection_digest: string;
672
+ group_dependency_view_digest: string;
673
+ allowed_artifact_policy_variants: string[];
674
+ artifact_policy_eligibility_digest: string;
675
+ target_resolution_view?: {
676
+ entries: ({
677
+ state: "resolved";
678
+ subject_key: {
679
+ kind: string;
680
+ protocol: "context.subject-key/v1";
681
+ namespace: string;
682
+ local_key: string;
683
+ };
684
+ query_ref: string;
685
+ node_ref: string;
686
+ } | {
687
+ state: "absent";
688
+ query_ref: string;
689
+ } | {
690
+ state: "ambiguous";
691
+ query_ref: string;
692
+ conflicting_node_refs: string[];
693
+ })[];
694
+ protocol: "context.indexer.target-resolution-view/v1";
695
+ requirement_ref: string;
696
+ view_digest: string;
697
+ subject_key_schema_digest: string;
698
+ query_digest: string;
699
+ } | undefined;
700
+ }, {
701
+ source_ref: string;
702
+ operation: "main-index";
703
+ protocol: "context.indexer.main-workset/v1";
704
+ requirement_ref: string;
705
+ workset_digest: string;
706
+ module_ref: string | null;
707
+ indexer_id: string;
708
+ profile_contract_digest: string;
709
+ logical_unit_ref: string;
710
+ subject_key_schema_digest: string;
711
+ stage: "author";
712
+ owner_cell_refs: string[];
713
+ primary_registry_projection_digest: string;
714
+ requirement_set_digest: string;
715
+ primary_execution_fingerprint: string;
716
+ source_scope_digest: string;
717
+ parser_contract_digest: string;
718
+ primary_resource_binding_digest: string;
719
+ question_target_inventory_digest: string;
720
+ partition_plan_binding_digest: string;
721
+ group_key: string;
722
+ member_ids_digest: string;
723
+ member_inventory_digest: string;
724
+ group_projection_digest: string;
725
+ group_dependency_view_digest: string;
726
+ allowed_artifact_policy_variants: string[];
727
+ artifact_policy_eligibility_digest: string;
728
+ target_resolution_view?: {
729
+ entries: ({
730
+ state: "resolved";
731
+ subject_key: {
732
+ kind: string;
733
+ protocol: "context.subject-key/v1";
734
+ namespace: string;
735
+ local_key: string;
736
+ };
737
+ query_ref: string;
738
+ node_ref: string;
739
+ } | {
740
+ state: "absent";
741
+ query_ref: string;
742
+ } | {
743
+ state: "ambiguous";
744
+ query_ref: string;
745
+ conflicting_node_refs: string[];
746
+ })[];
747
+ protocol: "context.indexer.target-resolution-view/v1";
748
+ requirement_ref: string;
749
+ view_digest: string;
750
+ subject_key_schema_digest: string;
751
+ query_digest: string;
752
+ } | undefined;
753
+ }>;
754
+ export declare const indexerMainWorksetSchema: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
755
+ stage: z.ZodLiteral<"partition">;
756
+ partition_subject_key: z.ZodObject<{
757
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
758
+ namespace: z.ZodEffects<z.ZodString, string, string>;
759
+ kind: z.ZodEffects<z.ZodString, string, string>;
760
+ local_key: z.ZodEffects<z.ZodString, string, string>;
761
+ }, "strict", z.ZodTypeAny, {
762
+ kind: string;
763
+ protocol: "context.subject-key/v1";
764
+ namespace: string;
765
+ local_key: string;
766
+ }, {
767
+ kind: string;
768
+ protocol: "context.subject-key/v1";
769
+ namespace: string;
770
+ local_key: string;
771
+ }>;
772
+ strategy_set_digest: z.ZodString;
773
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
774
+ partition_input_digests: z.ZodArray<z.ZodString, "many">;
775
+ partition_inventory_digest: z.ZodString;
776
+ allowed_question_target_refs: z.ZodArray<z.ZodString, "many">;
777
+ protocol: z.ZodLiteral<"context.indexer.main-workset/v1">;
778
+ workset_digest: z.ZodString;
779
+ operation: z.ZodLiteral<"main-index">;
780
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
781
+ requirement_ref: z.ZodString;
782
+ owner_cell_refs: z.ZodArray<z.ZodString, "many">;
783
+ source_ref: z.ZodString;
784
+ module_ref: z.ZodNullable<z.ZodString>;
785
+ primary_registry_projection_digest: z.ZodString;
786
+ requirement_set_digest: z.ZodString;
787
+ primary_execution_fingerprint: z.ZodString;
788
+ profile_contract_digest: z.ZodString;
789
+ subject_key_schema_digest: z.ZodString;
790
+ source_scope_digest: z.ZodString;
791
+ parser_contract_digest: z.ZodString;
792
+ primary_resource_binding_digest: z.ZodString;
793
+ question_target_inventory_digest: z.ZodString;
794
+ }, "strict", z.ZodTypeAny, {
795
+ source_ref: string;
796
+ operation: "main-index";
797
+ protocol: "context.indexer.main-workset/v1";
798
+ requirement_ref: string;
799
+ workset_digest: string;
800
+ module_ref: string | null;
801
+ indexer_id: string;
802
+ profile_contract_digest: string;
803
+ reader_question_refs: string[];
804
+ subject_key_schema_digest: string;
805
+ stage: "partition";
806
+ partition_subject_key: {
807
+ kind: string;
808
+ protocol: "context.subject-key/v1";
809
+ namespace: string;
810
+ local_key: string;
811
+ };
812
+ strategy_set_digest: string;
813
+ partition_input_digests: string[];
814
+ partition_inventory_digest: string;
815
+ allowed_question_target_refs: string[];
816
+ owner_cell_refs: string[];
817
+ primary_registry_projection_digest: string;
818
+ requirement_set_digest: string;
819
+ primary_execution_fingerprint: string;
820
+ source_scope_digest: string;
821
+ parser_contract_digest: string;
822
+ primary_resource_binding_digest: string;
823
+ question_target_inventory_digest: string;
824
+ }, {
825
+ source_ref: string;
826
+ operation: "main-index";
827
+ protocol: "context.indexer.main-workset/v1";
828
+ requirement_ref: string;
829
+ workset_digest: string;
830
+ module_ref: string | null;
831
+ indexer_id: string;
832
+ profile_contract_digest: string;
833
+ reader_question_refs: string[];
834
+ subject_key_schema_digest: string;
835
+ stage: "partition";
836
+ partition_subject_key: {
837
+ kind: string;
838
+ protocol: "context.subject-key/v1";
839
+ namespace: string;
840
+ local_key: string;
841
+ };
842
+ strategy_set_digest: string;
843
+ partition_input_digests: string[];
844
+ partition_inventory_digest: string;
845
+ allowed_question_target_refs: string[];
846
+ owner_cell_refs: string[];
847
+ primary_registry_projection_digest: string;
848
+ requirement_set_digest: string;
849
+ primary_execution_fingerprint: string;
850
+ source_scope_digest: string;
851
+ parser_contract_digest: string;
852
+ primary_resource_binding_digest: string;
853
+ question_target_inventory_digest: string;
854
+ }>, {
855
+ source_ref: string;
856
+ operation: "main-index";
857
+ protocol: "context.indexer.main-workset/v1";
858
+ requirement_ref: string;
859
+ workset_digest: string;
860
+ module_ref: string | null;
861
+ indexer_id: string;
862
+ profile_contract_digest: string;
863
+ reader_question_refs: string[];
864
+ subject_key_schema_digest: string;
865
+ stage: "partition";
866
+ partition_subject_key: {
867
+ kind: string;
868
+ protocol: "context.subject-key/v1";
869
+ namespace: string;
870
+ local_key: string;
871
+ };
872
+ strategy_set_digest: string;
873
+ partition_input_digests: string[];
874
+ partition_inventory_digest: string;
875
+ allowed_question_target_refs: string[];
876
+ owner_cell_refs: string[];
877
+ primary_registry_projection_digest: string;
878
+ requirement_set_digest: string;
879
+ primary_execution_fingerprint: string;
880
+ source_scope_digest: string;
881
+ parser_contract_digest: string;
882
+ primary_resource_binding_digest: string;
883
+ question_target_inventory_digest: string;
884
+ }, {
885
+ source_ref: string;
886
+ operation: "main-index";
887
+ protocol: "context.indexer.main-workset/v1";
888
+ requirement_ref: string;
889
+ workset_digest: string;
890
+ module_ref: string | null;
891
+ indexer_id: string;
892
+ profile_contract_digest: string;
893
+ reader_question_refs: string[];
894
+ subject_key_schema_digest: string;
895
+ stage: "partition";
896
+ partition_subject_key: {
897
+ kind: string;
898
+ protocol: "context.subject-key/v1";
899
+ namespace: string;
900
+ local_key: string;
901
+ };
902
+ strategy_set_digest: string;
903
+ partition_input_digests: string[];
904
+ partition_inventory_digest: string;
905
+ allowed_question_target_refs: string[];
906
+ owner_cell_refs: string[];
907
+ primary_registry_projection_digest: string;
908
+ requirement_set_digest: string;
909
+ primary_execution_fingerprint: string;
910
+ source_scope_digest: string;
911
+ parser_contract_digest: string;
912
+ primary_resource_binding_digest: string;
913
+ question_target_inventory_digest: string;
914
+ }>, z.ZodEffects<z.ZodObject<{
915
+ stage: z.ZodLiteral<"author">;
916
+ partition_plan_binding_digest: z.ZodString;
917
+ group_key: z.ZodString;
918
+ logical_unit_ref: z.ZodString;
919
+ member_ids_digest: z.ZodString;
920
+ member_inventory_digest: z.ZodString;
921
+ group_projection_digest: z.ZodString;
922
+ group_dependency_view_digest: z.ZodString;
923
+ target_resolution_view: z.ZodOptional<z.ZodEffects<z.ZodObject<{
924
+ protocol: z.ZodLiteral<"context.indexer.target-resolution-view/v1">;
925
+ view_digest: z.ZodString;
926
+ requirement_ref: z.ZodString;
927
+ subject_key_schema_digest: z.ZodString;
928
+ query_digest: z.ZodString;
929
+ entries: z.ZodArray<z.ZodUnion<[z.ZodObject<{
930
+ query_ref: z.ZodString;
931
+ state: z.ZodLiteral<"resolved">;
932
+ subject_key: z.ZodObject<{
933
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
934
+ namespace: z.ZodEffects<z.ZodString, string, string>;
935
+ kind: z.ZodEffects<z.ZodString, string, string>;
936
+ local_key: z.ZodEffects<z.ZodString, string, string>;
937
+ }, "strict", z.ZodTypeAny, {
938
+ kind: string;
939
+ protocol: "context.subject-key/v1";
940
+ namespace: string;
941
+ local_key: string;
942
+ }, {
943
+ kind: string;
944
+ protocol: "context.subject-key/v1";
945
+ namespace: string;
946
+ local_key: string;
947
+ }>;
948
+ node_ref: z.ZodString;
949
+ }, "strict", z.ZodTypeAny, {
950
+ state: "resolved";
951
+ subject_key: {
952
+ kind: string;
953
+ protocol: "context.subject-key/v1";
954
+ namespace: string;
955
+ local_key: string;
956
+ };
957
+ query_ref: string;
958
+ node_ref: string;
959
+ }, {
960
+ state: "resolved";
961
+ subject_key: {
962
+ kind: string;
963
+ protocol: "context.subject-key/v1";
964
+ namespace: string;
965
+ local_key: string;
966
+ };
967
+ query_ref: string;
968
+ node_ref: string;
969
+ }>, z.ZodObject<{
970
+ query_ref: z.ZodString;
971
+ state: z.ZodLiteral<"absent">;
972
+ }, "strict", z.ZodTypeAny, {
973
+ state: "absent";
974
+ query_ref: string;
975
+ }, {
976
+ state: "absent";
977
+ query_ref: string;
978
+ }>, z.ZodEffects<z.ZodObject<{
979
+ query_ref: z.ZodString;
980
+ state: z.ZodLiteral<"ambiguous">;
981
+ conflicting_node_refs: z.ZodArray<z.ZodString, "many">;
982
+ }, "strict", z.ZodTypeAny, {
983
+ state: "ambiguous";
984
+ query_ref: string;
985
+ conflicting_node_refs: string[];
986
+ }, {
987
+ state: "ambiguous";
988
+ query_ref: string;
989
+ conflicting_node_refs: string[];
990
+ }>, {
991
+ state: "ambiguous";
992
+ query_ref: string;
993
+ conflicting_node_refs: string[];
994
+ }, {
995
+ state: "ambiguous";
996
+ query_ref: string;
997
+ conflicting_node_refs: string[];
998
+ }>]>, "many">;
999
+ }, "strict", z.ZodTypeAny, {
1000
+ entries: ({
1001
+ state: "resolved";
1002
+ subject_key: {
1003
+ kind: string;
1004
+ protocol: "context.subject-key/v1";
1005
+ namespace: string;
1006
+ local_key: string;
1007
+ };
1008
+ query_ref: string;
1009
+ node_ref: string;
1010
+ } | {
1011
+ state: "absent";
1012
+ query_ref: string;
1013
+ } | {
1014
+ state: "ambiguous";
1015
+ query_ref: string;
1016
+ conflicting_node_refs: string[];
1017
+ })[];
1018
+ protocol: "context.indexer.target-resolution-view/v1";
1019
+ requirement_ref: string;
1020
+ view_digest: string;
1021
+ subject_key_schema_digest: string;
1022
+ query_digest: string;
1023
+ }, {
1024
+ entries: ({
1025
+ state: "resolved";
1026
+ subject_key: {
1027
+ kind: string;
1028
+ protocol: "context.subject-key/v1";
1029
+ namespace: string;
1030
+ local_key: string;
1031
+ };
1032
+ query_ref: string;
1033
+ node_ref: string;
1034
+ } | {
1035
+ state: "absent";
1036
+ query_ref: string;
1037
+ } | {
1038
+ state: "ambiguous";
1039
+ query_ref: string;
1040
+ conflicting_node_refs: string[];
1041
+ })[];
1042
+ protocol: "context.indexer.target-resolution-view/v1";
1043
+ requirement_ref: string;
1044
+ view_digest: string;
1045
+ subject_key_schema_digest: string;
1046
+ query_digest: string;
1047
+ }>, {
1048
+ entries: ({
1049
+ state: "resolved";
1050
+ subject_key: {
1051
+ kind: string;
1052
+ protocol: "context.subject-key/v1";
1053
+ namespace: string;
1054
+ local_key: string;
1055
+ };
1056
+ query_ref: string;
1057
+ node_ref: string;
1058
+ } | {
1059
+ state: "absent";
1060
+ query_ref: string;
1061
+ } | {
1062
+ state: "ambiguous";
1063
+ query_ref: string;
1064
+ conflicting_node_refs: string[];
1065
+ })[];
1066
+ protocol: "context.indexer.target-resolution-view/v1";
1067
+ requirement_ref: string;
1068
+ view_digest: string;
1069
+ subject_key_schema_digest: string;
1070
+ query_digest: string;
1071
+ }, {
1072
+ entries: ({
1073
+ state: "resolved";
1074
+ subject_key: {
1075
+ kind: string;
1076
+ protocol: "context.subject-key/v1";
1077
+ namespace: string;
1078
+ local_key: string;
1079
+ };
1080
+ query_ref: string;
1081
+ node_ref: string;
1082
+ } | {
1083
+ state: "absent";
1084
+ query_ref: string;
1085
+ } | {
1086
+ state: "ambiguous";
1087
+ query_ref: string;
1088
+ conflicting_node_refs: string[];
1089
+ })[];
1090
+ protocol: "context.indexer.target-resolution-view/v1";
1091
+ requirement_ref: string;
1092
+ view_digest: string;
1093
+ subject_key_schema_digest: string;
1094
+ query_digest: string;
1095
+ }>>;
1096
+ allowed_artifact_policy_variants: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1097
+ artifact_policy_eligibility_digest: z.ZodString;
1098
+ protocol: z.ZodLiteral<"context.indexer.main-workset/v1">;
1099
+ workset_digest: z.ZodString;
1100
+ operation: z.ZodLiteral<"main-index">;
1101
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
1102
+ requirement_ref: z.ZodString;
1103
+ owner_cell_refs: z.ZodArray<z.ZodString, "many">;
1104
+ source_ref: z.ZodString;
1105
+ module_ref: z.ZodNullable<z.ZodString>;
1106
+ primary_registry_projection_digest: z.ZodString;
1107
+ requirement_set_digest: z.ZodString;
1108
+ primary_execution_fingerprint: z.ZodString;
1109
+ profile_contract_digest: z.ZodString;
1110
+ subject_key_schema_digest: z.ZodString;
1111
+ source_scope_digest: z.ZodString;
1112
+ parser_contract_digest: z.ZodString;
1113
+ primary_resource_binding_digest: z.ZodString;
1114
+ question_target_inventory_digest: z.ZodString;
1115
+ }, "strict", z.ZodTypeAny, {
1116
+ source_ref: string;
1117
+ operation: "main-index";
1118
+ protocol: "context.indexer.main-workset/v1";
1119
+ requirement_ref: string;
1120
+ workset_digest: string;
1121
+ module_ref: string | null;
1122
+ indexer_id: string;
1123
+ profile_contract_digest: string;
1124
+ logical_unit_ref: string;
1125
+ subject_key_schema_digest: string;
1126
+ stage: "author";
1127
+ owner_cell_refs: string[];
1128
+ primary_registry_projection_digest: string;
1129
+ requirement_set_digest: string;
1130
+ primary_execution_fingerprint: string;
1131
+ source_scope_digest: string;
1132
+ parser_contract_digest: string;
1133
+ primary_resource_binding_digest: string;
1134
+ question_target_inventory_digest: string;
1135
+ partition_plan_binding_digest: string;
1136
+ group_key: string;
1137
+ member_ids_digest: string;
1138
+ member_inventory_digest: string;
1139
+ group_projection_digest: string;
1140
+ group_dependency_view_digest: string;
1141
+ allowed_artifact_policy_variants: string[];
1142
+ artifact_policy_eligibility_digest: string;
1143
+ target_resolution_view?: {
1144
+ entries: ({
1145
+ state: "resolved";
1146
+ subject_key: {
1147
+ kind: string;
1148
+ protocol: "context.subject-key/v1";
1149
+ namespace: string;
1150
+ local_key: string;
1151
+ };
1152
+ query_ref: string;
1153
+ node_ref: string;
1154
+ } | {
1155
+ state: "absent";
1156
+ query_ref: string;
1157
+ } | {
1158
+ state: "ambiguous";
1159
+ query_ref: string;
1160
+ conflicting_node_refs: string[];
1161
+ })[];
1162
+ protocol: "context.indexer.target-resolution-view/v1";
1163
+ requirement_ref: string;
1164
+ view_digest: string;
1165
+ subject_key_schema_digest: string;
1166
+ query_digest: string;
1167
+ } | undefined;
1168
+ }, {
1169
+ source_ref: string;
1170
+ operation: "main-index";
1171
+ protocol: "context.indexer.main-workset/v1";
1172
+ requirement_ref: string;
1173
+ workset_digest: string;
1174
+ module_ref: string | null;
1175
+ indexer_id: string;
1176
+ profile_contract_digest: string;
1177
+ logical_unit_ref: string;
1178
+ subject_key_schema_digest: string;
1179
+ stage: "author";
1180
+ owner_cell_refs: string[];
1181
+ primary_registry_projection_digest: string;
1182
+ requirement_set_digest: string;
1183
+ primary_execution_fingerprint: string;
1184
+ source_scope_digest: string;
1185
+ parser_contract_digest: string;
1186
+ primary_resource_binding_digest: string;
1187
+ question_target_inventory_digest: string;
1188
+ partition_plan_binding_digest: string;
1189
+ group_key: string;
1190
+ member_ids_digest: string;
1191
+ member_inventory_digest: string;
1192
+ group_projection_digest: string;
1193
+ group_dependency_view_digest: string;
1194
+ allowed_artifact_policy_variants: string[];
1195
+ artifact_policy_eligibility_digest: string;
1196
+ target_resolution_view?: {
1197
+ entries: ({
1198
+ state: "resolved";
1199
+ subject_key: {
1200
+ kind: string;
1201
+ protocol: "context.subject-key/v1";
1202
+ namespace: string;
1203
+ local_key: string;
1204
+ };
1205
+ query_ref: string;
1206
+ node_ref: string;
1207
+ } | {
1208
+ state: "absent";
1209
+ query_ref: string;
1210
+ } | {
1211
+ state: "ambiguous";
1212
+ query_ref: string;
1213
+ conflicting_node_refs: string[];
1214
+ })[];
1215
+ protocol: "context.indexer.target-resolution-view/v1";
1216
+ requirement_ref: string;
1217
+ view_digest: string;
1218
+ subject_key_schema_digest: string;
1219
+ query_digest: string;
1220
+ } | undefined;
1221
+ }>, {
1222
+ source_ref: string;
1223
+ operation: "main-index";
1224
+ protocol: "context.indexer.main-workset/v1";
1225
+ requirement_ref: string;
1226
+ workset_digest: string;
1227
+ module_ref: string | null;
1228
+ indexer_id: string;
1229
+ profile_contract_digest: string;
1230
+ logical_unit_ref: string;
1231
+ subject_key_schema_digest: string;
1232
+ stage: "author";
1233
+ owner_cell_refs: string[];
1234
+ primary_registry_projection_digest: string;
1235
+ requirement_set_digest: string;
1236
+ primary_execution_fingerprint: string;
1237
+ source_scope_digest: string;
1238
+ parser_contract_digest: string;
1239
+ primary_resource_binding_digest: string;
1240
+ question_target_inventory_digest: string;
1241
+ partition_plan_binding_digest: string;
1242
+ group_key: string;
1243
+ member_ids_digest: string;
1244
+ member_inventory_digest: string;
1245
+ group_projection_digest: string;
1246
+ group_dependency_view_digest: string;
1247
+ allowed_artifact_policy_variants: string[];
1248
+ artifact_policy_eligibility_digest: string;
1249
+ target_resolution_view?: {
1250
+ entries: ({
1251
+ state: "resolved";
1252
+ subject_key: {
1253
+ kind: string;
1254
+ protocol: "context.subject-key/v1";
1255
+ namespace: string;
1256
+ local_key: string;
1257
+ };
1258
+ query_ref: string;
1259
+ node_ref: string;
1260
+ } | {
1261
+ state: "absent";
1262
+ query_ref: string;
1263
+ } | {
1264
+ state: "ambiguous";
1265
+ query_ref: string;
1266
+ conflicting_node_refs: string[];
1267
+ })[];
1268
+ protocol: "context.indexer.target-resolution-view/v1";
1269
+ requirement_ref: string;
1270
+ view_digest: string;
1271
+ subject_key_schema_digest: string;
1272
+ query_digest: string;
1273
+ } | undefined;
1274
+ }, {
1275
+ source_ref: string;
1276
+ operation: "main-index";
1277
+ protocol: "context.indexer.main-workset/v1";
1278
+ requirement_ref: string;
1279
+ workset_digest: string;
1280
+ module_ref: string | null;
1281
+ indexer_id: string;
1282
+ profile_contract_digest: string;
1283
+ logical_unit_ref: string;
1284
+ subject_key_schema_digest: string;
1285
+ stage: "author";
1286
+ owner_cell_refs: string[];
1287
+ primary_registry_projection_digest: string;
1288
+ requirement_set_digest: string;
1289
+ primary_execution_fingerprint: string;
1290
+ source_scope_digest: string;
1291
+ parser_contract_digest: string;
1292
+ primary_resource_binding_digest: string;
1293
+ question_target_inventory_digest: string;
1294
+ partition_plan_binding_digest: string;
1295
+ group_key: string;
1296
+ member_ids_digest: string;
1297
+ member_inventory_digest: string;
1298
+ group_projection_digest: string;
1299
+ group_dependency_view_digest: string;
1300
+ allowed_artifact_policy_variants: string[];
1301
+ artifact_policy_eligibility_digest: string;
1302
+ target_resolution_view?: {
1303
+ entries: ({
1304
+ state: "resolved";
1305
+ subject_key: {
1306
+ kind: string;
1307
+ protocol: "context.subject-key/v1";
1308
+ namespace: string;
1309
+ local_key: string;
1310
+ };
1311
+ query_ref: string;
1312
+ node_ref: string;
1313
+ } | {
1314
+ state: "absent";
1315
+ query_ref: string;
1316
+ } | {
1317
+ state: "ambiguous";
1318
+ query_ref: string;
1319
+ conflicting_node_refs: string[];
1320
+ })[];
1321
+ protocol: "context.indexer.target-resolution-view/v1";
1322
+ requirement_ref: string;
1323
+ view_digest: string;
1324
+ subject_key_schema_digest: string;
1325
+ query_digest: string;
1326
+ } | undefined;
1327
+ }>]>;
1328
+ export type IndexerMainPartitionWorkset = z.infer<typeof partitionWorksetSchema>;
1329
+ export type IndexerMainAuthorWorkset = z.infer<typeof authorWorksetSchema>;
1330
+ export type IndexerMainWorkset = z.infer<typeof indexerMainWorksetSchema>;
1331
+ type MainWorksetPayload = Omit<IndexerMainPartitionWorkset, "workset_digest"> | Omit<IndexerMainAuthorWorkset, "workset_digest">;
1332
+ export declare function indexerMainWorksetDigest(value: MainWorksetPayload): string;
1333
+ type MainWorksetInput = Omit<IndexerMainPartitionWorkset, "protocol" | "operation" | "workset_digest"> | Omit<IndexerMainAuthorWorkset, "protocol" | "operation" | "workset_digest">;
1334
+ export declare function buildIndexerMainWorkset(input: MainWorksetInput): IndexerMainWorkset;
1335
+ export declare function validateIndexerMainWorkset(value: unknown): IndexerMainWorkset;
1336
+ export declare function indexerOwnerCohortRef(input: {
1337
+ requirement_ref: string;
1338
+ indexer_id: string;
1339
+ source_ref: string;
1340
+ module_ref: string | null;
1341
+ owner_cell_refs: readonly string[];
1342
+ }): string;
1343
+ export declare const indexerMainWorksetSetSchema: z.ZodObject<{
1344
+ protocol: z.ZodLiteral<"context.indexer.main-workset-set/v1">;
1345
+ workset_set_digest: z.ZodString;
1346
+ items: z.ZodArray<z.ZodObject<{
1347
+ workset_digest: z.ZodString;
1348
+ stage: z.ZodEnum<["partition", "author"]>;
1349
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
1350
+ owner_cohort_ref: z.ZodString;
1351
+ group_key: z.ZodOptional<z.ZodString>;
1352
+ }, "strict", z.ZodTypeAny, {
1353
+ workset_digest: string;
1354
+ indexer_id: string;
1355
+ stage: "partition" | "author";
1356
+ owner_cohort_ref: string;
1357
+ group_key?: string | undefined;
1358
+ }, {
1359
+ workset_digest: string;
1360
+ indexer_id: string;
1361
+ stage: "partition" | "author";
1362
+ owner_cohort_ref: string;
1363
+ group_key?: string | undefined;
1364
+ }>, "many">;
1365
+ }, "strict", z.ZodTypeAny, {
1366
+ protocol: "context.indexer.main-workset-set/v1";
1367
+ workset_set_digest: string;
1368
+ items: {
1369
+ workset_digest: string;
1370
+ indexer_id: string;
1371
+ stage: "partition" | "author";
1372
+ owner_cohort_ref: string;
1373
+ group_key?: string | undefined;
1374
+ }[];
1375
+ }, {
1376
+ protocol: "context.indexer.main-workset-set/v1";
1377
+ workset_set_digest: string;
1378
+ items: {
1379
+ workset_digest: string;
1380
+ indexer_id: string;
1381
+ stage: "partition" | "author";
1382
+ owner_cohort_ref: string;
1383
+ group_key?: string | undefined;
1384
+ }[];
1385
+ }>;
1386
+ export type IndexerMainWorksetSet = z.infer<typeof indexerMainWorksetSetSchema>;
1387
+ export declare function indexerMainWorksetSetDigest(value: Omit<IndexerMainWorksetSet, "workset_set_digest">): string;
1388
+ export declare function buildIndexerMainWorksetSet(values: readonly IndexerMainWorkset[]): IndexerMainWorksetSet;
1389
+ export declare function validateIndexerMainWorksetSet(value: unknown): IndexerMainWorksetSet;
1390
+ export declare const indexerMainTransportBatchSchema: z.ZodObject<{
1391
+ protocol: z.ZodLiteral<"context.indexer.main-transport-batch/v1">;
1392
+ worksets: z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1393
+ stage: z.ZodLiteral<"partition">;
1394
+ partition_subject_key: z.ZodObject<{
1395
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
1396
+ namespace: z.ZodEffects<z.ZodString, string, string>;
1397
+ kind: z.ZodEffects<z.ZodString, string, string>;
1398
+ local_key: z.ZodEffects<z.ZodString, string, string>;
1399
+ }, "strict", z.ZodTypeAny, {
1400
+ kind: string;
1401
+ protocol: "context.subject-key/v1";
1402
+ namespace: string;
1403
+ local_key: string;
1404
+ }, {
1405
+ kind: string;
1406
+ protocol: "context.subject-key/v1";
1407
+ namespace: string;
1408
+ local_key: string;
1409
+ }>;
1410
+ strategy_set_digest: z.ZodString;
1411
+ reader_question_refs: z.ZodArray<z.ZodString, "many">;
1412
+ partition_input_digests: z.ZodArray<z.ZodString, "many">;
1413
+ partition_inventory_digest: z.ZodString;
1414
+ allowed_question_target_refs: z.ZodArray<z.ZodString, "many">;
1415
+ protocol: z.ZodLiteral<"context.indexer.main-workset/v1">;
1416
+ workset_digest: z.ZodString;
1417
+ operation: z.ZodLiteral<"main-index">;
1418
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
1419
+ requirement_ref: z.ZodString;
1420
+ owner_cell_refs: z.ZodArray<z.ZodString, "many">;
1421
+ source_ref: z.ZodString;
1422
+ module_ref: z.ZodNullable<z.ZodString>;
1423
+ primary_registry_projection_digest: z.ZodString;
1424
+ requirement_set_digest: z.ZodString;
1425
+ primary_execution_fingerprint: z.ZodString;
1426
+ profile_contract_digest: z.ZodString;
1427
+ subject_key_schema_digest: z.ZodString;
1428
+ source_scope_digest: z.ZodString;
1429
+ parser_contract_digest: z.ZodString;
1430
+ primary_resource_binding_digest: z.ZodString;
1431
+ question_target_inventory_digest: z.ZodString;
1432
+ }, "strict", z.ZodTypeAny, {
1433
+ source_ref: string;
1434
+ operation: "main-index";
1435
+ protocol: "context.indexer.main-workset/v1";
1436
+ requirement_ref: string;
1437
+ workset_digest: string;
1438
+ module_ref: string | null;
1439
+ indexer_id: string;
1440
+ profile_contract_digest: string;
1441
+ reader_question_refs: string[];
1442
+ subject_key_schema_digest: string;
1443
+ stage: "partition";
1444
+ partition_subject_key: {
1445
+ kind: string;
1446
+ protocol: "context.subject-key/v1";
1447
+ namespace: string;
1448
+ local_key: string;
1449
+ };
1450
+ strategy_set_digest: string;
1451
+ partition_input_digests: string[];
1452
+ partition_inventory_digest: string;
1453
+ allowed_question_target_refs: string[];
1454
+ owner_cell_refs: string[];
1455
+ primary_registry_projection_digest: string;
1456
+ requirement_set_digest: string;
1457
+ primary_execution_fingerprint: string;
1458
+ source_scope_digest: string;
1459
+ parser_contract_digest: string;
1460
+ primary_resource_binding_digest: string;
1461
+ question_target_inventory_digest: string;
1462
+ }, {
1463
+ source_ref: string;
1464
+ operation: "main-index";
1465
+ protocol: "context.indexer.main-workset/v1";
1466
+ requirement_ref: string;
1467
+ workset_digest: string;
1468
+ module_ref: string | null;
1469
+ indexer_id: string;
1470
+ profile_contract_digest: string;
1471
+ reader_question_refs: string[];
1472
+ subject_key_schema_digest: string;
1473
+ stage: "partition";
1474
+ partition_subject_key: {
1475
+ kind: string;
1476
+ protocol: "context.subject-key/v1";
1477
+ namespace: string;
1478
+ local_key: string;
1479
+ };
1480
+ strategy_set_digest: string;
1481
+ partition_input_digests: string[];
1482
+ partition_inventory_digest: string;
1483
+ allowed_question_target_refs: string[];
1484
+ owner_cell_refs: string[];
1485
+ primary_registry_projection_digest: string;
1486
+ requirement_set_digest: string;
1487
+ primary_execution_fingerprint: string;
1488
+ source_scope_digest: string;
1489
+ parser_contract_digest: string;
1490
+ primary_resource_binding_digest: string;
1491
+ question_target_inventory_digest: string;
1492
+ }>, {
1493
+ source_ref: string;
1494
+ operation: "main-index";
1495
+ protocol: "context.indexer.main-workset/v1";
1496
+ requirement_ref: string;
1497
+ workset_digest: string;
1498
+ module_ref: string | null;
1499
+ indexer_id: string;
1500
+ profile_contract_digest: string;
1501
+ reader_question_refs: string[];
1502
+ subject_key_schema_digest: string;
1503
+ stage: "partition";
1504
+ partition_subject_key: {
1505
+ kind: string;
1506
+ protocol: "context.subject-key/v1";
1507
+ namespace: string;
1508
+ local_key: string;
1509
+ };
1510
+ strategy_set_digest: string;
1511
+ partition_input_digests: string[];
1512
+ partition_inventory_digest: string;
1513
+ allowed_question_target_refs: string[];
1514
+ owner_cell_refs: string[];
1515
+ primary_registry_projection_digest: string;
1516
+ requirement_set_digest: string;
1517
+ primary_execution_fingerprint: string;
1518
+ source_scope_digest: string;
1519
+ parser_contract_digest: string;
1520
+ primary_resource_binding_digest: string;
1521
+ question_target_inventory_digest: string;
1522
+ }, {
1523
+ source_ref: string;
1524
+ operation: "main-index";
1525
+ protocol: "context.indexer.main-workset/v1";
1526
+ requirement_ref: string;
1527
+ workset_digest: string;
1528
+ module_ref: string | null;
1529
+ indexer_id: string;
1530
+ profile_contract_digest: string;
1531
+ reader_question_refs: string[];
1532
+ subject_key_schema_digest: string;
1533
+ stage: "partition";
1534
+ partition_subject_key: {
1535
+ kind: string;
1536
+ protocol: "context.subject-key/v1";
1537
+ namespace: string;
1538
+ local_key: string;
1539
+ };
1540
+ strategy_set_digest: string;
1541
+ partition_input_digests: string[];
1542
+ partition_inventory_digest: string;
1543
+ allowed_question_target_refs: string[];
1544
+ owner_cell_refs: string[];
1545
+ primary_registry_projection_digest: string;
1546
+ requirement_set_digest: string;
1547
+ primary_execution_fingerprint: string;
1548
+ source_scope_digest: string;
1549
+ parser_contract_digest: string;
1550
+ primary_resource_binding_digest: string;
1551
+ question_target_inventory_digest: string;
1552
+ }>, z.ZodEffects<z.ZodObject<{
1553
+ stage: z.ZodLiteral<"author">;
1554
+ partition_plan_binding_digest: z.ZodString;
1555
+ group_key: z.ZodString;
1556
+ logical_unit_ref: z.ZodString;
1557
+ member_ids_digest: z.ZodString;
1558
+ member_inventory_digest: z.ZodString;
1559
+ group_projection_digest: z.ZodString;
1560
+ group_dependency_view_digest: z.ZodString;
1561
+ target_resolution_view: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1562
+ protocol: z.ZodLiteral<"context.indexer.target-resolution-view/v1">;
1563
+ view_digest: z.ZodString;
1564
+ requirement_ref: z.ZodString;
1565
+ subject_key_schema_digest: z.ZodString;
1566
+ query_digest: z.ZodString;
1567
+ entries: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1568
+ query_ref: z.ZodString;
1569
+ state: z.ZodLiteral<"resolved">;
1570
+ subject_key: z.ZodObject<{
1571
+ protocol: z.ZodLiteral<"context.subject-key/v1">;
1572
+ namespace: z.ZodEffects<z.ZodString, string, string>;
1573
+ kind: z.ZodEffects<z.ZodString, string, string>;
1574
+ local_key: z.ZodEffects<z.ZodString, string, string>;
1575
+ }, "strict", z.ZodTypeAny, {
1576
+ kind: string;
1577
+ protocol: "context.subject-key/v1";
1578
+ namespace: string;
1579
+ local_key: string;
1580
+ }, {
1581
+ kind: string;
1582
+ protocol: "context.subject-key/v1";
1583
+ namespace: string;
1584
+ local_key: string;
1585
+ }>;
1586
+ node_ref: z.ZodString;
1587
+ }, "strict", z.ZodTypeAny, {
1588
+ state: "resolved";
1589
+ subject_key: {
1590
+ kind: string;
1591
+ protocol: "context.subject-key/v1";
1592
+ namespace: string;
1593
+ local_key: string;
1594
+ };
1595
+ query_ref: string;
1596
+ node_ref: string;
1597
+ }, {
1598
+ state: "resolved";
1599
+ subject_key: {
1600
+ kind: string;
1601
+ protocol: "context.subject-key/v1";
1602
+ namespace: string;
1603
+ local_key: string;
1604
+ };
1605
+ query_ref: string;
1606
+ node_ref: string;
1607
+ }>, z.ZodObject<{
1608
+ query_ref: z.ZodString;
1609
+ state: z.ZodLiteral<"absent">;
1610
+ }, "strict", z.ZodTypeAny, {
1611
+ state: "absent";
1612
+ query_ref: string;
1613
+ }, {
1614
+ state: "absent";
1615
+ query_ref: string;
1616
+ }>, z.ZodEffects<z.ZodObject<{
1617
+ query_ref: z.ZodString;
1618
+ state: z.ZodLiteral<"ambiguous">;
1619
+ conflicting_node_refs: z.ZodArray<z.ZodString, "many">;
1620
+ }, "strict", z.ZodTypeAny, {
1621
+ state: "ambiguous";
1622
+ query_ref: string;
1623
+ conflicting_node_refs: string[];
1624
+ }, {
1625
+ state: "ambiguous";
1626
+ query_ref: string;
1627
+ conflicting_node_refs: string[];
1628
+ }>, {
1629
+ state: "ambiguous";
1630
+ query_ref: string;
1631
+ conflicting_node_refs: string[];
1632
+ }, {
1633
+ state: "ambiguous";
1634
+ query_ref: string;
1635
+ conflicting_node_refs: string[];
1636
+ }>]>, "many">;
1637
+ }, "strict", z.ZodTypeAny, {
1638
+ entries: ({
1639
+ state: "resolved";
1640
+ subject_key: {
1641
+ kind: string;
1642
+ protocol: "context.subject-key/v1";
1643
+ namespace: string;
1644
+ local_key: string;
1645
+ };
1646
+ query_ref: string;
1647
+ node_ref: string;
1648
+ } | {
1649
+ state: "absent";
1650
+ query_ref: string;
1651
+ } | {
1652
+ state: "ambiguous";
1653
+ query_ref: string;
1654
+ conflicting_node_refs: string[];
1655
+ })[];
1656
+ protocol: "context.indexer.target-resolution-view/v1";
1657
+ requirement_ref: string;
1658
+ view_digest: string;
1659
+ subject_key_schema_digest: string;
1660
+ query_digest: string;
1661
+ }, {
1662
+ entries: ({
1663
+ state: "resolved";
1664
+ subject_key: {
1665
+ kind: string;
1666
+ protocol: "context.subject-key/v1";
1667
+ namespace: string;
1668
+ local_key: string;
1669
+ };
1670
+ query_ref: string;
1671
+ node_ref: string;
1672
+ } | {
1673
+ state: "absent";
1674
+ query_ref: string;
1675
+ } | {
1676
+ state: "ambiguous";
1677
+ query_ref: string;
1678
+ conflicting_node_refs: string[];
1679
+ })[];
1680
+ protocol: "context.indexer.target-resolution-view/v1";
1681
+ requirement_ref: string;
1682
+ view_digest: string;
1683
+ subject_key_schema_digest: string;
1684
+ query_digest: string;
1685
+ }>, {
1686
+ entries: ({
1687
+ state: "resolved";
1688
+ subject_key: {
1689
+ kind: string;
1690
+ protocol: "context.subject-key/v1";
1691
+ namespace: string;
1692
+ local_key: string;
1693
+ };
1694
+ query_ref: string;
1695
+ node_ref: string;
1696
+ } | {
1697
+ state: "absent";
1698
+ query_ref: string;
1699
+ } | {
1700
+ state: "ambiguous";
1701
+ query_ref: string;
1702
+ conflicting_node_refs: string[];
1703
+ })[];
1704
+ protocol: "context.indexer.target-resolution-view/v1";
1705
+ requirement_ref: string;
1706
+ view_digest: string;
1707
+ subject_key_schema_digest: string;
1708
+ query_digest: string;
1709
+ }, {
1710
+ entries: ({
1711
+ state: "resolved";
1712
+ subject_key: {
1713
+ kind: string;
1714
+ protocol: "context.subject-key/v1";
1715
+ namespace: string;
1716
+ local_key: string;
1717
+ };
1718
+ query_ref: string;
1719
+ node_ref: string;
1720
+ } | {
1721
+ state: "absent";
1722
+ query_ref: string;
1723
+ } | {
1724
+ state: "ambiguous";
1725
+ query_ref: string;
1726
+ conflicting_node_refs: string[];
1727
+ })[];
1728
+ protocol: "context.indexer.target-resolution-view/v1";
1729
+ requirement_ref: string;
1730
+ view_digest: string;
1731
+ subject_key_schema_digest: string;
1732
+ query_digest: string;
1733
+ }>>;
1734
+ allowed_artifact_policy_variants: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1735
+ artifact_policy_eligibility_digest: z.ZodString;
1736
+ protocol: z.ZodLiteral<"context.indexer.main-workset/v1">;
1737
+ workset_digest: z.ZodString;
1738
+ operation: z.ZodLiteral<"main-index">;
1739
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
1740
+ requirement_ref: z.ZodString;
1741
+ owner_cell_refs: z.ZodArray<z.ZodString, "many">;
1742
+ source_ref: z.ZodString;
1743
+ module_ref: z.ZodNullable<z.ZodString>;
1744
+ primary_registry_projection_digest: z.ZodString;
1745
+ requirement_set_digest: z.ZodString;
1746
+ primary_execution_fingerprint: z.ZodString;
1747
+ profile_contract_digest: z.ZodString;
1748
+ subject_key_schema_digest: z.ZodString;
1749
+ source_scope_digest: z.ZodString;
1750
+ parser_contract_digest: z.ZodString;
1751
+ primary_resource_binding_digest: z.ZodString;
1752
+ question_target_inventory_digest: z.ZodString;
1753
+ }, "strict", z.ZodTypeAny, {
1754
+ source_ref: string;
1755
+ operation: "main-index";
1756
+ protocol: "context.indexer.main-workset/v1";
1757
+ requirement_ref: string;
1758
+ workset_digest: string;
1759
+ module_ref: string | null;
1760
+ indexer_id: string;
1761
+ profile_contract_digest: string;
1762
+ logical_unit_ref: string;
1763
+ subject_key_schema_digest: string;
1764
+ stage: "author";
1765
+ owner_cell_refs: string[];
1766
+ primary_registry_projection_digest: string;
1767
+ requirement_set_digest: string;
1768
+ primary_execution_fingerprint: string;
1769
+ source_scope_digest: string;
1770
+ parser_contract_digest: string;
1771
+ primary_resource_binding_digest: string;
1772
+ question_target_inventory_digest: string;
1773
+ partition_plan_binding_digest: string;
1774
+ group_key: string;
1775
+ member_ids_digest: string;
1776
+ member_inventory_digest: string;
1777
+ group_projection_digest: string;
1778
+ group_dependency_view_digest: string;
1779
+ allowed_artifact_policy_variants: string[];
1780
+ artifact_policy_eligibility_digest: string;
1781
+ target_resolution_view?: {
1782
+ entries: ({
1783
+ state: "resolved";
1784
+ subject_key: {
1785
+ kind: string;
1786
+ protocol: "context.subject-key/v1";
1787
+ namespace: string;
1788
+ local_key: string;
1789
+ };
1790
+ query_ref: string;
1791
+ node_ref: string;
1792
+ } | {
1793
+ state: "absent";
1794
+ query_ref: string;
1795
+ } | {
1796
+ state: "ambiguous";
1797
+ query_ref: string;
1798
+ conflicting_node_refs: string[];
1799
+ })[];
1800
+ protocol: "context.indexer.target-resolution-view/v1";
1801
+ requirement_ref: string;
1802
+ view_digest: string;
1803
+ subject_key_schema_digest: string;
1804
+ query_digest: string;
1805
+ } | undefined;
1806
+ }, {
1807
+ source_ref: string;
1808
+ operation: "main-index";
1809
+ protocol: "context.indexer.main-workset/v1";
1810
+ requirement_ref: string;
1811
+ workset_digest: string;
1812
+ module_ref: string | null;
1813
+ indexer_id: string;
1814
+ profile_contract_digest: string;
1815
+ logical_unit_ref: string;
1816
+ subject_key_schema_digest: string;
1817
+ stage: "author";
1818
+ owner_cell_refs: string[];
1819
+ primary_registry_projection_digest: string;
1820
+ requirement_set_digest: string;
1821
+ primary_execution_fingerprint: string;
1822
+ source_scope_digest: string;
1823
+ parser_contract_digest: string;
1824
+ primary_resource_binding_digest: string;
1825
+ question_target_inventory_digest: string;
1826
+ partition_plan_binding_digest: string;
1827
+ group_key: string;
1828
+ member_ids_digest: string;
1829
+ member_inventory_digest: string;
1830
+ group_projection_digest: string;
1831
+ group_dependency_view_digest: string;
1832
+ allowed_artifact_policy_variants: string[];
1833
+ artifact_policy_eligibility_digest: string;
1834
+ target_resolution_view?: {
1835
+ entries: ({
1836
+ state: "resolved";
1837
+ subject_key: {
1838
+ kind: string;
1839
+ protocol: "context.subject-key/v1";
1840
+ namespace: string;
1841
+ local_key: string;
1842
+ };
1843
+ query_ref: string;
1844
+ node_ref: string;
1845
+ } | {
1846
+ state: "absent";
1847
+ query_ref: string;
1848
+ } | {
1849
+ state: "ambiguous";
1850
+ query_ref: string;
1851
+ conflicting_node_refs: string[];
1852
+ })[];
1853
+ protocol: "context.indexer.target-resolution-view/v1";
1854
+ requirement_ref: string;
1855
+ view_digest: string;
1856
+ subject_key_schema_digest: string;
1857
+ query_digest: string;
1858
+ } | undefined;
1859
+ }>, {
1860
+ source_ref: string;
1861
+ operation: "main-index";
1862
+ protocol: "context.indexer.main-workset/v1";
1863
+ requirement_ref: string;
1864
+ workset_digest: string;
1865
+ module_ref: string | null;
1866
+ indexer_id: string;
1867
+ profile_contract_digest: string;
1868
+ logical_unit_ref: string;
1869
+ subject_key_schema_digest: string;
1870
+ stage: "author";
1871
+ owner_cell_refs: string[];
1872
+ primary_registry_projection_digest: string;
1873
+ requirement_set_digest: string;
1874
+ primary_execution_fingerprint: string;
1875
+ source_scope_digest: string;
1876
+ parser_contract_digest: string;
1877
+ primary_resource_binding_digest: string;
1878
+ question_target_inventory_digest: string;
1879
+ partition_plan_binding_digest: string;
1880
+ group_key: string;
1881
+ member_ids_digest: string;
1882
+ member_inventory_digest: string;
1883
+ group_projection_digest: string;
1884
+ group_dependency_view_digest: string;
1885
+ allowed_artifact_policy_variants: string[];
1886
+ artifact_policy_eligibility_digest: string;
1887
+ target_resolution_view?: {
1888
+ entries: ({
1889
+ state: "resolved";
1890
+ subject_key: {
1891
+ kind: string;
1892
+ protocol: "context.subject-key/v1";
1893
+ namespace: string;
1894
+ local_key: string;
1895
+ };
1896
+ query_ref: string;
1897
+ node_ref: string;
1898
+ } | {
1899
+ state: "absent";
1900
+ query_ref: string;
1901
+ } | {
1902
+ state: "ambiguous";
1903
+ query_ref: string;
1904
+ conflicting_node_refs: string[];
1905
+ })[];
1906
+ protocol: "context.indexer.target-resolution-view/v1";
1907
+ requirement_ref: string;
1908
+ view_digest: string;
1909
+ subject_key_schema_digest: string;
1910
+ query_digest: string;
1911
+ } | undefined;
1912
+ }, {
1913
+ source_ref: string;
1914
+ operation: "main-index";
1915
+ protocol: "context.indexer.main-workset/v1";
1916
+ requirement_ref: string;
1917
+ workset_digest: string;
1918
+ module_ref: string | null;
1919
+ indexer_id: string;
1920
+ profile_contract_digest: string;
1921
+ logical_unit_ref: string;
1922
+ subject_key_schema_digest: string;
1923
+ stage: "author";
1924
+ owner_cell_refs: string[];
1925
+ primary_registry_projection_digest: string;
1926
+ requirement_set_digest: string;
1927
+ primary_execution_fingerprint: string;
1928
+ source_scope_digest: string;
1929
+ parser_contract_digest: string;
1930
+ primary_resource_binding_digest: string;
1931
+ question_target_inventory_digest: string;
1932
+ partition_plan_binding_digest: string;
1933
+ group_key: string;
1934
+ member_ids_digest: string;
1935
+ member_inventory_digest: string;
1936
+ group_projection_digest: string;
1937
+ group_dependency_view_digest: string;
1938
+ allowed_artifact_policy_variants: string[];
1939
+ artifact_policy_eligibility_digest: string;
1940
+ target_resolution_view?: {
1941
+ entries: ({
1942
+ state: "resolved";
1943
+ subject_key: {
1944
+ kind: string;
1945
+ protocol: "context.subject-key/v1";
1946
+ namespace: string;
1947
+ local_key: string;
1948
+ };
1949
+ query_ref: string;
1950
+ node_ref: string;
1951
+ } | {
1952
+ state: "absent";
1953
+ query_ref: string;
1954
+ } | {
1955
+ state: "ambiguous";
1956
+ query_ref: string;
1957
+ conflicting_node_refs: string[];
1958
+ })[];
1959
+ protocol: "context.indexer.target-resolution-view/v1";
1960
+ requirement_ref: string;
1961
+ view_digest: string;
1962
+ subject_key_schema_digest: string;
1963
+ query_digest: string;
1964
+ } | undefined;
1965
+ }>]>, "many">;
1966
+ }, "strict", z.ZodTypeAny, {
1967
+ protocol: "context.indexer.main-transport-batch/v1";
1968
+ worksets: ({
1969
+ source_ref: string;
1970
+ operation: "main-index";
1971
+ protocol: "context.indexer.main-workset/v1";
1972
+ requirement_ref: string;
1973
+ workset_digest: string;
1974
+ module_ref: string | null;
1975
+ indexer_id: string;
1976
+ profile_contract_digest: string;
1977
+ reader_question_refs: string[];
1978
+ subject_key_schema_digest: string;
1979
+ stage: "partition";
1980
+ partition_subject_key: {
1981
+ kind: string;
1982
+ protocol: "context.subject-key/v1";
1983
+ namespace: string;
1984
+ local_key: string;
1985
+ };
1986
+ strategy_set_digest: string;
1987
+ partition_input_digests: string[];
1988
+ partition_inventory_digest: string;
1989
+ allowed_question_target_refs: string[];
1990
+ owner_cell_refs: string[];
1991
+ primary_registry_projection_digest: string;
1992
+ requirement_set_digest: string;
1993
+ primary_execution_fingerprint: string;
1994
+ source_scope_digest: string;
1995
+ parser_contract_digest: string;
1996
+ primary_resource_binding_digest: string;
1997
+ question_target_inventory_digest: string;
1998
+ } | {
1999
+ source_ref: string;
2000
+ operation: "main-index";
2001
+ protocol: "context.indexer.main-workset/v1";
2002
+ requirement_ref: string;
2003
+ workset_digest: string;
2004
+ module_ref: string | null;
2005
+ indexer_id: string;
2006
+ profile_contract_digest: string;
2007
+ logical_unit_ref: string;
2008
+ subject_key_schema_digest: string;
2009
+ stage: "author";
2010
+ owner_cell_refs: string[];
2011
+ primary_registry_projection_digest: string;
2012
+ requirement_set_digest: string;
2013
+ primary_execution_fingerprint: string;
2014
+ source_scope_digest: string;
2015
+ parser_contract_digest: string;
2016
+ primary_resource_binding_digest: string;
2017
+ question_target_inventory_digest: string;
2018
+ partition_plan_binding_digest: string;
2019
+ group_key: string;
2020
+ member_ids_digest: string;
2021
+ member_inventory_digest: string;
2022
+ group_projection_digest: string;
2023
+ group_dependency_view_digest: string;
2024
+ allowed_artifact_policy_variants: string[];
2025
+ artifact_policy_eligibility_digest: string;
2026
+ target_resolution_view?: {
2027
+ entries: ({
2028
+ state: "resolved";
2029
+ subject_key: {
2030
+ kind: string;
2031
+ protocol: "context.subject-key/v1";
2032
+ namespace: string;
2033
+ local_key: string;
2034
+ };
2035
+ query_ref: string;
2036
+ node_ref: string;
2037
+ } | {
2038
+ state: "absent";
2039
+ query_ref: string;
2040
+ } | {
2041
+ state: "ambiguous";
2042
+ query_ref: string;
2043
+ conflicting_node_refs: string[];
2044
+ })[];
2045
+ protocol: "context.indexer.target-resolution-view/v1";
2046
+ requirement_ref: string;
2047
+ view_digest: string;
2048
+ subject_key_schema_digest: string;
2049
+ query_digest: string;
2050
+ } | undefined;
2051
+ })[];
2052
+ }, {
2053
+ protocol: "context.indexer.main-transport-batch/v1";
2054
+ worksets: ({
2055
+ source_ref: string;
2056
+ operation: "main-index";
2057
+ protocol: "context.indexer.main-workset/v1";
2058
+ requirement_ref: string;
2059
+ workset_digest: string;
2060
+ module_ref: string | null;
2061
+ indexer_id: string;
2062
+ profile_contract_digest: string;
2063
+ reader_question_refs: string[];
2064
+ subject_key_schema_digest: string;
2065
+ stage: "partition";
2066
+ partition_subject_key: {
2067
+ kind: string;
2068
+ protocol: "context.subject-key/v1";
2069
+ namespace: string;
2070
+ local_key: string;
2071
+ };
2072
+ strategy_set_digest: string;
2073
+ partition_input_digests: string[];
2074
+ partition_inventory_digest: string;
2075
+ allowed_question_target_refs: string[];
2076
+ owner_cell_refs: string[];
2077
+ primary_registry_projection_digest: string;
2078
+ requirement_set_digest: string;
2079
+ primary_execution_fingerprint: string;
2080
+ source_scope_digest: string;
2081
+ parser_contract_digest: string;
2082
+ primary_resource_binding_digest: string;
2083
+ question_target_inventory_digest: string;
2084
+ } | {
2085
+ source_ref: string;
2086
+ operation: "main-index";
2087
+ protocol: "context.indexer.main-workset/v1";
2088
+ requirement_ref: string;
2089
+ workset_digest: string;
2090
+ module_ref: string | null;
2091
+ indexer_id: string;
2092
+ profile_contract_digest: string;
2093
+ logical_unit_ref: string;
2094
+ subject_key_schema_digest: string;
2095
+ stage: "author";
2096
+ owner_cell_refs: string[];
2097
+ primary_registry_projection_digest: string;
2098
+ requirement_set_digest: string;
2099
+ primary_execution_fingerprint: string;
2100
+ source_scope_digest: string;
2101
+ parser_contract_digest: string;
2102
+ primary_resource_binding_digest: string;
2103
+ question_target_inventory_digest: string;
2104
+ partition_plan_binding_digest: string;
2105
+ group_key: string;
2106
+ member_ids_digest: string;
2107
+ member_inventory_digest: string;
2108
+ group_projection_digest: string;
2109
+ group_dependency_view_digest: string;
2110
+ allowed_artifact_policy_variants: string[];
2111
+ artifact_policy_eligibility_digest: string;
2112
+ target_resolution_view?: {
2113
+ entries: ({
2114
+ state: "resolved";
2115
+ subject_key: {
2116
+ kind: string;
2117
+ protocol: "context.subject-key/v1";
2118
+ namespace: string;
2119
+ local_key: string;
2120
+ };
2121
+ query_ref: string;
2122
+ node_ref: string;
2123
+ } | {
2124
+ state: "absent";
2125
+ query_ref: string;
2126
+ } | {
2127
+ state: "ambiguous";
2128
+ query_ref: string;
2129
+ conflicting_node_refs: string[];
2130
+ })[];
2131
+ protocol: "context.indexer.target-resolution-view/v1";
2132
+ requirement_ref: string;
2133
+ view_digest: string;
2134
+ subject_key_schema_digest: string;
2135
+ query_digest: string;
2136
+ } | undefined;
2137
+ })[];
2138
+ }>;
2139
+ export type IndexerMainTransportBatch = z.infer<typeof indexerMainTransportBatchSchema>;
2140
+ export declare function buildIndexerMainTransportBatch(values: readonly IndexerMainWorkset[]): IndexerMainTransportBatch;
2141
+ export {};