@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,1610 @@
1
+ import { z } from "zod";
2
+ export declare const indexerDependencyTargetSchema: z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
3
+ level: z.ZodLiteral<"logical-unit">;
4
+ }, "strict", z.ZodTypeAny, {
5
+ level: "logical-unit";
6
+ }, {
7
+ level: "logical-unit";
8
+ }>, z.ZodObject<{
9
+ level: z.ZodLiteral<"artifact-kind">;
10
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
11
+ }, "strict", z.ZodTypeAny, {
12
+ artifact_kind: string;
13
+ level: "artifact-kind";
14
+ }, {
15
+ artifact_kind: string;
16
+ level: "artifact-kind";
17
+ }>, z.ZodObject<{
18
+ level: z.ZodLiteral<"section">;
19
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
20
+ section_key: z.ZodEffects<z.ZodString, string, string>;
21
+ }, "strict", z.ZodTypeAny, {
22
+ artifact_kind: string;
23
+ level: "section";
24
+ section_key: string;
25
+ }, {
26
+ artifact_kind: string;
27
+ level: "section";
28
+ section_key: string;
29
+ }>]>;
30
+ export type IndexerDependencyTarget = z.infer<typeof indexerDependencyTargetSchema>;
31
+ export declare const indexerPositiveDependencyNodeInputSchema: z.ZodUnion<[z.ZodObject<{
32
+ kind: z.ZodLiteral<"source-span">;
33
+ evidence_ref: z.ZodString;
34
+ source_ref: z.ZodString;
35
+ module_ref: z.ZodNullable<z.ZodString>;
36
+ locator: z.ZodEffects<z.ZodObject<{
37
+ path: z.ZodEffects<z.ZodString, string, string>;
38
+ start_line: z.ZodNumber;
39
+ end_line: z.ZodNumber;
40
+ }, "strict", z.ZodTypeAny, {
41
+ path: string;
42
+ start_line: number;
43
+ end_line: number;
44
+ }, {
45
+ path: string;
46
+ start_line: number;
47
+ end_line: number;
48
+ }>, {
49
+ path: string;
50
+ start_line: number;
51
+ end_line: number;
52
+ }, {
53
+ path: string;
54
+ start_line: number;
55
+ end_line: number;
56
+ }>;
57
+ content_digest: z.ZodString;
58
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
59
+ level: z.ZodLiteral<"logical-unit">;
60
+ }, "strict", z.ZodTypeAny, {
61
+ level: "logical-unit";
62
+ }, {
63
+ level: "logical-unit";
64
+ }>, z.ZodObject<{
65
+ level: z.ZodLiteral<"artifact-kind">;
66
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
67
+ }, "strict", z.ZodTypeAny, {
68
+ artifact_kind: string;
69
+ level: "artifact-kind";
70
+ }, {
71
+ artifact_kind: string;
72
+ level: "artifact-kind";
73
+ }>, z.ZodObject<{
74
+ level: z.ZodLiteral<"section">;
75
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
76
+ section_key: z.ZodEffects<z.ZodString, string, string>;
77
+ }, "strict", z.ZodTypeAny, {
78
+ artifact_kind: string;
79
+ level: "section";
80
+ section_key: string;
81
+ }, {
82
+ artifact_kind: string;
83
+ level: "section";
84
+ section_key: string;
85
+ }>]>, "many">;
86
+ }, "strict", z.ZodTypeAny, {
87
+ kind: "source-span";
88
+ source_ref: string;
89
+ targets: ({
90
+ level: "logical-unit";
91
+ } | {
92
+ artifact_kind: string;
93
+ level: "artifact-kind";
94
+ } | {
95
+ artifact_kind: string;
96
+ level: "section";
97
+ section_key: string;
98
+ })[];
99
+ locator: {
100
+ path: string;
101
+ start_line: number;
102
+ end_line: number;
103
+ };
104
+ module_ref: string | null;
105
+ content_digest: string;
106
+ evidence_ref: string;
107
+ }, {
108
+ kind: "source-span";
109
+ source_ref: string;
110
+ targets: ({
111
+ level: "logical-unit";
112
+ } | {
113
+ artifact_kind: string;
114
+ level: "artifact-kind";
115
+ } | {
116
+ artifact_kind: string;
117
+ level: "section";
118
+ section_key: string;
119
+ })[];
120
+ locator: {
121
+ path: string;
122
+ start_line: number;
123
+ end_line: number;
124
+ };
125
+ module_ref: string | null;
126
+ content_digest: string;
127
+ evidence_ref: string;
128
+ }>, z.ZodObject<{
129
+ kind: z.ZodLiteral<"selected-fact">;
130
+ fact_ref: z.ZodString;
131
+ fact_digest: z.ZodString;
132
+ source_span_node_refs: z.ZodArray<z.ZodString, "many">;
133
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
134
+ level: z.ZodLiteral<"logical-unit">;
135
+ }, "strict", z.ZodTypeAny, {
136
+ level: "logical-unit";
137
+ }, {
138
+ level: "logical-unit";
139
+ }>, z.ZodObject<{
140
+ level: z.ZodLiteral<"artifact-kind">;
141
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ artifact_kind: string;
144
+ level: "artifact-kind";
145
+ }, {
146
+ artifact_kind: string;
147
+ level: "artifact-kind";
148
+ }>, z.ZodObject<{
149
+ level: z.ZodLiteral<"section">;
150
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
151
+ section_key: z.ZodEffects<z.ZodString, string, string>;
152
+ }, "strict", z.ZodTypeAny, {
153
+ artifact_kind: string;
154
+ level: "section";
155
+ section_key: string;
156
+ }, {
157
+ artifact_kind: string;
158
+ level: "section";
159
+ section_key: string;
160
+ }>]>, "many">;
161
+ }, "strict", z.ZodTypeAny, {
162
+ kind: "selected-fact";
163
+ targets: ({
164
+ level: "logical-unit";
165
+ } | {
166
+ artifact_kind: string;
167
+ level: "artifact-kind";
168
+ } | {
169
+ artifact_kind: string;
170
+ level: "section";
171
+ section_key: string;
172
+ })[];
173
+ fact_ref: string;
174
+ fact_digest: string;
175
+ source_span_node_refs: string[];
176
+ }, {
177
+ kind: "selected-fact";
178
+ targets: ({
179
+ level: "logical-unit";
180
+ } | {
181
+ artifact_kind: string;
182
+ level: "artifact-kind";
183
+ } | {
184
+ artifact_kind: string;
185
+ level: "section";
186
+ section_key: string;
187
+ })[];
188
+ fact_ref: string;
189
+ fact_digest: string;
190
+ source_span_node_refs: string[];
191
+ }>, z.ZodObject<{
192
+ kind: z.ZodLiteral<"logical-unit">;
193
+ logical_unit_ref: z.ZodString;
194
+ group_projection_digest: z.ZodString;
195
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
196
+ level: z.ZodLiteral<"logical-unit">;
197
+ }, "strict", z.ZodTypeAny, {
198
+ level: "logical-unit";
199
+ }, {
200
+ level: "logical-unit";
201
+ }>, z.ZodObject<{
202
+ level: z.ZodLiteral<"artifact-kind">;
203
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
204
+ }, "strict", z.ZodTypeAny, {
205
+ artifact_kind: string;
206
+ level: "artifact-kind";
207
+ }, {
208
+ artifact_kind: string;
209
+ level: "artifact-kind";
210
+ }>, z.ZodObject<{
211
+ level: z.ZodLiteral<"section">;
212
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
213
+ section_key: z.ZodEffects<z.ZodString, string, string>;
214
+ }, "strict", z.ZodTypeAny, {
215
+ artifact_kind: string;
216
+ level: "section";
217
+ section_key: string;
218
+ }, {
219
+ artifact_kind: string;
220
+ level: "section";
221
+ section_key: string;
222
+ }>]>, "many">;
223
+ }, "strict", z.ZodTypeAny, {
224
+ kind: "logical-unit";
225
+ targets: ({
226
+ level: "logical-unit";
227
+ } | {
228
+ artifact_kind: string;
229
+ level: "artifact-kind";
230
+ } | {
231
+ artifact_kind: string;
232
+ level: "section";
233
+ section_key: string;
234
+ })[];
235
+ logical_unit_ref: string;
236
+ group_projection_digest: string;
237
+ }, {
238
+ kind: "logical-unit";
239
+ targets: ({
240
+ level: "logical-unit";
241
+ } | {
242
+ artifact_kind: string;
243
+ level: "artifact-kind";
244
+ } | {
245
+ artifact_kind: string;
246
+ level: "section";
247
+ section_key: string;
248
+ })[];
249
+ logical_unit_ref: string;
250
+ group_projection_digest: string;
251
+ }>, z.ZodObject<{
252
+ kind: z.ZodEnum<["template-policy-fragment", "contract-metric"]>;
253
+ target_ref: z.ZodString;
254
+ content_digest: z.ZodString;
255
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
256
+ level: z.ZodLiteral<"logical-unit">;
257
+ }, "strict", z.ZodTypeAny, {
258
+ level: "logical-unit";
259
+ }, {
260
+ level: "logical-unit";
261
+ }>, z.ZodObject<{
262
+ level: z.ZodLiteral<"artifact-kind">;
263
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
264
+ }, "strict", z.ZodTypeAny, {
265
+ artifact_kind: string;
266
+ level: "artifact-kind";
267
+ }, {
268
+ artifact_kind: string;
269
+ level: "artifact-kind";
270
+ }>, z.ZodObject<{
271
+ level: z.ZodLiteral<"section">;
272
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
273
+ section_key: z.ZodEffects<z.ZodString, string, string>;
274
+ }, "strict", z.ZodTypeAny, {
275
+ artifact_kind: string;
276
+ level: "section";
277
+ section_key: string;
278
+ }, {
279
+ artifact_kind: string;
280
+ level: "section";
281
+ section_key: string;
282
+ }>]>, "many">;
283
+ }, "strict", z.ZodTypeAny, {
284
+ kind: "template-policy-fragment" | "contract-metric";
285
+ targets: ({
286
+ level: "logical-unit";
287
+ } | {
288
+ artifact_kind: string;
289
+ level: "artifact-kind";
290
+ } | {
291
+ artifact_kind: string;
292
+ level: "section";
293
+ section_key: string;
294
+ })[];
295
+ target_ref: string;
296
+ content_digest: string;
297
+ }, {
298
+ kind: "template-policy-fragment" | "contract-metric";
299
+ targets: ({
300
+ level: "logical-unit";
301
+ } | {
302
+ artifact_kind: string;
303
+ level: "artifact-kind";
304
+ } | {
305
+ artifact_kind: string;
306
+ level: "section";
307
+ section_key: string;
308
+ })[];
309
+ target_ref: string;
310
+ content_digest: string;
311
+ }>]>;
312
+ export declare const indexerNegativeDependencyNodeInputSchema: z.ZodObject<{
313
+ kind: z.ZodEnum<["group-input-set", "directory-membership", "export-set", "route-set", "candidate-pool", "precedence-winner", "absence-assertion"]>;
314
+ scope_ref: z.ZodString;
315
+ set_digest: z.ZodString;
316
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
317
+ level: z.ZodLiteral<"logical-unit">;
318
+ }, "strict", z.ZodTypeAny, {
319
+ level: "logical-unit";
320
+ }, {
321
+ level: "logical-unit";
322
+ }>, z.ZodObject<{
323
+ level: z.ZodLiteral<"artifact-kind">;
324
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
325
+ }, "strict", z.ZodTypeAny, {
326
+ artifact_kind: string;
327
+ level: "artifact-kind";
328
+ }, {
329
+ artifact_kind: string;
330
+ level: "artifact-kind";
331
+ }>, z.ZodObject<{
332
+ level: z.ZodLiteral<"section">;
333
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
334
+ section_key: z.ZodEffects<z.ZodString, string, string>;
335
+ }, "strict", z.ZodTypeAny, {
336
+ artifact_kind: string;
337
+ level: "section";
338
+ section_key: string;
339
+ }, {
340
+ artifact_kind: string;
341
+ level: "section";
342
+ section_key: string;
343
+ }>]>, "many">;
344
+ }, "strict", z.ZodTypeAny, {
345
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
346
+ targets: ({
347
+ level: "logical-unit";
348
+ } | {
349
+ artifact_kind: string;
350
+ level: "artifact-kind";
351
+ } | {
352
+ artifact_kind: string;
353
+ level: "section";
354
+ section_key: string;
355
+ })[];
356
+ scope_ref: string;
357
+ set_digest: string;
358
+ }, {
359
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
360
+ targets: ({
361
+ level: "logical-unit";
362
+ } | {
363
+ artifact_kind: string;
364
+ level: "artifact-kind";
365
+ } | {
366
+ artifact_kind: string;
367
+ level: "section";
368
+ section_key: string;
369
+ })[];
370
+ scope_ref: string;
371
+ set_digest: string;
372
+ }>;
373
+ export declare const indexerSourceSpanDependencyNodeSchema: z.ZodObject<{
374
+ kind: z.ZodLiteral<"source-span">;
375
+ evidence_ref: z.ZodString;
376
+ source_ref: z.ZodString;
377
+ module_ref: z.ZodNullable<z.ZodString>;
378
+ locator: z.ZodEffects<z.ZodObject<{
379
+ path: z.ZodEffects<z.ZodString, string, string>;
380
+ start_line: z.ZodNumber;
381
+ end_line: z.ZodNumber;
382
+ }, "strict", z.ZodTypeAny, {
383
+ path: string;
384
+ start_line: number;
385
+ end_line: number;
386
+ }, {
387
+ path: string;
388
+ start_line: number;
389
+ end_line: number;
390
+ }>, {
391
+ path: string;
392
+ start_line: number;
393
+ end_line: number;
394
+ }, {
395
+ path: string;
396
+ start_line: number;
397
+ end_line: number;
398
+ }>;
399
+ content_digest: z.ZodString;
400
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
401
+ level: z.ZodLiteral<"logical-unit">;
402
+ }, "strict", z.ZodTypeAny, {
403
+ level: "logical-unit";
404
+ }, {
405
+ level: "logical-unit";
406
+ }>, z.ZodObject<{
407
+ level: z.ZodLiteral<"artifact-kind">;
408
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
409
+ }, "strict", z.ZodTypeAny, {
410
+ artifact_kind: string;
411
+ level: "artifact-kind";
412
+ }, {
413
+ artifact_kind: string;
414
+ level: "artifact-kind";
415
+ }>, z.ZodObject<{
416
+ level: z.ZodLiteral<"section">;
417
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
418
+ section_key: z.ZodEffects<z.ZodString, string, string>;
419
+ }, "strict", z.ZodTypeAny, {
420
+ artifact_kind: string;
421
+ level: "section";
422
+ section_key: string;
423
+ }, {
424
+ artifact_kind: string;
425
+ level: "section";
426
+ section_key: string;
427
+ }>]>, "many">;
428
+ } & {
429
+ node_ref: z.ZodString;
430
+ }, "strict", z.ZodTypeAny, {
431
+ kind: "source-span";
432
+ source_ref: string;
433
+ targets: ({
434
+ level: "logical-unit";
435
+ } | {
436
+ artifact_kind: string;
437
+ level: "artifact-kind";
438
+ } | {
439
+ artifact_kind: string;
440
+ level: "section";
441
+ section_key: string;
442
+ })[];
443
+ locator: {
444
+ path: string;
445
+ start_line: number;
446
+ end_line: number;
447
+ };
448
+ module_ref: string | null;
449
+ content_digest: string;
450
+ node_ref: string;
451
+ evidence_ref: string;
452
+ }, {
453
+ kind: "source-span";
454
+ source_ref: string;
455
+ targets: ({
456
+ level: "logical-unit";
457
+ } | {
458
+ artifact_kind: string;
459
+ level: "artifact-kind";
460
+ } | {
461
+ artifact_kind: string;
462
+ level: "section";
463
+ section_key: string;
464
+ })[];
465
+ locator: {
466
+ path: string;
467
+ start_line: number;
468
+ end_line: number;
469
+ };
470
+ module_ref: string | null;
471
+ content_digest: string;
472
+ node_ref: string;
473
+ evidence_ref: string;
474
+ }>;
475
+ export declare const indexerSelectedFactDependencyNodeSchema: z.ZodObject<{
476
+ kind: z.ZodLiteral<"selected-fact">;
477
+ fact_ref: z.ZodString;
478
+ fact_digest: z.ZodString;
479
+ source_span_node_refs: z.ZodArray<z.ZodString, "many">;
480
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
481
+ level: z.ZodLiteral<"logical-unit">;
482
+ }, "strict", z.ZodTypeAny, {
483
+ level: "logical-unit";
484
+ }, {
485
+ level: "logical-unit";
486
+ }>, z.ZodObject<{
487
+ level: z.ZodLiteral<"artifact-kind">;
488
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
489
+ }, "strict", z.ZodTypeAny, {
490
+ artifact_kind: string;
491
+ level: "artifact-kind";
492
+ }, {
493
+ artifact_kind: string;
494
+ level: "artifact-kind";
495
+ }>, z.ZodObject<{
496
+ level: z.ZodLiteral<"section">;
497
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
498
+ section_key: z.ZodEffects<z.ZodString, string, string>;
499
+ }, "strict", z.ZodTypeAny, {
500
+ artifact_kind: string;
501
+ level: "section";
502
+ section_key: string;
503
+ }, {
504
+ artifact_kind: string;
505
+ level: "section";
506
+ section_key: string;
507
+ }>]>, "many">;
508
+ } & {
509
+ node_ref: z.ZodString;
510
+ }, "strict", z.ZodTypeAny, {
511
+ kind: "selected-fact";
512
+ targets: ({
513
+ level: "logical-unit";
514
+ } | {
515
+ artifact_kind: string;
516
+ level: "artifact-kind";
517
+ } | {
518
+ artifact_kind: string;
519
+ level: "section";
520
+ section_key: string;
521
+ })[];
522
+ fact_ref: string;
523
+ node_ref: string;
524
+ fact_digest: string;
525
+ source_span_node_refs: string[];
526
+ }, {
527
+ kind: "selected-fact";
528
+ targets: ({
529
+ level: "logical-unit";
530
+ } | {
531
+ artifact_kind: string;
532
+ level: "artifact-kind";
533
+ } | {
534
+ artifact_kind: string;
535
+ level: "section";
536
+ section_key: string;
537
+ })[];
538
+ fact_ref: string;
539
+ node_ref: string;
540
+ fact_digest: string;
541
+ source_span_node_refs: string[];
542
+ }>;
543
+ export declare const indexerLogicalUnitDependencyNodeSchema: z.ZodObject<{
544
+ kind: z.ZodLiteral<"logical-unit">;
545
+ logical_unit_ref: z.ZodString;
546
+ group_projection_digest: z.ZodString;
547
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
548
+ level: z.ZodLiteral<"logical-unit">;
549
+ }, "strict", z.ZodTypeAny, {
550
+ level: "logical-unit";
551
+ }, {
552
+ level: "logical-unit";
553
+ }>, z.ZodObject<{
554
+ level: z.ZodLiteral<"artifact-kind">;
555
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
556
+ }, "strict", z.ZodTypeAny, {
557
+ artifact_kind: string;
558
+ level: "artifact-kind";
559
+ }, {
560
+ artifact_kind: string;
561
+ level: "artifact-kind";
562
+ }>, z.ZodObject<{
563
+ level: z.ZodLiteral<"section">;
564
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
565
+ section_key: z.ZodEffects<z.ZodString, string, string>;
566
+ }, "strict", z.ZodTypeAny, {
567
+ artifact_kind: string;
568
+ level: "section";
569
+ section_key: string;
570
+ }, {
571
+ artifact_kind: string;
572
+ level: "section";
573
+ section_key: string;
574
+ }>]>, "many">;
575
+ } & {
576
+ node_ref: z.ZodString;
577
+ }, "strict", z.ZodTypeAny, {
578
+ kind: "logical-unit";
579
+ targets: ({
580
+ level: "logical-unit";
581
+ } | {
582
+ artifact_kind: string;
583
+ level: "artifact-kind";
584
+ } | {
585
+ artifact_kind: string;
586
+ level: "section";
587
+ section_key: string;
588
+ })[];
589
+ logical_unit_ref: string;
590
+ node_ref: string;
591
+ group_projection_digest: string;
592
+ }, {
593
+ kind: "logical-unit";
594
+ targets: ({
595
+ level: "logical-unit";
596
+ } | {
597
+ artifact_kind: string;
598
+ level: "artifact-kind";
599
+ } | {
600
+ artifact_kind: string;
601
+ level: "section";
602
+ section_key: string;
603
+ })[];
604
+ logical_unit_ref: string;
605
+ node_ref: string;
606
+ group_projection_digest: string;
607
+ }>;
608
+ export declare const indexerResourceDependencyNodeSchema: z.ZodObject<{
609
+ kind: z.ZodEnum<["template-policy-fragment", "contract-metric"]>;
610
+ target_ref: z.ZodString;
611
+ content_digest: z.ZodString;
612
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
613
+ level: z.ZodLiteral<"logical-unit">;
614
+ }, "strict", z.ZodTypeAny, {
615
+ level: "logical-unit";
616
+ }, {
617
+ level: "logical-unit";
618
+ }>, z.ZodObject<{
619
+ level: z.ZodLiteral<"artifact-kind">;
620
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
621
+ }, "strict", z.ZodTypeAny, {
622
+ artifact_kind: string;
623
+ level: "artifact-kind";
624
+ }, {
625
+ artifact_kind: string;
626
+ level: "artifact-kind";
627
+ }>, z.ZodObject<{
628
+ level: z.ZodLiteral<"section">;
629
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
630
+ section_key: z.ZodEffects<z.ZodString, string, string>;
631
+ }, "strict", z.ZodTypeAny, {
632
+ artifact_kind: string;
633
+ level: "section";
634
+ section_key: string;
635
+ }, {
636
+ artifact_kind: string;
637
+ level: "section";
638
+ section_key: string;
639
+ }>]>, "many">;
640
+ } & {
641
+ node_ref: z.ZodString;
642
+ }, "strict", z.ZodTypeAny, {
643
+ kind: "template-policy-fragment" | "contract-metric";
644
+ targets: ({
645
+ level: "logical-unit";
646
+ } | {
647
+ artifact_kind: string;
648
+ level: "artifact-kind";
649
+ } | {
650
+ artifact_kind: string;
651
+ level: "section";
652
+ section_key: string;
653
+ })[];
654
+ target_ref: string;
655
+ content_digest: string;
656
+ node_ref: string;
657
+ }, {
658
+ kind: "template-policy-fragment" | "contract-metric";
659
+ targets: ({
660
+ level: "logical-unit";
661
+ } | {
662
+ artifact_kind: string;
663
+ level: "artifact-kind";
664
+ } | {
665
+ artifact_kind: string;
666
+ level: "section";
667
+ section_key: string;
668
+ })[];
669
+ target_ref: string;
670
+ content_digest: string;
671
+ node_ref: string;
672
+ }>;
673
+ export declare const indexerPositiveDependencyNodeSchema: z.ZodUnion<[z.ZodObject<{
674
+ kind: z.ZodLiteral<"source-span">;
675
+ evidence_ref: z.ZodString;
676
+ source_ref: z.ZodString;
677
+ module_ref: z.ZodNullable<z.ZodString>;
678
+ locator: z.ZodEffects<z.ZodObject<{
679
+ path: z.ZodEffects<z.ZodString, string, string>;
680
+ start_line: z.ZodNumber;
681
+ end_line: z.ZodNumber;
682
+ }, "strict", z.ZodTypeAny, {
683
+ path: string;
684
+ start_line: number;
685
+ end_line: number;
686
+ }, {
687
+ path: string;
688
+ start_line: number;
689
+ end_line: number;
690
+ }>, {
691
+ path: string;
692
+ start_line: number;
693
+ end_line: number;
694
+ }, {
695
+ path: string;
696
+ start_line: number;
697
+ end_line: number;
698
+ }>;
699
+ content_digest: z.ZodString;
700
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
701
+ level: z.ZodLiteral<"logical-unit">;
702
+ }, "strict", z.ZodTypeAny, {
703
+ level: "logical-unit";
704
+ }, {
705
+ level: "logical-unit";
706
+ }>, z.ZodObject<{
707
+ level: z.ZodLiteral<"artifact-kind">;
708
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
709
+ }, "strict", z.ZodTypeAny, {
710
+ artifact_kind: string;
711
+ level: "artifact-kind";
712
+ }, {
713
+ artifact_kind: string;
714
+ level: "artifact-kind";
715
+ }>, z.ZodObject<{
716
+ level: z.ZodLiteral<"section">;
717
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
718
+ section_key: z.ZodEffects<z.ZodString, string, string>;
719
+ }, "strict", z.ZodTypeAny, {
720
+ artifact_kind: string;
721
+ level: "section";
722
+ section_key: string;
723
+ }, {
724
+ artifact_kind: string;
725
+ level: "section";
726
+ section_key: string;
727
+ }>]>, "many">;
728
+ } & {
729
+ node_ref: z.ZodString;
730
+ }, "strict", z.ZodTypeAny, {
731
+ kind: "source-span";
732
+ source_ref: string;
733
+ targets: ({
734
+ level: "logical-unit";
735
+ } | {
736
+ artifact_kind: string;
737
+ level: "artifact-kind";
738
+ } | {
739
+ artifact_kind: string;
740
+ level: "section";
741
+ section_key: string;
742
+ })[];
743
+ locator: {
744
+ path: string;
745
+ start_line: number;
746
+ end_line: number;
747
+ };
748
+ module_ref: string | null;
749
+ content_digest: string;
750
+ node_ref: string;
751
+ evidence_ref: string;
752
+ }, {
753
+ kind: "source-span";
754
+ source_ref: string;
755
+ targets: ({
756
+ level: "logical-unit";
757
+ } | {
758
+ artifact_kind: string;
759
+ level: "artifact-kind";
760
+ } | {
761
+ artifact_kind: string;
762
+ level: "section";
763
+ section_key: string;
764
+ })[];
765
+ locator: {
766
+ path: string;
767
+ start_line: number;
768
+ end_line: number;
769
+ };
770
+ module_ref: string | null;
771
+ content_digest: string;
772
+ node_ref: string;
773
+ evidence_ref: string;
774
+ }>, z.ZodObject<{
775
+ kind: z.ZodLiteral<"selected-fact">;
776
+ fact_ref: z.ZodString;
777
+ fact_digest: z.ZodString;
778
+ source_span_node_refs: z.ZodArray<z.ZodString, "many">;
779
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
780
+ level: z.ZodLiteral<"logical-unit">;
781
+ }, "strict", z.ZodTypeAny, {
782
+ level: "logical-unit";
783
+ }, {
784
+ level: "logical-unit";
785
+ }>, z.ZodObject<{
786
+ level: z.ZodLiteral<"artifact-kind">;
787
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
788
+ }, "strict", z.ZodTypeAny, {
789
+ artifact_kind: string;
790
+ level: "artifact-kind";
791
+ }, {
792
+ artifact_kind: string;
793
+ level: "artifact-kind";
794
+ }>, z.ZodObject<{
795
+ level: z.ZodLiteral<"section">;
796
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
797
+ section_key: z.ZodEffects<z.ZodString, string, string>;
798
+ }, "strict", z.ZodTypeAny, {
799
+ artifact_kind: string;
800
+ level: "section";
801
+ section_key: string;
802
+ }, {
803
+ artifact_kind: string;
804
+ level: "section";
805
+ section_key: string;
806
+ }>]>, "many">;
807
+ } & {
808
+ node_ref: z.ZodString;
809
+ }, "strict", z.ZodTypeAny, {
810
+ kind: "selected-fact";
811
+ targets: ({
812
+ level: "logical-unit";
813
+ } | {
814
+ artifact_kind: string;
815
+ level: "artifact-kind";
816
+ } | {
817
+ artifact_kind: string;
818
+ level: "section";
819
+ section_key: string;
820
+ })[];
821
+ fact_ref: string;
822
+ node_ref: string;
823
+ fact_digest: string;
824
+ source_span_node_refs: string[];
825
+ }, {
826
+ kind: "selected-fact";
827
+ targets: ({
828
+ level: "logical-unit";
829
+ } | {
830
+ artifact_kind: string;
831
+ level: "artifact-kind";
832
+ } | {
833
+ artifact_kind: string;
834
+ level: "section";
835
+ section_key: string;
836
+ })[];
837
+ fact_ref: string;
838
+ node_ref: string;
839
+ fact_digest: string;
840
+ source_span_node_refs: string[];
841
+ }>, z.ZodObject<{
842
+ kind: z.ZodLiteral<"logical-unit">;
843
+ logical_unit_ref: z.ZodString;
844
+ group_projection_digest: z.ZodString;
845
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
846
+ level: z.ZodLiteral<"logical-unit">;
847
+ }, "strict", z.ZodTypeAny, {
848
+ level: "logical-unit";
849
+ }, {
850
+ level: "logical-unit";
851
+ }>, z.ZodObject<{
852
+ level: z.ZodLiteral<"artifact-kind">;
853
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
854
+ }, "strict", z.ZodTypeAny, {
855
+ artifact_kind: string;
856
+ level: "artifact-kind";
857
+ }, {
858
+ artifact_kind: string;
859
+ level: "artifact-kind";
860
+ }>, z.ZodObject<{
861
+ level: z.ZodLiteral<"section">;
862
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
863
+ section_key: z.ZodEffects<z.ZodString, string, string>;
864
+ }, "strict", z.ZodTypeAny, {
865
+ artifact_kind: string;
866
+ level: "section";
867
+ section_key: string;
868
+ }, {
869
+ artifact_kind: string;
870
+ level: "section";
871
+ section_key: string;
872
+ }>]>, "many">;
873
+ } & {
874
+ node_ref: z.ZodString;
875
+ }, "strict", z.ZodTypeAny, {
876
+ kind: "logical-unit";
877
+ targets: ({
878
+ level: "logical-unit";
879
+ } | {
880
+ artifact_kind: string;
881
+ level: "artifact-kind";
882
+ } | {
883
+ artifact_kind: string;
884
+ level: "section";
885
+ section_key: string;
886
+ })[];
887
+ logical_unit_ref: string;
888
+ node_ref: string;
889
+ group_projection_digest: string;
890
+ }, {
891
+ kind: "logical-unit";
892
+ targets: ({
893
+ level: "logical-unit";
894
+ } | {
895
+ artifact_kind: string;
896
+ level: "artifact-kind";
897
+ } | {
898
+ artifact_kind: string;
899
+ level: "section";
900
+ section_key: string;
901
+ })[];
902
+ logical_unit_ref: string;
903
+ node_ref: string;
904
+ group_projection_digest: string;
905
+ }>, z.ZodObject<{
906
+ kind: z.ZodEnum<["template-policy-fragment", "contract-metric"]>;
907
+ target_ref: z.ZodString;
908
+ content_digest: z.ZodString;
909
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
910
+ level: z.ZodLiteral<"logical-unit">;
911
+ }, "strict", z.ZodTypeAny, {
912
+ level: "logical-unit";
913
+ }, {
914
+ level: "logical-unit";
915
+ }>, z.ZodObject<{
916
+ level: z.ZodLiteral<"artifact-kind">;
917
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
918
+ }, "strict", z.ZodTypeAny, {
919
+ artifact_kind: string;
920
+ level: "artifact-kind";
921
+ }, {
922
+ artifact_kind: string;
923
+ level: "artifact-kind";
924
+ }>, z.ZodObject<{
925
+ level: z.ZodLiteral<"section">;
926
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
927
+ section_key: z.ZodEffects<z.ZodString, string, string>;
928
+ }, "strict", z.ZodTypeAny, {
929
+ artifact_kind: string;
930
+ level: "section";
931
+ section_key: string;
932
+ }, {
933
+ artifact_kind: string;
934
+ level: "section";
935
+ section_key: string;
936
+ }>]>, "many">;
937
+ } & {
938
+ node_ref: z.ZodString;
939
+ }, "strict", z.ZodTypeAny, {
940
+ kind: "template-policy-fragment" | "contract-metric";
941
+ targets: ({
942
+ level: "logical-unit";
943
+ } | {
944
+ artifact_kind: string;
945
+ level: "artifact-kind";
946
+ } | {
947
+ artifact_kind: string;
948
+ level: "section";
949
+ section_key: string;
950
+ })[];
951
+ target_ref: string;
952
+ content_digest: string;
953
+ node_ref: string;
954
+ }, {
955
+ kind: "template-policy-fragment" | "contract-metric";
956
+ targets: ({
957
+ level: "logical-unit";
958
+ } | {
959
+ artifact_kind: string;
960
+ level: "artifact-kind";
961
+ } | {
962
+ artifact_kind: string;
963
+ level: "section";
964
+ section_key: string;
965
+ })[];
966
+ target_ref: string;
967
+ content_digest: string;
968
+ node_ref: string;
969
+ }>]>;
970
+ export declare const indexerNegativeDependencyNodeSchema: z.ZodObject<{
971
+ kind: z.ZodEnum<["group-input-set", "directory-membership", "export-set", "route-set", "candidate-pool", "precedence-winner", "absence-assertion"]>;
972
+ scope_ref: z.ZodString;
973
+ set_digest: z.ZodString;
974
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
975
+ level: z.ZodLiteral<"logical-unit">;
976
+ }, "strict", z.ZodTypeAny, {
977
+ level: "logical-unit";
978
+ }, {
979
+ level: "logical-unit";
980
+ }>, z.ZodObject<{
981
+ level: z.ZodLiteral<"artifact-kind">;
982
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
983
+ }, "strict", z.ZodTypeAny, {
984
+ artifact_kind: string;
985
+ level: "artifact-kind";
986
+ }, {
987
+ artifact_kind: string;
988
+ level: "artifact-kind";
989
+ }>, z.ZodObject<{
990
+ level: z.ZodLiteral<"section">;
991
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
992
+ section_key: z.ZodEffects<z.ZodString, string, string>;
993
+ }, "strict", z.ZodTypeAny, {
994
+ artifact_kind: string;
995
+ level: "section";
996
+ section_key: string;
997
+ }, {
998
+ artifact_kind: string;
999
+ level: "section";
1000
+ section_key: string;
1001
+ }>]>, "many">;
1002
+ } & {
1003
+ node_ref: z.ZodString;
1004
+ }, "strict", z.ZodTypeAny, {
1005
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
1006
+ targets: ({
1007
+ level: "logical-unit";
1008
+ } | {
1009
+ artifact_kind: string;
1010
+ level: "artifact-kind";
1011
+ } | {
1012
+ artifact_kind: string;
1013
+ level: "section";
1014
+ section_key: string;
1015
+ })[];
1016
+ node_ref: string;
1017
+ scope_ref: string;
1018
+ set_digest: string;
1019
+ }, {
1020
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
1021
+ targets: ({
1022
+ level: "logical-unit";
1023
+ } | {
1024
+ artifact_kind: string;
1025
+ level: "artifact-kind";
1026
+ } | {
1027
+ artifact_kind: string;
1028
+ level: "section";
1029
+ section_key: string;
1030
+ })[];
1031
+ node_ref: string;
1032
+ scope_ref: string;
1033
+ set_digest: string;
1034
+ }>;
1035
+ export type IndexerPositiveDependencyNode = z.infer<typeof indexerPositiveDependencyNodeSchema>;
1036
+ export type IndexerNegativeDependencyNode = z.infer<typeof indexerNegativeDependencyNodeSchema>;
1037
+ export declare const indexerAuthorDependencyViewSchema: z.ZodObject<{
1038
+ protocol: z.ZodLiteral<"context.indexer.author-dependency-view/v1">;
1039
+ source_ref: z.ZodString;
1040
+ module_ref: z.ZodNullable<z.ZodString>;
1041
+ logical_unit_ref: z.ZodString;
1042
+ positive_nodes: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1043
+ kind: z.ZodLiteral<"source-span">;
1044
+ evidence_ref: z.ZodString;
1045
+ source_ref: z.ZodString;
1046
+ module_ref: z.ZodNullable<z.ZodString>;
1047
+ locator: z.ZodEffects<z.ZodObject<{
1048
+ path: z.ZodEffects<z.ZodString, string, string>;
1049
+ start_line: z.ZodNumber;
1050
+ end_line: z.ZodNumber;
1051
+ }, "strict", z.ZodTypeAny, {
1052
+ path: string;
1053
+ start_line: number;
1054
+ end_line: number;
1055
+ }, {
1056
+ path: string;
1057
+ start_line: number;
1058
+ end_line: number;
1059
+ }>, {
1060
+ path: string;
1061
+ start_line: number;
1062
+ end_line: number;
1063
+ }, {
1064
+ path: string;
1065
+ start_line: number;
1066
+ end_line: number;
1067
+ }>;
1068
+ content_digest: z.ZodString;
1069
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
1070
+ level: z.ZodLiteral<"logical-unit">;
1071
+ }, "strict", z.ZodTypeAny, {
1072
+ level: "logical-unit";
1073
+ }, {
1074
+ level: "logical-unit";
1075
+ }>, z.ZodObject<{
1076
+ level: z.ZodLiteral<"artifact-kind">;
1077
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1078
+ }, "strict", z.ZodTypeAny, {
1079
+ artifact_kind: string;
1080
+ level: "artifact-kind";
1081
+ }, {
1082
+ artifact_kind: string;
1083
+ level: "artifact-kind";
1084
+ }>, z.ZodObject<{
1085
+ level: z.ZodLiteral<"section">;
1086
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1087
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1088
+ }, "strict", z.ZodTypeAny, {
1089
+ artifact_kind: string;
1090
+ level: "section";
1091
+ section_key: string;
1092
+ }, {
1093
+ artifact_kind: string;
1094
+ level: "section";
1095
+ section_key: string;
1096
+ }>]>, "many">;
1097
+ } & {
1098
+ node_ref: z.ZodString;
1099
+ }, "strict", z.ZodTypeAny, {
1100
+ kind: "source-span";
1101
+ source_ref: string;
1102
+ targets: ({
1103
+ level: "logical-unit";
1104
+ } | {
1105
+ artifact_kind: string;
1106
+ level: "artifact-kind";
1107
+ } | {
1108
+ artifact_kind: string;
1109
+ level: "section";
1110
+ section_key: string;
1111
+ })[];
1112
+ locator: {
1113
+ path: string;
1114
+ start_line: number;
1115
+ end_line: number;
1116
+ };
1117
+ module_ref: string | null;
1118
+ content_digest: string;
1119
+ node_ref: string;
1120
+ evidence_ref: string;
1121
+ }, {
1122
+ kind: "source-span";
1123
+ source_ref: string;
1124
+ targets: ({
1125
+ level: "logical-unit";
1126
+ } | {
1127
+ artifact_kind: string;
1128
+ level: "artifact-kind";
1129
+ } | {
1130
+ artifact_kind: string;
1131
+ level: "section";
1132
+ section_key: string;
1133
+ })[];
1134
+ locator: {
1135
+ path: string;
1136
+ start_line: number;
1137
+ end_line: number;
1138
+ };
1139
+ module_ref: string | null;
1140
+ content_digest: string;
1141
+ node_ref: string;
1142
+ evidence_ref: string;
1143
+ }>, z.ZodObject<{
1144
+ kind: z.ZodLiteral<"selected-fact">;
1145
+ fact_ref: z.ZodString;
1146
+ fact_digest: z.ZodString;
1147
+ source_span_node_refs: z.ZodArray<z.ZodString, "many">;
1148
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
1149
+ level: z.ZodLiteral<"logical-unit">;
1150
+ }, "strict", z.ZodTypeAny, {
1151
+ level: "logical-unit";
1152
+ }, {
1153
+ level: "logical-unit";
1154
+ }>, z.ZodObject<{
1155
+ level: z.ZodLiteral<"artifact-kind">;
1156
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1157
+ }, "strict", z.ZodTypeAny, {
1158
+ artifact_kind: string;
1159
+ level: "artifact-kind";
1160
+ }, {
1161
+ artifact_kind: string;
1162
+ level: "artifact-kind";
1163
+ }>, z.ZodObject<{
1164
+ level: z.ZodLiteral<"section">;
1165
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1166
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1167
+ }, "strict", z.ZodTypeAny, {
1168
+ artifact_kind: string;
1169
+ level: "section";
1170
+ section_key: string;
1171
+ }, {
1172
+ artifact_kind: string;
1173
+ level: "section";
1174
+ section_key: string;
1175
+ }>]>, "many">;
1176
+ } & {
1177
+ node_ref: z.ZodString;
1178
+ }, "strict", z.ZodTypeAny, {
1179
+ kind: "selected-fact";
1180
+ targets: ({
1181
+ level: "logical-unit";
1182
+ } | {
1183
+ artifact_kind: string;
1184
+ level: "artifact-kind";
1185
+ } | {
1186
+ artifact_kind: string;
1187
+ level: "section";
1188
+ section_key: string;
1189
+ })[];
1190
+ fact_ref: string;
1191
+ node_ref: string;
1192
+ fact_digest: string;
1193
+ source_span_node_refs: string[];
1194
+ }, {
1195
+ kind: "selected-fact";
1196
+ targets: ({
1197
+ level: "logical-unit";
1198
+ } | {
1199
+ artifact_kind: string;
1200
+ level: "artifact-kind";
1201
+ } | {
1202
+ artifact_kind: string;
1203
+ level: "section";
1204
+ section_key: string;
1205
+ })[];
1206
+ fact_ref: string;
1207
+ node_ref: string;
1208
+ fact_digest: string;
1209
+ source_span_node_refs: string[];
1210
+ }>, z.ZodObject<{
1211
+ kind: z.ZodLiteral<"logical-unit">;
1212
+ logical_unit_ref: z.ZodString;
1213
+ group_projection_digest: z.ZodString;
1214
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
1215
+ level: z.ZodLiteral<"logical-unit">;
1216
+ }, "strict", z.ZodTypeAny, {
1217
+ level: "logical-unit";
1218
+ }, {
1219
+ level: "logical-unit";
1220
+ }>, z.ZodObject<{
1221
+ level: z.ZodLiteral<"artifact-kind">;
1222
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1223
+ }, "strict", z.ZodTypeAny, {
1224
+ artifact_kind: string;
1225
+ level: "artifact-kind";
1226
+ }, {
1227
+ artifact_kind: string;
1228
+ level: "artifact-kind";
1229
+ }>, z.ZodObject<{
1230
+ level: z.ZodLiteral<"section">;
1231
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1232
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1233
+ }, "strict", z.ZodTypeAny, {
1234
+ artifact_kind: string;
1235
+ level: "section";
1236
+ section_key: string;
1237
+ }, {
1238
+ artifact_kind: string;
1239
+ level: "section";
1240
+ section_key: string;
1241
+ }>]>, "many">;
1242
+ } & {
1243
+ node_ref: z.ZodString;
1244
+ }, "strict", z.ZodTypeAny, {
1245
+ kind: "logical-unit";
1246
+ targets: ({
1247
+ level: "logical-unit";
1248
+ } | {
1249
+ artifact_kind: string;
1250
+ level: "artifact-kind";
1251
+ } | {
1252
+ artifact_kind: string;
1253
+ level: "section";
1254
+ section_key: string;
1255
+ })[];
1256
+ logical_unit_ref: string;
1257
+ node_ref: string;
1258
+ group_projection_digest: string;
1259
+ }, {
1260
+ kind: "logical-unit";
1261
+ targets: ({
1262
+ level: "logical-unit";
1263
+ } | {
1264
+ artifact_kind: string;
1265
+ level: "artifact-kind";
1266
+ } | {
1267
+ artifact_kind: string;
1268
+ level: "section";
1269
+ section_key: string;
1270
+ })[];
1271
+ logical_unit_ref: string;
1272
+ node_ref: string;
1273
+ group_projection_digest: string;
1274
+ }>, z.ZodObject<{
1275
+ kind: z.ZodEnum<["template-policy-fragment", "contract-metric"]>;
1276
+ target_ref: z.ZodString;
1277
+ content_digest: z.ZodString;
1278
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
1279
+ level: z.ZodLiteral<"logical-unit">;
1280
+ }, "strict", z.ZodTypeAny, {
1281
+ level: "logical-unit";
1282
+ }, {
1283
+ level: "logical-unit";
1284
+ }>, z.ZodObject<{
1285
+ level: z.ZodLiteral<"artifact-kind">;
1286
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1287
+ }, "strict", z.ZodTypeAny, {
1288
+ artifact_kind: string;
1289
+ level: "artifact-kind";
1290
+ }, {
1291
+ artifact_kind: string;
1292
+ level: "artifact-kind";
1293
+ }>, z.ZodObject<{
1294
+ level: z.ZodLiteral<"section">;
1295
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1296
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1297
+ }, "strict", z.ZodTypeAny, {
1298
+ artifact_kind: string;
1299
+ level: "section";
1300
+ section_key: string;
1301
+ }, {
1302
+ artifact_kind: string;
1303
+ level: "section";
1304
+ section_key: string;
1305
+ }>]>, "many">;
1306
+ } & {
1307
+ node_ref: z.ZodString;
1308
+ }, "strict", z.ZodTypeAny, {
1309
+ kind: "template-policy-fragment" | "contract-metric";
1310
+ targets: ({
1311
+ level: "logical-unit";
1312
+ } | {
1313
+ artifact_kind: string;
1314
+ level: "artifact-kind";
1315
+ } | {
1316
+ artifact_kind: string;
1317
+ level: "section";
1318
+ section_key: string;
1319
+ })[];
1320
+ target_ref: string;
1321
+ content_digest: string;
1322
+ node_ref: string;
1323
+ }, {
1324
+ kind: "template-policy-fragment" | "contract-metric";
1325
+ targets: ({
1326
+ level: "logical-unit";
1327
+ } | {
1328
+ artifact_kind: string;
1329
+ level: "artifact-kind";
1330
+ } | {
1331
+ artifact_kind: string;
1332
+ level: "section";
1333
+ section_key: string;
1334
+ })[];
1335
+ target_ref: string;
1336
+ content_digest: string;
1337
+ node_ref: string;
1338
+ }>]>, "many">;
1339
+ negative_nodes: z.ZodArray<z.ZodObject<{
1340
+ kind: z.ZodEnum<["group-input-set", "directory-membership", "export-set", "route-set", "candidate-pool", "precedence-winner", "absence-assertion"]>;
1341
+ scope_ref: z.ZodString;
1342
+ set_digest: z.ZodString;
1343
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
1344
+ level: z.ZodLiteral<"logical-unit">;
1345
+ }, "strict", z.ZodTypeAny, {
1346
+ level: "logical-unit";
1347
+ }, {
1348
+ level: "logical-unit";
1349
+ }>, z.ZodObject<{
1350
+ level: z.ZodLiteral<"artifact-kind">;
1351
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1352
+ }, "strict", z.ZodTypeAny, {
1353
+ artifact_kind: string;
1354
+ level: "artifact-kind";
1355
+ }, {
1356
+ artifact_kind: string;
1357
+ level: "artifact-kind";
1358
+ }>, z.ZodObject<{
1359
+ level: z.ZodLiteral<"section">;
1360
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
1361
+ section_key: z.ZodEffects<z.ZodString, string, string>;
1362
+ }, "strict", z.ZodTypeAny, {
1363
+ artifact_kind: string;
1364
+ level: "section";
1365
+ section_key: string;
1366
+ }, {
1367
+ artifact_kind: string;
1368
+ level: "section";
1369
+ section_key: string;
1370
+ }>]>, "many">;
1371
+ } & {
1372
+ node_ref: z.ZodString;
1373
+ }, "strict", z.ZodTypeAny, {
1374
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
1375
+ targets: ({
1376
+ level: "logical-unit";
1377
+ } | {
1378
+ artifact_kind: string;
1379
+ level: "artifact-kind";
1380
+ } | {
1381
+ artifact_kind: string;
1382
+ level: "section";
1383
+ section_key: string;
1384
+ })[];
1385
+ node_ref: string;
1386
+ scope_ref: string;
1387
+ set_digest: string;
1388
+ }, {
1389
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
1390
+ targets: ({
1391
+ level: "logical-unit";
1392
+ } | {
1393
+ artifact_kind: string;
1394
+ level: "artifact-kind";
1395
+ } | {
1396
+ artifact_kind: string;
1397
+ level: "section";
1398
+ section_key: string;
1399
+ })[];
1400
+ node_ref: string;
1401
+ scope_ref: string;
1402
+ set_digest: string;
1403
+ }>, "many">;
1404
+ } & {
1405
+ view_digest: z.ZodString;
1406
+ }, "strict", z.ZodTypeAny, {
1407
+ source_ref: string;
1408
+ protocol: "context.indexer.author-dependency-view/v1";
1409
+ view_digest: string;
1410
+ module_ref: string | null;
1411
+ logical_unit_ref: string;
1412
+ positive_nodes: ({
1413
+ kind: "source-span";
1414
+ source_ref: string;
1415
+ targets: ({
1416
+ level: "logical-unit";
1417
+ } | {
1418
+ artifact_kind: string;
1419
+ level: "artifact-kind";
1420
+ } | {
1421
+ artifact_kind: string;
1422
+ level: "section";
1423
+ section_key: string;
1424
+ })[];
1425
+ locator: {
1426
+ path: string;
1427
+ start_line: number;
1428
+ end_line: number;
1429
+ };
1430
+ module_ref: string | null;
1431
+ content_digest: string;
1432
+ node_ref: string;
1433
+ evidence_ref: string;
1434
+ } | {
1435
+ kind: "selected-fact";
1436
+ targets: ({
1437
+ level: "logical-unit";
1438
+ } | {
1439
+ artifact_kind: string;
1440
+ level: "artifact-kind";
1441
+ } | {
1442
+ artifact_kind: string;
1443
+ level: "section";
1444
+ section_key: string;
1445
+ })[];
1446
+ fact_ref: string;
1447
+ node_ref: string;
1448
+ fact_digest: string;
1449
+ source_span_node_refs: string[];
1450
+ } | {
1451
+ kind: "logical-unit";
1452
+ targets: ({
1453
+ level: "logical-unit";
1454
+ } | {
1455
+ artifact_kind: string;
1456
+ level: "artifact-kind";
1457
+ } | {
1458
+ artifact_kind: string;
1459
+ level: "section";
1460
+ section_key: string;
1461
+ })[];
1462
+ logical_unit_ref: string;
1463
+ node_ref: string;
1464
+ group_projection_digest: string;
1465
+ } | {
1466
+ kind: "template-policy-fragment" | "contract-metric";
1467
+ targets: ({
1468
+ level: "logical-unit";
1469
+ } | {
1470
+ artifact_kind: string;
1471
+ level: "artifact-kind";
1472
+ } | {
1473
+ artifact_kind: string;
1474
+ level: "section";
1475
+ section_key: string;
1476
+ })[];
1477
+ target_ref: string;
1478
+ content_digest: string;
1479
+ node_ref: string;
1480
+ })[];
1481
+ negative_nodes: {
1482
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
1483
+ targets: ({
1484
+ level: "logical-unit";
1485
+ } | {
1486
+ artifact_kind: string;
1487
+ level: "artifact-kind";
1488
+ } | {
1489
+ artifact_kind: string;
1490
+ level: "section";
1491
+ section_key: string;
1492
+ })[];
1493
+ node_ref: string;
1494
+ scope_ref: string;
1495
+ set_digest: string;
1496
+ }[];
1497
+ }, {
1498
+ source_ref: string;
1499
+ protocol: "context.indexer.author-dependency-view/v1";
1500
+ view_digest: string;
1501
+ module_ref: string | null;
1502
+ logical_unit_ref: string;
1503
+ positive_nodes: ({
1504
+ kind: "source-span";
1505
+ source_ref: string;
1506
+ targets: ({
1507
+ level: "logical-unit";
1508
+ } | {
1509
+ artifact_kind: string;
1510
+ level: "artifact-kind";
1511
+ } | {
1512
+ artifact_kind: string;
1513
+ level: "section";
1514
+ section_key: string;
1515
+ })[];
1516
+ locator: {
1517
+ path: string;
1518
+ start_line: number;
1519
+ end_line: number;
1520
+ };
1521
+ module_ref: string | null;
1522
+ content_digest: string;
1523
+ node_ref: string;
1524
+ evidence_ref: string;
1525
+ } | {
1526
+ kind: "selected-fact";
1527
+ targets: ({
1528
+ level: "logical-unit";
1529
+ } | {
1530
+ artifact_kind: string;
1531
+ level: "artifact-kind";
1532
+ } | {
1533
+ artifact_kind: string;
1534
+ level: "section";
1535
+ section_key: string;
1536
+ })[];
1537
+ fact_ref: string;
1538
+ node_ref: string;
1539
+ fact_digest: string;
1540
+ source_span_node_refs: string[];
1541
+ } | {
1542
+ kind: "logical-unit";
1543
+ targets: ({
1544
+ level: "logical-unit";
1545
+ } | {
1546
+ artifact_kind: string;
1547
+ level: "artifact-kind";
1548
+ } | {
1549
+ artifact_kind: string;
1550
+ level: "section";
1551
+ section_key: string;
1552
+ })[];
1553
+ logical_unit_ref: string;
1554
+ node_ref: string;
1555
+ group_projection_digest: string;
1556
+ } | {
1557
+ kind: "template-policy-fragment" | "contract-metric";
1558
+ targets: ({
1559
+ level: "logical-unit";
1560
+ } | {
1561
+ artifact_kind: string;
1562
+ level: "artifact-kind";
1563
+ } | {
1564
+ artifact_kind: string;
1565
+ level: "section";
1566
+ section_key: string;
1567
+ })[];
1568
+ target_ref: string;
1569
+ content_digest: string;
1570
+ node_ref: string;
1571
+ })[];
1572
+ negative_nodes: {
1573
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
1574
+ targets: ({
1575
+ level: "logical-unit";
1576
+ } | {
1577
+ artifact_kind: string;
1578
+ level: "artifact-kind";
1579
+ } | {
1580
+ artifact_kind: string;
1581
+ level: "section";
1582
+ section_key: string;
1583
+ })[];
1584
+ node_ref: string;
1585
+ scope_ref: string;
1586
+ set_digest: string;
1587
+ }[];
1588
+ }>;
1589
+ export type IndexerAuthorDependencyView = z.infer<typeof indexerAuthorDependencyViewSchema>;
1590
+ export declare function indexerDependencyNodeRef(input: {
1591
+ polarity: "positive" | "negative";
1592
+ node: z.infer<typeof indexerPositiveDependencyNodeInputSchema> | z.infer<typeof indexerNegativeDependencyNodeInputSchema>;
1593
+ }): string;
1594
+ export declare function indexerDependencyVersionRef(input: {
1595
+ polarity: "positive" | "negative";
1596
+ node: IndexerPositiveDependencyNode | IndexerNegativeDependencyNode;
1597
+ }): string;
1598
+ export declare function buildIndexerAuthorDependencyView(input: {
1599
+ source_ref: string;
1600
+ module_ref: string | null;
1601
+ logical_unit_ref: string;
1602
+ positive_nodes: readonly unknown[];
1603
+ negative_nodes: readonly unknown[];
1604
+ }): IndexerAuthorDependencyView;
1605
+ export declare function validateIndexerAuthorDependencyView(value: unknown): IndexerAuthorDependencyView;
1606
+ export declare function indexerDependencyTargetMatches(input: {
1607
+ target: IndexerDependencyTarget;
1608
+ artifact_kind: string;
1609
+ section_key: string;
1610
+ }): boolean;