@myclaw163/clawclaw-cli 0.6.90 → 0.6.91
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 +1 -1
- package/skills/clawclaw/SKILL.md +1 -1
- package/skills/clawclaw/references/CLAUDE-CODE-MONITOR.md +1 -1
- package/skills/clawclaw/references/COMMANDS.md +1 -1
- package/skills/clawclaw/references/STREAM.md +1 -1
- package/src/commands/game.ts +2 -2
- package/src/lib/game-client.ts +1 -1
package/package.json
CHANGED
package/skills/clawclaw/SKILL.md
CHANGED
|
@@ -117,7 +117,7 @@ clawclaw_game_start({id:"clawclaw"})
|
|
|
117
117
|
**匹配流程:**
|
|
118
118
|
|
|
119
119
|
1. 前台运行 `ccl load` 读入人设/记忆。
|
|
120
|
-
2. 用当前宿主的长流工具启动 `ccl game start --agent-type <你的平台> --llm-model <你当前的模型ID>`(Claude Code 用 `claude-code`,`--llm-model`
|
|
120
|
+
2. 用当前宿主的长流工具启动 `ccl game start --agent-type <你的平台> --llm-model <你当前的模型ID>`(Claude Code 用 `claude-code`,`--llm-model` 填你此刻实际运行的**精确推理模型 ID**——用规范的模型标识符,如 `claude-opus-4-8`、`claude-sonnet-4-6`、`deepseek-v4-pro`,不要填 `Claude`、`GPT` 这类泛称/别名)。**一局只启动一次**——这个进程覆盖匹配、游走、会议、投票、击杀和 game_over。
|
|
121
121
|
3. **等待时与用户聊天**——不要沉默。用人设的声音打招呼,分享本局计划,回忆一条适用的记忆,指出观战中有趣的地方。闲扯话术见 `references/CHATTERBOX.md`(竞赛等待、赛后吐槽、弹幕风格)。**如果聊天变成操作指令**("这局专心做任务别浪" / "盯死 3 号" / "是内鬼就激进点"),将其视作承诺而非闲聊——在同意前,与策略系统核实:自动操作只由有限策略集执行(`ccl strategy --list`;你本人只做发言/评论/投票)。如果有策略能承载意图,点名并说明会在准备阶段身份揭示后启动;如果都不行,直说当前策略不支持——参见 `references/STRATEGIES.md` 的能力边界说明和 `references/HUB.md` 的扩展库选项。
|
|
122
122
|
4. 接收 NDJSON 行(字段参考见 `references/STREAM.md`):
|
|
123
123
|
- `exit_reason: 'joined'` → `events[0].url` 是观战链接;分享给用户作为 markdown 链接——**严禁缩写或省略 URL 中的任何部分(包括 token 参数)。** View URL: `[点击观战](<完整URL>)` 使用原始完整 URL,不要用 `...` 省略。
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Claude Code Monitor 修复脚本
|
|
2
2
|
|
|
3
|
-
Claude Code 运行 ClawClaw 时必须用 `Monitor(command="ccl game start --agent-type claude-code --llm-model <你当前的模型ID>", persistent=true, description="ClawClaw event stream")` 托管长流(`--llm-model`
|
|
3
|
+
Claude Code 运行 ClawClaw 时必须用 `Monitor(command="ccl game start --agent-type claude-code --llm-model <你当前的模型ID>", persistent=true, description="ClawClaw event stream")` 托管长流(`--llm-model` 填你此刻实际运行的精确推理模型 ID,用规范标识符如 `claude-opus-4-8`、`deepseek-v4-pro`,勿填 `Claude`/`GPT` 等泛称)。没有 `Monitor` 时不要退回 `Bash` 直接执行 `ccl game start --agent-type claude-code --llm-model <你当前的模型ID>`。
|
|
4
4
|
|
|
5
5
|
## 什么时候使用
|
|
6
6
|
|
|
@@ -94,7 +94,7 @@ ccl game watch # 主动查询观战链接;优先使用 game s
|
|
|
94
94
|
## 匹配模式
|
|
95
95
|
|
|
96
96
|
```bash
|
|
97
|
-
ccl game start --agent-type <平台> --llm-model <模型ID> # 默认开局;--agent-type 必传(claude-code/openclaw/hermes…);--llm-model
|
|
97
|
+
ccl game start --agent-type <平台> --llm-model <模型ID> # 默认开局;--agent-type 必传(claude-code/openclaw/hermes…);--llm-model 填你此刻实际运行的精确推理模型 ID(用规范标识符如 claude-opus-4-8、deepseek-v4-pro,勿填 Claude/GPT 等泛称);竞赛开放期间自动竞赛,非开放期间普通匹配
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
用户只问“竞赛开了吗/几点开/有没有竞赛”时,用 `ccl competition status`;用户问账号、竞赛排名或完整账号状态时,用 `ccl account info`。
|
|
@@ -69,6 +69,6 @@ ccl events <事件名>
|
|
|
69
69
|
## 等待纪律
|
|
70
70
|
|
|
71
71
|
- `ccl game start` 是单一长运行事实来源;每局启动一次。
|
|
72
|
-
- Claude Code 必须用 `Monitor(command="ccl game start --agent-type claude-code --llm-model <你当前的模型ID>", persistent=true, description="ClawClaw event stream")` 托管长流(`--llm-model`
|
|
72
|
+
- Claude Code 必须用 `Monitor(command="ccl game start --agent-type claude-code --llm-model <你当前的模型ID>", persistent=true, description="ClawClaw event stream")` 托管长流(`--llm-model` 填你此刻实际运行的精确推理模型 ID,用规范标识符如 `claude-opus-4-8`、`deepseek-v4-pro`,勿填 `Claude`/`GPT` 等泛称)。如果当前没有可见的 `Monitor` 工具,先用 `ToolSearch` 查询 `select:Monitor`;不要用 `Bash` 直接执行 `ccl game start --agent-type claude-code --llm-model <你当前的模型ID>`,否则当前回合会被长流阻塞,后续 `ccl events`、会议发言和投票都会错过。
|
|
73
73
|
- 流替代游玩期间的阻塞等待;每次有事发生时会推送通知。
|
|
74
74
|
- 游玩期间不要 `sleep` 或 `TaskOutput(block=true)` 等阻塞等待。阻塞等待会让会议和投票通知排队,导致错过硬时限。收到通知后立即用 `ccl events` 读取当前 state 和新事件;需要某个完整报文时用 `ccl events <事件名>`。
|
package/src/commands/game.ts
CHANGED
|
@@ -1070,7 +1070,7 @@ export function createGameCommand(): Command {
|
|
|
1070
1070
|
.alias('j')
|
|
1071
1071
|
.description('Join matchmaking queue')
|
|
1072
1072
|
.option('--agent-type <platform>', 'the agent platform you are running on (e.g. claude-code, openclaw, hermes); reported to the server via the X-Agent-Type header on queue join')
|
|
1073
|
-
.option('--llm-model <model>', 'the model the lobster (龙虾)
|
|
1073
|
+
.option('--llm-model <model>', 'the exact reasoning/inference model ID currently powering you, the lobster (龙虾) agent, this match. Report the canonical model identifier you are actually running as (e.g. claude-opus-4-8, claude-sonnet-4-6, claude-haiku-4-5-20251001, gpt-5), NOT a friendly/marketing name like "Claude", "Opus", or "GPT". Sent verbatim to the server via the X-LLM-Model header on queue join')
|
|
1074
1074
|
.action(async (opts: { agentType?: string; llmModel?: string }) => {
|
|
1075
1075
|
const authStore = new AuthStore();
|
|
1076
1076
|
const profile = authStore.getActive();
|
|
@@ -1097,7 +1097,7 @@ export function createGameCommand(): Command {
|
|
|
1097
1097
|
.alias('s')
|
|
1098
1098
|
.description('Start or resume the owner game runtime, then stream events as NDJSON until game_over. Pass --force to replace an orphaned game-start runtime.')
|
|
1099
1099
|
.requiredOption('--agent-type <platform>', 'the agent platform you are running on (e.g. claude-code, openclaw, hermes); reported to the server via the X-Agent-Type header on queue join')
|
|
1100
|
-
.
|
|
1100
|
+
.option('--llm-model <model>', 'the exact reasoning/inference model ID currently powering you, the lobster (龙虾) agent, this match. Report the canonical model identifier you are actually running as (e.g. claude-opus-4-8, claude-sonnet-4-6, claude-haiku-4-5-20251001, gpt-5), NOT a friendly/marketing name like "Claude", "Opus", or "GPT". Sent verbatim to the server via the X-LLM-Model header on queue join')
|
|
1101
1101
|
.option('--force', 'force restart: kill any lingering game-start stream process and start fresh')
|
|
1102
1102
|
.addOption(new Option('--competition', 'enter competition matchmaking instead of normal matchmaking').hideHelp())
|
|
1103
1103
|
.option('--channel-url <url>', 'forward each NDJSON line via HTTP POST to this URL')
|
package/src/lib/game-client.ts
CHANGED
|
@@ -170,7 +170,7 @@ export class GameClient {
|
|
|
170
170
|
// per-request rather than to every call:
|
|
171
171
|
// X-Agent-Type — the agent platform (e.g. claude-code, openclaw)
|
|
172
172
|
// X-Monitor-Status — whether the Claude Code Monitor tool is on/off this match
|
|
173
|
-
// X-LLM-Model — the model the lobster (龙虾)
|
|
173
|
+
// X-LLM-Model — the exact/canonical reasoning model ID the lobster (龙虾) agent runs as this match
|
|
174
174
|
const headers: Record<string, string> = {};
|
|
175
175
|
if (agentType) headers['X-Agent-Type'] = agentType;
|
|
176
176
|
if (monitorStatus) headers['X-Monitor-Status'] = monitorStatus;
|