@kody-ade/kody-engine-lite 0.1.144 → 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 +23 -1
- package/package.json +1 -1
- package/templates/kody.yml +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -1193,7 +1193,13 @@ 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: {
|
|
1196
|
+
env: {
|
|
1197
|
+
...process.env,
|
|
1198
|
+
...dotenvVars,
|
|
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: ""
|
|
1202
|
+
}
|
|
1197
1203
|
});
|
|
1198
1204
|
let proxyStderr = "";
|
|
1199
1205
|
child.stderr?.on("data", (chunk) => {
|
|
@@ -8104,6 +8110,22 @@ var init_entry = __esm({
|
|
|
8104
8110
|
init_taskify_command();
|
|
8105
8111
|
init_config();
|
|
8106
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
|
+
});
|
|
8107
8129
|
main().catch(async (err) => {
|
|
8108
8130
|
const msg = err instanceof Error ? err.message : String(err);
|
|
8109
8131
|
console.error(msg);
|
package/package.json
CHANGED
package/templates/kody.yml
CHANGED