dsh-mask 0.2.22 → 0.2.23
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 +6 -0
- package/README-es.md +167 -57
- package/README-hi.md +168 -58
- package/README-pt.md +167 -57
- package/README-zh.md +168 -58
- package/README.md +168 -63
- package/package.json +8 -8
package/README-pt.md
CHANGED
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
|
|
22
22
|
[English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
|
|
23
23
|
|
|
24
|
+
```sh
|
|
25
|
+
dsh plugin --profile <name> add dsh-mask
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
24
29
|
</div>
|
|
25
30
|
|
|
26
31
|
---
|
|
@@ -29,11 +34,20 @@
|
|
|
29
34
|
**📖 Base de conhecimento do ecossistema** — dados medidos, não marketing: [guia de desenvolvimento · dados de seleção · critérios de manutenção](https://perrylink.github.io/dsh-plugin-guide/).
|
|
30
35
|
|
|
31
36
|
<!-- star-cta -->
|
|
37
|
+
## Install & uninstall
|
|
38
|
+
|
|
39
|
+
- **Canal git**: `dsh plugin --profile web add github:PerryLink/dsh-mask` (equivale a `git+https://github.com/PerryLink/dsh-mask.git`). Sem etapa de build.
|
|
40
|
+
- **Canal npm**: `dsh plugin --profile web add dsh-mask`.
|
|
41
|
+
- **Canal tarball**: `pnpm pack` e depois `dsh plugin --profile web add ./dsh-mask-<version>.tgz`.
|
|
42
|
+
- **Desinstalar**: `dsh plugin --profile web remove dsh-mask`.
|
|
43
|
+
|
|
44
|
+
`dsh-mask` não inclui mais a pilha de armazenamento. Perfis que já a compõem (o perfil `web` o faz, via `@deepseek-ai/dsh-web-app`) fornecem `storageDomain`, então a persistência funciona imediatamente. Em um perfil bare sem armazenamento o plugin monta e mascara mesmo assim, mas a tabela é só em memória (perdida ao reiniciar): componha a pilha de armazenamento no seu patch de perfil, ou defina `persistRestoreTable: false`.
|
|
45
|
+
|
|
32
46
|
## ⭐ 如果它帮到了你
|
|
33
47
|
|
|
34
48
|
Este plugin faz parte da [família de plugins DSH](https://github.com/PerryLink) (mais de 40, todos Apache-2.0). Se for útil, **deixe uma estrela**: não desbloqueia nada, mas ajuda a próxima pessoa a encontrá-lo.
|
|
35
49
|
|
|
36
|
-
*English:* part of a
|
|
50
|
+
*English:* part of a 95 plugin family for DeepSeek Harness. If it is useful, **a star helps the next person find it** — nothing is gated behind it.
|
|
37
51
|
|
|
38
52
|
## What is dsh-mask?
|
|
39
53
|
|
|
@@ -41,9 +55,10 @@ Middleware de mascaramento de PII para o DeepSeek Harness: anonimize dados pesso
|
|
|
41
55
|
|
|
42
56
|
Telefones, e-mails, documentos, cartões, chaves e mais viram marcadores no limite do modelo; o texto simples nunca entra no seu registro de sessão.
|
|
43
57
|
|
|
44
|
-

|
|
59
|
+
|
|
60
|
+
*Visão geral do fluxo: chamada → plugin → resultado. Os exemplos abaixo usam a superfície real de comandos.*
|
|
45
61
|
|
|
46
|
-

|
|
47
62
|
|
|
48
63
|
*A mesma execução, animada.*
|
|
49
64
|
|
|
@@ -106,14 +121,54 @@ mask: restored 1 placeholder(s): <PHONE_1>
|
|
|
106
121
|
file: /tmp/dsh-mask-restore/restore-1f0c….txt (mode 0600, one file per session)
|
|
107
122
|
```
|
|
108
123
|
|
|
109
|
-
|
|
124
|
+
### Exemplos
|
|
110
125
|
|
|
111
|
-
|
|
112
|
-
- **Canal npm**: `dsh plugin --profile web add dsh-mask`.
|
|
113
|
-
- **Canal tarball**: `pnpm pack` e depois `dsh plugin --profile web add ./dsh-mask-<version>.tgz`.
|
|
114
|
-
- **Desinstalar**: `dsh plugin --profile web remove dsh-mask`.
|
|
126
|
+
São os pontos de entrada reais; instale e chame um.
|
|
115
127
|
|
|
116
|
-
|
|
128
|
+
#### Exemplo detalhado
|
|
129
|
+
|
|
130
|
+
**Comando**
|
|
131
|
+
|
|
132
|
+
~~~sh
|
|
133
|
+
mask_test
|
|
134
|
+
~~~
|
|
135
|
+
|
|
136
|
+
**Entrada**
|
|
137
|
+
|
|
138
|
+
~~~json
|
|
139
|
+
{"text":"电话 13812345678"}
|
|
140
|
+
~~~
|
|
141
|
+
|
|
142
|
+
**Saída**
|
|
143
|
+
|
|
144
|
+
~~~text
|
|
145
|
+
mask_test: replaced 1 PII value(s) (PHONE=1)
|
|
146
|
+
masked:
|
|
147
|
+
电话 <PHONE_1>
|
|
148
|
+
~~~
|
|
149
|
+
|
|
150
|
+
*Observado em `plugins/dsh-mask/index.mjs:243-250; test/index.test.mjs:306-315`*
|
|
151
|
+
|
|
152
|
+
#### Ramo de falha
|
|
153
|
+
|
|
154
|
+
**Entrada**
|
|
155
|
+
|
|
156
|
+
~~~text
|
|
157
|
+
/mask restore <PHONE_1> with restoreDir=/tmp/dsh-mask-probe-not-a-dir (a regular file)
|
|
158
|
+
~~~
|
|
159
|
+
|
|
160
|
+
**Saída**
|
|
161
|
+
|
|
162
|
+
~~~text
|
|
163
|
+
mask: restore failed: EEXIST: file already exists, mkdir '/tmp/dsh-mask-probe-not-a-dir'
|
|
164
|
+
~~~
|
|
165
|
+
|
|
166
|
+
*Observado em `plugins/dsh-mask/index.mjs:501-506; plugins/dsh-mask/lib/deliver.mjs:89-97; plugins/dsh-mask/test/index.test.mjs:278-290`*
|
|
167
|
+
|
|
168
|
+
#### Exemplos breves
|
|
169
|
+
|
|
170
|
+
- `mask_test`
|
|
171
|
+
- `/mask restore <text>`
|
|
117
172
|
|
|
118
173
|
## Configuration
|
|
119
174
|
|
|
@@ -211,55 +266,110 @@ Evidência estática: `dsh-plugin-doctor` K10–K13 retornam `pass` em todas as
|
|
|
211
266
|
|
|
212
267
|
## PerryLink DSH Plugin Family
|
|
213
268
|
|
|
214
|
-
Este projeto
|
|
269
|
+
Este projeto faz parte da família de plugins do DeepSeek Harness da [PerryLink](https://github.com/PerryLink). O registro fica recolhido abaixo para que cada README mantenha uma primeira tela curta; expanda para ver cada linha e seu status.
|
|
215
270
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
|
220
|
-
|
|
221
|
-
| **[dsh-
|
|
222
|
-
| **[dsh-
|
|
223
|
-
| **[dsh-
|
|
224
|
-
| **[dsh-
|
|
225
|
-
| **[dsh-
|
|
226
|
-
| **[dsh-
|
|
227
|
-
| **[dsh-
|
|
228
|
-
| **[dsh-
|
|
229
|
-
| **[dsh-
|
|
230
|
-
| **[dsh-
|
|
231
|
-
| **[dsh-
|
|
232
|
-
| **[dsh-
|
|
233
|
-
| **[dsh-
|
|
234
|
-
| **[dsh-
|
|
235
|
-
| **[dsh-
|
|
236
|
-
| **[dsh-
|
|
237
|
-
| **[dsh-
|
|
238
|
-
| **[dsh-
|
|
239
|
-
| **[dsh-
|
|
240
|
-
| **[dsh-
|
|
241
|
-
| **[dsh-
|
|
242
|
-
| **[dsh-
|
|
243
|
-
| **[dsh-
|
|
244
|
-
| **[dsh-
|
|
245
|
-
| **[dsh-
|
|
246
|
-
| **[dsh-
|
|
247
|
-
| **[dsh-
|
|
248
|
-
| **[dsh-
|
|
249
|
-
| **[dsh-
|
|
250
|
-
| **[dsh-
|
|
251
|
-
| **[dsh-
|
|
252
|
-
| **[dsh-
|
|
253
|
-
| **[dsh-
|
|
254
|
-
| **[dsh-
|
|
255
|
-
| **[dsh-
|
|
256
|
-
| **[dsh-
|
|
257
|
-
| **[dsh-
|
|
258
|
-
| **[dsh-
|
|
259
|
-
| **[dsh-
|
|
260
|
-
| **[dsh-
|
|
261
|
-
| **[dsh-
|
|
262
|
-
| **[dsh-
|
|
271
|
+
<details>
|
|
272
|
+
<summary>Expandir todos os plugins</summary>
|
|
273
|
+
|
|
274
|
+
| Plugin | Status |
|
|
275
|
+
|---|---|
|
|
276
|
+
| **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
|
|
277
|
+
| **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
|
|
278
|
+
| **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
|
|
279
|
+
| **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | |
|
|
280
|
+
| **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
|
|
281
|
+
| **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
|
|
282
|
+
| **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | |
|
|
283
|
+
| **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
|
|
284
|
+
| **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
|
|
285
|
+
| **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
|
|
286
|
+
| **[dsh-contract-stance](https://github.com/PerryLink/dsh-contract-stance)** | |
|
|
287
|
+
| **[dsh-customs-doc-check](https://github.com/PerryLink/dsh-customs-doc-check)** | |
|
|
288
|
+
| **[dsh-data-quality](https://github.com/PerryLink/dsh-data-quality)** | |
|
|
289
|
+
| **[dsh-demurrage-ledger](https://github.com/PerryLink/dsh-demurrage-ledger)** | |
|
|
290
|
+
| **[dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck)** | |
|
|
291
|
+
| **[dsh-drill-script-check](https://github.com/PerryLink/dsh-drill-script-check)** | |
|
|
292
|
+
| **[dsh-eia-guide-check](https://github.com/PerryLink/dsh-eia-guide-check)** | |
|
|
293
|
+
| **[dsh-emergency-plan](https://github.com/PerryLink/dsh-emergency-plan)** | |
|
|
294
|
+
| **[dsh-essay-rubric-check](https://github.com/PerryLink/dsh-essay-rubric-check)** | |
|
|
295
|
+
| **[dsh-evidence-check](https://github.com/PerryLink/dsh-evidence-check)** | |
|
|
296
|
+
| **[dsh-export-ctl-check](https://github.com/PerryLink/dsh-export-ctl-check)** | |
|
|
297
|
+
| **[dsh-fast](https://github.com/PerryLink/dsh-fast)** | |
|
|
298
|
+
| **[dsh-fmea-table-check](https://github.com/PerryLink/dsh-fmea-table-check)** | |
|
|
299
|
+
| **[dsh-forecast-penalty](https://github.com/PerryLink/dsh-forecast-penalty)** | |
|
|
300
|
+
| **[dsh-fund-research](https://github.com/PerryLink/dsh-fund-research)** | |
|
|
301
|
+
| **[dsh-github](https://github.com/PerryLink/dsh-github)** | |
|
|
302
|
+
| **[dsh-gongwen-flow-check](https://github.com/PerryLink/dsh-gongwen-flow-check)** | |
|
|
303
|
+
| **[dsh-gongwen-word-check](https://github.com/PerryLink/dsh-gongwen-word-check)** | |
|
|
304
|
+
| **[dsh-guard-plan-qc](https://github.com/PerryLink/dsh-guard-plan-qc)** | |
|
|
305
|
+
| **[dsh-hazchem-check](https://github.com/PerryLink/dsh-hazchem-check)** | |
|
|
306
|
+
| **[dsh-hazplan-check](https://github.com/PerryLink/dsh-hazplan-check)** | |
|
|
307
|
+
| **[dsh-hidden-risk-map](https://github.com/PerryLink/dsh-hidden-risk-map)** | |
|
|
308
|
+
| **[dsh-hs-classify](https://github.com/PerryLink/dsh-hs-classify)** | |
|
|
309
|
+
| **[dsh-icd-rule-check](https://github.com/PerryLink/dsh-icd-rule-check)** | |
|
|
310
|
+
| **[dsh-industry-research](https://github.com/PerryLink/dsh-industry-research)** | |
|
|
311
|
+
| **[dsh-lawcite-adapter](https://github.com/PerryLink/dsh-lawcite-adapter)** | |
|
|
312
|
+
| **[dsh-laya](https://github.com/PerryLink/dsh-laya)** | |
|
|
313
|
+
| **[dsh-lc-doc-check](https://github.com/PerryLink/dsh-lc-doc-check)** | |
|
|
314
|
+
| **[dsh-learning-gap-check](https://github.com/PerryLink/dsh-learning-gap-check)** | |
|
|
315
|
+
| **[dsh-library](https://github.com/PerryLink/dsh-library)** | |
|
|
316
|
+
| **[dsh-local-ai](https://github.com/PerryLink/dsh-local-ai)** | |
|
|
317
|
+
| **[dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions)** | |
|
|
318
|
+
| **[dsh-mask](https://github.com/PerryLink/dsh-mask)** | |
|
|
319
|
+
| **[dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel)** | |
|
|
320
|
+
| **[dsh-medrec-qc](https://github.com/PerryLink/dsh-medrec-qc)** | |
|
|
321
|
+
| **[dsh-memento](https://github.com/PerryLink/dsh-memento)** | |
|
|
322
|
+
| **[dsh-nsfc-form-check](https://github.com/PerryLink/dsh-nsfc-form-check)** | |
|
|
323
|
+
| **[dsh-nurse-record-check](https://github.com/PerryLink/dsh-nurse-record-check)** | |
|
|
324
|
+
| **[dsh-observe](https://github.com/PerryLink/dsh-observe)** | |
|
|
325
|
+
| **[dsh-origin-rvc-check](https://github.com/PerryLink/dsh-origin-rvc-check)** | |
|
|
326
|
+
| **[dsh-ota-review-check](https://github.com/PerryLink/dsh-ota-review-check)** | |
|
|
327
|
+
| **[dsh-output-styles](https://github.com/PerryLink/dsh-output-styles)** | |
|
|
328
|
+
| **[dsh-paper-doc-adapter](https://github.com/PerryLink/dsh-paper-doc-adapter)** | |
|
|
329
|
+
| **[dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules)** | |
|
|
330
|
+
| **[dsh-permit-report-check](https://github.com/PerryLink/dsh-permit-report-check)** | |
|
|
331
|
+
| **[dsh-pipeline-check](https://github.com/PerryLink/dsh-pipeline-check)** | |
|
|
332
|
+
| **[dsh-pleading-draft](https://github.com/PerryLink/dsh-pleading-draft)** | |
|
|
333
|
+
| **[dsh-plugin-doctor](https://github.com/PerryLink/dsh-plugin-doctor)** | |
|
|
334
|
+
| **[dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide)** | |
|
|
335
|
+
| **[dsh-plugin-kit](https://github.com/PerryLink/dsh-plugin-kit)** | |
|
|
336
|
+
| **[dsh-plugin-upgrade](https://github.com/PerryLink/dsh-plugin-upgrade)** | |
|
|
337
|
+
| **[dsh-policy-brief-draft](https://github.com/PerryLink/dsh-policy-brief-draft)** | |
|
|
338
|
+
| **[dsh-power-loss-split](https://github.com/PerryLink/dsh-power-loss-split)** | |
|
|
339
|
+
| **[dsh-power-ticket-check](https://github.com/PerryLink/dsh-power-ticket-check)** | |
|
|
340
|
+
| **[dsh-ppap-check](https://github.com/PerryLink/dsh-ppap-check)** | |
|
|
341
|
+
| **[dsh-protest-deadline](https://github.com/PerryLink/dsh-protest-deadline)** | |
|
|
342
|
+
| **[dsh-railway-window](https://github.com/PerryLink/dsh-railway-window)** | |
|
|
343
|
+
| **[dsh-repair-order-qc](https://github.com/PerryLink/dsh-repair-order-qc)** | |
|
|
344
|
+
| **[dsh-research-report](https://github.com/PerryLink/dsh-research-report)** | |
|
|
345
|
+
| **[dsh-review-reply-check](https://github.com/PerryLink/dsh-review-reply-check)** | |
|
|
346
|
+
| **[dsh-rulefile-check](https://github.com/PerryLink/dsh-rulefile-check)** | |
|
|
347
|
+
| **[dsh-safety-brief-check](https://github.com/PerryLink/dsh-safety-brief-check)** | |
|
|
348
|
+
| **[dsh-score](https://github.com/PerryLink/dsh-score)** | |
|
|
349
|
+
| **[dsh-session-sync](https://github.com/PerryLink/dsh-session-sync)** | |
|
|
350
|
+
| **[dsh-site-log-check](https://github.com/PerryLink/dsh-site-log-check)** | |
|
|
351
|
+
| **[dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security)** | |
|
|
352
|
+
| **[dsh-soe-decision-check](https://github.com/PerryLink/dsh-soe-decision-check)** | |
|
|
353
|
+
| **[dsh-soilwater-check](https://github.com/PerryLink/dsh-soilwater-check)** | |
|
|
354
|
+
| **[dsh-sop-sync-check](https://github.com/PerryLink/dsh-sop-sync-check)** | |
|
|
355
|
+
| **[dsh-spc-gbt-adapter](https://github.com/PerryLink/dsh-spc-gbt-adapter)** | |
|
|
356
|
+
| **[dsh-talk](https://github.com/PerryLink/dsh-talk)** | |
|
|
357
|
+
| **[dsh-tender-extract](https://github.com/PerryLink/dsh-tender-extract)** | |
|
|
358
|
+
| **[dsh-tender-matrix](https://github.com/PerryLink/dsh-tender-matrix)** | |
|
|
359
|
+
| **[dsh-test-drive](https://github.com/PerryLink/dsh-test-drive)** | |
|
|
360
|
+
| **[dsh-ticktick](https://github.com/PerryLink/dsh-ticktick)** | |
|
|
361
|
+
| **[dsh-translate](https://github.com/PerryLink/dsh-translate)** | |
|
|
362
|
+
| **[dsh-warranty-calc](https://github.com/PerryLink/dsh-warranty-calc)** | |
|
|
363
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | 🧊 CONGELADO — ver o README do repositório |
|
|
364
|
+
| **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | 🧊 CONGELADO — ver o README do repositório |
|
|
365
|
+
| **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | 🧊 CONGELADO — ver o README do repositório |
|
|
366
|
+
| **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 CONGELADO — ver o README do repositório |
|
|
367
|
+
| **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | 🧊 CONGELADO — ver o README do repositório |
|
|
368
|
+
| **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 RETIRADO — ver o README do repositório |
|
|
369
|
+
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 RETIRADO — ver o README do repositório |
|
|
370
|
+
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 RETIRADO — ver o README do repositório |
|
|
371
|
+
|
|
372
|
+
</details>
|
|
263
373
|
|
|
264
374
|
## License
|
|
265
375
|
|
package/README-zh.md
CHANGED
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
|
|
22
22
|
[English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
|
|
23
23
|
|
|
24
|
+
```sh
|
|
25
|
+
dsh plugin --profile <name> add dsh-mask
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
24
29
|
</div>
|
|
25
30
|
|
|
26
31
|
---
|
|
@@ -29,11 +34,20 @@
|
|
|
29
34
|
**📖 生态实测知识库**(实测数据,不是营销):[插件开发指南 · 选型实测数据 · 维护取舍判据](https://perrylink.github.io/dsh-plugin-guide/)。
|
|
30
35
|
|
|
31
36
|
<!-- star-cta -->
|
|
37
|
+
## Install & uninstall
|
|
38
|
+
|
|
39
|
+
- **git 通道**(最新 `main`):`dsh plugin --profile web add github:PerryLink/dsh-mask`(等价于从 `git+https://github.com/PerryLink/dsh-mask.git` 安装)。无构建步骤——`index.mjs` 与 `lib/` 即发布产物。
|
|
40
|
+
- **npm 通道**(发布版本):`dsh plugin --profile web add dsh-mask`。
|
|
41
|
+
- **tarball 通道**:在本仓库 `pnpm pack`,再 `dsh plugin --profile web add ./dsh-mask-<version>.tgz`。
|
|
42
|
+
- **卸载**:`dsh plugin --profile web remove dsh-mask`(或从 profile patch 删掉该行)。
|
|
43
|
+
|
|
44
|
+
`dsh-mask` 不再自带 storage 栈。已组合该栈的 profile(`web` profile 通过 `@deepseek-ai/dsh-web-app` 提供)自带 `storageDomain`,持久化开箱即用。未组合 storage 的 bare profile 仍可正常挂载与遮罩,但恢复表仅存内存(重启丢失)——请在 profile patch 中组合 storage 栈,或将 `persistRestoreTable` 设为 `false`。
|
|
45
|
+
|
|
32
46
|
## ⭐ 如果它帮到了你
|
|
33
47
|
|
|
34
|
-
这个插件是 [DSH 插件家族](https://github.com/PerryLink)的一员(
|
|
48
|
+
这个插件是 [DSH 插件家族](https://github.com/PerryLink)的一员(95 个,全部 Apache-2.0)。如果你在用,**给个 star** —— 它不会解锁任何功能,但会让下一个人在搜索里更容易找到它。
|
|
35
49
|
|
|
36
|
-
*English:* part of a
|
|
50
|
+
*English:* part of a 95 plugin family for DeepSeek Harness. If it is useful, **a star helps the next person find it** — nothing is gated behind it.
|
|
37
51
|
|
|
38
52
|
## What is dsh-mask?
|
|
39
53
|
|
|
@@ -41,9 +55,10 @@
|
|
|
41
55
|
|
|
42
56
|
电话、邮箱、身份证、银行卡、密钥等在模型边界变成占位符;原文绝不进入会话日志。
|
|
43
57
|
|
|
44
|
-

|
|
59
|
+
|
|
60
|
+
*工作流概览:调用 → 插件 → 结果。下面的示例使用实际命令面。*
|
|
45
61
|
|
|
46
|
-

|
|
47
62
|
|
|
48
63
|
*同一次运行,动图版。*
|
|
49
64
|
|
|
@@ -112,14 +127,54 @@ mask: restored 1 placeholder(s): <PHONE_1>
|
|
|
112
127
|
file: /tmp/dsh-mask-restore/restore-1f0c….txt (mode 0600, one file per session)
|
|
113
128
|
```
|
|
114
129
|
|
|
115
|
-
|
|
130
|
+
### 示例
|
|
116
131
|
|
|
117
|
-
|
|
118
|
-
- **npm 通道**(发布版本):`dsh plugin --profile web add dsh-mask`。
|
|
119
|
-
- **tarball 通道**:在本仓库 `pnpm pack`,再 `dsh plugin --profile web add ./dsh-mask-<version>.tgz`。
|
|
120
|
-
- **卸载**:`dsh plugin --profile web remove dsh-mask`(或从 profile patch 删掉该行)。
|
|
132
|
+
以下为插件真实入口;安装后调用一个即可。
|
|
121
133
|
|
|
122
|
-
|
|
134
|
+
#### 详细示例
|
|
135
|
+
|
|
136
|
+
**命令**
|
|
137
|
+
|
|
138
|
+
~~~sh
|
|
139
|
+
mask_test
|
|
140
|
+
~~~
|
|
141
|
+
|
|
142
|
+
**输入**
|
|
143
|
+
|
|
144
|
+
~~~json
|
|
145
|
+
{"text":"电话 13812345678"}
|
|
146
|
+
~~~
|
|
147
|
+
|
|
148
|
+
**输出**
|
|
149
|
+
|
|
150
|
+
~~~text
|
|
151
|
+
mask_test: replaced 1 PII value(s) (PHONE=1)
|
|
152
|
+
masked:
|
|
153
|
+
电话 <PHONE_1>
|
|
154
|
+
~~~
|
|
155
|
+
|
|
156
|
+
*来源 `plugins/dsh-mask/index.mjs:243-250; test/index.test.mjs:306-315`*
|
|
157
|
+
|
|
158
|
+
#### 失败分支
|
|
159
|
+
|
|
160
|
+
**输入**
|
|
161
|
+
|
|
162
|
+
~~~text
|
|
163
|
+
/mask restore <PHONE_1> with restoreDir=/tmp/dsh-mask-probe-not-a-dir (a regular file)
|
|
164
|
+
~~~
|
|
165
|
+
|
|
166
|
+
**输出**
|
|
167
|
+
|
|
168
|
+
~~~text
|
|
169
|
+
mask: restore failed: EEXIST: file already exists, mkdir '/tmp/dsh-mask-probe-not-a-dir'
|
|
170
|
+
~~~
|
|
171
|
+
|
|
172
|
+
*来源 `plugins/dsh-mask/index.mjs:501-506; plugins/dsh-mask/lib/deliver.mjs:89-97; plugins/dsh-mask/test/index.test.mjs:278-290`*
|
|
173
|
+
|
|
174
|
+
#### 简短示例
|
|
175
|
+
|
|
176
|
+
- `mask_test`
|
|
177
|
+
- `/mask restore <text>`
|
|
123
178
|
|
|
124
179
|
## Configuration
|
|
125
180
|
|
|
@@ -229,55 +284,110 @@ PII 基准(108 个合成样本的逐类 P/R/F1)见 [`benchmark/RESULTS.md`](
|
|
|
229
284
|
|
|
230
285
|
## PerryLink DSH Plugin Family
|
|
231
286
|
|
|
232
|
-
本项目是 [PerryLink](https://github.com/PerryLink) 维护的 DeepSeek Harness
|
|
287
|
+
本项目是 [PerryLink](https://github.com/PerryLink) 维护的 DeepSeek Harness 插件家族成员。完整名单默认折叠,避免每个 README 的首屏被长表淹没;点击展开可查看每一行及其状态。
|
|
233
288
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
|
238
|
-
|
|
239
|
-
| **[dsh-
|
|
240
|
-
| **[dsh-
|
|
241
|
-
| **[dsh-
|
|
242
|
-
| **[dsh-
|
|
243
|
-
| **[dsh-
|
|
244
|
-
| **[dsh-
|
|
245
|
-
| **[dsh-
|
|
246
|
-
| **[dsh-
|
|
247
|
-
| **[dsh-
|
|
248
|
-
| **[dsh-
|
|
249
|
-
| **[dsh-
|
|
250
|
-
| **[dsh-
|
|
251
|
-
| **[dsh-
|
|
252
|
-
| **[dsh-
|
|
253
|
-
| **[dsh-
|
|
254
|
-
| **[dsh-
|
|
255
|
-
| **[dsh-
|
|
256
|
-
| **[dsh-
|
|
257
|
-
| **[dsh-
|
|
258
|
-
| **[dsh-
|
|
259
|
-
| **[dsh-
|
|
260
|
-
| **[dsh-
|
|
261
|
-
| **[dsh-
|
|
262
|
-
| **[dsh-
|
|
263
|
-
| **[dsh-
|
|
264
|
-
| **[dsh-
|
|
265
|
-
| **[dsh-
|
|
266
|
-
| **[dsh-
|
|
267
|
-
| **[dsh-
|
|
268
|
-
| **[dsh-
|
|
269
|
-
| **[dsh-
|
|
270
|
-
| **[dsh-
|
|
271
|
-
| **[dsh-
|
|
272
|
-
| **[dsh-
|
|
273
|
-
| **[dsh-
|
|
274
|
-
| **[dsh-
|
|
275
|
-
| **[dsh-
|
|
276
|
-
| **[dsh-
|
|
277
|
-
| **[dsh-
|
|
278
|
-
| **[dsh-
|
|
279
|
-
| **[dsh-
|
|
280
|
-
| **[dsh-
|
|
289
|
+
<details>
|
|
290
|
+
<summary>展开全部插件</summary>
|
|
291
|
+
|
|
292
|
+
| 插件 | 状态 |
|
|
293
|
+
|---|---|
|
|
294
|
+
| **[dsh-aqua-input-check](https://github.com/PerryLink/dsh-aqua-input-check)** | |
|
|
295
|
+
| **[dsh-archive-check](https://github.com/PerryLink/dsh-archive-check)** | |
|
|
296
|
+
| **[dsh-auto-review](https://github.com/PerryLink/dsh-auto-review)** | |
|
|
297
|
+
| **[dsh-autotier](https://github.com/PerryLink/dsh-autotier)** | |
|
|
298
|
+
| **[dsh-bid-ca-precheck](https://github.com/PerryLink/dsh-bid-ca-precheck)** | |
|
|
299
|
+
| **[dsh-bid-qual-check](https://github.com/PerryLink/dsh-bid-qual-check)** | |
|
|
300
|
+
| **[dsh-cert-mcp](https://github.com/PerryLink/dsh-cert-mcp)** | |
|
|
301
|
+
| **[dsh-checkpoint-rewind](https://github.com/PerryLink/dsh-checkpoint-rewind)** | |
|
|
302
|
+
| **[dsh-click](https://github.com/PerryLink/dsh-click)** | |
|
|
303
|
+
| **[dsh-composer-history](https://github.com/PerryLink/dsh-composer-history)** | |
|
|
304
|
+
| **[dsh-contract-stance](https://github.com/PerryLink/dsh-contract-stance)** | |
|
|
305
|
+
| **[dsh-customs-doc-check](https://github.com/PerryLink/dsh-customs-doc-check)** | |
|
|
306
|
+
| **[dsh-data-quality](https://github.com/PerryLink/dsh-data-quality)** | |
|
|
307
|
+
| **[dsh-demurrage-ledger](https://github.com/PerryLink/dsh-demurrage-ledger)** | |
|
|
308
|
+
| **[dsh-doublecheck](https://github.com/PerryLink/dsh-doublecheck)** | |
|
|
309
|
+
| **[dsh-drill-script-check](https://github.com/PerryLink/dsh-drill-script-check)** | |
|
|
310
|
+
| **[dsh-eia-guide-check](https://github.com/PerryLink/dsh-eia-guide-check)** | |
|
|
311
|
+
| **[dsh-emergency-plan](https://github.com/PerryLink/dsh-emergency-plan)** | |
|
|
312
|
+
| **[dsh-essay-rubric-check](https://github.com/PerryLink/dsh-essay-rubric-check)** | |
|
|
313
|
+
| **[dsh-evidence-check](https://github.com/PerryLink/dsh-evidence-check)** | |
|
|
314
|
+
| **[dsh-export-ctl-check](https://github.com/PerryLink/dsh-export-ctl-check)** | |
|
|
315
|
+
| **[dsh-fast](https://github.com/PerryLink/dsh-fast)** | |
|
|
316
|
+
| **[dsh-fmea-table-check](https://github.com/PerryLink/dsh-fmea-table-check)** | |
|
|
317
|
+
| **[dsh-forecast-penalty](https://github.com/PerryLink/dsh-forecast-penalty)** | |
|
|
318
|
+
| **[dsh-fund-research](https://github.com/PerryLink/dsh-fund-research)** | |
|
|
319
|
+
| **[dsh-github](https://github.com/PerryLink/dsh-github)** | |
|
|
320
|
+
| **[dsh-gongwen-flow-check](https://github.com/PerryLink/dsh-gongwen-flow-check)** | |
|
|
321
|
+
| **[dsh-gongwen-word-check](https://github.com/PerryLink/dsh-gongwen-word-check)** | |
|
|
322
|
+
| **[dsh-guard-plan-qc](https://github.com/PerryLink/dsh-guard-plan-qc)** | |
|
|
323
|
+
| **[dsh-hazchem-check](https://github.com/PerryLink/dsh-hazchem-check)** | |
|
|
324
|
+
| **[dsh-hazplan-check](https://github.com/PerryLink/dsh-hazplan-check)** | |
|
|
325
|
+
| **[dsh-hidden-risk-map](https://github.com/PerryLink/dsh-hidden-risk-map)** | |
|
|
326
|
+
| **[dsh-hs-classify](https://github.com/PerryLink/dsh-hs-classify)** | |
|
|
327
|
+
| **[dsh-icd-rule-check](https://github.com/PerryLink/dsh-icd-rule-check)** | |
|
|
328
|
+
| **[dsh-industry-research](https://github.com/PerryLink/dsh-industry-research)** | |
|
|
329
|
+
| **[dsh-lawcite-adapter](https://github.com/PerryLink/dsh-lawcite-adapter)** | |
|
|
330
|
+
| **[dsh-laya](https://github.com/PerryLink/dsh-laya)** | |
|
|
331
|
+
| **[dsh-lc-doc-check](https://github.com/PerryLink/dsh-lc-doc-check)** | |
|
|
332
|
+
| **[dsh-learning-gap-check](https://github.com/PerryLink/dsh-learning-gap-check)** | |
|
|
333
|
+
| **[dsh-library](https://github.com/PerryLink/dsh-library)** | |
|
|
334
|
+
| **[dsh-local-ai](https://github.com/PerryLink/dsh-local-ai)** | |
|
|
335
|
+
| **[dsh-lsp-actions](https://github.com/PerryLink/dsh-lsp-actions)** | |
|
|
336
|
+
| **[dsh-mask](https://github.com/PerryLink/dsh-mask)** | |
|
|
337
|
+
| **[dsh-mcp-panel](https://github.com/PerryLink/dsh-mcp-panel)** | |
|
|
338
|
+
| **[dsh-medrec-qc](https://github.com/PerryLink/dsh-medrec-qc)** | |
|
|
339
|
+
| **[dsh-memento](https://github.com/PerryLink/dsh-memento)** | |
|
|
340
|
+
| **[dsh-nsfc-form-check](https://github.com/PerryLink/dsh-nsfc-form-check)** | |
|
|
341
|
+
| **[dsh-nurse-record-check](https://github.com/PerryLink/dsh-nurse-record-check)** | |
|
|
342
|
+
| **[dsh-observe](https://github.com/PerryLink/dsh-observe)** | |
|
|
343
|
+
| **[dsh-origin-rvc-check](https://github.com/PerryLink/dsh-origin-rvc-check)** | |
|
|
344
|
+
| **[dsh-ota-review-check](https://github.com/PerryLink/dsh-ota-review-check)** | |
|
|
345
|
+
| **[dsh-output-styles](https://github.com/PerryLink/dsh-output-styles)** | |
|
|
346
|
+
| **[dsh-paper-doc-adapter](https://github.com/PerryLink/dsh-paper-doc-adapter)** | |
|
|
347
|
+
| **[dsh-permission-rules](https://github.com/PerryLink/dsh-permission-rules)** | |
|
|
348
|
+
| **[dsh-permit-report-check](https://github.com/PerryLink/dsh-permit-report-check)** | |
|
|
349
|
+
| **[dsh-pipeline-check](https://github.com/PerryLink/dsh-pipeline-check)** | |
|
|
350
|
+
| **[dsh-pleading-draft](https://github.com/PerryLink/dsh-pleading-draft)** | |
|
|
351
|
+
| **[dsh-plugin-doctor](https://github.com/PerryLink/dsh-plugin-doctor)** | |
|
|
352
|
+
| **[dsh-plugin-guide](https://github.com/PerryLink/dsh-plugin-guide)** | |
|
|
353
|
+
| **[dsh-plugin-kit](https://github.com/PerryLink/dsh-plugin-kit)** | |
|
|
354
|
+
| **[dsh-plugin-upgrade](https://github.com/PerryLink/dsh-plugin-upgrade)** | |
|
|
355
|
+
| **[dsh-policy-brief-draft](https://github.com/PerryLink/dsh-policy-brief-draft)** | |
|
|
356
|
+
| **[dsh-power-loss-split](https://github.com/PerryLink/dsh-power-loss-split)** | |
|
|
357
|
+
| **[dsh-power-ticket-check](https://github.com/PerryLink/dsh-power-ticket-check)** | |
|
|
358
|
+
| **[dsh-ppap-check](https://github.com/PerryLink/dsh-ppap-check)** | |
|
|
359
|
+
| **[dsh-protest-deadline](https://github.com/PerryLink/dsh-protest-deadline)** | |
|
|
360
|
+
| **[dsh-railway-window](https://github.com/PerryLink/dsh-railway-window)** | |
|
|
361
|
+
| **[dsh-repair-order-qc](https://github.com/PerryLink/dsh-repair-order-qc)** | |
|
|
362
|
+
| **[dsh-research-report](https://github.com/PerryLink/dsh-research-report)** | |
|
|
363
|
+
| **[dsh-review-reply-check](https://github.com/PerryLink/dsh-review-reply-check)** | |
|
|
364
|
+
| **[dsh-rulefile-check](https://github.com/PerryLink/dsh-rulefile-check)** | |
|
|
365
|
+
| **[dsh-safety-brief-check](https://github.com/PerryLink/dsh-safety-brief-check)** | |
|
|
366
|
+
| **[dsh-score](https://github.com/PerryLink/dsh-score)** | |
|
|
367
|
+
| **[dsh-session-sync](https://github.com/PerryLink/dsh-session-sync)** | |
|
|
368
|
+
| **[dsh-site-log-check](https://github.com/PerryLink/dsh-site-log-check)** | |
|
|
369
|
+
| **[dsh-skill-pack-security](https://github.com/PerryLink/dsh-skill-pack-security)** | |
|
|
370
|
+
| **[dsh-soe-decision-check](https://github.com/PerryLink/dsh-soe-decision-check)** | |
|
|
371
|
+
| **[dsh-soilwater-check](https://github.com/PerryLink/dsh-soilwater-check)** | |
|
|
372
|
+
| **[dsh-sop-sync-check](https://github.com/PerryLink/dsh-sop-sync-check)** | |
|
|
373
|
+
| **[dsh-spc-gbt-adapter](https://github.com/PerryLink/dsh-spc-gbt-adapter)** | |
|
|
374
|
+
| **[dsh-talk](https://github.com/PerryLink/dsh-talk)** | |
|
|
375
|
+
| **[dsh-tender-extract](https://github.com/PerryLink/dsh-tender-extract)** | |
|
|
376
|
+
| **[dsh-tender-matrix](https://github.com/PerryLink/dsh-tender-matrix)** | |
|
|
377
|
+
| **[dsh-test-drive](https://github.com/PerryLink/dsh-test-drive)** | |
|
|
378
|
+
| **[dsh-ticktick](https://github.com/PerryLink/dsh-ticktick)** | |
|
|
379
|
+
| **[dsh-translate](https://github.com/PerryLink/dsh-translate)** | |
|
|
380
|
+
| **[dsh-warranty-calc](https://github.com/PerryLink/dsh-warranty-calc)** | |
|
|
381
|
+
| **[dsh-budget](https://github.com/PerryLink/dsh-budget)** | 🧊 已冻结 — 见仓库 README |
|
|
382
|
+
| **[dsh-claude-move](https://github.com/PerryLink/dsh-claude-move)** | 🧊 已冻结 — 见仓库 README |
|
|
383
|
+
| **[dsh-defend](https://github.com/PerryLink/dsh-defend)** | 🧊 已冻结 — 见仓库 README |
|
|
384
|
+
| **[dsh-draw](https://github.com/PerryLink/dsh-draw)** | 🧊 已冻结 — 见仓库 README |
|
|
385
|
+
| **[dsh-reach](https://github.com/PerryLink/dsh-reach)** | 🧊 已冻结 — 见仓库 README |
|
|
386
|
+
| **[dsh-background-agents](https://github.com/PerryLink/dsh-background-agents)** | 🚫 已退役 — 见仓库 README |
|
|
387
|
+
| **[dsh-session-pin](https://github.com/PerryLink/dsh-session-pin)** | 🚫 已退役 — 见仓库 README |
|
|
388
|
+
| **[dsh-team-rooms](https://github.com/PerryLink/dsh-team-rooms)** | 🚫 已退役 — 见仓库 README |
|
|
389
|
+
|
|
390
|
+
</details>
|
|
281
391
|
|
|
282
392
|
## License
|
|
283
393
|
|