@ghl-ai/aw 0.1.36-beta.45 → 0.1.36-beta.46
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 +6 -10
- package/package.json +1 -1
package/commands/nuke.mjs
CHANGED
|
@@ -312,18 +312,14 @@ export async function nukeCommand(args) {
|
|
|
312
312
|
rmSync(awDocs, { recursive: true, force: true });
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
// Remove ~/.aw_registry/ —
|
|
316
|
-
|
|
317
|
-
try { execSync(`rm -rf "${GLOBAL_AW_DIR}"`, { stdio: 'pipe' }); } catch { /* best effort */ }
|
|
318
|
-
}
|
|
315
|
+
// Remove ~/.aw_registry/ — rm -rf is a no-op on non-existent paths; always safe
|
|
316
|
+
try { execSync(`rm -rf "${GLOBAL_AW_DIR}"`, { stdio: 'pipe' }); } catch { /* best effort */ }
|
|
319
317
|
|
|
320
318
|
// Remove ~/.aw/ — use rm -rf as primary since Node rmSync can silently fail on git repos
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
} catch {
|
|
325
|
-
try { rmSync(AW_HOME, { recursive: true, force: true }); } catch { /* best effort */ }
|
|
326
|
-
}
|
|
319
|
+
try {
|
|
320
|
+
execSync(`rm -rf "${AW_HOME}"`, { stdio: 'pipe' });
|
|
321
|
+
} catch {
|
|
322
|
+
try { rmSync(AW_HOME, { recursive: true, force: true }); } catch { /* best effort */ }
|
|
327
323
|
}
|
|
328
324
|
|
|
329
325
|
// Verify removal actually succeeded
|