Web pages: a page without headings is arranged by itself, and a typed address becomes a titled link

A page cut into parts by length is now arranged into titled sections by a
model when it is first read, through the same gates as s (a model, the
daily budget, the plan's limits, one request per text), once per text per
server run. EX_PAGES_ARRANGE=manual keeps it to s. The pane shows the
parts at once, says that it is arranging or why it did not, and swaps the
sections in when they arrive.

A bare http(s) address typed into a node's text is linked when the edit
ends, then replaced by the page's title once that is read; u brings the
address back. A node whose whole text is one address becomes a section
that is only a link. See docs/pages.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Fable 5.2 committed 2026-11-18 14:19:21 -05:00
1 parent f8c6576ea1
commit 57b605e13c
19 files changed
+1095 -92

No files matched your search

+9 -1
View File
@@ -80,11 +80,19 @@ export interface WebArticle {
words: number;
attribution: WebAttribution;
/**
* What a model added at the reader's request (POST /api/page/arrange), never the page's own
* What a model added (POST /api/page/arrange, or by itself: server/pageArrange.ts), never the page's own
* words: a summary, and whether the sections are the model's (outline "model").
*/
model?: { summary: string; sections: boolean; by?: string; at: string; note?: string };
/**
* For a page divided by length that a model has not arranged: whether it is being arranged by
* itself now, or why it was not (server/pageArrange.ts `auto`). Added by the routes to the page
* they send; never kept in the snapshot.
*/
auto?: AutoArrange;
}
/** A page divided by length, arranged by itself after it is read: under way, or why not (a refusal's reason and words). */
export type AutoArrange = { state: "running" } | { state: "skipped"; reason: string; message: string };
export type WebUnusableReason = "robots" | "refused" | "type" | "empty" | "too-large" | "offline" | "error" | "off";
/** A page that is not shown: the reader is offered the original, with the reason in plain words. */
export interface WebUnusable {