Skip to main content

Module ask

Module ask 

Source

Modules§

citations
The ONE home of citation-marker ([n]) logic (CONTEXT.md: Citation). Scanning, stripping (copy, history), and wikilink conversion (saved answers) all live here; no other module may parse [n].
locate
Pure resolution of a retrieved chunk’s location within its source note’s full text, for the Ask workspace’s Source reader (CONTEXT.md: Ask workspace, SourcesPanel). Three-step resolution, most confident first: an exact substring match of the retrieved chunk text (first occurrence wins on a duplicate); the ContentChunk core’s own chunker computes for the note (matched by innermost heading), located by substring; and, only when that chunk’s text can’t be found verbatim in the note (e.g. it was normalized server-side), core’s note::scan::heading_section_range — content analysis over raw note text belongs in core, not the TUI.
save
Turning an ask Turn into a saved vault note (CONTEXT.md: Saved answer). The question becomes the note title, its citation markers become wikilinks so the note joins the vault link graph.

Structs§

AskSource
A single retrieved chunk backing an answer — one row of a Turn’s sources, shown in CONTEXT.md’s Sources view / Source reader.
Thread
The running ask conversation (CONTEXT.md: Thread): an ordered list of turns plus which one is selected for viewing.
Turn
One question/answer exchange (CONTEXT.md: Turn). Always knows its own sources.

Enums§

TurnStatus
A turn’s lifecycle. Streaming is reserved for a future streaming feature and is never constructed in v1.