@agentshouse/mdruntime 0.1.0-c1c2b722d3dcd → 0.1.0-c1c9f29ad800c

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 (195) hide show
  1. package/AGENTS.md +96 -78
  2. package/README.md +9 -8
  3. package/dist/adapter.d.ts +53 -32
  4. package/dist/adapter.d.ts.map +1 -1
  5. package/dist/attached-model.d.ts +4 -1
  6. package/dist/attached-model.d.ts.map +1 -1
  7. package/dist/attached-model.js +13 -3
  8. package/dist/binary.d.ts +0 -5
  9. package/dist/binary.d.ts.map +1 -1
  10. package/dist/binary.js +1 -1
  11. package/dist/bootstrap.d.ts +24 -6
  12. package/dist/bootstrap.d.ts.map +1 -1
  13. package/dist/bootstrap.js +148 -82
  14. package/dist/chain.d.ts +11 -0
  15. package/dist/chain.d.ts.map +1 -0
  16. package/dist/chain.js +64 -0
  17. package/dist/change-set.d.ts +9 -16
  18. package/dist/change-set.d.ts.map +1 -1
  19. package/dist/change-set.js +11 -89
  20. package/dist/change.d.ts +31 -1
  21. package/dist/change.d.ts.map +1 -1
  22. package/dist/change.js +10 -1
  23. package/dist/chat/house.d.ts +25 -0
  24. package/dist/chat/house.d.ts.map +1 -0
  25. package/dist/chat/house.js +38 -0
  26. package/dist/chat/input.d.ts +3 -1
  27. package/dist/chat/input.d.ts.map +1 -1
  28. package/dist/chat/input.js +11 -18
  29. package/dist/chat/list.d.ts +2 -1
  30. package/dist/chat/list.d.ts.map +1 -1
  31. package/dist/chat/list.js +7 -3
  32. package/dist/chat/markdown.d.ts +1 -2
  33. package/dist/chat/markdown.d.ts.map +1 -1
  34. package/dist/chat/markdown.js +2 -19
  35. package/dist/chat/message.d.ts +1 -0
  36. package/dist/chat/message.d.ts.map +1 -1
  37. package/dist/chat/message.js +73 -11
  38. package/dist/chat/messages.d.ts +14 -1
  39. package/dist/chat/messages.d.ts.map +1 -1
  40. package/dist/chat/messages.js +79 -24
  41. package/dist/chat/name.d.ts +1 -0
  42. package/dist/chat/name.d.ts.map +1 -1
  43. package/dist/chat/name.js +1 -1
  44. package/dist/chat/opened.d.ts +1 -0
  45. package/dist/chat/opened.d.ts.map +1 -1
  46. package/dist/chat/opened.js +2 -0
  47. package/dist/chat/overlay.d.ts +1 -0
  48. package/dist/chat/overlay.d.ts.map +1 -1
  49. package/dist/chat/overlay.js +11 -5
  50. package/dist/chat/parts.d.ts +1 -0
  51. package/dist/chat/parts.d.ts.map +1 -1
  52. package/dist/chat/parts.js +3 -2
  53. package/dist/chat/provider.d.ts +8 -1
  54. package/dist/chat/provider.d.ts.map +1 -1
  55. package/dist/chat/provider.js +88 -81
  56. package/dist/chat/ready.d.ts +5 -2
  57. package/dist/chat/ready.d.ts.map +1 -1
  58. package/dist/chat/ready.js +7 -5
  59. package/dist/chat/room-file.d.ts +8 -0
  60. package/dist/chat/room-file.d.ts.map +1 -0
  61. package/dist/chat/room-file.js +72 -0
  62. package/dist/chat/steady.d.ts +3 -0
  63. package/dist/chat/steady.d.ts.map +1 -0
  64. package/dist/chat/steady.js +26 -0
  65. package/dist/chat/style.d.ts.map +1 -1
  66. package/dist/chat/style.js +5 -0
  67. package/dist/chat.d.ts +2 -1
  68. package/dist/chat.d.ts.map +1 -1
  69. package/dist/chat.js +1 -1
  70. package/dist/client.d.ts +6 -3
  71. package/dist/client.d.ts.map +1 -1
  72. package/dist/client.js +28 -2
  73. package/dist/collection.d.ts +6 -20
  74. package/dist/collection.d.ts.map +1 -1
  75. package/dist/collection.js +30 -352
  76. package/dist/compile.d.ts +16 -0
  77. package/dist/compile.d.ts.map +1 -0
  78. package/dist/compile.js +721 -0
  79. package/dist/connection.d.ts +13 -8
  80. package/dist/connection.d.ts.map +1 -1
  81. package/dist/connection.js +2187 -810
  82. package/dist/conversation.d.ts +11 -3
  83. package/dist/conversation.d.ts.map +1 -1
  84. package/dist/conversation.js +120 -66
  85. package/dist/digest.d.ts +7 -0
  86. package/dist/digest.d.ts.map +1 -0
  87. package/dist/digest.js +113 -0
  88. package/dist/durability.d.ts +3 -5
  89. package/dist/durability.d.ts.map +1 -1
  90. package/dist/durability.js +5 -0
  91. package/dist/entry.d.ts +3 -1
  92. package/dist/entry.d.ts.map +1 -1
  93. package/dist/entry.js +18 -24
  94. package/dist/file.d.ts +2 -10
  95. package/dist/file.d.ts.map +1 -1
  96. package/dist/file.js +3 -120
  97. package/dist/fulltext.d.ts +27 -0
  98. package/dist/fulltext.d.ts.map +1 -0
  99. package/dist/fulltext.js +368 -0
  100. package/dist/host.d.ts +4 -4
  101. package/dist/host.d.ts.map +1 -1
  102. package/dist/host.js +16 -8
  103. package/dist/identity.d.ts +0 -1
  104. package/dist/identity.d.ts.map +1 -1
  105. package/dist/identity.js +0 -3
  106. package/dist/index.d.ts +12 -9
  107. package/dist/index.d.ts.map +1 -1
  108. package/dist/index.js +4 -1
  109. package/dist/live.d.ts +22 -0
  110. package/dist/live.d.ts.map +1 -0
  111. package/dist/live.js +123 -0
  112. package/dist/memory.d.ts +1 -0
  113. package/dist/memory.d.ts.map +1 -1
  114. package/dist/memory.js +20 -15
  115. package/dist/messages.d.ts +28 -0
  116. package/dist/messages.d.ts.map +1 -0
  117. package/dist/messages.js +90 -0
  118. package/dist/name.d.ts +4 -0
  119. package/dist/name.d.ts.map +1 -0
  120. package/dist/name.js +122 -0
  121. package/dist/observation.d.ts +12 -0
  122. package/dist/observation.d.ts.map +1 -1
  123. package/dist/observation.js +84 -0
  124. package/dist/opened.d.ts +22 -0
  125. package/dist/opened.d.ts.map +1 -0
  126. package/dist/opened.js +107 -0
  127. package/dist/outcome.d.ts +28 -4
  128. package/dist/outcome.d.ts.map +1 -1
  129. package/dist/outcome.js +22 -0
  130. package/dist/overlay.d.ts +2 -6
  131. package/dist/overlay.d.ts.map +1 -1
  132. package/dist/overlay.js +35 -136
  133. package/dist/query.d.ts +5 -1
  134. package/dist/query.d.ts.map +1 -1
  135. package/dist/query.js +13 -1
  136. package/dist/reach.d.ts +5 -3
  137. package/dist/reach.d.ts.map +1 -1
  138. package/dist/reach.js +149 -61
  139. package/dist/readiness.d.ts +19 -9
  140. package/dist/readiness.d.ts.map +1 -1
  141. package/dist/readiness.js +2 -2
  142. package/dist/reads.d.ts.map +1 -1
  143. package/dist/reads.js +4 -2
  144. package/dist/recovery.d.ts +2 -2
  145. package/dist/recovery.d.ts.map +1 -1
  146. package/dist/recovery.js +8 -7
  147. package/dist/refresh.d.ts +15 -14
  148. package/dist/refresh.d.ts.map +1 -1
  149. package/dist/refresh.js +112 -51
  150. package/dist/replica.d.ts +57 -38
  151. package/dist/replica.d.ts.map +1 -1
  152. package/dist/replica.js +276 -193
  153. package/dist/room-draft.d.ts +3 -1
  154. package/dist/room-draft.d.ts.map +1 -1
  155. package/dist/room-draft.js +21 -13
  156. package/dist/rows.d.ts +29 -31
  157. package/dist/rows.d.ts.map +1 -1
  158. package/dist/rows.js +113 -69
  159. package/dist/save.d.ts +50 -15
  160. package/dist/save.d.ts.map +1 -1
  161. package/dist/save.js +374 -107
  162. package/dist/search.d.ts +11 -43
  163. package/dist/search.d.ts.map +1 -1
  164. package/dist/search.js +0 -213
  165. package/dist/shared.d.ts +5 -3
  166. package/dist/shared.d.ts.map +1 -1
  167. package/dist/shared.js +72 -35
  168. package/dist/store.d.ts +87 -92
  169. package/dist/store.d.ts.map +1 -1
  170. package/dist/store.js +329 -687
  171. package/dist/stored.d.ts +145 -0
  172. package/dist/stored.d.ts.map +1 -0
  173. package/dist/stored.js +567 -0
  174. package/dist/tables.d.ts +344 -0
  175. package/dist/tables.d.ts.map +1 -0
  176. package/dist/tables.js +580 -0
  177. package/dist/turn.d.ts +2 -2
  178. package/dist/turn.d.ts.map +1 -1
  179. package/dist/turn.js +34 -23
  180. package/dist/validation.d.ts +30 -0
  181. package/dist/validation.d.ts.map +1 -0
  182. package/dist/validation.js +162 -0
  183. package/dist/windows.d.ts +2 -6
  184. package/dist/windows.d.ts.map +1 -1
  185. package/dist/windows.js +30 -34
  186. package/dist/wire.d.ts +13 -1
  187. package/dist/wire.d.ts.map +1 -1
  188. package/dist/wire.js +4 -1
  189. package/dist/words.d.ts +19 -0
  190. package/dist/words.d.ts.map +1 -0
  191. package/dist/words.js +150 -0
  192. package/package.json +10 -4
  193. package/dist/read-side.d.ts +0 -27
  194. package/dist/read-side.d.ts.map +0 -1
  195. package/dist/read-side.js +0 -824
package/AGENTS.md CHANGED
@@ -5,8 +5,8 @@ change it, build, and push. They are documentation, not enforcement.
5
5
 
6
6
  ## The MD Runtime API
7
7
 
8
- App code reaches the MD Runtime through the remote client. The surfaces are Rooms,
9
- Query, Search, Observe, Types, Room Draft, Save, History, the binary file reads, Call,
8
+ App code reaches the MD Runtime through the remote client. The surfaces are Rooms, Query,
9
+ Search, Observe, Types, Room Draft, Save, History, Resolve, the binary file reads, Call,
10
10
  Reached, Log, the reported persistence answer, reauthorization, conversation, the chat
11
11
  draft, and Presentation State. Sync Status, readiness, the Service Mode, the storage-loss
12
12
  statement, the deployment facts and the signed-in member are observations only.
@@ -52,32 +52,34 @@ change, and no tab sees it then.
52
52
 
53
53
  A binary file at a Path is a binary Path entry. Query lists it by `path`, and History each
54
54
  of its revisions, with its `binaryFile` record and never its bytes: `{ state: 'accepted',
55
- revision, path, fileRef, byteLength, mediaType, sha256 }`, or, from a Save until the
55
+ revision, path, byteLength, mediaType, sha256 }`, or, from a Save until the
56
56
  Provider accepts it, `{ state: 'pending', localId, path, byteLength, mediaType, sha256 }`.
57
57
  Write one with a Room Draft whose only part is `file: { blob }`, the `Blob`'s `type` its
58
58
  media type: Save keeps the bytes in its Pending Change, offline too, and acceptance gives
59
59
  the record the Provider's revision. Move or remove one as a Document, a pending one too,
60
60
  its bytes following; once its Pending Change has gone to the Provider, Save refuses that
61
61
  as `unknown-revision` until it is accepted. `binaryFile.read(room, path, revision?)`
62
- answers a pending record's saved bytes, or asks the Provider on every read of an accepted
63
- one or a History revision, a removed file's last included, keeping nothing. Text, a Record
64
- attachment or a conversation message may name a file by its `fileRef`; read it with
65
- `binaryFile.readReference({ fileRef, referrer })`, the `referrer` the Provider gave beside
66
- it, or `{ room, path }` of the document whose text names it. Both answer
67
- `{ kind: 'binary', blob }` or a refusal or failure.
62
+ answers a pending record's saved bytes, or an accepted one's or a History revision's, a
63
+ removed file's last included: the first read asks the Provider and the browser keeps the
64
+ bytes, and every later read of that revision, offline too, answers them from the browser.
65
+ Text names a file only by a link to its Path. A read answers
66
+ `{ kind: 'binary', stream, byteLength, mediaType }`, the bytes a `ReadableStream`
67
+ of parts of at most a mebibyte, or a refusal or failure; read the stream to its end, or
68
+ take it whole with `new Response(stream).blob()` where a screen needs one `Blob`.
68
69
 
69
70
  Rooms, Query, Search, Observe, Types, Room Draft, Save, and Reached never touch the
70
- network; History, the binary file reads and Call go to the Provider through the Adapter.
71
+ network; History, a binary file read the browser does not keep yet and Call go to the
72
+ Provider through the Adapter.
71
73
  Call takes the Action names the Adapter declares, any other answering `undeclared`. A Call
72
74
  result whose effect the Provider places in a Room carries `at`, that Room and Room
73
75
  Version: `reached(room, roomVersion)` answers whether the Room's confirmed state has
74
76
  reached it, refreshing the Room until it has, and `reached(room, roomVersion, path)`
75
77
  whether the held copy of that document was written later. A History revision names its
76
- author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`; History of a Path no
78
+ author, `{ kind: 'user', id }` or `{ kind: 'site' | 'inbox', id, name }`; History of a Path no
77
79
  document holds answers the removed document's revisions, newest first, with `deleted:
78
80
  true`, which a link to the Path opens. Every member is asynchronous and every result a
79
81
  detached snapshot; nothing returns the authorization, performs a request the App's code
80
- composes, or exposes the browser store.
82
+ composes, or exposes the browser store. A Room `rooms` names `locked` shows only online.
81
83
 
82
84
  Every refusal and failure carries `code` and `retryable`: each Call and History answer
83
85
  other than its result, a refused Save or Room Draft write, a returned Room Draft's reason,
@@ -101,8 +103,8 @@ named; signing out answers `null`, then ends the observation with the authorizat
101
103
  hears it again only when it changes, keeping every unchanged Document the same object, so
102
104
  a component can tell what changed by identity. `{ documents, coverage }` or `{ groups,
103
105
  coverage }` is complete for the Rooms its `coverage` names, and `{ pending }` names each
104
- Room not yet acquired or prepared, `[{ room, awaits }]`: never read it as empty, draw it
105
- as loading and observe the query to hear the complete answer. A query is data:
106
+ Room not yet acquired, prepared or unlocked, `[{ room, awaits }]`: never read it as empty,
107
+ draw it as loading and observe the query to hear the complete answer. A query is data:
106
108
 
107
109
  - **Filter.** `rooms` names Room locators and defaults to every Room. `types` names MD
108
110
  Types, and `any` names untyped Markdown Documents. `pathPrefix` is a directory: `notes`
@@ -119,36 +121,41 @@ as loading and observe the query to hear the complete answer. A query is data:
119
121
  compares in calendar order and never with a date-time. A reference compares by the
120
122
  Room Path it resolves to. Untyped frontmatter, and a value under `oneOf` or a
121
123
  conditional, is plain values. There is no text containment or regular expression.
122
- - **Relations.** `hop: { field, types, where, pathPrefix }` keeps Documents whose
123
- reference at pointer `field`, at any depth, points to a matching Document of the same
124
- Room. `backlinks: { field, types, where, pathPrefix }` keeps Documents that a matching
125
- Document of the same Room references. Each keeps a Document once.
124
+ - **Relations.** Within one Room, `hop: { field, types, where, pathPrefix }` keeps Documents
125
+ whose reference at pointer `field`, at any depth, points to a matching Document, and
126
+ `backlinks` with the same keys those a matching Document references, each once. A body
127
+ link or a `cross_room` reference may name another Room's `/rooms/<handle>/<path>`:
128
+ `resolve(room, path, destination)` answers its `document`, the `deleted` one's last
129
+ `revision`, or `unreadable` where the App does not bind it or it is locked.
126
130
  - **Parts.** A Document query must `select`: `'all'`, or `fields`, `sections`,
127
- `preamble`, `markdown`, `backlinks`, `change` and `fileId`, where `fields` is `'all'`
131
+ `preamble`, `markdown`, `backlinks`, `change`, `fileId` and `revision`, where `fields` is `'all'`
128
132
  or a list of pointers and `sections` `'all'` or a list of names. Selected pointers
129
133
  return the frontmatter holding only them, nested as written. A backlink names the
130
134
  referring Path, MD Type and the pointer it came from as `field`. Room and Path always
131
135
  return; a Markdown Document also returns its MD Type, and at most its first 1,000
132
136
  backlinks: a query on the referring field reads the rest. A non-Markdown Document
133
- returns only Room, Path and a selected `fileId`, and a binary Path entry its
134
- `binaryFile` record too. An unselected part is absent. Select only what a screen shows:
135
- a list that selects the Markdown hears every edit of it.
136
- - **Change and file ID.** `change` is `{ author, time }` of the Document's head revision
137
- as the Provider last delivered it: `author` is `{ kind: 'user' | 'site', id, name }`, or
137
+ returns only Room, Path and a selected `fileId` and `revision`, a binary Path entry its `binaryFile`
138
+ record too, and a YAML file under `settings/` its text as a selected `markdown`, kept
139
+ out of Search. An unselected part is absent. Select only what a screen shows: a list
140
+ that selects the Markdown hears every edit of it.
141
+ - **Change, file ID and revision.** `change` is `{ author, time }` of the Document's head revision
142
+ as the Provider last delivered it: `author` is `{ kind: 'user' | 'site' | 'inbox', id, name }`, or
138
143
  `null` for a write the Provider made itself, and `time` its ISO 8601 change time, or the
139
144
  whole change `null` where it delivered no time, as at a Site. `fileId` is the Provider's
140
145
  Stable File ID of the file at the Path, or `null`. An unsent edit keeps both, an unsent
141
146
  move keeps the change and carries the file ID to the new Path, so a file ID that leaves
142
147
  one Path for another is the same file moved, and an unsent creation has neither until it
143
- is Accepted. A Room's last change is its Document with the latest `time`.
144
- - **Order and groups.** `orderBy` sorts by `room`, `path`, `type`, `folder` or `{ field }`
145
- with TanStack DB's own options; ties end with Room, then Path. `groupBy` by `room`,
146
- `type`, `folder` or `{ field }` answers `{ groups: [{ key, count }] }`, counted over every
147
- match and ordered by `count` or a key. A sort or group takes only a single-value pointer.
148
- `limit`, at most 1,000 whatever a query names, bounds the Documents or the groups, and a
149
- result it cuts short names `next`: the same query with it as `after` reads the next
150
- window, in the same order, ties included. `total: true` adds `total`, every match's
151
- count. An observed window hears rows entering, leaving or changing, and `next`, `total`.
148
+ is Accepted. `revision` is the Provider's head revision, `null` for an unsent creation or edit,
149
+ and moves with an unsent move. A Room's last change is its Document with the latest `time`.
150
+ - **Order and groups.** `orderBy` sorts by `room`, `path`, `type`, `folder` or `{ field }`: missing
151
+ and null first, last with `nulls: 'last'`, then numbers and booleans, then text by `locale` or
152
+ code point with `stringSort: 'lexical'`, then lists item by item; ties end with Room, then Path.
153
+ `groupBy` by `room`, `type`, `folder` or `{ field }` answers `{ groups: [{ key, count }] }`,
154
+ counted over every match and ordered by `count` or a key. A sort or group takes only a
155
+ single-value pointer. `limit`, at most 1,000 whatever a query names, bounds the Documents or the
156
+ groups, and a result it cuts short names `next`: the same query with it as `after` reads the next
157
+ window, in the same order, ties included. `total: true` adds `total`, every match's count. An
158
+ observed window hears rows entering, leaving or changing, and `next`, `total`.
152
159
  - **Results and errors.** A result carries no Room Version: read freshness from Rooms and
153
160
  Sync Status. `coverage` names each Room read as `{ room, generation, current }`,
154
161
  `current` false while a newer copy of that Room is being fetched, and the queued changes
@@ -158,49 +165,59 @@ as loading and observe the query to hear the complete answer. A query is data:
158
165
  ## Local Search rules
159
166
 
160
167
  `search({ text, documents, collection, conversations, limit, after, total })` answers
161
- once, by words, from local state, with MiniSearch's defaults. There is no observed search.
168
+ once, by words, from the full-text index the browser keeps with its local state, so it
169
+ answers at once after a reload. There is no observed search.
162
170
 
163
- - **Declaration.** Only an App whose release declares Local Search searches, its first
164
- readiness waiting for its index; any other App's `search` answers the never retryable
165
- `undeclared` refusal `search-undeclared`, its `fields` naming `local_search`.
171
+ - **Declaration.** Only an App whose release declares Local Search searches; any other
172
+ App's `search` answers the never retryable `undeclared` refusal `search-undeclared`, its
173
+ `fields` naming `local_search`.
166
174
  - **What is found.** A Document by its field values, its sections' headings and text, its
167
175
  preamble and its Path, and a message by its text, never a frontmatter key, a Room Draft,
168
- a chat draft or a running turn's parts, with no phrases, word forms, typo tolerance or
169
- prefix matching.
176
+ a chat draft or a running turn's parts. Any word found ranks a hit, more found rank it
177
+ higher, and adjacent words higher still; case and the marks of Latin, Greek and
178
+ Cyrillic letters fold, English word forms stem, the last word also matches as the start
179
+ of a word unless the text ends with a space, and Chinese, Japanese, Korean and Thai text
180
+ matches by character pairs. There is no typo tolerance and no operator syntax.
170
181
  - **Narrowing.** `documents` is a Local Query filter, and `collection: true` leaves out
171
182
  what each Room's `typedSelection` roots hold; `conversations` names conversations. All
172
183
  apply before `limit`, which bounds each list, at most 1,000 whatever a search names. A
173
184
  complete answer it cuts short names `next`, which `after` takes for the next window of
174
- both lists. `total: true` adds `total`, each list's count.
185
+ both lists. `total: true` adds `total`, each list's count. A word in very many Documents
186
+ ranks among a bounded set of them, the Documents of a rarer word of the search always
187
+ among them.
175
188
  - **Results.** `{ documents, messages, coverage }`, or the same with `pending` naming each
176
- Room or conversation the search still waits for: show its hits, ask again, and never
177
- read pending as no hits. `coverage` names the Rooms and conversations searched. Each
178
- list is ranked by `score`, comparable only within it; ties come by `room`, then `path`,
179
- or by `conversation`, then `identity`. A Document hit names its `room`, `path` and
180
- `type`, a message hit its `conversation` and `identity`; `matches` maps each matched
181
- word to the parts it matched in: `fields`, `sections`, `preamble`, `path` or `text`. A
182
- hit carries no position: mark the words you show. A bad filter fails as a query does.
189
+ Room the search still waits for: show its hits, ask again, and never read pending as no
190
+ hits. `coverage` names the Rooms and conversations searched. Each list is ranked by
191
+ `score`, comparable only within it; ties come by `room`, then `path`, or by
192
+ `conversation`, then `identity`. A Document hit names its `room`, `path` and `type`, a
193
+ message hit its `conversation` and `identity`; `matches` maps each word of the search
194
+ to the parts it was found in: `fields`, `sections`, `preamble`, `path` or `text`. A hit
195
+ whose words were found carries `snippet: { part, text, at }`: the part's text around
196
+ the first word found, at most 80 characters on either side, and `at` that word's start
197
+ and end in `text`. Mark the words you show. A bad filter fails as a query does.
183
198
 
184
199
  ## Room Draft, Save, and outcome rules
185
200
 
186
201
  The MD Runtime owns one durable Room Draft per Room and Path, shared by every App and tab
187
202
  across reloads; a Room the Provider reports lost takes its Room Drafts and queue with it.
188
- Write one with `roomDraft.write(room, path, revision, parts)`, naming the revision you
189
- read or `null`, and every part it now changes: fields, sections and the preamble, or the
190
- whole Markdown, a creation, a move or a removal. A new part names its base, the value you
191
- showed when it was opened, a field's as `{ value }` or `null` for no such field, and keeps
192
- its first base; a binary Path entry's move or removal takes `null`. A write or discard
193
- from an older revision is refused as `stale` with the current Room Draft.
203
+ Write one with `roomDraft.write(room, path, revision, parts)`, naming the revision you read
204
+ or `null`, and every part it now changes: fields, sections and the preamble, or the whole
205
+ Markdown, a creation, a move, into another Room when it names `room`, or a removal. A new
206
+ part names its base, the value you showed when it was opened, a field's as `{ value }` or
207
+ `null` for no such field, and keeps its first base; a binary Path entry's move or removal
208
+ takes `null`. A write or discard from an older revision is refused as `stale` with the
209
+ current Room Draft.
194
210
 
195
211
  Save takes one Room and the Room Drafts of it to save, each with its revision, validates
196
- locally, and on success appends one Change Batch to that Room's queue and removes those
197
- Room Drafts. Refused as `stale`, `changed-underneath` naming each part whose base no
198
- longer matches the visible state, or a local validation rule, it creates nothing and
199
- leaves every Room Draft. A directory move or removal is that part on each Document and
200
- binary Path entry beneath it, saved together. `saveParts(room, [{ path, parts }])` saves
201
- parts, each Path once and each new part with its base, the same way but writes no Room
202
- Draft: one held at a saved Path stays, one at a moved Path moves with it to a destination
203
- that holds none. Never save by writing back a Room Draft read before.
212
+ locally, and on success appends one Change Batch to that Room's queue and removes those Room
213
+ Drafts. Refused as `stale`, `changed-underneath` naming each part whose base no longer
214
+ matches the visible state, or a local validation rule, it creates nothing and leaves every
215
+ Room Draft. A directory move or removal is that part on each Document and binary Path entry
216
+ beneath it, saved together; moves into another Room, saved alone, are one Change Batch in
217
+ both Rooms' queues. `saveParts(room, [{ path, parts }])` saves parts, each Path once and
218
+ each new part with its base, the same way but writes no Room Draft: one held at a saved Path
219
+ stays, one at a moved Path moves with it to a destination that holds none. Never save by
220
+ writing back a Room Draft read before.
204
221
 
205
222
  Outcomes follow the Provider's answer. An Accepted Change Batch stays in the queue, drawn
206
223
  over the confirmed layer, until that layer reaches the Room Version it was accepted at.
@@ -214,19 +231,19 @@ Provider unavailability and a refusal marked retryable, until the reset it names
214
231
  work Pending; the MD Runtime retries the same Change Batch identity and payload, never
215
232
  infers an outcome from transport uncertainty, and never combines, reorders, or rebases.
216
233
 
217
- On a Site, every Save stays in the visitor's browser: write grants and revisions do not
218
- refuse it, and its Pending Change shows in every query and across reloads until the
219
- browser's storage is cleared. It is never sent: `observe('queue', room)` shows it `local`,
220
- Sync Status never waits on it, and once the Room no longer lets it apply it leaves the
221
- queue and returns no Room Draft.
234
+ On a Site, every Save stays in the visitor's browser: write grants and revisions do not refuse it,
235
+ and its Pending Change shows in every query and across reloads until the browser's storage is
236
+ cleared. It is never sent: `observe('queue', room)` shows it `local`, Sync Status never waits on
237
+ it, and once the Room no longer lets it apply it leaves the queue and returns no Room Draft.
222
238
 
223
- `observe('service-mode')` answers the Provider's Service Mode, `open` or `write-halted`.
224
- While writes are halted, Save succeeds, its Change Batch waits unsent and the queue is
225
- submitted in order once writes reopen; an Action is never held, and one the halt refuses
226
- returns that refusal: show the Provider as read-only instead of retrying.
227
- `observe('readiness')` tells whether the App's code and bound Rooms are held locally
228
- (`ready`), each Room's state, each refused Room's file and rule, the persistence answer
229
- and a paused preparation's `capacity` cause; `retry()` resumes a paused preparation.
239
+ `observe('service-mode')` answers the Provider's Service Mode, `open` or `write-halted`. While writes
240
+ are halted, Save succeeds, its Change Batch waits unsent and the queue is submitted in order once writes
241
+ reopen; an Action is never held, and one the halt refuses returns that refusal: show the Provider as
242
+ read-only instead of retrying. `observe('readiness')` tells whether code and bound Rooms are held
243
+ locally (`ready`), each Room's state, each refused Room's file and rule, the persistence answer, `space`
244
+ (`full` once the device's storage refused a write, Save and messages refusing as `durable-write` until
245
+ `retry()` or a later test write finds space, or once the origin refused a newer release), and the
246
+ `installation`'s Rooms, parts, bytes, `received`, `step` and `paused`.
230
247
 
231
248
  ## Content safety and launch promises
232
249
 
@@ -292,8 +309,9 @@ Mix `ChatMessageList` (`components` takes your `UserMessage` and `AssistantMessa
292
309
  `ChatInput` and `ChatQuestionCard` with your own design inside a `ChatProvider`, or
293
310
  compose assistant-ui's primitives there; `useChat()` gives `send`, the conversations, the
294
311
  Agents, questions to `answer`, `options` to `choose`, `commands`, the queue to `edit` or
295
- `unqueue`, `stop`, `kill` and outcomes; never replace its messages, sending or store. It
296
- shows a conversation's latest 50 messages, and assistant-ui's `loadEarlier()` the 50
297
- before, which `ChatMessageList` calls as the reader scrolls back. A secret question is
298
- never answered here; typed answers live in the Presentation State members named `typed:…`:
299
- leave them. `Markdown` draws Markdown safely.
312
+ `unqueue`, `stop`, `kill`, `renew`, which starts a new chat with the same Agent in place
313
+ of a conversation whose session could not resume, and outcomes; never replace its
314
+ messages, sending or store. It shows a conversation's latest 50 messages, and
315
+ assistant-ui's `loadEarlier()` the 50 before, which `ChatMessageList` calls as the reader
316
+ scrolls back. A secret question is never answered here; typed answers live in the
317
+ Presentation State members named `typed:…`: leave them. `Markdown` draws Markdown safely.
package/README.md CHANGED
@@ -12,14 +12,15 @@ npm install @agentshouse/mdruntime
12
12
 
13
13
  ## Entries
14
14
 
15
- | Entry | For |
16
- | ------------------------------- | ----------------------------------------------------------- |
17
- | `@agentshouse/mdruntime/client` | The host's client: `connectMdRuntime(port)` |
18
- | `@agentshouse/mdruntime/host` | The host that serves a Runtime: `serveMdRuntime` |
19
- | `@agentshouse/mdruntime` | Shared types |
20
- | `@agentshouse/mdruntime/memory` | Tests: `createMemoryAdapter`, an in-memory Adapter |
21
- | `@agentshouse/mdruntime/react` | React over the client: `useObserve`, `useSave` |
22
- | `@agentshouse/mdruntime/chat` | The Chat: `Chat`, `mountChat`, its parts and `ChatProvider` |
15
+ | Entry | For |
16
+ | ------------------------------- | ----------------------------------------------------------------------------------- |
17
+ | `@agentshouse/mdruntime/client` | The host's client: `connectMdRuntime(port)` |
18
+ | `@agentshouse/mdruntime/host` | The host that serves a Runtime: `serveMdRuntime` |
19
+ | `@agentshouse/mdruntime` | Shared types |
20
+ | `@agentshouse/mdruntime/memory` | Tests: `createMemoryAdapter`, an in-memory Adapter |
21
+ | `@agentshouse/mdruntime/tables` | The host's database: the Authored store's and opened files' tables, `answerRuntime` |
22
+ | `@agentshouse/mdruntime/react` | React over the client: `useObserve`, `useSave` |
23
+ | `@agentshouse/mdruntime/chat` | The Chat: `Chat`, `mountChat`, its parts and `ChatProvider` |
23
24
 
24
25
  ## Usage
25
26
 
package/dist/adapter.d.ts CHANGED
@@ -10,14 +10,13 @@ export type TypedSelection = {
10
10
  roots: readonly string[];
11
11
  };
12
12
  export type OperationScopes = {
13
- read: readonly string[];
14
- sync: readonly string[];
15
13
  write: readonly string[];
16
14
  delete: readonly string[];
17
15
  };
18
16
  export type ReplicaAdmission = {
19
17
  selection: string;
20
18
  admission: Open<'admitted' | 'unavailable'>;
19
+ offline: Open<'locked' | 'open'>;
21
20
  };
22
21
  export type DiscoveredRoom = {
23
22
  name: string;
@@ -49,8 +48,9 @@ export type ListedConversation = {
49
48
  created: string;
50
49
  finished: string | null;
51
50
  outcome: string | null;
51
+ waiting: boolean;
52
52
  };
53
- export type ConversationAction = 'conversation.create' | 'conversation.send' | 'conversation.answer' | 'conversation.interrupt' | 'conversation.kill' | 'conversation.cancel' | 'conversation.delete' | 'conversation.history';
53
+ export type ConversationAction = 'conversation.create' | 'conversation.send' | 'conversation.attach' | 'conversation.answer' | 'conversation.interrupt' | 'conversation.kill' | 'conversation.cancel' | 'conversation.delete' | 'conversation.history';
54
54
  export type ConversationMessage = {
55
55
  identity: string;
56
56
  turn: string;
@@ -162,6 +162,18 @@ export type ConversationEvent = {
162
162
  kind: 'options';
163
163
  conversation: string;
164
164
  options: readonly SessionOption[];
165
+ } | {
166
+ kind: 'starting';
167
+ conversation: string;
168
+ step: string | null;
169
+ } | {
170
+ kind: 'link';
171
+ conversation: string;
172
+ connected: boolean;
173
+ } | {
174
+ kind: 'deliveries';
175
+ conversation: string;
176
+ unknown: readonly string[];
165
177
  } | {
166
178
  kind: 'accepted-message';
167
179
  conversation: string;
@@ -187,6 +199,7 @@ export type ActionDeclaration = {
187
199
  name: string;
188
200
  inputShape: unknown;
189
201
  resultKind: unknown;
202
+ room?: string;
190
203
  };
191
204
  export type ProviderLimit = {
192
205
  name: string;
@@ -233,7 +246,7 @@ export type ProviderRefusal = {
233
246
  export type ScopedRefusal = ProviderRefusal & {
234
247
  kind: 'scoped-refusal';
235
248
  locator: string;
236
- scope: Open<'content' | 'sync' | 'model' | 'operation' | 'undisclosed'>;
249
+ scope: Open<'content' | 'model' | 'operation' | 'undisclosed'>;
237
250
  };
238
251
  export type AdapterFailure = TransportUncertainty | RoomNotReadable | RevokedAuthorization | ScopedRefusal;
239
252
  export type ContractUnavailable = ProviderRefusal & {
@@ -242,7 +255,7 @@ export type ContractUnavailable = ProviderRefusal & {
242
255
  export type DiscoverResult = Discovery | TransportUncertainty | RevokedAuthorization | ContractUnavailable;
243
256
  export type PageToken = string;
244
257
  export type ChangeAuthor = {
245
- kind: Open<'user' | 'site'>;
258
+ kind: Open<'user' | 'site' | 'inbox'>;
246
259
  id: string;
247
260
  name: string;
248
261
  };
@@ -256,20 +269,32 @@ export type HeadChange = {
256
269
  time: string;
257
270
  };
258
271
  export type BinaryFile = {
259
- fileRef: string;
260
272
  byteLength: number;
261
273
  mediaType: string;
262
274
  sha256: string;
263
275
  };
276
+ export type HeldFile = {
277
+ readonly path: string;
278
+ readonly revision: string;
279
+ };
264
280
  export type HeldContent = {
265
- documents: Readonly<Record<string, string>>;
266
- revisions: Readonly<Record<string, string>>;
281
+ files(after: string | null, limit: number): Promise<readonly HeldFile[]>;
282
+ contents(paths: readonly string[]): Promise<ReadonlyMap<string, {
283
+ readonly content: string;
284
+ readonly revision: string;
285
+ }>>;
267
286
  };
268
287
  export type BootstrapRequest = {
269
288
  locator: string;
270
289
  selection: string;
271
290
  pageToken?: PageToken;
272
291
  held?: HeldContent;
292
+ received?: Uint8Array;
293
+ arriving?: (bytes: number) => void;
294
+ };
295
+ export type BootstrapInventory = {
296
+ readonly parts: number;
297
+ readonly bytes: number;
273
298
  };
274
299
  export type RoomModels = {
275
300
  collection?: ModelResult;
@@ -284,7 +309,10 @@ export type BootstrapPage = {
284
309
  fileIds?: Readonly<Record<string, string>>;
285
310
  changes: Readonly<Record<string, HeadChange>>;
286
311
  binaryFiles: Readonly<Record<string, BinaryFile>>;
312
+ folders?: readonly string[];
287
313
  pageToken?: PageToken;
314
+ inventory?: BootstrapInventory;
315
+ received?: Uint8Array;
288
316
  };
289
317
  export type BootstrapResult = BootstrapPage | {
290
318
  kind: 'beyond-horizon';
@@ -305,6 +333,8 @@ export type RefreshPage = {
305
333
  changes: Readonly<Record<string, HeadChange>>;
306
334
  binaryFiles: Readonly<Record<string, BinaryFile>>;
307
335
  removals: readonly string[];
336
+ folders?: readonly string[];
337
+ folderRemovals?: readonly string[];
308
338
  pageToken?: PageToken;
309
339
  };
310
340
  export type RefreshResult = {
@@ -315,6 +345,7 @@ export type RefreshResult = {
315
345
  export type MutationRequest = {
316
346
  locator: string;
317
347
  changeBatch: ChangeBatch;
348
+ file(localId: string): Promise<Blob>;
318
349
  upload?: unknown;
319
350
  };
320
351
  export type RetryableRefusal = ProviderRefusal & {
@@ -325,8 +356,7 @@ export type ServiceMode = Open<'open' | 'write-halted'>;
325
356
  export type ServiceModeSignal = {
326
357
  observe(notify: (mode: ServiceMode) => void): () => void;
327
358
  };
328
- export type MutationResult = {
329
- kind: 'accepted';
359
+ export type AcceptedRoom = {
330
360
  roomVersion: string;
331
361
  documents: Readonly<Record<string, string>>;
332
362
  revisions: Readonly<Record<string, string>>;
@@ -334,9 +364,13 @@ export type MutationResult = {
334
364
  changes: Readonly<Record<string, HeadChange>>;
335
365
  removals: readonly string[];
336
366
  binaryFiles?: Readonly<Record<string, BinaryFile>>;
367
+ };
368
+ export type MutationResult = (AcceptedRoom & {
369
+ kind: 'accepted';
337
370
  author?: string;
338
371
  time?: string;
339
- } | (ProviderRefusal & {
372
+ destination?: AcceptedRoom;
373
+ }) | (ProviderRefusal & {
340
374
  kind: 'conflicted';
341
375
  roomVersion?: string;
342
376
  affected: Readonly<Record<string, string>>;
@@ -353,7 +387,7 @@ export type HistoryAuthor = {
353
387
  kind: 'user';
354
388
  id: string;
355
389
  } | {
356
- kind: 'site';
390
+ kind: 'site' | 'inbox';
357
391
  id: string;
358
392
  name: string;
359
393
  };
@@ -385,22 +419,12 @@ export type BinaryRequest = {
385
419
  locator: string;
386
420
  path: string;
387
421
  revision: string;
388
- fileRef?: string;
389
- } | {
390
- kind: 'reference';
391
- fileRef: string;
392
- referrer: unknown;
393
- };
394
- export type ReferrerScope = {
395
- kind: 'room';
396
- locator: string;
397
- path?: string;
398
- } | {
399
- kind: 'conversations';
400
422
  };
401
423
  export type BinaryResult = {
402
424
  kind: 'binary';
403
- blob: Blob;
425
+ body: ReadableStream<Uint8Array>;
426
+ mediaType: string;
427
+ sha256?: string;
404
428
  } | (ProviderRefusal & {
405
429
  kind: 'rejected';
406
430
  }) | AdapterFailure;
@@ -429,9 +453,8 @@ export type ActionResult = {
429
453
  export type HeldRoom = {
430
454
  locator: string;
431
455
  roomVersion: string;
432
- documents: Readonly<Record<string, string>>;
433
- revisions: Readonly<Record<string, string>>;
434
456
  };
457
+ export type HeldRevisions = (locator: string, paths: readonly string[]) => Promise<ReadonlyMap<string, string>>;
435
458
  export type RoomStreamEvent = {
436
459
  kind: 'opened';
437
460
  } | {
@@ -466,11 +489,12 @@ export type RoomStream = {
466
489
  hold(rooms: readonly HeldRoom[]): void;
467
490
  reopen(): void;
468
491
  published(locator: string, roomVersion: string): void;
469
- observe(notify: (event: RoomStreamEvent) => void, receipts: StreamReceipts): () => void;
492
+ observe(notify: (event: RoomStreamEvent) => void, receipts: StreamReceipts, revisions: HeldRevisions): () => void;
470
493
  };
471
494
  export type Adapter = {
472
495
  readonly localSaves?: true;
473
496
  readonly exhaustiveDiscovery?: true;
497
+ readonly roomTypes?: string;
474
498
  authorize(): Promise<Authorization>;
475
499
  discover(authorization: Authorization, scope?: DiscoveryScope): Promise<DiscoverResult>;
476
500
  bootstrap(authorization: Authorization, request: BootstrapRequest): Promise<BootstrapResult>;
@@ -478,10 +502,7 @@ export type Adapter = {
478
502
  mutate(authorization: Authorization, request: MutationRequest, keep: (upload: unknown) => Promise<void>): Promise<MutationResult>;
479
503
  history(authorization: Authorization, request: HistoryRequest): Promise<HistoryResult>;
480
504
  binary(authorization: Authorization, request: BinaryRequest): Promise<BinaryResult>;
481
- link(authorization: Authorization, request: Extract<BinaryRequest, {
482
- kind: 'path';
483
- }>): Promise<BinaryLinkResult>;
484
- referrerScope(referrer: unknown): ReferrerScope | null;
505
+ link(authorization: Authorization, request: BinaryRequest): Promise<BinaryLinkResult>;
485
506
  action(authorization: Authorization, request: ActionRequest): Promise<ActionResult>;
486
507
  reached(locator: string, roomVersion: string, target: string): boolean;
487
508
  follows(locator: string, roomVersion: string, next: string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../src/adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;IACxB,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IACzB,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B,CAAC;AACF,MAAM,MAAM,gBAAgB,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,IAAI,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AO,EAAE,aAAa,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACtF,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IACpF,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;IACvE,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IACrE,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,aAAa,CAAC,EAAE,kBAAkB,CAAC;IACnC,WAAW,CAAC,EAAE,iBAAiB,CAAC;CACjC,CAAC"}
@@ -1,4 +1,7 @@
1
+ import { type VerifiedModel } from '@agentshouse/mdmodel';
1
2
  import { type ModelResult, type ModelState } from './model.js';
3
+ export declare const NO_ROOM_TYPES: VerifiedModel;
4
+ export declare function roomTypesOf(schema: string | undefined): VerifiedModel;
2
5
  export type AttachedModel = {
3
6
  state: ModelState;
4
7
  refused: {
@@ -7,5 +10,5 @@ export type AttachedModel = {
7
10
  location?: string;
8
11
  } | null;
9
12
  };
10
- export declare function attachedModel(answer: ModelResult, previous: ModelState): AttachedModel;
13
+ export declare function attachedModel(answer: ModelResult, previous: ModelState, roomTypes: VerifiedModel): AttachedModel;
11
14
  //# sourceMappingURL=attached-model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attached-model.d.ts","sourceRoot":"","sources":["../src/attached-model.ts"],"names":[],"mappings":"AAEA,OAAO,EAAa,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAI1E,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACvE,CAAC;AAEF,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,GAAG,aAAa,CA4CtF"}
1
+ {"version":3,"file":"attached-model.d.ts","sourceRoot":"","sources":["../src/attached-model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1F,OAAO,EAAa,KAAK,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAE1E,eAAO,MAAM,aAAa,EAAE,aAA2D,CAAC;AAExF,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,aAAa,CAMrE;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;CACvE,CAAC;AAEF,wBAAgB,aAAa,CAC3B,MAAM,EAAE,WAAW,EACnB,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,aAAa,GACvB,aAAa,CA+Cf"}