@locusai/cli 0.4.2 → 0.4.3
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/bin/locus.js +5 -3
- package/package.json +2 -2
package/bin/locus.js
CHANGED
|
@@ -21931,7 +21931,9 @@ class ClaudeRunner {
|
|
|
21931
21931
|
];
|
|
21932
21932
|
const claude = spawn("claude", args, {
|
|
21933
21933
|
cwd: this.projectPath,
|
|
21934
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
21934
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
21935
|
+
env: process.env,
|
|
21936
|
+
shell: true
|
|
21935
21937
|
});
|
|
21936
21938
|
let output = "";
|
|
21937
21939
|
let errorOutput = "";
|
|
@@ -21943,13 +21945,13 @@ class ClaudeRunner {
|
|
|
21943
21945
|
errorOutput += data.toString();
|
|
21944
21946
|
process.stderr.write(data.toString());
|
|
21945
21947
|
});
|
|
21946
|
-
claude.on("error", (err) => reject(new Error(`Failed to start Claude CLI: ${err.message}
|
|
21948
|
+
claude.on("error", (err) => reject(new Error(`Failed to start Claude CLI (shell: true): ${err.message}. Please ensure the 'claude' command is available in your PATH.`)));
|
|
21947
21949
|
claude.on("close", (code) => {
|
|
21948
21950
|
if (code === 0)
|
|
21949
21951
|
resolve(output);
|
|
21950
21952
|
else {
|
|
21951
21953
|
const detail = errorOutput.trim();
|
|
21952
|
-
const message = detail ? `Claude CLI error: ${detail}` : `Claude CLI exited with code ${code}. Please ensure the Claude CLI is installed and you are logged in (run 'claude' manually to check).`;
|
|
21954
|
+
const message = detail ? `Claude CLI error (exit code ${code}): ${detail}` : `Claude CLI exited with code ${code}. Please ensure the Claude CLI is installed and you are logged in (run 'claude' manually to check).`;
|
|
21953
21955
|
reject(new Error(message));
|
|
21954
21956
|
}
|
|
21955
21957
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Local-first AI development platform & engineering workspace",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@locusai/sdk": "^0.4.
|
|
34
|
+
"@locusai/sdk": "^0.4.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {}
|
|
37
37
|
}
|