@kody-ade/kody-engine 0.4.204-next.5 → 0.4.204-next.6

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.
Files changed (2) hide show
  1. package/dist/bin/kody.js +26 -2
  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.5",
1486
+ version: "0.4.204-next.6",
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,40 @@ 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
- manualWorkflowDispatch = !sessionInput && !(Number.isFinite(issueInput) && issueInput > 0);
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
+ unpackAllSecrets();
15657
+ await resolveAuthToken();
15658
+ } catch {
15659
+ }
15660
+ const result = await runExecutableChain(forceRunDuty, {
15661
+ cliArgs: {},
15662
+ cwd,
15663
+ config,
15664
+ verbose: args.verbose,
15665
+ quiet: args.quiet
15666
+ });
15667
+ const ec = result.exitCode;
15668
+ return ec === 0 || ec === 1 || ec === 2 ? ec : 99;
15669
+ }
15646
15670
  if (!args.issueNumber && !autoFallback && (eventName === "schedule" || manualWorkflowDispatch)) {
15647
15671
  return runScheduledFanOut(cwd, args, { force: manualWorkflowDispatch });
15648
15672
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.204-next.5",
3
+ "version": "0.4.204-next.6",
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",