llm-party-cli 0.2.1 → 0.2.2

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -76490,8 +76490,10 @@ function detectBinary(command) {
76490
76490
  const proc = spawn4(command, ["--version"], {
76491
76491
  stdio: ["ignore", "pipe", "ignore"],
76492
76492
  shell: true,
76493
- timeout: DETECT_TIMEOUT
76493
+ timeout: DETECT_TIMEOUT,
76494
+ detached: true
76494
76495
  });
76496
+ proc.unref();
76495
76497
  let output = "";
76496
76498
  proc.stdout?.on("data", (chunk) => {
76497
76499
  output += chunk.toString();
@@ -76516,8 +76518,10 @@ function detectAlias(command) {
76516
76518
  const timer = setTimeout(() => resolve4({ available: false }), DETECT_TIMEOUT);
76517
76519
  const proc = spawn4(shell, ["-ic", `type ${command}`], {
76518
76520
  stdio: ["ignore", "pipe", "ignore"],
76519
- timeout: DETECT_TIMEOUT
76521
+ timeout: DETECT_TIMEOUT,
76522
+ detached: true
76520
76523
  });
76524
+ proc.unref();
76521
76525
  proc.on("close", (code) => {
76522
76526
  clearTimeout(timer);
76523
76527
  resolve4({ available: code === 0 });
@@ -76798,6 +76802,9 @@ function ConfigWizard({ isFirstRun, onComplete, onCancel, existingConfig }) {
76798
76802
  detectProviders().then((results) => {
76799
76803
  setDetection(results);
76800
76804
  setStep("providers");
76805
+ }).catch(() => {
76806
+ setDetection([]);
76807
+ setStep("providers");
76801
76808
  });
76802
76809
  }, []);
76803
76810
  const existingByProvider = new Map((existingConfig?.agents || []).map((a2) => [a2.provider, a2]));
@@ -76902,6 +76909,9 @@ function ConfigWizard({ isFirstRun, onComplete, onCancel, existingConfig }) {
76902
76909
  }, [selectedIds, existingConfig]);
76903
76910
  useKeyboard((key) => {
76904
76911
  if (step !== "configure") {
76912
+ if (step === "detect") {
76913
+ return;
76914
+ }
76905
76915
  if (step === "done") {
76906
76916
  if (key.name === "enter" || key.name === "return" || key.name === "space") {
76907
76917
  onComplete();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "llm-party-cli",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "llm-party": "dist/index.js"