@kody-ade/kody-engine 0.4.238 → 0.4.240
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 +18 -18
- package/dist/{executables → agent-actions}/types.ts +52 -52
- package/dist/agent-responsibilities/run/agent-responsibility.md +10 -0
- package/dist/{duties → agent-responsibilities}/run/profile.json +1 -1
- package/dist/bin/kody.js +807 -801
- package/dist/plugins/hooks/block-write.json +1 -1
- package/kody.config.schema.json +8 -8
- package/package.json +2 -2
- package/dist/duties/run/duty.md +0 -10
- package/dist/scripts/preview-build-templates/default-Dockerfile.preview.dev +0 -43
- package/dist/scripts/preview-build-templates/default-Dockerfile.preview.prod +0 -40
- /package/dist/{executables → agent-actions}/run/profile.json +0 -0
- /package/dist/{executables → agent-actions}/run/prompt.md +0 -0
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"hooks": [
|
|
8
8
|
{
|
|
9
9
|
"type": "command",
|
|
10
|
-
"command": "node -e 'process.stderr.write(\"kody read-only mode: this
|
|
10
|
+
"command": "node -e 'process.stderr.write(\"kody read-only mode: this agentAction does not modify files; do not call Write/Edit/NotebookEdit\\n\");process.exit(2)'"
|
|
11
11
|
}
|
|
12
12
|
]
|
|
13
13
|
}
|
package/kody.config.schema.json
CHANGED
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
"enum": ["off", "low", "medium", "high"],
|
|
69
69
|
"description": "Default thinking effort for the Claude Agent SDK. Maps to maxThinkingTokens. 'off' (default) skips the thinking block entirely — no reasoning preamble, no extra tokens. 'low'/'medium'/'high' enable extended thinking with budgets 2_048/10_000/32_000. Overridable per-session via the REASONING_EFFORT env var or the dashboard's chat-level thinking dropdown."
|
|
70
70
|
},
|
|
71
|
-
"
|
|
71
|
+
"perAgentAction": {
|
|
72
72
|
"type": "object",
|
|
73
|
-
"description": "Optional provider/model override by
|
|
73
|
+
"description": "Optional provider/model override by agentAction name.",
|
|
74
74
|
"additionalProperties": {
|
|
75
75
|
"type": "string",
|
|
76
76
|
"pattern": "^[^/]+/.+$"
|
|
@@ -104,22 +104,22 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
|
-
"
|
|
107
|
+
"defaultAgentAction": {
|
|
108
108
|
"type": "string",
|
|
109
|
-
"description": "
|
|
109
|
+
"description": "AgentAction used for bare @kody comments on issues.",
|
|
110
110
|
"default": "run"
|
|
111
111
|
},
|
|
112
|
-
"
|
|
112
|
+
"defaultPrAgentAction": {
|
|
113
113
|
"type": "string",
|
|
114
|
-
"description": "Optional
|
|
114
|
+
"description": "Optional agentAction used for bare @kody comments on PRs. Leave unset to require explicit PR commands."
|
|
115
115
|
},
|
|
116
116
|
"onPullRequest": {
|
|
117
117
|
"type": "string",
|
|
118
|
-
"description": "Optional
|
|
118
|
+
"description": "Optional agentAction to run on pull_request opened, synchronize, or reopened events."
|
|
119
119
|
},
|
|
120
120
|
"aliases": {
|
|
121
121
|
"type": "object",
|
|
122
|
-
"description": "Comment subcommand aliases, mapping typed word to
|
|
122
|
+
"description": "Comment subcommand aliases, mapping typed word to agentAction name.",
|
|
123
123
|
"additionalProperties": {
|
|
124
124
|
"type": "string"
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kody-ade/kody-engine",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative
|
|
3
|
+
"version": "0.4.240",
|
|
4
|
+
"description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative agentAction profiles.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
package/dist/duties/run/duty.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# syntax=docker/dockerfile:1.7
|
|
2
|
-
#
|
|
3
|
-
# Bundled default Dockerfile.preview — DEV-MODE variant.
|
|
4
|
-
#
|
|
5
|
-
# Previews run `next dev`, NOT `next build` + `next start`. This skips
|
|
6
|
-
# the 5–10 min webpack production compile entirely. Trade-offs:
|
|
7
|
-
# - First request to each route lags 2–5s (compile-on-demand)
|
|
8
|
-
# - Subsequent requests are fast
|
|
9
|
-
# - Memory hungry at runtime (webpack alive)
|
|
10
|
-
# For PR previews this is the right trade — reviewers click a handful
|
|
11
|
-
# of pages, never need prod optimizations. Production stays on Vercel.
|
|
12
|
-
#
|
|
13
|
-
# When BASE_IMAGE is set, deps are inherited from the per-repo base
|
|
14
|
-
# image; the install layer just verifies the lockfile.
|
|
15
|
-
|
|
16
|
-
ARG BASE_IMAGE=node:22-alpine
|
|
17
|
-
|
|
18
|
-
FROM ${BASE_IMAGE}
|
|
19
|
-
WORKDIR /app
|
|
20
|
-
|
|
21
|
-
RUN corepack enable 2>/dev/null || true
|
|
22
|
-
|
|
23
|
-
COPY package.json pnpm-lock.yaml* package-lock.json* yarn.lock* ./
|
|
24
|
-
RUN --mount=type=cache,id=kp-pnpm-store,target=/root/.local/share/pnpm/store \
|
|
25
|
-
--mount=type=cache,id=kp-npm-cache,target=/root/.npm \
|
|
26
|
-
if [ -f pnpm-lock.yaml ]; then pnpm install --frozen-lockfile --ignore-scripts; \
|
|
27
|
-
elif [ -f package-lock.json ]; then npm ci --ignore-scripts; \
|
|
28
|
-
elif [ -f yarn.lock ]; then yarn install --frozen-lockfile --ignore-scripts; \
|
|
29
|
-
else npm install --ignore-scripts; fi
|
|
30
|
-
|
|
31
|
-
# Overwrite source files with the PR's version. node_modules and any
|
|
32
|
-
# prior .next directory from the base image are preserved as warm
|
|
33
|
-
# caches for the dev server's first compile.
|
|
34
|
-
COPY . ./
|
|
35
|
-
RUN mkdir -p public
|
|
36
|
-
|
|
37
|
-
ENV NEXT_TELEMETRY_DISABLED=1
|
|
38
|
-
ENV NODE_ENV=development
|
|
39
|
-
ENV PORT=8080
|
|
40
|
-
ENV HOSTNAME=0.0.0.0
|
|
41
|
-
|
|
42
|
-
EXPOSE 8080
|
|
43
|
-
CMD ["sh", "-c", "if [ -f pnpm-lock.yaml ]; then pnpm exec next dev -H 0.0.0.0 -p 8080; else npx next dev -H 0.0.0.0 -p 8080; fi"]
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# syntax=docker/dockerfile:1.7
|
|
2
|
-
#
|
|
3
|
-
# Bundled default Dockerfile.preview — PROD-MODE variant.
|
|
4
|
-
#
|
|
5
|
-
# Runs `next build` + `next start` — same shape as Vercel. Slower
|
|
6
|
-
# first build (~5–10 min webpack) but instant per-page response.
|
|
7
|
-
# Pick this mode for repos where reviewers test production-only
|
|
8
|
-
# behaviour (SSG, static optimization, edge runtime parity).
|
|
9
|
-
|
|
10
|
-
ARG BASE_IMAGE=node:22-alpine
|
|
11
|
-
|
|
12
|
-
FROM ${BASE_IMAGE}
|
|
13
|
-
WORKDIR /app
|
|
14
|
-
|
|
15
|
-
RUN corepack enable 2>/dev/null || true
|
|
16
|
-
|
|
17
|
-
COPY package.json pnpm-lock.yaml* package-lock.json* yarn.lock* ./
|
|
18
|
-
RUN --mount=type=cache,id=kp-pnpm-store,target=/root/.local/share/pnpm/store \
|
|
19
|
-
--mount=type=cache,id=kp-npm-cache,target=/root/.npm \
|
|
20
|
-
if [ -f pnpm-lock.yaml ]; then pnpm install --frozen-lockfile --ignore-scripts; \
|
|
21
|
-
elif [ -f package-lock.json ]; then npm ci --ignore-scripts; \
|
|
22
|
-
elif [ -f yarn.lock ]; then yarn install --frozen-lockfile --ignore-scripts; \
|
|
23
|
-
else npm install --ignore-scripts; fi
|
|
24
|
-
|
|
25
|
-
COPY . ./
|
|
26
|
-
RUN mkdir -p public
|
|
27
|
-
|
|
28
|
-
ENV NEXT_TELEMETRY_DISABLED=1
|
|
29
|
-
ENV NODE_ENV=production
|
|
30
|
-
ENV PORT=8080
|
|
31
|
-
ENV HOSTNAME=0.0.0.0
|
|
32
|
-
ENV NODE_OPTIONS="--max-old-space-size=7168"
|
|
33
|
-
|
|
34
|
-
RUN --mount=type=cache,id=kp-next-cache,target=/app/.next/cache \
|
|
35
|
-
if [ -f pnpm-lock.yaml ]; then pnpm exec next build; \
|
|
36
|
-
else npx next build; \
|
|
37
|
-
fi
|
|
38
|
-
|
|
39
|
-
EXPOSE 8080
|
|
40
|
-
CMD ["sh", "-c", "if [ -f pnpm-lock.yaml ]; then pnpm exec next start -H 0.0.0.0 -p 8080; else npx next start -H 0.0.0.0 -p 8080; fi"]
|
|
File without changes
|
|
File without changes
|