@kody-ade/kody-engine 0.4.204 → 0.4.205

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
@@ -1486,7 +1486,7 @@ var init_loadCoverageRules = __esm({
1486
1486
  // package.json
1487
1487
  var package_default = {
1488
1488
  name: "@kody-ade/kody-engine",
1489
- version: "0.4.204",
1489
+ version: "0.4.205",
1490
1490
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
1491
1491
  license: "MIT",
1492
1492
  type: "module",
@@ -5437,6 +5437,14 @@ function tryGit(args, cwd) {
5437
5437
  return false;
5438
5438
  }
5439
5439
  }
5440
+ function ensureGitIdentity(cwd) {
5441
+ if (!tryGit(["config", "user.name"], cwd)) {
5442
+ tryGit(["config", "user.name", process.env.GIT_AUTHOR_NAME ?? "Kody Bot"], cwd);
5443
+ }
5444
+ if (!tryGit(["config", "user.email"], cwd)) {
5445
+ tryGit(["config", "user.email", process.env.GIT_AUTHOR_EMAIL ?? "kody@users.noreply.github.com"], cwd);
5446
+ }
5447
+ }
5440
5448
  function abortUnfinishedGitOps(cwd) {
5441
5449
  const aborted = [];
5442
5450
  const gitDir = path19.join(cwd ?? process.cwd(), ".git");
@@ -5524,6 +5532,7 @@ function commitAndPush(branch, agentMessage, cwd) {
5524
5532
  }
5525
5533
  }
5526
5534
  const message = normalizeCommitMessage(agentMessage);
5535
+ ensureGitIdentity(cwd);
5527
5536
  try {
5528
5537
  git(["commit", "--no-gpg-sign", "-m", message], cwd);
5529
5538
  } catch (err) {
@@ -0,0 +1,43 @@
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"]
@@ -0,0 +1,40 @@
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"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.4.204",
3
+ "version": "0.4.205",
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",