@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,103 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const INDEXER_CUSTOMIZATION_LADDER_STEPS: readonly ["provider-only", "config", "instructions-append", "template-override", "program-extend", "replace"];
|
|
3
|
+
export declare const indexerCustomizationLadderStepSchema: z.ZodEnum<["provider-only", "config", "instructions-append", "template-override", "program-extend", "replace"]>;
|
|
4
|
+
export type IndexerCustomizationLadderStep = z.infer<typeof indexerCustomizationLadderStepSchema>;
|
|
5
|
+
declare const rejectedStepSchema: z.ZodObject<{
|
|
6
|
+
step: z.ZodEnum<["provider-only", "config", "instructions-append", "template-override", "program-extend", "replace"]>;
|
|
7
|
+
disposition: z.ZodEnum<["unsupported", "insufficient"]>;
|
|
8
|
+
reason_code: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
+
evidence_digest: z.ZodString;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
disposition: "unsupported" | "insufficient";
|
|
12
|
+
step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
13
|
+
evidence_digest: string;
|
|
14
|
+
reason_code: string;
|
|
15
|
+
}, {
|
|
16
|
+
disposition: "unsupported" | "insufficient";
|
|
17
|
+
step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
18
|
+
evidence_digest: string;
|
|
19
|
+
reason_code: string;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const indexerCustomizationPlanSchema: z.ZodObject<{
|
|
22
|
+
protocol: z.ZodLiteral<"context.indexer.customization-plan/v1">;
|
|
23
|
+
project_ref: z.ZodString;
|
|
24
|
+
indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
+
provider_integrity: z.ZodString;
|
|
26
|
+
capability_gap_digest: z.ZodNullable<z.ZodString>;
|
|
27
|
+
selected_step: z.ZodEnum<["provider-only", "config", "instructions-append", "template-override", "program-extend", "replace"]>;
|
|
28
|
+
rejected_smaller_steps: z.ZodArray<z.ZodObject<{
|
|
29
|
+
step: z.ZodEnum<["provider-only", "config", "instructions-append", "template-override", "program-extend", "replace"]>;
|
|
30
|
+
disposition: z.ZodEnum<["unsupported", "insufficient"]>;
|
|
31
|
+
reason_code: z.ZodEffects<z.ZodString, string, string>;
|
|
32
|
+
evidence_digest: z.ZodString;
|
|
33
|
+
}, "strict", z.ZodTypeAny, {
|
|
34
|
+
disposition: "unsupported" | "insufficient";
|
|
35
|
+
step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
36
|
+
evidence_digest: string;
|
|
37
|
+
reason_code: string;
|
|
38
|
+
}, {
|
|
39
|
+
disposition: "unsupported" | "insufficient";
|
|
40
|
+
step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
41
|
+
evidence_digest: string;
|
|
42
|
+
reason_code: string;
|
|
43
|
+
}>, "many">;
|
|
44
|
+
extend_attempt_digests: z.ZodArray<z.ZodString, "many">;
|
|
45
|
+
affected_scope_refs: z.ZodArray<z.ZodString, "many">;
|
|
46
|
+
introduces_external_dependencies: z.ZodBoolean;
|
|
47
|
+
workspace_mode: z.ZodEnum<["registry-only", "extend", "replace"]>;
|
|
48
|
+
requires_human_confirmation: z.ZodBoolean;
|
|
49
|
+
} & {
|
|
50
|
+
plan_digest: z.ZodString;
|
|
51
|
+
}, "strict", z.ZodTypeAny, {
|
|
52
|
+
protocol: "context.indexer.customization-plan/v1";
|
|
53
|
+
indexer_id: string;
|
|
54
|
+
project_ref: string;
|
|
55
|
+
provider_integrity: string;
|
|
56
|
+
capability_gap_digest: string | null;
|
|
57
|
+
selected_step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
58
|
+
rejected_smaller_steps: {
|
|
59
|
+
disposition: "unsupported" | "insufficient";
|
|
60
|
+
step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
61
|
+
evidence_digest: string;
|
|
62
|
+
reason_code: string;
|
|
63
|
+
}[];
|
|
64
|
+
extend_attempt_digests: string[];
|
|
65
|
+
affected_scope_refs: string[];
|
|
66
|
+
introduces_external_dependencies: boolean;
|
|
67
|
+
workspace_mode: "replace" | "extend" | "registry-only";
|
|
68
|
+
requires_human_confirmation: boolean;
|
|
69
|
+
plan_digest: string;
|
|
70
|
+
}, {
|
|
71
|
+
protocol: "context.indexer.customization-plan/v1";
|
|
72
|
+
indexer_id: string;
|
|
73
|
+
project_ref: string;
|
|
74
|
+
provider_integrity: string;
|
|
75
|
+
capability_gap_digest: string | null;
|
|
76
|
+
selected_step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
77
|
+
rejected_smaller_steps: {
|
|
78
|
+
disposition: "unsupported" | "insufficient";
|
|
79
|
+
step: "replace" | "config" | "instructions-append" | "template-override" | "program-extend" | "provider-only";
|
|
80
|
+
evidence_digest: string;
|
|
81
|
+
reason_code: string;
|
|
82
|
+
}[];
|
|
83
|
+
extend_attempt_digests: string[];
|
|
84
|
+
affected_scope_refs: string[];
|
|
85
|
+
introduces_external_dependencies: boolean;
|
|
86
|
+
workspace_mode: "replace" | "extend" | "registry-only";
|
|
87
|
+
requires_human_confirmation: boolean;
|
|
88
|
+
plan_digest: string;
|
|
89
|
+
}>;
|
|
90
|
+
export type IndexerCustomizationPlan = z.infer<typeof indexerCustomizationPlanSchema>;
|
|
91
|
+
export declare function buildIndexerCustomizationPlan(input: {
|
|
92
|
+
project_ref: string;
|
|
93
|
+
indexer_id: string;
|
|
94
|
+
provider_integrity: string;
|
|
95
|
+
capability_gap_digest: string | null;
|
|
96
|
+
selected_step: IndexerCustomizationLadderStep;
|
|
97
|
+
rejected_smaller_steps: readonly z.input<typeof rejectedStepSchema>[];
|
|
98
|
+
extend_attempt_digests?: readonly string[];
|
|
99
|
+
affected_scope_refs: readonly string[];
|
|
100
|
+
introduces_external_dependencies: boolean;
|
|
101
|
+
}): IndexerCustomizationPlan;
|
|
102
|
+
export declare function validateIndexerCustomizationPlan(value: unknown): IndexerCustomizationPlan;
|
|
103
|
+
export {};
|