@kody-ade/kody-engine 0.3.55 → 0.3.57
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 +13 -4
- package/dist/executables/revert/profile.json +19 -1
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// package.json
|
|
4
4
|
var package_default = {
|
|
5
5
|
name: "@kody-ade/kody-engine",
|
|
6
|
-
version: "0.3.
|
|
6
|
+
version: "0.3.57",
|
|
7
7
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
8
8
|
license: "MIT",
|
|
9
9
|
type: "module",
|
|
@@ -863,7 +863,12 @@ function dispatchScheduledWatches(opts) {
|
|
|
863
863
|
if (!opts?.force) {
|
|
864
864
|
try {
|
|
865
865
|
if (!cronMatchesInWindow(schedule, now, windowSec)) continue;
|
|
866
|
-
} catch {
|
|
866
|
+
} catch (err) {
|
|
867
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
868
|
+
process.stderr.write(
|
|
869
|
+
`[kody] dispatchScheduledWatches: '${exe.name}' has invalid schedule '${schedule}' (${msg}); never firing
|
|
870
|
+
`
|
|
871
|
+
);
|
|
867
872
|
continue;
|
|
868
873
|
}
|
|
869
874
|
}
|
|
@@ -5743,7 +5748,10 @@ function isAncestorOfHead(sha, cwd) {
|
|
|
5743
5748
|
function tryPostPr4(prNumber, body, cwd) {
|
|
5744
5749
|
try {
|
|
5745
5750
|
postPrReviewComment(prNumber, body, cwd);
|
|
5746
|
-
} catch {
|
|
5751
|
+
} catch (err) {
|
|
5752
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
5753
|
+
process.stderr.write(`[kody revertFlow] PR comment on #${prNumber} failed: ${msg}
|
|
5754
|
+
`);
|
|
5747
5755
|
}
|
|
5748
5756
|
}
|
|
5749
5757
|
|
|
@@ -6673,7 +6681,8 @@ async function runExecutable(profileName, input) {
|
|
|
6673
6681
|
const msg = err instanceof Error ? err.message : String(err);
|
|
6674
6682
|
process.stderr.write(`[kody] postflight "${label}" crashed: ${msg}
|
|
6675
6683
|
`);
|
|
6676
|
-
|
|
6684
|
+
const summary = `postflight ${label} crashed: ${msg}`;
|
|
6685
|
+
ctx.output.reason = ctx.output.reason ? `${ctx.output.reason}; ${summary}` : summary;
|
|
6677
6686
|
if (ctx.output.exitCode === 0) ctx.output.exitCode = 99;
|
|
6678
6687
|
}
|
|
6679
6688
|
}
|
|
@@ -33,7 +33,22 @@
|
|
|
33
33
|
"plugins": [],
|
|
34
34
|
"mcpServers": []
|
|
35
35
|
},
|
|
36
|
-
"cliTools": [
|
|
36
|
+
"cliTools": [
|
|
37
|
+
{
|
|
38
|
+
"name": "git",
|
|
39
|
+
"install": { "required": true, "checkCommand": "git --version" },
|
|
40
|
+
"verify": "git --version",
|
|
41
|
+
"usage": "Used by revert.sh to stage `git revert --no-commit` and by commitAndPush to land the revert.",
|
|
42
|
+
"allowedUses": ["revert", "rev-parse", "merge-base", "log", "commit", "push", "rev-list"]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "gh",
|
|
46
|
+
"install": { "required": true, "checkCommand": "gh --version" },
|
|
47
|
+
"verify": "gh --version",
|
|
48
|
+
"usage": "Used by revertFlow to read PR metadata and post status / failure comments.",
|
|
49
|
+
"allowedUses": ["pr", "api", "issue"]
|
|
50
|
+
}
|
|
51
|
+
],
|
|
37
52
|
"scripts": {
|
|
38
53
|
"preflight": [
|
|
39
54
|
{
|
|
@@ -45,6 +60,7 @@
|
|
|
45
60
|
}
|
|
46
61
|
},
|
|
47
62
|
{ "script": "revertFlow" },
|
|
63
|
+
{ "script": "loadTaskState" },
|
|
48
64
|
{ "shell": "revert.sh" }
|
|
49
65
|
],
|
|
50
66
|
"postflight": [
|
|
@@ -52,6 +68,8 @@
|
|
|
52
68
|
{ "script": "commitAndPush" },
|
|
53
69
|
{ "script": "ensurePr" },
|
|
54
70
|
{ "script": "postIssueComment" },
|
|
71
|
+
{ "script": "recordOutcome" },
|
|
72
|
+
{ "script": "saveTaskState" },
|
|
55
73
|
{ "script": "writeRunSummary" }
|
|
56
74
|
]
|
|
57
75
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.57",
|
|
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",
|