@trim21/personal-pi-extensions 0.0.246 → 0.0.247
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
package/src/claude-code/files.ts
CHANGED
|
@@ -187,6 +187,7 @@ export function registerFileTools(pi: ExtensionAPI, state: ClaudeCodeState): voi
|
|
|
187
187
|
label: "Read",
|
|
188
188
|
description: [
|
|
189
189
|
"Reads a file from the local filesystem. You can access any file directly using this tool.",
|
|
190
|
+
"Assume this tool is able to read all files on the machine. If the User provides a path to a file assume that path is valid. It is okay to read a file that does not exist; an error will be returned.",
|
|
190
191
|
"The file_path parameter must be an absolute path. By default, it reads the entire file; files over 256 KB or 25K tokens require offset and limit.",
|
|
191
192
|
"Results use cat -n style line numbers starting at 1. Images are returned visually.",
|
|
192
193
|
"This tool reads files, not directories.",
|
|
@@ -294,7 +295,9 @@ export function registerFileTools(pi: ExtensionAPI, state: ClaudeCodeState): voi
|
|
|
294
295
|
{
|
|
295
296
|
file_path: Type.String({ description: "The absolute path to the file to modify" }),
|
|
296
297
|
old_string: Type.String({ description: "The text to replace" }),
|
|
297
|
-
new_string: Type.String({
|
|
298
|
+
new_string: Type.String({
|
|
299
|
+
description: "The text to replace it with (must be different from old_string)",
|
|
300
|
+
}),
|
|
298
301
|
replace_all: Type.Optional(
|
|
299
302
|
Type.Boolean({ description: "Replace all occurrences of old_string", default: false }),
|
|
300
303
|
),
|
package/src/claude-code/glob.ts
CHANGED
|
@@ -118,7 +118,7 @@ export function registerGlobTool(pi: ExtensionAPI): void {
|
|
|
118
118
|
path: Type.Optional(
|
|
119
119
|
Type.String({
|
|
120
120
|
description:
|
|
121
|
-
|
|
121
|
+
'The directory to search in. If not specified, the current working directory will be used. IMPORTANT: Omit this field to use the default directory. DO NOT enter "undefined" or "null" - simply omit it for the default behavior. Must be a valid directory path if provided.',
|
|
122
122
|
}),
|
|
123
123
|
),
|
|
124
124
|
},
|