dsh-go-skills-manager 1.0.0 → 1.0.2
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/README.en.md +63 -0
- package/README.md +23 -17
- package/package.json +2 -3
package/README.en.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# dsh-go-skills-manager
|
|
2
|
+
|
|
3
|
+
[中文](./README.md) | **English**
|
|
4
|
+
|
|
5
|
+
A skills manager for dsh-go (the DSH mobile app), adapted and trimmed from the open-source [skills-manager](https://github.com/shenysun/skills-manager) (MIT). For the full upstream documentation — architecture, ADRs, the complete CLI reference and the Dashboard — see the **[official upstream README](https://github.com/shenysun/skills-manager#readme)**.
|
|
6
|
+
|
|
7
|
+
The plugin is submitted to the [dsh-go-market](https://github.com/ccch1mneyyy/dsh-go-market) catalog. It works out of the box: **toggle skills globally, pin them to a single workspace, update and run health checks right from the panel**, or just ask the agent in chat ("install a skill", "update my skills") and the bundled skills-manager skill takes over.
|
|
8
|
+
|
|
9
|
+
## How it works
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
~/.skills-manager/ ← hub: the single content authority (skills/ + registry.yaml)
|
|
13
|
+
│ distribute
|
|
14
|
+
├─ global: ~/.dsh/skills/<skill> (symlink, one copy in the hub)
|
|
15
|
+
└─ project: <workspace>/.dsh/skills/<skill> (copy; /sdcard has no symlinks)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- **Global toggle** = user-level distribute / undistribute (symlink attach/detach; the DSH engine watcher picks it up, no restart needed)
|
|
19
|
+
- **Workspace pinning** = project-level distribution, effective only in that workspace (the engine natively scans `<workspace>/.dsh/skills`)
|
|
20
|
+
- **Update anchoring** = the tree SHA of the skill's own upstream subdirectory; unrelated upstream commits never trigger a download
|
|
21
|
+
- **Bundled CLI** = a trimmed skills-manager shipped with the plugin (~0.5 MB), single-shot processes, zero daemons
|
|
22
|
+
|
|
23
|
+
## Panel entry
|
|
24
|
+
|
|
25
|
+
- "All features" / the conversation "Plugins" tab / the plugin's own entry → "Skills manager"
|
|
26
|
+
- Tap a skill row = global on/off; multi-select to pin to the current workspace; "Doctor" and "Update all"
|
|
27
|
+
|
|
28
|
+
## CLI (bundled, usable from a terminal)
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
node cli/dist/cli.js add <owner/repo> -s <subpath> -y # install (with security scan)
|
|
32
|
+
node cli/dist/cli.js update # update (SHA-anchored)
|
|
33
|
+
node cli/dist/cli.js list # installed skills (JSON)
|
|
34
|
+
node cli/dist/cli.js doctor # health checks
|
|
35
|
+
node cli/dist/cli.js distribute --to project --project <workspace> -a dsh-go -s <skill>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
For every command and the design documents (ADRs), see the [official upstream README](https://github.com/shenysun/skills-manager#readme).
|
|
39
|
+
|
|
40
|
+
## Growth-proof design (stays clean the more you use it)
|
|
41
|
+
|
|
42
|
+
`cli/gc.sh` runs asynchronously after every operation (self-throttled to once per 24h, millisecond checks):
|
|
43
|
+
|
|
44
|
+
| Item | Limit |
|
|
45
|
+
|---|---|
|
|
46
|
+
| distribute backups | expire after 7 days |
|
|
47
|
+
| activity / distributions logs | tail-truncated at 256 KiB |
|
|
48
|
+
| detection log | truncated at 128 KiB |
|
|
49
|
+
| V8 compile cache | rebuilt above 4 MiB |
|
|
50
|
+
|
|
51
|
+
## Rebuild from source
|
|
52
|
+
|
|
53
|
+
`src/` contains the trimmed upstream sources (dashboard, sync, preset/categories, backup, archive, adopt, migrate-*, trigger, audit commands and 7 runtime dependencies removed; the CLI runtime needs only commander + yaml). Build on a native Linux filesystem — the fuse-mounted /sdcard cannot install build dependencies:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
scripts/build.sh # installs typescript, compiles, copies the catalog snapshot, strips sourceMaps
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## License & credits
|
|
60
|
+
|
|
61
|
+
MIT — see [LICENSE](./LICENSE): upstream © [shenysun](https://github.com/shenysun/skills-manager), dsh-go adaptation © [xiroic-x](https://github.com/xiroic-x).
|
|
62
|
+
|
|
63
|
+
<!-- Upstream official README reference: https://github.com/shenysun/skills-manager#readme -->
|
package/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
# dsh-go-skills-manager
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**中文** | [English](./README.en.md)
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
dsh-go(DSH 手机 App)的技能管理器:基于开源 [skills-manager](https://github.com/shenysun/skills-manager)(MIT)裁剪适配。上游的完整文档(架构、ADR、CLI 全量命令、Dashboard 等)见 **[官方 README](https://github.com/shenysun/skills-manager#readme)** 与 [README.zh-CN](https://github.com/shenysun/skills-manager/blob/main/README.zh-CN.md)。
|
|
6
|
+
|
|
7
|
+
插件已提交到 [dsh-go-market](https://github.com/ccch1mneyyy/dsh-go-market) 插件市场,装好即用:**面板里点按完成技能的全局开关、按工作区固定、更新与体检**,也可以在对话里说「装个技能」「更新技能」交给 skills-manager 技能处理。
|
|
6
8
|
|
|
7
9
|
## 工作方式
|
|
8
10
|
|
|
@@ -16,18 +18,7 @@ dsh-go(DSH 手机 App)的技能管理器:基于开源 [shenysun/skills-man
|
|
|
16
18
|
- **全局开关** = user 级 distribute / undistribute(软链挂摘,DSH 引擎 watcher 自动发现,无需重启)
|
|
17
19
|
- **工作区固定** = project 级分发,只在该工作区生效(引擎原生支持 `<工作区>/.dsh/skills`)
|
|
18
20
|
- **更新锚定** = 上游技能子目录 tree SHA,无关提交不触发下载
|
|
19
|
-
- **内置 CLI** = 插件自带精简版 skills-manager
|
|
20
|
-
|
|
21
|
-
## 防增长设计(越用越干净)
|
|
22
|
-
|
|
23
|
-
`cli/gc.sh` 在每次操作后异步触发(自带 24h 节流,毫秒级检查):
|
|
24
|
-
|
|
25
|
-
| 项目 | 上限 |
|
|
26
|
-
|---|---|
|
|
27
|
-
| 分发备份 distribute-backups | 7 天过期 |
|
|
28
|
-
| activity / distributions 日志 | 256 KiB 截尾 |
|
|
29
|
-
| detection 日志 | 128 KiB 截断 |
|
|
30
|
-
| V8 编译缓存 | 4 MiB 重建 |
|
|
21
|
+
- **内置 CLI** = 插件自带精简版 skills-manager(约 0.5 MB),单次进程、零常驻
|
|
31
22
|
|
|
32
23
|
## 面板入口
|
|
33
24
|
|
|
@@ -44,14 +35,29 @@ node cli/dist/cli.js doctor # 体检
|
|
|
44
35
|
node cli/dist/cli.js distribute --to project --project <工作区> -a dsh-go -s <技能>
|
|
45
36
|
```
|
|
46
37
|
|
|
38
|
+
完整命令与设计文档(ADR)见上游 [官方 README](https://github.com/shenysun/skills-manager#readme)。
|
|
39
|
+
|
|
40
|
+
## 防增长设计(越用越干净)
|
|
41
|
+
|
|
42
|
+
`cli/gc.sh` 在每次操作后异步触发(自带 24h 节流,毫秒级检查):
|
|
43
|
+
|
|
44
|
+
| 项目 | 上限 |
|
|
45
|
+
|---|---|
|
|
46
|
+
| 分发备份 distribute-backups | 7 天过期 |
|
|
47
|
+
| activity / distributions 日志 | 256 KiB 截尾 |
|
|
48
|
+
| detection 日志 | 128 KiB 截断 |
|
|
49
|
+
| V8 编译缓存 | 4 MiB 重建 |
|
|
50
|
+
|
|
47
51
|
## 从源码重建
|
|
48
52
|
|
|
49
|
-
`src/` 是裁剪后的上游源码(删 dashboard、sync、preset/categories、backup、archive、adopt、migrate-*、trigger、audit 等命令与 7 个运行时依赖,CLI 运行时仅剩 commander + yaml
|
|
53
|
+
`src/` 是裁剪后的上游源码(删 dashboard、sync、preset/categories、backup、archive、adopt、migrate-*、trigger、audit 等命令与 7 个运行时依赖,CLI 运行时仅剩 commander + yaml)。构建需在 Linux 原生文件系统进行(/sdcard 的 fuse 挂载无法安装构建依赖):
|
|
50
54
|
|
|
51
55
|
```sh
|
|
52
56
|
scripts/build.sh # 安装 typescript、tsc 编译、复制 catalog 快照、清理 sourceMap
|
|
53
57
|
```
|
|
54
58
|
|
|
55
|
-
##
|
|
59
|
+
## 许可证与致谢
|
|
60
|
+
|
|
61
|
+
MIT —— 版权与署名见 [LICENSE](./LICENSE):上游 © [shenysun](https://github.com/shenysun/skills-manager),dsh-go 适配 © [xiroic-x](https://github.com/xiroic-x)。
|
|
56
62
|
|
|
57
|
-
|
|
63
|
+
<!-- 引用上游官方 README:https://github.com/shenysun/skills-manager#readme -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-go-skills-manager",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "dsh-go 技能管理器:hub + 软链/复制分发,全局开关与按工作区固定,内置精简 skills-manager CLI",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -46,8 +46,7 @@
|
|
|
46
46
|
"icon": "skill",
|
|
47
47
|
"placement": [
|
|
48
48
|
"session.tab",
|
|
49
|
-
"features"
|
|
50
|
-
"plugin"
|
|
49
|
+
"features"
|
|
51
50
|
]
|
|
52
51
|
}
|
|
53
52
|
]
|