@kinocode/dsh-japanese 0.0.0-stage → 0.1.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.
Files changed (83) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/LICENSE +21 -0
  3. package/README.md +181 -2
  4. package/cordis.patch.yml +7 -0
  5. package/lib/client.js +5643 -0
  6. package/lib/index.js +6 -0
  7. package/locale/ja/agent-team.json +27 -0
  8. package/locale/ja/agy.json +226 -0
  9. package/locale/ja/approval.json +7 -0
  10. package/locale/ja/chat.json +193 -0
  11. package/locale/ja/command.json +30 -0
  12. package/locale/ja/common.json +43 -0
  13. package/locale/ja/conversation.json +373 -0
  14. package/locale/ja/cordis.json +53 -0
  15. package/locale/ja/cotTranslation.json +34 -0
  16. package/locale/ja/deepseek-model-label-1017.json +3 -0
  17. package/locale/ja/deliverables.json +62 -0
  18. package/locale/ja/documentHtml.json +6 -0
  19. package/locale/ja/documentMarkdown.json +6 -0
  20. package/locale/ja/dsh-context-lens.json +13 -0
  21. package/locale/ja/dsh-cron.json +387 -0
  22. package/locale/ja/dsh-image-gen.json +314 -0
  23. package/locale/ja/dsh-key-rotation.json +212 -0
  24. package/locale/ja/dsh-market.json +735 -0
  25. package/locale/ja/dsh-plugin-uisfx.json +22 -0
  26. package/locale/ja/dsh-ppt.json +65 -0
  27. package/locale/ja/dsh-progress-updates.json +30 -0
  28. package/locale/ja/dsh-workbuddy.json +104 -0
  29. package/locale/ja/dsh-wsl-tray.json +45 -0
  30. package/locale/ja/feedback.json +22 -0
  31. package/locale/ja/goal.json +14 -0
  32. package/locale/ja/job.json +42 -0
  33. package/locale/ja/local.vcs.json +262 -0
  34. package/locale/ja/model.json +25 -0
  35. package/locale/ja/open-in-app.json +17 -0
  36. package/locale/ja/permission.access.json +19 -0
  37. package/locale/ja/plan.json +19 -0
  38. package/locale/ja/pluginManager.json +223 -0
  39. package/locale/ja/pluginMarket.json +80 -0
  40. package/locale/ja/question.json +33 -0
  41. package/locale/ja/reference.json +17 -0
  42. package/locale/ja/schedule.catalog.json +145 -0
  43. package/locale/ja/schedule.manager.json +136 -0
  44. package/locale/ja/secretMask.json +4 -0
  45. package/locale/ja/session-inspector.json +54 -0
  46. package/locale/ja/session-log-download.json +12 -0
  47. package/locale/ja/settings.account.json +96 -0
  48. package/locale/ja/settings.agentLoop.json +14 -0
  49. package/locale/ja/settings.agentPreset.json +49 -0
  50. package/locale/ja/settings.conversation-language.json +14 -0
  51. package/locale/ja/settings.json +43 -0
  52. package/locale/ja/settings.locale.json +3 -0
  53. package/locale/ja/settings.models.json +136 -0
  54. package/locale/ja/settings.permission.json +14 -0
  55. package/locale/ja/settings.pluginInventory.json +39 -0
  56. package/locale/ja/settings.plugins.json +7 -0
  57. package/locale/ja/settings.sessionLog.json +6 -0
  58. package/locale/ja/settings.shell.json +16 -0
  59. package/locale/ja/settings.subagent.json +37 -0
  60. package/locale/ja/settings.theme.json +27 -0
  61. package/locale/ja/settings.webSearch.json +29 -0
  62. package/locale/ja/settings.workbuddy.json +127 -0
  63. package/locale/ja/shortcuts.json +58 -0
  64. package/locale/ja/shortcuts.layout.json +3 -0
  65. package/locale/ja/sidebar.json +7 -0
  66. package/locale/ja/sidebarBrowser.json +28 -0
  67. package/locale/ja/sidebarCodePreview.json +5 -0
  68. package/locale/ja/sidebarDocumentPreview.json +37 -0
  69. package/locale/ja/sidebarExcel.json +17 -0
  70. package/locale/ja/sidebarFiles.json +19 -0
  71. package/locale/ja/sidebarImage.json +7 -0
  72. package/locale/ja/sidebarOffice.json +17 -0
  73. package/locale/ja/sidebarPdf.json +11 -0
  74. package/locale/ja/sidebarRight.json +36 -0
  75. package/locale/ja/sidebarTerminal.json +30 -0
  76. package/locale/ja/skill.json +10 -0
  77. package/locale/ja/slash.menu.json +11 -0
  78. package/locale/ja/subagent.json +43 -0
  79. package/locale/ja/trajectory.json +194 -0
  80. package/locale/ja/voice-input.json +111 -0
  81. package/locale/ja/workflowRun.json +20 -0
  82. package/locale/ja/workspace.json +121 -0
  83. package/package.json +64 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,38 @@
1
+ # 変更履歴
2
+
3
+ ## 0.1.4 (2026-10-18)
4
+
5
+ - 人気外部プラグインの残りを追加(1,602キー)
6
+ - `dshmarket`(`dsh-market` 733)、`@goodandready/dsh-cron`(385)、`@goodandready/dsh-key-rotation`(210)
7
+ - `dsh-workbuddy-connect`(settings.workbuddy 125)、`@cola1900/dsh-ppt`(63)、`dsh-wsl-tray`(43)
8
+ - `dsh-plugin-uisfx`(20)、`@dingpenghui/dsh-conversation-language`(12)、`@goodandready/dsh-context-lens`(11)
9
+ - 67 → 76名前空間、3,802 → 5,404キー
10
+
11
+ ## 0.1.3 (2026-10-18)
12
+
13
+ - 人気外部プラグインのうち DSH ロケールを使うものを追加(702キー)
14
+ - `@feng0531/dsh-vcs` 0.4.10 — `local.vcs` 260キー
15
+ - `@eddyskywalker/dsh-chatgpt-subscription` 0.27.1 — `dsh-workbuddy` 102 / `dsh-progress-updates` 28
16
+ - `@goodandready/dsh-image-gen` 0.12.2 — `dsh-image-gen` 312
17
+ - 65 → 67名前空間、3,100 → 3,802キー
18
+
19
+ ## 0.1.2 (2026-10-18)
20
+
21
+ - 外部プラグイン `dsh-agy` 0.4.6 の `agy` 名前空間(224キー)を日本語化
22
+ - これで 63名前空間・3,100キー
23
+
24
+ ## 0.1.1 (2026-10-18)
25
+
26
+ - 初回抽出で漏れていた13名前空間・270キーを追加
27
+ - `schedule.manager`(Automation tasks ページ)134キー
28
+ - `job`(バックグラウンドジョブ)40キー
29
+ - ドキュメントプレビュー各形式(`sidebarOffice` / `sidebarExcel` / `sidebarPdf` / `sidebarImage` / `documentHtml` / `documentMarkdown` / `sidebarCodePreview`)
30
+ - `slash.menu`、`settings.locale`、`shortcuts.layout`、`deepseek-model-label-1017`
31
+ - 既存名前空間の新規キー29件(`schedule.catalog`、`sidebarDocumentPreview`)
32
+
33
+ ## 0.1.0 (2026-10-18)
34
+
35
+ - 初版。DSH 0.2.1-rc.2 の英語基準辞書(49名前空間・2,606キー)を日本語化
36
+ - 言語ピッカーに「日本語」を登録(`addLanguage` fallback: en)
37
+ - 日本語優先フォントスタックを root 既定として適用(本文・コード・ターミナル)
38
+ - 品質ツール: `check`(キー網羅・プレースホルダー・用語)、`audit`(自然さ)、`review`(CSV往復)
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kinocode
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,182 @@
1
- # Temporary Holding Version
1
+ # @kinocode/dsh-japanese
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ DeepSeek Harness(DSH)デスクトップアプリ用の**日本語パック**。
4
+ 言語ピッカーに「日本語」を追加し、76名前空間・5,404キーの辞書と、日本語優先のフォント設定を入れる。
5
+
6
+ > **非公式プラグインです。** DeepSeek / DeepSeek Harness の公式配布物ではありません。
7
+
8
+ 英語の基準辞書は DSH `0.2.1-rc.2` から抽出したもの(`tools/en.baseline.json`)。
9
+ 未翻訳のキーは英語にフォールバックするので、DSH を更新してキーが増えても UI は壊れない。
10
+
11
+ ## インストール
12
+
13
+ npm から入れる場合(公開後):
14
+
15
+ ```bash
16
+ dsh plugin --profile desktop add @kinocode/dsh-japanese
17
+ ```
18
+
19
+ または **Plugins** 画面で `@kinocode/dsh-japanese` を指定してインストールする。
20
+ `dsh.bundle.patch` を宣言しているので、プロファイルの `dsh.profile.bundles` には自動で追加される。
21
+
22
+ 入れたあと DSH を再起動し、**Settings → Language → 日本語** を選ぶ。
23
+
24
+ ローカルの作業ツリーから入れる場合:
25
+
26
+ ```bash
27
+ dsh plugin --profile desktop add link:/Volumes/D/Project/dsh-japanese
28
+ ```
29
+
30
+ このリポジトリは現在この link 方式で `desktop` プロファイルに入っている。
31
+
32
+ ### 元に戻す
33
+
34
+ `~/.dsh/profiles/desktop/package.json.bak-before-locale-ja` と
35
+ `pnpm-lock.yaml.bak-before-locale-ja` に、導入前のバックアップがある。
36
+
37
+ ## 何を変えるか
38
+
39
+ | 領域 | 内容 | 状態 |
40
+ |---|---|---|
41
+ | 日本語辞書 | 76名前空間・5,404キー。です・ます調、用語統一 | 実装済み |
42
+ | フォント | 本文・コード・ターミナルを日本語優先スタックに | 実装済み |
43
+ | 外部プラグイン | `dsh-agy`、`dsh-vcs`、`dsh-chatgpt-subscription`、`dsh-image-gen` の UI | 実装済み |
44
+ | 組版 | 禁則処理・約物まわりの調整 | 検討中 |
45
+ | 日付・数値 | 和暦ではなく `YYYY/MM/DD`、桁区切り | 検討中 |
46
+
47
+ ## フォント(日本語優先)
48
+
49
+ DSH の既定スタックは日本語書体より先に `PingFang SC` / `Hiragino Sans GB`(簡体字中国語)を
50
+ 並べているため、日本語UIでも漢字が中国語字形になる。このプラグインは `<html>` に次の既定を入れる。
51
+
52
+ | 用途 | スタック |
53
+ |---|---|
54
+ | 本文 | `"Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, -apple-system, …` |
55
+ | コード | `"SF Mono", "JetBrains Mono", "Fira Code", Menlo, Monaco, Consolas, "Hiragino Sans", "Noto Sans JP", …` |
56
+ | ターミナル | コードと同じ |
57
+
58
+ Settings でフォントを指定すると `<body>` に書かれ、そちらが優先される。空欄に戻すとこの既定に戻る。
59
+
60
+ ### 再起動せずに反映する
61
+
62
+ Settings → 一般 → その他のフォント設定 → **テキストフォント** に次を貼る(入力欄は200文字まで)。
63
+
64
+ ```text
65
+ "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif
66
+ ```
67
+
68
+ **コードフォント** には次を貼る。
69
+
70
+ ```text
71
+ "SF Mono", Menlo, "Hiragino Sans", "Yu Gothic", monospace
72
+ ```
73
+
74
+ Latin も Hiragino の字形に揃えたい場合はこのままでよい。Latin だけ SF Pro に戻したい場合は
75
+ 先頭に `-apple-system, ` を足す(例: `-apple-system, "Hiragino Sans", …`)。
76
+
77
+ ## 対応している外部プラグイン
78
+
79
+ 各プラグインが DSH のロケール名前空間を使っている場合だけ、このパックに `ja` を足せる。
80
+ 対応版は `tools/vendor/manifest.json` に固定してある。
81
+
82
+ | プラグイン | 名前空間 | キー | 版 |
83
+ |---|---|---|---|
84
+ | dsh-agy | `agy` | 224 | 0.4.6 |
85
+ | dshmarket | `dsh-market` | 733 | 1.66.37 |
86
+ | @goodandready/dsh-cron | `dsh-cron` | 385 | 0.3.8 |
87
+ | @goodandready/dsh-image-gen | `dsh-image-gen` | 312 | 0.12.2 |
88
+ | @feng0531/dsh-vcs | `local.vcs` | 260 | 0.4.10 |
89
+ | @goodandready/dsh-key-rotation | `dsh-key-rotation` | 210 | 0.8.63 |
90
+ | dsh-workbuddy-connect | `settings.workbuddy` | 125 | 0.7.8 |
91
+ | @eddyskywalker/dsh-chatgpt-subscription | `dsh-workbuddy`, `dsh-progress-updates` | 130 | 0.27.1 |
92
+ | @cola1900/dsh-ppt | `dsh-ppt` | 63 | 0.3.4 |
93
+ | dsh-wsl-tray | `dsh-wsl-tray` | 43 | 0.1.7 |
94
+ | dsh-plugin-uisfx | `dsh-plugin-uisfx` | 20 | 0.1.1 |
95
+ | @dingpenghui/dsh-conversation-language | `settings.conversation-language` | 12 | 3.2.5 |
96
+ | @goodandready/dsh-context-lens | `dsh-context-lens` | 11 | 0.1.33 |
97
+
98
+ DSH のロケールを使わず独自の中文/English 切替を持つプラグイン(`dsh-cost-meter`、`dsh-free-search` など)は、
99
+ このパックでは日本語化できない。
100
+
101
+ ## 翻訳を直す
102
+
103
+ 辞書は `locale/ja/<namespace>.json` にある。直接編集してもよいが、一覧で見たいときは CSV を使う。
104
+
105
+ ```bash
106
+ npm run review # docs/review.csv を出力(Numbers / Excel で開ける)
107
+ # ja 列だけ編集して保存
108
+ npm run apply-review # CSV の ja 列を locale/ja/*.json に反映
109
+ npm run check # キー網羅・プレースホルダー・用語の検査
110
+ npm run audit # 自然さの観点で警告(「あなた」、約物、長すぎる文など)
111
+ npm run build # lib/client.js を再生成
112
+ ```
113
+
114
+ `check` は次を見る。
115
+
116
+ - 基準キーの欠落・余分なキー
117
+ - `{name}` などのプレースホルダーの不一致
118
+ - 空文字、英語ソースにない改行
119
+ - 英語のまま残っている値(単位・記号・技術名は除外)
120
+ - 用語表に反する表記(「副エージェント」「作業スペース」など)
121
+
122
+ `audit` は助言のみで、終了コードは変えない。指摘を直すときも CSV 経由が楽。
123
+
124
+ ### 訳し直すとき
125
+
126
+ `docs/glossary.md` が唯一の判断基準。用語を変えるなら先にこのファイルを直す。
127
+
128
+ ```bash
129
+ npm run batches 80 # work/batches/ に英語キーを分割
130
+ npm run polish # 既存訳のレビュー用バッチを作る
131
+ npm run apply-polish # レビュー結果を反映
132
+ npm run merge # 翻訳結果を locale/ja/ に統合
133
+ ```
134
+
135
+ ## 構成
136
+
137
+ ```text
138
+ locale/ja/*.json 日本語辞書(名前空間 = ファイル名)
139
+ lib/client.js 生成物。直接編集しない
140
+ lib/index.js host 側は空
141
+ tools/en.baseline.json 英語の基準辞書(DSH 0.2.1-rc.2)
142
+ tools/build-client.mjs 辞書とフォント既定を client.js に埋め込む
143
+ tools/check.mjs 品質検査(終了コードあり)
144
+ tools/audit.mjs 自然さの監査(助言のみ)
145
+ tools/review.mjs CSV の書き出し・取り込み
146
+ tools/make-batches.mjs 翻訳バッチの生成
147
+ tools/make-polish.mjs 推敲バッチの生成
148
+ tools/merge-out.mjs バッチ結果の統合
149
+ tools/apply-polish.mjs 推敲結果の適用
150
+ docs/glossary.md 訳語と文体のガイドライン
151
+ docs/review.csv レビュー用 CSV(生成物・5,404行)
152
+ ```
153
+
154
+ ## 公開(メンテナ向け)
155
+
156
+ npm の `@kinocode` スコープで公開する。
157
+
158
+ ```bash
159
+ npm login # kinocode オーガニゼーションのメンバー
160
+ npm publish --access public
161
+ ```
162
+
163
+ - `package.json` の `private` は外してある
164
+ - `files` に `lib` / `locale` / `cordis.patch.yml` / `README` / `LICENSE` / `CHANGELOG` が入る
165
+ - 公開前に `npm pack --dry-run` で中身を確認する
166
+ - `dsh.engines.dsh` が対応範囲。DSH 側の互換チェックは `engines` と peerDependencies を見る
167
+ - pnpm の `minimumReleaseAge` により、公開直後の版はインストールが遅れることがある
168
+ - DSH には公式マーケットは無い。配布は npm か Git、または自前の market index(実験的機能)になる
169
+
170
+ ## DSH を更新したとき
171
+
172
+ 1. 新しい `en.baseline.json` を用意する
173
+ 2. `node tools/check.mjs` で不足キーを確認する
174
+ 3. 不足分だけ翻訳して追記する
175
+ 4. `npm run build` → 再起動
176
+
177
+ ## メモ
178
+
179
+ - `addLanguage({ id: 'ja', label: '日本語', fallback: 'en' })` で言語を登録する
180
+ - 辞書は `ctx.locale.register(namespace, { ja: dict })` で登録する
181
+ - フォントは `<html>` の CSS 変数(`--dsh-font-family-*`)で既定を入れ、Settings の指定(`<body>`)に譲る
182
+ - 二重ロード時は「already registered」を握りつぶす(GUI の起動を止めない)
@@ -0,0 +1,7 @@
1
+ # dsh-japanese bundle patch: inserts the Japanese locale row into the web
2
+ # profile roster. Applied as a profile bundle layer (the `dsh.bundle.patch`
3
+ # manifest field). Install with:
4
+ # dsh plugin --profile desktop add link:/Volumes/D/Project/dsh-japanese
5
+ - insert:
6
+ - id: japanese
7
+ name: '@kinocode/dsh-japanese'