@kody-ade/kody-engine 0.4.329 → 0.4.330
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 +21 -9
- 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.330",
|
|
19
19
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
20
20
|
license: "MIT",
|
|
21
21
|
type: "module",
|
|
@@ -6429,14 +6429,29 @@ function stageRunIndexFinalization(data, row) {
|
|
|
6429
6429
|
function finalizeStagedRunIndexRows(config, cwd, data, result) {
|
|
6430
6430
|
const rows = stagedRunIndexRows(data);
|
|
6431
6431
|
for (const row of Object.values(rows)) {
|
|
6432
|
-
upsertRunIndexRowBestEffort(config, cwd,
|
|
6432
|
+
upsertRunIndexRowBestEffort(config, cwd, finalizedRunIndexRow(row, result));
|
|
6433
|
+
}
|
|
6434
|
+
data[STAGED_RUN_INDEX_ROWS_KEY] = {};
|
|
6435
|
+
}
|
|
6436
|
+
function finalizedRunIndexRow(row, result) {
|
|
6437
|
+
const target = recordValue2(row.target);
|
|
6438
|
+
const targetType = stringValue2(target?.type);
|
|
6439
|
+
const targetId = stringValue2(target?.id);
|
|
6440
|
+
if (row.sourceType === "goal-run-log" && row.subjectType === "loop" && targetType === "goal" && targetId && result.status === "success") {
|
|
6441
|
+
return {
|
|
6433
6442
|
...row,
|
|
6434
|
-
status:
|
|
6443
|
+
status: "waiting",
|
|
6435
6444
|
updatedAt: result.updatedAt,
|
|
6436
|
-
summary:
|
|
6437
|
-
|
|
6445
|
+
summary: `waiting on goal ${targetId}`,
|
|
6446
|
+
currentStep: targetId
|
|
6447
|
+
};
|
|
6438
6448
|
}
|
|
6439
|
-
|
|
6449
|
+
return {
|
|
6450
|
+
...row,
|
|
6451
|
+
status: result.status,
|
|
6452
|
+
updatedAt: result.updatedAt,
|
|
6453
|
+
summary: result.reason ?? row.summary
|
|
6454
|
+
};
|
|
6440
6455
|
}
|
|
6441
6456
|
function mergeRunIndexRow(raw, row) {
|
|
6442
6457
|
const parsed = parseRunIndex(raw);
|
|
@@ -6575,9 +6590,6 @@ function stagedRunIndexRows(data) {
|
|
|
6575
6590
|
return rows;
|
|
6576
6591
|
}
|
|
6577
6592
|
function normalizeRunIndexRow(row) {
|
|
6578
|
-
if ((row.status === "running" || row.status === "waiting") && (row.decision?.toLowerCase().startsWith("dispatch") || row.summary?.toLowerCase().startsWith("dispatch") || row.currentStep?.toLowerCase().includes("dispatch"))) {
|
|
6579
|
-
return { ...row, status: "success" };
|
|
6580
|
-
}
|
|
6581
6593
|
return row;
|
|
6582
6594
|
}
|
|
6583
6595
|
function runSubjectType(data) {
|
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.330",
|
|
4
4
|
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|