@goodandready/dsh-dsml-artifact-guard 0.1.4 → 0.1.5

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.md CHANGED
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
 
14
14
  <p align="center">
15
- <a href="https://goodandready.app/"><img src="https://img.shields.io/badge/All_Author_Projects-goodandready.app-ff4500.svg?style=for-the-badge&logo=rocket&logoColor=white&labelColor=1a1a2e" alt="GoodAndReady Showcase"></a>
15
+ <a href="https://goodandready.app/"><img src="https://img.shields.io/badge/🌐_DSH_Hub-goodandready.app-ff4500.svg?style=for-the-badge&labelColor=1a1a2e" alt="GoodAndReady Showcase"></a>
16
16
  </p>
17
17
 
18
18
  <p align="center">
@@ -21,6 +21,16 @@
21
21
  <a href="docs/README.zh.md"><b>🇨🇳 中文说明</b></a>
22
22
  </p>
23
23
 
24
+ <table align="center">
25
+ <tr>
26
+ <td align="center">
27
+ ⭐ <strong>If you like this plugin, please star it on GitHub</strong> — it shows me that the plugin is useful to you and motivates me to keep developing it.
28
+ <br><br>
29
+ 🐛 <strong>If you find a bug or would like to request a feature</strong>, open a GitHub issue in any language — I will review your proposal and implement useful suggestions in a future plugin version.
30
+ </td>
31
+ </tr>
32
+ </table>
33
+
24
34
  </div>
25
35
 
26
36
  ---
@@ -64,15 +74,15 @@ graph TD
64
74
  Audit["Audit Mode<br/>(Emits ctx.logger warning only)"]
65
75
  end
66
76
 
67
- Turn -->|ctx.on('llm/stream')| Hook
77
+ Turn -->|llm/stream hook| Hook
68
78
  Hook --> ScopeCheck
69
79
  ScopeCheck -->|No| PassThrough
70
80
  ScopeCheck -->|Yes| Buffer
71
81
  PassThrough --> ChatUI
72
82
  Buffer --> Detector
73
83
  Detector -->|No Artifact| ChatUI
74
- Detector -->|Artifact Found & sanitize| Sanitize --> ChatUI
75
- Detector -->|Artifact Found & audit| Audit --> ChatUI
84
+ Detector -->|Artifact detected: sanitize| Sanitize --> ChatUI
85
+ Detector -->|Artifact detected: audit| Audit --> ChatUI
76
86
  ```
77
87
 
78
88
  ---
@@ -162,3 +172,7 @@ MIT © [GooDAnDReaDY](https://github.com/GooDAnDReaDY)
162
172
  #11: schema `mode` default set to `sanitize` for out-of-the-box protection.
163
173
  #11: robust open/close tag balancing in `sanitizeDsmlArtifacts` to handle prior closed blocks in prose.
164
174
  #11: repo hygiene with tracked `package-lock.json` and design contract.
175
+
176
+ ## Changed in v0.1.5
177
+
178
+ #15: fix Mermaid diagram edge label syntax on GitHub and add mandatory repository support block.
package/docs/README.ru.md CHANGED
@@ -12,7 +12,7 @@
12
12
  </p>
13
13
 
14
14
  <p align="center">
15
- <a href="https://goodandready.app/"><img src="https://img.shields.io/badge/Все_проекты_автора-goodandready.app-ff4500.svg?style=for-the-badge&logo=rocket&logoColor=white&labelColor=1a1a2e" alt="Все проекты автора"></a>
15
+ <a href="https://goodandready.app/"><img src="https://img.shields.io/badge/🌐_DSH_Hub-goodandready.app-ff4500.svg?style=for-the-badge&labelColor=1a1a2e" alt="GoodAndReady Showcase"></a>
16
16
  </p>
17
17
 
18
18
  <p align="center">
@@ -21,6 +21,16 @@
21
21
  <a href="README.zh.md"><b>🇨🇳 中文说明</b></a>
22
22
  </p>
23
23
 
24
+ <table align="center">
25
+ <tr>
26
+ <td align="center">
27
+ ⭐ <strong>Если вам нравится этот плагин, поставьте ему звезду на GitHub</strong> — это покажет мне, что плагин вам полезен, и будет мотивировать меня развивать его дальше.
28
+ <br><br>
29
+ 🐛 <strong>Если вы нашли баг или хотите предложить новый функционал</strong>, создайте issue на GitHub на любом языке — я рассмотрю ваше предложение и реализую полезные идеи в одной из следующих версий плагина.
30
+ </td>
31
+ </tr>
32
+ </table>
33
+
24
34
  </div>
25
35
 
26
36
  ---
@@ -64,15 +74,15 @@ graph TD
64
74
  Audit["Режим Audit<br/>(Логирование через ctx.logger)"]
65
75
  end
66
76
 
67
- Turn -->|ctx.on('llm/stream')| Hook
77
+ Turn -->|Хук llm/stream| Hook
68
78
  Hook --> ScopeCheck
69
79
  ScopeCheck -->|Нет| PassThrough
70
80
  ScopeCheck -->|Да| Buffer
71
81
  PassThrough --> ChatUI
72
82
  Buffer --> Detector
73
83
  Detector -->|Нет артефакта| ChatUI
74
- Detector -->|Артефакт найден & sanitize| Sanitize --> ChatUI
75
- Detector -->|Артефакт найден & audit| Audit --> ChatUI
84
+ Detector -->|Артефакт найден: sanitize| Sanitize --> ChatUI
85
+ Detector -->|Артефакт найден: audit| Audit --> ChatUI
76
86
  ```
77
87
 
78
88
  ---
@@ -162,3 +172,7 @@ MIT © [GooDAnDReaDY](https://github.com/GooDAnDReaDY)
162
172
  #11: значение `mode` по умолчанию в схеме переведено на `sanitize` для защиты «из коробки».
163
173
  #11: балансировка открывающих и закрывающих тегов в `sanitizeDsmlArtifacts` при наличии закрытых блоков в прозе.
164
174
  #11: гигиена репозитория с отслеживаемым `package-lock.json` и дизайн-контрактом.
175
+
176
+ ## Изменения в v0.1.5
177
+
178
+ #15: исправлен синтаксис стрелок диаграммы Mermaid на GitHub и добавлен обязательный блок поддержки репозитория.
package/docs/README.zh.md CHANGED
@@ -21,6 +21,16 @@
21
21
  <a href="README.zh.md"><b>🇨🇳 中文说明</b></a>
22
22
  </p>
23
23
 
24
+ <table align="center">
25
+ <tr>
26
+ <td align="center">
27
+ ⭐ <strong>如果您喜欢这个插件,请在 GitHub 上为它点亮 Star</strong> — 这能让我知道插件对您有用,并鼓励我继续开发和维护它。
28
+ <br><br>
29
+ 🐛 <strong>如果您发现 Bug 或希望增加功能</strong>,请使用任意语言在 GitHub 上提交 Issue — 我会评估您的建议,并在后续版本中实现有价值的改进。
30
+ </td>
31
+ </tr>
32
+ </table>
33
+
24
34
  </div>
25
35
 
26
36
  ---
@@ -64,15 +74,15 @@ graph TD
64
74
  Audit["审计模式 (Audit)<br/>(仅记录日志不改动文本)"]
65
75
  end
66
76
 
67
- Turn -->|ctx.on('llm/stream')| Hook
77
+ Turn -->|llm/stream 拦截| Hook
68
78
  Hook --> ScopeCheck
69
79
  ScopeCheck -->|未命中| PassThrough
70
80
  ScopeCheck -->|命中| Buffer
71
81
  PassThrough --> ChatUI
72
82
  Buffer --> Detector
73
83
  Detector -->|无异常| ChatUI
74
- Detector -->|检出残留 & sanitize| Sanitize --> ChatUI
75
- Detector -->|检出残留 & audit| Audit --> ChatUI
84
+ Detector -->|检出残留: sanitize| Sanitize --> ChatUI
85
+ Detector -->|检出残留: audit| Audit --> ChatUI
76
86
  ```
77
87
 
78
88
  ---
@@ -162,3 +172,7 @@ MIT © [GooDAnDReaDY](https://github.com/GooDAnDReaDY)
162
172
  #11: 将 schema 中 `mode` 默认值设置为 `sanitize`,实现开箱即用的清理保护。
163
173
  #11: 在 `sanitizeDsmlArtifacts` 中实现严格的开闭标签深度平衡,精准处理正文中已闭合标签与末尾泄漏标签。
164
174
  #11: 纳入 `package-lock.json` 跟踪并完善设计契约。
175
+
176
+ ## v0.1.5 变更说明
177
+
178
+ #15: 修复 GitHub 上 Mermaid 流程图边标签语法解析错误,并补全标准项目支持引导区。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-dsml-artifact-guard",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Sanitizes leaked DeepSeek DSML closing tags from model text streams",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",