@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.
- package/articleStructure.d.ts +254 -0
- package/docs/guides/agent-dialogue.md +1 -1
- package/docs/guides/code-indexer-skill-authoring.md +76 -178
- package/docs/guides/indexer-provider-and-customization.md +93 -453
- package/docs/guides/indexer-skill-creation.md +107 -97
- package/docs/guides/knowledge-updates.md +35 -14
- package/docs/guides/markdown-indexer-skill-authoring.md +57 -134
- package/docs/reference/indexer-provider-protocol.md +52 -102
- package/docs/reference/package-templates.md +39 -65
- package/docs/reference/template-variables.md +2 -3
- package/index.d.ts +6 -10
- package/index.js +6441 -8771
- package/indexerAgentStepProtocol.d.ts +0 -910
- package/indexerApprovedKnowledge.d.ts +98 -359
- package/indexerArticlePlan.d.ts +3 -26
- package/indexerArtifact.d.ts +201 -70
- package/indexerArtifactPolicy.d.ts +0 -18
- package/indexerArtifactResult.d.ts +240 -888
- package/indexerAuthoringFixture.d.ts +0 -13
- package/indexerBenchmark.d.ts +2 -2
- package/indexerCandidateCompile.d.ts +123 -167
- package/indexerCatalogFallback.d.ts +32 -374
- package/indexerCollectionMapping.d.ts +2 -2
- package/indexerContentLayers.d.ts +187 -41
- package/indexerContractOverlay.d.ts +30 -44
- package/indexerControlledInvocation.d.ts +6 -6
- package/indexerControlledProgram.d.ts +959 -3020
- package/indexerDependencyView.d.ts +96 -96
- package/indexerEffectiveArtifact.d.ts +381 -242
- package/indexerExampleDecision.d.ts +134 -134
- package/indexerExampleIdentity.d.ts +6 -6
- package/indexerExampleIdentityAudit.d.ts +6 -6
- package/indexerInventoryDisposition.d.ts +0 -39
- package/indexerLayerComposition.d.ts +1378 -852
- package/indexerLayoutChange.d.ts +24 -33
- package/indexerLayoutProposalSet.d.ts +143 -137
- package/indexerLayoutResolver.d.ts +116 -101
- package/indexerLayoutTransition.d.ts +6 -6
- package/indexerMainLifecycle.d.ts +1 -11
- package/indexerMainRunLedger.d.ts +0 -14
- package/indexerMainRunProtocol.d.ts +806 -2530
- package/indexerMainWorkset.d.ts +0 -1212
- package/indexerNavigationArtifactPlan.d.ts +2 -2
- package/indexerOverlayQuestionApplyProposal.d.ts +0 -4
- package/indexerParserCoordinate.d.ts +2 -2
- package/indexerParserExecutionPlan.d.ts +42 -42
- package/indexerPartitionPlan.d.ts +24 -354
- package/indexerPhysicalArtifactManifest.d.ts +12 -27
- package/indexerPostAuthorComposition.d.ts +2 -253
- package/indexerPostAuthorRunLedger.d.ts +860 -562
- package/indexerPrimaryProjection.d.ts +2 -2
- package/indexerPrimaryResultView.d.ts +0 -318
- package/indexerProfileContract.d.ts +200 -549
- package/indexerProgramExecutionAuthorization.d.ts +4 -4
- package/indexerProgramRunProtocol.d.ts +806 -2527
- package/indexerProjectProposal.d.ts +8 -8
- package/indexerProjectedArtifactFanOutAudit.d.ts +8 -8
- package/indexerProjectedArtifactPlan.d.ts +0 -9
- package/indexerProvider.d.ts +46 -288
- package/indexerProviderComposition.d.ts +16 -42
- package/indexerQuestionAuthority.d.ts +2 -82
- package/indexerReaderTargetInventory.d.ts +6 -6
- package/indexerRequirementLifecycle.d.ts +6 -6
- package/indexerResultReconciliation.d.ts +35 -149
- package/indexerSemanticInput.d.ts +10642 -4685
- package/indexerStructuredDeclaration.d.ts +24 -24
- package/indexerTemplateRendering.d.ts +239 -113
- package/knowledgeMap.d.ts +5 -5
- package/package.json +1 -1
- package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +13 -16
- package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +9 -9
- package/indexerArtifactDependencies.d.ts +0 -693
- package/indexerCompositionFactDependencies.d.ts +0 -16
- package/indexerExampleFactDependencies.d.ts +0 -17
- package/indexerIncrementalImpact.d.ts +0 -221
- package/indexerKnowledgeDependency.d.ts +0 -46
- package/indexerSubjectCatalog.d.ts +0 -230
- package/indexerSubjectKeyAuthority.d.ts +0 -786
|
@@ -8,8 +8,6 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
8
8
|
source_ref: z.ZodString;
|
|
9
9
|
profile: z.ZodEffects<z.ZodString, string, string>;
|
|
10
10
|
profile_contract_digest: z.ZodString;
|
|
11
|
-
subject_key_schema_set_digest: z.ZodString;
|
|
12
|
-
subject_key_schema_digest: z.ZodString;
|
|
13
11
|
artifact_result_digest: z.ZodString;
|
|
14
12
|
post_author_composition_fingerprint: z.ZodNullable<z.ZodString>;
|
|
15
13
|
shared_artifact_fingerprint: z.ZodObject<{
|
|
@@ -35,47 +33,10 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
35
33
|
template_fingerprint: string;
|
|
36
34
|
fingerprint_digest: string;
|
|
37
35
|
}>;
|
|
38
|
-
node: z.ZodObject<{
|
|
39
|
-
node_ref: z.ZodString;
|
|
40
|
-
subject_key: z.ZodObject<{
|
|
41
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
42
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
45
|
-
}, "strict", z.ZodTypeAny, {
|
|
46
|
-
kind: string;
|
|
47
|
-
namespace: string;
|
|
48
|
-
protocol: "context.subject-key/v1";
|
|
49
|
-
local_key: string;
|
|
50
|
-
}, {
|
|
51
|
-
kind: string;
|
|
52
|
-
namespace: string;
|
|
53
|
-
protocol: "context.subject-key/v1";
|
|
54
|
-
local_key: string;
|
|
55
|
-
}>;
|
|
56
|
-
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
subject_key: {
|
|
58
|
-
kind: string;
|
|
59
|
-
namespace: string;
|
|
60
|
-
protocol: "context.subject-key/v1";
|
|
61
|
-
local_key: string;
|
|
62
|
-
};
|
|
63
|
-
node_ref: string;
|
|
64
|
-
}, {
|
|
65
|
-
subject_key: {
|
|
66
|
-
kind: string;
|
|
67
|
-
namespace: string;
|
|
68
|
-
protocol: "context.subject-key/v1";
|
|
69
|
-
local_key: string;
|
|
70
|
-
};
|
|
71
|
-
node_ref: string;
|
|
72
|
-
}>;
|
|
73
36
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
74
37
|
artifact_ref: z.ZodString;
|
|
75
|
-
node_ref: z.ZodString;
|
|
76
38
|
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
77
39
|
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
78
|
-
internal_view_ref: z.ZodString;
|
|
79
40
|
collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
|
|
80
41
|
output_path: z.ZodEffects<z.ZodString, string, string>;
|
|
81
42
|
shared_artifact_fingerprint_digest: z.ZodString;
|
|
@@ -104,12 +65,60 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
104
65
|
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
105
66
|
state: z.ZodEnum<["structured", "rendered", "material-gap"]>;
|
|
106
67
|
content_digest: z.ZodNullable<z.ZodString>;
|
|
107
|
-
|
|
68
|
+
references: z.ZodArray<z.ZodObject<{
|
|
69
|
+
source_ref: z.ZodString;
|
|
70
|
+
locator: z.ZodEffects<z.ZodObject<{
|
|
71
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
72
|
+
start_line: z.ZodNumber;
|
|
73
|
+
end_line: z.ZodNumber;
|
|
74
|
+
}, "strict", z.ZodTypeAny, {
|
|
75
|
+
path: string;
|
|
76
|
+
start_line: number;
|
|
77
|
+
end_line: number;
|
|
78
|
+
}, {
|
|
79
|
+
path: string;
|
|
80
|
+
start_line: number;
|
|
81
|
+
end_line: number;
|
|
82
|
+
}>, {
|
|
83
|
+
path: string;
|
|
84
|
+
start_line: number;
|
|
85
|
+
end_line: number;
|
|
86
|
+
}, {
|
|
87
|
+
path: string;
|
|
88
|
+
start_line: number;
|
|
89
|
+
end_line: number;
|
|
90
|
+
}>;
|
|
91
|
+
content_digest: z.ZodString;
|
|
92
|
+
}, "strict", z.ZodTypeAny, {
|
|
93
|
+
source_ref: string;
|
|
94
|
+
locator: {
|
|
95
|
+
path: string;
|
|
96
|
+
start_line: number;
|
|
97
|
+
end_line: number;
|
|
98
|
+
};
|
|
99
|
+
content_digest: string;
|
|
100
|
+
}, {
|
|
101
|
+
source_ref: string;
|
|
102
|
+
locator: {
|
|
103
|
+
path: string;
|
|
104
|
+
start_line: number;
|
|
105
|
+
end_line: number;
|
|
106
|
+
};
|
|
107
|
+
content_digest: string;
|
|
108
|
+
}>, "many">;
|
|
108
109
|
material_question_proposal_ref: z.ZodNullable<z.ZodString>;
|
|
109
110
|
collection_resolution_digest: z.ZodString;
|
|
110
111
|
}, "strict", z.ZodTypeAny, {
|
|
111
|
-
evidence_refs: string[];
|
|
112
112
|
content_digest: string | null;
|
|
113
|
+
references: {
|
|
114
|
+
source_ref: string;
|
|
115
|
+
locator: {
|
|
116
|
+
path: string;
|
|
117
|
+
start_line: number;
|
|
118
|
+
end_line: number;
|
|
119
|
+
};
|
|
120
|
+
content_digest: string;
|
|
121
|
+
}[];
|
|
113
122
|
section_key: string;
|
|
114
123
|
owner_indexer_id: string;
|
|
115
124
|
document_kind: string;
|
|
@@ -121,8 +130,16 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
121
130
|
section_identity_ref: string;
|
|
122
131
|
collection_resolution_digest: string;
|
|
123
132
|
}, {
|
|
124
|
-
evidence_refs: string[];
|
|
125
133
|
content_digest: string | null;
|
|
134
|
+
references: {
|
|
135
|
+
source_ref: string;
|
|
136
|
+
locator: {
|
|
137
|
+
path: string;
|
|
138
|
+
start_line: number;
|
|
139
|
+
end_line: number;
|
|
140
|
+
};
|
|
141
|
+
content_digest: string;
|
|
142
|
+
}[];
|
|
126
143
|
section_key: string;
|
|
127
144
|
owner_indexer_id: string;
|
|
128
145
|
document_kind: string;
|
|
@@ -135,13 +152,18 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
135
152
|
collection_resolution_digest: string;
|
|
136
153
|
}>, "many">;
|
|
137
154
|
}, "strict", z.ZodTypeAny, {
|
|
138
|
-
|
|
139
|
-
output_path: string;
|
|
140
|
-
artifact_kind: string;
|
|
141
|
-
artifact_id: string;
|
|
155
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
142
156
|
sections: {
|
|
143
|
-
evidence_refs: string[];
|
|
144
157
|
content_digest: string | null;
|
|
158
|
+
references: {
|
|
159
|
+
source_ref: string;
|
|
160
|
+
locator: {
|
|
161
|
+
path: string;
|
|
162
|
+
start_line: number;
|
|
163
|
+
end_line: number;
|
|
164
|
+
};
|
|
165
|
+
content_digest: string;
|
|
166
|
+
}[];
|
|
145
167
|
section_key: string;
|
|
146
168
|
owner_indexer_id: string;
|
|
147
169
|
document_kind: string;
|
|
@@ -153,10 +175,11 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
153
175
|
section_identity_ref: string;
|
|
154
176
|
collection_resolution_digest: string;
|
|
155
177
|
}[];
|
|
156
|
-
|
|
157
|
-
|
|
178
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
179
|
+
output_path: string;
|
|
180
|
+
artifact_kind: string;
|
|
181
|
+
artifact_id: string;
|
|
158
182
|
artifact_ref: string;
|
|
159
|
-
internal_view_ref: string;
|
|
160
183
|
shared_artifact_fingerprint_digest: string;
|
|
161
184
|
split_of_artifact_ref: string | null;
|
|
162
185
|
split_boundary: {
|
|
@@ -165,13 +188,18 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
165
188
|
end_key: string;
|
|
166
189
|
} | null;
|
|
167
190
|
}, {
|
|
168
|
-
|
|
169
|
-
output_path: string;
|
|
170
|
-
artifact_kind: string;
|
|
171
|
-
artifact_id: string;
|
|
191
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
172
192
|
sections: {
|
|
173
|
-
evidence_refs: string[];
|
|
174
193
|
content_digest: string | null;
|
|
194
|
+
references: {
|
|
195
|
+
source_ref: string;
|
|
196
|
+
locator: {
|
|
197
|
+
path: string;
|
|
198
|
+
start_line: number;
|
|
199
|
+
end_line: number;
|
|
200
|
+
};
|
|
201
|
+
content_digest: string;
|
|
202
|
+
}[];
|
|
175
203
|
section_key: string;
|
|
176
204
|
owner_indexer_id: string;
|
|
177
205
|
document_kind: string;
|
|
@@ -183,10 +211,11 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
183
211
|
section_identity_ref: string;
|
|
184
212
|
collection_resolution_digest: string;
|
|
185
213
|
}[];
|
|
186
|
-
|
|
187
|
-
|
|
214
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
215
|
+
output_path: string;
|
|
216
|
+
artifact_kind: string;
|
|
217
|
+
artifact_id: string;
|
|
188
218
|
artifact_ref: string;
|
|
189
|
-
internal_view_ref: string;
|
|
190
219
|
shared_artifact_fingerprint_digest: string;
|
|
191
220
|
split_of_artifact_ref: string | null;
|
|
192
221
|
split_boundary: {
|
|
@@ -202,23 +231,19 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
202
231
|
source_ref: string;
|
|
203
232
|
protocol: "context.indexer.layout-proposal/v1";
|
|
204
233
|
profile: string;
|
|
205
|
-
node: {
|
|
206
|
-
subject_key: {
|
|
207
|
-
kind: string;
|
|
208
|
-
namespace: string;
|
|
209
|
-
protocol: "context.subject-key/v1";
|
|
210
|
-
local_key: string;
|
|
211
|
-
};
|
|
212
|
-
node_ref: string;
|
|
213
|
-
};
|
|
214
234
|
artifacts: {
|
|
215
|
-
|
|
216
|
-
output_path: string;
|
|
217
|
-
artifact_kind: string;
|
|
218
|
-
artifact_id: string;
|
|
235
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
219
236
|
sections: {
|
|
220
|
-
evidence_refs: string[];
|
|
221
237
|
content_digest: string | null;
|
|
238
|
+
references: {
|
|
239
|
+
source_ref: string;
|
|
240
|
+
locator: {
|
|
241
|
+
path: string;
|
|
242
|
+
start_line: number;
|
|
243
|
+
end_line: number;
|
|
244
|
+
};
|
|
245
|
+
content_digest: string;
|
|
246
|
+
}[];
|
|
222
247
|
section_key: string;
|
|
223
248
|
owner_indexer_id: string;
|
|
224
249
|
document_kind: string;
|
|
@@ -230,10 +255,11 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
230
255
|
section_identity_ref: string;
|
|
231
256
|
collection_resolution_digest: string;
|
|
232
257
|
}[];
|
|
233
|
-
|
|
234
|
-
|
|
258
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
259
|
+
output_path: string;
|
|
260
|
+
artifact_kind: string;
|
|
261
|
+
artifact_id: string;
|
|
235
262
|
artifact_ref: string;
|
|
236
|
-
internal_view_ref: string;
|
|
237
263
|
shared_artifact_fingerprint_digest: string;
|
|
238
264
|
split_of_artifact_ref: string | null;
|
|
239
265
|
split_boundary: {
|
|
@@ -244,7 +270,6 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
244
270
|
}[];
|
|
245
271
|
indexer_id: string;
|
|
246
272
|
profile_contract_digest: string;
|
|
247
|
-
subject_key_schema_digest: string;
|
|
248
273
|
shared_artifact_fingerprint: {
|
|
249
274
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
250
275
|
indexer_id: string;
|
|
@@ -254,7 +279,6 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
254
279
|
fingerprint_digest: string;
|
|
255
280
|
};
|
|
256
281
|
proposal_digest: string;
|
|
257
|
-
subject_key_schema_set_digest: string;
|
|
258
282
|
artifact_result_digest: string;
|
|
259
283
|
post_author_composition_fingerprint: string | null;
|
|
260
284
|
delivery_artifact_ids?: string[] | undefined;
|
|
@@ -262,23 +286,19 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
262
286
|
source_ref: string;
|
|
263
287
|
protocol: "context.indexer.layout-proposal/v1";
|
|
264
288
|
profile: string;
|
|
265
|
-
node: {
|
|
266
|
-
subject_key: {
|
|
267
|
-
kind: string;
|
|
268
|
-
namespace: string;
|
|
269
|
-
protocol: "context.subject-key/v1";
|
|
270
|
-
local_key: string;
|
|
271
|
-
};
|
|
272
|
-
node_ref: string;
|
|
273
|
-
};
|
|
274
289
|
artifacts: {
|
|
275
|
-
|
|
276
|
-
output_path: string;
|
|
277
|
-
artifact_kind: string;
|
|
278
|
-
artifact_id: string;
|
|
290
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
279
291
|
sections: {
|
|
280
|
-
evidence_refs: string[];
|
|
281
292
|
content_digest: string | null;
|
|
293
|
+
references: {
|
|
294
|
+
source_ref: string;
|
|
295
|
+
locator: {
|
|
296
|
+
path: string;
|
|
297
|
+
start_line: number;
|
|
298
|
+
end_line: number;
|
|
299
|
+
};
|
|
300
|
+
content_digest: string;
|
|
301
|
+
}[];
|
|
282
302
|
section_key: string;
|
|
283
303
|
owner_indexer_id: string;
|
|
284
304
|
document_kind: string;
|
|
@@ -290,10 +310,11 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
290
310
|
section_identity_ref: string;
|
|
291
311
|
collection_resolution_digest: string;
|
|
292
312
|
}[];
|
|
293
|
-
|
|
294
|
-
|
|
313
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
314
|
+
output_path: string;
|
|
315
|
+
artifact_kind: string;
|
|
316
|
+
artifact_id: string;
|
|
295
317
|
artifact_ref: string;
|
|
296
|
-
internal_view_ref: string;
|
|
297
318
|
shared_artifact_fingerprint_digest: string;
|
|
298
319
|
split_of_artifact_ref: string | null;
|
|
299
320
|
split_boundary: {
|
|
@@ -304,7 +325,6 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
304
325
|
}[];
|
|
305
326
|
indexer_id: string;
|
|
306
327
|
profile_contract_digest: string;
|
|
307
|
-
subject_key_schema_digest: string;
|
|
308
328
|
shared_artifact_fingerprint: {
|
|
309
329
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
310
330
|
indexer_id: string;
|
|
@@ -314,7 +334,6 @@ export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
|
314
334
|
fingerprint_digest: string;
|
|
315
335
|
};
|
|
316
336
|
proposal_digest: string;
|
|
317
|
-
subject_key_schema_set_digest: string;
|
|
318
337
|
artifact_result_digest: string;
|
|
319
338
|
post_author_composition_fingerprint: string | null;
|
|
320
339
|
delivery_artifact_ids?: string[] | undefined;
|
|
@@ -325,9 +344,7 @@ export declare function indexerLayoutArtifactRef(nodeRef: string, artifact: {
|
|
|
325
344
|
artifact_kind: string;
|
|
326
345
|
}): string;
|
|
327
346
|
export declare function indexerLayoutSectionIdentityRef(input: {
|
|
328
|
-
|
|
329
|
-
owner_indexer_id: string;
|
|
330
|
-
artifact_kind: string;
|
|
347
|
+
artifact_ref: string;
|
|
331
348
|
section_key: string;
|
|
332
349
|
}): string;
|
|
333
350
|
export declare function indexerLayoutSectionRef(currentArtifactRef: string, sectionIdentityRef: string): string;
|
|
@@ -339,7 +356,6 @@ export declare function resolveIndexerLayout(input: {
|
|
|
339
356
|
profile: string;
|
|
340
357
|
profile_contract: unknown;
|
|
341
358
|
operator_contract: unknown;
|
|
342
|
-
subject_key_schema_set: unknown;
|
|
343
359
|
shared_artifact_fingerprint: unknown;
|
|
344
360
|
rendered_artifacts?: readonly IndexerRenderedArtifact[];
|
|
345
361
|
delivery_artifact_ids?: readonly string[] | undefined;
|
|
@@ -351,6 +367,5 @@ export declare function validateIndexerLayoutProposal(input: {
|
|
|
351
367
|
post_author_envelope?: unknown | null;
|
|
352
368
|
profile_contract: unknown;
|
|
353
369
|
operator_contract: unknown;
|
|
354
|
-
subject_key_schema_set: unknown;
|
|
355
370
|
rendered_artifacts?: readonly IndexerRenderedArtifact[];
|
|
356
371
|
}): IndexerLayoutProposal;
|
|
@@ -27,7 +27,7 @@ export declare const indexerLayoutTransitionSchema: z.ZodObject<{
|
|
|
27
27
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
28
28
|
before_path: string | null;
|
|
29
29
|
after_path: string | null;
|
|
30
|
-
confirmation_class: "
|
|
30
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
31
31
|
}, {
|
|
32
32
|
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
33
33
|
artifact_ref: string;
|
|
@@ -37,7 +37,7 @@ export declare const indexerLayoutTransitionSchema: z.ZodObject<{
|
|
|
37
37
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
38
38
|
before_path: string | null;
|
|
39
39
|
after_path: string | null;
|
|
40
|
-
confirmation_class: "
|
|
40
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
41
41
|
}>, "many">;
|
|
42
42
|
requires_confirmation: z.ZodBoolean;
|
|
43
43
|
gate: z.ZodNullable<z.ZodObject<{
|
|
@@ -65,7 +65,7 @@ export declare const indexerLayoutTransitionSchema: z.ZodObject<{
|
|
|
65
65
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
66
66
|
before_path: string | null;
|
|
67
67
|
after_path: string | null;
|
|
68
|
-
confirmation_class: "
|
|
68
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
69
69
|
}[];
|
|
70
70
|
protocol: "context.indexer.layout-change-report/v1";
|
|
71
71
|
report_digest: string;
|
|
@@ -88,7 +88,7 @@ export declare const indexerLayoutTransitionSchema: z.ZodObject<{
|
|
|
88
88
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
89
89
|
before_path: string | null;
|
|
90
90
|
after_path: string | null;
|
|
91
|
-
confirmation_class: "
|
|
91
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
92
92
|
}[];
|
|
93
93
|
protocol: "context.indexer.layout-change-report/v1";
|
|
94
94
|
report_digest: string;
|
|
@@ -138,7 +138,7 @@ export declare const indexerLayoutTransitionSchema: z.ZodObject<{
|
|
|
138
138
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
139
139
|
before_path: string | null;
|
|
140
140
|
after_path: string | null;
|
|
141
|
-
confirmation_class: "
|
|
141
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
142
142
|
}[];
|
|
143
143
|
protocol: "context.indexer.layout-change-report/v1";
|
|
144
144
|
report_digest: string;
|
|
@@ -173,7 +173,7 @@ export declare const indexerLayoutTransitionSchema: z.ZodObject<{
|
|
|
173
173
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
174
174
|
before_path: string | null;
|
|
175
175
|
after_path: string | null;
|
|
176
|
-
confirmation_class: "
|
|
176
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
177
177
|
}[];
|
|
178
178
|
protocol: "context.indexer.layout-change-report/v1";
|
|
179
179
|
report_digest: string;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { buildIndexerMainWorkset, type IndexerMainAuthorWorkset, type IndexerMainPartitionWorkset, type IndexerMainWorksetSet
|
|
2
|
+
import { buildIndexerMainWorkset, type IndexerMainAuthorWorkset, type IndexerMainPartitionWorkset, type IndexerMainWorksetSet } from "./indexerMainWorkset.js";
|
|
3
3
|
import { validateIndexerMainRunResult, type IndexerMainRunRequest, type IndexerMainRunResult } from "./indexerMainRunProtocol.js";
|
|
4
4
|
import { type IndexerPartitionPlan, type IndexerPartitionStrategy } from "./indexerPartitionPlan.js";
|
|
5
5
|
import { type IndexerInventoryMember } from "./indexerInventoryDisposition.js";
|
|
6
|
-
import { type IndexerPartitionSubject } from "./indexerSubjectCatalog.js";
|
|
7
6
|
export interface IndexerPartitionValidationInput {
|
|
8
7
|
plan: unknown;
|
|
9
8
|
workset: IndexerMainPartitionWorkset;
|
|
@@ -23,7 +22,6 @@ export declare function indexerPartitionGroupRef(input: {
|
|
|
23
22
|
partition_workset_digest: string;
|
|
24
23
|
group_key: string;
|
|
25
24
|
}): string;
|
|
26
|
-
export declare function projectIndexerPartitionSubjects(inputs: readonly IndexerPartitionValidationInput[]): IndexerPartitionSubject[];
|
|
27
25
|
type PartitionWorksetInput = Parameters<typeof buildIndexerMainWorkset>[0] & {
|
|
28
26
|
stage: "partition";
|
|
29
27
|
};
|
|
@@ -37,7 +35,6 @@ export interface IndexerAuthorGroupContext {
|
|
|
37
35
|
group_dependency_view_digest: string;
|
|
38
36
|
allowed_artifact_policy_variants: readonly string[];
|
|
39
37
|
artifact_policy_eligibility_digest: string;
|
|
40
|
-
target_resolution_view?: IndexerTargetResolutionView;
|
|
41
38
|
}
|
|
42
39
|
export declare function buildIndexerMainAuthorWorksets(input: {
|
|
43
40
|
partitions: readonly IndexerPartitionValidationInput[];
|
|
@@ -54,7 +51,6 @@ export declare const indexerMainAcceptedRecordSchema: z.ZodObject<{
|
|
|
54
51
|
result_digest: z.ZodString;
|
|
55
52
|
receipt_digest: z.ZodString;
|
|
56
53
|
run_envelope_digest: z.ZodString;
|
|
57
|
-
artifact_dependency_set_digest: z.ZodNullable<z.ZodString>;
|
|
58
54
|
acceptance_digest: z.ZodString;
|
|
59
55
|
}, "strict", z.ZodTypeAny, {
|
|
60
56
|
protocol: "context.indexer.main-accepted-result/v1";
|
|
@@ -64,7 +60,6 @@ export declare const indexerMainAcceptedRecordSchema: z.ZodObject<{
|
|
|
64
60
|
execution_request_digest: string;
|
|
65
61
|
result_digest: string;
|
|
66
62
|
run_envelope_digest: string;
|
|
67
|
-
artifact_dependency_set_digest: string | null;
|
|
68
63
|
acceptance_digest: string;
|
|
69
64
|
}, {
|
|
70
65
|
protocol: "context.indexer.main-accepted-result/v1";
|
|
@@ -74,7 +69,6 @@ export declare const indexerMainAcceptedRecordSchema: z.ZodObject<{
|
|
|
74
69
|
execution_request_digest: string;
|
|
75
70
|
result_digest: string;
|
|
76
71
|
run_envelope_digest: string;
|
|
77
|
-
artifact_dependency_set_digest: string | null;
|
|
78
72
|
acceptance_digest: string;
|
|
79
73
|
}>;
|
|
80
74
|
export type IndexerMainAcceptedRecord = z.infer<typeof indexerMainAcceptedRecordSchema>;
|
|
@@ -83,7 +77,6 @@ export declare function buildIndexerMainAcceptedRecord(input: {
|
|
|
83
77
|
request: IndexerMainRunRequest;
|
|
84
78
|
result: IndexerMainRunResult;
|
|
85
79
|
run_envelope: ReturnType<typeof validateIndexerMainRunResult>["run_envelope"];
|
|
86
|
-
artifact_dependency_set: ReturnType<typeof validateIndexerMainRunResult>["artifact_dependency_set"];
|
|
87
80
|
}): IndexerMainAcceptedRecord;
|
|
88
81
|
export declare function validateAndRecordIndexerMainRun(input: Parameters<typeof validateIndexerMainRunResult>[0]): ReturnType<typeof validateIndexerMainRunResult> & {
|
|
89
82
|
accepted_record: IndexerMainAcceptedRecord;
|
|
@@ -117,7 +110,6 @@ export declare const indexerMainStateRecordSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
117
110
|
result_digest: z.ZodString;
|
|
118
111
|
receipt_digest: z.ZodString;
|
|
119
112
|
run_envelope_digest: z.ZodString;
|
|
120
|
-
artifact_dependency_set_digest: z.ZodNullable<z.ZodString>;
|
|
121
113
|
acceptance_digest: z.ZodString;
|
|
122
114
|
} & {
|
|
123
115
|
state: z.ZodLiteral<"accepted">;
|
|
@@ -130,7 +122,6 @@ export declare const indexerMainStateRecordSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
130
122
|
execution_request_digest: string;
|
|
131
123
|
result_digest: string;
|
|
132
124
|
run_envelope_digest: string;
|
|
133
|
-
artifact_dependency_set_digest: string | null;
|
|
134
125
|
acceptance_digest: string;
|
|
135
126
|
}, {
|
|
136
127
|
protocol: "context.indexer.main-accepted-result/v1";
|
|
@@ -141,7 +132,6 @@ export declare const indexerMainStateRecordSchema: z.ZodUnion<[z.ZodObject<{
|
|
|
141
132
|
execution_request_digest: string;
|
|
142
133
|
result_digest: string;
|
|
143
134
|
run_envelope_digest: string;
|
|
144
|
-
artifact_dependency_set_digest: string | null;
|
|
145
135
|
acceptance_digest: string;
|
|
146
136
|
}>, z.ZodObject<{
|
|
147
137
|
workset_digest: z.ZodString;
|
|
@@ -82,7 +82,6 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
82
82
|
result_digest: z.ZodString;
|
|
83
83
|
receipt_digest: z.ZodString;
|
|
84
84
|
run_envelope_digest: z.ZodString;
|
|
85
|
-
artifact_dependency_set_digest: z.ZodNullable<z.ZodString>;
|
|
86
85
|
acceptance_digest: z.ZodString;
|
|
87
86
|
}, "strict", z.ZodTypeAny, {
|
|
88
87
|
protocol: "context.indexer.main-accepted-result/v1";
|
|
@@ -92,7 +91,6 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
92
91
|
execution_request_digest: string;
|
|
93
92
|
result_digest: string;
|
|
94
93
|
run_envelope_digest: string;
|
|
95
|
-
artifact_dependency_set_digest: string | null;
|
|
96
94
|
acceptance_digest: string;
|
|
97
95
|
}, {
|
|
98
96
|
protocol: "context.indexer.main-accepted-result/v1";
|
|
@@ -102,7 +100,6 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
102
100
|
execution_request_digest: string;
|
|
103
101
|
result_digest: string;
|
|
104
102
|
run_envelope_digest: string;
|
|
105
|
-
artifact_dependency_set_digest: string | null;
|
|
106
103
|
acceptance_digest: string;
|
|
107
104
|
}>;
|
|
108
105
|
item_ref: z.ZodString;
|
|
@@ -131,7 +128,6 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
131
128
|
execution_request_digest: string;
|
|
132
129
|
result_digest: string;
|
|
133
130
|
run_envelope_digest: string;
|
|
134
|
-
artifact_dependency_set_digest: string | null;
|
|
135
131
|
acceptance_digest: string;
|
|
136
132
|
};
|
|
137
133
|
run_identity_digest: string;
|
|
@@ -154,7 +150,6 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
154
150
|
execution_request_digest: string;
|
|
155
151
|
result_digest: string;
|
|
156
152
|
run_envelope_digest: string;
|
|
157
|
-
artifact_dependency_set_digest: string | null;
|
|
158
153
|
acceptance_digest: string;
|
|
159
154
|
};
|
|
160
155
|
run_identity_digest: string;
|
|
@@ -412,7 +407,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
412
407
|
result_digest: z.ZodString;
|
|
413
408
|
receipt_digest: z.ZodString;
|
|
414
409
|
run_envelope_digest: z.ZodString;
|
|
415
|
-
artifact_dependency_set_digest: z.ZodNullable<z.ZodString>;
|
|
416
410
|
acceptance_digest: z.ZodString;
|
|
417
411
|
}, "strict", z.ZodTypeAny, {
|
|
418
412
|
protocol: "context.indexer.main-accepted-result/v1";
|
|
@@ -422,7 +416,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
422
416
|
execution_request_digest: string;
|
|
423
417
|
result_digest: string;
|
|
424
418
|
run_envelope_digest: string;
|
|
425
|
-
artifact_dependency_set_digest: string | null;
|
|
426
419
|
acceptance_digest: string;
|
|
427
420
|
}, {
|
|
428
421
|
protocol: "context.indexer.main-accepted-result/v1";
|
|
@@ -432,7 +425,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
432
425
|
execution_request_digest: string;
|
|
433
426
|
result_digest: string;
|
|
434
427
|
run_envelope_digest: string;
|
|
435
|
-
artifact_dependency_set_digest: string | null;
|
|
436
428
|
acceptance_digest: string;
|
|
437
429
|
}>;
|
|
438
430
|
item_ref: z.ZodString;
|
|
@@ -461,7 +453,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
461
453
|
execution_request_digest: string;
|
|
462
454
|
result_digest: string;
|
|
463
455
|
run_envelope_digest: string;
|
|
464
|
-
artifact_dependency_set_digest: string | null;
|
|
465
456
|
acceptance_digest: string;
|
|
466
457
|
};
|
|
467
458
|
run_identity_digest: string;
|
|
@@ -484,7 +475,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
484
475
|
execution_request_digest: string;
|
|
485
476
|
result_digest: string;
|
|
486
477
|
run_envelope_digest: string;
|
|
487
|
-
artifact_dependency_set_digest: string | null;
|
|
488
478
|
acceptance_digest: string;
|
|
489
479
|
};
|
|
490
480
|
run_identity_digest: string;
|
|
@@ -646,7 +636,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
646
636
|
execution_request_digest: string;
|
|
647
637
|
result_digest: string;
|
|
648
638
|
run_envelope_digest: string;
|
|
649
|
-
artifact_dependency_set_digest: string | null;
|
|
650
639
|
acceptance_digest: string;
|
|
651
640
|
};
|
|
652
641
|
run_identity_digest: string;
|
|
@@ -738,7 +727,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
738
727
|
execution_request_digest: string;
|
|
739
728
|
result_digest: string;
|
|
740
729
|
run_envelope_digest: string;
|
|
741
|
-
artifact_dependency_set_digest: string | null;
|
|
742
730
|
acceptance_digest: string;
|
|
743
731
|
};
|
|
744
732
|
run_identity_digest: string;
|
|
@@ -830,7 +818,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
830
818
|
execution_request_digest: string;
|
|
831
819
|
result_digest: string;
|
|
832
820
|
run_envelope_digest: string;
|
|
833
|
-
artifact_dependency_set_digest: string | null;
|
|
834
821
|
acceptance_digest: string;
|
|
835
822
|
};
|
|
836
823
|
run_identity_digest: string;
|
|
@@ -922,7 +909,6 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
922
909
|
execution_request_digest: string;
|
|
923
910
|
result_digest: string;
|
|
924
911
|
run_envelope_digest: string;
|
|
925
|
-
artifact_dependency_set_digest: string | null;
|
|
926
912
|
acceptance_digest: string;
|
|
927
913
|
};
|
|
928
914
|
run_identity_digest: string;
|