File tree Expand file tree Collapse file tree
packages/plugin/src/v2/tui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import type {
1919 ShellInfo ,
2020 SkillInfo ,
2121} from "@opencode-ai/client"
22+ import type { JSX } from "@opentui/solid"
2223
2324interface LocationCollection < Value > {
2425 list ( location ?: LocationRef ) : Value [ ] | undefined
@@ -85,7 +86,23 @@ export interface Data {
8586 }
8687}
8788
88- export interface UI { }
89+ export interface RouteDefinition {
90+ readonly name : string
91+ readonly render : ( input : { readonly params : any } ) => JSX . Element
92+ }
93+
94+ export interface Route {
95+ register ( definition : RouteDefinition ) : ( ) => void
96+ navigate ( input : { readonly name : string ; readonly params ?: any } ) : void
97+ current ( ) : {
98+ readonly name : string
99+ readonly params : any
100+ }
101+ }
102+
103+ export interface UI {
104+ readonly route : Route
105+ }
89106
90107export interface Context {
91108 readonly options : Record < string , any >
You can’t perform that action at this time.
0 commit comments