@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.
Files changed (130) hide show
  1. package/README.md +5 -5
  2. package/README.zh-CN.md +5 -5
  3. package/codeIndexPlan.d.ts +84 -0
  4. package/contracts.d.ts +2 -1
  5. package/docs/README.md +7 -0
  6. package/docs/README.zh-CN.md +5 -0
  7. package/docs/getting-started.md +12 -12
  8. package/docs/guides/agent-guide.md +18 -9
  9. package/docs/guides/code-indexer-skill-authoring.md +124 -0
  10. package/docs/guides/indexer-provider-and-customization.md +140 -0
  11. package/docs/guides/lark-resources.md +7 -0
  12. package/docs/guides/markdown-indexer-skill-authoring.md +118 -0
  13. package/docs/guides/package-outputs.md +3 -3
  14. package/docs/reference/code-extractors.md +7 -6
  15. package/docs/reference/indexer-provider-protocol.md +819 -0
  16. package/docs/reference/package-templates.md +18 -10
  17. package/docs/reference/project-api.md +49 -24
  18. package/index.d.ts +48 -2
  19. package/index.js +28239 -3948
  20. package/indexerAgentStepProtocol.d.ts +9391 -0
  21. package/indexerArtifactDependencies.d.ts +689 -0
  22. package/indexerArtifactPolicy.d.ts +335 -0
  23. package/indexerArtifactResult.d.ts +2010 -0
  24. package/indexerAuditFacts.d.ts +66 -0
  25. package/indexerAuditOverrideReadiness.d.ts +27 -0
  26. package/indexerAuditProtocol.d.ts +238 -0
  27. package/indexerAuditRevision.d.ts +726 -0
  28. package/indexerAuditRevisionActions.d.ts +236 -0
  29. package/indexerAuthoringFixture.d.ts +152 -0
  30. package/indexerBaseQuestionAmendment.d.ts +2403 -0
  31. package/indexerBenchmark.d.ts +1062 -0
  32. package/indexerCandidateCompile.d.ts +801 -0
  33. package/indexerCapabilityGroupEvidence.d.ts +129 -0
  34. package/indexerCatalogFallback.d.ts +1262 -0
  35. package/indexerCollectionMapping.d.ts +75 -0
  36. package/indexerContentLayers.d.ts +137 -0
  37. package/indexerControlledInvocation.d.ts +512 -0
  38. package/indexerControlledProgram.d.ts +12535 -0
  39. package/indexerCoreExports.d.ts +21 -0
  40. package/indexerCustomizationDraft.d.ts +13800 -0
  41. package/indexerCustomizationLadder.d.ts +103 -0
  42. package/indexerDependencyView.d.ts +1610 -0
  43. package/indexerEvidenceAdapterResult.d.ts +504 -0
  44. package/indexerExampleDecision.d.ts +1606 -0
  45. package/indexerExampleIdentity.d.ts +132 -0
  46. package/indexerExampleIdentityAudit.d.ts +70 -0
  47. package/indexerExampleLinkageAudit.d.ts +80 -0
  48. package/indexerGeneratedAuthoringAudit.d.ts +208 -0
  49. package/indexerIncrementalImpact.d.ts +221 -0
  50. package/indexerInventoryDisposition.d.ts +443 -0
  51. package/indexerLayerComposition.d.ts +1652 -0
  52. package/indexerLayoutChange.d.ts +329 -0
  53. package/indexerLayoutProposalSet.d.ts +447 -0
  54. package/indexerLayoutResolver.d.ts +342 -0
  55. package/indexerLayoutTransition.d.ts +247 -0
  56. package/indexerLifecycle.d.ts +53 -0
  57. package/indexerMainLifecycle.d.ts +258 -0
  58. package/indexerMainRunLedger.d.ts +888 -0
  59. package/indexerMainRunProtocol.d.ts +6471 -0
  60. package/indexerMainWorkset.d.ts +2141 -0
  61. package/indexerMaterialAnswer.d.ts +738 -0
  62. package/indexerMaterialAnswerActualization.d.ts +91 -0
  63. package/indexerMaterialAnswerExecutionPlan.d.ts +2887 -0
  64. package/indexerMaterialAnswerFlow.d.ts +63 -0
  65. package/indexerMaterialAnswerLayout.d.ts +76 -0
  66. package/indexerMaterialAnswerReview.d.ts +217 -0
  67. package/indexerMaterialAnswerReviewRoute.d.ts +6145 -0
  68. package/indexerMaterialAnswerRunLedger.d.ts +918 -0
  69. package/indexerMaterialAnswerRunProtocol.d.ts +1253 -0
  70. package/indexerMaterialGapLedger.d.ts +3111 -0
  71. package/indexerMaterialQuestionExclusion.d.ts +129 -0
  72. package/indexerMaterialQuestionWorkset.d.ts +508 -0
  73. package/indexerNavigationArtifactGraph.d.ts +5 -0
  74. package/indexerNavigationArtifactPlan.d.ts +39 -0
  75. package/indexerOverlayQuestionAmendment.d.ts +2551 -0
  76. package/indexerOverlayQuestionApplyProposal.d.ts +4697 -0
  77. package/indexerOverlayTrust.d.ts +1425 -0
  78. package/indexerParserCoordinate.d.ts +222 -0
  79. package/indexerParserFactView.d.ts +503 -0
  80. package/indexerPartitionConvergence.d.ts +496 -0
  81. package/indexerPartitionPlan.d.ts +919 -0
  82. package/indexerPartitionStrategyResolution.d.ts +594 -0
  83. package/indexerPhysicalArtifactAudit.d.ts +247 -0
  84. package/indexerPhysicalArtifactManifest.d.ts +449 -0
  85. package/indexerPlannedMaterialAnswer.d.ts +116 -0
  86. package/indexerPostAuthorComposition.d.ts +2000 -0
  87. package/indexerPostAuthorRunLedger.d.ts +1972 -0
  88. package/indexerPrimaryProjection.d.ts +262 -0
  89. package/indexerProfileContract.d.ts +3034 -0
  90. package/indexerProfileMetricAudit.d.ts +218 -0
  91. package/indexerProgramExecutionAuthorization.d.ts +227 -0
  92. package/indexerProgramRunProtocol.d.ts +7642 -0
  93. package/indexerProjectProposal.d.ts +2807 -0
  94. package/indexerProjectedArtifactFanOutAudit.d.ts +159 -0
  95. package/indexerProjectedArtifactPlan.d.ts +217 -0
  96. package/indexerProtocolCommon.d.ts +29 -0
  97. package/indexerProvider.d.ts +2573 -0
  98. package/indexerProviderComposition.d.ts +1357 -0
  99. package/indexerProviderContractReferences.d.ts +13 -0
  100. package/indexerProviderProfileResolution.d.ts +20 -0
  101. package/indexerProviderResolution.d.ts +752 -0
  102. package/indexerProviderResolutionAction.d.ts +678 -0
  103. package/indexerProviderRouting.d.ts +3909 -0
  104. package/indexerProviderSelectionProposal.d.ts +3311 -0
  105. package/indexerQuestionAuthority.d.ts +419 -0
  106. package/indexerReaderTargetInventory.d.ts +161 -0
  107. package/indexerReferenceOnlyAudit.d.ts +90 -0
  108. package/indexerRegistry.d.ts +3019 -0
  109. package/indexerRequirementComparison.d.ts +44 -0
  110. package/indexerRequirementConfirmation.d.ts +1193 -0
  111. package/indexerRequirementLifecycle.d.ts +3314 -0
  112. package/indexerRestrictedSelector.d.ts +63 -0
  113. package/indexerResultReconciliation.d.ts +6844 -0
  114. package/indexerResultReconciliationRun.d.ts +15 -0
  115. package/indexerRunEnvelope.d.ts +384 -0
  116. package/indexerRunProtocolCommon.d.ts +21 -0
  117. package/indexerSharedArtifactFingerprint.d.ts +33 -0
  118. package/indexerStructuredDeclaration.d.ts +513 -0
  119. package/indexerSubjectCatalog.d.ts +230 -0
  120. package/indexerSubjectIdentity.d.ts +19 -0
  121. package/indexerSubjectKeyAuthority.d.ts +785 -0
  122. package/indexerTemplateRendering.d.ts +485 -0
  123. package/indexerToolSnapshot.d.ts +431 -0
  124. package/indexerWorksetRead.d.ts +287 -0
  125. package/package.json +1 -1
  126. package/phases.d.ts +11 -9
  127. package/templates/package-templates/kb/AGENTS.md +1 -1
  128. package/templates/package-templates/kb/skills/knowledge-query/SKILL.md +1 -1
  129. package/templates/package-templates.zh-CN/kb/AGENTS.md +1 -1
  130. package/templates/package-templates.zh-CN/kb/skills/knowledge-query/SKILL.md +1 -1
@@ -0,0 +1,129 @@
1
+ import { z } from "zod";
2
+ import type { IndexerMainAuthorWorkset } from "./indexerMainWorkset.js";
3
+ export declare const indexerCapabilityGroupEvidenceSchema: z.ZodObject<{
4
+ protocol: z.ZodLiteral<"context.indexer.capability-group-evidence/v1">;
5
+ author_workset_digest: z.ZodString;
6
+ group_projection_digest: z.ZodString;
7
+ logical_unit_ref: z.ZodString;
8
+ member_ids: z.ZodArray<z.ZodString, "many">;
9
+ member_ids_digest: z.ZodString;
10
+ capability_groups: z.ZodArray<z.ZodObject<{
11
+ capability_group_ref: z.ZodString;
12
+ capability_key: z.ZodEffects<z.ZodString, string, string>;
13
+ member_evidence: z.ZodArray<z.ZodObject<{
14
+ member_id: z.ZodString;
15
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
16
+ }, "strict", z.ZodTypeAny, {
17
+ evidence_refs: string[];
18
+ member_id: string;
19
+ }, {
20
+ evidence_refs: string[];
21
+ member_id: string;
22
+ }>, "many">;
23
+ section_evidence: z.ZodArray<z.ZodObject<{
24
+ artifact_id: z.ZodEffects<z.ZodString, string, string>;
25
+ section_key: z.ZodEffects<z.ZodString, string, string>;
26
+ evidence_refs: z.ZodArray<z.ZodString, "many">;
27
+ }, "strict", z.ZodTypeAny, {
28
+ evidence_refs: string[];
29
+ artifact_id: string;
30
+ section_key: string;
31
+ }, {
32
+ evidence_refs: string[];
33
+ artifact_id: string;
34
+ section_key: string;
35
+ }>, "many">;
36
+ }, "strict", z.ZodTypeAny, {
37
+ capability_group_ref: string;
38
+ capability_key: string;
39
+ member_evidence: {
40
+ evidence_refs: string[];
41
+ member_id: string;
42
+ }[];
43
+ section_evidence: {
44
+ evidence_refs: string[];
45
+ artifact_id: string;
46
+ section_key: string;
47
+ }[];
48
+ }, {
49
+ capability_group_ref: string;
50
+ capability_key: string;
51
+ member_evidence: {
52
+ evidence_refs: string[];
53
+ member_id: string;
54
+ }[];
55
+ section_evidence: {
56
+ evidence_refs: string[];
57
+ artifact_id: string;
58
+ section_key: string;
59
+ }[];
60
+ }>, "many">;
61
+ evidence_digest: z.ZodString;
62
+ }, "strict", z.ZodTypeAny, {
63
+ protocol: "context.indexer.capability-group-evidence/v1";
64
+ logical_unit_ref: string;
65
+ member_ids_digest: string;
66
+ group_projection_digest: string;
67
+ author_workset_digest: string;
68
+ member_ids: string[];
69
+ capability_groups: {
70
+ capability_group_ref: string;
71
+ capability_key: string;
72
+ member_evidence: {
73
+ evidence_refs: string[];
74
+ member_id: string;
75
+ }[];
76
+ section_evidence: {
77
+ evidence_refs: string[];
78
+ artifact_id: string;
79
+ section_key: string;
80
+ }[];
81
+ }[];
82
+ evidence_digest: string;
83
+ }, {
84
+ protocol: "context.indexer.capability-group-evidence/v1";
85
+ logical_unit_ref: string;
86
+ member_ids_digest: string;
87
+ group_projection_digest: string;
88
+ author_workset_digest: string;
89
+ member_ids: string[];
90
+ capability_groups: {
91
+ capability_group_ref: string;
92
+ capability_key: string;
93
+ member_evidence: {
94
+ evidence_refs: string[];
95
+ member_id: string;
96
+ }[];
97
+ section_evidence: {
98
+ evidence_refs: string[];
99
+ artifact_id: string;
100
+ section_key: string;
101
+ }[];
102
+ }[];
103
+ evidence_digest: string;
104
+ }>;
105
+ export type IndexerCapabilityGroupEvidence = z.infer<typeof indexerCapabilityGroupEvidenceSchema>;
106
+ export interface IndexerCapabilitySectionEvidenceInventoryItem {
107
+ artifact_id: string;
108
+ section_key: string;
109
+ evidence_refs: readonly string[];
110
+ }
111
+ export declare function indexerCapabilityGroupMemberIdsDigest(memberIds: readonly string[]): string;
112
+ export declare function indexerCapabilityGroupRef(input: {
113
+ logical_unit_ref: string;
114
+ capability_key: string;
115
+ }): string;
116
+ export declare function indexerCapabilityGroupEvidenceDigest(value: Omit<IndexerCapabilityGroupEvidence, "evidence_digest">): string;
117
+ export declare function buildIndexerCapabilityGroupEvidence(input: {
118
+ author_workset_digest: string;
119
+ group_projection_digest: string;
120
+ logical_unit_ref: string;
121
+ member_ids: readonly string[];
122
+ capability_groups: readonly (Omit<IndexerCapabilityGroupEvidence["capability_groups"][number], "capability_group_ref">)[];
123
+ }): IndexerCapabilityGroupEvidence;
124
+ export declare function validateIndexerCapabilityGroupEvidence(input: {
125
+ value: unknown;
126
+ workset: IndexerMainAuthorWorkset;
127
+ known_evidence_refs: readonly string[];
128
+ section_evidence_inventory: readonly IndexerCapabilitySectionEvidenceInventoryItem[];
129
+ }): IndexerCapabilityGroupEvidence;