@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.
- 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
|
@@ -30,8 +30,8 @@ export declare const indexerPrimaryRegistryProjectionSchema: z.ZodObject<{
|
|
|
30
30
|
customization: Record<string, IndexerJson> | null;
|
|
31
31
|
operation: "main-index";
|
|
32
32
|
indexer_id: string;
|
|
33
|
-
projection_digest: string;
|
|
34
33
|
provider_layers: Record<string, IndexerJson>[];
|
|
34
|
+
projection_digest: string;
|
|
35
35
|
}, {
|
|
36
36
|
protocol: "context.indexer.primary-registry-projection/v1";
|
|
37
37
|
requirement_bindings: Record<string, IndexerJson>[];
|
|
@@ -43,8 +43,8 @@ export declare const indexerPrimaryRegistryProjectionSchema: z.ZodObject<{
|
|
|
43
43
|
customization: Record<string, IndexerJson> | null;
|
|
44
44
|
operation: "main-index";
|
|
45
45
|
indexer_id: string;
|
|
46
|
-
projection_digest: string;
|
|
47
46
|
provider_layers: Record<string, IndexerJson>[];
|
|
47
|
+
projection_digest: string;
|
|
48
48
|
}>;
|
|
49
49
|
export type IndexerPrimaryRegistryProjection = z.infer<typeof indexerPrimaryRegistryProjectionSchema>;
|
|
50
50
|
type PrimaryRegistryProjectionPayload = Omit<IndexerPrimaryRegistryProjection, "projection_digest">;
|
|
@@ -1,148 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type IndexerArtifactResult } from "./indexerArtifactResult.js";
|
|
3
3
|
import type { IndexerJson } from "./indexerRegistry.js";
|
|
4
|
-
declare const primaryFactSchema: z.ZodObject<{
|
|
5
|
-
fact_ref: z.ZodString;
|
|
6
|
-
subject_key: z.ZodObject<{
|
|
7
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
8
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
11
|
-
}, "strict", z.ZodTypeAny, {
|
|
12
|
-
kind: string;
|
|
13
|
-
namespace: string;
|
|
14
|
-
protocol: "context.subject-key/v1";
|
|
15
|
-
local_key: string;
|
|
16
|
-
}, {
|
|
17
|
-
kind: string;
|
|
18
|
-
namespace: string;
|
|
19
|
-
protocol: "context.subject-key/v1";
|
|
20
|
-
local_key: string;
|
|
21
|
-
}>;
|
|
22
|
-
fact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
23
|
-
value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
|
|
24
|
-
evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
25
|
-
ref: z.ZodString;
|
|
26
|
-
kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
|
|
27
|
-
source_digest: z.ZodString;
|
|
28
|
-
}, "strict", z.ZodTypeAny, {
|
|
29
|
-
ref: string;
|
|
30
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
31
|
-
source_digest: string;
|
|
32
|
-
}, {
|
|
33
|
-
ref: string;
|
|
34
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
35
|
-
source_digest: string;
|
|
36
|
-
}>, "many">, {
|
|
37
|
-
ref: string;
|
|
38
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
39
|
-
source_digest: string;
|
|
40
|
-
}[], {
|
|
41
|
-
ref: string;
|
|
42
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
43
|
-
source_digest: string;
|
|
44
|
-
}[]>;
|
|
45
|
-
}, "strict", z.ZodTypeAny, {
|
|
46
|
-
value: IndexerJson;
|
|
47
|
-
fact_ref: string;
|
|
48
|
-
fact_kind: string;
|
|
49
|
-
subject_key: {
|
|
50
|
-
kind: string;
|
|
51
|
-
namespace: string;
|
|
52
|
-
protocol: "context.subject-key/v1";
|
|
53
|
-
local_key: string;
|
|
54
|
-
};
|
|
55
|
-
evidence_refs: {
|
|
56
|
-
ref: string;
|
|
57
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
58
|
-
source_digest: string;
|
|
59
|
-
}[];
|
|
60
|
-
}, {
|
|
61
|
-
value: IndexerJson;
|
|
62
|
-
fact_ref: string;
|
|
63
|
-
fact_kind: string;
|
|
64
|
-
subject_key: {
|
|
65
|
-
kind: string;
|
|
66
|
-
namespace: string;
|
|
67
|
-
protocol: "context.subject-key/v1";
|
|
68
|
-
local_key: string;
|
|
69
|
-
};
|
|
70
|
-
evidence_refs: {
|
|
71
|
-
ref: string;
|
|
72
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
73
|
-
source_digest: string;
|
|
74
|
-
}[];
|
|
75
|
-
}>;
|
|
76
4
|
declare const primaryArtifactSchema: z.ZodObject<{
|
|
77
5
|
artifact_ref: z.ZodString;
|
|
78
|
-
subject_key: z.ZodObject<{
|
|
79
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
80
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
81
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
82
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
83
|
-
}, "strict", z.ZodTypeAny, {
|
|
84
|
-
kind: string;
|
|
85
|
-
namespace: string;
|
|
86
|
-
protocol: "context.subject-key/v1";
|
|
87
|
-
local_key: string;
|
|
88
|
-
}, {
|
|
89
|
-
kind: string;
|
|
90
|
-
namespace: string;
|
|
91
|
-
protocol: "context.subject-key/v1";
|
|
92
|
-
local_key: string;
|
|
93
|
-
}>;
|
|
94
6
|
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
95
7
|
artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
|
|
96
8
|
variables: z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>;
|
|
97
|
-
evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
98
|
-
ref: z.ZodString;
|
|
99
|
-
kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
|
|
100
|
-
source_digest: z.ZodString;
|
|
101
|
-
}, "strict", z.ZodTypeAny, {
|
|
102
|
-
ref: string;
|
|
103
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
104
|
-
source_digest: string;
|
|
105
|
-
}, {
|
|
106
|
-
ref: string;
|
|
107
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
108
|
-
source_digest: string;
|
|
109
|
-
}>, "many">, {
|
|
110
|
-
ref: string;
|
|
111
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
112
|
-
source_digest: string;
|
|
113
|
-
}[], {
|
|
114
|
-
ref: string;
|
|
115
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
116
|
-
source_digest: string;
|
|
117
|
-
}[]>;
|
|
118
9
|
}, "strict", z.ZodTypeAny, {
|
|
119
|
-
subject_key: {
|
|
120
|
-
kind: string;
|
|
121
|
-
namespace: string;
|
|
122
|
-
protocol: "context.subject-key/v1";
|
|
123
|
-
local_key: string;
|
|
124
|
-
};
|
|
125
|
-
evidence_refs: {
|
|
126
|
-
ref: string;
|
|
127
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
128
|
-
source_digest: string;
|
|
129
|
-
}[];
|
|
130
10
|
artifact_kind: string;
|
|
131
11
|
variables: Record<string, IndexerJson>;
|
|
132
12
|
artifact_policy_variant: string;
|
|
133
13
|
artifact_ref: string;
|
|
134
14
|
}, {
|
|
135
|
-
subject_key: {
|
|
136
|
-
kind: string;
|
|
137
|
-
namespace: string;
|
|
138
|
-
protocol: "context.subject-key/v1";
|
|
139
|
-
local_key: string;
|
|
140
|
-
};
|
|
141
|
-
evidence_refs: {
|
|
142
|
-
ref: string;
|
|
143
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
144
|
-
source_digest: string;
|
|
145
|
-
}[];
|
|
146
15
|
artifact_kind: string;
|
|
147
16
|
variables: Record<string, IndexerJson>;
|
|
148
17
|
artifact_policy_variant: string;
|
|
@@ -153,148 +22,17 @@ export declare const indexerPrimaryResultViewSchema: z.ZodObject<{
|
|
|
153
22
|
workset_digest: z.ZodString;
|
|
154
23
|
primary_result_digest: z.ZodString;
|
|
155
24
|
primary_result_protocol: z.ZodLiteral<"context.indexer.main-result/v1">;
|
|
156
|
-
facts: z.ZodArray<z.ZodObject<{
|
|
157
|
-
fact_ref: z.ZodString;
|
|
158
|
-
subject_key: z.ZodObject<{
|
|
159
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
160
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
161
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
162
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
163
|
-
}, "strict", z.ZodTypeAny, {
|
|
164
|
-
kind: string;
|
|
165
|
-
namespace: string;
|
|
166
|
-
protocol: "context.subject-key/v1";
|
|
167
|
-
local_key: string;
|
|
168
|
-
}, {
|
|
169
|
-
kind: string;
|
|
170
|
-
namespace: string;
|
|
171
|
-
protocol: "context.subject-key/v1";
|
|
172
|
-
local_key: string;
|
|
173
|
-
}>;
|
|
174
|
-
fact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
175
|
-
value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
|
|
176
|
-
evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
177
|
-
ref: z.ZodString;
|
|
178
|
-
kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
|
|
179
|
-
source_digest: z.ZodString;
|
|
180
|
-
}, "strict", z.ZodTypeAny, {
|
|
181
|
-
ref: string;
|
|
182
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
183
|
-
source_digest: string;
|
|
184
|
-
}, {
|
|
185
|
-
ref: string;
|
|
186
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
187
|
-
source_digest: string;
|
|
188
|
-
}>, "many">, {
|
|
189
|
-
ref: string;
|
|
190
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
191
|
-
source_digest: string;
|
|
192
|
-
}[], {
|
|
193
|
-
ref: string;
|
|
194
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
195
|
-
source_digest: string;
|
|
196
|
-
}[]>;
|
|
197
|
-
}, "strict", z.ZodTypeAny, {
|
|
198
|
-
value: IndexerJson;
|
|
199
|
-
fact_ref: string;
|
|
200
|
-
fact_kind: string;
|
|
201
|
-
subject_key: {
|
|
202
|
-
kind: string;
|
|
203
|
-
namespace: string;
|
|
204
|
-
protocol: "context.subject-key/v1";
|
|
205
|
-
local_key: string;
|
|
206
|
-
};
|
|
207
|
-
evidence_refs: {
|
|
208
|
-
ref: string;
|
|
209
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
210
|
-
source_digest: string;
|
|
211
|
-
}[];
|
|
212
|
-
}, {
|
|
213
|
-
value: IndexerJson;
|
|
214
|
-
fact_ref: string;
|
|
215
|
-
fact_kind: string;
|
|
216
|
-
subject_key: {
|
|
217
|
-
kind: string;
|
|
218
|
-
namespace: string;
|
|
219
|
-
protocol: "context.subject-key/v1";
|
|
220
|
-
local_key: string;
|
|
221
|
-
};
|
|
222
|
-
evidence_refs: {
|
|
223
|
-
ref: string;
|
|
224
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
225
|
-
source_digest: string;
|
|
226
|
-
}[];
|
|
227
|
-
}>, "many">;
|
|
228
25
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
229
26
|
artifact_ref: z.ZodString;
|
|
230
|
-
subject_key: z.ZodObject<{
|
|
231
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
232
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
233
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
234
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
235
|
-
}, "strict", z.ZodTypeAny, {
|
|
236
|
-
kind: string;
|
|
237
|
-
namespace: string;
|
|
238
|
-
protocol: "context.subject-key/v1";
|
|
239
|
-
local_key: string;
|
|
240
|
-
}, {
|
|
241
|
-
kind: string;
|
|
242
|
-
namespace: string;
|
|
243
|
-
protocol: "context.subject-key/v1";
|
|
244
|
-
local_key: string;
|
|
245
|
-
}>;
|
|
246
27
|
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
247
28
|
artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
|
|
248
29
|
variables: z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>;
|
|
249
|
-
evidence_refs: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
250
|
-
ref: z.ZodString;
|
|
251
|
-
kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
|
|
252
|
-
source_digest: z.ZodString;
|
|
253
|
-
}, "strict", z.ZodTypeAny, {
|
|
254
|
-
ref: string;
|
|
255
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
256
|
-
source_digest: string;
|
|
257
|
-
}, {
|
|
258
|
-
ref: string;
|
|
259
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
260
|
-
source_digest: string;
|
|
261
|
-
}>, "many">, {
|
|
262
|
-
ref: string;
|
|
263
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
264
|
-
source_digest: string;
|
|
265
|
-
}[], {
|
|
266
|
-
ref: string;
|
|
267
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
268
|
-
source_digest: string;
|
|
269
|
-
}[]>;
|
|
270
30
|
}, "strict", z.ZodTypeAny, {
|
|
271
|
-
subject_key: {
|
|
272
|
-
kind: string;
|
|
273
|
-
namespace: string;
|
|
274
|
-
protocol: "context.subject-key/v1";
|
|
275
|
-
local_key: string;
|
|
276
|
-
};
|
|
277
|
-
evidence_refs: {
|
|
278
|
-
ref: string;
|
|
279
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
280
|
-
source_digest: string;
|
|
281
|
-
}[];
|
|
282
31
|
artifact_kind: string;
|
|
283
32
|
variables: Record<string, IndexerJson>;
|
|
284
33
|
artifact_policy_variant: string;
|
|
285
34
|
artifact_ref: string;
|
|
286
35
|
}, {
|
|
287
|
-
subject_key: {
|
|
288
|
-
kind: string;
|
|
289
|
-
namespace: string;
|
|
290
|
-
protocol: "context.subject-key/v1";
|
|
291
|
-
local_key: string;
|
|
292
|
-
};
|
|
293
|
-
evidence_refs: {
|
|
294
|
-
ref: string;
|
|
295
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
296
|
-
source_digest: string;
|
|
297
|
-
}[];
|
|
298
36
|
artifact_kind: string;
|
|
299
37
|
variables: Record<string, IndexerJson>;
|
|
300
38
|
artifact_policy_variant: string;
|
|
@@ -322,22 +60,6 @@ export declare const indexerPrimaryResultViewSchema: z.ZodObject<{
|
|
|
322
60
|
}>;
|
|
323
61
|
}, "strict", z.ZodTypeAny, {
|
|
324
62
|
protocol: "context.indexer.primary-result-view/v1";
|
|
325
|
-
facts: {
|
|
326
|
-
value: IndexerJson;
|
|
327
|
-
fact_ref: string;
|
|
328
|
-
fact_kind: string;
|
|
329
|
-
subject_key: {
|
|
330
|
-
kind: string;
|
|
331
|
-
namespace: string;
|
|
332
|
-
protocol: "context.subject-key/v1";
|
|
333
|
-
local_key: string;
|
|
334
|
-
};
|
|
335
|
-
evidence_refs: {
|
|
336
|
-
ref: string;
|
|
337
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
338
|
-
source_digest: string;
|
|
339
|
-
}[];
|
|
340
|
-
}[];
|
|
341
63
|
workset_digest: string;
|
|
342
64
|
materialization_receipt: {
|
|
343
65
|
protocol: "context.indexer.primary-result-view-materialization-receipt/v1";
|
|
@@ -348,17 +70,6 @@ export declare const indexerPrimaryResultViewSchema: z.ZodObject<{
|
|
|
348
70
|
};
|
|
349
71
|
view_digest: string;
|
|
350
72
|
artifacts: {
|
|
351
|
-
subject_key: {
|
|
352
|
-
kind: string;
|
|
353
|
-
namespace: string;
|
|
354
|
-
protocol: "context.subject-key/v1";
|
|
355
|
-
local_key: string;
|
|
356
|
-
};
|
|
357
|
-
evidence_refs: {
|
|
358
|
-
ref: string;
|
|
359
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
360
|
-
source_digest: string;
|
|
361
|
-
}[];
|
|
362
73
|
artifact_kind: string;
|
|
363
74
|
variables: Record<string, IndexerJson>;
|
|
364
75
|
artifact_policy_variant: string;
|
|
@@ -368,22 +79,6 @@ export declare const indexerPrimaryResultViewSchema: z.ZodObject<{
|
|
|
368
79
|
primary_result_protocol: "context.indexer.main-result/v1";
|
|
369
80
|
}, {
|
|
370
81
|
protocol: "context.indexer.primary-result-view/v1";
|
|
371
|
-
facts: {
|
|
372
|
-
value: IndexerJson;
|
|
373
|
-
fact_ref: string;
|
|
374
|
-
fact_kind: string;
|
|
375
|
-
subject_key: {
|
|
376
|
-
kind: string;
|
|
377
|
-
namespace: string;
|
|
378
|
-
protocol: "context.subject-key/v1";
|
|
379
|
-
local_key: string;
|
|
380
|
-
};
|
|
381
|
-
evidence_refs: {
|
|
382
|
-
ref: string;
|
|
383
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
384
|
-
source_digest: string;
|
|
385
|
-
}[];
|
|
386
|
-
}[];
|
|
387
82
|
workset_digest: string;
|
|
388
83
|
materialization_receipt: {
|
|
389
84
|
protocol: "context.indexer.primary-result-view-materialization-receipt/v1";
|
|
@@ -394,17 +89,6 @@ export declare const indexerPrimaryResultViewSchema: z.ZodObject<{
|
|
|
394
89
|
};
|
|
395
90
|
view_digest: string;
|
|
396
91
|
artifacts: {
|
|
397
|
-
subject_key: {
|
|
398
|
-
kind: string;
|
|
399
|
-
namespace: string;
|
|
400
|
-
protocol: "context.subject-key/v1";
|
|
401
|
-
local_key: string;
|
|
402
|
-
};
|
|
403
|
-
evidence_refs: {
|
|
404
|
-
ref: string;
|
|
405
|
-
kind: "code" | "contract" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
406
|
-
source_digest: string;
|
|
407
|
-
}[];
|
|
408
92
|
artifact_kind: string;
|
|
409
93
|
variables: Record<string, IndexerJson>;
|
|
410
94
|
artifact_policy_variant: string;
|
|
@@ -413,7 +97,6 @@ export declare const indexerPrimaryResultViewSchema: z.ZodObject<{
|
|
|
413
97
|
primary_result_digest: string;
|
|
414
98
|
primary_result_protocol: "context.indexer.main-result/v1";
|
|
415
99
|
}>;
|
|
416
|
-
export type IndexerPrimaryFactView = z.infer<typeof primaryFactSchema>;
|
|
417
100
|
export type IndexerPrimaryArtifactView = z.infer<typeof primaryArtifactSchema>;
|
|
418
101
|
export type IndexerPrimaryResultView = z.infer<typeof indexerPrimaryResultViewSchema>;
|
|
419
102
|
type PrimaryResultViewContent = Omit<IndexerPrimaryResultView, "view_digest" | "materialization_receipt">;
|
|
@@ -421,7 +104,6 @@ export declare function indexerPrimaryResultViewDigest(view: PrimaryResultViewCo
|
|
|
421
104
|
export declare function materializeIndexerPrimaryResultView(input: {
|
|
422
105
|
workset_digest: string;
|
|
423
106
|
primary_result_digest: string;
|
|
424
|
-
facts: readonly IndexerPrimaryFactView[];
|
|
425
107
|
artifacts: readonly IndexerPrimaryArtifactView[];
|
|
426
108
|
validator_contract_digest: string;
|
|
427
109
|
}): IndexerPrimaryResultView;
|