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
/
schema
5 files
at
main
robin.berjon.com
·
Natural: the four follow-ups of the re-imagining — the proposal the keyboard is on is outlined by a decoration (on the block, or over the text of a change within one) instead of a class set on the text's own DOM, which had ProseMirror read the text back at every step (the section view now sets its depth class without wiping what a decoration or the working mark put there); retrieval ranks by an embedding model when the settings name one (any OpenAI-compatible /v1/embeddings with its model and a key if it wants one: bm25's forty best chunks go to the model with the passage, half their lexical score and half the cosine, the vectors kept so a chunk is embedded once; without an endpoint, or when it cannot be reached, the lexical ranking stands and the sidecar says why; halfmind serves no embeddings as it is, llama-swap would need a model started with --embeddings, so this is tested against a stand-in only); the notes an assistant names get their vault note in one call (POST /notes/by-title, case and spacing aside) instead of a search each; asks sent together share a batch, and with nothing named for the scope the caret is in the bar shows what the last batch named, as Named for these sections; and a named note carries the scope it was named for, so pulling it from the bar or the ask is for that scope (a note in §3 pulls for §3), as is dropping it; pull all pulls each where it belongs (the event the bar and the ask sent for it had no handler). .nat: batch on an ask Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
·
3w ago
eeb7580c
extensions.ts
Natural: notes at every step, fourth of four — each ask carries the vault with it. Before it goes out, the brief, what the scope says (its titles, its notes, the first sentences of its prose) and the guidance are matched against the vault and the best passages go to the assistant as context it may quote but not edit, marked as found for this step (the notes pulled or attached already are not repeated); the sidecar does the matching, POST /notes/related, BM25 over chunks of every note (paragraphs joined to about sixty words, long ones cut at sentences), the index kept while the vault's files are unchanged, the scorer a seam an embedding model slots into with the same index. After it answers, the reply names the notes to draw on next (title, for, why): they show as Named for §3 in the bar, for the scope the caret is in (a note counts what was named for its section), and as Suggested for this step in the ask, each with its vault note once found and whether it is pulled; pull keeps it for the asks on that scope, drop is remembered in the file (.nat gains dropped, by scope). Every outline part and every block written from notes carries draws, the notes' titles, shown in a line under it in the text and under its row in the outline view (a row counts what its parts draw on). Wherever a vault note is named, a square before its title gives its kind in the vault's own colour: the kinds are the tag selectors of the vault's supercharged-links plugin, read from its data.json and the snippet it generates (POST /notes/kinds); a note's kind is the first selector one of its tags satisfies (front matter and #tags), carried by search, read and related alike, and the app writes a stylesheet for the squares. The house assistant names the vault notes it was shown and draws on the first, so the whole loop runs offline in the drive (nine new checks); the notes module is tested against a made-up vault with the plugin's files. draft: draws on insert-block and on outline parts, an attribute of paragraphs and lists; named and draws asked for in the protocol; the editor draws the line under a block and takes the kind of a title from its host Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
3w ago
keymap.ts
restructure as the portent monorepo
1mo ago
marks.ts
restructure as the portent monorepo
1mo ago
nodes.ts
Natural: the outline as a drill-down — the dialog works per level (the piece or chapter, the book, a section, the note at the caret), with the brief in a real editor kept in the .nat and sent with every ask, Outline / Write / Ask at each level, the level's notes editable in place, Make them chapters; word targets on the piece, the chapters and any section, measured in the count note and under the outline rows. draft: section targets (schema, protocol, the target op applied as a knob), blocks inserted after one block land in the order given, <draft-text>, the fake outlines level by level
1mo ago
views.ts
Natural: the four follow-ups of the re-imagining — the proposal the keyboard is on is outlined by a decoration (on the block, or over the text of a change within one) instead of a class set on the text's own DOM, which had ProseMirror read the text back at every step (the section view now sets its depth class without wiping what a decoration or the working mark put there); retrieval ranks by an embedding model when the settings name one (any OpenAI-compatible /v1/embeddings with its model and a key if it wants one: bm25's forty best chunks go to the model with the passage, half their lexical score and half the cosine, the vectors kept so a chunk is embedded once; without an endpoint, or when it cannot be reached, the lexical ranking stands and the sidecar says why; halfmind serves no embeddings as it is, llama-swap would need a model started with --embeddings, so this is tested against a stand-in only); the notes an assistant names get their vault note in one call (POST /notes/by-title, case and spacing aside) instead of a search each; asks sent together share a batch, and with nothing named for the scope the caret is in the bar shows what the last batch named, as Named for these sections; and a named note carries the scope it was named for, so pulling it from the bar or the ask is for that scope (a note in §3 pulls for §3), as is dropping it; pull all pulls each where it belongs (the event the bar and the ask sent for it had no handler). .nat: batch on an ask Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
3w ago