@c4a/context 0.6.18 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +5 -5
  2. package/README.zh-CN.md +5 -5
  3. package/codeIndexPlan.d.ts +84 -0
  4. package/contracts.d.ts +2 -1
  5. package/docs/README.md +7 -0
  6. package/docs/README.zh-CN.md +5 -0
  7. package/docs/getting-started.md +12 -12
  8. package/docs/guides/agent-guide.md +18 -9
  9. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  10. package/docs/guides/indexer-provider-and-customization.md +140 -0
  11. package/docs/guides/lark-resources.md +7 -0
  12. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  13. package/docs/guides/package-outputs.md +3 -3
  14. package/docs/reference/code-extractors.md +7 -6
  15. package/docs/reference/indexer-provider-protocol.md +819 -0
  16. package/docs/reference/package-templates.md +18 -10
  17. package/docs/reference/project-api.md +49 -24
  18. package/index.d.ts +48 -2
  19. package/index.js +28239 -3948
  20. package/indexerAgentStepProtocol.d.ts +9391 -0
  21. package/indexerArtifactDependencies.d.ts +689 -0
  22. package/indexerArtifactPolicy.d.ts +335 -0
  23. package/indexerArtifactResult.d.ts +2010 -0
  24. package/indexerAuditFacts.d.ts +66 -0
  25. package/indexerAuditOverrideReadiness.d.ts +27 -0
  26. package/indexerAuditProtocol.d.ts +238 -0
  27. package/indexerAuditRevision.d.ts +726 -0
  28. package/indexerAuditRevisionActions.d.ts +236 -0
  29. package/indexerAuthoringFixture.d.ts +152 -0
  30. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  31. package/indexerBenchmark.d.ts +1062 -0
  32. package/indexerCandidateCompile.d.ts +801 -0
  33. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  34. package/indexerCatalogFallback.d.ts +1262 -0
  35. package/indexerCollectionMapping.d.ts +75 -0
  36. package/indexerContentLayers.d.ts +137 -0
  37. package/indexerControlledInvocation.d.ts +512 -0
  38. package/indexerControlledProgram.d.ts +12535 -0
  39. package/indexerCoreExports.d.ts +21 -0
  40. package/indexerCustomizationDraft.d.ts +13800 -0
  41. package/indexerCustomizationLadder.d.ts +103 -0
  42. package/indexerDependencyView.d.ts +1610 -0
  43. package/indexerEvidenceAdapterResult.d.ts +504 -0
  44. package/indexerExampleDecision.d.ts +1606 -0
  45. package/indexerExampleIdentity.d.ts +132 -0
  46. package/indexerExampleIdentityAudit.d.ts +70 -0
  47. package/indexerExampleLinkageAudit.d.ts +80 -0
  48. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  49. package/indexerIncrementalImpact.d.ts +221 -0
  50. package/indexerInventoryDisposition.d.ts +443 -0
  51. package/indexerLayerComposition.d.ts +1652 -0
  52. package/indexerLayoutChange.d.ts +329 -0
  53. package/indexerLayoutProposalSet.d.ts +447 -0
  54. package/indexerLayoutResolver.d.ts +342 -0
  55. package/indexerLayoutTransition.d.ts +247 -0
  56. package/indexerLifecycle.d.ts +53 -0
  57. package/indexerMainLifecycle.d.ts +258 -0
  58. package/indexerMainRunLedger.d.ts +888 -0
  59. package/indexerMainRunProtocol.d.ts +6471 -0
  60. package/indexerMainWorkset.d.ts +2141 -0
  61. package/indexerMaterialAnswer.d.ts +738 -0
  62. package/indexerMaterialAnswerActualization.d.ts +91 -0
  63. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  64. package/indexerMaterialAnswerFlow.d.ts +63 -0
  65. package/indexerMaterialAnswerLayout.d.ts +76 -0
  66. package/indexerMaterialAnswerReview.d.ts +217 -0
  67. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  68. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  69. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  70. package/indexerMaterialGapLedger.d.ts +3111 -0
  71. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  72. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  73. package/indexerNavigationArtifactGraph.d.ts +5 -0
  74. package/indexerNavigationArtifactPlan.d.ts +39 -0
  75. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  76. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  77. package/indexerOverlayTrust.d.ts +1425 -0
  78. package/indexerParserCoordinate.d.ts +222 -0
  79. package/indexerParserFactView.d.ts +503 -0
  80. package/indexerPartitionConvergence.d.ts +496 -0
  81. package/indexerPartitionPlan.d.ts +919 -0
  82. package/indexerPartitionStrategyResolution.d.ts +594 -0
  83. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  84. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  85. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  86. package/indexerPostAuthorComposition.d.ts +2000 -0
  87. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  88. package/indexerPrimaryProjection.d.ts +262 -0
  89. package/indexerProfileContract.d.ts +3034 -0
  90. package/indexerProfileMetricAudit.d.ts +218 -0
  91. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  92. package/indexerProgramRunProtocol.d.ts +7642 -0
  93. package/indexerProjectProposal.d.ts +2807 -0
  94. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  95. package/indexerProjectedArtifactPlan.d.ts +217 -0
  96. package/indexerProtocolCommon.d.ts +29 -0
  97. package/indexerProvider.d.ts +2573 -0
  98. package/indexerProviderComposition.d.ts +1357 -0
  99. package/indexerProviderContractReferences.d.ts +13 -0
  100. package/indexerProviderProfileResolution.d.ts +20 -0
  101. package/indexerProviderResolution.d.ts +752 -0
  102. package/indexerProviderResolutionAction.d.ts +678 -0
  103. package/indexerProviderRouting.d.ts +3909 -0
  104. package/indexerProviderSelectionProposal.d.ts +3311 -0
  105. package/indexerQuestionAuthority.d.ts +419 -0
  106. package/indexerReaderTargetInventory.d.ts +161 -0
  107. package/indexerReferenceOnlyAudit.d.ts +90 -0
  108. package/indexerRegistry.d.ts +3019 -0
  109. package/indexerRequirementComparison.d.ts +44 -0
  110. package/indexerRequirementConfirmation.d.ts +1193 -0
  111. package/indexerRequirementLifecycle.d.ts +3314 -0
  112. package/indexerRestrictedSelector.d.ts +63 -0
  113. package/indexerResultReconciliation.d.ts +6844 -0
  114. package/indexerResultReconciliationRun.d.ts +15 -0
  115. package/indexerRunEnvelope.d.ts +384 -0
  116. package/indexerRunProtocolCommon.d.ts +21 -0
  117. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  118. package/indexerStructuredDeclaration.d.ts +513 -0
  119. package/indexerSubjectCatalog.d.ts +230 -0
  120. package/indexerSubjectIdentity.d.ts +19 -0
  121. package/indexerSubjectKeyAuthority.d.ts +785 -0
  122. package/indexerTemplateRendering.d.ts +485 -0
  123. package/indexerToolSnapshot.d.ts +431 -0
  124. package/indexerWorksetRead.d.ts +287 -0
  125. package/package.json +1 -1
  126. package/phases.d.ts +11 -9
  127. package/templates/package-templates/kb/AGENTS.md +1 -1
  128. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +1 -1
  129. package/templates/package-templates.zh-CN/kb/AGENTS.md +1 -1
  130. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +1 -1
@@ -0,0 +1,503 @@
1
+ import { z } from "zod";
2
+ import type { IndexerJson } from "./indexerRegistry.js";
3
+ declare const parserFactSchema: z.ZodObject<{
4
+ fact_ref: z.ZodString;
5
+ kind: z.ZodEffects<z.ZodString, string, string>;
6
+ locator: z.ZodObject<{
7
+ source_ref: z.ZodString;
8
+ module_ref: z.ZodNullable<z.ZodString>;
9
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
10
+ qualified_item_path: z.ZodString;
11
+ signature_digest: z.ZodString;
12
+ }, "strict", z.ZodTypeAny, {
13
+ source_ref: string;
14
+ module_ref: string | null;
15
+ normalized_path: string;
16
+ qualified_item_path: string;
17
+ signature_digest: string;
18
+ }, {
19
+ source_ref: string;
20
+ module_ref: string | null;
21
+ normalized_path: string;
22
+ qualified_item_path: string;
23
+ signature_digest: string;
24
+ }>;
25
+ payload: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
26
+ payload_digest: z.ZodString;
27
+ denominator: z.ZodEnum<["none", "eligible-file", "loc", "symbol", "protocol-item"]>;
28
+ }, "strict", z.ZodTypeAny, {
29
+ kind: string;
30
+ locator: {
31
+ source_ref: string;
32
+ module_ref: string | null;
33
+ normalized_path: string;
34
+ qualified_item_path: string;
35
+ signature_digest: string;
36
+ };
37
+ payload: IndexerJson;
38
+ payload_digest: string;
39
+ fact_ref: string;
40
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
41
+ }, {
42
+ kind: string;
43
+ locator: {
44
+ source_ref: string;
45
+ module_ref: string | null;
46
+ normalized_path: string;
47
+ qualified_item_path: string;
48
+ signature_digest: string;
49
+ };
50
+ payload: IndexerJson;
51
+ payload_digest: string;
52
+ fact_ref: string;
53
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
54
+ }>;
55
+ declare const parserFactFileSchema: z.ZodEffects<z.ZodObject<{
56
+ file_ref: z.ZodString;
57
+ source_ref: z.ZodString;
58
+ module_ref: z.ZodNullable<z.ZodString>;
59
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
60
+ disposition: z.ZodEnum<["analyzed", "unsupported", "excluded"]>;
61
+ facts: z.ZodArray<z.ZodObject<{
62
+ fact_ref: z.ZodString;
63
+ kind: z.ZodEffects<z.ZodString, string, string>;
64
+ locator: z.ZodObject<{
65
+ source_ref: z.ZodString;
66
+ module_ref: z.ZodNullable<z.ZodString>;
67
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
68
+ qualified_item_path: z.ZodString;
69
+ signature_digest: z.ZodString;
70
+ }, "strict", z.ZodTypeAny, {
71
+ source_ref: string;
72
+ module_ref: string | null;
73
+ normalized_path: string;
74
+ qualified_item_path: string;
75
+ signature_digest: string;
76
+ }, {
77
+ source_ref: string;
78
+ module_ref: string | null;
79
+ normalized_path: string;
80
+ qualified_item_path: string;
81
+ signature_digest: string;
82
+ }>;
83
+ payload: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
84
+ payload_digest: z.ZodString;
85
+ denominator: z.ZodEnum<["none", "eligible-file", "loc", "symbol", "protocol-item"]>;
86
+ }, "strict", z.ZodTypeAny, {
87
+ kind: string;
88
+ locator: {
89
+ source_ref: string;
90
+ module_ref: string | null;
91
+ normalized_path: string;
92
+ qualified_item_path: string;
93
+ signature_digest: string;
94
+ };
95
+ payload: IndexerJson;
96
+ payload_digest: string;
97
+ fact_ref: string;
98
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
99
+ }, {
100
+ kind: string;
101
+ locator: {
102
+ source_ref: string;
103
+ module_ref: string | null;
104
+ normalized_path: string;
105
+ qualified_item_path: string;
106
+ signature_digest: string;
107
+ };
108
+ payload: IndexerJson;
109
+ payload_digest: string;
110
+ fact_ref: string;
111
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
112
+ }>, "many">;
113
+ }, "strict", z.ZodTypeAny, {
114
+ source_ref: string;
115
+ facts: {
116
+ kind: string;
117
+ locator: {
118
+ source_ref: string;
119
+ module_ref: string | null;
120
+ normalized_path: string;
121
+ qualified_item_path: string;
122
+ signature_digest: string;
123
+ };
124
+ payload: IndexerJson;
125
+ payload_digest: string;
126
+ fact_ref: string;
127
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
128
+ }[];
129
+ module_ref: string | null;
130
+ normalized_path: string;
131
+ file_ref: string;
132
+ disposition: "analyzed" | "unsupported" | "excluded";
133
+ }, {
134
+ source_ref: string;
135
+ facts: {
136
+ kind: string;
137
+ locator: {
138
+ source_ref: string;
139
+ module_ref: string | null;
140
+ normalized_path: string;
141
+ qualified_item_path: string;
142
+ signature_digest: string;
143
+ };
144
+ payload: IndexerJson;
145
+ payload_digest: string;
146
+ fact_ref: string;
147
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
148
+ }[];
149
+ module_ref: string | null;
150
+ normalized_path: string;
151
+ file_ref: string;
152
+ disposition: "analyzed" | "unsupported" | "excluded";
153
+ }>, {
154
+ source_ref: string;
155
+ facts: {
156
+ kind: string;
157
+ locator: {
158
+ source_ref: string;
159
+ module_ref: string | null;
160
+ normalized_path: string;
161
+ qualified_item_path: string;
162
+ signature_digest: string;
163
+ };
164
+ payload: IndexerJson;
165
+ payload_digest: string;
166
+ fact_ref: string;
167
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
168
+ }[];
169
+ module_ref: string | null;
170
+ normalized_path: string;
171
+ file_ref: string;
172
+ disposition: "analyzed" | "unsupported" | "excluded";
173
+ }, {
174
+ source_ref: string;
175
+ facts: {
176
+ kind: string;
177
+ locator: {
178
+ source_ref: string;
179
+ module_ref: string | null;
180
+ normalized_path: string;
181
+ qualified_item_path: string;
182
+ signature_digest: string;
183
+ };
184
+ payload: IndexerJson;
185
+ payload_digest: string;
186
+ fact_ref: string;
187
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
188
+ }[];
189
+ module_ref: string | null;
190
+ normalized_path: string;
191
+ file_ref: string;
192
+ disposition: "analyzed" | "unsupported" | "excluded";
193
+ }>;
194
+ export declare const indexerParserFactViewSchema: z.ZodEffects<z.ZodObject<{
195
+ protocol: z.ZodLiteral<"context.indexer.parser-fact-view/v1">;
196
+ authorized_scope: z.ZodObject<{
197
+ source_ref: z.ZodString;
198
+ module_refs: z.ZodArray<z.ZodString, "many">;
199
+ scope_digest: z.ZodString;
200
+ }, "strict", z.ZodTypeAny, {
201
+ source_ref: string;
202
+ module_refs: string[];
203
+ scope_digest: string;
204
+ }, {
205
+ source_ref: string;
206
+ module_refs: string[];
207
+ scope_digest: string;
208
+ }>;
209
+ inventory_digest: z.ZodString;
210
+ origin_result_digests: z.ZodArray<z.ZodString, "many">;
211
+ files: z.ZodArray<z.ZodEffects<z.ZodObject<{
212
+ file_ref: z.ZodString;
213
+ source_ref: z.ZodString;
214
+ module_ref: z.ZodNullable<z.ZodString>;
215
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
216
+ disposition: z.ZodEnum<["analyzed", "unsupported", "excluded"]>;
217
+ facts: z.ZodArray<z.ZodObject<{
218
+ fact_ref: z.ZodString;
219
+ kind: z.ZodEffects<z.ZodString, string, string>;
220
+ locator: z.ZodObject<{
221
+ source_ref: z.ZodString;
222
+ module_ref: z.ZodNullable<z.ZodString>;
223
+ normalized_path: z.ZodEffects<z.ZodString, string, string>;
224
+ qualified_item_path: z.ZodString;
225
+ signature_digest: z.ZodString;
226
+ }, "strict", z.ZodTypeAny, {
227
+ source_ref: string;
228
+ module_ref: string | null;
229
+ normalized_path: string;
230
+ qualified_item_path: string;
231
+ signature_digest: string;
232
+ }, {
233
+ source_ref: string;
234
+ module_ref: string | null;
235
+ normalized_path: string;
236
+ qualified_item_path: string;
237
+ signature_digest: string;
238
+ }>;
239
+ payload: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
240
+ payload_digest: z.ZodString;
241
+ denominator: z.ZodEnum<["none", "eligible-file", "loc", "symbol", "protocol-item"]>;
242
+ }, "strict", z.ZodTypeAny, {
243
+ kind: string;
244
+ locator: {
245
+ source_ref: string;
246
+ module_ref: string | null;
247
+ normalized_path: string;
248
+ qualified_item_path: string;
249
+ signature_digest: string;
250
+ };
251
+ payload: IndexerJson;
252
+ payload_digest: string;
253
+ fact_ref: string;
254
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
255
+ }, {
256
+ kind: string;
257
+ locator: {
258
+ source_ref: string;
259
+ module_ref: string | null;
260
+ normalized_path: string;
261
+ qualified_item_path: string;
262
+ signature_digest: string;
263
+ };
264
+ payload: IndexerJson;
265
+ payload_digest: string;
266
+ fact_ref: string;
267
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
268
+ }>, "many">;
269
+ }, "strict", z.ZodTypeAny, {
270
+ source_ref: string;
271
+ facts: {
272
+ kind: string;
273
+ locator: {
274
+ source_ref: string;
275
+ module_ref: string | null;
276
+ normalized_path: string;
277
+ qualified_item_path: string;
278
+ signature_digest: string;
279
+ };
280
+ payload: IndexerJson;
281
+ payload_digest: string;
282
+ fact_ref: string;
283
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
284
+ }[];
285
+ module_ref: string | null;
286
+ normalized_path: string;
287
+ file_ref: string;
288
+ disposition: "analyzed" | "unsupported" | "excluded";
289
+ }, {
290
+ source_ref: string;
291
+ facts: {
292
+ kind: string;
293
+ locator: {
294
+ source_ref: string;
295
+ module_ref: string | null;
296
+ normalized_path: string;
297
+ qualified_item_path: string;
298
+ signature_digest: string;
299
+ };
300
+ payload: IndexerJson;
301
+ payload_digest: string;
302
+ fact_ref: string;
303
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
304
+ }[];
305
+ module_ref: string | null;
306
+ normalized_path: string;
307
+ file_ref: string;
308
+ disposition: "analyzed" | "unsupported" | "excluded";
309
+ }>, {
310
+ source_ref: string;
311
+ facts: {
312
+ kind: string;
313
+ locator: {
314
+ source_ref: string;
315
+ module_ref: string | null;
316
+ normalized_path: string;
317
+ qualified_item_path: string;
318
+ signature_digest: string;
319
+ };
320
+ payload: IndexerJson;
321
+ payload_digest: string;
322
+ fact_ref: string;
323
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
324
+ }[];
325
+ module_ref: string | null;
326
+ normalized_path: string;
327
+ file_ref: string;
328
+ disposition: "analyzed" | "unsupported" | "excluded";
329
+ }, {
330
+ source_ref: string;
331
+ facts: {
332
+ kind: string;
333
+ locator: {
334
+ source_ref: string;
335
+ module_ref: string | null;
336
+ normalized_path: string;
337
+ qualified_item_path: string;
338
+ signature_digest: string;
339
+ };
340
+ payload: IndexerJson;
341
+ payload_digest: string;
342
+ fact_ref: string;
343
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
344
+ }[];
345
+ module_ref: string | null;
346
+ normalized_path: string;
347
+ file_ref: string;
348
+ disposition: "analyzed" | "unsupported" | "excluded";
349
+ }>, "many">;
350
+ fact_set_digest: z.ZodString;
351
+ view_digest: z.ZodString;
352
+ }, "strict", z.ZodTypeAny, {
353
+ protocol: "context.indexer.parser-fact-view/v1";
354
+ files: {
355
+ source_ref: string;
356
+ facts: {
357
+ kind: string;
358
+ locator: {
359
+ source_ref: string;
360
+ module_ref: string | null;
361
+ normalized_path: string;
362
+ qualified_item_path: string;
363
+ signature_digest: string;
364
+ };
365
+ payload: IndexerJson;
366
+ payload_digest: string;
367
+ fact_ref: string;
368
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
369
+ }[];
370
+ module_ref: string | null;
371
+ normalized_path: string;
372
+ file_ref: string;
373
+ disposition: "analyzed" | "unsupported" | "excluded";
374
+ }[];
375
+ view_digest: string;
376
+ authorized_scope: {
377
+ source_ref: string;
378
+ module_refs: string[];
379
+ scope_digest: string;
380
+ };
381
+ inventory_digest: string;
382
+ origin_result_digests: string[];
383
+ fact_set_digest: string;
384
+ }, {
385
+ protocol: "context.indexer.parser-fact-view/v1";
386
+ files: {
387
+ source_ref: string;
388
+ facts: {
389
+ kind: string;
390
+ locator: {
391
+ source_ref: string;
392
+ module_ref: string | null;
393
+ normalized_path: string;
394
+ qualified_item_path: string;
395
+ signature_digest: string;
396
+ };
397
+ payload: IndexerJson;
398
+ payload_digest: string;
399
+ fact_ref: string;
400
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
401
+ }[];
402
+ module_ref: string | null;
403
+ normalized_path: string;
404
+ file_ref: string;
405
+ disposition: "analyzed" | "unsupported" | "excluded";
406
+ }[];
407
+ view_digest: string;
408
+ authorized_scope: {
409
+ source_ref: string;
410
+ module_refs: string[];
411
+ scope_digest: string;
412
+ };
413
+ inventory_digest: string;
414
+ origin_result_digests: string[];
415
+ fact_set_digest: string;
416
+ }>, {
417
+ protocol: "context.indexer.parser-fact-view/v1";
418
+ files: {
419
+ source_ref: string;
420
+ facts: {
421
+ kind: string;
422
+ locator: {
423
+ source_ref: string;
424
+ module_ref: string | null;
425
+ normalized_path: string;
426
+ qualified_item_path: string;
427
+ signature_digest: string;
428
+ };
429
+ payload: IndexerJson;
430
+ payload_digest: string;
431
+ fact_ref: string;
432
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
433
+ }[];
434
+ module_ref: string | null;
435
+ normalized_path: string;
436
+ file_ref: string;
437
+ disposition: "analyzed" | "unsupported" | "excluded";
438
+ }[];
439
+ view_digest: string;
440
+ authorized_scope: {
441
+ source_ref: string;
442
+ module_refs: string[];
443
+ scope_digest: string;
444
+ };
445
+ inventory_digest: string;
446
+ origin_result_digests: string[];
447
+ fact_set_digest: string;
448
+ }, {
449
+ protocol: "context.indexer.parser-fact-view/v1";
450
+ files: {
451
+ source_ref: string;
452
+ facts: {
453
+ kind: string;
454
+ locator: {
455
+ source_ref: string;
456
+ module_ref: string | null;
457
+ normalized_path: string;
458
+ qualified_item_path: string;
459
+ signature_digest: string;
460
+ };
461
+ payload: IndexerJson;
462
+ payload_digest: string;
463
+ fact_ref: string;
464
+ denominator: "symbol" | "none" | "eligible-file" | "loc" | "protocol-item";
465
+ }[];
466
+ module_ref: string | null;
467
+ normalized_path: string;
468
+ file_ref: string;
469
+ disposition: "analyzed" | "unsupported" | "excluded";
470
+ }[];
471
+ view_digest: string;
472
+ authorized_scope: {
473
+ source_ref: string;
474
+ module_refs: string[];
475
+ scope_digest: string;
476
+ };
477
+ inventory_digest: string;
478
+ origin_result_digests: string[];
479
+ fact_set_digest: string;
480
+ }>;
481
+ export type IndexerParserFact = z.infer<typeof parserFactSchema>;
482
+ export type IndexerParserFactFile = z.infer<typeof parserFactFileSchema>;
483
+ export type IndexerParserFactView = z.infer<typeof indexerParserFactViewSchema>;
484
+ export interface IndexerParserFactPayload {
485
+ fact_ref: string;
486
+ payload: IndexerJson;
487
+ }
488
+ export declare function validateIndexerParserFactView(value: unknown): IndexerParserFactView;
489
+ export declare function buildIndexerParserFactView(input: {
490
+ adapter_results: readonly unknown[];
491
+ fact_payloads: readonly IndexerParserFactPayload[];
492
+ inventory_digest: string;
493
+ file_refs?: readonly string[];
494
+ }): IndexerParserFactView;
495
+ export declare function buildIndexerParserFactViewFromMaterializations(input: {
496
+ materializations: readonly {
497
+ result: unknown;
498
+ fact_payloads: readonly IndexerParserFactPayload[];
499
+ }[];
500
+ inventory_digest: string;
501
+ file_refs?: readonly string[];
502
+ }): IndexerParserFactView;
503
+ export {};