dsh-source-cnki 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 +23 -3
- package/docs/assets/dsh-source-cnki-demo.gif +0 -0
- package/docs/assets/dsh-source-cnki-flow-v5-dark.svg +73 -0
- package/docs/assets/dsh-source-cnki-flow-v5-light.svg +73 -0
- package/docs/assets/dsh-source-cnki-hero-en-dark.webp +0 -0
- package/docs/assets/dsh-source-cnki-hero-en-light.webp +0 -0
- package/docs/assets/dsh-source-cnki-hero-zh-dark.webp +0 -0
- package/docs/assets/dsh-source-cnki-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-source-cnki-hero-zh-dark.webp">
|
|
5
|
+
<img src="docs/assets/dsh-source-cnki-hero-zh-light.webp" width="100%" alt="dsh-source-cnki 配图:一条导出的 RIS 记录做结构校验 —— journal 字段被移除后如实报为 missing_journal,而不是编造刊名;右侧是稳定记录 id,导出文件本身即真值">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
1
8
|
# dsh-source-cnki
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
**中文文献记录:导入你自己的导出文件、按 GB/T 7714 引用、检查元数据 —— 全程不抓取 CNKI。**
|
|
4
11
|
|
|
5
12
|
*不登录、不抓取、不调用 CNKI API(该用途没有公开 API)。插件读取 RIS/EndNote 风格或带标签的文本导出,分配稳定的记录 id,按 GB/T 7714-2015(顺序编码制)或 APA 7 排版,并做结构校验。*
|
|
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
|
|
|
@@ -21,6 +30,13 @@ CNKI 没有面向此用途的公开 API。因此本插件**不会**登录、抓
|
|
|
21
30
|
- **`cnki_cite`** — 支持 GB/T 7714-2015 顺序编码制(`[1] 作者. 题名[J]. 刊名, 年, 卷(期): 页码.`)、同样格式但不带编号,或 APA 7。作者规则:GB/T 在作者不超过 3 位时全部列出,否则列前 3 位 + `等`/`et al`;西文姓名转为 `SURNAME I`;APA 转为 `Surname, I.`。
|
|
22
31
|
- **`cnki_check`** — 结构校验:缺少标题/期刊/年份/作者、年份不合理、DOI 格式错误、页码非数字、重复记录,以及有期刊但没有卷或期。
|
|
23
32
|
|
|
33
|
+
<picture>
|
|
34
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-source-cnki-flow-v5-dark.svg">
|
|
35
|
+
<img src="docs/assets/dsh-source-cnki-flow-v5-light.svg" width="100%" alt="dsh-source-cnki 结构图:RIS 或带标签导出被解析成带稳定 id 的记录,按 GB/T 7714-2015 或 APA 7 排版,并做结构校验 —— 缺字段只报告、不臆造,全程不联网">
|
|
36
|
+
</picture>
|
|
37
|
+
|
|
38
|
+
*结构:解析 → 排版 → 校验;`records[]` 与 `citations[]` 是两条输出,`validateRecords` 报告结构问题,字段缺失时绝不编造。图内只有真实的函数名与字段名,五语共用同一张结构图。*
|
|
39
|
+
|
|
24
40
|
## 它不做什么
|
|
25
41
|
|
|
26
42
|
- **不访问 CNKI。** 不登录、不使用 cookie、不抓取、不调用非官方端点。
|
|
@@ -60,7 +76,7 @@ CNKI 没有面向此用途的公开 API。因此本插件**不会**登录、抓
|
|
|
60
76
|
|
|
61
77
|
| | |
|
|
62
78
|
|---|---|
|
|
63
|
-
| DeepSeek Harness | **`dsh-v0.2.
|
|
79
|
+
| 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` |
|
|
64
80
|
| Node | `^22.19.0 \|\| >=24.9.0`(实测 `24.22.1`),仅 ESM |
|
|
65
81
|
| 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` |
|
|
66
82
|
| 运行时依赖 | **零** |
|
|
@@ -90,7 +106,11 @@ dsh --profile <name> --dump-config | grep dsh-source-cnki
|
|
|
90
106
|
|
|
91
107
|
## 评测
|
|
92
108
|
|
|
93
|
-
|
|
109
|
+

|
|
110
|
+
|
|
111
|
+
*动图是 `pnpm test --reporter=tap-flat` 的真实运行(导入 → GB/T 7714 / APA 7 → 校验;不联网、不访问 CNKI;2026-11-21 复跑)。每个 `ok` 行是套件里的一条测试,耗时来自本次运行。*
|
|
112
|
+
|
|
113
|
+
**24 个测试**:RIS 与带标签解析(中英文记录、CRLF/BOM 导出、基于 DOI 的 id、语言识别)、自动格式识别与空内容/无法识别内容的拒绝、GB/T 期刊引用(页码使用 en dash 连接)、≤3 位与 >3 位作者规则(等 / et al)、缺期刊标记、学位论文标记、顺序编号、APA 的作者/年份/期刊/卷/DOI、校验代码(缺标题/期刊、不合理年份(含极远未来日期)、DOI 格式错误、页码异常、重复)、运行时(有效 REP 记录、cite/check、路径穿越/符号链接/DOCX/超大文件拒绝、畸形记录与 `null` 文本拒绝)、工具 schema、import→cite→check 端到端、失败分支、插件契约、包契约。
|
|
94
114
|
|
|
95
115
|
不宣称任何基准成绩:基准真值就是你的导出文件;格式化器的正确性按上面的 GB/T 规则用 fixture 校验。
|
|
96
116
|
|
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-source-cnki-hero-en-dark.webp">
|
|
5
|
+
<img src="docs/assets/dsh-source-cnki-hero-en-light.webp" width="100%" alt="dsh-source-cnki: an exported RIS record validated structurally — the journal field was removed and the record is reported as missing_journal instead of inventing a journal name, with stable ids and the export left as the ground truth">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
1
8
|
# dsh-source-cnki
|
|
2
9
|
|
|
3
10
|
**Chinese-literature records: import your export, cite it in GB/T 7714, check the metadata — without scraping CNKI.**
|
|
4
11
|
|
|
5
12
|
*No login, no scraping, no CNKI API (none is public for this purpose). The plugin reads RIS/EndNote-style or labeled text exports, assigns stable record ids, formats GB/T 7714-2015 (顺序编码制) or APA 7, and runs structural validation.*
|
|
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
|
|
|
@@ -21,6 +30,13 @@ CNKI has no public API for this purpose. This plugin therefore **does not** log
|
|
|
21
30
|
- **`cnki_cite`** — GB/T 7714-2015 顺序编码制 (`[1] 作者. 题名[J]. 刊名, 年, 卷(期): 页码.`), the same without numbering, or APA 7. Author rules: GB/T ≤3 all, otherwise first 3 + `等`/`et al`; Western names become `SURNAME I`; APA becomes `Surname, I.`.
|
|
22
31
|
- **`cnki_check`** — structural validation: missing title/journal/year/authors, implausible year, malformed DOI, non-numeric pages, duplicates, journal without volume or issue.
|
|
23
32
|
|
|
33
|
+
<picture>
|
|
34
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/dsh-source-cnki-flow-v5-dark.svg">
|
|
35
|
+
<img src="docs/assets/dsh-source-cnki-flow-v5-light.svg" width="100%" alt="dsh-source-cnki structure: a RIS or labeled export is parsed into records with stable ids, formatted as GB/T 7714-2015 or APA 7 citations, and validated structurally — missing fields are reported, never invented, and no network is used">
|
|
36
|
+
</picture>
|
|
37
|
+
|
|
38
|
+
*Structure: parse → format → validate; `records[]` and `citations[]` are the two outputs, `validateRecords` reports structural issues, and nothing is invented when a field is absent. The token labels inside the diagram are the real function and field names, so the same picture serves all five languages.*
|
|
39
|
+
|
|
24
40
|
## What it does not do
|
|
25
41
|
|
|
26
42
|
- **No CNKI access.** No login, no cookies, no scraping, no unofficial endpoints.
|
|
@@ -60,7 +76,7 @@ Unknown tags are ignored, not guessed.
|
|
|
60
76
|
|
|
61
77
|
| | |
|
|
62
78
|
|---|---|
|
|
63
|
-
| DeepSeek Harness | **`dsh-v0.2.
|
|
79
|
+
| 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` |
|
|
64
80
|
| Node | `^22.19.0 \|\| >=24.9.0` (tested `24.22.1`), ESM only |
|
|
65
81
|
| 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` |
|
|
66
82
|
| Runtime dependencies | **zero** |
|
|
@@ -90,7 +106,11 @@ dsh --profile <name> --dump-config | grep dsh-source-cnki
|
|
|
90
106
|
|
|
91
107
|
## Evaluation
|
|
92
108
|
|
|
93
|
-
|
|
109
|
+

|
|
110
|
+
|
|
111
|
+
*Animated: the real `pnpm test --reporter=tap-flat` run of the import → GB/T 7714 / APA 7 → validation suite (no network, no CNKI access; re-run 2026-11-21). Each `ok` line is one test from the suite; the timings are from this run.*
|
|
112
|
+
|
|
113
|
+
**24 tests**: RIS and labeled parsing (Chinese and English records, CRLF/BOM exports, DOI-based ids, language detection), auto-detection and empty/unrecognized rejection, GB/T journal citation with en-dash pages, ≤3 vs >3 author rules (等 / et al), missing-journal marker, thesis marker, sequential numbering, APA author/year/journal/volume/DOI, validation codes (missing title/journal, implausible year including far-future dates, malformed DOI, odd pages, duplicates), runtime (valid REP record, cite/check, traversal/symlink/DOCX/oversize rejection, malformed records and `null` text rejected), tool schemas, import→cite→check end to end, failure branches, plugin contract, package contract.
|
|
94
114
|
|
|
95
115
|
No benchmark is claimed: the ground truth is your export; correctness of the formatter is checked against the GB/T rules above with fixtures.
|
|
96
116
|
|
|
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-source-cnki 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-source-cnki</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">RIS / labeled export → records[] → GB/T 7714 / APA 7 → structural validation</text>
|
|
10
|
+
<rect x="879.578125" y="36" width="176.421875" height="26" rx="13.0" fill="#202839"/>
|
|
11
|
+
<text x="891.578125" 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 · no scraping</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">export → records</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">parseRis</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">parseLabeled</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">recordIdOf</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">Format</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">records → citation</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">gbt7714-numeric</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">gbt7714</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">apa</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">Validate</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">structural only</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">implausible_year</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">malformed_doi</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">duplicate</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">records[]</text>
|
|
46
|
+
<rect x="975.78125" y="130" width="65.5" height="18" rx="9.0" fill="#202839"/>
|
|
47
|
+
<text x="984.78125" 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">stable ids</text>
|
|
48
|
+
<text x="772" y="176" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">cnki-6927f5fb · zh</text>
|
|
49
|
+
<text x="772" y="198" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">cnki-021f6a0d · en</text>
|
|
50
|
+
<text x="772" y="220" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">language: zh | en</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">citations[]</text>
|
|
53
|
+
<rect x="927.8125" y="298" width="108.984375" height="18" rx="9.0" fill="#202839"/>
|
|
54
|
+
<text x="936.8125" 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">GB/T 7714 · APA 7</text>
|
|
55
|
+
<text x="772" y="344" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">gbt7714-numeric → [1]</text>
|
|
56
|
+
<text x="772" y="366" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">apa → Smith, J., & Doe, J. (2020).</text>
|
|
57
|
+
<text x="772" y="388" fill="#f0f3f9" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">missing journal → missing_journal</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">reviewer</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">structural validation only</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">content not verified</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">missing fields are reported, never invented: the export is the ground truth.</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">validateRecords flags missing_journal · implausible_year · malformed_doi · duplicate.</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 · style</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">no network at all · writes only under root · export treated as data</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-source-cnki 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-source-cnki</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">RIS / labeled export → records[] → GB/T 7714 / APA 7 → structural validation</text>
|
|
10
|
+
<rect x="879.578125" y="36" width="176.421875" height="26" rx="13.0" fill="#f5f2fb"/>
|
|
11
|
+
<text x="891.578125" 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 · no scraping</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">export → records</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">parseRis</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">parseLabeled</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">recordIdOf</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">Format</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">records → citation</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">gbt7714-numeric</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">gbt7714</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">apa</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">Validate</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">structural only</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">implausible_year</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">malformed_doi</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">duplicate</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">records[]</text>
|
|
46
|
+
<rect x="975.78125" y="130" width="65.5" height="18" rx="9.0" fill="#f5f2fb"/>
|
|
47
|
+
<text x="984.78125" 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">stable ids</text>
|
|
48
|
+
<text x="772" y="176" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">cnki-6927f5fb · zh</text>
|
|
49
|
+
<text x="772" y="198" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">cnki-021f6a0d · en</text>
|
|
50
|
+
<text x="772" y="220" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">language: zh | en</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">citations[]</text>
|
|
53
|
+
<rect x="927.8125" y="298" width="108.984375" height="18" rx="9.0" fill="#f5f2fb"/>
|
|
54
|
+
<text x="936.8125" 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">GB/T 7714 · APA 7</text>
|
|
55
|
+
<text x="772" y="344" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">gbt7714-numeric → [1]</text>
|
|
56
|
+
<text x="772" y="366" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">apa → Smith, J., & Doe, J. (2020).</text>
|
|
57
|
+
<text x="772" y="388" fill="#141419" font-family="'Consolas','SFMono-Regular','Menlo',ui-monospace,monospace" font-size="11.5">missing journal → missing_journal</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">reviewer</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">structural validation only</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">content not verified</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">missing fields are reported, never invented: the export is the ground truth.</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">validateRecords flags missing_journal · implausible_year · malformed_doi · duplicate.</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 · style</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">no network at all · writes only under root · export treated as data</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-source-cnki",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Chinese-literature tooling for DeepSeek Harness without scraping: import RIS/EndNote-style or labeled (题名:/作者:/来源:) exports into stable records, format GB/T 7714-2015 (顺序编码制) or APA 7 citations (no invented fields), and run structural metadata validation (missing fields, implausible year, malformed DOI, duplicates). No CNKI login, no scraping, no CNKI API; exports are stored as REP evidence.",
|
|
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,
|
|
@@ -52,12 +53,12 @@
|
|
|
52
53
|
],
|
|
53
54
|
"engines": {
|
|
54
55
|
"node": "^22.19.0 || >=24.9.0",
|
|
55
|
-
"dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0"
|
|
56
|
+
"dsh": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0 || >=0.2.3-0 <0.3.0-0"
|
|
56
57
|
},
|
|
57
58
|
"packageManager": "pnpm@12.16.1",
|
|
58
59
|
"peerDependencies": {
|
|
59
60
|
"@deepseek-ai/cordis": "^4.0.5-alpha.1",
|
|
60
|
-
"@deepseek-ai/dsh-tools": ">=0.2.1-0 <0.3.0 || >=0.2.2-0 <0.3.0",
|
|
61
|
+
"@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",
|
|
61
62
|
"@deepseek-ai/schemastery": "^3.18.5-alpha.1",
|
|
62
63
|
"@perrylink/dsh-research-core": "^0.1.0"
|
|
63
64
|
},
|
package/src/version.ts
CHANGED