mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-09-19 01:51:21 +08:00
fix: use kilo binary instead of opencode in SDK server and TUI spawn
This commit is contained in:
@@ -64,7 +64,9 @@ export async function createOpencodeServer(options?: ServerOptions) {
|
||||
const args = [`serve`, `--hostname=${options.hostname}`, `--port=${options.port}`]
|
||||
if (options.config?.logLevel) args.push(`--log-level=${options.config.logLevel}`)
|
||||
|
||||
const proc = spawn(`opencode`, args, {
|
||||
// kilocode_change start
|
||||
const proc = spawn(`kilo`, args, {
|
||||
// kilocode_change end
|
||||
signal: options.signal,
|
||||
env: {
|
||||
...process.env,
|
||||
@@ -141,7 +143,9 @@ export function createOpencodeTui(options?: TuiOptions) {
|
||||
args.push(`--agent=${options.agent}`)
|
||||
}
|
||||
|
||||
const proc = spawn(`opencode`, args, {
|
||||
// kilocode_change start
|
||||
const proc = spawn(`kilo`, args, {
|
||||
// kilocode_change end
|
||||
signal: options?.signal,
|
||||
stdio: "inherit",
|
||||
env: {
|
||||
|
||||
Reference in New Issue
Block a user