@c4a/extract-go 0.6.19 → 0.7.1

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 CHANGED
@@ -28,10 +28,19 @@ Context candidates → review → approved knowledge
28
28
  ## Public APIs
29
29
 
30
30
  ```ts
31
- import { GoPlugin, indexGoRepository, indexGoSource } from "@c4a/extract-go";
31
+ import {
32
+ GoPlugin,
33
+ goExtractionToEvidenceAdapterResult,
34
+ indexGoRepository,
35
+ indexGoSource,
36
+ } from "@c4a/extract-go";
32
37
  ```
33
38
 
34
39
  - `GoPlugin` implements the standard `@c4a/extract` plugin protocol.
40
+ - `GoPlugin` reports `ast-catalog` capabilities and an explicit disposition for
41
+ every parsed Go file.
42
+ - `goExtractionToEvidenceAdapterResult()` publishes the common
43
+ `context.indexer.evidence-adapter-result/v1` wire result.
35
44
  - `indexGoSource()` parses one source unit when an adapter needs detailed facts
36
45
  before producing candidates.
37
46
  - `indexGoRepository()` indexes a repository tree with deterministic controls
package/README.zh-CN.md CHANGED
@@ -24,10 +24,18 @@ Context 候选 → 审核 → 正式知识
24
24
  ## 公开 API
25
25
 
26
26
  ```ts
27
- import { GoPlugin, indexGoRepository, indexGoSource } from "@c4a/extract-go";
27
+ import {
28
+ GoPlugin,
29
+ goExtractionToEvidenceAdapterResult,
30
+ indexGoRepository,
31
+ indexGoSource,
32
+ } from "@c4a/extract-go";
28
33
  ```
29
34
 
30
35
  - `GoPlugin` 实现标准 `@c4a/extract` 插件协议;
36
+ - `GoPlugin` 声明 `ast-catalog` capability,并为每个解析的 Go 文件返回显式 disposition;
37
+ - `goExtractionToEvidenceAdapterResult()` 发布统一的
38
+ `context.indexer.evidence-adapter-result/v1` 线协议结果;
31
39
  - `indexGoSource()` 解析一个源码单元,供 Adapter 在生成候选前读取细粒度事实;
32
40
  - `indexGoRepository()` 索引仓库树,并通过确定性参数控制 include root、测试文件、
33
41
  生成文件和排除目录。