mirror of
https://github.com/obra/episodic-memory.git
synced 2026-09-14 13:43:14 +08:00
218a14ec85
- Convert all CLI entry points (episodic-memory, index-conversations, search-conversations, mcp-server) from bash to Node.js - Add search-conversations.js to complete Node.js CLI coverage - Update SessionStart hook to call node directly - Eliminates bash dependency for full cross-platform support (Windows, NixOS, etc.) Obsoletes PRs #29, #17, #11 which all modified bash scripts. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
14 lines
413 B
JavaScript
Executable File
14 lines
413 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
import { spawn } from 'child_process';
|
|
import { fileURLToPath } from 'url';
|
|
import { dirname, join } from 'path';
|
|
|
|
const __filename = fileURLToPath(import.meta.url);
|
|
const __dirname = dirname(__filename);
|
|
|
|
const child = spawn(process.execPath, [join(__dirname, 'mcp-server-wrapper.js'), ...process.argv.slice(2)], {
|
|
stdio: 'inherit'
|
|
});
|
|
|
|
child.on('exit', (code) => process.exit(code ?? 0));
|