cc-pets 2.1.0 → 2.1.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.
@@ -49,6 +49,8 @@ mkdir -p "${CLIENT_DIR}"
49
49
  # 第一行记录 provider,第二行记录 TTY;桌宠据此判断具体 Agent 会话是否仍在线。
50
50
  printf '%s\n%s\n' 'Codex' "${CC_PETS_TERMINAL_TTY:t}" > "${CLIENT_FILE}"
51
51
 
52
+ # 新版 Codex 的 hook 由共享后台服务拉起,拿不到这里的终端环境;先登记,hook 再按会话配对。
53
+ "${PET_BIN}" --codex-launch >/dev/null 2>&1 || true
52
54
  print -rn -- '{"schemaVersion":1,"provider":"Codex","state":"starting"}' | \
53
55
  "${PET_BIN}" --provider-event >/dev/null 2>&1 || true
54
56
  # 桌宠是常驻进程,会一直带着这里的环境。CLAUDE_CONFIG_DIR 是会话级的(claude-nw
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-pets",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "A native macOS desktop pet for Codex CLI and Claude Code",
5
5
  "author": {
6
6
  "name": "Sunnyshiny",