mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 13:20:22 +08:00
feat: 测试版标出 Skill 官方调用方式(/名称与模型 skill 工具)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
877c41f7d7
commit
5629c35e22
4 files changed
+65
-6
No files matched your search
@@ -238,8 +238,8 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
"ph.content": "",
|
||||
"btn.saveRule": "保存",
|
||||
"skills.title": "Skill",
|
||||
"skills.hint": "官方 Skill 目录。可导入压缩包或文件夹。命中和加载由 DSH 负责。",
|
||||
"skills.hint.desktop": "当前桌面宿主的官方 Skill 目录。可导入压缩包或文件夹。命中和加载由 DSH 负责。",
|
||||
"skills.hint": "导入到官方目录后,由 DSH 调用:聊天输入 /名称 立即加载;任务对上 description 或 whenToUse 时模型会调 skill 工具。正文写「激活」不会触发。",
|
||||
"skills.hint.desktop": "当前桌面宿主的官方 Skill 目录。聊天输入 /名称 立即加载;任务对上 description 时模型会调 skill 工具。",
|
||||
"skills.empty": "暂无用户 Skill",
|
||||
"btn.importZip": "导入压缩包",
|
||||
"btn.importFolder": "导入文件夹",
|
||||
@@ -249,6 +249,10 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
"err.import.folder": "没读到文件夹里的文件,请直接选 Skill 目录(里面要有 SKILL.md)",
|
||||
"skills.pick": "选择 Skill",
|
||||
"skills.invalid": "官方会忽略:格式不对",
|
||||
"skills.call.slash": "聊天输入 {cmd}",
|
||||
"skills.call.model": "模型可调",
|
||||
"skills.call.modelOff": "模型不可调",
|
||||
"skills.call.userOff": "不可 /名称",
|
||||
"ph.skill.desc": "description(何时用)",
|
||||
"btn.saveSkill": "保存",
|
||||
"need.skill.id": "id 必须是 kebab-case,例如 code-review",
|
||||
@@ -444,8 +448,8 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
"ph.content": "",
|
||||
"btn.saveRule": "Save",
|
||||
"skills.title": "Skills",
|
||||
"skills.hint": "Official skill catalog. Import a zip or folder. DSH owns match and load.",
|
||||
"skills.hint.desktop": "This desktop host’s official skill catalog. Import a zip or folder. DSH owns match and load.",
|
||||
"skills.hint": "After import, DSH calls it: type /name in chat to load now; the model calls the skill tool when the task matches description or whenToUse. Writing「激活」in the body does nothing.",
|
||||
"skills.hint.desktop": "This desktop host’s official skill catalog. Type /name in chat to load; the model calls the skill tool when the task matches the description.",
|
||||
"skills.empty": "No user skills",
|
||||
"btn.importZip": "Import zip",
|
||||
"btn.importFolder": "Import folder",
|
||||
@@ -455,6 +459,10 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
"err.import.folder": "No files were read. Select the skill folder itself (it must contain SKILL.md).",
|
||||
"skills.pick": "Select a skill",
|
||||
"skills.invalid": "Official catalog will ignore this: invalid format",
|
||||
"skills.call.slash": "Type {cmd} in chat",
|
||||
"skills.call.model": "Model can load",
|
||||
"skills.call.modelOff": "Hidden from model",
|
||||
"skills.call.userOff": "/name disabled",
|
||||
"ph.skill.desc": "description (when to use)",
|
||||
"btn.saveSkill": "Save",
|
||||
"need.skill.id": "id must be kebab-case, e.g. code-review",
|
||||
@@ -1807,6 +1815,12 @@ window.__ModuleLoader__.load({ id: "dsh-purge", factory: (require) => {
|
||||
h("span", { className: "dshp-rule-meta" },
|
||||
(item.valid ? item.description : t("skills.invalid")) + " · " + formatSize(item.size),
|
||||
),
|
||||
item.valid ? h("span", { className: "dshp-rule-meta" },
|
||||
[
|
||||
item.userInvocable ? t("skills.call.slash", { cmd: "/" + item.id }) : t("skills.call.userOff"),
|
||||
item.modelInvocable ? t("skills.call.model") : t("skills.call.modelOff"),
|
||||
].join(" · "),
|
||||
) : null,
|
||||
),
|
||||
h("div", { className: "dshp-rule-ops" },
|
||||
h(Btn, {
|
||||
|
||||
Reference in new issue
Block a user