@kody-ade/kody-engine 0.4.374 → 0.4.376

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 +5 -4
  2. package/package.json +25 -24
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.374",
18
+ version: "0.4.376",
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",
@@ -8804,7 +8804,7 @@ function validateWorkflow(value, options = {}) {
8804
8804
  }
8805
8805
  if (graphMode) {
8806
8806
  const id = text(step.id);
8807
- if (!id || !SAFE_NAME.test(id)) {
8807
+ if (!id || !SAFE_STEP_ID.test(id)) {
8808
8808
  issue(issues, "invalid_step_id", `${base}.id`, "graph workflow steps must each have a valid id");
8809
8809
  } else {
8810
8810
  ids.push(id);
@@ -8913,7 +8913,7 @@ function validateWorkflow(value, options = {}) {
8913
8913
  }
8914
8914
  }
8915
8915
  const target = text(raw.to);
8916
- if (!target || !SAFE_NAME.test(target)) {
8916
+ if (!target || !SAFE_STEP_ID.test(target)) {
8917
8917
  issue(issues, "invalid_transition_target", `${base}.to`, "workflow connection must name a valid target step");
8918
8918
  return;
8919
8919
  }
@@ -9013,11 +9013,12 @@ function isComparable(value) {
9013
9013
  function issue(issues, code, path52, message) {
9014
9014
  issues.push({ code, path: path52, message });
9015
9015
  }
9016
- var SAFE_NAME, SAFE_DATA_PATH, SUPPORTED_STEP_FIELDS, SUPPORTED_TRANSITION_FIELDS;
9016
+ var SAFE_NAME, SAFE_STEP_ID, SAFE_DATA_PATH, SUPPORTED_STEP_FIELDS, SUPPORTED_TRANSITION_FIELDS;
9017
9017
  var init_workflowValidation = __esm({
9018
9018
  "src/workflowValidation.ts"() {
9019
9019
  "use strict";
9020
9020
  SAFE_NAME = /^[a-z][a-z0-9-]*$/;
9021
+ SAFE_STEP_ID = /^[A-Za-z][A-Za-z0-9_-]*$/;
9021
9022
  SAFE_DATA_PATH = /^(facts|evidence|artifacts|result|workflow|lastOutcome)(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;
9022
9023
  SUPPORTED_STEP_FIELDS = /* @__PURE__ */ new Set([
9023
9024
  "id",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.374",
3
+ "version": "0.4.376",
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,28 @@
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:all": "vitest run tests --no-coverage",
29
+ "typecheck": "tsc --noEmit",
30
+ "lint": "biome check",
31
+ "lint:fix": "biome check --write",
32
+ "format": "biome format --write",
33
+ "verify:package": "node scripts/verify-package-tarball.cjs",
34
+ "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner",
35
+ "prepublishOnly": "pnpm typecheck && vitest run tests/unit tests/int --no-coverage && pnpm build && pnpm verify:package"
36
+ },
15
37
  "dependencies": {
16
38
  "@actions/cache": "^6.0.0",
17
39
  "@anthropic-ai/claude-agent-sdk": "0.2.119",
@@ -35,26 +57,5 @@
35
57
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
36
58
  },
37
59
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
38
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
39
- "scripts": {
40
- "kody:run": "tsx bin/kody.ts",
41
- "serve": "tsx bin/kody.ts serve",
42
- "serve:vscode": "tsx bin/kody.ts serve vscode",
43
- "serve:claude": "tsx bin/kody.ts serve claude",
44
- "clean:dist": "node scripts/clean-dist.cjs",
45
- "build": "pnpm clean:dist && tsup && node scripts/copy-assets.cjs",
46
- "check:modularity": "tsx scripts/check-script-modularity.ts",
47
- "pretest": "pnpm check:modularity",
48
- "test": "vitest run tests/unit tests/int --coverage",
49
- "posttest": "tsx scripts/check-coverage-floor.ts",
50
- "test:smoke": "vitest run tests/smoke --no-coverage",
51
- "test:e2e": "vitest run tests/e2e --no-coverage",
52
- "test:all": "vitest run tests --no-coverage",
53
- "typecheck": "tsc --noEmit",
54
- "lint": "biome check",
55
- "lint:fix": "biome check --write",
56
- "format": "biome format --write",
57
- "verify:package": "node scripts/verify-package-tarball.cjs",
58
- "brain:publish": "docker buildx build --platform linux/amd64 -f runner/Dockerfile.brain -t ghcr.io/${KODY_BRAIN_GHCR_OWNER:-aharonyaircohen}/kody-brain:latest --push runner"
59
- }
60
- }
60
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
61
+ }