@kody-ade/kody-engine 0.4.459 → 0.4.461

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.459",
18
+ version: "0.4.461",
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",
@@ -7031,7 +7031,8 @@ function finalizedRunIndexRow(row, result) {
7031
7031
  ...row,
7032
7032
  status: result.status,
7033
7033
  updatedAt: result.updatedAt,
7034
- summary: result.reason ?? row.summary
7034
+ summary: result.reason ?? row.summary,
7035
+ ...result.output === void 0 ? {} : { output: result.output }
7035
7036
  };
7036
7037
  }
7037
7038
  function runIndexRowFromJobContext(input) {
@@ -7079,7 +7080,8 @@ function runIndexRowFromJobContext(input) {
7079
7080
  modelName: stringValue(input.data.jobModelName) ?? void 0,
7080
7081
  reasoningEffort: stringValue(input.data.jobReasoningEffort) ?? void 0,
7081
7082
  target: input.data.jobTarget,
7082
- sourceType: "job"
7083
+ sourceType: "job",
7084
+ output: input.data.capabilityOutput
7083
7085
  });
7084
7086
  }
7085
7087
  function runIndexRowFromGoalEvents(goalId, logPath, events) {
@@ -21520,7 +21522,8 @@ async function runImplementation(profileName, input) {
21520
21522
  await finalizeStagedRunIndexRowsAsync(config, input.cwd, ctx.data, {
21521
21523
  status,
21522
21524
  updatedAt: finishedAt,
21523
- reason: out.reason
21525
+ reason: out.reason,
21526
+ output: ctx.data.capabilityOutput
21524
21527
  });
21525
21528
  };
21526
21529
  }
@@ -24599,7 +24602,9 @@ async function discoverAppRepositories(creds) {
24599
24602
  }
24600
24603
 
24601
24604
  // src/kody-cli.ts
24605
+ init_capabilityFolders();
24602
24606
  init_config();
24607
+ init_definition_paths();
24603
24608
 
24604
24609
  // src/dispatch.ts
24605
24610
  init_config();
@@ -25042,12 +25047,11 @@ function coerceBare(spec, value) {
25042
25047
  }
25043
25048
 
25044
25049
  // src/kody-cli.ts
25045
- init_capabilityFolders();
25046
- init_definition_paths();
25047
25050
  init_gha();
25048
25051
  init_issue();
25049
25052
  init_job();
25050
25053
  init_lifecycleLabels();
25054
+ init_loopDefinitions();
25051
25055
  init_registry();
25052
25056
 
25053
25057
  // src/run-request.ts
@@ -25112,7 +25116,6 @@ function readRunRequestFromEnv(env = process.env) {
25112
25116
 
25113
25117
  // src/kody-cli.ts
25114
25118
  init_runtimePaths();
25115
- init_loopDefinitions();
25116
25119
  init_stateWorkspace();
25117
25120
  init_workflowDefinitions();
25118
25121
  var FAILED_DISPATCH_LABEL = {
@@ -25123,6 +25126,11 @@ var FAILED_DISPATCH_LABEL = {
25123
25126
  function objectValue2(value) {
25124
25127
  return value && typeof value === "object" ? value : void 0;
25125
25128
  }
25129
+ function workflowDispatchTargetArgs(workflow, target) {
25130
+ const steps = workflow.steps ?? [];
25131
+ const startStep = workflow.startAt ? steps.find((step) => (step.id ?? step.capability) === workflow.startAt) : steps[0];
25132
+ return { [startStep?.target ?? "issue"]: target };
25133
+ }
25126
25134
  var CI_HELP = `kody ci \u2014 minimal-YAML autonomous engineer (CI preflight + run)
25127
25135
 
25128
25136
  Usage:
@@ -25483,17 +25491,15 @@ async function runCi(argv) {
25483
25491
  const capabilityInput = String(inputs?.capability ?? "").trim();
25484
25492
  const messageInput = String(inputs?.message ?? "").trim();
25485
25493
  const noTarget = !sessionInput && !(Number.isFinite(issueInput) && issueInput > 0);
25486
- if (noTarget && capabilityInput) {
25494
+ const targetedWorkflow = !noTarget && capabilityInput ? readWorkflowDefinition(earlyConfig, cwd, capabilityInput) : null;
25495
+ if (targetedWorkflow) {
25496
+ forceRunAction = capabilityInput;
25497
+ forceRunCliArgs = workflowDispatchTargetArgs(targetedWorkflow, issueInput);
25498
+ } else if (noTarget && capabilityInput) {
25487
25499
  forceRunAction = capabilityInput;
25488
25500
  if (messageInput) {
25489
- const route = resolveCapabilityAction(
25490
- capabilityInput,
25491
- capabilitiesRoot(cwd)
25492
- );
25493
- const textInputs = route?.implementation ? (getProfileInputs(
25494
- route.implementation,
25495
- getRuntimeProfileRootsForCwd(cwd)
25496
- ) ?? []).filter(
25501
+ const route = resolveCapabilityAction(capabilityInput, capabilitiesRoot(cwd));
25502
+ const textInputs = route?.implementation ? (getProfileInputs(route.implementation, getRuntimeProfileRootsForCwd(cwd)) ?? []).filter(
25497
25503
  (input) => input.type === "string"
25498
25504
  ) : [];
25499
25505
  if (textInputs.length === 1) {
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.459",
3
+ "version": "0.4.461",
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",
@@ -12,6 +12,29 @@
12
12
  "templates",
13
13
  "kody.config.schema.json"
14
14
  ],
15
+ "scripts": {
16
+ "kody:run": "tsx bin/kody.ts",
17
+ "serve": "tsx bin/kody.ts serve",
18
+ "serve:vscode": "tsx bin/kody.ts serve vscode",
19
+ "serve:claude": "tsx bin/kody.ts serve claude",
20
+ "clean:dist": "node scripts/clean-dist.cjs",
21
+ "build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
22
+ "check:modularity": "tsx scripts/check-script-modularity.ts",
23
+ "pretest": "pnpm check:modularity",
24
+ "test": "vitest run tests/unit tests/int --coverage",
25
+ "posttest": "tsx scripts/check-coverage-floor.ts",
26
+ "test:smoke": "vitest run tests/smoke --no-coverage",
27
+ "test:e2e": "vitest run tests/e2e --no-coverage",
28
+ "test:runtime-services": "node --test \"tests/runtime-services/*.test.mjs\"",
29
+ "test:all": "vitest run tests --no-coverage",
30
+ "typecheck": "tsc --noEmit",
31
+ "lint": "biome check",
32
+ "lint:fix": "biome check --write",
33
+ "format": "biome format --write",
34
+ "verify:package": "node scripts/verify-package-tarball.cjs",
35
+ "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain --build-arg KODY_ENGINE_REF=$(git rev-parse HEAD) -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner",
36
+ "prepublishOnly": "pnpm typecheck && vitest run tests/unit tests/int --no-coverage && pnpm test:runtime-services && pnpm build && pnpm verify:package"
37
+ },
15
38
  "dependencies": {
16
39
  "@actions/cache": "^6.0.0",
17
40
  "@anthropic-ai/claude-agent-sdk": "0.2.119",
@@ -38,27 +61,5 @@
38
61
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
39
62
  },
40
63
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
41
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
42
- "scripts": {
43
- "kody:run": "tsx bin/kody.ts",
44
- "serve": "tsx bin/kody.ts serve",
45
- "serve:vscode": "tsx bin/kody.ts serve vscode",
46
- "serve:claude": "tsx bin/kody.ts serve claude",
47
- "clean:dist": "node scripts/clean-dist.cjs",
48
- "build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
49
- "check:modularity": "tsx scripts/check-script-modularity.ts",
50
- "pretest": "pnpm check:modularity",
51
- "test": "vitest run tests/unit tests/int --coverage",
52
- "posttest": "tsx scripts/check-coverage-floor.ts",
53
- "test:smoke": "vitest run tests/smoke --no-coverage",
54
- "test:e2e": "vitest run tests/e2e --no-coverage",
55
- "test:runtime-services": "node --test \"tests/runtime-services/*.test.mjs\"",
56
- "test:all": "vitest run tests --no-coverage",
57
- "typecheck": "tsc --noEmit",
58
- "lint": "biome check",
59
- "lint:fix": "biome check --write",
60
- "format": "biome format --write",
61
- "verify:package": "node scripts/verify-package-tarball.cjs",
62
- "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain --build-arg KODY_ENGINE_REF=$(git rev-parse HEAD) -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner"
63
- }
64
- }
64
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
65
+ }