@kody-ade/kody-engine 0.4.503 → 0.4.504

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 +10 -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.503",
18
+ version: "0.4.504",
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",
@@ -24870,8 +24870,8 @@ function routeRunRequest(request) {
24870
24870
  const workflowRunId = /^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$/.test(requestedRunId) ? requestedRunId : void 0;
24871
24871
  const { runId: _runId, ...workflowInput } = objectValue2(request.input) ?? {};
24872
24872
  return {
24873
- kind: "action",
24874
- action: target.id,
24873
+ kind: "workflow",
24874
+ workflow: target.id,
24875
24875
  cliArgs: workflowInput,
24876
24876
  ...workflowRunId ? { workflowRunId } : {}
24877
24877
  };
@@ -25123,6 +25123,7 @@ async function runCi(argv) {
25123
25123
  let forceRunAction = null;
25124
25124
  let forceRunCliArgs = {};
25125
25125
  let forceWorkflowRunId;
25126
+ let forceRunTargetKind = "action";
25126
25127
  let runRequestFanOut = false;
25127
25128
  let runRequestFanOutForce = false;
25128
25129
  const parsedRunRequest = readRunRequestFromEnv();
@@ -25131,8 +25132,6 @@ async function runCi(argv) {
25131
25132
  `);
25132
25133
  return 64;
25133
25134
  }
25134
- if (parsedRunRequest && "request" in parsedRunRequest) {
25135
- }
25136
25135
  const explicitLoopRequest = parsedRunRequest && "request" in parsedRunRequest && parsedRunRequest.request.target.type === "loop";
25137
25136
  if (!args.issueNumber && !autoFallback && parsedRunRequest && "request" in parsedRunRequest) {
25138
25137
  const route = routeRunRequest(parsedRunRequest.request);
@@ -25148,6 +25147,11 @@ async function runCi(argv) {
25148
25147
  forceRunAction = route.action;
25149
25148
  forceRunCliArgs = route.cliArgs;
25150
25149
  forceWorkflowRunId = route.workflowRunId;
25150
+ } else if (route.kind === "workflow") {
25151
+ forceRunAction = route.workflow;
25152
+ forceRunTargetKind = "workflow";
25153
+ forceRunCliArgs = route.cliArgs;
25154
+ forceWorkflowRunId = route.workflowRunId;
25151
25155
  }
25152
25156
  }
25153
25157
  const envForceAction = (process.env.KODY_FORCE_ACTION ?? "").trim();
@@ -25197,7 +25201,7 @@ async function runCi(argv) {
25197
25201
  const capabilityRoot = capabilitiesRoot(cwd);
25198
25202
  const directCapability = manualGoalManager ? null : resolveCapabilityFolder(forceRunAction, capabilityRoot);
25199
25203
  const directExecution = directCapability ? resolveCapabilityExecution(directCapability, cwd) : null;
25200
- const capabilityRoute = manualGoalManager ? null : resolveCapabilityAction(forceRunAction, capabilityRoot) ?? (directCapability && directExecution && (directCapability.config.action ?? directCapability.slug) === forceRunAction ? {
25204
+ const capabilityRoute = manualGoalManager || forceRunTargetKind === "workflow" ? null : resolveCapabilityAction(forceRunAction, capabilityRoot) ?? (directCapability && directExecution && (directCapability.config.action ?? directCapability.slug) === forceRunAction ? {
25201
25205
  action: forceRunAction,
25202
25206
  capability: directCapability.slug,
25203
25207
  implementation: directExecution.implementation,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.503",
3
+ "version": "0.4.504",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative implementation profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",