@trim21/personal-pi-extensions 0.0.331 → 0.0.332
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/package.json +1 -1
- package/src/aft/index.ts +3 -7
package/package.json
CHANGED
package/src/aft/index.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* AFT 扩展入口:感知工具(aft_outline / aft_zoom / aft_callgraph / aft_search)
|
|
3
|
-
* +
|
|
4
|
-
* (workspace-wide 重构与 import 管理,路径级写保护)。
|
|
3
|
+
* + aft_refactor / aft_import(workspace-wide 重构与 import 管理,路径级写保护)。
|
|
5
4
|
*
|
|
6
5
|
* 感知工具只读,不触碰本仓库自己的 read/write/edit/bash 工具及其安全机制
|
|
7
6
|
* (bwrap 沙箱、write-guard、reads 记账)。aft_search 仅当用户级
|
|
8
7
|
* aft.jsonc 开启 semantic_search 时注册(本地语义索引需 ONNX 运行时,
|
|
9
|
-
* 内网默认关闭)。
|
|
10
|
-
*
|
|
11
|
-
* Rust 命令不支持 preview,写保护退化为路径级审批。
|
|
8
|
+
* 内网默认关闭)。aft_refactor / aft_import 的 Rust 命令不支持 preview,
|
|
9
|
+
* 写保护退化为路径级审批。
|
|
12
10
|
*
|
|
13
11
|
* 二进制缺失或 pool 创建失败时降级:不注册任何工具并在 session 开始时报
|
|
14
12
|
* 一次错,而不是让每个工具调用失败。
|
|
@@ -20,7 +18,6 @@
|
|
|
20
18
|
import { resolveCortexKitConfigPaths } from "@cortexkit/aft-bridge";
|
|
21
19
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
22
20
|
|
|
23
|
-
import { registerAstEditTool } from "./ast-edit.js";
|
|
24
21
|
import { type AftPool, createAftPool, shutdownAftPool } from "./bridge.js";
|
|
25
22
|
import { loadAftConfig } from "./config.js";
|
|
26
23
|
import { registerImportTool } from "./imports.js";
|
|
@@ -55,7 +52,6 @@ export default async function aftReadTools(pi: ExtensionAPI): Promise<void> {
|
|
|
55
52
|
registerOutlineTool(pi, toolCtx);
|
|
56
53
|
registerZoomTool(pi, toolCtx);
|
|
57
54
|
registerCallgraphTool(pi, toolCtx);
|
|
58
|
-
registerAstEditTool(pi, toolCtx);
|
|
59
55
|
registerRefactorTool(pi, toolCtx);
|
|
60
56
|
registerImportTool(pi, toolCtx);
|
|
61
57
|
if (cfg.semanticSearch) {
|