@jigyasudham/veto 0.8.1 → 0.8.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.
package/README.md CHANGED
@@ -49,15 +49,26 @@ The `init` command prints the exact config snippet for your platform. Paste it i
49
49
  | **Windsurf** | `~/.codeium/windsurf/mcp_config.json` |
50
50
  | **VS Code** | `.vscode/mcp.json` |
51
51
 
52
- Claude Code, Gemini, Codex, Cursor, and Windsurf all use `"mcpServers"`. VS Code uses `"servers"` with `"type": "stdio"`:
52
+ Claude Code, Gemini, Codex, Cursor, and Windsurf all use `"mcpServers"`:
53
+
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "veto": {
58
+ "command": "veto-server"
59
+ }
60
+ }
61
+ }
62
+ ```
63
+
64
+ VS Code uses `"servers"` with `"type": "stdio"`:
53
65
 
54
66
  ```json
55
67
  {
56
68
  "servers": {
57
69
  "veto": {
58
70
  "type": "stdio",
59
- "command": "node",
60
- "args": ["/path/to/dist/server.js"]
71
+ "command": "veto-server"
61
72
  }
62
73
  }
63
74
  }
package/dist/cli.js CHANGED
@@ -3,9 +3,8 @@
3
3
  // Suppress Node experimental warnings (node:sqlite) for clean UX
4
4
  process.removeAllListeners('warning');
5
5
  import { mkdirSync, existsSync } from 'node:fs';
6
- import { join, dirname } from 'node:path';
6
+ import { join } from 'node:path';
7
7
  import { homedir } from 'node:os';
8
- import { fileURLToPath } from 'node:url';
9
8
  const VERSION = '0.8.0';
10
9
  const VETO_DIR = join(homedir(), '.veto');
11
10
  // Simple inline colors (no chalk needed for the init wizard to avoid ESM issues)
@@ -66,11 +65,7 @@ async function initCommand() {
66
65
  console.error(c.red(` Error initializing database: ${msg}`));
67
66
  process.exit(1);
68
67
  }
69
- // 3. Print Claude Code config snippet
70
- // Point to server.js (the MCP server), not cli.js (the init wizard)
71
- const cliFile = fileURLToPath(import.meta.url);
72
- const distDir = dirname(cliFile);
73
- const serverPath = join(distDir, 'server.js').replace(/\\/g, '/');
68
+ // 3. Print config snippet using the stable "veto-server" bin command
74
69
  console.log('');
75
70
  console.log(c.bold(' ┌─ Add Veto to your AI CLI or IDE ───────────────────────────────┐'));
76
71
  console.log(c.bold(' │') + ' ' + c.bold('│'));
@@ -87,8 +82,7 @@ async function initCommand() {
87
82
  console.log(c.bold(' │') + c.cyan(' {') + ' ' + c.bold('│'));
88
83
  console.log(c.bold(' │') + c.cyan(' "mcpServers": {') + ' ' + c.bold('│'));
89
84
  console.log(c.bold(' │') + c.cyan(' "veto": {') + ' ' + c.bold('│'));
90
- console.log(c.bold(' │') + c.cyan(' "command": "node",') + ' ' + c.bold('│'));
91
- console.log(c.bold(' │') + c.cyan(` "args": ["${serverPath}"]`) + ' ' + c.bold('│'));
85
+ console.log(c.bold(' │') + c.cyan(' "command": "veto-server"') + ' ' + c.bold('│'));
92
86
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
93
87
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
94
88
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
@@ -99,8 +93,7 @@ async function initCommand() {
99
93
  console.log(c.bold(' │') + c.cyan(' "servers": {') + ' ' + c.bold('│'));
100
94
  console.log(c.bold(' │') + c.cyan(' "veto": {') + ' ' + c.bold('│'));
101
95
  console.log(c.bold(' │') + c.cyan(' "type": "stdio",') + ' ' + c.bold('│'));
102
- console.log(c.bold(' │') + c.cyan(' "command": "node",') + ' ' + c.bold('│'));
103
- console.log(c.bold(' │') + c.cyan(` "args": ["${serverPath}"]`) + ' ' + c.bold('│'));
96
+ console.log(c.bold(' │') + c.cyan(' "command": "veto-server"') + ' ' + c.bold('│'));
104
97
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
105
98
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
106
99
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
@@ -112,7 +105,7 @@ async function initCommand() {
112
105
  console.log(' Next steps:');
113
106
  console.log(c.dim(' 1.') + ' Add the config above to your AI CLI or IDE config file');
114
107
  console.log(c.dim(' 2.') + ' Restart the CLI or IDE');
115
- console.log(c.dim(' 3.') + ' Run: veto_status — should return { "status": "running", "version": "0.8.0" }');
108
+ console.log(c.dim(' 3.') + ' Run: veto_status — should return { "status": "running", "version": "' + VERSION + '" }');
116
109
  console.log('');
117
110
  }
118
111
  // ─── Router ────────────────────────────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jigyasudham/veto",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "50 agents. 28 skills. 3 AIs. Self-learning. Zero extra cost.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -17,7 +17,8 @@
17
17
  "node": ">=22.5.0"
18
18
  },
19
19
  "bin": {
20
- "veto": "dist/cli.js"
20
+ "veto": "dist/cli.js",
21
+ "veto-server": "dist/server.js"
21
22
  },
22
23
  "main": "./dist/server.js",
23
24
  "scripts": {
package/src/cli.ts CHANGED
@@ -5,9 +5,8 @@
5
5
  process.removeAllListeners('warning');
6
6
 
7
7
  import { mkdirSync, existsSync } from 'node:fs';
8
- import { join, dirname } from 'node:path';
8
+ import { join } from 'node:path';
9
9
  import { homedir } from 'node:os';
10
- import { fileURLToPath } from 'node:url';
11
10
 
12
11
  const VERSION = '0.8.0';
13
12
  const VETO_DIR = join(homedir(), '.veto');
@@ -73,12 +72,7 @@ async function initCommand() {
73
72
  process.exit(1);
74
73
  }
75
74
 
76
- // 3. Print Claude Code config snippet
77
- // Point to server.js (the MCP server), not cli.js (the init wizard)
78
- const cliFile = fileURLToPath(import.meta.url);
79
- const distDir = dirname(cliFile);
80
- const serverPath = join(distDir, 'server.js').replace(/\\/g, '/');
81
-
75
+ // 3. Print config snippet using the stable "veto-server" bin command
82
76
  console.log('');
83
77
  console.log(c.bold(' ┌─ Add Veto to your AI CLI or IDE ───────────────────────────────┐'));
84
78
  console.log(c.bold(' │') + ' ' + c.bold('│'));
@@ -95,8 +89,7 @@ async function initCommand() {
95
89
  console.log(c.bold(' │') + c.cyan(' {') + ' ' + c.bold('│'));
96
90
  console.log(c.bold(' │') + c.cyan(' "mcpServers": {') + ' ' + c.bold('│'));
97
91
  console.log(c.bold(' │') + c.cyan(' "veto": {') + ' ' + c.bold('│'));
98
- console.log(c.bold(' │') + c.cyan(' "command": "node",') + ' ' + c.bold('│'));
99
- console.log(c.bold(' │') + c.cyan(` "args": ["${serverPath}"]`) + ' ' + c.bold('│'));
92
+ console.log(c.bold(' │') + c.cyan(' "command": "veto-server"') + ' ' + c.bold('│'));
100
93
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
101
94
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
102
95
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
@@ -107,8 +100,7 @@ async function initCommand() {
107
100
  console.log(c.bold(' │') + c.cyan(' "servers": {') + ' ' + c.bold('│'));
108
101
  console.log(c.bold(' │') + c.cyan(' "veto": {') + ' ' + c.bold('│'));
109
102
  console.log(c.bold(' │') + c.cyan(' "type": "stdio",') + ' ' + c.bold('│'));
110
- console.log(c.bold(' │') + c.cyan(' "command": "node",') + ' ' + c.bold('│'));
111
- console.log(c.bold(' │') + c.cyan(` "args": ["${serverPath}"]`) + ' ' + c.bold('│'));
103
+ console.log(c.bold(' │') + c.cyan(' "command": "veto-server"') + ' ' + c.bold('│'));
112
104
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
113
105
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
114
106
  console.log(c.bold(' │') + c.cyan(' }') + ' ' + c.bold('│'));
@@ -120,7 +112,7 @@ async function initCommand() {
120
112
  console.log(' Next steps:');
121
113
  console.log(c.dim(' 1.') + ' Add the config above to your AI CLI or IDE config file');
122
114
  console.log(c.dim(' 2.') + ' Restart the CLI or IDE');
123
- console.log(c.dim(' 3.') + ' Run: veto_status — should return { "status": "running", "version": "0.8.0" }');
115
+ console.log(c.dim(' 3.') + ' Run: veto_status — should return { "status": "running", "version": "' + VERSION + '" }');
124
116
  console.log('');
125
117
  }
126
118