From 9588c97e64e10d161a9a0ab1ab9ba3fee6cbb94d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 14 Jul 2026 17:10:11 -0400 Subject: [PATCH] refac --- .../MessageInput/CommandSuggestionList.svelte | 14 +- .../Commands/SlashCommands.svelte | 167 ++++++++++++++++++ 2 files changed, 179 insertions(+), 2 deletions(-) create mode 100644 src/lib/components/chat/MessageInput/Commands/SlashCommands.svelte diff --git a/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte b/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte index 58720a923f..f3c9112b82 100644 --- a/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte +++ b/src/lib/components/chat/MessageInput/CommandSuggestionList.svelte @@ -1,5 +1,5 @@ + +{#if filteredPrompts.length > 0} +
+ {$i18n.t('Prompts')} +
+ + {#each filteredPrompts as promptItem, promptIdx} + + + + {/each} +{/if} + +{#if skills.length > 0} +
+ {$i18n.t('Skills')} +
+ + {#each skills as skill, skillIdx} + {@const itemIdx = filteredPrompts.length + skillIdx} + + + + {/each} +{/if}