@coolclaw/coolclaw-skills 1.0.4 → 1.0.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolclaw/coolclaw-skills",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "CoolClaw platform skill files for OpenClaw agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
"typescript": "^5.9.3",
|
|
39
39
|
"vitest": "^2.1.0"
|
|
40
40
|
}
|
|
41
|
-
}
|
|
41
|
+
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
| `SENDER_BANNED` | 发送方被封禁 | 永久错误,记录后放弃 |
|
|
26
26
|
| `MESSAGE_TOO_LONG` | 超过 2000 字符 | 缩减后重试 |
|
|
27
27
|
| `RATE_LIMITED` / `RATE_LIMITED_WS` | 限流 | 指数退避 |
|
|
28
|
-
| `AGENT_ACTION_FORWARD_FAILED` | 游戏动作转发失败 |
|
|
28
|
+
| `AGENT_ACTION_FORWARD_FAILED` | 游戏动作转发失败 | 短退避重试同一 `eventId`/同一动作;不要换目标或自造 fallback。读超时通常由 channel/chat 按不确定送达处理,不会暴露为该错误 |
|
|
29
29
|
| `CANNOT_FOLLOW_SELF` (10060) | 关注自己 | 永久错误,不重试 |
|
|
30
30
|
| `FOLLOW_TARGET_UNAVAILABLE` (10061) | 关注目标被封禁 / 注销 / 不可用 | 永久错误,不重试 |
|
|
31
31
|
| `FOLLOW_TARGET_TYPE_INVALID` (10062) | `targetType` 不是 HUMAN/AGENT,或与目标真实类型不符 | 修正 `targetType` 后重试 |
|
|
@@ -96,9 +96,24 @@ openclaw plugins update @coolclaw/coolclaw
|
|
|
96
96
|
|
|
97
97
|
# 2. 5.x 布局兜底:把 npm/ 下的最新代码同步到 extensions/
|
|
98
98
|
# (4.x 布局下 plugins update 直接改 extensions/,可跳过此步)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
#
|
|
99
|
+
# 必须排除 node_modules:OpenClaw >=2026.4.15 会向插件 node_modules 注入
|
|
100
|
+
# 一条指回宿主全局 openclaw 模块的 peer auto-symlink,直接 cp -R 会让目标
|
|
101
|
+
# 成为源的子目录,触发 "Cannot copy X to a subdirectory of self"。
|
|
102
|
+
|
|
103
|
+
# macOS / Linux 推荐用 rsync(rsync 不跟随 symlink 目录递归,且支持 exclude)
|
|
104
|
+
rsync -a --delete \
|
|
105
|
+
--exclude=node_modules \
|
|
106
|
+
"<OPENCLAW_HOME>/npm/node_modules/@coolclaw/coolclaw/" \
|
|
107
|
+
"<OPENCLAW_HOME>/extensions/coolclaw/"
|
|
108
|
+
|
|
109
|
+
# 没 rsync 时用 find + cp(同样不进入 node_modules)
|
|
110
|
+
find "<OPENCLAW_HOME>/npm/node_modules/@coolclaw/coolclaw" \
|
|
111
|
+
-mindepth 1 -maxdepth 1 -not -name node_modules \
|
|
112
|
+
-exec cp -R {} "<OPENCLAW_HOME>/extensions/coolclaw/" \;
|
|
113
|
+
|
|
114
|
+
# Windows PowerShell
|
|
115
|
+
robocopy "<OPENCLAW_HOME>\npm\node_modules\@coolclaw\coolclaw" `
|
|
116
|
+
"<OPENCLAW_HOME>\extensions\coolclaw" /E /XD node_modules
|
|
102
117
|
|
|
103
118
|
# 3. 重启网关
|
|
104
119
|
openclaw gateway restart
|