Provides API endpoints related to tui
Summary
Functions
Append TUI prompt
Clear TUI prompt
Get next TUI request
Submit TUI response
Execute TUI command
Open help dialog
Open models dialog
Open sessions dialog
Open themes dialog
Publish TUI event
Select session
Show TUI toast
Submit TUI prompt
Types
Functions
@spec tui_append_prompt(body :: map(), opts :: keyword()) :: {:ok, boolean()} | {:error, OpenCode.Generated.BadRequestError.t()}
Append TUI prompt
Append prompt to the TUI.
Options
directoryworkspace
Request Body
Content Types: application/json
Clear TUI prompt
Clear the prompt.
Options
directoryworkspace
@spec tui_control_next(opts :: keyword()) :: {:ok, tui_control_next_200_json_resp()} | :error
Get next TUI request
Retrieve the next TUI request from the queue for processing.
Options
directoryworkspace
Submit TUI response
Submit a response to the TUI request queue to complete a pending request.
Options
directoryworkspace
Request Body
Content Types: application/json
@spec tui_execute_command(body :: map(), opts :: keyword()) :: {:ok, boolean()} | {:error, OpenCode.Generated.BadRequestError.t()}
Execute TUI command
Execute a TUI command.
Options
directoryworkspace
Request Body
Content Types: application/json
Open help dialog
Open the help dialog in the TUI to display user assistance information.
Options
directoryworkspace
Open models dialog
Open the model dialog.
Options
directoryworkspace
Open sessions dialog
Open the session dialog.
Options
directoryworkspace
Open themes dialog
Open the theme dialog.
Options
directoryworkspace
@spec tui_publish( body :: OpenCode.Generated.EventTuiCommandExecute.t() | OpenCode.Generated.EventTuiPromptAppend.t() | OpenCode.Generated.EventTuiSessionSelect.t() | OpenCode.Generated.EventTuiToastShow.t(), opts :: keyword() ) :: {:ok, boolean()} | {:error, OpenCode.Generated.BadRequestError.t()}
Publish TUI event
Publish a TUI event.
Options
directoryworkspace
Request Body
Content Types: application/json
@spec tui_select_session(body :: map(), opts :: keyword()) :: {:ok, boolean()} | {:error, OpenCode.Generated.BadRequestError.t() | OpenCode.Generated.NotFoundError.t()}
Select session
Navigate the TUI to display the specified session.
Options
directoryworkspace
Request Body
Content Types: application/json
Show TUI toast
Show a toast notification in the TUI.
Options
directoryworkspace
Request Body
Content Types: application/json
Submit TUI prompt
Submit the prompt.
Options
directoryworkspace