feat: add frictionless RA-H OS setup
- Add MCP setup, doctor, init-db, config, and rules CLI commands - Publish latest MCP package wiring and local setup helper - Update OS install docs for MCP-only, full app, and demo-safe setup Generated with Claude Code
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { spawnSync } from 'node:child_process';
|
||||
|
||||
function run(command, args) {
|
||||
const result = spawnSync(command, args, {
|
||||
stdio: 'inherit',
|
||||
env: process.env,
|
||||
});
|
||||
|
||||
if (result.status !== 0) {
|
||||
process.exit(result.status || 1);
|
||||
}
|
||||
}
|
||||
|
||||
console.log('[setup-local] Rebuilding better-sqlite3 native bindings');
|
||||
run('npm', ['rebuild', 'better-sqlite3']);
|
||||
|
||||
console.log('[setup-local] Bootstrapping local RA-H database');
|
||||
run('npm', ['run', 'bootstrap:local']);
|
||||
|
||||
console.log('');
|
||||
console.log('[setup-local] Local app setup complete.');
|
||||
console.log('[setup-local] Next: npm run dev');
|
||||
console.log('[setup-local] Optional MCP setup: npx -y ra-h-mcp-server@latest setup --client claude-code');
|
||||
Reference in New Issue
Block a user