Rindle

API index and search · Build metadata

Source snapshot

packages/narrator/src/index.ts

Source revision 05d0bf2c2e56 · build details
Source revision: 05d0bf2c2e56.
TypeScript input SHA-256: aabe6cfcc4172b870d5e272142958e9ea8d8784c2aa23133156e5a7ee633318e
Generated 2026-09-04T23:58:25.590Z with TypeScript 6.0.3. Public TypeScript checks and declaration emit passed. Package runtime tests are separate.
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