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-editor.ts
60 kB
·
1,298 lines
TypeScript
at
main
Blame
Download
Open raw file
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