@ghl-ai/aw 0.1.16 → 0.1.17

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 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
- if (lstatSync(p).isSymbolicLink()) {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghl-ai/aw",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Agentic Workspace CLI — pull, push & manage agents, skills and commands from the registry",
5
5
  "type": "module",
6
6
  "bin": {