@c4a/context 0.6.19 → 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 +1 -1
- package/README.zh-CN.md +1 -1
- package/codeIndexPlan.d.ts +34 -0
- package/docs/README.md +7 -0
- package/docs/README.zh-CN.md +5 -0
- package/docs/guides/code-indexer-skill-authoring.md +124 -0
- package/docs/guides/indexer-provider-and-customization.md +140 -0
- package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
- package/docs/reference/code-extractors.md +2 -2
- package/docs/reference/indexer-provider-protocol.md +819 -0
- package/docs/reference/project-api.md +2 -2
- package/index.d.ts +47 -1
- package/index.js +28239 -3952
- 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 +1 -1
|
@@ -0,0 +1,116 @@
|
|
|
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;
|