@kody-ade/kody-engine 0.4.200 → 0.4.201

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
@@ -1431,7 +1431,7 @@ var init_loadCoverageRules = __esm({
1431
1431
  // package.json
1432
1432
  var package_default = {
1433
1433
  name: "@kody-ade/kody-engine",
1434
- version: "0.4.200",
1434
+ version: "0.4.201",
1435
1435
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
1436
1436
  license: "MIT",
1437
1437
  type: "module",
@@ -3501,7 +3501,7 @@ function autoDispatchTyped(opts) {
3501
3501
  const rawBody = String(event.comment?.body ?? "");
3502
3502
  const authorLogin = String(event.comment?.user?.login ?? "");
3503
3503
  const authorType = String(event.comment?.user?.type ?? "");
3504
- if (!rawBody.toLowerCase().includes("@kody")) {
3504
+ if (!hasKodyMention(rawBody)) {
3505
3505
  return { kind: "silent", reason: "comment does not mention @kody" };
3506
3506
  }
3507
3507
  if (authorLogin === "kody-bot" || authorType === "Bot") {
@@ -3574,7 +3574,7 @@ function hasKodyMention(body) {
3574
3574
  }
3575
3575
  function extractAfterTag(body) {
3576
3576
  const m = body.match(KODY_MENTION_RE);
3577
- if (!m || m.index === void 0) return body;
3577
+ if (!m || m.index === void 0) return "";
3578
3578
  const at = body.indexOf("@kody", m.index);
3579
3579
  return body.slice(at + "@kody".length).trim();
3580
3580
  }
@@ -9918,7 +9918,7 @@ var loadJobFromFile = async (ctx, profile, args) => {
9918
9918
  const loaded = await backend.load(slug);
9919
9919
  ctx.data.jobSlug = slug;
9920
9920
  ctx.data.jobTitle = title;
9921
- ctx.data.jobIntent = body.replace(/\{\{\s*mentions\s*\}\}/g, mentions);
9921
+ ctx.data.jobIntent = body.replace(/\{\{\s*mentions\s*\}\}/g, mentions).replace(/\{\{\s*duty\s*\}\}/g, slug);
9922
9922
  ctx.data.jobState = loaded;
9923
9923
  ctx.data.jobStateJson = JSON.stringify(loaded.state, null, 2);
9924
9924
  ctx.data.workerSlug = workerSlug;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.200",
3
+ "version": "0.4.201",
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",
@@ -12,6 +12,25 @@
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
+ "build": "tsup && node scripts/copy-assets.cjs",
21
+ "check:modularity": "tsx scripts/check-script-modularity.ts",
22
+ "pretest": "pnpm check:modularity",
23
+ "test": "vitest run tests/unit tests/int --coverage",
24
+ "test:smoke": "vitest run tests/smoke --no-coverage",
25
+ "test:e2e": "vitest run tests/e2e --no-coverage",
26
+ "test:all": "vitest run tests --no-coverage",
27
+ "typecheck": "tsc --noEmit",
28
+ "lint": "biome check",
29
+ "lint:fix": "biome check --write",
30
+ "format": "biome format --write",
31
+ "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",
32
+ "prepublishOnly": "pnpm typecheck && vitest run tests/unit tests/int --no-coverage && pnpm build"
33
+ },
15
34
  "dependencies": {
16
35
  "@actions/cache": "^6.0.0",
17
36
  "@anthropic-ai/claude-agent-sdk": "0.2.119",
@@ -34,23 +53,5 @@
34
53
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
35
54
  },
36
55
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
37
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
38
- "scripts": {
39
- "kody:run": "tsx bin/kody.ts",
40
- "serve": "tsx bin/kody.ts serve",
41
- "serve:vscode": "tsx bin/kody.ts serve vscode",
42
- "serve:claude": "tsx bin/kody.ts serve claude",
43
- "build": "tsup && node scripts/copy-assets.cjs",
44
- "check:modularity": "tsx scripts/check-script-modularity.ts",
45
- "pretest": "pnpm check:modularity",
46
- "test": "vitest run tests/unit tests/int --coverage",
47
- "test:smoke": "vitest run tests/smoke --no-coverage",
48
- "test:e2e": "vitest run tests/e2e --no-coverage",
49
- "test:all": "vitest run tests --no-coverage",
50
- "typecheck": "tsc --noEmit",
51
- "lint": "biome check",
52
- "lint:fix": "biome check --write",
53
- "format": "biome format --write",
54
- "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"
55
- }
56
- }
56
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
57
+ }