dsh-zipfix 0.0.0-stage → 0.4.1
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/LICENSE +21 -0
- package/README.md +36 -2
- package/client.js +871 -0
- package/cordis.patch.yml +4 -0
- package/icon.svg +9 -0
- package/index.js +18 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +77 -4
- package/plugin/index.js +633 -0
- package/plugin/lib/detect.js +436 -0
- package/plugin/lib/encoding.js +369 -0
- package/plugin/lib/fix.js +1228 -0
- package/plugin/lib/report.js +135 -0
- package/plugin/lib/webapi.js +598 -0
- package/plugin/lib/zip.js +842 -0
- package/plugin/locale/en.json +6 -0
- package/plugin/locale/zh.json +6 -0
- package/ui/index.js +26 -0
package/cordis.patch.yml
ADDED
package/icon.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none" role="img" aria-label="ZIP filename fixer">
|
|
2
|
+
<rect width="64" height="64" rx="14" fill="#2563EB"/>
|
|
3
|
+
<path d="M20 13h15l9 9v27a3 3 0 0 1-3 3H20a3 3 0 0 1-3-3V16a3 3 0 0 1 3-3z" fill="#FFFFFF"/>
|
|
4
|
+
<path d="M35 13l9 9h-9v-9z" fill="#BFDBFE"/>
|
|
5
|
+
<rect x="23" y="29" width="16" height="3" rx="1.5" fill="#93C5FD"/>
|
|
6
|
+
<rect x="23" y="36" width="11" height="3" rx="1.5" fill="#93C5FD"/>
|
|
7
|
+
<circle cx="45" cy="45" r="9" fill="#22C55E"/>
|
|
8
|
+
<path d="M41 45.3l2.6 2.6 5-5" stroke="#FFFFFF" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
</svg>
|
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-zipfix 发布包(自动生成,请勿直接编辑;改源码后运行 node tools/build-dist.mjs)。
|
|
3
|
+
*
|
|
4
|
+
* 同一行插件同时提供:
|
|
5
|
+
* - 5 个 agent 工具(来自 plugin/index.js)
|
|
6
|
+
* - 侧边栏 UI 使用的 /zipfix-api 上传/修复/下载接口(来自 ui/index.js)
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { apply as applyTools } from './plugin/index.js';
|
|
10
|
+
import { apply as applyUi } from './ui/index.js';
|
|
11
|
+
|
|
12
|
+
export const name = 'dsh-zipfix';
|
|
13
|
+
export const inject = ['tools', 'webServer', 'connection'];
|
|
14
|
+
|
|
15
|
+
export function apply(ctx) {
|
|
16
|
+
applyTools(ctx);
|
|
17
|
+
applyUi(ctx);
|
|
18
|
+
}
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "ZIP Filename Fixer",
|
|
4
|
+
"description": "Repairs mojibake Chinese filenames inside ZIP archives and extracted folders: sniffs GBK/GB18030/Big5 entry names, extracts with correct names and per-entry CRC32 verification, writes a repaired ZIP with the UTF-8 filename flag set, pairs irreversible U+FFFD damage against a source ZIP by (size, CRC32), and verifies reconstructed names by encoding fingerprint. Includes a sidebar panel (upload ZIP → inspect → download or extract). Never deletes or overwrites the originals."
|
|
5
|
+
}
|
|
6
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,79 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-zipfix",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"description": "ZIP 中文文件名乱码修复器(DeepSeek Harness 插件):5 个 agent 工具 + 侧边栏上传面板。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"icon": "icon.svg",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./index.js",
|
|
10
|
+
"./client": "./client.js",
|
|
11
|
+
"./icon": "./icon.svg",
|
|
12
|
+
"./cordis.patch.yml": "./cordis.patch.yml",
|
|
13
|
+
"./locale/*.json": "./locale/*.json",
|
|
14
|
+
"./package.json": "./package.json"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"index.js",
|
|
18
|
+
"client.js",
|
|
19
|
+
"cordis.patch.yml",
|
|
20
|
+
"icon.svg",
|
|
21
|
+
"locale",
|
|
22
|
+
"plugin/index.js",
|
|
23
|
+
"plugin/lib",
|
|
24
|
+
"plugin/locale",
|
|
25
|
+
"ui/index.js"
|
|
26
|
+
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=22.12.0"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"dsh",
|
|
32
|
+
"dsh-plugin",
|
|
33
|
+
"deepseek-harness",
|
|
34
|
+
"zip",
|
|
35
|
+
"filename",
|
|
36
|
+
"gbk",
|
|
37
|
+
"mojibake",
|
|
38
|
+
"chinese",
|
|
39
|
+
"cordis"
|
|
40
|
+
],
|
|
41
|
+
"author": {
|
|
42
|
+
"name": "zhibo0502",
|
|
43
|
+
"url": "https://github.com/zhibo0502"
|
|
44
|
+
},
|
|
45
|
+
"homepage": "https://github.com/zhibo0502/dsh-zipfix#readme",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/zhibo0502/dsh-zipfix.git",
|
|
49
|
+
"directory": "dist/dsh-zipfix"
|
|
50
|
+
},
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/zhibo0502/dsh-zipfix/issues"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public",
|
|
56
|
+
"registry": "https://registry.npmjs.org/"
|
|
57
|
+
},
|
|
58
|
+
"dsh": {
|
|
59
|
+
"bundle": {
|
|
60
|
+
"patch": "./cordis.patch.yml"
|
|
61
|
+
},
|
|
62
|
+
"compatibility": {
|
|
63
|
+
"dshReleases": {
|
|
64
|
+
"0.2.2-rc.1": "compatible"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"client": {
|
|
68
|
+
"platform": "web",
|
|
69
|
+
"immediately": true,
|
|
70
|
+
"inject": [
|
|
71
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
72
|
+
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
73
|
+
"@deepseek-ai/dsh-client-locale",
|
|
74
|
+
"@deepseek-ai/dsh-client-ui-workspace"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"license": "MIT"
|
|
79
|
+
}
|