dsh-docx-format 1.1.1 → 1.2.0
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/README.md +132 -10
- package/cordis.patch.yml +18 -7
- package/index.js +222 -52
- package/lib/docxfmt.py +460 -35
- package/locale/en.json +5 -4
- package/locale/zh.json +5 -4
- package/package.json +52 -52
package/locale/zh.json
CHANGED
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
"applied": "已规范化",
|
|
9
9
|
"clean": "无需修改",
|
|
10
10
|
"violations": "格式偏差",
|
|
11
|
-
"skipped": "
|
|
12
|
-
"skipReason": "
|
|
11
|
+
"skipped": "已跳过(未提公文,且全局规范化已关闭)",
|
|
12
|
+
"skipReason": "本条请求不套公文版式(未提「公文」)",
|
|
13
|
+
"lightApplied": "已做全局规范化(未提公文,只处理分页开关/中文引号/中英之间空格)",
|
|
13
14
|
"config": {
|
|
14
|
-
"triggerKeywords": "
|
|
15
|
-
"
|
|
15
|
+
"triggerKeywords": "触发词:用户请求文字必须含其中之一才套完整公文版式,默认「公文」",
|
|
16
|
+
"globalNormalize": "没命中触发词时仍做全局规范化(分页六项全关、中文引号换“”、中文里英文前后不留空格)",
|
|
16
17
|
"autoFormat": "工具结果里出现 .docx 时自动排队规范化",
|
|
17
18
|
"formatExisting": "是否处理插件加载前就存在的旧文件"
|
|
18
19
|
}
|
package/package.json
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-docx-format",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"description": "所有生成的 .docx 自动套用《通用公文格式规范》——工具 + 提示词规则 + 结果钩子。",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"dsh-plugin",
|
|
8
|
-
"dsh",
|
|
9
|
-
"deepseek-harness",
|
|
10
|
-
"docx",
|
|
11
|
-
"word",
|
|
12
|
-
"ooxml",
|
|
13
|
-
"document-format",
|
|
14
|
-
"chinese-official-document"
|
|
15
|
-
],
|
|
16
|
-
"author": "Romebody",
|
|
17
|
-
"homepage": "https://github.com/Romebody/dsh-docx-format#readme",
|
|
18
|
-
"repository": {
|
|
19
|
-
"type": "git",
|
|
20
|
-
"url": "git+https://github.com/Romebody/dsh-docx-format.git"
|
|
21
|
-
},
|
|
22
|
-
"bugs": {
|
|
23
|
-
"url": "https://github.com/Romebody/dsh-docx-format/issues"
|
|
24
|
-
},
|
|
25
|
-
"publishConfig": {
|
|
26
|
-
"access": "public"
|
|
27
|
-
},
|
|
28
|
-
"exports": {
|
|
29
|
-
".": "./index.js",
|
|
30
|
-
"./docxfmt.py": "./lib/docxfmt.py",
|
|
31
|
-
"./locale/*.json": "./locale/*.json",
|
|
32
|
-
"./icon": "./icon.svg"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"index.js",
|
|
36
|
-
"lib/docxfmt.py",
|
|
37
|
-
"lib/docx_read.py",
|
|
38
|
-
"cordis.patch.yml",
|
|
39
|
-
"locale/*.json",
|
|
40
|
-
"icon.svg",
|
|
41
|
-
"README.md"
|
|
42
|
-
],
|
|
43
|
-
"dsh": {
|
|
44
|
-
"bundle": {
|
|
45
|
-
"patch": "./cordis.patch.yml"
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"engines": {
|
|
49
|
-
"node": ">=20"
|
|
50
|
-
},
|
|
51
|
-
"license": "MIT"
|
|
52
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-docx-format",
|
|
3
|
+
"version": "1.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "所有生成的 .docx 自动套用《通用公文格式规范》——工具 + 提示词规则 + 结果钩子。",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"dsh-plugin",
|
|
8
|
+
"dsh",
|
|
9
|
+
"deepseek-harness",
|
|
10
|
+
"docx",
|
|
11
|
+
"word",
|
|
12
|
+
"ooxml",
|
|
13
|
+
"document-format",
|
|
14
|
+
"chinese-official-document"
|
|
15
|
+
],
|
|
16
|
+
"author": "Romebody",
|
|
17
|
+
"homepage": "https://github.com/Romebody/dsh-docx-format#readme",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/Romebody/dsh-docx-format.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/Romebody/dsh-docx-format/issues"
|
|
24
|
+
},
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public"
|
|
27
|
+
},
|
|
28
|
+
"exports": {
|
|
29
|
+
".": "./index.js",
|
|
30
|
+
"./docxfmt.py": "./lib/docxfmt.py",
|
|
31
|
+
"./locale/*.json": "./locale/*.json",
|
|
32
|
+
"./icon": "./icon.svg"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"index.js",
|
|
36
|
+
"lib/docxfmt.py",
|
|
37
|
+
"lib/docx_read.py",
|
|
38
|
+
"cordis.patch.yml",
|
|
39
|
+
"locale/*.json",
|
|
40
|
+
"icon.svg",
|
|
41
|
+
"README.md"
|
|
42
|
+
],
|
|
43
|
+
"dsh": {
|
|
44
|
+
"bundle": {
|
|
45
|
+
"patch": "./cordis.patch.yml"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=20"
|
|
50
|
+
},
|
|
51
|
+
"license": "MIT"
|
|
52
|
+
}
|