@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,132 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const exampleObservationSchema: z.ZodObject<{
|
|
3
|
+
observation_ref: z.ZodString;
|
|
4
|
+
example_ref: z.ZodString;
|
|
5
|
+
public_target_ref: z.ZodString;
|
|
6
|
+
scenario_key: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
source_ref: z.ZodString;
|
|
8
|
+
module_ref: z.ZodNullable<z.ZodString>;
|
|
9
|
+
full_relative_path: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
content_digest: z.ZodString;
|
|
11
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
12
|
+
}, "strict", z.ZodTypeAny, {
|
|
13
|
+
source_ref: string;
|
|
14
|
+
evidence_refs: string[];
|
|
15
|
+
module_ref: string | null;
|
|
16
|
+
content_digest: string;
|
|
17
|
+
observation_ref: string;
|
|
18
|
+
example_ref: string;
|
|
19
|
+
public_target_ref: string;
|
|
20
|
+
scenario_key: string;
|
|
21
|
+
full_relative_path: string;
|
|
22
|
+
}, {
|
|
23
|
+
source_ref: string;
|
|
24
|
+
evidence_refs: string[];
|
|
25
|
+
module_ref: string | null;
|
|
26
|
+
content_digest: string;
|
|
27
|
+
observation_ref: string;
|
|
28
|
+
example_ref: string;
|
|
29
|
+
public_target_ref: string;
|
|
30
|
+
scenario_key: string;
|
|
31
|
+
full_relative_path: string;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const indexerExampleInventorySchema: z.ZodObject<{
|
|
34
|
+
protocol: z.ZodLiteral<"context.indexer.example-inventory/v1">;
|
|
35
|
+
source_scope_digest: z.ZodString;
|
|
36
|
+
observations: z.ZodArray<z.ZodObject<{
|
|
37
|
+
observation_ref: z.ZodString;
|
|
38
|
+
example_ref: z.ZodString;
|
|
39
|
+
public_target_ref: z.ZodString;
|
|
40
|
+
scenario_key: z.ZodEffects<z.ZodString, string, string>;
|
|
41
|
+
source_ref: z.ZodString;
|
|
42
|
+
module_ref: z.ZodNullable<z.ZodString>;
|
|
43
|
+
full_relative_path: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
+
content_digest: z.ZodString;
|
|
45
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
46
|
+
}, "strict", z.ZodTypeAny, {
|
|
47
|
+
source_ref: string;
|
|
48
|
+
evidence_refs: string[];
|
|
49
|
+
module_ref: string | null;
|
|
50
|
+
content_digest: string;
|
|
51
|
+
observation_ref: string;
|
|
52
|
+
example_ref: string;
|
|
53
|
+
public_target_ref: string;
|
|
54
|
+
scenario_key: string;
|
|
55
|
+
full_relative_path: string;
|
|
56
|
+
}, {
|
|
57
|
+
source_ref: string;
|
|
58
|
+
evidence_refs: string[];
|
|
59
|
+
module_ref: string | null;
|
|
60
|
+
content_digest: string;
|
|
61
|
+
observation_ref: string;
|
|
62
|
+
example_ref: string;
|
|
63
|
+
public_target_ref: string;
|
|
64
|
+
scenario_key: string;
|
|
65
|
+
full_relative_path: string;
|
|
66
|
+
}>, "many">;
|
|
67
|
+
inventory_digest: z.ZodString;
|
|
68
|
+
}, "strict", z.ZodTypeAny, {
|
|
69
|
+
protocol: "context.indexer.example-inventory/v1";
|
|
70
|
+
inventory_digest: string;
|
|
71
|
+
source_scope_digest: string;
|
|
72
|
+
observations: {
|
|
73
|
+
source_ref: string;
|
|
74
|
+
evidence_refs: string[];
|
|
75
|
+
module_ref: string | null;
|
|
76
|
+
content_digest: string;
|
|
77
|
+
observation_ref: string;
|
|
78
|
+
example_ref: string;
|
|
79
|
+
public_target_ref: string;
|
|
80
|
+
scenario_key: string;
|
|
81
|
+
full_relative_path: string;
|
|
82
|
+
}[];
|
|
83
|
+
}, {
|
|
84
|
+
protocol: "context.indexer.example-inventory/v1";
|
|
85
|
+
inventory_digest: string;
|
|
86
|
+
source_scope_digest: string;
|
|
87
|
+
observations: {
|
|
88
|
+
source_ref: string;
|
|
89
|
+
evidence_refs: string[];
|
|
90
|
+
module_ref: string | null;
|
|
91
|
+
content_digest: string;
|
|
92
|
+
observation_ref: string;
|
|
93
|
+
example_ref: string;
|
|
94
|
+
public_target_ref: string;
|
|
95
|
+
scenario_key: string;
|
|
96
|
+
full_relative_path: string;
|
|
97
|
+
}[];
|
|
98
|
+
}>;
|
|
99
|
+
export type IndexerExampleObservation = z.infer<typeof exampleObservationSchema>;
|
|
100
|
+
export type IndexerExampleInventory = z.infer<typeof indexerExampleInventorySchema>;
|
|
101
|
+
export interface IndexerExampleObservationInput {
|
|
102
|
+
public_target_ref: string;
|
|
103
|
+
scenario_key: string;
|
|
104
|
+
source_ref: string;
|
|
105
|
+
module_ref: string | null;
|
|
106
|
+
full_relative_path: string;
|
|
107
|
+
content_digest: string;
|
|
108
|
+
evidence_refs: readonly string[];
|
|
109
|
+
}
|
|
110
|
+
export declare function normalizeIndexerExampleRelativePath(value: string): string;
|
|
111
|
+
export declare function indexerExampleRef(input: {
|
|
112
|
+
public_target_ref: string;
|
|
113
|
+
scenario_key: string;
|
|
114
|
+
full_relative_path: string;
|
|
115
|
+
}): string;
|
|
116
|
+
export declare function indexerExampleObservationRef(input: {
|
|
117
|
+
example_ref: string;
|
|
118
|
+
source_ref: string;
|
|
119
|
+
module_ref: string | null;
|
|
120
|
+
content_digest: string;
|
|
121
|
+
}): string;
|
|
122
|
+
export declare function indexerExampleInventoryDigest(value: Omit<IndexerExampleInventory, "inventory_digest">): string;
|
|
123
|
+
export declare function buildIndexerExampleInventory(input: {
|
|
124
|
+
source_scope_digest: string;
|
|
125
|
+
observations: readonly IndexerExampleObservationInput[];
|
|
126
|
+
}): IndexerExampleInventory;
|
|
127
|
+
export declare function validateIndexerExampleInventory(input: {
|
|
128
|
+
value: unknown;
|
|
129
|
+
expected_source_scope_digest?: string;
|
|
130
|
+
known_evidence_refs?: readonly string[];
|
|
131
|
+
}): IndexerExampleInventory;
|
|
132
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const indexerExampleIdentityAuditSchema: z.ZodObject<{
|
|
3
|
+
protocol: z.ZodLiteral<"context.indexer.example-identity-audit/v1">;
|
|
4
|
+
inventory_digest: z.ZodString;
|
|
5
|
+
observation_count: z.ZodNumber;
|
|
6
|
+
unique_example_count: z.ZodNumber;
|
|
7
|
+
collision_count: z.ZodNumber;
|
|
8
|
+
collisions: z.ZodArray<z.ZodObject<{
|
|
9
|
+
example_ref: z.ZodString;
|
|
10
|
+
public_target_ref: z.ZodString;
|
|
11
|
+
scenario_key: z.ZodEffects<z.ZodString, string, string>;
|
|
12
|
+
full_relative_path: z.ZodEffects<z.ZodString, string, string>;
|
|
13
|
+
observation_refs: z.ZodArray<z.ZodString, "many">;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
example_ref: string;
|
|
16
|
+
public_target_ref: string;
|
|
17
|
+
scenario_key: string;
|
|
18
|
+
full_relative_path: string;
|
|
19
|
+
observation_refs: string[];
|
|
20
|
+
}, {
|
|
21
|
+
example_ref: string;
|
|
22
|
+
public_target_ref: string;
|
|
23
|
+
scenario_key: string;
|
|
24
|
+
full_relative_path: string;
|
|
25
|
+
observation_refs: string[];
|
|
26
|
+
}>, "many">;
|
|
27
|
+
pass: z.ZodBoolean;
|
|
28
|
+
audit_digest: z.ZodString;
|
|
29
|
+
}, "strict", z.ZodTypeAny, {
|
|
30
|
+
protocol: "context.indexer.example-identity-audit/v1";
|
|
31
|
+
inventory_digest: string;
|
|
32
|
+
audit_digest: string;
|
|
33
|
+
collisions: {
|
|
34
|
+
example_ref: string;
|
|
35
|
+
public_target_ref: string;
|
|
36
|
+
scenario_key: string;
|
|
37
|
+
full_relative_path: string;
|
|
38
|
+
observation_refs: string[];
|
|
39
|
+
}[];
|
|
40
|
+
observation_count: number;
|
|
41
|
+
unique_example_count: number;
|
|
42
|
+
collision_count: number;
|
|
43
|
+
pass: boolean;
|
|
44
|
+
}, {
|
|
45
|
+
protocol: "context.indexer.example-identity-audit/v1";
|
|
46
|
+
inventory_digest: string;
|
|
47
|
+
audit_digest: string;
|
|
48
|
+
collisions: {
|
|
49
|
+
example_ref: string;
|
|
50
|
+
public_target_ref: string;
|
|
51
|
+
scenario_key: string;
|
|
52
|
+
full_relative_path: string;
|
|
53
|
+
observation_refs: string[];
|
|
54
|
+
}[];
|
|
55
|
+
observation_count: number;
|
|
56
|
+
unique_example_count: number;
|
|
57
|
+
collision_count: number;
|
|
58
|
+
pass: boolean;
|
|
59
|
+
}>;
|
|
60
|
+
export type IndexerExampleIdentityAudit = z.infer<typeof indexerExampleIdentityAuditSchema>;
|
|
61
|
+
export declare function indexerExampleIdentityAuditDigest(value: Omit<IndexerExampleIdentityAudit, "audit_digest">): string;
|
|
62
|
+
export declare function buildIndexerExampleIdentityAudit(inventoryInput: unknown): IndexerExampleIdentityAudit;
|
|
63
|
+
export declare function validateIndexerExampleIdentityAudit(input: {
|
|
64
|
+
value: unknown;
|
|
65
|
+
inventory: unknown;
|
|
66
|
+
}): IndexerExampleIdentityAudit;
|
|
67
|
+
export declare function assertIndexerExampleIdentityAuditPassed(input: {
|
|
68
|
+
value: unknown;
|
|
69
|
+
inventory: unknown;
|
|
70
|
+
}): IndexerExampleIdentityAudit;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const INDEXER_EXAMPLE_METRIC_IDS: readonly ["example-candidate-decision-coverage", "example-representative-coverage", "example-public-target-linkage"];
|
|
3
|
+
export declare const indexerExampleLinkageAuditSchema: z.ZodObject<{
|
|
4
|
+
protocol: z.ZodLiteral<"context.indexer.example-linkage-audit/v1">;
|
|
5
|
+
inventory_digest: z.ZodString;
|
|
6
|
+
decision_set_digest: z.ZodString;
|
|
7
|
+
metrics: z.ZodArray<z.ZodObject<{
|
|
8
|
+
metric_id: z.ZodEnum<["example-candidate-decision-coverage", "example-representative-coverage", "example-public-target-linkage"]>;
|
|
9
|
+
unit: z.ZodLiteral<"ratio">;
|
|
10
|
+
numerator: z.ZodNumber;
|
|
11
|
+
denominator: z.ZodNumber;
|
|
12
|
+
actual: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
covered_example_refs: z.ZodArray<z.ZodString, "many">;
|
|
14
|
+
missing_example_refs: z.ZodArray<z.ZodString, "many">;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
denominator: number;
|
|
17
|
+
unit: "ratio";
|
|
18
|
+
metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
|
|
19
|
+
numerator: number;
|
|
20
|
+
actual: number | null;
|
|
21
|
+
covered_example_refs: string[];
|
|
22
|
+
missing_example_refs: string[];
|
|
23
|
+
}, {
|
|
24
|
+
denominator: number;
|
|
25
|
+
unit: "ratio";
|
|
26
|
+
metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
|
|
27
|
+
numerator: number;
|
|
28
|
+
actual: number | null;
|
|
29
|
+
covered_example_refs: string[];
|
|
30
|
+
missing_example_refs: string[];
|
|
31
|
+
}>, "many">;
|
|
32
|
+
decision_closure_pass: z.ZodBoolean;
|
|
33
|
+
audit_digest: z.ZodString;
|
|
34
|
+
}, "strict", z.ZodTypeAny, {
|
|
35
|
+
protocol: "context.indexer.example-linkage-audit/v1";
|
|
36
|
+
metrics: {
|
|
37
|
+
denominator: number;
|
|
38
|
+
unit: "ratio";
|
|
39
|
+
metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
|
|
40
|
+
numerator: number;
|
|
41
|
+
actual: number | null;
|
|
42
|
+
covered_example_refs: string[];
|
|
43
|
+
missing_example_refs: string[];
|
|
44
|
+
}[];
|
|
45
|
+
inventory_digest: string;
|
|
46
|
+
audit_digest: string;
|
|
47
|
+
decision_set_digest: string;
|
|
48
|
+
decision_closure_pass: boolean;
|
|
49
|
+
}, {
|
|
50
|
+
protocol: "context.indexer.example-linkage-audit/v1";
|
|
51
|
+
metrics: {
|
|
52
|
+
denominator: number;
|
|
53
|
+
unit: "ratio";
|
|
54
|
+
metric_id: "example-candidate-decision-coverage" | "example-representative-coverage" | "example-public-target-linkage";
|
|
55
|
+
numerator: number;
|
|
56
|
+
actual: number | null;
|
|
57
|
+
covered_example_refs: string[];
|
|
58
|
+
missing_example_refs: string[];
|
|
59
|
+
}[];
|
|
60
|
+
inventory_digest: string;
|
|
61
|
+
audit_digest: string;
|
|
62
|
+
decision_set_digest: string;
|
|
63
|
+
decision_closure_pass: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
export type IndexerExampleLinkageAudit = z.infer<typeof indexerExampleLinkageAuditSchema>;
|
|
66
|
+
export declare function indexerExampleLinkageAuditDigest(value: Omit<IndexerExampleLinkageAudit, "audit_digest">): string;
|
|
67
|
+
export declare function buildIndexerExampleLinkageAudit(input: {
|
|
68
|
+
inventory: unknown;
|
|
69
|
+
decision_set: unknown;
|
|
70
|
+
}): IndexerExampleLinkageAudit;
|
|
71
|
+
export declare function validateIndexerExampleLinkageAudit(input: {
|
|
72
|
+
value: unknown;
|
|
73
|
+
inventory: unknown;
|
|
74
|
+
decision_set: unknown;
|
|
75
|
+
}): IndexerExampleLinkageAudit;
|
|
76
|
+
export declare function assertIndexerExampleCandidateDecisionClosure(input: {
|
|
77
|
+
value: unknown;
|
|
78
|
+
inventory: unknown;
|
|
79
|
+
decision_set: unknown;
|
|
80
|
+
}): IndexerExampleLinkageAudit;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { IndexerArtifactResult } from "./indexerArtifactResult.js";
|
|
3
|
+
declare const structuredClaimSchema: z.ZodObject<{
|
|
4
|
+
claim_ref: z.ZodString;
|
|
5
|
+
claim_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
6
|
+
subject_ref: z.ZodString;
|
|
7
|
+
owner: z.ZodObject<{
|
|
8
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
+
section_key: z.ZodEffects<z.ZodString, string, string>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
artifact_id: string;
|
|
12
|
+
section_key: string;
|
|
13
|
+
}, {
|
|
14
|
+
artifact_id: string;
|
|
15
|
+
section_key: string;
|
|
16
|
+
}>;
|
|
17
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
18
|
+
}, "strict", z.ZodTypeAny, {
|
|
19
|
+
evidence_refs: string[];
|
|
20
|
+
claim_ref: string;
|
|
21
|
+
claim_kind: string;
|
|
22
|
+
subject_ref: string;
|
|
23
|
+
owner: {
|
|
24
|
+
artifact_id: string;
|
|
25
|
+
section_key: string;
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
evidence_refs: string[];
|
|
29
|
+
claim_ref: string;
|
|
30
|
+
claim_kind: string;
|
|
31
|
+
subject_ref: string;
|
|
32
|
+
owner: {
|
|
33
|
+
artifact_id: string;
|
|
34
|
+
section_key: string;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
export declare const indexerStructuredClaimSetSchema: z.ZodObject<{
|
|
38
|
+
protocol: z.ZodLiteral<"context.indexer.structured-claim-set/v1">;
|
|
39
|
+
author_workset_digest: z.ZodString;
|
|
40
|
+
logical_unit_ref: z.ZodString;
|
|
41
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
42
|
+
claim_ref: z.ZodString;
|
|
43
|
+
claim_kind: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
+
subject_ref: z.ZodString;
|
|
45
|
+
owner: z.ZodObject<{
|
|
46
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
+
section_key: z.ZodEffects<z.ZodString, string, string>;
|
|
48
|
+
}, "strict", z.ZodTypeAny, {
|
|
49
|
+
artifact_id: string;
|
|
50
|
+
section_key: string;
|
|
51
|
+
}, {
|
|
52
|
+
artifact_id: string;
|
|
53
|
+
section_key: string;
|
|
54
|
+
}>;
|
|
55
|
+
evidence_refs: z.ZodArray<z.ZodString, "many">;
|
|
56
|
+
}, "strict", z.ZodTypeAny, {
|
|
57
|
+
evidence_refs: string[];
|
|
58
|
+
claim_ref: string;
|
|
59
|
+
claim_kind: string;
|
|
60
|
+
subject_ref: string;
|
|
61
|
+
owner: {
|
|
62
|
+
artifact_id: string;
|
|
63
|
+
section_key: string;
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
evidence_refs: string[];
|
|
67
|
+
claim_ref: string;
|
|
68
|
+
claim_kind: string;
|
|
69
|
+
subject_ref: string;
|
|
70
|
+
owner: {
|
|
71
|
+
artifact_id: string;
|
|
72
|
+
section_key: string;
|
|
73
|
+
};
|
|
74
|
+
}>, "many">;
|
|
75
|
+
claims_digest: z.ZodString;
|
|
76
|
+
}, "strict", z.ZodTypeAny, {
|
|
77
|
+
protocol: "context.indexer.structured-claim-set/v1";
|
|
78
|
+
logical_unit_ref: string;
|
|
79
|
+
author_workset_digest: string;
|
|
80
|
+
claims: {
|
|
81
|
+
evidence_refs: string[];
|
|
82
|
+
claim_ref: string;
|
|
83
|
+
claim_kind: string;
|
|
84
|
+
subject_ref: string;
|
|
85
|
+
owner: {
|
|
86
|
+
artifact_id: string;
|
|
87
|
+
section_key: string;
|
|
88
|
+
};
|
|
89
|
+
}[];
|
|
90
|
+
claims_digest: string;
|
|
91
|
+
}, {
|
|
92
|
+
protocol: "context.indexer.structured-claim-set/v1";
|
|
93
|
+
logical_unit_ref: string;
|
|
94
|
+
author_workset_digest: string;
|
|
95
|
+
claims: {
|
|
96
|
+
evidence_refs: string[];
|
|
97
|
+
claim_ref: string;
|
|
98
|
+
claim_kind: string;
|
|
99
|
+
subject_ref: string;
|
|
100
|
+
owner: {
|
|
101
|
+
artifact_id: string;
|
|
102
|
+
section_key: string;
|
|
103
|
+
};
|
|
104
|
+
}[];
|
|
105
|
+
claims_digest: string;
|
|
106
|
+
}>;
|
|
107
|
+
export declare const indexerGeneratedAuthoringAuditSchema: z.ZodObject<{
|
|
108
|
+
protocol: z.ZodLiteral<"context.indexer.generated-authoring-audit/v1">;
|
|
109
|
+
artifact_result_digest: z.ZodString;
|
|
110
|
+
hard_findings: z.ZodArray<z.ZodObject<{
|
|
111
|
+
code: z.ZodEnum<["generated-placeholder", "empty-required-section"]>;
|
|
112
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
113
|
+
section_key: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
114
|
+
content_ref: z.ZodString;
|
|
115
|
+
}, "strict", z.ZodTypeAny, {
|
|
116
|
+
code: "generated-placeholder" | "empty-required-section";
|
|
117
|
+
artifact_id: string;
|
|
118
|
+
section_key: string | null;
|
|
119
|
+
content_ref: string;
|
|
120
|
+
}, {
|
|
121
|
+
code: "generated-placeholder" | "empty-required-section";
|
|
122
|
+
artifact_id: string;
|
|
123
|
+
section_key: string | null;
|
|
124
|
+
content_ref: string;
|
|
125
|
+
}>, "many">;
|
|
126
|
+
structured_claim_count: z.ZodNumber;
|
|
127
|
+
evidence_covered_structured_claim_count: z.ZodNumber;
|
|
128
|
+
semantic_prose_review_targets: z.ZodArray<z.ZodObject<{
|
|
129
|
+
artifact_id: z.ZodEffects<z.ZodString, string, string>;
|
|
130
|
+
section_key: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
131
|
+
content_ref: z.ZodString;
|
|
132
|
+
advisory_code: z.ZodLiteral<"semantic-prose-agent-review-required">;
|
|
133
|
+
}, "strict", z.ZodTypeAny, {
|
|
134
|
+
artifact_id: string;
|
|
135
|
+
section_key: string | null;
|
|
136
|
+
content_ref: string;
|
|
137
|
+
advisory_code: "semantic-prose-agent-review-required";
|
|
138
|
+
}, {
|
|
139
|
+
artifact_id: string;
|
|
140
|
+
section_key: string | null;
|
|
141
|
+
content_ref: string;
|
|
142
|
+
advisory_code: "semantic-prose-agent-review-required";
|
|
143
|
+
}>, "many">;
|
|
144
|
+
agent_review_required: z.ZodBoolean;
|
|
145
|
+
audit_digest: z.ZodString;
|
|
146
|
+
}, "strict", z.ZodTypeAny, {
|
|
147
|
+
protocol: "context.indexer.generated-authoring-audit/v1";
|
|
148
|
+
artifact_result_digest: string;
|
|
149
|
+
hard_findings: {
|
|
150
|
+
code: "generated-placeholder" | "empty-required-section";
|
|
151
|
+
artifact_id: string;
|
|
152
|
+
section_key: string | null;
|
|
153
|
+
content_ref: string;
|
|
154
|
+
}[];
|
|
155
|
+
structured_claim_count: number;
|
|
156
|
+
evidence_covered_structured_claim_count: number;
|
|
157
|
+
semantic_prose_review_targets: {
|
|
158
|
+
artifact_id: string;
|
|
159
|
+
section_key: string | null;
|
|
160
|
+
content_ref: string;
|
|
161
|
+
advisory_code: "semantic-prose-agent-review-required";
|
|
162
|
+
}[];
|
|
163
|
+
agent_review_required: boolean;
|
|
164
|
+
audit_digest: string;
|
|
165
|
+
}, {
|
|
166
|
+
protocol: "context.indexer.generated-authoring-audit/v1";
|
|
167
|
+
artifact_result_digest: string;
|
|
168
|
+
hard_findings: {
|
|
169
|
+
code: "generated-placeholder" | "empty-required-section";
|
|
170
|
+
artifact_id: string;
|
|
171
|
+
section_key: string | null;
|
|
172
|
+
content_ref: string;
|
|
173
|
+
}[];
|
|
174
|
+
structured_claim_count: number;
|
|
175
|
+
evidence_covered_structured_claim_count: number;
|
|
176
|
+
semantic_prose_review_targets: {
|
|
177
|
+
artifact_id: string;
|
|
178
|
+
section_key: string | null;
|
|
179
|
+
content_ref: string;
|
|
180
|
+
advisory_code: "semantic-prose-agent-review-required";
|
|
181
|
+
}[];
|
|
182
|
+
agent_review_required: boolean;
|
|
183
|
+
audit_digest: string;
|
|
184
|
+
}>;
|
|
185
|
+
export type IndexerStructuredClaimSet = z.infer<typeof indexerStructuredClaimSetSchema>;
|
|
186
|
+
export type IndexerGeneratedAuthoringAudit = z.infer<typeof indexerGeneratedAuthoringAuditSchema>;
|
|
187
|
+
export declare function buildIndexerStructuredClaimSet(input: {
|
|
188
|
+
author_workset_digest: string;
|
|
189
|
+
logical_unit_ref: string;
|
|
190
|
+
claims: readonly z.input<typeof structuredClaimSchema>[];
|
|
191
|
+
}): IndexerStructuredClaimSet;
|
|
192
|
+
export declare function validateIndexerStructuredClaimSet(input: {
|
|
193
|
+
value: unknown;
|
|
194
|
+
expected_author_workset_digest: string;
|
|
195
|
+
expected_logical_unit_ref: string;
|
|
196
|
+
authorized_subject_refs: readonly string[];
|
|
197
|
+
known_evidence_refs: readonly string[];
|
|
198
|
+
section_evidence_inventory: readonly {
|
|
199
|
+
artifact_id: string;
|
|
200
|
+
section_key: string;
|
|
201
|
+
evidence_refs: readonly string[];
|
|
202
|
+
}[];
|
|
203
|
+
}): IndexerStructuredClaimSet;
|
|
204
|
+
export declare function containsIndexerControlledAuthoringPlaceholder(markdown: string): boolean;
|
|
205
|
+
export declare function buildIndexerGeneratedAuthoringAudit(result: IndexerArtifactResult): IndexerGeneratedAuthoringAudit;
|
|
206
|
+
export declare function validateIndexerGeneratedAuthoringAudit(value: unknown): IndexerGeneratedAuthoringAudit;
|
|
207
|
+
export declare function assertIndexerGeneratedAuthoringAuditClear(audit: IndexerGeneratedAuthoringAudit): void;
|
|
208
|
+
export {};
|