@c4a/context 0.7.0 → 0.7.4

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 (117) hide show
  1. package/README.md +65 -170
  2. package/README.zh-CN.md +52 -129
  3. package/docs/README.md +9 -10
  4. package/docs/README.zh-CN.md +6 -7
  5. package/docs/getting-started.md +73 -422
  6. package/docs/guides/agent-guide.md +94 -523
  7. package/docs/guides/code-indexer-skill-authoring.md +24 -13
  8. package/docs/guides/markdown-indexer-skill-authoring.md +14 -14
  9. package/docs/reference/code-extractors.md +29 -136
  10. package/docs/reference/indexer-provider-protocol.md +60 -138
  11. package/docs/reference/package-templates.md +2 -3
  12. package/docs/reference/project-api.md +52 -985
  13. package/index.d.ts +12 -10
  14. package/index.js +12749 -15335
  15. package/indexerAgentStepProtocol.d.ts +1366 -7649
  16. package/indexerArtifact.d.ts +225 -0
  17. package/indexerArtifactDependencies.d.ts +41 -39
  18. package/indexerArtifactResult.d.ts +221 -255
  19. package/indexerAuthorizedWorksetView.d.ts +368 -0
  20. package/indexerBaseQuestionAmendment.d.ts +484 -280
  21. package/indexerBenchmark.d.ts +16 -16
  22. package/indexerCandidateCompile.d.ts +206 -16
  23. package/indexerCapabilityGroupEvidence.d.ts +6 -6
  24. package/indexerCatalogFallback.d.ts +122 -128
  25. package/indexerCollectionMapping.d.ts +13 -13
  26. package/indexerContentLayers.d.ts +8 -8
  27. package/{indexerOverlayTrust.d.ts → indexerContractOverlay.d.ts} +23 -569
  28. package/indexerControlledInvocation.d.ts +12 -12
  29. package/indexerControlledProgram.d.ts +2467 -2797
  30. package/indexerCoreExports.d.ts +6 -6
  31. package/indexerCustomizationDraft.d.ts +3315 -2091
  32. package/indexerCustomizationLadder.d.ts +2 -2
  33. package/indexerDependencyView.d.ts +108 -108
  34. package/indexerEffectiveArtifact.d.ts +1134 -0
  35. package/indexerEvidenceAdapterAuthorityMerge.d.ts +48 -0
  36. package/indexerEvidenceAdapterResult.d.ts +52 -52
  37. package/indexerExampleDecision.d.ts +128 -128
  38. package/indexerExampleIdentity.d.ts +6 -6
  39. package/indexerGeneratedAuthoringAudit.d.ts +18 -18
  40. package/indexerIncrementalImpact.d.ts +16 -16
  41. package/indexerInspectorWorksetProjection.d.ts +6 -0
  42. package/indexerInventoryDisposition.d.ts +70 -70
  43. package/indexerLayerComposition.d.ts +2139 -373
  44. package/indexerLayoutChange.d.ts +10 -10
  45. package/indexerLayoutProposalSet.d.ts +71 -66
  46. package/indexerLayoutResolver.d.ts +53 -48
  47. package/indexerLayoutTransition.d.ts +0 -50
  48. package/indexerLifecycle.d.ts +0 -13
  49. package/indexerMainLifecycle.d.ts +10 -0
  50. package/indexerMainRunLedger.d.ts +138 -11
  51. package/indexerMainRunProtocol.d.ts +1406 -785
  52. package/indexerMainWorkset.d.ts +460 -206
  53. package/indexerMaterialGapLedger.d.ts +13 -2904
  54. package/indexerOverlayQuestionAmendment.d.ts +497 -293
  55. package/indexerOverlayQuestionApplyProposal.d.ts +1030 -622
  56. package/indexerParserCapabilityCatalog.d.ts +136 -0
  57. package/indexerParserCoordinate.d.ts +16 -16
  58. package/indexerParserDependencyIntent.d.ts +22 -0
  59. package/indexerParserExecutionPlan.d.ts +388 -0
  60. package/indexerParserFactView.d.ts +42 -22
  61. package/indexerPartitionConvergence.d.ts +0 -3
  62. package/indexerPartitionInventory.d.ts +2 -0
  63. package/indexerPartitionPlan.d.ts +101 -99
  64. package/indexerPhysicalArtifactManifest.d.ts +8 -8
  65. package/indexerPostAuthorComposition.d.ts +116 -1156
  66. package/indexerPostAuthorRunLedger.d.ts +1434 -280
  67. package/indexerPrimaryProjection.d.ts +10 -10
  68. package/indexerPrimaryResultView.d.ts +435 -0
  69. package/indexerProfileContract.d.ts +181 -181
  70. package/indexerProgramExecutionAuthorization.d.ts +12 -12
  71. package/indexerProgramRunProtocol.d.ts +2141 -2749
  72. package/indexerProjectProposal.d.ts +496 -292
  73. package/indexerProjectedArtifactFanOutAudit.d.ts +0 -3
  74. package/indexerProtocolCommon.d.ts +4 -1
  75. package/indexerProvider.d.ts +134 -281
  76. package/indexerProviderComposition.d.ts +53 -53
  77. package/indexerProviderResolution.d.ts +12 -12
  78. package/indexerProviderResolutionAction.d.ts +14 -14
  79. package/indexerProviderRouting.d.ts +923 -515
  80. package/indexerProviderSelectionProposal.d.ts +893 -485
  81. package/indexerQuestionAuthority.d.ts +46 -47
  82. package/indexerReaderTargetInventory.d.ts +8 -8
  83. package/indexerRegistry.d.ts +765 -357
  84. package/indexerRequirementConfirmation.d.ts +98 -98
  85. package/indexerRequirementLifecycle.d.ts +224 -224
  86. package/indexerResultReconciliation.d.ts +204 -5919
  87. package/indexerResultReconciliationRun.d.ts +0 -1
  88. package/indexerRunEnvelope.d.ts +20 -20
  89. package/indexerSemanticInput.d.ts +3678 -0
  90. package/indexerStructuredDeclaration.d.ts +57 -53
  91. package/indexerSubjectCatalog.d.ts +14 -14
  92. package/indexerSubjectIdentity.d.ts +2 -2
  93. package/indexerSubjectKeyAuthority.d.ts +31 -30
  94. package/indexerTemplateRendering.d.ts +64 -64
  95. package/indexerToolSnapshot.d.ts +8 -8
  96. package/package.json +1 -1
  97. package/phases.d.ts +3 -183
  98. package/codeIndexPlan.d.ts +0 -158
  99. package/indexerAuditFacts.d.ts +0 -66
  100. package/indexerAuditOverrideReadiness.d.ts +0 -27
  101. package/indexerAuditProtocol.d.ts +0 -238
  102. package/indexerAuditRevision.d.ts +0 -726
  103. package/indexerAuditRevisionActions.d.ts +0 -236
  104. package/indexerMaterialAnswer.d.ts +0 -738
  105. package/indexerMaterialAnswerActualization.d.ts +0 -91
  106. package/indexerMaterialAnswerExecutionPlan.d.ts +0 -2887
  107. package/indexerMaterialAnswerFlow.d.ts +0 -63
  108. package/indexerMaterialAnswerLayout.d.ts +0 -76
  109. package/indexerMaterialAnswerReview.d.ts +0 -217
  110. package/indexerMaterialAnswerReviewRoute.d.ts +0 -6145
  111. package/indexerMaterialAnswerRunLedger.d.ts +0 -918
  112. package/indexerMaterialAnswerRunProtocol.d.ts +0 -1253
  113. package/indexerMaterialQuestionExclusion.d.ts +0 -129
  114. package/indexerMaterialQuestionWorkset.d.ts +0 -508
  115. package/indexerPlannedMaterialAnswer.d.ts +0 -116
  116. package/indexerProfileMetricAudit.d.ts +0 -218
  117. package/indexerWorksetRead.d.ts +0 -287
@@ -12,17 +12,17 @@ export declare const indexerSectionCollectionSchema: z.ZodObject<{
12
12
  reader_goal: z.ZodEffects<z.ZodString, string, string>;
13
13
  artifact_kind: z.ZodEffects<z.ZodString, string, string>;
14
14
  }, "strict", z.ZodTypeAny, {
15
- artifact_kind: string;
16
- document_kind: string;
17
- reader_goal: string;
18
15
  section_key: string;
19
16
  owner_indexer_id: string;
20
- }, {
21
- artifact_kind: string;
22
17
  document_kind: string;
23
18
  reader_goal: string;
19
+ artifact_kind: string;
20
+ }, {
24
21
  section_key: string;
25
22
  owner_indexer_id: string;
23
+ document_kind: string;
24
+ reader_goal: string;
25
+ artifact_kind: string;
26
26
  }>;
27
27
  collection: z.ZodType<import("./contracts.js").TopLevelNamespace, z.ZodTypeDef, import("./contracts.js").TopLevelNamespace>;
28
28
  profile_contract_digest: z.ZodString;
@@ -31,33 +31,33 @@ export declare const indexerSectionCollectionSchema: z.ZodObject<{
31
31
  resolution_digest: z.ZodString;
32
32
  }, "strict", z.ZodTypeAny, {
33
33
  protocol: "context.indexer.section-collection/v1";
34
- collection: import("./contracts.js").TopLevelNamespace;
35
34
  profile: string;
36
35
  mapping_digest: string;
36
+ collection: import("./contracts.js").TopLevelNamespace;
37
37
  profile_contract_digest: string;
38
38
  source_role: string;
39
39
  resolution_digest: string;
40
40
  projection: {
41
- artifact_kind: string;
42
- document_kind: string;
43
- reader_goal: string;
44
41
  section_key: string;
45
42
  owner_indexer_id: string;
43
+ document_kind: string;
44
+ reader_goal: string;
45
+ artifact_kind: string;
46
46
  };
47
47
  }, {
48
48
  protocol: "context.indexer.section-collection/v1";
49
- collection: import("./contracts.js").TopLevelNamespace;
50
49
  profile: string;
51
50
  mapping_digest: string;
51
+ collection: import("./contracts.js").TopLevelNamespace;
52
52
  profile_contract_digest: string;
53
53
  source_role: string;
54
54
  resolution_digest: string;
55
55
  projection: {
56
- artifact_kind: string;
57
- document_kind: string;
58
- reader_goal: string;
59
56
  section_key: string;
60
57
  owner_indexer_id: string;
58
+ document_kind: string;
59
+ reader_goal: string;
60
+ artifact_kind: string;
61
61
  };
62
62
  }>;
63
63
  export type IndexerSectionCollection = z.infer<typeof indexerSectionCollectionSchema>;
@@ -11,39 +11,39 @@ export declare const indexerArtifactFactSchema: z.ZodObject<{
11
11
  local_key: z.ZodEffects<z.ZodString, string, string>;
12
12
  }, "strict", z.ZodTypeAny, {
13
13
  kind: string;
14
- protocol: "context.subject-key/v1";
15
14
  namespace: string;
15
+ protocol: "context.subject-key/v1";
16
16
  local_key: string;
17
17
  }, {
18
18
  kind: string;
19
- protocol: "context.subject-key/v1";
20
19
  namespace: string;
20
+ protocol: "context.subject-key/v1";
21
21
  local_key: string;
22
22
  }>;
23
23
  value: z.ZodType<IndexerJson, z.ZodTypeDef, IndexerJson>;
24
24
  evidence_refs: z.ZodArray<z.ZodString, "many">;
25
25
  }, "strict", z.ZodTypeAny, {
26
26
  value: IndexerJson;
27
- evidence_refs: string[];
28
27
  fact_ref: string;
29
28
  fact_kind: string;
30
29
  subject_key: {
31
30
  kind: string;
32
- protocol: "context.subject-key/v1";
33
31
  namespace: string;
32
+ protocol: "context.subject-key/v1";
34
33
  local_key: string;
35
34
  };
35
+ evidence_refs: string[];
36
36
  }, {
37
37
  value: IndexerJson;
38
- evidence_refs: string[];
39
38
  fact_ref: string;
40
39
  fact_kind: string;
41
40
  subject_key: {
42
41
  kind: string;
43
- protocol: "context.subject-key/v1";
44
42
  namespace: string;
43
+ protocol: "context.subject-key/v1";
45
44
  local_key: string;
46
45
  };
46
+ evidence_refs: string[];
47
47
  }>;
48
48
  export declare const indexerDeterministicBlockRendererSchema: z.ZodEnum<["bullet-list", "key-value-table", "json-code-block"]>;
49
49
  export declare const indexerArtifactContentBlockSchema: z.ZodDiscriminatedUnion<"layer", [z.ZodObject<{
@@ -102,16 +102,16 @@ export declare const indexerRenderedContentBlockSchema: z.ZodObject<{
102
102
  content_digest: z.ZodString;
103
103
  }, "strict", z.ZodTypeAny, {
104
104
  evidence_refs: string[];
105
- content_digest: string;
106
105
  layer: "deterministic-block" | "semantic-prose";
107
106
  fact_refs: string[];
108
107
  markdown: string;
108
+ content_digest: string;
109
109
  }, {
110
110
  evidence_refs: string[];
111
- content_digest: string;
112
111
  layer: "deterministic-block" | "semantic-prose";
113
112
  fact_refs: string[];
114
113
  markdown: string;
114
+ content_digest: string;
115
115
  }>;
116
116
  export type IndexerArtifactFact = z.infer<typeof indexerArtifactFactSchema>;
117
117
  export type IndexerArtifactContentBlock = z.infer<typeof indexerArtifactContentBlockSchema>;