pi-all-tools 1.0.0

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 ADDED
@@ -0,0 +1,13 @@
1
+ # pi-all-tools
2
+
3
+ Enable all 7 built-in Pi tools: `read`, `bash`, `edit`, `write`, `grep`, `find`, `ls`
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pi install npm:pi-all-tools
9
+ ```
10
+
11
+ ## What it does
12
+
13
+ Pi 默认只启用 4 个工具 (read, bash, edit, write)。此扩展在每次 agent 启动时读取当前活跃工具列表,仅追加缺失的 find, grep, ls,不覆盖其他扩展注册的工具。
@@ -0,0 +1,7 @@
1
+ export default function (pi: any) {
2
+ pi.on("before_agent_start", async () => {
3
+ const current = pi.getActiveTools() || [];
4
+ const missing = ["find", "grep", "ls"].filter(t => !current.includes(t));
5
+ if (missing.length > 0) pi.setActiveTools([...current, ...missing]);
6
+ });
7
+ }
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "pi-all-tools",
3
+ "version": "1.0.0",
4
+ "description": "Enable all 7 built-in Pi tools by default (read, bash, edit, write, grep, find, ls)",
5
+ "license": "MIT",
6
+ "repository": "github:RealAlexandreAI/pi-all-tools",
7
+ "keywords": ["pi-package"],
8
+ "pi": {
9
+ "extensions": ["./extensions"]
10
+ }
11
+ }