dsh-docx-format 0.0.0-stage → 1.1.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/locale/en.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "meta": {
3
+ "title": "Official document formatting",
4
+ "description": "Auto-apply the general official document format to every generated .docx."
5
+ },
6
+ "title": "Docx format",
7
+ "toolName": "docx_format",
8
+ "applied": "normalized",
9
+ "clean": "already compliant",
10
+ "violations": "deviations",
11
+ "skipped": "skipped (no trigger keyword / excluded)",
12
+ "skipReason": "official-document formatting not applied (no trigger keyword or excluded)",
13
+ "config": {
14
+ "triggerKeywords": "trigger words; the request text must contain one of them, default ['公文']",
15
+ "skipRequestKeywords": "exclusion words; a hit disables the whole plugin, default ['实验报告']",
16
+ "autoFormat": "queue any .docx path seen in tool results",
17
+ "formatExisting": "also normalize files created before the plugin loaded"
18
+ }
19
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "meta": {
3
+ "title": "公文格式规范化",
4
+ "description": "生成的 .docx 自动套用通用公文格式规范(字体、字号、行距、缩进、页边距、表格、页码、落款)。"
5
+ },
6
+ "title": "公文格式",
7
+ "toolName": "docx_format",
8
+ "applied": "已规范化",
9
+ "clean": "无需修改",
10
+ "violations": "格式偏差",
11
+ "skipped": "已跳过(未提公文或命中排除词)",
12
+ "skipReason": "本条请求不套公文版式(未提「公文」或命中排除词)",
13
+ "config": {
14
+ "triggerKeywords": "触发词:用户请求文字必须含其中之一才套公文版式,默认「公文」",
15
+ "skipRequestKeywords": "排除词:命中则整个插件停用,默认「实验报告」",
16
+ "autoFormat": "工具结果里出现 .docx 时自动排队规范化",
17
+ "formatExisting": "是否处理插件加载前就存在的旧文件"
18
+ }
19
+ }
package/package.json CHANGED
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "name": "dsh-docx-format",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.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
+ }