dsh-procedures 0.0.0-stage → 1.0.0
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/CHANGELOG.md +46 -0
- package/LICENSE +21 -0
- package/PRO.md +47 -0
- package/README.en.md +90 -0
- package/README.md +353 -2
- package/bench/search.mjs +74 -0
- package/bin/hint.mjs +115 -0
- package/bin/procedures.mjs +295 -0
- package/cordis.patch.yml +6 -0
- package/icon.svg +10 -0
- package/index.js +374 -0
- package/lib/cards.mjs +619 -0
- package/lib/hint.mjs +17 -0
- package/lib/hook-text.mjs +26 -0
- package/lib/llm.mjs +243 -0
- package/lib/stats.mjs +103 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +55 -4
- package/portable/AGENTS-snippet.md +17 -0
- package/portable/README.md +121 -0
- package/portable/setup.mjs +115 -0
- package/portable/templates/INDEX.md +9 -0
- package/portable/templates/_inbox.md +5 -0
- package/portable/templates/_/346/250/241/346/235/277-spell.md +38 -0
- package/portable/templates/_/346/250/241/346/235/277.md +43 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: spell-<动作>
|
|
3
|
+
title: <一句话说清这个动作>
|
|
4
|
+
type: spell
|
|
5
|
+
rarity: common
|
|
6
|
+
language: powershell
|
|
7
|
+
triggers:
|
|
8
|
+
- <任务里会出现的说法>
|
|
9
|
+
anchors:
|
|
10
|
+
- <任务里会原样出现的字:命令名 / 报错原文 / 域名>
|
|
11
|
+
valid_until: null
|
|
12
|
+
environment: ""
|
|
13
|
+
created: 2026-11-06
|
|
14
|
+
last_hit: null
|
|
15
|
+
hits: 0
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
# 技能-<动作>
|
|
19
|
+
|
|
20
|
+
## 触发
|
|
21
|
+
<什么时候用这张技能卡>
|
|
22
|
+
|
|
23
|
+
## 可执行
|
|
24
|
+
```powershell
|
|
25
|
+
<可直接运行的命令,带注释说明参数>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 验证
|
|
29
|
+
<怎么确认执行成功:输出 / 退出码 / 文件变化>
|
|
30
|
+
|
|
31
|
+
## 注意
|
|
32
|
+
- <风险、前置条件、不要用在什么场景>
|
|
33
|
+
|
|
34
|
+
证据:<会话 id / commit / 文件路径>
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
写卡纪律:技能卡和执行片段都不自动运行;命中后插件只提示“先读卡、确认安全后再执行”。
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: <分类>-<现象>
|
|
3
|
+
title: <一句话说清现象>
|
|
4
|
+
type: trap
|
|
5
|
+
rarity: common
|
|
6
|
+
triggers:
|
|
7
|
+
- <任务里会出现的说法>
|
|
8
|
+
anchors:
|
|
9
|
+
- <任务里会原样出现的字:域名 / 命令名 / 扩展名 / 报错原文>
|
|
10
|
+
requires: []
|
|
11
|
+
excludes: []
|
|
12
|
+
valid_until: null
|
|
13
|
+
environment: ""
|
|
14
|
+
created: 2026-11-06
|
|
15
|
+
last_hit: null
|
|
16
|
+
hits: 0
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
# <分类>-<现象>
|
|
20
|
+
|
|
21
|
+
## 触发
|
|
22
|
+
<什么现象下读这张卡;写成任务里会出现的词>
|
|
23
|
+
|
|
24
|
+
## 首选
|
|
25
|
+
<可直接复制的那一条:命令 / 参数 / 路径。不带解释。>
|
|
26
|
+
|
|
27
|
+
## 被挡时
|
|
28
|
+
<首选被挡时的兜底,1–2 条>
|
|
29
|
+
|
|
30
|
+
## 别再来
|
|
31
|
+
| 弯路 | 为什么不通 |
|
|
32
|
+
| --- | --- |
|
|
33
|
+
| <真试过并失败的> | <报错原文 / 为什么不通> |
|
|
34
|
+
|
|
35
|
+
## 注意
|
|
36
|
+
- <为什么会错 —— 这条最贵>
|
|
37
|
+
- <判据:怎么确认这次真的成了>
|
|
38
|
+
|
|
39
|
+
证据:<会话 id / commit / 文件路径>
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
写卡纪律(不要写进卡里):正文 ≤ 2 KB;删叙述不删内容;锚点 3–8 个;只收复发或代价大的坑;`valid_until` 到期前记得复核或退役。`requires` 是所有词都出现才命中,`excludes` 是出现任一就跳过;用它们压掉误报(例:桌面卡加 `excludes: [out of range]`)。
|