@trim21/personal-pi-extensions 0.1.574 → 0.1.575
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/spawn-agent.ts +7 -0
package/package.json
CHANGED
package/src/spawn-agent.ts
CHANGED
|
@@ -101,12 +101,19 @@ const SETTINGS_PATH = join(getAgentDir(), "settings.json");
|
|
|
101
101
|
* (read/edit/write) likewise share opencode/files.ts (they share the LSP
|
|
102
102
|
* service instance); that file also registers the shared `lsp-rename` and
|
|
103
103
|
* LSP inspect tools, which stay hidden unless a subagent declares them.
|
|
104
|
+
*
|
|
105
|
+
* The lowercase search tools map to the opencode implementations: `grep`
|
|
106
|
+
* overrides pi's built-in grep, and `glob` adds a tool pi has no built-in for
|
|
107
|
+
* (its `find` stays available). Each is a self-contained file registering one
|
|
108
|
+
* tool, so they load independently — `grep` without `glob`.
|
|
104
109
|
*/
|
|
105
110
|
const TOOL_EXTENSION_OVERRIDES: Record<string, string> = {
|
|
106
111
|
read: "opencode/files.ts",
|
|
107
112
|
edit: "opencode/files.ts",
|
|
108
113
|
write: "opencode/files.ts",
|
|
109
114
|
bash: "opencode/bash.ts",
|
|
115
|
+
grep: "opencode/grep.ts",
|
|
116
|
+
glob: "opencode/glob.ts",
|
|
110
117
|
Grep: "claude-code/grep.ts",
|
|
111
118
|
Glob: "claude-code/glob.ts",
|
|
112
119
|
Read: "claude-code/files.ts",
|