@trim21/personal-pi-extensions 0.0.334 → 0.0.335

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trim21/personal-pi-extensions",
3
- "version": "0.0.334",
3
+ "version": "0.0.335",
4
4
  "type": "module",
5
5
  "description": "Custom pi coding-agent extensions: bwrap sandbox, workspace guard, opencode edit, and more",
6
6
  "keywords": [
@@ -1,6 +1,6 @@
1
1
  ### aft_outline tool
2
2
 
3
- 在读取具体内容之前先了解文件或目录的结构(比整文件 read 省 token)。
3
+ 在读取具体内容之前先了解文件或目录的结构。
4
4
 
5
5
  - target 为文件路径时:返回该文件的符号大纲,每个符号带签名与行号(如 `function greet(name: string): void 5:12`);Markdown/HTML 返回标题层级。适合先定位符号名和位置,再决定是否用 aft_zoom 看实现。
6
6
  - target 为目录路径时:默认返回扁平文件树(语言、顶层符号数、字节大小),一眼看清目录里有什么、规模多大;传 `files: false` 可切换为符号大纲(目录下每个文件的符号树,无签名,输出上限 30KB,超限截断)。
package/src/aft/tools.ts CHANGED
@@ -125,7 +125,7 @@ export function registerOutlineTool(pi: ExtensionAPI, ctx: AftToolContext): void
125
125
  label: "aft_outline",
126
126
  description: [
127
127
  "输出代码文件、目录的结构化大纲:函数/类/类型等符号及其行号范围;Markdown/HTML 返回标题层级。",
128
- "用它在读取具体内容之前先了解文件结构(比整文件 read 省 token)。",
128
+ "用它在读取具体内容之前先了解文件结构。",
129
129
  "深入了解某个符号用 aft_zoom;看跨文件调用关系用 aft_callgraph。",
130
130
  "target 支持:文件路径(带签名的符号大纲)、目录路径(递归最多 200 文件)。只接受单个 target。",
131
131
  "target 为目录时默认返回扁平文件树(语言、顶层符号数、字节大小);传 files: false 可改回符号大纲。",