@c4a/context 0.7.1 → 0.7.4
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/README.md +65 -170
- package/README.zh-CN.md +52 -129
- package/docs/README.md +9 -10
- package/docs/README.zh-CN.md +6 -7
- package/docs/getting-started.md +73 -428
- package/docs/guides/agent-guide.md +94 -518
- package/docs/guides/code-indexer-skill-authoring.md +24 -13
- package/docs/guides/markdown-indexer-skill-authoring.md +14 -14
- package/docs/reference/code-extractors.md +29 -121
- package/docs/reference/indexer-provider-protocol.md +43 -110
- package/docs/reference/package-templates.md +2 -3
- package/docs/reference/project-api.md +52 -986
- package/index.d.ts +10 -8
- package/index.js +4739 -7103
- package/indexerAgentStepProtocol.d.ts +1366 -7649
- package/indexerArtifact.d.ts +225 -0
- package/indexerArtifactDependencies.d.ts +41 -39
- package/indexerArtifactResult.d.ts +219 -252
- package/indexerAuthorizedWorksetView.d.ts +368 -0
- package/indexerBaseQuestionAmendment.d.ts +484 -280
- package/indexerBenchmark.d.ts +16 -16
- package/indexerCandidateCompile.d.ts +66 -60
- package/indexerCapabilityGroupEvidence.d.ts +6 -6
- package/indexerCatalogFallback.d.ts +122 -128
- package/indexerCollectionMapping.d.ts +13 -13
- package/indexerContentLayers.d.ts +8 -8
- package/indexerContractOverlay.d.ts +10 -10
- package/indexerControlledInvocation.d.ts +12 -12
- package/indexerControlledProgram.d.ts +2467 -2797
- package/indexerCoreExports.d.ts +6 -6
- package/indexerCustomizationDraft.d.ts +3315 -2091
- package/indexerCustomizationLadder.d.ts +2 -2
- package/indexerDependencyView.d.ts +108 -108
- package/indexerEffectiveArtifact.d.ts +1134 -0
- package/indexerEvidenceAdapterAuthorityMerge.d.ts +48 -0
- package/indexerEvidenceAdapterResult.d.ts +52 -52
- package/indexerExampleDecision.d.ts +128 -128
- package/indexerExampleIdentity.d.ts +6 -6
- package/indexerGeneratedAuthoringAudit.d.ts +18 -18
- package/indexerIncrementalImpact.d.ts +16 -16
- package/indexerInspectorWorksetProjection.d.ts +6 -0
- package/indexerInventoryDisposition.d.ts +70 -70
- package/indexerLayerComposition.d.ts +2139 -373
- package/indexerLayoutChange.d.ts +10 -10
- package/indexerLayoutProposalSet.d.ts +71 -66
- package/indexerLayoutResolver.d.ts +53 -48
- package/indexerLayoutTransition.d.ts +0 -50
- package/indexerLifecycle.d.ts +0 -13
- package/indexerMainLifecycle.d.ts +10 -0
- package/indexerMainRunLedger.d.ts +138 -11
- package/indexerMainRunProtocol.d.ts +1406 -785
- package/indexerMainWorkset.d.ts +460 -206
- package/indexerMaterialGapLedger.d.ts +13 -2904
- package/indexerOverlayQuestionAmendment.d.ts +491 -287
- package/indexerOverlayQuestionApplyProposal.d.ts +1022 -614
- package/indexerParserCapabilityCatalog.d.ts +136 -0
- package/indexerParserCoordinate.d.ts +16 -16
- package/indexerParserDependencyIntent.d.ts +22 -0
- package/indexerParserExecutionPlan.d.ts +388 -0
- package/indexerParserFactView.d.ts +42 -22
- package/indexerPartitionConvergence.d.ts +0 -3
- package/indexerPartitionInventory.d.ts +2 -0
- package/indexerPartitionPlan.d.ts +101 -99
- package/indexerPhysicalArtifactManifest.d.ts +8 -8
- package/indexerPostAuthorComposition.d.ts +116 -1156
- package/indexerPostAuthorRunLedger.d.ts +1434 -280
- package/indexerPrimaryProjection.d.ts +10 -10
- package/indexerPrimaryResultView.d.ts +435 -0
- package/indexerProfileContract.d.ts +181 -181
- package/indexerProgramExecutionAuthorization.d.ts +12 -12
- package/indexerProgramRunProtocol.d.ts +2141 -2749
- package/indexerProjectProposal.d.ts +496 -292
- package/indexerProjectedArtifactFanOutAudit.d.ts +0 -3
- package/indexerProtocolCommon.d.ts +4 -1
- package/indexerProvider.d.ts +134 -218
- package/indexerProviderComposition.d.ts +53 -53
- package/indexerProviderResolution.d.ts +12 -12
- package/indexerProviderResolutionAction.d.ts +14 -14
- package/indexerProviderRouting.d.ts +923 -515
- package/indexerProviderSelectionProposal.d.ts +893 -485
- package/indexerQuestionAuthority.d.ts +46 -47
- package/indexerReaderTargetInventory.d.ts +8 -8
- package/indexerRegistry.d.ts +765 -357
- package/indexerRequirementConfirmation.d.ts +98 -98
- package/indexerRequirementLifecycle.d.ts +224 -224
- package/indexerResultReconciliation.d.ts +204 -5919
- package/indexerResultReconciliationRun.d.ts +0 -1
- package/indexerRunEnvelope.d.ts +20 -20
- package/indexerSemanticInput.d.ts +3678 -0
- package/indexerStructuredDeclaration.d.ts +57 -53
- package/indexerSubjectCatalog.d.ts +14 -14
- package/indexerSubjectIdentity.d.ts +2 -2
- package/indexerSubjectKeyAuthority.d.ts +31 -30
- package/indexerTemplateRendering.d.ts +64 -64
- package/indexerToolSnapshot.d.ts +8 -8
- package/package.json +1 -1
- package/phases.d.ts +3 -183
- package/codeIndexPlan.d.ts +0 -158
- package/indexerAuditFacts.d.ts +0 -66
- package/indexerAuditOverrideReadiness.d.ts +0 -27
- package/indexerAuditProtocol.d.ts +0 -238
- package/indexerAuditRevision.d.ts +0 -726
- package/indexerAuditRevisionActions.d.ts +0 -236
- package/indexerMaterialAnswer.d.ts +0 -738
- package/indexerMaterialAnswerActualization.d.ts +0 -91
- package/indexerMaterialAnswerExecutionPlan.d.ts +0 -2887
- package/indexerMaterialAnswerFlow.d.ts +0 -63
- package/indexerMaterialAnswerLayout.d.ts +0 -76
- package/indexerMaterialAnswerReview.d.ts +0 -217
- package/indexerMaterialAnswerReviewRoute.d.ts +0 -6145
- package/indexerMaterialAnswerRunLedger.d.ts +0 -918
- package/indexerMaterialAnswerRunProtocol.d.ts +0 -1253
- package/indexerMaterialQuestionExclusion.d.ts +0 -129
- package/indexerMaterialQuestionWorkset.d.ts +0 -508
- package/indexerPlannedMaterialAnswer.d.ts +0 -116
- package/indexerProfileMetricAudit.d.ts +0 -218
- package/indexerWorksetRead.d.ts +0 -287
|
@@ -9,6 +9,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
9
9
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
10
10
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
11
11
|
owner_cohort_ref: z.ZodString;
|
|
12
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
13
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
12
14
|
group_key: z.ZodOptional<z.ZodString>;
|
|
13
15
|
}, "strict", z.ZodTypeAny, {
|
|
14
16
|
workset_digest: string;
|
|
@@ -20,6 +22,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
20
22
|
item_ref: string;
|
|
21
23
|
run_identity_digest: string;
|
|
22
24
|
group_key?: string | undefined;
|
|
25
|
+
partition_key?: string | undefined;
|
|
26
|
+
partition_binding_digest?: string | undefined;
|
|
23
27
|
}, {
|
|
24
28
|
workset_digest: string;
|
|
25
29
|
state: "pending";
|
|
@@ -30,6 +34,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
30
34
|
item_ref: string;
|
|
31
35
|
run_identity_digest: string;
|
|
32
36
|
group_key?: string | undefined;
|
|
37
|
+
partition_key?: string | undefined;
|
|
38
|
+
partition_binding_digest?: string | undefined;
|
|
33
39
|
}>, z.ZodObject<{
|
|
34
40
|
state: z.ZodLiteral<"running">;
|
|
35
41
|
item_ref: z.ZodString;
|
|
@@ -39,6 +45,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
39
45
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
40
46
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
41
47
|
owner_cohort_ref: z.ZodString;
|
|
48
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
49
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
42
50
|
group_key: z.ZodOptional<z.ZodString>;
|
|
43
51
|
}, "strict", z.ZodTypeAny, {
|
|
44
52
|
workset_digest: string;
|
|
@@ -50,6 +58,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
50
58
|
item_ref: string;
|
|
51
59
|
run_identity_digest: string;
|
|
52
60
|
group_key?: string | undefined;
|
|
61
|
+
partition_key?: string | undefined;
|
|
62
|
+
partition_binding_digest?: string | undefined;
|
|
53
63
|
}, {
|
|
54
64
|
workset_digest: string;
|
|
55
65
|
state: "running";
|
|
@@ -60,6 +70,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
60
70
|
item_ref: string;
|
|
61
71
|
run_identity_digest: string;
|
|
62
72
|
group_key?: string | undefined;
|
|
73
|
+
partition_key?: string | undefined;
|
|
74
|
+
partition_binding_digest?: string | undefined;
|
|
63
75
|
}>, z.ZodObject<{
|
|
64
76
|
state: z.ZodLiteral<"accepted">;
|
|
65
77
|
accepted_record: z.ZodObject<{
|
|
@@ -100,6 +112,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
100
112
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
101
113
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
102
114
|
owner_cohort_ref: z.ZodString;
|
|
115
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
116
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
103
117
|
group_key: z.ZodOptional<z.ZodString>;
|
|
104
118
|
}, "strict", z.ZodTypeAny, {
|
|
105
119
|
workset_digest: string;
|
|
@@ -122,6 +136,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
122
136
|
};
|
|
123
137
|
run_identity_digest: string;
|
|
124
138
|
group_key?: string | undefined;
|
|
139
|
+
partition_key?: string | undefined;
|
|
140
|
+
partition_binding_digest?: string | undefined;
|
|
125
141
|
}, {
|
|
126
142
|
workset_digest: string;
|
|
127
143
|
state: "accepted";
|
|
@@ -143,6 +159,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
143
159
|
};
|
|
144
160
|
run_identity_digest: string;
|
|
145
161
|
group_key?: string | undefined;
|
|
162
|
+
partition_key?: string | undefined;
|
|
163
|
+
partition_binding_digest?: string | undefined;
|
|
146
164
|
}>, z.ZodEffects<z.ZodObject<{
|
|
147
165
|
state: z.ZodLiteral<"failed">;
|
|
148
166
|
reason_code: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -154,6 +172,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
154
172
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
155
173
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
156
174
|
owner_cohort_ref: z.ZodString;
|
|
175
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
176
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
157
177
|
group_key: z.ZodOptional<z.ZodString>;
|
|
158
178
|
}, "strict", z.ZodTypeAny, {
|
|
159
179
|
workset_digest: string;
|
|
@@ -167,6 +187,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
167
187
|
dependency_digests: string[];
|
|
168
188
|
run_identity_digest: string;
|
|
169
189
|
group_key?: string | undefined;
|
|
190
|
+
partition_key?: string | undefined;
|
|
191
|
+
partition_binding_digest?: string | undefined;
|
|
170
192
|
}, {
|
|
171
193
|
workset_digest: string;
|
|
172
194
|
state: "failed";
|
|
@@ -179,6 +201,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
179
201
|
dependency_digests: string[];
|
|
180
202
|
run_identity_digest: string;
|
|
181
203
|
group_key?: string | undefined;
|
|
204
|
+
partition_key?: string | undefined;
|
|
205
|
+
partition_binding_digest?: string | undefined;
|
|
182
206
|
}>, {
|
|
183
207
|
workset_digest: string;
|
|
184
208
|
state: "failed";
|
|
@@ -191,6 +215,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
191
215
|
dependency_digests: string[];
|
|
192
216
|
run_identity_digest: string;
|
|
193
217
|
group_key?: string | undefined;
|
|
218
|
+
partition_key?: string | undefined;
|
|
219
|
+
partition_binding_digest?: string | undefined;
|
|
194
220
|
}, {
|
|
195
221
|
workset_digest: string;
|
|
196
222
|
state: "failed";
|
|
@@ -203,6 +229,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
203
229
|
dependency_digests: string[];
|
|
204
230
|
run_identity_digest: string;
|
|
205
231
|
group_key?: string | undefined;
|
|
232
|
+
partition_key?: string | undefined;
|
|
233
|
+
partition_binding_digest?: string | undefined;
|
|
206
234
|
}>, z.ZodObject<{
|
|
207
235
|
state: z.ZodLiteral<"stale">;
|
|
208
236
|
previous_workset_digest: z.ZodString;
|
|
@@ -214,6 +242,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
214
242
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
215
243
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
216
244
|
owner_cohort_ref: z.ZodString;
|
|
245
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
246
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
217
247
|
group_key: z.ZodOptional<z.ZodString>;
|
|
218
248
|
}, "strict", z.ZodTypeAny, {
|
|
219
249
|
workset_digest: string;
|
|
@@ -227,6 +257,8 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
227
257
|
run_identity_digest: string;
|
|
228
258
|
previous_execution_request_digest: string;
|
|
229
259
|
group_key?: string | undefined;
|
|
260
|
+
partition_key?: string | undefined;
|
|
261
|
+
partition_binding_digest?: string | undefined;
|
|
230
262
|
}, {
|
|
231
263
|
workset_digest: string;
|
|
232
264
|
state: "stale";
|
|
@@ -239,18 +271,22 @@ export declare const indexerMainRunLedgerEntrySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
239
271
|
run_identity_digest: string;
|
|
240
272
|
previous_execution_request_digest: string;
|
|
241
273
|
group_key?: string | undefined;
|
|
274
|
+
partition_key?: string | undefined;
|
|
275
|
+
partition_binding_digest?: string | undefined;
|
|
242
276
|
}>]>;
|
|
243
277
|
export type IndexerMainRunLedgerEntry = z.infer<typeof indexerMainRunLedgerEntrySchema>;
|
|
244
278
|
export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
245
279
|
protocol: z.ZodLiteral<"context.indexer.main-index-run-ledger/v1">;
|
|
246
280
|
workset_set: z.ZodObject<{
|
|
247
|
-
protocol: z.ZodLiteral<"context.indexer.main-workset-set/
|
|
281
|
+
protocol: z.ZodLiteral<"context.indexer.main-workset-set/v2">;
|
|
248
282
|
workset_set_digest: z.ZodString;
|
|
249
283
|
items: z.ZodArray<z.ZodObject<{
|
|
250
284
|
workset_digest: z.ZodString;
|
|
251
285
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
252
286
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
253
287
|
owner_cohort_ref: z.ZodString;
|
|
288
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
289
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
254
290
|
group_key: z.ZodOptional<z.ZodString>;
|
|
255
291
|
}, "strict", z.ZodTypeAny, {
|
|
256
292
|
workset_digest: string;
|
|
@@ -258,15 +294,19 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
258
294
|
stage: "partition" | "author";
|
|
259
295
|
owner_cohort_ref: string;
|
|
260
296
|
group_key?: string | undefined;
|
|
297
|
+
partition_key?: string | undefined;
|
|
298
|
+
partition_binding_digest?: string | undefined;
|
|
261
299
|
}, {
|
|
262
300
|
workset_digest: string;
|
|
263
301
|
indexer_id: string;
|
|
264
302
|
stage: "partition" | "author";
|
|
265
303
|
owner_cohort_ref: string;
|
|
266
304
|
group_key?: string | undefined;
|
|
305
|
+
partition_key?: string | undefined;
|
|
306
|
+
partition_binding_digest?: string | undefined;
|
|
267
307
|
}>, "many">;
|
|
268
308
|
}, "strict", z.ZodTypeAny, {
|
|
269
|
-
protocol: "context.indexer.main-workset-set/
|
|
309
|
+
protocol: "context.indexer.main-workset-set/v2";
|
|
270
310
|
workset_set_digest: string;
|
|
271
311
|
items: {
|
|
272
312
|
workset_digest: string;
|
|
@@ -274,9 +314,11 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
274
314
|
stage: "partition" | "author";
|
|
275
315
|
owner_cohort_ref: string;
|
|
276
316
|
group_key?: string | undefined;
|
|
317
|
+
partition_key?: string | undefined;
|
|
318
|
+
partition_binding_digest?: string | undefined;
|
|
277
319
|
}[];
|
|
278
320
|
}, {
|
|
279
|
-
protocol: "context.indexer.main-workset-set/
|
|
321
|
+
protocol: "context.indexer.main-workset-set/v2";
|
|
280
322
|
workset_set_digest: string;
|
|
281
323
|
items: {
|
|
282
324
|
workset_digest: string;
|
|
@@ -284,6 +326,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
284
326
|
stage: "partition" | "author";
|
|
285
327
|
owner_cohort_ref: string;
|
|
286
328
|
group_key?: string | undefined;
|
|
329
|
+
partition_key?: string | undefined;
|
|
330
|
+
partition_binding_digest?: string | undefined;
|
|
287
331
|
}[];
|
|
288
332
|
}>;
|
|
289
333
|
entries: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -295,6 +339,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
295
339
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
296
340
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
297
341
|
owner_cohort_ref: z.ZodString;
|
|
342
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
343
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
298
344
|
group_key: z.ZodOptional<z.ZodString>;
|
|
299
345
|
}, "strict", z.ZodTypeAny, {
|
|
300
346
|
workset_digest: string;
|
|
@@ -306,6 +352,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
306
352
|
item_ref: string;
|
|
307
353
|
run_identity_digest: string;
|
|
308
354
|
group_key?: string | undefined;
|
|
355
|
+
partition_key?: string | undefined;
|
|
356
|
+
partition_binding_digest?: string | undefined;
|
|
309
357
|
}, {
|
|
310
358
|
workset_digest: string;
|
|
311
359
|
state: "pending";
|
|
@@ -316,6 +364,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
316
364
|
item_ref: string;
|
|
317
365
|
run_identity_digest: string;
|
|
318
366
|
group_key?: string | undefined;
|
|
367
|
+
partition_key?: string | undefined;
|
|
368
|
+
partition_binding_digest?: string | undefined;
|
|
319
369
|
}>, z.ZodObject<{
|
|
320
370
|
state: z.ZodLiteral<"running">;
|
|
321
371
|
item_ref: z.ZodString;
|
|
@@ -325,6 +375,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
325
375
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
326
376
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
327
377
|
owner_cohort_ref: z.ZodString;
|
|
378
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
379
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
328
380
|
group_key: z.ZodOptional<z.ZodString>;
|
|
329
381
|
}, "strict", z.ZodTypeAny, {
|
|
330
382
|
workset_digest: string;
|
|
@@ -336,6 +388,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
336
388
|
item_ref: string;
|
|
337
389
|
run_identity_digest: string;
|
|
338
390
|
group_key?: string | undefined;
|
|
391
|
+
partition_key?: string | undefined;
|
|
392
|
+
partition_binding_digest?: string | undefined;
|
|
339
393
|
}, {
|
|
340
394
|
workset_digest: string;
|
|
341
395
|
state: "running";
|
|
@@ -346,6 +400,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
346
400
|
item_ref: string;
|
|
347
401
|
run_identity_digest: string;
|
|
348
402
|
group_key?: string | undefined;
|
|
403
|
+
partition_key?: string | undefined;
|
|
404
|
+
partition_binding_digest?: string | undefined;
|
|
349
405
|
}>, z.ZodObject<{
|
|
350
406
|
state: z.ZodLiteral<"accepted">;
|
|
351
407
|
accepted_record: z.ZodObject<{
|
|
@@ -386,6 +442,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
386
442
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
387
443
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
388
444
|
owner_cohort_ref: z.ZodString;
|
|
445
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
446
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
389
447
|
group_key: z.ZodOptional<z.ZodString>;
|
|
390
448
|
}, "strict", z.ZodTypeAny, {
|
|
391
449
|
workset_digest: string;
|
|
@@ -408,6 +466,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
408
466
|
};
|
|
409
467
|
run_identity_digest: string;
|
|
410
468
|
group_key?: string | undefined;
|
|
469
|
+
partition_key?: string | undefined;
|
|
470
|
+
partition_binding_digest?: string | undefined;
|
|
411
471
|
}, {
|
|
412
472
|
workset_digest: string;
|
|
413
473
|
state: "accepted";
|
|
@@ -429,6 +489,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
429
489
|
};
|
|
430
490
|
run_identity_digest: string;
|
|
431
491
|
group_key?: string | undefined;
|
|
492
|
+
partition_key?: string | undefined;
|
|
493
|
+
partition_binding_digest?: string | undefined;
|
|
432
494
|
}>, z.ZodEffects<z.ZodObject<{
|
|
433
495
|
state: z.ZodLiteral<"failed">;
|
|
434
496
|
reason_code: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -440,6 +502,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
440
502
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
441
503
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
442
504
|
owner_cohort_ref: z.ZodString;
|
|
505
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
506
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
443
507
|
group_key: z.ZodOptional<z.ZodString>;
|
|
444
508
|
}, "strict", z.ZodTypeAny, {
|
|
445
509
|
workset_digest: string;
|
|
@@ -453,6 +517,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
453
517
|
dependency_digests: string[];
|
|
454
518
|
run_identity_digest: string;
|
|
455
519
|
group_key?: string | undefined;
|
|
520
|
+
partition_key?: string | undefined;
|
|
521
|
+
partition_binding_digest?: string | undefined;
|
|
456
522
|
}, {
|
|
457
523
|
workset_digest: string;
|
|
458
524
|
state: "failed";
|
|
@@ -465,6 +531,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
465
531
|
dependency_digests: string[];
|
|
466
532
|
run_identity_digest: string;
|
|
467
533
|
group_key?: string | undefined;
|
|
534
|
+
partition_key?: string | undefined;
|
|
535
|
+
partition_binding_digest?: string | undefined;
|
|
468
536
|
}>, {
|
|
469
537
|
workset_digest: string;
|
|
470
538
|
state: "failed";
|
|
@@ -477,6 +545,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
477
545
|
dependency_digests: string[];
|
|
478
546
|
run_identity_digest: string;
|
|
479
547
|
group_key?: string | undefined;
|
|
548
|
+
partition_key?: string | undefined;
|
|
549
|
+
partition_binding_digest?: string | undefined;
|
|
480
550
|
}, {
|
|
481
551
|
workset_digest: string;
|
|
482
552
|
state: "failed";
|
|
@@ -489,6 +559,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
489
559
|
dependency_digests: string[];
|
|
490
560
|
run_identity_digest: string;
|
|
491
561
|
group_key?: string | undefined;
|
|
562
|
+
partition_key?: string | undefined;
|
|
563
|
+
partition_binding_digest?: string | undefined;
|
|
492
564
|
}>, z.ZodObject<{
|
|
493
565
|
state: z.ZodLiteral<"stale">;
|
|
494
566
|
previous_workset_digest: z.ZodString;
|
|
@@ -500,6 +572,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
500
572
|
stage: z.ZodEnum<["partition", "author"]>;
|
|
501
573
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
502
574
|
owner_cohort_ref: z.ZodString;
|
|
575
|
+
partition_key: z.ZodOptional<z.ZodString>;
|
|
576
|
+
partition_binding_digest: z.ZodOptional<z.ZodString>;
|
|
503
577
|
group_key: z.ZodOptional<z.ZodString>;
|
|
504
578
|
}, "strict", z.ZodTypeAny, {
|
|
505
579
|
workset_digest: string;
|
|
@@ -513,6 +587,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
513
587
|
run_identity_digest: string;
|
|
514
588
|
previous_execution_request_digest: string;
|
|
515
589
|
group_key?: string | undefined;
|
|
590
|
+
partition_key?: string | undefined;
|
|
591
|
+
partition_binding_digest?: string | undefined;
|
|
516
592
|
}, {
|
|
517
593
|
workset_digest: string;
|
|
518
594
|
state: "stale";
|
|
@@ -525,6 +601,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
525
601
|
run_identity_digest: string;
|
|
526
602
|
previous_execution_request_digest: string;
|
|
527
603
|
group_key?: string | undefined;
|
|
604
|
+
partition_key?: string | undefined;
|
|
605
|
+
partition_binding_digest?: string | undefined;
|
|
528
606
|
}>]>, "many">;
|
|
529
607
|
ledger_digest: z.ZodString;
|
|
530
608
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -538,6 +616,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
538
616
|
item_ref: string;
|
|
539
617
|
run_identity_digest: string;
|
|
540
618
|
group_key?: string | undefined;
|
|
619
|
+
partition_key?: string | undefined;
|
|
620
|
+
partition_binding_digest?: string | undefined;
|
|
541
621
|
} | {
|
|
542
622
|
workset_digest: string;
|
|
543
623
|
state: "running";
|
|
@@ -548,6 +628,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
548
628
|
item_ref: string;
|
|
549
629
|
run_identity_digest: string;
|
|
550
630
|
group_key?: string | undefined;
|
|
631
|
+
partition_key?: string | undefined;
|
|
632
|
+
partition_binding_digest?: string | undefined;
|
|
551
633
|
} | {
|
|
552
634
|
workset_digest: string;
|
|
553
635
|
state: "accepted";
|
|
@@ -569,6 +651,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
569
651
|
};
|
|
570
652
|
run_identity_digest: string;
|
|
571
653
|
group_key?: string | undefined;
|
|
654
|
+
partition_key?: string | undefined;
|
|
655
|
+
partition_binding_digest?: string | undefined;
|
|
572
656
|
} | {
|
|
573
657
|
workset_digest: string;
|
|
574
658
|
state: "failed";
|
|
@@ -581,6 +665,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
581
665
|
dependency_digests: string[];
|
|
582
666
|
run_identity_digest: string;
|
|
583
667
|
group_key?: string | undefined;
|
|
668
|
+
partition_key?: string | undefined;
|
|
669
|
+
partition_binding_digest?: string | undefined;
|
|
584
670
|
} | {
|
|
585
671
|
workset_digest: string;
|
|
586
672
|
state: "stale";
|
|
@@ -593,11 +679,12 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
593
679
|
run_identity_digest: string;
|
|
594
680
|
previous_execution_request_digest: string;
|
|
595
681
|
group_key?: string | undefined;
|
|
682
|
+
partition_key?: string | undefined;
|
|
683
|
+
partition_binding_digest?: string | undefined;
|
|
596
684
|
})[];
|
|
597
685
|
protocol: "context.indexer.main-index-run-ledger/v1";
|
|
598
|
-
ledger_digest: string;
|
|
599
686
|
workset_set: {
|
|
600
|
-
protocol: "context.indexer.main-workset-set/
|
|
687
|
+
protocol: "context.indexer.main-workset-set/v2";
|
|
601
688
|
workset_set_digest: string;
|
|
602
689
|
items: {
|
|
603
690
|
workset_digest: string;
|
|
@@ -605,8 +692,11 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
605
692
|
stage: "partition" | "author";
|
|
606
693
|
owner_cohort_ref: string;
|
|
607
694
|
group_key?: string | undefined;
|
|
695
|
+
partition_key?: string | undefined;
|
|
696
|
+
partition_binding_digest?: string | undefined;
|
|
608
697
|
}[];
|
|
609
698
|
};
|
|
699
|
+
ledger_digest: string;
|
|
610
700
|
}, {
|
|
611
701
|
entries: ({
|
|
612
702
|
workset_digest: string;
|
|
@@ -618,6 +708,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
618
708
|
item_ref: string;
|
|
619
709
|
run_identity_digest: string;
|
|
620
710
|
group_key?: string | undefined;
|
|
711
|
+
partition_key?: string | undefined;
|
|
712
|
+
partition_binding_digest?: string | undefined;
|
|
621
713
|
} | {
|
|
622
714
|
workset_digest: string;
|
|
623
715
|
state: "running";
|
|
@@ -628,6 +720,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
628
720
|
item_ref: string;
|
|
629
721
|
run_identity_digest: string;
|
|
630
722
|
group_key?: string | undefined;
|
|
723
|
+
partition_key?: string | undefined;
|
|
724
|
+
partition_binding_digest?: string | undefined;
|
|
631
725
|
} | {
|
|
632
726
|
workset_digest: string;
|
|
633
727
|
state: "accepted";
|
|
@@ -649,6 +743,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
649
743
|
};
|
|
650
744
|
run_identity_digest: string;
|
|
651
745
|
group_key?: string | undefined;
|
|
746
|
+
partition_key?: string | undefined;
|
|
747
|
+
partition_binding_digest?: string | undefined;
|
|
652
748
|
} | {
|
|
653
749
|
workset_digest: string;
|
|
654
750
|
state: "failed";
|
|
@@ -661,6 +757,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
661
757
|
dependency_digests: string[];
|
|
662
758
|
run_identity_digest: string;
|
|
663
759
|
group_key?: string | undefined;
|
|
760
|
+
partition_key?: string | undefined;
|
|
761
|
+
partition_binding_digest?: string | undefined;
|
|
664
762
|
} | {
|
|
665
763
|
workset_digest: string;
|
|
666
764
|
state: "stale";
|
|
@@ -673,11 +771,12 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
673
771
|
run_identity_digest: string;
|
|
674
772
|
previous_execution_request_digest: string;
|
|
675
773
|
group_key?: string | undefined;
|
|
774
|
+
partition_key?: string | undefined;
|
|
775
|
+
partition_binding_digest?: string | undefined;
|
|
676
776
|
})[];
|
|
677
777
|
protocol: "context.indexer.main-index-run-ledger/v1";
|
|
678
|
-
ledger_digest: string;
|
|
679
778
|
workset_set: {
|
|
680
|
-
protocol: "context.indexer.main-workset-set/
|
|
779
|
+
protocol: "context.indexer.main-workset-set/v2";
|
|
681
780
|
workset_set_digest: string;
|
|
682
781
|
items: {
|
|
683
782
|
workset_digest: string;
|
|
@@ -685,8 +784,11 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
685
784
|
stage: "partition" | "author";
|
|
686
785
|
owner_cohort_ref: string;
|
|
687
786
|
group_key?: string | undefined;
|
|
787
|
+
partition_key?: string | undefined;
|
|
788
|
+
partition_binding_digest?: string | undefined;
|
|
688
789
|
}[];
|
|
689
790
|
};
|
|
791
|
+
ledger_digest: string;
|
|
690
792
|
}>, {
|
|
691
793
|
entries: ({
|
|
692
794
|
workset_digest: string;
|
|
@@ -698,6 +800,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
698
800
|
item_ref: string;
|
|
699
801
|
run_identity_digest: string;
|
|
700
802
|
group_key?: string | undefined;
|
|
803
|
+
partition_key?: string | undefined;
|
|
804
|
+
partition_binding_digest?: string | undefined;
|
|
701
805
|
} | {
|
|
702
806
|
workset_digest: string;
|
|
703
807
|
state: "running";
|
|
@@ -708,6 +812,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
708
812
|
item_ref: string;
|
|
709
813
|
run_identity_digest: string;
|
|
710
814
|
group_key?: string | undefined;
|
|
815
|
+
partition_key?: string | undefined;
|
|
816
|
+
partition_binding_digest?: string | undefined;
|
|
711
817
|
} | {
|
|
712
818
|
workset_digest: string;
|
|
713
819
|
state: "accepted";
|
|
@@ -729,6 +835,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
729
835
|
};
|
|
730
836
|
run_identity_digest: string;
|
|
731
837
|
group_key?: string | undefined;
|
|
838
|
+
partition_key?: string | undefined;
|
|
839
|
+
partition_binding_digest?: string | undefined;
|
|
732
840
|
} | {
|
|
733
841
|
workset_digest: string;
|
|
734
842
|
state: "failed";
|
|
@@ -741,6 +849,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
741
849
|
dependency_digests: string[];
|
|
742
850
|
run_identity_digest: string;
|
|
743
851
|
group_key?: string | undefined;
|
|
852
|
+
partition_key?: string | undefined;
|
|
853
|
+
partition_binding_digest?: string | undefined;
|
|
744
854
|
} | {
|
|
745
855
|
workset_digest: string;
|
|
746
856
|
state: "stale";
|
|
@@ -753,11 +863,12 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
753
863
|
run_identity_digest: string;
|
|
754
864
|
previous_execution_request_digest: string;
|
|
755
865
|
group_key?: string | undefined;
|
|
866
|
+
partition_key?: string | undefined;
|
|
867
|
+
partition_binding_digest?: string | undefined;
|
|
756
868
|
})[];
|
|
757
869
|
protocol: "context.indexer.main-index-run-ledger/v1";
|
|
758
|
-
ledger_digest: string;
|
|
759
870
|
workset_set: {
|
|
760
|
-
protocol: "context.indexer.main-workset-set/
|
|
871
|
+
protocol: "context.indexer.main-workset-set/v2";
|
|
761
872
|
workset_set_digest: string;
|
|
762
873
|
items: {
|
|
763
874
|
workset_digest: string;
|
|
@@ -765,8 +876,11 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
765
876
|
stage: "partition" | "author";
|
|
766
877
|
owner_cohort_ref: string;
|
|
767
878
|
group_key?: string | undefined;
|
|
879
|
+
partition_key?: string | undefined;
|
|
880
|
+
partition_binding_digest?: string | undefined;
|
|
768
881
|
}[];
|
|
769
882
|
};
|
|
883
|
+
ledger_digest: string;
|
|
770
884
|
}, {
|
|
771
885
|
entries: ({
|
|
772
886
|
workset_digest: string;
|
|
@@ -778,6 +892,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
778
892
|
item_ref: string;
|
|
779
893
|
run_identity_digest: string;
|
|
780
894
|
group_key?: string | undefined;
|
|
895
|
+
partition_key?: string | undefined;
|
|
896
|
+
partition_binding_digest?: string | undefined;
|
|
781
897
|
} | {
|
|
782
898
|
workset_digest: string;
|
|
783
899
|
state: "running";
|
|
@@ -788,6 +904,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
788
904
|
item_ref: string;
|
|
789
905
|
run_identity_digest: string;
|
|
790
906
|
group_key?: string | undefined;
|
|
907
|
+
partition_key?: string | undefined;
|
|
908
|
+
partition_binding_digest?: string | undefined;
|
|
791
909
|
} | {
|
|
792
910
|
workset_digest: string;
|
|
793
911
|
state: "accepted";
|
|
@@ -809,6 +927,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
809
927
|
};
|
|
810
928
|
run_identity_digest: string;
|
|
811
929
|
group_key?: string | undefined;
|
|
930
|
+
partition_key?: string | undefined;
|
|
931
|
+
partition_binding_digest?: string | undefined;
|
|
812
932
|
} | {
|
|
813
933
|
workset_digest: string;
|
|
814
934
|
state: "failed";
|
|
@@ -821,6 +941,8 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
821
941
|
dependency_digests: string[];
|
|
822
942
|
run_identity_digest: string;
|
|
823
943
|
group_key?: string | undefined;
|
|
944
|
+
partition_key?: string | undefined;
|
|
945
|
+
partition_binding_digest?: string | undefined;
|
|
824
946
|
} | {
|
|
825
947
|
workset_digest: string;
|
|
826
948
|
state: "stale";
|
|
@@ -833,11 +955,12 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
833
955
|
run_identity_digest: string;
|
|
834
956
|
previous_execution_request_digest: string;
|
|
835
957
|
group_key?: string | undefined;
|
|
958
|
+
partition_key?: string | undefined;
|
|
959
|
+
partition_binding_digest?: string | undefined;
|
|
836
960
|
})[];
|
|
837
961
|
protocol: "context.indexer.main-index-run-ledger/v1";
|
|
838
|
-
ledger_digest: string;
|
|
839
962
|
workset_set: {
|
|
840
|
-
protocol: "context.indexer.main-workset-set/
|
|
963
|
+
protocol: "context.indexer.main-workset-set/v2";
|
|
841
964
|
workset_set_digest: string;
|
|
842
965
|
items: {
|
|
843
966
|
workset_digest: string;
|
|
@@ -845,8 +968,11 @@ export declare const indexerMainRunLedgerSchema: z.ZodEffects<z.ZodObject<{
|
|
|
845
968
|
stage: "partition" | "author";
|
|
846
969
|
owner_cohort_ref: string;
|
|
847
970
|
group_key?: string | undefined;
|
|
971
|
+
partition_key?: string | undefined;
|
|
972
|
+
partition_binding_digest?: string | undefined;
|
|
848
973
|
}[];
|
|
849
974
|
};
|
|
975
|
+
ledger_digest: string;
|
|
850
976
|
}>;
|
|
851
977
|
export type IndexerMainRunLedger = z.infer<typeof indexerMainRunLedgerSchema>;
|
|
852
978
|
export interface IndexerMainRunIdentity {
|
|
@@ -885,4 +1011,5 @@ export declare function failIndexerMainRun(input: {
|
|
|
885
1011
|
reason_code: string;
|
|
886
1012
|
dependency_digests: readonly string[];
|
|
887
1013
|
}): IndexerMainRunLedger;
|
|
1014
|
+
export declare function retryFailedIndexerMainRuns(value: unknown): IndexerMainRunLedger;
|
|
888
1015
|
export declare function observeIndexerMainRunLedger(value: unknown): IndexerMainWorksetStatus;
|