|
|
@@ -30,6 +30,7 @@ import { TuiEvent } from "./event"
|
|
|
import { KVProvider, useKV } from "./context/kv"
|
|
|
import { Provider } from "@/provider/provider"
|
|
|
import { ArgsProvider, useArgs, type Args } from "./context/args"
|
|
|
+import open from "open"
|
|
|
|
|
|
async function getTerminalBackgroundColor(): Promise<"dark" | "light"> {
|
|
|
// can't set raw mode if not a TTY
|
|
|
@@ -315,6 +316,15 @@ function App() {
|
|
|
},
|
|
|
category: "System",
|
|
|
},
|
|
|
+ {
|
|
|
+ title: "Open docs",
|
|
|
+ value: "docs.open",
|
|
|
+ onSelect: () => {
|
|
|
+ open("https://opencode.ai/docs").catch(() => {})
|
|
|
+ dialog.clear()
|
|
|
+ },
|
|
|
+ category: "System",
|
|
|
+ },
|
|
|
{
|
|
|
title: "Exit the app",
|
|
|
value: "app.exit",
|