@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
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
import { type IndexerCanonicalMaterialAnswerEvidence } from "./indexerMaterialAnswer.js";
|
|
3
|
-
export declare const indexerPlannedMaterialAnswerSchema: z.ZodObject<{
|
|
4
|
-
protocol: z.ZodLiteral<"context.indexer.planned-material-answer/v1">;
|
|
5
|
-
question_key: z.ZodString;
|
|
6
|
-
question_revision_digest: z.ZodString;
|
|
7
|
-
answer_landing_ref: z.ZodString;
|
|
8
|
-
binding_digest: z.ZodString;
|
|
9
|
-
evidence_items: z.ZodArray<z.ZodObject<{
|
|
10
|
-
evidence_item_ref: z.ZodString;
|
|
11
|
-
kind: z.ZodEnum<["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"]>;
|
|
12
|
-
source_ref: z.ZodString;
|
|
13
|
-
source_origin_ref: z.ZodString;
|
|
14
|
-
source_input_digest: z.ZodString;
|
|
15
|
-
source_spans: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
16
|
-
unit: z.ZodEnum<["byte", "line"]>;
|
|
17
|
-
start: z.ZodNumber;
|
|
18
|
-
end_exclusive: z.ZodNumber;
|
|
19
|
-
}, "strict", z.ZodTypeAny, {
|
|
20
|
-
unit: "byte" | "line";
|
|
21
|
-
start: number;
|
|
22
|
-
end_exclusive: number;
|
|
23
|
-
}, {
|
|
24
|
-
unit: "byte" | "line";
|
|
25
|
-
start: number;
|
|
26
|
-
end_exclusive: number;
|
|
27
|
-
}>, {
|
|
28
|
-
unit: "byte" | "line";
|
|
29
|
-
start: number;
|
|
30
|
-
end_exclusive: number;
|
|
31
|
-
}, {
|
|
32
|
-
unit: "byte" | "line";
|
|
33
|
-
start: number;
|
|
34
|
-
end_exclusive: number;
|
|
35
|
-
}>, "many">;
|
|
36
|
-
evidence_digest: z.ZodString;
|
|
37
|
-
}, "strict", z.ZodTypeAny, {
|
|
38
|
-
kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
39
|
-
source_ref: string;
|
|
40
|
-
evidence_digest: string;
|
|
41
|
-
source_input_digest: string;
|
|
42
|
-
source_spans: {
|
|
43
|
-
unit: "byte" | "line";
|
|
44
|
-
start: number;
|
|
45
|
-
end_exclusive: number;
|
|
46
|
-
}[];
|
|
47
|
-
source_origin_ref: string;
|
|
48
|
-
evidence_item_ref: string;
|
|
49
|
-
}, {
|
|
50
|
-
kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
51
|
-
source_ref: string;
|
|
52
|
-
evidence_digest: string;
|
|
53
|
-
source_input_digest: string;
|
|
54
|
-
source_spans: {
|
|
55
|
-
unit: "byte" | "line";
|
|
56
|
-
start: number;
|
|
57
|
-
end_exclusive: number;
|
|
58
|
-
}[];
|
|
59
|
-
source_origin_ref: string;
|
|
60
|
-
evidence_item_ref: string;
|
|
61
|
-
}>, "many">;
|
|
62
|
-
evidence_set_digest: z.ZodString;
|
|
63
|
-
} & {
|
|
64
|
-
planned_answer_digest: z.ZodString;
|
|
65
|
-
}, "strict", z.ZodTypeAny, {
|
|
66
|
-
protocol: "context.indexer.planned-material-answer/v1";
|
|
67
|
-
binding_digest: string;
|
|
68
|
-
answer_landing_ref: string;
|
|
69
|
-
question_key: string;
|
|
70
|
-
question_revision_digest: string;
|
|
71
|
-
evidence_set_digest: string;
|
|
72
|
-
evidence_items: {
|
|
73
|
-
kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
74
|
-
source_ref: string;
|
|
75
|
-
evidence_digest: string;
|
|
76
|
-
source_input_digest: string;
|
|
77
|
-
source_spans: {
|
|
78
|
-
unit: "byte" | "line";
|
|
79
|
-
start: number;
|
|
80
|
-
end_exclusive: number;
|
|
81
|
-
}[];
|
|
82
|
-
source_origin_ref: string;
|
|
83
|
-
evidence_item_ref: string;
|
|
84
|
-
}[];
|
|
85
|
-
planned_answer_digest: string;
|
|
86
|
-
}, {
|
|
87
|
-
protocol: "context.indexer.planned-material-answer/v1";
|
|
88
|
-
binding_digest: string;
|
|
89
|
-
answer_landing_ref: string;
|
|
90
|
-
question_key: string;
|
|
91
|
-
question_revision_digest: string;
|
|
92
|
-
evidence_set_digest: string;
|
|
93
|
-
evidence_items: {
|
|
94
|
-
kind: "contract" | "code" | "configuration" | "documentation" | "runbook" | "decision-record" | "test-result" | "runtime-observation" | "tool-snapshot";
|
|
95
|
-
source_ref: string;
|
|
96
|
-
evidence_digest: string;
|
|
97
|
-
source_input_digest: string;
|
|
98
|
-
source_spans: {
|
|
99
|
-
unit: "byte" | "line";
|
|
100
|
-
start: number;
|
|
101
|
-
end_exclusive: number;
|
|
102
|
-
}[];
|
|
103
|
-
source_origin_ref: string;
|
|
104
|
-
evidence_item_ref: string;
|
|
105
|
-
}[];
|
|
106
|
-
planned_answer_digest: string;
|
|
107
|
-
}>;
|
|
108
|
-
export type IndexerPlannedMaterialAnswer = z.infer<typeof indexerPlannedMaterialAnswerSchema>;
|
|
109
|
-
export declare function buildIndexerPlannedMaterialAnswerProjection(input: {
|
|
110
|
-
question_key: string;
|
|
111
|
-
question_revision_digest: string;
|
|
112
|
-
answer_landing_ref: string;
|
|
113
|
-
binding_digest: string;
|
|
114
|
-
evidence_items: readonly IndexerCanonicalMaterialAnswerEvidence[];
|
|
115
|
-
}): IndexerPlannedMaterialAnswer;
|
|
116
|
-
export declare function validateIndexerPlannedMaterialAnswer(value: unknown): IndexerPlannedMaterialAnswer;
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const indexerProfileMetricResultSchema: z.ZodObject<{
|
|
3
|
-
metric_id: z.ZodEffects<z.ZodString, string, string>;
|
|
4
|
-
operator: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
-
unit: z.ZodEnum<["count", "ratio"]>;
|
|
6
|
-
numerator: z.ZodNumber;
|
|
7
|
-
denominator: z.ZodNumber;
|
|
8
|
-
actual: z.ZodNumber;
|
|
9
|
-
recommended: z.ZodObject<{
|
|
10
|
-
min: z.ZodNullable<z.ZodNumber>;
|
|
11
|
-
max: z.ZodNullable<z.ZodNumber>;
|
|
12
|
-
}, "strict", z.ZodTypeAny, {
|
|
13
|
-
min: number | null;
|
|
14
|
-
max: number | null;
|
|
15
|
-
}, {
|
|
16
|
-
min: number | null;
|
|
17
|
-
max: number | null;
|
|
18
|
-
}>;
|
|
19
|
-
hard: z.ZodObject<{
|
|
20
|
-
min: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
max: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
}, "strict", z.ZodTypeAny, {
|
|
23
|
-
min: number | null;
|
|
24
|
-
max: number | null;
|
|
25
|
-
}, {
|
|
26
|
-
min: number | null;
|
|
27
|
-
max: number | null;
|
|
28
|
-
}>;
|
|
29
|
-
status: z.ZodEnum<["passed", "warning", "failed"]>;
|
|
30
|
-
evidence: z.ZodArray<z.ZodString, "many">;
|
|
31
|
-
missing: z.ZodArray<z.ZodString, "many">;
|
|
32
|
-
repair_guidance: z.ZodArray<z.ZodString, "many">;
|
|
33
|
-
}, "strict", z.ZodTypeAny, {
|
|
34
|
-
status: "passed" | "warning" | "failed";
|
|
35
|
-
denominator: number;
|
|
36
|
-
operator: string;
|
|
37
|
-
unit: "count" | "ratio";
|
|
38
|
-
recommended: {
|
|
39
|
-
min: number | null;
|
|
40
|
-
max: number | null;
|
|
41
|
-
};
|
|
42
|
-
missing: string[];
|
|
43
|
-
metric_id: string;
|
|
44
|
-
evidence: string[];
|
|
45
|
-
numerator: number;
|
|
46
|
-
actual: number;
|
|
47
|
-
hard: {
|
|
48
|
-
min: number | null;
|
|
49
|
-
max: number | null;
|
|
50
|
-
};
|
|
51
|
-
repair_guidance: string[];
|
|
52
|
-
}, {
|
|
53
|
-
status: "passed" | "warning" | "failed";
|
|
54
|
-
denominator: number;
|
|
55
|
-
operator: string;
|
|
56
|
-
unit: "count" | "ratio";
|
|
57
|
-
recommended: {
|
|
58
|
-
min: number | null;
|
|
59
|
-
max: number | null;
|
|
60
|
-
};
|
|
61
|
-
missing: string[];
|
|
62
|
-
metric_id: string;
|
|
63
|
-
evidence: string[];
|
|
64
|
-
numerator: number;
|
|
65
|
-
actual: number;
|
|
66
|
-
hard: {
|
|
67
|
-
min: number | null;
|
|
68
|
-
max: number | null;
|
|
69
|
-
};
|
|
70
|
-
repair_guidance: string[];
|
|
71
|
-
}>;
|
|
72
|
-
export declare const indexerProfileMetricAuditSchema: z.ZodObject<{
|
|
73
|
-
protocol: z.ZodLiteral<"context.indexer.profile-metric-audit/v1">;
|
|
74
|
-
profile_id: z.ZodEffects<z.ZodString, string, string>;
|
|
75
|
-
profile_contract_digest: z.ZodString;
|
|
76
|
-
artifact_policy_variant_id: z.ZodEffects<z.ZodString, string, string>;
|
|
77
|
-
metrics: z.ZodArray<z.ZodObject<{
|
|
78
|
-
metric_id: z.ZodEffects<z.ZodString, string, string>;
|
|
79
|
-
operator: z.ZodEffects<z.ZodString, string, string>;
|
|
80
|
-
unit: z.ZodEnum<["count", "ratio"]>;
|
|
81
|
-
numerator: z.ZodNumber;
|
|
82
|
-
denominator: z.ZodNumber;
|
|
83
|
-
actual: z.ZodNumber;
|
|
84
|
-
recommended: z.ZodObject<{
|
|
85
|
-
min: z.ZodNullable<z.ZodNumber>;
|
|
86
|
-
max: z.ZodNullable<z.ZodNumber>;
|
|
87
|
-
}, "strict", z.ZodTypeAny, {
|
|
88
|
-
min: number | null;
|
|
89
|
-
max: number | null;
|
|
90
|
-
}, {
|
|
91
|
-
min: number | null;
|
|
92
|
-
max: number | null;
|
|
93
|
-
}>;
|
|
94
|
-
hard: z.ZodObject<{
|
|
95
|
-
min: z.ZodNullable<z.ZodNumber>;
|
|
96
|
-
max: z.ZodNullable<z.ZodNumber>;
|
|
97
|
-
}, "strict", z.ZodTypeAny, {
|
|
98
|
-
min: number | null;
|
|
99
|
-
max: number | null;
|
|
100
|
-
}, {
|
|
101
|
-
min: number | null;
|
|
102
|
-
max: number | null;
|
|
103
|
-
}>;
|
|
104
|
-
status: z.ZodEnum<["passed", "warning", "failed"]>;
|
|
105
|
-
evidence: z.ZodArray<z.ZodString, "many">;
|
|
106
|
-
missing: z.ZodArray<z.ZodString, "many">;
|
|
107
|
-
repair_guidance: z.ZodArray<z.ZodString, "many">;
|
|
108
|
-
}, "strict", z.ZodTypeAny, {
|
|
109
|
-
status: "passed" | "warning" | "failed";
|
|
110
|
-
denominator: number;
|
|
111
|
-
operator: string;
|
|
112
|
-
unit: "count" | "ratio";
|
|
113
|
-
recommended: {
|
|
114
|
-
min: number | null;
|
|
115
|
-
max: number | null;
|
|
116
|
-
};
|
|
117
|
-
missing: string[];
|
|
118
|
-
metric_id: string;
|
|
119
|
-
evidence: string[];
|
|
120
|
-
numerator: number;
|
|
121
|
-
actual: number;
|
|
122
|
-
hard: {
|
|
123
|
-
min: number | null;
|
|
124
|
-
max: number | null;
|
|
125
|
-
};
|
|
126
|
-
repair_guidance: string[];
|
|
127
|
-
}, {
|
|
128
|
-
status: "passed" | "warning" | "failed";
|
|
129
|
-
denominator: number;
|
|
130
|
-
operator: string;
|
|
131
|
-
unit: "count" | "ratio";
|
|
132
|
-
recommended: {
|
|
133
|
-
min: number | null;
|
|
134
|
-
max: number | null;
|
|
135
|
-
};
|
|
136
|
-
missing: string[];
|
|
137
|
-
metric_id: string;
|
|
138
|
-
evidence: string[];
|
|
139
|
-
numerator: number;
|
|
140
|
-
actual: number;
|
|
141
|
-
hard: {
|
|
142
|
-
min: number | null;
|
|
143
|
-
max: number | null;
|
|
144
|
-
};
|
|
145
|
-
repair_guidance: string[];
|
|
146
|
-
}>, "many">;
|
|
147
|
-
failed_metric_ids: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
148
|
-
audit_digest: z.ZodString;
|
|
149
|
-
}, "strict", z.ZodTypeAny, {
|
|
150
|
-
protocol: "context.indexer.profile-metric-audit/v1";
|
|
151
|
-
metrics: {
|
|
152
|
-
status: "passed" | "warning" | "failed";
|
|
153
|
-
denominator: number;
|
|
154
|
-
operator: string;
|
|
155
|
-
unit: "count" | "ratio";
|
|
156
|
-
recommended: {
|
|
157
|
-
min: number | null;
|
|
158
|
-
max: number | null;
|
|
159
|
-
};
|
|
160
|
-
missing: string[];
|
|
161
|
-
metric_id: string;
|
|
162
|
-
evidence: string[];
|
|
163
|
-
numerator: number;
|
|
164
|
-
actual: number;
|
|
165
|
-
hard: {
|
|
166
|
-
min: number | null;
|
|
167
|
-
max: number | null;
|
|
168
|
-
};
|
|
169
|
-
repair_guidance: string[];
|
|
170
|
-
}[];
|
|
171
|
-
profile_id: string;
|
|
172
|
-
profile_contract_digest: string;
|
|
173
|
-
audit_digest: string;
|
|
174
|
-
failed_metric_ids: string[];
|
|
175
|
-
artifact_policy_variant_id: string;
|
|
176
|
-
}, {
|
|
177
|
-
protocol: "context.indexer.profile-metric-audit/v1";
|
|
178
|
-
metrics: {
|
|
179
|
-
status: "passed" | "warning" | "failed";
|
|
180
|
-
denominator: number;
|
|
181
|
-
operator: string;
|
|
182
|
-
unit: "count" | "ratio";
|
|
183
|
-
recommended: {
|
|
184
|
-
min: number | null;
|
|
185
|
-
max: number | null;
|
|
186
|
-
};
|
|
187
|
-
missing: string[];
|
|
188
|
-
metric_id: string;
|
|
189
|
-
evidence: string[];
|
|
190
|
-
numerator: number;
|
|
191
|
-
actual: number;
|
|
192
|
-
hard: {
|
|
193
|
-
min: number | null;
|
|
194
|
-
max: number | null;
|
|
195
|
-
};
|
|
196
|
-
repair_guidance: string[];
|
|
197
|
-
}[];
|
|
198
|
-
profile_id: string;
|
|
199
|
-
profile_contract_digest: string;
|
|
200
|
-
audit_digest: string;
|
|
201
|
-
failed_metric_ids: string[];
|
|
202
|
-
artifact_policy_variant_id: string;
|
|
203
|
-
}>;
|
|
204
|
-
export type IndexerProfileMetricResult = z.infer<typeof indexerProfileMetricResultSchema>;
|
|
205
|
-
export type IndexerProfileMetricAudit = z.infer<typeof indexerProfileMetricAuditSchema>;
|
|
206
|
-
export declare function validateIndexerProfileMetricAudit(value: unknown): IndexerProfileMetricAudit;
|
|
207
|
-
export declare function validateCurrentIndexerProfileMetricAudit(input: {
|
|
208
|
-
audit: unknown;
|
|
209
|
-
profile_id: string;
|
|
210
|
-
profile_contract_digest: string;
|
|
211
|
-
artifact_policy_variant_id: string;
|
|
212
|
-
}): IndexerProfileMetricAudit;
|
|
213
|
-
export declare function buildIndexerProfileMetricAudit(input: {
|
|
214
|
-
profile_id: string;
|
|
215
|
-
profile_contract_digest: string;
|
|
216
|
-
artifact_policy_variant_id: string;
|
|
217
|
-
metrics: IndexerProfileMetricResult[];
|
|
218
|
-
}): IndexerProfileMetricAudit;
|
package/indexerWorksetRead.d.ts
DELETED
|
@@ -1,287 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export type IndexerReadJson = null | boolean | number | string | IndexerReadJson[] | {
|
|
3
|
-
[key: string]: IndexerReadJson;
|
|
4
|
-
};
|
|
5
|
-
export declare const indexerWorksetReadRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
6
|
-
protocol: z.ZodLiteral<"context.indexer.workset-read-request/v1">;
|
|
7
|
-
workset_digest: z.ZodString;
|
|
8
|
-
read_kind: z.ZodEnum<["source", "evidence"]>;
|
|
9
|
-
requested_refs: z.ZodArray<z.ZodString, "many">;
|
|
10
|
-
request_digest: z.ZodString;
|
|
11
|
-
transport: z.ZodObject<{
|
|
12
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
13
|
-
page_size: z.ZodNumber;
|
|
14
|
-
}, "strict", z.ZodTypeAny, {
|
|
15
|
-
page_size: number;
|
|
16
|
-
cursor?: string | undefined;
|
|
17
|
-
}, {
|
|
18
|
-
page_size: number;
|
|
19
|
-
cursor?: string | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
}, "strict", z.ZodTypeAny, {
|
|
22
|
-
protocol: "context.indexer.workset-read-request/v1";
|
|
23
|
-
workset_digest: string;
|
|
24
|
-
request_digest: string;
|
|
25
|
-
transport: {
|
|
26
|
-
page_size: number;
|
|
27
|
-
cursor?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
read_kind: "source" | "evidence";
|
|
30
|
-
requested_refs: string[];
|
|
31
|
-
}, {
|
|
32
|
-
protocol: "context.indexer.workset-read-request/v1";
|
|
33
|
-
workset_digest: string;
|
|
34
|
-
request_digest: string;
|
|
35
|
-
transport: {
|
|
36
|
-
page_size: number;
|
|
37
|
-
cursor?: string | undefined;
|
|
38
|
-
};
|
|
39
|
-
read_kind: "source" | "evidence";
|
|
40
|
-
requested_refs: string[];
|
|
41
|
-
}>, {
|
|
42
|
-
protocol: "context.indexer.workset-read-request/v1";
|
|
43
|
-
workset_digest: string;
|
|
44
|
-
request_digest: string;
|
|
45
|
-
transport: {
|
|
46
|
-
page_size: number;
|
|
47
|
-
cursor?: string | undefined;
|
|
48
|
-
};
|
|
49
|
-
read_kind: "source" | "evidence";
|
|
50
|
-
requested_refs: string[];
|
|
51
|
-
}, {
|
|
52
|
-
protocol: "context.indexer.workset-read-request/v1";
|
|
53
|
-
workset_digest: string;
|
|
54
|
-
request_digest: string;
|
|
55
|
-
transport: {
|
|
56
|
-
page_size: number;
|
|
57
|
-
cursor?: string | undefined;
|
|
58
|
-
};
|
|
59
|
-
read_kind: "source" | "evidence";
|
|
60
|
-
requested_refs: string[];
|
|
61
|
-
}>;
|
|
62
|
-
export type IndexerWorksetReadRequest = z.infer<typeof indexerWorksetReadRequestSchema>;
|
|
63
|
-
type ReadRequestIdentity = Pick<IndexerWorksetReadRequest, "protocol" | "workset_digest" | "read_kind" | "requested_refs">;
|
|
64
|
-
export declare function indexerWorksetReadRequestDigest(value: ReadRequestIdentity): string;
|
|
65
|
-
export declare function buildIndexerWorksetReadRequest(input: {
|
|
66
|
-
workset_digest: string;
|
|
67
|
-
read_kind: IndexerWorksetReadRequest["read_kind"];
|
|
68
|
-
requested_refs: readonly string[];
|
|
69
|
-
allowed_refs: readonly string[];
|
|
70
|
-
cursor?: string;
|
|
71
|
-
page_size: number;
|
|
72
|
-
}): IndexerWorksetReadRequest;
|
|
73
|
-
export declare function validateIndexerWorksetReadRequest(input: {
|
|
74
|
-
request: unknown;
|
|
75
|
-
expected_workset_digest: string;
|
|
76
|
-
allowed_refs: readonly string[];
|
|
77
|
-
}): IndexerWorksetReadRequest;
|
|
78
|
-
declare const readItemPayloadSchema: z.ZodObject<{
|
|
79
|
-
ref: z.ZodString;
|
|
80
|
-
value: z.ZodType<IndexerReadJson, z.ZodTypeDef, IndexerReadJson>;
|
|
81
|
-
}, "strict", z.ZodTypeAny, {
|
|
82
|
-
ref: string;
|
|
83
|
-
value: IndexerReadJson;
|
|
84
|
-
}, {
|
|
85
|
-
ref: string;
|
|
86
|
-
value: IndexerReadJson;
|
|
87
|
-
}>;
|
|
88
|
-
export declare const indexerWorksetReadResponseSchema: z.ZodEffects<z.ZodObject<{
|
|
89
|
-
protocol: z.ZodLiteral<"context.indexer.workset-read-response/v1">;
|
|
90
|
-
request_digest: z.ZodString;
|
|
91
|
-
workset_digest: z.ZodString;
|
|
92
|
-
read_kind: z.ZodEnum<["source", "evidence"]>;
|
|
93
|
-
items: z.ZodArray<z.ZodObject<{
|
|
94
|
-
ref: z.ZodString;
|
|
95
|
-
value: z.ZodType<IndexerReadJson, z.ZodTypeDef, IndexerReadJson>;
|
|
96
|
-
} & {
|
|
97
|
-
item_digest: z.ZodString;
|
|
98
|
-
}, "strict", z.ZodTypeAny, {
|
|
99
|
-
ref: string;
|
|
100
|
-
value: IndexerReadJson;
|
|
101
|
-
item_digest: string;
|
|
102
|
-
}, {
|
|
103
|
-
ref: string;
|
|
104
|
-
value: IndexerReadJson;
|
|
105
|
-
item_digest: string;
|
|
106
|
-
}>, "many">;
|
|
107
|
-
page_payload_digest: z.ZodString;
|
|
108
|
-
transport: z.ZodObject<{
|
|
109
|
-
request_cursor: z.ZodOptional<z.ZodString>;
|
|
110
|
-
next_cursor: z.ZodOptional<z.ZodString>;
|
|
111
|
-
complete: z.ZodBoolean;
|
|
112
|
-
}, "strict", z.ZodTypeAny, {
|
|
113
|
-
complete: boolean;
|
|
114
|
-
next_cursor?: string | undefined;
|
|
115
|
-
request_cursor?: string | undefined;
|
|
116
|
-
}, {
|
|
117
|
-
complete: boolean;
|
|
118
|
-
next_cursor?: string | undefined;
|
|
119
|
-
request_cursor?: string | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
}, "strict", z.ZodTypeAny, {
|
|
122
|
-
protocol: "context.indexer.workset-read-response/v1";
|
|
123
|
-
workset_digest: string;
|
|
124
|
-
request_digest: string;
|
|
125
|
-
transport: {
|
|
126
|
-
complete: boolean;
|
|
127
|
-
next_cursor?: string | undefined;
|
|
128
|
-
request_cursor?: string | undefined;
|
|
129
|
-
};
|
|
130
|
-
items: {
|
|
131
|
-
ref: string;
|
|
132
|
-
value: IndexerReadJson;
|
|
133
|
-
item_digest: string;
|
|
134
|
-
}[];
|
|
135
|
-
read_kind: "source" | "evidence";
|
|
136
|
-
page_payload_digest: string;
|
|
137
|
-
}, {
|
|
138
|
-
protocol: "context.indexer.workset-read-response/v1";
|
|
139
|
-
workset_digest: string;
|
|
140
|
-
request_digest: string;
|
|
141
|
-
transport: {
|
|
142
|
-
complete: boolean;
|
|
143
|
-
next_cursor?: string | undefined;
|
|
144
|
-
request_cursor?: string | undefined;
|
|
145
|
-
};
|
|
146
|
-
items: {
|
|
147
|
-
ref: string;
|
|
148
|
-
value: IndexerReadJson;
|
|
149
|
-
item_digest: string;
|
|
150
|
-
}[];
|
|
151
|
-
read_kind: "source" | "evidence";
|
|
152
|
-
page_payload_digest: string;
|
|
153
|
-
}>, {
|
|
154
|
-
protocol: "context.indexer.workset-read-response/v1";
|
|
155
|
-
workset_digest: string;
|
|
156
|
-
request_digest: string;
|
|
157
|
-
transport: {
|
|
158
|
-
complete: boolean;
|
|
159
|
-
next_cursor?: string | undefined;
|
|
160
|
-
request_cursor?: string | undefined;
|
|
161
|
-
};
|
|
162
|
-
items: {
|
|
163
|
-
ref: string;
|
|
164
|
-
value: IndexerReadJson;
|
|
165
|
-
item_digest: string;
|
|
166
|
-
}[];
|
|
167
|
-
read_kind: "source" | "evidence";
|
|
168
|
-
page_payload_digest: string;
|
|
169
|
-
}, {
|
|
170
|
-
protocol: "context.indexer.workset-read-response/v1";
|
|
171
|
-
workset_digest: string;
|
|
172
|
-
request_digest: string;
|
|
173
|
-
transport: {
|
|
174
|
-
complete: boolean;
|
|
175
|
-
next_cursor?: string | undefined;
|
|
176
|
-
request_cursor?: string | undefined;
|
|
177
|
-
};
|
|
178
|
-
items: {
|
|
179
|
-
ref: string;
|
|
180
|
-
value: IndexerReadJson;
|
|
181
|
-
item_digest: string;
|
|
182
|
-
}[];
|
|
183
|
-
read_kind: "source" | "evidence";
|
|
184
|
-
page_payload_digest: string;
|
|
185
|
-
}>;
|
|
186
|
-
export type IndexerWorksetReadResponse = z.infer<typeof indexerWorksetReadResponseSchema>;
|
|
187
|
-
type ReadItemPayload = z.infer<typeof readItemPayloadSchema>;
|
|
188
|
-
export declare function indexerWorksetReadItemDigest(value: ReadItemPayload): string;
|
|
189
|
-
type ReadPagePayload = Pick<IndexerWorksetReadResponse, "protocol" | "request_digest" | "workset_digest" | "read_kind" | "items">;
|
|
190
|
-
export declare function indexerWorksetReadPagePayloadDigest(value: ReadPagePayload): string;
|
|
191
|
-
export declare function buildIndexerWorksetReadResponse(input: {
|
|
192
|
-
request: IndexerWorksetReadRequest;
|
|
193
|
-
items: readonly ReadItemPayload[];
|
|
194
|
-
request_cursor?: string;
|
|
195
|
-
next_cursor?: string;
|
|
196
|
-
}): IndexerWorksetReadResponse;
|
|
197
|
-
export declare function validateIndexerWorksetReadResponse(input: {
|
|
198
|
-
response: unknown;
|
|
199
|
-
request: IndexerWorksetReadRequest;
|
|
200
|
-
}): IndexerWorksetReadResponse;
|
|
201
|
-
declare const readSetEntrySchema: z.ZodObject<{
|
|
202
|
-
ref: z.ZodString;
|
|
203
|
-
item_digest: z.ZodString;
|
|
204
|
-
}, "strict", z.ZodTypeAny, {
|
|
205
|
-
ref: string;
|
|
206
|
-
item_digest: string;
|
|
207
|
-
}, {
|
|
208
|
-
ref: string;
|
|
209
|
-
item_digest: string;
|
|
210
|
-
}>;
|
|
211
|
-
export declare const indexerWorksetReadReceiptSchema: z.ZodEffects<z.ZodObject<{
|
|
212
|
-
protocol: z.ZodLiteral<"context.indexer.workset-read-receipt/v1">;
|
|
213
|
-
workset_digest: z.ZodString;
|
|
214
|
-
request_digest: z.ZodString;
|
|
215
|
-
read_kind: z.ZodEnum<["source", "evidence"]>;
|
|
216
|
-
read_set: z.ZodArray<z.ZodObject<{
|
|
217
|
-
ref: z.ZodString;
|
|
218
|
-
item_digest: z.ZodString;
|
|
219
|
-
}, "strict", z.ZodTypeAny, {
|
|
220
|
-
ref: string;
|
|
221
|
-
item_digest: string;
|
|
222
|
-
}, {
|
|
223
|
-
ref: string;
|
|
224
|
-
item_digest: string;
|
|
225
|
-
}>, "many">;
|
|
226
|
-
read_set_digest: z.ZodString;
|
|
227
|
-
page_payload_digests: z.ZodArray<z.ZodString, "many">;
|
|
228
|
-
receipt_digest: z.ZodString;
|
|
229
|
-
}, "strict", z.ZodTypeAny, {
|
|
230
|
-
protocol: "context.indexer.workset-read-receipt/v1";
|
|
231
|
-
workset_digest: string;
|
|
232
|
-
request_digest: string;
|
|
233
|
-
receipt_digest: string;
|
|
234
|
-
read_kind: "source" | "evidence";
|
|
235
|
-
read_set: {
|
|
236
|
-
ref: string;
|
|
237
|
-
item_digest: string;
|
|
238
|
-
}[];
|
|
239
|
-
read_set_digest: string;
|
|
240
|
-
page_payload_digests: string[];
|
|
241
|
-
}, {
|
|
242
|
-
protocol: "context.indexer.workset-read-receipt/v1";
|
|
243
|
-
workset_digest: string;
|
|
244
|
-
request_digest: string;
|
|
245
|
-
receipt_digest: string;
|
|
246
|
-
read_kind: "source" | "evidence";
|
|
247
|
-
read_set: {
|
|
248
|
-
ref: string;
|
|
249
|
-
item_digest: string;
|
|
250
|
-
}[];
|
|
251
|
-
read_set_digest: string;
|
|
252
|
-
page_payload_digests: string[];
|
|
253
|
-
}>, {
|
|
254
|
-
protocol: "context.indexer.workset-read-receipt/v1";
|
|
255
|
-
workset_digest: string;
|
|
256
|
-
request_digest: string;
|
|
257
|
-
receipt_digest: string;
|
|
258
|
-
read_kind: "source" | "evidence";
|
|
259
|
-
read_set: {
|
|
260
|
-
ref: string;
|
|
261
|
-
item_digest: string;
|
|
262
|
-
}[];
|
|
263
|
-
read_set_digest: string;
|
|
264
|
-
page_payload_digests: string[];
|
|
265
|
-
}, {
|
|
266
|
-
protocol: "context.indexer.workset-read-receipt/v1";
|
|
267
|
-
workset_digest: string;
|
|
268
|
-
request_digest: string;
|
|
269
|
-
receipt_digest: string;
|
|
270
|
-
read_kind: "source" | "evidence";
|
|
271
|
-
read_set: {
|
|
272
|
-
ref: string;
|
|
273
|
-
item_digest: string;
|
|
274
|
-
}[];
|
|
275
|
-
read_set_digest: string;
|
|
276
|
-
page_payload_digests: string[];
|
|
277
|
-
}>;
|
|
278
|
-
export type IndexerWorksetReadReceipt = z.infer<typeof indexerWorksetReadReceiptSchema>;
|
|
279
|
-
type ReadReceiptPayload = Omit<IndexerWorksetReadReceipt, "receipt_digest">;
|
|
280
|
-
export declare function indexerWorksetReadSetDigest(value: readonly z.infer<typeof readSetEntrySchema>[]): string;
|
|
281
|
-
export declare function indexerWorksetReadReceiptDigest(value: ReadReceiptPayload): string;
|
|
282
|
-
export declare function buildIndexerWorksetReadReceipt(input: {
|
|
283
|
-
request: IndexerWorksetReadRequest;
|
|
284
|
-
responses: readonly unknown[];
|
|
285
|
-
}): IndexerWorksetReadReceipt;
|
|
286
|
-
export declare function validateIndexerWorksetReadReceipt(value: unknown): IndexerWorksetReadReceipt;
|
|
287
|
-
export {};
|