@kody-ade/kody-engine 0.4.316 → 0.4.317

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 +14 -6
  2. package/package.json +1 -1
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.316",
18
+ version: "0.4.317",
19
19
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
20
20
  license: "MIT",
21
21
  type: "module",
@@ -21350,6 +21350,7 @@ function readRunRequestFromEnv(env = process.env) {
21350
21350
  // src/kody-cli.ts
21351
21351
  init_runtimePaths();
21352
21352
  init_stateWorkspace();
21353
+ init_workflowDefinitions();
21353
21354
  var FAILED_DISPATCH_LABEL = {
21354
21355
  label: "kody:failed",
21355
21356
  color: "e11d21",
@@ -21715,7 +21716,11 @@ async function runCi(argv) {
21715
21716
  const config = earlyConfig ?? loadConfig(cwd);
21716
21717
  const manualGoalManager = forceRunAction === "goal-manager";
21717
21718
  const capabilityRoute = manualGoalManager ? null : resolveCapabilityAction(forceRunAction);
21718
- const scheduledWatchRoute = manualGoalManager || capabilityRoute ? void 0 : dispatchScheduledWatches({ force: true }).find(
21719
+ const workflowRoute = manualGoalManager || capabilityRoute || !readWorkflowDefinition(config, cwd, forceRunAction) ? void 0 : {
21720
+ workflow: forceRunAction,
21721
+ cliArgs: {}
21722
+ };
21723
+ const scheduledWatchRoute = manualGoalManager || capabilityRoute || workflowRoute ? void 0 : dispatchScheduledWatches({ force: true }).find(
21719
21724
  (match) => match.action === forceRunAction || match.executable === forceRunAction
21720
21725
  );
21721
21726
  const route = manualGoalManager ? {
@@ -21723,9 +21728,9 @@ async function runCi(argv) {
21723
21728
  capability: "goal-manager",
21724
21729
  executable: "goal-manager",
21725
21730
  cliArgs: forceRunCliArgs
21726
- } : capabilityRoute ?? scheduledWatchRoute;
21731
+ } : capabilityRoute ?? workflowRoute ?? scheduledWatchRoute;
21727
21732
  if (!route) {
21728
- process.stderr.write(`[kody] manual one-shot action '${forceRunAction}' has no capability action
21733
+ process.stderr.write(`[kody] manual one-shot action '${forceRunAction}' has no capability action or workflow
21729
21734
  `);
21730
21735
  return 64;
21731
21736
  }
@@ -21733,9 +21738,11 @@ async function runCi(argv) {
21733
21738
  process.stderr.write("[kody] manual goal-manager run requires message goal id\n");
21734
21739
  return 64;
21735
21740
  }
21736
- process.stdout.write(`\u2192 kody: manual one-shot run action ${route.action} (${route.capability})
21741
+ process.stdout.write(
21742
+ `\u2192 kody: manual one-shot run ${route.workflow ? `workflow ${route.workflow}` : `action ${route.action} (${route.capability})`}
21737
21743
 
21738
- `);
21744
+ `
21745
+ );
21739
21746
  try {
21740
21747
  const n = unpackAllSecrets();
21741
21748
  if (n > 0) process.stdout.write(`\u2192 kody: unpacked ${n} secret(s)
@@ -21768,6 +21775,7 @@ async function runCi(argv) {
21768
21775
  {
21769
21776
  action: route.action,
21770
21777
  capability: route.capability,
21778
+ workflow: route.workflow,
21771
21779
  executable: route.executable,
21772
21780
  cliArgs: { ...route.cliArgs, ...forceRunCliArgs },
21773
21781
  flavor: "instant",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.316",
3
+ "version": "0.4.317",
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",