返回 CodeWhale
docs-trust.ts
根目录 / web / lib / i18n / dictionaries / en / docs-trust.ts
1 import type { DocsTrustDict } from "../types";
2
3 /**
4 * English reference dictionary for `app/[locale]/docs/trust/page.tsx`
5 * ("See what leaves your machine"). Every claim traces to
6 * docs/public-surface-facts.json (`trust`), docs/TELEMETRY.md, and
7 * docs/SANDBOX.md. The security contact is code-owned in the page.
8 */
9 export const docsTrust: DocsTrustDict = {
10 metaTitle: "See what leaves your machine · Codewhale Docs",
11 metaDescription:
12 "What stays local, what a model provider receives, what usage counting sends and how to turn it off, where the audit log lives, and how to report a vulnerability.",
13 bodyClassName: "text-ink-soft leading-relaxed",
14 title: "See what leaves your machine",
15 lede:
16 "Codewhale runs on your computer and talks to the model provider you choose. This page lists what goes where, what the anonymous usage count contains, and how to switch it off — as built today.",
17 sections: [
18 {
19 "id": "preview-request",
20 "title": "See the request before sending",
21 "blocks": [
22 {
23 "p": "/preview-request shows a redacted manifest of the next primary turn. This human command never sends a request or writes conversation or Work state."
24 },
25 {
26 "code": "/preview-request\n/preview-request json\n/preview-request json --prompt explain this project",
27 "lang": "Codewhale"
28 },
29 {
30 "note": "Without --prompt, route and body are unavailable. A configured classifier, hooks or pending runtime work can also prevent an exact preview; the manifest states why."
31 },
32 {
33 "p": "[Read the request preview contract](https://github.com/codewhale-hq/CodeWhale/blob/main/docs/PREVIEW_REQUEST.md)"
34 }
35 ]
36 },
37 {
38 id: "boundaries",
39 title: "Where your work goes",
40 blocks: [
41 {
42 rows: [
43 ["Stays on your machine", "The runtime, your workspace, session history, snapshots, and the audit log."],
44 ["Goes to your provider", "The context each turn needs — your messages, the files and tool results Codewhale reads for that turn — goes directly to the provider you selected. There is no Codewhale relay in between."],
45 ["Stays local entirely", "With a model you run yourself, inference never leaves your machine."],
46 ["Needs no account", "Installing and running Codewhale locally needs no Codewhale account."],
47 ["Plan mode", "Cannot edit files or run shell commands. Research it is allowed to do may still contact outside services."],
48 ],
49 },
50 {
51 p: "Tools you add can send data elsewhere: an MCP server, a web search, or a hook runs with your permissions and reaches whatever it reaches. Add only ones you trust.",
52 },
53 ],
54 },
55 {
56 id: "telemetry",
57 title: "Know what usage counting sends",
58 blocks: [
59 {
60 p: "Codewhale counts anonymous usage by default and says so the first time you launch it, naming Codewhale as the sole first-party collector. Here is exactly what it covers:",
61 },
62 {
63 rows: [
64 ["Never sent", "Prompts, responses, code, diffs, file contents, file or repository or branch names, paths, model ids outside the bundled public catalog, MCP server names, API keys or tokens, error message text, keystrokes, or any per-turn or per-tool timeline."],
65 ["Sent while on", "Version and platform classes, session length and outcome, built-in provider IDs, bundled public-catalog model IDs (custom/private/local models map to \"other\"), aggregate token totals, built-in tool call and error counts, feature and error counts as fixed categories, and a random install id that changes every 90 days."],
66 ["Where it goes", "`https://telemetry.codewhale.net/v1/telemetry`, a first-party service whose source is in the repository. It stores no IP address, country, or location, keeps no request logs, and holds raw data for three months; only aggregate daily totals with no install id are kept longer."],
67 ["First-party only", "Counts are stored only in Codewhale's Cloudflare Analytics Engine ingest; no third-party analytics processor is used."],
68 ],
69 },
70 ],
71 },
72 {
73 id: "turn-off",
74 title: "Turn usage counting off",
75 blocks: [
76 {
77 code: `codewhale config set telemetry false # stop, and erase the local id and buffer
78 CODEWHALE_TELEMETRY=0 codewhale # stop for this process, erase nothing`,
79 lang: "Terminal",
80 },
81 {
82 p: "The config setting is the lasting choice: later versions keep it, and a command-line flag or environment variable cannot turn it back on. You can also switch it in `/settings`. Turning it off deletes what was kept on your machine; rows already sent are keyed only to the random id you just erased, and expire with the three-month window.",
83 },
84 {
85 p: "To see exactly what would be sent without sending anything, set `telemetry_endpoint = \"\"` in `~/.codewhale/config.toml`. Each batch is then written to `$CODEWHALE_HOME/telemetry/dryrun.jsonl` on your machine, byte for byte, and no network connection is made.",
86 },
87 ],
88 },
89 {
90 id: "audit",
91 title: "Check the local audit log",
92 blocks: [
93 {
94 p: "Credential, approval, and elevation events are appended to `$CODEWHALE_HOME/audit.log` (by default `~/.codewhale/audit.log`). Writing is best-effort: if a write fails, the failure is logged rather than hidden. The log never leaves your machine.",
95 },
96 ],
97 },
98 {
99 id: "report",
100 title: "Report a vulnerability",
101 blocks: [
102 {
103 p: "Email security reports to the address below instead of opening a public issue. Include your Codewhale version (`codewhale --version`) and steps to reproduce if you have them.",
104 },
105 ],
106 },
107 ],
108 next: [
109 {
110 href: "/docs/sandbox",
111 label: "Limit what commands can touch",
112 note: "What the operating-system sandbox enforces on each platform.",
113 },
114 {
115 href: "/docs/modes",
116 label: "Set modes and approvals",
117 note: "Decide what Codewhale may do without asking.",
118 },
119 {
120 href: "/docs/auth",
121 label: "Connect a provider",
122 note: "Choose who receives your turns — or keep them local with a local model.",
123 },
124 ],
125 sourceNote:
126 "Source documents: docs/public-surface-facts.json (trust), docs/TELEMETRY.md, docs/SANDBOX.md · Update docs-map.ts when changing.",
127 };
128
128 lines TYPESCRIPT