create-claude-cabinet 0.27.3 → 0.27.4
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/package.json
CHANGED
|
@@ -71,6 +71,34 @@ anything else. If omega is still ACTIVE (conditions 1–4 above), run the
|
|
|
71
71
|
full migration flow below FIRST; the sweep cleans up what teardown
|
|
72
72
|
leaves behind, it does not replace migration.
|
|
73
73
|
|
|
74
|
+
Also strip stale omega permission entries from `.claude/settings.local.json`
|
|
75
|
+
if present. The migration cleans `~/.claude/settings.json` (global hooks/MCP)
|
|
76
|
+
but misses per-project permission allowlists:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
if [ -f .claude/settings.local.json ]; then
|
|
80
|
+
node -e "
|
|
81
|
+
const fs = require('fs');
|
|
82
|
+
const p = '.claude/settings.local.json';
|
|
83
|
+
const d = JSON.parse(fs.readFileSync(p, 'utf8'));
|
|
84
|
+
const perms = d.permissions || {};
|
|
85
|
+
let removed = 0;
|
|
86
|
+
for (const key of Object.keys(perms)) {
|
|
87
|
+
if (key.startsWith('mcp__omega-memory__') || key.startsWith('mcp__omega__')) {
|
|
88
|
+
delete perms[key];
|
|
89
|
+
removed++;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (removed > 0) {
|
|
93
|
+
fs.writeFileSync(p, JSON.stringify(d, null, 2) + '\n');
|
|
94
|
+
console.log('Removed ' + removed + ' stale omega permission entries from settings.local.json');
|
|
95
|
+
}
|
|
96
|
+
"
|
|
97
|
+
fi
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Idempotent — no-ops when no omega entries exist.
|
|
101
|
+
|
|
74
102
|
## User-friendly prompt
|
|
75
103
|
|
|
76
104
|
Default to **dry-run** — a non-Oren user just upgrading CC shouldn't
|