diff options
| author | Abhi <[email protected]> | 2025-07-22 00:34:55 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-22 04:34:55 +0000 |
| commit | 9daead63ddc4a0bddad05ec9f4bb7c0726da44f4 (patch) | |
| tree | a756014f436f4cc356ca334a45494386027e7b4e /packages/cli/src/ui/commands | |
| parent | 5f813ef51076177aadccc0046f2182310d6b0a1a (diff) | |
(feat): Initial Version of Custom Commands (#4572)
Diffstat (limited to 'packages/cli/src/ui/commands')
| -rw-r--r-- | packages/cli/src/ui/commands/types.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/cli/src/ui/commands/types.ts b/packages/cli/src/ui/commands/types.ts index 3ffadf83..df7b2f21 100644 --- a/packages/cli/src/ui/commands/types.ts +++ b/packages/cli/src/ui/commands/types.ts @@ -99,12 +99,22 @@ export interface LoadHistoryActionReturn { clientHistory: Content[]; // The history for the generative client } +/** + * The return type for a command action that should immediately submit + * content as a prompt to the Gemini model. + */ +export interface SubmitPromptActionReturn { + type: 'submit_prompt'; + content: string; +} + export type SlashCommandActionReturn = | ToolActionReturn | MessageActionReturn | QuitActionReturn | OpenDialogActionReturn - | LoadHistoryActionReturn; + | LoadHistoryActionReturn + | SubmitPromptActionReturn; export enum CommandKind { BUILT_IN = 'built-in', |
