# Changelog All notable changes to this project are recorded here. The project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html) per package and is released from a version tag (`vX.Y.Z`). A release only republishes packages whose version changed; `pnpm` skips versions already in the registry. ## Unreleased ### Fixed - `examples/chirp`: a chirp that says nothing (empty or only whitespace) is refused by the compose form, the editor and the server, and the table's `CHECK` refuses an empty body. ## 0.43.0 Nothing needs changing unless your code reads the output of the checker, which reads the rules and writes you declared on your entities and says which write can break which rule (`Laws.check`). If it matches on a report's findings, verdicts or evidence, add the new cases (`Unmeetable`, `Bounded`, and the `by` values `vacuous` and `bounds`); if a test pins `Laws.show`'s text, update it. A report that was green can now show a pair: a write that relinks the relation a rule reads through is judged, where it was skipped. What is new. The checker decides rules over numbers (a deposit never overdraws an account), shows the row that breaks a refused rule, and says what is left unproved. You can bind a rule to a state (`Entity.invariant`'s `in`), name a rule over a change (`Entity.transition`), take an amount away with `decrement`, and let a write's `when` read the row. Versions: 43 packages are a new minor: `foldkit-entity`, `foldkit-metadata`, `foldkit-remote`, `foldkit-remote-drizzle` and `foldkit-surface` changed their published files, and every other package that depends on one of them follows. `foldkit-bundle`, `foldkit-durable`, `foldkit-host`, `foldkit-react` and `foldkit-react-codegen` keep their versions. ### Added - `foldkit-entity`: `Expr.implies(condition, then)` is `Expr.or(Expr.not(condition), then)`, the same nodes, so every reader runs it already: "while open, the balance is not negative" is `Expr.implies(Expr.eq(after.status, 'open'), Expr.gte(after.balance, 0))`. - `foldkit-entity`: `Expr.add(a, b)` and `Expr.sub(a, b)`, a sum and a difference of numbers, are the kernel's primitive operators `number.add` and `number.subtract`: in `Operators.kernel` and `foldkit-remote-drizzle`'s `DrizzleOperators.kernel` (`+` and `-` on SQLite and Postgres), held to one answer by new conformance cases, printed infix by `Expr.show`, and declared commutative (`add`) and monotonic over finite numbers. A null on either side gives null; a text operand is a type error at the argument. A comparison, an order term, an invariant, a write's `when` and its `compute` read one as any number, and a sum or difference of integers computes a `Schema.Int` field. Past what a double holds the readers part: memory and SQLite give an infinity, and Postgres refuses the statement. - `foldkit-entity`: `Entity.invariant(id, build, { message, in: State })` binds a rule to the rows a write leaves in an `Entity.refine` state, as `Expr.implies(State.after, rule)`; a state of another Entity, or one reaching another row, is refused where the rule is declared. - `foldkit-entity`: `Entity.transition(id, ({ before, after }) => …, { message, path?, in? })` stores the rule `Entity.invariant` would, and refuses one that reads nothing of `before`, so a declaration says which kind it is; `Entity.readsBefore` still tells the two apart in the stored rules. - `foldkit-entity`: `Write.update`'s `decrement: { balance: 'amount' }` takes an unmapped number input away from a number field where the write commits, with `increment`'s guarantees and caveats (not idempotent: it needs `expect` or a ledger). It is bound as the amount negated (`Write.bind`'s `increments`), so every writer, guard and client prediction adds it as an increment's, and each `WriteIncrement` says which way it moves (`direction`). A field moved by both an increment and a decrement is refused where the write is declared, naming it. `WriteIncrements` is exported. - `foldkit-entity`: a write's `when` is given `row`, the row before the write as `compute` has it, beside `input`: `when: ({ row, input }) => Expr.lte(input.amount, row.balance)`. The forms without it still stand, and a `when` reading `Expr.viewer` or `Expr.now` is still refused where the write is declared. - `foldkit-remote`: `Mutation.update`'s `input` holds keys about the operation alone, each mapped to `Entity.unmapped`, which `increment`, `decrement`, `compute` and `when` read: `Mutation.update('Deposit', Account, { input: { amount: Schema.Number }, from: Open, increment: { balance: 'amount' } })` is `Mutation.write` of `Write.update(Entity.input(Account, Schema.Struct({ id, amount }), { amount: Entity.unmapped }), …)`, the same declaration, pending patch and request. `set` becomes optional beside it; a key in both `set` and `input`, or the id in `input`, is a type error at the key and refused where declared, and `increment` and `decrement` name only number keys of `input`. - `foldkit-entity`: `Laws.check` keeps a pair whose rule holds whatever the members it cannot enumerate hold (`Kept` by `vacuous`): closing an account leaves "while open, the balance is not negative" nothing to bind, where it was `undecided: balance is not finite`. It judges the rule over the rows it enumerates in SQL's three values, with the other members unknown. - `foldkit-entity`: `Laws.check` decides numbers by intervals (`Kept` by `bounds`). Each number member and input key is bounded by its Schema's checks, narrowed by the write's `from` and `when` against a value and by the Entity's state invariants, assumed to hold before the write; a set, an increment, a decrement and a `compute` through operators declaring `Law.monotonic` for each argument (`Expr.add`, `Expr.sub`) carry the bounds to the row after. A deposit of an amount checked non-negative keeps "never overdrawn". It is non-relational on purpose: a `when` comparing two unknowns (`amount <= balance`) leaves the pair `undecided`, saying so. - `foldkit-entity`: every `refused` pair and arrow carries a `witness` (the row before, none for a create; the input; the row after; the rule's id, message and path), the smallest the check found and checked by the reference judge, and a refused pair a `hint` when the witness starts in states no declared write reaches. A refusal found among the numbers has no enumerated `steps`. - `foldkit-entity`: an `undecided` pair of a declared write carries an `obligation` (the write, the rule, the state invariants assumed before it, the cases left), what a later pass such as a solver would prove; one known by its footprint carries none. - `foldkit-entity`: `LawReport.totals` counts what a report stands on (entities, states, writes, rules, pairs, kept, refused, undecided), and `Finding.Unmeetable` reports a write whose `from` and `when` no row the state invariants allow can meet. `LawTotals`, `Obligation` and `Witness` are exported. - `foldkit-metadata`: `Evidence.Bounded`, issued by `Laws.check` for a pair the numbers' bounds decided, beside `Enumerated`; `foldkit-surface`'s renderers print it `bounded`. ### Changed - `foldkit-entity`: **Breaking:** `Laws.show` prints a refused pair as `refused: ` with its witness under it (before, input, after) in place of `refused: from {…} it leaves {…}`, a refused arrow's witness under it, and a last line of totals: update a test that pins its text, and read `report.totals` or the pairs where you parsed the last line. - `foldkit-entity`: **Breaking:** `LawVerdict.Kept` gains `over` and the `by` values `vacuous` and `bounds`; `Undecided` gains `obligation` (an `Option`), and `Refused` gains `witness` and `hint` (an `Option`). A match over `by` must handle the two new values, and a `Refused` or `Undecided` built by hand (a test fixture) must carry the new fields; reading a verdict is unchanged. `Finding` gains `Unmeetable` (`{ entity, write }`): a match over every finding must add an arm for it. `LawReport` gains `totals`. - `foldkit-metadata`: **Breaking:** `Evidence` gains the `Bounded` variant, so a match over every kind of evidence (`Evidence.$match`) must add an arm; `Evidence.Bounded` is issued only by `Laws.check`. - `foldkit-entity`: **Breaking:** `WriteIncrement` (the entries of `write.increments`) gains `direction: 'increment' | 'decrement'`, which code that builds one by hand must give. A decrement appears in `Write.bind`'s `increments` as its amount negated, so code that reads that map and assumed every amount adds up must read the sign too. - `foldkit-remote`: `Scenario.fromReport` makes no scenario of a refused pair with no enumerated steps (one found among the numbers), as it made none of the undecided pair it was before. - Docs: the 0.41 release post is cut to its argument, with part two on one bank account in the forms of this release and the checker's real report (its notes say which forms are new in 0.42 and 0.43), and `docs/agents/writing-docs.md` is the one guide for writing every document, replacing the README standard. ### Fixed - `foldkit-entity`: `Laws.check` kept by disjointness, and issued an `Enumerated` record for, a write relinking the relation a rule reads another row through (`Expr.path(Claim.relations.customer, Customer.fields.name)`), since a pair's `reads` held its own row's fields alone. A pair now reads the relation each path or exists leaves its row by, so such a write is judged, and `Laws.facts` draws that read. A report that was green may now show that pair `refused` or `undecided`: it names a real gap, so declare the rule's guard on the write or accept the finding, and drop an `Enumerated` record you kept for it. ## 0.42.0 One thing to change when you upgrade. `foldkit-mixins-ui`'s `CodeBlock` `collapsed` is `{ lines, expanded?, onToggle? }` in place of `{ lines, onExpand }`: keep `expanded` in your Model and flip it from `onToggle`. The block keeps every line in the page, clipped by style, so a find and a copy reach all the code. What is new. A recipe's shipped look is one call, `Recipes.Table.style({ rows: 'striped' })`. `foldkit-remote` declares a write in one call with `Mutation.update`, `Mutation.insert` and `Mutation.delete`. `foldkit-ssr`'s `Meta` carries an image's size and alt, an article's authors and tags, and the Twitter mirrors. The website gains a blog, a phone layout and 34 more live primitive examples. Versions: 42 packages are a new minor: `foldkit-entity`, `foldkit-mixins`, `foldkit-mixins-ui`, `foldkit-remote` and `foldkit-ssr` changed their published files, and every other package that depends on one of them follows. `foldkit-bundle`, `foldkit-durable`, `foldkit-host`, `foldkit-metadata`, `foldkit-react` and `foldkit-react-codegen` keep their versions. ### Added - `foldkit-mixins`: every `Style.recipeFor` recipe, after `.add` and `.extend` too, has `.style(selection?, options?)`, `Style.forSlots(Slots)(recipe(selection), options)` in one call. The shipped look of a widget is now one line with one import: `Recipes.Table.style({ rows: 'striped' })` in place of `Style.forSlots(TableSlots)(Recipes.Table({ rows: 'striped' }))`, and `Recipes.Table.style()` is the defaults. The result is the same `NamedStyle` of the recipe's contract, so `Table.view`'s and `Table.configure`'s `style` take it and another widget's refuse it; a value or an axis the recipe lacks is a type error at the argument. An application on `AppStyle` passes `{ layer: L.layer('app') }`. The two-call form stays, for pieces composed before `forSlots`. - `foldkit-ssr`: `Meta` takes `imageSize` and `imageAlt` (`og:image:width`, `og:image:height`, `og:image:alt`) and `article.authors` and `article.tags` (one `article:author` or `article:tag` each); `twitter:title`, `twitter:description`, `twitter:image` and `twitter:image:alt` repeat the Open Graph words whenever those are given. - `foldkit-remote`: `Mutation.update(name, Entity, { set, when?, from?, becomes?, expect?, compute? })`, `Mutation.insert(name, Entity, { set, becomes? })` and `Mutation.delete(name, Entity, { when?, from? }?)` declare a write in one call: `Mutation.update('Rename', Product, { set: { name: Schema.String } })` in place of `Mutation.write('Rename', Write.update(Entity.input(Product, Schema.Struct({ id: Schema.String, name: Schema.String })), { id: 'id' }))`. The input is the Entity's own `id` field beside `set`, each field by its key with the schema the input holds it with; a key that is no field, the id, or a value its field does not store is a type error at the key. The result is the long form's value (`Mutation.write` of `Write.update` of `Entity.input`), with the same refusals, prediction and request; the long form stays for an input key named otherwise than its field, a relation, or an unmapped key. `WriteMutation` and `WriteInputFields` name the types. - Docs: the Primitives gallery on the website runs 34 live examples, each a module of its own under `examples/site/src/examples/primitives/`: the time family (`debounce`, `throttle`, `interval`, relative time), state (Pagination, SelectionSet, Locale), media (MediaQuery, Breakpoints, `platformFromUA`), events (Visibility, Idle, InputModality, keyboard and hotkeys, pointer, scroll, active element), observers (Intersection, Mutation, Bounds), motion (Spring, Presence), dom (InputMask, `copyText`, `share`, `loadScript`), device (Geolocation, `mediaDevices`, fullscreen; each behind a press), interaction (Press, Selection, LiveAnnounce, Move) and net (broadcast between tabs). Five run in a browser test, and the gallery adopts all of them on a phone. - Docs: each blog post gets its own branded social card, and `docs/upgrading-0.41.md` is a guide of the site ("Upgrading to 0.41"), which the 0.41 post links to. ### Changed - Docs: the website has a blog, at `/blog` with an Atom feed at `/blog/feed.xml`. A post is Markdown with strict front matter in `docs/blog/-.md` (`examples/site/README.md`, "Writing a post"), set as an article with a table of contents beside it or folded above it, and its head carries Open Graph, Twitter and a `BlogPosting`. The 0.41.0 release post moved there from `docs/release-0.41.0.md` and the 0.7.0 post from `docs/blog/0.7.0.md`, and `scripts/docs-check.mjs` compiles the folder's TypeScript blocks. - `foldkit-mixins-ui`: **Breaking:** a `CodeBlock` with `collapsed` keeps every line in the page and clips it by style to the first `lines`, under the fade, so a find, a copy of the page's text and an anchor reach the whole code (it drew only the first lines). `collapsed: { lines, expanded?, onToggle? }` replaces `{ lines, onExpand }`: write `collapsed: { lines: 12, expanded: model.open, onToggle: Toggled() }` and flip `open` in `update` where `onExpand`'s Message used to drop `collapsed`; an expanded block's button offers `words.collapse` (new, `Show less`). `onToggle` may be left out for a server-rendered static region whose script toggles the block: the button then carries the words it shows after a press as `data-toggled-label`. The root writes `data-collapsed="true"` or `"false"` and `--fk-code-clamp`, only when the code has more than `lines` lines. - `foldkit-mixins-ui`: a VirtualList's box is filled with `surface.subtle` (it was `surface.default`, a mid grey against a white card), the step a CodeBlock takes. - Docs: the website reads on a phone: its menu is a Sheet, the Primitives gallery's cards are bounded, and the rail, the phone menu and the outlines share one navigation link style. Every code block over 14 lines collapses to 12 under a fade with a button for the rest (the first use of `CodeBlock`'s `collapsed`), and the 0.41 post is rewritten as an argument with its own images, with the upgrade steps moved to the guide. - Docs: the demos' pages are laid out for a phone: the todo app, data grid, registry, pages, rich-text playground, widgets, Chirp, Cloudflare CRUD and CMS demos take less around their content, with tighter headers and controls. - CI: the release workflow runs no checks of its own, makes the GitHub release from this file's section for the tag (falling back to a summary when the section passes GitHub's length limit), and redeploys the website and each demo whose sources changed when the Cloudflare secrets are set. ### Fixed - Docs: on a touch screen the website's Copy button takes a band above the code, and a primitive example's button and the footer's links are 44px targets. - Docs: the registry demo's grid takes what the rows above it leave, so the page no longer scrolls 93px past the screen on a phone; the pages and rich-text playground formatting bars are one row of 44px targets on a touch phone; and the CMS page builder opens on the page on a phone, under one row for the title and the address. ## 0.41.0 What to change when you upgrade. `foldkit-mixins-ui` is reshaped (#589), and most of it is a rename: - A widget's fixed text is one `words` object, text with `{blanks}` (`labels`, `*Label` options and functions of a count are gone); `Command`, `Tour`, `Carousel`, `Questionnaire`, `Pagination`, `Toast`, `TagsInput`, `Rating`, `Slider`, `SignaturePad`, `ImageCropper`, `FloatingPanel` and others. - A feature that pulls in code is a value you pass, so a page that does not use it does not ship it: `Table.fluid` and `Table.checkboxes`, a `Chart.bars`, `Chart.line`, `Chart.area` or `Chart.donut` as the `kind`, `Avatar.picture`, `Card.fluid`, `BreadcrumbMenu.make`, `ImageCropper.zoomSlider`; `Picker.view` takes a `choice` and a `value`. - The tone `error` is `danger` (Progress, `Recipes.Alert`); `SearchField`'s `onClear` and `CascadeSelect`'s `clearable` are the one `clear` option; `AppShell.view({ ...options, main }, h)` takes its `main` as an option; `FileInput`'s `accept` is an array; `Recipes.Badge` is a `recipeFor` that reads `data-tone`; `SignaturePad.Message.Began` carries `pointerType`; `ColorPicker`'s `eyedropper` defaults to `false`. - `foldkit-bundle` is a peer of `foldkit-mixins-ui`, for `Bundles`. - `foldkit-mixins` changes the default theme: `shadow.strength` is 70 (the default theme casts shadows), `shape.radius` 1, the accent's lightness 54, `surface.saturation` 0.005 and `menu.panel` `default`. Each is one knob to set back. Each is a **Breaking** entry under Changed with what to write instead. What is new. `foldkit-mixins-ui` gains `Bundles` (one file per stateful widget, for `foldkit-bundle`), `X.configure({ base, presets })` to bind a widget's look and words once, a slot recipe's `.add` for an axis or value it lacks, the `FileUpload` widget and its Bundle, `Frame` and `Field`, and many options on existing widgets; its website pages are now example modules. `foldkit-mixins` gains a `selection` theme group, so selected text follows the theme. Beyond the UI round, `foldkit-mixins-ui` and `foldkit-primitives` gain keyboard, focus and ARIA conformance across the widgets (`Behaviors.Keys` as the one owner of a slot's keys, `FocusRecovery`, `FocusReturn`, `Reorder`, `Presence.behavior`, the `Conformance` scenarios). A domain's laws are declared and checked (`Entity.refine`, invariants on the Entity, `Laws.check`, `Evidence`, `Closure`, `npx foldkit-plus laws`). Remote's wire carries row revisions and read-after tokens, and a server's own failure reaches its caller as `Internal error` with an incident id, never as the message of what was thrown. A mutation's answer holds only what its caller may read. `foldkit-remote-domain` is new: an Alchemy Domain Api behind Remote. Fixes include `foldkit-remote`'s Model encoding as JSON (#593), `InputMask` in a real browser (#590) and `keepScroll` on a reload (#594). Versions: 44 packages are a new minor: every package whose published files changed and each package that depends on one of them. `foldkit-remote-domain` is first published, at 0.1.0. `foldkit-host`, `foldkit-react` and `foldkit-react-codegen` keep their versions. Other breaking changes are marked **Breaking** under Changed, in `foldkit-mixins` (a view's `pipe`, composing a conditional rule, a `NamedStyle`'s type), `foldkit-mixins-ui` (Menu rows named by `value`, `TagsInput`, `Tour` and `FloatingPanel` openers, `NumberField`, `Drawer`, `Segmented` and others), `foldkit-primitives` (`PointerDrag`'s `targets`, `Press`, `Selection`, `KeyboardMessage.Pressed`, `HistoryModel`, `FocusRecovery`), `foldkit-entity` (an uncollated text order is refused; invariants belong to the Entity; a write's `when` may not read the viewer or the clock), `foldkit-guard`, `foldkit-crud` (`Crud.list`'s `live`), `foldkit-data-grid` (`Out` gains `Copied`), `foldkit-remote-server`, `foldkit-remote-drizzle`, `foldkit-cms-drizzle` and `foldkit-sync` (what a failure tells its caller). Deprecated, not yet removed: `SurfaceView.inspect`, `editsJournal`'s `absorbed` and `server`, Sync's `reasons` and a rejection's `reason`, and the `saved` input on `foldkit-mixins-form` and `foldkit-crud`. ### Added - `foldkit-mixins`: a `selection` theme group for selected text: `background` (the accent over whatever the text sits on, 28% light and 40% dark, text at AA in both), `ink` (`currentColor`, each run keeps its colour) and `fill-background` (the deeper accent, for text on the accent's own fill). `Defaults.body` paints `::selection` with them, so a theme (`Theme.compose(theme, { selection: { … } })`) and the accent knob move it, and the project website follows its theme. - `foldkit-mixins-ui`: `Bundles.Carousel.with({ id, count, perView?, loop?, ... })` and `Carousel.configure({ base, presets })`; the layout is kept in the Model so `update` and the view state it once (#589). - `foldkit-mixins-ui`: `SignaturePad.view` takes `name`, which submits the signature with a form as the SVG `toSvg` writes (new `hiddenInput` Slot; empty while the pad is empty or unmeasured, and disabled with the pad); the Meter recipe gains `size: 'sm' | 'md' | 'lg'` for the track's thickness (#589). - `foldkit-mixins-ui`: `Meter.view` takes `orientation: 'vertical'`, a track standing upright (its length `--fk-meter-length`, 8rem) with the fill growing from its block end, and `segments`, an integer of at least 2 that cuts the track into equal steps; a size is the track's thickness either way (#589). - `foldkit-mixins-ui`: a SignaturePad redoes what undo took (`Message.Redid`, `Model.undone`, a `redo` Slot and button, `words.redo`; a new stroke or a clear forgets it), and `SignaturePad.init({ pointers })` (and `Bundles.SignaturePad`'s args) names the pointer kinds that may draw, `'mouse' | 'pen' | 'touch'` (`SignaturePad.PointerKind`), so `['pen']` ignores a resting palm (#589). - `foldkit-mixins-ui`: `Bundles.Marquee` (args `{ id, paused? }`), `Bundles.ImageCropper` (`init`'s options; reports `ImageCropper.OutMessage`, `Exported` or `FailedExport`, the answer to a `RequestedExport`), `Bundles.SignaturePad` (`{ id, pen? }`; reports `SignaturePad.OutMessage`, `ExportedPng` or `FailedExport`) and `Bundles.FileDrop` (`{ id }`, over upstream's Model; reports `FileDrop.OutMessage`, `ReceivedFiles` or `RejectedNonFiles`) (#589). - `foldkit-mixins-ui`: `CodeBlock.view` takes `startLine`, `gutter(line)` (a line's gutter text), `marks: [{ line, kind }]` (`data-mark` on a whole line: `added`, `removed`, `highlight`, `error`, `warning`, `dim`, `selected`), `wrap`, `collapsed: { lines, onExpand }`, `onLineSelect(line)` (each gutter a button) and `lineAction(line)` (an `Option` of Html at the line's end), with new `gutter`, `lineAction` and `expand` Slots and `words.selectLine` and `words.expand`; `CodeBlock.follow`, passed in `mixins`, keeps a growing block's end in view. The recipe gains `header: 'float'` (the copy button pinned over the code) and `scheme: 'dark'`, and each line is as wide as the widest, so a mark tints the whole row. Line numbers are drawn from `data-number` on the gutter in place of a CSS counter (#589). - `foldkit-mixins-ui`: a `Chart.ChartKind` of your own (`name`, `entries`, `points`, `head` and a `draw` given a `ChartFrame` of the lit point, the legend, the plot's attributes and a `pointer`) is drawn by `Chart.view`, which supplies the title, the legend, the status line and the data table. `Chart.bars` and `Chart.area` take `stack: true`, `Chart.line` and `Chart.area` take `curve: 'step'` and `markers: 'always'`, and `Chart.donut` takes `hole` (`0` is a pie) (#589). - `foldkit-mixins-ui`: `Bundles.Resizable.with({ share?, min?, max?, step?, collapsible?, collapsedTo? })` and `Resizable.configure({ base, presets })`. The bounds are a field of `Resizable.Model` (`init(share, bounds?)`) that `update` and the view both read when a call passes none, so they are stated once; the recipe gains `handle: 'pill'` (a capsule that takes the accent while held) (#589). - `foldkit-mixins-ui`: `ScrollArea.configure({ base, presets })` binds the look and the mixins (height, `overlayBars`); the recipe gains `gutter: 'stable'` (`scrollbar-gutter: stable`); `ScrollArea.overlayBars` is defined in `scrollArea/overlayBars.ts` and the Slots in `scrollArea/slots.ts`, re-exported under the same names, so a page that never names `overlayBars` ships no `ScrollBars` (#589). - `foldkit-mixins-ui`: a Table's column takes a `footer` (a totals row of new `foot`, `footerRow` and `footerCell` Slots, the control columns left blank) and a `header` that is text or `Html`; `Table.configure` fixes the style, words and highlight once; the recipe gains `borders: 'cells'`, `layout: 'fixed'` and `header: 'hidden'` (#589). - `foldkit-mixins-ui`: `Bundles.TreeView.with({ id, nodes, open?, checked?, checkable? })` holds the tree's structure (so `update` is built once from it) and `checkable`, which is now a field of `TreeView.Model` that `update` and the view both read (`TreeView.init` takes it; the view's and `update`'s own `checkable` stay as overrides). A node takes `content` (in place of the label's text), `trailing` and `action` in new `trailing` and `action` Slots; `TreeView.configure` binds the look and glide. `TreeView.fluid` and the Slots live in `treeView/fluid.ts` and `treeView/slots.ts`, re-exported under the same names (#589). - `foldkit-mixins-ui`: `Bundles.FloatingPanel` (args `{ id, rect, open?, min?, max?, grid?, overflow? }`, `Raised` in `onOut`, helpers `open`, `close`, `openBeside` and `dock`) and `FloatingPanel.configure({ base, presets })`. `FloatingPanel.init` takes the limits, which `Model.limits` holds, so `update()` reads them and `update(limits)` is an override. `openBeside(model, openerId, { side?, gap? })` opens the panel beside an element, read in a Command that answers the new `Placed { rect }` (`rectBeside` is the pure rule); `Docked { edge, thickness }` lays it along an edge of the viewport; `controls` names the header's buttons. `FloatingPanel.focusReturn` and the Slots live in `floatingPanel/focusReturn.ts` and `floatingPanel/slots.ts`, re-exported under the same names (#589). - `foldkit-mixins-ui`: `Bundles.Tour` (args `{ id, steps? }`, `Ended` in `onOut`, `helpers.start`) and `Tour.configure({ base, presets })`. The steps are a field of `Tour.Model` (`Tour.init({ id, steps })`, `Tour.Step` its Schema) that `update()`, `start(model)` and the view read, so they are stated once; a `config` passed to any of them overrides it. `Tour.view` takes `content(step, index)`, a step's words drawn as Html, and `advanceOnClick: Tour.advanceOnClick`, which moves the tour on at a press on the step's target. `Tour.focusReturn`, `Tour.advanceOnClick` and the Slots live in files of their own (`tour/`), re-exported under the same names (#589). - `foldkit-mixins-ui`: `Bundles.VirtualList` (args `{ id, rowHeightPx, initialScrollTop?, followEnd?, nearEndPx? }`) places upstream's virtual list, and with `nearEndPx` reports `NearEnd` when a scroll crosses into that band before the list's end, where an infinite list loads its next page; `Bundles.WindowList` (`init`'s options, `helpers.reveal`) places a WindowList. `VirtualList.overlayBars` and the Slots live in `virtualList/overlayBars.ts` and `virtualList/slots.ts`, re-exported under the same names, so a list without the overlay bars keeps no `ScrollBars`; the site gains a Window list page (#589). - `foldkit-mixins-ui`: `AppShell.view` takes `aside` and `asideLabel`, a column at the main region's end in an `aside` landmark and a new `aside` Slot (pinned under the header; below `md` it follows the main region), and `AppShell.configure({ base, presets })` fixes the look, `mainId` and words once (#589). - `foldkit-mixins-ui`: a Sidebar row and nested link take `content` (Html in place of the label's text) and `trailing` (Html at its end, in a new `trailing` Slot that gives way to the row's action like the badge), and `Sidebar.view` takes `words` (`Sidebar.words`: `show`, `hide`, `open`, `resize`, with `{label}`). `Sidebar.fluid` and the Slots live in `sidebar/fluid.ts` and `sidebar/slots.ts`, re-exported under the same names. The Sidebar page is example modules (#589). - `foldkit-mixins-ui`: `Disclosure.view({ id, isOpen, onToggle, label, content, icon?, peek?, disabled?, style?, mixins? }, h)` draws the button and panel over `@foldkit/ui`'s stateless disclosure, with `Bundles.Disclosure` (`{ isOpen? }`: the flag is the Bundle's own, since upstream keeps none), `Disclosure.controls`, `Disclosure.configure`, and `DisclosureSlots` gaining `root`, `icon` and `label`. `toView` stays the rung for a layout of your own (#589). - `foldkit-mixins-ui`: `Bundles.Accordion` holds the open sections with `multiple` and `collapsible` as its args (`Accordion.Model`, `Message`, `init`, `update`, `Args`), `Accordion.controls(model, onMessage)` gives the view its `open` and `onToggle`, and `Accordion.configure({ base, presets })` fixes the look and heading level once. An `AccordionItem` takes `icon` and `trailing` (Html before and after its title, in new `leading` and `trailing` Slots); the indicator at the start is placed by `order`, so the title keeps its place between them (#589). - `foldkit-mixins-ui`: `Bundles.Dialog`, `Bundles.Sheet`, `Bundles.Drawer`, `Bundles.Popover`, `Bundles.Tooltip`, `Bundles.HoverIntent`, `Bundles.Timer`, `Bundles.Toast` and `Bundles.ColorPicker` place each overlay's state, with `init`'s options as the args (#589). `Bundles.Dialog` takes `dismissible: false`, which drops the `RequestedClose` that Escape, the backdrop and the close button send, so only the answers close it through `helpers.close` (an alert dialog). The upstream ones report `Opened` and `Closed` (a Tooltip `Shown` and `Hidden`); `Bundles.ColorPicker` reports `Changed { color }`; `Bundles.Toast`'s `helpers` are `show`, `settle` and `dismiss`. A Sheet opened by the Dialog's own `RequestedOpen` now rests at its `opensAt` point, as `Sheet.open` does. - `foldkit-mixins-ui`: a Toast takes `actions` and a `cancel` (an `actions` row of new `actions` and `cancel` Slots, hover on both buttons; two buttons or more take a row of their own under the words, the close button staying at the corner), the recipe's `tone: 'invert'` (the text's ink as the card, as Sonner's inverted toasts), `Toast.configure`, and `Toast.nextId(model)`, the id the next `show` will give. `ToastView.make(schema).revise(model, entryId, payload)` replaces what a payload toast holds, keeping its place, animation and dismissal timing, for a toast that shows progress (#589). - `foldkit-mixins-ui`: `Timer.configure` and `ColorPicker.configure` fix the look, units, swatches and words once (#589); `Timer.words` and `ColorPicker.words` are the defaults. - `foldkit-mixins-ui`: `Checkbox.view`, `Switch.view`, `RadioGroup.view` and `Select.view` draw from options, each with `configure` (#589). A Checkbox or Switch is `{ id, checked, onToggle, label, description?, position?, labelAside?, disabled?, readOnly?, invalid?, name?, value? }` (a Checkbox also `indeterminate`): the control, its label, a description that describes it, `position: 'end'` (the words first) and a `labelAside` slot, over new `root`, `text`, `heading` and `aside` Slots. A RadioGroup is drawn over the new `Bundles.RadioGroup` (the focus cursor) from `options` of `RowContent` (`icon`, `trailing`, `content`, `description` as text or Html), the application's `value` as an `Option`, `orientation`, `error` and `invalid`. A native Select is `options: { value, label, group?, disabled? }[]` (neighbours with one `group` sit under an `optgroup`), `placeholder` and `description`. The adapters (`toView`, `resolve`) stay as the lower rung. - `foldkit-mixins-ui`: the Checkbox, Switch and RadioGroup recipes gain `tone: 'danger'`; Checkbox and Switch gain `variant: 'card'` (the row boxed and filled while checked, its label stretched over it so the whole card is one press target) and Checkbox `shape: 'round'`; RadioGroup gains `layout: 'grid'` and `variant: 'card'` rows with `icon` and `trailing` Slots (#589). - `foldkit-mixins-ui`: `CheckboxGroup` options are `RowContent`: `icon` (inside the label, so a press on it chooses the option), `trailing`, `content` (your own drawing of the words, with `label` still the box's name), and a `description` that may be Html; `variant: 'card'` boxes each row; `CheckboxGroup.configure` (#589). - `foldkit-mixins-ui`: `Segmented` takes `orientation: 'vertical'` (a toggle group with `multiple: true`, stacked by the recipe) and has `Segmented.configure` (#589). - `foldkit-mixins-ui`: `Slider.view` takes a list of numbers: a thumb each, named by `words.thumb`, each stopping at its neighbours, the fill running from the first to the last; `Slider.movedAt(values, index, value, bounds)` is the transition `update` applies, as `moved` is for a range. `Slider.configure` (#589). - `foldkit-mixins-ui`: `Bundles.AngleSlider` packages the dial's state with its layout (`step`, `largeStep`, `marks`, `restrictToMarks`) as the args, building `update` once per placement and refusing a layout it cannot fold when placed; `AngleSlider.view` takes `words: { degrees }` and `AngleSlider.configure` (#589). - `foldkit-mixins-ui`: `Rating.view` takes `labels` (a name for each whole number of stars) and `words`, and has `Rating.configure`; `Recipes.Rating` gains tones `success`, `info` and `neutral` (#589). - `foldkit-mixins-ui`: a text field's adornments are one convention (#589). `Adornments { start?, end? }` draws inside the field's box, in `group`, `start` and `end` Slots (`AdornmentSlots`; `Recipes.Adorned` styles them), and the group rings while the control has focus and dims when disabled. `Input.view` takes it first; SearchField, PasswordInput, InputCopy and NumberField follow. - `foldkit-mixins-ui`: `Field` is new (#589): the shell around a control the application drew. `Field.view({ id, label, control, description?, errors?, required? | optional?, orientation?, labelAside?, words? }, h)` places the label (with its mark), the control, a description and the errors, vertical or horizontal; `Field.describedBy(h, id, drawn)` gives the control its `aria-describedby`. `FieldSlots` and `Recipes.Field` are exported, and the site has a Field page. - `foldkit-mixins-ui`: `Fieldset.view({ id, legend, content, description?, disabled? }, h)` draws a fieldset with the content you drew; `Fieldset.toView` stays as the lower rung (#589). - `foldkit-mixins-ui`: `OtpField.view` takes `mask` (`true` or a mark): the input becomes a password field and each filled cell shows a dot (or the mark), while the application still holds the real code (#589). - `foldkit-mixins-ui`: `NumberField.view` takes `invalid` (the error edge and `aria-invalid`), `readOnly` (readable and selectable, no keys or typing, steppers disabled), `start` and `end` (adornments around the number), and `words: { decrease, increase }` for the steppers' names (`NumberField.words` holds the defaults). `Recipes.NumberField` gains a `steppers` axis (`split` by default, `end`, `none`); its group is a flex row rather than a three-column grid (#589). - `foldkit-mixins-ui`: `Input.view` given a `label` draws the field itself: the label, `labelAside` beside it, the control with `start` and `end` around it, and the `description` under it, linked with `aria-describedby`. `draw` is the other arm and takes none of those options. `Recipes.Input`'s `variant` gains `ghost` and `underline`; its slots gain `root`, `header`, `labelAside`, `group`, `start` and `end`. - `foldkit-mixins-ui`: `Icon.view` takes `glyph` (a drawing of your own in the box: initials, a count, an emoji; an icon is data or a glyph, never both) and `mark` (a Badge or a dot on the box's corner, in the new `mark` slot) (#589). `Recipes.Icon` gains the sizes `xs` and `xl`, a `surface` (`outline`, `soft`, `solid`, `raised`: the box becomes a tile twice the icon's size around it), a `tone` (`accent`, `neutral`, `info`, `success`, `warning`, `danger`) and a `shape` (`circle`, `square`). `IconSlots` gains `mark`. - `foldkit-mixins-ui`: `Recipes.Spinner`'s `tone` gains `info`, `success`, `warning` and `danger`, the status tones of `Recipes.Tone` (`danger` is the palette's error family) (#589). - `foldkit-mixins-ui`: `Label.view` takes `required` and `optional` (a marker after the text: a star the screen reader skips, or `(optional)` that is read; a field is one or the other, and the types refuse both), `disabled` and `invalid` (`data-disabled`, `data-invalid`, for the recipe's dimmed and error looks; they mark the label only), `trailing` (a drawing beside the label, in a row with it, so an interactive one is not part of what names the control) and `words` (`Label.words`: `required`, `optional`) (#589). `LabelSlots` gains `marker`, `trailing` and `root`. - `foldkit-mixins-ui`: `Kbd.view`'s `key` and `Kbd.combo`'s `keys` may be a drawing (`string | Html`), for an arrow or a modifier's glyph; the recipe sizes an `svg` in a key to the letters' height (#589). - `foldkit-mixins-ui`: `Bundles.Toolbar` places a Toolbar's tab stop (the control focused last, which Tab comes back to), with `current` as its arg, and `Toolbar.focused(wrap)` builds the `onFocus` that answers it (#589). `Toolbar.configure({ base, presets })` returns `view` with `orientation`, `direction`, `loop`, `style` and `mixins` given once, as `Button.configure` does. `foldkit-primitives` exports `RovingTabindex.update`. - `foldkit-mixins-ui`: `Frame` is a new stateless widget: a tray holding panels, with a `title`, `description` and `action` above and a `footer` below, each panel a bordered surface of its own (Alerts, Items, accordion items inside). `Recipes.Frame` has `variant` (`muted`, `outline`, `plain`), `padding`, `spacing` and `radius`; `Frame.configure` binds a look (#589). - `foldkit-mixins-ui`: `Avatar`, `Card`, `Item`, `Alert`, `Empty`, `Figure`, `AspectRatio`, `Skeleton`, `Image` and `Frame` each export `configure({ base, presets })`, as `Button` does. `Avatar`, `Card` and `Item` return `{ view, group }`; `Skeleton` returns its five drawings; a preset's `style` reaches a group's members, its `groupStyle` is the group's own (#589). - `foldkit-mixins-ui`: `Avatar.group`, `Card.group` and `Item.group` take `wrap(member, source)`, which draws around each (a link, a Tooltip's trigger). `Item.view` takes `header` and `footer` bands across the row, pressable above a pressable one, and `Recipes.Item` has `density: 'roomy'`. `Recipes.Figure` has `caption: 'before'` (CSS order only; the markup keeps the caption after the content). `Skeleton.view` takes `inline` and `block` lengths. `Typography.view` takes `content` (text and `Html`: a link, emphasis) in place of `text`. `Recipes.Alert` has the tones `neutral` and `accent` (#589). - `foldkit-mixins-ui`: `Recipes.Card` has `divide` (`header`, `sections`: a hairline between regions, edge to edge), `lift: 'zoom'` (the picture grows inside its frame) and `orientation: 'overlay'` (the image fills the card, the text lies over a fade to the card's surface). `Avatar.view` takes `badges` (a mark on a corner, with a `badge` slot; a `label` is read with the name), `Avatar.group` takes `rest(count)` for the `+N` disc's content, and `Recipes.AvatarGroup` has `lift: 'hover'` (#589). - `foldkit-mixins-ui`: `Command.configure({ base, presets })` fixes a palette's `placeholder`, `words`, `hints`, `kbd`, style and mixins once; the query, the highlight and what a row does stay each use's (#589). - `foldkit-mixins-ui`: the navigation menu's links and panel links take `icon` (Html before the words, in a new `icon` slot, hidden from assistive technology; beside both lines of a panel link), a panel takes `footer` (Html after its groups, in a new `panelFooter` slot), and `Recipes.Nav` gains `panel: 'grid'`. `Bundles.Nav` holds which panel is open and `Nav.configure({ base, presets })` fixes the look once (#589). - `foldkit-mixins-ui`: `Menubar.view` takes `anchor` (over every menu's default placement and gap), and each menu `header` and `footer` (Html in its panel above and below the rows). `Bundles.Menubar` holds the bar's state (`{ ids, isAnimated?, isModal? }`) and reports `Selected` with the menu's index; `Menubar.configure({ base, presets })` (#589). A context menu is `Menu.view` with `opensAt: 'point'` and `Menu.target`: the Menu page shows one as a module. - `foldkit-mixins-ui`: `Menu.view` takes `anchor` (merged over the default placement and gap), `header` and `footer` (Html in the panel above and below the rows, in new `header` and `footer` slots), and a row takes `content` (drawn in place of its words; `label` stays its name and typeahead key). `Bundles.Menu` holds a Menu's state (`{ id, rows, isAnimated?, isModal? }`, reading only the rows' structure) and reports `Selected`; `Menu.configure({ base, presets })`; `Menu.init` takes any rows with `value` and `items` (#589). - `foldkit-mixins-ui`: `Tabs.view({ model, onMessage, label, tabs, value, orientation?, close?, routes? }, h)` draws the tablist and the chosen row's panel from rows (`value`, `label`, `icon`, `trailing`, `disabled`, `panel`), `Bundles.Tabs` holds the focus cursor and reports `Selected` (`Bundle.fromParts` over upstream's Tabs), and `Tabs.configure` fixes the look and orientation once. `TabsSlots` gains `root`; `Tabs.toView` stays the lower rung (#589). - `foldkit-mixins-ui`: `Pagination.view` takes `icons` (`first`, `previous`, `next`, `last`: an Html in place of the word, which stays the button's name); `Recipes.Pagination` gains `shape: 'round'` and `treatment: 'outline'`; `Pagination.configure` (#589). - `foldkit-mixins-ui`: `Steps.view`'s steps take `state` (`complete`, `current`, `upcoming`, `loading` or `error`, over the one `current` gives; `aria-current` follows `current`) and `trailing` (Html ending the row, in the new `trailing` slot); `Steps.words` gains `loading` and `error`; `Recipes.Steps` gains `labels: 'current' | 'hidden'` and `connector: 'segments'`; `Steps.configure` (#589). - `foldkit-mixins-ui`: `Button.view` takes `trailing` (a drawing after the label: a chevron, a count, a `Kbd.combo`), `description` (a second line under the label), `mark` (a Badge or a dot on the corner, on the end side whatever the writing direction), `invalid` (`data-invalid`, and the danger colours; not `aria-invalid`, which a button's role does not take), `busy` (`aria-busy`, `data-busy`, and a press does nothing; a busy `type: 'submit'` stops submitting), and `href` with `external` (an anchor with the button's look, no `type` or `onClick`, no `href` while disabled; `words.external` says it opens a new tab) (#589). `ButtonSlots` gains `content`, `description`, `trailing` and `mark`; `Button.words` and `ButtonWords` are exported, and a preset may hold `words`. `Recipes.Button` gains `variant: 'link'` and `size: 'xs'`. There is no `loading` option that draws a spinner: compose `icon: Spinner.view(...)`, so no page that draws a button keeps Spinner. - `foldkit-mixins-ui`: a `Breadcrumb` step takes `trailing` (drawn after the label, in a new `trailing` slot) and `labelHidden` (no words drawn; the label names the step, for an icon that says it), and `Recipes.Breadcrumb` has an `item` axis: `plain` (default), `pill`, `button` (#589). - `foldkit-mixins-ui`: `Badge.view` takes `icon` (a drawing before the text, in the new `icon` slot, hidden from assistive technology), `onDismiss` (a dismiss button in the new `dismiss` slot, named by `words.dismiss`, `'Dismiss {text}'`) and `href` with `external` (the pill is a link, as a Card's press is); a link holds no dismiss button, and the types refuse both (#589). `Badge.words` and `Badge.BadgeWords` are exported. `Recipes.Badge` gains a `size` axis (`sm`, `md`, `lg`) and the tones `accent` and `neutral`; `Recipes.Tone` and `Recipes.Size` name the vocabularies every recipe's `tone` and `size` draw from. - `foldkit-mixins-ui`: `Recipes.badgeTones(attribute, tones)` is the piece that maps the values of an attribute of your own to tones, for `Recipes.Badge.extend({ base: { badge: Recipes.badgeTones('data-state', { Published: 'success' }) } })`. - `foldkit-mixins-richtext`: a compact `formattingToolbar` ends with a **More** menu holding the `{ low }` controls it leaves out, so a narrow screen loses no tool. The button (`words.more`, `menu: 'more'`, `FormattingMenu` gains `'more'`) is part of the bar's one tab stop and arrow keys; its rows send each control's own Message, a toggle is a `menuitemcheckbox`, an unavailable control an `aria-disabled` row. A low control that opens a popup of its own is left out of it. The CMS example and the playground use it, the CMS driving `compact` from the bar's own width (a `Resize` mount) rather than the window's. - `foldkit-primitives`: `keepScroll({ scroller })` keeps a scrolling element's offset in place of the window's, so an application shell whose centre column scrolls uses the same mechanism (#594). - `foldkit-mixins`: a slot recipe's `.add(more)` gives it an axis or a value it lacks and returns a recipe whose selection takes them: `Recipes.Button.add({ tone: { brand: pieces } })({ tone: 'brand' })`. It is a separate door from `.extend`, which still refuses an axis or a value the recipe lacks, so a misspelt axis stays a type error. A value the axis already has is a type error and throws `mixins:recipe-value-exists` (a new `DiagnosticCode`); a slot the contract lacks throws `mixins:unknown-slot`; an added axis has no default until `.extend({ defaults })` sets one. The type `MergeAxes` is exported, so an application can export what `add` returns. - `foldkit-mixins-ui`: `Bundles`, a namespace of one file per stateful widget, each the widget's `init` and `update` packaged for `foldkit-bundle` with `init`'s options as the args and no view: `Bundle.withChild('labels', Bundles.TagsInput, { args: { id: 'labels', max: 3 } })`. `Bundles.TagsInput` and `Bundles.Combobox` ship first. A page reading one Bundle keeps that file alone, as with `Recipes` (pinned in `publishedBuild.test.ts`), and a page that folds a widget by hand loads no `foldkit-bundle`. - `foldkit-bundle`: the type `Bundle.ComposedChild`, a composition's record of one child, is exported, so a module can export what `Bundle.compose(…).pipe(Bundle.withChild(…))` returns: it failed declaration emit with TS4023 (the name `Child` could not be named). - `foldkit-mixins-ui`: `Choice`, how a value the application owns is read and folded by a choosing widget (`items`, `empty`, `picked`, `chosen`, `resting`, `multiple`), with three shipped as `Combobox.one(items)` (an `Option` of an item), `Combobox.many(items)` (a list, in the order chosen) and `Combobox.text(items)` (the typed text, the items as suggestions), a file each. It is an interface an application may implement. `Bundles.Combobox` holds upstream's interaction Model only and reports a `ChoiceChange` (`Selected`, `ClearedSelection`, and `Typed` when the field's text changes), which the placement's `onOut` folds: `City.picked(model.city, out)`. Its args are `{ id, multiple?, nullable?, immediate?, animated?, modal?, selectInputOnFocus? }`. - `foldkit-mixins-ui`: a DatePicker's whole state, `Bundles.DatePicker` over it, and `DatePicker.view(options, h)` with `DatePicker.configure` (#589). `DatePicker.init(args)` makes a Model of upstream's picker, the `Selection`, a range's preview and the closing rule; `DatePicker.fold(model, message)` folds it and reports `Changed { selection }`; `DatePicker.set` sets the selection from the parent. The args are the Calendar's (one month) with `animated` and `closes`: `'complete'` (default) closes the popover on the pick or preset that makes the selection whole, `'manual'` on none. The view takes `trigger: selection => string`, `name`, `disabled`, `anchor`, the Calendar's options for the panel (`weekNumbers`, `caption`, `paging`, `today`, `presets`, `detail`, `aside`, `footer`, `words`), `style` and `calendarStyle`. `DatePickerSlots` gains `wrapper`, the element around the trigger and the popover (`ResolvedDatePicker.wrapper`). On the adapter, `DatePicker.update(selection, closes?)` takes the same rule. The frame, caption and words the two views share are `calendar/layout`, which holds no state. - `foldkit-mixins-ui`: `Combobox.view(options, h)` draws a Combobox from options over the interaction state `Bundles.Combobox` holds and a value the application owns, and `Combobox.configure({ base, presets })` binds them (#589). It takes the `choice` (`Combobox.one`, `many`, `text`, or the application's own `Choice`) and the `value`, and from data: `items`, `filter` (`Combobox.contains` and `Combobox.startsWith`, values in a file of their own), `option: item => RowContent`, `groupBy`, `heading`, `placeholder`, `empty`, `clear` (`true` for a drawn cross, or `{ content }`), `chips`, `buttonContent`, `disabled`, `invalid`, `readOnly`, `name`, `openOnFocus`, `anchor`, `words` (`ComboboxWords`: `clear`, `remove` with `{label}`), `style` and `mixins`. The item and value types come from the `choice` alone, so an item or a value it does not hold is a type error. `RowContent` (`label`, `description`, `icon`, `trailing`, `content`, `disabled`) is the one type for a row a widget draws from data; `ComboboxSlots` gains `itemTrailing`. `Bundles.Combobox` takes `text`, what the field shows at the start for a value chosen already. On the adapter, `clearContent: null` draws the clear button with a cross the recipe draws, `words: { clear?, remove? }` names the clear button and a chip's remove button, and `Combobox.parts(...).option` takes a `RowContent`. - `foldkit-mixins-ui`: `Listbox.view(options, h)`, `Bundles.Listbox` and `Listbox.configure({ base, presets })` draw the custom select from options (#589), with the Combobox's `choice` (`Listbox.one(items)`, `Listbox.many(items)`, or the application's own `Choice`) and `value`, `option: item => RowContent`, `items`, `groupBy`, `heading`, `placeholder`, `disabled`, `invalid`, `readOnly`, `name`, `anchor`, `direction`, `words` (`ListboxWords`: `clear`), `style` and `mixins`. The trigger is named "label: chosen rows", shows the chosen row's icon and label (several labels joined, the placeholder muted for none), and `trigger: rows => Html` draws something else for them, such as overlapping dots. `clear: { onClear, content? }` draws a button inside the trigger while something is chosen, as a rounded rectangle concentric with the trigger's corner, and sends the application's own Message, since the value is the application's. `Bundles.Listbox` takes `{ id, multiple?, animated?, modal?, orientation? }` and reports a `ChoiceChange`; `multiple: true` goes with `Listbox.many`. `ListboxSlots` gains `root`, `clear` and `itemTrailing` (a row's `trailing`, drawn after its label). - `foldkit-mixins-ui`: `Picker.view` takes the Listbox's `choice` and `value` and draws both halves from them (#589), with `items`, `option: item => RowContent`, `groupBy` and `heading` (grouping the dropdown and the Sheet), `clear: { onClear, content? }` (beside the trigger and the opener), `disabled`, `invalid`, `name` and `words`; `Bundles.Picker` (`{ id, points?, opensAt?, dismissible?, animated? }`) reports the `ChoiceChange` a choice in either half is, and `Picker.configure({ base, presets })` binds `placeholder`, `anchor`, `words`, `style`, `listbox`, `sheet` and `mixins`. `SingleChoice` is a `Choice` of at most one item: `Picker.one(items)`, `Listbox.one` and `Combobox.one` and `text` are one, and a choice of several is a type error on a Picker, whose Sheet closes at a pick. A disabled Sheet row shows and is not chosen. `PickerSlots` gains `group` and `heading`. - `foldkit-mixins-ui`: `Bundles.CascadeSelect` and `CascadeSelect.configure({ base, presets })` (#589). The Bundle holds the chosen path (the widget's own value) and the path the keys are on, takes `{ id, value?, config }` as its args (`config` is `{ nodes, parents?, closeOnSelect?, loop?, inline? }`, the object the view takes too), reports `Changed { value }` when the path moves, and has `helpers.set(path)`, which reports nothing. `CascadeSelect.Message` gains `Set { path }` (an empty path clears; a path that cannot be chosen is ignored). `option: node => RowContent` draws a row's `icon`, `description` and `trailing` (new Slots `itemIcon`, `itemLabel`, `itemDescription`, `itemTrailing`); `triggerText: labels => string` collapses a long path on the trigger; `config.inline` draws the tree in place, always open, with no trigger, which Tab focuses; `words` (`CascadeSelectWords`: `placeholder`, `clear`, `back`) and `clear: true | { content }` replace the options below. Not built: several chosen paths, a search field in the panel, a footer or side panel, a loading level. - `foldkit-mixins-ui`: a Calendar's whole state, and `Bundles.Calendar` over it (#589). `Calendar.init(args)` makes a Model of the month shown (upstream's), a second month where `months` is 2, the `Selection` and a range's hover preview; `Calendar.update` folds a pick in either month into the one selection, keeps the second month a month after the first, answers the caption's dropdowns, presets and the today button, and reports `Changed { selection }` when the selection holds other days. A no-op returns the Model it was given, including the press on the day already focused for which upstream builds a new one. `Calendar.set(model, selection)` (the Bundle's `set` helper) sets the selection from the parent and reports nothing. The args are `{ id, today, selection?, months?, minDate?, maxDate?, disabledDaysOfWeek?, disabledDates?, locale? }`; the mode is the `selection` arg's tag. `Calendar.rangeOf(selection)` reads a range with both ends and `Calendar.datesOf(selection)` every day held. - `foldkit-mixins-ui`: `Calendar.view(options, h)` draws that state from options, and `Calendar.configure({ base, presets })` binds them (#589): `weekNumbers`, `caption` (`'grid'`, `'label'` or `{ dropdowns: { years?, month? } }`), `paging` (`'both'`, `'previous'`, `'next'`, `'none'`, `'end'`), `today: { label, selects? }` (a button back to today's month that may also pick it), `presets` (a list of `{ label, selection }`), `detail`, `aside` and `footer` (drawings of the application's own, placed beside and under the months), `words` (`CalendarWords`, defaults `Calendar.words`, upstream's English with `{blanks}`), `style` and `mixins`. Two months page from their outer ends and take dropdowns on the first. `CalendarSlots` gains `frame`, `body`, `main`, `months`, `todayButton`, `aside` and `footer`, which `Recipes.Calendar` styles. The state and the view are files of their own (`calendar/state`, `calendar/view`): a page drawing through `Calendar.toView` keeps neither, pinned in `publishedBuild.test.ts`. - `foldkit-mixins-ui`: on the Calendar's adapter, `paging: 'end'` draws both paging buttons after the caption (`ResolvedDays.pagingAtEnd`, and `data-paging="end"` on the header for the recipe), and `dropdowns: { month: 'label' }` writes the month as text beside a select of years (a fourth `ResolvedCaption`, `YearDropdown`). - `foldkit-mixins-ui`: `Bundles.FileUpload`, a FileUpload's `init` and `update` for `foldkit-bundle` with `init`'s options as the args, and `FileUpload.configure({ base, presets })`, which returns `{ view, parts }` bound to a `FileUploadPreset` (`style`, `words`, `picture`, `itemActions`, `progress`, `mixins`) (#589). The Bundle reports `Picked` and `Removed` and sends nothing: an application with `lanes` adds `FileUpload.lanes` to its own Subscriptions. `sort` and `routes` stay at the call. The view's words now merge through the shared helper, so a word given as `undefined` keeps its default. - `foldkit-mixins-ui`: `Button.configure({ base, presets })` and `TagsInput.configure({ base, presets })` return the widget's `view` bound to options given once: `AppButton.view({ label, preset: 'danger', onClick }, h)`. The order is `base`, the named preset, the call; `mixins` concatenate, `words` merge word by word, and any other option is replaced. A preset (`ButtonPreset`, `TagsInputPreset`) holds only options with no Message, state or drawing, and may hold a Behavior with a Mount. An undeclared preset name is a type error, and throws when computed at run time. The types `Presets` and `PresetOption` are exported. - `foldkit-mixins-ui`: `FileInput.keyOf(file)` is exported: the name a file goes by when the browser hands the same one twice (name, size, modification time and type). - `foldkit-mixins-ui`: `FileUpload`, a field of files with a status each: `FileUpload.init`/`update` as a small Model the application places (drop, pick and paste in one `Offered` Message; kind, size, duplicate and count refusals that name their file; previews by object URL; lanes that send a few files at once; `Retried`; `settled` for a draft and `released` for the previews), `FileUpload.view` and `parts` (the same drawing unassembled, for a Table or Card), `FileUpload.lane` and `lanes` (one Subscription entry per lane, built from the application's `send`), `FileUploadProgress.make` (a bar or ring the application builds, so a field that sends nothing never loads Progress), the `sort` seam for `Reorder` (with `FileUploadSort.keepFocus`), and `Recipes.FileUpload` (`layout`: `button`, `zone`, `avatar`, `cover`; `list`: `rows`, `grid`; `size`). The picker is the file input's `label`, always its next sibling. `FileInput` stays the native picker whose `File[]` the application owns. - `foldkit-remote`: `RemoteData.incident(error)` reads the id the server reported a failure of its own under, as an `Option`: some when the server broke rather than refused, so a view can show a reference to quote. `RemoteReadError`, `RemoteQueryError`, `RemoteMutationError` and `RemoteLiveError`, the JSON error answer, a live stream's error frame and `RemoteError` each gain an optional `incident`; nothing else on the wire changed, and a client or server without it still decodes. - `foldkit-remote-server`: `RemoteServer.tell(message)` fails a Source with words written for the caller, sent as they are. `RemoteServerError` takes a `cause`, which is reported and never sent. The `ServerDefect` diagnostic carries `incident` and `during` (what was asked). - `foldkit-remote-server`: `RemoteServer.report(during, cause)` reports a failure no handler answers (a scheduled job's, an adapter's on a transport of its own) as the server reports its own: a `ServerDefect` holding `cause` under a new incident, with `during`. It answers `{ message: 'Internal error', incident }`, the `InternalFailure` type now exported, and nothing of the cause (#575). - `foldkit-sync`: `ExchangeRefused`, a failed exchange in words written for the replica: thrown from a handler given to `Sync.transport.serve`, its `message` is sent as it is. The `ExchangeDefect` diagnostic carries what any other throw was, and the `incident` its replica was answered; `Sync.transport.serve` takes a `diagnostics` reporter for it, which `serveJournal` passes on. `TransportError` and an error frame carry an optional `incident` (#575). - `foldkit-guard`: `May.answer(may, interaction)` reads what `may` says of a row interaction as an `Option`: yes, no, or none where the answer does not say, since the rule reads another row and one row cannot decide it. `May.refused(may, interaction)` is true only on a no, as `May.can` is true only on a yes: hide or disable on `refused`, and what was not said stays live for the server to decide (#571). - `foldkit-ssr`: `staticSite({ site, plugins })` loads the site module with the Vite plugins it is given. The build renders pages from a server that has none of the application's, so Foldkit's view-identity branding was missing from them, the browser could not match the pages' markers, and a production build rebuilt every element on hydration without a warning. - `foldkit-ssr`: `staticSite`'s `plan` (and `generateStaticSite`'s) may be a function of the path, so a site can serve two applications, each page resuming with the plan of the application `config` returns for it. A plan function that throws fails the build and names the path. - Docs and examples: a new guide, [An event-sourced domain behind Remote](./docs/event-sourced-domains.md), says how an Alchemy Domain model and a declared domain fit together (who owns what, the write loop, lowering, binding or importing a Command, and each failure with the test that holds it). `examples/writes-domain` gains `pnpm --filter foldkit-example-writes-domain loop`, which follows one reservation from the page's prediction through the Command, its Event, a View behind and a lost reply. The `foldkit-remote-domain` README gains the loop, when not to use it, its `/server` entry in the entries table and its exact peers; [One domain declaration](./docs/entity.md) gains an agent step and prints a query's body directly. - Docs and examples: a new guide, [Expressions](./docs/expressions.md), teaches the `Expr` language in one place; [One domain declaration](./docs/entity.md) now carries one small domain from its declarations through `Laws.check`, the server and the page, with failure and recovery. `examples/entity` gains `pnpm --filter foldkit-example-entity language` (five query bodies answered by SQLite, `evaluate` and `Judge`, with the SQL each compiled to, and a generated test holding the three to one answer), and `examples/writes` gains `pnpm --filter foldkit-example-writes laws`. - `foldkit-primitives`: `PointerDrag` takes `gaps: true` (and `PointerDrag.behavior` `gaps`): over a container's own space, such as its padding or the gap between two children, the place is between its children by where the pointer is along their flow (a column, a row, a right-to-left row), `before` the first whose middle is past it, else `after` the last, and `over: null` past the last of the whole region. Only that one container's children are measured, found by halving. The release is hit-tested again, so the drop lands where the pointer let go. - `foldkit-mixins-builder`: a drop over a container's own space lands between its children, with the mark drawn there; the page's end (`data-builder-drop="end"`) is only for a pointer past the last node of the page. The handle is marked `data-grip-place="inside"` where there is no room above the selected node for the grip (its top is within the grip's height of the top of what can be reached: the scrolling ancestors' tops and the window's, each moved down by its `scroll-padding-top`), and the grip then sits in the node's top corner, so it is never under a sticky bar. - `foldkit-mixins-builder`: a Block's tile and the selected node's grip can be dropped on a layer row, which takes the drop by its thirds as a node does, and a drop over the page's own space is marked: the frame and the layers' `tree` carry `data-builder-drop="end"`. While a drag is under way `dragPreview`, `canvas` and `tree` carry `data-drag-place`, `here` where a drop would land and `nowhere` where it would be refused, so a look can show a dashed preview and a `not-allowed` cursor. - `foldkit-mixins-ui`: `Command`, `SearchField`, `Menubar`, `CascadeSelect`, `Tour`, `FloatingPanel`, `Picker`, `Nav`, `Tabs`, `TagsInput` and `Toolbar` export `conflict(routes, input?)`, the `mixins:key-conflict` that drawing the widget with those application key routes would throw, as an `Option` of the diagnostic and without drawing. It is built from the one list of own routes the view draws and `Keys.conflict`, so a settings screen that lets a user rebind keys can judge a candidate set without catching a throw. `input` is the part of the view's options that decides the widget's own keys (`direction`, `closeOnEscape`, `orientation`, `close`, `delimiter`, `panelRoutes`); Command, SearchField, CascadeSelect and Picker take `routes` alone. - `foldkit-richtext-dom`: `richTextInput(hostId, placement, { codec })` takes a codec (`value`, `fill`, and an optional `blank` value for a blank document), so a form key can hold another type, such as Markdown text, while the editor holds a Document. A blank document is never passed to `value`; a `fill` that throws fails the form's `fill`. - `foldkit-richtext-dom`: an editor placement takes `label` (`aria-label`) or `labelledBy` (`aria-labelledby`), not both, naming the `role="textbox"` root, in server markup too. Without either, an editor drawn in a labelled `role="group"` (the group `foldkit-mixins-form` draws around a control) takes the group's label, and a click on that label focuses the editor. - `foldkit-mixins-richtext`: `formattingToolbar`, the standard formatting bar: one tab stop with arrow, Home and End keys, undo and redo (availability from the caller), the text style menu, marks, link, lists, quote and an insert menu, with pressed state and `aria-disabled` unavailable controls. `items` may hold the application's own `{ control }` (message, pressed, disabled, an optional popup) and `{ low: item }` controls that are not drawn when `compact`; `inserts` is one ordered list of `InsertEntry.Editor` and `InsertEntry.App` entries; `returned` is what Escape sends to go back to the text. The application keeps the open menu, the tab stop and the width signal. - `foldkit-mixins`: a page built with `foldkit-mixins/vite`'s `modules`, which ships no style compiler, can switch, keep and follow a named theme. `foldkit-mixins/theme/runtime` exports `applyTheme`, `chooseTheme`, `themeScript`, `themeChanges`, `THEME_KEY` and `ThemeNames` (names, initial, attribute); `Themes.apply`, `Themes.choose`, `Themes.script` and `themeChanges` from `foldkit-mixins/theme` are these same functions, and a compiled `Themes` is a `ThemeNames`. `foldkit-mixins/theme/knob-data` holds each range knob of `Knobs.standard` as plain data, one named export per knob (`shapeDensity`, `accentChromaLight` and `accentChromaDark` for a two-scheme knob) as `{ name, title, variable, unit, min, max, step, default }`, for a theme panel's sliders; a page keeps only the knobs it imports, and `knobData` is the same entries by path (`'shape.density'`) for a panel that draws all. The file is generated from `Knobs.standard` by `pnpm --filter foldkit-mixins generate:knob-data`, and a test fails when it differs. A range knob's `control` now carries its `variable`. - `foldkit-mixins`: `Behaviors.Keys.conflict(routes, slot?)` returns the `mixins:key-conflict` clash as an `Option`, for seeing a clash without drawing the view and catching the throw; `behavior`, `attribute` and `answer` raise the same diagnostic from the same detection. - `foldkit-primitives`: `Repeat.behavior` takes the `SlotView.over` binder as `Press.behavior` does (options and Message inferred, bare slots with named generics still work), gains `disabled`, and supplies the `activation` obligation on its target. The pointer leaving a held button ends the hold, as documented. - `foldkit-primitives`: `Selection` gains the `Selected { id }` Message and the `select(id)` (replace with one item and anchor) and `range(id, order)` helpers. - `foldkit-primitives`: `GridNavigation.behavior` takes `routes`, the application's keys on the grid's one `keydown` owner; a route on a key the grid takes is a `mixins:key-conflict`. - `foldkit-data-grid`: what an application asks of a grid from outside its view. `Placed.helpers.reveal(rows, { row, column?, rowHeight, headerHeight })` scrolls a row (and column) into view by the least scroll and moves no focus, for a "go to row" control; `Grid.rangeSize(rows, model.grid)` is the selected cell range's `{ rows, columns, cells }` or none; `Grid.hasFilters(filters)` and `Grid.filterCount(filters)` say whether and how many columns are filtered, which the union of differently typed Options in `Filters` made awkward. - `foldkit-mixins-data-grid`: `words.readOnly` (default `Read-only`) is the `title` a column that does not edit shows on hover, and the first word of its `aria-description`; the title was a fixed English literal. - `foldkit-primitives`: a `PointerDrag` under way writes the pointer's viewport place on the document root (`--fk-drag-x`, `--fk-drag-y`, and `data-fk-drag="mouse | touch | pen"`, named by `DRAGGING`) and removes them when it ends, so something follows the pointer with no draw per move. `DragPreview()` (`/dom`) is the Mount that shows an element the view draws with `popover="manual"` in the top layer. - `foldkit-mixins-builder`: the Builder shows what a drag carries (`dragPreview`, drawn by the new `Carried` part, in the top layer, `aria-hidden`, above a finger's hold) and draws a handle over the selected node (`nodeHandle`, `nodeGrip`: a finger-sized grip with `touch-action: none` that drags the node, and whose tap opens `nodeMenu`, a `popover` of its commands in `nodeAction` buttons). Its words gain `moveNode` and `nodeActions`. The layers, the canvas and the palette scroll while a held drag is near their edge. - `foldkit-builder`: `DragDropped` takes an optional `aim` (`OverNode`, `OverRegion`, `OverPage`, `OverNothing`, exported as `DropAim`): where the pointer was when it let go. - `foldkit-mixins-crud`: a `ListView` and `RowListView` row carries its key as `data-row-key` on the `row` Slot, server markup included, so an application can return focus to a row's button after a re-read with `Dom.focus` and a `CSS.escape`d selector. - `foldkit-mixins-ui`: a `Table` column's `sortKey` keeps its literal type, so `sort.onSort` receives the union of the keys and `Table.TableSort` and `Table.nextSort` carry it (`TableColumn`, `TableSort` and `TableView` take a `Key` parameter, defaulting to `string`). `Table.defineColumns()([...])` keeps the literals of columns written once and hoisted. - `foldkit-mixins-ui`: `FileInput.cases`, the Messages `FileInput.Sync` and `FileInput.Focus` answer with (`CompletedSync`, `CompletedFocus`), to spread into the application's Message union: `defineMessageUnion({ ..., ...FileInput.cases })`. A union without them is a type error where the Commands are returned. - `foldkit-mixins-ui`: `Table` has a `control` slot, the name of a `FocusRecovery` part for a control the application draws in a cell. With `FocusRecovery.behavior(TableSlots)` on the `frame`, focus stays on the same control (that, the open button or a sort heading) when a re-sort moves its row. - `foldkit-plus`: the package ships the agent skill (`skill/`) and the conceptual guides the site publishes (`guides/`), copied at build time, so they are the version of the installed code; relative links in a guide, and the skill's links to `main`, point at the release's tag. `npx foldkit-plus docs` answers from them (labelled `foldkit-plus@ skill …` and `guide …`), and notes on stderr a dot-folder skill of another version instead of reading it. `npx foldkit-plus skill [--force]` installs the shipped skill under `.claude` and `.agents` (or where one already is); `setup`'s skill step uses it, and `npx skills add` stays the way to get the skill without the package. - `foldkit-mixins-ui`: `Sheet.view` takes `style`, a style of `DialogSlots`, beside `mixins`, as `Drawer.view`, `Command.view` and `Picker.view` do. - `foldkit-mixins-ui`: a `Sheet` with more than one point draws its handle as a focusable `separator` (it was `aria-hidden` and drag-only), named by `words.handle` (default `Resize sheet`), with `aria-valuenow` the percent shown and `aria-valuemin`, `-max` and `-controls`. The arrow keys along the sheet's edge (the one toward the page raises it: ArrowUp for a bottom sheet, ArrowDown for a top one, ArrowLeft for a right one, ArrowRight for a left one), Home and End step between the points through `Message.SnappedTo { at }`, the transition a release at that point leaves, and stop at the ends; Escape still closes the sheet, and `Recipes.Sheet` rings the focused handle. With no `initialFocus` an opened sheet with points takes focus on its handle, the first focusable element. A sheet with one point keeps a decorative, hidden handle; a `handle: 'none'` application moves its sheet with `SnappedTo` from a control of its own. `DialogContext` takes `interactiveHandle`. - `foldkit-mixins-ui`: `TagsInput.view` takes `words` (`TagsInput.TagsInputWords`): `remove`, the remove button's accessible name (default `Remove {tag}`), and `mark`, what it draws (default `×`). - `foldkit-mixins-ui`: `TagsInput.view` takes `name`, which draws one hidden input per tag (`TagsInputSlots.hiddenInput`) so a form submits the tags, in order, and not the draft. - `foldkit-mixins-ui`: `TagsInput.view` takes `addOnBlur`, which adds the draft when the input loses focus, so text left in it is not thrown away. Off by default. - `foldkit-mixins-ui`: a Menu row takes an `icon` (before its label) and a `hint` (at its end, before its shortcut), each in a Slot of its own (`MenuSlots.icon`, `MenuSlots.hint`) that `Recipes.Menu` styles; a submenu's items take them too. - `foldkit-mixins-ui`: `TagsInput`'s chips are one roving tab stop (`Model.chip`, set by `Message.FocusMoved`, the last chip until an arrow moves it): ArrowLeft and ArrowRight move among the chips, Home and End go to the ends, Backspace and Delete remove the focused chip, ArrowRight past the last returns to the input, and ArrowLeft in the input from the start of its text (nothing selected) enters the last chip. `TagsInput.view` takes `direction: 'rtl'` to mirror the arrows. A model stored from before has no `chip` field. - `foldkit-site`, `foldkit-ssr`: route code from the Site tree (#438). A page placed with `Site.placement` from a `Bundle.lazy` carries it as `page.code`, and `Site.routing` returns `codeFor(route)`, the code of every page of its `pages` on a route's chain, typed by the tree's routes. `SSR.entry`, `SSR.render` and `SSR.hydrate` take `lazy` as a function of the Model (`model => Routing.codeFor(model.route)`): the server asks it with the Model the page is drawn from, after `prepare`, running `init` once; the browser with the resumed Model; so a page loads no other route's code. The two must name the same bundles, or the render fails with `ResumeUnsafe` `LazyDependsOnUnsentState`. `Site.routing` returns `boot(model)`, the Model's route told to its pages as an arrival, for an `init` with no server render. A `preload` given `code: fetchCode` (a top-level export, so a site with no lazy page keeps none of it, and required with a lazy page) fetches a pointed-at route's unloaded code beside its read, once (`Site.LoadCode`, which completes with `completed` whether the chunk loads or not). `examples/auth` gains `/account`, a lazy page, with a build test and an e2e test counting one chunk request on hover. - `foldkit-mixins-ui`: `Anchor.inheritRegion(mount)`, and the `Anchor` Mount itself, give a panel the anchor relocates to the portal root the custom properties its region set (a region set compact, a density), unless the panel sets them itself (judged by a copy of the panel put back where it was drawn, so a value equal to the document's still counts, and a property registered not to inherit is not carried). Menu, Listbox and Combobox wrap their upstream anchor Mounts with it, so a region reaches a portaled panel as it reaches an in-place one. A Popover or Tooltip with `portal: true` is not covered (audit O3, #558). - `foldkit-primitives`: edge scrolling while dragging and a lasso on empty space (audit R1 and R6, #558). `edgeScroll: {}` (or `{ edge, speed }`) on `PointerDrag` (the Mount and its Behavior) scrolls the nearest scrolling ancestor, then the page, while a drag is held near its edge, in instant steps (jumps every 150ms under reduced motion), and reports the place under the still pointer after each; `Reorder.behavior` turns it on itself (`edgeScroll: false` opts out). `Marquee` (`foldkit-primitives/interaction`, Mount in `/dom`) reports `MarqueeStarted`, `MarqueeChanged { rect, ids, additive }`, `MarqueeEnded` and `MarqueeCancelled` for a press on empty space, beside `PointerDrag` on one container; `Marquee.selected(before, fact)` combines the ids with a selection that `Selection`'s `replace` sets. - `foldkit-remote`: `policies` on `Data.wiring`, a policy per active entry by its key, so two Surfaces active on one route read under two policies; an entry it does not name reads under `policy`. A key the active record lacks is a type error, and refused where given for a record typed by `string`. A list two entries read is held stale once left unless both policies age it. `RemoteWiring`'s `subscriptions` is no longer optional, and is named by the active record's keys (`wiring.subscriptions['grid.read']`, no `!`; a key no entry is active under is a type error) (#236). - `foldkit-primitives`: `FocusReturn()`, a Mount (`foldkit-primitives/dom`) that gives an overlay whose own restoring is not ours a way back when its opener is gone as it closes, and `Dialog.focusReturn` in `foldkit-mixins-ui` attaching it to the panel. Focus goes to an element with the opener's `id`, the opener's `FocusRecovery` steps for its slot, the layer below (`LayerStack.below`), then the page's first tabbable element, and is left alone when the user moved it (audit O2, #558). - `foldkit-surface`: a `Derived` as an entry of `Projection.struct`. `Projection.derive(on, derive, { Model })`, given the Schema of its value, returns a `ModeledDerived`: the struct reads its memoized value, declares its paths, plans nothing for it and checks the value against `Model`. A Derived without `Model` is a type error there, and throws if the type is bypassed. - `foldkit-remote-domain`: lists and `one` relations. `DomainRemote.query(Query, Api, 'PagedQuery', { input, id })` binds a Remote query to a paged Domain Query, given to `DomainRemote.layer` as `queries`: the Query decides what is listed, each listed row is read through its View (which leaves out a row it hides, and gives each its revision), paging is forward only (`last`, `before`, `first: 0` and a cursor over 1,024 characters are refused), a write's answer carries the lists the client asks back read at its receipt, and a live list is invalidated as its stream opens (read once more, for what moved before it opened), asked again 50 ms after a change of a row it holds (one ask for a burst), and invalidated when it moved. A View's state holds a `one` relation as the target's id; a read answers its ref key and reads a selected target through the target's own View in the same batch. `DomainRemote.view` refuses an Entity whose `one` relation its View's state lacks. - `examples/authoring`: a search field, an editable and reorderable list, a popup conformed to the listbox pattern, a sortable listbox and an editor an agent can save, each assembled from primitives; the save is asserted once for a person, an agent in the page and an agent headless, and the type cost of `SlotView.over` is measured (#551, #556, #557, #558). - `foldkit-remote-domain/server`: `pageReader(Api, { views, resolvePrincipal, middleware })`, the reader a server render reads a Domain model through in process, as the principal decided from the request (a navigation's resolver, `AuthServer.host(…).navigation.resolvePrincipal`, fits without a cast) and through a middleware built for that principal alone. It binds no command, opens no live stream and notes every read private. The adapter's `live` sends no frame at or before a revision the client names (`LiveRequirement.revisions`), so a page resumed from a server render reads no row it was handed (a live list once more); `examples/writes-domain` renders and hydrates its shop that way under jsdom. - `foldkit-remote`: a live stream names the revision it holds each row at, every field it follows written at that revision, none stale and no floor (`LiveRequirement.revisions`), so a server may leave out a frame the page already has (a row whose revision a partial read moved is named at none; at most 256, and `foldkit-remote-server` refuses more than the rows followed); a moved revision does not restart the stream. `REMOTE_PROTOCOL_VERSION` is 7, so a client and server of 6 and 7 refuse each other. `Remote.resume`'s capture carries a row's read-after floor, so a row a write in the render held (a form posted without scripts) stays held in the browser and is read at its token. - Docs: the laws guide (`docs/laws.md`, the skill's `references/laws.md`) gains states (`Entity.refine`, `from`, `becomes`), a document's `laws` with the monotone form for live documents and `Board.judge` as the audit, `Laws.check` with a repair for each finding, the evidence kinds and how `Graph.validate`'s `law-unwitnessed` is cleared, `Data.can`, and "when a state depends on the past, store the fact" (#540). - `foldkit-mixins/testing`: `Conformance` (#552 rendered, #558 item 1), scenarios `listbox`, `checkbox`, `tree`, `dialog` (focus in, Tab contained, Escape, restore, a dialog over a dialog) and `tabs`, each a function of a harness that returns its findings as data, with roles and names read from Chromium's accessibility tree, and `Conformance.server` for markup parsed back. `Conformance.harness({ cdp, userEvent }, root?)` is the harness for Vitest's browser mode, given Vitest's two so the package imports no runner. `SlotView.describe(view)` gains `conforms`, the patterns `A11y.conform` checked the view against. - `foldkit-primitives/interaction`: `Reorder`, a keyboard path for moving an item in a list or a tree (#558 item 3). One Bundle holds the draft (`held`, `over`); Space or Enter picks up and drops, the arrows, Home and End walk `Reorder.places`, Escape or focus leaving puts back, and `PointerDrag`'s facts feed the same Messages. Out-facts `PickedUp`, `PassedOver`, `Moved`, `PutBack`: the parent applies or refuses `Moved` (`Reorder.apply`, `Reorder.movesIntoItself`) and reads each out with `Reorder.announcement` through `LiveAnnounce`, a refused move as refused (`refuses`). Beside `ListNavigation`, `handle: Reorder.routed` hands back `{ behavior, keys }`, the route built from the same options, for `Keys.first`; `grab` gives the chords that pick up (Space and Enter by default), so a list that selects or activates by key keeps those; RTL swaps Left and Right. - `foldkit-remote`: row revisions and read-after tokens on Remote's wire (#544, #480's open item). `NormalizedEntity.revision` and `EntityPatched.revision`: a row of a lower revision than the one held writes nothing, from `ReadReceived`, `LiveReceived` or `MutationSucceeded`, and a tombstone keeps the revision it was gone at, taking a row of it again only while asked about again. `MutationResult.after` (`{ token, rows }`) holds each row to the token (`EntityEntry.floor`): the read entry reads it again carrying the token (`ReadBatch.after`, at most `MAX_READ_AFTER`, 256), a live stream subscribes with it (`LiveRequirement.floors`), an answer read at it, a patch on a stream opened at it, or either at a newer revision than held ends the floor, and a row named in `ReadBatchResult.behind` keeps what the store holds and is asked again after 1 second, doubling, at most 30 (`EntityEntry.behind`). Revision and floor are kept by `persistence` and listed by `Data.inspect(model).floors`; `why` names the wait (`ReadAfter`). `REMOTE_PROTOCOL_VERSION` is 6. `foldkit-remote-server` sends an `EntityRecord.revision`, through `GuardServer.filter` too; `foldkit-remote-drizzle`'s `source(binding, { revision })` reads the column with every row, and `pollLive` sends it. - `foldkit-remote-domain`: the adapter holds no rows and no floors. Each row and live frame carries its View revision, a write whose View is behind answers its receipt as `MutationResult.after` (`stream@version`), and a read carrying a token asks the View `atLeast` it, naming a row still behind in `behind`. A receipt whose token would pass 512 characters holds the row to nothing. `DomainReads` and `PendingRead` are removed: Remote's Model keeps both facts, and a reload keeps them. - `foldkit-mixins`: obligations (#552). An `A11y.pattern` slot may name `obligations` (`A11y.Navigation`, `A11y.FocusStrategy`, `A11y.Activation`, `A11y.State(attr)`, `A11y.Name`) that an attachment must say it meets; a `Behavior.slot` says so with `provides`, and `A11y.base`, `A11y.native` and `A11y.delegated` are meta-only Mixins for the view's own word, a native element and another slot's Behavior. `A11y.check(pattern, view)` reports what `validate` does plus `a11y:unsatisfied-obligation` and `a11y:delegation-unmet`; `A11y.conform(pattern)` in a view's `pipe` is a type error naming each missing `slot/obligation`, throws the first finding where the module loads, and returns a view whose `SlotView.detach` and `SlotView.replace` are checked again; a part's own Behaviors supply nothing to it, which its finding on an assembly says. `SlotView` and `NamedBehavior` take a fourth type parameter, what they supply (default `never`), which a binder's `behavior` reads from each slot's `provides` (`Behavior.ProvidesOf`) and an annotation may forget but never widen, and a SlotView's own `pipe` types up to twenty steps that change it; `Attr.AriaChecked` is new. `foldkit-primitives`: `ListNavigation`, `RovingTabindex`, `TreeNavigation`, `GridNavigation`, `Selection` and `Press`, and `Behaviors.ToggleState`, `Disclosure` and `FieldAssociation`, supply theirs, stated in their type on the binder overload only where the run time is sure to supply it (`A11y.ProvidedOn`: a literal slot name; `Selection`'s activation for a literal `mode` that selects and its click on). `foldkit-mixins-ui`: `Patterns.Listbox` and `Patterns.Checkbox` name their obligations. - `foldkit-surface`: the law half of the contract graph (#537). A `Contract` may carry `laws?: ContractLaws`, its declarations as plain data: `model`, law ids over its Model slice, and `entities`, `Laws.check`'s entries. `Graph`, apart from `Module` so a page that reads only `Module` carries none of its code, works over them. `Graph.of(module, { evidence })` derives their nodes and edges (`GraphNode`: `Owner`, `Path`, `Transition` (a write's with its Entity, so a delete, which writes no member, still joins its laws), `Law`, `State`, `Level`; `GraphEdge`: `Owns`, `Reads`, `Writes`, `Observes`, `From`, `To`, `Keeps`, `Refines`), and joins them with a level and a `closure:` law per closed Surface, which level refines which, and a `Keeps` edge per record of `evidence` that is issued and joins its pair. `Graph.validate(module, { evidence })` reports `law-unwitnessed` (a transition writes a path a law reads, and no evidence keeps it; with no evidence, every such pair), `evidence-unmatched`, `level-declared-twice` and `transition-declared-twice` (two contracts declare a write of one name); `Module.validate` asks none of them and is unchanged. `Graph.breakersOf(graph, law)` names each transition that could break a law and its evidence; `Graph.toMarkdown` writes a Laws section to set beside `Module.toMarkdown`'s, and `Graph.toMermaid` draws the laws as a flowchart. `Evidence` is re-exported beside `Metadata`. `foldkit-remote`: a domain's contract declares its declared writes (`Mutation.write`), giving `write:`, what it writes, its Entity's invariants and states, and its `from` and `becomes`. `foldkit-sync`: a document declares its law ids, giving `sync:.` per law, reading the shared slice, and `durable:` per durable and server-only tag, writing it. `foldkit-entity`: `lawFactsOf(entries)` gives the graph's facts of `Laws.check`'s entries with no check run, what the graph derives `laws.entities` with; `lawId` and `transitionId` are `Laws.law` and `Laws.transition` by name; `Laws.facts`'s `Reads` and `Writes` carry `space: 'entity'`, so its result is a `GraphFacts`, an `Unknown` footprint writes every member a law of its Entity reads, and a transition invariant (`LawPair.readsBefore`) reads its whole row, so every write to the row can break it. `examples/writes` validates its Module and keeps the evidence table in `LAWS.md`. - `foldkit-remote-domain/testing`: `Fixture.make(Api, { model, handlers?, middleware?, bindings, given?, as?, headers?, through? })` hosts a Domain model in memory with every View delivery held until `drain`, commits the `given` Events, calls as `as` (its headers added to a call's own, which win), and answers `RemoteClient` and the Api's client, for client tests with no server (#544); its `layer` requires what the Api's client needs that nothing hosted provides, such as a session middleware left out. A test over `Domain.protocolHttp` from a local Node server shows a reply lost after the commit reading `RemoteUnreachable`, and a trace spanning Remote's mutation, the adapter's call and Domain's `decide`. The package README is rewritten around who owns what, and `skills/foldkit-plus/references/remote-domain.md` is new. - `examples/writes-domain`: its scenarios are `Scenario` of `foldkit-remote/testing` (#538), typed by the shop's user. - `foldkit-primitives`: `FocusRecovery` (`/dom` Mount, `/interaction` Behavior): when the focused part of a marked owner is removed, hidden, made `inert` or `disabled`, or moved in the tree, focus goes to the first of the part's fallback steps (`same`, `next`, `previous`, `parent`, `stop`, `{ part }`, `owner`) that can take it, and never when focus moved elsewhere (#553). - `foldkit-primitives/interaction`: `Presence.behavior` draws the phase a placed `Presence` holds as `data-presence` and `inert`, so a leaving row takes no click, Tab or focus; with `FocusRecovery`, focus leaves in the frame it turns `inert` and the removal moves nothing (#555). The `Presence` bundle gains helpers, `show` and `hide`, so a parent's `update` starts an exit (`placed.helpers.hide(id)(model)`) with no `Hide` built in the root. - `foldkit-remote/testing`: `Scenario`, a write (or a Message) as plain data run by runners (#538). `Scenario.write` takes `given` rows, `principal`, `now`, `when`, `operation` and an `expect` (`accepted`, `refused` by an invariant or `'Unmet'`, `'Conflict'`, `'Taken'`, `'Referenced'`, `forbidden`, `unauthenticated`); `Scenario.remote` runs it through `Law.check` and the server; `Scenario.run` returns the mismatches (each naming its backend and step) and issues a `Scenario` record per runner with no mismatch, and with a `Laws.check` report throws before running a scenario that expects what the report disproved; `Scenario.fromReport` derives scenarios from the report; `Scenario.messages` and `Scenario.runMessages` do the same for an `update`. - `foldkit-metadata`: `Evidence`, records that a transition keeps a law (`Enumerated`, `Walked`, `Scenario`, `RuntimeOnly`), stamped by the producer that issued them (#537). `Evidence.issuedBy(record)` is that producer, none for a record typed by hand or spread from an issued one, and a second `Evidence.issuer` of a name throws; `Evidence.runtimeOnly({ transition, law, why })` refuses an empty `why`. The package now peers on `effect`. `foldkit-entity`: each `Laws.check` pair the check keeps by reading the declarations carries an `Enumerated` record in `evidence`, and a write's own `ensures` is marked `postcondition`; two entries of one name throw, since records name a transition by it; `Laws.facts(report)` gives the law half of the graph as plain data (a `Keeps` edge only where every pair of that transition and law has a record), and `Laws.transition` and `Laws.law` the ids it and evidence use. `foldkit-remote/testing`: `Walk.run` takes `laws` (every law its `violations` judges; another name throws, and a listed law it never checks still gets records, on the author's word) and an optional `transition`, and returns `evidence`, a `Walked` record per drawn transition per law when no walk failed. `pnpm evidence:check` refuses an `Evidence.issuer` call outside the producer modules. - `foldkit-primitives`, `foldkit-mixins`: `RovingTabindex`, `ListNavigation`, `GridNavigation`, `TreeNavigation` and `Typeahead` each export `keys`, the `Keys.route` their `behavior` installs as the container's one `keydown` handler (and `Behaviors.SpinValue.keys` the spinbutton's), so a search input lists `ListNavigation.keys(...)` beside an Escape route in one `Keys.behavior` (#554). A route takes each of its navigation keys with Shift up and down; `ListNavigation.keys` declares every printable key unless `typeahead` is `false`. `Keys.attribute(routes, { slot?, moveFocus? })` is the one `keydown` attribute for a Behavior that also writes other attributes on the slot, `Keys.matches(gesture, key, modifiers)` asks one gesture, and `Keys.withShift(key, modifiers?)` is a named key as two chords. Each primitive's `behavior` is built on them; its attributes are unchanged. `ListNavigation`'s `commit` option still works, and is better written as a route of your own. `ListNavigation.item(declared, args)(slots)({ item, items })` is the item half beside such a router: each item's tab stop and the `OnFocus` reporting it current, stating `item/focus-strategy` on a binder, so no item attribute or `Focused` Message is written by hand. - `foldkit-mixins`, `foldkit-mixins-surface`: `SlotView.describe(view)` is a view as serializable data (its slots and each attachment in order, with what it requires, supplies and contributes per slot, and findings for an unnamed or doubly named attachment), `SlotView.resolution(view, input)` the names and owners one input resolves to with no attribute or style value, Mount args or handler call (class tokens as given), and `SlotView.toMarkdown` prints a description (#556). `SurfaceView.describe` gains `attachments` and `findings`; `SurfaceView.toMarkdown` prints them, and its `Mixins` section is now `Attachments`. - `examples/writes-domain`: one write scenario through three backends (#546). `WriteScenario` is data (rows, principal, clock, the write, its operation and what it must come to); `sqliteRunner`, `memoryRunner` (`RemoteServer.memoryWriter` behind the same guard) and `domainRunner` (the adapter over the lowered model, and a Story) each answer one step per thing they own, and `run` reports every step whose sides differ, naming the backend and the step. Ordering tests drive the page's reducer over the adapter: a reply before and after the View's frame, a frame older than one shown, and a lost reply retried as the same operation. - `foldkit-remote-domain/imported`: `Imported.mutation(Api, 'Command', { entity, footprint?, refusal? })` declares a Domain command nobody wrote a `Write` for as a mutation, `Imported.describe(Api, { views, commands, fields? })` lists what the bindings import (each command with JSON Schemas of its input and reply, its rejections and the form key each shows beside, and a `Derived`, `Declared` or `Unknown` footprint; each View with its Entity), and `Imported.show` prints it as Markdown (#547). `foldkit-remote`: a `MutationDescriptor` may carry a `footprint`, which `reaches` and `explain`'s `reachedBy` read as the fields it writes when `Declared`, and as no word when `Unknown`. `foldkit-entity`: `Footprint.declared` takes `reads` and `writes` of different fields. - `foldkit-plus`: `npx foldkit-plus laws [#export]` prints `Laws.show` of a module's `LawReport`, or of the `{ writes }` that `Laws.check` takes (#536). It loads the module through the project's `tsx`, else Node's own TypeScript support, and exits 1 only when the module cannot be loaded or the export is neither shape; findings do not fail it. - `foldkit-agent`, `foldkit-remote`: an agent capability over a declared write (#533). A variant's `applies({ model, input, principal })` judges a call against what the Model holds, after `authorize` and over the invocation's one Model snapshot, and never for a call `authorize` refused; its refusal is `AgentCapabilityUnavailableError` with the reason as the message, and descriptors report `inputDependent`. `Data.capability(mutation, toInput)` gives `{ authorize, applies }` from `Data.can` (a forbidding `may` refuses in `authorize`, an unmet `when` or broken invariant in `applies`, `Undecided` allows), and `Data.available(mutation, inputOf)` a discovery predicate. - `foldkit-entity`, `foldkit-form`, `foldkit-crud`: a form judges an Entity's invariants over the row it edits (#542, #543). `form.over(model, row)` keeps the encoded row (`model.over`, stored as null when none, so an older Model decodes), and invariants are judged over it with the form's values laid over it, transitions included, on each edit once every key setting a member the rule reads, a field or a relation, has been edited (`model.reached`), and on submit. `Entity.rowFrom(entity, value)` gives the row from a read value, and `Entity.judgedBy(input)` names what to load beside the input; `Crud.editor` loads it and sets its form over the loaded row, so a quote form setting only the discount loads `approvedBy` and refuses a discount over 15% as it is typed. It reads each such member in a Selection of its own: one a Read rule withholds from the reader is left out of the row, its invariant undecided, and the form still fills. - `foldkit-mixins`: `Behaviors.Keys` gives a slot's `keydown` one owner built from named routes (`chord`, `printable`, `where`, `route`, `first`, `behavior`, `focus`, `answer`). Two routes declaring one press are refused when the Behavior is defined (`mixins:key-conflict`, naming the slot and both) unless `Keys.first` orders them; a key no press reports is refused where it is written (`mixins:unknown-key`) (#554). - `foldkit-primitives`, `foldkit-mixins`: every Behavior factory (`ListNavigation`, `Selection`, `TreeNavigation`, `FocusScope`, `Behaviors.Disclosure`, and the rest) takes a `SlotView.over` binder where it takes the slots, so its options are typed from the binder's input and Message with nothing annotated. The call with bare slots is unchanged. (#551) - `foldkit-mixins`: `SlotView.over(slots)()` names the slots, the input and the Message universe once and returns `define`, `behavior` and `parts` with them fixed; `SlotView.isBound` tells it from bare slots. `foldkit-mixins-surface`'s `SurfaceView.over(surface, slots)` reads both types from the Surface (#551). A Mixin carries a frozen `meta` (kind, and per slot what it requires, provides and reads), filled by `Style.forSlots` and `Behavior.forSlots`; `SlotView.detach(name)` and `SlotView.replace(name, mixin)` address an attachment by name (`mixins:unknown-attachment`, `mixins:ambiguous-attachment`). Every two-owner diagnostic names both contributors in its message and `details.contributors` (#556). - `foldkit-agent`: parts (#557). `Agent.part({ label, role, field?, invokes?, sets?, each?, key?, input? })` in `Agent.parts(definition, { … })` (also on `forApplication`/`forModel`) names which control on the screen is which exposed capability or key of the projected context; another is a type error and throws. `bind({ parts })` adds `runtime.parts`: `list` reads one Model snapshot, leaves out a part whose capability is unavailable, and reads `value`, `each`, `key` and `label` from the context encoded through its Schema and decoded again; `find({ label })` answers `Found.One`, `Found.None` or `Found.Ambiguous`. A part adds no way to act. `Parts.attributes` writes `data-fk-part`; `toManifest(definition, parts)` lists them. `foldkit-agent-mcp` serves them as `app://parts`. - `foldkit-entity`: states and the law check (#535, #536). `Entity.refine(entity, name, { field: value } or ({ row }) => predicate)` declares a named state of a row on the Entity (`Entity.states`, `Entity.inState`, a narrowing `is`); `Query.from(state)` queries it, and `Expr.show` prints it by name. A write takes `from: state`, joined to its `when`, and `becomes: state`, proved where the write is declared by enumerating the rows it can start from (one that cannot be decided is the write's postcondition, held where it commits); a state reaching another row is neither. `Laws.check({ writes })` judges each write, or a `{ name, entity, footprint }` entry (`Footprint.declared`, `Footprint.unknown`), against each invariant of its Entity by enumeration over finite fields, and reports the arrows between states; `Laws.show` prints it, `Write.footprint` is a write's own. `Write` gains `from` and `becomes`. - `foldkit-entity`, `foldkit-remote-server`, `foldkit-remote-drizzle`, `foldkit-guard`, `foldkit-remote`: a `becomes` is enforced where the write commits (#535). One the enumerator cannot decide is the write's `ensures`, an invariant of that write alone with the id `becomes:`; `Write.ensured(write)` names it for `Refusal.isInvalidBy`. Writers declare `postconditions` and are handed `ensures` on `update` and `insert`; the Drizzle writer (SQLite, Postgres, D1) compiles it into the statement beside the invariants, the memory writer and `GuardServer.writer` judge or forward it, and each refuses as `Invalid`. `RemoteServer.write` refuses a write with one over a writer without `postconditions`. The client judges it before sending where it holds what it reads, and `Laws.check` reports the arrow `enforced`. `Law.check` reports a server `Invalid` the client could not judge (the row's invariants undecided) as `unknown` rather than a disagreement; one over a row the client judged Valid stays a disagreement, though `Data.can` was undecided for another reason, such as a `may` it does not hold. - `foldkit-sync`: a document's laws. `forApplication(...).make({ laws })` takes `{ holds({ before, after }), message, path? }` per id, typed over the shared fields alone; the journal judges each operation's resulting snapshot and refuses one that breaks a law as `SyncRefusal.Invalid` with the law's id as `rule`, which `Sync.isInvalidBy(refusal, contract.laws.id)` matches. `appendAsServer` and reactions are judged too (a reaction's refused append parks at once), and `replica.submit` fails with `LawBrokenError` before the outbox. The contract gives back `laws` and `judge(before, after)`, an audit of stored snapshots. `foldkit-durable`: `JournalOptions.judge`, run after `reduce`; a broken law is an `OperationRejectedError` with `rule` and `path`. - `foldkit-remote-server`: `RemoteServer.memoryWriter(store, entity, { operators? })`, the `EntityWriter` for a memory backend's rows: a declared write lands over them as `foldkit-remote-drizzle`'s writer lands it over a table (revision, `when`, increments, computed fields, invariants, a taken id), each refusal the mutation's own. It holds no ledger and judges no rule reading another row. - `foldkit-remote-domain`: `DomainRemote`, a `RemoteClient` over an Alchemy Domain Api (#544). `view` binds a View to an Entity by a numeric revision field, `command` binds a command to a mutation with one `refuse`, `forbid`, `unauthenticated` or `fail` per declared Rejection (each an `Outcome`, answered as the mutation's refusal, `RemoteForbidden`, `RemoteUnauthenticated` or `RemoteMutationError`), and `layer` answers reads and live reads from the Views and writes from the commands. A write is sent under a `commandId` of its operation and a digest of who asks, the target, the keys and the input; a write whose View is behind answers with the row its reply says it wrote, and its receipt as a read-after token that Remote holds the row to. Every row carries its revision, never the View's cursor, which Remote orders by: once a key reads as deleted or hidden at a revision, a late row of that revision or an earlier one is not let back in. - `foldkit-remote-domain/lower`: `Lower.write` lowers a declared update into one Domain aggregate (#545). It derives the command, a Rejection per member of the mutation's `Refusal` plus `Forbidden`, `Unauthenticated` (a visitor the guard refuses, answered as a server answers one), `NotFound` and `Reused`, the aggregate's state (its row and the operations it decided), `decide`, `evolve`, the reply and the by-id View's state and `evolve`, and the adapter's two bindings (`binding(api)`, `reads(api, view)`); the author gives the events, `record` and `apply`, the revision, who asks and the middleware that provides it. `decide` restates no rule: it lands the write through `RemoteServer.write` over `GuardServer.writer` over `RemoteServer.memoryWriter`. To who may write the row, an operation sent again with another request is `Reused`; a visitor or who the guard refuses hears the guard instead. `Lower.check` lists, as data, each rule, precondition, invariant or context value that reads another row and each member the row does not hold; `Lower.write` refuses such a write. - `foldkit-remote/testing`: `Walk.run` runs seeded random walks of Messages over a list of named starts and checks a law after every step (it may be asynchronous, so a walk can go through a writer); `Walk.cases` requires a generator for every Message variant, and `regressions` run first from their own starts. `Walk.states(schema, { count, seed })` derives starts from a Schema, decoded through it, deterministic per seed, and throws by kind and path for a kind it cannot build. - `foldkit-remote`: `Data.can(model, mutation, input)` tells, from what the Model holds, whether a declared write would be refused: `Can.No` with `Forbidden`, `Unmet` or `Invalid` in the server's order, `Can.Undecided` with its reasons where the row, a field or an input key is missing, else `Can.Yes`. A hint: `Data.mutate` still asks the server. - `foldkit-surface`: `closed: true` on `Surface.make` and `App.surface` declares a Surface closed, and `Closure.violations(app, surfaces)` is the step check a walk calls: a Message in the Surface's set that reads outside it is a `ClosureViolation.Reads` naming the fields, and any other Message that changes its projection a `ClosureViolation.Outside`. A Surface not declared closed is never tested. `Surface.contract` carries the flag. - `foldkit-remote-domain` (new, Early: it tracks a beta): the start of the bridge from an Alchemy Domain Api to Remote. It exports `Receipt`, the `{ stream, version }` a Domain command answers with, and its tests pin the Domain behaviour the adapter will rely on, against `@alchemy.run/domain` and `alchemy` `2.0.0-beta.86`. - `foldkit-remote`: `reaches(write, query)` says which queries a declared write can change, from declarations alone: `Reach.Reads`, `Unaffected`, or `Unknown({ why: 'NoBody' | 'Handler' })`. It compares members by their Entity's identity and reads a body's `fields`, an exists' `where`, and every path and viewer path. `explain` gains `reachedBy`, the registered mutations whose write reaches the list (#439). - `foldkit-remote`: `RemoteData.all({ ... })` joins reads into one `RemoteData` of the struct of their values. The first state any entry is in decides: `Failed`, `NotFound`, `Initial`, `Loading`; with every value held it is `Refreshing` if any entry is, else `Ready` (#481). - `foldkit-mixins-ui`: `Recipes.Dialog` and `Recipes.Sheet` take `motion` (`standard`, or `none`, which opens, closes and steps back at once in every state) and `close` (`corner`, or `none`, which leaves the `closeButton` Slot unstyled for an application that draws its own buttons with it, as `examples/foldkit/ui-showcase` removed it by hand). `Recipes.sheetPage` and the Sheet's slide read the new `motion.sheet` and `motion.sheet-exit` tokens of `foldkit-mixins`, which default to the `slow` tier and its exit and are still multiplied by `travel`; an application with its own sheet timing sets them in its theme tokens. `examples/foldkit/domains-plus` drops its per-sheet duration overrides for both. - `foldkit-mixins/vite`: a `Style.whenInput` in a style module listed in `styles({ modules })` is shipped as data, its predicate kept as the import it was (a named import from a module that is not listed). The condition's classes are compiled at build and the page keeps only the choice, so it still loads no style compiler. A predicate written in place, or imported from a listed module, fails the build and the message says to move it; `perItem` stays refused. `examples/design-system` lists its style module. - `foldkit-primitives/dom`: `visibleLinks({ atMost, margin })`, an opt-in stream of same-origin links scrolled into view for `Site.routing`'s `preload.links`. Each address is read once per page and at most `atMost` (8) per page; nothing under Save-Data, on a 2g connection or in a hidden tab. - `foldkit-primitives/dom`: `pointedLinks({ rest })` sets how long a hover or focus rests before it counts (default 50 ms), and a link marked `data-preload="none"` is skipped by both streams. - `foldkit-data-grid`, `foldkit-mixins-data-grid`: a copy also puts the range on the clipboard as an HTML table (`text/html`, cells escaped, line breaks as `
`) beside the tab-separated text; `Clipboard.toHtml(rows)` writes it. Paste still reads `text/plain` only. - `foldkit-data-grid`: a column's `edit: { fill }` supplies its own series for a fill down or up, called once per lane with `{ source, count, toward }` (`FillLane`). `Option.none()` keeps `Fill.series`; of a longer answer the first `count` are taken, and each cell past a shorter one is reported in `refused` ("The column's series gave no text here"), not padded. - `foldkit-mixins`: the `Attr` tokens `AriaSort`, `AriaLabelledby`, `AriaControls`, `AriaReadonly`, `AriaRequired`, `AriaCurrent` and `AriaValuenow`, for a slot to declare what it writes (#558). - `foldkit-mixins`: `themeChanges(themes)` and `schemeChanges()` stream the theme or scheme another tab chose (a `storage` event, decoded as the head scripts decode it), for a Subscription whose Message `update` answers with `Themes.apply` or `Theme.chooseScheme`. `schemeOfHint` reads a `Sec-CH-Prefers-Color-Scheme` request header into `Option<'light' | 'dark'>`, and `COLOR_SCHEME_HINT_HEADERS` names the response headers that make a browser send it (#558). - `foldkit-mixins-ui`: `SearchField` and `Recipes.SearchField`, a native `type="search"` input named by `label` with a clear button drawn only while there is text. The application owns the text; `onClear` is what the button and Escape (on a field with text only) send, answered with `SearchField.Focus` to put focus back on the input, and `routes`, `Behaviors.Keys.Route`s, add keys beside Escape on the same keydown owner (#558). - `foldkit-mixins-ui`: `Toolbar` and `Recipes.Toolbar`, the APG's toolbar: `role="toolbar"` named by `label`, one tab stop over controls the application draws, the arrows along `orientation` (mirrored by `direction: 'rtl'`), Home and End moving focus, and disabled controls skipped. `items` are controls `{ id, disabled?, draw }`, groups `{ label, controls }` and `'separator'`; `draw` receives the control's `attributes` (its id, `tabindex` and a focus report, which `Button.view`'s `attributes.button` takes) and `disabled`. The application keeps the stop (`roving`, a placed `RovingTabindex`'s slice, answered from `onFocus`), so Tab returns to the control focused last. A focused text field, select or range keeps the keys it uses, and a key from something the toolbar did not draw is left alone. `routes` adds keys on the same keydown owner. `examples/widgets`' toolbar is drawn with it, in place of the primitives it assembled by hand. - `foldkit-mixins-ui`: `FileInput` and `Recipes.FileInput`, a file picker: a native `type="file"` input, hidden but focusable, and a button drawn on the `