@rindle/narrator 0.4.4 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Turn a Rindle view's netted change stream into agent-ready prose.
|
|
4
4
|
|
|
5
|
-
<<<<<<< HEAD
|
|
6
5
|
Full docs — the agent loop this package powers (named diffs in, salience-ranked
|
|
7
6
|
digests out, observe→act): **[rindle.sh/docs/agents](https://rindle.sh/docs/agents)** ·
|
|
8
7
|
markdown mirror: [`agents.md`](https://rindle.sh/docs/agents.md) · for agents:
|
|
@@ -30,7 +29,8 @@ store.materialize(unseatedGuestsQuery({ eventId }), {
|
|
|
30
29
|
});
|
|
31
30
|
```
|
|
32
31
|
|
|
33
|
-
In React, `useNarration(query, NARRATORS, { ctx })`
|
|
34
|
-
channel for you and returns a stable `Narration`
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
In React, `useNarration(query, NARRATORS, { ctx })` from `@rindle/narrator-react`
|
|
33
|
+
wires the view lifecycle and change channel for you and returns a stable `Narration`
|
|
34
|
+
handle — drain it with `take()` when you prompt the model. See
|
|
35
|
+
[rindle.sh/docs/agents](https://rindle.sh/docs/agents) for the full walkthrough
|
|
36
|
+
(resolution, nested `related` templates, salience, and the observe→act loop).
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
// query, { onChanges })`, net of no-op rebase cycles) → `resolveChange` (@rindle/client) lifts each
|
|
5
5
|
// into NAMED rows → per-query templates render salience-tagged `SemanticEvent`s → `digest()` folds a
|
|
6
6
|
// batch into a prompt block. Drive it off a live view's OWN change channel — the position→name source
|
|
7
|
-
// is that view's `schema`. In React, `@rindle/react`'s `useNarration` wires this for you.
|
|
7
|
+
// is that view's `schema`. In React, `@rindle/narrator-react`'s `useNarration` wires this for you.
|
|
8
8
|
export { createNarrator, SALIENCE_MARK, salienceRank, } from "./narrator.js";
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,EAAE;AACF,kGAAkG;AAClG,oGAAoG;AACpG,qGAAqG;AACrG,sGAAsG;AACtG,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,EAAE;AACF,kGAAkG;AAClG,oGAAoG;AACpG,qGAAqG;AACrG,sGAAsG;AACtG,mGAAmG;AAEnG,OAAO,EACL,cAAc,EACd,aAAa,EACb,YAAY,GACb,MAAM,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rindle/narrator",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"README.md"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@rindle/client": "0.
|
|
28
|
+
"@rindle/client": "0.6.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.10.0",
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// query, { onChanges })`, net of no-op rebase cycles) → `resolveChange` (@rindle/client) lifts each
|
|
5
5
|
// into NAMED rows → per-query templates render salience-tagged `SemanticEvent`s → `digest()` folds a
|
|
6
6
|
// batch into a prompt block. Drive it off a live view's OWN change channel — the position→name source
|
|
7
|
-
// is that view's `schema`. In React, `@rindle/react`'s `useNarration` wires this for you.
|
|
7
|
+
// is that view's `schema`. In React, `@rindle/narrator-react`'s `useNarration` wires this for you.
|
|
8
8
|
|
|
9
9
|
export {
|
|
10
10
|
createNarrator,
|