Repository navigation
Read each port's link syntax in the capability directory - #232
Merged
Merged
Conversation
why: The "What is on here" directory drew only for TypeScript, Java, C#, Rust and Go, because REFERENCE knew four spellings of a reference. A directory written in any other port's doc comment fell back to prose. The extractors also do not all hand over the spelling the source file uses: Doxygen drops the tag of \ref and @ref and keeps a bare word, flattens lists and turns backticks into code spans, so a C++ member is named in a code span. LuaLS has no link syntax, and PowerShell help names a cmdlet as a bare word. what: - groupDirectory and referencesOnly take the port's language. The first five ports, F# and a caller who names none read the four shared spellings, so the five existing ports read what they read before. Each other port reads a list of its own, the spellings its tokenizer in api-model resolves, so each reference reads as a reference span and no port reads another's. - Sphinx roles for py, DocC ``Symbol`` for swift, ExDoc `fun/arity`, `Module` and [text](`Module`) for elixir, KDoc [label][target] with [name] and {@link} for kotlin, Scaladoc [[name]] and {@link} for scala, code-span names for cxx and lua, YARD {#name} for ruby, Documenter (@ref Target) and [text](@ref) for julia, cmdlet names bare or in a code span for powershell. - ApiProse passes index.language. - A test per syntax fails when its pattern is removed, and none fails when another port's pattern is. Others pin the negatives: guidance mixed with references, fewer than three rows, and a spelling read for a port that writes it as something else. Each reference is one reference span to the tokenizer, python's roles agree with it role by role, and a render test draws a linked chip per port. - ApiProse HTML for every symbol summary and body in all sixteen models pinned on main, and in the ts, java, csharp, rs and go models of the pending pin wave (14 to 23 directory rows each), is byte-identical before and after.
tony
force-pushed
the
feat/directory-link-syntaxes-20261101
branch
from
November 1, 2026 14:57
afcab95 to
8de5f15
Compare
tony
marked this pull request as ready for review
November 1, 2026 14:57
…ed tmux client" why: The hero told readers to "Drive a real tmux from <Language>", and the home page title read "Rust latest | libtmux-rs". The maintainer asked for "Rust-based tmux client" and a title of "libtmux-rs: Rust-based tmux client", matching the Python front page that names the project and what it is. what: - Add portTagline() and portHomeTitle() to ports.ts. A core port is named by its repository; a facade (Kotlin, Scala, F#) shares its parent repository and keeps its own project name. - PortHero renders portTagline() as the tagline. - The port home page passes portHomeTitle() as its title, so the document title, og:title and twitter:title carry it. The visible H1 stays the port name. - documentationTitle() no longer appends " | <project>" to a port home title, which matters for Julia, whose project name (LibTmux.jl) is not its repository. - Test every port title and the absence of a suffix.
…e them why: The MCP tab opened with crates/tmux-mcp/examples/readonly.rs, a program that embeds the server, and the Workspace tab with a builder internal or a test. A person gives an agent tmux by installing the server and watching it call tools, and meets a workspace manager through a workspace file, the command that loads it and the panes it builds (#239). what: - MCP tab: one sentence from the port's tools/list snapshot, the install picker, then the MCP overview's worked example (prompt, each call with its tier badge), then links to all tools by tier and to every tool. - A port with no worked example, or served by another port's package (PowerShell uses the C# server), shows the picker and the links and no calls. - Workspace tab: a tested workspace file from the Workspace overview's showcase, preferring one a test runs the command on, its pane preview, the port's load command from the CLI manual, and the test that loads it; PowerShell, whose manual lists no program, names no command. - Each program excerpt moves behind a closed disclosure on its panel, with its source and CI step unchanged. - McpWorkedExample and WorkspaceWindows are shared with the overview pages instead of copied; the tier badge and prompt styles move to styles/mcp-showcase.css. - Tests assert the order, the calls against EXAMPLES, the served and untested ports, and the excerpt behind its link. - Not included: recorded call results (#239 item 4).
why: The C++ MCP install in the picker was one 150-character line, which hides the end of the command on a normal screen and is hard to paste (libtmux.org/en/cxx/latest/mcp/). The maintainer asked for newline breaks with a backslash, one step per line, as the C++ MCP guide shows them. what: - The C++ MCP build shows one flag or step per line, as the guide does. - wrapShell breaks any MCP client command (claude mcp add and the other CLI clients) wider than 78 columns at word boundaries, keeping a flag with its value and quoted words whole. JSON and TOML config renderers are untouched, so no backslash reaches a config file. - The Julia MCP setup runs its Julia script over several lines inside its quotes, and the pnpm cooldown commands put the exclusion list on its own continued line. - The unversioned Source install the package picker falls back to is wrapped the same way. - The copy button still strips only the leading prompt, so the copied text is the multi-line command. - site/test/install-line-width.test.ts fails on a shell command line wider than the limit for every port's package and MCP install, checks with bash -n that each multi-line command parses as copied, and includes a control for the old one-line C++ build.
…om its API model why: A port page named no feature of the library. The Python front page lists the Server, Session, Window and Pane objects with the tmux object each wraps, then what the library gives over the tmux command line, and no other port had an equivalent. The maintainer asked for the same on every port, as a Core Library home beside the existing MCP and Workspace homes, with the language page keeping the three-product showcase. what: - Add /<port>/<version>/core/, a page per port whose Structure table, Typed API list and "What you get over the tmux CLI" list name the port's own types and symbols, each linked to the API reference, with the install block, the tested example and cards to the guides that exist. - Keep the symbol choices in data/core-home.json and resolve them through the extracted API model in lib/core-home.ts: a symbol the model lacks, an internal or non-core one, a missing type or an unknown capability throws. A capability a port lacks has no entry and is not listed. - Point the Core Library surface, its Home and Overview rows and the port-documentation core domain at core/; the surface keeps the version root as its scope so guides, topics and the reference stay in it. - Hide the core page from the core sidebar rows, add its facts to the .md twin and llms-full.txt, and link it from the Core panel of the language page. - Test every port's entry against its model, the failure cases, the card links, the rendered table and the navigation selection.
why: The first review showed the tests only proved a symbol exists, so a capability could be mapped to any real symbol, and several labels claimed more than the symbol's documentation says (a pre-run refusal, stable IDs, an asynchronous API). The facade ports were also told their page covers products they do not ship. what: - Require each capability's symbol to show its kind of evidence (an ID, a filter or query, an error type, a panes or snapshot accessor, a command, a version or unsupported-feature error, an environment constructor, a test symbol, an async or suspend signature) and test a wrong symbol per rule. - Reword the ID, version and async labels to what the symbols document, and drop entries the model does not back: PowerShell version, Ruby, Lua and F# async claims that rest on an empty doc, Java and TypeScript current pane, Scala ID. - Name only the products a port ships in the page note, drop the announcement sentence, and render the page body only for the staged core/index.md entry.
why: The second review found entries that passed on a name match alone: an Elixir observed target presented as a tmux ID, a Rust command struct presented as list arguments, an objects rule that accepted any non-constant symbol, and an async rule that matched prose in a parameter doc. Half of the rules also had no failing case. what: - Require the objects symbol to be a type or cmdlet, stop treating a Ref suffix as an ID, and read async only from the declaration and return type. - Drop the Elixir ID and the Rust argv entries; point the Rust objects entry at the pane type. - Add a failing case for the objects, queries, traversal, argv and test-fixtures rules.
…it on why: A review found the Workspace tab printing "<program> load workspace.yaml" under a file that only a library or loader test reaches, while the line below said the command is not run. That was a claim no CI step backs. what: - The command shows only when the chosen file has a test that runs the command; the link to the command's manual page stays for every port whose manual lists one. - Python and PowerShell now show the file, its panes and the evidence line without a command.
why: A review found that cutting the pnpm cooldown command after "pnpm_config_minimum_release_age_exclude=" made the shell drop the backslash-newline and keep the next line's indent, so the variable was set empty and the JSON list ran as a command. bash -n accepts that, so the test could not see it. The width test also filled cooldown slots with a shorter value than the page shows. what: - The exclusion list moves to an EXCLUDE variable on its own line and the command reads "$EXCLUDE", so every line fits and the value arrives intact. - site/test/install-line-width.test.ts runs the copied pnpm commands with a stub pnpm and asserts the variables it receives, with a control for the broken shape. - withDefaultCooldown fills cooldown slots at the default day count's real width for both wrapShell and the tests.
…n out the spacing why: The maintainer reviewed the tabs locally: the install should follow the example, "Start with <product>" repeats the selected tab, and the worked example's captions sat tight under the prompt while each call drew a boxed block indented past its caption, inside a numbered-list indent. what: - MCP tab order is the sentence, the worked example, the install, then the links; the Workspace tab already put the file and preview first. - The visible "Start with" heading goes from the MCP and Workspace panels; a screen-reader-only heading keeps the panel named. Core's row is kept. - The worked example uses one gap (1rem between the prompt and steps and between steps, half of it from a caption to its call); the numbers move into the caption and the call draws no box, so its first character lines up with the caption. The MCP overview shares the component. - A workspace file's title, description and body, and the blocks of a panel, use the same gaps. - A test pins the order (example before install) and the sr-only label.
…rary why: The maintainer wanted a Home above even the Core Library entry. The language page, with the hero and the Core, MCP and Workspace selector, had no place in the "Choose documentation" menu, and selecting it showed "Core Library, Home" with the Core Library sidebar. what: - Add a language Home surface at the top of the menu. Only the language page selects it, so the button reads "<Language> Home" and the sidebar lists the product homes and the shared areas. Core Library Home and Overview stay on core/, and MCP and Workspace keep their homes. - Keep the Home out of the site home page's solution menu. - Check the Home entry, the sidebar and the Core Library Home in check-navigation, and skip the Home row in check-status-badges, which counts product rows. The header-menu-sections check covers the Packages menu and has no surface rows to change. - Test the Home surface for every port and render the picker on both pages.
why: Choosing a preset meant clicking each row to see its YAML and pane layout. The home page already previews a language on a dwell without committing; the preset picker should behave the same way, with the same delay, so a reader can browse presets before choosing one. what: - Bind the preset rows to bindHomeHoverPreview, so the delay, mouse/pen and any-hover gating, Escape, blur and pagehide handling are the home page's own, not a copy. - Split paint() out of show(): a preview moves only data-selected and the inert panels, leaving the checkmark, aria-current, links, storage and address alone. - Restore the chosen preset when the pointer leaves or the menu closes; commit the pending preview on a click or a roll. - Test the shared 1200 ms delay (negative: fails if it is not applied), show, restore, click commit, Escape, menu close, touch and no any-hover. - Add check-workspace-hover.mjs to check-home-launcher.mjs; it is only syntax-checked here.
why: A long window name such as "1:Another Django project" was cut mid-word with no ellipsis, because text-overflow does not apply to the text of an inline-flex button. A reader could not see the rest. what: - Wrap each tab's text in .ws-layout__tab-label, which owns the ellipsis, and drop the native title so the tooltip is the one source. - Add one role="tooltip" per picker. It opens on hover after the status badges' HOVER_OPEN delay and at once on keyboard focus, only for a label that overflows, and the tab references it with aria-describedby while it is open. - Follow WCAG 1.4.13: Escape dismisses it without moving focus, the pointer can move onto it, and it stays until hover and focus leave. - Frame the tooltip with the status badge card's tokens so light and dark themes match. The tab keeps role="tab" and its full text as its accessible name. - Test the label ellipsis rule, the tooltip wiring at 390 px, Escape, moving onto the tooltip, and a name that fits (1280 px) getting no tooltip.
…xample why: The worked example showed only requests. A step said "run the command in the pane the list returned (%0)" and no list result was ever shown, and the example ended without the command's output (#239, item 4). Removing the code frame in the last change also left the calls as bare slabs unlike every other code block. what: - scripts/gen-mcp-transcript.mjs replays a port's EXAMPLES calls against the server built from a clean checkout at the revision of its protocol snapshot, on a tmux of its own (private TMUX_TMPDIR and HOME, never the default socket), running a real pytest in a two-test project. It writes site/src/data/mcp-transcripts/<port>.json and fails on a tool error, a server that does not exit 0, an id no earlier result returned, or a run result that lacks "2 passed". Recordings for TypeScript (3 steps) and Rust (5 steps) are committed; the rest wait for their port's server to be run the same way. - The calls move to lib/mcp-examples.ts so Node can import them. - The page shows each call on one line (tool name, then its JSON arguments) and its recorded result, abbreviated, in the site's ordinary framed code blocks, then the output the agent reads back and a line naming the repository, revision, tmux and test runner. A recording counts only when its revision matches the snapshot and its calls match EXAMPLES with no failed step; otherwise the page keeps the requests and says "Requests only: no recorded results for <port> yet." - Tests pin the recordings to the snapshot revision and the page's calls, check each id came from an earlier result, cover the abbreviation and the fall back to requests only, and render both forms.
…ves on why: A review found that moving from a clipped tab to a neighbor that fits cancelled the first tab's close timer and returned before hiding it, leaving its tooltip and aria-describedby up until Escape. what: - Hide the open tooltip as soon as another tab is entered or focused. - Reset the tooltip's left before measuring so a reopen near the right edge is not measured at a wrapped width. - Test the move to a tab that fits by pointer and by focus. - Assert in the Escape and menu-close preview tests that the preview was showing before it was dismissed.
…ip test why: The previous commit pushed a test that asserted a focus the DOM test environment does not grant to a tab in a hidden preset panel, so it failed. what: - Compare focus before and after Escape, and assert no blur or focus move fires, instead of expecting the tab to hold focus.
… about it why: A review of the recorded results found checks that could pass by accident (a substring id match, "12 passed" satisfying "2 passed", the run step found by a name pattern), no negative test for any of them, a tmux that still read the host's XDG configuration, a server left running if it would not exit, no scan for host names in the committed files, and a page line that claimed shortening that did not happen. what: - scripts/lib/mcp-transcript-checks.mjs holds the checks: ids matched whole against earlier results, the run step named, its output field matching "2 passed" on a word boundary, and exit status 0. A test fails each one and a host-name scan runs before a recording is written. - The recorder unsets the XDG configuration paths for tmux, rewrites the sandbox's real path as well as its link, and always kills the server's process group when it did not exit by itself. - The page says results are shortened only when one was, says the project directory was replaced by a fixed path, and calls the output block what it is, the last result's output field. - The call and result blocks' margins outrank the article's own code spacing in the overview.
… a fragment once why: A deep link to the preset picker loaded a 24,000 px page, and the browser's fragment scroll was followed by the anchor script scrolling again after the layout moved, so the page jumped twice. The picker already paints the requested preset before first paint (head script, selection rules, one grid cell for all presets), so the gallery below it and the second scroll were the parts left to fix. what: - Give each .ws-example content-visibility: auto with an intrinsic block size, and lay out the example a fragment names in full. The content stays in the HTML for search and for readers without script. - Skip the anchor script's startup scroll when the browser has already placed the target at its scroll margin; a target that moved still scrolls. Clicks and opened disclosures scroll as before. - Test the single grid cell rule (no per-preset display or height), the lazy gallery rule, and the placed and moved fragment cases. - Add check-workspace-shift.mjs to check-home-launcher.mjs: a cold deep link, an unknown preset and the default must shift under 0.01 with no scroll after the first. It is only syntax-checked here.
…er the title
why: The workspace overview heading read as one long line. The language
pages already set a name over a muted tagline; the overview now does the
same, so "tmux workspace manager," leads and "forged in Rust." follows.
what:
- Split each workspace overview title into title "tmux workspace
manager," and a new subtitle "forged in <Language>." for the eight
shared ports and the ruby, julia and powershell pages.
- Add an optional subtitle to the docs schema, pass it from DocPage and
render it in DocsLayout as a paragraph beside the h1, as the language
hero's tagline is, so the heading is the title alone.
- Keep the short tab title ("Rust-based tmux workspace manager") as is.
- Add workspaceSubtitle to product-copy and update the tests that
asserted the one-line title.
…apability showcase why: The Core Library page opened with an install block and said nothing about what libtmux is. The maintainer asked for the Python front page's order and voice, and for the Core tab to showcase what the library does with examples that are tested, not a single quickstart. what: - Title the page "tmux client library for <Language>" and open with one sentence built from the capabilities the port's API model backs: servers, send keys, control mode, capture. The language page repeats it under the hero. Drop the version note and the Core Library lead. - Order the page as cards, Install with the registry's pin range for pre-1.0 releases, At a glance, What it does, the typed and CLI lists, Know where you're running and Testing; show one install block. - Add CoreShowcase: a searchable capability list beside the selected example, a dropdown on narrow pages, selected by ?capability= and independent of ?product=. The Core tab and the Core page share it and fall back to the quickstart for a port with no executed example. - Record each example in data/core-capabilities.json with its file, anchors, CI workflow and command, and the files that check its result. A test refuses an entry without that evidence and reads each claim from the revision-bound example cache. TypeScript has typed-graph, watch, send-keys and create-windows, run by the examples gate. - Cache the files the entries cite in example-sources.json.
…after review why: The review found that the showcase list reused the global picker enhancer, which could close it on a wide page; that the TypeScript send-keys assertion could not tell typed keys from output; and that the description named server creation for ports whose symbol only validates or describes. what: - Give the showcase its own list, search and narrow-width dropdown, closed on narrow pages by default, and render-test it. - Drop the TypeScript send-keys entry, whose assertion matches the echoed input, and state the CI working directory in each caption. - Drop the server clause for Elixir and Ruby and point Go at Server.Start.
…hifts why: A review found the split title left a bare "tmux workspace manager," as the h1, so search results and heading lists lost the language. It also found a tab tooltip closed by the strip scrolling its own tab into view, a touch check that could not fail, and an anchor guard that ignored the page's scroll padding. A cold deep link still showed a 28 px shift (0.0126) from something above the picker, which the check could not name. what: - Render the subtitle as a block span inside the h1, so the heading reads "tmux workspace manager, forged in Rust." to search and screen readers while the subtitle sits on its own line in a lighter size. - Reposition the tab tooltip, rather than close it, when its own strip scrolls; page scrolls still close it. - Count the root's scroll padding in the anchor guard's placed check. - Make the touch step of check-workspace-hover.mjs use a row that is not the committed one. - Print each layout-shift source (element, y and height before and after) from check-workspace-shift.mjs, so a failure names the element.
…irst paint why: A cold deep link shifted 0.0375. Root traced it to the workspace overview's concept notice: its "libtmux for Rust" link, written by ProseText as a.api-mention > code.api-literal, re-wrapped from two line boxes to one after first paint, adding a line to the notice. ProseText writes markup that only api.css styles but did not import it, so the styles reached the page only when another component or script pulled them in. what: - Import api.css in ProseText, so a page that renders a sentence has its literal and mention styles in the head before first paint. - Snapshot the notice link's computed white-space, overflow-wrap, font and the stylesheet count at DOMContentLoaded, load and page-ready in check-workspace-shift.mjs, and print them with the shift sources, so a failing run names the rule that arrived late.
… and fonts in the shift check why: Review showed the route already imports api.css through ProductApiPage and ProtocolReference, so the import changed nothing for this page and could reorder unlayered CSS on pages that did not load it. The notice's link re-wraps because its paragraph or column width changes, or a face swaps, not because that stylesheet arrives late; the check could not tell which. what: - Remove the api.css import from ProseText. - Snapshot the main, notice and paragraph widths, loaded font faces, the link's line-box count and its ::after content at DOMContentLoaded, load, page-ready and 1.3 s, and print them with the shift sources.
…rt in the shift check why: The previous diagnostic snapshots fired at DOMContentLoaded, load and page-ready, all after the 2067 ms shift, so they only showed the settled page. This run also moved the panel down 28 px while it shrank 28 px, so the notice may not be the element that grows. what: - Sample from an init script once per animation frame, keeping a line only when it changes: main, notice, paragraph and panel boxes, the link's line boxes, stylesheet and loaded-font counts, html classes, and the height of every child of the article. - On a failure print the samples within 400 ms of each shift, with the shift sources, so the child whose height changes is named. - Run directly: node scripts/check-workspace-shift.mjs [base].
…ep; tighten the Core page why: Root's preview showed the lead repeating the H1, a select, a search box and a list stacked in the narrow-looking left column with clipped code, a pin tip naming the language and an old version, and a CI check that a deleted workflow step would not fail. Rust, Ruby and Go also had no showcase examples. what: - Start the Core page lead at "Control tmux, ..." and end it with a period; the language page keeps the full sentence. - Show the search and list on wide pages and the dropdown on narrow ones, give the code column the width beyond a 14rem list, scroll code inside its block, and drop the caption that repeated the capability name. - Write the pin tip from the package name and the registry's latest version. - Match the CI step by job, name, working directory and run command, and test that removing it, or changing its directory, job or command, fails. - Add Rust (typed graph, create windows, send keys), Ruby (typed graph, create windows, send keys) and Go (typed graph, watch, run applications, create windows, set layouts) entries, each re-read at the revision the API model pins, with the runner and the assertion that make its run fail.
why: The maintainer wants the split replay on every port with its own MCP server. Python's server reports the layout in list_windows as window_layout, in the JSON form the TypeScript and Rust servers use. what: - The recorder builds the Python server (uv sync with the interpreter the repository pins, 3.14) at the snapshot revision and replays the split example on a private tmux; site/src/data/mcp-transcripts/py.json holds the 6 calls and their answers. - The replay reads create_session's session_id, session_name, window_count and active_pane_id, a split pane's pane_id, pane_current_command and pane_current_path, a window's window_id, window_name, window_index and window_layout from a result list, and the window of a split pane from the split result. The agent's answer skips the bare prompt a run leaves. - Tests derive Python's frames, trace each field to the recording (a count or index sent as digits in a string is read as the number) and place the panes at the recorded layout.
… bar depth why: The maintainer asked for the expanded results to be highlighted like every other JSON block, and for a prettier progress bar: today the track and the step markers are flat and the same tone on the dark theme. what: - Each recorded result renders through the site's own code block (the same Expressive Code and theme as other JSON), with no frame of its own, inside a body that scrolls at 12rem so the chat keeps its fixed height. - The unplayed track is a muted tone with a slight inset; the played part is the accent with a soft glow. The markers have a ring and a shadow, played ones take the accent, the current one is larger with an accent ring, and hover enlarges a marker. Colours come from the site's tokens, and the transitions stop under a reduced-motion preference. - A test checks that each result goes through the code block as JSON with no frame, inside the scrolling body.
why: The maintainer wants the split replay on every port with its own MCP server. Java's server reads the layout through get_tmux_variables, as the Rust one does. what: - The recorder builds the Java server (gradlew :libtmux-mcp:installDist) at the snapshot revision and replays the split example on a private tmux; site/src/data/mcp-transcripts/java.json holds the 7 calls and their answers, with the layout from window_layout. - The replay takes a window's id and name from a pane listing's window_id and window. - Tests derive Java's frames, trace each field to the recording and place the panes at the recorded layout.
why: The maintainer wants the split replay on every port with its own MCP server. The C# server serves F# and PowerShell too, so its recording covers their MCP tab. what: - The recorder builds the .NET server (dotnet build, Release, two build nodes, 6 GB cap) at the snapshot revision and replays the split example on a private tmux; site/src/data/mcp-transcripts/csharp.json holds the 6 calls and their answers, with the layout from list_windows. - The replay reads output sent as an object with lines, a session named only by the create request, windowId and sessionId in a result list, and a killed session named by sessionId. The recorder's check reads that output shape too. - Tests derive C#'s frames, trace each field to the recording and place the panes at the recorded layout; the words check now covers every recorded port.
why: The maintainer wants the split replay on every port with its own MCP server. The C++ server documents "vertical or horizontal" for a split, and its recording shows which of them puts two panes side by side. what: - The recorder builds the C++ server with the repository's cxx-gcc preset at the snapshot revision (8 GB cap, two build jobs) and replays the split example on a private tmux. This host's clang cannot link the default preset's libc++ (the linker finds no libunwind), so the gcc preset builds it; site/src/data/mcp-transcripts/cxx.json holds the 7 calls and their answers, and "horizontal" gave the side-by-side layout. - The recorder's check reads a run's text as `text` and its status as exit_code, and the replay reads that text and a kill answered by session_id. - Tests derive C++'s frames, trace each field to the recording and place the panes at the recorded layout.
why: The maintainer wants the split replay on every port with its own MCP
server. Swift reads the layout through get_tmux_variables.
what:
- The recorder builds the Swift server (swift build --product libtmux-mcp) at
the snapshot revision and replays the split example on a private tmux;
site/src/data/mcp-transcripts/swift.json holds the 7 calls and their
answers, with the layout from window_layout.
- This host has no libxml2.so.2, so swift-build did not start ("error while
loading shared libraries: libxml2.so.2"). A directory holding a link of
that name to the installed libxml2.so.16, on LD_LIBRARY_PATH, let the
toolchain run; the server it built does not use that library. The link was
removed afterwards.
- The replay reads windowCount, windowID, currentCommand and currentPath.
- Tests derive Swift's frames, trace each field to the recording and place
the panes at the recorded layout.
why: Ruby's MCP server has no split tool, so its worked example stays the
single-pane read; the maintainer asked that it at least get real results.
what:
- The recorder starts a tmux of its own on the sandbox's tmpdir with one
session running cat, because the Ruby server borrows a running tmux, and
replays the two read calls (tmux_capabilities, tmux_snapshot) through
bundle exec in the checkout at the snapshot revision. The last answer must
state pane %0. site/src/data/mcp-transcripts/ruby.json holds the answers;
the capabilities answer carries the criteria schema, so the page shortens
it.
- Results shortening now also keeps an object's first twelve keys and
replaces anything nested more than five levels deep with an ellipsis; a
bug that passed a list index as the depth is fixed.
- The replay unwraps { ok, data } answers and reads a pane snapshot's items
into a pane in a window of an unnamed session; it draws no brackets for a
session with no name and says "No sessions" only after a session was
removed.
- Tests derive Ruby's frames, trace each field, and cover the shortening.
This was referenced Nov 1, 2026
why: A review of the per-port recordings found the host name in five of them (tmux titles a new pane with it), a cleanup that killed only two named sockets, a run tool found by its name so a differently named one would skip its checks, no negative test for the new answer shapes, a provenance line that said pytest ran for Ruby's read-only example, and a result body whose frame border Expressive Code's own rules could outrank. what: - The pane titles that were the host name read "host" in the recordings, and the recorder rewrites a whole value equal to the host or user name the same way, which its short-name guard could not see. - The recorder kills every server socket under the sandbox, and finds the tool that runs commands by the requests that carry a command. - Tests fail each answer shape (output, text, lines in an object, exit_code) and the last-answer check; each split recording must leave the first pane with the test output, the second with the log, and no session after the kill. - The provenance line names the test runner only where a command ran, and the result body's frame resets use three classes.
why: The maintainer found the replay's play, pause, back and forward buttons nasty: the characters they used can render as coloured emoji on some platforms. what: - Play, pause, replay, previous, next and full screen are inline SVG icons in the style of the site's header icons: 16px, a 1.5 stroke in the current colour, round joins. The play button shows the icon its state names, and each button keeps its aria-label. - A test fails if the component or its stylesheet holds any character a platform can turn into an emoji (pictographs, U+23E9-23FA, U+25B6, U+25C0, U+26F6, the variation selector U+FE0F, the keycap mark), if a button has a text glyph instead of an icon, or if the play button's icon and label disagree with its state; a control shows the check catches those glyphs.
why: On the MCP overview the replay sits in an article, and its prose styles leaked in: the JSON arguments and the provenance line's code showed as boxed chips, and tool names took the article's link weight and underline. On the language page's MCP tab, which is not an article, the same component looked clean. what: - The replay and its provenance line carry not-prose. - The inline-code chip rule (global.css, .prose code) ignores not-prose, so mcp-replay.css, which is unlayered and so outranks that layered rule, undoes the chip: no padding, background, colour, weight or backticks. Tool names inside the replay take one link style everywhere (the surrounding colour, a dotted underline) and the provenance line's links another, so both places render alike. - A test checks both classes in the recorded and requests-only forms, that the reset declares each undo, and that the rule it undoes still exists.
…omium page why: Every case in workspace-picker.outer.test.ts failed. The test builds one classic script from the picker's TypeScript, and the picker now imports the home page's hover binding and the status badges' hover delay. The transpiled import lines are a syntax error in a classic script, so the picker never defined its element. what: - Build the page's client script from home-hover-preview, status-toggletip and workspace-picker in that order, dropping import lines the way the unit test does. The assertions are unchanged. - Verified: all 59 cases pass; making the picker leave every panel reachable (panel.inert = false) fails the five "paints nothing of a preset that is not shown" cases.
…h a button
why: An independent review found two things. The recorder's leak check skipped
names under four characters and its rewrite only mapped whole values, so on a
machine whose user and host are both "d" a name inside the JSON text of a
result was neither rewritten nor flagged, and the committed files showed a
rewrite the script could not make. And the replay's calls were tab stops that
pinned on click, Enter or Space but carried no role and no pressed state.
what:
- sanitize() in the recorder's checks rewrites a host or user name as a token
(not part of a longer word, path, option or file name) wherever it is in a
string, inside JSON embedded in text too, and the sandbox paths wherever
they occur. leaks() refuses a name of any length as a token or quoted
value, and a place as text. The recorder uses both; a test covers
{"pane_title":"d"}, escaped JSON, near misses such as "id" and "-d", the
rewrite being a fixed point, and every committed recording being clean and
a fixed point of it.
- Re-recording TypeScript and Rust with the script writes files byte for byte
equal to the committed ones. Python's differs only in values that change
every run (pids, tty, creation time, elapsed seconds), and carries the same
"host" title the script now produces; the committed file was kept.
- Each recorded call has a real pin button with an accessible name and
aria-pressed; the calls themselves are not tab stops, and the buttons are
one tab stop that Up and Down arrows move along (Left, Right, Home, End,
Escape still step and unpin the replay from a button). A click on a call
still pins it for a pointer. The buttons show only once script runs.
- Tests cover the buttons, the pressed state, the single roving stop and the
ends of the list, and the pages without script or without a recording.
why: astro check read sanitize() and leaks() as taking empty arrays, because their defaults had no declared types, and failed the test file that calls them with names and paths. what: - sanitize() and leaks() declare their parameter and return types.
… API uses by call form why: An independent review of #232 found three defects in the Core and picker work: the "Choose documentation" count included the Home row, the Core page cards could open pages that do not exist (an Examples card for Elixir, an examples/ link for Lua), and the APIs-used list counted a symbol as used if its bare name appeared anywhere, including in a comment, a string or as a same-named method of another type. what: - Count only the products in the picker title and test it. - Remove the Core cards whose page the port does not have, and resolve every card of all 16 ports against the content collection, the shared pages the port shows, its staged guides and the reference, with a case for a card that does not resolve. - Blank comments and string literals (keeping Ruby interpolation) before matching, and require the call form for a method (.name, Type::name or &:name) while a type stays bare; test a name only in a comment or a string, a bare word that is not a call, and the same names in Go and Ruby.
…azy gallery why: Parsing the contents rail before the article fixed the late column change but made keyboard and screen-reader users pass every "On this page" link before the article, against WCAG 2.4.3 and 1.3.2. The lazy example gallery (content-visibility: auto) left skipped examples' headings without boxes, which can mislead the contents scroll spy, and its 48rem estimate makes the scrollbar jump. Its original cause, the late column, is gone. what: - Put the rail after <main> in source again. The wrapper, which precedes <main>, carries a server-written docs-has-toc class. From 80rem it reserves the rail's 16.5rem with end padding and the rail sits out of flow in that space; the reference grid fixes three columns from the class instead of finding the rail with :has(), which waited for it. Below 80rem nothing is reserved. - Remove content-visibility and the intrinsic size from .ws-example. - Test the source order (article before rail), the reservation on the wrapper at 80rem and not below, a single rail, and that the lazy gallery rules are gone. - Verified on a dev server of this tree (port 54321, stopped by pid): check-workspace-shift.mjs reports a shift under 0.01 and one fragment scroll for the deep link, an unknown preset and the default.
why: The last change removed the Guides, Examples and Topics cards of the Core page for Ruby, Lua and the other source-guide ports because the content collection holds no such page. Staging writes them at build time from the port repositories, so the cards were working navigation. what: - Name the staged sections in port-documentation.ts (stagedSectionsFor) and have scripts/stage-port-docs.mjs write exactly those, so the test and the build read one list. - Count them, with the staged guides, as routes in test/core-routes.ts, and restore the cards for ruby, lua, powershell, julia, elixir, kotlin, scala and fsharp that resolve through staging. - Keep the negative cases: a card to a page nothing writes fails for elixir, ruby, cxx and kotlin. Elixir examples resolves, because staging writes its overview.
why: CI's block-link check failed: each tool name in the replay's call rows carried a dotted line but was a block link. The tool-name link was itself a flex item of its row, which makes a link a block, and the replay's own stylesheet gave it a dotted underline besides. The site draws the dotted line only on an inline link in a run of text. what: - Each tool name is an inline link inside a span of its own, so the link is an inline text run and takes the site's preview treatment (a dotted line once a hover preview marks it). The replay no longer sets a text decoration on its links; it keeps only the colour and weight reset that stops the article's styles. - The block-link check's quick run now includes the two pages the replay sits on, /rs/latest/ and /go/latest/mcp/, so the sample gate would have caught this. - A test checks the span and that the stylesheet draws no dotted line. - Run before pushing: checkBlockLinksUndecorated over every page it lists, against a dev server of this tree, passes. It failed with the old markup on the same server, with the errors CI reported.
… Library on /core/ why: CI (test-all) failed check-status-badges.mjs:121: it opened the language page /<port>/latest/ and expected the picker trigger to show Core Library's badge, but that page now reads "<Language> Home" and states no product stage. The navigation check also compared the trigger label with an ending that statuses have since extended. what: - Open a Core Library page (/core/, at the version each port is served at) for the product picker rows, the trigger badge and the touch tap, and add a check that the language page trigger reads the language and Home with no badge and no stage description. - Skip the Home row in the "second badge" control, which has no label to follow. - Match the history label by its content, not its ending. - Run: check-dev --status-badges and --documentation-navigation pass locally (CI=1, after staging the port guides).
why: The language Home is no product's page, so its documentation picker lists Home and every product group closed. The API navigation check still clicked Core's API Reference straight from the Lua Home and timed out on a link inside a closed group, failing CI on #232. what: - Open the Core Library group before choosing API Reference on the language Home. - Assert the group starts closed on the Home and open on a Core page.
…re/ home
why: The assembled-site test still described the old port home. The
home now links each product from its tab panel ("All tools by tier →")
as well as from a named link, the Workspace heading carries its subtitle
inside the h1, and the Core Library home moved to /<port>/<version>/core/.
CI failed on all three on #232.
what:
- Require one of the home's links to a product to carry the product's
name, and that every such link resolves, instead of reading only the
first link.
- Expect the native Workspace heading to read title and subtitle
together.
- Expect an unavailable product's page to point the Core Library at
/core/.
…s 30 s budget why: "opens a product overview with its install picker, then its section cards" parses every product overview in the assembled site, including the new Core homes and the MCP pages that now carry the recorded replay. It passed under vitest's 5 s default at a2d7cc7 and timed out at b05ad13. The site was identical in both runs; only this test file changed, in other tests. The default is a runner budget, not a claim about the pages. what: - Pass 30_000 as the test's timeout, as the file's other whole-estate loop already does.
tony
temporarily deployed
to
docs-preview-cleanup
November 2, 2026 10:20 — with
GitHub Actions
Inactive
tony
added a commit
that referenced
this pull request
Nov 3, 2026
…#246) why: Two features from #232 passed every docs-side check and broke in the ports' own docs builds, which regenerate their MCP snapshot and example sources at the port's head. On the live site after the r11 wave, the MCP worked example showed "Requests only" with no tmux preview on every port but Python: a recording counted only when its revision equalled the snapshot's, and a port build's snapshot is always at the port head. Ruby's docs build failed outright: the Core showcase required `require` at column 0, and Ruby's examples indent it inside `begin` so README excerpts carry it. what: - A recording counts while every tool it calls is still advertised with the input and output schemas it was recorded against. Each transcript stores those schemas as `contracts`, backfilled for the nine committed recordings from the snapshot at their own revision. A changed or missing schema, a missing tool, a result whose tool list differs from the advertised set, or a transcript without contracts falls back to requests only. - The provenance line names the revision the results were recorded at and, on a page that documents a different revision, says the calls keep the same schemas there but the results may differ. Where no output schema was recorded it claims input schemas only. - The recorder scans a transcript for host paths and user or host names without its contracts, so schema patterns such as `^%\d+$` no longer read as a user name, and Windows-style paths are caught again. - Ruby's showcase completeness rule accepts an indented `require`; a commented require and `require_relative` are still refused. - A test regenerates each recorded port's snapshot at another revision, as a port build does, so docs CI now sees this class of break.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #231
Why
The capability directory on a type page ("What is on here": guidance beside chips of the members it covers) drew only for TypeScript, Java, C#, Rust and Go, because
REFERENCEinapi-directory.tsknew four spellings of a reference. A directory in any other port's doc comment rendered as prose. The spelling a source file uses is also not always what the extractor hands the shell, so each syntax below was read off the extractor's output, not the source.What changes
groupDirectoryandreferencesOnlytake the port's language, whichApiProse.astropasses asindex.language. The first five ports, F# and a caller who names no port read the four shared spellings (rustdoc[`name`], XML<see cref>,{@link}, Go[Name]), so the five existing ports read what they read before. Every other port reads a list of its own: only the spellings that its tokenizer inroles.tsresolves to a reference, so each reference reads as a reference span and no port reads another's extras. The shape rule is unchanged: three or more bold-led guidance paragraphs, each followed by a paragraph or aLabel: ...list holding only references.py:class:,:meth:,:attr:,:func:,:exc:,:obj:,:mod:,:data:,:const:, and:py:class:,:py:meth:,:py:attr:,:py:func:; any other role stays text, as in the tokenizerswift``Server/kill(_:)-(Session)``elixir`fun/arity`,`Module.fun/arity`,`Module`,`t:t/0`,`c:init/1`, and[text](`Module`)kotlin[label][target]added;[name]was already the Go form, and{@link}is keptscala[[name]]and[[target label]];{@link}is keptcxx<ref>stripped:\ref xand@ref xarrive as the bare wordx, backticks arrive as code spans, and lists are flattened to paragraphs`at_socket_path()`,`Session::windows()`luarawdescMarkdown`Server:close`,`libtmux.Runtime:connect`rubydocstring.to_s, verbatim{#name},{Class#name},{::Class},{Class.name label}julia[`name`](@ref),[`name`](@ref Target)and[text](@ref); the first was already read as the rustdoc formpowershellGet-TmuxSession,LibTmux\Get-TmuxPaneandLibTmux.Server, bare or in a code spanTwo things the port PRs need to know. C++ must write backticks, because
\refand@refreach the model as a word no parser can tell from prose, and its groups are single paragraphs, because Doxygen flattens- Label: ...lists. Lua has no link syntax of its own, so its references are code spans too.Verification
site/test/api-prose.test.tsfails when its pattern is removed. I removed each port's list, each alternative of the multi-pattern ports, and the branches (py:prefix, Elixirc:/t:prefix and?/!suffix, Ruby?/!/=suffix and leading::, the shared spellings kept by Kotlin and Scala) one at a time; only the tests of that syntax failed.rs, DocC inpy, a Javadoc link inswift,#{Foo}and a label holding a code span inruby,$variablenames inpowershell, options such as-Sand%0incxxandlua).refspan totokenizeDocfor its port, and for Python every role the tokenizer knows is compared with the directory role by role.site/test/api-doc-mentions.test.tsrendersApiProseon a Server page for every port and requires a linked chip for each reference; the same text on atspage stays paragraphs.ApiProsefor every symbol summary and body in all sixteen models pinned onmain, and for thets,java,csharp,rsandgomodels of the pending pin wave (the pins onmainpredate their directories; the newer ones draw 14 to 23 directory rows each), once withorigin/main'sapi-directory.tsandApiProse.astroand once with this branch. All twenty-one outputs are byte-identical. That check was a throwaway test and is not committed.vitest(the touched files and the wholesitesuite),oxlintandastro checkran throughheavy.sh: the suite passes, andastro checkreports 0 errors and 0 warnings. Theoxlintwarnings are in files this change does not touch.astro checkneeds a 6 GB Node heap on this host; the first run at the default heap aborted with an out-of-memory error.py:roles, the shared spellings leaking into ports whose tokenizer does not read them, and untested branches; the head fixes each, and the exact head was reviewed again and approved.No port's Server doc is restructured here, so no page on
mainchanges. The port PRs (sub-issues of #231) turn their directories on once their pins land.Port home titles and a Core Library home (#240)
Closes #240
/<port>/<version>/core/is a new Core Library home beside/mcp/and/workspace/: the Server, Session, Window, Pane table with each port type linked to the API reference, a typed-API list, what the library adds over the tmux CLI, the install block, the tested example and cards to the guides. The language page keeps the three-product selector, and its Core panel links to the new page. The Core Library entries of the surface picker (Home and Overview) point there.site/src/data/core-home.jsonand resolved against each port's extracted API model bysite/src/lib/core-home.ts. A missing, internal or non-core symbol fails, as does a symbol that does not show what its capability needs (an ID, a filter, an error type, a version error, an async signature). A port without a capability does not list it.MCP and Workspace landing tabs (#239)
Closes #239
tools/listsnapshot, the MCP overview's worked example (the prompt, then each call with its tier badge), the install picker, then links to all tools by tier and to every tool. The program excerpt sits behind a closed "Embed the server in a program" disclosure that keeps its source and CI step.McpWorkedExamplecomponent, so its calls are the onesmcp-showcase.test.tschecks against each tool's input schema. A port served by another port's package (PowerShell uses the C# server) shows the picker and the links, no calls.WorkspaceWindows), then the install. Theloadcommand from the CLI manual data shows only where a test runs it on that file (TypeScript, Go, C#, Ruby); Python, Rust, C++ and Julia show the file and the evidence line without it, and PowerShell, whose manual lists no program, shows none. Java and Swift have no tested workspace file, so they show the install and links. The excerpt sits behind "Build the workspace from a program".\continuations, one step per line (the C++ MCP build matches the C++ guide); MCP client commands wrap at word boundaries, and JSON and TOML configs get no backslashes.site/test/install-line-width.test.tsfails on a wider line for any port's package or MCP install, checks withbash -nthat each multi-line command parses, and runs the pnpm commands against a stub.Recorded results (#239 item 4)
scripts/gen-mcp-protocol.mjsstarts each port's server from a clean checkout of the port's docs worktree and writessite/src/data/mcp-protocol/<port>.json; it is run by hand in this repository, not by a port's CI. The recorder follows the same pattern:scripts/gen-mcp-transcript.mjs --port <port>replays that port'sEXAMPLEScalls (now insite/src/lib/mcp-examples.ts) against the server built from a clean checkout at the snapshot's revision, on a tmux of its own (privateTMUX_TMPDIR,HOMEand XDG paths; never the default socket), in a project with a real pytest. It writessite/src/data/mcp-transcripts/<port>.json.outputlacks2 passedor whose exit status is not 0, and any host path, user or host name in the file.site/test/mcp-transcript-checks.test.tsfails each check on a bad input.McpReplay, replacing the static example on the MCP overview and the landing tab). A 30rem frame holds an agent chat on the left (the prompt; per call the narration, a tool row with its tier badge and one-line JSON arguments, and a collapsible recorded result, abbreviated; the agent's answer quoting the last line the pane printed) and a tmux preview on the right: the window drawn with the Workspace Manager's layout renderer, a status line such as[checks] 0:sh*, and the typed command and recorded output in the pane.lib/mcp-replay.tsderives each frame from the recorded requests and results only; a fact the recording does not state is left out (TypeScript'screate_sessionresult gives no window index, so the tab reads@0). List calls ring what they read;kill_sessionleaves "No sessions".EXAMPLESwith no failed step. The preview and the page name the repository, revision, tmux and pytest versions.scripts/gen-mcp-transcript.mjsagainst a build at the snapshot's revision, in a privateTMUX_TMPDIRandHOME, underheavy.sh: TypeScript (6 calls), Rust (7), Go (7), Python (6), Java (7), C# (6, which PowerShell uses), C++ (7), Swift (7) and Ruby (2, read-only). The worked example splits: it createschecks, splits the window into two panes, reads the window's layout, runspytest -qin one pane andcat checks.login the other, then removes the session. Geometry is a recorded field: a layout (list_windowslayoutfor TypeScript, C# and C++;window_layoutfor Python;get_tmux_variableswindow_layoutfor Rust, Java and Swift) or, for Go, each pane's position and size fromlist_panes.lib/tmux-layout-string.tsreads a layout (tmux's own string or the JSON form these servers return) into rectangles, andMcpReplaydraws the split with the Workspace Manager's renderer (renderRects, whichrenderLayoutnow calls). Before a layout is read, a window of several panes is a labelled list with no sizes; geometry is never guessed. The sandbox project directory is shown as/home/user/project, the host name ashost, and the page says the first.Pkg.precompile()fails while loading ModelContextProtocol:ERROR: LoadError: Precompiled image Base.PkgId(Base.UUID("cd3eb016-35fb-5094-929b-558a96fad6f3"), "HTTP") not available with flags CacheFlags(; use_pkgimages=true, debug_level=1, check_bounds=0, inline=true, opt_level=2)at.../ModelContextProtocol/src/transports/http.jl:3(Julia 1.13.1 is the only 1.13 here). Its example also passes an opaquegenerationthatlist_panesreturns per server start, andEXAMPLESarguments are static, so a faithful recording needs request templating as well. Julia keeps requests only. Lua and Elixir MCP packages are unpublished stubs and are left as they are.cxx-gccpreset because this host's clang cannot link the default preset's libc++ (the linker finds no libunwind). Swift'sswift-builddoes not start here withoutlibxml2.so.2(error while loading shared libraries); a temporary link to the installedlibxml2.so.16onLD_LIBRARY_PATHlet the toolchain run, and the server it built does not use it. Kotlin and Scala have no MCP server of their own in the site.--checkagainst the port's own server, and a workflow step here that runs--checkfor every port with a recording (today--checkre-records and compares revision, tools and arguments, not the answers); Julia's build and request templating above; a split tool for Ruby and Julia.sitesuite (255 files pass; the only failures are intest/workspace-picker.outer.test.ts, a Chromium suite that fails the same way on the branch tip before these commits) andastro check(0 errors). The replay tests derive frames from every recording, check every frame field (a layout included) against the recording field that supplies it, check every word the preview draws, check that each split recording leaves the first pane with the test output, the second with the log and no session after the kill, and drive the controls, the no-script markup, the reduced-motion start and the requests-only form.site/test/mcp-transcript-checks.test.tsfails each recorder check on a bad input.site/test/product-docs.test.tsneeds an assembled site and runs only in CI. Nothing here was checked in a browser: the 30rem frame, the column switch, the stacked layout at 390px, how two narrow panes show the pytest line, the highlighted result blocks and the progress bar are for the integrated build.