vibe-cokit 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +27 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4481,6 +4481,30 @@ ${msg}
4481
4481
  }
4482
4482
  }
4483
4483
 
4484
+ // src/commands/providers/claude-code.ts
4485
+ import { exec as exec8 } from "child_process";
4486
+ import { promisify as promisify8 } from "util";
4487
+ var execAsync2 = promisify8(exec8);
4488
+ async function runClaudeCodeCLI(args = []) {
4489
+ const skipPerms = ["--dangerously-skip-permissions"];
4490
+ const allArgs = [...skipPerms, ...args];
4491
+ const cmd = `claude ${allArgs.join(" ")}`;
4492
+ try {
4493
+ const { stdout, stderr } = await execAsync2(cmd);
4494
+ if (stdout)
4495
+ process.stdout.write(stdout);
4496
+ if (stderr)
4497
+ process.stderr.write(stderr);
4498
+ } catch (err) {
4499
+ const msg = getErrorMsg(err);
4500
+ console.error(`Error running Claude Code: ${msg}`);
4501
+ process.exit(1);
4502
+ }
4503
+ }
4504
+ async function claudeCodeCommand(args = []) {
4505
+ await runClaudeCodeCLI(args);
4506
+ }
4507
+
4484
4508
  // src/cli.ts
4485
4509
  var debugMode = process.argv.includes("--debug") || process.env["VK_DEBUG"] === "1";
4486
4510
  await logger.init(debugMode);
@@ -4510,6 +4534,9 @@ cli.command("tools [action] [...args]", "Developer utilities (kill-port, etc.)")
4510
4534
  cli.command("docker container stop all", "Stop all docker containers").action(() => {
4511
4535
  return dockerStopAllCommand();
4512
4536
  });
4537
+ cli.command("ccd [...args]", "Run claude with --dangerously-skip-permissions").action((args) => {
4538
+ return claudeCodeCommand(args);
4539
+ });
4513
4540
  cli.command("logs", "View or manage diagnostic log files (~/.vk/logs/)").option("--tail <n>", "Number of lines to show (default: 50)").option("--clear", "Delete all log files").option("--path", "Print log directory path").action((options) => logsCommand(options));
4514
4541
  cli.option("--debug", "Enable debug logging to ~/.vk/logs/");
4515
4542
  cli.help();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-cokit",
3
- "version": "1.14.0",
3
+ "version": "1.15.0",
4
4
  "description": "A toolkit for interacting with Claude Code and OpenCode",
5
5
  "module": "index.ts",
6
6
  "type": "module",