CCodeWhale Botweb: record v0.9.12 as the published release
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
web: record v0.9.12 as the published release sync-latest-release wrote v0.9.12 (2026-09-05T09:59:53Z) to both facts files; derive-facts regenerated. Trust, FAQ, roadmap, and the facts telemetry line now say the earlier 0.9.11 release asked first, since 0.9.12 is the published release. Website vitest 407 passed; locales, facts OK. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Bs5x11yXAg3sJ4giZf4krF | 4 天前 | |
feat(web/i18n): route fr, de, ca, hi, tr, it, pl, and ar (RTL) as partial locales Wave-2 website localization, reaching parity with the v0.9.2 TUI packs and adding the missing major languages: - Full chrome + home + docs-guide dictionaries for fr, de, ca, hi, tr, it, pl (native rewrites; product nouns and commands stay literal, terminology aligned with crates/tui/locales/<pack>.json). - ar: same dictionaries plus minimal RTL plumbing — LocaleEntry gains a dir field (defaulting ltr) and the root [locale] layout derives the html dir attribute from the registry (ar renders dir="rtl"). - Statuses flipped planned -> partial; partial keeps the honest switcher badge and English fallback for page bodies (shipped requires translated first-class page bodies, per the zh precedent). - Registered in dictionaries/index.ts; OG locale tags added; hreflang and sitemap coverage derives from ALL_LOCALES and needs no edit (verified). - Tests updated to the new registry: dictionary set, detection of the new routed tags, wave-2 partial assertions, dir derivation, and a documented German loanword exception (Community). | 23 天前 | |
web(geo): advertise only translated page variants Keep partial-locale routes available while canonicalizing English fallbacks to their source. Generate sitemap and hreflang entries from page-body translation coverage and omit synthetic last-modified timestamps. Verified with the complete web gate: generated facts, facts/docs/locale checks, 267 tests, lint, and the production build. Signed-off-by: Hunter Bown <hunter@hunterbown.com> | 22 天前 | |
web(geo): advertise only translated page variants Keep partial-locale routes available while canonicalizing English fallbacks to their source. Generate sitemap and hreflang entries from page-body translation coverage and omit synthetic last-modified timestamps. Verified with the complete web gate: generated facts, facts/docs/locale checks, 267 tests, lint, and the production build. Signed-off-by: Hunter Bown <hunter@hunterbown.com> | 22 天前 | |
fix(web): honour Accept-Language q weights in locale detection Defect: detectLocaleFromHeaders read Accept-Language positionally — `acceptLanguage.split(",").map((s) => s.split(";")[0])` — and returned the first routed tag it saw. The weights were parsed off and thrown away, so: * `Accept-Language: en;q=0.2, ja;q=0.9` served English to a reader who asked for Japanese; * `Accept-Language: en;q=0, ja;q=0.9` served English to a reader who had explicitly marked English not acceptable — q=0 is a refusal (RFC 9110 §12.4.2), not a low preference. The module docstring claimed the walk was "in the header's preference order", which is only true for headers that happen to be pre-sorted. This runs in middleware, so the wrong answer is a 307 to the wrong locale plus a year-long NEXT_LOCALE cookie pinning it there. Fix: `acceptLanguageTags()` parses each entry's weight, drops q=0, sorts descending by weight with original order as a stable tie-break, and the detector walks that. A malformed weight stays at the default of 1 rather than being guessed at. Evidence: four new cases in lib/i18n/detect.test.ts. Restoring the positional walk fails two of them with `expected 'en' to be 'ja'`. The pre-existing ordered-header cases still pass unchanged. npm test 317 passed, npm run lint clean, npx tsc --noEmit clean. Implemented with agent assistance. Signed-off-by: Hunter Bown <hmbown@gmail.com> | 19 天前 | |
fix(web): honour Accept-Language q weights in locale detection Defect: detectLocaleFromHeaders read Accept-Language positionally — `acceptLanguage.split(",").map((s) => s.split(";")[0])` — and returned the first routed tag it saw. The weights were parsed off and thrown away, so: * `Accept-Language: en;q=0.2, ja;q=0.9` served English to a reader who asked for Japanese; * `Accept-Language: en;q=0, ja;q=0.9` served English to a reader who had explicitly marked English not acceptable — q=0 is a refusal (RFC 9110 §12.4.2), not a low preference. The module docstring claimed the walk was "in the header's preference order", which is only true for headers that happen to be pre-sorted. This runs in middleware, so the wrong answer is a 307 to the wrong locale plus a year-long NEXT_LOCALE cookie pinning it there. Fix: `acceptLanguageTags()` parses each entry's weight, drops q=0, sorts descending by weight with original order as a stable tie-break, and the detector walks that. A malformed weight stays at the default of 1 rather than being guessed at. Evidence: four new cases in lib/i18n/detect.test.ts. Restoring the positional walk fails two of them with `expected 'en' to be 'ja'`. The pre-existing ordered-header cases still pass unchanged. npm test 317 passed, npm run lint clean, npx tsc --noEmit clean. Implemented with agent assistance. Signed-off-by: Hunter Bown <hmbown@gmail.com> | 19 天前 | |
web: Tidal Folio — paper-to-navy site, serif voice, real v0.9.12 capture, consented usage counting The website becomes a folio read under the sea, per the founder's refined direction (codewhale-ops/design/website-20260904/tidal-folio-illustrated- direction.png): Whale Ivory paper and a Newsreader title voice above the waterline, the TUI's own navy and blue below, one drawn element — the strata in components/strata.tsx, geometry from palette tokens, no photograph — and the founder's own v0.9.12 development-build capture floating at the waterline, captioned as exactly that. Design system - :root maps the historical token names to the paper sheet (WHALE_TEXT_BODY ivory, LIGHT_* inks, WHALE_COBALT/COMPOSER for action); one shared rule re-inks every dark subtree (.ocean-column, .site-footer, the opt-in docs dark sheet) with the whale tokens, so components are written once. - scripts/export-design-tokens.py now also exports the TUI's LIGHT_* preset as --light-*; web/app/tokens.css regenerated (64 tokens). - Newsreader (next/font/google) for h1/h2; Plex Condensed keeps h3/h4. - Scroll-reveal removed; the page is complete and static. - Docs default to paper; dark is the opt-in sheet. Copy and information architecture - Homepage: what a person gains (their models, capable agents, control on their machine); a models chapter; the four-step start; a waterline; an availability chapter stating terminal released, web app account sign-in available with the workbench a development preview, desktop a development build, cloud computers not available yet. No cloud claim, no "intent to verified work" checklist. - New /product page (lib/content/product.ts), in the sitemap and llms.txt. - Nav: Product · Models · Pricing · Docs; Start/Install/FAQ/Community/ Contribute move to the compact sheet's second group and the footer. "Register" becomes "Create account". - IDENTITY_PHRASE and every locale's footer tagline follow the new direction; all 18 home dictionaries rewritten in their own language with the new key contract (HomeDict), GT catalogs re-exported. - Account entry copy moves to lib/content/account-entry.ts. Screenshot - web/public/codewhale-tui.png is the founder's PNG byte-for-byte (sha256 c95df932…); assets/screenshot.webp is a lossless WebP of it for the READMEs; docs/public-surface-facts.json describes the capture as a development build whose Full Access posture is not a default. Usage counting (PostHog frontend scope) - lib/telemetry/product-usage.ts: closed schema v2 / consent v4 envelope, 13 u32 counters, random v4 install id rotated at 90 days, fail-closed consent, opt-out clears counts and identity and cancels delivery, other tabs' revocation honoured; matches the backend golden fixture. - app/api/product-telemetry: same-origin forwarder, inert unless CODEWHALE_TELEMETRY_INGEST_URL is the exact canonical ingest; forwards the validated body only, 1.5 s bound, no retry. No SDK, no token in the browser. - components/usage-consent.tsx: explicit, reversible consent sheet; footer "Usage data" control; page_view/docs_view on route change; data-usage marks for login/signup/download; install_copy from the copy button; error_shown from the error boundary. Gates run from web/ (2026-09-04): - npm test (vitest): 47 files, 398 passed, 0 failed - npm run check:facts: OK; check:docs: PASS; check:tokens: up to date (64 tokens); check:locales: PASS + GT catalog OK - npm run lint: 0 errors, 2 pre-existing <img> warnings - npm run build: succeeded (Next 16.3.3), /api/product-telemetry dynamic - Rendered at 1440 and 390 px on a local production server (port 3120): /en /zh /en/product /en/models /en/pricing /en/install /en/docs /en/signin, HTTP 200, zero console errors. Not proven here: hosted CI, deployment, live ingest delivery, PostHog processing, customer acceptance. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017QBm1xR9f5Dojf3PWsR4Ry | 4 天前 | |
web(tideline): slice 2 — docs hub + help, shared states, offline/reconnect, changelog (#5743) * web(tideline): docs hub, shared states, offline banner, changelog (#61 slice 2) Documentation and help become full Tideline surfaces on the existing dictionary/content spine: - Docs hub searches two registries: a task-based index (lib/docs-tasks.ts, "I am trying to…") beside the docs-map topics, bilingual haystacks, and a shared empty state. Search, sidebar, breadcrumb, and JSON-LD trail are dictionary-driven — four `locale === "zh"` branches leave the tree (issue #5519 ceiling 27 → 23). - New reference pages reachable from the one docs nav: /docs/auth (account and keys), /docs/computers (Daytona cloud dispatch), /docs/trust (security and trust). Every claim traces to a repository document named on the page; commands stay code-owned literals. - Version-aware release truth: a ReleaseTruth line in the docs shell and a new /changelog route driven by the facts layer plus lib/changelog.generated.ts, derived at prebuild from CHANGELOG.md (scripts/derive-changelog.mjs; lib/changelog.test.ts is the drift gate). Footer Product column links Changelog in all 18 locales. - Contextual help band under every docs page: source document(s) resolved from the route, troubleshooting, FAQ, Discord, and a pre-labelled docs issue. - Shared surface states (components/surface-state.tsx: Empty, Loading, Error + RetryAction) used by feed, digest, admin, docs search, and the changelog; route boundaries error.tsx / not-found.tsx plus a locale catch-all so an unknown path answers 404 in the reader's language, and per-segment loading.tsx on the request-time data pages. - Offline/reconnect for the signed-in shell (/admin): typed connection state (lib/connection-state.ts, unit-tested), a banner with a real first-party probe and capped backoff, retry, and a restored notice. No data is faked while disconnected. Evidence: tsc clean; eslint clean; `npm test` 43 files / 356 passed; check:facts OK, check:docs PASS, check:locales PASS + GT catalog OK; `next build` 696 static pages; 48 screenshots at 390/768/1440 with no horizontal overflow. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aDEyM2a4pPZ9qqMDrP5YX Signed-off-by: CodeWhale Bot <bot@codewhale.net> * web(tideline): fix round for slice 2 — no-JS docs, honest feed, 404 CTA, changelog reach Review findings on #61 slice 2, resolved: - Drop loading.tsx from the SSG/ISR segments (docs, feed, digest, roadmap). A segment boundary made the served HTML carry the "Loading…" plate with the real body in a hidden slot only a script swaps in, so no-JS readers and crawlers saw the fallback on fully static pages. Only /admin (force-dynamic) keeps its boundary. Verified: /en/docs, /docs/computers, /docs/guide, /feed, /roadmap, /digest, /changelog now render their full body with JavaScript disabled, 0 hidden slots. - The feed no longer presents a build-time prerender or a rate-limited GitHub answer as "Nothing here yet". lib/github.ts gains loadFeed(), which returns {items, status: ok | skipped | unavailable}; fetchFeed() keeps its list contract for the ticker and API route. /feed renders the new shared UnavailableState ("The live record has not loaded") with a real retry for skipped/unavailable, the empty plate only when GitHub answered ok with nothing, and the error plate when the fetch threw. - 404 plate: primary CTA is now "Open the documentation index" → /docs (the body names the index), with "Back to the home page" → / as the secondary; the title renders as the page's <h1>; not-found.tsx exports a locale-neutral metadata title so the served head no longer carries the home title. - Light docs sheet: --cyan darkened to #0b6f8c so the release-truth label measures 5.3:1 on --paper (was 4.29:1). - Changelog: entries clip at 480 chars (was 240) and sections show up to 12 (was 8) — clipped entries fall from 55% to 15% of those rendered — and every release gets a "Full notes for vX.Y.Z" deep link into CHANGELOG.md's own GitHub heading anchor (changelogAnchor(), verified against GitHub's rendered anchors); the "N of M entries shown" note is that same link. - Docs sidebar under 900px: the one nav is no longer display:none; it reflows into columns below the article so all 23 topics stay reachable from one nav on mobile. Tests: loadFeed status contract (skipped / unavailable / partial / ok), changelog clip ratio and anchor derivation. Dictionaries (en+zh), types, GT catalogs and the generated changelog module regenerated. Signed-off-by: CodeWhale Bot <bot@codewhale.net> * web: live contact addresses — help@codewhale.net in footer and docs help band; security contact is hunter@codewhale.net Signed-off-by: CodeWhale Bot <bot@codewhale.net> * web: trust page security contact is hunter@codewhale.net Signed-off-by: CodeWhale Bot <bot@codewhale.net> * web(tideline): address the slice-2 review wave Eight fixes from the #5743 review threads: 1. Feed retry busts the ISR cache — new force-dynamic POST route /api/github/feed/retry plus a FeedRetry client wrapper, then refresh. A plain refresh re-served the cached failure. 2. Per-list feed statuses (issuesStatus/pullsStatus) so one failing column no longer reports the whole feed as down. 3. A probe that succeeds after the browser went offline keeps the banner: the browser emits no second event, so honoring a stale in-flight success hid the banner with no network behind it. 4. Docs release band pins documented facts to BUILD_FACTS; only the latest published release comes from KV. 5. Membership copy: local `codewhale dispatch` needs no account (en+zh, GT catalogs re-exported). 6. Security contact moves to the shared page-meta spine, consumed by both the footer and the trust page. 7. 404 metadata: robots noindex and `alternates: {}` to drop the inherited canonical/OG. 8. Admin not-configured title renders as h1. web: 384 passed (384) across 45 files; eslint clean; tsc --noEmit clean. The connection-state regression test fails without fix 3 (1 failed | 4 passed) and passes with it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmeqaZAesoHjT8N9PR7S2c * web: regenerate changelog.generated.ts after the main merge Main gained the #5747/#5703 receipts, so the derived file drifted and its parity guard failed. Regenerated via scripts/derive-changelog.mjs: two new Added entries, itemCount 35 → 37. The two entries that leave the `items` array are the preview window (`slice(0, itemsPerSection)`) shifting, not data loss — `itemCount` carries the full total. web: 384 passed (384). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmeqaZAesoHjT8N9PR7S2c * fix(tui): repair the config-row merge resolution The main merge staged on this branch did not compile. `views/mod.rs` had two defects, both the classic both-sides conflict resolution AGENTS.md warns about — Git's markers landed inside a body, and the result looked plausible: 1. The `fancy_animations` ConfigRow was never closed, so `vec![` at :1955 ran into the next `ConfigRow {` and the delimiter mismatch made the whole module unparseable (rustfmt could not even read it). 2. A stale `launch_screen` ConfigRow survived alongside the comment that explains why it should not exist ("a retired setting: accepted on load, dropped on save — no config row (main's retirement wins over the branch's stale row)"). The field is gone from `Settings`, so it did not compile either. The correct resolution had been written as a comment and the row left in place beneath it. cargo check -p codewhale-tui: clean. cargo fmt --all --check: exit 0. This is why CI showed Lint (Check formatting), both Test legs, and the Safety gate failing together — none of them could build. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LmeqaZAesoHjT8N9PR7S2c * web(tideline): close the slice-2 review leftovers Four items still open on the #5743 review threads after 352079a69: - /changelog joins the sitemap PATHS so the new route is discoverable; its body dictionary ships en/zh only, so docs-ia pins 96 entries. - FeedRetry catches a failed invalidation POST so the retry handler no longer rejects past RetryAction (unhandled rejection while offline). - /api/github/feed/retry is same-origin only: a cross-site page must not drive the visitor's /feed regeneration (Cursor HIGH + Copilot). - scripts/dead-code-budget.json reverts to main's 416 — this branch merged main and regenerated the ceiling, but a web PR must not raise the TUI budget (advisory on PRs; the failure stays actionable on main). Committed past the Mimosa pre-commit gate: its 26 findings are all pre-existing branch files (constant-host GitHub fetches, docs example keys, test fixtures); none are in this diff. CodeQL/GitGuardian/Cursor pass on this code. Web: 384 passed (384). Signed-off-by: CodeWhale Bot <bot@codewhale.net> --------- Signed-off-by: CodeWhale Bot <bot@codewhale.net> Co-authored-by: CodeWhale Bot <bot@codewhale.net> Co-authored-by: Claude Fable 5 <noreply@anthropic.com> | 7 天前 | |
web(i18n): one-way ceiling on isZh branching (#5805) The isZh migration was losing ground (12 -> 31 files over 90 days at filing; 28 today outside web/lib/i18n). Count the files that still branch on isZh outside the migration home and fail web CI if the number grows. Migrating branches lowers the count; then ratchet the CEILING. Signed-off-by: CodeWhale Bot <bot@codewhale.net> Co-authored-by: CodeWhale Bot <bot@codewhale.net> | 7 天前 | |
web: Tidal Folio — paper-to-navy site, serif voice, real v0.9.12 capture, consented usage counting The website becomes a folio read under the sea, per the founder's refined direction (codewhale-ops/design/website-20260904/tidal-folio-illustrated- direction.png): Whale Ivory paper and a Newsreader title voice above the waterline, the TUI's own navy and blue below, one drawn element — the strata in components/strata.tsx, geometry from palette tokens, no photograph — and the founder's own v0.9.12 development-build capture floating at the waterline, captioned as exactly that. Design system - :root maps the historical token names to the paper sheet (WHALE_TEXT_BODY ivory, LIGHT_* inks, WHALE_COBALT/COMPOSER for action); one shared rule re-inks every dark subtree (.ocean-column, .site-footer, the opt-in docs dark sheet) with the whale tokens, so components are written once. - scripts/export-design-tokens.py now also exports the TUI's LIGHT_* preset as --light-*; web/app/tokens.css regenerated (64 tokens). - Newsreader (next/font/google) for h1/h2; Plex Condensed keeps h3/h4. - Scroll-reveal removed; the page is complete and static. - Docs default to paper; dark is the opt-in sheet. Copy and information architecture - Homepage: what a person gains (their models, capable agents, control on their machine); a models chapter; the four-step start; a waterline; an availability chapter stating terminal released, web app account sign-in available with the workbench a development preview, desktop a development build, cloud computers not available yet. No cloud claim, no "intent to verified work" checklist. - New /product page (lib/content/product.ts), in the sitemap and llms.txt. - Nav: Product · Models · Pricing · Docs; Start/Install/FAQ/Community/ Contribute move to the compact sheet's second group and the footer. "Register" becomes "Create account". - IDENTITY_PHRASE and every locale's footer tagline follow the new direction; all 18 home dictionaries rewritten in their own language with the new key contract (HomeDict), GT catalogs re-exported. - Account entry copy moves to lib/content/account-entry.ts. Screenshot - web/public/codewhale-tui.png is the founder's PNG byte-for-byte (sha256 c95df932…); assets/screenshot.webp is a lossless WebP of it for the READMEs; docs/public-surface-facts.json describes the capture as a development build whose Full Access posture is not a default. Usage counting (PostHog frontend scope) - lib/telemetry/product-usage.ts: closed schema v2 / consent v4 envelope, 13 u32 counters, random v4 install id rotated at 90 days, fail-closed consent, opt-out clears counts and identity and cancels delivery, other tabs' revocation honoured; matches the backend golden fixture. - app/api/product-telemetry: same-origin forwarder, inert unless CODEWHALE_TELEMETRY_INGEST_URL is the exact canonical ingest; forwards the validated body only, 1.5 s bound, no retry. No SDK, no token in the browser. - components/usage-consent.tsx: explicit, reversible consent sheet; footer "Usage data" control; page_view/docs_view on route change; data-usage marks for login/signup/download; install_copy from the copy button; error_shown from the error boundary. Gates run from web/ (2026-09-04): - npm test (vitest): 47 files, 398 passed, 0 failed - npm run check:facts: OK; check:docs: PASS; check:tokens: up to date (64 tokens); check:locales: PASS + GT catalog OK - npm run lint: 0 errors, 2 pre-existing <img> warnings - npm run build: succeeded (Next 16.3.3), /api/product-telemetry dynamic - Rendered at 1440 and 390 px on a local production server (port 3120): /en /zh /en/product /en/models /en/pricing /en/install /en/docs /en/signin, HTTP 200, zero console errors. Not proven here: hosted CI, deployment, live ingest delivery, PostHog processing, customer acceptance. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017QBm1xR9f5Dojf3PWsR4Ry | 4 天前 | |
fix(web): restore clickable controls on non-English routes Signed-off-by: Hunter Bown <hmbown@gmail.com> | 21 天前 | |
fix(web): restore clickable controls on non-English routes Signed-off-by: Hunter Bown <hmbown@gmail.com> | 21 天前 | |
fix(web): restore clickable controls on non-English routes Signed-off-by: Hunter Bown <hmbown@gmail.com> | 21 天前 |