@c4a/context 0.6.18 → 0.7.0
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 +5 -5
- package/README.zh-CN.md +5 -5
- package/codeIndexPlan.d.ts +84 -0
- package/contracts.d.ts +2 -1
- package/docs/README.md +7 -0
- package/docs/README.zh-CN.md +5 -0
- package/docs/getting-started.md +12 -12
- package/docs/guides/agent-guide.md +18 -9
- package/docs/guides/code-indexer-skill-authoring.md +124 -0
- package/docs/guides/indexer-provider-and-customization.md +140 -0
- package/docs/guides/lark-resources.md +7 -0
- package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
- package/docs/guides/package-outputs.md +3 -3
- package/docs/reference/code-extractors.md +7 -6
- package/docs/reference/indexer-provider-protocol.md +819 -0
- package/docs/reference/package-templates.md +18 -10
- package/docs/reference/project-api.md +49 -24
- package/index.d.ts +48 -2
- package/index.js +28239 -3948
- package/indexerAgentStepProtocol.d.ts +9391 -0
- package/indexerArtifactDependencies.d.ts +689 -0
- package/indexerArtifactPolicy.d.ts +335 -0
- package/indexerArtifactResult.d.ts +2010 -0
- package/indexerAuditFacts.d.ts +66 -0
- package/indexerAuditOverrideReadiness.d.ts +27 -0
- package/indexerAuditProtocol.d.ts +238 -0
- package/indexerAuditRevision.d.ts +726 -0
- package/indexerAuditRevisionActions.d.ts +236 -0
- package/indexerAuthoringFixture.d.ts +152 -0
- package/indexerBaseQuestionAmendment.d.ts +2403 -0
- package/indexerBenchmark.d.ts +1062 -0
- package/indexerCandidateCompile.d.ts +801 -0
- package/indexerCapabilityGroupEvidence.d.ts +129 -0
- package/indexerCatalogFallback.d.ts +1262 -0
- package/indexerCollectionMapping.d.ts +75 -0
- package/indexerContentLayers.d.ts +137 -0
- package/indexerControlledInvocation.d.ts +512 -0
- package/indexerControlledProgram.d.ts +12535 -0
- package/indexerCoreExports.d.ts +21 -0
- package/indexerCustomizationDraft.d.ts +13800 -0
- package/indexerCustomizationLadder.d.ts +103 -0
- package/indexerDependencyView.d.ts +1610 -0
- package/indexerEvidenceAdapterResult.d.ts +504 -0
- package/indexerExampleDecision.d.ts +1606 -0
- package/indexerExampleIdentity.d.ts +132 -0
- package/indexerExampleIdentityAudit.d.ts +70 -0
- package/indexerExampleLinkageAudit.d.ts +80 -0
- package/indexerGeneratedAuthoringAudit.d.ts +208 -0
- package/indexerIncrementalImpact.d.ts +221 -0
- package/indexerInventoryDisposition.d.ts +443 -0
- package/indexerLayerComposition.d.ts +1652 -0
- package/indexerLayoutChange.d.ts +329 -0
- package/indexerLayoutProposalSet.d.ts +447 -0
- package/indexerLayoutResolver.d.ts +342 -0
- package/indexerLayoutTransition.d.ts +247 -0
- package/indexerLifecycle.d.ts +53 -0
- package/indexerMainLifecycle.d.ts +258 -0
- package/indexerMainRunLedger.d.ts +888 -0
- package/indexerMainRunProtocol.d.ts +6471 -0
- package/indexerMainWorkset.d.ts +2141 -0
- package/indexerMaterialAnswer.d.ts +738 -0
- package/indexerMaterialAnswerActualization.d.ts +91 -0
- package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
- package/indexerMaterialAnswerFlow.d.ts +63 -0
- package/indexerMaterialAnswerLayout.d.ts +76 -0
- package/indexerMaterialAnswerReview.d.ts +217 -0
- package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
- package/indexerMaterialAnswerRunLedger.d.ts +918 -0
- package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
- package/indexerMaterialGapLedger.d.ts +3111 -0
- package/indexerMaterialQuestionExclusion.d.ts +129 -0
- package/indexerMaterialQuestionWorkset.d.ts +508 -0
- package/indexerNavigationArtifactGraph.d.ts +5 -0
- package/indexerNavigationArtifactPlan.d.ts +39 -0
- package/indexerOverlayQuestionAmendment.d.ts +2551 -0
- package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
- package/indexerOverlayTrust.d.ts +1425 -0
- package/indexerParserCoordinate.d.ts +222 -0
- package/indexerParserFactView.d.ts +503 -0
- package/indexerPartitionConvergence.d.ts +496 -0
- package/indexerPartitionPlan.d.ts +919 -0
- package/indexerPartitionStrategyResolution.d.ts +594 -0
- package/indexerPhysicalArtifactAudit.d.ts +247 -0
- package/indexerPhysicalArtifactManifest.d.ts +449 -0
- package/indexerPlannedMaterialAnswer.d.ts +116 -0
- package/indexerPostAuthorComposition.d.ts +2000 -0
- package/indexerPostAuthorRunLedger.d.ts +1972 -0
- package/indexerPrimaryProjection.d.ts +262 -0
- package/indexerProfileContract.d.ts +3034 -0
- package/indexerProfileMetricAudit.d.ts +218 -0
- package/indexerProgramExecutionAuthorization.d.ts +227 -0
- package/indexerProgramRunProtocol.d.ts +7642 -0
- package/indexerProjectProposal.d.ts +2807 -0
- package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
- package/indexerProjectedArtifactPlan.d.ts +217 -0
- package/indexerProtocolCommon.d.ts +29 -0
- package/indexerProvider.d.ts +2573 -0
- package/indexerProviderComposition.d.ts +1357 -0
- package/indexerProviderContractReferences.d.ts +13 -0
- package/indexerProviderProfileResolution.d.ts +20 -0
- package/indexerProviderResolution.d.ts +752 -0
- package/indexerProviderResolutionAction.d.ts +678 -0
- package/indexerProviderRouting.d.ts +3909 -0
- package/indexerProviderSelectionProposal.d.ts +3311 -0
- package/indexerQuestionAuthority.d.ts +419 -0
- package/indexerReaderTargetInventory.d.ts +161 -0
- package/indexerReferenceOnlyAudit.d.ts +90 -0
- package/indexerRegistry.d.ts +3019 -0
- package/indexerRequirementComparison.d.ts +44 -0
- package/indexerRequirementConfirmation.d.ts +1193 -0
- package/indexerRequirementLifecycle.d.ts +3314 -0
- package/indexerRestrictedSelector.d.ts +63 -0
- package/indexerResultReconciliation.d.ts +6844 -0
- package/indexerResultReconciliationRun.d.ts +15 -0
- package/indexerRunEnvelope.d.ts +384 -0
- package/indexerRunProtocolCommon.d.ts +21 -0
- package/indexerSharedArtifactFingerprint.d.ts +33 -0
- package/indexerStructuredDeclaration.d.ts +513 -0
- package/indexerSubjectCatalog.d.ts +230 -0
- package/indexerSubjectIdentity.d.ts +19 -0
- package/indexerSubjectKeyAuthority.d.ts +785 -0
- package/indexerTemplateRendering.d.ts +485 -0
- package/indexerToolSnapshot.d.ts +431 -0
- package/indexerWorksetRead.d.ts +287 -0
- package/package.json +1 -1
- package/phases.d.ts +11 -9
- package/templates/package-templates/kb/AGENTS.md +1 -1
- package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +1 -1
- package/templates/package-templates.zh-CN/kb/AGENTS.md +1 -1
- package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +1 -1
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type IndexerRenderedArtifact } from "./indexerTemplateRendering.js";
|
|
3
|
+
export declare const indexerLayoutProposalSchema: z.ZodObject<{
|
|
4
|
+
protocol: z.ZodLiteral<"context.indexer.layout-proposal/v1">;
|
|
5
|
+
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
6
|
+
source_ref: z.ZodString;
|
|
7
|
+
profile: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
profile_contract_digest: z.ZodString;
|
|
9
|
+
subject_key_schema_set_digest: z.ZodString;
|
|
10
|
+
subject_key_schema_digest: z.ZodString;
|
|
11
|
+
artifact_result_digest: z.ZodString;
|
|
12
|
+
shared_artifact_fingerprint: z.ZodObject<{
|
|
13
|
+
protocol: z.ZodLiteral<"context.indexer.shared-artifact-fingerprint/v1">;
|
|
14
|
+
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
15
|
+
implementation_fingerprint: z.ZodString;
|
|
16
|
+
instructions_fingerprint: z.ZodString;
|
|
17
|
+
template_fingerprint: z.ZodString;
|
|
18
|
+
} & {
|
|
19
|
+
fingerprint_digest: z.ZodString;
|
|
20
|
+
}, "strict", z.ZodTypeAny, {
|
|
21
|
+
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
22
|
+
indexer_id: string;
|
|
23
|
+
implementation_fingerprint: string;
|
|
24
|
+
instructions_fingerprint: string;
|
|
25
|
+
template_fingerprint: string;
|
|
26
|
+
fingerprint_digest: string;
|
|
27
|
+
}, {
|
|
28
|
+
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
29
|
+
indexer_id: string;
|
|
30
|
+
implementation_fingerprint: string;
|
|
31
|
+
instructions_fingerprint: string;
|
|
32
|
+
template_fingerprint: string;
|
|
33
|
+
fingerprint_digest: string;
|
|
34
|
+
}>;
|
|
35
|
+
node: z.ZodObject<{
|
|
36
|
+
node_ref: z.ZodString;
|
|
37
|
+
subject_key: z.ZodObject<{
|
|
38
|
+
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
39
|
+
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
40
|
+
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
41
|
+
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
42
|
+
}, "strict", z.ZodTypeAny, {
|
|
43
|
+
kind: string;
|
|
44
|
+
protocol: "context.subject-key/v1";
|
|
45
|
+
namespace: string;
|
|
46
|
+
local_key: string;
|
|
47
|
+
}, {
|
|
48
|
+
kind: string;
|
|
49
|
+
protocol: "context.subject-key/v1";
|
|
50
|
+
namespace: string;
|
|
51
|
+
local_key: string;
|
|
52
|
+
}>;
|
|
53
|
+
}, "strict", z.ZodTypeAny, {
|
|
54
|
+
subject_key: {
|
|
55
|
+
kind: string;
|
|
56
|
+
protocol: "context.subject-key/v1";
|
|
57
|
+
namespace: string;
|
|
58
|
+
local_key: string;
|
|
59
|
+
};
|
|
60
|
+
node_ref: string;
|
|
61
|
+
}, {
|
|
62
|
+
subject_key: {
|
|
63
|
+
kind: string;
|
|
64
|
+
protocol: "context.subject-key/v1";
|
|
65
|
+
namespace: string;
|
|
66
|
+
local_key: string;
|
|
67
|
+
};
|
|
68
|
+
node_ref: string;
|
|
69
|
+
}>;
|
|
70
|
+
artifacts: z.ZodArray<z.ZodObject<{
|
|
71
|
+
artifact_ref: z.ZodString;
|
|
72
|
+
node_ref: z.ZodString;
|
|
73
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
74
|
+
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
+
internal_view_ref: z.ZodString;
|
|
76
|
+
collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
|
|
77
|
+
output_path: z.ZodEffects<z.ZodString, string, string>;
|
|
78
|
+
shared_artifact_fingerprint_digest: z.ZodString;
|
|
79
|
+
purpose: z.ZodEnum<["required", "discretionary", "semantic-split"]>;
|
|
80
|
+
split_of_artifact_ref: z.ZodNullable<z.ZodString>;
|
|
81
|
+
split_boundary: z.ZodNullable<z.ZodObject<{
|
|
82
|
+
axis: z.ZodEffects<z.ZodString, string, string>;
|
|
83
|
+
start_key: z.ZodString;
|
|
84
|
+
end_key: z.ZodString;
|
|
85
|
+
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
axis: string;
|
|
87
|
+
start_key: string;
|
|
88
|
+
end_key: string;
|
|
89
|
+
}, {
|
|
90
|
+
axis: string;
|
|
91
|
+
start_key: string;
|
|
92
|
+
end_key: string;
|
|
93
|
+
}>>;
|
|
94
|
+
sections: z.ZodArray<z.ZodObject<{
|
|
95
|
+
section_ref: z.ZodString;
|
|
96
|
+
section_identity_ref: z.ZodString;
|
|
97
|
+
section_key: z.ZodEffects<z.ZodString, string, string>;
|
|
98
|
+
owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
99
|
+
document_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
100
|
+
reader_goal: z.ZodEffects<z.ZodString, string, string>;
|
|
101
|
+
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
102
|
+
state: z.ZodEnum<["structured", "rendered", "material-gap"]>;
|
|
103
|
+
content_digest: z.ZodNullable<z.ZodString>;
|
|
104
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
105
|
+
material_question_proposal_ref: z.ZodNullable<z.ZodString>;
|
|
106
|
+
collection_resolution_digest: z.ZodString;
|
|
107
|
+
}, "strict", z.ZodTypeAny, {
|
|
108
|
+
evidence_refs: string[];
|
|
109
|
+
artifact_kind: string;
|
|
110
|
+
state: "material-gap" | "structured" | "rendered";
|
|
111
|
+
document_kind: string;
|
|
112
|
+
reader_goal: string;
|
|
113
|
+
content_digest: string | null;
|
|
114
|
+
section_key: string;
|
|
115
|
+
material_question_proposal_ref: string | null;
|
|
116
|
+
owner_indexer_id: string;
|
|
117
|
+
section_ref: string;
|
|
118
|
+
section_identity_ref: string;
|
|
119
|
+
collection_resolution_digest: string;
|
|
120
|
+
}, {
|
|
121
|
+
evidence_refs: string[];
|
|
122
|
+
artifact_kind: string;
|
|
123
|
+
state: "material-gap" | "structured" | "rendered";
|
|
124
|
+
document_kind: string;
|
|
125
|
+
reader_goal: string;
|
|
126
|
+
content_digest: string | null;
|
|
127
|
+
section_key: string;
|
|
128
|
+
material_question_proposal_ref: string | null;
|
|
129
|
+
owner_indexer_id: string;
|
|
130
|
+
section_ref: string;
|
|
131
|
+
section_identity_ref: string;
|
|
132
|
+
collection_resolution_digest: string;
|
|
133
|
+
}>, "many">;
|
|
134
|
+
}, "strict", z.ZodTypeAny, {
|
|
135
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
136
|
+
output_path: string;
|
|
137
|
+
artifact_kind: string;
|
|
138
|
+
artifact_id: string;
|
|
139
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
140
|
+
node_ref: string;
|
|
141
|
+
sections: {
|
|
142
|
+
evidence_refs: string[];
|
|
143
|
+
artifact_kind: string;
|
|
144
|
+
state: "material-gap" | "structured" | "rendered";
|
|
145
|
+
document_kind: string;
|
|
146
|
+
reader_goal: string;
|
|
147
|
+
content_digest: string | null;
|
|
148
|
+
section_key: string;
|
|
149
|
+
material_question_proposal_ref: string | null;
|
|
150
|
+
owner_indexer_id: string;
|
|
151
|
+
section_ref: string;
|
|
152
|
+
section_identity_ref: string;
|
|
153
|
+
collection_resolution_digest: string;
|
|
154
|
+
}[];
|
|
155
|
+
artifact_ref: string;
|
|
156
|
+
internal_view_ref: string;
|
|
157
|
+
shared_artifact_fingerprint_digest: string;
|
|
158
|
+
split_of_artifact_ref: string | null;
|
|
159
|
+
split_boundary: {
|
|
160
|
+
axis: string;
|
|
161
|
+
start_key: string;
|
|
162
|
+
end_key: string;
|
|
163
|
+
} | null;
|
|
164
|
+
}, {
|
|
165
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
166
|
+
output_path: string;
|
|
167
|
+
artifact_kind: string;
|
|
168
|
+
artifact_id: string;
|
|
169
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
170
|
+
node_ref: string;
|
|
171
|
+
sections: {
|
|
172
|
+
evidence_refs: string[];
|
|
173
|
+
artifact_kind: string;
|
|
174
|
+
state: "material-gap" | "structured" | "rendered";
|
|
175
|
+
document_kind: string;
|
|
176
|
+
reader_goal: string;
|
|
177
|
+
content_digest: string | null;
|
|
178
|
+
section_key: string;
|
|
179
|
+
material_question_proposal_ref: string | null;
|
|
180
|
+
owner_indexer_id: string;
|
|
181
|
+
section_ref: string;
|
|
182
|
+
section_identity_ref: string;
|
|
183
|
+
collection_resolution_digest: string;
|
|
184
|
+
}[];
|
|
185
|
+
artifact_ref: string;
|
|
186
|
+
internal_view_ref: string;
|
|
187
|
+
shared_artifact_fingerprint_digest: string;
|
|
188
|
+
split_of_artifact_ref: string | null;
|
|
189
|
+
split_boundary: {
|
|
190
|
+
axis: string;
|
|
191
|
+
start_key: string;
|
|
192
|
+
end_key: string;
|
|
193
|
+
} | null;
|
|
194
|
+
}>, "many">;
|
|
195
|
+
} & {
|
|
196
|
+
proposal_digest: z.ZodString;
|
|
197
|
+
}, "strict", z.ZodTypeAny, {
|
|
198
|
+
source_ref: string;
|
|
199
|
+
protocol: "context.indexer.layout-proposal/v1";
|
|
200
|
+
profile: string;
|
|
201
|
+
node: {
|
|
202
|
+
subject_key: {
|
|
203
|
+
kind: string;
|
|
204
|
+
protocol: "context.subject-key/v1";
|
|
205
|
+
namespace: string;
|
|
206
|
+
local_key: string;
|
|
207
|
+
};
|
|
208
|
+
node_ref: string;
|
|
209
|
+
};
|
|
210
|
+
artifacts: {
|
|
211
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
212
|
+
output_path: string;
|
|
213
|
+
artifact_kind: string;
|
|
214
|
+
artifact_id: string;
|
|
215
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
216
|
+
node_ref: string;
|
|
217
|
+
sections: {
|
|
218
|
+
evidence_refs: string[];
|
|
219
|
+
artifact_kind: string;
|
|
220
|
+
state: "material-gap" | "structured" | "rendered";
|
|
221
|
+
document_kind: string;
|
|
222
|
+
reader_goal: string;
|
|
223
|
+
content_digest: string | null;
|
|
224
|
+
section_key: string;
|
|
225
|
+
material_question_proposal_ref: string | null;
|
|
226
|
+
owner_indexer_id: string;
|
|
227
|
+
section_ref: string;
|
|
228
|
+
section_identity_ref: string;
|
|
229
|
+
collection_resolution_digest: string;
|
|
230
|
+
}[];
|
|
231
|
+
artifact_ref: string;
|
|
232
|
+
internal_view_ref: string;
|
|
233
|
+
shared_artifact_fingerprint_digest: string;
|
|
234
|
+
split_of_artifact_ref: string | null;
|
|
235
|
+
split_boundary: {
|
|
236
|
+
axis: string;
|
|
237
|
+
start_key: string;
|
|
238
|
+
end_key: string;
|
|
239
|
+
} | null;
|
|
240
|
+
}[];
|
|
241
|
+
indexer_id: string;
|
|
242
|
+
profile_contract_digest: string;
|
|
243
|
+
subject_key_schema_digest: string;
|
|
244
|
+
artifact_result_digest: string;
|
|
245
|
+
shared_artifact_fingerprint: {
|
|
246
|
+
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
247
|
+
indexer_id: string;
|
|
248
|
+
implementation_fingerprint: string;
|
|
249
|
+
instructions_fingerprint: string;
|
|
250
|
+
template_fingerprint: string;
|
|
251
|
+
fingerprint_digest: string;
|
|
252
|
+
};
|
|
253
|
+
proposal_digest: string;
|
|
254
|
+
subject_key_schema_set_digest: string;
|
|
255
|
+
}, {
|
|
256
|
+
source_ref: string;
|
|
257
|
+
protocol: "context.indexer.layout-proposal/v1";
|
|
258
|
+
profile: string;
|
|
259
|
+
node: {
|
|
260
|
+
subject_key: {
|
|
261
|
+
kind: string;
|
|
262
|
+
protocol: "context.subject-key/v1";
|
|
263
|
+
namespace: string;
|
|
264
|
+
local_key: string;
|
|
265
|
+
};
|
|
266
|
+
node_ref: string;
|
|
267
|
+
};
|
|
268
|
+
artifacts: {
|
|
269
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
270
|
+
output_path: string;
|
|
271
|
+
artifact_kind: string;
|
|
272
|
+
artifact_id: string;
|
|
273
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
274
|
+
node_ref: string;
|
|
275
|
+
sections: {
|
|
276
|
+
evidence_refs: string[];
|
|
277
|
+
artifact_kind: string;
|
|
278
|
+
state: "material-gap" | "structured" | "rendered";
|
|
279
|
+
document_kind: string;
|
|
280
|
+
reader_goal: string;
|
|
281
|
+
content_digest: string | null;
|
|
282
|
+
section_key: string;
|
|
283
|
+
material_question_proposal_ref: string | null;
|
|
284
|
+
owner_indexer_id: string;
|
|
285
|
+
section_ref: string;
|
|
286
|
+
section_identity_ref: string;
|
|
287
|
+
collection_resolution_digest: string;
|
|
288
|
+
}[];
|
|
289
|
+
artifact_ref: string;
|
|
290
|
+
internal_view_ref: string;
|
|
291
|
+
shared_artifact_fingerprint_digest: string;
|
|
292
|
+
split_of_artifact_ref: string | null;
|
|
293
|
+
split_boundary: {
|
|
294
|
+
axis: string;
|
|
295
|
+
start_key: string;
|
|
296
|
+
end_key: string;
|
|
297
|
+
} | null;
|
|
298
|
+
}[];
|
|
299
|
+
indexer_id: string;
|
|
300
|
+
profile_contract_digest: string;
|
|
301
|
+
subject_key_schema_digest: string;
|
|
302
|
+
artifact_result_digest: string;
|
|
303
|
+
shared_artifact_fingerprint: {
|
|
304
|
+
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
305
|
+
indexer_id: string;
|
|
306
|
+
implementation_fingerprint: string;
|
|
307
|
+
instructions_fingerprint: string;
|
|
308
|
+
template_fingerprint: string;
|
|
309
|
+
fingerprint_digest: string;
|
|
310
|
+
};
|
|
311
|
+
proposal_digest: string;
|
|
312
|
+
subject_key_schema_set_digest: string;
|
|
313
|
+
}>;
|
|
314
|
+
export type IndexerLayoutProposal = z.infer<typeof indexerLayoutProposalSchema>;
|
|
315
|
+
export declare function indexerLayoutArtifactRef(nodeRef: string, artifact: {
|
|
316
|
+
artifact_id: string;
|
|
317
|
+
artifact_kind: string;
|
|
318
|
+
}): string;
|
|
319
|
+
export declare function indexerLayoutSectionIdentityRef(input: {
|
|
320
|
+
node_ref: string;
|
|
321
|
+
owner_indexer_id: string;
|
|
322
|
+
artifact_kind: string;
|
|
323
|
+
section_key: string;
|
|
324
|
+
}): string;
|
|
325
|
+
export declare function indexerLayoutSectionRef(currentArtifactRef: string, sectionIdentityRef: string): string;
|
|
326
|
+
export declare function resolveIndexerLayout(input: {
|
|
327
|
+
artifact_result: unknown;
|
|
328
|
+
profile: string;
|
|
329
|
+
profile_contract: unknown;
|
|
330
|
+
operator_contract: unknown;
|
|
331
|
+
subject_key_schema_set: unknown;
|
|
332
|
+
shared_artifact_fingerprint: unknown;
|
|
333
|
+
rendered_artifacts?: readonly IndexerRenderedArtifact[];
|
|
334
|
+
}): IndexerLayoutProposal;
|
|
335
|
+
export declare function validateIndexerLayoutProposal(input: {
|
|
336
|
+
proposal: unknown;
|
|
337
|
+
artifact_result: unknown;
|
|
338
|
+
profile_contract: unknown;
|
|
339
|
+
operator_contract: unknown;
|
|
340
|
+
subject_key_schema_set: unknown;
|
|
341
|
+
rendered_artifacts?: readonly IndexerRenderedArtifact[];
|
|
342
|
+
}): IndexerLayoutProposal;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const indexerLayoutTransitionSchema: z.ZodObject<{
|
|
3
|
+
protocol: z.ZodLiteral<"context.indexer.layout-transition/v1">;
|
|
4
|
+
layout_proposal_set_digest: z.ZodString;
|
|
5
|
+
base_projection_digests: z.ZodArray<z.ZodString, "many">;
|
|
6
|
+
planned_output: z.ZodDiscriminatedUnion<"state", [z.ZodObject<{
|
|
7
|
+
state: z.ZodLiteral<"not-required">;
|
|
8
|
+
actualization_digest: z.ZodNull;
|
|
9
|
+
landing_mapping_count: z.ZodLiteral<0>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
state: "not-required";
|
|
12
|
+
actualization_digest: null;
|
|
13
|
+
landing_mapping_count: 0;
|
|
14
|
+
}, {
|
|
15
|
+
state: "not-required";
|
|
16
|
+
actualization_digest: null;
|
|
17
|
+
landing_mapping_count: 0;
|
|
18
|
+
}>, z.ZodObject<{
|
|
19
|
+
state: z.ZodLiteral<"actualized">;
|
|
20
|
+
actualization_digest: z.ZodString;
|
|
21
|
+
landing_mapping_count: z.ZodNumber;
|
|
22
|
+
}, "strict", z.ZodTypeAny, {
|
|
23
|
+
state: "actualized";
|
|
24
|
+
actualization_digest: string;
|
|
25
|
+
landing_mapping_count: number;
|
|
26
|
+
}, {
|
|
27
|
+
state: "actualized";
|
|
28
|
+
actualization_digest: string;
|
|
29
|
+
landing_mapping_count: number;
|
|
30
|
+
}>]>;
|
|
31
|
+
change_reports: z.ZodArray<z.ZodObject<{
|
|
32
|
+
protocol: z.ZodLiteral<"context.indexer.layout-change-report/v1">;
|
|
33
|
+
base_projection_digest: z.ZodNullable<z.ZodString>;
|
|
34
|
+
target_proposal_digest: z.ZodString;
|
|
35
|
+
reused_artifact_refs: z.ZodArray<z.ZodString, "many">;
|
|
36
|
+
changes: z.ZodArray<z.ZodObject<{
|
|
37
|
+
kind: z.ZodEnum<["artifact-added", "artifact-removed", "artifact-split", "artifact-merge", "artifact-rename", "section-move", "collection-move", "path-move"]>;
|
|
38
|
+
artifact_ref: z.ZodString;
|
|
39
|
+
related_artifact_ref: z.ZodNullable<z.ZodString>;
|
|
40
|
+
section_identity_refs: z.ZodArray<z.ZodString, "many">;
|
|
41
|
+
before_collection: z.ZodNullable<z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>>;
|
|
42
|
+
after_collection: z.ZodNullable<z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>>;
|
|
43
|
+
before_path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
44
|
+
after_path: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
45
|
+
confirmation_class: z.ZodEnum<["compatible-addition", "destructive", "ambiguous"]>;
|
|
46
|
+
}, "strict", z.ZodTypeAny, {
|
|
47
|
+
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
48
|
+
artifact_ref: string;
|
|
49
|
+
related_artifact_ref: string | null;
|
|
50
|
+
section_identity_refs: string[];
|
|
51
|
+
before_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
52
|
+
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
53
|
+
before_path: string | null;
|
|
54
|
+
after_path: string | null;
|
|
55
|
+
confirmation_class: "ambiguous" | "compatible-addition" | "destructive";
|
|
56
|
+
}, {
|
|
57
|
+
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
58
|
+
artifact_ref: string;
|
|
59
|
+
related_artifact_ref: string | null;
|
|
60
|
+
section_identity_refs: string[];
|
|
61
|
+
before_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
62
|
+
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
63
|
+
before_path: string | null;
|
|
64
|
+
after_path: string | null;
|
|
65
|
+
confirmation_class: "ambiguous" | "compatible-addition" | "destructive";
|
|
66
|
+
}>, "many">;
|
|
67
|
+
requires_confirmation: z.ZodBoolean;
|
|
68
|
+
gate: z.ZodNullable<z.ZodObject<{
|
|
69
|
+
id: z.ZodLiteral<"confirm-layout-change">;
|
|
70
|
+
authority: z.ZodLiteral<"human">;
|
|
71
|
+
delegation: z.ZodLiteral<"forbidden">;
|
|
72
|
+
}, "strict", z.ZodTypeAny, {
|
|
73
|
+
id: "confirm-layout-change";
|
|
74
|
+
authority: "human";
|
|
75
|
+
delegation: "forbidden";
|
|
76
|
+
}, {
|
|
77
|
+
id: "confirm-layout-change";
|
|
78
|
+
authority: "human";
|
|
79
|
+
delegation: "forbidden";
|
|
80
|
+
}>>;
|
|
81
|
+
} & {
|
|
82
|
+
report_digest: z.ZodString;
|
|
83
|
+
}, "strict", z.ZodTypeAny, {
|
|
84
|
+
protocol: "context.indexer.layout-change-report/v1";
|
|
85
|
+
report_digest: string;
|
|
86
|
+
changes: {
|
|
87
|
+
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
88
|
+
artifact_ref: string;
|
|
89
|
+
related_artifact_ref: string | null;
|
|
90
|
+
section_identity_refs: string[];
|
|
91
|
+
before_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
92
|
+
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
93
|
+
before_path: string | null;
|
|
94
|
+
after_path: string | null;
|
|
95
|
+
confirmation_class: "ambiguous" | "compatible-addition" | "destructive";
|
|
96
|
+
}[];
|
|
97
|
+
gate: {
|
|
98
|
+
id: "confirm-layout-change";
|
|
99
|
+
authority: "human";
|
|
100
|
+
delegation: "forbidden";
|
|
101
|
+
} | null;
|
|
102
|
+
base_projection_digest: string | null;
|
|
103
|
+
target_proposal_digest: string;
|
|
104
|
+
reused_artifact_refs: string[];
|
|
105
|
+
requires_confirmation: boolean;
|
|
106
|
+
}, {
|
|
107
|
+
protocol: "context.indexer.layout-change-report/v1";
|
|
108
|
+
report_digest: string;
|
|
109
|
+
changes: {
|
|
110
|
+
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
111
|
+
artifact_ref: string;
|
|
112
|
+
related_artifact_ref: string | null;
|
|
113
|
+
section_identity_refs: string[];
|
|
114
|
+
before_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
115
|
+
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
116
|
+
before_path: string | null;
|
|
117
|
+
after_path: string | null;
|
|
118
|
+
confirmation_class: "ambiguous" | "compatible-addition" | "destructive";
|
|
119
|
+
}[];
|
|
120
|
+
gate: {
|
|
121
|
+
id: "confirm-layout-change";
|
|
122
|
+
authority: "human";
|
|
123
|
+
delegation: "forbidden";
|
|
124
|
+
} | null;
|
|
125
|
+
base_projection_digest: string | null;
|
|
126
|
+
target_proposal_digest: string;
|
|
127
|
+
reused_artifact_refs: string[];
|
|
128
|
+
requires_confirmation: boolean;
|
|
129
|
+
}>, "many">;
|
|
130
|
+
requires_confirmation: z.ZodBoolean;
|
|
131
|
+
gate: z.ZodNullable<z.ZodObject<{
|
|
132
|
+
id: z.ZodLiteral<"confirm-layout-change">;
|
|
133
|
+
authority: z.ZodLiteral<"human">;
|
|
134
|
+
delegation: z.ZodLiteral<"forbidden">;
|
|
135
|
+
}, "strict", z.ZodTypeAny, {
|
|
136
|
+
id: "confirm-layout-change";
|
|
137
|
+
authority: "human";
|
|
138
|
+
delegation: "forbidden";
|
|
139
|
+
}, {
|
|
140
|
+
id: "confirm-layout-change";
|
|
141
|
+
authority: "human";
|
|
142
|
+
delegation: "forbidden";
|
|
143
|
+
}>>;
|
|
144
|
+
} & {
|
|
145
|
+
transition_digest: z.ZodString;
|
|
146
|
+
}, "strict", z.ZodTypeAny, {
|
|
147
|
+
protocol: "context.indexer.layout-transition/v1";
|
|
148
|
+
gate: {
|
|
149
|
+
id: "confirm-layout-change";
|
|
150
|
+
authority: "human";
|
|
151
|
+
delegation: "forbidden";
|
|
152
|
+
} | null;
|
|
153
|
+
requires_confirmation: boolean;
|
|
154
|
+
layout_proposal_set_digest: string;
|
|
155
|
+
base_projection_digests: string[];
|
|
156
|
+
planned_output: {
|
|
157
|
+
state: "not-required";
|
|
158
|
+
actualization_digest: null;
|
|
159
|
+
landing_mapping_count: 0;
|
|
160
|
+
} | {
|
|
161
|
+
state: "actualized";
|
|
162
|
+
actualization_digest: string;
|
|
163
|
+
landing_mapping_count: number;
|
|
164
|
+
};
|
|
165
|
+
change_reports: {
|
|
166
|
+
protocol: "context.indexer.layout-change-report/v1";
|
|
167
|
+
report_digest: string;
|
|
168
|
+
changes: {
|
|
169
|
+
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
170
|
+
artifact_ref: string;
|
|
171
|
+
related_artifact_ref: string | null;
|
|
172
|
+
section_identity_refs: string[];
|
|
173
|
+
before_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
174
|
+
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
175
|
+
before_path: string | null;
|
|
176
|
+
after_path: string | null;
|
|
177
|
+
confirmation_class: "ambiguous" | "compatible-addition" | "destructive";
|
|
178
|
+
}[];
|
|
179
|
+
gate: {
|
|
180
|
+
id: "confirm-layout-change";
|
|
181
|
+
authority: "human";
|
|
182
|
+
delegation: "forbidden";
|
|
183
|
+
} | null;
|
|
184
|
+
base_projection_digest: string | null;
|
|
185
|
+
target_proposal_digest: string;
|
|
186
|
+
reused_artifact_refs: string[];
|
|
187
|
+
requires_confirmation: boolean;
|
|
188
|
+
}[];
|
|
189
|
+
transition_digest: string;
|
|
190
|
+
}, {
|
|
191
|
+
protocol: "context.indexer.layout-transition/v1";
|
|
192
|
+
gate: {
|
|
193
|
+
id: "confirm-layout-change";
|
|
194
|
+
authority: "human";
|
|
195
|
+
delegation: "forbidden";
|
|
196
|
+
} | null;
|
|
197
|
+
requires_confirmation: boolean;
|
|
198
|
+
layout_proposal_set_digest: string;
|
|
199
|
+
base_projection_digests: string[];
|
|
200
|
+
planned_output: {
|
|
201
|
+
state: "not-required";
|
|
202
|
+
actualization_digest: null;
|
|
203
|
+
landing_mapping_count: 0;
|
|
204
|
+
} | {
|
|
205
|
+
state: "actualized";
|
|
206
|
+
actualization_digest: string;
|
|
207
|
+
landing_mapping_count: number;
|
|
208
|
+
};
|
|
209
|
+
change_reports: {
|
|
210
|
+
protocol: "context.indexer.layout-change-report/v1";
|
|
211
|
+
report_digest: string;
|
|
212
|
+
changes: {
|
|
213
|
+
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
214
|
+
artifact_ref: string;
|
|
215
|
+
related_artifact_ref: string | null;
|
|
216
|
+
section_identity_refs: string[];
|
|
217
|
+
before_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
218
|
+
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
219
|
+
before_path: string | null;
|
|
220
|
+
after_path: string | null;
|
|
221
|
+
confirmation_class: "ambiguous" | "compatible-addition" | "destructive";
|
|
222
|
+
}[];
|
|
223
|
+
gate: {
|
|
224
|
+
id: "confirm-layout-change";
|
|
225
|
+
authority: "human";
|
|
226
|
+
delegation: "forbidden";
|
|
227
|
+
} | null;
|
|
228
|
+
base_projection_digest: string | null;
|
|
229
|
+
target_proposal_digest: string;
|
|
230
|
+
reused_artifact_refs: string[];
|
|
231
|
+
requires_confirmation: boolean;
|
|
232
|
+
}[];
|
|
233
|
+
transition_digest: string;
|
|
234
|
+
}>;
|
|
235
|
+
export type IndexerLayoutTransition = z.infer<typeof indexerLayoutTransitionSchema>;
|
|
236
|
+
export type IndexerPlannedOutputActualization = {
|
|
237
|
+
state: "not-required";
|
|
238
|
+
} | {
|
|
239
|
+
state: "actualized";
|
|
240
|
+
proposal: unknown;
|
|
241
|
+
};
|
|
242
|
+
export declare function buildIndexerLayoutTransition(input: {
|
|
243
|
+
layout_proposal_set: unknown;
|
|
244
|
+
base_projections: readonly unknown[];
|
|
245
|
+
planned_output: IndexerPlannedOutputActualization;
|
|
246
|
+
}): IndexerLayoutTransition;
|
|
247
|
+
export declare function validateIndexerLayoutTransition(value: unknown): IndexerLayoutTransition;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export * from "./indexerArtifactResult.js";
|
|
2
|
+
export * from "./indexerCapabilityGroupEvidence.js";
|
|
3
|
+
export * from "./indexerInventoryDisposition.js";
|
|
4
|
+
export * from "./indexerStructuredDeclaration.js";
|
|
5
|
+
export * from "./indexerGeneratedAuthoringAudit.js";
|
|
6
|
+
export * from "./indexerExampleIdentity.js";
|
|
7
|
+
export * from "./indexerExampleIdentityAudit.js";
|
|
8
|
+
export * from "./indexerExampleDecision.js";
|
|
9
|
+
export * from "./indexerExampleLinkageAudit.js";
|
|
10
|
+
export * from "./indexerReaderTargetInventory.js";
|
|
11
|
+
export * from "./indexerReferenceOnlyAudit.js";
|
|
12
|
+
export * from "./indexerContentLayers.js";
|
|
13
|
+
export * from "./indexerParserCoordinate.js";
|
|
14
|
+
export * from "./indexerPartitionStrategyResolution.js";
|
|
15
|
+
export * from "./indexerCatalogFallback.js";
|
|
16
|
+
export * from "./indexerProjectedArtifactPlan.js";
|
|
17
|
+
export * from "./indexerProjectedArtifactFanOutAudit.js";
|
|
18
|
+
export * from "./indexerCollectionMapping.js";
|
|
19
|
+
export * from "./indexerLayoutResolver.js";
|
|
20
|
+
export * from "./indexerLayoutProposalSet.js";
|
|
21
|
+
export * from "./indexerLayoutChange.js";
|
|
22
|
+
export * from "./indexerLayoutTransition.js";
|
|
23
|
+
export * from "./indexerCandidateCompile.js";
|
|
24
|
+
export * from "./indexerArtifactPolicy.js";
|
|
25
|
+
export * from "./indexerNavigationArtifactPlan.js";
|
|
26
|
+
export * from "./indexerNavigationArtifactGraph.js";
|
|
27
|
+
export * from "./indexerPhysicalArtifactManifest.js";
|
|
28
|
+
export * from "./indexerPhysicalArtifactAudit.js";
|
|
29
|
+
export * from "./indexerAuthoringFixture.js";
|
|
30
|
+
export * from "./indexerProviderContractReferences.js";
|
|
31
|
+
export * from "./indexerTemplateRendering.js";
|
|
32
|
+
export * from "./indexerMainRunProtocol.js";
|
|
33
|
+
export * from "./indexerMainRunLedger.js";
|
|
34
|
+
export * from "./indexerPrimaryProjection.js";
|
|
35
|
+
export * from "./indexerPostAuthorRunLedger.js";
|
|
36
|
+
export * from "./indexerWorksetRead.js";
|
|
37
|
+
export * from "./indexerRestrictedSelector.js";
|
|
38
|
+
export * from "./indexerQuestionAuthority.js";
|
|
39
|
+
export * from "./indexerMaterialQuestionWorkset.js";
|
|
40
|
+
export * from "./indexerMaterialAnswer.js";
|
|
41
|
+
export * from "./indexerMaterialAnswerReview.js";
|
|
42
|
+
export * from "./indexerMaterialAnswerReviewRoute.js";
|
|
43
|
+
export * from "./indexerMaterialAnswerLayout.js";
|
|
44
|
+
export * from "./indexerPlannedMaterialAnswer.js";
|
|
45
|
+
export * from "./indexerMaterialAnswerActualization.js";
|
|
46
|
+
export * from "./indexerMaterialAnswerFlow.js";
|
|
47
|
+
export * from "./indexerRunProtocolCommon.js";
|
|
48
|
+
export * from "./indexerMaterialAnswerRunProtocol.js";
|
|
49
|
+
export * from "./indexerMaterialAnswerExecutionPlan.js";
|
|
50
|
+
export * from "./indexerMaterialAnswerRunLedger.js";
|
|
51
|
+
export * from "./indexerProgramRunProtocol.js";
|
|
52
|
+
export * from "./indexerMaterialGapLedger.js";
|
|
53
|
+
export * from "./indexerMaterialQuestionExclusion.js";
|