add CLAUDE_PATH env variable
This commit is contained in:
@@ -18,12 +18,13 @@ export async function executeCodeCommand(args: string[] = []) {
|
|||||||
// Increment reference count when command starts
|
// Increment reference count when command starts
|
||||||
incrementReferenceCount();
|
incrementReferenceCount();
|
||||||
|
|
||||||
// Execute claude command
|
// Execute claude command
|
||||||
const claudeProcess = spawn("claude", args, {
|
const claudePath = process.env.CLAUDE_PATH || "claude";
|
||||||
env,
|
const claudeProcess = spawn(claudePath, args, {
|
||||||
stdio: "inherit",
|
env,
|
||||||
shell: true,
|
stdio: "inherit",
|
||||||
});
|
shell: true
|
||||||
|
});
|
||||||
|
|
||||||
claudeProcess.on("error", (error) => {
|
claudeProcess.on("error", (error) => {
|
||||||
console.error("Failed to start claude command:", error.message);
|
console.error("Failed to start claude command:", error.message);
|
||||||
|
|||||||
Reference in New Issue
Block a user