@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,159 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const INDEXER_PROJECTED_ARTIFACT_WARNING_THRESHOLD = 100;
|
|
3
|
+
export declare const INDEXER_PROJECTED_ARTIFACT_REVISION_THRESHOLD = 300;
|
|
4
|
+
declare const projectedArtifactDiagnosticSchema: z.ZodObject<{
|
|
5
|
+
projection_ref: z.ZodString;
|
|
6
|
+
projection_key: z.ZodString;
|
|
7
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
missing_requirements: z.ZodArray<z.ZodEnum<["logical-unit-owner", "bundle-variant", "evidence-justification"]>, "many">;
|
|
9
|
+
}, "strict", z.ZodTypeAny, {
|
|
10
|
+
artifact_id: string;
|
|
11
|
+
projection_ref: string;
|
|
12
|
+
projection_key: string;
|
|
13
|
+
missing_requirements: ("logical-unit-owner" | "bundle-variant" | "evidence-justification")[];
|
|
14
|
+
}, {
|
|
15
|
+
artifact_id: string;
|
|
16
|
+
projection_ref: string;
|
|
17
|
+
projection_key: string;
|
|
18
|
+
missing_requirements: ("logical-unit-owner" | "bundle-variant" | "evidence-justification")[];
|
|
19
|
+
}>;
|
|
20
|
+
export declare const indexerProjectedArtifactFanOutAuditSchema: z.ZodObject<{
|
|
21
|
+
protocol: z.ZodLiteral<"context.indexer.projected-artifact-fan-out-audit/v1">;
|
|
22
|
+
partition_plan_hash: z.ZodString;
|
|
23
|
+
projected_artifact_plan_digest: z.ZodString;
|
|
24
|
+
artifact_bundle_set_digest: z.ZodString;
|
|
25
|
+
state: z.ZodEnum<["ready", "warning", "plan-revision-required"]>;
|
|
26
|
+
thresholds: z.ZodObject<{
|
|
27
|
+
warning_above: z.ZodLiteral<100>;
|
|
28
|
+
revision_above: z.ZodLiteral<300>;
|
|
29
|
+
}, "strict", z.ZodTypeAny, {
|
|
30
|
+
warning_above: 100;
|
|
31
|
+
revision_above: 300;
|
|
32
|
+
}, {
|
|
33
|
+
warning_above: 100;
|
|
34
|
+
revision_above: 300;
|
|
35
|
+
}>;
|
|
36
|
+
summary: z.ZodObject<{
|
|
37
|
+
projected_artifact_count: z.ZodNumber;
|
|
38
|
+
legally_assigned_artifact_count: z.ZodNumber;
|
|
39
|
+
unassigned_projected_artifact_count: z.ZodNumber;
|
|
40
|
+
}, "strict", z.ZodTypeAny, {
|
|
41
|
+
projected_artifact_count: number;
|
|
42
|
+
legally_assigned_artifact_count: number;
|
|
43
|
+
unassigned_projected_artifact_count: number;
|
|
44
|
+
}, {
|
|
45
|
+
projected_artifact_count: number;
|
|
46
|
+
legally_assigned_artifact_count: number;
|
|
47
|
+
unassigned_projected_artifact_count: number;
|
|
48
|
+
}>;
|
|
49
|
+
unassigned_projection_refs_digest: z.ZodString;
|
|
50
|
+
diagnostic_sample: z.ZodArray<z.ZodObject<{
|
|
51
|
+
projection_ref: z.ZodString;
|
|
52
|
+
projection_key: z.ZodString;
|
|
53
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
54
|
+
missing_requirements: z.ZodArray<z.ZodEnum<["logical-unit-owner", "bundle-variant", "evidence-justification"]>, "many">;
|
|
55
|
+
}, "strict", z.ZodTypeAny, {
|
|
56
|
+
artifact_id: string;
|
|
57
|
+
projection_ref: string;
|
|
58
|
+
projection_key: string;
|
|
59
|
+
missing_requirements: ("logical-unit-owner" | "bundle-variant" | "evidence-justification")[];
|
|
60
|
+
}, {
|
|
61
|
+
artifact_id: string;
|
|
62
|
+
projection_ref: string;
|
|
63
|
+
projection_key: string;
|
|
64
|
+
missing_requirements: ("logical-unit-owner" | "bundle-variant" | "evidence-justification")[];
|
|
65
|
+
}>, "many">;
|
|
66
|
+
diagnostic_sample_truncated: z.ZodBoolean;
|
|
67
|
+
candidate_materialization_allowed: z.ZodBoolean;
|
|
68
|
+
user_gate_required: z.ZodLiteral<false>;
|
|
69
|
+
profile_revision_ledger_consumed: z.ZodLiteral<false>;
|
|
70
|
+
outcome: z.ZodEnum<["projected-artifact-fan-out-current", "indexer-plan-revision-required"]>;
|
|
71
|
+
graph_outcome: z.ZodEnum<["completed", "partial"]>;
|
|
72
|
+
} & {
|
|
73
|
+
audit_digest: z.ZodString;
|
|
74
|
+
}, "strict", z.ZodTypeAny, {
|
|
75
|
+
protocol: "context.indexer.projected-artifact-fan-out-audit/v1";
|
|
76
|
+
thresholds: {
|
|
77
|
+
warning_above: 100;
|
|
78
|
+
revision_above: 300;
|
|
79
|
+
};
|
|
80
|
+
state: "warning" | "ready" | "plan-revision-required";
|
|
81
|
+
audit_digest: string;
|
|
82
|
+
partition_plan_hash: string;
|
|
83
|
+
outcome: "projected-artifact-fan-out-current" | "indexer-plan-revision-required";
|
|
84
|
+
user_gate_required: false;
|
|
85
|
+
profile_revision_ledger_consumed: false;
|
|
86
|
+
graph_outcome: "partial" | "completed";
|
|
87
|
+
summary: {
|
|
88
|
+
projected_artifact_count: number;
|
|
89
|
+
legally_assigned_artifact_count: number;
|
|
90
|
+
unassigned_projected_artifact_count: number;
|
|
91
|
+
};
|
|
92
|
+
projected_artifact_plan_digest: string;
|
|
93
|
+
artifact_bundle_set_digest: string;
|
|
94
|
+
unassigned_projection_refs_digest: string;
|
|
95
|
+
diagnostic_sample: {
|
|
96
|
+
artifact_id: string;
|
|
97
|
+
projection_ref: string;
|
|
98
|
+
projection_key: string;
|
|
99
|
+
missing_requirements: ("logical-unit-owner" | "bundle-variant" | "evidence-justification")[];
|
|
100
|
+
}[];
|
|
101
|
+
diagnostic_sample_truncated: boolean;
|
|
102
|
+
candidate_materialization_allowed: boolean;
|
|
103
|
+
}, {
|
|
104
|
+
protocol: "context.indexer.projected-artifact-fan-out-audit/v1";
|
|
105
|
+
thresholds: {
|
|
106
|
+
warning_above: 100;
|
|
107
|
+
revision_above: 300;
|
|
108
|
+
};
|
|
109
|
+
state: "warning" | "ready" | "plan-revision-required";
|
|
110
|
+
audit_digest: string;
|
|
111
|
+
partition_plan_hash: string;
|
|
112
|
+
outcome: "projected-artifact-fan-out-current" | "indexer-plan-revision-required";
|
|
113
|
+
user_gate_required: false;
|
|
114
|
+
profile_revision_ledger_consumed: false;
|
|
115
|
+
graph_outcome: "partial" | "completed";
|
|
116
|
+
summary: {
|
|
117
|
+
projected_artifact_count: number;
|
|
118
|
+
legally_assigned_artifact_count: number;
|
|
119
|
+
unassigned_projected_artifact_count: number;
|
|
120
|
+
};
|
|
121
|
+
projected_artifact_plan_digest: string;
|
|
122
|
+
artifact_bundle_set_digest: string;
|
|
123
|
+
unassigned_projection_refs_digest: string;
|
|
124
|
+
diagnostic_sample: {
|
|
125
|
+
artifact_id: string;
|
|
126
|
+
projection_ref: string;
|
|
127
|
+
projection_key: string;
|
|
128
|
+
missing_requirements: ("logical-unit-owner" | "bundle-variant" | "evidence-justification")[];
|
|
129
|
+
}[];
|
|
130
|
+
diagnostic_sample_truncated: boolean;
|
|
131
|
+
candidate_materialization_allowed: boolean;
|
|
132
|
+
}>;
|
|
133
|
+
export type IndexerProjectedArtifactDiagnostic = z.infer<typeof projectedArtifactDiagnosticSchema>;
|
|
134
|
+
export type IndexerProjectedArtifactFanOutAudit = z.infer<typeof indexerProjectedArtifactFanOutAuditSchema>;
|
|
135
|
+
export declare function auditIndexerProjectedArtifactFanOut(input: {
|
|
136
|
+
partition_plan: unknown;
|
|
137
|
+
projected_artifact_plan: unknown;
|
|
138
|
+
artifact_bundles: readonly unknown[];
|
|
139
|
+
artifact_policy_eligibilities: readonly {
|
|
140
|
+
logical_unit_ref: string;
|
|
141
|
+
report: unknown;
|
|
142
|
+
}[];
|
|
143
|
+
}): IndexerProjectedArtifactFanOutAudit;
|
|
144
|
+
export declare function validateIndexerProjectedArtifactFanOutAudit(value: unknown): IndexerProjectedArtifactFanOutAudit;
|
|
145
|
+
export declare function evaluateIndexerCandidateMaterialization(input: {
|
|
146
|
+
partition_plan: unknown;
|
|
147
|
+
projected_artifact_plan: unknown;
|
|
148
|
+
artifact_bundles: readonly unknown[];
|
|
149
|
+
artifact_policy_eligibilities: readonly {
|
|
150
|
+
logical_unit_ref: string;
|
|
151
|
+
report: unknown;
|
|
152
|
+
}[];
|
|
153
|
+
}): {
|
|
154
|
+
audit: IndexerProjectedArtifactFanOutAudit;
|
|
155
|
+
can_materialize_candidate: boolean;
|
|
156
|
+
outcome: "projected-artifact-fan-out-current" | "indexer-plan-revision-required";
|
|
157
|
+
graph_outcome: "completed" | "partial";
|
|
158
|
+
};
|
|
159
|
+
export {};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const projectedArtifactOwnerSchema: z.ZodObject<{
|
|
3
|
+
kind: z.ZodEnum<["partition-group", "catalog-fallback"]>;
|
|
4
|
+
group_key: z.ZodString;
|
|
5
|
+
logical_unit_ref: z.ZodString;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
kind: "catalog-fallback" | "partition-group";
|
|
8
|
+
logical_unit_ref: string;
|
|
9
|
+
group_key: string;
|
|
10
|
+
}, {
|
|
11
|
+
kind: "catalog-fallback" | "partition-group";
|
|
12
|
+
logical_unit_ref: string;
|
|
13
|
+
group_key: string;
|
|
14
|
+
}>;
|
|
15
|
+
declare const projectedArtifactSchema: z.ZodObject<{
|
|
16
|
+
projection_ref: z.ZodString;
|
|
17
|
+
projection_key: z.ZodEffects<z.ZodString, string, string>;
|
|
18
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
19
|
+
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
20
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
kind: z.ZodEnum<["partition-group", "catalog-fallback"]>;
|
|
22
|
+
group_key: z.ZodString;
|
|
23
|
+
logical_unit_ref: z.ZodString;
|
|
24
|
+
}, "strict", z.ZodTypeAny, {
|
|
25
|
+
kind: "catalog-fallback" | "partition-group";
|
|
26
|
+
logical_unit_ref: string;
|
|
27
|
+
group_key: string;
|
|
28
|
+
}, {
|
|
29
|
+
kind: "catalog-fallback" | "partition-group";
|
|
30
|
+
logical_unit_ref: string;
|
|
31
|
+
group_key: string;
|
|
32
|
+
}>>;
|
|
33
|
+
bundle_binding: z.ZodNullable<z.ZodObject<{
|
|
34
|
+
bundle_digest: z.ZodString;
|
|
35
|
+
artifact_policy_eligibility_digest: z.ZodString;
|
|
36
|
+
artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
|
|
37
|
+
}, "strict", z.ZodTypeAny, {
|
|
38
|
+
artifact_policy_variant: string;
|
|
39
|
+
bundle_digest: string;
|
|
40
|
+
artifact_policy_eligibility_digest: string;
|
|
41
|
+
}, {
|
|
42
|
+
artifact_policy_variant: string;
|
|
43
|
+
bundle_digest: string;
|
|
44
|
+
artifact_policy_eligibility_digest: string;
|
|
45
|
+
}>>;
|
|
46
|
+
evidence_justification_refs: z.ZodArray<z.ZodString, "many">;
|
|
47
|
+
}, "strict", z.ZodTypeAny, {
|
|
48
|
+
artifact_kind: string;
|
|
49
|
+
artifact_id: string;
|
|
50
|
+
owner: {
|
|
51
|
+
kind: "catalog-fallback" | "partition-group";
|
|
52
|
+
logical_unit_ref: string;
|
|
53
|
+
group_key: string;
|
|
54
|
+
} | null;
|
|
55
|
+
projection_ref: string;
|
|
56
|
+
projection_key: string;
|
|
57
|
+
bundle_binding: {
|
|
58
|
+
artifact_policy_variant: string;
|
|
59
|
+
bundle_digest: string;
|
|
60
|
+
artifact_policy_eligibility_digest: string;
|
|
61
|
+
} | null;
|
|
62
|
+
evidence_justification_refs: string[];
|
|
63
|
+
}, {
|
|
64
|
+
artifact_kind: string;
|
|
65
|
+
artifact_id: string;
|
|
66
|
+
owner: {
|
|
67
|
+
kind: "catalog-fallback" | "partition-group";
|
|
68
|
+
logical_unit_ref: string;
|
|
69
|
+
group_key: string;
|
|
70
|
+
} | null;
|
|
71
|
+
projection_ref: string;
|
|
72
|
+
projection_key: string;
|
|
73
|
+
bundle_binding: {
|
|
74
|
+
artifact_policy_variant: string;
|
|
75
|
+
bundle_digest: string;
|
|
76
|
+
artifact_policy_eligibility_digest: string;
|
|
77
|
+
} | null;
|
|
78
|
+
evidence_justification_refs: string[];
|
|
79
|
+
}>;
|
|
80
|
+
export declare const indexerProjectedArtifactPlanSchema: z.ZodObject<{
|
|
81
|
+
protocol: z.ZodLiteral<"context.indexer.projected-artifact-plan/v1">;
|
|
82
|
+
partition_workset_digest: z.ZodString;
|
|
83
|
+
partition_plan_hash: z.ZodString;
|
|
84
|
+
projected_artifacts: z.ZodArray<z.ZodObject<{
|
|
85
|
+
projection_ref: z.ZodString;
|
|
86
|
+
projection_key: z.ZodEffects<z.ZodString, string, string>;
|
|
87
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
88
|
+
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
89
|
+
owner: z.ZodNullable<z.ZodObject<{
|
|
90
|
+
kind: z.ZodEnum<["partition-group", "catalog-fallback"]>;
|
|
91
|
+
group_key: z.ZodString;
|
|
92
|
+
logical_unit_ref: z.ZodString;
|
|
93
|
+
}, "strict", z.ZodTypeAny, {
|
|
94
|
+
kind: "catalog-fallback" | "partition-group";
|
|
95
|
+
logical_unit_ref: string;
|
|
96
|
+
group_key: string;
|
|
97
|
+
}, {
|
|
98
|
+
kind: "catalog-fallback" | "partition-group";
|
|
99
|
+
logical_unit_ref: string;
|
|
100
|
+
group_key: string;
|
|
101
|
+
}>>;
|
|
102
|
+
bundle_binding: z.ZodNullable<z.ZodObject<{
|
|
103
|
+
bundle_digest: z.ZodString;
|
|
104
|
+
artifact_policy_eligibility_digest: z.ZodString;
|
|
105
|
+
artifact_policy_variant: z.ZodEffects<z.ZodString, string, string>;
|
|
106
|
+
}, "strict", z.ZodTypeAny, {
|
|
107
|
+
artifact_policy_variant: string;
|
|
108
|
+
bundle_digest: string;
|
|
109
|
+
artifact_policy_eligibility_digest: string;
|
|
110
|
+
}, {
|
|
111
|
+
artifact_policy_variant: string;
|
|
112
|
+
bundle_digest: string;
|
|
113
|
+
artifact_policy_eligibility_digest: string;
|
|
114
|
+
}>>;
|
|
115
|
+
evidence_justification_refs: z.ZodArray<z.ZodString, "many">;
|
|
116
|
+
}, "strict", z.ZodTypeAny, {
|
|
117
|
+
artifact_kind: string;
|
|
118
|
+
artifact_id: string;
|
|
119
|
+
owner: {
|
|
120
|
+
kind: "catalog-fallback" | "partition-group";
|
|
121
|
+
logical_unit_ref: string;
|
|
122
|
+
group_key: string;
|
|
123
|
+
} | null;
|
|
124
|
+
projection_ref: string;
|
|
125
|
+
projection_key: string;
|
|
126
|
+
bundle_binding: {
|
|
127
|
+
artifact_policy_variant: string;
|
|
128
|
+
bundle_digest: string;
|
|
129
|
+
artifact_policy_eligibility_digest: string;
|
|
130
|
+
} | null;
|
|
131
|
+
evidence_justification_refs: string[];
|
|
132
|
+
}, {
|
|
133
|
+
artifact_kind: string;
|
|
134
|
+
artifact_id: string;
|
|
135
|
+
owner: {
|
|
136
|
+
kind: "catalog-fallback" | "partition-group";
|
|
137
|
+
logical_unit_ref: string;
|
|
138
|
+
group_key: string;
|
|
139
|
+
} | null;
|
|
140
|
+
projection_ref: string;
|
|
141
|
+
projection_key: string;
|
|
142
|
+
bundle_binding: {
|
|
143
|
+
artifact_policy_variant: string;
|
|
144
|
+
bundle_digest: string;
|
|
145
|
+
artifact_policy_eligibility_digest: string;
|
|
146
|
+
} | null;
|
|
147
|
+
evidence_justification_refs: string[];
|
|
148
|
+
}>, "many">;
|
|
149
|
+
} & {
|
|
150
|
+
plan_digest: z.ZodString;
|
|
151
|
+
}, "strict", z.ZodTypeAny, {
|
|
152
|
+
protocol: "context.indexer.projected-artifact-plan/v1";
|
|
153
|
+
partition_workset_digest: string;
|
|
154
|
+
partition_plan_hash: string;
|
|
155
|
+
plan_digest: string;
|
|
156
|
+
projected_artifacts: {
|
|
157
|
+
artifact_kind: string;
|
|
158
|
+
artifact_id: string;
|
|
159
|
+
owner: {
|
|
160
|
+
kind: "catalog-fallback" | "partition-group";
|
|
161
|
+
logical_unit_ref: string;
|
|
162
|
+
group_key: string;
|
|
163
|
+
} | null;
|
|
164
|
+
projection_ref: string;
|
|
165
|
+
projection_key: string;
|
|
166
|
+
bundle_binding: {
|
|
167
|
+
artifact_policy_variant: string;
|
|
168
|
+
bundle_digest: string;
|
|
169
|
+
artifact_policy_eligibility_digest: string;
|
|
170
|
+
} | null;
|
|
171
|
+
evidence_justification_refs: string[];
|
|
172
|
+
}[];
|
|
173
|
+
}, {
|
|
174
|
+
protocol: "context.indexer.projected-artifact-plan/v1";
|
|
175
|
+
partition_workset_digest: string;
|
|
176
|
+
partition_plan_hash: string;
|
|
177
|
+
plan_digest: string;
|
|
178
|
+
projected_artifacts: {
|
|
179
|
+
artifact_kind: string;
|
|
180
|
+
artifact_id: string;
|
|
181
|
+
owner: {
|
|
182
|
+
kind: "catalog-fallback" | "partition-group";
|
|
183
|
+
logical_unit_ref: string;
|
|
184
|
+
group_key: string;
|
|
185
|
+
} | null;
|
|
186
|
+
projection_ref: string;
|
|
187
|
+
projection_key: string;
|
|
188
|
+
bundle_binding: {
|
|
189
|
+
artifact_policy_variant: string;
|
|
190
|
+
bundle_digest: string;
|
|
191
|
+
artifact_policy_eligibility_digest: string;
|
|
192
|
+
} | null;
|
|
193
|
+
evidence_justification_refs: string[];
|
|
194
|
+
}[];
|
|
195
|
+
}>;
|
|
196
|
+
export type IndexerProjectedArtifactOwner = z.infer<typeof projectedArtifactOwnerSchema>;
|
|
197
|
+
export type IndexerProjectedArtifact = z.infer<typeof projectedArtifactSchema>;
|
|
198
|
+
export type IndexerProjectedArtifactPlan = z.infer<typeof indexerProjectedArtifactPlanSchema>;
|
|
199
|
+
export interface IndexerProjectedArtifactInput {
|
|
200
|
+
projection_key: string;
|
|
201
|
+
artifact_id: string;
|
|
202
|
+
artifact_kind: string;
|
|
203
|
+
owner?: IndexerProjectedArtifactOwner | null;
|
|
204
|
+
bundle_binding?: {
|
|
205
|
+
bundle_digest: string;
|
|
206
|
+
artifact_policy_eligibility_digest: string;
|
|
207
|
+
artifact_policy_variant: string;
|
|
208
|
+
} | null;
|
|
209
|
+
evidence_justification_refs?: readonly string[];
|
|
210
|
+
}
|
|
211
|
+
export declare function buildIndexerProjectedArtifactPlan(input: {
|
|
212
|
+
partition_workset_digest: string;
|
|
213
|
+
partition_plan_hash: string;
|
|
214
|
+
projected_artifacts: readonly IndexerProjectedArtifactInput[];
|
|
215
|
+
}): IndexerProjectedArtifactPlan;
|
|
216
|
+
export declare function validateIndexerProjectedArtifactPlan(value: unknown): IndexerProjectedArtifactPlan;
|
|
217
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const INDEXER_PROVIDER_MANIFEST_NAME = "context-indexer.yaml";
|
|
3
|
+
export declare const DEFAULT_INDEXER_REGISTRY_PATH = "src/indexers.yaml";
|
|
4
|
+
export declare const INDEXER_SEMANTIC_OPERATIONS: readonly ["main-index", "material-answer"];
|
|
5
|
+
export type IndexerSemanticOperation = typeof INDEXER_SEMANTIC_OPERATIONS[number];
|
|
6
|
+
export declare const INDEXER_COVERAGE_DOMAINS: readonly ["technical-structure", "public-contract", "business-semantics", "operations"];
|
|
7
|
+
export type IndexerCoverageDomain = typeof INDEXER_COVERAGE_DOMAINS[number];
|
|
8
|
+
export declare const INDEXER_EVIDENCE_KINDS: readonly ["code", "contract", "configuration", "documentation", "runbook", "decision-record", "test-result", "runtime-observation", "tool-snapshot"];
|
|
9
|
+
export type IndexerEvidenceKind = typeof INDEXER_EVIDENCE_KINDS[number];
|
|
10
|
+
export declare const INDEXER_LAYER_FRAGMENT_KINDS: readonly ["fact-enrichment", "template-variables", "derived-artifact-proposal"];
|
|
11
|
+
export type IndexerLayerFragmentKind = typeof INDEXER_LAYER_FRAGMENT_KINDS[number];
|
|
12
|
+
export declare const INDEXER_PROGRAM_CAPABILITIES: readonly ["source.read", "parser-facts.read", "indexer-result.write"];
|
|
13
|
+
export type IndexerProgramCapability = typeof INDEXER_PROGRAM_CAPABILITIES[number];
|
|
14
|
+
export declare const INDEXER_SUBJECT_DERIVATION_OPERATORS: readonly ["canonical-source-module-namespace", "canonical-service-namespace", "canonical-module-identity", "canonical-export-family"];
|
|
15
|
+
export type IndexerSubjectDerivationOperator = typeof INDEXER_SUBJECT_DERIVATION_OPERATORS[number];
|
|
16
|
+
export declare const INDEXER_SUBJECT_NORMALIZATIONS: readonly ["trim", "unicode-nfc", "preserve-case", "lowercase"];
|
|
17
|
+
export type IndexerSubjectNormalization = typeof INDEXER_SUBJECT_NORMALIZATIONS[number];
|
|
18
|
+
export declare const indexerDigestSchema: z.ZodString;
|
|
19
|
+
export declare const indexerIdSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
20
|
+
export declare const indexerSnakeCaseIdSchema: z.ZodString;
|
|
21
|
+
export declare const indexerSemverSchema: z.ZodString;
|
|
22
|
+
export declare const indexerProtocolIdSchema: z.ZodString;
|
|
23
|
+
export declare function isPortableIndexerPath(value: string): boolean;
|
|
24
|
+
export declare const portableIndexerPathSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
+
export declare function compareIndexerCanonicalText(left: string, right: string): number;
|
|
26
|
+
export declare function canonicalIndexerJson(value: unknown): string;
|
|
27
|
+
export declare function indexerProtocolDigest(value: unknown): string;
|
|
28
|
+
export declare function formatIndexerSchemaIssues(issues: readonly z.ZodIssue[]): string;
|
|
29
|
+
export declare function addDuplicateIssues(values: readonly string[], context: z.RefinementCtx, field: string): void;
|