@threadbase-sh/streamer 1.47.1 → 1.47.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.
package/dist/cli.cjs CHANGED
@@ -142973,6 +142973,7 @@ init_providers();
142973
142973
 
142974
142974
  // src/services/providers/providerHealth.ts
142975
142975
  var import_child_process2 = require("child_process");
142976
+ init_platform();
142976
142977
  init_providers();
142977
142978
 
142978
142979
  // src/services/providers/capabilities.ts
@@ -143013,11 +143014,18 @@ function parseVersionOutput(output) {
143013
143014
  return match2 ? match2[0] : null;
143014
143015
  }
143015
143016
  function runVersion(exe) {
143017
+ const viaShell = isWindows2 && /\.(?:cmd|bat)$/i.test(exe);
143018
+ const file2 = viaShell ? `"${exe}"` : exe;
143016
143019
  return new Promise((resolve4) => {
143017
- (0, import_child_process2.execFile)(exe, ["--version"], { timeout: VERSION_TIMEOUT_MS }, (err, stdout2, stderr) => {
143018
- if (err && !stdout2 && !stderr) return resolve4(null);
143019
- resolve4(parseVersionOutput(`${stdout2}${stderr}`));
143020
- });
143020
+ (0, import_child_process2.execFile)(
143021
+ file2,
143022
+ ["--version"],
143023
+ { timeout: VERSION_TIMEOUT_MS, shell: viaShell, windowsHide: true },
143024
+ (err, stdout2, stderr) => {
143025
+ if (err && !stdout2 && !stderr) return resolve4(null);
143026
+ resolve4(parseVersionOutput(`${stdout2}${stderr}`));
143027
+ }
143028
+ );
143021
143029
  });
143022
143030
  }
143023
143031
  function compareToVerified(version2, verified) {
@@ -143080,7 +143088,12 @@ async function providerHealth(name, resolveExe, detect = runVersion) {
143080
143088
  ]
143081
143089
  };
143082
143090
  }
143083
- const version2 = await detect(exe);
143091
+ let version2 = null;
143092
+ try {
143093
+ version2 = await detect(exe);
143094
+ } catch {
143095
+ version2 = null;
143096
+ }
143084
143097
  const warning = compareToVerified(version2, verifiedAgainst);
143085
143098
  return {
143086
143099
  name,