@slock-ai/daemon 0.49.0 → 0.50.0

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.
@@ -2977,6 +2977,13 @@ function parseToolArguments(raw) {
2977
2977
  return raw;
2978
2978
  }
2979
2979
  }
2980
+ function resolveKimiSpawn(commandArgs, deps = {}) {
2981
+ return {
2982
+ command: resolveCommandOnPath("kimi", deps) ?? "kimi",
2983
+ args: commandArgs,
2984
+ shell: false
2985
+ };
2986
+ }
2980
2987
  var KimiDriver = class {
2981
2988
  id = "kimi";
2982
2989
  lifecycle = {
@@ -3061,11 +3068,16 @@ var KimiDriver = class {
3061
3068
  args.push("--model", ctx.config.model);
3062
3069
  }
3063
3070
  const spawnEnv = prepareCliTransport(ctx, { NO_COLOR: "1" }).spawnEnv;
3064
- const proc = spawn6("kimi", args, {
3071
+ const launch = resolveKimiSpawn(args);
3072
+ const proc = spawn6(launch.command, launch.args, {
3065
3073
  cwd: ctx.workingDirectory,
3066
3074
  stdio: ["pipe", "pipe", "pipe"],
3067
3075
  env: spawnEnv,
3068
- shell: process.platform === "win32"
3076
+ // Windows cmd.exe defaults to the system code page (often CP936/GBK)
3077
+ // and has an 8191-character command-line limit. Kimi's official
3078
+ // installer/uv entrypoint is an executable, so launch it directly and
3079
+ // keep prompts on stdin / files instead of routing through cmd.exe.
3080
+ shell: launch.shell
3069
3081
  });
3070
3082
  proc.stdin?.write(JSON.stringify({
3071
3083
  jsonrpc: "2.0",
package/dist/core.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  resolveSlockCliPath,
10
10
  resolveWorkspaceDirectoryPath,
11
11
  scanWorkspaceDirectories
12
- } from "./chunk-M4A5QPUN.js";
12
+ } from "./chunk-EXJF5JKE.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-M4A5QPUN.js";
6
+ } from "./chunk-EXJF5JKE.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.49.0",
3
+ "version": "0.50.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "slock-daemon": "dist/index.js"