About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
portent
robin.berjon.com
/
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
A monorepo for writing specs and other serious text on the AT Protocol.
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
portent
/
draft
/
src
/
components
/
draft-sidebar.ts
23 kB
·
430 lines
TypeScript
at
main
Blame
Download
Open raw file
robin.berjon.com
·
Natural: the ask, second of four steps — no chat: an ask is made about a place (the piece, a section, an outline note, the selection) with a verb by what is there (Write and Finer for notes, Tighten, Review and Proofread for prose, Outline and Review the structure for the piece, Anything always), and lands there as proposals. Ask in the bar, ⌘J, or Finer… on an outline row brings it up at half the window (46 rem at most, the text at 40, the outline column and the bar out of the way); the scope follows the caret or the selection or is picked; Finer's knobs (into, about: empty leaves it to the model); the guidance a real editor that grows with its text; Draw on with a search over the vault and the library (pull a note for the scope, cite or add a work), the notes pulled for the scope and the ones attached to every ask; one heavy button named for the verb; ⌘⏎ sends; Esc or the cross closes, and it closes by itself when the answer lands. While it works: the section's heading gets a moving ink line, the margin says who is at it, for how long and the step, with Stop, the chip says "writing §4"; the ops are parsed as they arrive and applied as each closes, an outline part by part (chosen over a prose-first Write protocol: it works for every verb and every assistant with no change to what the models are asked for, and a paragraph still lands as soon as it is whole). What lands: a group head before the first proposal (what, who, how long, Take all, Drop all), the keyboard on the first (⇥ ⇧⇥ step, ⌘⏎ takes, ⌘⌫ drops, Esc leaves them), the assistant's note in the margin with the receipt folded under it, "n proposals" in the bar as the list. The bar of notes at rest is one panel: the last receipt in a line, the search, pulled and attached, the bibliography, Igneous and the settings folded; the Assistant, Changes, Library and Notes tabs are gone. The outline dialog is gone too, a step early: the ask does everything it did (chapters still made at once from the book scope). The .nat gains asks (the receipts) and pulled (by scope). draft: Draft.ask takes a scope, a verb, guidance and context, answers with an Ask that carries its receipt, and runs asks one at a time in a queue (stop one out or waiting); asks in place of messages, takeAsk/dropAsk/pendingOf/askOf; applyOps keeps a batch across calls; an op-arrival scanner (suggestions/arrival.ts, tested) that yields ops and the parts of an outline op as they close; the editor marks the sections at work, draws the at-work line and the receipts in the margin, puts a group head before each ask's proposals (a widget decoration), and steps through proposals from the keyboard; the protocol's reply may carry named notes (read, not yet shown); the sidebar's conversation reads asks, so stan-app keeps what it has
·
3w ago
7e110e15