@@ -2,10 +2,11 @@ import { render, useKeyboard, useRenderer, useTerminalDimensions } from "@opentu
22import { Clipboard } from "@tui/util/clipboard"
33import { TextAttributes } from "@opentui/core"
44import { RouteProvider , useRoute } from "@tui/context/route"
5- import { Switch , Match , createEffect , untrack , ErrorBoundary , createSignal , onMount , batch } from "solid-js"
5+ import { Switch , Match , createEffect , untrack , ErrorBoundary , createSignal , onMount , batch , Show } from "solid-js"
66import { Installation } from "@/installation"
77import { Global } from "@/global"
88import { DialogProvider , useDialog } from "@tui/ui/dialog"
9+ import { DialogProvider as DialogProviderList } from "@tui/component/dialog-provider"
910import { SDKProvider , useSDK } from "@tui/context/sdk"
1011import { SyncProvider , useSync } from "@tui/context/sync"
1112import { LocalProvider , useLocal } from "@tui/context/local"
@@ -311,6 +312,14 @@ function App() {
311312 } ,
312313 category : "System" ,
313314 } ,
315+ {
316+ title : "Connect provider" ,
317+ value : "provider.connect" ,
318+ onSelect : ( ) => {
319+ dialog . replace ( ( ) => < DialogProviderList /> )
320+ } ,
321+ category : "System" ,
322+ } ,
314323 {
315324 title : `Switch to ${ mode ( ) === "dark" ? "light" : "dark" } mode` ,
316325 value : "theme.switch_mode" ,
@@ -469,16 +478,18 @@ function App() {
469478 < text fg = { theme . textMuted } > { process . cwd ( ) . replace ( Global . Path . home , "~" ) } </ text >
470479 </ box >
471480 </ box >
472- < box flexDirection = "row" flexShrink = { 0 } >
473- < text fg = { theme . textMuted } paddingRight = { 1 } >
474- tab
475- </ text >
476- < text fg = { local . agent . color ( local . agent . current ( ) . name ) } > { "" } </ text >
477- < text bg = { local . agent . color ( local . agent . current ( ) . name ) } fg = { theme . background } wrapMode = { undefined } >
478- < span style = { { bold : true } } > { local . agent . current ( ) . name . toUpperCase ( ) } </ span >
479- < span > AGENT </ span >
480- </ text >
481- </ box >
481+ < Show when = { false } >
482+ < box flexDirection = "row" flexShrink = { 0 } >
483+ < text fg = { theme . textMuted } paddingRight = { 1 } >
484+ tab
485+ </ text >
486+ < text fg = { local . agent . color ( local . agent . current ( ) . name ) } > { "" } </ text >
487+ < text bg = { local . agent . color ( local . agent . current ( ) . name ) } fg = { theme . background } wrapMode = { undefined } >
488+ < span style = { { bold : true } } > { local . agent . current ( ) . name . toUpperCase ( ) } </ span >
489+ < span > AGENT </ span >
490+ </ text >
491+ </ box >
492+ </ Show >
482493 </ box >
483494 </ box >
484495 )
0 commit comments