summaryrefslogtreecommitdiffhomepage
path: root/packages/plugin
diff options
context:
space:
mode:
authorSebastian <[email protected]>2026-03-29 00:27:27 +0100
committerGitHub <[email protected]>2026-03-29 00:27:27 +0100
commit38af99dcb47e92e4f25c7aa6344b5f8f9b766e1e (patch)
tree299af567105120803426ffa200c11a08ab69f8ed /packages/plugin
parent772059acb5555f958ef616a3ff00a2fd89b36933 (diff)
downloadopencode-38af99dcb47e92e4f25c7aa6344b5f8f9b766e1e.tar.gz
opencode-38af99dcb47e92e4f25c7aa6344b5f8f9b766e1e.zip
prompt slot (#19563)
Diffstat (limited to 'packages/plugin')
-rw-r--r--packages/plugin/package.json8
-rw-r--r--packages/plugin/src/tui.ts17
2 files changed, 21 insertions, 4 deletions
diff --git a/packages/plugin/package.json b/packages/plugin/package.json
index 46c6900c3..96fe5cd60 100644
--- a/packages/plugin/package.json
+++ b/packages/plugin/package.json
@@ -21,8 +21,8 @@
"zod": "catalog:"
},
"peerDependencies": {
- "@opentui/core": ">=0.1.91",
- "@opentui/solid": ">=0.1.91"
+ "@opentui/core": ">=0.1.92",
+ "@opentui/solid": ">=0.1.92"
},
"peerDependenciesMeta": {
"@opentui/core": {
@@ -33,8 +33,8 @@
}
},
"devDependencies": {
- "@opentui/core": "0.1.91",
- "@opentui/solid": "0.1.91",
+ "@opentui/core": "0.1.92",
+ "@opentui/solid": "0.1.92",
"@tsconfig/node22": "catalog:",
"@types/node": "catalog:",
"typescript": "catalog:",
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<Value = unknown> = {
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: <Value = unknown>(props: TuiDialogSelectProps<Value>) => JSX.Element
+ Prompt: (props: TuiPromptProps) => JSX.Element
toast: (input: TuiToast) => void
dialog: TuiDialogStack
}