docs: audit and fix 5 pages (typography hygiene + dup H1) · openclaw/openclaw@f531eff
vincentkoc
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -64,7 +64,7 @@ Authoritative advertised **discovery** inventory lives in
|
64 | 64 | ## Current pipeline |
65 | 65 | |
66 | 66 | - `pnpm protocol:gen` |
67 | | -- writes JSON Schema (draft‑07) to `dist/protocol.schema.json` |
| 67 | +- writes JSON Schema (draft-07) to `dist/protocol.schema.json` |
68 | 68 | - `pnpm protocol:gen:swift` |
69 | 69 | - generates Swift gateway models |
70 | 70 | - `pnpm protocol:check` |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -20,12 +20,12 @@ title: "Usage tracking"
|
20 | 20 | |
21 | 21 | ## Where it shows up |
22 | 22 | |
23 | | -- `/status` in chats: emoji‑rich status card with session tokens + estimated cost (API key only). Provider usage shows for the **current model provider** when available as a normalized `X% left` window. |
| 23 | +- `/status` in chats: emoji-rich status card with session tokens + estimated cost (API key only). Provider usage shows for the **current model provider** when available as a normalized `X% left` window. |
24 | 24 | - `/usage off|tokens|full` in chats: per-response usage footer (OAuth shows tokens only). |
25 | 25 | - `/usage cost` in chats: local cost summary aggregated from OpenClaw session logs. |
26 | 26 | - CLI: `openclaw status --usage` prints a full per-provider breakdown. |
27 | 27 | - CLI: `openclaw channels list` prints the same usage snapshot alongside provider config (use `--no-usage` to skip). |
28 | | -- macOS menu bar: “Usage” section under Context (only if available). |
| 28 | +- macOS menu bar: "Usage" section under Context (only if available). |
29 | 29 | |
30 | 30 | ## Providers + credentials |
31 | 31 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@ title: "Hetzner"
|
14 | 14 | |
15 | 15 | Run a persistent OpenClaw Gateway on a Hetzner VPS using Docker, with durable state, baked-in binaries, and safe restart behavior. |
16 | 16 | |
17 | | -If you want “OpenClaw 24/7 for ~$5”, this is the simplest reliable setup. |
| 17 | +If you want "OpenClaw 24/7 for ~$5", this is the simplest reliable setup. |
18 | 18 | Hetzner pricing changes; pick the smallest Debian/Ubuntu VPS and scale up if you hit OOMs. |
19 | 19 | |
20 | 20 | Security model reminder: |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,7 @@ title: "Tests"
|
8 | 8 | - Full testing kit (suites, live, Docker): [Testing](/help/testing) |
9 | 9 | - Update and plugin package validation: [Testing updates and plugins](/help/testing-updates-plugins) |
10 | 10 | |
11 | | -- `pnpm test:force`: Kills any lingering gateway process holding the default control port, then runs the full Vitest suite with an isolated gateway port so server tests don’t collide with a running instance. Use this when a prior gateway run left port 18789 occupied. |
| 11 | +- `pnpm test:force`: Kills any lingering gateway process holding the default control port, then runs the full Vitest suite with an isolated gateway port so server tests don't collide with a running instance. Use this when a prior gateway run left port 18789 occupied. |
12 | 12 | - `pnpm test:coverage`: Runs the unit suite with V8 coverage (via `vitest.unit.config.ts`). This is a default-unit-lane coverage gate, not whole-repo all-file coverage. Thresholds are 70% lines/functions/statements and 55% branches. Because `coverage.all` is false and the default lane scopes coverage includes to non-fast unit tests with sibling source files, the gate measures source owned by this lane instead of every transitive import it happens to load. |
13 | 13 | - `pnpm test:coverage:changed`: Runs unit coverage only for files changed since `origin/main`. |
14 | 14 | - `pnpm test:changed`: cheap smart changed test run. It runs precise targets from direct test edits, sibling `*.test.ts` files, explicit source mappings, and the local import graph. Broad/config/package changes are skipped unless they map to precise tests. |
|
72 | 72 | |
73 | 73 | - `source ~/.profile && pnpm tsx scripts/bench-model.ts --runs 10` |
74 | 74 | - Optional env: `MINIMAX_API_KEY`, `MINIMAX_BASE_URL`, `MINIMAX_MODEL`, `ANTHROPIC_API_KEY` |
75 | | -- Default prompt: “Reply with a single word: ok. No punctuation or extra text.” |
| 75 | +- Default prompt: "Reply with a single word: ok. No punctuation or extra text." |
76 | 76 | |
77 | 77 | Last run (2025-12-31, 20 runs): |
78 | 78 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,8 +6,6 @@ read_when:
|
6 | 6 | title: "Token use and costs" |
7 | 7 | --- |
8 | 8 | |
9 | | -# Token use & costs |
10 | | - |
11 | 9 | OpenClaw tracks **tokens**, not characters. Tokens are model-specific, but most |
12 | 10 | OpenAI-style models average ~4 characters per token for English text. |
13 | 11 | |
@@ -63,7 +61,7 @@ For a practical breakdown (per injected file, tools, skills, and system prompt s
|
63 | 61 | |
64 | 62 | Use these in chat: |
65 | 63 | |
66 | | -- `/status` → **emoji‑rich status card** with the session model, context usage, |
| 64 | +- `/status` → **emoji-rich status card** with the session model, context usage, |
67 | 65 | last response input/output tokens, and **estimated cost** (API key only). |
68 | 66 | - `/usage off|tokens|full` → appends a **per-response usage footer** to every reply. |
69 | 67 | - Persists per session (stored as `responseUsage`). |
@@ -149,7 +147,7 @@ per agent with `agents.list[].params.cacheRetention`.
|
149 | 147 | For a full knob-by-knob guide, see [Prompt Caching](/reference/prompt-caching). |
150 | 148 | |
151 | 149 | For Anthropic API pricing, cache reads are significantly cheaper than input |
152 | | -tokens, while cache writes are billed at a higher multiplier. See Anthropic’s |
| 150 | +tokens, while cache writes are billed at a higher multiplier. See Anthropic's |
153 | 151 | prompt caching pricing for the latest rates and TTL multipliers: |
154 | 152 | [https://docs.anthropic.com/docs/build-with-claude/prompt-caching](https://docs.anthropic.com/docs/build-with-claude/prompt-caching) |
155 | 153 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。