@c4a/context 0.6.19 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +1 -1
  2. package/README.zh-CN.md +1 -1
  3. package/codeIndexPlan.d.ts +34 -0
  4. package/docs/README.md +7 -0
  5. package/docs/README.zh-CN.md +5 -0
  6. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  7. package/docs/guides/indexer-provider-and-customization.md +140 -0
  8. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  9. package/docs/reference/code-extractors.md +2 -2
  10. package/docs/reference/indexer-provider-protocol.md +819 -0
  11. package/docs/reference/project-api.md +2 -2
  12. package/index.d.ts +47 -1
  13. package/index.js +28239 -3952
  14. package/indexerAgentStepProtocol.d.ts +9391 -0
  15. package/indexerArtifactDependencies.d.ts +689 -0
  16. package/indexerArtifactPolicy.d.ts +335 -0
  17. package/indexerArtifactResult.d.ts +2010 -0
  18. package/indexerAuditFacts.d.ts +66 -0
  19. package/indexerAuditOverrideReadiness.d.ts +27 -0
  20. package/indexerAuditProtocol.d.ts +238 -0
  21. package/indexerAuditRevision.d.ts +726 -0
  22. package/indexerAuditRevisionActions.d.ts +236 -0
  23. package/indexerAuthoringFixture.d.ts +152 -0
  24. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  25. package/indexerBenchmark.d.ts +1062 -0
  26. package/indexerCandidateCompile.d.ts +801 -0
  27. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  28. package/indexerCatalogFallback.d.ts +1262 -0
  29. package/indexerCollectionMapping.d.ts +75 -0
  30. package/indexerContentLayers.d.ts +137 -0
  31. package/indexerControlledInvocation.d.ts +512 -0
  32. package/indexerControlledProgram.d.ts +12535 -0
  33. package/indexerCoreExports.d.ts +21 -0
  34. package/indexerCustomizationDraft.d.ts +13800 -0
  35. package/indexerCustomizationLadder.d.ts +103 -0
  36. package/indexerDependencyView.d.ts +1610 -0
  37. package/indexerEvidenceAdapterResult.d.ts +504 -0
  38. package/indexerExampleDecision.d.ts +1606 -0
  39. package/indexerExampleIdentity.d.ts +132 -0
  40. package/indexerExampleIdentityAudit.d.ts +70 -0
  41. package/indexerExampleLinkageAudit.d.ts +80 -0
  42. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  43. package/indexerIncrementalImpact.d.ts +221 -0
  44. package/indexerInventoryDisposition.d.ts +443 -0
  45. package/indexerLayerComposition.d.ts +1652 -0
  46. package/indexerLayoutChange.d.ts +329 -0
  47. package/indexerLayoutProposalSet.d.ts +447 -0
  48. package/indexerLayoutResolver.d.ts +342 -0
  49. package/indexerLayoutTransition.d.ts +247 -0
  50. package/indexerLifecycle.d.ts +53 -0
  51. package/indexerMainLifecycle.d.ts +258 -0
  52. package/indexerMainRunLedger.d.ts +888 -0
  53. package/indexerMainRunProtocol.d.ts +6471 -0
  54. package/indexerMainWorkset.d.ts +2141 -0
  55. package/indexerMaterialAnswer.d.ts +738 -0
  56. package/indexerMaterialAnswerActualization.d.ts +91 -0
  57. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  58. package/indexerMaterialAnswerFlow.d.ts +63 -0
  59. package/indexerMaterialAnswerLayout.d.ts +76 -0
  60. package/indexerMaterialAnswerReview.d.ts +217 -0
  61. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  62. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  63. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  64. package/indexerMaterialGapLedger.d.ts +3111 -0
  65. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  66. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  67. package/indexerNavigationArtifactGraph.d.ts +5 -0
  68. package/indexerNavigationArtifactPlan.d.ts +39 -0
  69. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  70. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  71. package/indexerOverlayTrust.d.ts +1425 -0
  72. package/indexerParserCoordinate.d.ts +222 -0
  73. package/indexerParserFactView.d.ts +503 -0
  74. package/indexerPartitionConvergence.d.ts +496 -0
  75. package/indexerPartitionPlan.d.ts +919 -0
  76. package/indexerPartitionStrategyResolution.d.ts +594 -0
  77. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  78. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  79. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  80. package/indexerPostAuthorComposition.d.ts +2000 -0
  81. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  82. package/indexerPrimaryProjection.d.ts +262 -0
  83. package/indexerProfileContract.d.ts +3034 -0
  84. package/indexerProfileMetricAudit.d.ts +218 -0
  85. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  86. package/indexerProgramRunProtocol.d.ts +7642 -0
  87. package/indexerProjectProposal.d.ts +2807 -0
  88. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  89. package/indexerProjectedArtifactPlan.d.ts +217 -0
  90. package/indexerProtocolCommon.d.ts +29 -0
  91. package/indexerProvider.d.ts +2573 -0
  92. package/indexerProviderComposition.d.ts +1357 -0
  93. package/indexerProviderContractReferences.d.ts +13 -0
  94. package/indexerProviderProfileResolution.d.ts +20 -0
  95. package/indexerProviderResolution.d.ts +752 -0
  96. package/indexerProviderResolutionAction.d.ts +678 -0
  97. package/indexerProviderRouting.d.ts +3909 -0
  98. package/indexerProviderSelectionProposal.d.ts +3311 -0
  99. package/indexerQuestionAuthority.d.ts +419 -0
  100. package/indexerReaderTargetInventory.d.ts +161 -0
  101. package/indexerReferenceOnlyAudit.d.ts +90 -0
  102. package/indexerRegistry.d.ts +3019 -0
  103. package/indexerRequirementComparison.d.ts +44 -0
  104. package/indexerRequirementConfirmation.d.ts +1193 -0
  105. package/indexerRequirementLifecycle.d.ts +3314 -0
  106. package/indexerRestrictedSelector.d.ts +63 -0
  107. package/indexerResultReconciliation.d.ts +6844 -0
  108. package/indexerResultReconciliationRun.d.ts +15 -0
  109. package/indexerRunEnvelope.d.ts +384 -0
  110. package/indexerRunProtocolCommon.d.ts +21 -0
  111. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  112. package/indexerStructuredDeclaration.d.ts +513 -0
  113. package/indexerSubjectCatalog.d.ts +230 -0
  114. package/indexerSubjectIdentity.d.ts +19 -0
  115. package/indexerSubjectKeyAuthority.d.ts +785 -0
  116. package/indexerTemplateRendering.d.ts +485 -0
  117. package/indexerToolSnapshot.d.ts +431 -0
  118. package/indexerWorksetRead.d.ts +287 -0
  119. package/package.json +1 -1
  120. package/phases.d.ts +1 -1
@@ -0,0 +1,594 @@
1
+ import { z } from "zod";
2
+ import { type IndexerPartitionStrategy } from "./indexerPartitionPlan.js";
3
+ export declare const indexerResolvedPartitionStrategySchema: z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
4
+ source: z.ZodLiteral<"provider">;
5
+ strategy_ref: z.ZodObject<{
6
+ kind: z.ZodLiteral<"project-indexer">;
7
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
8
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
9
+ implementation_digest: z.ZodString;
10
+ }, "strict", z.ZodTypeAny, {
11
+ kind: "project-indexer";
12
+ implementation_digest: string;
13
+ indexer_id: string;
14
+ strategy_id: string;
15
+ }, {
16
+ kind: "project-indexer";
17
+ implementation_digest: string;
18
+ indexer_id: string;
19
+ strategy_id: string;
20
+ }>;
21
+ authority: z.ZodObject<{
22
+ kind: z.ZodLiteral<"verified-provider">;
23
+ provider_layer_ref: z.ZodEffects<z.ZodString, string, string>;
24
+ provider_id: z.ZodEffects<z.ZodString, string, string>;
25
+ provider_version: z.ZodString;
26
+ provider_integrity: z.ZodString;
27
+ provider_bundle_digest: z.ZodString;
28
+ manifest_digest: z.ZodString;
29
+ }, "strict", z.ZodTypeAny, {
30
+ kind: "verified-provider";
31
+ provider_id: string;
32
+ manifest_digest: string;
33
+ provider_integrity: string;
34
+ provider_layer_ref: string;
35
+ provider_bundle_digest: string;
36
+ provider_version: string;
37
+ }, {
38
+ kind: "verified-provider";
39
+ provider_id: string;
40
+ manifest_digest: string;
41
+ provider_integrity: string;
42
+ provider_layer_ref: string;
43
+ provider_bundle_digest: string;
44
+ provider_version: string;
45
+ }>;
46
+ order: z.ZodNumber;
47
+ declared_priority: z.ZodNumber;
48
+ strategy_digest: z.ZodString;
49
+ }, "strict", z.ZodTypeAny, {
50
+ source: "provider";
51
+ authority: {
52
+ kind: "verified-provider";
53
+ provider_id: string;
54
+ manifest_digest: string;
55
+ provider_integrity: string;
56
+ provider_layer_ref: string;
57
+ provider_bundle_digest: string;
58
+ provider_version: string;
59
+ };
60
+ strategy_ref: {
61
+ kind: "project-indexer";
62
+ implementation_digest: string;
63
+ indexer_id: string;
64
+ strategy_id: string;
65
+ };
66
+ strategy_digest: string;
67
+ order: number;
68
+ declared_priority: number;
69
+ }, {
70
+ source: "provider";
71
+ authority: {
72
+ kind: "verified-provider";
73
+ provider_id: string;
74
+ manifest_digest: string;
75
+ provider_integrity: string;
76
+ provider_layer_ref: string;
77
+ provider_bundle_digest: string;
78
+ provider_version: string;
79
+ };
80
+ strategy_ref: {
81
+ kind: "project-indexer";
82
+ implementation_digest: string;
83
+ indexer_id: string;
84
+ strategy_id: string;
85
+ };
86
+ strategy_digest: string;
87
+ order: number;
88
+ declared_priority: number;
89
+ }>, z.ZodObject<{
90
+ source: z.ZodLiteral<"local-customization">;
91
+ strategy_ref: z.ZodObject<{
92
+ kind: z.ZodLiteral<"project-indexer">;
93
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
94
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
95
+ implementation_digest: z.ZodString;
96
+ }, "strict", z.ZodTypeAny, {
97
+ kind: "project-indexer";
98
+ implementation_digest: string;
99
+ indexer_id: string;
100
+ strategy_id: string;
101
+ }, {
102
+ kind: "project-indexer";
103
+ implementation_digest: string;
104
+ indexer_id: string;
105
+ strategy_id: string;
106
+ }>;
107
+ authority: z.ZodObject<{
108
+ kind: z.ZodLiteral<"local-customization">;
109
+ customization_fingerprint: z.ZodString;
110
+ base_provider_integrity: z.ZodString;
111
+ }, "strict", z.ZodTypeAny, {
112
+ kind: "local-customization";
113
+ customization_fingerprint: string;
114
+ base_provider_integrity: string;
115
+ }, {
116
+ kind: "local-customization";
117
+ customization_fingerprint: string;
118
+ base_provider_integrity: string;
119
+ }>;
120
+ order: z.ZodNumber;
121
+ declared_priority: z.ZodNumber;
122
+ strategy_digest: z.ZodString;
123
+ }, "strict", z.ZodTypeAny, {
124
+ source: "local-customization";
125
+ authority: {
126
+ kind: "local-customization";
127
+ customization_fingerprint: string;
128
+ base_provider_integrity: string;
129
+ };
130
+ strategy_ref: {
131
+ kind: "project-indexer";
132
+ implementation_digest: string;
133
+ indexer_id: string;
134
+ strategy_id: string;
135
+ };
136
+ strategy_digest: string;
137
+ order: number;
138
+ declared_priority: number;
139
+ }, {
140
+ source: "local-customization";
141
+ authority: {
142
+ kind: "local-customization";
143
+ customization_fingerprint: string;
144
+ base_provider_integrity: string;
145
+ };
146
+ strategy_ref: {
147
+ kind: "project-indexer";
148
+ implementation_digest: string;
149
+ indexer_id: string;
150
+ strategy_id: string;
151
+ };
152
+ strategy_digest: string;
153
+ order: number;
154
+ declared_priority: number;
155
+ }>, z.ZodObject<{
156
+ source: z.ZodLiteral<"cli-builtin">;
157
+ strategy_ref: z.ZodObject<{
158
+ kind: z.ZodLiteral<"cli-builtin">;
159
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
160
+ implementation_digest: z.ZodString;
161
+ }, "strict", z.ZodTypeAny, {
162
+ kind: "cli-builtin";
163
+ implementation_digest: string;
164
+ strategy_id: string;
165
+ }, {
166
+ kind: "cli-builtin";
167
+ implementation_digest: string;
168
+ strategy_id: string;
169
+ }>;
170
+ authority: z.ZodObject<{
171
+ kind: z.ZodLiteral<"cli-release">;
172
+ cli_release_digest: z.ZodString;
173
+ }, "strict", z.ZodTypeAny, {
174
+ kind: "cli-release";
175
+ cli_release_digest: string;
176
+ }, {
177
+ kind: "cli-release";
178
+ cli_release_digest: string;
179
+ }>;
180
+ order: z.ZodNumber;
181
+ declared_priority: z.ZodNumber;
182
+ strategy_digest: z.ZodString;
183
+ }, "strict", z.ZodTypeAny, {
184
+ source: "cli-builtin";
185
+ authority: {
186
+ kind: "cli-release";
187
+ cli_release_digest: string;
188
+ };
189
+ strategy_ref: {
190
+ kind: "cli-builtin";
191
+ implementation_digest: string;
192
+ strategy_id: string;
193
+ };
194
+ strategy_digest: string;
195
+ order: number;
196
+ declared_priority: number;
197
+ }, {
198
+ source: "cli-builtin";
199
+ authority: {
200
+ kind: "cli-release";
201
+ cli_release_digest: string;
202
+ };
203
+ strategy_ref: {
204
+ kind: "cli-builtin";
205
+ implementation_digest: string;
206
+ strategy_id: string;
207
+ };
208
+ strategy_digest: string;
209
+ order: number;
210
+ declared_priority: number;
211
+ }>]>;
212
+ export declare const indexerPartitionStrategyResolutionSchema: z.ZodObject<{
213
+ protocol: z.ZodLiteral<"context.indexer.partition-strategy-resolution/v1">;
214
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
215
+ indexer_fingerprint: z.ZodString;
216
+ registry_projection_digest: z.ZodString;
217
+ selected_profile_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
218
+ provider_integrity: z.ZodString;
219
+ customization_fingerprint: z.ZodNullable<z.ZodString>;
220
+ strategies: z.ZodArray<z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
221
+ source: z.ZodLiteral<"provider">;
222
+ strategy_ref: z.ZodObject<{
223
+ kind: z.ZodLiteral<"project-indexer">;
224
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
225
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
226
+ implementation_digest: z.ZodString;
227
+ }, "strict", z.ZodTypeAny, {
228
+ kind: "project-indexer";
229
+ implementation_digest: string;
230
+ indexer_id: string;
231
+ strategy_id: string;
232
+ }, {
233
+ kind: "project-indexer";
234
+ implementation_digest: string;
235
+ indexer_id: string;
236
+ strategy_id: string;
237
+ }>;
238
+ authority: z.ZodObject<{
239
+ kind: z.ZodLiteral<"verified-provider">;
240
+ provider_layer_ref: z.ZodEffects<z.ZodString, string, string>;
241
+ provider_id: z.ZodEffects<z.ZodString, string, string>;
242
+ provider_version: z.ZodString;
243
+ provider_integrity: z.ZodString;
244
+ provider_bundle_digest: z.ZodString;
245
+ manifest_digest: z.ZodString;
246
+ }, "strict", z.ZodTypeAny, {
247
+ kind: "verified-provider";
248
+ provider_id: string;
249
+ manifest_digest: string;
250
+ provider_integrity: string;
251
+ provider_layer_ref: string;
252
+ provider_bundle_digest: string;
253
+ provider_version: string;
254
+ }, {
255
+ kind: "verified-provider";
256
+ provider_id: string;
257
+ manifest_digest: string;
258
+ provider_integrity: string;
259
+ provider_layer_ref: string;
260
+ provider_bundle_digest: string;
261
+ provider_version: string;
262
+ }>;
263
+ order: z.ZodNumber;
264
+ declared_priority: z.ZodNumber;
265
+ strategy_digest: z.ZodString;
266
+ }, "strict", z.ZodTypeAny, {
267
+ source: "provider";
268
+ authority: {
269
+ kind: "verified-provider";
270
+ provider_id: string;
271
+ manifest_digest: string;
272
+ provider_integrity: string;
273
+ provider_layer_ref: string;
274
+ provider_bundle_digest: string;
275
+ provider_version: string;
276
+ };
277
+ strategy_ref: {
278
+ kind: "project-indexer";
279
+ implementation_digest: string;
280
+ indexer_id: string;
281
+ strategy_id: string;
282
+ };
283
+ strategy_digest: string;
284
+ order: number;
285
+ declared_priority: number;
286
+ }, {
287
+ source: "provider";
288
+ authority: {
289
+ kind: "verified-provider";
290
+ provider_id: string;
291
+ manifest_digest: string;
292
+ provider_integrity: string;
293
+ provider_layer_ref: string;
294
+ provider_bundle_digest: string;
295
+ provider_version: string;
296
+ };
297
+ strategy_ref: {
298
+ kind: "project-indexer";
299
+ implementation_digest: string;
300
+ indexer_id: string;
301
+ strategy_id: string;
302
+ };
303
+ strategy_digest: string;
304
+ order: number;
305
+ declared_priority: number;
306
+ }>, z.ZodObject<{
307
+ source: z.ZodLiteral<"local-customization">;
308
+ strategy_ref: z.ZodObject<{
309
+ kind: z.ZodLiteral<"project-indexer">;
310
+ indexer_id: z.ZodEffects<z.ZodString, string, string>;
311
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
312
+ implementation_digest: z.ZodString;
313
+ }, "strict", z.ZodTypeAny, {
314
+ kind: "project-indexer";
315
+ implementation_digest: string;
316
+ indexer_id: string;
317
+ strategy_id: string;
318
+ }, {
319
+ kind: "project-indexer";
320
+ implementation_digest: string;
321
+ indexer_id: string;
322
+ strategy_id: string;
323
+ }>;
324
+ authority: z.ZodObject<{
325
+ kind: z.ZodLiteral<"local-customization">;
326
+ customization_fingerprint: z.ZodString;
327
+ base_provider_integrity: z.ZodString;
328
+ }, "strict", z.ZodTypeAny, {
329
+ kind: "local-customization";
330
+ customization_fingerprint: string;
331
+ base_provider_integrity: string;
332
+ }, {
333
+ kind: "local-customization";
334
+ customization_fingerprint: string;
335
+ base_provider_integrity: string;
336
+ }>;
337
+ order: z.ZodNumber;
338
+ declared_priority: z.ZodNumber;
339
+ strategy_digest: z.ZodString;
340
+ }, "strict", z.ZodTypeAny, {
341
+ source: "local-customization";
342
+ authority: {
343
+ kind: "local-customization";
344
+ customization_fingerprint: string;
345
+ base_provider_integrity: string;
346
+ };
347
+ strategy_ref: {
348
+ kind: "project-indexer";
349
+ implementation_digest: string;
350
+ indexer_id: string;
351
+ strategy_id: string;
352
+ };
353
+ strategy_digest: string;
354
+ order: number;
355
+ declared_priority: number;
356
+ }, {
357
+ source: "local-customization";
358
+ authority: {
359
+ kind: "local-customization";
360
+ customization_fingerprint: string;
361
+ base_provider_integrity: string;
362
+ };
363
+ strategy_ref: {
364
+ kind: "project-indexer";
365
+ implementation_digest: string;
366
+ indexer_id: string;
367
+ strategy_id: string;
368
+ };
369
+ strategy_digest: string;
370
+ order: number;
371
+ declared_priority: number;
372
+ }>, z.ZodObject<{
373
+ source: z.ZodLiteral<"cli-builtin">;
374
+ strategy_ref: z.ZodObject<{
375
+ kind: z.ZodLiteral<"cli-builtin">;
376
+ strategy_id: z.ZodEffects<z.ZodString, string, string>;
377
+ implementation_digest: z.ZodString;
378
+ }, "strict", z.ZodTypeAny, {
379
+ kind: "cli-builtin";
380
+ implementation_digest: string;
381
+ strategy_id: string;
382
+ }, {
383
+ kind: "cli-builtin";
384
+ implementation_digest: string;
385
+ strategy_id: string;
386
+ }>;
387
+ authority: z.ZodObject<{
388
+ kind: z.ZodLiteral<"cli-release">;
389
+ cli_release_digest: z.ZodString;
390
+ }, "strict", z.ZodTypeAny, {
391
+ kind: "cli-release";
392
+ cli_release_digest: string;
393
+ }, {
394
+ kind: "cli-release";
395
+ cli_release_digest: string;
396
+ }>;
397
+ order: z.ZodNumber;
398
+ declared_priority: z.ZodNumber;
399
+ strategy_digest: z.ZodString;
400
+ }, "strict", z.ZodTypeAny, {
401
+ source: "cli-builtin";
402
+ authority: {
403
+ kind: "cli-release";
404
+ cli_release_digest: string;
405
+ };
406
+ strategy_ref: {
407
+ kind: "cli-builtin";
408
+ implementation_digest: string;
409
+ strategy_id: string;
410
+ };
411
+ strategy_digest: string;
412
+ order: number;
413
+ declared_priority: number;
414
+ }, {
415
+ source: "cli-builtin";
416
+ authority: {
417
+ kind: "cli-release";
418
+ cli_release_digest: string;
419
+ };
420
+ strategy_ref: {
421
+ kind: "cli-builtin";
422
+ implementation_digest: string;
423
+ strategy_id: string;
424
+ };
425
+ strategy_digest: string;
426
+ order: number;
427
+ declared_priority: number;
428
+ }>]>, "many">;
429
+ strategy_set_digest: z.ZodString;
430
+ resolution_digest: z.ZodString;
431
+ }, "strict", z.ZodTypeAny, {
432
+ protocol: "context.indexer.partition-strategy-resolution/v1";
433
+ indexer_id: string;
434
+ provider_integrity: string;
435
+ strategy_set_digest: string;
436
+ customization_fingerprint: string | null;
437
+ indexer_fingerprint: string;
438
+ registry_projection_digest: string;
439
+ selected_profile_ids: string[];
440
+ strategies: ({
441
+ source: "provider";
442
+ authority: {
443
+ kind: "verified-provider";
444
+ provider_id: string;
445
+ manifest_digest: string;
446
+ provider_integrity: string;
447
+ provider_layer_ref: string;
448
+ provider_bundle_digest: string;
449
+ provider_version: string;
450
+ };
451
+ strategy_ref: {
452
+ kind: "project-indexer";
453
+ implementation_digest: string;
454
+ indexer_id: string;
455
+ strategy_id: string;
456
+ };
457
+ strategy_digest: string;
458
+ order: number;
459
+ declared_priority: number;
460
+ } | {
461
+ source: "local-customization";
462
+ authority: {
463
+ kind: "local-customization";
464
+ customization_fingerprint: string;
465
+ base_provider_integrity: string;
466
+ };
467
+ strategy_ref: {
468
+ kind: "project-indexer";
469
+ implementation_digest: string;
470
+ indexer_id: string;
471
+ strategy_id: string;
472
+ };
473
+ strategy_digest: string;
474
+ order: number;
475
+ declared_priority: number;
476
+ } | {
477
+ source: "cli-builtin";
478
+ authority: {
479
+ kind: "cli-release";
480
+ cli_release_digest: string;
481
+ };
482
+ strategy_ref: {
483
+ kind: "cli-builtin";
484
+ implementation_digest: string;
485
+ strategy_id: string;
486
+ };
487
+ strategy_digest: string;
488
+ order: number;
489
+ declared_priority: number;
490
+ })[];
491
+ resolution_digest: string;
492
+ }, {
493
+ protocol: "context.indexer.partition-strategy-resolution/v1";
494
+ indexer_id: string;
495
+ provider_integrity: string;
496
+ strategy_set_digest: string;
497
+ customization_fingerprint: string | null;
498
+ indexer_fingerprint: string;
499
+ registry_projection_digest: string;
500
+ selected_profile_ids: string[];
501
+ strategies: ({
502
+ source: "provider";
503
+ authority: {
504
+ kind: "verified-provider";
505
+ provider_id: string;
506
+ manifest_digest: string;
507
+ provider_integrity: string;
508
+ provider_layer_ref: string;
509
+ provider_bundle_digest: string;
510
+ provider_version: string;
511
+ };
512
+ strategy_ref: {
513
+ kind: "project-indexer";
514
+ implementation_digest: string;
515
+ indexer_id: string;
516
+ strategy_id: string;
517
+ };
518
+ strategy_digest: string;
519
+ order: number;
520
+ declared_priority: number;
521
+ } | {
522
+ source: "local-customization";
523
+ authority: {
524
+ kind: "local-customization";
525
+ customization_fingerprint: string;
526
+ base_provider_integrity: string;
527
+ };
528
+ strategy_ref: {
529
+ kind: "project-indexer";
530
+ implementation_digest: string;
531
+ indexer_id: string;
532
+ strategy_id: string;
533
+ };
534
+ strategy_digest: string;
535
+ order: number;
536
+ declared_priority: number;
537
+ } | {
538
+ source: "cli-builtin";
539
+ authority: {
540
+ kind: "cli-release";
541
+ cli_release_digest: string;
542
+ };
543
+ strategy_ref: {
544
+ kind: "cli-builtin";
545
+ implementation_digest: string;
546
+ strategy_id: string;
547
+ };
548
+ strategy_digest: string;
549
+ order: number;
550
+ declared_priority: number;
551
+ })[];
552
+ resolution_digest: string;
553
+ }>;
554
+ export type IndexerResolvedPartitionStrategy = z.infer<typeof indexerResolvedPartitionStrategySchema>;
555
+ export type IndexerPartitionStrategyResolution = z.infer<typeof indexerPartitionStrategyResolutionSchema>;
556
+ export interface IndexerLocalPartitionStrategyDeclaration {
557
+ strategy_id: string;
558
+ profiles: readonly string[];
559
+ priority: number;
560
+ implementation_digest: string;
561
+ }
562
+ export interface IndexerCliPartitionStrategyDeclaration {
563
+ strategy_id: string;
564
+ priority: number;
565
+ implementation_digest: string;
566
+ }
567
+ export declare const INDEXER_CATALOG_FALLBACK_STRATEGY_ID = "catalog-fallback";
568
+ export declare function indexerCatalogFallbackImplementationDigest(cliReleaseDigest: string): string;
569
+ export declare function resolveIndexerPartitionStrategies(input: {
570
+ indexer_id: string;
571
+ indexer_fingerprint: string;
572
+ registry_projection_digest: string;
573
+ selected_profile_ids: readonly string[];
574
+ provider: {
575
+ layer_ref: unknown;
576
+ id: string;
577
+ version: string;
578
+ integrity: string;
579
+ bundle_digest: string;
580
+ manifest_digest: string;
581
+ manifest: unknown;
582
+ };
583
+ local_customization?: {
584
+ fingerprint: string;
585
+ strategies: readonly IndexerLocalPartitionStrategyDeclaration[];
586
+ };
587
+ cli_release_digest: string;
588
+ cli_builtins: readonly IndexerCliPartitionStrategyDeclaration[];
589
+ }): IndexerPartitionStrategyResolution;
590
+ export declare function validateIndexerPartitionStrategyResolution(valueInput: unknown): IndexerPartitionStrategyResolution;
591
+ export declare function indexerAuthorizedPartitionStrategies(value: unknown): Array<{
592
+ strategy_ref: IndexerPartitionStrategy;
593
+ strategy_digest: string;
594
+ }>;