@hyzyn/dsh-plugin-kit 0.1.6 → 0.1.7
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 +1 -1
- package/README.md +1 -1
- package/cordis.patch.yml +0 -5
- package/package.json +2 -3
package/README.en.md
CHANGED
|
@@ -238,7 +238,7 @@ pnpm create-plugin <name> [id]
|
|
|
238
238
|
# Example: pnpm create-plugin pet-tracker pt → packages/pet-tracker (plugin id: pt)
|
|
239
239
|
```
|
|
240
240
|
|
|
241
|
-
The script copies the `
|
|
241
|
+
The script copies the `templates/hello` template, replaces the package name and plugin id, and automatically updates the aggregate package. Then:
|
|
242
242
|
|
|
243
243
|
1. Edit `packages/<name>/src/index.ts` to write your plugin logic;
|
|
244
244
|
2. Build and install locally for debugging:
|
package/README.md
CHANGED
|
@@ -243,7 +243,7 @@ pnpm create-plugin <name> [id]
|
|
|
243
243
|
# 例:pnpm create-plugin pet-tracker pt → packages/pet-tracker(插件 id: pt)
|
|
244
244
|
```
|
|
245
245
|
|
|
246
|
-
脚本会复制 `
|
|
246
|
+
脚本会复制 `templates/hello` 模板、替换包名与插件 id,并自动更新聚合包。然后:
|
|
247
247
|
|
|
248
248
|
1. 编辑 `packages/<name>/src/index.ts` 写插件逻辑;
|
|
249
249
|
2. 构建并本地安装调试:
|
package/cordis.patch.yml
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyzyn/dsh-plugin-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "通用 DSH 插件库(pnpm monorepo):模板插件、插件开发工具包、一键聚合安装包。根包同时是全家桶 bundle(dsh.bundle.patch),DSH 与插件市场可直接识别安装。",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -36,13 +36,12 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@hyzyn/dsh-codegraph": "0.1.6",
|
|
38
38
|
"@hyzyn/dsh-env": "0.1.5",
|
|
39
|
-
"@hyzyn/dsh-hello": "0.1.2",
|
|
40
39
|
"@hyzyn/dsh-mcp": "0.1.5",
|
|
41
40
|
"@hyzyn/dsh-profile": "0.1.5",
|
|
42
41
|
"@hyzyn/dsh-prompt": "0.1.4",
|
|
43
42
|
"@hyzyn/dsh-rss": "0.1.7",
|
|
44
43
|
"@hyzyn/dsh-search": "0.1.4",
|
|
45
|
-
"@hyzyn/dsh-tty": "0.
|
|
44
|
+
"@hyzyn/dsh-tty": "0.5.0"
|
|
46
45
|
},
|
|
47
46
|
"scripts": {
|
|
48
47
|
"build": "pnpm -r build",
|