summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'packages/app/src/components')
-rw-r--r--packages/app/src/components/prompt-input.tsx36
1 files changed, 2 insertions, 34 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx
index 2bf9acf32..5c1d417eb 100644
--- a/packages/app/src/components/prompt-input.tsx
+++ b/packages/app/src/components/prompt-input.tsx
@@ -111,7 +111,7 @@ interface SlashCommand {
title: string
description?: string
keybind?: string
- type: "builtin" | "custom" | "skill"
+ type: "builtin" | "custom"
}
export const PromptInput: Component<PromptInputProps> = (props) => {
@@ -519,15 +519,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
type: "custom" as const,
}))
- const skills = sync.data.skill.map((skill) => ({
- id: `skill.${skill.name}`,
- trigger: `skill:${skill.name}`,
- title: skill.name,
- description: skill.description,
- type: "skill" as const,
- }))
-
- return [...skills, ...custom, ...builtin]
+ return [...custom, ...builtin]
})
const handleSlashSelect = (cmd: SlashCommand | undefined) => {
@@ -551,25 +543,6 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
return
}
- if (cmd.type === "skill") {
- // Extract skill name from the id (skill.{name})
- const skillName = cmd.id.replace("skill.", "")
- const text = `Load the "${skillName}" skill and follow its instructions.`
- editorRef.innerHTML = ""
- editorRef.textContent = text
- prompt.set([{ type: "text", content: text, start: 0, end: text.length }], text.length)
- requestAnimationFrame(() => {
- editorRef.focus()
- const range = document.createRange()
- const sel = window.getSelection()
- range.selectNodeContents(editorRef)
- range.collapse(false)
- sel?.removeAllRanges()
- sel?.addRange(range)
- })
- return
- }
-
editorRef.innerHTML = ""
prompt.set([{ type: "text", content: "", start: 0, end: 0 }], 0)
command.trigger(cmd.id, "slash")
@@ -1733,11 +1706,6 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
{language.t("prompt.slash.badge.custom")}
</span>
</Show>
- <Show when={cmd.type === "skill"}>
- <span class="text-11-regular text-text-subtle px-1.5 py-0.5 bg-surface-base rounded">
- {language.t("prompt.slash.badge.skill")}
- </span>
- </Show>
<Show when={command.keybind(cmd.id)}>
<span class="text-12-regular text-text-subtle">{command.keybind(cmd.id)}</span>
</Show>