repo_description: A cross-platform desktop All-in-One assistant tool for Claude Code, Codex, OpenCode, openclaw & Gemini CLI.
repo_topics: ai-tools claude-code codex desktop-app mcp minimax omo open-source openclaw openclaw-ui opencode provider-management rust skills skills-management tauri typescript wsl-support
code: import { invoke } from "@tauri-apps/api/core";
  
  export async function copyText(text: string): Promise<void> {
    try {
      await invoke("copy_text_to_clipboard", { text });
      return;
    } catch (nativeError) {
      try {
        await navigator.clipboard.writeText(text);
        return;
      } catch (webError) {
        throw webError instanceof Error
          ? webError
          : nativeError instanceof Error
            ? nativeError
            : new Error(String(webError || nativeError));
      }
    }
  }
  