dsh-response-letter 0.1.2 → 0.1.3
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-zh.md +24 -4
- package/README.md +24 -4
- package/docs/assets/dsh-response-letter-demo.gif +0 -0
- package/docs/assets/dsh-response-letter-flow-v5-dark.svg +73 -0
- package/docs/assets/dsh-response-letter-flow-v5-light.svg +73 -0
- package/docs/assets/dsh-response-letter-hero-en-dark.webp +0 -0
- package/docs/assets/dsh-response-letter-hero-en-light.webp +0 -0
- package/docs/assets/dsh-response-letter-hero-zh-dark.webp +0 -0
- package/docs/assets/dsh-response-letter-hero-zh-light.webp +0 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -3
- package/src/version.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
## [0.1.3] - 2026-11-22
|
|
6
|
+
|
|
7
|
+
- Compatibility: declare DeepSeek Harness 0.2.3-alpha.1 support (>=0.2.3-0 <0.3.0-0 in engines.dsh and every @deepseek-ai/dsh-* peer range) and refresh README verification stamps.
|
|
8
|
+
|
|
3
9
|
All notable changes to this project are documented here. The format follows
|
|
4
10
|
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
|
|
5
11
|
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
package/README-zh.md
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-response-letter-hero-zh-dark.webp">
|
|
5
|
+
<img src="docs/assets/dsh-response-letter-hero-zh-light.webp" width="100%" alt="dsh-response-letter 配图:一份来自 Reviewer 1 / Reviewer 2 的 4 条意见的审稿,对照 3 条带编号回复逐条核对——#1 answered、#3 仅 6 个字符记 empty、#4 missing;右侧是覆盖计数与 REP 证据记录">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
1
8
|
# dsh-response-letter
|
|
2
9
|
|
|
3
10
|
**每一条审稿意见都有回复——而且可以按编号核实。**
|
|
4
11
|
|
|
5
12
|
*解析审稿意见(Reviewer/Referee/审稿人 标题行,编号模式或段落模式),按回复编号检查逐条回复信(缺失、过短、多余、重复),并导出带覆盖表的 Markdown 回复信。*
|
|
6
13
|
|
|
14
|
+
[English](README.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
|
|
15
|
+
|
|
7
16
|
[](LICENSE)
|
|
8
17
|
[]()
|
|
9
18
|
|
|
10
|
-
|
|
19
|
+
</div>
|
|
11
20
|
|
|
12
21
|
---
|
|
13
22
|
|
|
@@ -17,6 +26,13 @@
|
|
|
17
26
|
- **`letter_check`** — 把回复编号与意见编号对应起来,并报告:缺失的编号、少于 20 个字符的回复、重复的回复编号,以及引用了不存在意见编号的回复。
|
|
18
27
|
- **`letter_export`** — 输出一张 Markdown 表格(#、审稿人、意见、回复),未回答的条目加粗,并附覆盖表。Markdown 就是交付物;不发送邮件,也不上传任何内容。
|
|
19
28
|
|
|
29
|
+
<picture>
|
|
30
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-response-letter-flow-v5-dark.svg">
|
|
31
|
+
<img src="docs/assets/dsh-response-letter-flow-v5-light.svg" width="100%" alt="dsh-response-letter 结构图:审稿意见被解析为全局编号 1..N 的意见,逐条回复信按回复编号匹配(缺失、短于 20 个字符、多余、重复),输出覆盖计数与 Markdown 回复信;图内是真实的工具名、标记与输出字段名,五语共用同一张图">
|
|
32
|
+
</picture>
|
|
33
|
+
|
|
34
|
+
*结构:解析 → 核对 → 导出;`coverage` 与 `findings[]` 是两项检查输出,`letter_export` 只产出 Markdown。图内只有工具名、标记与字段名,五语共用同一张结构图。*
|
|
35
|
+
|
|
20
36
|
## 它不做什么
|
|
21
37
|
|
|
22
38
|
- **不做充分性判断。** 覆盖统计只计入带编号的回复,不判断回复是否有说服力、是否礼貌、是否有证据支撑。
|
|
@@ -51,7 +67,7 @@
|
|
|
51
67
|
|
|
52
68
|
| | |
|
|
53
69
|
|---|---|
|
|
54
|
-
| DeepSeek Harness | **`dsh-v0.2.
|
|
70
|
+
| DeepSeek Harness | **`dsh-v0.2.3-alpha.1`**(2026-11-22 实测);peer `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0` |
|
|
55
71
|
| Node | `^22.19.0 \|\| >=24.9.0`(实测 `24.22.1`),仅 ESM |
|
|
56
72
|
| Peer 依赖 | `@perrylink/dsh-research-core ^0.1.0`、`@deepseek-ai/cordis ^4.0.5-alpha.1`、`@deepseek-ai/dsh-tools`、`@deepseek-ai/schemastery ^3.18.5-alpha.1` |
|
|
57
73
|
| 运行时依赖 | **零** |
|
|
@@ -80,7 +96,11 @@ dsh --profile <name> --dump-config | grep dsh-response-letter
|
|
|
80
96
|
|
|
81
97
|
## 评测
|
|
82
98
|
|
|
83
|
-
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
*动图是真实的 `pnpm exec vitest run --reporter=verbose` 输出与包门禁(2026-11-21 复跑;当前套件共 22 条测试)。解析与覆盖都用显式 fixture 验证,全程不联网。*
|
|
102
|
+
|
|
103
|
+
**22 个测试**:带审稿人标题(含 `R1`)和 CRLF 文本的编号解析、段落回退及警告、空文本拒绝、回复提取、完整/部分覆盖(缺失、过短、多余)、重复编号与重复导出的一致性、运行时(有效的 REP 记录、文件和文本路径、路径穿越/符号链接/DOCX/超大文件拒绝、畸形 JSON 载荷)、工具(schema、parse→check→export 端到端、失败分支)、插件契约、包契约。
|
|
84
104
|
|
|
85
105
|
不宣称任何基准成绩:这里的正确性指的是解析器在明确格式上的行为,由 fixture 校验;并不存在真实回复信的人工标注语料。
|
|
86
106
|
|
|
@@ -93,4 +113,4 @@ dsh --profile <name> --dump-config | grep dsh-response-letter
|
|
|
93
113
|
|
|
94
114
|
## 许可
|
|
95
115
|
|
|
96
|
-
Apache-2.0。运行时零第三方代码。
|
|
116
|
+
Apache-2.0。运行时零第三方代码。
|
package/README.md
CHANGED
|
@@ -1,13 +1,22 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-response-letter-hero-en-dark.webp">
|
|
5
|
+
<img src="docs/assets/dsh-response-letter-hero-en-light.webp" width="100%" alt="dsh-response-letter: a review of four comments from Reviewer 1 and Reviewer 2 checked against three numbered responses — #1 answered, #3 empty at six characters, #4 missing — with the coverage counts and the REP evidence record on the right">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
1
8
|
# dsh-response-letter
|
|
2
9
|
|
|
3
10
|
**Every reviewer comment answered — and provably so, by number.**
|
|
4
11
|
|
|
5
12
|
*Parses reviewer comments (Reviewer/Referee/审稿人 headers, numbered or paragraph mode), checks the point-by-point letter by response number (missing, too short, extra, duplicates), and exports a Markdown letter with a coverage table.*
|
|
6
13
|
|
|
14
|
+
[简体中文](README-zh.md) · [Español](README-es.md) · [Português](README-pt.md) · [हिन्दी](README-hi.md)
|
|
15
|
+
|
|
7
16
|
[](LICENSE)
|
|
8
17
|
[]()
|
|
9
18
|
|
|
10
|
-
|
|
19
|
+
</div>
|
|
11
20
|
|
|
12
21
|
---
|
|
13
22
|
|
|
@@ -17,6 +26,13 @@ English · [简体中文](README-zh.md)
|
|
|
17
26
|
- **`letter_check`** — matches response numbers to comment numbers and reports: missing numbers, answers shorter than 20 characters, duplicate response numbers, and responses citing a number that no comment has.
|
|
18
27
|
- **`letter_export`** — a Markdown table (#, reviewer, comment, response) with unanswered points in bold, plus the coverage table. Markdown is the deliverable; nothing is emailed or uploaded.
|
|
19
28
|
|
|
29
|
+
<picture>
|
|
30
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-response-letter-flow-v5-dark.svg">
|
|
31
|
+
<img src="docs/assets/dsh-response-letter-flow-v5-light.svg" width="100%" alt="dsh-response-letter structure: reviewer comments are parsed into globally numbered comments 1..N, the point-by-point letter is matched by response number (missing, shorter than 20 characters, extra, duplicates), and the result is a coverage count plus a Markdown letter; the tokens in the diagram are the real tool, marker and output names, so all five languages use the same picture">
|
|
32
|
+
</picture>
|
|
33
|
+
|
|
34
|
+
*Structure: parse → check → export; `coverage` and `findings[]` are the two check outputs, and `letter_export` renders Markdown only. The token labels inside the diagram are the real tool, marker and field names, so the same picture serves all five languages.*
|
|
35
|
+
|
|
20
36
|
## What it does not do
|
|
21
37
|
|
|
22
38
|
- **No adequacy judgement.** Coverage counts numbered answers; it does not say whether an answer is convincing, polite or evidence-based.
|
|
@@ -51,7 +67,7 @@ Comments are numbered 1..N in document order across reviewers (not per reviewer)
|
|
|
51
67
|
|
|
52
68
|
| | |
|
|
53
69
|
|---|---|
|
|
54
|
-
| DeepSeek Harness | **`dsh-v0.2.
|
|
70
|
+
| DeepSeek Harness | **`dsh-v0.2.3-alpha.1`** (verified 2026-11-22); peer `>=0.2.1-0 <0.3.0 \|\| >=0.2.2-0 <0.3.0` |
|
|
55
71
|
| Node | `^22.19.0 \|\| >=24.9.0` (tested `24.22.1`), ESM only |
|
|
56
72
|
| Peers | `@perrylink/dsh-research-core ^0.1.0`, `@deepseek-ai/cordis ^4.0.5-alpha.1`, `@deepseek-ai/dsh-tools`, `@deepseek-ai/schemastery ^3.18.5-alpha.1` |
|
|
57
73
|
| Runtime dependencies | **zero** |
|
|
@@ -80,7 +96,11 @@ dsh --profile <name> --dump-config | grep dsh-response-letter
|
|
|
80
96
|
|
|
81
97
|
## Evaluation
|
|
82
98
|
|
|
83
|
-
|
|
99
|
+

|
|
100
|
+
|
|
101
|
+
*Animated: the real `pnpm exec vitest run --reporter=verbose` output and the package gate (re-run 2026-11-21; the suite has 22 tests today). Parsing and coverage are checked against explicit fixtures; nothing here touches the network.*
|
|
102
|
+
|
|
103
|
+
**22 tests**: numbered parsing with reviewer headers (including `R1`) and CRLF text, paragraph fallback with warning, empty-text rejection, response extraction, full/partial coverage (missing, short, extra), duplicate numbers and duplicate-export consistency, runtime (valid REP record, file and text paths, traversal/symlink/DOCX/oversize rejection, malformed JSON payloads), tools (schemas, parse→check→export end-to-end, failure branch), plugin contract, package contract.
|
|
84
104
|
|
|
85
105
|
No benchmark is claimed: correctness here is parsing behavior on explicit formats, checked with fixtures; there is no labelled corpus of real review letters.
|
|
86
106
|
|
|
@@ -93,4 +113,4 @@ No benchmark is claimed: correctness here is parsing behavior on explicit format
|
|
|
93
113
|
|
|
94
114
|
## License
|
|
95
115
|
|
|
96
|
-
Apache-2.0. No third-party runtime code.
|
|
116
|
+
Apache-2.0. No third-party runtime code.
|
|
Binary file
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="660" viewBox="0 0 1100 660" role="img" aria-label="dsh-response-letter structure diagram">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="bg" x1="0" y1="0" x2="0.3" y2="1"><stop offset="0" stop-color="#131a2a"/><stop offset="1" stop-color="#0c1016"/></linearGradient>
|
|
4
|
+
<filter id="soft" x="-30%" y="-30%" width="160%" height="170%"><feDropShadow dx="0" dy="7" stdDeviation="9" flood-color="#16122c" flood-opacity="0.45"/></filter>
|
|
5
|
+
<marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6.4" markerHeight="6.4" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#8496f5"/></marker>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="1100" height="660" fill="url(#bg)"/>
|
|
8
|
+
<text x="44" y="58" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="28" font-weight="700">dsh-response-letter</text>
|
|
9
|
+
<text x="44" y="88" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="15">reviewer comments → global numbers 1..N → response numbers → coverage + Markdown letter</text>
|
|
10
|
+
<rect x="932.984375" y="36" width="123.015625" height="26" rx="13.0" fill="#202839"/>
|
|
11
|
+
<text x="944.984375" y="53.08" fill="#8496f5" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="12" font-weight="700">no network calls</text>
|
|
12
|
+
<rect x="44" y="120" width="214" height="250" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
|
|
13
|
+
<text x="62" y="146" fill="#737b8d" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">01</text>
|
|
14
|
+
<text x="62" y="172" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Parse</text>
|
|
15
|
+
<text x="62" y="196" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">review text → comments</text>
|
|
16
|
+
<rect x="62" y="209" width="178" height="26" rx="8" fill="#202839"/>
|
|
17
|
+
<text x="72" y="227" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">Reviewer/Referee/R1</text>
|
|
18
|
+
<rect x="62" y="241" width="178" height="26" rx="8" fill="#202839"/>
|
|
19
|
+
<text x="72" y="259" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">1. 2) Comment 3: Q4:</text>
|
|
20
|
+
<rect x="62" y="273" width="178" height="26" rx="8" fill="#202839"/>
|
|
21
|
+
<text x="72" y="291" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">paragraph fallback</text>
|
|
22
|
+
<line x1="260" y1="245.0" x2="276" y2="245.0" stroke="#8496f5" stroke-width="1.8" marker-end="url(#arr)"/>
|
|
23
|
+
<rect x="278" y="120" width="214" height="250" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
|
|
24
|
+
<text x="296" y="146" fill="#737b8d" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">02</text>
|
|
25
|
+
<text x="296" y="172" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Check</text>
|
|
26
|
+
<text x="296" y="196" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">response number → comment</text>
|
|
27
|
+
<rect x="296" y="209" width="178" height="26" rx="8" fill="#202839"/>
|
|
28
|
+
<text x="306" y="227" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">missing numbers</text>
|
|
29
|
+
<rect x="296" y="241" width="178" height="26" rx="8" fill="#202839"/>
|
|
30
|
+
<text x="306" y="259" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">shorter than 20</text>
|
|
31
|
+
<rect x="296" y="273" width="178" height="26" rx="8" fill="#202839"/>
|
|
32
|
+
<text x="306" y="291" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">extra · duplicates</text>
|
|
33
|
+
<line x1="494" y1="245.0" x2="510" y2="245.0" stroke="#8496f5" stroke-width="1.8" marker-end="url(#arr)"/>
|
|
34
|
+
<rect x="512" y="120" width="214" height="250" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
|
|
35
|
+
<text x="530" y="146" fill="#737b8d" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">03</text>
|
|
36
|
+
<text x="530" y="172" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Export</text>
|
|
37
|
+
<text x="530" y="196" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">Markdown + coverage</text>
|
|
38
|
+
<rect x="530" y="209" width="178" height="26" rx="8" fill="#202839"/>
|
|
39
|
+
<text x="540" y="227" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5"># · reviewer</text>
|
|
40
|
+
<rect x="530" y="241" width="178" height="26" rx="8" fill="#202839"/>
|
|
41
|
+
<text x="540" y="259" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">comment · response</text>
|
|
42
|
+
<rect x="530" y="273" width="178" height="26" rx="8" fill="#202839"/>
|
|
43
|
+
<text x="540" y="291" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">coverage table</text>
|
|
44
|
+
<rect x="752" y="120" width="304" height="148" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
|
|
45
|
+
<text x="772" y="148" fill="#8496f5" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">coverage</text>
|
|
46
|
+
<rect x="982.6875" y="130" width="59.359375" height="18" rx="9.0" fill="#202839"/>
|
|
47
|
+
<text x="991.6875" y="142.57" fill="#8496f5" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">counted</text>
|
|
48
|
+
<text x="772" y="176" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">answered: 2/4</text>
|
|
49
|
+
<text x="772" y="198" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">missing: 1 · empty: 1</text>
|
|
50
|
+
<text x="772" y="220" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">extra: 0</text>
|
|
51
|
+
<rect x="752" y="288" width="304" height="122" rx="18" fill="#1b2231" stroke="#2e374b" stroke-width="1.5" filter="url(#soft)"/>
|
|
52
|
+
<text x="772" y="316" fill="#a8b1c4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">findings[]</text>
|
|
53
|
+
<rect x="968.375" y="298" width="72.828125" height="18" rx="9.0" fill="#202839"/>
|
|
54
|
+
<text x="977.375" y="310.57" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">by number</text>
|
|
55
|
+
<text x="772" y="344" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">#1 answered</text>
|
|
56
|
+
<text x="772" y="366" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">#3 empty (6 chars)</text>
|
|
57
|
+
<text x="772" y="388" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">#4 missing</text>
|
|
58
|
+
<rect x="752" y="430" width="304" height="82" rx="18" fill="#1b2231" stroke="#8496f5" stroke-width="1.6" filter="url(#soft)"/>
|
|
59
|
+
<text x="772" y="458" fill="#f0f3f9" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="13.5" font-weight="700">author</text>
|
|
60
|
+
<text x="772" y="482" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">writes every response</text>
|
|
61
|
+
<text x="772" y="502" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">coverage is counted, not judged</text>
|
|
62
|
+
<path d="M730 245.0 H742" fill="none" stroke="#8496f5" stroke-width="1.6" stroke-linecap="round"/>
|
|
63
|
+
<path d="M742 210 V471" fill="none" stroke="#8496f5" stroke-width="1.6" stroke-linecap="round"/>
|
|
64
|
+
<line x1="742" y1="194" x2="750" y2="194" stroke="#8496f5" stroke-width="1.6" marker-end="url(#arr)"/>
|
|
65
|
+
<line x1="742" y1="349" x2="750" y2="349" stroke="#8496f5" stroke-width="1.6" marker-end="url(#arr)"/>
|
|
66
|
+
<line x1="742" y1="471" x2="750" y2="471" stroke="#8496f5" stroke-width="1.6" marker-end="url(#arr)"/>
|
|
67
|
+
<line x1="44" y1="420" x2="714" y2="420" stroke="#2b3348" stroke-width="1"/>
|
|
68
|
+
<text x="44" y="444" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">answered needs a numbered response of at least 20 characters; empty, missing and extra are reported by number.</text>
|
|
69
|
+
<text x="44" y="464" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">letter_export writes Markdown only — nothing is emailed or uploaded, and the review text is never edited.</text>
|
|
70
|
+
<line x1="44" y1="564" x2="1056" y2="564" stroke="#2b3348" stroke-width="1"/>
|
|
71
|
+
<text x="44" y="588" fill="#a8b1c4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">config: root · workspaceRoot · maxChars · persist · enabled | evidence: REP v1 via ctx.researchEvidence or a local core store</text>
|
|
72
|
+
<text x="44" y="610" fill="#737b8d" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">text-only · no network · no model call · DOCX/PDF rejected with a conversion hint (PDF text: dsh-doc-anchor)</text>
|
|
73
|
+
</svg>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1100" height="660" viewBox="0 0 1100 660" role="img" aria-label="dsh-response-letter structure diagram">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="bg" x1="0" y1="0" x2="0.3" y2="1"><stop offset="0" stop-color="#f9f6fd"/><stop offset="1" stop-color="#e4eaf8"/></linearGradient>
|
|
4
|
+
<filter id="soft" x="-30%" y="-30%" width="160%" height="170%"><feDropShadow dx="0" dy="7" stdDeviation="9" flood-color="#16122c" flood-opacity="0.10"/></filter>
|
|
5
|
+
<marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6.4" markerHeight="6.4" orient="auto-start-reverse"><path d="M0 0 L10 5 L0 10 z" fill="#4B67B4"/></marker>
|
|
6
|
+
</defs>
|
|
7
|
+
<rect width="1100" height="660" fill="url(#bg)"/>
|
|
8
|
+
<text x="44" y="58" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="28" font-weight="700">dsh-response-letter</text>
|
|
9
|
+
<text x="44" y="88" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="15">reviewer comments → global numbers 1..N → response numbers → coverage + Markdown letter</text>
|
|
10
|
+
<rect x="932.984375" y="36" width="123.015625" height="26" rx="13.0" fill="#f5f2fb"/>
|
|
11
|
+
<text x="944.984375" y="53.08" fill="#4B67B4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="12" font-weight="700">no network calls</text>
|
|
12
|
+
<rect x="44" y="120" width="214" height="250" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
|
|
13
|
+
<text x="62" y="146" fill="#8f94a4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">01</text>
|
|
14
|
+
<text x="62" y="172" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Parse</text>
|
|
15
|
+
<text x="62" y="196" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">review text → comments</text>
|
|
16
|
+
<rect x="62" y="209" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
17
|
+
<text x="72" y="227" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">Reviewer/Referee/R1</text>
|
|
18
|
+
<rect x="62" y="241" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
19
|
+
<text x="72" y="259" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">1. 2) Comment 3: Q4:</text>
|
|
20
|
+
<rect x="62" y="273" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
21
|
+
<text x="72" y="291" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">paragraph fallback</text>
|
|
22
|
+
<line x1="260" y1="245.0" x2="276" y2="245.0" stroke="#4B67B4" stroke-width="1.8" marker-end="url(#arr)"/>
|
|
23
|
+
<rect x="278" y="120" width="214" height="250" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
|
|
24
|
+
<text x="296" y="146" fill="#8f94a4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">02</text>
|
|
25
|
+
<text x="296" y="172" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Check</text>
|
|
26
|
+
<text x="296" y="196" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">response number → comment</text>
|
|
27
|
+
<rect x="296" y="209" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
28
|
+
<text x="306" y="227" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">missing numbers</text>
|
|
29
|
+
<rect x="296" y="241" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
30
|
+
<text x="306" y="259" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">shorter than 20</text>
|
|
31
|
+
<rect x="296" y="273" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
32
|
+
<text x="306" y="291" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">extra · duplicates</text>
|
|
33
|
+
<line x1="494" y1="245.0" x2="510" y2="245.0" stroke="#4B67B4" stroke-width="1.8" marker-end="url(#arr)"/>
|
|
34
|
+
<rect x="512" y="120" width="214" height="250" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
|
|
35
|
+
<text x="530" y="146" fill="#8f94a4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="12" font-weight="700">03</text>
|
|
36
|
+
<text x="530" y="172" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="16.5" font-weight="700">Export</text>
|
|
37
|
+
<text x="530" y="196" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">Markdown + coverage</text>
|
|
38
|
+
<rect x="530" y="209" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
39
|
+
<text x="540" y="227" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5"># · reviewer</text>
|
|
40
|
+
<rect x="530" y="241" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
41
|
+
<text x="540" y="259" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">comment · response</text>
|
|
42
|
+
<rect x="530" y="273" width="178" height="26" rx="8" fill="#f5f2fb"/>
|
|
43
|
+
<text x="540" y="291" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">coverage table</text>
|
|
44
|
+
<rect x="752" y="120" width="304" height="148" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
|
|
45
|
+
<text x="772" y="148" fill="#4B67B4" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">coverage</text>
|
|
46
|
+
<rect x="982.6875" y="130" width="59.359375" height="18" rx="9.0" fill="#f5f2fb"/>
|
|
47
|
+
<text x="991.6875" y="142.57" fill="#4B67B4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">counted</text>
|
|
48
|
+
<text x="772" y="176" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">answered: 2/4</text>
|
|
49
|
+
<text x="772" y="198" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">missing: 1 · empty: 1</text>
|
|
50
|
+
<text x="772" y="220" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">extra: 0</text>
|
|
51
|
+
<rect x="752" y="288" width="304" height="122" rx="18" fill="#ffffff" stroke="#e6e2ef" stroke-width="1.5" filter="url(#soft)"/>
|
|
52
|
+
<text x="772" y="316" fill="#4d5261" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="14.5" font-weight="700">findings[]</text>
|
|
53
|
+
<rect x="968.375" y="298" width="72.828125" height="18" rx="9.0" fill="#f5f2fb"/>
|
|
54
|
+
<text x="977.375" y="310.57" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">by number</text>
|
|
55
|
+
<text x="772" y="344" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">#1 answered</text>
|
|
56
|
+
<text x="772" y="366" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">#3 empty (6 chars)</text>
|
|
57
|
+
<text x="772" y="388" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">#4 missing</text>
|
|
58
|
+
<rect x="752" y="430" width="304" height="82" rx="18" fill="#ffffff" stroke="#4B67B4" stroke-width="1.6" filter="url(#soft)"/>
|
|
59
|
+
<text x="772" y="458" fill="#141419" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="13.5" font-weight="700">author</text>
|
|
60
|
+
<text x="772" y="482" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">writes every response</text>
|
|
61
|
+
<text x="772" y="502" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="10.5">coverage is counted, not judged</text>
|
|
62
|
+
<path d="M730 245.0 H742" fill="none" stroke="#4B67B4" stroke-width="1.6" stroke-linecap="round"/>
|
|
63
|
+
<path d="M742 210 V471" fill="none" stroke="#4B67B4" stroke-width="1.6" stroke-linecap="round"/>
|
|
64
|
+
<line x1="742" y1="194" x2="750" y2="194" stroke="#4B67B4" stroke-width="1.6" marker-end="url(#arr)"/>
|
|
65
|
+
<line x1="742" y1="349" x2="750" y2="349" stroke="#4B67B4" stroke-width="1.6" marker-end="url(#arr)"/>
|
|
66
|
+
<line x1="742" y1="471" x2="750" y2="471" stroke="#4B67B4" stroke-width="1.6" marker-end="url(#arr)"/>
|
|
67
|
+
<line x1="44" y1="420" x2="714" y2="420" stroke="#dcd8ea" stroke-width="1"/>
|
|
68
|
+
<text x="44" y="444" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">answered needs a numbered response of at least 20 characters; empty, missing and extra are reported by number.</text>
|
|
69
|
+
<text x="44" y="464" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11">letter_export writes Markdown only — nothing is emailed or uploaded, and the review text is never edited.</text>
|
|
70
|
+
<line x1="44" y1="564" x2="1056" y2="564" stroke="#dcd8ea" stroke-width="1"/>
|
|
71
|
+
<text x="44" y="588" fill="#4d5261" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">config: root · workspaceRoot · maxChars · persist · enabled | evidence: REP v1 via ctx.researchEvidence or a local core store</text>
|
|
72
|
+
<text x="44" y="610" fill="#8f94a4" font-family="'Microsoft YaHei','PingFang SC','Noto Sans CJK SC','Source Han Sans SC',sans-serif" font-size="11.5">text-only · no network · no model call · DOCX/PDF rejected with a conversion hint (PDF text: dsh-doc-anchor)</text>
|
|
73
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/version.d.ts
CHANGED
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-response-letter",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Reviewer-response workflow for DeepSeek Harness: parse reviewer comments (Reviewer/Referee/审稿人 headers, numbered or paragraph mode) with locators, check point-by-point coverage by response number (missing, too short, extra, duplicates), and export a Markdown response letter with a coverage table. Parsed reviews become REP evidence; coverage counts answers, it does not judge adequacy.",
|
|
5
5
|
"author": "PerryLink contributors",
|
|
6
6
|
"repository": {
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"README-zh.md",
|
|
32
32
|
"LICENSE",
|
|
33
33
|
"SECURITY.md",
|
|
34
|
+
"docs/assets/*",
|
|
34
35
|
"THIRD_PARTY_NOTICES.md"
|
|
35
36
|
],
|
|
36
37
|
"sideEffects": false,
|
|
@@ -51,12 +52,12 @@
|
|
|
51
52
|
],
|
|
52
53
|
"engines": {
|
|
53
54
|
"node": "^22.19.0 || >=24.9.0",
|
|
54
|
-
"dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0"
|
|
55
|
+
"dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0"
|
|
55
56
|
},
|
|
56
57
|
"packageManager": "pnpm@12.16.1",
|
|
57
58
|
"peerDependencies": {
|
|
58
59
|
"@deepseek-ai/cordis": "^4.0.5-alpha.1",
|
|
59
|
-
"@deepseek-ai/dsh-tools": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
|
|
60
|
+
"@deepseek-ai/dsh-tools": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0",
|
|
60
61
|
"@deepseek-ai/schemastery": "^3.18.5-alpha.1",
|
|
61
62
|
"@perrylink/dsh-research-core": "^0.1.0"
|
|
62
63
|
},
|
package/src/version.ts
CHANGED