From d531dff8d3f5c60df2e5c08e8bd04bf9a234dbc3 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Mon, 8 Dec 2025 13:43:36 +0800 Subject: Export DesktopInterface from desktop and add PlatformContext --- packages/tauri/src/index.tsx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 packages/tauri/src/index.tsx (limited to 'packages/tauri/src/index.tsx') diff --git a/packages/tauri/src/index.tsx b/packages/tauri/src/index.tsx new file mode 100644 index 000000000..9371b4826 --- /dev/null +++ b/packages/tauri/src/index.tsx @@ -0,0 +1,21 @@ +// @refresh reload +import { render } from "solid-js/web" +import { DesktopInterface, PlatformProvider, Platform } from "@opencode-ai/desktop" + +const root = document.getElementById("root") +if (import.meta.env.DEV && !(root instanceof HTMLElement)) { + throw new Error( + "Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?", + ) +} + +const platform: Platform = {} + +render( + () => ( + + + + ), + root!, +) -- cgit v1.2.3