cctrans 0.2.0 → 0.2.1

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/README.hi.md CHANGED
@@ -1,4 +1,4 @@
1
- # cctranslate
1
+ # cctrans
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-Hans.md) | [繁體中文](README.zh-Hant.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | [Русский](README.ru.md) | **हिन्दी**
4
4
 
@@ -56,15 +56,15 @@ Claude अंग्रेज़ी स्ट्रीम करता है
56
56
  npm install -g cctrans && cctrans install
57
57
 
58
58
  # from source:
59
- git clone https://github.com/roy-jiang-opus/cctranslate.git
60
- cd cctranslate
59
+ git clone https://github.com/roy-jiang-opus/cctrans.git
60
+ cd cctrans
61
61
  node bin/cctrans.js install # हुक पंजीकृत करता है, cctrans को ~/.local/bin में लिंक करता है, फिर setup विज़ार्ड चलाता है
62
62
  ```
63
63
 
64
64
  फिर **Claude Code को पुनः आरंभ करें** (नया सत्र) ताकि हुक लोड हो। कोई भी संदेश भेजें — जवाब द्विभाषी हो जाएँगे।
65
65
 
66
66
  > `~/.local/bin` आपके PATH में होना चाहिए; अन्यथा alias इस्तेमाल करें:
67
- > `alias cctrans='node /path/to/cctranslate/bin/cctrans.js'`
67
+ > `alias cctrans='node /path/to/cctrans/bin/cctrans.js'`
68
68
 
69
69
  ## उपयोग
70
70
 
package/README.ja.md CHANGED
@@ -1,4 +1,4 @@
1
- # cctranslate
1
+ # cctrans
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-Hans.md) | [繁體中文](README.zh-Hant.md) | **日本語** | [한국어](README.ko.md) | [Русский](README.ru.md) | [हिन्दी](README.hi.md)
4
4
 
@@ -56,15 +56,15 @@ Claude が英語をストリーミング出力
56
56
  npm install -g cctrans && cctrans install
57
57
 
58
58
  # from source:
59
- git clone https://github.com/roy-jiang-opus/cctranslate.git
60
- cd cctranslate
59
+ git clone https://github.com/roy-jiang-opus/cctrans.git
60
+ cd cctrans
61
61
  node bin/cctrans.js install # フック登録・cctrans を ~/.local/bin にリンク後、setup ウィザードを実行
62
62
  ```
63
63
 
64
64
  その後 **Claude Code を再起動**(新セッション)してフックを読み込みます。メッセージを送ると、返信がバイリンガルになります。
65
65
 
66
66
  > `~/.local/bin` が PATH に必要;なければエイリアスを:
67
- > `alias cctrans='node /path/to/cctranslate/bin/cctrans.js'`
67
+ > `alias cctrans='node /path/to/cctrans/bin/cctrans.js'`
68
68
 
69
69
  ## 使い方
70
70
 
package/README.ko.md CHANGED
@@ -1,4 +1,4 @@
1
- # cctranslate
1
+ # cctrans
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-Hans.md) | [繁體中文](README.zh-Hant.md) | [日本語](README.ja.md) | **한국어** | [Русский](README.ru.md) | [हिन्दी](README.hi.md)
4
4
 
@@ -56,15 +56,15 @@ Claude가 영어를 스트리밍 출력
56
56
  npm install -g cctrans && cctrans install
57
57
 
58
58
  # from source:
59
- git clone https://github.com/roy-jiang-opus/cctranslate.git
60
- cd cctranslate
59
+ git clone https://github.com/roy-jiang-opus/cctrans.git
60
+ cd cctrans
61
61
  node bin/cctrans.js install # 훅 등록, cctrans를 ~/.local/bin에 링크 후 setup 마법사 실행
62
62
  ```
63
63
 
64
64
  그다음 **Claude Code를 재시작**(새 세션)하여 훅을 로드합니다. 아무 메시지나 보내면 응답이 이중 언어로 표시됩니다.
65
65
 
66
66
  > `~/.local/bin`이 PATH에 있어야 합니다; 아니면 별칭을 사용하세요:
67
- > `alias cctrans='node /path/to/cctranslate/bin/cctrans.js'`
67
+ > `alias cctrans='node /path/to/cctrans/bin/cctrans.js'`
68
68
 
69
69
  ## 사용법
70
70
 
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # cctranslate
1
+ # cctrans
2
2
 
3
3
  **English** | [简体中文](README.zh-Hans.md) | [繁體中文](README.zh-Hant.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | [Русский](README.ru.md) | [हिन्दी](README.hi.md)
4
4
 
@@ -56,15 +56,15 @@ Claude streams English
56
56
  npm install -g cctrans && cctrans install
57
57
 
58
58
  # from source:
59
- git clone https://github.com/roy-jiang-opus/cctranslate.git
60
- cd cctranslate
59
+ git clone https://github.com/roy-jiang-opus/cctrans.git
60
+ cd cctrans
61
61
  node bin/cctrans.js install # registers the hooks, links cctrans into ~/.local/bin, then runs the setup wizard
62
62
  ```
63
63
 
64
64
  Then **restart Claude Code** (new session) so the hook loads. Send any message — replies become bilingual.
65
65
 
66
66
  > Requires `~/.local/bin` on your PATH; otherwise use an alias:
67
- > `alias cctrans='node /path/to/cctranslate/bin/cctrans.js'`
67
+ > `alias cctrans='node /path/to/cctrans/bin/cctrans.js'`
68
68
 
69
69
  ## Usage
70
70
 
package/README.ru.md CHANGED
@@ -1,4 +1,4 @@
1
- # cctranslate
1
+ # cctrans
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-Hans.md) | [繁體中文](README.zh-Hant.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | **Русский** | [हिन्दी](README.hi.md)
4
4
 
@@ -57,15 +57,15 @@ Claude стримит английский текст
57
57
  npm install -g cctrans && cctrans install
58
58
 
59
59
  # from source:
60
- git clone https://github.com/roy-jiang-opus/cctranslate.git
61
- cd cctranslate
60
+ git clone https://github.com/roy-jiang-opus/cctrans.git
61
+ cd cctrans
62
62
  node bin/cctrans.js install # регистрирует хуки, линкует cctrans в ~/.local/bin, затем запускает мастер настройки
63
63
  ```
64
64
 
65
65
  Затем **перезапустите Claude Code** (новая сессия), чтобы хук загрузился. Отправьте любое сообщение — ответы станут двуязычными.
66
66
 
67
67
  > Требуется `~/.local/bin` в PATH; иначе используйте алиас:
68
- > `alias cctrans='node /path/to/cctranslate/bin/cctrans.js'`
68
+ > `alias cctrans='node /path/to/cctrans/bin/cctrans.js'`
69
69
 
70
70
  ## Использование
71
71
 
package/README.zh-Hans.md CHANGED
@@ -1,4 +1,4 @@
1
- # cctranslate
1
+ # cctrans
2
2
 
3
3
  [English](README.md) | **简体中文** | [繁體中文](README.zh-Hant.md) | [日本語](README.ja.md) | [한국어](README.ko.md) | [Русский](README.ru.md) | [हिन्दी](README.hi.md)
4
4
 
@@ -56,15 +56,15 @@ Claude 流式输出英文
56
56
  npm install -g cctrans && cctrans install
57
57
 
58
58
  # from source:
59
- git clone https://github.com/roy-jiang-opus/cctranslate.git
60
- cd cctranslate
59
+ git clone https://github.com/roy-jiang-opus/cctrans.git
60
+ cd cctrans
61
61
  node bin/cctrans.js install # 注册钩子、链接 cctrans 到 ~/.local/bin,然后运行 setup 向导
62
62
  ```
63
63
 
64
64
  然后**重启 Claude Code**(开新会话)让钩子生效。发任意消息,回复就会双语对照。
65
65
 
66
66
  > 需要 `~/.local/bin` 在 PATH 里;否则用别名:
67
- > `alias cctrans='node /path/to/cctranslate/bin/cctrans.js'`
67
+ > `alias cctrans='node /path/to/cctrans/bin/cctrans.js'`
68
68
 
69
69
  ## 使用
70
70
 
package/README.zh-Hant.md CHANGED
@@ -1,4 +1,4 @@
1
- # cctranslate
1
+ # cctrans
2
2
 
3
3
  [English](README.md) | [简体中文](README.zh-Hans.md) | **繁體中文** | [日本語](README.ja.md) | [한국어](README.ko.md) | [Русский](README.ru.md) | [हिन्दी](README.hi.md)
4
4
 
@@ -56,15 +56,15 @@ Claude 串流輸出英文
56
56
  npm install -g cctrans && cctrans install
57
57
 
58
58
  # from source:
59
- git clone https://github.com/roy-jiang-opus/cctranslate.git
60
- cd cctranslate
59
+ git clone https://github.com/roy-jiang-opus/cctrans.git
60
+ cd cctrans
61
61
  node bin/cctrans.js install # 註冊鉤子、連結 cctrans 到 ~/.local/bin,然後執行 setup 精靈
62
62
  ```
63
63
 
64
64
  接著**重新啟動 Claude Code**(開新工作階段)讓鉤子生效。送出任意訊息,回覆就會雙語對照。
65
65
 
66
66
  > 需要 `~/.local/bin` 在 PATH 中;否則使用別名:
67
- > `alias cctrans='node /path/to/cctranslate/bin/cctrans.js'`
67
+ > `alias cctrans='node /path/to/cctrans/bin/cctrans.js'`
68
68
 
69
69
  ## 使用
70
70
 
package/bin/cctrans.js CHANGED
@@ -104,7 +104,7 @@ function uninstall() {
104
104
  if (Object.keys(s.hooks).length === 0) delete s.hooks;
105
105
  writeSettings(s);
106
106
  }
107
- console.log(C.green('✓') + ' removed cctranslate hooks. Restart Claude Code to take effect.');
107
+ console.log(C.green('✓') + ' removed cctrans hooks. Restart Claude Code to take effect.');
108
108
  }
109
109
 
110
110
  function status() {
@@ -112,7 +112,7 @@ function status() {
112
112
  const installed = hookInstalled();
113
113
  const b = getBackend(st.backend);
114
114
  const lang = getLang(st.target);
115
- console.log(C.bold('cctranslate status'));
115
+ console.log(C.bold('cctrans status'));
116
116
  console.log(' enabled : ' + (st.enabled ? C.green('ON') : C.red('OFF')));
117
117
  console.log(' hook : ' + (installed ? C.green('installed') : C.red('not installed') + C.dim(' (run: cctrans install)')));
118
118
  console.log(' backend : ' + st.backend + (b ? (b.available() ? C.green(' (ready)') : C.red(' (missing: ' + b.needs + ')')) : C.red(' (unknown backend)')));
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "cctrans",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Bilingual inline translation overlay for Claude Code: a translated line (zh/ja/ko/ru/hi) under each English line, right in the conversation — non-destructive, zero main-loop tokens.",
5
5
  "license": "MIT",
6
6
  "author": "Roy Jiang",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/roy-jiang-opus/cctranslate.git"
9
+ "url": "git+https://github.com/roy-jiang-opus/cctrans.git"
10
10
  },
11
- "homepage": "https://github.com/roy-jiang-opus/cctranslate#readme",
11
+ "homepage": "https://github.com/roy-jiang-opus/cctrans#readme",
12
12
  "bugs": {
13
- "url": "https://github.com/roy-jiang-opus/cctranslate/issues"
13
+ "url": "https://github.com/roy-jiang-opus/cctrans/issues"
14
14
  },
15
15
  "keywords": [
16
16
  "claude-code",
package/src/setup.js CHANGED
@@ -32,7 +32,7 @@ async function runSetup(opts) {
32
32
  };
33
33
 
34
34
  try {
35
- console.log(C.bold('cctranslate setup') + C.dim(' (re-run anytime: cctrans setup)'));
35
+ console.log(C.bold('cctrans setup') + C.dim(' (re-run anytime: cctrans setup)'));
36
36
 
37
37
  // 1. Target language
38
38
  let lang = opts.lang;