@c4a/context 0.7.9 → 0.7.10-alpha.2

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,371 +1,110 @@
1
- import { z } from "zod";
2
- import { type IndexerSubjectKey } from "./indexerSubjectIdentity.js";
3
- import { type IndexerKnowledgeDependency } from "./indexerKnowledgeDependency.js";
4
- export declare const indexerApprovedKnowledgeSchema: z.ZodObject<{
5
- protocol: z.ZodLiteral<"context.indexer.approved-knowledge/v1">;
6
- artifact_ref: z.ZodString;
7
- subject_key: z.ZodObject<{
8
- protocol: z.ZodLiteral<"context.subject-key/v1">;
9
- namespace: z.ZodEffects<z.ZodString, string, string>;
10
- kind: z.ZodEffects<z.ZodString, string, string>;
11
- local_key: z.ZodEffects<z.ZodString, string, string>;
12
- }, "strict", z.ZodTypeAny, {
13
- kind: string;
14
- namespace: string;
15
- protocol: "context.subject-key/v1";
16
- local_key: string;
17
- }, {
18
- kind: string;
19
- namespace: string;
20
- protocol: "context.subject-key/v1";
21
- local_key: string;
22
- }>;
23
- primary_indexer_id: z.ZodOptional<z.ZodString>;
24
- path: z.ZodEffects<z.ZodString, string, string>;
25
- approved_content_digest: z.ZodString;
26
- source_versions: z.ZodArray<z.ZodObject<{
27
- source_ref: z.ZodString;
28
- module_ref: z.ZodNullable<z.ZodString>;
29
- version: z.ZodString;
30
- }, "strict", z.ZodTypeAny, {
31
- source_ref: string;
32
- version: string;
33
- module_ref: string | null;
34
- }, {
35
- source_ref: string;
36
- version: string;
37
- module_ref: string | null;
38
- }>, "many">;
39
- sections: z.ZodArray<z.ZodObject<{
40
- section_ref: z.ZodString;
41
- section_key: z.ZodOptional<z.ZodString>;
42
- markdown: z.ZodString;
43
- fact_refs: z.ZodArray<z.ZodString, "many">;
44
- evidence_refs: z.ZodArray<z.ZodString, "many">;
45
- }, "strict", z.ZodTypeAny, {
46
- evidence_refs: string[];
47
- fact_refs: string[];
48
- markdown: string;
49
- section_ref: string;
50
- section_key?: string | undefined;
51
- }, {
52
- evidence_refs: string[];
53
- fact_refs: string[];
54
- markdown: string;
55
- section_ref: string;
56
- section_key?: string | undefined;
57
- }>, "many">;
58
- facts: z.ZodArray<z.ZodObject<{
59
- fact_ref: z.ZodString;
60
- fact_kind: z.ZodEffects<z.ZodString, string, string>;
61
- subject_key: z.ZodObject<{
62
- protocol: z.ZodLiteral<"context.subject-key/v1">;
63
- namespace: z.ZodEffects<z.ZodString, string, string>;
64
- kind: z.ZodEffects<z.ZodString, string, string>;
65
- local_key: z.ZodEffects<z.ZodString, string, string>;
66
- }, "strict", z.ZodTypeAny, {
67
- kind: string;
68
- namespace: string;
69
- protocol: "context.subject-key/v1";
70
- local_key: string;
1
+ import { type ArticleStructureEntry } from "./articleStructure.js";
2
+ export declare const indexerApprovedKnowledgeSchema: import("zod").ZodObject<{
3
+ article_id: import("zod").ZodString;
4
+ path: import("zod").ZodEffects<import("zod").ZodString, string, string>;
5
+ collection: import("zod").ZodType<import("./contracts.js").TopLevelNamespace, import("zod").ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
6
+ visibility: import("zod").ZodString;
7
+ sections: import("zod").ZodArray<import("zod").ZodObject<{
8
+ id: import("zod").ZodString;
9
+ references: import("zod").ZodArray<import("zod").ZodObject<{
10
+ source_ref: import("zod").ZodString;
11
+ locator: import("zod").ZodEffects<import("zod").ZodObject<{
12
+ path: import("zod").ZodEffects<import("zod").ZodString, string, string>;
13
+ start_line: import("zod").ZodNumber;
14
+ end_line: import("zod").ZodNumber;
15
+ }, "strict", import("zod").ZodTypeAny, {
16
+ path: string;
17
+ start_line: number;
18
+ end_line: number;
19
+ }, {
20
+ path: string;
21
+ start_line: number;
22
+ end_line: number;
23
+ }>, {
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
+ content_digest: import("zod").ZodString;
33
+ }, "strict", import("zod").ZodTypeAny, {
34
+ source_ref: string;
35
+ locator: {
36
+ path: string;
37
+ start_line: number;
38
+ end_line: number;
39
+ };
40
+ content_digest: string;
71
41
  }, {
72
- kind: string;
73
- namespace: string;
74
- protocol: "context.subject-key/v1";
75
- local_key: string;
76
- }>;
77
- value: z.ZodType<import("./indexerRegistry.js").IndexerJson, z.ZodTypeDef, import("./indexerRegistry.js").IndexerJson>;
78
- evidence_refs: z.ZodArray<z.ZodString, "many">;
79
- }, "strict", z.ZodTypeAny, {
80
- value: import("./indexerRegistry.js").IndexerJson;
81
- fact_ref: string;
82
- fact_kind: string;
83
- subject_key: {
84
- kind: string;
85
- namespace: string;
86
- protocol: "context.subject-key/v1";
87
- local_key: string;
88
- };
89
- evidence_refs: string[];
42
+ source_ref: string;
43
+ locator: {
44
+ path: string;
45
+ start_line: number;
46
+ end_line: number;
47
+ };
48
+ content_digest: string;
49
+ }>, "many">;
50
+ }, "strict", import("zod").ZodTypeAny, {
51
+ id: string;
52
+ references: {
53
+ source_ref: string;
54
+ locator: {
55
+ path: string;
56
+ start_line: number;
57
+ end_line: number;
58
+ };
59
+ content_digest: string;
60
+ }[];
90
61
  }, {
91
- value: import("./indexerRegistry.js").IndexerJson;
92
- fact_ref: string;
93
- fact_kind: string;
94
- subject_key: {
95
- kind: string;
96
- namespace: string;
97
- protocol: "context.subject-key/v1";
98
- local_key: string;
99
- };
100
- evidence_refs: string[];
62
+ id: string;
63
+ references: {
64
+ source_ref: string;
65
+ locator: {
66
+ path: string;
67
+ start_line: number;
68
+ end_line: number;
69
+ };
70
+ content_digest: string;
71
+ }[];
101
72
  }>, "many">;
102
- evidence_bindings: z.ZodArray<z.ZodObject<{
103
- evidence_ref: z.ZodString;
104
- kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
105
- source_ref: z.ZodString;
106
- module_ref: z.ZodNullable<z.ZodString>;
107
- locator: z.ZodEffects<z.ZodObject<{
108
- path: z.ZodEffects<z.ZodString, string, string>;
109
- start_line: z.ZodNumber;
110
- end_line: z.ZodNumber;
111
- }, "strict", z.ZodTypeAny, {
112
- path: string;
113
- start_line: number;
114
- end_line: number;
115
- }, {
116
- path: string;
117
- start_line: number;
118
- end_line: number;
119
- }>, {
120
- path: string;
121
- start_line: number;
122
- end_line: number;
123
- }, {
124
- path: string;
125
- start_line: number;
126
- end_line: number;
127
- }>;
128
- content_digest: z.ZodString;
129
- coverage_tier: z.ZodEnum<["ast-catalog", "lightweight-evidence"]>;
130
- binding_digest: z.ZodString;
131
- }, "strict", z.ZodTypeAny, {
132
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
133
- source_ref: string;
134
- locator: {
135
- path: string;
136
- start_line: number;
137
- end_line: number;
138
- };
139
- content_digest: string;
140
- module_ref: string | null;
141
- coverage_tier: "ast-catalog" | "lightweight-evidence";
142
- evidence_ref: string;
143
- binding_digest: string;
144
- }, {
145
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
146
- source_ref: string;
147
- locator: {
148
- path: string;
149
- start_line: number;
150
- end_line: number;
151
- };
152
- content_digest: string;
153
- module_ref: string | null;
154
- coverage_tier: "ast-catalog" | "lightweight-evidence";
155
- evidence_ref: string;
156
- binding_digest: string;
157
- }>, "many">;
158
- dependencies: z.ZodArray<z.ZodObject<{
159
- artifact_ref: z.ZodString;
160
- section_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
161
- required: z.ZodDefault<z.ZodBoolean>;
162
- }, "strict", z.ZodTypeAny, {
163
- required: boolean;
164
- artifact_ref: string;
165
- section_refs: string[];
166
- }, {
167
- artifact_ref: string;
168
- required?: boolean | undefined;
169
- section_refs?: string[] | undefined;
170
- }>, "many">;
171
- dependency_versions: z.ZodOptional<z.ZodArray<z.ZodObject<{
172
- artifact_ref: z.ZodString;
173
- approved_content_digest: z.ZodString;
174
- projection_digest: z.ZodString;
175
- }, "strict", z.ZodTypeAny, {
176
- artifact_ref: string;
177
- approved_content_digest: string;
178
- projection_digest: string;
179
- }, {
180
- artifact_ref: string;
181
- approved_content_digest: string;
182
- projection_digest: string;
183
- }>, "many">>;
184
- snapshot_digest: z.ZodString;
185
- }, "strict", z.ZodTypeAny, {
73
+ }, "strict", import("zod").ZodTypeAny, {
186
74
  path: string;
187
- protocol: "context.indexer.approved-knowledge/v1";
188
- subject_key: {
189
- kind: string;
190
- namespace: string;
191
- protocol: "context.subject-key/v1";
192
- local_key: string;
193
- };
75
+ article_id: string;
76
+ collection: import("./contracts.js").TopLevelNamespace;
77
+ visibility: string;
194
78
  sections: {
195
- evidence_refs: string[];
196
- fact_refs: string[];
197
- markdown: string;
198
- section_ref: string;
199
- section_key?: string | undefined;
200
- }[];
201
- facts: {
202
- value: import("./indexerRegistry.js").IndexerJson;
203
- fact_ref: string;
204
- fact_kind: string;
205
- subject_key: {
206
- kind: string;
207
- namespace: string;
208
- protocol: "context.subject-key/v1";
209
- local_key: string;
210
- };
211
- evidence_refs: string[];
79
+ id: string;
80
+ references: {
81
+ source_ref: string;
82
+ locator: {
83
+ path: string;
84
+ start_line: number;
85
+ end_line: number;
86
+ };
87
+ content_digest: string;
88
+ }[];
212
89
  }[];
213
- snapshot_digest: string;
214
- dependencies: {
215
- required: boolean;
216
- artifact_ref: string;
217
- section_refs: string[];
218
- }[];
219
- evidence_bindings: {
220
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
221
- source_ref: string;
222
- locator: {
223
- path: string;
224
- start_line: number;
225
- end_line: number;
226
- };
227
- content_digest: string;
228
- module_ref: string | null;
229
- coverage_tier: "ast-catalog" | "lightweight-evidence";
230
- evidence_ref: string;
231
- binding_digest: string;
232
- }[];
233
- artifact_ref: string;
234
- approved_content_digest: string;
235
- source_versions: {
236
- source_ref: string;
237
- version: string;
238
- module_ref: string | null;
239
- }[];
240
- primary_indexer_id?: string | undefined;
241
- dependency_versions?: {
242
- artifact_ref: string;
243
- approved_content_digest: string;
244
- projection_digest: string;
245
- }[] | undefined;
246
90
  }, {
247
91
  path: string;
248
- protocol: "context.indexer.approved-knowledge/v1";
249
- subject_key: {
250
- kind: string;
251
- namespace: string;
252
- protocol: "context.subject-key/v1";
253
- local_key: string;
254
- };
92
+ article_id: string;
93
+ collection: import("./contracts.js").TopLevelNamespace;
94
+ visibility: string;
255
95
  sections: {
256
- evidence_refs: string[];
257
- fact_refs: string[];
258
- markdown: string;
259
- section_ref: string;
260
- section_key?: string | undefined;
261
- }[];
262
- facts: {
263
- value: import("./indexerRegistry.js").IndexerJson;
264
- fact_ref: string;
265
- fact_kind: string;
266
- subject_key: {
267
- kind: string;
268
- namespace: string;
269
- protocol: "context.subject-key/v1";
270
- local_key: string;
271
- };
272
- evidence_refs: string[];
273
- }[];
274
- snapshot_digest: string;
275
- dependencies: {
276
- artifact_ref: string;
277
- required?: boolean | undefined;
278
- section_refs?: string[] | undefined;
279
- }[];
280
- evidence_bindings: {
281
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
282
- source_ref: string;
283
- locator: {
284
- path: string;
285
- start_line: number;
286
- end_line: number;
287
- };
288
- content_digest: string;
289
- module_ref: string | null;
290
- coverage_tier: "ast-catalog" | "lightweight-evidence";
291
- evidence_ref: string;
292
- binding_digest: string;
96
+ id: string;
97
+ references: {
98
+ source_ref: string;
99
+ locator: {
100
+ path: string;
101
+ start_line: number;
102
+ end_line: number;
103
+ };
104
+ content_digest: string;
105
+ }[];
293
106
  }[];
294
- artifact_ref: string;
295
- approved_content_digest: string;
296
- source_versions: {
297
- source_ref: string;
298
- version: string;
299
- module_ref: string | null;
300
- }[];
301
- primary_indexer_id?: string | undefined;
302
- dependency_versions?: {
303
- artifact_ref: string;
304
- approved_content_digest: string;
305
- projection_digest: string;
306
- }[] | undefined;
307
107
  }>;
308
- export type IndexerApprovedKnowledge = z.infer<typeof indexerApprovedKnowledgeSchema>;
108
+ export type IndexerApprovedKnowledge = ArticleStructureEntry;
309
109
  export declare function validateIndexerApprovedKnowledge(value: unknown): IndexerApprovedKnowledge;
310
- export declare function buildIndexerApprovedKnowledge(payload: Omit<IndexerApprovedKnowledge, "snapshot_digest">): IndexerApprovedKnowledge;
311
- export interface PendingKnowledgeDependency {
312
- artifact_ref: string;
313
- reason: "not-approved" | "approval-changed" | "section-unavailable" | "source-version-changed" | "dependency-cycle" | "same-group-dependency";
314
- required: boolean;
315
- }
316
- /** Projection is an authority boundary. It never turns approved prose into a
317
- * source fact and never assigns the source members to the consuming subject. */
318
- export declare function projectIndexerApprovedKnowledge(input: {
319
- dependencies: readonly IndexerKnowledgeDependency[];
320
- snapshots: readonly IndexerApprovedKnowledge[];
321
- approved_versions: ReadonlyMap<string, string>;
322
- authorized_sources: readonly {
323
- source_ref: string;
324
- module_ref: string | null;
325
- version: string;
326
- }[];
327
- evidence_kinds: ReadonlySet<string>;
328
- subject_key: IndexerSubjectKey;
329
- }): {
330
- status: "ready" | "waiting";
331
- pending: PendingKnowledgeDependency[];
332
- versions: {
333
- artifact_ref: string;
334
- approved_content_digest: string;
335
- projection_digest: string;
336
- }[];
337
- facts: {
338
- value: import("./indexerRegistry.js").IndexerJson;
339
- fact_ref: string;
340
- fact_kind: string;
341
- subject_key: {
342
- kind: string;
343
- namespace: string;
344
- protocol: "context.subject-key/v1";
345
- local_key: string;
346
- };
347
- evidence_refs: string[];
348
- }[];
349
- reading_sections: {
350
- artifact_ref: string;
351
- section_ref: string;
352
- approved_content_digest: string;
353
- evidence_role: "approved-interpretation";
354
- markdown: string;
355
- evidence_refs: string[];
356
- }[];
357
- evidence_bindings: {
358
- kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
359
- source_ref: string;
360
- locator: {
361
- path: string;
362
- start_line: number;
363
- end_line: number;
364
- };
365
- content_digest: string;
366
- module_ref: string | null;
367
- coverage_tier: "ast-catalog" | "lightweight-evidence";
368
- evidence_ref: string;
369
- binding_digest: string;
370
- }[];
371
- };
110
+ export declare function buildIndexerApprovedKnowledge(value: IndexerApprovedKnowledge): IndexerApprovedKnowledge;
@@ -23,61 +23,38 @@ export declare const indexerArticlePlanSchema: z.ZodObject<{
23
23
  heading: string;
24
24
  }>, "many">;
25
25
  question_targets: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
26
- knowledge_dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
27
- artifact_ref: z.ZodString;
28
- section_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
29
- required: z.ZodDefault<z.ZodBoolean>;
30
- }, "strict", z.ZodTypeAny, {
31
- required: boolean;
32
- artifact_ref: string;
33
- section_refs: string[];
34
- }, {
35
- artifact_ref: string;
36
- required?: boolean | undefined;
37
- section_refs?: string[] | undefined;
38
- }>, "many">>;
39
26
  }, "strict", z.ZodTypeAny, {
40
27
  title: string;
41
28
  key: string;
42
- required: boolean;
43
29
  sections: {
44
30
  key: string;
45
31
  required: boolean;
46
32
  heading: string;
47
33
  }[];
34
+ required: boolean;
48
35
  reader_task: string;
49
36
  artifact_intent: string;
50
37
  question_targets: string[];
51
38
  template_id?: string | undefined;
52
- knowledge_dependencies?: {
53
- required: boolean;
54
- artifact_ref: string;
55
- section_refs: string[];
56
- }[] | undefined;
57
39
  }, {
58
40
  title: string;
59
41
  key: string;
60
- required: boolean;
61
42
  sections: {
62
43
  key: string;
63
44
  required: boolean;
64
45
  heading: string;
65
46
  }[];
47
+ required: boolean;
66
48
  reader_task: string;
67
49
  artifact_intent: string;
68
50
  template_id?: string | undefined;
69
51
  question_targets?: string[] | undefined;
70
- knowledge_dependencies?: {
71
- artifact_ref: string;
72
- required?: boolean | undefined;
73
- section_refs?: string[] | undefined;
74
- }[] | undefined;
75
52
  }>;
76
53
  export type IndexerArticlePlan = z.infer<typeof indexerArticlePlanSchema>;
77
54
  export declare function validateIndexerArticlePlan(articles: readonly IndexerArticlePlan[], targets?: readonly string[]): void;
78
55
  export declare function indexerArticleSectionKey(article: string, section: string): string;
79
56
  /** Applies to both semantic submissions and programmatic Providers. */
80
- export declare function validateIndexerPlannedArticles(result: IndexerArtifactResult, articles: readonly IndexerArticlePlan[]): Array<{
57
+ export declare function validateIndexerPlannedArticles(result: Pick<IndexerArtifactResult, "source_role" | "artifacts">, articles: readonly IndexerArticlePlan[]): Array<{
81
58
  code: string;
82
59
  message: string;
83
60
  }>;