Commit Graph
97 Commits
Author SHA1 Message Date
thalladaandClaude Fable 5.2 f8c6576ea1 Web pages: a link to any address opens as an article, as Wikipedia's do
A url link now opens in the app instead of the browser. The server fetches
the page (robots.txt honoured, public addresses only, size and time caps),
keeps a snapshot on disk until it is reloaded, and cuts it into a lead and
sections: by its headings, else by pseudo-headings, else in chunks, or by a
model when asked (s), within a daily budget. The pane has its own amber
ground, the author and date in its head when the page gives them, and the
source in its foot. W opens the original, R reads it again. See
docs/pages.md.

Pictures and videos are kept, in web pages and in Wikipedia articles:
pictures through the server (only addresses seen in a page that was read),
videos as a still that loads the player on a click.

A section that is only a link (a target, no text, no sections) opens as
its article at once, and L opens a target to the right of the node's own
pane, never under it.

Article text is sized to read like the reader's own.

Panes: a pane that already has all its column can give beside the others'
tabs no longer peeks over them on hover, and the curves of tabs under a
peeking pane are no longer drawn over it. The keypress timing test judges
each of its two passes on its own, so a stall from outside the app does
not fail it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-18 13:44:13 -05:00
thalladaandClaude Fable 5.2 a3f25fbdcc Panes: edges dragged by the mouse side by side, and the active pane shown whole
Side by side, the mouse near an edge between two panes of a column, or
between two columns, takes it (row-resize, col-resize) and drags it: down
a column the same splitter as a page's, across the strip the columns'
widths. Only a pinned pane's size, and the width of a column holding one,
stick; the others are the layout's again once another pane is the active
one. Esc puts the edge back; a double click lays it out automatically.

A column whose share would cut the active pane short now stacks side by
side too, as a page already did: the active pane is shown whole and the
others give way.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 22:07:33 -05:00
thalladaandClaude Opus 5.5 5c867b2eef Wiki: drop the unused lookup, search and section routes
Nothing in the page or the link scanner called /api/wiki/lookup,
/api/wiki/search or /api/wiki/section. Remove the routes and what
existed only for them: readTitles and the POST allowance,
WikiClient.search and SearchHit, TTL.search, snippet(), the mock's
search/page answer, WikiClient.section and Section. WikiClient.lookup
stays (the scanner uses it), as do suggest and article.

Tests of the removed code go; input validation and off mode are now
checked on remaining routes. The mock's Eukaryote fixture gets its own
page id instead of sharing Hostile article's. README and
docs/wikipedia.md list what exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 18:04:16 -05:00
thalladaandClaude Opus 5.5 60d26908d6 Name: Explicata, and EX_ for the environment variables
Infinispand becomes Explicata (Latin, "things unfolded") wherever the name
shows: the page title, README, package, prompts, seed title, Wikipedia
User-Agent and startup line. Every IE_* variable becomes EX_*. The browser's
IndexedDB name and the ie: storage keys stay, so settings and replicas
already stored are found; the migration fixtures keep the old seed title.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q6Kn9JiRmGKzPQMh7o
2026-11-17 18:03:49 -05:00
thalladaandClaude Opus 5.5 e6d71e84de Links: one targetTitle for the links list and the reviewer
src/ui/linker.ts titleOf and server/links/review.ts targetTitle named a
target the same way (a node's label, else its path or "a note"; an
article's title; a page's title or address). It lives in
src/core/links.ts beside the other helpers on targets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:26:32 -05:00
thalladaandClaude Opus 5.5 dbbe3effac Tests: shared helpers once in helpers.ts, not copied into each spec
- The panes view's pane, tid, frames, still, library, clickOpen and
  noFaults were copied into colours, panes3, panes4 (and partly forks,
  libraries, phone) with identical bodies; wide() into annotate and
  links; linksHere into review and reviewer; the one-key-per-frame loop
  of the latency tests into six specs (paced). They live in helpers.ts.
  The specs whose own still() or open() differ keep theirs.
- `:` + type + Enter written out where command() does the same, the
  newDoc alias of addTop, nodes' copy of focusedTitle, forks.test's four
  isStr guards, an unused fixture and `void request`, Math.max(x, x).
- panes3 and panes4 no longer call themselves rounds three and four.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:25:27 -05:00
thalladaandClaude Opus 5.5 52cb7c2065 Links, Wikipedia and the replica: duplicates merged, dead fields and caches out
- One failure(res) in api.ts for every fetch that can fail (session,
  remote and the libraries calls each had their own; the error's
  attached body was never read). Session's lost() and vanished() were
  the same but for the hook: stop("foreign" | "gone").
- linker: place() locates the words with locate() instead of a copy;
  the scan reply's type is written once; LinkRow.at was never read; the
  "import" origin is never passed.
- wiki.ts: cleanHtml's cache could never hit (its only caller,
  articleText, is cached on the same key and evicts the same way);
  known() returned an article nobody read.
- Gone: currentLibrary and idbKeys (no callers), useWikiSuggest's q,
  a node's link flag spelled out where isLink says it. Exports used only
  in their own file are not exported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:25:27 -05:00
thalladaandClaude Opus 5.5 3aa8778427 Panes: one controller for the listeners, shared helpers for repeated lookups
- The panes' effect registered 25 listeners and removed each by hand;
  they share an AbortController now.
- One relayout() for the four places that laid out, measured and drew;
  one uncurve() for "curves off" and the start of the pages' marks (so
  schedule just calls curves(), which goes to pageMarks as pages);
  one handleAt() for the mouse and touch drags' handle lookup (the
  close/pin/⋯ checks before it could never match inside a grip or tab);
  ruleOf() for the rule a pane's head draws, written three times;
  setAttr from stack.ts instead of a copy; paneOfPage for the desktop
  column's pane to show, the same rule; the pin, close and W icons from
  Pages.tsx instead of copies in Chrome.
- The curves' `box` offset was a constant zero subtracted everywhere.
- Gone: glideTo's ms parameter (never passed), the "lifting" class
  (nothing reads it), Axis fields nothing reads, a dead branch in the
  map's rails, a linear search per pane in forks reorder, a stale and a
  superseded comment. Exports used only in their own file are not
  exported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:25:27 -05:00
thalladaandClaude Opus 5.5 5d6b7a8215 Store: one way to do each thing, dead parameters and branches out
- Streamed model writing (a note, sections, a note on an article) ends
  through one `writing` helper, and the first-token timing is one
  closure; one errText for the error message written out seven times.
- apply() runs through attempt(), duplicateNode through apply(); the
  nodeWrite wrapper is gone. The links list's decline is
  rejectSuggestion. setPaneSources and reorderPane share changeForest;
  setForest was a plain assignment. paneMoves and movePane share
  activeColumn (by forkNode's index, not a linear search). out() steps
  back with land(); navigate's two "show the library" branches are one;
  the article title a host shows is hostArticle() wherever it is asked.
- Dead: the "rewrite" pending kind (nothing makes one; Node.tsx looked
  for it), createLibrary's open flag and both library calls' return
  values (every caller opens, none reads), and parameters no caller
  passes (viewKey, endReview, exportNode, importFile's default,
  whenSynced, auxSpot's default). Emits right after say(), which emits,
  and a repairView run twice in revert.
- panePath folded into pathRefs, its only caller; two comments reworded
  that narrated history or had lost words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:25:27 -05:00
thalladaandClaude Opus 5.5 2e3ffbb7cd Mouse layer: one helper per repeated pointer lookup, dead hooks and options out
- A click (App) and a right-click or ⋯ (Mouse focusAt) each worked out
  the pane under the pointer, its article host and the words dragged
  over; they share pointedPane, dragged and wtextRow now.
- The page's Act lives with the menus that use it (Mouse.tsx), so
  actions.ts is the pure builders its header says it is.
- App's key handler: one openCommand for the prompt hook and the key
  handler, dropPopup instead of a copy of it, closeMenu without the
  menuShown check it makes itself.
- Gone: the "page" menu place (it took the same branches as "auto"),
  Key's shift prop and the arrow keys' text (never passed), isFirstRun,
  HistoryPanel's lastType (implied by the set of heads), and DOM
  attributes nothing reads (data-libs-trigger, data-conflict,
  data-popup, data-source, lib-new). Exports used only in their file
  are not exported.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:25:27 -05:00
thalladaandClaude Opus 5.5 fbd2a0852a Style: drop declarations that never take effect, merge repeated blocks
- The dark scheme's --curve-on repeated the light one's value.
- .abstract.seed.folded .body was two rules for one selector.
- The top bar's sticky declarations were a second .docbar rule (whose
  margin overrode the first's) and a second .view-panes .docbar rule:
  one rule each now.
- A note set into a pane and one beside a panel share their rule.
- `border: 0` on hover for buttons that already have no border, and the
  pages layout's padding-bottom for a split column's pane, which the
  general .col.split rule already gives.

The CSS coverage of a full e2e run, and every class and data attribute
checked against the TSX, found no rule that nothing can match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:25:27 -05:00
thalladaandClaude Opus 5.5 da60970a40 Comments: say what is, not what was
The pending file's note on earlier versions, "document" where the context is the outline or the
data directory holds a library, and the mock's expand case claiming a nearby node's handle, which
only deepen reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:10:45 -05:00
thalladaandClaude Opus 5.5 e8b8d72e61 Links: the reviewer's reading order uses descendants; jobs gather phrases in one place
descendantsInOrder was a copy of model.ts's descendants. A job worked out the phrases to look up
for a set of nodes the same way three times.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:10:45 -05:00
thalladaandClaude Opus 5.5 9f8245e6d7 Links: drop what the scanner computed or accepted for nobody
scan() also built a Related list that no caller reads (the page asks /links/related, which
related() answers); the `within` option was never sent; near() was only ever given a vector, so its
embed-the-text fallback and null answer could not happen. extract.ts and words.ts re-exported
phraseKey and singular from src/core/links, where they now come from directly. The suggestions
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:10:45 -05:00
thalladaandClaude Opus 5.5 7f6b9d8e77 Server: one summary builder for both Wikipedia APIs, one reset-time conversion
summary() and summaryFromAction() assembled the same record field by field; the subscription
code converted reset times the way usage.ts's epochIso already does; attribution() spelled out
restTitle(). The "|0" cache-key comment says why it stays rather than how it came about.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:07:12 -05:00
thalladaandClaude Opus 5.5 63593fdb22 Server: remove members, parameters and a route alias nothing uses
Bundle.id, Libraries.flush, UsageTracker.now and the wiki cache's size getter had no callers;
upsert's `save` flag only ever skipped a save on an index with no file, text()'s `required` and
recordCall's default were never used, and wikiRoutes imported readJson for nothing. Renaming a
library answered POST as well as PATCH, which nothing sends. revertTo refused commits from before
the library existed, which no library's history holds any more; an export's file name fell back
to "untitled", which slugify already does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:07:04 -05:00
thalladaandClaude Opus 5.5 714449fd54 Links: one walk down section titles, for resolveNode and the migration
The migration had its own copy of resolveNode's title walk (exact, then ignoring case, the
section `here` is in first); both now call walkTitles. The slug lookup it did twice is one helper.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:03:07 -05:00
thalladaandClaude Opus 5.5 9c506cd660 Migration: drop the /proc scan for servers from before the lock, and the fixture generator
The migration only matters for data from before libraries, and the README says to stop the server
first; the lock check stays. make.ts rebuilt the committed fixtures from two old commits and will
not be run again (the test's header names the commits). isDir was used by nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 16:02:46 -05:00
thalladaandClaude Opus 5.5 d8654fdd19 Pages: a pane's handle dragged at once resizes it, as a splitter
On a phone, a pane's tab or the band above its title moved up or down at
once (before the 380 ms hold) drags the pane's top edge with the finger:
the pane grows or shrinks and the pane above takes the difference; a tab
at the limit is pushed along (stack.ts resize, from the sizes the drag
began with, so moving back gives back what was pushed). Never less than a
tab, never past the page. Released barely taller than a tab, a pane folds
(a 120 ms ease). Direction known after 8 px: up or down resizes (the
handles of every pane but a page's first are touch-action: pan-x, so the
browser never scrolls first), sideways is the browser's swipe. A hold
still picks the pane up; a tap still selects it.

Sizes by hand hold while the page keeps its panes and the pane looked at
is shown open, across swipes; going to a folded pane there, a pane opening
or closing there, or a double tap on a handle lays the page out
automatically again. Only heights are set during a drag. Desktop panes
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 12:40:50 -05:00
thalladaandClaude Opus 5.5 60b035ab38 Docs: the pages layout's second round in the README and the keys help
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 11:55:30 -05:00
thalladaandClaude Opus 5.5 99aae86dff Pages, from a real phone: the pane gone to has the page's height; dots for a page's panes in the trail; a 140 ms glide; the map as a tree; a held pane moves; a one-row selection bar; a tap on a link only opens it
- A shared page stacks whenever a share would cut the pane looked at short (stack.ts crowds; desktop unchanged).
- Each trail step shows a dot per pane on its page, its own filled in its colour; past four, the number.
- The strip glides to a page in 140 ms easing out (rAF, snapping off on the way), at once with reduced motion; a finger takes it from a glide.
- The map draws tree lines from each parent into each child in the child's colour (pages.ts rails), crisp borders, deep forests indented less.
- A press held on a pane's tab or the band above its title picks it up (touch), drop line and ghost, edge scroll, a second finger cancels; Move this pane up/down in the pane menu (Alt+Shift+k j).
- The docked selection bar is one row: actions scroll sideways under a fade, the ⋯ and × fixed at its end.
- The hover preview is the mouse's only (pointerType), dropped on any press, click or pane change; the keyboard preview is not shown on touch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 11:55:30 -05:00
thalladaandClaude Opus 5.5 d3c2ea452a Pages: a quiet tap highlight; the libraries panel's keys and a sheet's choices a finger's size; the map put away when the layout changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 04:11:39 -05:00
thalladaandClaude Opus 5.5 efc09c67f6 Docs: the pages layout in the README and the keys help
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 04:02:03 -05:00
thalladaandClaude Opus 5.5 47a1680213 Browser tests: the pages layout on a phone (390×844 touch, scale 3), 360×640 and 768; auto at narrow widths is pages now
Real touch swipes through the DevTools protocol; Back and Forward; stacked panes and their
colours against what opened them; pin, close and the map; the selection bar; a long press on a
link; the libraries panel, the menu and the other layouts; landscape at 900 px and back; no
sideways overflow and 40 px targets. PHONE_SHOTS saves each state, light and dark.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 04:02:02 -05:00
thalladaandClaude Opus 5.5 eb946980b3 Pages: below 900 px auto shows the panes one column at a time, swiped like pages
The same forest of forks, laid out a column per page as wide as the screen, each column's panes
stacked down it as on a wide screen (tabs a finger high). A tap on a row, a link or a section
opens it and goes to it; a swipe ends on a page and makes its pane the active one (read at
scrollend, never per frame); the active pane's page is always the one on screen. The trail at the
foot names the focused branch in the panes' colours; its map lists every open pane to go to, pin
or close. No curves: what a pane was opened from takes its colour. Each step from pane to pane is
an entry in the browser's history, so Back goes back a pane and a swipe back is Back. Crossing
900 px keeps the forest and the active pane. Pane buttons always shown, 40 px; status line
detail, key hints and `?` left to the menus; safe areas, 100dvh, the on-screen keyboard; a long
press on a link shows its card above its menu. `/view panes` and `/view column` as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 04:02:02 -05:00
thalladaandClaude Opus 5.5 e7c5634a38 Pages, the panes on a phone: the pure parts (pages.ts) with their tests
Which page a scroll rests on, which pane a page swiped to brings forward, a pane's name in the
browser's history (the path of what the panes on the way to it show, so it survives a reload),
and the steps of that history: back or forward to the entry next to it, else a new entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 04:02:02 -05:00
thalladaandClaude Opus 5.5 fc7c222407 Docs: the libraries panel and deleting (and restoring) a library in the README; no documents left: the seed's description of itself, docs/wikipedia.md (top-level trees, per-library paths), the tagline, comments, test names and the link evaluation script
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 03:07:02 -05:00
thalladaandClaude Opus 5.5 146437a01a Browser tests: the top bar's menu now starts with Libraries…
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 03:07:02 -05:00
thalladaandClaude Opus 5.5 b25651a7a4 Browser tests: the top bar's menu button by its kind, now that the library's name is a button too
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 03:01:18 -05:00
thalladaandClaude Opus 5.5 037c13b549 The libraries panel, on the left: the library's name in the top bar (or m) opens it; j k, Enter opens (where it was left), n new, r rename, D delete after y; by mouse a click on a row, its ⋯ or a right-click; the column moves over and the panes narrow beside it, on a phone it covers the page. A page whose library was deleted while it was away says so and offers the others instead of showing "offline"
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 02:53:58 -05:00
thalladaandClaude Opus 5.5 f888525808 A library's size counts what is under its top-level nodes, the same in /api/libraries and the root's byline (a root alone is 0 nodes)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 02:53:58 -05:00
thalladaandClaude Opus 5.5 a6dbfbc19f README: the libraries, their addresses and routes, and how to migrate
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 02:25:25 -05:00
thalladaandClaude Opus 5.5 d5d0d7563c npm run migrate: the single-library layout copied into a new library with fresh history, every node reference rewritten, the reviewer's verdicts re-keyed, verified node by node before anything is written; --check writes nothing; old files kept in backup-<time>/
Fixtures written by 626dc19 and c4d6856 (tests/fixtures/migrate/make.ts builds them).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 02:25:25 -05:00
thalladaandClaude Opus 5.5 79aa85e883 Several libraries on the server: one directory, store, notice stream, link index, pending links, reviewer and jobs each; /api/libraries and /api/l/<id>/…; the page holds one library, named by its address, and switches by a page load
The old single-library layout is not opened (the server says to run the migration, which comes
next); the per-document migration, /recover and the old replicas check are gone. A server lock
keeps two servers off one data directory.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 02:25:25 -05:00
thalladaandClaude Opus 5.5 045a8459da Core for several libraries: graft carries the Wikipedia flag, keeps a top's anchors when asked and maps old ids to new; a library's title at creation; addresses under /l/<library>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 02:25:25 -05:00
thalladaandClaude Opus 5.5 c4d6856649 Browser tests: nodes instead of documents; addresses by node id; /linkhere and /linkall
menu.spec.ts becomes nodes.spec.ts: standing on the library root, /n/<id> addresses through a
reload, Back and Forward (and an old /doc/ address), the jump box, a file imported into a node two
levels down with a link relative to its top, exported back the same and copied just after itself,
Move under… by key and by the menu (never under itself; the root offered first), history's f and r
on the node the reader is on, the offline round trip, the node routes over HTTP, and panes and
phone width.

The other specs open a tree by its titles (helpers openAt, openPage, visit: /n/<id>, hoisted in the
column as /doc/ was), make top-level sections from the library page instead of /new, scan with
/linkhere (and check its scope against /linkall's), and expect a section's head on every pane but
the first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 01:49:22 -05:00
thalladaandClaude Opus 5.5 bed47c0c7a UI without documents: every page a node, the library root the first; moving, copying, exporting and importing any node
The page has one head for whatever node is the page (crumbs from the library's title, a byline of
sections and nodes, its flags and ⋯); in panes the first pane is the page and every other pane has
a section's head, whatever node it shows. A prompt (a node whose sections cite its sentences) is
folded wherever it shows. The library root's sections open in place like any others; an address
outside the hoisted node un-hoists to the library, and Esc at a hoisted page's top steps out to its
parent's.

What acts on a node and everything under it acts on the node the reader is on (the focused
section, or the one a focused note or selection is in): M moves it under any node (the jump box as
a picker, the root offered too), /duplicate copies it just after itself, /export saves it, /import
reads a file in as its last child (place() prefixes the titles down to the parent), /linkhere scans
it, S lists its links (on the root, the whole library's), history's f filters to it and r reverts
it. Every node's ⋯ offers them.

The documents menu, its mode and keys, /new, /open, /rename and /linkdoc are gone; m is free and
the top bar's left is a plain label with the library's name. Addresses are /n/<node id>, and / the
root; an old /doc/ address shows the library.

Server: /api/docs gives way to /api/nodes/<id>/{tree,export,import}; link jobs take scope "node" or
"library" and pending lists ?node=<id>&subtree=1. Step-1 shims removed: docOf/documents, all of
core/library.ts (IMPORT_MAX and importTree move to seed.ts, address and resolve to address.ts),
docArg, and the old single-document replica check. revertDocTo is revertSubtreeTo.

The page scrolls the focus into view only when the focus, the page or the mode changed, not on a
render for something that arrived in the background; row flags give way on a narrow screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 01:49:12 -05:00
thalladaandClaude Opus 5.5 e6e4ad8d26 The active pane's edges: kept to the pane they are for; drawn by the pane with the curves off; tests count curves, not edges
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 00:48:37 -05:00
thalladaandClaude Opus 5.5 9c0f4b8c02 The active pane's other edges drawn with the curves, so moving between panes repaints only those lines
A frame over the whole pane repainted the whole pane at every move (the forks keypress-to-paint
median rose by half a frame); its left, foot and right are now a hairline path in the curves'
layer, under what peeks, cut where the next column or pane covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 00:37:20 -05:00
thalladaandClaude Opus 5.5 d943285f95 Curves: the links they underline kept in hand, not looked for in the page; columns measured on scrolls that can change their tabs only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 00:16:13 -05:00
thalladaandClaude Opus 5.5 5ba7dc6cad Test: the starter tree's address, named from its title now
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 00:05:09 -05:00
thalladaandClaude Opus 5.5 ead9c0347d Tests: a link's curve starts with its underline; the busy forest opened by places, not titles other tests rename
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 00:04:54 -05:00
thalladaandClaude Opus 5.5 e77b9ba073 Browser tests for round four: peek covering curves (curveFaults), tab or title, bar over curves, menu buttons, link underlines at six pixel ratios
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 00:04:54 -05:00
thalladaandClaude Opus 5.5 2cefbbfd5f Panes, curves, menus: stacking, peek covering curves, one of tab or title, edges, drawn underlines
- Curves are one layer over the panes and their edges, from the window's corner (so its pixels are
  the device's; clipped inside the drawing, as a CSS clip resampled it and softened every hairline),
  under the menus; the selection bar and a pane peeking out leave holes in it (masks), the peeking
  pane's own curves drawn over it. Redrawn when the bar moves or a pane's tab comes or goes.
- A pane in a stack shows its tab only while the rule under its title does not show (data-tab), and
  the curve lands in whichever shows, by the same test.
- A pane peeking out is edged all round; the active pane has its other edges in a stronger ink.
- A menu's button pressed while its menu is open closes it (no reopening on the click after).
- A link's underline (solid: a link, an article's link) is drawn by the curve leaving it, line by
  line, its own left out, so the two meet exactly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-17 00:04:54 -05:00
thalladaandClaude Opus 5.5 6c97772ec9 Browser tests and README: tops found by title, addresses named from titles
The browser tests find sections by their titles from the library root and open the
starter trees at /doc/<name made from the title>; a renamed document's address follows
its title. The README's addresses, text-format targets and /api/docs say the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 23:43:58 -05:00
thalladaandClaude Opus 5.5 44d2e437eb Core without documents: no slugs; a node's top; targets by titles from the library root
The model has no slug any more (field, ops, canonical row, slugFor, freeSlug, RESERVED,
findDoc). The child of the root a node is under is a derived relation, topOf (docOf and
documents stay as deprecated aliases for the UI until step 2); ancestorsInDoc becomes
ancestorsBelowRoot. Slug keys and a target's old `doc` in stored libraries are ignored.

A node target's path is the titles down from the library root; `rel` marks a path read
below a top (a file being imported, what the agent or a person typed). Where two sections
share a title, the one the link is written in wins. The text format writes /Top title/…,
and ./… inside the exported subtree. The agent may give a node id as a target.

renderContext renders the top's outline in an <outline> tag, and steps down the focus
path when even titles are over budget. Prompts, the reviewer and the scanner speak of
the library, trees and tops; the scanner's unit is the top, with the same behaviour
(scripts/linkEval.ts gives identical metrics).

src/core/library.ts keeps a slug-free shim for the UI's document features (names made
from titles) until step 2 removes them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 23:32:08 -05:00
thalladaandClaude Opus 5.5 626dc19e1b Tests: a dotted curve's end at a scrolled pane's tab; click points measured after each move; wait for an article before Tab
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 22:18:16 -05:00
thalladaandClaude Opus 5.5 0df51493cd Panes: clicks, selection, tabs, peek and curves that keep to their content; Alt+h j k l between panes
- A click anywhere in a pane that is not text, a row or a link makes it the active pane; a click
  anywhere else, or Esc, clears a selection.
- The page measures where each pane was opened from, so its column stands in that order.
- A crowded column stacks the panes after the one looked at at its foot, a tab each, so every pane
  shows at least its tab; the curve into a tab becomes the tab's line where it meets it (no stub).
- A pane cut off for any reason (covered, too small a share, past the foot) peeks out as tall as its
  text needs, without moving the panes around it; curves are redrawn on peek, on a pane's text
  changing size (ResizeObserver) and every frame while anything animates.
- The curve joins the active pane's title rule too (the heavy rule alone marks it); a source out
  of sight in a pane that still shows is pointed at: dotted, turned at its end toward it; a curve
  leaves from a tab's foot only when its pane is folded to the tab.
- The selection bar sits under a pane's tab, takes the room above or below the words, never covers
  them; a sticky tab's title is centred under the heavy rule; focus is kept clear of the tab.
- Alt+h / Alt+l: the pane opened from (left) / one opened from this one (right); Alt+k / Alt+j
  (Alt+↑ ↓, [ ]): above / below in the column; from a node, a selection or an article; in the pane menu.
- Browser tests (e2e/panes3.spec.ts) with a curve invariant (curveFaults) checked after peeks,
  scrolls, resizes, folds, a drag and an article arriving.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 22:10:24 -05:00
thalladaandClaude Opus 5.5 24a048a9f8 A column's panes stand in the order of their sources
By where their parents stand in the column before, then by where in the parent each was opened from
(src, measured by the page and stored with the view), then in tree order. Panes put in an order by
hand keep it; a pane never placed by hand goes just after the one before it in its own order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 22:10:24 -05:00
thalladaandClaude Opus 5.5 e2a71d098a Annotate test: wait for the article before Tab-ing through it
Keys pressed while an article is still arriving are held and then all act at once when it comes;
tabTo looks after each Tab, so on a cold server a burst of held Tabs ran past the words it was
looking for. The page does what was pressed; the test now waits for the article's text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
2026-11-16 20:54:27 -05:00