@kody-ade/kody-engine 0.4.204-next.5 → 0.4.204-next.7
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 +49 -2
- package/package.json +1 -1
package/dist/bin/kody.js
CHANGED
|
@@ -1483,7 +1483,7 @@ var init_loadCoverageRules = __esm({
|
|
|
1483
1483
|
// package.json
|
|
1484
1484
|
var package_default = {
|
|
1485
1485
|
name: "@kody-ade/kody-engine",
|
|
1486
|
-
version: "0.4.204-next.
|
|
1486
|
+
version: "0.4.204-next.7",
|
|
1487
1487
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
1488
1488
|
license: "MIT",
|
|
1489
1489
|
type: "module",
|
|
@@ -15633,16 +15633,63 @@ async function runCi(argv) {
|
|
|
15633
15633
|
const eventName = process.env.GITHUB_EVENT_NAME;
|
|
15634
15634
|
const dispatchEventPath = process.env.GITHUB_EVENT_PATH;
|
|
15635
15635
|
let manualWorkflowDispatch = false;
|
|
15636
|
+
let forceRunDuty = null;
|
|
15636
15637
|
if (!args.issueNumber && !autoFallback && eventName === "workflow_dispatch" && dispatchEventPath && fs44.existsSync(dispatchEventPath)) {
|
|
15637
15638
|
try {
|
|
15638
15639
|
const evt = JSON.parse(fs44.readFileSync(dispatchEventPath, "utf-8"));
|
|
15639
15640
|
const issueInput = parseInt(String(evt?.inputs?.issue_number ?? ""), 10);
|
|
15640
15641
|
const sessionInput = String(evt?.inputs?.sessionId ?? "");
|
|
15641
|
-
|
|
15642
|
+
const exeInput = String(evt?.inputs?.executable ?? "").trim();
|
|
15643
|
+
const noTarget = !sessionInput && !(Number.isFinite(issueInput) && issueInput > 0);
|
|
15644
|
+
if (noTarget && exeInput) forceRunDuty = exeInput;
|
|
15645
|
+
else manualWorkflowDispatch = noTarget;
|
|
15642
15646
|
} catch {
|
|
15643
15647
|
manualWorkflowDispatch = false;
|
|
15644
15648
|
}
|
|
15645
15649
|
}
|
|
15650
|
+
if (forceRunDuty) {
|
|
15651
|
+
const config = earlyConfig ?? loadConfig(cwd);
|
|
15652
|
+
process.stdout.write(`\u2192 kody: manual one-shot run of duty ${forceRunDuty}
|
|
15653
|
+
|
|
15654
|
+
`);
|
|
15655
|
+
try {
|
|
15656
|
+
const n = unpackAllSecrets();
|
|
15657
|
+
if (n > 0) process.stdout.write(`\u2192 kody: unpacked ${n} secret(s)
|
|
15658
|
+
`);
|
|
15659
|
+
await resolveAuthToken();
|
|
15660
|
+
const pm = args.packageManager ?? detectPackageManager2(cwd);
|
|
15661
|
+
if (!args.skipInstall) {
|
|
15662
|
+
const code = installDeps(pm, cwd);
|
|
15663
|
+
if (code !== 0) {
|
|
15664
|
+
process.stderr.write(`[kody] dependency install failed (exit ${code})
|
|
15665
|
+
`);
|
|
15666
|
+
return 99;
|
|
15667
|
+
}
|
|
15668
|
+
}
|
|
15669
|
+
if (!args.skipLitellm) {
|
|
15670
|
+
const code = installLitellmIfNeeded(cwd);
|
|
15671
|
+
if (code !== 0) {
|
|
15672
|
+
process.stderr.write(`[kody] litellm install failed (exit ${code})
|
|
15673
|
+
`);
|
|
15674
|
+
return 99;
|
|
15675
|
+
}
|
|
15676
|
+
}
|
|
15677
|
+
configureGitIdentity(cwd);
|
|
15678
|
+
} catch (err) {
|
|
15679
|
+
process.stderr.write(`[kody] manual duty preflight crashed: ${String(err)}
|
|
15680
|
+
`);
|
|
15681
|
+
return 99;
|
|
15682
|
+
}
|
|
15683
|
+
const result = await runExecutableChain(forceRunDuty, {
|
|
15684
|
+
cliArgs: {},
|
|
15685
|
+
cwd,
|
|
15686
|
+
config,
|
|
15687
|
+
verbose: args.verbose,
|
|
15688
|
+
quiet: args.quiet
|
|
15689
|
+
});
|
|
15690
|
+
const ec = result.exitCode;
|
|
15691
|
+
return ec === 0 || ec === 1 || ec === 2 ? ec : 99;
|
|
15692
|
+
}
|
|
15646
15693
|
if (!args.issueNumber && !autoFallback && (eventName === "schedule" || manualWorkflowDispatch)) {
|
|
15647
15694
|
return runScheduledFanOut(cwd, args, { force: manualWorkflowDispatch });
|
|
15648
15695
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.204-next.
|
|
3
|
+
"version": "0.4.204-next.7",
|
|
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",
|