@kody-ade/kody-engine 0.4.656 → 0.4.657
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/bin/kody.js +7 -1
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_package = __esm({
|
|
|
15
15
|
"package.json"() {
|
|
16
16
|
package_default = {
|
|
17
17
|
name: "@kody-ade/kody-engine",
|
|
18
|
-
version: "0.4.
|
|
18
|
+
version: "0.4.657",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
repository: {
|
|
@@ -5023,6 +5023,12 @@ async function runAgent(opts) {
|
|
|
5023
5023
|
outcomeKind = "model_error";
|
|
5024
5024
|
errorMessage2 = "Claude Code reported it is not logged in; refusing to mark agent run successful";
|
|
5025
5025
|
}
|
|
5026
|
+
const providerApiError = outcome === "completed" && tokens.output === 0 && /^API Error:\s*\d+\b/i.test(finalText.trim());
|
|
5027
|
+
if (providerApiError) {
|
|
5028
|
+
outcome = "failed";
|
|
5029
|
+
outcomeKind = "model_error";
|
|
5030
|
+
errorMessage2 = finalText.trim();
|
|
5031
|
+
}
|
|
5026
5032
|
if (outcome === "completed" && !sawMutatingTool) {
|
|
5027
5033
|
const hasUsefulSuccess = tokens.output > 0 || finalText !== "" || Boolean(getSubmitted?.());
|
|
5028
5034
|
if (!hasUsefulSuccess) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.657",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|