From 29deeb998513b2ecb5668fe1517241e143f80cb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Catriel=20M=C3=BCller?= Date: Thu, 29 Jan 2026 11:13:58 +0100 Subject: [PATCH] Fix Nix Build (#57) * fix: fix nix build * refactor: fix cargo script * fix: rust version * refactor: fix desktop app build --- .github/workflows/publish.yml | 2 +- flake.nix | 49 +++++++++----- nix/desktop.nix | 22 +++---- nix/{opencode.nix => kilo.nix} | 20 +++--- nix/node_modules.nix | 2 +- packages/app/vite.js | 2 +- .../app/src/routes/download/[platform].ts | 18 ++--- packages/desktop/scripts/predev.ts | 2 +- packages/desktop/scripts/prepare.ts | 6 +- packages/desktop/scripts/utils.ts | 12 ++-- packages/desktop/src-tauri/Cargo.lock | 66 +++++++++---------- packages/desktop/src-tauri/Cargo.toml | 6 +- .../src-tauri/release/appstream.metainfo.xml | 12 ++-- packages/desktop/src-tauri/src/cli.rs | 10 +-- packages/desktop/src-tauri/src/lib.rs | 4 +- packages/desktop/src-tauri/src/main.rs | 2 +- packages/desktop/src-tauri/tauri.conf.json | 10 +-- .../desktop/src-tauri/tauri.prod.conf.json | 8 +-- packages/desktop/src/cli.ts | 4 +- packages/opencode/package.json | 4 +- 20 files changed, 139 insertions(+), 122 deletions(-) rename nix/{opencode.nix => kilo.nix} (78%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 28fb9e96a4..6fb43ac4cc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -193,7 +193,7 @@ jobs: updaterJsonPreferNsis: true releaseId: ${{ needs.publish.outputs.release }} tagName: ${{ needs.publish.outputs.tag }} - releaseAssetNamePattern: opencode-desktop-[platform]-[arch][ext] + releaseAssetNamePattern: kilo-desktop-[platform]-[arch][ext] releaseDraft: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/flake.nix b/flake.nix index e4d214a0b9..fdcc499a07 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { - description = "OpenCode development flake"; + description = "Kilo development flake"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; @@ -36,34 +36,49 @@ node_modules = pkgs.callPackage ./nix/node_modules.nix { inherit rev; }; - opencode = pkgs.callPackage ./nix/opencode.nix { + kilo = pkgs.callPackage ./nix/kilo.nix { inherit node_modules; }; desktop = pkgs.callPackage ./nix/desktop.nix { - inherit opencode; + inherit kilo; }; # nixpkgs cpu naming to bun cpu naming - cpuMap = { x86_64 = "x64"; aarch64 = "arm64"; }; + cpuMap = { + x86_64 = "x64"; + aarch64 = "arm64"; + }; # matrix of node_modules builds - these will always fail due to fakeHash usage # but allow computation of the correct hash from any build machine for any cpu/os # see the update-nix-hashes workflow for usage moduleUpdaters = pkgs.lib.listToAttrs ( - pkgs.lib.concatMap (cpu: - map (os: { - name = "${cpu}-${os}_node_modules"; - value = node_modules.override { - bunCpu = cpuMap.${cpu}; - bunOs = os; - hash = pkgs.lib.fakeHash; - }; - }) [ "linux" "darwin" ] - ) [ "x86_64" "aarch64" ] + pkgs.lib.concatMap + ( + cpu: + map + (os: { + name = "${cpu}-${os}_node_modules"; + value = node_modules.override { + bunCpu = cpuMap.${cpu}; + bunOs = os; + hash = pkgs.lib.fakeHash; + }; + }) + [ + "linux" + "darwin" + ] + ) + [ + "x86_64" + "aarch64" + ] ); in { - default = opencode; - inherit opencode desktop; - } // moduleUpdaters + default = kilo; + inherit kilo desktop; + } + // moduleUpdaters ); }; } diff --git a/nix/desktop.nix b/nix/desktop.nix index 9625f75c27..3b62632eb7 100644 --- a/nix/desktop.nix +++ b/nix/desktop.nix @@ -21,11 +21,11 @@ openssl, webkitgtk_4_1, gst_all_1, - opencode, + kilo, }: rustPlatform.buildRustPackage (finalAttrs: { - pname = "opencode-desktop"; - inherit (opencode) + pname = "kilo-desktop"; + inherit (kilo) version src node_modules @@ -72,7 +72,7 @@ rustPlatform.buildRustPackage (finalAttrs: { patchShebangs packages/desktop/node_modules mkdir -p packages/desktop/src-tauri/sidecars - cp ${opencode}/bin/opencode packages/desktop/src-tauri/sidecars/opencode-cli-${stdenv.hostPlatform.rust.rustcTarget} + cp ${kilo}/bin/kilo packages/desktop/src-tauri/sidecars/kilo-cli-${stdenv.hostPlatform.rust.rustcTarget} ''; # see publish-tauri job in .github/workflows/publish.yml @@ -86,15 +86,15 @@ rustPlatform.buildRustPackage (finalAttrs: { # should be removed once binary is renamed or decided otherwise # darwin output is a .app bundle so no conflict postFixup = lib.optionalString stdenv.hostPlatform.isLinux '' - mv $out/bin/OpenCode $out/bin/opencode-desktop - sed -i 's|^Exec=OpenCode$|Exec=opencode-desktop|' $out/share/applications/OpenCode.desktop + mv $out/bin/Kilo $out/bin/kilo-desktop + sed -i 's|^Exec=Kilo$|Exec=kilo-desktop|' $out/share/applications/Kilo.desktop ''; meta = { - description = "OpenCode Desktop App"; - homepage = "https://opencode.ai"; + description = "Kilo Desktop App"; + homepage = "https://kilo.ai"; license = lib.licenses.mit; - mainProgram = "opencode-desktop"; - inherit (opencode.meta) platforms; + mainProgram = "kilo-desktop"; + inherit (kilo.meta) platforms; }; -}) \ No newline at end of file +}) diff --git a/nix/opencode.nix b/nix/kilo.nix similarity index 78% rename from nix/opencode.nix rename to nix/kilo.nix index 23d9fbe34e..417f41dbf0 100644 --- a/nix/opencode.nix +++ b/nix/kilo.nix @@ -13,7 +13,7 @@ node_modules ? callPackage ./node-modules.nix { }, }: stdenvNoCC.mkDerivation (finalAttrs: { - pname = "opencode"; + pname = "kilo"; inherit (node_modules) version src; inherit node_modules; @@ -50,10 +50,10 @@ stdenvNoCC.mkDerivation (finalAttrs: { installPhase = '' runHook preInstall - install -Dm755 dist/opencode-*/bin/opencode $out/bin/opencode - install -Dm644 schema.json $out/share/opencode/schema.json + install -Dm755 dist/@kilocode/cli-*/bin/kilo $out/bin/kilo + install -Dm644 schema.json $out/share/kilo/schema.json - wrapProgram $out/bin/opencode \ + wrapProgram $out/bin/kilo \ --prefix PATH : ${ lib.makeBinPath ( [ @@ -69,9 +69,9 @@ stdenvNoCC.mkDerivation (finalAttrs: { postInstall = lib.optionalString (stdenvNoCC.buildPlatform.canExecute stdenvNoCC.hostPlatform) '' # trick yargs into also generating zsh completions - installShellCompletion --cmd opencode \ - --bash <($out/bin/opencode completion) \ - --zsh <(SHELL=/bin/zsh $out/bin/opencode completion) + installShellCompletion --cmd kilo \ + --bash <($out/bin/kilo completion) \ + --zsh <(SHELL=/bin/zsh $out/bin/kilo completion) ''; nativeInstallCheckInputs = [ @@ -83,14 +83,14 @@ stdenvNoCC.mkDerivation (finalAttrs: { versionCheckProgramArg = "--version"; passthru = { - jsonschema = "${placeholder "out"}/share/opencode/schema.json"; + jsonschema = "${placeholder "out"}/share/kilo/schema.json"; }; meta = { description = "The open source coding agent"; - homepage = "https://opencode.ai/"; + homepage = "https://kilo.ai/"; license = lib.licenses.mit; - mainProgram = "opencode"; + mainProgram = "kilo"; inherit (node_modules.meta) platforms; }; }) diff --git a/nix/node_modules.nix b/nix/node_modules.nix index 981a60ef9b..b9b8a886b6 100644 --- a/nix/node_modules.nix +++ b/nix/node_modules.nix @@ -18,7 +18,7 @@ let ]; in stdenvNoCC.mkDerivation { - pname = "opencode-node_modules"; + pname = "kilo-node_modules"; version = "${packageJson.version}-${rev}"; src = lib.fileset.toSource { diff --git a/packages/app/vite.js b/packages/app/vite.js index 6b8fd61376..671bc53cbe 100644 --- a/packages/app/vite.js +++ b/packages/app/vite.js @@ -7,7 +7,7 @@ import { fileURLToPath } from "url" */ export default [ { - name: "opencode-desktop:config", + name: "kilo-desktop:config", config() { return { resolve: { diff --git a/packages/console/app/src/routes/download/[platform].ts b/packages/console/app/src/routes/download/[platform].ts index a89ea44345..2fe067df20 100644 --- a/packages/console/app/src/routes/download/[platform].ts +++ b/packages/console/app/src/routes/download/[platform].ts @@ -2,19 +2,19 @@ import { APIEvent } from "@solidjs/start" import { DownloadPlatform } from "./types" const assetNames: Record = { - "darwin-aarch64-dmg": "opencode-desktop-darwin-aarch64.dmg", - "darwin-x64-dmg": "opencode-desktop-darwin-x64.dmg", - "windows-x64-nsis": "opencode-desktop-windows-x64.exe", - "linux-x64-deb": "opencode-desktop-linux-amd64.deb", - "linux-x64-appimage": "opencode-desktop-linux-amd64.AppImage", - "linux-x64-rpm": "opencode-desktop-linux-x86_64.rpm", + "darwin-aarch64-dmg": "kilo-desktop-darwin-aarch64.dmg", + "darwin-x64-dmg": "kilo-desktop-darwin-x64.dmg", + "windows-x64-nsis": "kilo-desktop-windows-x64.exe", + "linux-x64-deb": "kilo-desktop-linux-amd64.deb", + "linux-x64-appimage": "kilo-desktop-linux-amd64.AppImage", + "linux-x64-rpm": "kilo-desktop-linux-x86_64.rpm", } satisfies Record // Doing this on the server lets us preserve the original name for platforms we don't care to rename for const downloadNames: Record = { - "darwin-aarch64-dmg": "OpenCode Desktop.dmg", - "darwin-x64-dmg": "OpenCode Desktop.dmg", - "windows-x64-nsis": "OpenCode Desktop Installer.exe", + "darwin-aarch64-dmg": "Kilo Desktop.dmg", + "darwin-x64-dmg": "Kilo Desktop.dmg", + "windows-x64-nsis": "Kilo Desktop Installer.exe", } satisfies { [K in DownloadPlatform]?: string } export async function GET({ params: { platform } }: APIEvent) { diff --git a/packages/desktop/scripts/predev.ts b/packages/desktop/scripts/predev.ts index 3e14250b1a..7519cef27f 100644 --- a/packages/desktop/scripts/predev.ts +++ b/packages/desktop/scripts/predev.ts @@ -6,7 +6,7 @@ const RUST_TARGET = Bun.env.TAURI_ENV_TARGET_TRIPLE const sidecarConfig = getCurrentSidecar(RUST_TARGET) -const binaryPath = windowsify(`../opencode/dist/${sidecarConfig.ocBinary}/bin/opencode`) +const binaryPath = windowsify(`../opencode/dist/${sidecarConfig.ocBinary}/bin/kilo`) // kilocode_change await $`cd ../opencode && bun run build --single` diff --git a/packages/desktop/scripts/prepare.ts b/packages/desktop/scripts/prepare.ts index 24ff9e7e09..e46fe96a0a 100755 --- a/packages/desktop/scripts/prepare.ts +++ b/packages/desktop/scripts/prepare.ts @@ -5,9 +5,9 @@ import { copyBinaryToSidecarFolder, getCurrentSidecar, windowsify } from "./util const sidecarConfig = getCurrentSidecar() -const dir = "src-tauri/target/opencode-binaries" +const dir = "src-tauri/target/kilo-binaries" await $`mkdir -p ${dir}` -await $`gh run download ${Bun.env.GITHUB_RUN_ID} -n opencode-cli`.cwd(dir) +await $`gh run download ${Bun.env.GITHUB_RUN_ID} -n kilo-cli`.cwd(dir) -await copyBinaryToSidecarFolder(windowsify(`${dir}/${sidecarConfig.ocBinary}/bin/opencode`)) +await copyBinaryToSidecarFolder(windowsify(`${dir}/${sidecarConfig.ocBinary}/bin/kilo`)) diff --git a/packages/desktop/scripts/utils.ts b/packages/desktop/scripts/utils.ts index c3019f0b97..b2b10226a0 100644 --- a/packages/desktop/scripts/utils.ts +++ b/packages/desktop/scripts/utils.ts @@ -3,27 +3,27 @@ import { $ } from "bun" export const SIDECAR_BINARIES: Array<{ rustTarget: string; ocBinary: string; assetExt: string }> = [ { rustTarget: "aarch64-apple-darwin", - ocBinary: "opencode-darwin-arm64", + ocBinary: "@kilocode/cli-darwin-arm64", // kilocode_change assetExt: "zip", }, { rustTarget: "x86_64-apple-darwin", - ocBinary: "opencode-darwin-x64", + ocBinary: "@kilocode/cli-darwin-x64", // kilocode_change assetExt: "zip", }, { rustTarget: "x86_64-pc-windows-msvc", - ocBinary: "opencode-windows-x64", + ocBinary: "@kilocode/cli-windows-x64", // kilocode_change assetExt: "zip", }, { rustTarget: "x86_64-unknown-linux-gnu", - ocBinary: "opencode-linux-x64", + ocBinary: "@kilocode/cli-linux-x64", // kilocode_change assetExt: "tar.gz", }, { rustTarget: "aarch64-unknown-linux-gnu", - ocBinary: "opencode-linux-arm64", + ocBinary: "@kilocode/cli-linux-arm64", // kilocode_change assetExt: "tar.gz", }, ] @@ -41,7 +41,7 @@ export function getCurrentSidecar(target = RUST_TARGET) { export async function copyBinaryToSidecarFolder(source: string, target = RUST_TARGET) { await $`mkdir -p src-tauri/sidecars` - const dest = windowsify(`src-tauri/sidecars/opencode-cli-${target}`) + const dest = windowsify(`src-tauri/sidecars/kilo-cli-${target}`) // kilocode_change await $`cp ${source} ${dest}` console.log(`Copied ${source} to ${dest}`) diff --git a/packages/desktop/src-tauri/Cargo.lock b/packages/desktop/src-tauri/Cargo.lock index a41739a697..c51c2539c5 100644 --- a/packages/desktop/src-tauri/Cargo.lock +++ b/packages/desktop/src-tauri/Cargo.lock @@ -2256,6 +2256,39 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "kilo-desktop" +version = "0.0.0" +dependencies = [ + "comrak", + "futures", + "gtk", + "listeners", + "reqwest", + "semver", + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-clipboard-manager", + "tauri-plugin-decorum", + "tauri-plugin-dialog", + "tauri-plugin-http", + "tauri-plugin-notification", + "tauri-plugin-opener", + "tauri-plugin-os", + "tauri-plugin-process", + "tauri-plugin-shell", + "tauri-plugin-single-instance", + "tauri-plugin-store", + "tauri-plugin-updater", + "tauri-plugin-window-state", + "tokio", + "uuid", + "webkit2gtk", + "windows 0.61.3", +] + [[package]] name = "kuchikiki" version = "0.8.8-speedreader" @@ -3020,39 +3053,6 @@ dependencies = [ "pathdiff", ] -[[package]] -name = "opencode-desktop" -version = "0.0.0" -dependencies = [ - "comrak", - "futures", - "gtk", - "listeners", - "reqwest", - "semver", - "serde", - "serde_json", - "tauri", - "tauri-build", - "tauri-plugin-clipboard-manager", - "tauri-plugin-decorum", - "tauri-plugin-dialog", - "tauri-plugin-http", - "tauri-plugin-notification", - "tauri-plugin-opener", - "tauri-plugin-os", - "tauri-plugin-process", - "tauri-plugin-shell", - "tauri-plugin-single-instance", - "tauri-plugin-store", - "tauri-plugin-updater", - "tauri-plugin-window-state", - "tokio", - "uuid", - "webkit2gtk", - "windows 0.61.3", -] - [[package]] name = "option-ext" version = "0.2.0" diff --git a/packages/desktop/src-tauri/Cargo.toml b/packages/desktop/src-tauri/Cargo.toml index 6296b8325f..b1328809eb 100644 --- a/packages/desktop/src-tauri/Cargo.toml +++ b/packages/desktop/src-tauri/Cargo.toml @@ -1,8 +1,8 @@ [package] -name = "opencode-desktop" +name = "kilo-desktop" version = "0.0.0" description = "The open source AI coding agent" -authors = ["Anomaly Innovations"] +authors = ["Kilo"] edition = "2024" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -11,7 +11,7 @@ edition = "2024" # The `_lib` suffix may seem redundant but it is necessary # to make the lib name unique and wouldn't conflict with the bin name. # This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 -name = "opencode_lib" +name = "kilo_lib" crate-type = ["staticlib", "cdylib", "rlib"] [build-dependencies] diff --git a/packages/desktop/src-tauri/release/appstream.metainfo.xml b/packages/desktop/src-tauri/release/appstream.metainfo.xml index e8382a9017..03384f76f3 100644 --- a/packages/desktop/src-tauri/release/appstream.metainfo.xml +++ b/packages/desktop/src-tauri/release/appstream.metainfo.xml @@ -1,11 +1,11 @@ - ai.opencode.opencode + ai.kilo.kilo CC0-1.0 MIT - OpenCode + Kilo Open source AI coding agent @@ -14,21 +14,21 @@

- OpenCode is an open source agent that helps you write and run code with any AI model. + Kilo is an open source agent that helps you write and run code with any AI model.

- ai.opencode.opencode.desktop + ai.kilo.kilo.desktop https://github.com/Kilo-Org/kilo/issues - https://opencode.ai + https://kilo.ai https://github.com/Kilo-Org/kilo - https://opencode.ai/docs/_astro/screenshot.Bs5D4atL_ZvsvFu.webp + https://kilo.ai/docs/_astro/screenshot.Bs5D4atL_ZvsvFu.webp diff --git a/packages/desktop/src-tauri/src/cli.rs b/packages/desktop/src-tauri/src/cli.rs index b019d66b5c..9f7cac84f8 100644 --- a/packages/desktop/src-tauri/src/cli.rs +++ b/packages/desktop/src-tauri/src/cli.rs @@ -1,8 +1,8 @@ use tauri::{AppHandle, Manager, path::BaseDirectory}; use tauri_plugin_shell::{ShellExt, process::Command}; -const CLI_INSTALL_DIR: &str = ".opencode/bin"; -const CLI_BINARY_NAME: &str = "opencode"; +const CLI_INSTALL_DIR: &str = ".kilo/bin"; // kilocode_change +const CLI_BINARY_NAME: &str = "kilo"; // kilocode_change #[derive(serde::Deserialize)] pub struct ServerConfig { @@ -39,7 +39,7 @@ pub fn get_sidecar_path(app: &tauri::AppHandle) -> std::path::PathBuf { .expect("Failed to get current binary") .parent() .expect("Failed to get parent dir") - .join("opencode-cli") + .join("kilo-cli") // kilocode_change } fn is_cli_installed() -> bool { @@ -61,7 +61,7 @@ pub fn install_cli(app: tauri::AppHandle) -> Result { return Err("Sidecar binary not found".to_string()); } - let temp_script = std::env::temp_dir().join("opencode-install.sh"); + let temp_script = std::env::temp_dir().join("kilo-install.sh"); // kilocode_change std::fs::write(&temp_script, INSTALL_SCRIPT) .map_err(|e| format!("Failed to write install script: {}", e))?; @@ -153,7 +153,7 @@ pub fn create_command(app: &tauri::AppHandle, args: &str) -> Command { #[cfg(target_os = "windows")] return app .shell() - .sidecar("opencode-cli") + .sidecar("kilo-cli") .unwrap() .args(args.split_whitespace()) .env("OPENCODE_EXPERIMENTAL_ICON_DISCOVERY", "true") diff --git a/packages/desktop/src-tauri/src/lib.rs b/packages/desktop/src-tauri/src/lib.rs index e086acd936..f38af59a51 100644 --- a/packages/desktop/src-tauri/src/lib.rs +++ b/packages/desktop/src-tauri/src/lib.rs @@ -25,7 +25,7 @@ use tokio::sync::oneshot; use crate::window_customizer::PinchZoomDisablePlugin; -const SETTINGS_STORE: &str = "opencode.settings.dat"; +const SETTINGS_STORE: &str = "kilo.settings.dat"; // kilocode_change const DEFAULT_SERVER_URL_KEY: &str = "defaultServerUrl"; #[derive(Clone, serde::Serialize)] @@ -252,7 +252,7 @@ pub fn run() { #[cfg(all(target_os = "macos", not(debug_assertions)))] let _ = std::process::Command::new("killall") - .arg("opencode-cli") + .arg("kilo-cli") // kilocode_change .output(); let mut builder = tauri::Builder::default() diff --git a/packages/desktop/src-tauri/src/main.rs b/packages/desktop/src-tauri/src/main.rs index e3be4a44da..b8e01bb6c3 100644 --- a/packages/desktop/src-tauri/src/main.rs +++ b/packages/desktop/src-tauri/src/main.rs @@ -61,5 +61,5 @@ fn main() { } } - opencode_lib::run() + kilo_lib::run() // kilocode_change } diff --git a/packages/desktop/src-tauri/tauri.conf.json b/packages/desktop/src-tauri/tauri.conf.json index f8df151bdf..5229e94e41 100644 --- a/packages/desktop/src-tauri/tauri.conf.json +++ b/packages/desktop/src-tauri/tauri.conf.json @@ -1,8 +1,8 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "OpenCode Dev", - "identifier": "ai.opencode.desktop.dev", - "mainBinaryName": "OpenCode", + "productName": "Kilo Dev", + "identifier": "ai.kilo.desktop.dev", + "mainBinaryName": "Kilo", "version": "../package.json", "build": { "beforeDevCommand": "bun run dev", @@ -15,7 +15,7 @@ { "label": "main", "create": false, - "title": "OpenCode", + "title": "Kilo", "url": "/", "decorations": true, "dragDropEnabled": false, @@ -41,7 +41,7 @@ ], "active": true, "targets": ["deb", "rpm", "dmg", "nsis", "app"], - "externalBin": ["sidecars/opencode-cli"], + "externalBin": ["sidecars/kilo-cli"], "macOS": { "entitlements": "./entitlements.plist" }, diff --git a/packages/desktop/src-tauri/tauri.prod.conf.json b/packages/desktop/src-tauri/tauri.prod.conf.json index 0396d090d1..5c1bd5ebae 100644 --- a/packages/desktop/src-tauri/tauri.prod.conf.json +++ b/packages/desktop/src-tauri/tauri.prod.conf.json @@ -1,13 +1,13 @@ { "$schema": "https://schema.tauri.app/config/2", - "productName": "OpenCode", - "identifier": "ai.opencode.desktop", + "productName": "Kilo", + "identifier": "ai.kilo.desktop", "app": { "windows": [ { "label": "main", "create": false, - "title": "OpenCode", + "title": "Kilo", "url": "/", "decorations": true, "dragDropEnabled": false, @@ -40,7 +40,7 @@ "linux": { "deb": { "files": { - "/usr/share/metainfo/ai.opencode.opencode.metainfo.xml": "release/appstream.metainfo.xml" + "/usr/share/metainfo/ai.kilo.kilo.metainfo.xml": "release/appstream.metainfo.xml" } } } diff --git a/packages/desktop/src/cli.ts b/packages/desktop/src/cli.ts index 965ed6ddc0..4636b4394c 100644 --- a/packages/desktop/src/cli.ts +++ b/packages/desktop/src/cli.ts @@ -4,9 +4,11 @@ import { message } from "@tauri-apps/plugin-dialog" export async function installCli(): Promise { try { const path = await invoke("install_cli") - await message(`CLI installed to ${path}\n\nRestart your terminal to use the 'opencode' command.`, { + // kilocode_change start + await message(`CLI installed to ${path}\n\nRestart your terminal to use the 'kilo' command.`, { title: "CLI Installed", }) + // kilocode_change end } catch (e) { await message(`Failed to install CLI: ${e}`, { title: "Installation Failed" }) } diff --git a/packages/opencode/package.json b/packages/opencode/package.json index 73a1a8266f..58fce5731a 100644 --- a/packages/opencode/package.json +++ b/packages/opencode/package.json @@ -47,7 +47,6 @@ "zod-to-json-schema": "3.24.5" }, "dependencies": { - "@kilocode/kilo-telemetry": "workspace:*", "@actions/core": "1.11.1", "@actions/github": "6.0.1", "@agentclientprotocol/sdk": "0.12.0", @@ -75,13 +74,14 @@ "@hono/standard-validator": "0.1.5", "@hono/zod-validator": "catalog:", "@kilocode/kilo-gateway": "workspace:*", + "@kilocode/kilo-telemetry": "workspace:*", + "@kilocode/sdk": "workspace:*", "@modelcontextprotocol/sdk": "1.25.2", "@octokit/graphql": "9.0.2", "@octokit/rest": "catalog:", "@openauthjs/openauth": "catalog:", "@opencode-ai/plugin": "workspace:*", "@opencode-ai/script": "workspace:*", - "@kilocode/sdk": "workspace:*", "@opencode-ai/util": "workspace:*", "@openrouter/ai-sdk-provider": "1.5.2", "@opentui/core": "0.1.74",