@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/aft/index.ts +3 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trim21/personal-pi-extensions",
3
- "version": "0.0.331",
3
+ "version": "0.0.332",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
package/src/aft/index.ts CHANGED
@@ -1,14 +1,12 @@
1
1
  /**
2
2
  * AFT 扩展入口:感知工具(aft_outline / aft_zoom / aft_callgraph / aft_search)
3
- * + ast_edit(符号级编辑,套用本仓库写保护机制)+ aft_refactor / aft_import
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
- * 内网默认关闭)。ast_edit 是写工具:用 AFTpreview 计算 diff,落盘走
10
- * 本仓库的 write-guard + reads 记账 + 写管线。aft_refactor / aft_import 的
11
- * Rust 命令不支持 preview,写保护退化为路径级审批。
8
+ * 内网默认关闭)。aft_refactor / aft_importRust 命令不支持 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) {