Versions in this module Expand all Collapse all v1 v1.5.0 Oct 27, 2026 Changes in this version + const DefaultPath + const DocsURL + var CustomFrame = shell.CustomFrame + var OpenExternal = func(url string) + func OnStart(fn func(a *Context)) + func ParseThemeID(id string) (kit.Family, kit.Mode, bool) + func Register(ar Area) + func RegisterBanner(order int, f func(a *Context) Banner) + func RegisterCommand(cmd Command) + func RegisterHeaderSlot(s HeaderSlot) + func RegisterOverlay(f func(a *Context) Overlay) + func RegisterShellExt(f func(a *Context) ShellExt) + func RegisterStatusItem(it StatusItem) + func ShortenPath(p string) string + type Area struct + ID string + Icon string + New func(a *Context) View + Order int + Path string + Patterns []string + Placeholder bool + Section Section + TitleKey string + Visible func(a *Context) bool + func Areas() []Area + func Lookup(id string) (Area, bool) + type Banner = Overlay + type Batch struct + func NewBatch[T any](update func(func()), apply func([]T)) *Batch[T] + func (b *Batch[T]) Push(v T) + type Closer interface + Close func() + type Command struct + Description string + Group string + ID string + Icon string + Keywords []string + Run func(a *Context) + Title string + TitleKey string + func Commands() []Command + type Context struct + CWD string + Client *client.Client + Ctx context.Context + Log *slog.Logger + Router *ui.Router + Server client.ServerInfo + Theme kit.Settings + Toasts *kit.Toaster + func NewContext(ctx context.Context, c *client.Client) *Context + func (a *Context) ActiveSessionID() string + func (a *Context) ApplyPrefs(p client.UIPrefs) + func (a *Context) CycleThemeMode() + func (a *Context) FocusProjectWorkspace(id string) + func (a *Context) ForClient(c *client.Client, cwd string) *Context + func (a *Context) Go(fn func(ctx context.Context)) + func (a *Context) InsertIntoChatDraft(text string) + func (a *Context) Invalidate() + func (a *Context) IsChild() bool + func (a *Context) Navigate(path string) + func (a *Context) OpenModelSwitcher() + func (a *Context) OpenQuickMenu() + func (a *Context) PeekChatDraft() string + func (a *Context) ReportError(title string, err error) + func (a *Context) SavePrefs(patch client.UIPrefs) + func (a *Context) SetDispatcher(d Dispatcher) + func (a *Context) SetLanguage(lang string) + func (a *Context) SetSidebarCollapsed(v bool) + func (a *Context) SetTheme(s kit.Settings) + func (a *Context) Shell() *Shell + func (a *Context) StartServices(h Host) + func (a *Context) T(key string, args ...any) string + func (a *Context) TakeChatDraft() string + func (a *Context) ToggleSimpleChat() + func (a *Context) TrayLabels() shell.TrayLabels + func (a *Context) Update(fn func()) + func (a *Context) WebViewHost() kit.WebViewHost + type Dispatcher interface + Invalidate func() + Update func(fn func()) + type ExternalAccess struct + BasicAuthReady bool + BindHost string + CanToggle bool + Enabled bool + Port int + URLs []string + type HeaderActions interface + HeaderActions func(c *ui.Context) + type HeaderSlot struct + Build func(c *ui.Context, a *Context) + ID string + Order int + type Host interface + Focused func() bool + Notify func(id, title, body string) + Quit func() + SetTitle func(title string) + SetTrayOnClose func(on bool) + SetTrayProjects func(p []shell.TrayProject) + Show func() + type LeaveGuard interface + ConfirmLeave func(proceed func()) bool + type Overlay interface + Build func(c *ui.Context) + type QueueDispatcher struct + func (q *QueueDispatcher) Drain() int + func (q *QueueDispatcher) Invalidate() + func (q *QueueDispatcher) Update(fn func()) + type Root struct + App *Context + func NewEmbeddedRoot(a *Context, brand string) *Root + func NewRoot(a *Context) *Root + func (r *Root) Close() + func (r *Root) View(c *ui.Context) + type Section string + const SectionBottom + const SectionHidden + const SectionMain + const SectionServices + const SectionTools + type Shell struct + FocusProject func(id string) + Host Host + ModelChanged func(model, sessionID string) + ModelSwitcherOpen bool + NextModel string + QuickMenuOpen bool + SidebarCollapsed bool + StartExplicit bool + type ShellExt interface + Active func() string + Build func(c *ui.Context, id string) + Close func(id string) + Dialogs func(c *ui.Context) + Select func(id string) + Tabs func() []ShellTab + type ShellTab struct + Busy bool + Detail string + ID string + State string + Title string + type StatusItem struct + Build func(c *ui.Context, a *Context) + Order int + Visible func(a *Context) bool + type Titled interface + Title func() string + type View interface + Build func(c *ui.Context, r *ui.Route) + type WindowHost interface + CloseWindow func() + IsMaximized func() bool + Minimize func() + ToggleFullScreen func() + ToggleMaximize func()