@locusai/cli 0.11.2 → 0.11.4
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/agent/worker.js +4 -2
- package/bin/locus.js +4 -2
- package/package.json +2 -2
package/bin/agent/worker.js
CHANGED
|
@@ -15547,6 +15547,9 @@ class CodexRunner {
|
|
|
15547
15547
|
if (code === 0) {
|
|
15548
15548
|
const result = this.readOutput(outputPath, finalOutput);
|
|
15549
15549
|
this.cleanupTempFile(outputPath);
|
|
15550
|
+
if (result && finalContent.trim().length === 0) {
|
|
15551
|
+
enqueueChunk({ type: "text_delta", content: result });
|
|
15552
|
+
}
|
|
15550
15553
|
enqueueChunk({ type: "result", content: result });
|
|
15551
15554
|
} else {
|
|
15552
15555
|
this.cleanupTempFile(outputPath);
|
|
@@ -15669,7 +15672,6 @@ class CodexRunner {
|
|
|
15669
15672
|
}
|
|
15670
15673
|
buildArgs(outputPath) {
|
|
15671
15674
|
const args = [
|
|
15672
|
-
"--quiet",
|
|
15673
15675
|
"exec",
|
|
15674
15676
|
"--full-auto",
|
|
15675
15677
|
"--skip-git-repo-check",
|
|
@@ -31402,7 +31404,7 @@ class GitWorkflow {
|
|
|
31402
31404
|
const suffix = sprintId ? sprintId.slice(0, 8) : Date.now().toString(36);
|
|
31403
31405
|
this.branchName = `locus/${suffix}`;
|
|
31404
31406
|
try {
|
|
31405
|
-
this.gitExec(["
|
|
31407
|
+
this.gitExec(["checkout", this.branchName]);
|
|
31406
31408
|
} catch {}
|
|
31407
31409
|
this.gitExec(["checkout", "-b", this.branchName]);
|
|
31408
31410
|
this.log(`Created branch: ${this.branchName} (from ${defaultBranch})`, "success");
|
package/bin/locus.js
CHANGED
|
@@ -6602,7 +6602,7 @@ class GitWorkflow {
|
|
|
6602
6602
|
const suffix = sprintId ? sprintId.slice(0, 8) : Date.now().toString(36);
|
|
6603
6603
|
this.branchName = `locus/${suffix}`;
|
|
6604
6604
|
try {
|
|
6605
|
-
this.gitExec(["
|
|
6605
|
+
this.gitExec(["checkout", this.branchName]);
|
|
6606
6606
|
} catch {}
|
|
6607
6607
|
this.gitExec(["checkout", "-b", this.branchName]);
|
|
6608
6608
|
this.log(`Created branch: ${this.branchName} (from ${defaultBranch})`, "success");
|
|
@@ -7643,6 +7643,9 @@ class CodexRunner {
|
|
|
7643
7643
|
if (code === 0) {
|
|
7644
7644
|
const result = this.readOutput(outputPath, finalOutput);
|
|
7645
7645
|
this.cleanupTempFile(outputPath);
|
|
7646
|
+
if (result && finalContent.trim().length === 0) {
|
|
7647
|
+
enqueueChunk({ type: "text_delta", content: result });
|
|
7648
|
+
}
|
|
7646
7649
|
enqueueChunk({ type: "result", content: result });
|
|
7647
7650
|
} else {
|
|
7648
7651
|
this.cleanupTempFile(outputPath);
|
|
@@ -7765,7 +7768,6 @@ class CodexRunner {
|
|
|
7765
7768
|
}
|
|
7766
7769
|
buildArgs(outputPath) {
|
|
7767
7770
|
const args = [
|
|
7768
|
-
"--quiet",
|
|
7769
7771
|
"exec",
|
|
7770
7772
|
"--full-auto",
|
|
7771
7773
|
"--skip-git-repo-check",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "CLI for Locus - AI-native project management platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"author": "",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@locusai/sdk": "^0.11.
|
|
36
|
+
"@locusai/sdk": "^0.11.4"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {}
|
|
39
39
|
}
|