dsh-run2skill 0.3.1 → 0.5.0-alpha.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 +16 -8
- package/README.md +16 -8
- package/lib/client.js +2434 -992
- package/lib/contract-vZz7H2_H.js +87 -0
- package/lib/index.d.ts +47 -56
- package/lib/index.js +225 -93
- package/lib/typert.host.d.ts +25 -0
- package/lib/typert.host.js +30 -0
- package/lib/typert.remote-client.d.ts +38 -0
- package/lib/typert.remote-client.js +2 -0
- package/package.json +58 -24
package/README.en.md
CHANGED
|
@@ -14,9 +14,11 @@ Have you run into any of these situations?
|
|
|
14
14
|
|
|
15
15
|
Run2Skill does not let an agent silently create permanent rules for itself. Every draft shows its source, intended scope, and complete content before you decide whether to save or discard it. Only an approved draft is written to DSH's native Skill directory.
|
|
16
16
|
|
|
17
|
-
> The current stable release is [`0.
|
|
18
|
-
|
|
19
|
-
`0.
|
|
17
|
+
> The current stable release is [`0.4.0`](https://www.npmjs.com/package/dsh-run2skill/v/0.4.0), for DSH Web `0.1.2-rc.1` only. The `0.5.0-alpha.2` preview is available under npm's `next` tag for DSH Web `0.1.7-rc.2` only.
|
|
18
|
+
|
|
19
|
+
`0.4.0` uses the Remote/API Gateway and browser-authentication contracts from DSH `0.1.2-rc.1`, and adapts its Session, Storage/Profile, Settings, and plugin-lifecycle changes. It supports only the retained built-in `standard` preset. Continue using `dsh-run2skill@0.3.1` with the older DSH `0.1.1-rc.2` line.
|
|
20
|
+
|
|
21
|
+
Low-noise learning status, **Synthesize this experience now**, revision requests that generate a new draft, and bounded preservation of important long-workflow evidence remain available. An immediate request still waits for the agent to stop and for complete facts, then follows the existing lookup, review, and publication safety gates. Internal batch counters are not shown in the settings page.
|
|
20
22
|
|
|
21
23
|
## See the complete flow
|
|
22
24
|
|
|
@@ -24,7 +26,7 @@ Run2Skill does not let an agent silently create permanent rules for itself. Ever
|
|
|
24
26
|
|
|
25
27
|
1. **Find the draft** — Run2Skill only notifies you when action is required and places the draft under **Settings → Plugins → Run2Skill**.
|
|
26
28
|
2. **Review its evidence and scope** — inspect the rationale, filtered conversation evidence, target scope, and the complete `SKILL.md` that would be written.
|
|
27
|
-
3. **Request a revision if needed** — leave one short instruction and Run2Skill generates a new complete draft; the old version is not published and the new one still needs review.
|
|
29
|
+
3. **Request a revision if needed** — leave one short instruction and Run2Skill generates a new complete draft; the old version is not published and the new one still needs review.
|
|
28
30
|
4. **Save only after approval** — successful results appear under Recent activity and remain ordinary native DSH Skills.
|
|
29
31
|
|
|
30
32
|
<details>
|
|
@@ -40,10 +42,16 @@ Run2Skill does not let an agent silently create permanent rules for itself. Ever
|
|
|
40
42
|
|
|
41
43
|
## Install
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
Check your DSH Web version, install Node.js `^22.19.0 || >=24.0.0`, and make sure both `dsh` and `pnpm` are available. For DSH `0.1.7-rc.2`, install the preview:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
dsh plugin --profile web add dsh-run2skill@0.5.0-alpha.2
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
For DSH `0.1.2-rc.1`, continue using the stable release:
|
|
44
52
|
|
|
45
53
|
```bash
|
|
46
|
-
dsh plugin --profile web add dsh-run2skill@0.
|
|
54
|
+
dsh plugin --profile web add dsh-run2skill@0.4.0
|
|
47
55
|
```
|
|
48
56
|
|
|
49
57
|
Restart DSH Web. Open **Settings → Plugins**; the plugin is loaded when the **Run2Skill** tab appears.
|
|
@@ -66,10 +74,10 @@ When something needs your attention, DSH shows one native notification. To revie
|
|
|
66
74
|
|
|
67
75
|
1. Open **Settings → Plugins → Run2Skill**.
|
|
68
76
|
2. Review the draft, its intended scope, evidence, and complete content.
|
|
69
|
-
3. Approve and save it, request a revision, discard it, or retry a failed save.
|
|
77
|
+
3. Approve and save it, request a revision, discard it, or retry a failed save.
|
|
70
78
|
4. After a successful save, it is an ordinary native DSH Skill and remains usable even if Run2Skill is later uninstalled.
|
|
71
79
|
|
|
72
|
-
If a draft is not right, submit one revision request of at most 2,048 UTF-8 bytes. The Host uses the current complete draft to generate a new immutable version, records the parent/child relationship, and invalidates the old approval. You must inspect and approve the new version. This is not a free-form editor and does not bypass lookup, human review, or safe publication.
|
|
80
|
+
If a draft is not right, submit one revision request of at most 2,048 UTF-8 bytes. The Host uses the current complete draft to generate a new immutable version, records the parent/child relationship, and invalidates the old approval. You must inspect and approve the new version. This is not a free-form editor and does not bypass lookup, human review, or safe publication.
|
|
73
81
|
|
|
74
82
|
Drafts can target the current project (`PROJECT`) or the current user (`USER`). The current release writes only to DSH's default Skill storage. If you replace or disable that storage, Run2Skill stops safely instead of guessing a path.
|
|
75
83
|
|
package/README.md
CHANGED
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
它不会让 Agent 偷偷给自己立规矩。每份技能草稿都可以先看来源、适用范围和完整内容,然后由你决定确认保存还是放弃草稿。只有确认后,它才会写入 DSH 的原生 Skill 目录。
|
|
18
18
|
|
|
19
|
-
> 当前稳定版为 [`0.
|
|
20
|
-
|
|
21
|
-
`0.
|
|
19
|
+
> 当前稳定版为 [`0.4.0`](https://www.npmjs.com/package/dsh-run2skill/v/0.4.0),仅支持 DSH Web `0.1.2-rc.1`。`0.5.0-alpha.2` 通过 npm `next` 标签提供预览,仅支持 DSH Web `0.1.7-rc.2`。
|
|
20
|
+
|
|
21
|
+
`0.4.0` 改用 DSH `0.1.2-rc.1` 的 Remote/API Gateway 与浏览器认证契约,并适配 Session、Storage/Profile、Settings 和插件生命周期变化。它只支持 RC1 保留的内置 `standard` preset;使用旧 DSH `0.1.1-rc.2` 时请继续安装 `dsh-run2skill@0.3.1`。
|
|
22
|
+
|
|
23
|
+
低噪声整理状态、“立即整理本次经验”、按意见生成新版草稿,以及长工作流关键证据保留继续保留。“立即整理”仍会等待 Agent 停止运行和事实完整,并继续经过查重、审核与发布安全门;设置页不会展示内部批次计数。
|
|
22
24
|
|
|
23
25
|
## 看一遍完整流程
|
|
24
26
|
|
|
@@ -26,7 +28,7 @@
|
|
|
26
28
|
|
|
27
29
|
1. **发现技能草稿**:Run2Skill 只在有事项需要处理时提醒你,并把草稿放在 **设置 → 插件 → Run2Skill**。
|
|
28
30
|
2. **核对来源与范围**:查看生成理由、经过过滤的对话证据、保存范围以及将要写入的完整 `SKILL.md`。
|
|
29
|
-
3. **不满意就要求修改**:写一条简短意见,Run2Skill 会生成新的完整草稿;旧版本不会直接发布,新版本仍需你审核。
|
|
31
|
+
3. **不满意就要求修改**:写一条简短意见,Run2Skill 会生成新的完整草稿;旧版本不会直接发布,新版本仍需你审核。
|
|
30
32
|
4. **确认后才保存**:成功结果会进入“最近活动”;保存下来的内容是普通的 DSH 原生 Skill。
|
|
31
33
|
|
|
32
34
|
<details>
|
|
@@ -42,10 +44,16 @@
|
|
|
42
44
|
|
|
43
45
|
## 安装
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
先确认你使用的 DSH Web 版本,已经安装 Node.js `^22.19.0 || >=24.0.0`,并能在终端运行 `dsh` 和 `pnpm`。DSH `0.1.7-rc.2` 安装预发布版:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
dsh plugin --profile web add dsh-run2skill@0.5.0-alpha.2
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
DSH `0.1.2-rc.1` 继续安装稳定版:
|
|
46
54
|
|
|
47
55
|
```bash
|
|
48
|
-
dsh plugin --profile web add dsh-run2skill@0.
|
|
56
|
+
dsh plugin --profile web add dsh-run2skill@0.4.0
|
|
49
57
|
```
|
|
50
58
|
|
|
51
59
|
重启 DSH Web。打开 **Settings → Plugins**,看到 **run2skill** 卡片就说明插件已加载。
|
|
@@ -68,10 +76,10 @@ run2skill 会在每轮对话完成后只做低成本记录,不会每轮调用
|
|
|
68
76
|
|
|
69
77
|
1. 打开 **Settings → Plugins → run2skill**。
|
|
70
78
|
2. 在待处理列表中查看技能草稿、适用范围和内容差异。
|
|
71
|
-
3. 选择确认并保存、要求修改、放弃草稿,或在保存失败后重试。
|
|
79
|
+
3. 选择确认并保存、要求修改、放弃草稿,或在保存失败后重试。
|
|
72
80
|
4. 保存成功后,结果就是普通的 DSH 原生 Skill;即使以后卸载 run2skill,它仍然可以被 DSH 使用。
|
|
73
81
|
|
|
74
|
-
如果草稿不合适,可以先写一条不超过 2048 UTF-8 字节的修改意见。Host 会基于当前完整草稿生成新的不可变版本,保留父子版本关系并让旧批准失效;你必须重新查看并确认新版本。这个入口不是自由编辑器,也不会绕过查重、人工审核或安全发布。
|
|
82
|
+
如果草稿不合适,可以先写一条不超过 2048 UTF-8 字节的修改意见。Host 会基于当前完整草稿生成新的不可变版本,保留父子版本关系并让旧批准失效;你必须重新查看并确认新版本。这个入口不是自由编辑器,也不会绕过查重、人工审核或安全发布。
|
|
75
83
|
|
|
76
84
|
技能草稿可以保存到当前项目(`PROJECT`)或当前用户(`USER`)范围。当前版本只会写入 DSH 默认的 Skill 存储目录;如果你改过 Skill 的存储方式或关闭了默认目录,run2skill 会停止保存,不会猜测写入位置。
|
|
77
85
|
|