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:
“BeeRad”
2026-04-21 08:29:31 +10:00
parent 14b5784cd6
commit 21772fcba7
17 changed files with 718 additions and 49 deletions
+25
View File
@@ -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');