@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
|
@@ -20,7 +20,6 @@ export declare const indexerPrimaryRegistryProjectionSchema: z.ZodObject<{
|
|
|
20
20
|
customization: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>>>;
|
|
21
21
|
projection_digest: z.ZodString;
|
|
22
22
|
}, "strict", z.ZodTypeAny, {
|
|
23
|
-
operation: "main-index";
|
|
24
23
|
protocol: "context.indexer.primary-registry-projection/v1";
|
|
25
24
|
requirement_bindings: Record<string, IndexerJson>[];
|
|
26
25
|
read_scope: Record<string, IndexerJson>;
|
|
@@ -29,11 +28,11 @@ export declare const indexerPrimaryRegistryProjectionSchema: z.ZodObject<{
|
|
|
29
28
|
additional: Record<string, IndexerJson>[];
|
|
30
29
|
};
|
|
31
30
|
customization: Record<string, IndexerJson> | null;
|
|
31
|
+
operation: "main-index";
|
|
32
32
|
indexer_id: string;
|
|
33
33
|
provider_layers: Record<string, IndexerJson>[];
|
|
34
34
|
projection_digest: string;
|
|
35
35
|
}, {
|
|
36
|
-
operation: "main-index";
|
|
37
36
|
protocol: "context.indexer.primary-registry-projection/v1";
|
|
38
37
|
requirement_bindings: Record<string, IndexerJson>[];
|
|
39
38
|
read_scope: Record<string, IndexerJson>;
|
|
@@ -42,6 +41,7 @@ export declare const indexerPrimaryRegistryProjectionSchema: z.ZodObject<{
|
|
|
42
41
|
additional: Record<string, IndexerJson>[];
|
|
43
42
|
};
|
|
44
43
|
customization: Record<string, IndexerJson> | null;
|
|
44
|
+
operation: "main-index";
|
|
45
45
|
indexer_id: string;
|
|
46
46
|
provider_layers: Record<string, IndexerJson>[];
|
|
47
47
|
projection_digest: string;
|
|
@@ -67,14 +67,14 @@ declare const primaryResourceBindingSchema: z.ZodObject<{
|
|
|
67
67
|
ref: z.ZodString;
|
|
68
68
|
digest: z.ZodString;
|
|
69
69
|
}, "strict", z.ZodTypeAny, {
|
|
70
|
-
kind: string;
|
|
71
70
|
ref: string;
|
|
71
|
+
kind: string;
|
|
72
72
|
digest: string;
|
|
73
73
|
layer_ref: string;
|
|
74
74
|
phase: "primary" | "pre-authority";
|
|
75
75
|
}, {
|
|
76
|
-
kind: string;
|
|
77
76
|
ref: string;
|
|
77
|
+
kind: string;
|
|
78
78
|
digest: string;
|
|
79
79
|
layer_ref: string;
|
|
80
80
|
phase: "primary" | "pre-authority";
|
|
@@ -96,14 +96,14 @@ export declare const indexerPrimaryExecutionProjectionSchema: z.ZodEffects<z.Zod
|
|
|
96
96
|
ref: z.ZodString;
|
|
97
97
|
digest: z.ZodString;
|
|
98
98
|
}, "strict", z.ZodTypeAny, {
|
|
99
|
-
kind: string;
|
|
100
99
|
ref: string;
|
|
100
|
+
kind: string;
|
|
101
101
|
digest: string;
|
|
102
102
|
layer_ref: string;
|
|
103
103
|
phase: "primary" | "pre-authority";
|
|
104
104
|
}, {
|
|
105
|
-
kind: string;
|
|
106
105
|
ref: string;
|
|
106
|
+
kind: string;
|
|
107
107
|
digest: string;
|
|
108
108
|
layer_ref: string;
|
|
109
109
|
phase: "primary" | "pre-authority";
|
|
@@ -146,8 +146,8 @@ export declare const indexerPrimaryExecutionProjectionSchema: z.ZodEffects<z.Zod
|
|
|
146
146
|
config_digest: string;
|
|
147
147
|
cli_contract_digest: string;
|
|
148
148
|
resources: {
|
|
149
|
-
kind: string;
|
|
150
149
|
ref: string;
|
|
150
|
+
kind: string;
|
|
151
151
|
digest: string;
|
|
152
152
|
layer_ref: string;
|
|
153
153
|
phase: "primary" | "pre-authority";
|
|
@@ -173,8 +173,8 @@ export declare const indexerPrimaryExecutionProjectionSchema: z.ZodEffects<z.Zod
|
|
|
173
173
|
config_digest: string;
|
|
174
174
|
cli_contract_digest: string;
|
|
175
175
|
resources: {
|
|
176
|
-
kind: string;
|
|
177
176
|
ref: string;
|
|
177
|
+
kind: string;
|
|
178
178
|
digest: string;
|
|
179
179
|
layer_ref: string;
|
|
180
180
|
phase: "primary" | "pre-authority";
|
|
@@ -200,8 +200,8 @@ export declare const indexerPrimaryExecutionProjectionSchema: z.ZodEffects<z.Zod
|
|
|
200
200
|
config_digest: string;
|
|
201
201
|
cli_contract_digest: string;
|
|
202
202
|
resources: {
|
|
203
|
-
kind: string;
|
|
204
203
|
ref: string;
|
|
204
|
+
kind: string;
|
|
205
205
|
digest: string;
|
|
206
206
|
layer_ref: string;
|
|
207
207
|
phase: "primary" | "pre-authority";
|
|
@@ -227,8 +227,8 @@ export declare const indexerPrimaryExecutionProjectionSchema: z.ZodEffects<z.Zod
|
|
|
227
227
|
config_digest: string;
|
|
228
228
|
cli_contract_digest: string;
|
|
229
229
|
resources: {
|
|
230
|
-
kind: string;
|
|
231
230
|
ref: string;
|
|
231
|
+
kind: string;
|
|
232
232
|
digest: string;
|
|
233
233
|
layer_ref: string;
|
|
234
234
|
phase: "primary" | "pre-authority";
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type IndexerArtifactResult } from "./indexerArtifactResult.js";
|
|
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
|
+
declare const primaryArtifactSchema: z.ZodObject<{
|
|
77
|
+
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
|
+
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
95
|
+
artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
|
|
96
|
+
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
|
+
}, "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
|
+
artifact_kind: string;
|
|
131
|
+
variables: Record<string, IndexerJson>;
|
|
132
|
+
artifact_policy_variant: string;
|
|
133
|
+
artifact_ref: string;
|
|
134
|
+
}, {
|
|
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
|
+
artifact_kind: string;
|
|
147
|
+
variables: Record<string, IndexerJson>;
|
|
148
|
+
artifact_policy_variant: string;
|
|
149
|
+
artifact_ref: string;
|
|
150
|
+
}>;
|
|
151
|
+
export declare const indexerPrimaryResultViewSchema: z.ZodObject<{
|
|
152
|
+
protocol: z.ZodLiteral<"context.indexer.primary-result-view/v1">;
|
|
153
|
+
workset_digest: z.ZodString;
|
|
154
|
+
primary_result_digest: z.ZodString;
|
|
155
|
+
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
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
229
|
+
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
|
+
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
247
|
+
artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
|
|
248
|
+
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
|
+
}, "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
|
+
artifact_kind: string;
|
|
283
|
+
variables: Record<string, IndexerJson>;
|
|
284
|
+
artifact_policy_variant: string;
|
|
285
|
+
artifact_ref: string;
|
|
286
|
+
}, {
|
|
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
|
+
artifact_kind: string;
|
|
299
|
+
variables: Record<string, IndexerJson>;
|
|
300
|
+
artifact_policy_variant: string;
|
|
301
|
+
artifact_ref: string;
|
|
302
|
+
}>, "many">;
|
|
303
|
+
view_digest: z.ZodString;
|
|
304
|
+
materialization_receipt: z.ZodObject<{
|
|
305
|
+
protocol: z.ZodLiteral<"context.indexer.primary-result-view-materialization-receipt/v1">;
|
|
306
|
+
workset_digest: z.ZodString;
|
|
307
|
+
primary_result_digest: z.ZodString;
|
|
308
|
+
view_digest: z.ZodString;
|
|
309
|
+
validator_contract_digest: z.ZodString;
|
|
310
|
+
}, "strict", z.ZodTypeAny, {
|
|
311
|
+
protocol: "context.indexer.primary-result-view-materialization-receipt/v1";
|
|
312
|
+
workset_digest: string;
|
|
313
|
+
validator_contract_digest: string;
|
|
314
|
+
view_digest: string;
|
|
315
|
+
primary_result_digest: string;
|
|
316
|
+
}, {
|
|
317
|
+
protocol: "context.indexer.primary-result-view-materialization-receipt/v1";
|
|
318
|
+
workset_digest: string;
|
|
319
|
+
validator_contract_digest: string;
|
|
320
|
+
view_digest: string;
|
|
321
|
+
primary_result_digest: string;
|
|
322
|
+
}>;
|
|
323
|
+
}, "strict", z.ZodTypeAny, {
|
|
324
|
+
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
|
+
workset_digest: string;
|
|
342
|
+
materialization_receipt: {
|
|
343
|
+
protocol: "context.indexer.primary-result-view-materialization-receipt/v1";
|
|
344
|
+
workset_digest: string;
|
|
345
|
+
validator_contract_digest: string;
|
|
346
|
+
view_digest: string;
|
|
347
|
+
primary_result_digest: string;
|
|
348
|
+
};
|
|
349
|
+
view_digest: string;
|
|
350
|
+
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
|
+
artifact_kind: string;
|
|
363
|
+
variables: Record<string, IndexerJson>;
|
|
364
|
+
artifact_policy_variant: string;
|
|
365
|
+
artifact_ref: string;
|
|
366
|
+
}[];
|
|
367
|
+
primary_result_digest: string;
|
|
368
|
+
primary_result_protocol: "context.indexer.main-result/v1";
|
|
369
|
+
}, {
|
|
370
|
+
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
|
+
workset_digest: string;
|
|
388
|
+
materialization_receipt: {
|
|
389
|
+
protocol: "context.indexer.primary-result-view-materialization-receipt/v1";
|
|
390
|
+
workset_digest: string;
|
|
391
|
+
validator_contract_digest: string;
|
|
392
|
+
view_digest: string;
|
|
393
|
+
primary_result_digest: string;
|
|
394
|
+
};
|
|
395
|
+
view_digest: string;
|
|
396
|
+
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
|
+
artifact_kind: string;
|
|
409
|
+
variables: Record<string, IndexerJson>;
|
|
410
|
+
artifact_policy_variant: string;
|
|
411
|
+
artifact_ref: string;
|
|
412
|
+
}[];
|
|
413
|
+
primary_result_digest: string;
|
|
414
|
+
primary_result_protocol: "context.indexer.main-result/v1";
|
|
415
|
+
}>;
|
|
416
|
+
export type IndexerPrimaryFactView = z.infer<typeof primaryFactSchema>;
|
|
417
|
+
export type IndexerPrimaryArtifactView = z.infer<typeof primaryArtifactSchema>;
|
|
418
|
+
export type IndexerPrimaryResultView = z.infer<typeof indexerPrimaryResultViewSchema>;
|
|
419
|
+
type PrimaryResultViewContent = Omit<IndexerPrimaryResultView, "view_digest" | "materialization_receipt">;
|
|
420
|
+
export declare function indexerPrimaryResultViewDigest(view: PrimaryResultViewContent): string;
|
|
421
|
+
export declare function materializeIndexerPrimaryResultView(input: {
|
|
422
|
+
workset_digest: string;
|
|
423
|
+
primary_result_digest: string;
|
|
424
|
+
facts: readonly IndexerPrimaryFactView[];
|
|
425
|
+
artifacts: readonly IndexerPrimaryArtifactView[];
|
|
426
|
+
validator_contract_digest: string;
|
|
427
|
+
}): IndexerPrimaryResultView;
|
|
428
|
+
export declare function validateIndexerPrimaryArtifactResult(value: unknown): IndexerArtifactResult;
|
|
429
|
+
export declare function materializeIndexerPrimaryResultViewFromArtifactResult(input: {
|
|
430
|
+
artifact_result: unknown;
|
|
431
|
+
primary_result_digest: string;
|
|
432
|
+
validator_contract_digest: string;
|
|
433
|
+
}): IndexerPrimaryResultView;
|
|
434
|
+
export declare function validateIndexerPrimaryResultView(value: unknown): IndexerPrimaryResultView;
|
|
435
|
+
export {};
|