The best way to control Claude Code, Codex and more from any computer or phone
| 1 | /// <reference types="vite-plus/client" /> |
| 2 | |
| 3 | import type { DesktopBridge, ThreadId } from "@t3tools/contracts"; |
| 4 | |
| 5 | interface ImportMetaEnv { |
| 6 | readonly VITE_HTTP_URL: string; |
| 7 | readonly VITE_WS_URL: string; |
| 8 | readonly VITE_HOSTED_APP_URL: string; |
| 9 | readonly VITE_HOSTED_APP_CHANNEL: string; |
| 10 | readonly VITE_RELEASE_CHANNEL: string; |
| 11 | readonly VITE_CLERK_PUBLISHABLE_KEY: string; |
| 12 | readonly VITE_CLERK_JWT_TEMPLATE: string; |
| 13 | readonly VITE_CLERK_CLI_OAUTH_CLIENT_ID: string; |
| 14 | readonly VITE_RELAY_OTLP_TRACES_URL: string; |
| 15 | readonly VITE_RELAY_OTLP_TRACES_DATASET: string; |
| 16 | readonly VITE_RELAY_OTLP_TRACES_TOKEN: string; |
| 17 | readonly T3CODE_DESKTOP_UPDATE_REPOSITORY: string; |
| 18 | readonly T3CODE_FEATURE_SECRETS: string; |
| 19 | readonly APP_VERSION: string; |
| 20 | } |
| 21 | |
| 22 | interface ImportMeta { |
| 23 | readonly env: ImportMetaEnv; |
| 24 | } |
| 25 | |
| 26 | declare global { |
| 27 | interface Window { |
| 28 | desktopBridge?: DesktopBridge; |
| 29 | /** Dev builds only, from DevReplayHost. Agents call these from the browser console. */ |
| 30 | t3dev?: { |
| 31 | readonly replayScenarios: () => ReadonlyArray<string>; |
| 32 | readonly replay: (scenario?: string) => Promise<ThreadId>; |
| 33 | }; |
| 34 | } |
| 35 | } |