vibe-annotations-server 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/index.js +44 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -53,6 +53,43 @@ function installFromGitHub() {
53
53
  }
54
54
  }
55
55
 
56
+ function uninstallServer() {
57
+ log('đŸ—‘ī¸ Uninstalling vibe-annotations-server...', colors.cyan);
58
+
59
+ // First try to stop the server if it's running
60
+ try {
61
+ log(' Stopping server first...', colors.dim);
62
+ execSync(`${COMMAND_NAME} stop`, { stdio: 'ignore' });
63
+ } catch {
64
+ // Server might not be running, continue
65
+ }
66
+
67
+ // Check if server is currently installed
68
+ if (!checkIfInstalled()) {
69
+ log('â„šī¸ vibe-annotations-server is not globally installed', colors.yellow);
70
+ return true;
71
+ }
72
+
73
+ // Attempt to uninstall
74
+ try {
75
+ execSync('npm uninstall -g vibe-annotations-server', { stdio: 'inherit' });
76
+
77
+ // Verify uninstallation worked
78
+ if (!checkIfInstalled()) {
79
+ log('✅ Successfully uninstalled vibe-annotations-server!', colors.green);
80
+ log(' Server command is no longer available', colors.dim);
81
+ return true;
82
+ } else {
83
+ log('âš ī¸ Uninstall command ran, but server still appears to be installed', colors.yellow);
84
+ return false;
85
+ }
86
+ } catch (error) {
87
+ log('❌ Failed to uninstall. Please try manually:', colors.yellow);
88
+ log(' npm uninstall -g vibe-annotations-server', colors.dim);
89
+ return false;
90
+ }
91
+ }
92
+
56
93
  function runCommand(args) {
57
94
  const child = spawn(COMMAND_NAME, args, { stdio: 'inherit' });
58
95
 
@@ -79,6 +116,13 @@ function main() {
79
116
  return;
80
117
  }
81
118
 
119
+ // Handle uninstall command
120
+ if (args[0] === 'uninstall') {
121
+ log('🌟 Vibe Annotations Server - Uninstall', colors.bright);
122
+ const success = uninstallServer();
123
+ process.exit(success ? 0 : 1);
124
+ }
125
+
82
126
  log('🌟 Vibe Annotations Server', colors.bright);
83
127
 
84
128
  // Check if vibe-annotations-server is installed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-annotations-server",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "MCP server for Vibe Annotations - AI-powered localhost development feedback",
5
5
  "main": "index.js",
6
6
  "bin": {