coder-config 0.46.0-beta.14 → 0.46.0-beta.16
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/constants.js +1 -1
- package/package.json +1 -1
- package/scripts/preuninstall.js +22 -2
package/lib/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coder-config",
|
|
3
|
-
"version": "0.46.0-beta.
|
|
3
|
+
"version": "0.46.0-beta.16",
|
|
4
4
|
"description": "Configuration manager for AI coding tools - Claude Code, Gemini CLI, Codex CLI, Antigravity. Manage MCPs, rules, permissions, memory, and workstreams.",
|
|
5
5
|
"author": "regression.io",
|
|
6
6
|
"main": "config-loader.js",
|
package/scripts/preuninstall.js
CHANGED
|
@@ -10,7 +10,16 @@ const { execSync } = require('child_process');
|
|
|
10
10
|
|
|
11
11
|
const home = os.homedir();
|
|
12
12
|
|
|
13
|
-
// 1.
|
|
13
|
+
// 1. Kill any running server processes first
|
|
14
|
+
try {
|
|
15
|
+
execSync('pkill -f "node.*coder-config.*server" 2>/dev/null || true');
|
|
16
|
+
execSync('pkill -f "node.*coder-config ui" 2>/dev/null || true');
|
|
17
|
+
console.log('Stopped running servers');
|
|
18
|
+
} catch (e) {
|
|
19
|
+
// Ignore errors - process may not be running
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// 2. Stop and remove LaunchAgent
|
|
14
23
|
const launchAgentPath = path.join(home, 'Library', 'LaunchAgents', 'io.regression.coder-config.plist');
|
|
15
24
|
if (fs.existsSync(launchAgentPath)) {
|
|
16
25
|
try {
|
|
@@ -22,7 +31,18 @@ if (fs.existsSync(launchAgentPath)) {
|
|
|
22
31
|
}
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
//
|
|
34
|
+
// 3. Remove PID file
|
|
35
|
+
const pidFile = path.join(home, '.coder-config', 'ui.pid');
|
|
36
|
+
if (fs.existsSync(pidFile)) {
|
|
37
|
+
try {
|
|
38
|
+
fs.unlinkSync(pidFile);
|
|
39
|
+
console.log('Removed PID file');
|
|
40
|
+
} catch (e) {
|
|
41
|
+
// Ignore errors
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// 4. Remove shell hooks from .zshrc and .bashrc
|
|
26
46
|
const shellFiles = [
|
|
27
47
|
path.join(home, '.zshrc'),
|
|
28
48
|
path.join(home, '.bashrc'),
|