@kody-ade/kody-engine-lite 0.1.149 → 0.1.151

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/cli.js CHANGED
@@ -5231,7 +5231,7 @@ function getDevServerInfo(taskDir) {
5231
5231
  command: ds.command,
5232
5232
  url: ds.url,
5233
5233
  readyPattern: ds.readyPattern ?? "Ready in|compiled|started server|Local:",
5234
- readyTimeout: ds.readyTimeout ?? 30
5234
+ readyTimeout: ds.readyTimeout ?? 180
5235
5235
  };
5236
5236
  }
5237
5237
  function getBrowserToolGuidance(stageName, taskDir) {
@@ -5521,7 +5521,7 @@ async function waitForReady(url, timeoutSec, stdoutMatch) {
5521
5521
  return false;
5522
5522
  }
5523
5523
  async function startDevServer(opts) {
5524
- const timeout = opts.readyTimeout ?? 60;
5524
+ const timeout = opts.readyTimeout ?? 180;
5525
5525
  const patternStr = opts.readyPattern ?? DEFAULT_READY_PATTERN;
5526
5526
  const pattern = new RegExp(patternStr, "i");
5527
5527
  const useStdoutDetection = Boolean(opts.readyPattern);
@@ -5653,19 +5653,13 @@ async function executeAgentStage(ctx, def) {
5653
5653
  if (ds && devServerStages.includes(def.name) && taskHasUI(ctx.taskDir)) {
5654
5654
  logger.info(` Starting dev server: ${ds.command}`);
5655
5655
  const envVars = {};
5656
- if (ds.env && ds.env.length > 0) {
5657
- for (const varName of ds.env) {
5658
- if (process.env[varName]) envVars[varName] = process.env[varName];
5659
- }
5660
- } else {
5661
- for (const [k, v] of Object.entries(process.env)) {
5662
- if (v !== void 0) envVars[k] = v;
5663
- }
5656
+ for (const [k, v] of Object.entries(process.env)) {
5657
+ if (v !== void 0) envVars[k] = v;
5664
5658
  }
5665
5659
  devServerHandle = await startDevServer({
5666
5660
  command: ds.command,
5667
5661
  url: ds.url,
5668
- readyTimeout: ds.readyTimeout ?? 60,
5662
+ readyTimeout: ds.readyTimeout ?? 180,
5669
5663
  readyPattern: ds.readyPattern ?? "Ready in|compiled|started server|Local:|localhost:",
5670
5664
  envVars
5671
5665
  });
@@ -262,12 +262,7 @@
262
262
  },
263
263
  "readyTimeout": {
264
264
  "type": "number",
265
- "description": "Seconds to wait for the server to be ready. Default: 30"
266
- },
267
- "env": {
268
- "type": "array",
269
- "items": { "type": "string" },
270
- "description": "List of GitHub secret names to forward as environment variables for the dev server process (e.g., ['BLOB_READ_WRITE_TOKEN', 'DATABASE_URL']). These are injected into the workflow env block during 'kody init'."
265
+ "description": "Seconds to wait for the server to be ready. Default: 180"
271
266
  }
272
267
  },
273
268
  "required": ["command", "url"]
@@ -294,12 +289,7 @@
294
289
  },
295
290
  "readyTimeout": {
296
291
  "type": "number",
297
- "description": "Seconds to wait for the server to be ready. Default: 30"
298
- },
299
- "env": {
300
- "type": "array",
301
- "items": { "type": "string" },
302
- "description": "List of GitHub secret names to forward as environment variables for the dev server process (e.g., ['BLOB_READ_WRITE_TOKEN', 'DATABASE_URL']). These are injected into the workflow env block during 'kody init'."
292
+ "description": "Seconds to wait for the server to be ready. Default: 180"
303
293
  }
304
294
  },
305
295
  "required": ["command", "url"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine-lite",
3
- "version": "0.1.149",
3
+ "version": "0.1.151",
4
4
  "description": "Autonomous SDLC pipeline: Kody orchestration + Claude Code + LiteLLM",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,11 +35,23 @@ jobs:
35
35
  - name: Install Kody Engine
36
36
  run: npm install -g @kody-ade/kody-engine-lite
37
37
 
38
+ - name: Export project secrets
39
+ env:
40
+ ALL_SECRETS: ${{ toJSON(secrets) }}
41
+ run: |
42
+ echo "$ALL_SECRETS" | jq -r 'to_entries[] | select(.key | test("^(GITHUB_TOKEN)$") | not) | @json' | while IFS= read -r entry; do
43
+ KEY=$(echo "$entry" | jq -r '.key')
44
+ VALUE=$(echo "$entry" | jq -r '.value')
45
+ DELIM="KODY_EOF_${KEY}"
46
+ echo "${KEY}<<${DELIM}" >> $GITHUB_ENV
47
+ echo "${VALUE}" >> $GITHUB_ENV
48
+ echo "${DELIM}" >> $GITHUB_ENV
49
+ done
50
+
38
51
  - name: Run Kody Watch
39
52
  env:
40
53
  GH_TOKEN: ${{ github.token }}
41
54
  REPO: ${{ github.repository }}
42
55
  WATCH_DIGEST_ISSUE: ${{ vars.WATCH_DIGEST_ISSUE }}
43
- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
44
56
  DRY_RUN: ${{ inputs.dry_run || 'false' }}
45
57
  run: npx kody-engine-lite watch ${{ inputs.dry_run == 'true' && '--dry-run' || '' }}
@@ -181,6 +181,11 @@ jobs:
181
181
  echo "${DELIM}" >> $GITHUB_ENV
182
182
  done
183
183
 
184
+ - name: Warm up Next.js build cache
185
+ continue-on-error: true
186
+ run: npx next build 2>/dev/null || true
187
+ timeout-minutes: 15
188
+
184
189
  - name: Run Kody pipeline
185
190
  env:
186
191
  GH_TOKEN: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}