kantban-cli 0.1.14 → 0.1.15
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/index.js
CHANGED
|
@@ -163,10 +163,10 @@ async function main() {
|
|
|
163
163
|
}
|
|
164
164
|
case "pipeline": {
|
|
165
165
|
if (args[0] === "stop") {
|
|
166
|
-
const { stopPipeline } = await import("./pipeline-
|
|
166
|
+
const { stopPipeline } = await import("./pipeline-UNO4PIW4.js");
|
|
167
167
|
await stopPipeline(args.slice(1));
|
|
168
168
|
} else {
|
|
169
|
-
const { runPipeline } = await import("./pipeline-
|
|
169
|
+
const { runPipeline } = await import("./pipeline-UNO4PIW4.js");
|
|
170
170
|
await runPipeline(client, args);
|
|
171
171
|
}
|
|
172
172
|
break;
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-KGS3M2MY.js";
|
|
17
17
|
|
|
18
18
|
// src/commands/pipeline.ts
|
|
19
|
-
import { spawn as spawn2
|
|
19
|
+
import { spawn as spawn2 } from "child_process";
|
|
20
20
|
import { mkdirSync as mkdirSync2, writeFileSync as writeFileSync3, readFileSync as readFileSync2, unlinkSync as unlinkSync2, existsSync, appendFileSync as appendFileSync2 } from "fs";
|
|
21
21
|
import { homedir } from "os";
|
|
22
22
|
import { join as join2 } from "path";
|
|
@@ -3246,26 +3246,6 @@ function cleanupOrphanedProcesses(boardId) {
|
|
|
3246
3246
|
}
|
|
3247
3247
|
} catch {
|
|
3248
3248
|
}
|
|
3249
|
-
try {
|
|
3250
|
-
const boardDir = pidDir(boardId).replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3251
|
-
const out = execSync(
|
|
3252
|
-
`ps aux | grep 'claude.*-p' | grep '${boardDir}' | grep -v grep | awk '{print $2}'`,
|
|
3253
|
-
{ encoding: "utf-8", timeout: 5e3 }
|
|
3254
|
-
).trim();
|
|
3255
|
-
if (out) {
|
|
3256
|
-
const pids = out.split("\n").filter(Boolean);
|
|
3257
|
-
for (const pid of pids) {
|
|
3258
|
-
try {
|
|
3259
|
-
process.kill(parseInt(pid, 10), "SIGTERM");
|
|
3260
|
-
} catch {
|
|
3261
|
-
}
|
|
3262
|
-
}
|
|
3263
|
-
if (pids.length > 0) {
|
|
3264
|
-
console.log(`Killed ${String(pids.length)} orphaned claude agent(s)`);
|
|
3265
|
-
}
|
|
3266
|
-
}
|
|
3267
|
-
} catch {
|
|
3268
|
-
}
|
|
3269
3249
|
}
|
|
3270
3250
|
var activeChildProcesses = /* @__PURE__ */ new Set();
|
|
3271
3251
|
var currentBoardId = "";
|
|
@@ -4142,4 +4122,4 @@ export {
|
|
|
4142
4122
|
runPipeline,
|
|
4143
4123
|
stopPipeline
|
|
4144
4124
|
};
|
|
4145
|
-
//# sourceMappingURL=pipeline-
|
|
4125
|
+
//# sourceMappingURL=pipeline-UNO4PIW4.js.map
|