diff options
Diffstat (limited to 'packages/cli/src/ui/hooks/slashCommandProcessor.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/slashCommandProcessor.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/cli/src/ui/hooks/slashCommandProcessor.ts b/packages/cli/src/ui/hooks/slashCommandProcessor.ts index bd0e38b8..b07c82c2 100644 --- a/packages/cli/src/ui/hooks/slashCommandProcessor.ts +++ b/packages/cli/src/ui/hooks/slashCommandProcessor.ts @@ -76,6 +76,7 @@ export const useSlashCommandProcessor = ( toggleCorgiMode: () => void, showToolDescriptions: boolean = false, setQuittingMessages: (message: HistoryItem[]) => void, + openPrivacyNotice: () => void, ) => { const session = useSessionStats(); const gitService = useMemo(() => { @@ -255,6 +256,13 @@ export const useSlashCommandProcessor = ( }, }, { + name: 'privacy', + description: 'display the privacy notice', + action: (_mainCommand, _subCommand, _args) => { + openPrivacyNotice(); + }, + }, + { name: 'stats', altName: 'usage', description: 'check session stats', @@ -1022,6 +1030,7 @@ export const useSlashCommandProcessor = ( setQuittingMessages, pendingCompressionItemRef, setPendingCompressionItem, + openPrivacyNotice, ]); const handleSlashCommand = useCallback( |
