kantban-cli 0.1.33 → 0.1.34
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
|
@@ -31,10 +31,10 @@ async function main() {
|
|
|
31
31
|
}
|
|
32
32
|
case "pipeline": {
|
|
33
33
|
if (args[0] === "stop") {
|
|
34
|
-
const { stopPipeline } = await import("./pipeline-
|
|
34
|
+
const { stopPipeline } = await import("./pipeline-L4HFDBM4.js");
|
|
35
35
|
await stopPipeline(args.slice(1));
|
|
36
36
|
} else {
|
|
37
|
-
const { runPipeline } = await import("./pipeline-
|
|
37
|
+
const { runPipeline } = await import("./pipeline-L4HFDBM4.js");
|
|
38
38
|
await runPipeline(client, args);
|
|
39
39
|
}
|
|
40
40
|
break;
|
|
@@ -3597,6 +3597,7 @@ var GeminiJsonlParser = class {
|
|
|
3597
3597
|
|
|
3598
3598
|
// src/providers/gemini-provider.ts
|
|
3599
3599
|
var GEMINI_TIMEOUT_MS = 60 * 60 * 1e3;
|
|
3600
|
+
var GEMINI_STARTUP_TIMEOUT_MS = 120 * 1e3;
|
|
3600
3601
|
var TOOL_NAME_MAP = {
|
|
3601
3602
|
Write: "write_file",
|
|
3602
3603
|
Edit: "replace",
|
|
@@ -3648,8 +3649,7 @@ var GeminiProvider = class _GeminiProvider {
|
|
|
3648
3649
|
supportedModels: [
|
|
3649
3650
|
{ id: "gemini-2.5-flash-lite", displayName: "Flash Lite", tier: "fast" },
|
|
3650
3651
|
{ id: "gemini-2.5-flash", displayName: "Flash", tier: "default" },
|
|
3651
|
-
{ id: "gemini-2.5-pro", displayName: "Pro 2.5", tier: "thorough" }
|
|
3652
|
-
{ id: "gemini-3.1-pro-preview", displayName: "Pro 3.1", tier: "thorough" }
|
|
3652
|
+
{ id: "gemini-2.5-pro", displayName: "Pro 2.5", tier: "thorough" }
|
|
3653
3653
|
],
|
|
3654
3654
|
streamFormat: "jsonl"
|
|
3655
3655
|
};
|
|
@@ -3714,11 +3714,25 @@ var GeminiProvider = class _GeminiProvider {
|
|
|
3714
3714
|
parser.onError = (err) => process.stderr.write(`[gemini-jsonl] ${err.message}
|
|
3715
3715
|
`);
|
|
3716
3716
|
let stderr = "";
|
|
3717
|
-
|
|
3717
|
+
let gotStdout = false;
|
|
3718
|
+
child.stdout?.on("data", (chunk) => {
|
|
3719
|
+
gotStdout = true;
|
|
3720
|
+
parser.feed(chunk.toString());
|
|
3721
|
+
});
|
|
3718
3722
|
child.stderr?.on("data", (chunk) => {
|
|
3719
3723
|
stderr += chunk.toString();
|
|
3720
3724
|
});
|
|
3721
3725
|
child.stdin?.end();
|
|
3726
|
+
const startupTimer = setTimeout(() => {
|
|
3727
|
+
if (!gotStdout) {
|
|
3728
|
+
process.stderr.write(`[gemini] No output after ${GEMINI_STARTUP_TIMEOUT_MS / 1e3}s \u2014 model may be unavailable, killing process
|
|
3729
|
+
`);
|
|
3730
|
+
try {
|
|
3731
|
+
child.kill("SIGTERM");
|
|
3732
|
+
} catch {
|
|
3733
|
+
}
|
|
3734
|
+
}
|
|
3735
|
+
}, GEMINI_STARTUP_TIMEOUT_MS);
|
|
3722
3736
|
if (request.abortSignal) {
|
|
3723
3737
|
request.abortSignal.addEventListener("abort", () => {
|
|
3724
3738
|
try {
|
|
@@ -3744,6 +3758,7 @@ var GeminiProvider = class _GeminiProvider {
|
|
|
3744
3758
|
const finish = (code, errorMsg) => {
|
|
3745
3759
|
if (resolved) return;
|
|
3746
3760
|
resolved = true;
|
|
3761
|
+
clearTimeout(startupTimer);
|
|
3747
3762
|
clearTimeout(timeoutHandle);
|
|
3748
3763
|
if (killTimer) clearTimeout(killTimer);
|
|
3749
3764
|
parser.flush();
|
|
@@ -4853,4 +4868,4 @@ export {
|
|
|
4853
4868
|
runPipeline,
|
|
4854
4869
|
stopPipeline
|
|
4855
4870
|
};
|
|
4856
|
-
//# sourceMappingURL=pipeline-
|
|
4871
|
+
//# sourceMappingURL=pipeline-L4HFDBM4.js.map
|