@c4a/context 0.7.1 → 0.7.4

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