@locusai/sdk 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/dist/agent/worker.js
CHANGED
|
@@ -1347,6 +1347,9 @@ class CodexRunner {
|
|
|
1347
1347
|
if (code === 0) {
|
|
1348
1348
|
const result = this.readOutput(outputPath, finalOutput);
|
|
1349
1349
|
this.cleanupTempFile(outputPath);
|
|
1350
|
+
if (result && finalContent.trim().length === 0) {
|
|
1351
|
+
enqueueChunk({ type: "text_delta", content: result });
|
|
1352
|
+
}
|
|
1350
1353
|
enqueueChunk({ type: "result", content: result });
|
|
1351
1354
|
} else {
|
|
1352
1355
|
this.cleanupTempFile(outputPath);
|
|
@@ -1469,7 +1472,6 @@ class CodexRunner {
|
|
|
1469
1472
|
}
|
|
1470
1473
|
buildArgs(outputPath) {
|
|
1471
1474
|
const args = [
|
|
1472
|
-
"--quiet",
|
|
1473
1475
|
"exec",
|
|
1474
1476
|
"--full-auto",
|
|
1475
1477
|
"--skip-git-repo-check",
|
|
@@ -1774,7 +1776,7 @@ class GitWorkflow {
|
|
|
1774
1776
|
const suffix = sprintId ? sprintId.slice(0, 8) : Date.now().toString(36);
|
|
1775
1777
|
this.branchName = `locus/${suffix}`;
|
|
1776
1778
|
try {
|
|
1777
|
-
this.gitExec(["
|
|
1779
|
+
this.gitExec(["checkout", this.branchName]);
|
|
1778
1780
|
} catch {}
|
|
1779
1781
|
this.gitExec(["checkout", "-b", this.branchName]);
|
|
1780
1782
|
this.log(`Created branch: ${this.branchName} (from ${defaultBranch})`, "success");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-runner.d.ts","sourceRoot":"","sources":["../../src/ai/codex-runner.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,K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xC,OAAO,CAAC,eAAe,CAAC,CAAS;IACjC,SAAS,EAAE,MAAM,CAAC;gBAGR,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,MAAsC,EAC7C,GAAG,CAAC,EAAE,KAAK,YAAA,EACnB,SAAS,CAAC,EAAE,MAAM;IAKpB,eAAe,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAIhD;;OAEG;IACH,KAAK,IAAI,IAAI;IAOP,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IA4B1C,OAAO,CAAC,WAAW;IA0BZ,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CAAC,WAAW,EAAE,IAAI,EAAE,OAAO,CAAC;IA8J5E,OAAO,CAAC,iBAAiB;IA+BzB,OAAO,CAAC,UAAU;IAyDlB,OAAO,CAAC,SAAS;IAiBjB;;;OAGG;IACH,OAAO,CAAC,eAAe;IAWvB,OAAO,CAAC,aAAa;IAKrB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,qBAAqB;IAY7B,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,KAAK;CAGd"}
|
package/dist/index-node.js
CHANGED
|
@@ -1347,6 +1347,9 @@ class CodexRunner {
|
|
|
1347
1347
|
if (code === 0) {
|
|
1348
1348
|
const result = this.readOutput(outputPath, finalOutput);
|
|
1349
1349
|
this.cleanupTempFile(outputPath);
|
|
1350
|
+
if (result && finalContent.trim().length === 0) {
|
|
1351
|
+
enqueueChunk({ type: "text_delta", content: result });
|
|
1352
|
+
}
|
|
1350
1353
|
enqueueChunk({ type: "result", content: result });
|
|
1351
1354
|
} else {
|
|
1352
1355
|
this.cleanupTempFile(outputPath);
|
|
@@ -1469,7 +1472,6 @@ class CodexRunner {
|
|
|
1469
1472
|
}
|
|
1470
1473
|
buildArgs(outputPath) {
|
|
1471
1474
|
const args = [
|
|
1472
|
-
"--quiet",
|
|
1473
1475
|
"exec",
|
|
1474
1476
|
"--full-auto",
|
|
1475
1477
|
"--skip-git-repo-check",
|
|
@@ -1774,7 +1776,7 @@ class GitWorkflow {
|
|
|
1774
1776
|
const suffix = sprintId ? sprintId.slice(0, 8) : Date.now().toString(36);
|
|
1775
1777
|
this.branchName = `locus/${suffix}`;
|
|
1776
1778
|
try {
|
|
1777
|
-
this.gitExec(["
|
|
1779
|
+
this.gitExec(["checkout", this.branchName]);
|
|
1778
1780
|
} catch {}
|
|
1779
1781
|
this.gitExec(["checkout", "-b", this.branchName]);
|
|
1780
1782
|
this.log(`Created branch: ${this.branchName} (from ${defaultBranch})`, "success");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/sdk",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"types": "./src/index.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"clean": "rm -rf node_modules"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@locusai/shared": "^0.11.
|
|
33
|
+
"@locusai/shared": "^0.11.4",
|
|
34
34
|
"axios": "^1.13.2",
|
|
35
35
|
"events": "^3.3.0",
|
|
36
36
|
"globby": "^14.0.2"
|