dsh-docx-format 0.0.0-stage → 1.0.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,18 @@
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 (allowlist)",
12
+ "skipReason": "request mentions the lab-report keyword, plugin disabled",
13
+ "config": {
14
+ "skipRequestKeywords": "request-text allowlist; a hit disables the whole plugin, default ['实验报告']",
15
+ "autoFormat": "queue any .docx path seen in tool results",
16
+ "formatExisting": "also normalize files created before the plugin loaded"
17
+ }
18
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,18 @@
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
+ "skipRequestKeywords": "用户请求文字白名单:命中则整个插件停用,默认「实验报告」",
15
+ "autoFormat": "工具结果里出现 .docx 时自动排队规范化",
16
+ "formatExisting": "是否处理插件加载前就存在的旧文件"
17
+ }
18
+ }
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.0.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
+ }