chinese2english/package.json
spearzificial ab0179545a docs: record the measurement traps and script them
Coverage was over-reported twice, both times by measuring the wrong thing:
once by scanning a plugin root instead of the served bundle set, once with a
non-global regex that returned one hit per file instead of a character count.
Both produced a confident "100%" while the interface was still Chinese, so
the measurement is now part of the repo instead of being done by eye.

- scripts/served.mjs resolves the boot HTML's combo URLs to the on-disk files
  the browser receives, searching lib/, client/, dist/ and the package root.
- scripts/measure.mts counts Chinese on the runtime output, decoding \uXXXX
  and separating comment text from text that renders.
- README documents the merge order, the comment dictionary, and both traps.
2026-10-18 22:33:30 +05:30

59 lines
1.4 KiB
JSON

{
"name": "chinese2english",
"version": "0.1.0",
"description": "Universal English translation patch for DeepSeek Harness third-party plugins",
"type": "module",
"main": "./lib/index.js",
"exports": {
".": "./lib/index.js",
"./client": "./lib/client.js",
"./package.json": "./package.json"
},
"files": [
"lib",
"cordis.patch.yml",
"README.md",
"LICENSE"
],
"keywords": [
"deepseek-harness",
"dsh",
"dsh-plugin",
"cordis",
"translation",
"english",
"i18n",
"localization"
],
"dsh": {
"bundle": {
"patch": "./cordis.patch.yml"
},
"client": {
"inject": [
"locale"
],
"platform": "web"
}
},
"scripts": {
"mt": "node scripts/mt-fill.mjs",
"dict": "node scripts/merge-dict.mjs && node scripts/merge-comments.mjs",
"build": "node scripts/build.mjs",
"build:dict": "node scripts/mt-fill.mjs && node scripts/merge-dict.mjs && node scripts/merge-comments.mjs && node scripts/build.mjs",
"served": "node scripts/served.mjs",
"measure": "tsx scripts/measure.mts"
},
"peerDependencies": {
"@deepseek-ai/cordis": ">=4.0.0"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://git.oiupoyt.space/oiupoyt/chinese2english.git"
},
"bugs": {
"url": "https://git.oiupoyt.space/oiupoyt/chinese2english/issues"
},
"homepage": "https://git.oiupoyt.space/oiupoyt/chinese2english#readme"
}