claude-remote 0.1.2 → 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.
- package/README.md +26 -0
- package/package.json +1 -1
- package/server.js +910 -802
package/README.md
CHANGED
|
@@ -30,6 +30,29 @@ claude-remote
|
|
|
30
30
|
|
|
31
31
|
会在当前目录启动 Claude Code 并开启远程控制服务(默认端口 3100)。
|
|
32
32
|
|
|
33
|
+
#### 参数透传
|
|
34
|
+
|
|
35
|
+
`claude-remote` 支持将参数直接传递给 Claude Code CLI:
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# 恢复指定会话
|
|
39
|
+
claude-remote --resume <session-id>
|
|
40
|
+
|
|
41
|
+
# 继续最近的对话
|
|
42
|
+
claude-remote -c
|
|
43
|
+
|
|
44
|
+
# 指定模型
|
|
45
|
+
claude-remote --model opus
|
|
46
|
+
|
|
47
|
+
# 组合使用
|
|
48
|
+
claude-remote --model sonnet -c
|
|
49
|
+
|
|
50
|
+
# 指定工作目录 + 恢复会话
|
|
51
|
+
claude-remote /path/to/project --resume abc123
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
> 不兼容参数(`--print`、`--output-format`、`--version` 等非交互模式参数)会被自动过滤并在启动 banner 中提示。
|
|
55
|
+
|
|
33
56
|
指定端口:
|
|
34
57
|
|
|
35
58
|
```bash
|
|
@@ -149,4 +172,7 @@ npx tauri android dev
|
|
|
149
172
|
- [x] /命令指令及样式美化
|
|
150
173
|
- [x] npm 包化 —— `npm install -g claude-remote` 全局安装,`claude-remote` 一键启动
|
|
151
174
|
- [x] AI 截图显示 —— 工具返回的图片(如 Playwright 截图)全宽渲染,点击全屏查看
|
|
175
|
+
- [x] CLI 参数透传 —— `claude-remote --resume xxx` 等参数直接传给 Claude Code,自动过滤不兼容参数
|
|
176
|
+
- [x] 多客户端同步 —— 多台设备同时连接,Working 状态和消息实时同步
|
|
177
|
+
- [x] 会话生命周期管理 —— 通过 SessionStart Hook 自动绑定会话 ID,支持 /clear 切换检测
|
|
152
178
|
- [ ] Tool Use 状态渲染(进行中 / 成功 / 失败)
|