#!/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 claudeSmPath = path.join(__dirname, "claude-sm.js");
const args = ["--dangerously-skip-permissions", ...process.argv.slice(2)];
const child = spawn("node", [claudeSmPath, ...args], {
  stdio: "inherit",
  env: process.env
});
child.on("exit", (code) => {
  process.exit(code || 0);
});
child.on("error", (err) => {
  console.error("Failed to launch claude-sm:", err.message);
  process.exit(1);
});
//# sourceMappingURL=claude-sm-danger.js.map
