@kody-ade/kody-engine 0.3.44 → 0.3.46
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 +14 -3
- 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.46",
|
|
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",
|
|
@@ -2089,8 +2089,11 @@ var commitAndPush2 = async (ctx) => {
|
|
|
2089
2089
|
const postCommitFiles = result.committed ? listFilesInCommit("HEAD", ctx.cwd) : listChangedFiles(ctx.cwd);
|
|
2090
2090
|
ctx.data.changedFiles = postCommitFiles.filter((f) => !isForbiddenPath(f));
|
|
2091
2091
|
} catch (err) {
|
|
2092
|
-
|
|
2092
|
+
const reason = err instanceof Error ? err.message : String(err);
|
|
2093
|
+
ctx.data.commitCrash = reason;
|
|
2093
2094
|
ctx.data.commitResult = { committed: false, pushed: false };
|
|
2095
|
+
process.stderr.write(`[kody commitAndPush] failed: ${reason}
|
|
2096
|
+
`);
|
|
2094
2097
|
}
|
|
2095
2098
|
ctx.data.hasCommitsAhead = hasCommitsAhead(branch, ctx.config.git.defaultBranch, ctx.cwd);
|
|
2096
2099
|
};
|
|
@@ -3177,6 +3180,14 @@ var ensureMemorizePr = async (ctx) => {
|
|
|
3177
3180
|
ctx.output.reason = "no vault changes";
|
|
3178
3181
|
return;
|
|
3179
3182
|
}
|
|
3183
|
+
if (commitResult?.committed && commitResult.pushed === false) {
|
|
3184
|
+
const reason = ctx.data.commitCrash ?? "push failed";
|
|
3185
|
+
ctx.output.exitCode = 4;
|
|
3186
|
+
ctx.output.reason = `memorize: branch not pushed to origin \u2014 ${reason}`;
|
|
3187
|
+
process.stderr.write(`[kody memorize] not opening PR: ${ctx.output.reason}
|
|
3188
|
+
`);
|
|
3189
|
+
return;
|
|
3190
|
+
}
|
|
3180
3191
|
const branch = ctx.data.branch;
|
|
3181
3192
|
if (!branch) {
|
|
3182
3193
|
ctx.output.exitCode = 4;
|
|
@@ -4632,7 +4643,7 @@ var memorizeFlow = async (ctx) => {
|
|
|
4632
4643
|
};
|
|
4633
4644
|
function ensureBranch(ctx, vaultAbs) {
|
|
4634
4645
|
const stamp = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10).replace(/-/g, "");
|
|
4635
|
-
const branch = `kody
|
|
4646
|
+
const branch = `kody-memorize-${stamp}`;
|
|
4636
4647
|
const defaultBranch = ctx.config.git.defaultBranch;
|
|
4637
4648
|
try {
|
|
4638
4649
|
git3(["fetch", "origin", defaultBranch], ctx.cwd);
|
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.46",
|
|
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",
|