@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,75 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type IndexerArtifactSectionProjection } from "./indexerArtifactResult.js";
|
|
3
|
+
export declare const indexerKnowledgeCollectionSchema: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
|
|
4
|
+
export declare const indexerSectionCollectionSchema: z.ZodObject<{
|
|
5
|
+
protocol: z.ZodLiteral<"context.indexer.section-collection/v1">;
|
|
6
|
+
profile: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
source_role: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
projection: z.ZodObject<{
|
|
9
|
+
section_key: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
owner_indexer_id: z.ZodEffects<z.ZodString, string, string>;
|
|
11
|
+
document_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
12
|
+
reader_goal: z.ZodEffects<z.ZodString, string, string>;
|
|
13
|
+
artifact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
artifact_kind: string;
|
|
16
|
+
document_kind: string;
|
|
17
|
+
reader_goal: string;
|
|
18
|
+
section_key: string;
|
|
19
|
+
owner_indexer_id: string;
|
|
20
|
+
}, {
|
|
21
|
+
artifact_kind: string;
|
|
22
|
+
document_kind: string;
|
|
23
|
+
reader_goal: string;
|
|
24
|
+
section_key: string;
|
|
25
|
+
owner_indexer_id: string;
|
|
26
|
+
}>;
|
|
27
|
+
collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
|
|
28
|
+
profile_contract_digest: z.ZodString;
|
|
29
|
+
mapping_digest: z.ZodString;
|
|
30
|
+
} & {
|
|
31
|
+
resolution_digest: z.ZodString;
|
|
32
|
+
}, "strict", z.ZodTypeAny, {
|
|
33
|
+
protocol: "context.indexer.section-collection/v1";
|
|
34
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
35
|
+
profile: string;
|
|
36
|
+
mapping_digest: string;
|
|
37
|
+
profile_contract_digest: string;
|
|
38
|
+
source_role: string;
|
|
39
|
+
resolution_digest: string;
|
|
40
|
+
projection: {
|
|
41
|
+
artifact_kind: string;
|
|
42
|
+
document_kind: string;
|
|
43
|
+
reader_goal: string;
|
|
44
|
+
section_key: string;
|
|
45
|
+
owner_indexer_id: string;
|
|
46
|
+
};
|
|
47
|
+
}, {
|
|
48
|
+
protocol: "context.indexer.section-collection/v1";
|
|
49
|
+
collection: import("./contracts.js").TopLevelNamespace;
|
|
50
|
+
profile: string;
|
|
51
|
+
mapping_digest: string;
|
|
52
|
+
profile_contract_digest: string;
|
|
53
|
+
source_role: string;
|
|
54
|
+
resolution_digest: string;
|
|
55
|
+
projection: {
|
|
56
|
+
artifact_kind: string;
|
|
57
|
+
document_kind: string;
|
|
58
|
+
reader_goal: string;
|
|
59
|
+
section_key: string;
|
|
60
|
+
owner_indexer_id: string;
|
|
61
|
+
};
|
|
62
|
+
}>;
|
|
63
|
+
export type IndexerSectionCollection = z.infer<typeof indexerSectionCollectionSchema>;
|
|
64
|
+
export declare function resolveIndexerSectionCollection(input: {
|
|
65
|
+
profile: string;
|
|
66
|
+
source_role: string;
|
|
67
|
+
projection: IndexerArtifactSectionProjection;
|
|
68
|
+
profile_contract: unknown;
|
|
69
|
+
operator_contract: unknown;
|
|
70
|
+
}): IndexerSectionCollection;
|
|
71
|
+
export declare function validateIndexerSectionCollection(input: {
|
|
72
|
+
value: unknown;
|
|
73
|
+
profile_contract: unknown;
|
|
74
|
+
operator_contract: unknown;
|
|
75
|
+
}): IndexerSectionCollection;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { IndexerJson } from "./indexerRegistry.js";
|
|
3
|
+
export declare const indexerCanonicalJsonSchema: z.ZodType<IndexerJson>;
|
|
4
|
+
export declare const indexerArtifactFactSchema: z.ZodObject<{
|
|
5
|
+
fact_ref: z.ZodString;
|
|
6
|
+
fact_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
subject_key: z.ZodObject<{
|
|
8
|
+
protocol: z.ZodLiteral<"context.subject-key/v1">;
|
|
9
|
+
namespace: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
kind: z.ZodEffects<z.ZodString, string, string>;
|
|
11
|
+
local_key: z.ZodEffects<z.ZodString, string, string>;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
kind: string;
|
|
14
|
+
protocol: "context.subject-key/v1";
|
|
15
|
+
namespace: string;
|
|
16
|
+
local_key: string;
|
|
17
|
+
}, {
|
|
18
|
+
kind: string;
|
|
19
|
+
protocol: "context.subject-key/v1";
|
|
20
|
+
namespace: string;
|
|
21
|
+
local_key: string;
|
|
22
|
+
}>;
|
|
23
|
+
value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
|
|
24
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
25
|
+
}, "strict", z.ZodTypeAny, {
|
|
26
|
+
value: IndexerJson;
|
|
27
|
+
evidence_refs: string[];
|
|
28
|
+
fact_ref: string;
|
|
29
|
+
fact_kind: string;
|
|
30
|
+
subject_key: {
|
|
31
|
+
kind: string;
|
|
32
|
+
protocol: "context.subject-key/v1";
|
|
33
|
+
namespace: string;
|
|
34
|
+
local_key: string;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
value: IndexerJson;
|
|
38
|
+
evidence_refs: string[];
|
|
39
|
+
fact_ref: string;
|
|
40
|
+
fact_kind: string;
|
|
41
|
+
subject_key: {
|
|
42
|
+
kind: string;
|
|
43
|
+
protocol: "context.subject-key/v1";
|
|
44
|
+
namespace: string;
|
|
45
|
+
local_key: string;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
export declare const indexerDeterministicBlockRendererSchema: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
|
|
49
|
+
export declare const indexerArtifactContentBlockSchema: z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
|
|
50
|
+
block_id: z.ZodEffects<z.ZodString, string, string>;
|
|
51
|
+
layer: z.ZodLiteral<"deterministic-block">;
|
|
52
|
+
renderer: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
|
|
53
|
+
fact_refs: z.ZodArray<z.ZodString, "many">;
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
|
+
block_id: string;
|
|
56
|
+
layer: "deterministic-block";
|
|
57
|
+
renderer: "bullet-list" | "key-value-table" | "json-code-block";
|
|
58
|
+
fact_refs: string[];
|
|
59
|
+
}, {
|
|
60
|
+
block_id: string;
|
|
61
|
+
layer: "deterministic-block";
|
|
62
|
+
renderer: "bullet-list" | "key-value-table" | "json-code-block";
|
|
63
|
+
fact_refs: string[];
|
|
64
|
+
}>, z.ZodObject<{
|
|
65
|
+
block_id: z.ZodEffects<z.ZodString, string, string>;
|
|
66
|
+
layer: z.ZodLiteral<"semantic-prose">;
|
|
67
|
+
markdown: z.ZodString;
|
|
68
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
69
|
+
}, "strict", z.ZodTypeAny, {
|
|
70
|
+
evidence_refs: string[];
|
|
71
|
+
block_id: string;
|
|
72
|
+
layer: "semantic-prose";
|
|
73
|
+
markdown: string;
|
|
74
|
+
}, {
|
|
75
|
+
evidence_refs: string[];
|
|
76
|
+
block_id: string;
|
|
77
|
+
layer: "semantic-prose";
|
|
78
|
+
markdown: string;
|
|
79
|
+
}>]>;
|
|
80
|
+
declare const renderedContentBlockPayloadSchema: z.ZodObject<{
|
|
81
|
+
layer: z.ZodEnum<["deterministic-block", "semantic-prose"]>;
|
|
82
|
+
markdown: z.ZodString;
|
|
83
|
+
fact_refs: z.ZodArray<z.ZodString, "many">;
|
|
84
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
85
|
+
}, "strict", z.ZodTypeAny, {
|
|
86
|
+
evidence_refs: string[];
|
|
87
|
+
layer: "deterministic-block" | "semantic-prose";
|
|
88
|
+
fact_refs: string[];
|
|
89
|
+
markdown: string;
|
|
90
|
+
}, {
|
|
91
|
+
evidence_refs: string[];
|
|
92
|
+
layer: "deterministic-block" | "semantic-prose";
|
|
93
|
+
fact_refs: string[];
|
|
94
|
+
markdown: string;
|
|
95
|
+
}>;
|
|
96
|
+
export declare const indexerRenderedContentBlockSchema: z.ZodObject<{
|
|
97
|
+
layer: z.ZodEnum<["deterministic-block", "semantic-prose"]>;
|
|
98
|
+
markdown: z.ZodString;
|
|
99
|
+
fact_refs: z.ZodArray<z.ZodString, "many">;
|
|
100
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
101
|
+
} & {
|
|
102
|
+
content_digest: z.ZodString;
|
|
103
|
+
}, "strict", z.ZodTypeAny, {
|
|
104
|
+
evidence_refs: string[];
|
|
105
|
+
content_digest: string;
|
|
106
|
+
layer: "deterministic-block" | "semantic-prose";
|
|
107
|
+
fact_refs: string[];
|
|
108
|
+
markdown: string;
|
|
109
|
+
}, {
|
|
110
|
+
evidence_refs: string[];
|
|
111
|
+
content_digest: string;
|
|
112
|
+
layer: "deterministic-block" | "semantic-prose";
|
|
113
|
+
fact_refs: string[];
|
|
114
|
+
markdown: string;
|
|
115
|
+
}>;
|
|
116
|
+
export type IndexerArtifactFact = z.infer<typeof indexerArtifactFactSchema>;
|
|
117
|
+
export type IndexerArtifactContentBlock = z.infer<typeof indexerArtifactContentBlockSchema>;
|
|
118
|
+
export type IndexerDeterministicBlockRenderer = z.infer<typeof indexerDeterministicBlockRendererSchema>;
|
|
119
|
+
export type IndexerRenderedContentBlock = z.infer<typeof indexerRenderedContentBlockSchema>;
|
|
120
|
+
export declare function projectIndexerFactValue(facts: readonly IndexerArtifactFact[]): IndexerJson;
|
|
121
|
+
export declare function renderIndexerDeterministicFacts(input: {
|
|
122
|
+
renderer: IndexerDeterministicBlockRenderer;
|
|
123
|
+
facts: readonly IndexerArtifactFact[];
|
|
124
|
+
}): string;
|
|
125
|
+
export declare function indexerRenderedContentBlockDigest(value: z.infer<typeof renderedContentBlockPayloadSchema>): string;
|
|
126
|
+
export declare function buildIndexerRenderedContentBlock(input: {
|
|
127
|
+
layer: "deterministic-block" | "semantic-prose";
|
|
128
|
+
markdown: string;
|
|
129
|
+
fact_refs?: readonly string[];
|
|
130
|
+
evidence_refs?: readonly string[];
|
|
131
|
+
}): IndexerRenderedContentBlock;
|
|
132
|
+
export declare function validateIndexerRenderedContentBlock(value: unknown): IndexerRenderedContentBlock;
|
|
133
|
+
export declare function materializeIndexerStructuredContent(input: {
|
|
134
|
+
blocks: readonly IndexerArtifactContentBlock[];
|
|
135
|
+
facts: readonly IndexerArtifactFact[];
|
|
136
|
+
}): IndexerRenderedContentBlock[];
|
|
137
|
+
export {};
|