Repository navigation
feat: Portato README, project website, Chat/Work code highlighting - #448
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code fences in Chat and Work replies are colored with Shiki grammars in a same-origin module worker. A watchdog ends a pass that stalls (a grammar with catastrophic backtracking) and draws the rest of that block plain, so the window never freezes. Tokens render as React spans; all blocks share one per-frame budget of new nodes, and a settled-block cache keeps remounts cheap. The palette follows the app's light and dark tokens. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The README leads with Portato, the desktop app, with live light and dark captures of Chat and Work, then documents every library package with its install line and one sample. docs/cuda.md holds the CUDA preview notes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A static Void site (React 19, Tailwind v4, Arc and Arc Pro components) for Portato and the library packages. The landing page and /portato show the app's own dashboard components, rendered at build time with data recorded from a real run, scoped so their CSS cannot leak into the site. Docs pages cover the app, every package, models and platforms. Build-time checks keep code samples, numbers, links and mocks true; website.yml builds and runs them on pull requests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… case The case "a file that never holds the turn end" dropped kept lines 60 ms after the end while the swap waited up to 50 ms, so 5 to 8 ms of lag on a busy machine let the drop run first and the test saw no lines. Keep them for 5 s, as production keeps 30 s against a 5 s swap limit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
9a8e2c9 to
6f2e7f3
Compare
## Summary Follow-ups to #448: items 2 to 9 of its owner list. | Item | Change | |---|---| | 2 | `packages/trl/README.md`: the custom training loop awaits `trainStep` and counts each step once. Nine more examples in that README now use the real API. All 14 examples type-check. | | 3 | Docs: Hy4-flash and Qwen3.8-Flash-Next take images through their `mmproj` file. They are no longer called text only. | | 4 | Portato: a **Licenses** tab in Settings (and in ⌘K), built from Arc components. | | 5 | `vp fmt` on the two `Cargo.toml` files. Repo-wide `vp fmt --check` exits 0. | | 6 | `mlx serve --help` and `docs/cli.md` name every family each flag applies to, with each family's limits and defaults. | | 7 | Website: the Arc Pro lightbox returns focus to its thumbnail after Escape, Close or a backdrop click. | | 8 | No change. `website.yml` from #448 already runs `check-samples`. | | 9 | Website mocks: the capture folder is mapped to `/path/to/todo-lib` in every string. A check fails if a capture path is left. | ### Licenses tab ``` vite build ─ main bundle ─┐ └ worker ──────┼─▶ collector ─▶ third-party-licenses.json (238 KB, cap 400 KB) fonts, grammars, │ └▶ third-party-notices.txt vendored code, overrides ─┘ Settings ▸ Licenses ── fetch over app:// when the tab opens (no license text in the main chunk) ``` - 113 entries: Portato, 68 interface packages and the bundler runtime, 5 fonts, 29 grammars, 9 adapted files. - The build fails when a shipped item has no non-empty license text, when an override is stale, or when a license expression is not allowed. The expression is parsed (`AND`, `OR`, `WITH`, parentheses), not split. - The allow list holds SPDX ids only. Three reviewed exceptions are approved one entry at a time: Liberation Sans, Arc Pro and the TOML grammar. - Components: Arc `Tabs`, `SearchField`, `Select`, `Badge`, `EmptyState`, `Alert` and `Button`, and the app's `Disclosure` and `CodePanel`. Three opt-in props were added: `Disclosure.stickyTop`, `CodePanel.keepToggleInPlace` and Arc `Select.menuWidth` (recorded in `PROVENANCE.md`). Other callers are unchanged. - Main chunk: 3,291,298 B (cap 4,000,000). Worker: unchanged. ## How it was checked - `yarn typecheck`, repo-wide `vp fmt --check` and `vp lint --type-aware --type-check`. - Tests: dashboard and CLI, 7,354 passed, with a throwaway HOME. - The site: build, the 4 checks and `tsc`. - Licenses tab: - The real `app://` handler in Electron, packaged and dev layouts: 200, `application/json`, no CSP block. - Each build-failure rule fires on a planted fault. - License texts compared with upstream at the pinned commits. - The dev harness at 720×480, 1180×800 and 1440×900, light and dark, by keyboard. A design review was done, and its findings are fixed. - Lightbox: 12/12 focus cases fail before the fix and pass after it, in Chromium and WebKit. - One Codex adversarial review. All 6 findings were reproduced and fixed: Windows paths, the SPDX parser, the Vite runtime notice, empty texts, the Liberation pin and the `--max-context` limits. ## Owner items (not changed here) 1. **Liberation Sans source offer.** The app ships pdf.js's four Liberation Sans 1.07.4 fonts (GPL-2.0 with the font exception). This was true before this PR. GPLv2 §3 asks for the source with the binaries, or a written offer. A link to the upstream commit is neither. The options: - Ship or host the 2.8 MB source tarball. - Add a written offer. - Move to Liberation 2.x (OFL). This needs a pdf.js patch. - Stop shipping the fonts. 2. The README pictures `images/portato-work-{light,dark}.webp` still show `/private/var/tmp/todo-lib`. New pictures need a new isolated run. 3. Not done in this PR: - Stage B: the 59 Node packages that the desktop app stages. - Electron and Chromium notices in the macOS `.app`. - The native addon's crate notices. - The `mlx-agent` license assets. 4. The "Int8 queries" section of `docs/models.md` still says 7,168 tokens. The code says 256 (since #389). 5. At 720 px, license text lines break short. A fix changes padding that every `CodePanel` user shares. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
One PR for three linked parts. Portato, the desktop app, is the lead of both the README and the site.
packages/dashboard)docs/cuda.mdholds the CUDA preview notes.website/).github/workflows/website.yml.Code highlighting
innerHTML. The CSP is unchanged (script-src 'self').pack.test.tschecks both.Website
website/scripts/record-portato-run.ts). They are scoped so their CSS cannot leak into the site, and they ship 0 JS.orbit-logosblock. It has 9 maker marks (from@lobehub/icons-static-svg, MIT) and a list of the 13 families by maker. On a phone every maker is named in text with no tap. The full table stays on /docs/models.check-samples(samples type-check, and the README and docs copies match),check-numbers(measured figures match their sources),check-site(links, anchors, assets, families) andcheck-portato-mock(mock data and budgets).third-party-notices.txt, linked from every page's footer.Also in this PR
test(dashboard): a timer race inchat-agent-watch.test.ts("a file that never holds the turn end…"). The test now keeps lines for 5 s, the same order as production (30 s against a 5 s swap limit).How it was checked
yarn typecheck, rootvp lint --type-aware --type-checkand the dashboard suite (254 files, 6,849 tests, run with a throwaway HOME).tsc.Known limits
Owner items (not changed here)
website/src/data/models.ts.crates/mlx-core/src/grpo/loss.rs). The site's GRPO sample printsmeanRewardonly.packages/trl/README.mdis wrong:trainStepis not awaited, a field name is wrong, and each step is counted twice.docs/models.mdcalls Hy4-flash "text only" in two places, but it has vision since feat(hy4,qwen4_exp,dashboard): Hy4-flash vision & DFly2-B6, Qwen4 4L perf/parity, Work-mode images, and barrier KV eviction #435.vp fmt --checkflagscrates/mlx-core/Cargo.tomlandcrates/mlx-paged-attn/Cargo.toml. origin/main gives the same result.mlx serve --helpdoes not list the Flash-Next and Hy4-flash disk-cache flags.check-samplesis not in CI, because it needs the root install. It could join the lint job inci.yml./private/var/tmp/todo-lib. A different path needs a new capture.🤖 Generated with Claude Code