@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
|
|
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
|
-
|
|
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
package/dist/index.js
CHANGED