dsh-skill-browser 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +63 -0
- package/cordis.patch.yml +7 -0
- package/lib/client.js +941 -0
- package/lib/index.js +436 -0
- package/lib/ledger-writer.js +416 -0
- package/lib/pick-dir.ps1 +14 -0
- package/lib/scan.js +220 -0
- package/lib/zh.js +84 -0
- package/package.json +53 -0
package/lib/zh.js
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
// dsh-skill-browser - category metadata for the skill library panel.
|
|
2
|
+
// 简介数据源:每个技能各自 SKILL.md frontmatter 的 description(插件不内置
|
|
3
|
+
// 任何技能名清单/字典——既避免泄漏作者技能库构成,也保证所有人看到的都是
|
|
4
|
+
// 自己技能库的准确描述)。
|
|
5
|
+
// 分类规则为「目录名前缀」的通用模式匹配,不含任何具体技能名枚举。
|
|
6
|
+
|
|
7
|
+
export var ZH = {};
|
|
8
|
+
|
|
9
|
+
// 一级分类(界面标签,按 CAT_RULES 命中顺序展示)。
|
|
10
|
+
export var CATS = [
|
|
11
|
+
{
|
|
12
|
+
id: "fluent", label: "Fluent/CFD 仿真", icon: "🌀",
|
|
13
|
+
subs: [
|
|
14
|
+
{ id: "router", label: "入口/路由/知识库" },
|
|
15
|
+
{ id: "rules", label: "铁律/纪律" },
|
|
16
|
+
{ id: "workflow", label: "总流程" },
|
|
17
|
+
{ id: "mesh", label: "网格划分" },
|
|
18
|
+
{ id: "geometry", label: "模型处理/几何" },
|
|
19
|
+
{ id: "solver", label: "求解处理" },
|
|
20
|
+
{ id: "monitor", label: "监控/进程" },
|
|
21
|
+
{ id: "fault", label: "故障/诊断" },
|
|
22
|
+
{ id: "files", label: "文件整理" },
|
|
23
|
+
{ id: "post", label: "后处理" },
|
|
24
|
+
{ id: "data", label: "数据/通用" }
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{ id: "dsh", label: "DSH 工具链", icon: "🛠️" },
|
|
28
|
+
{ id: "agent", label: "多端协同", icon: "🤖" },
|
|
29
|
+
{ id: "excel", label: "Excel/表格", icon: "📊" },
|
|
30
|
+
{ id: "doc", label: "文档处理", icon: "📄" },
|
|
31
|
+
{ id: "image", label: "图片/视觉", icon: "🖼️" },
|
|
32
|
+
{ id: "media", label: "语音/媒体", icon: "🎬" },
|
|
33
|
+
{ id: "data", label: "数据/可视化", icon: "📈" },
|
|
34
|
+
{ id: "dev", label: "开发/技能治理", icon: "🧑💻" },
|
|
35
|
+
{ id: "design", label: "设计/UX", icon: "🎨" },
|
|
36
|
+
{ id: "research", label: "搜索/研究/写作", icon: "🔍" },
|
|
37
|
+
{ id: "system", label: "系统/Windows", icon: "🖥️" },
|
|
38
|
+
{ id: "output", label: "输出/执行治理", icon: "📏" },
|
|
39
|
+
{ id: "fun", label: "生活/娱乐", icon: "🎈" },
|
|
40
|
+
{ id: "other", label: "其他", icon: "📦" }
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
// 二级分类规则(仅对命中所属一级分类的目录名再匹配,顺序即优先级)。
|
|
44
|
+
// 全部为「功能词前缀」模式,不含具体技能名。
|
|
45
|
+
export var SUB_RULES = {
|
|
46
|
+
fluent: [
|
|
47
|
+
{ id: "router", re: /^fluent-(control-laws|quick-reference|cfd|doc-query)/ },
|
|
48
|
+
{ id: "mesh", re: /^fluent-meshing-|^geometry-/ },
|
|
49
|
+
{ id: "geometry", re: /^geometry-|^spaceclaim-|^model-/ },
|
|
50
|
+
{ id: "workflow", re: /^fluent-(muti-|workflow-|case-workflow-)/ },
|
|
51
|
+
{ id: "files", re: /^fluent-(file-|case-|junk-|mesh-packaging|backup)/ },
|
|
52
|
+
{ id: "solver", re: /^fluent-(setfile-|initialization|discretization-|precompute-|monitor-report|mrf-|aeration-|pbm-calculation|pbm-export|session-connect|gui-open|run-continuity|torque-)/ },
|
|
53
|
+
{ id: "post", re: /^fluent-(contour-|xyplot-|line-surface-|postprocess-|liquid-surface-|shear-|data-postprocess-|animation-)|^pbm-data-/ },
|
|
54
|
+
{ id: "monitor", re: /^fluent-(operation-monitor|run-health-check|midrun-save|detached-|process-|iter-monitor-)/ },
|
|
55
|
+
{ id: "fault", re: /^fluent-(run-failure-|divergence-|path-check|path-index-|prev-run-)/ },
|
|
56
|
+
{ id: "data", re: /^torque-|^impeller-|^pbm-/ },
|
|
57
|
+
{ id: "rules", re: /^fluent-/ }
|
|
58
|
+
],
|
|
59
|
+
dsh: [
|
|
60
|
+
{ id: "cfg", re: /^dsh-(desktop-|rollback|backup|quick-reference)/ },
|
|
61
|
+
{ id: "dev", re: /^dsh-(plugin-|skill-)/ },
|
|
62
|
+
{ id: "remote", re: /^dsh-(mobile-|message-|web-|push)/ },
|
|
63
|
+
{ id: "board", re: /^dsh-taskboard-/ }
|
|
64
|
+
]
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// 一级分类规则(子分类之前的初筛),同样为纯前缀/通用词模式。
|
|
68
|
+
// 单词型技能名用 (-|$) 兼容「连字符前缀」与「完整单词」两种目录名。
|
|
69
|
+
export var CAT_RULES = [
|
|
70
|
+
{ id: "fluent", re: /^(fluent|ansys|cfd|mesh|geometry|spaceclaim|stirrer|impeller|pbm|torque)(-|$)/ },
|
|
71
|
+
{ id: "dsh", re: /^dsh(-|$)/ },
|
|
72
|
+
{ id: "agent", re: /^(acp|subagent)(-|$)/ },
|
|
73
|
+
{ id: "excel", re: /^(excel|xlsx)(-|$)/ },
|
|
74
|
+
{ id: "doc", re: /^(docx|pdf|pptx|markdown|mermaid|patent)(-|$)/ },
|
|
75
|
+
{ id: "image", re: /^(image|picture|photo|wallpaper|canvas|drawing|diagram)(-|$)/ },
|
|
76
|
+
{ id: "media", re: /^(voice|tts|video|audio|music|film|movie|media|subtitle)(-|$)/ },
|
|
77
|
+
{ id: "data", re: /^(analyze|explore-data|create-viz|build-dashboard|data-visualization|statistical|validate-data|sql|write-query)(-|$)/ },
|
|
78
|
+
{ id: "dev", re: /^(github|git|playwright|remotion|develop|frontend|code-explanation|skill|create-plan|export)(-|$)/ },
|
|
79
|
+
{ id: "design", re: /^(design|ux|accessibility|style)(-|$)/ },
|
|
80
|
+
{ id: "research", re: /^(web-search|trending|technology-news|research|article|content-planner|user-research|imap|smtp|youdaonote)(-|$)/ },
|
|
81
|
+
{ id: "system", re: /^(windows|printer|desktop|delete|recycle|cleanup|archive|download|browser|computer|file-path|powershell|local-tools|baidu)(-|$)/ },
|
|
82
|
+
{ id: "output", re: /^(concise|caveman|token|new-topic|todo|goal|task-parallel|j-space|conversation-context|chinese-response)(-|$)/ },
|
|
83
|
+
{ id: "fun", re: /^(weather|hatch|pet)(-|$)/ }
|
|
84
|
+
];
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-skill-browser",
|
|
3
|
+
"version": "1.5.4",
|
|
4
|
+
"description": "DSH 技能浏览器:悬浮球面板浏览共享技能库(分类/中文简介/搜索/失效台账/全文查看),含 DSH 设置页悬浮球显隐开关与一键恢复默认位置按钮、技能库位置可配置(原生目录选择框)与技能失效台账自动登记(自动/人工分开显示);推荐插件位仅保留面板设置展开区一处。Skill library browser panel with categories, Chinese descriptions, configurable skill root with native directory chooser, one-click ball position reset and automatic skill-failure ledger.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=18"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": "./lib/index.js",
|
|
13
|
+
"./client": "./lib/client.js",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"lib/**/*.js",
|
|
18
|
+
"lib/**/*.ps1",
|
|
19
|
+
"cordis.patch.yml",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"dsh-plugin",
|
|
26
|
+
"deepseek-harness",
|
|
27
|
+
"skill",
|
|
28
|
+
"技能",
|
|
29
|
+
"skills-browser",
|
|
30
|
+
"skill-browser",
|
|
31
|
+
"fluent",
|
|
32
|
+
"cfd",
|
|
33
|
+
"分类",
|
|
34
|
+
"category",
|
|
35
|
+
"chinese",
|
|
36
|
+
"中文简介"
|
|
37
|
+
],
|
|
38
|
+
"dsh": {
|
|
39
|
+
"bundle": {
|
|
40
|
+
"patch": "./cordis.patch.yml"
|
|
41
|
+
},
|
|
42
|
+
"client": {
|
|
43
|
+
"inject": [
|
|
44
|
+
"@deepseek-ai/dsh-client-connection",
|
|
45
|
+
"@deepseek-ai/dsh-client-runtime",
|
|
46
|
+
"@deepseek-ai/dsh-client-ui-settings",
|
|
47
|
+
"@deepseek-ai/dsh-client-ui-slots",
|
|
48
|
+
"@deepseek-ai/dsh-client-locale"
|
|
49
|
+
],
|
|
50
|
+
"platform": "web"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|