You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -188,14 +188,14 @@ export class RooIgnoreController {
188
188
}
189
189
190
190
/**
191
-
* Get formatted instructions about the .rooignore file for the LLM
192
-
* @returns Formatted instructions or undefined if .rooignore doesn't exist
191
+
* Get formatted instructions about the .pearai-agent-ignore file for the LLM
192
+
* @returns Formatted instructions or undefined if .pearai-agent-ignore doesn't exist
193
193
*/
194
194
getInstructions(): string|undefined{
195
195
if(!this.rooIgnoreContent){
196
196
returnundefined
197
197
}
198
198
199
-
return`# .rooignore\n\n(The following is provided by a root-level .rooignore file where the user has specified files and directories that should not be accessed. When using list_files, you'll notice a ${LOCK_TEXT_SYMBOL} next to files that are blocked. Attempting to access the file's contents e.g. through read_file will result in an error.)\n\n${this.rooIgnoreContent}\n.rooignore`
199
+
return`# ${AGENT_IGNORE_FILE_NAME}\n\n(The following is provided by a root-level ${AGENT_IGNORE_FILE_NAME} file where the user has specified files and directories that should not be accessed. When using list_files, you'll notice a ${LOCK_TEXT_SYMBOL} next to files that are blocked. Attempting to access the file's contents e.g. through read_file will result in an error.)\n\n${this.rooIgnoreContent}\n${AGENT_IGNORE_FILE_NAME}`
@@ -12,12 +13,12 @@ export async function createModeInstructions(context: vscode.ExtensionContext |
12
13
return`
13
14
Custom modes can be configured in two ways:
14
15
1. Globally via '${customModesPath}' (created automatically on startup)
15
-
2. Per-workspace via '.roomodes' in the workspace root directory
16
+
2. Per-workspace via '${AGENT_MODES_FILE_NAME}' in the workspace root directory
16
17
17
-
When modes with the same slug exist in both files, the workspace-specific .roomodes version takes precedence. This allows projects to override global modes or define project-specific modes.
18
+
When modes with the same slug exist in both files, the workspace-specific ${AGENT_MODES_FILE_NAME} version takes precedence. This allows projects to override global modes or define project-specific modes.
18
19
19
20
20
-
If asked to create a project mode, create it in .roomodes in the workspace root. If asked to create a global mode, use the global custom modes file.
21
+
If asked to create a project mode, create it in ${AGENT_MODES_FILE_NAME} in the workspace root. If asked to create a global mode, use the global custom modes file.
21
22
22
23
- The following fields are required and must not be empty:
23
24
* slug: A valid slug (lowercase letters, numbers, and hyphens). Must be unique, and shorter is better.
toolDenied: ()=>`The user denied this operation.`,
@@ -15,7 +16,7 @@ export const formatResponse = {
15
16
toolError: (error?: string)=>`The tool execution failed with the following error:\n<error>\n${error}\n</error>`,
16
17
17
18
rooIgnoreError: (path: string)=>
18
-
`Access to ${path} is blocked by the .rooignore file settings. You must try to continue in the task without using this file, or ask the user to update the .rooignore file.`,
19
+
`Access to ${path} is blocked by the ${AGENT_IGNORE_FILE_NAME} file settings. You must try to continue in the task without using this file, or ask the user to update the ${AGENT_IGNORE_FILE_NAME} file.`,
19
20
20
21
noToolsUsed: ()=>
21
22
`[ERROR] You did not use a tool in your previous response! Please retry with a tool use.
0 commit comments