dsh-cait 1.0.3 → 1.0.4
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 +367 -352
- package/LICENSE +201 -201
- package/README.ja.md +4 -3
- package/README.md +424 -423
- package/README.zh-CN.md +391 -390
- package/client/components.js +2377 -2377
- package/client/helpers.js +103 -103
- package/client/locales.js +730 -730
- package/client/rpc.js +93 -93
- package/client/styles.js +258 -258
- package/client.js +3556 -3556
- package/icon.svg +8 -8
- package/index.js +45 -45
- package/lib/api.js +223 -223
- package/lib/docx.js +389 -389
- package/lib/errors.js +8 -8
- package/lib/formats.js +917 -917
- package/lib/glossary.js +178 -178
- package/lib/import-export.js +605 -605
- package/lib/libraries.js +183 -183
- package/lib/markdown.js +28 -28
- package/lib/mt.js +152 -152
- package/lib/persistence.js +321 -321
- package/lib/pptx.js +89 -89
- package/lib/segmenter.js +84 -84
- package/lib/similarity.js +113 -113
- package/lib/store-utils.js +339 -339
- package/lib/store.js +734 -734
- package/lib/tm.js +160 -160
- package/lib/tmx.js +85 -85
- package/lib/tools.js +472 -472
- package/lib/xlsx.js +218 -218
- package/lib/xml.js +31 -31
- package/locale/en.json +11 -11
- package/locale/zh.json +11 -11
- package/package.json +83 -83
- package/scripts/build-client.mjs +13 -13
package/package.json
CHANGED
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-cait",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"license": "Apache-2.0",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Jovi Lecca",
|
|
7
|
-
"url": "https://github.com/JoviLecca"
|
|
8
|
-
},
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "git",
|
|
14
|
-
"url": "git+https://github.com/JoviLecca/dsh-CAIT.git"
|
|
15
|
-
},
|
|
16
|
-
"homepage": "https://github.com/JoviLecca/dsh-CAIT#readme",
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/JoviLecca/dsh-CAIT/issues"
|
|
19
|
-
},
|
|
20
|
-
"description": "CAIT — a CAT workbench for DeepSeek Harness with translation memory, glossary, document tabs, MT routes, and Office/subtitle/localization formats.",
|
|
21
|
-
"type": "module",
|
|
22
|
-
"keywords": [
|
|
23
|
-
"dsh-plugin",
|
|
24
|
-
"deepseek-harness",
|
|
25
|
-
"cordis",
|
|
26
|
-
"cat",
|
|
27
|
-
"translation",
|
|
28
|
-
"translation-memory",
|
|
29
|
-
"glossary",
|
|
30
|
-
"docx",
|
|
31
|
-
"xlsx",
|
|
32
|
-
"pptx",
|
|
33
|
-
"xliff"
|
|
34
|
-
],
|
|
35
|
-
"engines": {
|
|
36
|
-
"dsh": ">=0.2.2-rc.1"
|
|
37
|
-
},
|
|
38
|
-
"scripts": {
|
|
39
|
-
"build:client": "node scripts/build-client.mjs",
|
|
40
|
-
"prepublishOnly": "node scripts/build-client.mjs && node --check client.js"
|
|
41
|
-
},
|
|
42
|
-
"exports": {
|
|
43
|
-
".": "./index.js",
|
|
44
|
-
"./client": "./client.js",
|
|
45
|
-
"./package.json": "./package.json",
|
|
46
|
-
"./locale/*.json": "./locale/*.json",
|
|
47
|
-
"./icon": "./icon.svg"
|
|
48
|
-
},
|
|
49
|
-
"files": [
|
|
50
|
-
"index.js",
|
|
51
|
-
"client.js",
|
|
52
|
-
"client",
|
|
53
|
-
"scripts",
|
|
54
|
-
"lib",
|
|
55
|
-
"cordis.patch.yml",
|
|
56
|
-
"locale",
|
|
57
|
-
"icon.svg",
|
|
58
|
-
"README.md",
|
|
59
|
-
"README.zh-CN.md",
|
|
60
|
-
"README.ja.md",
|
|
61
|
-
"CHANGELOG.md",
|
|
62
|
-
"LICENSE",
|
|
63
|
-
"NOTICE"
|
|
64
|
-
],
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"@deepseek-ai/schemastery": ">=3.18.1 <4.0.0"
|
|
67
|
-
},
|
|
68
|
-
"devDependencies": {
|
|
69
|
-
"@deepseek-ai/schemastery": "^3.19.0"
|
|
70
|
-
},
|
|
71
|
-
"dsh": {
|
|
72
|
-
"bundle": {
|
|
73
|
-
"patch": "./cordis.patch.yml"
|
|
74
|
-
},
|
|
75
|
-
"client": {
|
|
76
|
-
"platform": "web",
|
|
77
|
-
"immediately": true,
|
|
78
|
-
"inject": [
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-conversation"
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-cait",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Jovi Lecca",
|
|
7
|
+
"url": "https://github.com/JoviLecca"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/JoviLecca/dsh-CAIT.git"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/JoviLecca/dsh-CAIT#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/JoviLecca/dsh-CAIT/issues"
|
|
19
|
+
},
|
|
20
|
+
"description": "CAIT — a CAT workbench for DeepSeek Harness with translation memory, glossary, document tabs, MT routes, and Office/subtitle/localization formats.",
|
|
21
|
+
"type": "module",
|
|
22
|
+
"keywords": [
|
|
23
|
+
"dsh-plugin",
|
|
24
|
+
"deepseek-harness",
|
|
25
|
+
"cordis",
|
|
26
|
+
"cat",
|
|
27
|
+
"translation",
|
|
28
|
+
"translation-memory",
|
|
29
|
+
"glossary",
|
|
30
|
+
"docx",
|
|
31
|
+
"xlsx",
|
|
32
|
+
"pptx",
|
|
33
|
+
"xliff"
|
|
34
|
+
],
|
|
35
|
+
"engines": {
|
|
36
|
+
"dsh": ">=0.2.2-rc.1"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build:client": "node scripts/build-client.mjs",
|
|
40
|
+
"prepublishOnly": "node scripts/build-client.mjs && node --check client.js"
|
|
41
|
+
},
|
|
42
|
+
"exports": {
|
|
43
|
+
".": "./index.js",
|
|
44
|
+
"./client": "./client.js",
|
|
45
|
+
"./package.json": "./package.json",
|
|
46
|
+
"./locale/*.json": "./locale/*.json",
|
|
47
|
+
"./icon": "./icon.svg"
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"index.js",
|
|
51
|
+
"client.js",
|
|
52
|
+
"client",
|
|
53
|
+
"scripts",
|
|
54
|
+
"lib",
|
|
55
|
+
"cordis.patch.yml",
|
|
56
|
+
"locale",
|
|
57
|
+
"icon.svg",
|
|
58
|
+
"README.md",
|
|
59
|
+
"README.zh-CN.md",
|
|
60
|
+
"README.ja.md",
|
|
61
|
+
"CHANGELOG.md",
|
|
62
|
+
"LICENSE",
|
|
63
|
+
"NOTICE"
|
|
64
|
+
],
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"@deepseek-ai/schemastery": ">=3.18.1 <4.0.0"
|
|
67
|
+
},
|
|
68
|
+
"devDependencies": {
|
|
69
|
+
"@deepseek-ai/schemastery": "^3.19.0"
|
|
70
|
+
},
|
|
71
|
+
"dsh": {
|
|
72
|
+
"bundle": {
|
|
73
|
+
"patch": "./cordis.patch.yml"
|
|
74
|
+
},
|
|
75
|
+
"client": {
|
|
76
|
+
"platform": "web",
|
|
77
|
+
"immediately": true,
|
|
78
|
+
"inject": [
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-conversation"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
package/scripts/build-client.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { readFileSync, writeFileSync } from 'node:fs'
|
|
2
|
-
|
|
3
|
-
const parts = ['helpers.js', 'styles.js', 'rpc.js', 'components.js', 'locales.js', 'entry.js']
|
|
4
|
-
const header = `window.__ModuleLoader__.load({
|
|
5
|
-
id: 'dsh-cait',
|
|
6
|
-
factory(require) {
|
|
7
|
-
const React = require('react')
|
|
8
|
-
const h = React.createElement
|
|
9
|
-
const { useState, useEffect, useMemo, useRef } = React
|
|
10
|
-
`
|
|
11
|
-
const body = parts.map((name) => readFileSync(`client/${name}`, 'utf8').replace(/\s+$/, '')).join('\n\n')
|
|
12
|
-
writeFileSync('client.js', `${header}\n${body}\n`)
|
|
13
|
-
console.log(`built client.js from ${parts.length} fragments`)
|
|
1
|
+
import { readFileSync, writeFileSync } from 'node:fs'
|
|
2
|
+
|
|
3
|
+
const parts = ['helpers.js', 'styles.js', 'rpc.js', 'components.js', 'locales.js', 'entry.js']
|
|
4
|
+
const header = `window.__ModuleLoader__.load({
|
|
5
|
+
id: 'dsh-cait',
|
|
6
|
+
factory(require) {
|
|
7
|
+
const React = require('react')
|
|
8
|
+
const h = React.createElement
|
|
9
|
+
const { useState, useEffect, useMemo, useRef } = React
|
|
10
|
+
`
|
|
11
|
+
const body = parts.map((name) => readFileSync(`client/${name}`, 'utf8').replace(/\s+$/, '')).join('\n\n')
|
|
12
|
+
writeFileSync('client.js', `${header}\n${body}\n`)
|
|
13
|
+
console.log(`built client.js from ${parts.length} fragments`)
|