dsh-pleading-draft 0.2.5 → 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 CHANGED
@@ -1,5 +1,29 @@
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
+ - 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.
18
+
19
+
20
+ ## 0.2.6 - 2026-10-17
21
+
22
+ - 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`.
23
+ - Rules/docs: `excerpt` status is stated per rule (direct quotations vs derived principles); the pack no longer says every excerpt is a placeholder, and the README no longer repeats that claim.
24
+ - Docs: the compatibility table no longer claims `engines.dsh` is undeclared; drop the retired `both` tool mode.
25
+
26
+
3
27
  ## 0.2.5
4
28
 
5
29
  - Add a demo card to the README: one terminal shot of this plugin's real output
@@ -62,3 +86,5 @@
62
86
  - Five-language READMEs hold the same section count and the same configuration keys.
63
87
  - Rule pack: 7 rules across PL-001..PL-007.
64
88
  - Licensed Apache-2.0.
89
+
90
+
package/README-es.md CHANGED
@@ -4,11 +4,20 @@
4
4
 
5
5
  `dsh-pleading-draft` lee una lista de elementos de la demanda —la cabecera del caso más una fila por pretensión, con sus columnas `序号`、`诉讼请求`、`事实依据`、`证据`、`法律依据`、`金额` y `期限`— y comprueba la completitud y la coherencia interna de ese documento: que cada pretensión registre su base fáctica, señale pruebas y exponga su fundamento jurídico, que la pretensión que lleva importe lleve también plazo de cumplimiento, que la cabecera nombre al demandante y al demandado, que no se repita ningún número de elemento y que no quede ningún marcador de plantilla sin sustituir en la columna de pretensiones.
6
6
 
7
+ ## Install
8
+
9
+ ```sh
10
+ dsh plugin --profile <name> add dsh-pleading-draft
11
+ dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
12
+ ```
13
+
7
14
  ## Cómo se ve la salida
8
15
 
9
- ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.png)
16
+ ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-hero.png)
17
+
18
+ ![Animated terminal demo of dsh-pleading-draft](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.gif)
10
19
 
11
- Salida real de este plugin sobre su propio fixture de prueba `PL-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.
20
+ Salida real de este plugin sobre su propio fixture de prueba `PL-001` — no es un montaje. El paquete de reglas no inventa citas: cada hallazgo nombra la cláusula aplicada y si su excerpt es una cita literal o una inferencia de principio.
12
21
 
13
22
  ## Qué responde
14
23
 
@@ -58,22 +67,15 @@ court's determinations and the advocate's substantive judgement.**
58
67
 
59
68
  | Superficie | Estado |
60
69
  |---|---|
61
- | 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 |
70
+ | 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 |
62
71
  | Node | `^22.19.0 || >=24.0.0` |
63
72
  | Plataformas | Todas (ESM puro; sin código nativo, sin red, sin llamada al modelo) |
64
- | Modo de herramienta | Funciona en `native`, `ptc` y `both`; para un directorio completo use `ptc` |
73
+ | Modo de herramienta | Funciona en `native` y `ptc`; para un directorio completo use `ptc` |
65
74
 
66
75
  ## What it does
67
76
 
68
77
  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.
69
78
 
70
- ## Install
71
-
72
- ```sh
73
- dsh plugin --profile <name> add dsh-pleading-draft
74
- dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
75
- ```
76
-
77
79
  ## Configuration
78
80
 
79
81
  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
@@ -4,11 +4,20 @@
4
4
 
5
5
  `dsh-pleading-draft` वाद-पत्र (अथवा आवेदन) के तत्वों की सूची पढ़ता है — मुकदमे का शीर्षक और प्रत्येक दावे की एक पंक्ति, जिसमें `序号`、`诉讼请求`、`事实依据`、`证据`、`法律依据`、`金额`、`期限` कॉलम होते हैं — और उसी दस्तावेज़ की पूर्णता तथा आंतरिक सुसंगति की जाँच करता है: क्या प्रत्येक दावे का तथ्य-आधार दर्ज है, साक्ष्य की ओर संकेत है और विधिक आधार लिखा है, क्या राशि वाले दावे में पालन-अवधि भी दर्ज है, क्या शीर्षक में वादी और प्रतिवादी के नाम हैं, क्या कोई क्रमांक दोहराया नहीं गया है, और क्या दावा-कॉलम में कोई भरा न गया टेम्पलेट प्लेसहोल्डर शेष है।
6
6
 
7
+ ## Install
8
+
9
+ ```sh
10
+ dsh plugin --profile <name> add dsh-pleading-draft
11
+ dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
12
+ ```
13
+
7
14
  ## आउटपुट कैसा दिखता है
8
15
 
9
- ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.png)
16
+ ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-hero.png)
17
+
18
+ ![Animated terminal demo of dsh-pleading-draft](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.gif)
10
19
 
11
- इस प्लगइन का अपने ही `PL-001` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता, इसलिए हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका मूल पाठ इस बार प्राप्त नहीं हुआ।
20
+ इस प्लगइन का अपने ही `PL-001` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता: हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका excerpt शब्दशः उद्धरण है या सिद्धांत-व्युत्पन्न।
12
21
 
13
22
  ## यह किन सवालों का जवाब देता है
14
23
 
@@ -58,22 +67,15 @@ court's determinations and the advocate's substantive judgement.**
58
67
 
59
68
  | सतह | स्थिति |
60
69
  |---|---|
61
- | 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` जानबूझकर घोषित नहीं**: इसका कोई पाठक नहीं और यह किसी होस्ट को अस्वीकार नहीं कर सकता |
70
+ | 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 से होस्ट इसे लागू करता है |
62
71
  | Node | `^22.19.0 || >=24.0.0` |
63
72
  | प्लेटफ़ॉर्म | सभी (शुद्ध ESM; कोई नेटिव कोड नहीं, कोई नेटवर्क नहीं, कोई मॉडल कॉल नहीं) |
64
- | टूल मोड | `native`, `ptc` और `both` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
73
+ | टूल मोड | `native` और `ptc` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
65
74
 
66
75
  ## What it does
67
76
 
68
77
  नियम-सूची, फ़ील्ड और विस्तृत व्यवहार [README.md](README.md#what-it-does) (अंग्रेज़ी मुख्य संस्करण) में हैं। यह प्लगइन केवल उद्धृत धाराओं के सामने शाब्दिक अंतर सूचीबद्ध करता है और हर न चल पाई जाँच को `skipped` में बताता है।
69
78
 
70
- ## Install
71
-
72
- ```sh
73
- dsh plugin --profile <name> add dsh-pleading-draft
74
- dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
75
- ```
76
-
77
79
  ## Configuration
78
80
 
79
81
  सभी समायोज्य पैरामीटर `src/config.ts` की Schemastery स्कीमा में हैं, इसलिए कोड बदले बिना `cordis.yml` से बदले जा सकते हैं; प्रति-नियम सीमाएँ `rules/` के नियम-पैक में हैं।
package/README-pt.md CHANGED
@@ -4,11 +4,20 @@
4
4
 
5
5
  `dsh-pleading-draft` lê uma lista de elementos da petição inicial —o cabeçalho do processo mais uma linha por pedido, com as suas colunas `序号`、`诉讼请求`、`事实依据`、`证据`、`法律依据`、`金额` e `期限`— e verifica a completude e a coerência interna desse documento: se cada pedido regista o seu fundamento de facto, indica provas e apresenta o seu fundamento jurídico, se o pedido com montante indica também prazo de cumprimento, se o cabeçalho nomeia o autor e o réu, se não há números de elemento repetidos e se não resta nenhum marcador de modelo por substituir na coluna dos pedidos.
6
6
 
7
+ ## Install
8
+
9
+ ```sh
10
+ dsh plugin --profile <name> add dsh-pleading-draft
11
+ dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
12
+ ```
13
+
7
14
  ## Como é a saída
8
15
 
9
- ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.png)
16
+ ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-hero.png)
17
+
18
+ ![Animated terminal demo of dsh-pleading-draft](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.gif)
10
19
 
11
- Saída real deste plugin sobre o seu próprio fixture de teste `PL-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.
20
+ Saída real deste plugin sobre o seu próprio fixture de teste `PL-001` — não é uma simulação. O pacote de regras não inventa citações: cada achado nomeia a cláusula aplicada e se o seu excerpt é uma citação literal ou uma inferência de princípio.
12
21
 
13
22
  ## O que ele responde
14
23
 
@@ -58,22 +67,15 @@ court's determinations and the advocate's substantive judgement.**
58
67
 
59
68
  | Superfície | Estado |
60
69
  |---|---|
61
- | 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 |
70
+ | 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 |
62
71
  | Node | `^22.19.0 || >=24.0.0` |
63
72
  | Plataformas | Todas (ESM puro; sem código nativo, sem rede, sem chamada ao modelo) |
64
- | Modo de ferramenta | Funciona em `native`, `ptc` e `both`; para um diretório inteiro use `ptc` |
73
+ | Modo de ferramenta | Funciona em `native` e `ptc`; para um diretório inteiro use `ptc` |
65
74
 
66
75
  ## What it does
67
76
 
68
77
  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.
69
78
 
70
- ## Install
71
-
72
- ```sh
73
- dsh plugin --profile <name> add dsh-pleading-draft
74
- dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
75
- ```
76
-
77
79
  ## Configuration
78
80
 
79
81
  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
@@ -4,11 +4,20 @@
4
4
 
5
5
  `dsh-pleading-draft` 读取一份起诉状(或申请书)要素核对表——案件表头加每项请求要素一行,含 `序号`、`诉讼请求`、`事实依据`、`证据`、`法律依据`、`金额`、`期限` 各栏——核对这份文书自身的齐备与自洽:每项诉请是否写明事实依据、是否指明证据、是否写明法律依据,写了金额的是否也写了履行期限,表头是否写明原告与被告,请求要素序号是否重复,诉请栏是否残留未替换的占位符。
6
6
 
7
+ ## Install
8
+
9
+ ```sh
10
+ dsh plugin --profile <name> add dsh-pleading-draft
11
+ dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
12
+ ```
13
+
7
14
  ## 实际输出长什么样
8
15
 
9
- ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.png)
16
+ ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-hero.png)
17
+
18
+ ![Animated terminal demo of dsh-pleading-draft](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.gif)
10
19
 
11
- 本插件对自己 `PL-001` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文,因此每条发现都会同时写明所引条款,以及该条款原文本次未取得。
20
+ 本插件对自己 `PL-001` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文:每条发现都会写明所引条款,以及该条 excerpt 是逐字引文还是原则性推论。
12
21
 
13
22
  ## 它回答什么问题
14
23
 
@@ -58,22 +67,15 @@ court's determinations and the advocate's substantive judgement.**
58
67
 
59
68
  | 项目 | 状态 |
60
69
  |---|---|
61
- | 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`**:它没有任何读取者,也无法拒装任何宿主 |
70
+ | 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` |
62
71
  | Node | `^22.19.0 || >=24.0.0` |
63
72
  | 平台 | 全平台(纯 ESM;无原生代码、无联网、不调用模型) |
64
- | 工具模式 | `native` / `ptc` / `both` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
73
+ | 工具模式 | `native` / `ptc` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
65
74
 
66
75
  ## What it does
67
76
 
68
77
  规则表、字段说明与行为细节见 [README.md](README.md#what-it-does)(英文主版本)。本插件只列出材料与所引条款之间的字面差异,并对无法执行的检查在 `skipped` 中逐项说明。
69
78
 
70
- ## Install
71
-
72
- ```sh
73
- dsh plugin --profile <name> add dsh-pleading-draft
74
- dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
75
- ```
76
-
77
79
  ## Configuration
78
80
 
79
81
  全部可调参数都在 `src/config.ts` 的 Schemastery schema 中,只改 `cordis.yml` 即可生效,无需改代码;逐条阈值在 `rules/` 下的规则库文件里。
package/README.md CHANGED
@@ -4,11 +4,20 @@
4
4
 
5
5
  `dsh-pleading-draft` reads one pleading-element checklist — the case header plus one row per claim, with its `序号`、`诉讼请求`、`事实依据`、`证据`、`法律依据`、`金额`、`期限` columns — and checks that document's own completeness and internal consistency: that every claim records a factual basis, points at evidence and states a legal basis, that a claim carrying an amount also carries a performance deadline, that the header names the plaintiff and the defendant, that no element number is repeated, and that no unreplaced placeholder survives in the claim column.
6
6
 
7
+ ## Install
8
+
9
+ ```sh
10
+ dsh plugin --profile <name> add dsh-pleading-draft
11
+ dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
12
+ ```
13
+
7
14
  ## What it looks like
8
15
 
9
- ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.png)
16
+ ![Terminal demo of dsh-pleading-draft: real output over its PL-001 fixture](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-hero.png)
17
+
18
+ ![Animated terminal demo of dsh-pleading-draft](https://raw.githubusercontent.com/PerryLink/dsh-pleading-draft/main/docs/assets/dsh-pleading-draft-demo.gif)
10
19
 
11
- Real output from this plugin over its own `PL-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.
20
+ Real output from this plugin over its own `PL-001` test fixture — not a mock-up. The rule pack ships no invented quotations: a finding names the clause it applied and whether that excerpt is a verbatim quotation or a derived principle.
12
21
 
13
22
  ## What it answers
14
23
 
@@ -57,10 +66,10 @@ court's determinations and the advocate's substantive judgement.**
57
66
 
58
67
  | Surface | Status |
59
68
  |---|---|
60
- | 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 |
69
+ | 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 |
61
70
  | Node | `^22.19.0 || >=24.0.0` |
62
71
  | Platforms | All (plain ESM; no native code, no network, no model call) |
63
- | Tool mode | Works in `native`, `ptc` and `both`; for several claims use `ptc` |
72
+ | Tool mode | Works in `native` and `ptc`; for several claims use `ptc` |
64
73
 
65
74
  ## What it does
66
75
 
@@ -76,13 +85,6 @@ claim — applies a versioned rule pack, and returns a report.
76
85
  | `PL-005` | the document names plaintiff and defendant | warn | direct |
77
86
  | `PL-006` | element numbers are unique | warn | principle |
78
87
  | `PL-007` | the claim column holds no unreplaced placeholder | warn | principle |
79
- ## Install
80
-
81
- ```sh
82
- dsh plugin --profile <name> add dsh-pleading-draft
83
- dsh --profile <name> --dump-config | grep 'dsh-pleading-draft'
84
- ```
85
-
86
88
  ## Configuration
87
89
 
88
90
  | 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-pleading-draft",
3
- "version": "0.2.5",
3
+ "version": "0.2.9",
4
4
  "description": "起诉状要素齐备性核对(按诉请、事实、证据、法条四要素核对文书齐备,仅提示差异,不作出定性结论)",
5
5
  "type": "module",
6
6
  "main": "lib/index.mjs",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "engines": {
71
71
  "node": "^22.19.0 || >=24.0.0",
72
- "dsh": ">=0.2.1-alpha.1"
72
+ "dsh": ">=0.2.1-0 <0.3.0"
73
73
  },
74
74
  "packageManager": "pnpm@11.7.0",
75
75
  "peerDependencies": {
@@ -79,11 +79,12 @@
79
79
  },
80
80
  "devDependencies": {
81
81
  "@deepseek-ai/cordis": "4.0.5-alpha.1",
82
- "@deepseek-ai/dsh-package-manifest": "0.2.1-alpha.1",
83
- "@deepseek-ai/dsh-tools": "0.2.1-alpha.1",
82
+ "@deepseek-ai/dsh-package-manifest": "0.2.1-rc.2",
83
+ "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
84
84
  "@deepseek-ai/schemastery": "3.18.5-alpha.1",
85
85
  "@types/node": "^22.20.1",
86
- "vitest": "^3.2.7"
86
+ "vitest": "^3.2.7",
87
+ "@deepseek-ai/dsh-working-directory": "0.2.1-rc.2"
87
88
  },
88
89
  "dependencies": {
89
90
  "tsdown": "^0.22.14",
@@ -9,14 +9,14 @@
9
9
  # - kind: derived-from-principle 条款未直接规定,仅能由原则性条款推论(severity 最多 warn)
10
10
  # - kind: institutional-configuration 阈值出自本机构配置(severity 最多 info)
11
11
  #
12
- # ⚠️⚠️ 本规则库的诚实说明:**excerpt 一律不是引文。**
12
+ # ⚠️⚠️ 本规则库的诚实说明:**excerpt 逐条标明引文状态。**
13
13
  # 本插件核对的是"起诉状(或申请书)要素核对表"的**齐备性**:
14
14
  # 每项诉请是否有事实依据、是否指明证据、是否写明法律依据、
15
15
  # 给付之诉是否写明金额与履行期限、文书是否写明案号与当事人、
16
16
  # 序号是否唯一、是否残留模板占位符。
17
17
  # 其规范载体是**《中华人民共和国民事诉讼法》第一百二十二条**关于起诉状应当记明事项的规定、
18
18
  # 《最高人民法院关于适用〈中华人民共和国民事诉讼法〉的解释》等。
19
- # **核查未取得这些文件的逐字条文**,故每条 excerpt 如实写明,kind 降为 derived-from-principle(封顶 warn)。
19
+ # 已取得并逐字核对的条文标为 kind: direct;台账栏位仍需原则性推论的,保留 derived-from-principle(封顶 warn)并在 note 说明缺口。
20
20
  #
21
21
  # ⚠️⚠️ 另一条**必须保留**的边界:**本插件绝不判定诉请是否成立、
22
22
  # 是否超过诉讼时效、管辖是否正确、证据是否充分、是否应当立案**。
@@ -47,7 +47,6 @@ rules:
47
47
  ✅ **本条已于 2026-10-07 换为现行文本的逐字引文**(见 rules/evidence/clause-verification-civil-procedure-versions.md)。
48
48
  ✅ kind 已升为 direct(2026-10-07):**现行第一百二十四条第(三)项**逐字要求起诉状记明「**诉讼请求和所根据的事实与理由**」。⚠️ **条号已由 2012 年文本的第一百二十一条更正为现行的第一百二十四条(+3),并经现行文本核对确认。**
49
49
  诉请若无事实依据,就无法看出请求从何而来,法院也无从审查。
50
- 本次未取得明文条号,故封顶 warn。
51
50
  本条只核对事实依据栏是否填写,**不判断该事实是否属实、是否有证据支持**。
52
51
 
53
52
  - id: PL-002
@@ -69,7 +68,6 @@ rules:
69
68
  ✅ **本条已于 2026-10-07 换为现行文本的逐字引文**(见 rules/evidence/clause-verification-civil-procedure-versions.md)。
70
69
  ✅ kind 已升为 direct(2026-10-07):**现行第一百二十四条第(四)项**要求记明「**证据和证据来源,证人姓名和住所**」,**现行第六十七条**规定「当事人对自己提出的主张,有责任提供证据」。⚠️ **条号更正:2012 年第一百二十一条→现行第一百二十四条;2012 年第六十四条→现行第六十七条。**
71
70
  诉请与证据的对应关系是庭审的核心:文书中若看不出某项诉请靠哪些证据支撑,
72
- 举证质证就失去了索引。本次未取得明文条号,故封顶 warn。
73
71
  ⚠️ **本条只核对"是否指明了证据编号"**——它看不到证据本身,
74
72
  **因此它不能判断证据是否充分、是否与诉请对应**。这是它最重要的能力边界。
75
73
 
@@ -91,7 +89,6 @@ rules:
91
89
  note: >-
92
90
  ✅ **本条已于 2026-10-07 换为现行文本的逐字引文**(见 rules/evidence/clause-verification-civil-procedure-versions.md)。
93
91
  ✅ kind 已升为 direct(2026-10-07):同第一百二十四条第(三)项——「**所根据的事实与理由**」中的"理由"即法律依据。⚠️ **条号已更正为现行第一百二十四条。**
94
- 请求权的法律依据是起诉状的必要内容。本次未取得明文条号,故封顶 warn。
95
92
  ⚠️ **本条只核对"是否写了法条"**——它**不校验法条是否存在、是否现行有效、是否适用于本案**。
96
93
  法条适用的判断需要法律专业能力,也是诉讼代理人的核心工作,本插件刻意不做。
97
94
 
@@ -115,7 +112,6 @@ rules:
115
112
  ✅ **本条已于 2026-10-07 换为现行文本的逐字引文**(见 rules/evidence/clause-verification-civil-procedure-versions.md)。
116
113
  ⚠️ kind 仍为 derived-from-principle:**现行第一百二十二条第(三)项**要求"**有具体的**诉讼请求和事实、理由",**但并未规定给付之诉必须写明金额与履行期限**——那两项是"具体"的可核对表达。⚠️ **条号已由 2012 年第一百一十九条更正为现行第一百二十二条(+3)。**
117
114
  诉请金额与履行期限都是"请求应当明确"的组成部分:金额决定了诉讼标的额与受理费,
118
- 期限决定了判决主文能否执行。本次未取得明文条号,故封顶 warn。
119
115
  本条**只在金额栏已填写时**要求期限栏,避免对非给付之诉(确认之诉、形成之诉)报差异。
120
116
  本条只核对期限栏是否填写,**不判断金额是否计算正确、期限是否合理**。
121
117
 
@@ -137,7 +133,6 @@ rules:
137
133
  ✅ **本条已于 2026-10-07 换为现行文本的逐字引文**(见 rules/evidence/clause-verification-civil-procedure-versions.md)。
138
134
  ✅ kind 已升为 direct(2026-10-07):**现行第一百二十四条第(一)(二)项**逐字要求记明原告与被告的姓名、住所、联系方式等信息。⚠️ **条号已更正为现行第一百二十四条。**
139
135
  文书若不写明确切的当事人,法院无法确定诉讼主体,也无法送达。
140
- 本次未取得明文条号,故封顶 warn。
141
136
  配置项 plaintiff 对应原告,defendant 对应被告。
142
137
  若本机构表式还在表头记录案由与受诉法院,把它们加进 fields 即可。
143
138
 
@@ -159,7 +154,6 @@ rules:
159
154
  ✅ **本条已于 2026-10-07 换为现行文本的逐字引文**(见 rules/evidence/clause-verification-civil-procedure-versions.md)。
160
155
  ⚠️ kind 仍为 derived-from-principle:第一百二十四条要求记明各项事项,**未规定台账的请求要素序号不得重复**。⚠️ **条号已更正为现行第一百二十四条。**
161
156
  序号唯一是"每项诉请只被登记一次"的**前提条件**:序号重复会让人无法在庭审中准确指认诉请。
162
- 本次未取得明文条号,故封顶 warn。比较时忽略空白字符。
163
157
 
164
158
  - id: PL-007
165
159
  title: 诉请栏不应残留未替换的占位符
@@ -182,7 +176,6 @@ rules:
182
176
  ⚠️ kind 仍为 derived-from-principle:第一百二十二条第(三)项**未就占位符作任何规定**。⚠️ **条号已由 2012 年第一百一十九条更正为现行第一百二十二条(+3)。**
183
177
  起诉状常由模板复制而来,诉请栏留下【】、XXX、待填、TBD 之类占位符时,
184
178
  会让人误以为已经写明了请求——**这是文书类工具最危险的失效方式**。
185
- 本次未取得明文条号,故封顶 warn。
186
179
  ⚠️ 本条**不能替代对诉请明确性的实质审查**:措辞含糊但无占位符的诉请,本条不会发现。
187
180
 
188
181
  disabled: []