@yaks/inbox 0.0.0-stage → 0.2.36

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.
Files changed (88) hide show
  1. package/LICENSE +202 -0
  2. package/Person.tsx +275 -0
  3. package/Project.tsx +83 -0
  4. package/README.md +311 -2
  5. package/_dist/actions-browser.d.ts +8 -0
  6. package/_dist/actions-browser.d.ts.map +1 -0
  7. package/_dist/actions.d.ts +22 -0
  8. package/_dist/actions.d.ts.map +1 -0
  9. package/_dist/asks.d.ts +15 -0
  10. package/_dist/asks.d.ts.map +1 -0
  11. package/_dist/graph.d.ts +12 -0
  12. package/_dist/graph.d.ts.map +1 -0
  13. package/_dist/letters.d.ts +24 -0
  14. package/_dist/letters.d.ts.map +1 -0
  15. package/_dist/mail.d.ts +4 -0
  16. package/_dist/mail.d.ts.map +1 -0
  17. package/_dist/mod.d.ts +7 -0
  18. package/_dist/mod.d.ts.map +1 -0
  19. package/_dist/options.d.ts +18 -0
  20. package/_dist/options.d.ts.map +1 -0
  21. package/_dist/queries.d.ts +23 -0
  22. package/_dist/queries.d.ts.map +1 -0
  23. package/_dist/read.d.ts +18 -0
  24. package/_dist/read.d.ts.map +1 -0
  25. package/_dist/reader.d.ts +25 -0
  26. package/_dist/reader.d.ts.map +1 -0
  27. package/_dist/service.d.ts +8 -0
  28. package/_dist/service.d.ts.map +1 -0
  29. package/_dist/threads.d.ts +33 -0
  30. package/_dist/threads.d.ts.map +1 -0
  31. package/_dist/tools.d.ts +12 -0
  32. package/_dist/tools.d.ts.map +1 -0
  33. package/_dist/vocab.d.ts +5 -0
  34. package/_dist/vocab.d.ts.map +1 -0
  35. package/actions-browser.js +165 -0
  36. package/actions-browser.js.map +1 -0
  37. package/actions-browser.ts +158 -0
  38. package/actions.js +34 -0
  39. package/actions.js.map +1 -0
  40. package/actions.ts +53 -0
  41. package/asks.js +76 -0
  42. package/asks.js.map +1 -0
  43. package/asks.ts +94 -0
  44. package/deno.json +1 -0
  45. package/front.js +41 -0
  46. package/front.js.map +1 -0
  47. package/front.json +68 -0
  48. package/front.ts +38 -0
  49. package/graph.js +176 -0
  50. package/graph.js.map +1 -0
  51. package/graph.ts +182 -0
  52. package/inspect.tsx +22 -0
  53. package/letters.js +233 -0
  54. package/letters.js.map +1 -0
  55. package/letters.ts +325 -0
  56. package/mail.js +122 -0
  57. package/mail.js.map +1 -0
  58. package/mail.ts +148 -0
  59. package/mod.js +11 -0
  60. package/mod.js.map +1 -0
  61. package/mod.ts +24 -0
  62. package/options.js +15 -0
  63. package/options.js.map +1 -0
  64. package/options.ts +42 -0
  65. package/package.json +76 -4
  66. package/queries.js +240 -0
  67. package/queries.js.map +1 -0
  68. package/queries.ts +302 -0
  69. package/read.js +453 -0
  70. package/read.js.map +1 -0
  71. package/read.ts +476 -0
  72. package/reader.js +105 -0
  73. package/reader.js.map +1 -0
  74. package/reader.ts +147 -0
  75. package/service.js +29 -0
  76. package/service.js.map +1 -0
  77. package/service.ts +45 -0
  78. package/threads.js +182 -0
  79. package/threads.js.map +1 -0
  80. package/threads.ts +276 -0
  81. package/tools.js +101 -0
  82. package/tools.js.map +1 -0
  83. package/tools.ts +103 -0
  84. package/views.tsx +30 -0
  85. package/vocab.js +12 -0
  86. package/vocab.js.map +1 -0
  87. package/vocab.json +242 -0
  88. package/vocab.ts +11 -0
package/README.md CHANGED
@@ -1,3 +1,312 @@
1
- # Temporary Holding Version
1
+ # @yaks/inbox
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A person's inbox, as a plugin: the threads waiting on them, in lanes, read from
4
+ facts already in the graph. Its policy reads facts and builds queries; it
5
+ declares no stored lane or membership. A config that leaves `@yaks/inbox` out of
6
+ its plugins loads none of it: no `inbox_summary` read, no inbox tools, views or
7
+ letters, and every other plugin works the same.
8
+
9
+ ```json
10
+ {
11
+ "use": "@yaks/inbox",
12
+ "with": {
13
+ "person": "<person eid>",
14
+ "from": "inbox@books.example",
15
+ "base": "https://books.example",
16
+ "hour": 9
17
+ }
18
+ }
19
+ ```
20
+
21
+ Every option is for its [email door](#the-email-door); `"@yaks/inbox"` alone is
22
+ the inbox without one.
23
+
24
+ A **conversation** is a thread with no other subject: `conversation{}` on a
25
+ `doc{title, body}`. The body holds the caller's words verbatim; the title is
26
+ their first line. Replies are `comment{target, reply_to}` on that root.
27
+
28
+ ```sh
29
+ yak inbox new "Help me plan this work"
30
+ yak inbox new @question.md
31
+ ```
32
+
33
+ `inbox_new({text})` returns a conversation bundle. The tool runner writes it as
34
+ the caller; the inbox plugin has no person option and never substitutes a
35
+ writer. Empty or whitespace-only text is refused. Creation starts no session
36
+ itself; answering belongs to the host's session policy.
37
+
38
+ ```ts
39
+ import { equal } from '@yaks/testing'
40
+ import { loadTools } from '@yaks/graph/tools'
41
+ import { inboxDoc } from '@yaks/inbox/vocab'
42
+ import { runs } from '@yaks/inbox/tools'
43
+ import { argsFor } from '@yaks/cli/grammar'
44
+
45
+ let tool = loadTools(inboxDoc, runs())[0]
46
+ equal(await argsFor(tool, ['Help', 'me', 'plan']), { text: 'Help me plan' })
47
+ ```
48
+
49
+ | Export | Owns |
50
+ | ----------- | ---------------------------------------------------------------------------- |
51
+ | `.` | Thread and attention policy, reader profiles, `inboxDoc` |
52
+ | `./queries` | Inbox read queries |
53
+ | `./read` | `readInbox` and `readThread`, the server reads |
54
+ | `./vocab` | `conversation{}`, `inbox_summary`, `mail_notice` and the tool declarations |
55
+ | `./graph` | The `inbox_summary` view |
56
+ | `./tools` | `inbox_new`, `inbox_list`, `inbox_archive` and `inbox_open` |
57
+ | `./views` | The Inbox a browsing app draws, and its home page |
58
+ | `./service` | The email door's letters, as a duty |
59
+ | `./letters` | The email door's letters as policy, for a host with its own clock and writes |
60
+ | `./mail` | The email door's reading of letters that arrive (@yaks/mail `Reading`) |
61
+
62
+ The shared policy exports remain usable without a graph or session runtime.
63
+
64
+ ```sh
65
+ yak inbox list # the caller's threads, blocking first
66
+ yak inbox list --lane 'Needs you'
67
+ yak inbox list --search dinner --direction received --all
68
+ yak inbox archive T-12 # hidden until its next qualifying activity
69
+ ```
70
+
71
+ `inbox_list` returns one row per thread, its root, at most `limit` (default 50);
72
+ `who` defaults to the caller. `inbox_archive` archives the thread an item is in:
73
+ a letter's thread follows its `reply_to` chain to its root, then to what that
74
+ root is about.
75
+
76
+ `threads(rows, reader, {lane?, text?, direction?: 'said' | 'received', all?})`
77
+ returns one record per thread: `eid`, `row` (root), `latest`, `messages`,
78
+ `lane`, `reason`, `blocking`, `at`, and `unread`. Lanes are Needs you, Replies,
79
+ Updates, Recent, with that precedence. Unassigned decisions reach the operator;
80
+ explicit assignments reach that person. Open tasks requiring an outstanding
81
+ assigned decision or ask make it blocking. Blocking threads sort first, then
82
+ newest qualifying activity.
83
+
84
+ Replies follow comment reply ancestry to the person's words. On a conversation
85
+ the person started, a comment on the root also answers their opening words.
86
+ Direct address retains session/claim policy. Session prose answers personal
87
+ inputs; instructions, tool traffic and reasoning are excluded. Updates are
88
+ completion, failure, stuck and other state marks, or commits on work the person
89
+ started or watches. Watching alone does not deliver progress chatter. A
90
+ @yaks/notify `notification{to, about}` is an update too, a thread of its own: it
91
+ reaches whoever its `to` names, or everyone standing in the project it names,
92
+ except whoever wrote it. Recent contains what the person said, started, opened
93
+ or decided. Said search includes decision choices; received search excludes the
94
+ person's words. Mute wins over direct address.
95
+
96
+ **Personal attention** lives on the existing `subscription{actor, target, mode}`
97
+ row for that actor and thread. Its `opened{at, by, via}` mark records reading;
98
+ its `archived{at, by, via}` mark hides the thread through that instant. Later
99
+ qualifying activity resurfaces it without removing the archive mark. An absent
100
+ `mode` neither watches nor mutes; clearing watch or mute preserves these marks.
101
+ The entity's own `archived{}` keeps meaning the entity is archived. Archived
102
+ entities create no Needs you obligation; replies about them remain readable.
103
+
104
+ `inbox_open` and `inbox_archive` find that row and refresh its mark atomically,
105
+ so repeated attention gets a fresh server timestamp. Both accept `who`,
106
+ defaulting to the caller. Mail, web and TUI use the same row and canonical
107
+ thread subject. Reading and arbitrary edits do not resurface threads. No sweep
108
+ is involved.
109
+
110
+ A person can read as one of a project's people:
111
+ `readInbox(graph, vocab,
112
+ person, search, project)` and
113
+ `readThread(…, root, project)` stand them in it (the reader's `scope`), so what
114
+ is addressed to the project reaches them, and its unassigned decisions are
115
+ theirs to answer.
116
+
117
+ A door that shows only some threads says which in `search.within`: the
118
+ components a thread's candidate must hold. `{within: ['task', 'decision']}`
119
+ reads the threads of tasks and decisions, and never a conversation's entries.
120
+
121
+ A **thread summary** is an exact policy record without historical message
122
+ bodies. `readInbox` reads metadata on the server and returns the same lanes,
123
+ ordering, unread state and blockers as `threads`. Text and direction search read
124
+ complete words on the server, then return thread summaries; they never send the
125
+ candidate history to a browser.
126
+
127
+ ```ts
128
+ import { graph } from '@yaks/graph'
129
+ import { ram } from '@yaks/ram'
130
+ import { loadVocab } from '@yaks/vocab'
131
+ import { readInbox } from '@yaks/inbox/read'
132
+ import { equal } from '@yaks/testing'
133
+
134
+ let v = loadVocab({
135
+ $defs: {
136
+ task: { component: true, type: 'object', properties: {} },
137
+ filed: {
138
+ component: true,
139
+ type: 'object',
140
+ properties: {
141
+ assignee: { type: 'string' },
142
+ },
143
+ },
144
+ },
145
+ })
146
+ let g = graph({ vocab: v, storage: ram(v) })
147
+ await g.apply([{
148
+ entity: { eid: 'work' },
149
+ task: {},
150
+ filed: { assignee: 'person' },
151
+ }])
152
+ equal((await readInbox(g, v, 'person')).map((t) => [t.eid, t.lane]), [
153
+ ['work', 'Needs you'],
154
+ ])
155
+ ```
156
+
157
+ `readThread(graph, vocab, actor, root)` reads one thread's complete messages,
158
+ including archived history, for detail. A digest needs only its selected
159
+ root/latest bodies and can get those explicitly. The read interface must be a
160
+ Graph read, which folds projections, not a storage transaction's raw read.
161
+
162
+ The graph facet answers the computed
163
+ `inbox_summary{actor, text, direction,
164
+ all, lane, thread, threads}` component.
165
+ It is not stored policy state. `summaryQuery(actor, search, thread?)` builds its
166
+ query. A summary's `messages` is empty; a query naming `thread` carries complete
167
+ messages. Its subscription refreshes when inbox policy dependencies change. A
168
+ bounded completed-summary working set is reused only while the storage data
169
+ revision is unchanged; SQLite observes commits from other connections too.
170
+ Stores without a revision token recompute every read. Returned summaries are
171
+ isolated from caller mutations. The web host executes it in its ordinary read
172
+ worker.
173
+
174
+ The lower-level `candidates`, `discussion`, `requirements` and `dependents`
175
+ query helpers belong to this read implementation. Callers use `readInbox` or
176
+ `readThread`, not a second copy of its read pipeline.
177
+
178
+ ## In a browsing app
179
+
180
+ The `./views` facet is the inbox a browsing app (@yaks/browse, in a browser and
181
+ in `yak browse`) draws, and all of it: a config without @yaks/inbox has no inbox
182
+ page, tab or count, and no page asks for a thread summary.
183
+
184
+ - `await inspectViews()`: loads the `Inbox` view of a person (lanes, a search
185
+ over said and received words that can include archived threads, each thread
186
+ opened in place to read and answer, a new conversation) and of a project (one
187
+ line per thread, the whole count above a `limit` from the caller's context).
188
+ Both are @yaks/inspect views written against `io`: every entity in them is
189
+ drawn through the host's shared renderers (`Inbox.List.Tile`, `Inbox.Full`),
190
+ and attention tool calls go out through `io.apply`.
191
+ - `home`: the owner's inbox as the app's home page, named Inbox.
192
+ - `tabs`: `Inbox` as a tab on each person and project, ahead of the app's own.
193
+ - `icons`: the glyph both wear.
194
+
195
+ The views ask one summary subscription for a list and hold only the root and
196
+ newest rows they draw; opening a thread adds one full-thread subscription for as
197
+ long as it is open. A home page's or tab's count of unread threads, `waiting`,
198
+ reads that same summary, so it never disagrees with the list.
199
+
200
+ Which threads are open and how the search is switched is page state, kept in a
201
+ page graph of the views' own (`front.json`, a @yaks/client over RAM that no
202
+ server hears of), so a remount finds it again. What the person types (search
203
+ words, replies, a new conversation) is a @yaks/draft draft, kept everywhere.
204
+
205
+ ```ts
206
+ import { home, tabs } from '@yaks/inbox/views'
207
+ import { equal } from '@yaks/testing'
208
+
209
+ equal([home.name, home.view], ['Inbox', 'Inbox'])
210
+ equal(tabs.map((t) => t.view), ['Inbox'])
211
+ ```
212
+
213
+ ## The email door
214
+
215
+ With `person`, `from` and `base`, the inbox reaches a mail client. Its service
216
+ (`./service`, a duty) reads the person's inbox on every pass (`every`, ten
217
+ seconds by default) and queues a letter for each newly blocking decision. After
218
+ `hour` (UTC, default 9) it also queues at most one digest a day; a missed day is
219
+ not replayed as a backlog of digests. Alerts and updates are left out unless
220
+ `alerts: true` or `updates: true` asks for them. Read, muted and archived
221
+ threads do not cross this door. @yaks/mail sends the letters, so the person
222
+ needs `email.address`, and the mail plugin its sender and an inbound route or
223
+ pull.
224
+
225
+ `./letters` holds the policy: `inboxAt`, `eligible`, `rendered`, `planned` and
226
+ `queue`, for hosts supplying their own clocks and writes. It has no transport of
227
+ its own. A host that passes after every commit uses `queueing`, which holds the
228
+ pass's reads across commits (@yaks/graph/held): each call hears the eids
229
+ committed since the last, reads only those, and does nothing when none of its
230
+ reads changed. `mail_notice{activity, comment, thread, letter}` keeps the
231
+ activity as rendered: on a thread letter it points to the shown comment, on a
232
+ digest entry to its thread and digest letter. These snapshots deduplicate queued
233
+ mail; they are not conversation or new inbox activity.
234
+
235
+ Thread letters use the previous letter's Message-ID as In-Reply-To. A digest
236
+ contains links and a separate reply address for each thread (or shown comment),
237
+ so a reply can select a thread without guessing from a digest's subject. The
238
+ sender's domain must route those id-shaped addresses to this graph's mail edge.
239
+
240
+ What comes back is read by the `./mail` facet, which @yaks/mail asks at both of
241
+ its receiving doors (@yaks/mail, "What else a letter means"). A reply to the
242
+ digest itself is kept as mail, not assigned to an arbitrary thread. A verified
243
+ reply from whom a thread letter was sent to, or from the person to a thread's
244
+ own address, keeps its envelope and also carries `comment{target, reply_to}`, so
245
+ it reaches the same conversation as web and TUI. A reply containing only a
246
+ choice number (before quoted text) selects that choice of the thread's open
247
+ decision; other words are a custom answer, and out-of-range numbers remain
248
+ comments. Answers are attributed to the sender and complete the decision through
249
+ the usual task and kernel rules; an already answered or cancelled decision keeps
250
+ further replies as comments. Unverified or unknown senders are kept as mail
251
+ only, never attributed to the recipient.
252
+
253
+ A conversation starts when a letter has no `In-Reply-To` or `References`, is
254
+ addressed to `from`, and has an author the edge vouched for (`vouched`)
255
+ resolving to `person`. The received entity keeps its `mail` envelope and
256
+ Message-ID, gains `conversation{}`, and carries the person's full text in
257
+ `doc.body` with its first line as `doc.title`. Its `created.by` is the sender,
258
+ never the mailbox's operator. Empty text, unverified senders, unknown senders
259
+ and other people remain mail only, and a repeated Message-ID creates nothing.
260
+
261
+ Provenance is checked first, independently of the person: a known session,
262
+ effect, call, output or transcript entry as sender, the inbox address as sender,
263
+ or `Auto-Submitted` other than `no` is kept as mail only. DKIM authenticates a
264
+ sending domain, not whether a person or an automation typed the words. Keep the
265
+ arrival endpoint behind a perimeter or configure its `door.secret`; do not let
266
+ untrusted callers assert that verdict.
267
+
268
+ ```ts
269
+ import { graph } from '@yaks/graph'
270
+ import { ram } from '@yaks/ram'
271
+ import { loadVocab } from '@yaks/vocab'
272
+ import { kernel, kernelDoc, kernelKeywords } from '@yaks/kernel'
273
+ import { provenanceDoc } from '@yaks/provenance'
274
+ import { docDoc } from '@yaks/doc'
275
+ import { inboxDoc } from '@yaks/inbox/vocab'
276
+ import { reading } from '@yaks/inbox/mail'
277
+ import { arrived, mailDoc } from '@yaks/mail'
278
+ import { equal } from '@yaks/testing'
279
+
280
+ let vocab = loadVocab([kernelDoc, provenanceDoc, docDoc, inboxDoc, mailDoc], [
281
+ kernelKeywords,
282
+ ])
283
+ let g = graph({ vocab, storage: ram(vocab), plugins: [kernel()] })
284
+ await g.apply([{
285
+ entity: { eid: 'ana' },
286
+ email: { address: 'ana@example.com' },
287
+ }])
288
+ let receive = arrived({
289
+ graph: g,
290
+ readings: [reading({ person: 'ana', from: 'inbox@example.com' })!],
291
+ })
292
+ await g.apply(
293
+ await receive({
294
+ from: 'relay@example.com',
295
+ to: 'inbox@example.com',
296
+ headers: new Headers({
297
+ From: 'Ana <ana@example.com>',
298
+ 'Message-ID': '<hello@example.com>',
299
+ }),
300
+ }, {
301
+ text: 'Can we plan dinner?\nTomorrow would work.',
302
+ verified: true,
303
+ vouched: true,
304
+ }),
305
+ )
306
+ let [conversation] = await g.read('.conversation *')
307
+ equal(conversation.created?.by, 'ana')
308
+ equal(conversation.doc?.title, 'Can we plan dinner?')
309
+ ```
310
+
311
+ No probe needs a real address: use @yaks/mail's `stash` transport, which keeps
312
+ messages in memory.
@@ -0,0 +1,8 @@
1
+ import type { Client } from "@yaks/client";
2
+ import type { VocabDoc } from "@yaks/vocab";
3
+ /** The words a page graph speaks to take an inbox's card actions. */ export declare let actionWords: VocabDoc[];
4
+ /** Said, bubbling, by a view that drew its cards again in place: each card
5
+ * keeps its `data-inbox-card`, and the actions paint what they hold on it
6
+ * again. */ export declare let REDRAWN: string;
7
+ /** Bind the live state of an inbox to its existing forms and card markup. */ export declare let bindActions: (root: HTMLElement, page: Client, lifetime: AbortSignal) => void;
8
+ //# sourceMappingURL=actions-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions-browser.d.ts","sources":["../actions-browser.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,4BAAiC;AAUrD,cAAc,QAAQ,2BAAgC;AAEtD,mEAAmE,GACnE,OAAO,YAAI,aAAa,WAAgC;AAKxD;;UAEU,GACV,OAAO,YAAI,gBAAyB;AAgFpC,2EAA2E,GAC3E,OAAO,YAAI,cACT,MAAM,aACN,MAAM,QACN,UAAU,gBACT,IAAI,CAmDN"}
@@ -0,0 +1,22 @@
1
+ export declare let actionKinds: readonly ['choose', 'dismiss', 'friend', 'transfer', 'seen', 'reply', 'message'];
2
+ export type ActionKind = typeof actionKinds[number];
3
+ /** The kinds that send a person's words about a card (to its Operator, or
4
+ * to the friend who wrote it) and leave the card as it was: each send is an
5
+ * action of its own, and the card stays open for another. */ export declare let sayKinds: readonly ActionKind[];
6
+ /** A card action and the answer its host has committed. `seen` is the
7
+ * person opening a space's Updates where no page was asked for (a view
8
+ * shown in place): what it shows is read, as opening the page reads it. Its
9
+ * target is the space. */ export type InboxAction = {
10
+ space: string;
11
+ kind: ActionKind;
12
+ target: string;
13
+ answer: string;
14
+ };
15
+ /** What the host says it did, and where the conversation the action
16
+ * started goes on (`href`), which the page opens. */ export type InboxReceipt = {
17
+ label: string;
18
+ href?: string;
19
+ };
20
+ export declare let actionLabel: ({}: InboxAction) => string;
21
+ /** The answer control a card's form submits. */ export declare let answerField: (kind: ActionKind) => string;
22
+ //# sourceMappingURL=actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.d.ts","sources":["../actions.ts"],"names":[],"mappings":"AAAA,OAAO,YAAI,uBACT,UACA,WACA,UACA,YACA,QACA,SACA,WACQ;AAEV,YAAY,oBAAoB,YAAY,MAAM;AAElD;;2DAE2D,GAC3D,OAAO,YAAI,mBAAmB,aAAmC;AAEjE;;;wBAGwB,GACxB,YAAY;EACV,OAAO,MAAM;EACb,MAAM;EACN,QAAQ,MAAM;EACd,QAAQ,MAAM;;AAGhB;mDACmD,GACnD,YAAY;EAAiB,OAAO,MAAM;EAAE,OAAO,MAAM;;AAEzD,OAAO,YAAI,cAAe,IAAkB,WAAW,KAAG,MAAM,CAgB/D;AAED,8CAA8C,GAC9C,OAAO,YAAI,cAAe,MAAM,eAAa,MAAM,CACuB"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * What the inbox views ask of the host drawing them. A person's threads come
3
+ * from the server-owned summary (`inbox_summary`, ./queries.ts `summaryQuery`):
4
+ * one subscription for the list, one more for an opened thread's messages.
5
+ * Beside it the views hold only the rows they draw (each thread's root and
6
+ * newest message, and an opened thread's messages), never the history behind
7
+ * them. Counts read the same summary, so a count and its list agree, and a
8
+ * host that shares one query between its askers asks the server once. What
9
+ * the views write and draw goes out through the same host (`mark`, `show`).
10
+ *
11
+ * @module
12
+ */ import type { Bundle, Io } from "@yaks/inspect";
13
+ /** How many threads wait unread for the entity drawn, from the same summary
14
+ * as its list; undefined until it is read. */ export declare let waiting: (e: Bundle, io: Io) => number | undefined;
15
+ //# sourceMappingURL=asks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asks.d.ts","sources":["../asks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;CAWC,GAED,cAAc,MAAM,EAAE,EAAE,6BAAkC;AAiD1D;4CAC4C,GAC5C,OAAO,YAAI,UAAW,GAAG,QAAQ,IAAI,OAAK,MAAM,GAAG,SAAS,CAG3D"}
@@ -0,0 +1,12 @@
1
+ import type { Graph, Plugin } from "@yaks/graph";
2
+ import type { Search } from "./threads.js";
3
+ export type SummaryRequest = Search & {
4
+ actor: string;
5
+ thread?: string;
6
+ };
7
+ /** The web host's reader executes the same view in its read worker. Other
8
+ * graph hosts calculate it through their own committed read interface. */ export declare let plugins: (host: {
9
+ graph: Graph;
10
+ reader?: Pick<Graph, 'read'>;
11
+ }) => Plugin[];
12
+ //# sourceMappingURL=graph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"graph.d.ts","sources":["../graph.ts"],"names":[],"mappings":"AACA,cAAsB,KAAK,EAAE,MAAM,2BAAgC;AAGnE,cAAc,MAAM,uBAAsB;AAG1C,YAAY,iBAAiB;EAAW,OAAO,MAAM;EAAE,SAAS,MAAM;;AAqEtE;wEACwE,GACxE,OAAO,YAAI,UACT;EAAQ,OAAO;EAAO,SAAS,KAAK,OAAO;MAC1C,SAqGF"}
@@ -0,0 +1,24 @@
1
+ /** The inbox's letters: which threads cross to a mail client, and how each is
2
+ * rendered. The graph keeps each queued snapshot (`mail_notice`); @yaks/mail
3
+ * sends the letters, and clocks are supplied at the boundary. */ import type { Bundle, Graph } from "@yaks/graph";
4
+ import type { Vocab } from "@yaks/vocab";
5
+ import type { Door } from "./options.js";
6
+ import type { Thread } from "./threads.js";
7
+ /** What each choice of a thread's decision shows, by label: the shown
8
+ * entities with the components a letter draws them by. */ export type Shows = Map<string, Bundle[]>;
9
+ /** A thread as a letter reads it: its decision's shown entities beside it. */ export type Lettered = Thread & {
10
+ shows?: Shows;
11
+ };
12
+ /** Each door reads the same policy, including mute, archive and blockers. */ export declare let inboxAt: (tx: Pick<Graph, 'get' | 'read'>, vocab: Vocab, who: string) => Promise<Lettered[]>;
13
+ /** Only outstanding needs and replies cross this door by default. */ export declare let eligible: (thread: Thread, options: Door) => boolean;
14
+ /** A thread's question, numbered choices with what each shows, and latest
15
+ * words, in mail-safe markdown. */ export declare let rendered: (thread: Lettered, options: Door) => string;
16
+ /** Pure queue plan. Notices are snapshots of activity, never new inbox activity.
17
+ * The queued letter, not a second cursor, is the durable deduplication record. */ export declare let planned: (inbox: Lettered[], notices: Bundle[], options: Door, now: string, daily?: boolean) => Bundle[];
18
+ /** Read and write at the boundary. Replays find the same queued letters. */ export declare let queue: (tx: Pick<Graph, 'get' | 'read'>, vocab: Vocab, options: Door, write: (bundles: Bundle[]) => unknown, now?: string, daily?: boolean) => Promise<void>;
19
+ /** `queue` again after commits, at the cost of what they touched: its reads
20
+ * are held across passes (@yaks/graph/held), and a pass none of whose reads
21
+ * changed queues what it queued before, so it does nothing. Each call hears
22
+ * the eids every other writer committed since the last; the pass knows its
23
+ * own letters. */ export declare let queueing: (graph: Pick<Graph, 'get' | 'read'>, vocab: Vocab, options: Door, write: (bundles: Bundle[]) => unknown) => (moved: Iterable<string>, now?: string, daily?: boolean) => Promise<void>;
24
+ //# sourceMappingURL=letters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"letters.d.ts","sources":["../letters.ts"],"names":[],"mappings":"AAAA;;+DAE+D,GAC/D,cAAc,MAAM,EAAQ,KAAK,2BAAgC;AAIjE,cAAc,KAAK,2BAAgC;AAEnD,cAAc,IAAI,uBAAsB;AAExC,cAAc,MAAM,uBAAsB;AAS1C;wDACwD,GACxD,YAAY,QAAQ,IAAI,MAAM,EAAE;AAChC,4EAA4E,GAC5E,YAAY,WAAW;EAAW,QAAQ;;AAgE1C,2EAA2E,GAC3E,OAAO,YAAI,UACT,IAAI,KAAK,OAAO,QAAQ,SACxB,OAAO,OACP,KAAK,MAAM,KACV,QAAQ,YAkCV;AAED,mEAAmE,GACnE,OAAO,YAAI,WAAY,QAAQ,QAAQ,SAAS,SAAO,OAAO,CAMD;AAE7D;iCACiC,GACjC,OAAO,YAAI,WAAY,QAAQ,UAAU,SAAS,SAAO,MAAM,CA2B9D;AAgBD;gFACgF,GAChF,OAAO,YAAI,UACT,OAAO,YACP,SAAS,UACT,SAAS,MACT,KAAK,MAAM,EACX,oBACC,SAyEF;AAED,0EAA0E,GAC1E,OAAO,YAAI,QACT,IAAI,KAAK,OAAO,QAAQ,SACxB,OAAO,OACP,SAAS,MACT,QAAQ,SAAS,aAAa,OAAO,EACrC,MAAK,MAAM,EACX,oBACC,QAAQ,IAAI,EAcd;AAED;;;;gBAIgB,GAChB,OAAO,YAAI,WACT,OAAO,KAAK,OAAO,QAAQ,SAC3B,OAAO,OACP,SAAS,MACT,QAAQ,SAAS,aAAa,OAAO,MAErC,OAAO,SAAS,MAAM,GACtB,MAAM,MAAM,EACZ,QAAQ,OAAO,KACZ,QAAQ,IAAI,EAoBhB"}
@@ -0,0 +1,4 @@
1
+ import type { Reading } from "@yaks/mail";
2
+ import type { Options } from "./options.js";
3
+ /** The inbox's reading of an arrival, where the options open a door. */ export declare let reading: (options?: Options) => Reading | undefined;
4
+ //# sourceMappingURL=mail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail.d.ts","sources":["../mail.ts"],"names":[],"mappings":"AAmBA,cAA0B,OAAO,0BAA+B;AAEhE,cAAc,OAAO,uBAAsB;AA8F3C,sEAAsE,GACtE,OAAO,YAAI,UAAW,UAAS,YAAe,UAAU,SAAS,CA+BhE"}
package/_dist/mod.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /** Pure person and thread attention policy. No I/O or sends. */ import { type Reader, type Row } from "./reader.js";
2
+ export * from "./reader.js";
3
+ export { inboxDoc } from "./vocab.js";
4
+ export { activityAt, attention, lanes, messageAt, saidBy, stateAt, threadOf, threads } from "./threads.js";
5
+ export type { Direction, Lane, Search, Thread } from "./threads.js";
6
+ export declare let isUnread: (r: Row, who: Reader) => boolean;
7
+ //# sourceMappingURL=mod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sources":["../mod.ts"],"names":[],"mappings":"AAAA,8DAA8D,GAC9D,SAAS,KAAK,MAAM,EAAE,KAAK,GAAG,sBAAqB;AAGnD,4BAA2B;AAC3B,SAAS,QAAQ,qBAAoB;AAErC,SACE,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,EACT,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,uBACY;AACrB,cAAc,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,uBAAsB;AAGnE,OAAO,YAAI,WAAY,GAAG,KAAK,KAAK,WAAS,OAAO,CAGnD"}
@@ -0,0 +1,18 @@
1
+ import type { Eid } from "@yaks/graph";
2
+ /** What a config passes to @yaks/inbox. */ export type Options = {
3
+ /** whose inbox reaches a mail client; letters from them may answer it */ person?: Eid;
4
+ /** the inbox address: letters go out from it, and a verified letter from
5
+ * `person` to it starts a conversation */ from?: string;
6
+ /** where a letter's thread links point: this graph's web address */ base?: string;
7
+ /** the UTC hour after which the day's one digest is queued (default 9) */ hour?: number;
8
+ /** email alerts too; they are never sent unless asked for */ alerts?: boolean;
9
+ /** email updates too; they are never sent unless asked for */ updates?: boolean;
10
+ /** how long the service waits between passes, in milliseconds (default ten
11
+ * seconds) */ every?: number;
12
+ };
13
+ /** An email door that can send: a person, an address and a link base. */ export type Door = Options & {
14
+ person: Eid;
15
+ from: string;
16
+ base: string;
17
+ };
18
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sources":["../options.ts"],"names":[],"mappings":"AAcA,cAAc,GAAG,2BAAgC;AAEjD,yCAAyC,GACzC,YAAY;EACV,uEAAuE,GACvE,SAAS;EACT;0CACwC,GACxC,OAAO,MAAM;EACb,kEAAkE,GAClE,OAAO,MAAM;EACb,wEAAwE,GACxE,OAAO,MAAM;EACb,2DAA2D,GAC3D,SAAS,OAAO;EAChB,4DAA4D,GAC5D,UAAU,OAAO;EACjB;cACY,GACZ,QAAQ,MAAM;;AAGhB,uEAAuE,GACvE,YAAY,OAAO;EAAY,QAAQ;EAAK,MAAM,MAAM;EAAE,MAAM,MAAM"}
@@ -0,0 +1,23 @@
1
+ import { type Built } from "@yaks/query";
2
+ import { type Reader, type Row } from "./reader.js";
3
+ import type { Search } from "./threads.js";
4
+ /** Optional words are queried only when the host declares them. */ export type Words = (path: string) => boolean;
5
+ /** A vocabulary is data: consumers provide only its component/property lookup. */ export declare let words: (vocab: {
6
+ comp: (name: string) => unknown;
7
+ props: (name: string) => string[];
8
+ }) => Words;
9
+ /** First read: direct address, assigned work, watched work and attention,
10
+ * of only the components `within` names when it names any. */ export declare let candidates: (who: Reader, has?: Words, within?: string[]) => Built;
11
+ /** Second read: complete roots and policy-relevant conversation. Searches
12
+ * additionally read words that the attention policy does not otherwise use. */ export declare let discussion: (rows: Row[], has?: Words, search?: Search) => Built;
13
+ /** Third/fourth reads: requires edges and their dependent task state. */ export declare let requirements: (rows: Row[], has?: Words) => Built;
14
+ export declare let dependents: (edges: Row[], has?: Words) => Built;
15
+ /** Keep derived inbox reads below the socket's message budget without dropping
16
+ * threads. Each half asks the same query over a disjoint set of input rows;
17
+ * callers union the answers and wait for every half before claiming readiness.
18
+ */ export declare let boundedReads: (rows: Row[], read: (rows: Row[]) => Built) => Built[];
19
+ /** One input per thread before splitting derived reads. Repeating a session
20
+ * across disjoint batches would download that session's whole discussion in
21
+ * each batch, even though the caller unions the same rows afterward. */ export declare let threadRoots: (rows: Row[]) => Row[];
22
+ export declare let summaryQuery: (actor: string, search?: Search, thread?: string) => Built;
23
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sources":["../queries.ts"],"names":[],"mappings":"AAAA,SAAS,KAAK,KAAK,2BAAmD;AACtE,SAAS,KAAK,MAAM,EAAE,KAAK,GAAG,sBAAqB;AACnD,cAAc,MAAM,uBAAsB;AAG1C,iEAAiE,GACjE,YAAY,SAAS,MAAM,MAAM,KAAK,OAAO;AAC7C,gFAAgF,GAChF,OAAO,YAAI,QACT;EACE,OAAO,MAAM,MAAM,KAAK,OAAO;EAC/B,QAAQ,MAAM,MAAM,KAAK,MAAM;MAEhC,MAWF;AAoED;4DAC4D,GAC5D,OAAO,YAAI,aACT,KAAK,QACL,MAAK,OACL,SAAS,MAAM,OACd,MAyCF;AAqCD;6EAC6E,GAC7E,OAAO,YAAI,aACT,MAAM,OACN,MAAK,OACL,SAAQ,WACP,MA2BF;AAED,uEAAuE,GACvE,OAAO,YAAI,eAAgB,MAAM,OAAO,MAAK,UAAqB,MAUxD;AACV,OAAO,YAAI,aAAc,OAAO,OAAO,MAAK,UAAqB,MAI9D;AAIH;;;CAGC,GACD,OAAO,YAAI,eACT,MAAM,OACN,OAAO,MAAM,UAAU,UACtB,QAiCF;AAED;;sEAEsE,GACtE,OAAO,YAAI,cAAe,MAAM,UAAQ,MAQvC;AAED,OAAO,YAAI,eACT,OAAO,MAAM,EACb,SAAQ,QACR,SAAS,MAAM,KACd,MAW+D"}
@@ -0,0 +1,18 @@
1
+ /** Server reads for the pure inbox policy. Membership and scalar projections
2
+ * keep list reads bodyless; words are authoritative only in search/detail. */ import type { Graph } from "@yaks/graph";
3
+ import type { Vocab } from "@yaks/vocab";
4
+ import { type Search, type Thread } from "./threads.js";
5
+ type ReadTx = Pick<Graph, 'read' | 'get'>;
6
+ type Vocabulary = Pick<Vocab, 'comp' | 'props' | 'word'>;
7
+ /** Exact server inbox summaries. Bodies are absent, not truncated previews.
8
+ * Text/direction searches read complete words on the server, then apply the
9
+ * same pure policy; callers receive threads rather than the source history.
10
+ * `scope` is the project the person stands in, when they read as one of its
11
+ * people: what is addressed to it reaches them too. `target` asks about one
12
+ * candidate through the same visibility and attention policy as the list. */ export declare let readInbox: (tx: ReadTx, vocab: Vocabulary, actor: string, search?: Search & {
13
+ target?: string;
14
+ }, scope?: string) => Promise<Thread[]>;
15
+ /** Full authoritative words and messages for one thread, including archived
16
+ * threads. Digest/detail callers must opt into this read rather than treating
17
+ * metadata as a body. Missing or muted/non-inbox roots return undefined. */ export declare let readThread: (tx: ReadTx, vocab: Vocabulary, actor: string, root: string, scope?: string) => Promise<Thread | undefined>;
18
+ //# sourceMappingURL=read.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"read.d.ts","sources":["../read.ts"],"names":[],"mappings":"AAAA;4EAC4E,GAC5E,cAA4B,KAAK,2BAAgC;AACjE,cAAc,KAAK,2BAAgC;AAYnD,SAAS,KAAK,MAAM,EAAE,KAAK,MAAM,uBAAyC;KAGrE,SAAS,KAAK,OAAO,SAAS;KAC9B,aAAa,KAAK,OAAO,SAAS,UAAU;AA6XjD;;;;;2EAK2E,GAC3E,OAAO,YAAI,YACT,IAAI,QACJ,OAAO,YACP,OAAO,MAAM,EACb,SAAQ;EAAW,SAAS,MAAM;GAClC,QAAQ,MAAM,KACb,QAAQ,UA8BV;AAED;;0EAE0E,GAC1E,OAAO,YAAI,aACT,IAAI,QACJ,OAAO,YACP,OAAO,MAAM,EACb,MAAM,MAAM,EACZ,QAAQ,MAAM,KACb,QAAQ,SAAS,SAAS,EAsB5B"}
@@ -0,0 +1,25 @@
1
+ /** Pure attention policy shared by every inbox door. No I/O or sends. */ export type Row = {
2
+ eid: string;
3
+ comps: Record<string, Record<string, unknown>>;
4
+ };
5
+ export type Reader = {
6
+ session?: string;
7
+ actor?: string;
8
+ scope?: string;
9
+ operator?: boolean;
10
+ claims?: Set<string>;
11
+ addrs?: Set<string>;
12
+ watching?: Set<string>;
13
+ muting?: Set<string>;
14
+ attention?: Map<string, Row>;
15
+ };
16
+ export declare let aboutOf: (r: Row) => string;
17
+ export declare let subsOf: (all: Row[], actor?: string) => {
18
+ watching: Set<string>;
19
+ muting: Set<string>;
20
+ attention: Map<string, Row>;
21
+ };
22
+ export declare let addressed: (who: Reader) => any;
23
+ export declare let addrsOf: (all: Row[], actor?: string) => Set<string>;
24
+ export declare let readerAt: (all: Row[], actor?: string) => Reader;
25
+ //# sourceMappingURL=reader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reader.d.ts","sources":["../reader.ts"],"names":[],"mappings":"AAAA,uEAAuE,GACvE,YAAY;EACV,KAAK,MAAM;EACX,OAAO,OAAO,MAAM,EAAE,OAAO,MAAM,EAAE,OAAO;;AAM9C,YAAY;EACV,UAAU,MAAM;EAChB,QAAQ,MAAM;EACd,QAAQ,MAAM;EAGd,WAAW,OAAO;EAClB,SAAS,IAAI,MAAM;EAKnB,QAAQ,IAAI,MAAM;EAIlB,WAAW,IAAI,MAAM;EACrB,SAAS,IAAI,MAAM;EAEnB,YAAY,IAAI,MAAM,EAAE;;AAM1B,OAAO,YAAI,UAAW,GAAG,QAAM,MAAM,CAIlC;AAGH,OAAO,YAAI,SAAU,KAAK,OAAO,QAAQ,MAAM;EAC7C,UAAU,IAAI,MAAM;EACpB,QAAQ,IAAI,MAAM;EAClB,WAAW,IAAI,MAAM,EAAE;EAexB;AAOD,OAAO,YAAI,YAAa,KAAK,eAmD5B;AASD,OAAO,YAAI,UAAW,KAAK,OAAO,QAAQ,MAAM,KAAG,IAAI,MAAM,EAO5D;AAMD,OAAO,YAAI,WAAY,KAAK,OAAO,QAAQ,MAAM,KAAG,OAOlD"}
@@ -0,0 +1,8 @@
1
+ import type { Graph } from "@yaks/graph";
2
+ import { type Options } from "./options.js";
3
+ /** How long a pass waits for the next one, unless the config says. */ export declare let EVERY: number;
4
+ /** Queue what is owed, then again every `every`, until the signal aborts. An
5
+ * already-aborted signal is one pass. */ export declare let service: (host: {
6
+ graph: Graph;
7
+ }, options?: Options, signal?: AbortSignal) => Promise<void>;
8
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sources":["../service.ts"],"names":[],"mappings":"AAaA,cAAc,KAAK,2BAAgC;AAGnD,SAAe,KAAK,OAAO,uBAAsB;AAEjD,oEAAoE,GACpE,OAAO,YAAI,cAAc;AAEzB;uCACuC,GACvC,OAAO,YAAI,UACT;EAAQ,OAAO;GACf,UAAS,SACT,SAAQ,gBACP,QAAQ,IAAI,EAiBd"}
@@ -0,0 +1,33 @@
1
+ import { type Reader, type Row } from "./reader.js";
2
+ export declare const lanes: readonly ['Needs you', 'Replies', 'Updates', 'Recent'];
3
+ export type Lane = typeof lanes[number];
4
+ export type Direction = 'said' | 'received';
5
+ export type Search = {
6
+ text?: string;
7
+ direction?: Direction;
8
+ all?: boolean;
9
+ lane?: Lane;
10
+ /** Only the threads of candidates holding one of these components, so a
11
+ * door that shows only tasks and decisions never reads a conversation. */ within?: string[];
12
+ };
13
+ export type Thread<R extends Row = Row> = {
14
+ eid: string;
15
+ row: R;
16
+ latest: R;
17
+ messages: R[];
18
+ lane: Lane;
19
+ reason: string;
20
+ blocking: boolean;
21
+ at: string;
22
+ unread: boolean;
23
+ /** Its reader put it away, and nothing has happened on it since; only a
24
+ * read of every thread (`Search.all`) holds it. */ archived: boolean;
25
+ };
26
+ export declare let stateAt: (r: Row) => string;
27
+ export declare let messageAt: (r: Row) => string;
28
+ /** Reading, archiving, delivery and arbitrary edits are not new activity. */ export declare let activityAt: (r: Row) => string;
29
+ export { threadOf } from "@yaks/notify";
30
+ export declare let saidBy: (who: Reader, r: Row, byId?: Map<string, Row>) => boolean;
31
+ /** One row per thread, with lane precedence and blocking work first. */ export declare let threads: <R extends Row>(all: R[], who: Reader, search?: Search) => Thread<R>[];
32
+ export { attention } from "@yaks/notify";
33
+ //# sourceMappingURL=threads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"threads.d.ts","sources":["../threads.ts"],"names":[],"mappings":"AAAA,SAAoB,KAAK,MAAM,EAAE,KAAK,GAAG,sBAAqB;AAG9D,OAAO,cAAM,iBAAS,aAAa,WAAW,WAAW,UAAkB;AAC3E,YAAY,cAAc,MAAM,MAAM;AACtC,YAAY,YAAY,SAAS;AACjC,YAAY;EACV,OAAO,MAAM;EACb,YAAY;EACZ,MAAM,OAAO;EACb,OAAO;EACP;0EACwE,GACxE,SAAS,MAAM;;AAEjB,YAAY,OAAO,UAAU,MAAM;EACjC,KAAK,MAAM;EACX,KAAK;EACL,QAAQ;EACR,UAAU;EACV,MAAM;EACN,QAAQ,MAAM;EACd,UAAU,OAAO;EACjB,IAAI,MAAM;EACV,QAAQ,OAAO;EACf;mDACiD,GACjD,UAAU,OAAO;;AAwBnB,OAAO,YAAI,UAAW,GAAG,QAAM,MAAM,CACiC;AACtE,OAAO,YAAI,YAAa,GAAG,QAAM,MAAM,CAC4B;AACnE,2EAA2E,GAC3E,OAAO,YAAI,aAAc,GAAG,QAAM,MAAM,CACiC;AACzE,SAAS,QAAQ,4BAAiC;AAElD,OAAO,YAAI,SAAU,KAAK,QAAQ,GAAG,KAAK,OAAO,IAAI,MAAM,EAAE,SAAO,OAAO,CAqB1E;AA0BD,sEAAsE,GACtE,OAAO,YAAI,UAAW,UAAU,KAC9B,KAAK,KACL,KAAK,QACL,SAAQ,WACP,OAAO,KAiKT;AAED,SAAS,SAAS,4BAAiC"}
@@ -0,0 +1,12 @@
1
+ /** The inbox's tools. `inbox_new` returns rows the tool runner writes as the
2
+ * caller; it performs no I/O and neither starts nor feeds a session.
3
+ * `inbox_list` reads one row per thread through the shared policy, and
4
+ * `inbox_archive` puts a thread away until qualifying new activity, refreshing
5
+ * the mark atomically so a repeated archive gets a fresh time.
6
+ */ import type { Bundle, Eid } from "@yaks/graph";
7
+ import type { Runs } from "@yaks/graph/tools";
8
+ /** How many threads a list returns when the caller gave no limit. */ export declare let PAGE: number;
9
+ /** Whose inbox this is: the entity the arguments named, else whoever is
10
+ * asking. */ export declare let reader: (call: Bundle) => Eid;
11
+ /** Implementations of the tools declared in the inbox vocabulary. */ export declare let runs: () => Runs;
12
+ //# sourceMappingURL=tools.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tools.d.ts","sources":["../tools.ts"],"names":[],"mappings":"AAAA;;;;;CAKC,GACD,cAAc,MAAM,EAAE,GAAG,2BAAuC;AAGhE,cAAc,IAAI,iCAAsC;AAOxD,mEAAmE,GACnE,OAAO,YAAI,aAAS;AAcpB;WACW,GACX,OAAO,YAAI,SAAU,MAAM,WAAS,IAMnC;AA6BD,mEAAmE,GACnE,OAAO,YAAI,YAAW,KAiCpB"}
@@ -0,0 +1,5 @@
1
+ /** Inbox declarations shared by hosts and browser readers. They carry no I/O. */ import type { VocabDoc } from "@yaks/vocab";
2
+ /** The conversation mark and the inbox_new tool declaration. */ export declare let inboxDoc: VocabDoc;
3
+ /** The package description, from its manifest. */ export declare let description: string;
4
+ /** Every vocabulary document this package declares. */ export declare let docs: VocabDoc[];
5
+ //# sourceMappingURL=vocab.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vocab.d.ts","sources":["../vocab.ts"],"names":[],"mappings":"AAAA,+EAA+E,GAC/E,cAAc,QAAQ,2BAAgC;AAItD,8DAA8D,GAC9D,OAAO,YAAI,UAAU,SAA0B;AAC/C,gDAAgD,GAChD,OAAO,YAAI,aAAa,MAAM,CAAuB;AACrD,qDAAqD,GACrD,OAAO,YAAI,MAAM,WAAuB"}