@kody-ade/kody-engine-lite 0.1.145 → 0.1.146

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
@@ -1196,8 +1196,9 @@ async function tryStartLitellm(url, projectDir, generatedConfig) {
1196
1196
  env: {
1197
1197
  ...process.env,
1198
1198
  ...dotenvVars,
1199
- // Disable LiteLLM's Prisma DB for virtual keys/spend tracking not needed for proxy-only mode
1200
- STORE_MODEL_IN_DB: "false"
1199
+ // Remove DATABASE_URL so LiteLLM doesn't try to set up Prisma DB
1200
+ // (DATABASE_URL may be set for the project's dev server, not for LiteLLM)
1201
+ DATABASE_URL: ""
1201
1202
  }
1202
1203
  });
1203
1204
  let proxyStderr = "";
@@ -8109,6 +8110,22 @@ var init_entry = __esm({
8109
8110
  init_taskify_command();
8110
8111
  init_config();
8111
8112
  init_tools();
8113
+ process.on("SIGTERM", () => {
8114
+ const issueStr = process.argv.find((_, i, a) => a[i - 1] === "--issue-number") ?? process.env.ISSUE_NUMBER;
8115
+ const isLocal = process.argv.includes("--local") || !process.env.GITHUB_ACTIONS;
8116
+ if (issueStr && !isLocal) {
8117
+ const issueNumber = parseInt(issueStr, 10);
8118
+ try {
8119
+ postComment(issueNumber, "\u274C Pipeline killed (job timeout or cancellation)");
8120
+ } catch {
8121
+ }
8122
+ try {
8123
+ setLifecycleLabel(issueNumber, "failed");
8124
+ } catch {
8125
+ }
8126
+ }
8127
+ process.exit(143);
8128
+ });
8112
8129
  main().catch(async (err) => {
8113
8130
  const msg = err instanceof Error ? err.message : String(err);
8114
8131
  console.error(msg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine-lite",
3
- "version": "0.1.145",
3
+ "version": "0.1.146",
4
4
  "description": "Autonomous SDLC pipeline: Kody orchestration + Claude Code + LiteLLM",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -161,7 +161,7 @@ jobs:
161
161
  run: npm install -g @anthropic-ai/claude-code
162
162
 
163
163
  - name: Install LiteLLM proxy
164
- run: pip install 'litellm[proxy]' prisma
164
+ run: pip install 'litellm[proxy]' prisma && python -m prisma py fetch
165
165
 
166
166
  - name: Configure git
167
167
  run: |