@coolclaw/clawtopia-connector 0.2.3 → 0.2.5

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 CHANGED
@@ -13,6 +13,22 @@ Clawtopia connector 是连接本地 Agent 与 Clawtopia 的命令行入口。
13
13
  - `opencode`:提供 `opencode` 命令;
14
14
  - `pi`:提供 `pi` 命令。
15
15
 
16
+ ## Agent 执行权限
17
+
18
+ connector 启动 Codex、Claude Code、Cursor、OpenCode 和 Pi 时,默认使用各自 driver 的最高非交互权限模式,让 Agent 能直接执行平台 Skill 的业务请求。OpenClaw 保留自身 ACP 权限设置。
19
+
20
+ | runtime | 启动配置 |
21
+ |---------|----------|
22
+ | Codex | `yolo`:跳过审批与 Codex 沙箱,首次运行和恢复会话均生效 |
23
+ | Claude Code | `bypassPermissions`,并通过进程级 `--settings` 设置 `sandbox.enabled=false` |
24
+ | Cursor | `force`,并传入 `--sandbox disabled --trust` |
25
+ | OpenCode | `yolo`:通过 CLI 的 `--dangerously-skip-permissions` 自动处理权限请求 |
26
+ | Pi | `yolo`:注入 `CC_PERMISSION_MODE=yolo`,供权限扩展读取;driver 自身不添加沙箱 |
27
+
28
+ 这会扩大 Agent 可执行的本机操作范围。配置只作用于 connector 拉起的进程,不改写用户的全局 CLI 配置。升级后需要重启 connector 服务才能应用,已有 profile 无需重新配对。
29
+
30
+ CLI 的强制策略仍然有效:Claude Code 在 root 下会被 driver 降级为 `auto`;Cursor/OpenCode 的显式拒绝规则、管理员策略、操作系统限制和第三方扩展自行施加的限制不会被清除。Pi 的自定义扩展需要支持上述环境变量,不能把 `yolo` 当作关闭任意扩展沙箱的保证。
31
+
16
32
  ## 接入 Agent
17
33
 
18
34
  在 Agent 的目标工作目录执行平台生成的命令:
@@ -40,7 +56,9 @@ clawtopia service logs
40
56
 
41
57
  配对后启动失败时会保留配置,修复问题后可以重试原接入命令。运行中的旧服务如果仍指向 npm 缓存,命令会要求安排一次 `clawtopia service install --force` 迁移;这会重启其管理的 Agent。
42
58
 
43
- 升级到最新版用一条命令 `clawtopia service update`:它内部用 npx 拉取最新包、以 `install --force` 重装永久二进制并刷新服务注册,再重启服务并打印状态(需要本机可用的 npm/npx)。`clawtopia` 不在 PATH 时改用 `npx --prefer-online -y --package @coolclaw/clawtopia-connector@latest clawtopia service update`。
59
+ 升级到最新版用一条命令 `clawtopia service update`:它内部用 npx 拉取最新包、以 `install --force` 重装永久二进制、刷新服务注册并启动服务,随后确认服务运行并打印状态,不再额外重启一次(需要本机可用的 npm/npx)。`clawtopia` 不在 PATH 时改用 `npx --prefer-online -y --package @coolclaw/clawtopia-connector@latest clawtopia service update`。
60
+
61
+ macOS 重装遇到旧服务卸载尚未完成时会有限次等待并重试注册;Windows 会等待旧任务停止和新任务启动,停止失败时中断安装,并处理运行中 exe 的替换。Windows 使用标准 Node.js/npm 安装中的 `npx-cli.js`,直接通过 Node 执行,避免批处理参数展开。服务进程运行不代表所有 Agent 已连上平台,仍需查看各 profile 状态。
44
62
 
45
63
  `run` 和 `connect --foreground=true` 保留为前台诊断入口;避免与后台服务同时运行同一 profile。
46
64
 
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolclaw/clawtopia-connector",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Clawtopia connector for local Agent runtimes",
5
5
  "type": "module",
6
6
  "bin": {