API index and search · Build metadata
Source snapshot
packages/narrator/src/index.ts
1// @rindle/narrator — turn a Rindle query's flat-change stream into agent-ready prose.2//3// Pipeline: a view's per-query `FlatChange`s (delivered by `view.onChanges` / `store.materialize(4// query, { onChanges })`, net of no-op rebase cycles) → `resolveChange` (@rindle/client) lifts each5// into NAMED rows → per-query templates render salience-tagged `SemanticEvent`s → `digest()` folds a6// batch into a prompt block. Drive it off a live view's OWN change channel — the position→name source7// is that view's `schema`. In React, `@rindle/narrator-react`'s `useNarration` wires this for you.89export {10 createNarrator,11 SALIENCE_MARK,12 salienceRank,13} from "./narrator.ts";14export type {15 NamedRow,16 NarrateContext,17 Narrator,18 NarratorRegistry,19 QueryNarrator,20 RelatedNarrator,21 ResolvedChange,22 Salience,23 SemanticEvent,24 Template,25 TemplateCtx,26} from "./narrator.ts";27