@ragnoryok1/dsh-client-locale-ru 0.2.3 → 0.2.5
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 +28 -0
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/README.zh.md +3 -3
- package/package.json +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,34 @@
|
|
|
6
6
|
Пакет следует за харнессом: целевая версия — `dsh 0.2.1-alpha.1` и новее
|
|
7
7
|
(`>=0.1.0-rc.2 <0.3.0` для `@deepseek-ai/dsh-client-locale`).
|
|
8
8
|
|
|
9
|
+
## [0.2.5] — 2026-10-19
|
|
10
|
+
|
|
11
|
+
### Исправлено
|
|
12
|
+
|
|
13
|
+
- **Workflow перестал быть нечитаемым для GitHub.** Шаг в обоих workflow был вставлен с
|
|
14
|
+
отступом `run:` вместо отступа шага, поэтому файл не разбирался: GitHub сообщал о прогоне
|
|
15
|
+
по имени файла, без единого job, а локальные гейты оставались зелёными. Отступ исправлен,
|
|
16
|
+
оба файла разбираются настоящим YAML-парсером.
|
|
17
|
+
- **Добавлен гейт `npm run check:workflow-yaml`:** заголовок, раздел `on:`, раздел `jobs`,
|
|
18
|
+
все шаги на одном уровне отступа, у каждого шага есть `run:` или `uses:`, никаких
|
|
19
|
+
табуляций. Проверен инъекцией — сдвинутый отступ шага валит гейт. Гейт вошёл в цепочку
|
|
20
|
+
verify (19 проверок) и в оба workflow.
|
|
21
|
+
|
|
22
|
+
Содержательно пакет не менялся: 81 namespace, 4949 строк. Выпуск нужен, чтобы тег, дерево
|
|
23
|
+
и реестр описывали одно и то же состояние.
|
|
24
|
+
|
|
25
|
+
## [0.2.4] — 2026-10-19
|
|
26
|
+
|
|
27
|
+
### Исправлено
|
|
28
|
+
|
|
29
|
+
- **Версия в блоке метаданных каталога** была на два выпуска позади: блок
|
|
30
|
+
`deepseek-harness-meta` в трёх README проверялся только релизным пайплайном, и локальные
|
|
31
|
+
гейты его не видели. Теперь проверка `npm run check:meta` стоит в цепочке verify и в обоих
|
|
32
|
+
workflow, а версия и заявленное число строк в блоке приведены к пакету.
|
|
33
|
+
- Выпуск 0.2.3 остаётся в реестре с устаревшей строкой версии в блоке: снять его нельзя —
|
|
34
|
+
granular-токен npm не выполняет unpublish. Каталог читает последнюю версию, поэтому
|
|
35
|
+
правильные метаданные — здесь.
|
|
36
|
+
|
|
9
37
|
## [0.2.3] — 2026-10-19
|
|
10
38
|
|
|
11
39
|
### Добавлено
|
package/README.en.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- deepseek-harness-meta
|
|
2
2
|
{
|
|
3
3
|
"name": "Russian (ru) language pack for DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"tags": ["localization", "russian", "i18n", "web-gui", "language-pack"],
|
|
6
6
|
"description": "Full Russian interface for the DeepSeek Harness web GUI: 81 namespaces, 4949 translated strings, Russian screen typography, and a locale audit in CI pinned to a harness tag. Includes the automation-task manager and the reminder catalog.",
|
|
7
7
|
"icon": "https://raw.githubusercontent.com/Ragnoryok1/dsh-client-locale-ru/main/assets/icon.png",
|
|
@@ -98,7 +98,7 @@ After that, the next time `dsh web` starts, **Русский** will appear in th
|
|
|
98
98
|
|
|
99
99
|
The manifest is checked against the harness's own rules rather than by eye (`npm run check:manifest`, part of `verify`). Each rule was read out of the harness sources and each is a failure the user would otherwise meet first: `parseDshClient` accepts `platform` as any string while the consumers keep only `platform === 'web'`, so a typo like `'Web'` would **silently drop** the client half; a declared `dsh.client` without the `./client` export makes `client-modules` throw; and `dsh.bundle.patch` has to point at a file that exists.
|
|
100
100
|
|
|
101
|
-
Installing from GitHub works too: `dsh plugin --profile web add Ragnoryok1/dsh-client-locale-ru` (the form the plugin catalogue generates, without the npm scope) installs the repository archive, and the built `lib/` is committed — no build runs on your machine, and none is needed. That is exactly why `npm run check:built` (part of `verify`) rebuilds `lib/` and compares it with the commit: a stale bundle in git would reach the user, while the audit would never see it, because the audit reads the sources. The published package is
|
|
101
|
+
Installing from GitHub works too: `dsh plugin --profile web add Ragnoryok1/dsh-client-locale-ru` (the form the plugin catalogue generates, without the npm scope) installs the repository archive, and the built `lib/` is committed — no build runs on your machine, and none is needed. That is exactly why `npm run check:built` (part of `verify`) rebuilds `lib/` and compares it with the commit: a stale bundle in git would reach the user, while the audit would never see it, because the audit reads the sources. The published package is 495 kB: the banner ships as JPEG, and the icon and source map stay out of the npm payload.
|
|
102
102
|
|
|
103
103
|
## Why hybrid
|
|
104
104
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- deepseek-harness-meta
|
|
2
2
|
{
|
|
3
3
|
"name": "Russian (ru) language pack for DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"tags": ["localization", "russian", "i18n", "web-gui", "language-pack"],
|
|
6
6
|
"description": "Full Russian interface for the DeepSeek Harness web GUI: 81 namespaces, 4949 translated strings, Russian screen typography, and a locale audit in CI pinned to a harness tag. Includes the automation-task manager and the reminder catalog.",
|
|
7
7
|
"icon": "https://raw.githubusercontent.com/Ragnoryok1/dsh-client-locale-ru/main/assets/icon.png",
|
|
@@ -107,7 +107,7 @@ dsh plugin --profile web add @ragnoryok1/dsh-client-locale-ru
|
|
|
107
107
|
половину; declared `dsh.client` без экспорта `./client` заставляет `client-modules` бросить
|
|
108
108
|
ошибку; `dsh.bundle.patch` обязан указывать на существующий файл.
|
|
109
109
|
|
|
110
|
-
Установка из GitHub тоже работает: `dsh plugin --profile web add Ragnoryok1/dsh-client-locale-ru` (в таком виде команду генерирует каталог плагинов, без `@`-скоупа) ставит архив репозитория, а собранный `lib/` лежит в git — сборка на вашей машине не запускается и не требуется. Поэтому `npm run check:built` (входит в `verify`) пересобирает `lib/` и сверяет его с коммитом: устаревший бандл в git иначе получил бы именно пользователь, а аудит этого не увидел бы — он читает исходники. Публикуемый пакет занимает
|
|
110
|
+
Установка из GitHub тоже работает: `dsh plugin --profile web add Ragnoryok1/dsh-client-locale-ru` (в таком виде команду генерирует каталог плагинов, без `@`-скоупа) ставит архив репозитория, а собранный `lib/` лежит в git — сборка на вашей машине не запускается и не требуется. Поэтому `npm run check:built` (входит в `verify`) пересобирает `lib/` и сверяет его с коммитом: устаревший бандл в git иначе получил бы именно пользователь, а аудит этого не увидел бы — он читает исходники. Публикуемый пакет занимает 495 КБ: баннер отдаётся JPEG, а иконка и карта исходников в npm не входят.
|
|
111
111
|
|
|
112
112
|
## Почему гибрид
|
|
113
113
|
|
package/README.zh.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- deepseek-harness-meta
|
|
2
2
|
{
|
|
3
3
|
"name": "Russian (ru) language pack for DeepSeek Harness",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"tags": ["localization", "russian", "i18n", "web-gui", "language-pack"],
|
|
6
6
|
"description": "Full Russian interface for the DeepSeek Harness web GUI: 81 namespaces, 4949 translated strings, Russian screen typography, and a locale audit in CI pinned to a harness tag. Includes the automation-task manager and the reminder catalog.",
|
|
7
7
|
"icon": "https://raw.githubusercontent.com/Ragnoryok1/dsh-client-locale-ru/main/assets/icon.png",
|
|
@@ -85,7 +85,7 @@ dsh plugin --profile web add @ragnoryok1/dsh-client-locale-ru
|
|
|
85
85
|
|
|
86
86
|
清单按 harness 自身的规则检查,而不是靠肉眼(`npm run check:manifest`,包含在 `verify` 中)。每一条规则都取自 harness 源码,每一条都对应一种否则会先落到用户头上的失败:`parseDshClient` 接受任意字符串作为 `platform`,但消费方只保留 `platform === 'web'` 的行,因此写成 `'Web'` 这样的笔误会**悄悄关掉**客户端那一半;声明了 `dsh.client` 却没有 `./client` 导出会让 `client-modules` 抛错;`dsh.bundle.patch` 必须指向确实存在的文件。
|
|
87
87
|
|
|
88
|
-
从 GitHub 安装同样可用:`dsh plugin --profile web add Ragnoryok1/dsh-client-locale-ru`(插件目录生成的就是这种不带 npm scope 的写法)安装的是仓库归档,而构建好的 `lib/` 已提交进 git——你的机器上不会运行构建,也不需要运行。正因如此,`npm run check:built`(包含在 `verify` 中)会重新构建 `lib/` 并与提交内容比对:git 里过期的构建产物会直接落到用户手里,而审计看不到它——审计读的是源码。发布的包为
|
|
88
|
+
从 GitHub 安装同样可用:`dsh plugin --profile web add Ragnoryok1/dsh-client-locale-ru`(插件目录生成的就是这种不带 npm scope 的写法)安装的是仓库归档,而构建好的 `lib/` 已提交进 git——你的机器上不会运行构建,也不需要运行。正因如此,`npm run check:built`(包含在 `verify` 中)会重新构建 `lib/` 并与提交内容比对:git 里过期的构建产物会直接落到用户手里,而审计看不到它——审计读的是源码。发布的包为 495 KB:横幅以 JPEG 提供,图标与源码映射不进入 npm 包。
|
|
89
89
|
|
|
90
90
|
## 为什么是混合插件
|
|
91
91
|
|
|
@@ -140,7 +140,7 @@ npm run diff:harness -- <old> <new> # harness 改写了哪些英文
|
|
|
140
140
|
|
|
141
141
|
审计在 CI(`.github/workflows/verify.yml`)中针对**锁定的 harness 标签**运行,而不是针对随便一份本地 checkout。同一次运行还会**每周按计划**触发一次:即使没人改动,译文也会腐坏——上游继续前进,本地一切正常,而偏差只在用户构建时才浮现。门禁覆盖完整性(key 与 namespace)、复数形式、占位符、英文与中文残留、术语、正文中的拉丁词、文本卫生、首尾空格、风格、取值的排版、«ё»、组合短语、设置侧栏标签的长度以及对外宣称的数字——每一项都已经抓到过真实缺陷。除此之外,审计还会打印**参考报告**——它们不是门禁,因为需要人来判断:比对了多少个 namespace、哪些无法建立对应关系、是否还留有「数字 + 需变格的名词」,以及短字符串是否长到英文的 2.8 倍以上(排版风险——«Effort» → «Уровень рассуждения» 是俄语的正常长度,不是缺陷)。
|
|
142
142
|
|
|
143
|
-
审计按 harness 实际书写的形式读取模板:字符串、**段落数组**(各模式的指南就是这样存储的)以及**常量引用**(`'hint.plan': PLAN_NEXT_ACTION_EN`)。在只读取第一种形式时,有十个 key——其中八个是整篇指南——悄悄退出了所有比对。反过来也一样:空的策略文件(`keep-english.json`、`terminology.json` 的某个分区)现在会让审计失败,而不是在无人察觉的情况下放宽门禁。README 中宣称的数字也按同样方式与包体核对,因为过期的数字就是错误的说法——同样的数字还会从 `package.json` 的 description 中读取,那是 npm 在搜索与包页面上显示的内容(「55 namespaces」正是在那里活得最久)——包括带千位分隔符的写法:旧版开头写的是 `2 489`,而检查此前只读取不带分隔符的形式,所以数字模式现在也接受千位分隔符。紧随其后还核对「针对哪个 harness 版本构建」这句话:它必须与 workflow 中锁定的标签一致,因为真正验证这个包的是那个 workflow(两个 README 的开头都还写着 `0.2.1-alpha.2`,而 CI 早已换成 `dsh-v0.2.1-rc.2`)。发布包的体积也在这里实测:`npm run check:size` 会打包归档,并把声明的千字节数与实际值对比(允许
|
|
143
|
+
审计按 harness 实际书写的形式读取模板:字符串、**段落数组**(各模式的指南就是这样存储的)以及**常量引用**(`'hint.plan': PLAN_NEXT_ACTION_EN`)。在只读取第一种形式时,有十个 key——其中八个是整篇指南——悄悄退出了所有比对。反过来也一样:空的策略文件(`keep-english.json`、`terminology.json` 的某个分区)现在会让审计失败,而不是在无人察觉的情况下放宽门禁。README 中宣称的数字也按同样方式与包体核对,因为过期的数字就是错误的说法——同样的数字还会从 `package.json` 的 description 中读取,那是 npm 在搜索与包页面上显示的内容(「55 namespaces」正是在那里活得最久)——包括带千位分隔符的写法:旧版开头写的是 `2 489`,而检查此前只读取不带分隔符的形式,所以数字模式现在也接受千位分隔符。紧随其后还核对「针对哪个 harness 版本构建」这句话:它必须与 workflow 中锁定的标签一致,因为真正验证这个包的是那个 workflow(两个 README 的开头都还写着 `0.2.1-alpha.2`,而 CI 早已换成 `dsh-v0.2.1-rc.2`)。发布包的体积也在这里实测:`npm run check:size` 会打包归档,并把声明的千字节数与实际值对比(允许 495 KB 误差——不同 Node 构建下的 gzip 压缩结果略有差别,而这句话本身也只精确到整千字节)。
|
|
144
144
|
|
|
145
145
|
- **无效 namespace**——包注册的每一个 namespace 都必须在 harness 中存在。在 0.1.6 中,日程目录的翻译被注册在 `schedule.manager` 名下,而读取它们的是 `schedule.catalog`:此时按 key 做的覆盖率检查还报告「全部已翻译」;
|
|
146
146
|
- **复数形式配对**——`.one`/`.other` 的集合必须一致,因为客户端按 `count === 1 ? '.one' : '.other'` 选择形式。这对俄语还不够:每一对还需要 `.few` 与 `.many`,否则包装层会悄悄退回中性的 `.other`,本该是 «2 дня» 的地方显示成 «2 д»。该检查**按 namespace** 进行——包装层在提问的那个 namespace 里查找形式,因此「某个界面上有、另一个界面上缺」这种情况否则不会被发现。它找到了四个时间单位(`schedule.catalog` 中的 `unit.day/hour/minute/second`)和任务管理器里的 `trigger`;同时这些单位不再是缩写(«д»、«ч»、«мин»),而是带正确格位的完整形式——«через 2 дня»、«через 5 часов»,而 «Каждые 2 дня» 现在写作 «Раз в 2 дня»。同样的要求也覆盖本包自己添加的 key(`terminal.expand` 及其同类:harness 会把计数传给它,却从不配对)——这些形式只由我们维护,少一个不会有任何其他检查发现;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ragnoryok1/dsh-client-locale-ru",
|
|
3
3
|
"description": "dsh language pack — Russian (ru) locale for the DeepSeek Harness Web GUI: 81 namespaces, 4949 strings, 17 third-party plugin dictionaries, ru plural forms",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"dsh",
|
|
7
7
|
"deepseek-harness",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"check:built": "node scripts/check-built.mjs",
|
|
81
81
|
"check:size": "node scripts/check-size.mjs",
|
|
82
82
|
"audit": "node scripts/audit.mjs",
|
|
83
|
-
"verify": "npm run check:readmes && npm run check:readmes:pairs && npm run check:changelog && npm run check:manifest && npm run check:built && npm run check:size && npm run check:tarball && npm run check:typography && npm run check:typography:dom && npm run check:locale && npm run check:plural && npm run check:composition && npm run check:namespaces && npm run check:upstream && npm run check:peers && npm run check:workflows && npm run check:descriptors && node scripts/audit.mjs",
|
|
83
|
+
"verify": "npm run check:readmes && npm run check:readmes:pairs && npm run check:changelog && npm run check:manifest && npm run check:meta && npm run check:built && npm run check:size && npm run check:tarball && npm run check:typography && npm run check:typography:dom && npm run check:locale && npm run check:plural && npm run check:composition && npm run check:namespaces && npm run check:upstream && npm run check:peers && npm run check:workflows && npm run check:workflow-yaml && npm run check:descriptors && node scripts/audit.mjs",
|
|
84
84
|
"prepublishOnly": "npm run build",
|
|
85
85
|
"check:composition": "node scripts/check-composition.mjs",
|
|
86
86
|
"namespaces": "node scripts/namespaces.mjs",
|
|
@@ -96,7 +96,9 @@
|
|
|
96
96
|
"report:descriptors": "node scripts/descriptor-coverage.mjs",
|
|
97
97
|
"apply:descriptors": "node scripts/apply-descriptor-ru.mjs",
|
|
98
98
|
"check:descriptors": "node scripts/apply-descriptor-ru.mjs --check",
|
|
99
|
-
"release:status": "node scripts/release-status.mjs"
|
|
99
|
+
"release:status": "node scripts/release-status.mjs",
|
|
100
|
+
"check:meta": "node scripts/check-meta.mjs",
|
|
101
|
+
"check:workflow-yaml": "node scripts/check-workflow-yaml.mjs"
|
|
100
102
|
},
|
|
101
103
|
"license": "MIT",
|
|
102
104
|
"peerDependencies": {
|