@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,689 @@
1
+ import { z } from "zod";
2
+ import type { IndexerArtifactResult } from "./indexerArtifactResult.js";
3
+ import { type IndexerAuthorDependencyView } from "./indexerDependencyView.js";
4
+ import type { IndexerMainAuthorWorkset } from "./indexerMainWorkset.js";
5
+ export declare const indexerArtifactDependencySetSchema: z.ZodObject<{
6
+ protocol: z.ZodLiteral<"context.indexer.artifact-dependency-set/v1">;
7
+ result_digest: z.ZodString;
8
+ author_workset_digest: z.ZodString;
9
+ run_envelope_digest: z.ZodString;
10
+ dependency_view_digest: z.ZodString;
11
+ source_ref: z.ZodString;
12
+ module_ref: z.ZodNullable<z.ZodString>;
13
+ logical_unit_ref: z.ZodString;
14
+ positive_dependencies: z.ZodArray<z.ZodUnion<[z.ZodObject<{
15
+ kind: z.ZodLiteral<"source-span">;
16
+ evidence_ref: z.ZodString;
17
+ source_ref: z.ZodString;
18
+ module_ref: z.ZodNullable<z.ZodString>;
19
+ locator: z.ZodEffects<z.ZodObject<{
20
+ path: z.ZodEffects<z.ZodString, string, string>;
21
+ start_line: z.ZodNumber;
22
+ end_line: z.ZodNumber;
23
+ }, "strict", z.ZodTypeAny, {
24
+ path: string;
25
+ start_line: number;
26
+ end_line: number;
27
+ }, {
28
+ path: string;
29
+ start_line: number;
30
+ end_line: number;
31
+ }>, {
32
+ path: string;
33
+ start_line: number;
34
+ end_line: number;
35
+ }, {
36
+ path: string;
37
+ start_line: number;
38
+ end_line: number;
39
+ }>;
40
+ content_digest: z.ZodString;
41
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
42
+ level: z.ZodLiteral<"logical-unit">;
43
+ }, "strict", z.ZodTypeAny, {
44
+ level: "logical-unit";
45
+ }, {
46
+ level: "logical-unit";
47
+ }>, z.ZodObject<{
48
+ level: z.ZodLiteral<"artifact-kind">;
49
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
50
+ }, "strict", z.ZodTypeAny, {
51
+ artifact_kind: string;
52
+ level: "artifact-kind";
53
+ }, {
54
+ artifact_kind: string;
55
+ level: "artifact-kind";
56
+ }>, z.ZodObject<{
57
+ level: z.ZodLiteral<"section">;
58
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
59
+ section_key: z.ZodEffects<z.ZodString, string, string>;
60
+ }, "strict", z.ZodTypeAny, {
61
+ artifact_kind: string;
62
+ level: "section";
63
+ section_key: string;
64
+ }, {
65
+ artifact_kind: string;
66
+ level: "section";
67
+ section_key: string;
68
+ }>]>, "many">;
69
+ } & {
70
+ node_ref: z.ZodString;
71
+ } & {
72
+ dependency_ref: z.ZodString;
73
+ }, "strict", z.ZodTypeAny, {
74
+ kind: "source-span";
75
+ source_ref: string;
76
+ targets: ({
77
+ level: "logical-unit";
78
+ } | {
79
+ artifact_kind: string;
80
+ level: "artifact-kind";
81
+ } | {
82
+ artifact_kind: string;
83
+ level: "section";
84
+ section_key: string;
85
+ })[];
86
+ locator: {
87
+ path: string;
88
+ start_line: number;
89
+ end_line: number;
90
+ };
91
+ module_ref: string | null;
92
+ content_digest: string;
93
+ node_ref: string;
94
+ evidence_ref: string;
95
+ dependency_ref: string;
96
+ }, {
97
+ kind: "source-span";
98
+ source_ref: string;
99
+ targets: ({
100
+ level: "logical-unit";
101
+ } | {
102
+ artifact_kind: string;
103
+ level: "artifact-kind";
104
+ } | {
105
+ artifact_kind: string;
106
+ level: "section";
107
+ section_key: string;
108
+ })[];
109
+ locator: {
110
+ path: string;
111
+ start_line: number;
112
+ end_line: number;
113
+ };
114
+ module_ref: string | null;
115
+ content_digest: string;
116
+ node_ref: string;
117
+ evidence_ref: string;
118
+ dependency_ref: string;
119
+ }>, z.ZodObject<{
120
+ kind: z.ZodLiteral<"selected-fact">;
121
+ fact_ref: z.ZodString;
122
+ fact_digest: z.ZodString;
123
+ source_span_node_refs: z.ZodArray<z.ZodString, "many">;
124
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
125
+ level: z.ZodLiteral<"logical-unit">;
126
+ }, "strict", z.ZodTypeAny, {
127
+ level: "logical-unit";
128
+ }, {
129
+ level: "logical-unit";
130
+ }>, z.ZodObject<{
131
+ level: z.ZodLiteral<"artifact-kind">;
132
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
133
+ }, "strict", z.ZodTypeAny, {
134
+ artifact_kind: string;
135
+ level: "artifact-kind";
136
+ }, {
137
+ artifact_kind: string;
138
+ level: "artifact-kind";
139
+ }>, z.ZodObject<{
140
+ level: z.ZodLiteral<"section">;
141
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
142
+ section_key: z.ZodEffects<z.ZodString, string, string>;
143
+ }, "strict", z.ZodTypeAny, {
144
+ artifact_kind: string;
145
+ level: "section";
146
+ section_key: string;
147
+ }, {
148
+ artifact_kind: string;
149
+ level: "section";
150
+ section_key: string;
151
+ }>]>, "many">;
152
+ } & {
153
+ node_ref: z.ZodString;
154
+ } & {
155
+ dependency_ref: z.ZodString;
156
+ }, "strict", z.ZodTypeAny, {
157
+ kind: "selected-fact";
158
+ targets: ({
159
+ level: "logical-unit";
160
+ } | {
161
+ artifact_kind: string;
162
+ level: "artifact-kind";
163
+ } | {
164
+ artifact_kind: string;
165
+ level: "section";
166
+ section_key: string;
167
+ })[];
168
+ fact_ref: string;
169
+ node_ref: string;
170
+ fact_digest: string;
171
+ source_span_node_refs: string[];
172
+ dependency_ref: string;
173
+ }, {
174
+ kind: "selected-fact";
175
+ targets: ({
176
+ level: "logical-unit";
177
+ } | {
178
+ artifact_kind: string;
179
+ level: "artifact-kind";
180
+ } | {
181
+ artifact_kind: string;
182
+ level: "section";
183
+ section_key: string;
184
+ })[];
185
+ fact_ref: string;
186
+ node_ref: string;
187
+ fact_digest: string;
188
+ source_span_node_refs: string[];
189
+ dependency_ref: string;
190
+ }>, z.ZodObject<{
191
+ kind: z.ZodLiteral<"logical-unit">;
192
+ logical_unit_ref: z.ZodString;
193
+ group_projection_digest: z.ZodString;
194
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
195
+ level: z.ZodLiteral<"logical-unit">;
196
+ }, "strict", z.ZodTypeAny, {
197
+ level: "logical-unit";
198
+ }, {
199
+ level: "logical-unit";
200
+ }>, z.ZodObject<{
201
+ level: z.ZodLiteral<"artifact-kind">;
202
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
203
+ }, "strict", z.ZodTypeAny, {
204
+ artifact_kind: string;
205
+ level: "artifact-kind";
206
+ }, {
207
+ artifact_kind: string;
208
+ level: "artifact-kind";
209
+ }>, z.ZodObject<{
210
+ level: z.ZodLiteral<"section">;
211
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
212
+ section_key: z.ZodEffects<z.ZodString, string, string>;
213
+ }, "strict", z.ZodTypeAny, {
214
+ artifact_kind: string;
215
+ level: "section";
216
+ section_key: string;
217
+ }, {
218
+ artifact_kind: string;
219
+ level: "section";
220
+ section_key: string;
221
+ }>]>, "many">;
222
+ } & {
223
+ node_ref: z.ZodString;
224
+ } & {
225
+ dependency_ref: z.ZodString;
226
+ }, "strict", z.ZodTypeAny, {
227
+ kind: "logical-unit";
228
+ targets: ({
229
+ level: "logical-unit";
230
+ } | {
231
+ artifact_kind: string;
232
+ level: "artifact-kind";
233
+ } | {
234
+ artifact_kind: string;
235
+ level: "section";
236
+ section_key: string;
237
+ })[];
238
+ logical_unit_ref: string;
239
+ node_ref: string;
240
+ group_projection_digest: string;
241
+ dependency_ref: string;
242
+ }, {
243
+ kind: "logical-unit";
244
+ targets: ({
245
+ level: "logical-unit";
246
+ } | {
247
+ artifact_kind: string;
248
+ level: "artifact-kind";
249
+ } | {
250
+ artifact_kind: string;
251
+ level: "section";
252
+ section_key: string;
253
+ })[];
254
+ logical_unit_ref: string;
255
+ node_ref: string;
256
+ group_projection_digest: string;
257
+ dependency_ref: string;
258
+ }>, z.ZodObject<{
259
+ kind: z.ZodEnum<["template-policy-fragment", "contract-metric"]>;
260
+ target_ref: z.ZodString;
261
+ content_digest: z.ZodString;
262
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
263
+ level: z.ZodLiteral<"logical-unit">;
264
+ }, "strict", z.ZodTypeAny, {
265
+ level: "logical-unit";
266
+ }, {
267
+ level: "logical-unit";
268
+ }>, z.ZodObject<{
269
+ level: z.ZodLiteral<"artifact-kind">;
270
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
271
+ }, "strict", z.ZodTypeAny, {
272
+ artifact_kind: string;
273
+ level: "artifact-kind";
274
+ }, {
275
+ artifact_kind: string;
276
+ level: "artifact-kind";
277
+ }>, z.ZodObject<{
278
+ level: z.ZodLiteral<"section">;
279
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
280
+ section_key: z.ZodEffects<z.ZodString, string, string>;
281
+ }, "strict", z.ZodTypeAny, {
282
+ artifact_kind: string;
283
+ level: "section";
284
+ section_key: string;
285
+ }, {
286
+ artifact_kind: string;
287
+ level: "section";
288
+ section_key: string;
289
+ }>]>, "many">;
290
+ } & {
291
+ node_ref: z.ZodString;
292
+ } & {
293
+ dependency_ref: z.ZodString;
294
+ }, "strict", z.ZodTypeAny, {
295
+ kind: "template-policy-fragment" | "contract-metric";
296
+ targets: ({
297
+ level: "logical-unit";
298
+ } | {
299
+ artifact_kind: string;
300
+ level: "artifact-kind";
301
+ } | {
302
+ artifact_kind: string;
303
+ level: "section";
304
+ section_key: string;
305
+ })[];
306
+ target_ref: string;
307
+ content_digest: string;
308
+ node_ref: string;
309
+ dependency_ref: string;
310
+ }, {
311
+ kind: "template-policy-fragment" | "contract-metric";
312
+ targets: ({
313
+ level: "logical-unit";
314
+ } | {
315
+ artifact_kind: string;
316
+ level: "artifact-kind";
317
+ } | {
318
+ artifact_kind: string;
319
+ level: "section";
320
+ section_key: string;
321
+ })[];
322
+ target_ref: string;
323
+ content_digest: string;
324
+ node_ref: string;
325
+ dependency_ref: string;
326
+ }>]>, "many">;
327
+ negative_dependencies: z.ZodArray<z.ZodObject<{
328
+ kind: z.ZodEnum<["group-input-set", "directory-membership", "export-set", "route-set", "candidate-pool", "precedence-winner", "absence-assertion"]>;
329
+ scope_ref: z.ZodString;
330
+ set_digest: z.ZodString;
331
+ targets: z.ZodArray<z.ZodDiscriminatedUnion<"level", [z.ZodObject<{
332
+ level: z.ZodLiteral<"logical-unit">;
333
+ }, "strict", z.ZodTypeAny, {
334
+ level: "logical-unit";
335
+ }, {
336
+ level: "logical-unit";
337
+ }>, z.ZodObject<{
338
+ level: z.ZodLiteral<"artifact-kind">;
339
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
340
+ }, "strict", z.ZodTypeAny, {
341
+ artifact_kind: string;
342
+ level: "artifact-kind";
343
+ }, {
344
+ artifact_kind: string;
345
+ level: "artifact-kind";
346
+ }>, z.ZodObject<{
347
+ level: z.ZodLiteral<"section">;
348
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
349
+ section_key: z.ZodEffects<z.ZodString, string, string>;
350
+ }, "strict", z.ZodTypeAny, {
351
+ artifact_kind: string;
352
+ level: "section";
353
+ section_key: string;
354
+ }, {
355
+ artifact_kind: string;
356
+ level: "section";
357
+ section_key: string;
358
+ }>]>, "many">;
359
+ } & {
360
+ node_ref: z.ZodString;
361
+ } & {
362
+ dependency_ref: z.ZodString;
363
+ }, "strict", z.ZodTypeAny, {
364
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
365
+ targets: ({
366
+ level: "logical-unit";
367
+ } | {
368
+ artifact_kind: string;
369
+ level: "artifact-kind";
370
+ } | {
371
+ artifact_kind: string;
372
+ level: "section";
373
+ section_key: string;
374
+ })[];
375
+ node_ref: string;
376
+ scope_ref: string;
377
+ set_digest: string;
378
+ dependency_ref: string;
379
+ }, {
380
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
381
+ targets: ({
382
+ level: "logical-unit";
383
+ } | {
384
+ artifact_kind: string;
385
+ level: "artifact-kind";
386
+ } | {
387
+ artifact_kind: string;
388
+ level: "section";
389
+ section_key: string;
390
+ })[];
391
+ node_ref: string;
392
+ scope_ref: string;
393
+ set_digest: string;
394
+ dependency_ref: string;
395
+ }>, "many">;
396
+ artifacts: z.ZodArray<z.ZodObject<{
397
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
398
+ artifact_kind: z.ZodEffects<z.ZodString, string, string>;
399
+ positive_dependency_refs: z.ZodArray<z.ZodString, "many">;
400
+ negative_dependency_refs: z.ZodArray<z.ZodString, "many">;
401
+ sections: z.ZodArray<z.ZodObject<{
402
+ section_key: z.ZodEffects<z.ZodString, string, string>;
403
+ positive_dependency_refs: z.ZodArray<z.ZodString, "many">;
404
+ negative_dependency_refs: z.ZodArray<z.ZodString, "many">;
405
+ dependency_digest: z.ZodString;
406
+ }, "strict", z.ZodTypeAny, {
407
+ section_key: string;
408
+ positive_dependency_refs: string[];
409
+ negative_dependency_refs: string[];
410
+ dependency_digest: string;
411
+ }, {
412
+ section_key: string;
413
+ positive_dependency_refs: string[];
414
+ negative_dependency_refs: string[];
415
+ dependency_digest: string;
416
+ }>, "many">;
417
+ dependency_digest: z.ZodString;
418
+ }, "strict", z.ZodTypeAny, {
419
+ artifact_kind: string;
420
+ artifact_id: string;
421
+ sections: {
422
+ section_key: string;
423
+ positive_dependency_refs: string[];
424
+ negative_dependency_refs: string[];
425
+ dependency_digest: string;
426
+ }[];
427
+ positive_dependency_refs: string[];
428
+ negative_dependency_refs: string[];
429
+ dependency_digest: string;
430
+ }, {
431
+ artifact_kind: string;
432
+ artifact_id: string;
433
+ sections: {
434
+ section_key: string;
435
+ positive_dependency_refs: string[];
436
+ negative_dependency_refs: string[];
437
+ dependency_digest: string;
438
+ }[];
439
+ positive_dependency_refs: string[];
440
+ negative_dependency_refs: string[];
441
+ dependency_digest: string;
442
+ }>, "many">;
443
+ dependency_set_digest: z.ZodString;
444
+ }, "strict", z.ZodTypeAny, {
445
+ source_ref: string;
446
+ protocol: "context.indexer.artifact-dependency-set/v1";
447
+ module_ref: string | null;
448
+ artifacts: {
449
+ artifact_kind: string;
450
+ artifact_id: string;
451
+ sections: {
452
+ section_key: string;
453
+ positive_dependency_refs: string[];
454
+ negative_dependency_refs: string[];
455
+ dependency_digest: string;
456
+ }[];
457
+ positive_dependency_refs: string[];
458
+ negative_dependency_refs: string[];
459
+ dependency_digest: string;
460
+ }[];
461
+ dependency_set_digest: string;
462
+ logical_unit_ref: string;
463
+ author_workset_digest: string;
464
+ dependency_view_digest: string;
465
+ result_digest: string;
466
+ run_envelope_digest: string;
467
+ positive_dependencies: ({
468
+ kind: "source-span";
469
+ source_ref: string;
470
+ targets: ({
471
+ level: "logical-unit";
472
+ } | {
473
+ artifact_kind: string;
474
+ level: "artifact-kind";
475
+ } | {
476
+ artifact_kind: string;
477
+ level: "section";
478
+ section_key: string;
479
+ })[];
480
+ locator: {
481
+ path: string;
482
+ start_line: number;
483
+ end_line: number;
484
+ };
485
+ module_ref: string | null;
486
+ content_digest: string;
487
+ node_ref: string;
488
+ evidence_ref: string;
489
+ dependency_ref: string;
490
+ } | {
491
+ kind: "selected-fact";
492
+ targets: ({
493
+ level: "logical-unit";
494
+ } | {
495
+ artifact_kind: string;
496
+ level: "artifact-kind";
497
+ } | {
498
+ artifact_kind: string;
499
+ level: "section";
500
+ section_key: string;
501
+ })[];
502
+ fact_ref: string;
503
+ node_ref: string;
504
+ fact_digest: string;
505
+ source_span_node_refs: string[];
506
+ dependency_ref: string;
507
+ } | {
508
+ kind: "logical-unit";
509
+ targets: ({
510
+ level: "logical-unit";
511
+ } | {
512
+ artifact_kind: string;
513
+ level: "artifact-kind";
514
+ } | {
515
+ artifact_kind: string;
516
+ level: "section";
517
+ section_key: string;
518
+ })[];
519
+ logical_unit_ref: string;
520
+ node_ref: string;
521
+ group_projection_digest: string;
522
+ dependency_ref: string;
523
+ } | {
524
+ kind: "template-policy-fragment" | "contract-metric";
525
+ targets: ({
526
+ level: "logical-unit";
527
+ } | {
528
+ artifact_kind: string;
529
+ level: "artifact-kind";
530
+ } | {
531
+ artifact_kind: string;
532
+ level: "section";
533
+ section_key: string;
534
+ })[];
535
+ target_ref: string;
536
+ content_digest: string;
537
+ node_ref: string;
538
+ dependency_ref: string;
539
+ })[];
540
+ negative_dependencies: {
541
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
542
+ targets: ({
543
+ level: "logical-unit";
544
+ } | {
545
+ artifact_kind: string;
546
+ level: "artifact-kind";
547
+ } | {
548
+ artifact_kind: string;
549
+ level: "section";
550
+ section_key: string;
551
+ })[];
552
+ node_ref: string;
553
+ scope_ref: string;
554
+ set_digest: string;
555
+ dependency_ref: string;
556
+ }[];
557
+ }, {
558
+ source_ref: string;
559
+ protocol: "context.indexer.artifact-dependency-set/v1";
560
+ module_ref: string | null;
561
+ artifacts: {
562
+ artifact_kind: string;
563
+ artifact_id: string;
564
+ sections: {
565
+ section_key: string;
566
+ positive_dependency_refs: string[];
567
+ negative_dependency_refs: string[];
568
+ dependency_digest: string;
569
+ }[];
570
+ positive_dependency_refs: string[];
571
+ negative_dependency_refs: string[];
572
+ dependency_digest: string;
573
+ }[];
574
+ dependency_set_digest: string;
575
+ logical_unit_ref: string;
576
+ author_workset_digest: string;
577
+ dependency_view_digest: string;
578
+ result_digest: string;
579
+ run_envelope_digest: string;
580
+ positive_dependencies: ({
581
+ kind: "source-span";
582
+ source_ref: string;
583
+ targets: ({
584
+ level: "logical-unit";
585
+ } | {
586
+ artifact_kind: string;
587
+ level: "artifact-kind";
588
+ } | {
589
+ artifact_kind: string;
590
+ level: "section";
591
+ section_key: string;
592
+ })[];
593
+ locator: {
594
+ path: string;
595
+ start_line: number;
596
+ end_line: number;
597
+ };
598
+ module_ref: string | null;
599
+ content_digest: string;
600
+ node_ref: string;
601
+ evidence_ref: string;
602
+ dependency_ref: string;
603
+ } | {
604
+ kind: "selected-fact";
605
+ targets: ({
606
+ level: "logical-unit";
607
+ } | {
608
+ artifact_kind: string;
609
+ level: "artifact-kind";
610
+ } | {
611
+ artifact_kind: string;
612
+ level: "section";
613
+ section_key: string;
614
+ })[];
615
+ fact_ref: string;
616
+ node_ref: string;
617
+ fact_digest: string;
618
+ source_span_node_refs: string[];
619
+ dependency_ref: string;
620
+ } | {
621
+ kind: "logical-unit";
622
+ targets: ({
623
+ level: "logical-unit";
624
+ } | {
625
+ artifact_kind: string;
626
+ level: "artifact-kind";
627
+ } | {
628
+ artifact_kind: string;
629
+ level: "section";
630
+ section_key: string;
631
+ })[];
632
+ logical_unit_ref: string;
633
+ node_ref: string;
634
+ group_projection_digest: string;
635
+ dependency_ref: string;
636
+ } | {
637
+ kind: "template-policy-fragment" | "contract-metric";
638
+ targets: ({
639
+ level: "logical-unit";
640
+ } | {
641
+ artifact_kind: string;
642
+ level: "artifact-kind";
643
+ } | {
644
+ artifact_kind: string;
645
+ level: "section";
646
+ section_key: string;
647
+ })[];
648
+ target_ref: string;
649
+ content_digest: string;
650
+ node_ref: string;
651
+ dependency_ref: string;
652
+ })[];
653
+ negative_dependencies: {
654
+ kind: "group-input-set" | "directory-membership" | "export-set" | "route-set" | "candidate-pool" | "precedence-winner" | "absence-assertion";
655
+ targets: ({
656
+ level: "logical-unit";
657
+ } | {
658
+ artifact_kind: string;
659
+ level: "artifact-kind";
660
+ } | {
661
+ artifact_kind: string;
662
+ level: "section";
663
+ section_key: string;
664
+ })[];
665
+ node_ref: string;
666
+ scope_ref: string;
667
+ set_digest: string;
668
+ dependency_ref: string;
669
+ }[];
670
+ }>;
671
+ export type IndexerArtifactDependencySet = z.infer<typeof indexerArtifactDependencySetSchema>;
672
+ export declare function indexerArtifactDependencySetDigest(value: Omit<IndexerArtifactDependencySet, "dependency_set_digest">): string;
673
+ export declare function buildIndexerArtifactDependencySet(input: {
674
+ result: IndexerArtifactResult;
675
+ workset: IndexerMainAuthorWorkset;
676
+ run_envelope: unknown;
677
+ dependency_view: unknown;
678
+ }): IndexerArtifactDependencySet;
679
+ export declare function validateIndexerArtifactDependencySet(input: {
680
+ value: unknown;
681
+ result: IndexerArtifactResult;
682
+ workset: IndexerMainAuthorWorkset;
683
+ run_envelope: unknown;
684
+ dependency_view: unknown;
685
+ }): IndexerArtifactDependencySet;
686
+ export declare function validateIndexerArtifactDependencyViewBinding(input: {
687
+ view: unknown;
688
+ workset: IndexerMainAuthorWorkset;
689
+ }): IndexerAuthorDependencyView;