@agentshouse/mdruntime 0.1.0-c664116195e6f → 0.1.0-c698c0ebd65bd

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 (164) hide show
  1. package/AGENTS.md +147 -108
  2. package/README.md +11 -1
  3. package/dist/adapter.d.ts +41 -14
  4. package/dist/adapter.d.ts.map +1 -1
  5. package/dist/attempt.d.ts +16 -0
  6. package/dist/attempt.d.ts.map +1 -0
  7. package/dist/attempt.js +70 -0
  8. package/dist/binary.d.ts +23 -0
  9. package/dist/binary.d.ts.map +1 -0
  10. package/dist/binary.js +8 -0
  11. package/dist/bootstrap.d.ts.map +1 -1
  12. package/dist/bootstrap.js +11 -10
  13. package/dist/change-set.d.ts.map +1 -1
  14. package/dist/change-set.js +8 -7
  15. package/dist/change.d.ts +11 -0
  16. package/dist/change.d.ts.map +1 -1
  17. package/dist/change.js +26 -1
  18. package/dist/chat/acts.d.ts +33 -0
  19. package/dist/chat/acts.d.ts.map +1 -0
  20. package/dist/chat/acts.js +36 -0
  21. package/dist/chat/context.d.ts +3 -0
  22. package/dist/chat/context.d.ts.map +1 -0
  23. package/dist/chat/context.js +10 -0
  24. package/dist/chat/input.d.ts +9 -0
  25. package/dist/chat/input.d.ts.map +1 -0
  26. package/dist/chat/input.js +99 -0
  27. package/dist/chat/kit.d.ts +60 -0
  28. package/dist/chat/kit.d.ts.map +1 -0
  29. package/dist/chat/kit.js +123 -0
  30. package/dist/chat/lasting.d.ts +6 -0
  31. package/dist/chat/lasting.d.ts.map +1 -0
  32. package/dist/chat/lasting.js +19 -0
  33. package/dist/chat/list.d.ts +26 -0
  34. package/dist/chat/list.d.ts.map +1 -0
  35. package/dist/chat/list.js +62 -0
  36. package/dist/chat/markdown.d.ts +20 -0
  37. package/dist/chat/markdown.d.ts.map +1 -0
  38. package/dist/chat/markdown.js +188 -0
  39. package/dist/chat/message.d.ts +6 -0
  40. package/dist/chat/message.d.ts.map +1 -0
  41. package/dist/chat/message.js +192 -0
  42. package/dist/chat/messages.d.ts +21 -0
  43. package/dist/chat/messages.d.ts.map +1 -0
  44. package/dist/chat/messages.js +151 -0
  45. package/dist/chat/name.d.ts +6 -0
  46. package/dist/chat/name.d.ts.map +1 -0
  47. package/dist/chat/name.js +37 -0
  48. package/dist/chat/opened.d.ts +11 -0
  49. package/dist/chat/opened.d.ts.map +1 -0
  50. package/dist/chat/opened.js +17 -0
  51. package/dist/chat/overlay.d.ts +31 -0
  52. package/dist/chat/overlay.d.ts.map +1 -0
  53. package/dist/chat/overlay.js +97 -0
  54. package/dist/chat/parts.d.ts +57 -0
  55. package/dist/chat/parts.d.ts.map +1 -0
  56. package/dist/chat/parts.js +119 -0
  57. package/dist/chat/process.d.ts +20 -0
  58. package/dist/chat/process.d.ts.map +1 -0
  59. package/dist/chat/process.js +32 -0
  60. package/dist/chat/provider.d.ts +63 -0
  61. package/dist/chat/provider.d.ts.map +1 -0
  62. package/dist/chat/provider.js +620 -0
  63. package/dist/chat/question.d.ts +9 -0
  64. package/dist/chat/question.d.ts.map +1 -0
  65. package/dist/chat/question.js +80 -0
  66. package/dist/chat/questions.d.ts +31 -0
  67. package/dist/chat/questions.d.ts.map +1 -0
  68. package/dist/chat/questions.js +111 -0
  69. package/dist/chat/read.d.ts +5 -0
  70. package/dist/chat/read.d.ts.map +1 -0
  71. package/dist/chat/read.js +13 -0
  72. package/dist/chat/ready.d.ts +33 -0
  73. package/dist/chat/ready.d.ts.map +1 -0
  74. package/dist/chat/ready.js +91 -0
  75. package/dist/chat/style.d.ts +4 -0
  76. package/dist/chat/style.d.ts.map +1 -0
  77. package/dist/chat/style.js +302 -0
  78. package/dist/chat.d.ts +14 -0
  79. package/dist/chat.d.ts.map +1 -0
  80. package/dist/chat.js +8 -0
  81. package/dist/client.d.ts +13 -6
  82. package/dist/client.d.ts.map +1 -1
  83. package/dist/client.js +31 -16
  84. package/dist/connection.d.ts +20 -9
  85. package/dist/connection.d.ts.map +1 -1
  86. package/dist/connection.js +428 -144
  87. package/dist/conversation.d.ts +15 -5
  88. package/dist/conversation.d.ts.map +1 -1
  89. package/dist/conversation.js +189 -64
  90. package/dist/entry.d.ts +17 -0
  91. package/dist/entry.d.ts.map +1 -0
  92. package/dist/entry.js +156 -0
  93. package/dist/expectation.d.ts +21 -0
  94. package/dist/expectation.d.ts.map +1 -0
  95. package/dist/expectation.js +70 -0
  96. package/dist/failure.d.ts +13 -0
  97. package/dist/failure.d.ts.map +1 -0
  98. package/dist/failure.js +19 -0
  99. package/dist/fence.d.ts +6 -0
  100. package/dist/fence.d.ts.map +1 -0
  101. package/dist/fence.js +10 -0
  102. package/dist/host.d.ts +3 -2
  103. package/dist/host.d.ts.map +1 -1
  104. package/dist/host.js +16 -13
  105. package/dist/identity.d.ts +2 -0
  106. package/dist/identity.d.ts.map +1 -1
  107. package/dist/identity.js +6 -0
  108. package/dist/index.d.ts +9 -4
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +3 -0
  111. package/dist/memory.d.ts +4 -3
  112. package/dist/memory.d.ts.map +1 -1
  113. package/dist/memory.js +55 -16
  114. package/dist/model.d.ts +3 -2
  115. package/dist/model.d.ts.map +1 -1
  116. package/dist/open.d.ts +2 -0
  117. package/dist/open.d.ts.map +1 -0
  118. package/dist/open.js +1 -0
  119. package/dist/outcome.d.ts +30 -3
  120. package/dist/outcome.d.ts.map +1 -1
  121. package/dist/outcome.js +42 -1
  122. package/dist/overlay.d.ts +13 -2
  123. package/dist/overlay.d.ts.map +1 -1
  124. package/dist/overlay.js +56 -22
  125. package/dist/query.d.ts +4 -0
  126. package/dist/query.d.ts.map +1 -1
  127. package/dist/query.js +3 -0
  128. package/dist/reach.d.ts +2 -0
  129. package/dist/reach.d.ts.map +1 -1
  130. package/dist/reach.js +44 -20
  131. package/dist/react.d.ts +4 -2
  132. package/dist/react.d.ts.map +1 -1
  133. package/dist/react.js +3 -2
  134. package/dist/read-side.d.ts.map +1 -1
  135. package/dist/read-side.js +9 -2
  136. package/dist/refresh.d.ts.map +1 -1
  137. package/dist/refresh.js +12 -17
  138. package/dist/replica.d.ts +5 -2
  139. package/dist/replica.d.ts.map +1 -1
  140. package/dist/replica.js +34 -30
  141. package/dist/room-draft.d.ts +26 -9
  142. package/dist/room-draft.d.ts.map +1 -1
  143. package/dist/room-draft.js +131 -22
  144. package/dist/rows.d.ts +3 -1
  145. package/dist/rows.d.ts.map +1 -1
  146. package/dist/rows.js +3 -1
  147. package/dist/save.d.ts +25 -1
  148. package/dist/save.d.ts.map +1 -1
  149. package/dist/save.js +322 -23
  150. package/dist/search.d.ts +3 -2
  151. package/dist/search.d.ts.map +1 -1
  152. package/dist/status.d.ts +2 -2
  153. package/dist/status.d.ts.map +1 -1
  154. package/dist/status.js +0 -8
  155. package/dist/store.d.ts +28 -17
  156. package/dist/store.d.ts.map +1 -1
  157. package/dist/store.js +243 -163
  158. package/dist/wire.d.ts +6 -3
  159. package/dist/wire.d.ts.map +1 -1
  160. package/dist/wire.js +14 -2
  161. package/package.json +26 -14
  162. package/dist/attachment.d.ts +0 -3
  163. package/dist/attachment.d.ts.map +0 -1
  164. package/dist/attachment.js +0 -8
package/AGENTS.md CHANGED
@@ -1,25 +1,24 @@
1
1
  # Instructions for the App Creator's agent
2
2
 
3
- These instructions address an agent in an environment with Git. Obtain the
4
- App Repository, change it, build, and push. They are documentation, not
5
- enforcement.
3
+ These instructions address an agent in an environment with Git. Obtain the App
4
+ Repository, change it, build, and push. They are documentation, not enforcement.
6
5
 
7
6
  ## The MD Runtime API
8
7
 
9
8
  App code reaches the MD Runtime through the remote client. The surfaces are
10
- Rooms, Query, Search, Observe, Types, Room Draft, Save, History, Call, Reached, Log,
11
- the reported persistence answer, reauthorization, conversation, the chat draft,
12
- and Presentation State. Sync Status, the Service Mode, the storage-loss
13
- statement, the deployment facts and the signed-in member are observations only.
9
+ Rooms, Query, Search, Observe, Types, Room Draft, Save, History, the binary file
10
+ reads, Call, Reached, Log, the reported persistence answer, reauthorization,
11
+ conversation, the chat draft, and Presentation State. Sync Status, the Service
12
+ Mode, the storage-loss statement, the deployment facts and the signed-in member
13
+ are observations only.
14
14
 
15
15
  The host attaches each port with its reach, and every member and observation
16
16
  answers within it: a Room outside it answers as one the replica does not hold,
17
17
  Rooms lists only the Rooms reached whole, a Room reached for single Documents
18
18
  shows only those Documents and the Types of the models that govern them, and
19
19
  without conversations the conversation members, the chat draft and the
20
- conversation observation hold none.
21
- A change of the reach reaches every open observation as its new value, a query
22
- keeping every unchanged Document the same object.
20
+ conversation observation hold none. A change of the reach reaches every open
21
+ observation as its new value, a query keeping unchanged Documents the same objects.
23
22
 
24
23
  Every `observe` resolves, once its first value has arrived, to a handle:
25
24
  `current()` is the latest complete value, `subscribe(listener)` hears each later
@@ -27,31 +26,45 @@ value whole and returns its unsubscribe, and `close()` ends the observation.
27
26
  Closing the port ends every handle and rejects every pending call and
28
27
  observation; a client that reconnects observes again.
29
28
 
30
- Each conversation the Provider's conversation list names is held complete in the
31
- browser. `conversation.list()` and `observe('conversations')` answer each with its
32
- Agent's identity and name, its name, created and finished times, last outcome and live
33
- `state`: `asking` while a question waits, `working` while a turn runs, else `idle`,
34
- and `started`, when the running turn began, or `null`.
35
- Observe one with `observe('conversation', id, { limit })`: the view
36
- holds its latest `limit` messages, or all of them, oldest first, its chat
37
- draft, and what the Provider streams for it whether or not anything views it:
38
- the running `turn` with its message parts and its context in use and window, the
39
- open questions, the process state, and the CLI's commands and options. These live
40
- only in memory: the message accepted under the turn's id replaces the running turn,
41
- and none of them is stored or searchable.
42
- `chatDraft.write` and `chatDraft.discard` keep what the App Creator composes;
43
- sending it is a Provider Action that needs the Provider reachable and is never
44
- queued.
45
-
46
- Each Room in Rooms lists its `attachments`, the files the Provider holds for it
47
- that its Documents link by the Provider's reference, ordered by `reference`,
48
- each with `name`, `byteLength`, `mediaType` and the Provider's own entry as
49
- `entry`. They are as the Provider last declared them and hold no bytes;
50
- open one through the Provider Action that serves it.
29
+ `observe('agents')` answers every Agent a new conversation can go to, each
30
+ `{ identity, name }`, whether or not it has a conversation yet. Each conversation
31
+ the Provider's conversation list names is held complete in the browser.
32
+ `conversation.list()` and `observe('conversations')` answer each with its Agent's
33
+ identity and name, its name, created and finished times, last outcome and live
34
+ `state`: `asking` while a question waits, `working` while a turn runs, else
35
+ `idle`, and `started`, when the running turn began, or `null`. Observe one with
36
+ `observe('conversation', id, { limit })`: the view holds its latest `limit`
37
+ messages, or all of them, oldest first, its chat draft, and what the Provider
38
+ streams for it whether or not anything views it: the running `turn` with its
39
+ message parts and its context in use and window, the open questions, the process
40
+ state, and the CLI's commands and options. These live only in memory: the
41
+ message accepted under the turn's id replaces the running turn, and none of them
42
+ is stored or searchable. `chatDraft.write` and `chatDraft.discard` keep what the
43
+ App Creator composes; sending it is a Provider Action that needs the Provider
44
+ reachable and is never queued.
45
+
46
+ A binary file at a Path is a binary Path entry. Query lists it by `path`, and
47
+ History each of its revisions, with its `binaryFile` record and never its bytes:
48
+ `{ state: 'accepted', revision, path, fileRef, byteLength, mediaType, sha256 }`,
49
+ or, from a Save until the Provider accepts it, `{ state: 'pending', localId,
50
+ path, byteLength, mediaType, sha256 }`. Write one with a Room Draft whose only
51
+ part is `file: { blob }`, the `Blob`'s `type` its media type: Save keeps the
52
+ bytes in its Pending Change, offline too, and acceptance gives the record the
53
+ Provider's revision. Move or remove one as a Document, a pending one before or
54
+ after Save too, its bytes following; once its Pending Change has gone to the
55
+ Provider, Save refuses that as `unknown-revision` until it is accepted.
56
+ `binaryFile.read(room, path, revision?)` answers a pending record's saved bytes,
57
+ or asks the Provider again on every read of an accepted one or of a History
58
+ revision, a removed file's last included, keeping nothing. Text, a Record
59
+ attachment or a conversation message may name a file by its `fileRef`; read it
60
+ with `binaryFile.readReference({ fileRef, referrer })`, the referrer being the
61
+ `referrer` the Provider gave beside it, or `{ room, path }` of the document whose
62
+ text names it. Both answer `{ kind: 'binary', blob }` or a refusal or failure.
51
63
 
52
64
  Rooms, Query, Search, Observe, Types, Room Draft, Save, and Reached never
53
- touch the network.
54
- History and Call go to the Provider through the Adapter. A Call result whose
65
+ touch the network. History, the binary file reads and Call go to the Provider
66
+ through the Adapter. Call takes the Action names the Adapter declares; any other
67
+ name answers `undeclared` without reaching the Provider. A Call result whose
55
68
  effect the Provider places in a Room carries `at`, that Room and Room Version;
56
69
  `reached(room, roomVersion)` answers whether the Room's confirmed state has
57
70
  reached it, and the MD Runtime keeps refreshing that Room until it has;
@@ -60,26 +73,26 @@ that document was written at a later Room Version. Each History revision
60
73
  names its author, `{ kind: 'user', id }` or `{ kind: 'site', id, name }`.
61
74
  History of a Path no current document holds answers the removed document's
62
75
  revisions with `deleted: true`, newest first; that revision is what a link to
63
- the Path opens. Every
64
- member of the
65
- client is asynchronous. Results are detached snapshots. Nothing in this
66
- surface returns the authorization, performs a request the App's code
67
- composes, or exposes the browser store.
68
-
69
- Read the deployment facts with `observe('deployment-facts')`. Interpret the
70
- opaque value using the host's contract.
71
-
72
- `observe('member')` answers who uses the App: the User the Provider signed in,
73
- `{ kind: 'user', id, name }` in the shape of a change's `author`, so a Document
74
- whose `change.author.id` equals its `id` is that User's own. It is `null` until
75
- the Provider first names one, and where it names none, such as a Site. The
76
- MD Runtime keeps it with the Local Replicas, so it answers offline once known,
77
- and every port hears the next member the Provider names; signing out answers
78
- `null`, then ends the observation with the authorization. It is the only way App code learns who
79
- uses it.
80
-
81
- The in-memory Adapter at `@agentshouse/mdruntime/memory` is for tests and
82
- ships in no bundle.
76
+ the Path opens. Every member of the client is asynchronous. Results are
77
+ detached snapshots. Nothing in this surface returns the authorization, performs
78
+ a request the App's code composes, or exposes the browser store.
79
+
80
+ Every refusal and failure carries `code` and `retryable`: each Call and History
81
+ answer other than its result, a refused Save or Room Draft write, a returned Room
82
+ Draft's reason, a Room's refusal and the Connection Refusal, and every error a
83
+ member rejects with, beside its message. A Provider refusal carries the
84
+ Provider's own `retryable`. Every code and every value the API answers is open:
85
+ handle one you do not know by its `code` and `retryable`.
86
+
87
+ Read the deployment facts with `observe('deployment-facts')`, an opaque value
88
+ the host's contract interprets. `observe('member')` answers who uses the App:
89
+ the User the Provider signed in, `{ kind: 'user', id, name }` in the shape of a
90
+ change's `author`, so a Document whose `change.author.id` equals its `id` is that
91
+ User's own. It is `null` until the Provider first names one, and where it names
92
+ none, such as a Site. The MD Runtime keeps it with the Local Replicas, so it
93
+ answers offline once known, and every port hears the next member the Provider
94
+ names; signing out answers `null`, then ends the observation with the
95
+ authorization. It is the only way App code learns who uses it.
83
96
 
84
97
  ## Local Query rules
85
98
 
@@ -97,13 +110,12 @@ data:
97
110
  pointers, ANDs them, and nests `$and` and `$or`; a pointer through a list holds
98
111
  when any item satisfies it. A bare value is equality; the operators are `$eq`,
99
112
  `$ne`, `$in`, `$nin`, `$gt`, `$gte`, `$lt`, `$lte`, `$all`, `$size` and
100
- `$exists`. Equality on a list asks whether it contains the value. Missing, null and empty differ:
101
- `$exists: false` keeps a missing field, `null` an explicit null, `''` empty
102
- text and `$size: 0` an empty list. A date compares in calendar order and never
103
- with a date-time. A reference compares by the Room Path it resolves to.
104
- Untyped frontmatter, and a value under `oneOf` or a conditional, is plain
105
- values. There is no text containment or regular
106
- expression.
113
+ `$exists`. Equality on a list asks whether it contains the value. Missing,
114
+ null and empty differ: `$exists: false` keeps a missing field, `null` an
115
+ explicit null, `''` empty text and `$size: 0` an empty list. A date compares
116
+ in calendar order and never with a date-time. A reference compares by the Room
117
+ Path it resolves to. Untyped frontmatter, and a value under `oneOf` or a
118
+ conditional, is plain values. There is no text containment or regular expression.
107
119
  - **Relations.** `hop: { field, types, where, pathPrefix }` keeps Documents whose
108
120
  reference at pointer `field`, at any depth, points to a matching Document of the
109
121
  same Room. `backlinks: { field, types, where, pathPrefix }` keeps Documents that a
@@ -113,8 +125,9 @@ data:
113
125
  list of pointers and `sections` `'all'` or a list of names. Selected pointers
114
126
  return the frontmatter holding only them, nested as written. A backlink names
115
127
  the referring Path, MD Type and the pointer it came from as `field`. Room and Path always return; a Markdown
116
- Document also returns its MD Type. A non-Markdown Document or binary link
117
- target returns only Room and Path. An unselected part is absent. Select only
128
+ Document also returns its MD Type. A non-Markdown Document returns only Room
129
+ and Path, and a binary Path entry Room, Path and its `binaryFile` record,
130
+ whatever is selected. An unselected part is absent. Select only
118
131
  what a screen shows: a list that selects the Markdown hears every edit of it.
119
132
  - **Change.** `change` is `{ author, time }` of the Document's head revision as
120
133
  the Provider last delivered it: `author` is `{ kind: 'user' | 'site', id, name }`
@@ -129,15 +142,14 @@ data:
129
142
  over every match and ordered by `count` or a key. A sort or group takes only a
130
143
  pointer that holds one value. `limit` bounds the Documents or the groups.
131
144
  - **Results and errors.** A result carries no Room Version: read freshness from
132
- Rooms and Sync Status. An invalid query fails with `invalid-query`,
133
- `unknown-type`, `unknown-field` or `wrong-kind`, naming where, and never
134
- answers an empty result in its place.
145
+ Rooms and Sync Status. An invalid query fails with the `code`
146
+ `invalid-query`, `unknown-type`, `unknown-field` or `wrong-kind`, naming where,
147
+ and never answers an empty result in its place.
135
148
 
136
149
  ## Local Search rules
137
150
 
138
151
  `search({ text, documents, conversations, limit })` answers once, by words, from
139
- local state, with MiniSearch at its default configuration. There is no observed
140
- search.
152
+ local state, with MiniSearch's defaults. There is no observed search.
141
153
 
142
154
  - **What is found.** A Document by its field values, its sections' headings and
143
155
  text, its preamble and its Path; a message by its text. Frontmatter keys, Room
@@ -155,25 +167,24 @@ search.
155
167
 
156
168
  ## Room Draft, Save, and outcome rules
157
169
 
158
- The MD Runtime owns one Room Draft per Room and Path, shared by every App and
159
- tab. It is durable: it survives reload and navigation. A Room that Discovery
160
- stops listing takes its Room Drafts and its queue with it.
161
- Write a Room Draft with `roomDraft.write(room, path, revision, parts)`, naming
162
- the revision you read, or `null` when there was none, and every part it should
163
- now change: fields, sections and the preamble, or the whole Markdown, a
164
- creation, a move, or a removal. A part new to the Room Draft names its base,
165
- the value you showed when it was opened; the MD Runtime keeps a part's first
166
- base. A binary link target has a Room Draft too, for a move or a removal, with
167
- `null` as its base. A write or a discard from an older revision is refused as `stale` with
168
- the current Room Draft; read it and write again.
170
+ The MD Runtime owns one Room Draft per Room and Path, shared by every App and tab.
171
+ It is durable: it survives reload and navigation. A Room that Discovery stops
172
+ listing takes its Room Drafts and its queue with it. Write a Room Draft with
173
+ `roomDraft.write(room, path, revision, parts)`, naming the revision you read, or
174
+ `null` when there was none, and every part it should now change: fields, sections
175
+ and the preamble, or the whole Markdown, a creation, a move, or a removal. A part
176
+ new to the Room Draft names its base, the value you showed when it was opened; the
177
+ MD Runtime keeps a part's first base; a binary Path entry's move or removal takes
178
+ `null` as its base. A write or a discard from an older revision is refused as
179
+ `stale` with the current Room Draft; read it and write again.
169
180
 
170
181
  Save takes one Room and the Room Drafts of it to save, each with its revision,
171
182
  validates locally, and on success appends one Change Batch to that Room's
172
- queue and removes those Room Drafts. It is refused as `stale`, as
183
+ queue and removes those Room Drafts. It is refused with the `code` `stale`,
173
184
  `changed-underneath` naming each part whose base no longer matches the visible
174
- state, or by a local validation rule, and then creates nothing and leaves every
185
+ state, or a local validation rule, and then creates nothing and leaves every
175
186
  Room Draft in place. A directory move or removal is a move or removal part on
176
- each Document and binary link target beneath it, saved together.
187
+ each Document and binary Path entry beneath it, saved together.
177
188
 
178
189
  Outcomes follow the Provider's answer. An Accepted Change Batch stays in the
179
190
  queue, drawn over the confirmed layer, until the confirmed layer reaches the
@@ -191,19 +202,17 @@ it names; the MD Runtime retries the same Change Batch identity and payload and
191
202
  never infers an outcome from transport uncertainty. The MD Runtime never
192
203
  combines, reorders, or rebases.
193
204
 
194
- On a Site, every Save stays in the visitor's browser. Write grants and
195
- revisions do not refuse it, and its Pending Change shows in every query and
196
- across reloads until the browser's storage is cleared. It is never sent:
197
- `observe('queue', room)` shows it `local`, and Sync Status never waits on it.
198
- Once the Room changes so that it no longer applies, it leaves the queue and
199
- returns no Room Draft.
205
+ On a Site, every Save stays in the visitor's browser. Write grants and revisions
206
+ do not refuse it, and its Pending Change shows in every query and across reloads
207
+ until the browser's storage is cleared. It is never sent: `observe('queue', room)`
208
+ shows it `local`, and Sync Status never waits on it. Once the Room changes so that
209
+ it no longer applies, it leaves the queue and returns no Room Draft.
200
210
 
201
- `observe('service-mode')` answers the Provider's Service
202
- Mode, `open` or `write-halted`. While writes are halted, Save still succeeds,
203
- its Change Batch waits unsent, and the queue is submitted in order once the
204
- Provider reopens writes. An Action is never held: a write the Provider refuses
205
- for the halt returns that refusal to its caller. Show the Provider as read-only
206
- instead of retrying.
211
+ `observe('service-mode')` answers the Provider's Service Mode, `open` or
212
+ `write-halted`. While writes are halted, Save still succeeds, its Change Batch
213
+ waits unsent, and the queue is submitted in order once the Provider reopens
214
+ writes. An Action is never held: a write the Provider refuses for the halt returns
215
+ that refusal to its caller. Show the Provider as read-only instead of retrying.
207
216
 
208
217
  ## The neutrality rule
209
218
 
@@ -233,26 +242,56 @@ the network. Data lives only in the App Creator's browser and with the Provider.
233
242
 
234
243
  ## App code takes the client its host hands it and never constructs a Runtime
235
244
 
236
- App code takes the client its host hands it: in House,
237
- `houseBridge().runtime` from `@agentshouse/app-bridge` resolves to the
238
- client House built into the page. It never constructs a Runtime or a client.
239
- It imports only types from `@agentshouse/mdruntime/client`, does not call
240
- `connectMdRuntime` or `serveMdRuntime`, and does not import the package main,
241
- the host entry, or the Adapter package. Hosts and tests use those entries; the
242
- served App does not.
245
+ App code takes the client its host hands it: in House, `houseBridge().runtime`
246
+ from `@agentshouse/app-bridge` resolves to the client House built into the page.
247
+ It imports only types from `@agentshouse/mdruntime/client`, never calls
248
+ `connectMdRuntime` or `serveMdRuntime`, and never imports the package main, the
249
+ host entry or the Adapter package, which hosts and tests use. The in-memory
250
+ Adapter at `@agentshouse/mdruntime/memory` is for tests and ships in no bundle.
251
+ A Site's page fills its Entry Data Contract's `{"$param": name}` arguments with
252
+ `boundQuery` from `@agentshouse/mdruntime/entry`, as House did for its HTML.
243
253
 
244
254
  A React App may observe and save through `@agentshouse/mdruntime/react`, which
245
255
  names React as a peer dependency. `useObserve(client, topic, ...input)` takes
246
256
  the arguments of `observe` and returns `{ state: 'loading' }` until the topic's
247
257
  first value arrives, then `{ state: 'ready', value }`, re-rendering on each
248
- change; a `null` client observes nothing and stays loading. `useSave(client)` returns `busy`, the last `outcome` or `failure`, and
249
- `save(room, roomDrafts)`, which writes each Path's parts onto the Room Draft
250
- already there, keeping the bases its parts have, or onto a new one, and saves
251
- them together. A refused Save leaves the Room Drafts for the App to save again
252
- or discard; a failure is recorded and rejects. `saveRoomDrafts(client, room,
253
- roomDrafts)` is that save outside a component. A react-admin or Refine App
254
- reads and writes its Rooms through the data providers of
255
- `@agentshouse/mdruntime-families`.
258
+ change; a `null` client observes nothing and stays loading. `useSave(client)`
259
+ returns `busy`, the last `outcome` or `failure`, and `save(room, roomDrafts)`,
260
+ which writes each Path's parts onto the Room Draft already there, keeping the
261
+ bases its parts have, or onto a new one, and saves them together. A refused
262
+ Save leaves the Room Drafts for the App to save again or discard; a failure is
263
+ recorded and rejects. `saveRoomDrafts(client, room, roomDrafts)` is that save
264
+ outside a component. A react-admin or Refine App reads and writes its Rooms
265
+ through the data providers of `@agentshouse/mdruntime-families`.
266
+
267
+ ## The Chat
268
+
269
+ `@agentshouse/mdruntime/chat` holds the Chat, one data layer for every App; add
270
+ React as a dependency in any App, with React DOM and `@assistant-ui/react`.
271
+
272
+ Place the ready chat with `<Chat client={runtime} conversation={id}
273
+ agent={agent} width="1/3" showChats />`: `conversation` opens one, `null` for a
274
+ new chat, `agent` is the Agent a new chat goes to, `onOpen` hears each one it
275
+ opens, and `width` is `full` (the place you give it), or `3/4`, `1/2` or `1/3`
276
+ of the window docked at its right edge, whole on a narrow window. `showChats`
277
+ adds its conversation list; or draw your own inside a `ChatProvider` around a
278
+ `<Chat />` with no `client`. It carries its own styles; theme it with CSS custom
279
+ properties on it or an ancestor: `--chat-background`, `--chat-surface`,
280
+ `--chat-text`, `--chat-text-muted`, `--chat-accent`, `--chat-line`,
281
+ `--chat-attention`, `--chat-danger`, `--chat-font`, `--chat-font-mono`,
282
+ `--chat-font-size`, `--chat-radius` and `--chat-density` (a factor for spacing);
283
+ an unset one keeps House's light or dark look. `mountChat(element, { client })`
284
+ places it outside React and returns `update(props)` and `unmount()`.
285
+
286
+ Mix `ChatMessageList` (`components` takes your `UserMessage` and
287
+ `AssistantMessage`), `ChatInput` and `ChatQuestionCard` with your own design
288
+ inside a `ChatProvider`, or compose assistant-ui's primitives there; `useChat()`
289
+ gives `send`, the conversations, the Agents, questions to `answer`, `options`
290
+ to `choose`, `commands`, the queue to `edit` or `unqueue`, `stop`, `kill` and
291
+ outcomes; never replace its messages, sending or store. A secret question is
292
+ never answered here; typed answers live in Presentation State's `typed` key:
293
+ keep it, and change Presentation State only inside `inTurn(client, work)` from
294
+ `@agentshouse/mdruntime/client`. `Markdown` draws Markdown safely.
256
295
 
257
296
  ## What an agent must never do
258
297
 
package/README.md CHANGED
@@ -19,6 +19,7 @@ npm install @agentshouse/mdruntime
19
19
  | `@agentshouse/mdruntime` | Shared types |
20
20
  | `@agentshouse/mdruntime/memory` | Tests: `createMemoryAdapter`, an in-memory Adapter |
21
21
  | `@agentshouse/mdruntime/react` | React over the client: `useObserve`, `useSave`, `saveRoomDrafts` |
22
+ | `@agentshouse/mdruntime/chat` | The Chat: `Chat`, `mountChat`, its parts and `ChatProvider` |
22
23
 
23
24
  ## Usage
24
25
 
@@ -36,8 +37,17 @@ const notes = await runtime.query({ types: ['note'], select: 'all', limit: 20 })
36
37
  `storage-loss` when unsynchronized Room Drafts and Pending Changes were lost.
37
38
  The host supplies the user-facing wording.
38
39
 
40
+ Place the ready chat, themed by CSS custom properties, docked at a third of the
41
+ window; outside React, `mountChat(element, { client: runtime })` places the same:
42
+
43
+ ```tsx
44
+ import { Chat } from '@agentshouse/mdruntime/chat';
45
+
46
+ <Chat client={runtime} width="1/3" showChats style={{ '--chat-accent': '#2a6cf0' }} />;
47
+ ```
48
+
39
49
  The rules an App's agent follows, including Local Query, Local Search, Room
40
- Draft and Save, are in [`AGENTS.md`](AGENTS.md).
50
+ Draft, Save and the Chat, are in [`AGENTS.md`](AGENTS.md).
41
51
 
42
52
  ## License
43
53
 
package/dist/adapter.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { ModelResult } from './model.js';
2
+ import type { Open } from './open.js';
2
3
  import type { ChangeBatch } from './change.js';
3
4
  export type Authorization = object;
4
5
  export type MdModelIdentity = {
@@ -16,7 +17,7 @@ export type OperationScopes = {
16
17
  };
17
18
  export type ReplicaAdmission = {
18
19
  selection: string;
19
- admission: 'admitted' | 'unavailable';
20
+ admission: Open<'admitted' | 'unavailable'>;
20
21
  };
21
22
  export type DiscoveredRoom = {
22
23
  name: string;
@@ -39,6 +40,7 @@ export type ConversationAgents = {
39
40
  type: string;
40
41
  identity: string;
41
42
  name: string;
43
+ retired?: string;
42
44
  };
43
45
  export type ListedConversation = {
44
46
  conversation: string;
@@ -222,11 +224,12 @@ export type RevokedAuthorization = {
222
224
  export type ProviderRefusal = {
223
225
  code: string;
224
226
  fields: Readonly<Record<string, unknown>>;
227
+ retryable: boolean;
225
228
  };
226
229
  export type ScopedRefusal = ProviderRefusal & {
227
230
  kind: 'scoped-refusal';
228
231
  locator: string;
229
- scope: 'content' | 'sync' | 'model' | 'operation' | 'undisclosed';
232
+ scope: Open<'content' | 'sync' | 'model' | 'operation' | 'undisclosed'>;
230
233
  };
231
234
  export type AdapterFailure = TransportUncertainty | RoomNotReadable | RevokedAuthorization | ScopedRefusal;
232
235
  export type ContractUnavailable = ProviderRefusal & {
@@ -250,12 +253,11 @@ export type HeadChange = {
250
253
  author: ChangeAuthor | null;
251
254
  time: string;
252
255
  };
253
- export type RoomAttachment = {
254
- reference: string;
255
- name: string;
256
+ export type BinaryFile = {
257
+ fileRef: string;
256
258
  byteLength: number;
257
- mediaType: string | null;
258
- entry: unknown;
259
+ mediaType: string;
260
+ sha256: string;
259
261
  };
260
262
  export type BootstrapRequest = {
261
263
  locator: string;
@@ -273,8 +275,7 @@ export type BootstrapPage = {
273
275
  documents: Readonly<Record<string, string>>;
274
276
  revisions: Readonly<Record<string, string>>;
275
277
  changes: Readonly<Record<string, HeadChange>>;
276
- binaryTargets: readonly string[];
277
- attachments?: readonly RoomAttachment[];
278
+ binaryFiles: Readonly<Record<string, BinaryFile>>;
278
279
  pageToken?: PageToken;
279
280
  };
280
281
  export type BootstrapResult = BootstrapPage | AdapterFailure;
@@ -291,9 +292,8 @@ export type RefreshPage = {
291
292
  documents: Readonly<Record<string, string>>;
292
293
  revisions: Readonly<Record<string, string>>;
293
294
  changes: Readonly<Record<string, HeadChange>>;
294
- binaryTargets: readonly string[];
295
+ binaryFiles: Readonly<Record<string, BinaryFile>>;
295
296
  removals: readonly string[];
296
- attachments?: readonly RoomAttachment[];
297
297
  pageToken?: PageToken;
298
298
  };
299
299
  export type RefreshResult = {
@@ -310,7 +310,7 @@ export type RetryableRefusal = ProviderRefusal & {
310
310
  kind: 'retryable-refusal';
311
311
  reset?: string;
312
312
  };
313
- export type ServiceMode = 'open' | 'write-halted';
313
+ export type ServiceMode = Open<'open' | 'write-halted'>;
314
314
  export type ServiceModeSignal = {
315
315
  observe(notify: (mode: ServiceMode) => void): () => void;
316
316
  };
@@ -321,7 +321,7 @@ export type MutationResult = {
321
321
  revisions: Readonly<Record<string, string>>;
322
322
  changes: Readonly<Record<string, HeadChange>>;
323
323
  removals: readonly string[];
324
- attachments?: readonly RoomAttachment[];
324
+ binaryFiles?: Readonly<Record<string, BinaryFile>>;
325
325
  author?: string;
326
326
  time?: string;
327
327
  } | (ProviderRefusal & {
@@ -348,6 +348,7 @@ export type HistoryRevision = {
348
348
  revision: string;
349
349
  author: HistoryAuthor;
350
350
  time: string;
351
+ binaryFile?: BinaryFile;
351
352
  };
352
353
  export type HistoryRequest = {
353
354
  locator: string;
@@ -366,6 +367,30 @@ export type HistoryResult = {
366
367
  } | {
367
368
  kind: 'no-history';
368
369
  } | AdapterFailure;
370
+ export type BinaryRequest = {
371
+ kind: 'path';
372
+ locator: string;
373
+ path: string;
374
+ revision: string;
375
+ fileRef?: string;
376
+ } | {
377
+ kind: 'reference';
378
+ fileRef: string;
379
+ referrer: unknown;
380
+ };
381
+ export type ReferrerScope = {
382
+ kind: 'room';
383
+ locator: string;
384
+ path?: string;
385
+ } | {
386
+ kind: 'conversations';
387
+ };
388
+ export type BinaryResult = {
389
+ kind: 'binary';
390
+ blob: Blob;
391
+ } | (ProviderRefusal & {
392
+ kind: 'rejected';
393
+ }) | AdapterFailure;
369
394
  export type ActionRequest = {
370
395
  name: string;
371
396
  input: unknown;
@@ -386,7 +411,6 @@ export type HeldRoom = {
386
411
  roomVersion: string;
387
412
  documents: Readonly<Record<string, string>>;
388
413
  revisions: Readonly<Record<string, string>>;
389
- attachments: readonly RoomAttachment[];
390
414
  };
391
415
  export type RoomStreamEvent = {
392
416
  kind: 'opened';
@@ -408,12 +432,15 @@ export type RoomStream = {
408
432
  };
409
433
  export type Adapter = {
410
434
  readonly localSaves?: true;
435
+ readonly exhaustiveDiscovery?: true;
411
436
  authorize(): Promise<Authorization>;
412
437
  discover(authorization: Authorization): Promise<DiscoverResult>;
413
438
  bootstrap(authorization: Authorization, request: BootstrapRequest): Promise<BootstrapResult>;
414
439
  refresh(authorization: Authorization, request: RefreshRequest): Promise<RefreshResult>;
415
440
  mutate(authorization: Authorization, request: MutationRequest, keep: (upload: unknown) => Promise<void>): Promise<MutationResult>;
416
441
  history(authorization: Authorization, request: HistoryRequest): Promise<HistoryResult>;
442
+ binary(authorization: Authorization, request: BinaryRequest): Promise<BinaryResult>;
443
+ referrerScope(referrer: unknown): ReferrerScope | null;
417
444
  action(authorization: Authorization, request: ActionRequest): Promise<ActionResult>;
418
445
  reached(locator: string, roomVersion: string, target: string): boolean;
419
446
  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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AAC;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"}
@@ -0,0 +1,16 @@
1
+ export type Answered = 'accepted' | 'refused' | 'unanswered' | 'offline';
2
+ export type Identities = {
3
+ of(intent: string): string;
4
+ settle(answered: Answered): void;
5
+ };
6
+ export declare function identities(mint?: () => string): Identities;
7
+ export declare function intentOf(name: string, about: unknown): string;
8
+ export type Attempt = {
9
+ identity(intent: string): string;
10
+ settle(answered: Answered, drop: (act: number) => void): void;
11
+ };
12
+ export type Attempts = {
13
+ begin(act: number): Attempt;
14
+ };
15
+ export declare function attempts(mint?: () => string): Attempts;
16
+ //# sourceMappingURL=attempt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attempt.d.ts","sourceRoot":"","sources":["../src/attempt.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;AAEzE,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,wBAAgB,UAAU,CAAC,IAAI,GAAE,MAAM,MAAoC,GAAG,UAAU,CAmBvF;AAID,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAa7D;AAED,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;CAC/D,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B,CAAC;AAEF,wBAAgB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,MAAM,GAAG,QAAQ,CAyBtD"}