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

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
@@ -1193,12 +1193,11 @@ async function tryStartLitellm(url, projectDir, generatedConfig) {
1193
1193
  const child = spawn3(cmd, args2, {
1194
1194
  stdio: ["ignore", "pipe", "pipe"],
1195
1195
  detached: true,
1196
- env: {
1197
- ...process.env,
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"
1201
- }
1196
+ env: (() => {
1197
+ const env = { ...process.env, ...dotenvVars };
1198
+ delete env.DATABASE_URL;
1199
+ return env;
1200
+ })()
1202
1201
  });
1203
1202
  let proxyStderr = "";
1204
1203
  child.stderr?.on("data", (chunk) => {
@@ -8109,6 +8108,22 @@ var init_entry = __esm({
8109
8108
  init_taskify_command();
8110
8109
  init_config();
8111
8110
  init_tools();
8111
+ process.on("SIGTERM", () => {
8112
+ const issueStr = process.argv.find((_, i, a) => a[i - 1] === "--issue-number") ?? process.env.ISSUE_NUMBER;
8113
+ const isLocal = process.argv.includes("--local") || !process.env.GITHUB_ACTIONS;
8114
+ if (issueStr && !isLocal) {
8115
+ const issueNumber = parseInt(issueStr, 10);
8116
+ try {
8117
+ postComment(issueNumber, "\u274C Pipeline killed (job timeout or cancellation)");
8118
+ } catch {
8119
+ }
8120
+ try {
8121
+ setLifecycleLabel(issueNumber, "failed");
8122
+ } catch {
8123
+ }
8124
+ }
8125
+ process.exit(143);
8126
+ });
8112
8127
  main().catch(async (err) => {
8113
8128
  const msg = err instanceof Error ? err.message : String(err);
8114
8129
  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.147",
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: |