dsh-hazplan-check 0.2.3 → 0.2.9
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 +45 -0
- package/README-es.md +19 -9
- package/README-hi.md +19 -9
- package/README-pt.md +19 -9
- package/README-zh.md +19 -9
- package/README.md +19 -9
- package/package.json +6 -5
- package/rules/evidence/clause-verification-hazop.md +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.9] - 2026-10-18
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- Move the Install section to the first screen in all five READMEs.
|
|
8
|
+
|
|
9
|
+
## [0.2.8] - 2026-10-18
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Add a 1280×720 hero and a 960×540, 4-second terminal GIF rendered from the checker’s own output; `screenshots.json` is an object array and `capture.json` records the storyboard.
|
|
14
|
+
|
|
15
|
+
## [0.2.7] - 2026-10-18
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **`check:citations` covers all excerpts, including `alsoBasis`.** Every `excerpt` is checked, including `alsoBasis`; the HZ-005 primary and matrix quotations now have verbatim evidence.
|
|
20
|
+
|
|
21
|
+
## 0.2.6 - 2026-10-18
|
|
22
|
+
|
|
23
|
+
- Fix: a rule that executed and found no difference is no longer placed in `skipped`. The report view labels only genuinely unexecuted rules as “未执行的检查”; `skippedCount` no longer counts executed-clean rules.
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 0.2.5 - 2026-10-17
|
|
27
|
+
|
|
28
|
+
- Compatibility: declare `engines.dsh` `>=0.2.1-0 <0.3.0`; move `@deepseek-ai/dsh-*` devDependencies to `0.2.1-rc.2`; add `@deepseek-ai/dsh-working-directory`.
|
|
29
|
+
- Docs: the compatibility table no longer claims `engines.dsh` is undeclared; drop the retired `both` tool mode.
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## 0.2.4
|
|
33
|
+
|
|
34
|
+
- Add a demo card to the README: one terminal shot of this plugin's real output
|
|
35
|
+
over its own test fixture, plus the DSH Market badge.
|
|
36
|
+
|
|
37
|
+
The card is generated by running this repository's check core over a committed
|
|
38
|
+
fixture and rendering the report it returned, so the findings, rule ids, cited
|
|
39
|
+
documents and "not obtained" notes are the plugin's own output rather than an
|
|
40
|
+
artist's impression. In a family whose claim is that it never fabricates a
|
|
41
|
+
citation, a hand-drawn screenshot would undercut the thing being demonstrated.
|
|
42
|
+
|
|
43
|
+
Added to all five READMEs together, which `check:readmes` requires.
|
|
44
|
+
|
|
45
|
+
|
|
3
46
|
## 0.2.3
|
|
4
47
|
|
|
5
48
|
- Rework the README first screen. The H1 now names what the plugin checks rather
|
|
@@ -44,3 +87,5 @@
|
|
|
44
87
|
- Five-language READMEs hold the same section count and the same configuration keys.
|
|
45
88
|
- Rule pack: 7 rules across HZ-001..HZ-007.
|
|
46
89
|
- Licensed Apache-2.0.
|
|
90
|
+
|
|
91
|
+
|
package/README-es.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
# dsh-hazplan-check — Verificación de la completitud de los elementos de una hoja de trabajo HAZOP y de la coherencia en la derivación de las desviaciones
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-hazplan-check` lee una hoja de trabajo HAZOP —filas organizadas según los propios nombres de columna de la hoja, en chino o en inglés, más una cabecera opcional que declara el 分析对象— y comprueba la completitud y la trazabilidad interna de esa misma hoja: que cada fila rellene las columnas que exige su plantilla (`偏差` y `原因` por defecto), que cada fila registre su `节点`, que los `引导词` procedan de las tablas 1 y 2 de la norma o de la lista que el estudio declaró de antemano, que cada fila deje ver de qué elemento proviene la desviación, que el `风险等级` salga del vocabulario de riesgo de su organización, que la hoja identifique el objeto de análisis y que cada `偏差` sea literalmente el `工艺参数` leído a través de su `引导词`; toda comprobación que no pueda ejecutarse por falta de una columna se informa en `skipped` en lugar de pasar en silencio.
|
|
4
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-hazplan-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Cómo se ve la salida
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
Salida real de este plugin sobre su propio fixture de prueba `HZ-004` — no es un montaje. El paquete de reglas no inventa citas, así que cada hallazgo nombra la cláusula aplicada y advierte que su texto no se obtuvo.
|
|
21
|
+
|
|
5
22
|
## Qué responde
|
|
6
23
|
|
|
7
24
|
| Usted pregunta | Qué responde |
|
|
@@ -63,22 +80,15 @@ correct. **Those four judgements are the study team's, and they are where HAZOP'
|
|
|
63
80
|
|
|
64
81
|
| Superficie | Estado |
|
|
65
82
|
|---|---|
|
|
66
|
-
| Harness | Rango de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificado para aceptar tanto `0.2.0-rc.2` como `0.2.1-
|
|
83
|
+
| Harness | Rango de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificado para aceptar tanto `0.2.0-rc.2` como `0.2.1-rc.2`. **`engines.dsh` se declara como `>=0.2.1-0 <0.3.0`** y el host lo aplica desde 0.2.1 |
|
|
67
84
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
68
85
|
| Plataformas | Todas (ESM puro; sin código nativo, sin red, sin llamada al modelo) |
|
|
69
|
-
| Modo de herramienta | Funciona en `native
|
|
86
|
+
| Modo de herramienta | Funciona en `native` y `ptc`; para un directorio completo use `ptc` |
|
|
70
87
|
|
|
71
88
|
## What it does
|
|
72
89
|
|
|
73
90
|
La tabla de reglas, los campos y el comportamiento detallado están en [README.md](README.md#what-it-does) (versión principal en inglés). El plugin sólo enumera divergencias literales frente a las cláusulas citadas e indica en `skipped` cada comprobación que no pudo ejecutarse.
|
|
74
91
|
|
|
75
|
-
## Install
|
|
76
|
-
|
|
77
|
-
```sh
|
|
78
|
-
dsh plugin --profile <name> add dsh-hazplan-check
|
|
79
|
-
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
80
|
-
```
|
|
81
|
-
|
|
82
92
|
## Configuration
|
|
83
93
|
|
|
84
94
|
Todos los parámetros ajustables viven en el esquema Schemastery de `src/config.ts`, por lo que se cambian desde `cordis.yml` sin tocar el código; los umbrales por regla están en el paquete de reglas bajo `rules/`.
|
package/README-hi.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
# dsh-hazplan-check — HAZOP वर्कशीट के तत्वों की पूर्णता और विचलन व्युत्पत्ति की संगति की जाँच
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-hazplan-check` एक HAZOP वर्कशीट पढ़ता है — शीट के अपने कॉलम नामों पर आधारित पंक्तियाँ (चीनी या अंग्रेज़ी नाम, दोनों चलते हैं), साथ में विश्लेषण-वस्तु बताने वाला वैकल्पिक हेडर — और उसी शीट की पूर्णता तथा आंतरिक अनुरेखणीयता की जाँच करता है: क्या हर पंक्ति अपने टेम्पलेट में माँगे गए कॉलम भरती है (डिफ़ॉल्ट रूप से `偏差` और `原因`), क्या हर पंक्ति में `节点` दर्ज है, क्या `引导词` मानक की तालिका 1 और तालिका 2 से या अध्ययन द्वारा पहले घोषित सूची से लिए गए हैं, क्या हर पंक्ति से दिखता है कि विचलन किस तत्व से आया, क्या `风险等级` आपके संस्थान की जोखिम-शब्दावली से है, क्या शीट विश्लेषण-वस्तु को पहचानती है, और क्या हर `偏差` शब्दशः अपने `引导词` के माध्यम से पढ़ा गया `工艺参数` है; किसी कॉलम के अभाव में जो जाँच चल नहीं सकती, वह चुपचाप पास होने के बजाय `skipped` में दर्ज होती है।
|
|
4
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-hazplan-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## आउटपुट कैसा दिखता है
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
इस प्लगइन का अपने ही `HZ-004` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता, इसलिए हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका मूल पाठ इस बार प्राप्त नहीं हुआ।
|
|
21
|
+
|
|
5
22
|
## यह किन सवालों का जवाब देता है
|
|
6
23
|
|
|
7
24
|
| आपका सवाल | इसका जवाब |
|
|
@@ -63,22 +80,15 @@ correct. **Those four judgements are the study team's, and they are where HAZOP'
|
|
|
63
80
|
|
|
64
81
|
| सतह | स्थिति |
|
|
65
82
|
|---|---|
|
|
66
|
-
| Harness | peer रेंज `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — `0.2.0-rc.2` और `0.2.1-
|
|
83
|
+
| Harness | peer रेंज `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — `0.2.0-rc.2` और `0.2.1-rc.2` दोनों को स्वीकार करने के लिए सत्यापित। **`engines.dsh` `>=0.2.1-0 <0.3.0` के रूप में घोषित है** और 0.2.1 से होस्ट इसे लागू करता है |
|
|
67
84
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
68
85
|
| प्लेटफ़ॉर्म | सभी (शुद्ध ESM; कोई नेटिव कोड नहीं, कोई नेटवर्क नहीं, कोई मॉडल कॉल नहीं) |
|
|
69
|
-
| टूल मोड | `native
|
|
86
|
+
| टूल मोड | `native` और `ptc` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
|
|
70
87
|
|
|
71
88
|
## What it does
|
|
72
89
|
|
|
73
90
|
नियम-सूची, फ़ील्ड और विस्तृत व्यवहार [README.md](README.md#what-it-does) (अंग्रेज़ी मुख्य संस्करण) में हैं। यह प्लगइन केवल उद्धृत धाराओं के सामने शाब्दिक अंतर सूचीबद्ध करता है और हर न चल पाई जाँच को `skipped` में बताता है।
|
|
74
91
|
|
|
75
|
-
## Install
|
|
76
|
-
|
|
77
|
-
```sh
|
|
78
|
-
dsh plugin --profile <name> add dsh-hazplan-check
|
|
79
|
-
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
80
|
-
```
|
|
81
|
-
|
|
82
92
|
## Configuration
|
|
83
93
|
|
|
84
94
|
सभी समायोज्य पैरामीटर `src/config.ts` की Schemastery स्कीमा में हैं, इसलिए कोड बदले बिना `cordis.yml` से बदले जा सकते हैं; प्रति-नियम सीमाएँ `rules/` के नियम-पैक में हैं।
|
package/README-pt.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
# dsh-hazplan-check — Verificação da completude dos elementos de uma folha de trabalho HAZOP e da coerência na derivação dos desvios
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-hazplan-check` lê uma folha de trabalho HAZOP —linhas organizadas pelos próprios nomes de coluna da folha, em chinês ou em inglês, mais um cabeçalho opcional que declara o 分析对象— e verifica a completude e a rastreabilidade interna dessa mesma folha: se cada linha preenche as colunas exigidas pelo seu modelo (`偏差` e `原因` por omissão), se cada linha regista o seu `节点`, se os `引导词` vêm das tabelas 1 e 2 da norma ou da lista que o estudo declarou antecipadamente, se cada linha deixa ver de que elemento veio o desvio, se o `风险等级` sai do vocabulário de risco da sua organização, se a folha identifica o objeto de análise e se cada `偏差` é literalmente o `工艺参数` lido através do seu `引导词`; qualquer verificação que não possa correr por falta de uma coluna é reportada em `skipped` em vez de passar em silêncio.
|
|
4
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-hazplan-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Como é a saída
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
Saída real deste plugin sobre o seu próprio fixture de teste `HZ-004` — não é uma simulação. O pacote de regras não inventa citações, por isso cada achado nomeia a cláusula aplicada e avisa que o seu texto não foi obtido.
|
|
21
|
+
|
|
5
22
|
## O que ele responde
|
|
6
23
|
|
|
7
24
|
| Você pergunta | O que ele responde |
|
|
@@ -63,22 +80,15 @@ correct. **Those four judgements are the study team's, and they are where HAZOP'
|
|
|
63
80
|
|
|
64
81
|
| Superfície | Estado |
|
|
65
82
|
|---|---|
|
|
66
|
-
| Harness | Faixa de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificada para aceitar tanto `0.2.0-rc.2` quanto `0.2.1-
|
|
83
|
+
| Harness | Faixa de peers `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verificada para aceitar tanto `0.2.0-rc.2` quanto `0.2.1-rc.2`. **`engines.dsh` é declarado como `>=0.2.1-0 <0.3.0`** e o host o aplica desde 0.2.1 |
|
|
67
84
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
68
85
|
| Plataformas | Todas (ESM puro; sem código nativo, sem rede, sem chamada ao modelo) |
|
|
69
|
-
| Modo de ferramenta | Funciona em `native
|
|
86
|
+
| Modo de ferramenta | Funciona em `native` e `ptc`; para um diretório inteiro use `ptc` |
|
|
70
87
|
|
|
71
88
|
## What it does
|
|
72
89
|
|
|
73
90
|
A tabela de regras, os campos e o comportamento detalhado estão em [README.md](README.md#what-it-does) (versão principal em inglês). O plugin apenas lista divergências literais frente às cláusulas citadas e indica em `skipped` cada verificação que não pôde ser executada.
|
|
74
91
|
|
|
75
|
-
## Install
|
|
76
|
-
|
|
77
|
-
```sh
|
|
78
|
-
dsh plugin --profile <name> add dsh-hazplan-check
|
|
79
|
-
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
80
|
-
```
|
|
81
|
-
|
|
82
92
|
## Configuration
|
|
83
93
|
|
|
84
94
|
Todos os parâmetros ajustáveis ficam no esquema Schemastery de `src/config.ts`, portanto mudam pelo `cordis.yml` sem editar código; os limites por regra ficam no pacote de regras sob `rules/`.
|
package/README-zh.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
# dsh-hazplan-check — HAZOP 分析表要素齐备性与偏差推导一致性核对
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-hazplan-check` 读取一份 HAZOP 分析表——按表格自身的列名组织的行(中英文列名均可),加上可选的、写明分析对象的表头——核对这份表格自身的齐备与可追溯:每行是否填了模板要求的栏目(默认 `偏差` 与 `原因`)、每行是否写明 `节点`、`引导词` 是否取自标准表1与表2或本分析事先声明的清单、每行是否看得出偏差来自哪个要素、`风险等级` 是否出自本机构的风险档位、表头能否识别分析对象、以及每个 `偏差` 是否字面上等于 `工艺参数` 与 `引导词` 的组合;因缺列而无法执行的核对会出现在 `skipped` 里,而不是静默通过。
|
|
4
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-hazplan-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 实际输出长什么样
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
本插件对自己 `HZ-004` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文,因此每条发现都会同时写明所引条款,以及该条款原文本次未取得。
|
|
21
|
+
|
|
5
22
|
## 它回答什么问题
|
|
6
23
|
|
|
7
24
|
| 你会问 | 它怎么答 |
|
|
@@ -63,22 +80,15 @@ correct. **Those four judgements are the study team's, and they are where HAZOP'
|
|
|
63
80
|
|
|
64
81
|
| 项目 | 状态 |
|
|
65
82
|
|---|---|
|
|
66
|
-
| Harness | 对等版本范围 `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` —— 已实测同时接受 `0.2.0-rc.2` 与 `0.2.1-
|
|
83
|
+
| Harness | 对等版本范围 `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` —— 已实测同时接受 `0.2.0-rc.2` 与 `0.2.1-rc.2`。**已声明 `engines.dsh`**:0.2.1 起由宿主单独裁决,范围为 `>=0.2.1-0 <0.3.0` |
|
|
67
84
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
68
85
|
| 平台 | 全平台(纯 ESM;无原生代码、无联网、不调用模型) |
|
|
69
|
-
| 工具模式 | `native` / `ptc`
|
|
86
|
+
| 工具模式 | `native` / `ptc` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
|
|
70
87
|
|
|
71
88
|
## What it does
|
|
72
89
|
|
|
73
90
|
规则表、字段说明与行为细节见 [README.md](README.md#what-it-does)(英文主版本)。本插件只列出材料与所引条款之间的字面差异,并对无法执行的检查在 `skipped` 中逐项说明。
|
|
74
91
|
|
|
75
|
-
## Install
|
|
76
|
-
|
|
77
|
-
```sh
|
|
78
|
-
dsh plugin --profile <name> add dsh-hazplan-check
|
|
79
|
-
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
80
|
-
```
|
|
81
|
-
|
|
82
92
|
## Configuration
|
|
83
93
|
|
|
84
94
|
全部可调参数都在 `src/config.ts` 的 Schemastery schema 中,只改 `cordis.yml` 即可生效,无需改代码;逐条阈值在 `rules/` 下的规则库文件里。
|
package/README.md
CHANGED
|
@@ -1,7 +1,24 @@
|
|
|
1
1
|
# dsh-hazplan-check — HAZOP worksheet element completeness and deviation derivation consistency check
|
|
2
2
|
|
|
3
|
+
[](https://dsh.market/)
|
|
4
|
+
|
|
3
5
|
`dsh-hazplan-check` reads one HAZOP worksheet — rows keyed by the sheet's own column names, in Chinese or English, plus an optional header naming the 分析对象 — and checks that same sheet's completeness and internal traceability: that every row fills the fields your template requires (`偏差` and `原因` by default), that each row records its `节点`, that `引导词` come from the standard's tables 1 and 2 or from the list the study declared beforehand, that each row shows which element its deviation came from, that `风险等级` come from your own risk vocabulary, that the sheet names its analysis subject, and that every `偏差` is literally the `工艺参数` read through its `引导词`; a check that cannot run for want of a column is reported in `skipped` rather than passing silently.
|
|
4
6
|
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
dsh plugin --profile <name> add dsh-hazplan-check
|
|
11
|
+
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## What it looks like
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
Real output from this plugin over its own `HZ-004` test fixture — not a mock-up. The rule pack ships no invented quotations, so a finding names both the clause it applied and the fact that the clause text was not obtained.
|
|
21
|
+
|
|
5
22
|
## What it answers
|
|
6
23
|
|
|
7
24
|
| You ask | What it answers |
|
|
@@ -63,10 +80,10 @@ correct. **Those four judgements are the study team's, and they are where HAZOP'
|
|
|
63
80
|
|
|
64
81
|
| Surface | Status |
|
|
65
82
|
|---|---|
|
|
66
|
-
| Harness | Peer range `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verified to accept both `0.2.0-rc.2` and `0.2.1-
|
|
83
|
+
| Harness | Peer range `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` — verified to accept both `0.2.0-rc.2` and `0.2.1-rc.2`. `engines.dsh` is declared as `>=0.2.1-0 <0.3.0` and is enforced by the host since 0.2.1 |
|
|
67
84
|
| Node | `^22.19.0 || >=24.0.0` |
|
|
68
85
|
| Platforms | All (plain ESM; no native code, no network, no model call) |
|
|
69
|
-
| Tool mode | Works in `native
|
|
86
|
+
| Tool mode | Works in `native` and `ptc`; for several worksheets use `ptc` |
|
|
70
87
|
|
|
71
88
|
## What it does
|
|
72
89
|
|
|
@@ -83,13 +100,6 @@ in Chinese or English — applies a versioned rule pack, and returns a report.
|
|
|
83
100
|
| `HZ-006` | the sheet names its analysis subject | warn | 附录A.2(资料性) |
|
|
84
101
|
| `HZ-007` | the deviation is the parameter read through its guide word | warn | 6.4.3 |
|
|
85
102
|
|
|
86
|
-
## Install
|
|
87
|
-
|
|
88
|
-
```sh
|
|
89
|
-
dsh plugin --profile <name> add dsh-hazplan-check
|
|
90
|
-
dsh --profile <name> --dump-config | grep 'dsh-hazplan-check'
|
|
91
|
-
```
|
|
92
|
-
|
|
93
103
|
## Configuration
|
|
94
104
|
|
|
95
105
|
| Key | Type | Default | Description |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-hazplan-check",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "HAZOP 分析表要素齐备性与偏差推导一致性核对(依据公开的危险与可操作性分析标准,仅提示差异,不作出定性结论)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.mjs",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"engines": {
|
|
70
70
|
"node": "^22.19.0 || >=24.0.0",
|
|
71
|
-
"dsh": ">=0.2.1-
|
|
71
|
+
"dsh": ">=0.2.1-0 <0.3.0"
|
|
72
72
|
},
|
|
73
73
|
"packageManager": "pnpm@11.7.0",
|
|
74
74
|
"peerDependencies": {
|
|
@@ -78,11 +78,12 @@
|
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@deepseek-ai/cordis": "4.0.5-alpha.1",
|
|
81
|
-
"@deepseek-ai/dsh-package-manifest": "0.2.1-
|
|
82
|
-
"@deepseek-ai/dsh-tools": "0.2.1-
|
|
81
|
+
"@deepseek-ai/dsh-package-manifest": "0.2.1-rc.2",
|
|
82
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.2",
|
|
83
83
|
"@deepseek-ai/schemastery": "3.18.5-alpha.1",
|
|
84
84
|
"@types/node": "^22.20.1",
|
|
85
|
-
"vitest": "^3.2.7"
|
|
85
|
+
"vitest": "^3.2.7",
|
|
86
|
+
"@deepseek-ai/dsh-working-directory": "0.2.1-rc.2"
|
|
86
87
|
},
|
|
87
88
|
"dependencies": {
|
|
88
89
|
"tsdown": "^0.22.14",
|
|
@@ -119,3 +119,9 @@ curl -s http://www.gzhxaq.com/mydata/law/202008/20/15979029769544.htm \
|
|
|
119
119
|
- [ ] **未核**:`HZ-005` 的 alsoBasis 所引 **GB/T 27921—2023 附录 B.10.3**(另一份标准)。
|
|
120
120
|
- [ ] 若能取得**官方发布的 GB/T 35320—2017**(国家标准全文公开系统),应复核第四节的版本事实。
|
|
121
121
|
- [ ] ⚠️ 规则库头部另记有「修订计划 20220795-T-339……现'正在审查'」,**该状态本次未复核**,上线前应复查。
|
|
122
|
+
|
|
123
|
+
## 逐字补充(alsoBasis 覆盖)
|
|
124
|
+
|
|
125
|
+
> 对某些应用来说,根据后果潜在的严重性或基于风险矩阵的风险分级对偏离进行分类是有用的。
|
|
126
|
+
|
|
127
|
+
> 后果/可能性矩阵:通过选择结果/可能性因素,并将它们显示在矩阵上来比较单个风险,其中一个轴是结果,另一个是可能性。
|