dsh-paper-doc-adapter 0.2.3 → 0.2.8

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,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.8] - 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.7] - 2026-10-18
10
+
11
+ ### Changed
12
+
13
+ - Move the Install section to the first screen in all five READMEs.
14
+
15
+ ## [0.2.6] - 2026-10-18
16
+
17
+ ### Changed
18
+
19
+ - 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.
20
+
21
+ ## 0.2.5 - 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.4 - 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
+
3
32
  ## 0.2.3
4
33
 
5
34
  - Add a demo card to the README: one terminal shot of this plugin's real output
@@ -49,3 +78,5 @@
49
78
  - Five-language READMEs hold the same section count and the same configuration keys.
50
79
  - Rule pack: 8 rules across PD-001..PD-008.
51
80
  - Licensed Apache-2.0.
81
+
82
+
package/README-es.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # dsh-paper-doc-adapter — Verificación de la coherencia estructural de un examen analizado: tipo de pregunta, respuesta, puntuación e identificador yotta
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-paper-doc-adapter` lee un examen ya analizado —la cabecera del examen más una fila por pregunta— y comprueba la coherencia estructural interna de ese resultado: que cada pregunta registre su número y su enunciado, que haya una respuesta o una explicación, que la suma de las puntuaciones de las preguntas coincida con la puntuación total que indica la cabecera, que el tipo de pregunta provenga del vocabulario que usted configura, que el coeficiente de dificultad quede dentro de su rango, que los identificadores de pregunta estén presentes y no se repitan, que se registre un punto de conocimiento y que no quede ningún marcador de plantilla en el enunciado.
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-paper-doc-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
14
+ ```
15
+
7
16
  ## Cómo se ve la salida
8
17
 
9
- ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.png)
18
+ ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-paper-doc-adapter](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.gif)
10
21
 
11
22
  Salida real de este plugin sobre su propio fixture de prueba `PD-006` — 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
 
@@ -60,22 +71,15 @@ appropriate, or whether the paper meets its assessment objectives.
60
71
 
61
72
  | Superficie | Estado |
62
73
  |---|---|
63
- | 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 |
74
+ | 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 |
64
75
  | Node | `^22.19.0 || >=24.0.0` |
65
76
  | Plataformas | Todas (ESM puro; sin código nativo, sin red, sin llamada al modelo) |
66
- | Modo de herramienta | Funciona en `native`, `ptc` y `both`; para un directorio completo use `ptc` |
77
+ | Modo de herramienta | Funciona en `native` y `ptc`; para un directorio completo use `ptc` |
67
78
 
68
79
  ## What it does
69
80
 
70
81
  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.
71
82
 
72
- ## Install
73
-
74
- ```sh
75
- dsh plugin --profile <name> add dsh-paper-doc-adapter
76
- dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
77
- ```
78
-
79
83
  ## Configuration
80
84
 
81
85
  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-paper-doc-adapter — विश्लेषित प्रश्नपत्र की संरचनात्मक संगति की जाँच: प्रश्न-प्रकार, उत्तर, अंक और yotta पहचानकर्ता
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-paper-doc-adapter` एक विश्लेषित प्रश्नपत्र पढ़ता है — प्रश्नपत्र का हेडर और प्रत्येक प्रश्न की एक पंक्ति — और उसी विश्लेषण-परिणाम की आंतरिक संरचनात्मक संगति जाँचता है: क्या प्रत्येक प्रश्न में उसका क्रमांक और प्रश्न-कथन दर्ज है, क्या उत्तर या व्याख्या में से कम से कम एक दर्ज है, क्या सभी प्रश्नों के अंकों का जोड़ हेडर में लिखे कुल अंक के बराबर है, क्या प्रश्न-प्रकार आपके द्वारा कॉन्फ़िगर की गई सूची से आता है, क्या कठिनाई-गुणांक आपकी निर्धारित सीमा के भीतर है, क्या प्रश्न-पहचानकर्ता दर्ज और अद्वितीय हैं, क्या ज्ञान-बिंदु दर्ज है, और क्या प्रश्न-कथन में कोई टेम्पलेट प्लेसहोल्डर शेष नहीं है।
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-paper-doc-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
14
+ ```
15
+
7
16
  ## आउटपुट कैसा दिखता है
8
17
 
9
- ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.png)
18
+ ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-paper-doc-adapter](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.gif)
10
21
 
11
22
  इस प्लगइन का अपने ही `PD-006` टेस्ट फ़िक्स्चर पर वास्तविक आउटपुट — कोई नकली चित्र नहीं। नियम-पैक उद्धरण नहीं गढ़ता, इसलिए हर निष्कर्ष लागू किए गए खंड का नाम और यह भी बताता है कि उसका मूल पाठ इस बार प्राप्त नहीं हुआ।
12
23
 
@@ -60,22 +71,15 @@ appropriate, or whether the paper meets its assessment objectives.
60
71
 
61
72
  | सतह | स्थिति |
62
73
  |---|---|
63
- | 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` जानबूझकर घोषित नहीं**: इसका कोई पाठक नहीं और यह किसी होस्ट को अस्वीकार नहीं कर सकता |
74
+ | 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 से होस्ट इसे लागू करता है |
64
75
  | Node | `^22.19.0 || >=24.0.0` |
65
76
  | प्लेटफ़ॉर्म | सभी (शुद्ध ESM; कोई नेटिव कोड नहीं, कोई नेटवर्क नहीं, कोई मॉडल कॉल नहीं) |
66
- | टूल मोड | `native`, `ptc` और `both` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
77
+ | टूल मोड | `native` और `ptc` में काम करता है; पूरे फ़ोल्डर के लिए `ptc` चुनें |
67
78
 
68
79
  ## What it does
69
80
 
70
81
  नियम-सूची, फ़ील्ड और विस्तृत व्यवहार [README.md](README.md#what-it-does) (अंग्रेज़ी मुख्य संस्करण) में हैं। यह प्लगइन केवल उद्धृत धाराओं के सामने शाब्दिक अंतर सूचीबद्ध करता है और हर न चल पाई जाँच को `skipped` में बताता है।
71
82
 
72
- ## Install
73
-
74
- ```sh
75
- dsh plugin --profile <name> add dsh-paper-doc-adapter
76
- dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
77
- ```
78
-
79
83
  ## Configuration
80
84
 
81
85
  सभी समायोज्य पैरामीटर `src/config.ts` की Schemastery स्कीमा में हैं, इसलिए कोड बदले बिना `cordis.yml` से बदले जा सकते हैं; प्रति-नियम सीमाएँ `rules/` के नियम-पैक में हैं।
package/README-pt.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # dsh-paper-doc-adapter — Verificação da coerência estrutural de um exame analisado: tipo de questão, resposta, pontuação e identificador yotta
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-paper-doc-adapter` lê um exame já analisado —o cabeçalho do exame mais uma linha por questão— e verifica a coerência estrutural interna desse resultado: se cada questão regista o seu número e o seu enunciado, se há uma resposta ou uma explicação, se a soma das pontuações das questões coincide com a pontuação total indicada no cabeçalho, se o tipo de questão vem do vocabulário que você configura, se o coeficiente de dificuldade fica dentro do seu intervalo, se os identificadores de questão estão presentes e não se repetem, se um ponto de conhecimento está registado e se não resta nenhum marcador de modelo no enunciado.
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-paper-doc-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
14
+ ```
15
+
7
16
  ## Como é a saída
8
17
 
9
- ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.png)
18
+ ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-paper-doc-adapter](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.gif)
10
21
 
11
22
  Saída real deste plugin sobre o seu próprio fixture de teste `PD-006` — 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
 
@@ -60,22 +71,15 @@ appropriate, or whether the paper meets its assessment objectives.
60
71
 
61
72
  | Superfície | Estado |
62
73
  |---|---|
63
- | 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 |
74
+ | 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 |
64
75
  | Node | `^22.19.0 || >=24.0.0` |
65
76
  | Plataformas | Todas (ESM puro; sem código nativo, sem rede, sem chamada ao modelo) |
66
- | Modo de ferramenta | Funciona em `native`, `ptc` e `both`; para um diretório inteiro use `ptc` |
77
+ | Modo de ferramenta | Funciona em `native` e `ptc`; para um diretório inteiro use `ptc` |
67
78
 
68
79
  ## What it does
69
80
 
70
81
  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.
71
82
 
72
- ## Install
73
-
74
- ```sh
75
- dsh plugin --profile <name> add dsh-paper-doc-adapter
76
- dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
77
- ```
78
-
79
83
  ## Configuration
80
84
 
81
85
  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-paper-doc-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-paper-doc-adapter` 读取一份试卷解析结果——试卷表头加每道题一行——核对这份解析结果自身的结构自洽:每道题是否填写了题号与题干、是否填写了答案或解析、各题分值合计是否等于表头写的试卷总分、题型取值是否出自你配置的口径、难度系数是否落在你配置的范围内、题目标识是否齐备且唯一、是否标注了知识点、题干栏是否残留模板占位符。
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-paper-doc-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
14
+ ```
15
+
7
16
  ## 实际输出长什么样
8
17
 
9
- ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.png)
18
+ ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-paper-doc-adapter](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.gif)
10
21
 
11
22
  本插件对自己 `PD-006` 测试夹具的**真实输出**,不是示意图。规则库不伪造引文,因此每条发现都会同时写明所引条款,以及该条款原文本次未取得。
12
23
 
@@ -60,22 +71,15 @@ appropriate, or whether the paper meets its assessment objectives.
60
71
 
61
72
  | 项目 | 状态 |
62
73
  |---|---|
63
- | 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`**:它没有任何读取者,也无法拒装任何宿主 |
74
+ | 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` |
64
75
  | Node | `^22.19.0 || >=24.0.0` |
65
76
  | 平台 | 全平台(纯 ESM;无原生代码、无联网、不调用模型) |
66
- | 工具模式 | `native` / `ptc` / `both` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
77
+ | 工具模式 | `native` / `ptc` 均可;批量校验整个目录时建议 `ptc`,schema 成本只付一次 |
67
78
 
68
79
  ## What it does
69
80
 
70
81
  规则表、字段说明与行为细节见 [README.md](README.md#what-it-does)(英文主版本)。本插件只列出材料与所引条款之间的字面差异,并对无法执行的检查在 `skipped` 中逐项说明。
71
82
 
72
- ## Install
73
-
74
- ```sh
75
- dsh plugin --profile <name> add dsh-paper-doc-adapter
76
- dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
77
- ```
78
-
79
83
  ## Configuration
80
84
 
81
85
  全部可调参数都在 `src/config.ts` 的 Schemastery schema 中,只改 `cordis.yml` 即可生效,无需改代码;逐条阈值在 `rules/` 下的规则库文件里。
package/README.md CHANGED
@@ -1,12 +1,23 @@
1
1
  # dsh-paper-doc-adapter — Parsed exam paper structural self-consistency check across question type, answer, score and yotta identifier
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-paper-doc-adapter` reads one parsed exam paper — the paper header plus one row per question — and checks that parse result's own structural self-consistency: that each question records its number and stem, that an answer or an explanation is present, that the question scores total the paper score the header states, that the question type comes from the vocabulary you configure, that the difficulty coefficient falls inside your range, that question identifiers are present and unique, that a knowledge point is recorded, and that no template placeholder survives in the stem.
6
8
 
9
+ ## Install
10
+
11
+ ```sh
12
+ dsh plugin --profile <name> add dsh-paper-doc-adapter
13
+ dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
14
+ ```
15
+
7
16
  ## What it looks like
8
17
 
9
- ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.png)
18
+ ![Terminal demo of dsh-paper-doc-adapter: real output over its PD-006 fixture](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-hero.png)
19
+
20
+ ![Animated terminal demo of dsh-paper-doc-adapter](https://raw.githubusercontent.com/PerryLink/dsh-paper-doc-adapter/main/docs/assets/dsh-paper-doc-adapter-demo.gif)
10
21
 
11
22
  Real output from this plugin over its own `PD-006` 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
 
@@ -60,10 +71,10 @@ appropriate, or whether the paper meets its assessment objectives.
60
71
 
61
72
  | Surface | Status |
62
73
  |---|---|
63
- | 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 |
74
+ | 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 |
64
75
  | Node | `^22.19.0 || >=24.0.0` |
65
76
  | Platforms | All (plain ESM; no native code, no network, no model call) |
66
- | Tool mode | Works in `native`, `ptc` and `both`; for a full paper use `ptc` |
77
+ | Tool mode | Works in `native` and `ptc`; for a full paper use `ptc` |
67
78
 
68
79
  ## What it does
69
80
 
@@ -81,13 +92,6 @@ applies a versioned rule pack, and returns a report.
81
92
  | `PD-007` | a knowledge point is recorded | warn | principle |
82
93
  | `PD-008` | the stem holds no unreplaced placeholder | warn | principle |
83
94
 
84
- ## Install
85
-
86
- ```sh
87
- dsh plugin --profile <name> add dsh-paper-doc-adapter
88
- dsh --profile <name> --dump-config | grep 'dsh-paper-doc-adapter'
89
- ```
90
-
91
95
  ## Configuration
92
96
 
93
97
  | 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-paper-doc-adapter",
3
- "version": "0.2.3",
3
+ "version": "0.2.8",
4
4
  "description": "试卷解析结构核对(按题型、答案、分值与 yotta 标识核对试卷结构自洽,仅提示差异,不作出定性结论)",
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,14 +79,14 @@
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"
87
- },
88
- "dependencies": {
86
+ "vitest": "^3.2.7",
87
+ "@deepseek-ai/dsh-working-directory": "0.2.1-rc.2",
89
88
  "tsdown": "^0.22.14",
90
89
  "typescript": "^5.9.3"
91
- }
90
+ },
91
+ "dependencies": {}
92
92
  }