@c4a/context 0.7.9 → 0.7.10-alpha.1

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 (78) hide show
  1. package/articleStructure.d.ts +254 -0
  2. package/docs/guides/agent-dialogue.md +1 -1
  3. package/docs/guides/code-indexer-skill-authoring.md +76 -178
  4. package/docs/guides/indexer-provider-and-customization.md +93 -453
  5. package/docs/guides/indexer-skill-creation.md +107 -97
  6. package/docs/guides/knowledge-updates.md +35 -14
  7. package/docs/guides/markdown-indexer-skill-authoring.md +57 -134
  8. package/docs/reference/indexer-provider-protocol.md +52 -102
  9. package/docs/reference/package-templates.md +39 -65
  10. package/docs/reference/template-variables.md +2 -3
  11. package/index.d.ts +6 -10
  12. package/index.js +6441 -8771
  13. package/indexerAgentStepProtocol.d.ts +0 -910
  14. package/indexerApprovedKnowledge.d.ts +98 -359
  15. package/indexerArticlePlan.d.ts +3 -26
  16. package/indexerArtifact.d.ts +201 -70
  17. package/indexerArtifactPolicy.d.ts +0 -18
  18. package/indexerArtifactResult.d.ts +240 -888
  19. package/indexerAuthoringFixture.d.ts +0 -13
  20. package/indexerBenchmark.d.ts +2 -2
  21. package/indexerCandidateCompile.d.ts +123 -167
  22. package/indexerCatalogFallback.d.ts +32 -374
  23. package/indexerCollectionMapping.d.ts +2 -2
  24. package/indexerContentLayers.d.ts +187 -41
  25. package/indexerContractOverlay.d.ts +30 -44
  26. package/indexerControlledInvocation.d.ts +6 -6
  27. package/indexerControlledProgram.d.ts +959 -3020
  28. package/indexerDependencyView.d.ts +96 -96
  29. package/indexerEffectiveArtifact.d.ts +381 -242
  30. package/indexerExampleDecision.d.ts +134 -134
  31. package/indexerExampleIdentity.d.ts +6 -6
  32. package/indexerExampleIdentityAudit.d.ts +6 -6
  33. package/indexerInventoryDisposition.d.ts +0 -39
  34. package/indexerLayerComposition.d.ts +1378 -852
  35. package/indexerLayoutChange.d.ts +24 -33
  36. package/indexerLayoutProposalSet.d.ts +143 -137
  37. package/indexerLayoutResolver.d.ts +116 -101
  38. package/indexerLayoutTransition.d.ts +6 -6
  39. package/indexerMainLifecycle.d.ts +1 -11
  40. package/indexerMainRunLedger.d.ts +0 -14
  41. package/indexerMainRunProtocol.d.ts +806 -2530
  42. package/indexerMainWorkset.d.ts +0 -1212
  43. package/indexerNavigationArtifactPlan.d.ts +2 -2
  44. package/indexerOverlayQuestionApplyProposal.d.ts +0 -4
  45. package/indexerParserCoordinate.d.ts +2 -2
  46. package/indexerParserExecutionPlan.d.ts +42 -42
  47. package/indexerPartitionPlan.d.ts +24 -354
  48. package/indexerPhysicalArtifactManifest.d.ts +12 -27
  49. package/indexerPostAuthorComposition.d.ts +2 -253
  50. package/indexerPostAuthorRunLedger.d.ts +860 -562
  51. package/indexerPrimaryProjection.d.ts +2 -2
  52. package/indexerPrimaryResultView.d.ts +0 -318
  53. package/indexerProfileContract.d.ts +200 -549
  54. package/indexerProgramExecutionAuthorization.d.ts +4 -4
  55. package/indexerProgramRunProtocol.d.ts +806 -2527
  56. package/indexerProjectProposal.d.ts +8 -8
  57. package/indexerProjectedArtifactFanOutAudit.d.ts +8 -8
  58. package/indexerProjectedArtifactPlan.d.ts +0 -9
  59. package/indexerProvider.d.ts +46 -288
  60. package/indexerProviderComposition.d.ts +16 -42
  61. package/indexerQuestionAuthority.d.ts +2 -82
  62. package/indexerReaderTargetInventory.d.ts +6 -6
  63. package/indexerRequirementLifecycle.d.ts +6 -6
  64. package/indexerResultReconciliation.d.ts +35 -149
  65. package/indexerSemanticInput.d.ts +10642 -4685
  66. package/indexerStructuredDeclaration.d.ts +24 -24
  67. package/indexerTemplateRendering.d.ts +239 -113
  68. package/knowledgeMap.d.ts +5 -5
  69. package/package.json +1 -1
  70. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +13 -16
  71. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +9 -9
  72. package/indexerArtifactDependencies.d.ts +0 -693
  73. package/indexerCompositionFactDependencies.d.ts +0 -16
  74. package/indexerExampleFactDependencies.d.ts +0 -17
  75. package/indexerIncrementalImpact.d.ts +0 -221
  76. package/indexerKnowledgeDependency.d.ts +0 -46
  77. package/indexerSubjectCatalog.d.ts +0 -230
  78. package/indexerSubjectKeyAuthority.d.ts +0 -786
@@ -1,693 +0,0 @@
1
- import { z } from "zod";
2
- import { type IndexerArtifactResult, type IndexerAuthorizedEvidenceTarget } 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
- section_key: string;
62
- artifact_kind: string;
63
- level: "section";
64
- }, {
65
- section_key: string;
66
- artifact_kind: string;
67
- level: "section";
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
- section_key: string;
83
- artifact_kind: string;
84
- level: "section";
85
- })[];
86
- locator: {
87
- path: string;
88
- start_line: number;
89
- end_line: number;
90
- };
91
- content_digest: string;
92
- module_ref: string | null;
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
- section_key: string;
106
- artifact_kind: string;
107
- level: "section";
108
- })[];
109
- locator: {
110
- path: string;
111
- start_line: number;
112
- end_line: number;
113
- };
114
- content_digest: string;
115
- module_ref: string | null;
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
- section_key: string;
145
- artifact_kind: string;
146
- level: "section";
147
- }, {
148
- section_key: string;
149
- artifact_kind: string;
150
- level: "section";
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
- section_key: string;
165
- artifact_kind: string;
166
- level: "section";
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
- section_key: string;
182
- artifact_kind: string;
183
- level: "section";
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
- section_key: string;
215
- artifact_kind: string;
216
- level: "section";
217
- }, {
218
- section_key: string;
219
- artifact_kind: string;
220
- level: "section";
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
- section_key: string;
235
- artifact_kind: string;
236
- level: "section";
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
- section_key: string;
251
- artifact_kind: string;
252
- level: "section";
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", "approved-knowledge"]>;
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
- section_key: string;
283
- artifact_kind: string;
284
- level: "section";
285
- }, {
286
- section_key: string;
287
- artifact_kind: string;
288
- level: "section";
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" | "approved-knowledge";
296
- targets: ({
297
- level: "logical-unit";
298
- } | {
299
- artifact_kind: string;
300
- level: "artifact-kind";
301
- } | {
302
- section_key: string;
303
- artifact_kind: string;
304
- level: "section";
305
- })[];
306
- content_digest: string;
307
- target_ref: string;
308
- node_ref: string;
309
- dependency_ref: string;
310
- }, {
311
- kind: "template-policy-fragment" | "contract-metric" | "approved-knowledge";
312
- targets: ({
313
- level: "logical-unit";
314
- } | {
315
- artifact_kind: string;
316
- level: "artifact-kind";
317
- } | {
318
- section_key: string;
319
- artifact_kind: string;
320
- level: "section";
321
- })[];
322
- content_digest: string;
323
- target_ref: 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
- section_key: string;
352
- artifact_kind: string;
353
- level: "section";
354
- }, {
355
- section_key: string;
356
- artifact_kind: string;
357
- level: "section";
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
- section_key: string;
372
- artifact_kind: string;
373
- level: "section";
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
- section_key: string;
388
- artifact_kind: string;
389
- level: "section";
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
- section_key: string;
477
- artifact_kind: string;
478
- level: "section";
479
- })[];
480
- locator: {
481
- path: string;
482
- start_line: number;
483
- end_line: number;
484
- };
485
- content_digest: string;
486
- module_ref: string | null;
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
- section_key: string;
499
- artifact_kind: string;
500
- level: "section";
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
- section_key: string;
516
- artifact_kind: string;
517
- level: "section";
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" | "approved-knowledge";
525
- targets: ({
526
- level: "logical-unit";
527
- } | {
528
- artifact_kind: string;
529
- level: "artifact-kind";
530
- } | {
531
- section_key: string;
532
- artifact_kind: string;
533
- level: "section";
534
- })[];
535
- content_digest: string;
536
- target_ref: 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
- section_key: string;
549
- artifact_kind: string;
550
- level: "section";
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
- section_key: string;
590
- artifact_kind: string;
591
- level: "section";
592
- })[];
593
- locator: {
594
- path: string;
595
- start_line: number;
596
- end_line: number;
597
- };
598
- content_digest: string;
599
- module_ref: string | null;
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
- section_key: string;
612
- artifact_kind: string;
613
- level: "section";
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
- section_key: string;
629
- artifact_kind: string;
630
- level: "section";
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" | "approved-knowledge";
638
- targets: ({
639
- level: "logical-unit";
640
- } | {
641
- artifact_kind: string;
642
- level: "artifact-kind";
643
- } | {
644
- section_key: string;
645
- artifact_kind: string;
646
- level: "section";
647
- })[];
648
- content_digest: string;
649
- target_ref: 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
- section_key: string;
662
- artifact_kind: string;
663
- level: "section";
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
- composition_input?: unknown;
679
- authorized_evidence_targets?: readonly IndexerAuthorizedEvidenceTarget[];
680
- }): IndexerArtifactDependencySet;
681
- export declare function validateIndexerArtifactDependencySet(input: {
682
- value: unknown;
683
- result: IndexerArtifactResult;
684
- workset: IndexerMainAuthorWorkset;
685
- run_envelope: unknown;
686
- dependency_view: unknown;
687
- composition_input?: unknown;
688
- authorized_evidence_targets?: readonly IndexerAuthorizedEvidenceTarget[];
689
- }): IndexerArtifactDependencySet;
690
- export declare function validateIndexerArtifactDependencyViewBinding(input: {
691
- view: unknown;
692
- workset: IndexerMainAuthorWorkset;
693
- }): IndexerAuthorDependencyView;
@@ -1,16 +0,0 @@
1
- import type { IndexerArtifactResult } from "./indexerArtifactResult.js";
2
- import { type IndexerAuthorDependencyView } from "./indexerDependencyView.js";
3
- import type { IndexerMainAuthorWorkset } from "./indexerMainWorkset.js";
4
- export declare function compositionFactDependencies(input: {
5
- composition_input: unknown;
6
- workset: IndexerMainAuthorWorkset;
7
- dependency_view: IndexerAuthorDependencyView;
8
- result: IndexerArtifactResult;
9
- }): {
10
- node_ref: string;
11
- kind: "selected-fact";
12
- fact_ref: string;
13
- fact_digest: string;
14
- source_span_node_refs: string[];
15
- targets: never[];
16
- }[];