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/package.json CHANGED
@@ -1,83 +1,83 @@
1
- {
2
- "name": "dsh-cait",
3
- "version": "1.0.3",
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
+ }
@@ -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`)