refacil-sdd-ai 4.0.7 → 4.0.8
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/lib/hooks.js +2 -1
- package/package.json +1 -1
package/lib/hooks.js
CHANGED
|
@@ -24,6 +24,7 @@ function writeCursorHooksJson(projectRoot, config) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
function installCursorHooks(projectRoot) {
|
|
27
|
+
cleanLegacySettingsHooks(projectRoot);
|
|
27
28
|
const config = readCursorHooksJson(projectRoot);
|
|
28
29
|
let changed = false;
|
|
29
30
|
|
|
@@ -195,7 +196,7 @@ function cleanLegacySettingsHooks(projectRoot) {
|
|
|
195
196
|
const sddMarkers = ['_sdd', '_sdd_compact', '_sdd_review', '_sdd_notify'];
|
|
196
197
|
const evts = ['SessionStart', 'PreToolUse', 'UserPromptSubmit', 'beforeSubmitPrompt', 'Stop', 'afterAgentResponse'];
|
|
197
198
|
|
|
198
|
-
for (const ideDir of ['.cursor'
|
|
199
|
+
for (const ideDir of ['.cursor']) {
|
|
199
200
|
const settingsPath = path.join(projectRoot, ideDir, 'settings.json');
|
|
200
201
|
if (!fs.existsSync(settingsPath)) continue;
|
|
201
202
|
|
package/package.json
CHANGED