@kody-ade/kody-engine 0.4.545 → 0.4.546
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
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.546",
|
|
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
|
type: "module",
|
|
@@ -18463,6 +18463,45 @@ var init_requirePlanDeviations = __esm({
|
|
|
18463
18463
|
}
|
|
18464
18464
|
});
|
|
18465
18465
|
|
|
18466
|
+
// src/scripts/retryMissingDeliveryChange.ts
|
|
18467
|
+
function claimsChange(output) {
|
|
18468
|
+
if (!output || typeof output !== "object" || Array.isArray(output)) return false;
|
|
18469
|
+
const status = output.status;
|
|
18470
|
+
return status === "fixed" || status === "changed";
|
|
18471
|
+
}
|
|
18472
|
+
var retryMissingDeliveryChange;
|
|
18473
|
+
var init_retryMissingDeliveryChange = __esm({
|
|
18474
|
+
"src/scripts/retryMissingDeliveryChange.ts"() {
|
|
18475
|
+
"use strict";
|
|
18476
|
+
init_commit();
|
|
18477
|
+
init_parseAgentResult();
|
|
18478
|
+
init_parseSimpleCapabilityOutput();
|
|
18479
|
+
retryMissingDeliveryChange = async (ctx, profile) => {
|
|
18480
|
+
if (ctx.data.jobDelivery !== "pull-request") return;
|
|
18481
|
+
if (!claimsChange(ctx.data.capabilityOutput)) return;
|
|
18482
|
+
if (listChangedFiles(ctx.cwd).some((file) => !isForbiddenPath(file))) return;
|
|
18483
|
+
const invoker = ctx.data.__invokeAgent;
|
|
18484
|
+
const prompt = ctx.data.prompt;
|
|
18485
|
+
if (!invoker || !prompt) return;
|
|
18486
|
+
process.stderr.write("[kody] capability claimed a pull-request fix without a file change; retrying once\n");
|
|
18487
|
+
const retry = await invoker(
|
|
18488
|
+
[
|
|
18489
|
+
prompt,
|
|
18490
|
+
"",
|
|
18491
|
+
"# Missing delivery change (retry)",
|
|
18492
|
+
"",
|
|
18493
|
+
"Your previous result claimed the pull request was fixed, but no repository file changed.",
|
|
18494
|
+
"Inspect the supplied input and failure evidence, make the actual repair, and verify it.",
|
|
18495
|
+
"If no safe change is possible, return a blocked result instead of claiming fixed.",
|
|
18496
|
+
"This is the only retry."
|
|
18497
|
+
].join("\n")
|
|
18498
|
+
);
|
|
18499
|
+
await parseAgentResult2(ctx, profile, retry);
|
|
18500
|
+
await parseSimpleCapabilityOutput(ctx, profile, retry);
|
|
18501
|
+
};
|
|
18502
|
+
}
|
|
18503
|
+
});
|
|
18504
|
+
|
|
18466
18505
|
// src/scripts/resolveArtifacts.ts
|
|
18467
18506
|
var resolveArtifacts;
|
|
18468
18507
|
var init_resolveArtifacts = __esm({
|
|
@@ -21088,6 +21127,7 @@ var init_scripts = __esm({
|
|
|
21088
21127
|
init_requireDeliveryArtifacts();
|
|
21089
21128
|
init_requireFeedbackActions();
|
|
21090
21129
|
init_requirePlanDeviations();
|
|
21130
|
+
init_retryMissingDeliveryChange();
|
|
21091
21131
|
init_resolveArtifacts();
|
|
21092
21132
|
init_resolveFlow();
|
|
21093
21133
|
init_resolvePreviewUrl();
|
|
@@ -21186,6 +21226,7 @@ var init_scripts = __esm({
|
|
|
21186
21226
|
requireFeedbackActions,
|
|
21187
21227
|
requireDeliveryArtifacts,
|
|
21188
21228
|
requirePlanDeviations,
|
|
21229
|
+
retryMissingDeliveryChange,
|
|
21189
21230
|
verify,
|
|
21190
21231
|
verifyWithRetry,
|
|
21191
21232
|
verifyReproFails,
|
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.546",
|
|
4
4
|
"description": "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|