@kody-ade/kody-engine 0.3.48 → 0.3.50

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
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@kody-ade/kody-engine",
6
- version: "0.3.48",
6
+ version: "0.3.50",
7
7
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
8
8
  license: "MIT",
9
9
  type: "module",
@@ -1551,8 +1551,8 @@ function findStateComment(target, number, cwd) {
1551
1551
  }
1552
1552
  function parseStateComment(body) {
1553
1553
  const beginIdx = body.indexOf(STATE_BEGIN);
1554
- const endIdx = body.indexOf(STATE_END, beginIdx + 1);
1555
- if (beginIdx < 0 || endIdx < 0) return emptyState();
1554
+ const endIdx = body.lastIndexOf(STATE_END);
1555
+ if (beginIdx < 0 || endIdx < 0 || endIdx <= beginIdx) return emptyState();
1556
1556
  const between = body.slice(beginIdx + STATE_BEGIN.length, endIdx).trim();
1557
1557
  const OPEN = "```json";
1558
1558
  const CLOSE = "```";
@@ -4955,8 +4955,7 @@ var parseAgentResult2 = async (ctx, profile, agentResult) => {
4955
4955
  const modeSeg = (ctx.args.mode ?? profile.name).replace(/-/g, "_").toUpperCase();
4956
4956
  if (parsed.done) {
4957
4957
  ctx.data.action = makeAction2(`${modeSeg}_COMPLETED`, {
4958
- commitMessage: parsed.commitMessage,
4959
- prSummary: parsed.prSummary
4958
+ commitMessage: parsed.commitMessage
4960
4959
  });
4961
4960
  } else {
4962
4961
  ctx.data.action = makeAction2(`${modeSeg}_FAILED`, {
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.3.48",
3
+ "version": "0.3.50",
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,18 +12,6 @@
12
12
  "templates",
13
13
  "kody.config.schema.json"
14
14
  ],
15
- "scripts": {
16
- "kody": "tsx bin/kody.ts",
17
- "build": "tsup && node scripts/copy-assets.cjs",
18
- "test": "vitest run tests/unit tests/int --no-coverage",
19
- "test:e2e": "vitest run tests/e2e --no-coverage",
20
- "test:all": "vitest run tests --no-coverage",
21
- "typecheck": "tsc --noEmit",
22
- "lint": "biome check",
23
- "lint:fix": "biome check --write",
24
- "format": "biome format --write",
25
- "prepublishOnly": "pnpm build"
26
- },
27
15
  "dependencies": {
28
16
  "@anthropic-ai/claude-agent-sdk": "0.2.119"
29
17
  },
@@ -43,5 +31,16 @@
43
31
  "url": "git+https://github.com/aharonyaircohen/kody-engine.git"
44
32
  },
45
33
  "homepage": "https://github.com/aharonyaircohen/kody-engine",
46
- "bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
47
- }
34
+ "bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
35
+ "scripts": {
36
+ "kody": "tsx bin/kody.ts",
37
+ "build": "tsup && node scripts/copy-assets.cjs",
38
+ "test": "vitest run tests/unit tests/int --no-coverage",
39
+ "test:e2e": "vitest run tests/e2e --no-coverage",
40
+ "test:all": "vitest run tests --no-coverage",
41
+ "typecheck": "tsc --noEmit",
42
+ "lint": "biome check",
43
+ "lint:fix": "biome check --write",
44
+ "format": "biome format --write"
45
+ }
46
+ }