dsh-lawcite-adapter 0.2.4 → 0.2.10

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 CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.10] - 2026-10-18
4
+
5
+ ### Changed
6
+
7
+ - Move `tsdown` and `typescript` from runtime dependencies to devDependencies; a published checker no longer pulls a build chain into the profile. Same rollout as the 0.2.11 pilot.
8
+
9
+ ## [0.2.9] - 2026-10-18
10
+
11
+ ### Changed
12
+
13
+ - Move the Install section to the first screen in all five READMEs.
14
+
15
+ ## [0.2.8] - 2026-10-18
16
+
17
+ ### Fixed
18
+
19
+ - **The rule-pack header and six notes no longer describe the old `derived-from-principle`/`warn` classification.** All eight rules are `institutional-configuration` / `info`; the README Basis column now says so. No `check` or severity changed.
20
+
21
+ ## [0.2.7] - 2026-10-18
22
+
23
+ ### Changed
24
+
25
+ - 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.
26
+
27
+ ## 0.2.6 - 2026-10-18
28
+
29
+ - 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.
30
+
31
+
32
+ ## 0.2.5 - 2026-10-17
33
+
34
+ - 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`.
35
+ - Docs: the compatibility table no longer claims `engines.dsh` is undeclared; drop the retired `both` tool mode.
36
+
37
+
3
38
  ## 0.2.4
4
39
 
5
40
  - Add a demo card to the README: one terminal shot of this plugin's real output
@@ -56,3 +91,5 @@
56
91
  - Five-language READMEs hold the same section count and the same configuration keys.
57
92
  - Rule pack: 8 rules across LC-001..LC-008.
58
93
  - Licensed Apache-2.0.
94
+
95
+
package/README-es.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # dsh-lawcite-adapter — Verificación de citas de artículos legales y de los elementos del documento jurídico
2
2
 
3
+ [English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
4
+
3
5
  [![DSH Market](https://raw.githubusercontent.com/2BingLing/dsh-market/master/assets/readme/badge-listed-en.svg)](https://dsh.market/)
4
6
 
5
7
  `dsh-lawcite-adapter` lee un inventario de citas de artículos legales —la cabecera del documento más una fila por cita— y comprueba la verificabilidad y los elementos documentales de ese propio inventario: que cada cita indique la ley y el número de artículo, que el número de artículo siga la forma china, que se haya transcrito el texto citado, que el estado de vigencia provenga de su propio vocabulario, que la cita indique dónde se usa y qué argumenta, que la cabecera del documento declare su título y su tipo, que los números de cita no se repitan y que no sobreviva ningún marcador de plantilla en la columna del texto citado. No verifica que una ley exista, que esté vigente, que no haya sido modificada o derogada, ni que se aplique al caso.
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-lawcite-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
14
+ ```
15
+
7
16
  ## Cómo se ve la salida
8
17
 
9
- ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.png)
18
+ ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-lawcite-adapter](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.gif)
10
21
 
11
22
  Salida real de este plugin sobre su propio fixture de prueba `LC-001` — 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.
12
23
 
@@ -78,22 +89,15 @@ or repealed, or that it applies to the case.
78
89
 
79
90
  | Superficie | Estado |
80
91
  |---|---|
81
- | 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-alpha.1`. **No se declara `engines.dsh`**: no tiene lector y no puede rechazar ningún host |
92
+ | 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 |
82
93
  | Node | `^22.19.0 || >=24.0.0` |
83
94
  | Plataformas | Todas (ESM puro; sin código nativo, sin red, sin llamada al modelo) |
84
- | Modo de herramienta | Funciona en `native`, `ptc` y `both`; para un directorio completo use `ptc` |
95
+ | Modo de herramienta | Funciona en `native` y `ptc`; para un directorio completo use `ptc` |
85
96
 
86
97
  ## What it does
87
98
 
88
99
  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.
89
100
 
90
- ## Install
91
-
92
- ```sh
93
- dsh plugin --profile <name> add dsh-lawcite-adapter
94
- dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
95
- ```
96
-
97
101
  ## Configuration
98
102
 
99
103
  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,12 +1,23 @@
1
1
  # dsh-lawcite-adapter — विधिक उद्धरण और दस्तावेज़ के तत्वों की जाँच
2
2
 
3
+ [English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
4
+
3
5
  [![DSH Market](https://raw.githubusercontent.com/2BingLing/dsh-market/master/assets/readme/badge-listed-en.svg)](https://dsh.market/)
4
6
 
5
7
  `dsh-lawcite-adapter` एक विधिक-उद्धरण सूची पढ़ता है — दस्तावेज़ का हेडर और प्रत्येक उद्धरण की एक पंक्ति — और उसी सूची की सत्यापन-योग्यता तथा दस्तावेज़-तत्वों की जाँच करता है: क्या प्रत्येक उद्धरण में विधि का नाम और अनुच्छेद संख्या लिखी है, क्या अनुच्छेद संख्या मानक चीनी रूप में है, क्या उद्धृत पाठ लिखा गया है, क्या प्रभावी-स्थिति आपकी अपनी शब्दावली से ली गई है, क्या उद्धरण में यह लिखा है कि वह कहाँ प्रयुक्त है और क्या तर्क देता है, क्या दस्तावेज़ का हेडर अपना शीर्षक और प्रकार बताता है, क्या उद्धरण संख्याएँ दोहराई नहीं गई हैं, और क्या उद्धृत पाठ के कॉलम में कोई अपूरित प्लेसहोल्डर बचा नहीं है। यह नहीं जाँचता कि कोई विधि वास्तव में मौजूद है, प्रभावी है, संशोधित या निरस्त नहीं हुई, या उस मामले पर लागू होती है।
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-lawcite-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
14
+ ```
15
+
7
16
  ## आउटपुट कैसा दिखता है
8
17
 
9
- ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.png)
18
+ ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-lawcite-adapter](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.gif)
10
21
 
11
22
  इस प्लगइन का अपने ही `LC-001` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता, इसलिए हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका मूल पाठ इस बार प्राप्त नहीं हुआ।
12
23
 
@@ -78,22 +89,15 @@ or repealed, or that it applies to the case.
78
89
 
79
90
  | सतह | स्थिति |
80
91
  |---|---|
81
- | 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-alpha.1` दोनों को स्वीकार करने के लिए सत्यापित। **`engines.dsh` जानबूझकर घोषित नहीं**: इसका कोई पाठक नहीं और यह किसी होस्ट को अस्वीकार नहीं कर सकता |
92
+ | 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 से होस्ट इसे लागू करता है |
82
93
  | Node | `^22.19.0 || >=24.0.0` |
83
94
  | प्लेटफ़ॉर्म | सभी (शुद्ध ESM; कोई नेटिव कोड नहीं, कोई नेटवर्क नहीं, कोई मॉडल कॉल नहीं) |
84
- | टूल मोड | `native`, `ptc` और `both` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
95
+ | टूल मोड | `native` और `ptc` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
85
96
 
86
97
  ## What it does
87
98
 
88
99
  नियम-सूची, फ़ील्ड और विस्तृत व्यवहार [README.md](README.md#what-it-does) (अंग्रेज़ी मुख्य संस्करण) में हैं। यह प्लगइन केवल उद्धृत धाराओं के सामने शाब्दिक अंतर सूचीबद्ध करता है और हर न चल पाई जाँच को `skipped` में बताता है।
89
100
 
90
- ## Install
91
-
92
- ```sh
93
- dsh plugin --profile <name> add dsh-lawcite-adapter
94
- dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
95
- ```
96
-
97
101
  ## Configuration
98
102
 
99
103
  सभी समायोज्य पैरामीटर `src/config.ts` की Schemastery स्कीमा में हैं, इसलिए कोड बदले बिना `cordis.yml` से बदले जा सकते हैं; प्रति-नियम सीमाएँ `rules/` के नियम-पैक में हैं।
package/README-pt.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # dsh-lawcite-adapter — Verificação de citações de artigos legais e dos elementos do documento jurídico
2
2
 
3
+ [English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
4
+
3
5
  [![DSH Market](https://raw.githubusercontent.com/2BingLing/dsh-market/master/assets/readme/badge-listed-en.svg)](https://dsh.market/)
4
6
 
5
7
  `dsh-lawcite-adapter` lê um inventário de citações de artigos legais —o cabeçalho do documento mais uma linha por citação— e verifica a verificabilidade e os elementos documentais desse próprio inventário: se cada citação indica a lei e o número do artigo, se o número do artigo segue a forma chinesa, se o texto citado foi transcrito, se a situação de vigência vem do seu próprio vocabulário, se a citação indica onde é usada e o que argumenta, se o cabeçalho do documento declara o título e o tipo, se os números de citação não se repetem e se não resta nenhum marcador de modelo na coluna do texto citado. Não verifica se uma lei existe, se está em vigor, se não foi alterada ou revogada, nem se se aplica ao caso.
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-lawcite-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
14
+ ```
15
+
7
16
  ## Como é a saída
8
17
 
9
- ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.png)
18
+ ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-lawcite-adapter](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.gif)
10
21
 
11
22
  Saída real deste plugin sobre o seu próprio fixture de teste `LC-001` — 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.
12
23
 
@@ -78,22 +89,15 @@ or repealed, or that it applies to the case.
78
89
 
79
90
  | Superfície | Estado |
80
91
  |---|---|
81
- | 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-alpha.1`. **`engines.dsh` não é declarado**: não tem leitor e não pode recusar nenhum host |
92
+ | 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 |
82
93
  | Node | `^22.19.0 || >=24.0.0` |
83
94
  | Plataformas | Todas (ESM puro; sem código nativo, sem rede, sem chamada ao modelo) |
84
- | Modo de ferramenta | Funciona em `native`, `ptc` e `both`; para um diretório inteiro use `ptc` |
95
+ | Modo de ferramenta | Funciona em `native` e `ptc`; para um diretório inteiro use `ptc` |
85
96
 
86
97
  ## What it does
87
98
 
88
99
  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.
89
100
 
90
- ## Install
91
-
92
- ```sh
93
- dsh plugin --profile <name> add dsh-lawcite-adapter
94
- dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
95
- ```
96
-
97
101
  ## Configuration
98
102
 
99
103
  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,12 +1,23 @@
1
1
  # dsh-lawcite-adapter — 法条引用与文书要素核对
2
2
 
3
+ [English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
4
+
3
5
  [![DSH Market](https://raw.githubusercontent.com/2BingLing/dsh-market/master/assets/readme/badge-listed-en.svg)](https://dsh.market/)
4
6
 
5
7
  `dsh-lawcite-adapter` 读取一份法条引用清单——表头加每处引用一行——核对这份清单自身的可核验性与文书要素:每处引用是否写明法律名称与条号、条号是否写成规范的中文形式、是否抄录了引用原文、效力状态是否取自本机构配置的取值、是否写明引用位置与论证作用、文书表头是否声明标题与文书类型、引用编号是否重复、引用原文栏是否残留未替换的占位符。它不核验法条是否真实存在、是否现行有效、是否已被修订或废止、是否适用于本案。
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-lawcite-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
14
+ ```
15
+
7
16
  ## 实际输出长什么样
8
17
 
9
- ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.png)
18
+ ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-lawcite-adapter](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.gif)
10
21
 
11
22
  本插件对自己 `LC-001` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文,因此每条发现都会同时写明所引条款,以及该条款原文本次未取得。
12
23
 
@@ -78,22 +89,15 @@ or repealed, or that it applies to the case.
78
89
 
79
90
  | 项目 | 状态 |
80
91
  |---|---|
81
- | Harness | 对等版本范围 `>=0.1.2-rc.1 <0.2.0 \|\| >=0.2.0-0 <0.3.0` —— 已实测同时接受 `0.2.0-rc.2` 与 `0.2.1-alpha.1`。**刻意不声明 `engines.dsh`**:它没有任何读取者,也无法拒装任何宿主 |
92
+ | 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` |
82
93
  | Node | `^22.19.0 || >=24.0.0` |
83
94
  | 平台 | 全平台(纯 ESM;无原生代码、无联网、不调用模型) |
84
- | 工具模式 | `native` / `ptc` / `both` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
95
+ | 工具模式 | `native` / `ptc` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
85
96
 
86
97
  ## What it does
87
98
 
88
99
  规则表、字段说明与行为细节见 [README.md](README.md#what-it-does)(英文主版本)。本插件只列出材料与所引条款之间的字面差异,并对无法执行的检查在 `skipped` 中逐项说明。
89
100
 
90
- ## Install
91
-
92
- ```sh
93
- dsh plugin --profile <name> add dsh-lawcite-adapter
94
- dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
95
- ```
96
-
97
101
  ## Configuration
98
102
 
99
103
  全部可调参数都在 `src/config.ts` 的 Schemastery schema 中,只改 `cordis.yml` 即可生效,无需改代码;逐条阈值在 `rules/` 下的规则库文件里。
package/README.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # dsh-lawcite-adapter — Statute citation and legal document element check
2
2
 
3
+ [English](README.md) · [简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
4
+
3
5
  [![DSH Market](https://raw.githubusercontent.com/2BingLing/dsh-market/master/assets/readme/badge-listed-en.svg)](https://dsh.market/)
4
6
 
5
7
  `dsh-lawcite-adapter` reads one statute-citation inventory — the document header plus one row per citation — and checks that inventory's own verifiability and document elements: that each citation states its law and article number, that the article number follows the Chinese form, that a direct quotation has been transcribed into the quotation column, that the power status comes from your own vocabulary, that the citation states where it is used and what it argues, that the document header names its title and type, that citation numbers are not repeated, and that no unreplaced placeholder survives in the quotation column. It does not verify that a statute exists, that it is currently in force, that it has not been amended or repealed, or that it applies to the case.
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-lawcite-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
14
+ ```
15
+
7
16
  ## What it looks like
8
17
 
9
- ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.png)
18
+ ![Terminal demo of dsh-lawcite-adapter: real output over its LC-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-lawcite-adapter](https://raw.githubusercontent.com/PerryLink/dsh-lawcite-adapter/main/docs/assets/dsh-lawcite-adapter-demo.gif)
10
21
 
11
22
  Real output from this plugin over its own `LC-001` 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.
12
23
 
@@ -78,10 +89,10 @@ or repealed, or that it applies to the case.
78
89
 
79
90
  | Surface | Status |
80
91
  |---|---|
81
- | 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-alpha.1`. `engines.dsh` is deliberately not declared: it has no reader and cannot reject a host |
92
+ | 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 |
82
93
  | Node | `^22.19.0 || >=24.0.0` |
83
94
  | Platforms | All (plain ESM; no native code, no network, no model call) |
84
- | Tool mode | Works in `native`, `ptc` and `both`; for a long submission use `ptc` |
95
+ | Tool mode | Works in `native` and `ptc`; for a long submission use `ptc` |
85
96
 
86
97
  ## What it does
87
98
 
@@ -90,21 +101,14 @@ citation — applies a versioned rule pack, and returns a report.
90
101
 
91
102
  | Rule | Check | Severity | Basis kind |
92
103
  |---|---|---|---|
93
- | `LC-001` | the law name and article number are stated | info | local |
94
- | `LC-002` | the article number follows the Chinese form | info | local |
95
- | `LC-003` | a direct quotation is transcribed | info | local |
96
- | `LC-004` | the power status comes from your vocabulary (off by default) | info | local |
97
- | `LC-005` | the citation states its location and purpose | info | local |
98
- | `LC-006` | the document names its title and type | info | local |
99
- | `LC-007` | citation numbers are unique | info | local |
100
- | `LC-008` | the quotation column holds no unreplaced placeholder | info | local |
101
- ## Install
102
-
103
- ```sh
104
- dsh plugin --profile <name> add dsh-lawcite-adapter
105
- dsh --profile <name> --dump-config | grep 'dsh-lawcite-adapter'
106
- ```
107
-
104
+ | `LC-001` | the law name and article number are stated | info | local (institutional-configuration) |
105
+ | `LC-002` | the article number follows the Chinese form | info | local (institutional-configuration) |
106
+ | `LC-003` | a direct quotation is transcribed | info | local (institutional-configuration) |
107
+ | `LC-004` | the power status comes from your vocabulary (off by default) | info | local (institutional-configuration) |
108
+ | `LC-005` | the citation states its location and purpose | info | local (institutional-configuration) |
109
+ | `LC-006` | the document names its title and type | info | local (institutional-configuration) |
110
+ | `LC-007` | citation numbers are unique | info | local (institutional-configuration) |
111
+ | `LC-008` | the quotation column holds no unreplaced placeholder | info | local (institutional-configuration) |
108
112
  ## Configuration
109
113
 
110
114
  | Key | Type | Default | Description |
package/lib/index.mjs CHANGED
@@ -2188,14 +2188,6 @@ function runTableCheck(input, ruleset, options) {
2188
2188
  });
2189
2189
  already.add(ruleId);
2190
2190
  }
2191
- for (const rule of ruleset.rules) {
2192
- if (disabled.has(rule.id) || fired.has(rule.id) || already.has(rule.id)) continue;
2193
- if (only.size > 0 && !only.has(rule.id)) continue;
2194
- skipped.push({
2195
- rule: rule.id,
2196
- reason: withNote("材料满足该检查的前置条件且未发现差异条目")
2197
- });
2198
- }
2199
2191
  if (only.size > 0) {
2200
2192
  const notSelected = ruleset.rules.filter((rule) => !only.has(rule.id) && !disabled.has(rule.id));
2201
2193
  if (notSelected.length > 0) skipped.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-lawcite-adapter",
3
- "version": "0.2.4",
3
+ "version": "0.2.10",
4
4
  "description": "法条引用与文书要素核对(按名称、条号、原文与效力状态核对引用可核验性,仅提示差异,不作出定性结论)",
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-alpha.1"
71
+ "dsh": ">=0.2.1-0 <0.3.0"
72
72
  },
73
73
  "packageManager": "pnpm@11.7.0",
74
74
  "peerDependencies": {
@@ -78,14 +78,14 @@
78
78
  },
79
79
  "devDependencies": {
80
80
  "@deepseek-ai/cordis": "4.0.5-alpha.1",
81
- "@deepseek-ai/dsh-package-manifest": "0.2.1-alpha.1",
82
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.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"
86
- },
87
- "dependencies": {
85
+ "vitest": "^3.2.7",
86
+ "@deepseek-ai/dsh-working-directory": "0.2.1-rc.2",
88
87
  "tsdown": "^0.22.14",
89
88
  "typescript": "^5.9.3"
90
- }
89
+ },
90
+ "dependencies": {}
91
91
  }
@@ -16,7 +16,7 @@
16
16
  # 是否注明版本、引用编号是否重复、是否残留模板占位符。
17
17
  # 其规范载体是**《中华人民共和国立法法》**关于法律效力位阶的规定、
18
18
  # **《党政机关公文格式》(GB/T 9704—2012)**与各单位的法律文书审查办法。
19
- # **核查未取得这些文件的逐字条文**,故每条 excerpt 如实写明,kind 降为 derived-from-principle(封顶 warn)。
19
+ # **核查未取得这些文件的逐字条文**,故每条 excerpt 如实写明;2026-10-07 起 kind 为 institutional-configuration、severity 为 info。
20
20
  #
21
21
  # ⚠️⚠️ 另一条**必须保留**的边界:**本插件绝不核验法条是否真实存在、
22
22
  # 是否现行有效、是否已被修订或废止、是否适用于本案**。
@@ -89,7 +89,7 @@ rules:
89
89
  其第 1—11 章的全部内容是**纸张、版面、印制装订、格式要素的编排位置与字体字号、特定格式与式样**;
90
90
  **通篇不含任何关于"如何引用法律条文"的规定**。
91
91
  ⇒ 本条的"依据"**应读作本机构法律文书审查口径**,**不是该标准的规定**。
92
- **规则本身的定性是对的**(`kind: derived-from-principle`、`severity: warn`、`excerpt` 如实写"未取得"),
92
+ **规则本身的定性是对的**(`kind: institutional-configuration`、`severity: info`、`excerpt` 如实写"未取得"),
93
93
  **故本轮只加说明、不改判定**;若要改判为 `institutional-configuration`,须单独做一次定级调整。
94
94
 
95
95
  - id: LC-003
@@ -121,7 +121,7 @@ rules:
121
121
  其第 1—11 章的全部内容是**纸张、版面、印制装订、格式要素的编排位置与字体字号、特定格式与式样**;
122
122
  **通篇不含任何关于"如何引用法律条文"的规定**。
123
123
  ⇒ 本条的"依据"**应读作本机构法律文书审查口径**,**不是该标准的规定**。
124
- **规则本身的定性是对的**(`kind: derived-from-principle`、`severity: warn`、`excerpt` 如实写"未取得"),
124
+ **规则本身的定性是对的**(`kind: institutional-configuration`、`severity: info`、`excerpt` 如实写"未取得"),
125
125
  **故本轮只加说明、不改判定**;若要改判为 `institutional-configuration`,须单独做一次定级调整。
126
126
 
127
127
  - id: LC-004
@@ -175,7 +175,7 @@ rules:
175
175
  其第 1—11 章的全部内容是**纸张、版面、印制装订、格式要素的编排位置与字体字号、特定格式与式样**;
176
176
  **通篇不含任何关于"如何引用法律条文"的规定**。
177
177
  ⇒ 本条的"依据"**应读作本机构法律文书审查口径**,**不是该标准的规定**。
178
- **规则本身的定性是对的**(`kind: derived-from-principle`、`severity: warn`、`excerpt` 如实写"未取得"),
178
+ **规则本身的定性是对的**(`kind: institutional-configuration`、`severity: info`、`excerpt` 如实写"未取得"),
179
179
  **故本轮只加说明、不改判定**;若要改判为 `institutional-configuration`,须单独做一次定级调整。
180
180
 
181
181
  - id: LC-006
@@ -206,7 +206,7 @@ rules:
206
206
  其第 1—11 章的全部内容是**纸张、版面、印制装订、格式要素的编排位置与字体字号、特定格式与式样**;
207
207
  **通篇不含任何关于"如何引用法律条文"的规定**。
208
208
  ⇒ 本条的"依据"**应读作本机构法律文书审查口径**,**不是该标准的规定**。
209
- **规则本身的定性是对的**(`kind: derived-from-principle`、`severity: warn`、`excerpt` 如实写"未取得"),
209
+ **规则本身的定性是对的**(`kind: institutional-configuration`、`severity: info`、`excerpt` 如实写"未取得"),
210
210
  **故本轮只加说明、不改判定**;若要改判为 `institutional-configuration`,须单独做一次定级调整。
211
211
 
212
212
  - id: LC-007
@@ -237,7 +237,7 @@ rules:
237
237
  其第 1—11 章的全部内容是**纸张、版面、印制装订、格式要素的编排位置与字体字号、特定格式与式样**;
238
238
  **通篇不含任何关于"如何引用法律条文"的规定**。
239
239
  ⇒ 本条的"依据"**应读作本机构法律文书审查口径**,**不是该标准的规定**。
240
- **规则本身的定性是对的**(`kind: derived-from-principle`、`severity: warn`、`excerpt` 如实写"未取得"),
240
+ **规则本身的定性是对的**(`kind: institutional-configuration`、`severity: info`、`excerpt` 如实写"未取得"),
241
241
  **故本轮只加说明、不改判定**;若要改判为 `institutional-configuration`,须单独做一次定级调整。
242
242
 
243
243
  - id: LC-008
@@ -270,7 +270,7 @@ rules:
270
270
  其第 1—11 章的全部内容是**纸张、版面、印制装订、格式要素的编排位置与字体字号、特定格式与式样**;
271
271
  **通篇不含任何关于"如何引用法律条文"的规定**。
272
272
  ⇒ 本条的"依据"**应读作本机构法律文书审查口径**,**不是该标准的规定**。
273
- **规则本身的定性是对的**(`kind: derived-from-principle`、`severity: warn`、`excerpt` 如实写"未取得"),
273
+ **规则本身的定性是对的**(`kind: institutional-configuration`、`severity: info`、`excerpt` 如实写"未取得"),
274
274
  **故本轮只加说明、不改判定**;若要改判为 `institutional-configuration`,须单独做一次定级调整。
275
275
 
276
276
  disabled: []