@kody-ade/kody-engine 0.4.122 → 0.4.124
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/README.md +6 -12
- package/dist/bin/kody.js +3682 -3655
- package/dist/executables/qa-engineer/profile.json +2 -2
- package/dist/executables/qa-engineer/prompt.md +5 -6
- package/dist/executables/ui-review/profile.json +1 -1
- package/dist/executables/ui-review/prompt.md +5 -3
- package/kody.config.schema.json +0 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ Executable directories contain **only** three kinds of files: `profile.json` (de
|
|
|
30
30
|
npx -y -p @kody-ade/kody-engine@latest kody init
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
`kody init` scaffolds [kody.config.json](kody.config.schema.json), [.github/workflows/kody.yml](templates/kody.yml), per-scheduled-executable workflow files
|
|
33
|
+
`kody init` scaffolds [kody.config.json](kody.config.schema.json), [.github/workflows/kody.yml](templates/kody.yml), and per-scheduled-executable workflow files. Idempotent — pass `--force` to overwrite.
|
|
34
34
|
|
|
35
35
|
Required repo secrets: at least one model provider key (e.g. `MINIMAX_API_KEY`, `ANTHROPIC_API_KEY`). Recommended: `KODY_TOKEN` PAT so kody's commits trigger downstream CI and can modify `.github/workflows/*`.
|
|
36
36
|
|
|
@@ -92,7 +92,7 @@ A **job** is a stateful, bounded goal expressed as a labeled GitHub issue (`kody
|
|
|
92
92
|
PR-bound UI review. Drives the running preview deployment via the Playwright MCP server alongside the usual diff review, posts one structured review comment.
|
|
93
93
|
|
|
94
94
|
- Preview URL: `--preview-url` → `$PREVIEW_URL` → `http://localhost:3000`. Unreachable → falls back to diff-only.
|
|
95
|
-
- Credentials: `.kody/
|
|
95
|
+
- Credentials: dashboard-managed, per-repo — login username from the `LOGIN_USER` variable (`.kody/variables.json`), password from the `LOGIN_PASSWORD` vault secret (`.kody/secrets.enc`). Hand-written scenarios/notes come from the company profile (`.kody/profile/*.md`).
|
|
96
96
|
- Auto-discovery: routes, roles, login/admin paths, Payload CMS collections, API routes, env vars — fed to the agent as context.
|
|
97
97
|
|
|
98
98
|
For free-form QA passes (no diff, no PR), see [`qa-engineer`](#qa-engineer) below.
|
|
@@ -102,7 +102,7 @@ For free-form QA passes (no diff, no PR), see [`qa-engineer`](#qa-engineer) belo
|
|
|
102
102
|
Free-form QA pass. Browses a running site with Playwright MCP, exercises UI states (happy / empty / error / loading / mobile / a11y), and turns findings into a kody goal whose tasks are individually triageable, severity-labelled bug issues. Read-only on the repo (no commits except the goal's own `state.json`).
|
|
103
103
|
|
|
104
104
|
```bash
|
|
105
|
-
# broad smoke against the project's
|
|
105
|
+
# broad smoke against the project's QA_URL variable
|
|
106
106
|
kody qa-engineer
|
|
107
107
|
|
|
108
108
|
# focused pass; opens a new qa-<scope>-<date> goal + N task issues
|
|
@@ -126,16 +126,10 @@ kody qa-engineer --scope "smoke" --issue 1234
|
|
|
126
126
|
1. `--url <URL>` — explicit
|
|
127
127
|
2. `--goal <id>` → latest successful Vercel deployment for the `goal-<id>` branch (via `repos/.../deployments?ref=goal-<id>` + statuses)
|
|
128
128
|
3. `$PREVIEW_URL` env var
|
|
129
|
-
4. `
|
|
129
|
+
4. `QA_URL` variable in `.kody/variables.json` (per-repo, dashboard-managed)
|
|
130
130
|
5. error — no localhost defaults; CI has no localhost to fall back to.
|
|
131
131
|
|
|
132
|
-
Configure the
|
|
133
|
-
|
|
134
|
-
```json
|
|
135
|
-
{
|
|
136
|
-
"qa": { "fallbackUrl": "https://dev.example.com" }
|
|
137
|
-
}
|
|
138
|
-
```
|
|
132
|
+
Configure the per-repo default via the dashboard's variables store (`.kody/variables.json`), key `QA_URL` — e.g. `https://dev.example.com`.
|
|
139
133
|
|
|
140
134
|
**Output modes.**
|
|
141
135
|
|
|
@@ -183,7 +177,7 @@ gh workflow run kody.yml -F executable=qa-engineer \
|
|
|
183
177
|
-F args="--goal admin-chat-memory-recall-ui --scope 'admin chat'"
|
|
184
178
|
```
|
|
185
179
|
|
|
186
|
-
**Auto-discovery & credentials.** Same as `ui-review`: `discoverQaContext` scans the repo for routes/roles/admin path/Payload collections/env vars; `
|
|
180
|
+
**Auto-discovery & credentials.** Same as `ui-review`: `discoverQaContext` scans the repo for routes/roles/admin path/Payload collections/env vars; `loadQaContext` reads the dashboard-managed login username (`LOGIN_USER` variable), password (`LOGIN_PASSWORD` vault secret), and hand-written scenarios/notes (`.kody/profile/*.md`). The agent only logs in if a route under test requires it.
|
|
187
181
|
|
|
188
182
|
**Artifacts.** Screenshots and DOM snapshots go to `.kody/qa-reports/<scope-slug>/`; the Playwright MCP also writes to `.playwright-mcp/`. Both should be in `.gitignore` and `.prettierignore` — `kody init` doesn't yet scaffold these, add them manually:
|
|
189
183
|
|