kantban-cli 0.1.26 → 0.1.28

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-ETDPJOYI.js");
34
+ const { stopPipeline } = await import("./pipeline-CA5Q3SPA.js");
35
35
  await stopPipeline(args.slice(1));
36
36
  } else {
37
- const { runPipeline } = await import("./pipeline-ETDPJOYI.js");
37
+ const { runPipeline } = await import("./pipeline-CA5Q3SPA.js");
38
38
  await runPipeline(client, args);
39
39
  }
40
40
  break;
@@ -3644,7 +3644,8 @@ var GeminiProvider = class _GeminiProvider {
3644
3644
  supportedModels: [
3645
3645
  { id: "gemini-2.5-flash-lite", displayName: "Flash Lite", tier: "fast" },
3646
3646
  { id: "gemini-2.5-flash", displayName: "Flash", tier: "default" },
3647
- { id: "gemini-2.5-pro", displayName: "Pro", tier: "thorough" }
3647
+ { id: "gemini-2.5-pro", displayName: "Pro 2.5", tier: "thorough" },
3648
+ { id: "gemini-3.1-pro-preview", displayName: "Pro 3.1", tier: "thorough" }
3648
3649
  ],
3649
3650
  streamFormat: "jsonl"
3650
3651
  };
@@ -3859,12 +3860,24 @@ node "${hookScript}" "${event}" "${configFile}" < "$STDIN_FILE"
3859
3860
  * which contains lines like "YOLO mode is enabled..." and "Loaded cached credentials."
3860
3861
  * that corrupt JSON parsing in downstream consumers (advisor, light-call). */
3861
3862
  static stripCliPreamble(text) {
3863
+ const lines = text.split("\n");
3864
+ const jsonStart = lines.findIndex((line) => {
3865
+ const trimmed = line.trim();
3866
+ return trimmed.startsWith("{") || trimmed.startsWith("[");
3867
+ });
3868
+ if (jsonStart >= 0) {
3869
+ return lines.slice(jsonStart).join("\n").trim();
3870
+ }
3862
3871
  const preamblePatterns = [
3863
- /^YOLO mode is enabled\. All tool calls will be automatically approved\.$/,
3864
- /^Loaded cached credentials\.$/,
3865
- /^Sandbox mode: .+$/
3872
+ /^YOLO mode is enabled\./,
3873
+ /^Loaded cached credentials\./,
3874
+ /^Sandbox mode: /,
3875
+ /^WARNING:/,
3876
+ /^These hooks will be executed\./,
3877
+ /^please review the project/,
3878
+ /^- \//
3879
+ // indented hook paths
3866
3880
  ];
3867
- const lines = text.split("\n");
3868
3881
  const filtered = lines.filter((line) => {
3869
3882
  const trimmed = line.trim();
3870
3883
  return trimmed !== "" && !preamblePatterns.some((p) => p.test(trimmed));
@@ -4826,4 +4839,4 @@ export {
4826
4839
  runPipeline,
4827
4840
  stopPipeline
4828
4841
  };
4829
- //# sourceMappingURL=pipeline-ETDPJOYI.js.map
4842
+ //# sourceMappingURL=pipeline-CA5Q3SPA.js.map