@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
package/indexerLayoutChange.d.ts
CHANGED
|
@@ -4,9 +4,6 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
4
4
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
profile: z.ZodEffects<z.ZodString, string, string>;
|
|
6
6
|
profile_contract_digest: z.ZodString;
|
|
7
|
-
subject_key_schema_set_digest: z.ZodString;
|
|
8
|
-
subject_key_schema_digest: z.ZodString;
|
|
9
|
-
node_ref: z.ZodString;
|
|
10
7
|
shared_artifact_fingerprint: z.ZodObject<{
|
|
11
8
|
protocol: z.ZodLiteral<"context.indexer.shared-artifact-fingerprint/v1">;
|
|
12
9
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -63,15 +60,15 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
63
60
|
section_identity_ref: string;
|
|
64
61
|
}>, "many">;
|
|
65
62
|
}, "strict", z.ZodTypeAny, {
|
|
66
|
-
|
|
67
|
-
output_path: string;
|
|
68
|
-
artifact_kind: string;
|
|
69
|
-
artifact_id: string;
|
|
63
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
70
64
|
sections: {
|
|
71
65
|
section_ref: string;
|
|
72
66
|
section_identity_ref: string;
|
|
73
67
|
}[];
|
|
74
|
-
|
|
68
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
69
|
+
output_path: string;
|
|
70
|
+
artifact_kind: string;
|
|
71
|
+
artifact_id: string;
|
|
75
72
|
artifact_ref: string;
|
|
76
73
|
shared_artifact_fingerprint_digest: string;
|
|
77
74
|
split_of_artifact_ref: string | null;
|
|
@@ -81,15 +78,15 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
81
78
|
end_key: string;
|
|
82
79
|
} | null;
|
|
83
80
|
}, {
|
|
84
|
-
|
|
85
|
-
output_path: string;
|
|
86
|
-
artifact_kind: string;
|
|
87
|
-
artifact_id: string;
|
|
81
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
88
82
|
sections: {
|
|
89
83
|
section_ref: string;
|
|
90
84
|
section_identity_ref: string;
|
|
91
85
|
}[];
|
|
92
|
-
|
|
86
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
87
|
+
output_path: string;
|
|
88
|
+
artifact_kind: string;
|
|
89
|
+
artifact_id: string;
|
|
93
90
|
artifact_ref: string;
|
|
94
91
|
shared_artifact_fingerprint_digest: string;
|
|
95
92
|
split_of_artifact_ref: string | null;
|
|
@@ -105,15 +102,15 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
105
102
|
protocol: "context.indexer.approved-layout-projection/v1";
|
|
106
103
|
profile: string;
|
|
107
104
|
artifacts: {
|
|
108
|
-
|
|
109
|
-
output_path: string;
|
|
110
|
-
artifact_kind: string;
|
|
111
|
-
artifact_id: string;
|
|
105
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
112
106
|
sections: {
|
|
113
107
|
section_ref: string;
|
|
114
108
|
section_identity_ref: string;
|
|
115
109
|
}[];
|
|
116
|
-
|
|
110
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
111
|
+
output_path: string;
|
|
112
|
+
artifact_kind: string;
|
|
113
|
+
artifact_id: string;
|
|
117
114
|
artifact_ref: string;
|
|
118
115
|
shared_artifact_fingerprint_digest: string;
|
|
119
116
|
split_of_artifact_ref: string | null;
|
|
@@ -125,8 +122,6 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
125
122
|
}[];
|
|
126
123
|
indexer_id: string;
|
|
127
124
|
profile_contract_digest: string;
|
|
128
|
-
node_ref: string;
|
|
129
|
-
subject_key_schema_digest: string;
|
|
130
125
|
projection_digest: string;
|
|
131
126
|
shared_artifact_fingerprint: {
|
|
132
127
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
@@ -136,20 +131,19 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
136
131
|
template_fingerprint: string;
|
|
137
132
|
fingerprint_digest: string;
|
|
138
133
|
};
|
|
139
|
-
subject_key_schema_set_digest: string;
|
|
140
134
|
}, {
|
|
141
135
|
protocol: "context.indexer.approved-layout-projection/v1";
|
|
142
136
|
profile: string;
|
|
143
137
|
artifacts: {
|
|
144
|
-
|
|
145
|
-
output_path: string;
|
|
146
|
-
artifact_kind: string;
|
|
147
|
-
artifact_id: string;
|
|
138
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
148
139
|
sections: {
|
|
149
140
|
section_ref: string;
|
|
150
141
|
section_identity_ref: string;
|
|
151
142
|
}[];
|
|
152
|
-
|
|
143
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
144
|
+
output_path: string;
|
|
145
|
+
artifact_kind: string;
|
|
146
|
+
artifact_id: string;
|
|
153
147
|
artifact_ref: string;
|
|
154
148
|
shared_artifact_fingerprint_digest: string;
|
|
155
149
|
split_of_artifact_ref: string | null;
|
|
@@ -161,8 +155,6 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
161
155
|
}[];
|
|
162
156
|
indexer_id: string;
|
|
163
157
|
profile_contract_digest: string;
|
|
164
|
-
node_ref: string;
|
|
165
|
-
subject_key_schema_digest: string;
|
|
166
158
|
projection_digest: string;
|
|
167
159
|
shared_artifact_fingerprint: {
|
|
168
160
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
@@ -172,7 +164,6 @@ export declare const indexerApprovedLayoutProjectionSchema: z.ZodObject<{
|
|
|
172
164
|
template_fingerprint: string;
|
|
173
165
|
fingerprint_digest: string;
|
|
174
166
|
};
|
|
175
|
-
subject_key_schema_set_digest: string;
|
|
176
167
|
}>;
|
|
177
168
|
export type IndexerApprovedLayoutProjection = z.infer<typeof indexerApprovedLayoutProjectionSchema>;
|
|
178
169
|
export declare const indexerLayoutChangeReportSchema: z.ZodObject<{
|
|
@@ -199,7 +190,7 @@ export declare const indexerLayoutChangeReportSchema: z.ZodObject<{
|
|
|
199
190
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
200
191
|
before_path: string | null;
|
|
201
192
|
after_path: string | null;
|
|
202
|
-
confirmation_class: "
|
|
193
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
203
194
|
}, {
|
|
204
195
|
kind: "artifact-added" | "artifact-removed" | "artifact-split" | "artifact-merge" | "artifact-rename" | "section-move" | "collection-move" | "path-move";
|
|
205
196
|
artifact_ref: string;
|
|
@@ -209,7 +200,7 @@ export declare const indexerLayoutChangeReportSchema: z.ZodObject<{
|
|
|
209
200
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
210
201
|
before_path: string | null;
|
|
211
202
|
after_path: string | null;
|
|
212
|
-
confirmation_class: "
|
|
203
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
213
204
|
}>, "many">;
|
|
214
205
|
requires_confirmation: z.ZodBoolean;
|
|
215
206
|
gate: z.ZodNullable<z.ZodObject<{
|
|
@@ -237,7 +228,7 @@ export declare const indexerLayoutChangeReportSchema: z.ZodObject<{
|
|
|
237
228
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
238
229
|
before_path: string | null;
|
|
239
230
|
after_path: string | null;
|
|
240
|
-
confirmation_class: "
|
|
231
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
241
232
|
}[];
|
|
242
233
|
protocol: "context.indexer.layout-change-report/v1";
|
|
243
234
|
report_digest: string;
|
|
@@ -260,7 +251,7 @@ export declare const indexerLayoutChangeReportSchema: z.ZodObject<{
|
|
|
260
251
|
after_collection: import("./contracts.js").TopLevelNamespace | null;
|
|
261
252
|
before_path: string | null;
|
|
262
253
|
after_path: string | null;
|
|
263
|
-
confirmation_class: "
|
|
254
|
+
confirmation_class: "compatible-addition" | "destructive" | "ambiguous";
|
|
264
255
|
}[];
|
|
265
256
|
protocol: "context.indexer.layout-change-report/v1";
|
|
266
257
|
report_digest: string;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
3
3
|
protocol: z.ZodLiteral<"context.indexer.layout-proposal-set/v1">;
|
|
4
|
-
subject_key_schema_set_digest: z.ZodString;
|
|
5
4
|
proposals: z.ZodArray<z.ZodObject<{
|
|
6
5
|
protocol: z.ZodLiteral<"context.indexer.layout-proposal/v1">;
|
|
7
6
|
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
8
7
|
source_ref: z.ZodString;
|
|
9
8
|
profile: z.ZodEffects<z.ZodString, string, string>;
|
|
10
9
|
profile_contract_digest: z.ZodString;
|
|
11
|
-
subject_key_schema_set_digest: z.ZodString;
|
|
12
|
-
subject_key_schema_digest: z.ZodString;
|
|
13
10
|
artifact_result_digest: z.ZodString;
|
|
14
11
|
post_author_composition_fingerprint: z.ZodNullable<z.ZodString>;
|
|
15
12
|
shared_artifact_fingerprint: z.ZodObject<{
|
|
@@ -35,47 +32,10 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
35
32
|
template_fingerprint: string;
|
|
36
33
|
fingerprint_digest: string;
|
|
37
34
|
}>;
|
|
38
|
-
node: z.ZodObject<{
|
|
39
|
-
node_ref: z.ZodString;
|
|
40
|
-
subject_key: z.ZodObject<{
|
|
41
|
-
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
42
|
-
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
-
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
-
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
45
|
-
}, "strict", z.ZodTypeAny, {
|
|
46
|
-
kind: string;
|
|
47
|
-
namespace: string;
|
|
48
|
-
protocol: "context.subject-key/v1";
|
|
49
|
-
local_key: string;
|
|
50
|
-
}, {
|
|
51
|
-
kind: string;
|
|
52
|
-
namespace: string;
|
|
53
|
-
protocol: "context.subject-key/v1";
|
|
54
|
-
local_key: string;
|
|
55
|
-
}>;
|
|
56
|
-
}, "strict", z.ZodTypeAny, {
|
|
57
|
-
subject_key: {
|
|
58
|
-
kind: string;
|
|
59
|
-
namespace: string;
|
|
60
|
-
protocol: "context.subject-key/v1";
|
|
61
|
-
local_key: string;
|
|
62
|
-
};
|
|
63
|
-
node_ref: string;
|
|
64
|
-
}, {
|
|
65
|
-
subject_key: {
|
|
66
|
-
kind: string;
|
|
67
|
-
namespace: string;
|
|
68
|
-
protocol: "context.subject-key/v1";
|
|
69
|
-
local_key: string;
|
|
70
|
-
};
|
|
71
|
-
node_ref: string;
|
|
72
|
-
}>;
|
|
73
35
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
74
36
|
artifact_ref: z.ZodString;
|
|
75
|
-
node_ref: z.ZodString;
|
|
76
37
|
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
77
38
|
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
78
|
-
internal_view_ref: z.ZodString;
|
|
79
39
|
collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
|
|
80
40
|
output_path: z.ZodEffects<z.ZodString, string, string>;
|
|
81
41
|
shared_artifact_fingerprint_digest: z.ZodString;
|
|
@@ -104,12 +64,60 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
104
64
|
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
105
65
|
state: z.ZodEnum<["structured", "rendered", "material-gap"]>;
|
|
106
66
|
content_digest: z.ZodNullable<z.ZodString>;
|
|
107
|
-
|
|
67
|
+
references: z.ZodArray<z.ZodObject<{
|
|
68
|
+
source_ref: z.ZodString;
|
|
69
|
+
locator: z.ZodEffects<z.ZodObject<{
|
|
70
|
+
path: z.ZodEffects<z.ZodString, string, string>;
|
|
71
|
+
start_line: z.ZodNumber;
|
|
72
|
+
end_line: z.ZodNumber;
|
|
73
|
+
}, "strict", z.ZodTypeAny, {
|
|
74
|
+
path: string;
|
|
75
|
+
start_line: number;
|
|
76
|
+
end_line: number;
|
|
77
|
+
}, {
|
|
78
|
+
path: string;
|
|
79
|
+
start_line: number;
|
|
80
|
+
end_line: number;
|
|
81
|
+
}>, {
|
|
82
|
+
path: string;
|
|
83
|
+
start_line: number;
|
|
84
|
+
end_line: number;
|
|
85
|
+
}, {
|
|
86
|
+
path: string;
|
|
87
|
+
start_line: number;
|
|
88
|
+
end_line: number;
|
|
89
|
+
}>;
|
|
90
|
+
content_digest: z.ZodString;
|
|
91
|
+
}, "strict", z.ZodTypeAny, {
|
|
92
|
+
source_ref: string;
|
|
93
|
+
locator: {
|
|
94
|
+
path: string;
|
|
95
|
+
start_line: number;
|
|
96
|
+
end_line: number;
|
|
97
|
+
};
|
|
98
|
+
content_digest: string;
|
|
99
|
+
}, {
|
|
100
|
+
source_ref: string;
|
|
101
|
+
locator: {
|
|
102
|
+
path: string;
|
|
103
|
+
start_line: number;
|
|
104
|
+
end_line: number;
|
|
105
|
+
};
|
|
106
|
+
content_digest: string;
|
|
107
|
+
}>, "many">;
|
|
108
108
|
material_question_proposal_ref: z.ZodNullable<z.ZodString>;
|
|
109
109
|
collection_resolution_digest: z.ZodString;
|
|
110
110
|
}, "strict", z.ZodTypeAny, {
|
|
111
|
-
evidence_refs: string[];
|
|
112
111
|
content_digest: string | null;
|
|
112
|
+
references: {
|
|
113
|
+
source_ref: string;
|
|
114
|
+
locator: {
|
|
115
|
+
path: string;
|
|
116
|
+
start_line: number;
|
|
117
|
+
end_line: number;
|
|
118
|
+
};
|
|
119
|
+
content_digest: string;
|
|
120
|
+
}[];
|
|
113
121
|
section_key: string;
|
|
114
122
|
owner_indexer_id: string;
|
|
115
123
|
document_kind: string;
|
|
@@ -121,8 +129,16 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
121
129
|
section_identity_ref: string;
|
|
122
130
|
collection_resolution_digest: string;
|
|
123
131
|
}, {
|
|
124
|
-
evidence_refs: string[];
|
|
125
132
|
content_digest: string | null;
|
|
133
|
+
references: {
|
|
134
|
+
source_ref: string;
|
|
135
|
+
locator: {
|
|
136
|
+
path: string;
|
|
137
|
+
start_line: number;
|
|
138
|
+
end_line: number;
|
|
139
|
+
};
|
|
140
|
+
content_digest: string;
|
|
141
|
+
}[];
|
|
126
142
|
section_key: string;
|
|
127
143
|
owner_indexer_id: string;
|
|
128
144
|
document_kind: string;
|
|
@@ -135,13 +151,18 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
135
151
|
collection_resolution_digest: string;
|
|
136
152
|
}>, "many">;
|
|
137
153
|
}, "strict", z.ZodTypeAny, {
|
|
138
|
-
|
|
139
|
-
output_path: string;
|
|
140
|
-
artifact_kind: string;
|
|
141
|
-
artifact_id: string;
|
|
154
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
142
155
|
sections: {
|
|
143
|
-
evidence_refs: string[];
|
|
144
156
|
content_digest: string | null;
|
|
157
|
+
references: {
|
|
158
|
+
source_ref: string;
|
|
159
|
+
locator: {
|
|
160
|
+
path: string;
|
|
161
|
+
start_line: number;
|
|
162
|
+
end_line: number;
|
|
163
|
+
};
|
|
164
|
+
content_digest: string;
|
|
165
|
+
}[];
|
|
145
166
|
section_key: string;
|
|
146
167
|
owner_indexer_id: string;
|
|
147
168
|
document_kind: string;
|
|
@@ -153,10 +174,11 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
153
174
|
section_identity_ref: string;
|
|
154
175
|
collection_resolution_digest: string;
|
|
155
176
|
}[];
|
|
156
|
-
|
|
157
|
-
|
|
177
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
178
|
+
output_path: string;
|
|
179
|
+
artifact_kind: string;
|
|
180
|
+
artifact_id: string;
|
|
158
181
|
artifact_ref: string;
|
|
159
|
-
internal_view_ref: string;
|
|
160
182
|
shared_artifact_fingerprint_digest: string;
|
|
161
183
|
split_of_artifact_ref: string | null;
|
|
162
184
|
split_boundary: {
|
|
@@ -165,13 +187,18 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
165
187
|
end_key: string;
|
|
166
188
|
} | null;
|
|
167
189
|
}, {
|
|
168
|
-
|
|
169
|
-
output_path: string;
|
|
170
|
-
artifact_kind: string;
|
|
171
|
-
artifact_id: string;
|
|
190
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
172
191
|
sections: {
|
|
173
|
-
evidence_refs: string[];
|
|
174
192
|
content_digest: string | null;
|
|
193
|
+
references: {
|
|
194
|
+
source_ref: string;
|
|
195
|
+
locator: {
|
|
196
|
+
path: string;
|
|
197
|
+
start_line: number;
|
|
198
|
+
end_line: number;
|
|
199
|
+
};
|
|
200
|
+
content_digest: string;
|
|
201
|
+
}[];
|
|
175
202
|
section_key: string;
|
|
176
203
|
owner_indexer_id: string;
|
|
177
204
|
document_kind: string;
|
|
@@ -183,10 +210,11 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
183
210
|
section_identity_ref: string;
|
|
184
211
|
collection_resolution_digest: string;
|
|
185
212
|
}[];
|
|
186
|
-
|
|
187
|
-
|
|
213
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
214
|
+
output_path: string;
|
|
215
|
+
artifact_kind: string;
|
|
216
|
+
artifact_id: string;
|
|
188
217
|
artifact_ref: string;
|
|
189
|
-
internal_view_ref: string;
|
|
190
218
|
shared_artifact_fingerprint_digest: string;
|
|
191
219
|
split_of_artifact_ref: string | null;
|
|
192
220
|
split_boundary: {
|
|
@@ -202,23 +230,19 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
202
230
|
source_ref: string;
|
|
203
231
|
protocol: "context.indexer.layout-proposal/v1";
|
|
204
232
|
profile: string;
|
|
205
|
-
node: {
|
|
206
|
-
subject_key: {
|
|
207
|
-
kind: string;
|
|
208
|
-
namespace: string;
|
|
209
|
-
protocol: "context.subject-key/v1";
|
|
210
|
-
local_key: string;
|
|
211
|
-
};
|
|
212
|
-
node_ref: string;
|
|
213
|
-
};
|
|
214
233
|
artifacts: {
|
|
215
|
-
|
|
216
|
-
output_path: string;
|
|
217
|
-
artifact_kind: string;
|
|
218
|
-
artifact_id: string;
|
|
234
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
219
235
|
sections: {
|
|
220
|
-
evidence_refs: string[];
|
|
221
236
|
content_digest: string | null;
|
|
237
|
+
references: {
|
|
238
|
+
source_ref: string;
|
|
239
|
+
locator: {
|
|
240
|
+
path: string;
|
|
241
|
+
start_line: number;
|
|
242
|
+
end_line: number;
|
|
243
|
+
};
|
|
244
|
+
content_digest: string;
|
|
245
|
+
}[];
|
|
222
246
|
section_key: string;
|
|
223
247
|
owner_indexer_id: string;
|
|
224
248
|
document_kind: string;
|
|
@@ -230,10 +254,11 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
230
254
|
section_identity_ref: string;
|
|
231
255
|
collection_resolution_digest: string;
|
|
232
256
|
}[];
|
|
233
|
-
|
|
234
|
-
|
|
257
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
258
|
+
output_path: string;
|
|
259
|
+
artifact_kind: string;
|
|
260
|
+
artifact_id: string;
|
|
235
261
|
artifact_ref: string;
|
|
236
|
-
internal_view_ref: string;
|
|
237
262
|
shared_artifact_fingerprint_digest: string;
|
|
238
263
|
split_of_artifact_ref: string | null;
|
|
239
264
|
split_boundary: {
|
|
@@ -244,7 +269,6 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
244
269
|
}[];
|
|
245
270
|
indexer_id: string;
|
|
246
271
|
profile_contract_digest: string;
|
|
247
|
-
subject_key_schema_digest: string;
|
|
248
272
|
shared_artifact_fingerprint: {
|
|
249
273
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
250
274
|
indexer_id: string;
|
|
@@ -254,7 +278,6 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
254
278
|
fingerprint_digest: string;
|
|
255
279
|
};
|
|
256
280
|
proposal_digest: string;
|
|
257
|
-
subject_key_schema_set_digest: string;
|
|
258
281
|
artifact_result_digest: string;
|
|
259
282
|
post_author_composition_fingerprint: string | null;
|
|
260
283
|
delivery_artifact_ids?: string[] | undefined;
|
|
@@ -262,23 +285,19 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
262
285
|
source_ref: string;
|
|
263
286
|
protocol: "context.indexer.layout-proposal/v1";
|
|
264
287
|
profile: string;
|
|
265
|
-
node: {
|
|
266
|
-
subject_key: {
|
|
267
|
-
kind: string;
|
|
268
|
-
namespace: string;
|
|
269
|
-
protocol: "context.subject-key/v1";
|
|
270
|
-
local_key: string;
|
|
271
|
-
};
|
|
272
|
-
node_ref: string;
|
|
273
|
-
};
|
|
274
288
|
artifacts: {
|
|
275
|
-
|
|
276
|
-
output_path: string;
|
|
277
|
-
artifact_kind: string;
|
|
278
|
-
artifact_id: string;
|
|
289
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
279
290
|
sections: {
|
|
280
|
-
evidence_refs: string[];
|
|
281
291
|
content_digest: string | null;
|
|
292
|
+
references: {
|
|
293
|
+
source_ref: string;
|
|
294
|
+
locator: {
|
|
295
|
+
path: string;
|
|
296
|
+
start_line: number;
|
|
297
|
+
end_line: number;
|
|
298
|
+
};
|
|
299
|
+
content_digest: string;
|
|
300
|
+
}[];
|
|
282
301
|
section_key: string;
|
|
283
302
|
owner_indexer_id: string;
|
|
284
303
|
document_kind: string;
|
|
@@ -290,10 +309,11 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
290
309
|
section_identity_ref: string;
|
|
291
310
|
collection_resolution_digest: string;
|
|
292
311
|
}[];
|
|
293
|
-
|
|
294
|
-
|
|
312
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
313
|
+
output_path: string;
|
|
314
|
+
artifact_kind: string;
|
|
315
|
+
artifact_id: string;
|
|
295
316
|
artifact_ref: string;
|
|
296
|
-
internal_view_ref: string;
|
|
297
317
|
shared_artifact_fingerprint_digest: string;
|
|
298
318
|
split_of_artifact_ref: string | null;
|
|
299
319
|
split_boundary: {
|
|
@@ -304,7 +324,6 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
304
324
|
}[];
|
|
305
325
|
indexer_id: string;
|
|
306
326
|
profile_contract_digest: string;
|
|
307
|
-
subject_key_schema_digest: string;
|
|
308
327
|
shared_artifact_fingerprint: {
|
|
309
328
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
310
329
|
indexer_id: string;
|
|
@@ -314,7 +333,6 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
314
333
|
fingerprint_digest: string;
|
|
315
334
|
};
|
|
316
335
|
proposal_digest: string;
|
|
317
|
-
subject_key_schema_set_digest: string;
|
|
318
336
|
artifact_result_digest: string;
|
|
319
337
|
post_author_composition_fingerprint: string | null;
|
|
320
338
|
delivery_artifact_ids?: string[] | undefined;
|
|
@@ -327,23 +345,19 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
327
345
|
source_ref: string;
|
|
328
346
|
protocol: "context.indexer.layout-proposal/v1";
|
|
329
347
|
profile: string;
|
|
330
|
-
node: {
|
|
331
|
-
subject_key: {
|
|
332
|
-
kind: string;
|
|
333
|
-
namespace: string;
|
|
334
|
-
protocol: "context.subject-key/v1";
|
|
335
|
-
local_key: string;
|
|
336
|
-
};
|
|
337
|
-
node_ref: string;
|
|
338
|
-
};
|
|
339
348
|
artifacts: {
|
|
340
|
-
|
|
341
|
-
output_path: string;
|
|
342
|
-
artifact_kind: string;
|
|
343
|
-
artifact_id: string;
|
|
349
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
344
350
|
sections: {
|
|
345
|
-
evidence_refs: string[];
|
|
346
351
|
content_digest: string | null;
|
|
352
|
+
references: {
|
|
353
|
+
source_ref: string;
|
|
354
|
+
locator: {
|
|
355
|
+
path: string;
|
|
356
|
+
start_line: number;
|
|
357
|
+
end_line: number;
|
|
358
|
+
};
|
|
359
|
+
content_digest: string;
|
|
360
|
+
}[];
|
|
347
361
|
section_key: string;
|
|
348
362
|
owner_indexer_id: string;
|
|
349
363
|
document_kind: string;
|
|
@@ -355,10 +369,11 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
355
369
|
section_identity_ref: string;
|
|
356
370
|
collection_resolution_digest: string;
|
|
357
371
|
}[];
|
|
358
|
-
|
|
359
|
-
|
|
372
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
373
|
+
output_path: string;
|
|
374
|
+
artifact_kind: string;
|
|
375
|
+
artifact_id: string;
|
|
360
376
|
artifact_ref: string;
|
|
361
|
-
internal_view_ref: string;
|
|
362
377
|
shared_artifact_fingerprint_digest: string;
|
|
363
378
|
split_of_artifact_ref: string | null;
|
|
364
379
|
split_boundary: {
|
|
@@ -369,7 +384,6 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
369
384
|
}[];
|
|
370
385
|
indexer_id: string;
|
|
371
386
|
profile_contract_digest: string;
|
|
372
|
-
subject_key_schema_digest: string;
|
|
373
387
|
shared_artifact_fingerprint: {
|
|
374
388
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
375
389
|
indexer_id: string;
|
|
@@ -379,36 +393,30 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
379
393
|
fingerprint_digest: string;
|
|
380
394
|
};
|
|
381
395
|
proposal_digest: string;
|
|
382
|
-
subject_key_schema_set_digest: string;
|
|
383
396
|
artifact_result_digest: string;
|
|
384
397
|
post_author_composition_fingerprint: string | null;
|
|
385
398
|
delivery_artifact_ids?: string[] | undefined;
|
|
386
399
|
}[];
|
|
387
400
|
set_digest: string;
|
|
388
|
-
subject_key_schema_set_digest: string;
|
|
389
401
|
}, {
|
|
390
402
|
protocol: "context.indexer.layout-proposal-set/v1";
|
|
391
403
|
proposals: {
|
|
392
404
|
source_ref: string;
|
|
393
405
|
protocol: "context.indexer.layout-proposal/v1";
|
|
394
406
|
profile: string;
|
|
395
|
-
node: {
|
|
396
|
-
subject_key: {
|
|
397
|
-
kind: string;
|
|
398
|
-
namespace: string;
|
|
399
|
-
protocol: "context.subject-key/v1";
|
|
400
|
-
local_key: string;
|
|
401
|
-
};
|
|
402
|
-
node_ref: string;
|
|
403
|
-
};
|
|
404
407
|
artifacts: {
|
|
405
|
-
|
|
406
|
-
output_path: string;
|
|
407
|
-
artifact_kind: string;
|
|
408
|
-
artifact_id: string;
|
|
408
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
409
409
|
sections: {
|
|
410
|
-
evidence_refs: string[];
|
|
411
410
|
content_digest: string | null;
|
|
411
|
+
references: {
|
|
412
|
+
source_ref: string;
|
|
413
|
+
locator: {
|
|
414
|
+
path: string;
|
|
415
|
+
start_line: number;
|
|
416
|
+
end_line: number;
|
|
417
|
+
};
|
|
418
|
+
content_digest: string;
|
|
419
|
+
}[];
|
|
412
420
|
section_key: string;
|
|
413
421
|
owner_indexer_id: string;
|
|
414
422
|
document_kind: string;
|
|
@@ -420,10 +428,11 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
420
428
|
section_identity_ref: string;
|
|
421
429
|
collection_resolution_digest: string;
|
|
422
430
|
}[];
|
|
423
|
-
|
|
424
|
-
|
|
431
|
+
purpose: "required" | "discretionary" | "semantic-split";
|
|
432
|
+
output_path: string;
|
|
433
|
+
artifact_kind: string;
|
|
434
|
+
artifact_id: string;
|
|
425
435
|
artifact_ref: string;
|
|
426
|
-
internal_view_ref: string;
|
|
427
436
|
shared_artifact_fingerprint_digest: string;
|
|
428
437
|
split_of_artifact_ref: string | null;
|
|
429
438
|
split_boundary: {
|
|
@@ -434,7 +443,6 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
434
443
|
}[];
|
|
435
444
|
indexer_id: string;
|
|
436
445
|
profile_contract_digest: string;
|
|
437
|
-
subject_key_schema_digest: string;
|
|
438
446
|
shared_artifact_fingerprint: {
|
|
439
447
|
protocol: "context.indexer.shared-artifact-fingerprint/v1";
|
|
440
448
|
indexer_id: string;
|
|
@@ -444,13 +452,11 @@ export declare const indexerLayoutProposalSetSchema: z.ZodObject<{
|
|
|
444
452
|
fingerprint_digest: string;
|
|
445
453
|
};
|
|
446
454
|
proposal_digest: string;
|
|
447
|
-
subject_key_schema_set_digest: string;
|
|
448
455
|
artifact_result_digest: string;
|
|
449
456
|
post_author_composition_fingerprint: string | null;
|
|
450
457
|
delivery_artifact_ids?: string[] | undefined;
|
|
451
458
|
}[];
|
|
452
459
|
set_digest: string;
|
|
453
|
-
subject_key_schema_set_digest: string;
|
|
454
460
|
}>;
|
|
455
461
|
export type IndexerLayoutProposalSet = z.infer<typeof indexerLayoutProposalSetSchema>;
|
|
456
462
|
export declare function buildIndexerLayoutProposalSet(values: readonly unknown[]): IndexerLayoutProposalSet;
|