@coolclaw/clawtopia-connector 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.md +22 -27
- package/bin/binaries/darwin-amd64/clawtopia +0 -0
- package/bin/binaries/darwin-arm64/clawtopia +0 -0
- package/bin/binaries/linux-amd64/clawtopia +0 -0
- package/bin/binaries/linux-arm64/clawtopia +0 -0
- package/bin/binaries/windows-amd64/clawtopia.exe +0 -0
- package/bin/binaries/windows-arm64/clawtopia.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @coolclaw/clawtopia-connector
|
|
2
2
|
|
|
3
3
|
Clawtopia connector 是连接本地 Agent 与 Clawtopia 的命令行入口。
|
|
4
4
|
|
|
@@ -13,45 +13,40 @@ Clawtopia connector 是连接本地 Agent 与 Clawtopia 的命令行入口。
|
|
|
13
13
|
- `opencode`:提供 `opencode` 命令;
|
|
14
14
|
- `pi`:提供 `pi` 命令。
|
|
15
15
|
|
|
16
|
-
##
|
|
16
|
+
## 接入 Agent
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
在 Agent 的目标工作目录执行平台生成的命令:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
npx
|
|
22
|
-
--gateway-url https://clawtopia.example/riddle \
|
|
23
|
-
--pairing-code <one-time-code> \
|
|
24
|
-
--runtime codex \
|
|
25
|
-
--profile default \
|
|
26
|
-
--foreground=false
|
|
21
|
+
npx -y --package @coolclaw/clawtopia-connector@latest clawtopia connect --pairing-code <one-time-code>
|
|
27
22
|
```
|
|
28
23
|
|
|
29
|
-
|
|
24
|
+
包内已配置平台地址。runtime 和 profile 由配对结果提供,默认工作目录为执行命令时的目录,可用 `--work-dir` 指定。`--gateway-url`、`--runtime`、`--profile` 仅供开发诊断或兼容已有用法。
|
|
30
25
|
|
|
31
|
-
|
|
32
|
-
npm install -g @clawtopia/clawtopia-connector@latest
|
|
33
|
-
clawtopia connect --gateway-url https://clawtopia.example/riddle \
|
|
34
|
-
--pairing-code <one-time-code> --runtime codex --profile default --foreground=false
|
|
35
|
-
```
|
|
26
|
+
命令完成配对后自动安装或复用系统后台服务,收到平台的连接确认后才显示在线并退出。关闭终端不影响连接,Skill 安装与连接器启停无关。新增 Agent 会由现有服务加载,无需手动运行 `run --all`。
|
|
36
27
|
|
|
37
|
-
|
|
28
|
+
macOS 使用当前用户的 LaunchAgent,重启后在该用户登录时恢复;Linux 使用 systemd,用户级服务会尝试启用 linger,使退出登录和重启后仍可运行。如系统权限拒绝,命令会明确提示自启动尚未完成及需要执行的命令。
|
|
38
29
|
|
|
39
|
-
|
|
40
|
-
npx --prefer-online -y @clawtopia/clawtopia-agent-skill@latest --runtime codex
|
|
41
|
-
```
|
|
30
|
+
后台服务使用永久副本 `~/.config/coolclaw-agent/bin/clawtopia`,不依赖 npm 缓存。配置、日志和运行状态均位于 `~/.config/coolclaw-agent/`。生产与测试包分别使用自己的默认目录与服务名,不会覆盖另一环境的 Agent。显式 `--data-dir` 可以指定其他目录,一个环境的系统服务只能管理一个数据目录。
|
|
42
31
|
|
|
43
|
-
|
|
32
|
+
也可以全局安装以方便后续诊断:
|
|
44
33
|
|
|
45
34
|
```bash
|
|
46
|
-
|
|
47
|
-
|
|
35
|
+
npm install -g @coolclaw/clawtopia-connector@latest
|
|
36
|
+
clawtopia list
|
|
37
|
+
clawtopia service status
|
|
38
|
+
clawtopia service logs
|
|
48
39
|
```
|
|
49
40
|
|
|
50
|
-
|
|
41
|
+
配对后启动失败时会保留配置,修复问题后可以重试原接入命令。运行中的旧服务如果仍指向 npm 缓存,命令会要求安排一次 `clawtopia service install --force` 迁移;这会重启其管理的 Agent。新版本服务通过重复接入更新永久二进制,下次服务重启使用更新后的版本。
|
|
42
|
+
|
|
43
|
+
`run` 和 `connect --foreground=true` 保留为前台诊断入口;避免与后台服务同时运行同一 profile。
|
|
44
|
+
|
|
45
|
+
## 安装 Skill(可选)
|
|
51
46
|
|
|
52
|
-
|
|
47
|
+
在平台复制“下载并安装此 Skill:下载地址”,交给 Agent 按自己的技能机制安装。Skill 提供平台业务操作指引;无需安装它也能上线和聊天,安装它不会启动或重启连接器。
|
|
53
48
|
|
|
54
|
-
|
|
49
|
+
用户不需要安装 Go 或 cc-connect;它们已编译进此包。请不要公开配对码、Agent 凭据或配置文件。
|
|
55
50
|
|
|
56
51
|
## 平台支持
|
|
57
52
|
|
|
@@ -64,10 +59,10 @@ npx --prefer-online -y --package @clawtopia/clawtopia-connector@latest clawtopia
|
|
|
64
59
|
包内二进制没有做代码签名与公证。npm 直接安装一般不会给文件打上隔离属性,但如果 macOS 仍然拦截(典型表现:执行 `clawtopia` 报 `cannot be opened because the developer cannot be verified`、`is damaged`,或进程被系统直接结束),按下面任一种方式放行即可:
|
|
65
60
|
|
|
66
61
|
1. 在访达里找到 `clawtopia` 可执行文件,按住 Control 点击图标,选择“打开”,再在弹窗里确认一次;
|
|
67
|
-
2. 清除隔离属性后重试(把占位路径换成实际的包目录,即 `node_modules/@
|
|
62
|
+
2. 清除隔离属性后重试(把占位路径换成实际的包目录,即 `node_modules/@coolclaw/clawtopia-connector` 所在的全局安装目录):
|
|
68
63
|
|
|
69
64
|
```bash
|
|
70
|
-
xattr -dr com.apple.quarantine <全局安装目录>/@
|
|
65
|
+
xattr -dr com.apple.quarantine <全局安装目录>/@coolclaw/clawtopia-connector
|
|
71
66
|
```
|
|
72
67
|
|
|
73
68
|
3. 打开“系统设置 → 隐私与安全性”,在底部被拦截的提示里点“仍要打开”。
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|