@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,513 @@
1
+ import { z } from "zod";
2
+ export declare const INDEXER_STRUCTURED_DECLARATION_CARRIER_KINDS: readonly ["indexer-result", "catalog", "manifest", "section-evidence"];
3
+ export declare const INDEXER_STRUCTURED_DECLARATION_KINDS: readonly ["directory", "entry", "method", "handler", "store", "locator"];
4
+ declare const sourceIdentityFactSchema: z.ZodObject<{
5
+ fact_ref: z.ZodString;
6
+ fact_kind: z.ZodEffects<z.ZodString, string, string>;
7
+ qualified_item_path: z.ZodString;
8
+ signature_digest: z.ZodString;
9
+ }, "strict", z.ZodTypeAny, {
10
+ qualified_item_path: string;
11
+ signature_digest: string;
12
+ fact_ref: string;
13
+ fact_kind: string;
14
+ }, {
15
+ qualified_item_path: string;
16
+ signature_digest: string;
17
+ fact_ref: string;
18
+ fact_kind: string;
19
+ }>;
20
+ declare const sourceIdentityFileSchema: z.ZodObject<{
21
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
22
+ content_digest: z.ZodString;
23
+ facts: z.ZodArray<z.ZodObject<{
24
+ fact_ref: z.ZodString;
25
+ fact_kind: z.ZodEffects<z.ZodString, string, string>;
26
+ qualified_item_path: z.ZodString;
27
+ signature_digest: z.ZodString;
28
+ }, "strict", z.ZodTypeAny, {
29
+ qualified_item_path: string;
30
+ signature_digest: string;
31
+ fact_ref: string;
32
+ fact_kind: string;
33
+ }, {
34
+ qualified_item_path: string;
35
+ signature_digest: string;
36
+ fact_ref: string;
37
+ fact_kind: string;
38
+ }>, "many">;
39
+ }, "strict", z.ZodTypeAny, {
40
+ facts: {
41
+ qualified_item_path: string;
42
+ signature_digest: string;
43
+ fact_ref: string;
44
+ fact_kind: string;
45
+ }[];
46
+ normalized_path: string;
47
+ content_digest: string;
48
+ }, {
49
+ facts: {
50
+ qualified_item_path: string;
51
+ signature_digest: string;
52
+ fact_ref: string;
53
+ fact_kind: string;
54
+ }[];
55
+ normalized_path: string;
56
+ content_digest: string;
57
+ }>;
58
+ export declare const indexerSourceIdentityInventorySchema: z.ZodObject<{
59
+ protocol: z.ZodLiteral<"context.indexer.source-identity-inventory/v1">;
60
+ source_ref: z.ZodString;
61
+ module_ref: z.ZodNullable<z.ZodString>;
62
+ source_input_digest: z.ZodString;
63
+ files: z.ZodArray<z.ZodObject<{
64
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
65
+ content_digest: z.ZodString;
66
+ facts: z.ZodArray<z.ZodObject<{
67
+ fact_ref: z.ZodString;
68
+ fact_kind: z.ZodEffects<z.ZodString, string, string>;
69
+ qualified_item_path: z.ZodString;
70
+ signature_digest: z.ZodString;
71
+ }, "strict", z.ZodTypeAny, {
72
+ qualified_item_path: string;
73
+ signature_digest: string;
74
+ fact_ref: string;
75
+ fact_kind: string;
76
+ }, {
77
+ qualified_item_path: string;
78
+ signature_digest: string;
79
+ fact_ref: string;
80
+ fact_kind: string;
81
+ }>, "many">;
82
+ }, "strict", z.ZodTypeAny, {
83
+ facts: {
84
+ qualified_item_path: string;
85
+ signature_digest: string;
86
+ fact_ref: string;
87
+ fact_kind: string;
88
+ }[];
89
+ normalized_path: string;
90
+ content_digest: string;
91
+ }, {
92
+ facts: {
93
+ qualified_item_path: string;
94
+ signature_digest: string;
95
+ fact_ref: string;
96
+ fact_kind: string;
97
+ }[];
98
+ normalized_path: string;
99
+ content_digest: string;
100
+ }>, "many">;
101
+ inventory_digest: z.ZodString;
102
+ }, "strict", z.ZodTypeAny, {
103
+ source_ref: string;
104
+ protocol: "context.indexer.source-identity-inventory/v1";
105
+ files: {
106
+ facts: {
107
+ qualified_item_path: string;
108
+ signature_digest: string;
109
+ fact_ref: string;
110
+ fact_kind: string;
111
+ }[];
112
+ normalized_path: string;
113
+ content_digest: string;
114
+ }[];
115
+ module_ref: string | null;
116
+ inventory_digest: string;
117
+ source_input_digest: string;
118
+ }, {
119
+ source_ref: string;
120
+ protocol: "context.indexer.source-identity-inventory/v1";
121
+ files: {
122
+ facts: {
123
+ qualified_item_path: string;
124
+ signature_digest: string;
125
+ fact_ref: string;
126
+ fact_kind: string;
127
+ }[];
128
+ normalized_path: string;
129
+ content_digest: string;
130
+ }[];
131
+ module_ref: string | null;
132
+ inventory_digest: string;
133
+ source_input_digest: string;
134
+ }>;
135
+ export type IndexerSourceIdentityFact = z.infer<typeof sourceIdentityFactSchema>;
136
+ export type IndexerSourceIdentityFile = z.infer<typeof sourceIdentityFileSchema>;
137
+ export type IndexerSourceIdentityInventory = z.infer<typeof indexerSourceIdentityInventorySchema>;
138
+ export declare function indexerSourceIdentityInventoryDigest(value: Omit<IndexerSourceIdentityInventory, "inventory_digest">): string;
139
+ export declare function buildIndexerSourceIdentityInventory(input: {
140
+ source_ref: string;
141
+ module_ref: string | null;
142
+ source_input_digest: string;
143
+ files: readonly IndexerSourceIdentityFile[];
144
+ }): IndexerSourceIdentityInventory;
145
+ export declare function validateIndexerSourceIdentityInventory(value: unknown): IndexerSourceIdentityInventory;
146
+ export declare function buildIndexerSourceIdentityInventoryFromAdapterResults(input: {
147
+ source_ref: string;
148
+ module_ref: string | null;
149
+ source_input_digest: string;
150
+ file_content_digests: Readonly<Record<string, string>>;
151
+ results: readonly unknown[];
152
+ }): IndexerSourceIdentityInventory;
153
+ declare const declarationPayloadSchema: z.ZodObject<{
154
+ carrier_kind: z.ZodEnum<["indexer-result", "catalog", "manifest", "section-evidence"]>;
155
+ carrier_ref: z.ZodString;
156
+ declaration_kind: z.ZodEnum<["directory", "entry", "method", "handler", "store", "locator"]>;
157
+ source_ref: z.ZodString;
158
+ module_ref: z.ZodNullable<z.ZodString>;
159
+ target: z.ZodDiscriminatedUnion<"target_type", [z.ZodObject<{
160
+ target_type: z.ZodLiteral<"directory">;
161
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
162
+ }, "strict", z.ZodTypeAny, {
163
+ normalized_path: string;
164
+ target_type: "directory";
165
+ }, {
166
+ normalized_path: string;
167
+ target_type: "directory";
168
+ }>, z.ZodObject<{
169
+ target_type: z.ZodLiteral<"file">;
170
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
171
+ content_digest: z.ZodString;
172
+ }, "strict", z.ZodTypeAny, {
173
+ normalized_path: string;
174
+ content_digest: string;
175
+ target_type: "file";
176
+ }, {
177
+ normalized_path: string;
178
+ content_digest: string;
179
+ target_type: "file";
180
+ }>, z.ZodObject<{
181
+ target_type: z.ZodLiteral<"item">;
182
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
183
+ source_fact_ref: z.ZodString;
184
+ qualified_item_path: z.ZodString;
185
+ signature_digest: z.ZodString;
186
+ }, "strict", z.ZodTypeAny, {
187
+ normalized_path: string;
188
+ qualified_item_path: string;
189
+ signature_digest: string;
190
+ target_type: "item";
191
+ source_fact_ref: string;
192
+ }, {
193
+ normalized_path: string;
194
+ qualified_item_path: string;
195
+ signature_digest: string;
196
+ target_type: "item";
197
+ source_fact_ref: string;
198
+ }>]>;
199
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
200
+ }, "strict", z.ZodTypeAny, {
201
+ source_ref: string;
202
+ evidence_refs: string[];
203
+ module_ref: string | null;
204
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
205
+ carrier_ref: string;
206
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
207
+ target: {
208
+ normalized_path: string;
209
+ target_type: "directory";
210
+ } | {
211
+ normalized_path: string;
212
+ content_digest: string;
213
+ target_type: "file";
214
+ } | {
215
+ normalized_path: string;
216
+ qualified_item_path: string;
217
+ signature_digest: string;
218
+ target_type: "item";
219
+ source_fact_ref: string;
220
+ };
221
+ }, {
222
+ source_ref: string;
223
+ evidence_refs: string[];
224
+ module_ref: string | null;
225
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
226
+ carrier_ref: string;
227
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
228
+ target: {
229
+ normalized_path: string;
230
+ target_type: "directory";
231
+ } | {
232
+ normalized_path: string;
233
+ content_digest: string;
234
+ target_type: "file";
235
+ } | {
236
+ normalized_path: string;
237
+ qualified_item_path: string;
238
+ signature_digest: string;
239
+ target_type: "item";
240
+ source_fact_ref: string;
241
+ };
242
+ }>;
243
+ export declare const indexerStructuredDeclarationSchema: z.ZodObject<{
244
+ carrier_kind: z.ZodEnum<["indexer-result", "catalog", "manifest", "section-evidence"]>;
245
+ carrier_ref: z.ZodString;
246
+ declaration_kind: z.ZodEnum<["directory", "entry", "method", "handler", "store", "locator"]>;
247
+ source_ref: z.ZodString;
248
+ module_ref: z.ZodNullable<z.ZodString>;
249
+ target: z.ZodDiscriminatedUnion<"target_type", [z.ZodObject<{
250
+ target_type: z.ZodLiteral<"directory">;
251
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
252
+ }, "strict", z.ZodTypeAny, {
253
+ normalized_path: string;
254
+ target_type: "directory";
255
+ }, {
256
+ normalized_path: string;
257
+ target_type: "directory";
258
+ }>, z.ZodObject<{
259
+ target_type: z.ZodLiteral<"file">;
260
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
261
+ content_digest: z.ZodString;
262
+ }, "strict", z.ZodTypeAny, {
263
+ normalized_path: string;
264
+ content_digest: string;
265
+ target_type: "file";
266
+ }, {
267
+ normalized_path: string;
268
+ content_digest: string;
269
+ target_type: "file";
270
+ }>, z.ZodObject<{
271
+ target_type: z.ZodLiteral<"item">;
272
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
273
+ source_fact_ref: z.ZodString;
274
+ qualified_item_path: z.ZodString;
275
+ signature_digest: z.ZodString;
276
+ }, "strict", z.ZodTypeAny, {
277
+ normalized_path: string;
278
+ qualified_item_path: string;
279
+ signature_digest: string;
280
+ target_type: "item";
281
+ source_fact_ref: string;
282
+ }, {
283
+ normalized_path: string;
284
+ qualified_item_path: string;
285
+ signature_digest: string;
286
+ target_type: "item";
287
+ source_fact_ref: string;
288
+ }>]>;
289
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
290
+ } & {
291
+ declaration_ref: z.ZodString;
292
+ }, "strict", z.ZodTypeAny, {
293
+ source_ref: string;
294
+ evidence_refs: string[];
295
+ module_ref: string | null;
296
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
297
+ carrier_ref: string;
298
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
299
+ target: {
300
+ normalized_path: string;
301
+ target_type: "directory";
302
+ } | {
303
+ normalized_path: string;
304
+ content_digest: string;
305
+ target_type: "file";
306
+ } | {
307
+ normalized_path: string;
308
+ qualified_item_path: string;
309
+ signature_digest: string;
310
+ target_type: "item";
311
+ source_fact_ref: string;
312
+ };
313
+ declaration_ref: string;
314
+ }, {
315
+ source_ref: string;
316
+ evidence_refs: string[];
317
+ module_ref: string | null;
318
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
319
+ carrier_ref: string;
320
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
321
+ target: {
322
+ normalized_path: string;
323
+ target_type: "directory";
324
+ } | {
325
+ normalized_path: string;
326
+ content_digest: string;
327
+ target_type: "file";
328
+ } | {
329
+ normalized_path: string;
330
+ qualified_item_path: string;
331
+ signature_digest: string;
332
+ target_type: "item";
333
+ source_fact_ref: string;
334
+ };
335
+ declaration_ref: string;
336
+ }>;
337
+ export declare const indexerStructuredDeclarationSetSchema: z.ZodObject<{
338
+ protocol: z.ZodLiteral<"context.indexer.structured-declaration-set/v1">;
339
+ source_identity_inventory_digest: z.ZodString;
340
+ declarations: z.ZodArray<z.ZodObject<{
341
+ carrier_kind: z.ZodEnum<["indexer-result", "catalog", "manifest", "section-evidence"]>;
342
+ carrier_ref: z.ZodString;
343
+ declaration_kind: z.ZodEnum<["directory", "entry", "method", "handler", "store", "locator"]>;
344
+ source_ref: z.ZodString;
345
+ module_ref: z.ZodNullable<z.ZodString>;
346
+ target: z.ZodDiscriminatedUnion<"target_type", [z.ZodObject<{
347
+ target_type: z.ZodLiteral<"directory">;
348
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
349
+ }, "strict", z.ZodTypeAny, {
350
+ normalized_path: string;
351
+ target_type: "directory";
352
+ }, {
353
+ normalized_path: string;
354
+ target_type: "directory";
355
+ }>, z.ZodObject<{
356
+ target_type: z.ZodLiteral<"file">;
357
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
358
+ content_digest: z.ZodString;
359
+ }, "strict", z.ZodTypeAny, {
360
+ normalized_path: string;
361
+ content_digest: string;
362
+ target_type: "file";
363
+ }, {
364
+ normalized_path: string;
365
+ content_digest: string;
366
+ target_type: "file";
367
+ }>, z.ZodObject<{
368
+ target_type: z.ZodLiteral<"item">;
369
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
370
+ source_fact_ref: z.ZodString;
371
+ qualified_item_path: z.ZodString;
372
+ signature_digest: z.ZodString;
373
+ }, "strict", z.ZodTypeAny, {
374
+ normalized_path: string;
375
+ qualified_item_path: string;
376
+ signature_digest: string;
377
+ target_type: "item";
378
+ source_fact_ref: string;
379
+ }, {
380
+ normalized_path: string;
381
+ qualified_item_path: string;
382
+ signature_digest: string;
383
+ target_type: "item";
384
+ source_fact_ref: string;
385
+ }>]>;
386
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
387
+ } & {
388
+ declaration_ref: z.ZodString;
389
+ }, "strict", z.ZodTypeAny, {
390
+ source_ref: string;
391
+ evidence_refs: string[];
392
+ module_ref: string | null;
393
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
394
+ carrier_ref: string;
395
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
396
+ target: {
397
+ normalized_path: string;
398
+ target_type: "directory";
399
+ } | {
400
+ normalized_path: string;
401
+ content_digest: string;
402
+ target_type: "file";
403
+ } | {
404
+ normalized_path: string;
405
+ qualified_item_path: string;
406
+ signature_digest: string;
407
+ target_type: "item";
408
+ source_fact_ref: string;
409
+ };
410
+ declaration_ref: string;
411
+ }, {
412
+ source_ref: string;
413
+ evidence_refs: string[];
414
+ module_ref: string | null;
415
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
416
+ carrier_ref: string;
417
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
418
+ target: {
419
+ normalized_path: string;
420
+ target_type: "directory";
421
+ } | {
422
+ normalized_path: string;
423
+ content_digest: string;
424
+ target_type: "file";
425
+ } | {
426
+ normalized_path: string;
427
+ qualified_item_path: string;
428
+ signature_digest: string;
429
+ target_type: "item";
430
+ source_fact_ref: string;
431
+ };
432
+ declaration_ref: string;
433
+ }>, "many">;
434
+ declaration_set_digest: z.ZodString;
435
+ }, "strict", z.ZodTypeAny, {
436
+ protocol: "context.indexer.structured-declaration-set/v1";
437
+ source_identity_inventory_digest: string;
438
+ declarations: {
439
+ source_ref: string;
440
+ evidence_refs: string[];
441
+ module_ref: string | null;
442
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
443
+ carrier_ref: string;
444
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
445
+ target: {
446
+ normalized_path: string;
447
+ target_type: "directory";
448
+ } | {
449
+ normalized_path: string;
450
+ content_digest: string;
451
+ target_type: "file";
452
+ } | {
453
+ normalized_path: string;
454
+ qualified_item_path: string;
455
+ signature_digest: string;
456
+ target_type: "item";
457
+ source_fact_ref: string;
458
+ };
459
+ declaration_ref: string;
460
+ }[];
461
+ declaration_set_digest: string;
462
+ }, {
463
+ protocol: "context.indexer.structured-declaration-set/v1";
464
+ source_identity_inventory_digest: string;
465
+ declarations: {
466
+ source_ref: string;
467
+ evidence_refs: string[];
468
+ module_ref: string | null;
469
+ carrier_kind: "manifest" | "indexer-result" | "catalog" | "section-evidence";
470
+ carrier_ref: string;
471
+ declaration_kind: "entry" | "handler" | "locator" | "directory" | "method" | "store";
472
+ target: {
473
+ normalized_path: string;
474
+ target_type: "directory";
475
+ } | {
476
+ normalized_path: string;
477
+ content_digest: string;
478
+ target_type: "file";
479
+ } | {
480
+ normalized_path: string;
481
+ qualified_item_path: string;
482
+ signature_digest: string;
483
+ target_type: "item";
484
+ source_fact_ref: string;
485
+ };
486
+ declaration_ref: string;
487
+ }[];
488
+ declaration_set_digest: string;
489
+ }>;
490
+ export type IndexerStructuredDeclarationPayload = z.infer<typeof declarationPayloadSchema>;
491
+ export type IndexerStructuredDeclaration = z.infer<typeof indexerStructuredDeclarationSchema>;
492
+ export type IndexerStructuredDeclarationSet = z.infer<typeof indexerStructuredDeclarationSetSchema>;
493
+ export declare function indexerStructuredDeclarationRef(value: Omit<IndexerStructuredDeclarationPayload, "evidence_refs">): string;
494
+ export declare function indexerStructuredDeclarationSetDigest(value: Omit<IndexerStructuredDeclarationSet, "declaration_set_digest">): string;
495
+ export declare function buildIndexerStructuredDeclarationSet(input: {
496
+ source_identity_inventory_digest: string;
497
+ declarations: readonly IndexerStructuredDeclarationPayload[];
498
+ }): IndexerStructuredDeclarationSet;
499
+ export type IndexerStructuredDeclarationCarrierAuthority = Record<typeof INDEXER_STRUCTURED_DECLARATION_CARRIER_KINDS[number], readonly string[]>;
500
+ export declare function validateIndexerStructuredDeclarationSet(input: {
501
+ value: unknown;
502
+ source_identity_inventory: unknown;
503
+ expected_source_ref: string;
504
+ expected_module_ref: string | null;
505
+ carrier_authority: IndexerStructuredDeclarationCarrierAuthority;
506
+ known_evidence_refs: readonly string[];
507
+ }): IndexerStructuredDeclarationSet;
508
+ export declare function indexerSectionEvidenceCarrierRef(input: {
509
+ logical_unit_ref: string;
510
+ artifact_id: string;
511
+ section_key: string;
512
+ }): string;
513
+ export {};