@slock-ai/daemon 0.52.0 → 0.52.1

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.
@@ -4024,11 +4024,14 @@ function detectOpenCodeModels(home = os5.homedir(), runCommand = runOpenCodeMode
4024
4024
  if (commandResult.error || commandResult.status !== 0) return null;
4025
4025
  return parseOpenCodeModelsOutput(commandResult.stdout);
4026
4026
  }
4027
- function runOpenCodeModelsCommand(home) {
4028
- const result = spawnSync2("opencode", ["models"], {
4027
+ function runOpenCodeModelsCommand(home, deps = {}) {
4028
+ const platform = deps.platform ?? process.platform;
4029
+ const spawnSyncFn = deps.spawnSyncFn ?? spawnSync2;
4030
+ const result = spawnSyncFn("opencode", ["models"], {
4029
4031
  env: { ...process.env, HOME: home, FORCE_COLOR: "0", NO_COLOR: "1" },
4030
4032
  encoding: "utf8",
4031
- timeout: 5e3
4033
+ timeout: 5e3,
4034
+ shell: platform === "win32"
4032
4035
  });
4033
4036
  return {
4034
4037
  status: result.status,
package/dist/core.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  resolveSlockCliPath,
10
10
  resolveWorkspaceDirectoryPath,
11
11
  scanWorkspaceDirectories
12
- } from "./chunk-XEHIMW55.js";
12
+ } from "./chunk-WGO5H7XX.js";
13
13
  import {
14
14
  subscribeDaemonLogs
15
15
  } from "./chunk-KNMCE6WB.js";
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  DAEMON_CLI_USAGE,
4
4
  DaemonCore,
5
5
  parseDaemonCliArgs
6
- } from "./chunk-XEHIMW55.js";
6
+ } from "./chunk-WGO5H7XX.js";
7
7
  import "./chunk-KNMCE6WB.js";
8
8
 
9
9
  // src/index.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slock-ai/daemon",
3
- "version": "0.52.0",
3
+ "version": "0.52.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"