The open source coding agent.
TypeScript
feat(app): show skill/mcp badges for slash commands
R44VC0RP12b8c4238768
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsxindex c175824deba..9a9d589a7ec 100644--- a/packages/app/src/components/prompt-input.tsx+++ b/packages/app/src/components/prompt-input.tsx@@ -115,6 +115,7 @@ interface SlashCommand {description?: stringkeybind?: stringtype: "builtin" | "custom"+ source?: "command" | "mcp" | "skill"}export const PromptInput: Component<PromptInputProps> = (props) => {@@ -520,6 +521,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {title: cmd.name,description: cmd.description,type: "custom" as const,+ source: cmd.source,}))return [...custom, ...builtin]@@ -1728,7 +1730,11 @@ export const PromptInput: Component<PromptInputProps> = (props) => {<div class="flex items-center gap-2 shrink-0"><Show when={cmd.type === "custom"}><span class="text-11-regular text-text-subtle px-1.5 py-0.5 bg-surface-base rounded">- {language.t("prompt.slash.badge.custom")}+ {cmd.source === "skill"+ ? language.t("prompt.slash.badge.skill")+ : cmd.source === "mcp"+ ? language.t("prompt.slash.badge.mcp")+ : language.t("prompt.slash.badge.custom")}</span></Show><Show when={command.keybind(cmd.id)}>diff --git a/packages/app/src/i18n/ar.ts b/packages/app/src/i18n/ar.tsindex 80179144a85..e3831e23c40 100644--- a/packages/app/src/i18n/ar.ts+++ b/packages/app/src/i18n/ar.ts@@ -210,6 +210,8 @@ export const dict = {"prompt.popover.emptyCommands": "لا توجد أوامر مطابقة","prompt.dropzone.label": "أفلت الصور أو ملفات PDF هنا","prompt.slash.badge.custom": "مخصص",+ "prompt.slash.badge.skill": "مهارة",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "نشط","prompt.context.includeActiveFile": "تضمين الملف النشط","prompt.context.removeActiveFile": "إزالة الملف النشط من السياق",diff --git a/packages/app/src/i18n/br.ts b/packages/app/src/i18n/br.tsindex c874a4376b8..f930a66aff3 100644--- a/packages/app/src/i18n/br.ts+++ b/packages/app/src/i18n/br.ts@@ -210,6 +210,8 @@ export const dict = {"prompt.popover.emptyCommands": "Nenhum comando correspondente","prompt.dropzone.label": "Solte imagens ou PDFs aqui","prompt.slash.badge.custom": "personalizado",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "ativo","prompt.context.includeActiveFile": "Incluir arquivo ativo","prompt.context.removeActiveFile": "Remover arquivo ativo do contexto",diff --git a/packages/app/src/i18n/da.ts b/packages/app/src/i18n/da.tsindex 555990a9c44..2b7d77456d5 100644--- a/packages/app/src/i18n/da.ts+++ b/packages/app/src/i18n/da.ts@@ -210,6 +210,8 @@ export const dict = {"prompt.popover.emptyCommands": "Ingen matchende kommandoer","prompt.dropzone.label": "Slip billeder eller PDF'er her","prompt.slash.badge.custom": "brugerdefineret",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "aktiv","prompt.context.includeActiveFile": "Inkluder aktiv fil","prompt.context.removeActiveFile": "Fjern aktiv fil fra kontekst",diff --git a/packages/app/src/i18n/de.ts b/packages/app/src/i18n/de.tsindex e56081c9089..4648ad9c412 100644--- a/packages/app/src/i18n/de.ts+++ b/packages/app/src/i18n/de.ts@@ -214,6 +214,8 @@ export const dict = {"prompt.popover.emptyCommands": "Keine passenden Befehle","prompt.dropzone.label": "Bilder oder PDFs hier ablegen","prompt.slash.badge.custom": "benutzerdefiniert",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "aktiv","prompt.context.includeActiveFile": "Aktive Datei einbeziehen","prompt.context.removeActiveFile": "Aktive Datei aus dem Kontext entfernen",diff --git a/packages/app/src/i18n/en.ts b/packages/app/src/i18n/en.tsindex 4254860ac93..12ddcb4cd8e 100644--- a/packages/app/src/i18n/en.ts+++ b/packages/app/src/i18n/en.ts@@ -216,6 +216,8 @@ export const dict = {"prompt.popover.emptyCommands": "No matching commands","prompt.dropzone.label": "Drop images or PDFs here","prompt.slash.badge.custom": "custom",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "active","prompt.context.includeActiveFile": "Include active file","prompt.context.removeActiveFile": "Remove active file from context",diff --git a/packages/app/src/i18n/es.ts b/packages/app/src/i18n/es.tsindex e928f03cec7..5d396f0b4f2 100644--- a/packages/app/src/i18n/es.ts+++ b/packages/app/src/i18n/es.ts@@ -210,6 +210,8 @@ export const dict = {"prompt.popover.emptyCommands": "Sin comandos coincidentes","prompt.dropzone.label": "Suelta imágenes o PDFs aquí","prompt.slash.badge.custom": "personalizado",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "activo","prompt.context.includeActiveFile": "Incluir archivo activo","prompt.context.removeActiveFile": "Eliminar archivo activo del contexto",diff --git a/packages/app/src/i18n/fr.ts b/packages/app/src/i18n/fr.tsindex 31000cd17ad..4226d0c7e20 100644--- a/packages/app/src/i18n/fr.ts+++ b/packages/app/src/i18n/fr.ts@@ -210,6 +210,8 @@ export const dict = {"prompt.popover.emptyCommands": "Aucune commande correspondante","prompt.dropzone.label": "Déposez des images ou des PDF ici","prompt.slash.badge.custom": "personnalisé",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "actif","prompt.context.includeActiveFile": "Inclure le fichier actif","prompt.context.removeActiveFile": "Retirer le fichier actif du contexte",diff --git a/packages/app/src/i18n/ja.ts b/packages/app/src/i18n/ja.tsindex 80efc5c2aa1..28a925a0d32 100644--- a/packages/app/src/i18n/ja.ts+++ b/packages/app/src/i18n/ja.ts@@ -209,6 +209,8 @@ export const dict = {"prompt.popover.emptyCommands": "一致するコマンドがありません","prompt.dropzone.label": "画像またはPDFをここにドロップ","prompt.slash.badge.custom": "カスタム",+ "prompt.slash.badge.skill": "スキル",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "アクティブ","prompt.context.includeActiveFile": "アクティブなファイルを含める","prompt.context.removeActiveFile": "コンテキストからアクティブなファイルを削除",diff --git a/packages/app/src/i18n/ko.ts b/packages/app/src/i18n/ko.tsindex 014092d07f2..1be4e1eb4b6 100644--- a/packages/app/src/i18n/ko.ts+++ b/packages/app/src/i18n/ko.ts@@ -213,6 +213,8 @@ export const dict = {"prompt.popover.emptyCommands": "일치하는 명령어 없음","prompt.dropzone.label": "이미지나 PDF를 여기에 드롭하세요","prompt.slash.badge.custom": "사용자 지정",+ "prompt.slash.badge.skill": "스킬",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "활성","prompt.context.includeActiveFile": "활성 파일 포함","prompt.context.removeActiveFile": "컨텍스트에서 활성 파일 제거",diff --git a/packages/app/src/i18n/no.ts b/packages/app/src/i18n/no.tsindex 400ce37d352..0a3b398856a 100644--- a/packages/app/src/i18n/no.ts+++ b/packages/app/src/i18n/no.ts@@ -213,6 +213,8 @@ export const dict = {"prompt.popover.emptyCommands": "Ingen matchende kommandoer","prompt.dropzone.label": "Slipp bilder eller PDF-er her","prompt.slash.badge.custom": "egendefinert",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "aktiv","prompt.context.includeActiveFile": "Inkluder aktiv fil","prompt.context.removeActiveFile": "Fjern aktiv fil fra kontekst",diff --git a/packages/app/src/i18n/pl.ts b/packages/app/src/i18n/pl.tsindex 5a05809829c..f4457c6acf8 100644--- a/packages/app/src/i18n/pl.ts+++ b/packages/app/src/i18n/pl.ts@@ -210,6 +210,8 @@ export const dict = {"prompt.popover.emptyCommands": "Brak pasujących poleceń","prompt.dropzone.label": "Upuść obrazy lub pliki PDF tutaj","prompt.slash.badge.custom": "własne",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "aktywny","prompt.context.includeActiveFile": "Dołącz aktywny plik","prompt.context.removeActiveFile": "Usuń aktywny plik z kontekstu",diff --git a/packages/app/src/i18n/ru.ts b/packages/app/src/i18n/ru.tsindex 4277368f5da..d5a4014d36a 100644--- a/packages/app/src/i18n/ru.ts+++ b/packages/app/src/i18n/ru.ts@@ -210,6 +210,8 @@ export const dict = {"prompt.popover.emptyCommands": "Нет совпадающих команд","prompt.dropzone.label": "Перетащите изображения или PDF сюда","prompt.slash.badge.custom": "своё",+ "prompt.slash.badge.skill": "навык",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "активно","prompt.context.includeActiveFile": "Включить активный файл","prompt.context.removeActiveFile": "Удалить активный файл из контекста",diff --git a/packages/app/src/i18n/th.ts b/packages/app/src/i18n/th.tsindex e2eabd7ad81..1914b8e5bdf 100644--- a/packages/app/src/i18n/th.ts+++ b/packages/app/src/i18n/th.ts@@ -215,6 +215,8 @@ export const dict = {"prompt.popover.emptyCommands": "ไม่พบคำสั่งที่ตรงกัน","prompt.dropzone.label": "วางรูปภาพหรือ PDF ที่นี่","prompt.slash.badge.custom": "กำหนดเอง",+ "prompt.slash.badge.skill": "skill",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "ใช้งานอยู่","prompt.context.includeActiveFile": "รวมไฟล์ที่ใช้งานอยู่","prompt.context.removeActiveFile": "เอาไฟล์ที่ใช้งานอยู่ออกจากบริบท",diff --git a/packages/app/src/i18n/zh.ts b/packages/app/src/i18n/zh.tsindex 118e03ce47b..b9d53957302 100644--- a/packages/app/src/i18n/zh.ts+++ b/packages/app/src/i18n/zh.ts@@ -214,6 +214,8 @@ export const dict = {"prompt.popover.emptyCommands": "没有匹配的命令","prompt.dropzone.label": "将图片或 PDF 拖到这里","prompt.slash.badge.custom": "自定义",+ "prompt.slash.badge.skill": "技能",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "当前","prompt.context.includeActiveFile": "包含当前文件","prompt.context.removeActiveFile": "从上下文移除活动文件",diff --git a/packages/app/src/i18n/zht.ts b/packages/app/src/i18n/zht.tsindex 45a789df4c7..23d3d80e136 100644--- a/packages/app/src/i18n/zht.ts+++ b/packages/app/src/i18n/zht.ts@@ -211,6 +211,8 @@ export const dict = {"prompt.popover.emptyCommands": "沒有符合的命令","prompt.dropzone.label": "將圖片或 PDF 拖到這裡","prompt.slash.badge.custom": "自訂",+ "prompt.slash.badge.skill": "技能",+ "prompt.slash.badge.mcp": "mcp","prompt.context.active": "作用中","prompt.context.includeActiveFile": "包含作用中檔案","prompt.context.removeActiveFile": "從上下文移除目前檔案",