@ghl-ai/aw 0.1.16 → 0.1.18
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/commands/nuke.mjs +8 -1
- package/package.json +1 -1
package/commands/nuke.mjs
CHANGED
|
@@ -51,11 +51,18 @@ function removeIdeSymlinks() {
|
|
|
51
51
|
for (const entry of readdirSync(dir)) {
|
|
52
52
|
const p = join(dir, entry);
|
|
53
53
|
try {
|
|
54
|
-
|
|
54
|
+
const stat = lstatSync(p);
|
|
55
|
+
if (stat.isSymbolicLink()) {
|
|
55
56
|
const target = readlinkSync(p);
|
|
56
57
|
if (target.includes('.aw_registry') || target.includes('aw_registry')) {
|
|
57
58
|
unlinkSync(p); removed++;
|
|
58
59
|
}
|
|
60
|
+
} else if (stat.isDirectory()) {
|
|
61
|
+
// Check if this is an AW-generated skill folder (contains SKILL.md)
|
|
62
|
+
const skillMd = join(p, 'SKILL.md');
|
|
63
|
+
if (existsSync(skillMd)) {
|
|
64
|
+
rmSync(p, { recursive: true, force: true }); removed++;
|
|
65
|
+
}
|
|
59
66
|
}
|
|
60
67
|
} catch { /* best effort */ }
|
|
61
68
|
}
|