echo-t3-bridge 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Echo
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,60 @@
1
- # Temporary Holding Version
1
+ # echo-t3-bridge
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
+ **零二开官方原版 T3 Code** 的公网反向桥接客户端(与 `toc-ocra` 一致的独立 npm CLI 方式)。
4
+
5
+ 它在您的本机上连接**未经任何修改的官方原版 T3 Code Server**(`127.0.0.1:3773`),并主动向公网 Echo Hub(默认 `https://wq.stormapex.top`)建立 DPoP 认证的反向 WebSocket 长连接:
6
+
7
+ - **T3 Code 0 二开**:目标机器直接安装官方原版 `t3`(`curl -fsSL https://t3.codes/install.sh | sh` 或桌面端),随时 `t3 update` 升级;
8
+ - **Web 发起配对,终端一键上线**:在 YY Web 点击「生成配对码」得到配对命令,在目标机器终端运行即可自动反向连通公网,**无需暴露局域网 IP、无需端口映射**;
9
+ - **原生 Antigravity 额度增强**:内置与 `toc-ocra` 一致的 `agy -p /usage --output-format json` 探测,自动把 Gemini(5h/周)与 Claude/GPT 3P 额度实时注入并上报给公网;
10
+ - **模型参数自动防护**:自动拆分 `gemini-3.8-flash-high` 等带思考强度后缀的旧模型名为纯净 `model` + `thought_level`,避免 `agy acp` 拒绝模型导致卡在“启动中…”。
11
+
12
+ ## 快速开始
13
+
14
+ ### 1. 确保本机已安装并启动官方原版 T3
15
+
16
+ ```bash
17
+ # 如尚未安装官方原版 T3:
18
+ curl -fsSL https://t3.codes/install.sh | sh
19
+
20
+ # 启动原版 T3 后台服务(仅本机回环即可):
21
+ t3 up
22
+ ```
23
+
24
+ ### 2. 安装 `echo-t3-bridge` 并一键配对上线
25
+
26
+ 方式一:全局安装(推荐,与 `toc-ocra` 相同)
27
+
28
+ ```bash
29
+ npm install -g echo-t3-bridge
30
+
31
+ # 在 YY Web「设备」页点击「生成配对码」,复制命令到目标机器执行:
32
+ echo-t3-bridge setup --server https://wq.stormapex.top --code <配对码>
33
+ ```
34
+
35
+ 方式二:使用 `npx` 免安装直接执行
36
+
37
+ ```bash
38
+ npx -y echo-t3-bridge setup --server https://wq.stormapex.top --code <配对码>
39
+ ```
40
+
41
+ 方式三:从本地源码开发构建并链接全局命令
42
+
43
+ ```bash
44
+ npm install
45
+ npm run build
46
+ npm link
47
+
48
+ echo-t3-bridge setup --server https://wq.stormapex.top --code <配对码>
49
+ ```
50
+
51
+ ## 常用命令
52
+
53
+ | 命令 | 说明 |
54
+ | --- | --- |
55
+ | `echo-t3-bridge setup --code <CODE> [--server <URL>]` | 一键配对公网 + 自动授权本机原版 T3 + 安装开机自启后台服务 |
56
+ | `echo-t3-bridge pair --code <CODE>`(别名 `enroll`) | 仅配对并保存凭据,不安装后台服务 |
57
+ | `echo-t3-bridge run` | 前台运行桥接守护进程 |
58
+ | `echo-t3-bridge status` / `doctor` | 检查公网在线态、本机原版 T3 状态与 Antigravity 实时额度 |
59
+ | `echo-t3-bridge service install` / `uninstall` | 安装或卸载开机自启后台服务(macOS launchd / Linux systemd / Windows) |
60
+ | `echo-t3-bridge unpair` | 解绑当前设备 |