vibe-cokit 1.15.0 → 1.16.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.
- package/dist/cli.js +19 -16
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -4482,24 +4482,27 @@ ${msg}
|
|
|
4482
4482
|
}
|
|
4483
4483
|
|
|
4484
4484
|
// src/commands/providers/claude-code.ts
|
|
4485
|
-
import {
|
|
4486
|
-
|
|
4487
|
-
var execAsync2 = promisify8(exec8);
|
|
4488
|
-
async function runClaudeCodeCLI(args = []) {
|
|
4485
|
+
import { spawn } from "child_process";
|
|
4486
|
+
function runClaudeCodeCLI(args = []) {
|
|
4489
4487
|
const skipPerms = ["--dangerously-skip-permissions"];
|
|
4490
4488
|
const allArgs = [...skipPerms, ...args];
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4489
|
+
return new Promise((resolve, reject) => {
|
|
4490
|
+
const child = spawn("claude", allArgs, {
|
|
4491
|
+
stdio: "inherit",
|
|
4492
|
+
shell: process.platform === "win32"
|
|
4493
|
+
});
|
|
4494
|
+
child.on("error", (err) => {
|
|
4495
|
+
const msg = getErrorMsg(err);
|
|
4496
|
+
console.error(`Error running Claude Code: ${msg}`);
|
|
4497
|
+
process.exit(1);
|
|
4498
|
+
});
|
|
4499
|
+
child.on("exit", (code) => {
|
|
4500
|
+
if (code !== 0 && code !== null) {
|
|
4501
|
+
process.exit(code);
|
|
4502
|
+
}
|
|
4503
|
+
resolve();
|
|
4504
|
+
});
|
|
4505
|
+
});
|
|
4503
4506
|
}
|
|
4504
4507
|
async function claudeCodeCommand(args = []) {
|
|
4505
4508
|
await runClaudeCodeCLI(args);
|