返回 CodeWhale
docs-pet.ts
根目录 / web / lib / i18n / dictionaries / en / docs-pet.ts
1 import type { DocsPetDict } from "../types";
2
3 /**
4 * English reference dictionary for `app/[locale]/docs/pet/page.tsx`
5 * ("Watch each session with the whale view"). Checked against docs/PET_MODE.md and
6 * the `/whale` command in crates/tui/src/commands/groups/config/config.rs.
7 */
8 export const docsPet: DocsPetDict = {
9 metaTitle: "Watch each session with the whale view · Codewhale Docs",
10 metaDescription:
11 "/whale turns each terminal into a glanceable status view: a whale made of dots that shows working, waiting for you, done, or failed, with replies and agents one key away.",
12 bodyClassName: "text-ink-soft leading-relaxed",
13 title: "Watch each session with the whale view",
14 lede:
15 "`/whale` turns the terminal you already use into a glanceable status view. A whale made of dots fills the main view and shows whether the session is working, waiting for you, done, or failed, while the message box stays at the bottom. Each terminal draws its own whale from its own session; nothing else runs.",
16 sections: [
17 {
18 id: "turn-on",
19 title: "Turn it on",
20 blocks: [
21 { note: "This page describes Codewhale 0.10.5. The command is now `/whale`; `/pet` still runs it but is no longer listed. Earlier versions ran a shared companion process with sound, replay export, an appearance studio and other views. Those were removed in 0.10.5; see \"What was removed\" below." },
22 {
23 code: "/whale # turn the whale view on or off\n/whale on # on, without toggling\n/whale off # back to the standard view",
24 lang: "Codewhale",
25 },
26 {
27 p: "The view being on or off is saved as the `pet_mode` setting, so the next session starts the way you left it. The whale view only presents the session you are already running. It does not start a turn, call a model, or change your draft, mode, or approvals.",
28 },
29 ],
30 },
31 {
32 id: "states",
33 title: "Read the whale",
34 blocks: [
35 {
36 p: "The first line and the mark under the whale give the state as a mark and a word, so it reads without colour or motion.",
37 },
38 {
39 rows: [
40 ["○ idle", "Nothing is running."],
41 ["● working", "A turn is running, including tools and verification."],
42 ["needs you", "The session is waiting for an approval or an answer."],
43 ["✓ Done", "The last turn completed."],
44 ["✕ failed", "The last turn ended in failure."],
45 ],
46 codeTerms: false,
47 },
48 {
49 p: "While a turn runs, the whale's dots become the thing the work is, such as a wrench for commands, a pencil for edits or a book for reading, then return to the whale. The status bar keeps its live readouts, such as the agent count.",
50 },
51 ],
52 },
53 {
54 id: "inspect",
55 title: "Open replies and agents when you want them",
56 blocks: [
57 {
58 p: "The main view stays quiet. Press `F5` to open the current reply and the agents list over it. Press `Esc` to return to the message box; your draft and any running turn are untouched.",
59 },
60 {
61 rows: [
62 ["F5", "Open replies and agents."],
63 ["Esc", "Back to the message box."],
64 ["Tab", "Switch between the Reply and Agents panes."],
65 ["Enter", "In the Agents pane, open the selected agent's transcript."],
66 ["c", "Copy the last finished reply, the same as `/copy`."],
67 ],
68 codeTerms: true,
69 },
70 ],
71 },
72 {
73 id: "terminals",
74 title: "Use it in several terminals",
75 blocks: [
76 {
77 p: "The whale view is per terminal. Run `/whale` in each one and every whale follows its own session, so one can show Done while another is still working. Sessions are never mixed, and the terminals do not talk to each other: there is no background process, no port and no shared state.",
78 },
79 ],
80 },
81 {
82 id: "commands",
83 title: "Commands",
84 blocks: [
85 {
86 rows: [
87 ["/whale, /whale on, /whale off", "Toggle, enable, or disable the whale view for this terminal."],
88 ["/whale full", "The same as `/whale`; the word exists so the command reads the same as in the desktop app."],
89 ["/whale still", "Hold the whale still, or let it move again."],
90 ["/whale name <text>", "Name the whale, up to 32 characters. The name replaces Codewhale in the view's first line."],
91 ["/whale color <#rrggbb>", "Colour the whale. `/whale color default` restores its own colours."],
92 ],
93 codeTerms: false,
94 },
95 {
96 p: "The name, the colour and hold-still last until the terminal closes; they are not saved.",
97 },
98 ],
99 },
100 {
101 id: "privacy",
102 title: "What it can see",
103 blocks: [
104 {
105 p: "The whale is drawn inside the terminal process. It reads a short list of event kinds, ids and outcomes from the session, such as \"a read started\" or \"turn completed\". Prompt text, reasoning, tool names, arguments, results and paths are not read, and nothing is written to disk or sent anywhere.",
106 },
107 ],
108 },
109 {
110 id: "removed",
111 title: "What was removed in 0.10.5",
112 blocks: [
113 {
114 p: "The shared companion process (`codewhale pet serve`) is gone, with everything only it provided:",
115 },
116 {
117 list: [
118 "Sound (`/pet sound`, `F6`).",
119 "Replay recording and `/pet export`.",
120 "The browser appearance studio (`/pet appearance`, `F8`) and `/pet style`.",
121 "Source selection (`/pet source`) and `/pet status`.",
122 "The other views, view cycling, `/pet avatar`, `/pet action`, `/pet view` and avatar packs in the terminal.",
123 "`/pet inspect`; use `F5`.",
124 ],
125 },
126 {
127 p: "Files an older version left in `~/.codewhale/pet-shared` are not read and are not deleted; you can remove that folder yourself.",
128 },
129 ],
130 },
131 {
132 id: "limits",
133 title: "Known limits",
134 blocks: [
135 {
136 note: "There is no separate \"reply ready\" cue yet. A finished turn shows Done on the whale; press `F5` to read the reply.",
137 },
138 {
139 note: "While agents run, the agents list in the inspector refreshes when the turn ends. The agent count in the status bar is live.",
140 },
141 {
142 note: "The work bar is hidden while the whale view is showing. Turn the view off with `/whale` to use it.",
143 },
144 ],
145 },
146 ],
147 next: [
148 {
149 href: "/docs/work",
150 label: "Track progress",
151 note: "Follow the goal, To-do list, and sub-agents in the workbar.",
152 },
153 {
154 href: "/docs/subagents",
155 label: "Run agents in parallel",
156 note: "Hand independent parts of a task to sub-agents.",
157 },
158 {
159 href: "/docs/modes",
160 label: "Set modes and approvals",
161 note: "Choose when a session waits for you.",
162 },
163 ],
164 sourceNote:
165 "Source documents: docs/PET_MODE.md · Update docs-map.ts when changing.",
166 };
167
167 lines TYPESCRIPT