@lancetw/aiyu 0.3.2 → 0.3.3

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 (2) hide show
  1. package/README.md +42 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # @lancetw/aiyu
2
+
3
+ Native-messaging **host installer** for the [aiyu](https://github.com/lancetw/aiyu) Chrome extension (*aiyu — AI 譯語*), which translates **YouTube subtitles** and **selected web text** into Traditional Chinese (Taiwan) using an AI CLI already on your own machine.
4
+
5
+ This npm package is the **host half**. It registers a small local bridge so the aiyu browser extension can call your installed `claude` / `codex` / `agy` CLI. The extension itself is installed from the Chrome Web Store.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npx @lancetw/aiyu
11
+ ```
12
+
13
+ Then restart your browser, click the aiyu icon → **「測試 host 連線」** (Test host connection).
14
+
15
+ ## Requirements
16
+
17
+ - **Node.js ≥ 18**
18
+ - One of these AI CLIs installed **and signed in** (requires that service's account):
19
+ - `claude` — Anthropic Claude Code
20
+ - `codex` — OpenAI Codex
21
+ - `agy` — Google Antigravity
22
+ - The **aiyu** extension installed from the Chrome Web Store
23
+
24
+ > Without a CLI or without running this installer, the extension shows **「連線失敗」(connection failed)**. macOS / Linux are verified; Windows is experimental.
25
+
26
+ ## Uninstall
27
+
28
+ ```sh
29
+ npx @lancetw/aiyu --uninstall
30
+ ```
31
+
32
+ ## What it does
33
+
34
+ `npx @lancetw/aiyu` copies the host to a stable location, generates a launcher pinned to your Node binary (no reliance on a shebang), and registers the native-messaging manifest for each detected Chromium-based browser (Chrome / Chromium / Edge / Brave / Arc). The host trusts both the off-store (unpacked-dev) and Chrome Web Store extension IDs, so either build connects.
35
+
36
+ ## Privacy
37
+
38
+ aiyu has **no developer server** and collects no data. The text you translate goes only — under your own account, via the CLI you installed — to that provider (Anthropic / OpenAI / Google); it never passes through the developer. See the [privacy policy](https://github.com/lancetw/aiyu/blob/master/PRIVACY.md).
39
+
40
+ ## License
41
+
42
+ [MIT](https://github.com/lancetw/aiyu/blob/master/LICENSE) © lancetw
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lancetw/aiyu",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Installs the native-messaging host for the aiyu Chrome extension, letting it call your local claude/codex/agy CLI to translate YouTube subtitles and selected text. Run: npx @lancetw/aiyu",
5
5
  "bin": {
6
6
  "aiyu": "install.js"