UNPKG

@stackmemoryai/stackmemory

Version:

Lossless, project-scoped memory for AI coding tools. Durable context across sessions with 56 MCP tools, FTS5 search, conductor orchestrator, loop/watch monitoring, snapshot capture, pre-flight overlap checks, Claude/Codex/OpenCode wrappers, Linear sync, a

24 lines (23 loc) 711 B
#!/usr/bin/env node import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __pathDirname } from 'path'; const __filename = __fileURLToPath(import.meta.url); const __dirname = __pathDirname(__filename); import { spawn } from "child_process"; import * as path from "path"; const codexSmPath = path.join(__dirname, "codex-sm.js"); const args = [ "--dangerously-bypass-approvals-and-sandbox", ...process.argv.slice(2) ]; const child = spawn("node", [codexSmPath, ...args], { stdio: "inherit", env: process.env }); child.on("exit", (code) => { process.exit(code || 0); }); child.on("error", (err) => { console.error("Failed to launch codex-sm:", err.message); process.exit(1); });