@locusai/sdk 0.11.1 → 0.11.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.
@@ -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);
@@ -1472,7 +1475,6 @@ class CodexRunner {
1472
1475
  "exec",
1473
1476
  "--full-auto",
1474
1477
  "--skip-git-repo-check",
1475
- "--quiet",
1476
1478
  "--output-last-message",
1477
1479
  outputPath
1478
1480
  ];
@@ -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,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK5C,qBAAa,WAAY,YAAW,QAAQ;IAOxC,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,KAAK;IACb,OAAO,CAAC,GAAG,CAAC;IARd,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,YAAY,CAAC,CAAmB;IACxC,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,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;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"}
@@ -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);
@@ -1472,7 +1475,6 @@ class CodexRunner {
1472
1475
  "exec",
1473
1476
  "--full-auto",
1474
1477
  "--skip-git-repo-check",
1475
- "--quiet",
1476
1478
  "--output-last-message",
1477
1479
  outputPath
1478
1480
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locusai/sdk",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
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.1",
33
+ "@locusai/shared": "^0.11.3",
34
34
  "axios": "^1.13.2",
35
35
  "events": "^3.3.0",
36
36
  "globby": "^14.0.2"