@kody-ade/kody-engine 0.4.77 → 0.4.78

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
@@ -868,7 +868,7 @@ var init_loadPriorArt = __esm({
868
868
  // package.json
869
869
  var package_default = {
870
870
  name: "@kody-ade/kody-engine",
871
- version: "0.4.77",
871
+ version: "0.4.78",
872
872
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
873
873
  license: "MIT",
874
874
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.77",
3
+ "version": "0.4.78",
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",
@@ -0,0 +1,93 @@
1
+ # Drop this file at .github/workflows/kody.yml in your repo.
2
+ #
3
+ # Triggers forward every relevant event to `kody`; the engine decides what
4
+ # (if anything) to do. The job runs `npx kody` — no shell branching, no
5
+ # routing logic in YAML. All orchestration lives in the kody npm package;
6
+ # future capabilities ship via `npm publish`, not by editing this file.
7
+ #
8
+ # Required repo secrets: at least one model provider key (e.g. MINIMAX_API_KEY,
9
+ # ANTHROPIC_API_KEY). kody reads any *_API_KEY secret automatically via
10
+ # toJSON(secrets) — no need to list them here.
11
+ #
12
+ # Recommended: KODY_TOKEN secret — a fine-grained PAT or GitHub App token
13
+ # with `repo` + `read:org` + `workflow` scopes. Without it, kody's
14
+ # commits/PR-creation still work via github.token, but three things degrade:
15
+ # 1. PR body updates fail with "token lacks read:org scope" (cosmetic).
16
+ # 2. Pushes from kody won't trigger downstream workflows.
17
+ # 3. Any commit that modifies `.github/workflows/*` is REJECTED by
18
+ # GitHub — the default GITHUB_TOKEN can't touch workflow files.
19
+ # Set KODY_TOKEN in repo Settings → Secrets → Actions.
20
+
21
+ name: kody
22
+
23
+ on:
24
+ workflow_dispatch:
25
+ inputs:
26
+ issue_number:
27
+ description: "GitHub issue number (agent mode)"
28
+ type: string
29
+ default: ""
30
+ sessionId:
31
+ description: "Chat session ID (chat mode, from Kody-Dashboard)"
32
+ type: string
33
+ default: ""
34
+ message:
35
+ description: "Initial chat message (optional)"
36
+ type: string
37
+ default: ""
38
+ model:
39
+ description: "Model override (optional, e.g. anthropic/claude-haiku-4-5-20251001)"
40
+ type: string
41
+ default: ""
42
+ dashboardUrl:
43
+ description: "Dashboard event ingest URL with inline ?token=... (chat mode)"
44
+ type: string
45
+ default: ""
46
+ issue_comment:
47
+ types: [created]
48
+ pull_request:
49
+ types: [closed]
50
+ schedule:
51
+ # Wakes every 30 minutes; kody fans out to whichever scheduled executables
52
+ # (job-scheduler, memorize, watch-stale-prs, …) match this tick.
53
+ #
54
+ # `memorize` writes to `.kody/vault/` and opens a daily PR. If your
55
+ # `.gitignore` ignores `.kody/*`, add `!.kody/vault/` and `!.kody/vault/**`
56
+ # so memorize's pages are tracked.
57
+ - cron: "*/15 * * * *"
58
+
59
+ jobs:
60
+ run:
61
+ if: ${{ github.event_name != 'pull_request' || github.event.pull_request.merged == true }}
62
+ runs-on: ubuntu-latest
63
+ timeout-minutes: 360
64
+ concurrency:
65
+ group: kody-${{ inputs.sessionId || inputs.issue_number || github.event.issue.number || github.sha }}
66
+ cancel-in-progress: false
67
+ permissions:
68
+ issues: write
69
+ pull-requests: write
70
+ contents: write
71
+ actions: read
72
+ steps:
73
+ - uses: actions/checkout@v4
74
+ with:
75
+ fetch-depth: 0
76
+ ref: ${{ github.event.pull_request.base.ref || github.ref }}
77
+ token: ${{ secrets.KODY_TOKEN || github.token }}
78
+
79
+ - uses: actions/setup-node@v4
80
+ with:
81
+ node-version: 22
82
+
83
+ - uses: actions/setup-python@v5
84
+ with:
85
+ python-version: "3.12"
86
+
87
+ - env:
88
+ ALL_SECRETS: ${{ toJSON(secrets) }}
89
+ SESSION_ID: ${{ inputs.sessionId }}
90
+ INIT_MESSAGE: ${{ inputs.message }}
91
+ MODEL: ${{ inputs.model }}
92
+ DASHBOARD_URL: ${{ inputs.dashboardUrl }}
93
+ run: npx -y -p @kody-ade/kody-engine@0.4.78 kody-engine