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
refactor: remove unrelated changes from todo list settings PR
- Reverted unrelated symlink handling refactoring in custom-instructions.ts
- Reverted unrelated test mocking refactoring in system-prompt.spec.ts
- Kept only necessary changes for todo list feature:
- settings parameter in addCustomInstructions interface
- three test cases for todo list enable/disable functionality
- updated mock to accept settings parameter
rules.push(`# Rules from .clinerules-${mode}:\nMock mode-specific rules`)
131
-
}
132
-
rules.push(`# Rules from .clinerules:\nMock generic rules`)
133
-
134
-
if(rules.length>0){
135
-
sections.push(`Rules:\n${rules.join("\n")}`)
136
-
}
137
-
138
-
constjoinedSections=sections.join("\n\n")
139
-
returnjoinedSections
140
-
? `\n====\n\nUSER'S CUSTOM INSTRUCTIONS\n\nThe following additional instructions are provided by the user, and should be followed to the best of your ability without interfering with the TOOL USE guidelines.\n\n${joinedSections}`
rules.push(`# Rules from .clinerules-${mode}:\nMock mode-specific rules`)
107
+
}
108
+
rules.push(`# Rules from .clinerules:\nMock generic rules`)
109
+
110
+
if(rules.length>0){
111
+
sections.push(`Rules:\n${rules.join("\n")}`)
112
+
}
113
+
114
+
constjoinedSections=sections.join("\n\n")
115
+
returnjoinedSections
116
+
? `\n====\n\nUSER'S CUSTOM INSTRUCTIONS\n\nThe following additional instructions are provided by the user, and should be followed to the best of your ability without interfering with the TOOL USE guidelines.\n\n${joinedSections}`
0 commit comments