openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
16 lines (12 loc) • 472 B
JavaScript
import { spawnSync } from "node:child_process";
import { fileURLToPath } from "node:url";
const openclaw = fileURLToPath(new URL("../../../openclaw.mjs", import.meta.url));
const result = spawnSync(process.execPath, [openclaw, ...process.argv.slice(2)], {
env: process.env,
stdio: "inherit",
});
if (result.error) {
process.stderr.write(`Unable to run the bundled OpenClaw CLI: ${result.error.message}\n`);
}
process.exit(result.status ?? 1);