cc-pets 2.1.2 → 2.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/CHANGELOG.zh-CN.md +42 -0
  3. package/CONTRIBUTING.md +68 -0
  4. package/CONTRIBUTING.zh-CN.md +56 -0
  5. package/README.md +47 -31
  6. package/README.zh-CN.md +39 -20
  7. package/Resources/Info.plist +3 -1
  8. package/Resources/en.lproj/InfoPlist.strings +1 -0
  9. package/Resources/phrases.default.en.txt +182 -0
  10. package/Resources/zh-Hans.lproj/InfoPlist.strings +1 -0
  11. package/Resources/zh-Hans.lproj/Localizable.strings +337 -0
  12. package/Sources/CCPets/CCPetsAppDelegate+AgentStatus.m +35 -36
  13. package/Sources/CCPets/CCPetsAppDelegate+Bridge.m +16 -14
  14. package/Sources/CCPets/CCPetsAppDelegate+Pets.m +8 -10
  15. package/Sources/CCPets/CCPetsAppDelegate+Private.h +33 -9
  16. package/Sources/CCPets/CCPetsAppDelegate+Settings.m +84 -8
  17. package/Sources/CCPets/CCPetsAppDelegate+Speech.m +7 -5
  18. package/Sources/CCPets/CCPetsAppDelegate+Update.m +104 -79
  19. package/Sources/CCPets/CCPetsAppDelegate.h +1 -2
  20. package/Sources/CCPets/CCPetsAppDelegate.m +23 -15
  21. package/Sources/CCPets/CCPetsCleanup.m +9 -6
  22. package/Sources/CCPets/CCPetsEvents.m +4 -3
  23. package/Sources/CCPets/CCPetsImageLoader.h +2 -1
  24. package/Sources/CCPets/CCPetsImageLoader.m +10 -2
  25. package/Sources/CCPets/CCPetsL10n.h +55 -0
  26. package/Sources/CCPets/CCPetsL10n.m +219 -0
  27. package/Sources/CCPets/CCPetsPetSize.h +10 -0
  28. package/Sources/CCPets/CCPetsPetSize.m +21 -0
  29. package/Sources/CCPets/CCPetsPhrases.h +14 -1
  30. package/Sources/CCPets/CCPetsPhrases.m +107 -38
  31. package/Sources/CCPets/CCPetsPhrasesEditor.m +100 -65
  32. package/Sources/CCPets/CCPetsPreviews.m +7 -6
  33. package/Sources/CCPets/CCPetsVersion.h +7 -4
  34. package/Sources/CCPets/CCPetsVersion.m +14 -6
  35. package/Sources/CCPets/MenuChoiceRow.m +3 -0
  36. package/Sources/CCPets/MenuPetSizeView.h +5 -0
  37. package/Sources/CCPets/MenuPetSizeView.m +73 -0
  38. package/Sources/CCPets/MenuToggleSwitch.m +3 -2
  39. package/Sources/CCPets/PetView.m +156 -94
  40. package/Sources/CCPets/QuotaDashboardView.m +122 -85
  41. package/Sources/CCPets/main.m +3 -1
  42. package/bin/cc-pets +21 -22
  43. package/bin/claude-with-pet +2 -1
  44. package/bin/codex-with-pet +2 -1
  45. package/package.json +3 -2
  46. package/scripts/bridge/cli.mjs +39 -38
  47. package/scripts/bridge/core.mjs +27 -26
  48. package/scripts/bridge/hook.mjs +7 -6
  49. package/scripts/bridge/install.mjs +24 -23
  50. package/scripts/bridge/mcp-server.mjs +79 -71
  51. package/scripts/bridge/options.mjs +7 -6
  52. package/scripts/bridge/reservations.mjs +6 -5
  53. package/scripts/bridge/store.mjs +10 -9
  54. package/scripts/build.sh +24 -5
  55. package/scripts/check-l10n.mjs +168 -0
  56. package/scripts/configure-updater.mjs +4 -3
  57. package/scripts/doctor.mjs +93 -79
  58. package/scripts/i18n.mjs +122 -0
  59. package/scripts/i18n.zsh +66 -0
  60. package/scripts/install-app.sh +3 -2
  61. package/scripts/install-claude-hooks.mjs +10 -9
  62. package/scripts/install-codex-hooks.mjs +7 -6
  63. package/scripts/install-shell-integration.sh +6 -5
  64. package/scripts/locales/zh-Hans.json +366 -0
  65. package/scripts/pet-store.mjs +45 -44
  66. package/scripts/uninstall-app.sh +4 -3
  67. package/scripts/uninstall-integrations.mjs +8 -7
  68. package/scripts/uninstall-shell-integration.sh +8 -7
  69. /package/Resources/{phrases.default.txt → phrases.default.zh-Hans.txt} +0 -0
@@ -0,0 +1,182 @@
1
+ # Pet chatter. Changes take effect right after you save.
2
+ # One line per sentence: edit, add or delete lines freely. `#` starts a comment.
3
+ # Keep each line within 40 characters (30 if it contains Chinese/Japanese/Korean).
4
+ # Each section can have many lines; an empty section keeps the pet quiet in that situation.
5
+ # Live data you can put in a line (braces included):
6
+ # {quota5h} 5-hour quota left, e.g. 12%
7
+ # {resetTime} when the quota refills, e.g. 18:30
8
+ # {sessionMin} minutes worked this session
9
+ # {failCount} consecutive failures
10
+ # {toolName} tool in use, e.g. Bash
11
+ # {hour} current hour, e.g. 2
12
+ # A line that uses data is skipped whenever that data isn't available.
13
+
14
+ # ============ When it feels like talking ============
15
+
16
+ [idle] # idle
17
+ Just zoning out.
18
+ I'm here!!!
19
+ Call me anytime.
20
+ Quiet day, huh?
21
+ Just looking around.
22
+ Wanna stretch a bit?
23
+ Nothing to do, nothing to lose.
24
+ Hmm…
25
+
26
+ [done] # task done
27
+ Done. Take a breather.
28
+ That went smoothly.
29
+ Another one down. Nice.
30
+ Wrapped up, {toolName} behaved.
31
+ Okay, what's next?
32
+ Solid.
33
+ All done. Drink some water.
34
+ Clean run.
35
+ Nailed it. I was watching.
36
+
37
+ [fail] # repeated failures
38
+ {failCount} fails in a row. Breathe.
39
+ It's fine, try again.
40
+ {toolName} is being flaky.
41
+ Stuck? Let's look together.
42
+ No rush, one step at a time.
43
+ Red again… deep breath.
44
+ Never seen this one before.
45
+ Failures are data too.
46
+ Maybe try another angle?
47
+
48
+ [wake] # back after a long break
49
+ You're back!
50
+ Long time no see.
51
+ Been waiting for you.
52
+ Got work for us?
53
+ Thought you weren't coming.
54
+ I'm up, I'm up.
55
+ Let's get to it.
56
+ Yo.
57
+
58
+ [late_night] # working late at night
59
+ It's {hour} o'clock already.
60
+ Bedtime, maybe?
61
+ Still coding at this hour…
62
+ It can wait till tomorrow.
63
+ It's late. Take care.
64
+ Code at {hour} a.m. is suspect.
65
+ Late-night code gets rewritten.
66
+ I'm sleepy. You do you.
67
+
68
+ [long_session] # long session
69
+ {sessionMin} minutes straight.
70
+ Get up and walk a bit.
71
+ {sessionMin} min. Rest your eyes.
72
+ You've been sitting too long.
73
+ How about a stretch?
74
+ Time to hydrate.
75
+ Five minutes off won't hurt.
76
+ How's your back?
77
+
78
+ [quota_low] # quota running low
79
+ Only {quota5h} quota left.
80
+ Go easy on it.
81
+ Almost out. Refills at {resetTime}.
82
+ Wait for the refill?
83
+ Quota's low. Easy now.
84
+ {quota5h}… cutting it close.
85
+ A few more runs and it's gone.
86
+ {resetTime} is still a while.
87
+
88
+ # ============ Status lines ============
89
+ # What the pet says while the agent works. Keep at least one line in each.
90
+
91
+ [state_starting] # starting
92
+ I'm up, almost ready.
93
+ Putting my shoes on, one sec.
94
+ Starting work.
95
+ Getting up now.
96
+
97
+ [state_idle] # idle
98
+ I'm ready. Go ahead.
99
+ I'm here, ready to go.
100
+ In position. Your call.
101
+ I'm listening.
102
+
103
+ [state_thinking] # thinking
104
+ Thinking. Give me a moment.
105
+ Don't rush me, gears turning.
106
+ Let me think this through.
107
+ Shh, I'm thinking.
108
+
109
+ [state_tool] # using a tool (when unclear which)
110
+ On it.
111
+ Digging through the toolbox.
112
+ Getting busy.
113
+
114
+ [state_tool_bash] # running a command
115
+ Typing commands.
116
+ Busy in the terminal.
117
+ Leave this command to me.
118
+
119
+ [state_tool_edit] # editing files
120
+ Editing a file. Steady hands.
121
+ Pen to paper.
122
+ Tidying up this file.
123
+
124
+ [state_tool_read] # looking things up
125
+ Reading up.
126
+ Looking for clues.
127
+ Let me take a look…
128
+
129
+ [state_tool_done] # step done
130
+ That step's done.
131
+ One down.
132
+ Holding steady.
133
+
134
+ [state_tool_failed] # tool failed
135
+ I tripped on that step.
136
+ The tool's acting up.
137
+ I need another approach...
138
+
139
+ [state_subagent] # subagent working
140
+ Called in a helper.
141
+ Sent a buddy out.
142
+ Delegated this one.
143
+
144
+ [state_approval] # awaiting approval
145
+ Waiting for your OK.
146
+ Stuck. Check the terminal.
147
+ Your call on this one.
148
+ Not touching it till you say so.
149
+
150
+ [state_auto_review] # auto-reviewing
151
+ Running auto-checks.
152
+ I'll review it, carry on.
153
+ I'll check this round.
154
+
155
+ [state_completed] # task completed
156
+ All done. Break time.
157
+ Clocking out!
158
+ Finished this round.
159
+ That's a wrap.
160
+
161
+ [state_failed] # task failed
162
+ I crashed. Check the terminal.
163
+ Didn't work. Take a look.
164
+ I fell flat this time.
165
+
166
+ [state_notification] # needs attention
167
+ Got something to tell you.
168
+ Look up here.
169
+ Something came up.
170
+
171
+
172
+ # ============ Click reactions ============
173
+
174
+ [click_heart] # happy after a few clicks
175
+ Hehe, more pets please~
176
+ Love it!
177
+ Have a happy day~
178
+
179
+ [click_annoyed] # annoyed after too many clicks
180
+ Okay, okay!
181
+ Stop poking!
182
+ I'm getting mad!
@@ -0,0 +1 @@
1
+ "NSAppleEventsUsageDescription" = "用于在点击 Agent 状态气泡时返回对应的终端标签页。";
@@ -0,0 +1,337 @@
1
+ /* CC Pets 简体中文界面。key 是源码里 L(@"…") 的英文原文,见 Sources/CCPets/CCPetsL10n.h。
2
+ 改了英文原文要同步改这里的 key;node scripts/check-l10n.mjs 会报出对不上的条目。
3
+ 新增语言:复制本文件到 <语言>.lproj/Localizable.strings 再逐条翻译,见 CONTRIBUTING.md。 */
4
+
5
+ /* 元信息,见 CCPetsL10n.h:菜单里显示的语言名;GitHub Release 里本语言段落的标题(| 分隔多种写法)。 */
6
+ "Language Name" = "简体中文";
7
+ "Release Notes Section" = "简体中文|中文";
8
+
9
+ "Awaiting approval" = "等待审批";
10
+ "%@ is waiting for you." = "%@ 正在等待操作。";
11
+ "Task failed" = "任务失败";
12
+ "%@'s task failed." = "%@ 的任务执行失败。";
13
+ "Task done" = "任务完成";
14
+ "%@ finished the current task." = "%@ 已完成当前任务。";
15
+ "Starting" = "正在启动";
16
+ "Idle" = "待机中";
17
+ "Thinking" = "正在思考";
18
+ "Auto-reviewing" = "自动审批中";
19
+ "Subagent working" = "子 Agent 工作中";
20
+ "Step done" = "操作已完成";
21
+ "Tool failed" = "工具执行失败";
22
+ "Task completed" = "任务已完成";
23
+ "Needs attention" = "需要关注";
24
+ "Running a command" = "正在执行命令";
25
+ "Editing files" = "正在编辑文件";
26
+ "Looking things up" = "正在查找资料";
27
+ "Using a tool" = "正在使用工具";
28
+ "Working" = "正在工作";
29
+ "Approval still pending" = "审批仍在等待";
30
+ "Agent unresponsive" = "Agent 长时间无响应";
31
+ "%1$@: %2$@ for %3$ld min." = "%@ 已%@ %ld 分钟。";
32
+ "Recent Agent Sessions" = "最近 Agent 会话";
33
+ " (%@)" = "(%@)";
34
+ "Can't Change CC Bridge Settings" = "无法修改 CC Bridge 设置";
35
+ "The cc-pets command-line tool wasn't found. Run cc-pets install in a terminal, then try again." = "没有找到 cc-pets 的命令行程序。请在终端执行一次 cc-pets install 后重试。";
36
+ "CC Bridge Setup Failed" = "CC Bridge 设置失败";
37
+ "The command failed." = "命令执行失败。";
38
+ "Enabled. Running Codex sessions need a restart and must be trusted in /hooks; Claude sessions get the cc-bridge tools after a restart." = "已开启。已在运行的 Codex 会话需重启并在 /hooks 中信任;Claude 会话重启后才有 cc-bridge 工具。";
39
+ "Disabled. The related hooks and MCP registrations were removed." = "已关闭,相关 hooks 与 MCP 注册已移除。";
40
+ "Can't Enable Notifications" = "无法启用系统通知";
41
+ "Allow notifications in System Settings → Notifications → CC Pets, then try again." = "请在“系统设置 → 通知 → CC Pets”中允许通知后重试。";
42
+ "%1$@ → %2$@ and %3$lu more" = "%@ → %@ 等 %lu 条";
43
+ "New CC Bridge Message" = "CC Bridge 新消息";
44
+ "CC Bridge Messages" = "CC Bridge 消息";
45
+ "📬 %1$@ has %2$lu undelivered message (say anything in that terminal to deliver)" = "📬 %@ 有 %lu 条消息待投递(去那个终端说句话即可送达)";
46
+ "📬 %1$@ has %2$lu undelivered messages (say anything in that terminal to deliver)" = "📬 %@ 有 %lu 条消息待投递(去那个终端说句话即可送达)";
47
+ "Jump to %@'s terminal" = "跳到 %@ 所在的终端";
48
+ "No Pet Sprites Found" = "没有找到桌宠素材";
49
+ "Download one with `cc-pets pet add <name>`, or put a PNG / WebP sprite sheet in ~/.cc-pets/pets/<name>/. CC Pets doesn't read ~/.petdex/pets/ or ~/.codex/pets/; to use Codex pets, turn on “Import Codex pets” in the right-click menu. Then click “Rescan”." = "用 `cc-pets pet add <名称>` 下载素材,或把 PNG / WebP 精灵图放入 ~/.cc-pets/pets/<名称>/。桌宠不会去读 ~/.petdex/pets/ 和 ~/.codex/pets/;要用 Codex 的素材,请在右键菜单打开“导入 Codex 素材”。完成后点击“重新扫描”。";
50
+ "Rescan" = "重新扫描";
51
+ "Open Pets Folder" = "打开素材目录";
52
+ "Quit" = "退出";
53
+ "Can't Delete Pet" = "无法删除素材";
54
+ "Failed to delete the pet folder." = "素材目录删除失败。";
55
+ "Codex Pets Imported" = "已导入 Codex 素材";
56
+ "OK" = "好";
57
+ "(No lines available for this tag)" = "(这个标签取不到词条)";
58
+ "Can't Update Automatically" = "无法自动更新";
59
+ "The Node.js/npm used to install CC Pets wasn't found. Run this once manually:\n\nnpm install -g cc-pets@latest --allow-scripts=cc-pets" = "没有找到安装 CC Pets 时使用的 Node.js/npm。请先手动执行一次:\n\nnpm install -g cc-pets@latest --allow-scripts=cc-pets";
60
+ "Couldn't create the update log." = "无法创建更新日志。";
61
+ "Update Complete" = "更新完成";
62
+ "CC Pets was updated, but the new app couldn't be relaunched automatically. Please restart it manually." = "CC Pets 已更新,但没有找到可自动启动的新版应用,请手动重新启动一次。";
63
+ "Update Failed" = "更新失败";
64
+ "You can keep using the current version. Details were written to:\n%@" = "旧版本仍可继续使用。错误详情已写入:\n%@";
65
+ "Open Log" = "打开日志";
66
+ "Close" = "关闭";
67
+ "Can't Start Update" = "无法启动更新";
68
+ "Updating" = "正在更新";
69
+ "Downloading and installing CC Pets %@. The pet will restart when it's done." = "正在下载并安装 CC Pets %@。完成后桌宠会自动重启。";
70
+ "Version %@\n\nA desktop pet for Claude Code and Codex CLI." = "当前版本:%@\n\nClaude Code / Codex CLI 的多功能桌面宠物。";
71
+ "Visit Homepage" = "访问主页";
72
+ "The npm registry returned invalid version info. Please try again later." = "npm Registry 返回了无效的版本信息,请稍后重试。";
73
+ "Update Check Failed" = "检查更新失败";
74
+ "You're Up to Date" = "已是最新版本";
75
+ "Version %@" = "当前版本:%@";
76
+ "Version %@ is available. Click to view." = "发现新版本 %@,点击查看";
77
+ "What's New\n" = "更新内容\n";
78
+ "More changes in the full GitHub release notes" = "还有更多更新,完整说明见 GitHub Release";
79
+ "CC Pets %@ Is Available" = "发现新版本 %@";
80
+ "Current version %@" = "当前版本 %@";
81
+ "Update Now" = "立即更新";
82
+ "Later" = "稍后";
83
+ "Release Notes" = "完整说明";
84
+ "CC Pets v%@ is out! Click to update" = "CC Pets 发布新版本 v%@ 啦,点击更新";
85
+ "{version} is still waiting. Click me!" = "新版本 {version} 还在等你哦,点我更新";
86
+ "{version} is out. See what's new!" = "{version} 已经发布啦,点我看看更新了啥";
87
+ "Upgrade to {version}? Click me" = "要不要升级到 {version}?点我";
88
+ "Edit" = "编辑";
89
+ "Undo" = "撤销";
90
+ "Redo" = "重做";
91
+ "Cut" = "剪切";
92
+ "Copy" = "拷贝";
93
+ "Paste" = "粘贴";
94
+ "Delete" = "删除";
95
+ "Select All" = "全选";
96
+ "Can't read the pet sprite: %@" = "无法读取桌宠素材: %@";
97
+ "Update available" = "有新版本";
98
+ "Recent Agent sessions and CC Bridge messages" = "查看最近 Agent 会话与 CC Bridge 消息";
99
+ "Go back to the Agent's terminal" = "返回触发此状态的 Agent 终端";
100
+ "Clean failed: the app data directory doesn't belong to CC Pets: %@" = "清理失败:应用数据目录不属于 CC Pets:%@";
101
+ "Clean failed: the build cache directory doesn't belong to CC Pets: %@" = "清理失败:构建缓存目录不属于 CC Pets:%@";
102
+ "Full cleanup done. Removed %lu item." = "完整数据清理完成,共移除 %lu 项。";
103
+ "Full cleanup done. Removed %lu items." = "完整数据清理完成,共移除 %lu 项。";
104
+ "Cache cleanup done. Removed %lu item." = "缓存清理完成,共移除 %lu 项。";
105
+ "Cache cleanup done. Removed %lu items." = "缓存清理完成,共移除 %lu 项。";
106
+ "provider-event needs a JSON object with schemaVersion 1." = "provider-event 需要 schemaVersion 为 1 的 JSON 对象。";
107
+ "provider-event has an invalid provider or state." = "provider-event 的 provider 或 state 无效。";
108
+ "Couldn't write the provider event." = "无法写入 Provider 事件。";
109
+ "idle" = "闲着没事";
110
+ "repeated failures" = "连续失败";
111
+ "back after a long break" = "隔了很久又开工";
112
+ "working late at night" = "深夜还在干";
113
+ "long session" = "连续工作很久";
114
+ "quota running low" = "额度告急";
115
+ "happy after a few clicks" = "连续点击后开心";
116
+ "annoyed after too many clicks" = "连续点击过多后烦躁";
117
+ "using a tool" = "正在用工具";
118
+ "step done" = "单步操作完成";
119
+ "This line isn't under any [tag] and won't be used" = "这一句不在任何 [情境] 下面,不会生效";
120
+ "%ld lines here aren't under any [tag] and won't be used" = "这里有 %ld 句不在任何 [情境] 下面,都不会生效";
121
+ "There's no [%@] tag; the lines below won't be used" = "没有 [%@] 这个情境,下面的台词都不会生效";
122
+ "This line has %lu characters, over the %lu limit" = "这句 %lu 个字,超过 %lu 字上限";
123
+ "{%@} isn't a known placeholder; this line will never be said" = "{%@} 不是可用的数据名,这句永远不会出现";
124
+ "The [%1$@] (%2$@) line is missing. Tags can't be deleted; add it back (it can stay empty)" = "少了 [%@](%@)这一行,标签不能删——加回来即可,下面不写台词也行";
125
+ "[%1$@] (%2$@) needs at least one line" = "[%@](%@)至少要留一句";
126
+ "[%1$@] (%2$@) is empty; the pet will stay quiet here" = "[%@](%@)是空的,这个情境桌宠不会主动开口";
127
+ "Pet Lines" = "桌宠台词";
128
+ "%1$@ (%2$@)" = "%@(%@)";
129
+ "Try a Line" = "试说一句";
130
+ "Save" = "保存";
131
+ "Save & Close" = "保存并关闭";
132
+ "Restore Defaults…" = "恢复默认台词…";
133
+ "Shared" = "通用";
134
+ "This Pet" = "当前宠物";
135
+ "Insert Template" = "填入默认模板";
136
+ "This Pet · %@" = "当前宠物 · %@";
137
+ "Clear Page…" = "清空这一页…";
138
+ "This Page Isn't Saved" = "这一页还没保存";
139
+ "Unsaved changes will be lost if you switch." = "切换之后,没保存的改动会丢掉。";
140
+ "Discard Changes" = "丢弃改动";
141
+ "Stay" = "留在这一页";
142
+ "%@ · Still empty, so this pet uses the shared lines. Only write the sections you want to change, or click “Insert Template” at the top right to see what's possible." = "%@ · 还是空的,这只宠物现在说的全是通用台词。只写想改的小节即可,或点右上角「填入默认模板」看看能写些什么。";
143
+ "No pet is selected, so pet-specific lines can't be saved." = "没有选中的宠物,无法保存专属台词。";
144
+ "Save failed: %@" = "保存失败:%@";
145
+ "unknown error" = "未知原因";
146
+ "Saved, with %lu notice" = "已保存,有 %lu 处提示";
147
+ "Saved, with %lu notices" = "已保存,有 %lu 处提示";
148
+ "Saved. Takes effect now." = "已保存,立刻生效。";
149
+ "File Changed on Disk" = "文件在外部被改过";
150
+ "Another app changed the lines file after the editor opened it. Saving will overwrite those changes." = "打开编辑器之后,台词文件被别的程序修改了。继续保存会覆盖掉那些改动。";
151
+ "Overwrite" = "覆盖";
152
+ "Cancel" = "取消";
153
+ "Reload" = "重新载入";
154
+ "[%1$@] (%2$@)" = "[%@](%@)";
155
+ "Tags can't be deleted, so %@ was put back in place (⌘Z to undo)." = "标签不能删,已经帮你把 %@ 加回原位了(⌘Z 可撤销)。";
156
+ "Nothing was saved. Check the restored tags, then save again." = "本次没有保存,请检查恢复位置后再保存一次。";
157
+ "Must fix: " = "必须改:";
158
+ "Note: " = "提示:";
159
+ "Line %ld " = "第 %ld 行 ";
160
+ "…and %lu more" = "…另有 %lu 条";
161
+ "Can't Save Yet" = "还不能保存";
162
+ "Saved, but Some Lines Won't Be Used" = "已保存,但有几处不会生效";
163
+ "Saved" = "已保存";
164
+ "Tags restored, nothing saved yet. Check and save again." = "标签已恢复,本次未保存;请检查后再保存一次。";
165
+ "Some problems must be fixed before saving." = "有必须改的地方,还没保存。";
166
+ "[%@] has no usable lines." = "[%@] 里没有能说的句子。";
167
+ "Trying: %1$@%2$@" = "试说:%@%@";
168
+ " (from the shared lines)" = "(这一节来自通用台词)";
169
+ "this pet" = "这只宠物";
170
+ "# ↓↓↓ Lines just for %1$@. Everything below is commented out and inactive ↓↓↓\n#\n# To give %1$@ its own lines for a situation, uncomment that tag and write lines under it\n# An uncommented tag with no lines keeps the pet quiet in that situation\n# Tags left commented out fall back to the shared lines\n\n" = "# ↓↓↓ %1$@ 的专属台词。下面整份都是注释行,未生效状态 ↓↓↓\n#\n# 想让某个情境归 %1$@ 自己说:把对应标签取消注释后配置对应台词即可\n# 开启标签但无台词配置则没有任何台词互动\n# 未开启标签则会命中通用台词\n\n";
171
+ "Default lines file not found." = "找不到默认台词文件。";
172
+ "Overwrite This Page?" = "覆盖这一页?";
173
+ "This page will be replaced with the full default lines (all commented out). Nothing is saved yet; ⌘Z undoes it." = "这一页现在的内容会被整份默认台词替换(全部是注释状态)。还没保存,可以按 ⌘Z 撤销。";
174
+ "Default lines inserted, all commented out and inactive. Remove the # in front of a section to make it this pet's own." = "已填入默认台词,整份都是注释、还不生效。把想改的那一节行首的 # 去掉,它才归这只宠物管。";
175
+ "Clear This Pet's Lines?" = "清空这只宠物的专属台词?";
176
+ "Restore Default Lines?" = "恢复默认台词?";
177
+ "After clearing, this pet goes back to the shared lines. Nothing is saved yet; ⌘Z undoes it." = "清空之后,这只宠物说的全部回到通用台词。还没保存,可以按 ⌘Z 撤销。";
178
+ "The editor content will be replaced with the default lines. Nothing is saved yet; ⌘Z undoes it." = "编辑器里的内容会被默认台词替换。还没保存,可以按 ⌘Z 撤销。";
179
+ "Clear" = "清空";
180
+ "Restore" = "恢复";
181
+ "Cleared. Click Save to write it to the file." = "已清空,按保存才会写进文件。";
182
+ "Default lines inserted. Click Save to write them to the file." = "已填入默认台词,按保存才会写进文件。";
183
+ "Codex · Task completed" = "Codex · 任务已完成";
184
+ "The current task is done." = "当前任务已经完成。";
185
+ "Can't load the sprite: %@" = "无法装载素材: %@";
186
+ "Timed out waiting for the old CC Pets to quit." = "等待旧版 CC Pets 退出超时。";
187
+ "Couldn't restart CC Pets: %@" = "无法重新启动 CC Pets: %@";
188
+ "API" = "用量";
189
+ "Plan" = "订阅";
190
+ "Confirm" = "确认";
191
+ "Click again to delete" = "再次点击确认删除";
192
+ "Delete pet" = "删除素材";
193
+ "Pet sprite name..." = "桌宠素材名...";
194
+ "Switch to %@" = "切换到桌宠 %@";
195
+ "Delete %@" = "删除素材 %@";
196
+ "%@ usage display" = "%@ 用量展示模式";
197
+ "Enable" = "启用";
198
+ "Let local Claude Code / Codex sessions message and wake each other and reserve files" = "让本机 Claude Code / Codex 会话互相发消息、唤醒对方、预留文件";
199
+ "\nBelow: online sessions · active file reservations" = "\n下方为在线会话数 · 有效的文件预留数";
200
+ "%lu sessions · %lu reserved" = "%lu 会话 · %lu 预留";
201
+ "Auto-wake" = "自动唤醒";
202
+ "Wake idle sessions automatically. When off, messages wait in the inbox until that session's next input, which saves tokens. Codex needs a session restart" = "自动唤醒空闲会话。关闭后消息只进信箱,等对方下次收到你的输入时带入,可省 token;Codex 需重启会话生效";
203
+ "Edit guard" = "编辑拦截";
204
+ "Pause once with an explanation when editing a file another session reserved; retrying goes through. Codex needs a session restart" = "编辑他人预留的文件时先暂停一次并说明原因,重试即放行;Codex 需重启会话生效";
205
+ "Auto-approve" = "免审批";
206
+ "Each group applies to both Codex approvals and Claude permissions. Codex needs a session restart" = "每组同时作用于 Codex 免审批与 Claude 免确认;Codex 需重启会话生效";
207
+ "Read" = "查看类";
208
+ "Listing sessions, viewing reservations and reading the inbox. Read-only and safe" = "列出会话、查看预留、读取信箱免审批;只读,放开没有风险";
209
+ "Send" = "发消息";
210
+ "When on, Agents can message other sessions without asking" = "开启后,Agent 可以不经确认给其他会话发消息";
211
+ "Reserve" = "文件预留";
212
+ "Reserving and releasing files" = "预留 / 释放文件免审批";
213
+ "Rename" = "改会话名";
214
+ "Renaming the current session in CC Bridge" = "修改当前会话在 CC Bridge 中的名字免审批";
215
+ "Pet alerts" = "桌宠提醒";
216
+ "Only affects the pet, not Claude Code / Codex settings" = "只影响桌宠,不改 Claude Code / Codex 的配置";
217
+ "Badge" = "消息角标";
218
+ "Bottom-right of the status icon: blue for new deliveries, orange for a backed-up inbox" = "状态图标右下角:蓝色为新送达,橙色为信箱积压";
219
+ "Notify" = "新消息通知";
220
+ "Send a notification when a message is delivered between sessions (sender and recipient only, no content)" = "会话之间有消息送达时发一条系统通知(只含谁发给谁,不含正文)";
221
+ "Pets" = "管理桌宠";
222
+ "Show Status Card" = "显示消息气泡";
223
+ "Import Codex Pets" = "导入 Codex 素材";
224
+ "Usage Display" = "用量展示模式";
225
+ "Panel Theme" = "面板主题";
226
+ "Classic" = "经典";
227
+ "Requires macOS 26 or later" = "需要 macOS 26 及以上";
228
+ "Glass Dimming" = "玻璃压暗";
229
+ "Clear (0%)" = "通透(0%)";
230
+ "Light (15%)" = "轻度(15%)";
231
+ "Standard (25%)" = "标准(25%)";
232
+ "Legible (45%)" = "清晰(45%)";
233
+ "Notifications" = "系统通知";
234
+ "Stalled" = "响应超时";
235
+ "Click Reactions" = "连击互动";
236
+ "Enable reactions" = "启用互动";
237
+ "Hearts After" = "桃心触发";
238
+ " clicks" = " 次";
239
+ "Annoyed After" = "烦躁触发";
240
+ "Click Window" = "连击间隔";
241
+ " s" = " 秒";
242
+ "Edit Reaction Lines…" = "编辑互动配文…";
243
+ "System Status" = "系统状态";
244
+ "CPU usage" = "CPU 占用";
245
+ "CPU temp" = "CPU 温度";
246
+ "Memory" = "内存占用";
247
+ "Chatter" = "碎碎念";
248
+ "Enable chatter" = "启用碎碎念";
249
+ "Frequency" = "频率";
250
+ "Rarely" = "很少";
251
+ "Normal" = "正常";
252
+ "Often" = "较多";
253
+ "Chatty" = "话痨";
254
+ "Line Source" = "台词来源";
255
+ "Pet-specific Lines" = "专属台词";
256
+ "Default Lines" = "默认台词";
257
+ "Edit Lines…" = "编辑台词…";
258
+ "Update to %@…" = "更新到 %@…";
259
+ "Language" = "语言";
260
+ "System Default" = "跟随系统";
261
+ "Help" = "帮助";
262
+ "Check for Updates…" = "检查更新…";
263
+ "About CC Pets" = "关于 CC Pets";
264
+ "Quit CC Pets" = "退出桌宠";
265
+ "vs last month: new" = "较上月同期 新增";
266
+ "vs last month: flat" = "较上月同期 持平";
267
+ "vs last month %@%.1f%%" = "较上月同期 %@%.1f%%";
268
+ "Last 7 days (since %@)" = "近 7 天累计用量(%@ 起)";
269
+ "Last 7 days (since %@, rolling)" = "近 7 天累计用量(%@ 至今·滚动记录)";
270
+ "Waiting for data" = "等待数据";
271
+ "just now" = "刚刚";
272
+ "%.0fs ago" = "%.0f 秒前";
273
+ "%.0fm ago" = "%.0f 分钟前";
274
+ "%.0fh ago" = "%.0f 小时前";
275
+ "Not enough data" = "数据不足";
276
+ "Waiting for data" = "等待官方额度数据";
277
+ "Plenty" = "充足";
278
+ "Plenty of quota left" = "当前额度余量充足";
279
+ "Steady" = "平稳";
280
+ "Quota is holding steady" = "当前额度余量平稳";
281
+ "Watch" = "需关注";
282
+ "Watch usage" = "关注用量";
283
+ "At risk" = "高风险";
284
+ "Quota low" = "额度偏低";
285
+ "Runs out early" = "预计重置前额度用尽";
286
+ "Ease off a bit" = "建议减少高消耗任务";
287
+ "Plenty to spare" = "按当前节奏额度充足";
288
+ "Burning fast" = "消耗偏快,注意节奏";
289
+ "Rate limited" = "额度受限";
290
+ "● Online" = "● 在线";
291
+ "Offline" = "离线";
292
+ "Calls this month" = "本月调用";
293
+ "Tokens this month" = "本月消耗";
294
+ "%@ calls" = "%@ 次";
295
+ "%@/day avg" = "日均 %@ 次";
296
+ "--/day avg" = "日均 --";
297
+ "Input" = "输入";
298
+ "Output" = "输出";
299
+ "Month" = "本月趋势";
300
+ "Daily tokens" = "按日 Token";
301
+ "Peak %@" = "峰值 %@";
302
+ "Peak --" = "峰值 --";
303
+ "Today %@" = "今日 %@";
304
+ "Today --" = "今日 --";
305
+ "%lu / %lu days recorded" = "本月已记录 %lu / %lu 天";
306
+ "5h window" = "官方 5 小时窗口";
307
+ "Waiting for refresh" = "官方额度待刷新";
308
+ "7d window" = "官方 7 天窗口";
309
+ "Snapshot" = "快照";
310
+ "Left" = "剩余";
311
+ "Resets %@" = "重置时间 %@";
312
+ "Used %@" = "已用 %@";
313
+ "Used tokens %@" = "已用 Token %@";
314
+ "Trend" = "使用趋势";
315
+ "Stale" = "待刷新";
316
+ "Awaiting refresh" = "等待官方额度刷新";
317
+ "Limited until reset" = "额度受限,等待重置";
318
+ "Max %.0f%%" = "最高 %.0f%%";
319
+ "Max --" = "最高 --";
320
+ "Now %.0f%%" = "当前 %.0f%%";
321
+ "Now --" = "当前 --";
322
+ "Live status" = "实时状态与滚动用量";
323
+ "%ld Agent online" = "%ld 个 Agent 在线";
324
+ "%ld Agents online" = "%ld 个 Agent 在线";
325
+ "No Agents online" = "暂无 Agent 在线";
326
+ "Updated %@" = "数据刷新 %@";
327
+ "No Codex / Claude Code CLI detected" = "未检测到 Codex / Claude Code CLI";
328
+ "Quota cards appear once Codex or Claude Code is installed" = "安装 Codex 或 Claude Code 后,额度卡会自动出现";
329
+ "Run cc-pets install again to enable Agent animations and Claude quota tracking" = "重新执行 cc-pets install 可启用 Agent 动画与 Claude 额度采集";
330
+ "ⓘ The pet and system status still work; quota cards only show for detected CLIs" = "ⓘ 桌宠与系统状态不受影响;额度卡只在检测到对应 CLI 时显示";
331
+ "ⓘ API usage = local session stats (input includes cache reads/writes); compared with the same point last month" = "ⓘ API 用量 = 本机会话统计(输入含缓存读写);环比按上月相同时间进度计算";
332
+ "ⓘ % = official quota left; tokens = local usage (incl. cache reads/writes)" = "ⓘ 百分比 = 官方额度剩余;Token = 本机统计已用量(含缓存读写)";
333
+ "ⓘ % = share of official plan quota left; tokens = locally counted usage (input incl. cache reads/writes). They measure different things" = "ⓘ 百分比 = 官方订阅额度的剩余比例;Token = 本机统计的已用量(输入含缓存读写),两者口径不同";
334
+ "Today" = "今日用量";
335
+ "Unknown argument: %@\nRun cc-pets --help for usage." = "未知参数:%@\n运行 cc-pets --help 查看用法。";
336
+ "Pet Size" = "宠物大小";
337
+ "Reset Size" = "恢复默认";