@neriros/ralphy 0.2.2 → 2.3.0
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/cli/index.js +6 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -53298,6 +53298,10 @@ async function runEngine(opts) {
|
|
|
53298
53298
|
for (const event of parseClaudeLine(line, claudeState)) {
|
|
53299
53299
|
emitEvent(event);
|
|
53300
53300
|
}
|
|
53301
|
+
if (claudeState.gotResult) {
|
|
53302
|
+
proc.kill();
|
|
53303
|
+
break;
|
|
53304
|
+
}
|
|
53301
53305
|
}
|
|
53302
53306
|
usage = claudeState.usage;
|
|
53303
53307
|
} else {
|
|
@@ -53321,7 +53325,8 @@ async function runEngine(opts) {
|
|
|
53321
53325
|
}
|
|
53322
53326
|
}
|
|
53323
53327
|
const exitCode = await proc.exited;
|
|
53324
|
-
|
|
53328
|
+
const normalizedExitCode = usage !== null && (exitCode === 143 || exitCode === 137) ? 0 : exitCode;
|
|
53329
|
+
return { exitCode: normalizedExitCode, usage };
|
|
53325
53330
|
}
|
|
53326
53331
|
|
|
53327
53332
|
// apps/cli/src/loop.ts
|