import { invoke } from "@tauri-apps/api/core" 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.`, { title: "CLI Installed", }) } catch (e) { await message(`Failed to install CLI: ${e}`, { title: "Installation Failed" }) } }