@kody-ade/kody-engine 0.4.73 → 0.4.75
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 +18 -11
- package/dist/executables/goal-scheduler/scheduler.sh +0 -0
- package/dist/executables/release-deploy/deploy.sh +0 -0
- package/dist/executables/release-prepare/prepare.sh +0 -0
- package/dist/executables/release-publish/publish.sh +0 -0
- package/dist/executables/resolve/apply-prefer.sh +0 -0
- package/dist/executables/revert/revert.sh +0 -0
- package/package.json +19 -20
- package/templates/kody.yml +1 -9
package/dist/bin/kody.js
CHANGED
|
@@ -495,9 +495,10 @@ function parseAgentResult(finalText) {
|
|
|
495
495
|
markerMissing: false
|
|
496
496
|
};
|
|
497
497
|
const MARKDOWN_PREFIX = "[\\s>*_#`~\\-]*";
|
|
498
|
-
const FAILED_RE = new RegExp(`(?:^|\\n)${MARKDOWN_PREFIX}FAILED${MARKDOWN_PREFIX}\\s*:\\s*(.+?)\\s*$`, "
|
|
499
|
-
const DONE_RE = new RegExp(`(?:^|\\n)${MARKDOWN_PREFIX}DONE\\b
|
|
500
|
-
const
|
|
498
|
+
const FAILED_RE = new RegExp(`(?:^|\\n)${MARKDOWN_PREFIX}FAILED${MARKDOWN_PREFIX}\\s*:\\s*(.+?)\\s*$`, "s");
|
|
499
|
+
const DONE_RE = new RegExp(`(?:^|\\n)${MARKDOWN_PREFIX}DONE\\b`);
|
|
500
|
+
const scanText = stripFencedCodeBlocks(text);
|
|
501
|
+
const failedMatch = scanText.match(FAILED_RE);
|
|
501
502
|
if (failedMatch) {
|
|
502
503
|
return {
|
|
503
504
|
done: false,
|
|
@@ -510,7 +511,7 @@ function parseAgentResult(finalText) {
|
|
|
510
511
|
markerMissing: false
|
|
511
512
|
};
|
|
512
513
|
}
|
|
513
|
-
const hasDoneMarker = DONE_RE.test(
|
|
514
|
+
const hasDoneMarker = DONE_RE.test(scanText);
|
|
514
515
|
const hasCommitMsg = /^[\s>*_#`~-]*COMMIT_MSG\s*:/im.test(text);
|
|
515
516
|
const hasPrSummary = /^[\s>*_#`~-]*PR_SUMMARY\s*:/im.test(text);
|
|
516
517
|
const markerMissing = !hasDoneMarker && !hasCommitMsg && !hasPrSummary;
|
|
@@ -553,6 +554,9 @@ function parseAgentResult(finalText) {
|
|
|
553
554
|
function stripMarkdownEmphasis(s) {
|
|
554
555
|
return s.trim().replace(/^[*_`~]+|[*_`~]+$/g, "").trim();
|
|
555
556
|
}
|
|
557
|
+
function stripFencedCodeBlocks(s) {
|
|
558
|
+
return s.replace(/```[\s\S]*?```/g, "").replace(/~~~[\s\S]*?~~~/g, "");
|
|
559
|
+
}
|
|
556
560
|
function extractBlock(text, startMarker, endMarker) {
|
|
557
561
|
const startIdx = text.search(startMarker);
|
|
558
562
|
if (startIdx === -1) return "";
|
|
@@ -864,7 +868,7 @@ var init_loadPriorArt = __esm({
|
|
|
864
868
|
// package.json
|
|
865
869
|
var package_default = {
|
|
866
870
|
name: "@kody-ade/kody-engine",
|
|
867
|
-
version: "0.4.
|
|
871
|
+
version: "0.4.75",
|
|
868
872
|
description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
|
|
869
873
|
license: "MIT",
|
|
870
874
|
type: "module",
|
|
@@ -1576,10 +1580,13 @@ var CHAT_SYSTEM_PROMPT = [
|
|
|
1576
1580
|
"focused, technical when appropriate, and formatted in Markdown.",
|
|
1577
1581
|
"",
|
|
1578
1582
|
"# Your environment and capabilities",
|
|
1579
|
-
"You run inside a
|
|
1580
|
-
"checked out at the current working directory.
|
|
1581
|
-
"
|
|
1582
|
-
"
|
|
1583
|
+
"You run inside a sandboxed runner with a full clone of the user's repository",
|
|
1584
|
+
"checked out at the current working directory. The runtime varies \u2014 it may be a",
|
|
1585
|
+
"GitHub Actions job, a Fly Machine, or another container \u2014 but the tools and",
|
|
1586
|
+
"capabilities below are identical across runtimes. Use the actual environment",
|
|
1587
|
+
"(e.g. `uname`, `pwd`, `env`) to verify before claiming where you run. You have",
|
|
1588
|
+
"real tools \u2014 use them before claiming you cannot do something. Never tell the",
|
|
1589
|
+
"user you lack repo, filesystem, or GitHub access; you have all three.",
|
|
1583
1590
|
"",
|
|
1584
1591
|
"Tools you can call:",
|
|
1585
1592
|
"- Read, Edit, Write \u2014 full read/write access to every file in the repo (permission",
|
|
@@ -1588,8 +1595,8 @@ var CHAT_SYSTEM_PROMPT = [
|
|
|
1588
1595
|
"- Bash \u2014 run any shell command in the repo. The runner has:",
|
|
1589
1596
|
" - `git` (the repo is a real git checkout \u2014 `git log`, `git diff`,",
|
|
1590
1597
|
" `git show`, `git blame`, `git branch`, etc. all work).",
|
|
1591
|
-
" - `gh` authenticated against this repository's GitHub via
|
|
1592
|
-
"
|
|
1598
|
+
" - `gh` authenticated against this repository's GitHub via a `GITHUB_TOKEN`",
|
|
1599
|
+
" env var (read issues, PRs, workflows, runs, comments; query the API",
|
|
1593
1600
|
" with `gh api`).",
|
|
1594
1601
|
" - the repo's package manager and test/build/lint tooling (npm/pnpm/yarn,",
|
|
1595
1602
|
" pytest, go test, cargo, etc., whatever the project uses).",
|
|
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.
|
|
3
|
+
"version": "0.4.75",
|
|
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,23 +12,6 @@
|
|
|
12
12
|
"templates",
|
|
13
13
|
"kody.config.schema.json"
|
|
14
14
|
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"kody": "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 --no-coverage",
|
|
24
|
-
"test:e2e": "vitest run tests/e2e --no-coverage",
|
|
25
|
-
"test:all": "vitest run tests --no-coverage",
|
|
26
|
-
"typecheck": "tsc --noEmit",
|
|
27
|
-
"lint": "biome check",
|
|
28
|
-
"lint:fix": "biome check --write",
|
|
29
|
-
"format": "biome format --write",
|
|
30
|
-
"prepublishOnly": "pnpm build"
|
|
31
|
-
},
|
|
32
15
|
"dependencies": {
|
|
33
16
|
"@actions/cache": "^6.0.0",
|
|
34
17
|
"@anthropic-ai/claude-agent-sdk": "0.2.119",
|
|
@@ -50,5 +33,21 @@
|
|
|
50
33
|
"url": "git+https://github.com/aharonyaircohen/kody-engine.git"
|
|
51
34
|
},
|
|
52
35
|
"homepage": "https://github.com/aharonyaircohen/kody-engine",
|
|
53
|
-
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues"
|
|
54
|
-
|
|
36
|
+
"bugs": "https://github.com/aharonyaircohen/kody-engine/issues",
|
|
37
|
+
"scripts": {
|
|
38
|
+
"kody": "tsx bin/kody.ts",
|
|
39
|
+
"serve": "tsx bin/kody.ts serve",
|
|
40
|
+
"serve:vscode": "tsx bin/kody.ts serve vscode",
|
|
41
|
+
"serve:claude": "tsx bin/kody.ts serve claude",
|
|
42
|
+
"build": "tsup && node scripts/copy-assets.cjs",
|
|
43
|
+
"check:modularity": "tsx scripts/check-script-modularity.ts",
|
|
44
|
+
"pretest": "pnpm check:modularity",
|
|
45
|
+
"test": "vitest run tests/unit tests/int --no-coverage",
|
|
46
|
+
"test:e2e": "vitest run tests/e2e --no-coverage",
|
|
47
|
+
"test:all": "vitest run tests --no-coverage",
|
|
48
|
+
"typecheck": "tsc --noEmit",
|
|
49
|
+
"lint": "biome check",
|
|
50
|
+
"lint:fix": "biome check --write",
|
|
51
|
+
"format": "biome format --write"
|
|
52
|
+
}
|
|
53
|
+
}
|
package/templates/kody.yml
CHANGED
|
@@ -80,17 +80,9 @@ jobs:
|
|
|
80
80
|
with:
|
|
81
81
|
node-version: 22
|
|
82
82
|
|
|
83
|
-
- name: Write pip cache key for LiteLLM
|
|
84
|
-
run: echo "litellm[proxy]" > .kody-pip-requirements.txt
|
|
85
|
-
|
|
86
83
|
- uses: actions/setup-python@v5
|
|
87
84
|
with:
|
|
88
85
|
python-version: "3.12"
|
|
89
|
-
cache: "pip"
|
|
90
|
-
cache-dependency-path: .kody-pip-requirements.txt
|
|
91
|
-
|
|
92
|
-
- name: Remove pip cache key file (avoid blocking branch switches)
|
|
93
|
-
run: rm -f .kody-pip-requirements.txt
|
|
94
86
|
|
|
95
87
|
- env:
|
|
96
88
|
ALL_SECRETS: ${{ toJSON(secrets) }}
|
|
@@ -98,4 +90,4 @@ jobs:
|
|
|
98
90
|
INIT_MESSAGE: ${{ inputs.message }}
|
|
99
91
|
MODEL: ${{ inputs.model }}
|
|
100
92
|
DASHBOARD_URL: ${{ inputs.dashboardUrl }}
|
|
101
|
-
run: npx -y -p @kody-ade/kody-engine@
|
|
93
|
+
run: npx -y -p @kody-ade/kody-engine@0.4.75 kody
|