mirror of
https://github.com/samvallad33/vestige.git
synced 2026-04-24 16:26:22 +02:00
Critical fixes: - npm postinstall.js: BINARY_VERSION '1.1.3' → '2.0.1' (every install was 404ing) - npm package name: corrected error messages to 'vestige-mcp-server' - README: npm install command pointed to wrong package - MSRV: bumped from 1.85 to 1.91 (uses floor_char_boundary from 1.91) - CI: removed stale 'develop' branch from test.yml triggers Security hardening: - CSP: restricted connect-src from wildcard 'ws: wss:' to localhost-only - Added X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy headers - Added frame-ancestors 'none', base-uri 'self', form-action 'self' to CSP - Capped retention_distribution endpoint from 10k to 1k nodes - Added debug logging for WebSocket connections without Origin header Maintenance: - All clippy warnings fixed (58 total: redundant closures, collapsible ifs, no-op casts) - All versions harmonized to 2.0.1 across Cargo.toml and package.json - CLAUDE.md updated to match v2.0.1 (21 tools, 29 modules, 1238 tests) - docs/CLAUDE-SETUP.md updated deprecated function names - License corrected to AGPL-3.0-only in root package.json 1,238 tests passing, 0 clippy warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
31 lines
821 B
JavaScript
Executable file
31 lines
821 B
JavaScript
Executable file
#!/usr/bin/env node
|
|
|
|
const { spawn } = require('child_process');
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
const os = require('os');
|
|
|
|
const platform = os.platform();
|
|
const binaryName = platform === 'win32' ? 'vestige-mcp.exe' : 'vestige-mcp';
|
|
const binaryPath = path.join(__dirname, binaryName);
|
|
|
|
if (!fs.existsSync(binaryPath)) {
|
|
console.error('Error: vestige-mcp binary not found.');
|
|
console.error(`Expected at: ${binaryPath}`);
|
|
console.error('');
|
|
console.error('Try reinstalling: npm install -g vestige-mcp-server');
|
|
process.exit(1);
|
|
}
|
|
|
|
const child = spawn(binaryPath, process.argv.slice(2), {
|
|
stdio: 'inherit',
|
|
});
|
|
|
|
child.on('error', (err) => {
|
|
console.error('Failed to start vestige-mcp:', err.message);
|
|
process.exit(1);
|
|
});
|
|
|
|
child.on('exit', (code) => {
|
|
process.exit(code ?? 0);
|
|
});
|