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
* add fetching global cline rules files
* add toggle functionality to clinerules
* selectively filter out OS generated files from read directory
* remove .file filtering
* remove duplicate imports
* pass path to global rules directory in system prompt
* empty commit to trigger tests
Copy file name to clipboardExpand all lines: src/core/prompts/responses.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -204,8 +204,8 @@ Otherwise, if you have not completed the task and do not need additional informa
204
204
clineIgnoreInstructions: (content: string)=>
205
205
`# .clineignore\n\n(The following is provided by a root-level .clineignore 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${content}\n.clineignore`,
`# .clinerules/\n\nThe following is provided by a global .clinerules/ directory, located at ${globalClineRulesFilePath.toPosix()}, where the user has specified instructions for all working directories:\n\n${content}`,
`# .clinerules/\n\nThe following is provided by a root-level .clinerules/ directory where the user has specified instructions for this working directory (${cwd.toPosix()})\n\n${content}`,
@@ -291,6 +294,7 @@ export async function getAllExtensionState(context: vscode.ExtensionContext) {
291
294
customInstructions,
292
295
taskHistory,
293
296
autoApprovalSettings: autoApprovalSettings||DEFAULT_AUTO_APPROVAL_SETTINGS,// default value can be 0 or empty string
297
+
clineRulesToggles: globalClineRulesToggles||{},
294
298
browserSettings: { ...DEFAULT_BROWSER_SETTINGS, ...browserSettings},// this will ensure that older versions of browserSettings (e.g. before remoteBrowserEnabled was added) are merged with the default values (false for remoteBrowserEnabled)
constcwd=vscode.workspace.workspaceFolders?.map((folder)=>folder.uri.fsPath).at(0)??path.join(os.homedir(),"Desktop")// may or may not exist but fs checking existence would immediately ask for permission which would be bad UX, need to come up with a better solution
89
95
@@ -1280,10 +1286,19 @@ export class Task {
1280
1286
? `# Preferred Language\n\nSpeak in ${preferredLanguage}.`
0 commit comments