From 38af99dcb47e92e4f25c7aa6344b5f8f9b766e1e Mon Sep 17 00:00:00 2001 From: Sebastian Date: Sun, 29 Mar 2026 00:27:27 +0100 Subject: prompt slot (#19563) --- packages/plugin/src/tui.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'packages/plugin/src') diff --git a/packages/plugin/src/tui.ts b/packages/plugin/src/tui.ts index cbb6f62b6..bbf349490 100644 --- a/packages/plugin/src/tui.ts +++ b/packages/plugin/src/tui.ts @@ -135,6 +135,19 @@ export type TuiDialogSelectProps = { current?: Value } +export type TuiPromptProps = { + workspaceID?: string + visible?: boolean + disabled?: boolean + onSubmit?: () => void + hint?: JSX.Element + showPlaceholder?: boolean + placeholders?: { + normal?: string[] + shell?: string[] + } +} + export type TuiToast = { variant?: "info" | "success" | "warning" | "error" title?: string @@ -279,6 +292,9 @@ export type TuiSidebarFileItem = { export type TuiSlotMap = { app: {} home_logo: {} + home_prompt: { + workspace_id?: string + } home_bottom: {} sidebar_title: { session_id: string @@ -386,6 +402,7 @@ export type TuiPluginApi = { DialogConfirm: (props: TuiDialogConfirmProps) => JSX.Element DialogPrompt: (props: TuiDialogPromptProps) => JSX.Element DialogSelect: (props: TuiDialogSelectProps) => JSX.Element + Prompt: (props: TuiPromptProps) => JSX.Element toast: (input: TuiToast) => void dialog: TuiDialogStack } -- cgit v1.2.3