Changesets · Branches · Tags · Compare
| Changeset | 63585e23933dfe35f94e054a80b62b40faa2f3fbda7058c8775775722e513b82 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-09-10 10:35 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-09-10 10:35 -07:00 |
| Parents | e10d18bdede8, 051d3a7f5a12 |
3 files changed
modified core/tools/definitions/editFile.ts +2 −2
| @@ -7,7 +7,7 @@ | ||
| 7 | 7 | changes: string; |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | -export const NO_PARALLEL_TOOL_CALLING_INTSRUCTION = | |
| 10 | +export const NO_PARALLEL_TOOL_CALLING_INSTRUCTION = | |
| 11 | 11 | "This tool CANNOT be called in parallel with other tools."; |
| 12 | 12 | |
| 13 | 13 | const CHANGES_DESCRIPTION = |
| @@ -24,7 +24,7 @@ | ||
| 24 | 24 | isInstant: false, |
| 25 | 25 | function: { |
| 26 | 26 | name: BuiltInToolNames.EditExistingFile, |
| 27 | - description: `Use this tool to edit an existing file. If you don't know the contents of the file, read it first.\n${EDIT_CODE_INSTRUCTIONS}\n${NO_PARALLEL_TOOL_CALLING_INTSRUCTION}`, | |
| 27 | + description: `Use this tool to edit an existing file. If you don't know the contents of the file, read it first.\n${EDIT_CODE_INSTRUCTIONS}\n${NO_PARALLEL_TOOL_CALLING_INSTRUCTION}`, | |
| 28 | 28 | parameters: { |
| 29 | 29 | type: "object", |
| 30 | 30 | required: ["filepath", "changes"], |
modified core/tools/definitions/multiEdit.ts +2 −2
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | import { Tool } from "../.."; |
| 2 | 2 | import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn"; |
| 3 | -import { NO_PARALLEL_TOOL_CALLING_INTSRUCTION } from "./editFile"; | |
| 3 | +import { NO_PARALLEL_TOOL_CALLING_INSTRUCTION } from "./editFile"; | |
| 4 | 4 | import { singleFindAndReplaceTool } from "./singleFindAndReplace"; |
| 5 | 5 | |
| 6 | 6 | export interface EditOperation { |
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | |
| 44 | 44 | CRITICAL REQUIREMENTS: |
| 45 | 45 | 1. ALWAYS use the ${BuiltInToolNames.ReadFile} tool just before making edits, to understand the file's up-to-date contents and context. The user can also edit the file while you are working with it. |
| 46 | -2. ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION} | |
| 46 | +2. ${NO_PARALLEL_TOOL_CALLING_INSTRUCTION} | |
| 47 | 47 | 3. When making edits: |
| 48 | 48 | - Ensure all edits result in idiomatic, correct code |
| 49 | 49 | - Do not leave the code in a broken state |
modified core/tools/definitions/singleFindAndReplace.ts +2 −2
| @@ -1,6 +1,6 @@ | ||
| 1 | 1 | import { Tool } from "../.."; |
| 2 | 2 | import { BUILT_IN_GROUP_NAME, BuiltInToolNames } from "../builtIn"; |
| 3 | -import { NO_PARALLEL_TOOL_CALLING_INTSRUCTION } from "./editFile"; | |
| 3 | +import { NO_PARALLEL_TOOL_CALLING_INSTRUCTION } from "./editFile"; | |
| 4 | 4 | |
| 5 | 5 | export interface SingleFindAndReplaceArgs { |
| 6 | 6 | filepath: string; |
| @@ -24,7 +24,7 @@ | ||
| 24 | 24 | |
| 25 | 25 | IMPORTANT: |
| 26 | 26 | - ALWAYS use the \`${BuiltInToolNames.ReadFile}\` tool just before making edits, to understand the file's up-to-date contents and context. The user can also edit the file while you are working with it. |
| 27 | -- ${NO_PARALLEL_TOOL_CALLING_INTSRUCTION} | |
| 27 | +- ${NO_PARALLEL_TOOL_CALLING_INSTRUCTION} | |
| 28 | 28 | - When editing text from \`${BuiltInToolNames.ReadFile}\` tool output, ensure you preserve exact whitespace/indentation. |
| 29 | 29 | - Only use emojis if the user explicitly requests it. Avoid adding emojis to files unless asked. |
| 30 | 30 | - Use \`replace_all\` for replacing and renaming strings across the file. This parameter is useful if you want to rename a variable, for instance. |