@agentshouse/mdruntime 0.1.0-cee9c8aa4cd86 → 0.1.0-cef5833f6c689

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 (224) hide show
  1. package/README.md +11 -9
  2. package/dist/adapter.d.ts +96 -67
  3. package/dist/adapter.d.ts.map +1 -1
  4. package/dist/attached-model.d.ts +2 -1
  5. package/dist/attached-model.d.ts.map +1 -1
  6. package/dist/attached-model.js +28 -4
  7. package/dist/binary.d.ts +0 -5
  8. package/dist/binary.d.ts.map +1 -1
  9. package/dist/binary.js +1 -1
  10. package/dist/bootstrap.d.ts +17 -9
  11. package/dist/bootstrap.d.ts.map +1 -1
  12. package/dist/bootstrap.js +143 -94
  13. package/dist/chain.d.ts +2 -1
  14. package/dist/chain.d.ts.map +1 -1
  15. package/dist/client.d.ts +12 -12
  16. package/dist/client.d.ts.map +1 -1
  17. package/dist/client.js +54 -8
  18. package/dist/collection.d.ts +7 -4
  19. package/dist/collection.d.ts.map +1 -1
  20. package/dist/collection.js +24 -19
  21. package/dist/compile.d.ts +1 -6
  22. package/dist/compile.d.ts.map +1 -1
  23. package/dist/compile.js +118 -247
  24. package/dist/connection.d.ts +11 -11
  25. package/dist/connection.d.ts.map +1 -1
  26. package/dist/connection.js +1598 -1248
  27. package/dist/context.d.ts +2 -0
  28. package/dist/context.d.ts.map +1 -0
  29. package/dist/{chat/context.js → context.js} +1 -4
  30. package/dist/conversation.d.ts +18 -15
  31. package/dist/conversation.d.ts.map +1 -1
  32. package/dist/conversation.js +268 -171
  33. package/dist/durability.d.ts +1 -5
  34. package/dist/durability.d.ts.map +1 -1
  35. package/dist/durability.js +5 -0
  36. package/dist/entry.d.ts +3 -2
  37. package/dist/entry.d.ts.map +1 -1
  38. package/dist/entry.js +15 -6
  39. package/dist/file.d.ts +2 -11
  40. package/dist/file.d.ts.map +1 -1
  41. package/dist/file.js +6 -4
  42. package/dist/host.d.ts +3 -6
  43. package/dist/host.d.ts.map +1 -1
  44. package/dist/host.js +49 -35
  45. package/dist/identity.d.ts +0 -1
  46. package/dist/identity.d.ts.map +1 -1
  47. package/dist/identity.js +0 -3
  48. package/dist/index.d.ts +15 -12
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js +6 -3
  51. package/dist/job.d.ts +14 -0
  52. package/dist/job.d.ts.map +1 -0
  53. package/dist/job.js +28 -0
  54. package/dist/live.d.ts +2 -1
  55. package/dist/live.d.ts.map +1 -1
  56. package/dist/live.js +9 -5
  57. package/dist/media.d.ts +8 -0
  58. package/dist/media.d.ts.map +1 -0
  59. package/dist/media.js +218 -0
  60. package/dist/memory.d.ts +11 -6
  61. package/dist/memory.d.ts.map +1 -1
  62. package/dist/memory.js +178 -101
  63. package/dist/messages.d.ts +2 -2
  64. package/dist/messages.d.ts.map +1 -1
  65. package/dist/messages.js +15 -16
  66. package/dist/model.d.ts +7 -3
  67. package/dist/model.d.ts.map +1 -1
  68. package/dist/model.js +7 -13
  69. package/dist/observation.d.ts +3 -2
  70. package/dist/observation.d.ts.map +1 -1
  71. package/dist/observation.js +8 -3
  72. package/dist/outcome.d.ts +13 -6
  73. package/dist/outcome.d.ts.map +1 -1
  74. package/dist/outcome.js +16 -5
  75. package/dist/overlay.js +1 -1
  76. package/dist/paths.d.ts +1 -0
  77. package/dist/paths.d.ts.map +1 -1
  78. package/dist/paths.js +4 -0
  79. package/dist/query.d.ts +10 -205
  80. package/dist/query.d.ts.map +1 -1
  81. package/dist/query.js +3 -494
  82. package/dist/reach.d.ts +14 -9
  83. package/dist/reach.d.ts.map +1 -1
  84. package/dist/reach.js +81 -71
  85. package/dist/react.d.ts +3 -1
  86. package/dist/react.d.ts.map +1 -1
  87. package/dist/readiness.d.ts +13 -16
  88. package/dist/readiness.d.ts.map +1 -1
  89. package/dist/readiness.js +2 -8
  90. package/dist/recovery.d.ts +1 -0
  91. package/dist/recovery.d.ts.map +1 -1
  92. package/dist/recovery.js +26 -0
  93. package/dist/refresh.d.ts +10 -4
  94. package/dist/refresh.d.ts.map +1 -1
  95. package/dist/refresh.js +104 -30
  96. package/dist/replica.d.ts +6 -5
  97. package/dist/replica.d.ts.map +1 -1
  98. package/dist/replica.js +8 -7
  99. package/dist/room-draft.d.ts +22 -5
  100. package/dist/room-draft.d.ts.map +1 -1
  101. package/dist/room-draft.js +131 -51
  102. package/dist/rows.d.ts +8 -15
  103. package/dist/rows.d.ts.map +1 -1
  104. package/dist/rows.js +51 -151
  105. package/dist/save.d.ts +2 -0
  106. package/dist/save.d.ts.map +1 -1
  107. package/dist/save.js +13 -7
  108. package/dist/search.d.ts +12 -63
  109. package/dist/search.d.ts.map +1 -1
  110. package/dist/search.js +9 -52
  111. package/dist/shared.d.ts +0 -1
  112. package/dist/shared.d.ts.map +1 -1
  113. package/dist/shared.js +0 -10
  114. package/dist/status.d.ts +4 -3
  115. package/dist/status.d.ts.map +1 -1
  116. package/dist/status.js +3 -1
  117. package/dist/store.d.ts +32 -31
  118. package/dist/store.d.ts.map +1 -1
  119. package/dist/store.js +67 -63
  120. package/dist/stored.d.ts +42 -18
  121. package/dist/stored.d.ts.map +1 -1
  122. package/dist/stored.js +193 -194
  123. package/dist/tables.d.ts +60 -40
  124. package/dist/tables.d.ts.map +1 -1
  125. package/dist/tables.js +78 -62
  126. package/dist/transfer.d.ts +0 -5
  127. package/dist/transfer.d.ts.map +1 -1
  128. package/dist/validation.d.ts +3 -4
  129. package/dist/validation.d.ts.map +1 -1
  130. package/dist/validation.js +39 -97
  131. package/dist/windows.d.ts +1 -12
  132. package/dist/windows.d.ts.map +1 -1
  133. package/dist/windows.js +2 -75
  134. package/dist/wire.d.ts +6 -9
  135. package/dist/wire.d.ts.map +1 -1
  136. package/dist/wire.js +3 -3
  137. package/package.json +11 -18
  138. package/AGENTS.md +0 -320
  139. package/dist/chat/acts.d.ts +0 -33
  140. package/dist/chat/acts.d.ts.map +0 -1
  141. package/dist/chat/acts.js +0 -36
  142. package/dist/chat/context.d.ts +0 -3
  143. package/dist/chat/context.d.ts.map +0 -1
  144. package/dist/chat/earlier.d.ts +0 -10
  145. package/dist/chat/earlier.d.ts.map +0 -1
  146. package/dist/chat/earlier.js +0 -54
  147. package/dist/chat/house.d.ts +0 -25
  148. package/dist/chat/house.d.ts.map +0 -1
  149. package/dist/chat/house.js +0 -38
  150. package/dist/chat/input.d.ts +0 -11
  151. package/dist/chat/input.d.ts.map +0 -1
  152. package/dist/chat/input.js +0 -92
  153. package/dist/chat/kit.d.ts +0 -61
  154. package/dist/chat/kit.d.ts.map +0 -1
  155. package/dist/chat/kit.js +0 -123
  156. package/dist/chat/lasting.d.ts +0 -6
  157. package/dist/chat/lasting.d.ts.map +0 -1
  158. package/dist/chat/lasting.js +0 -19
  159. package/dist/chat/list.d.ts +0 -28
  160. package/dist/chat/list.d.ts.map +0 -1
  161. package/dist/chat/list.js +0 -103
  162. package/dist/chat/markdown.d.ts +0 -21
  163. package/dist/chat/markdown.d.ts.map +0 -1
  164. package/dist/chat/markdown.js +0 -246
  165. package/dist/chat/message.d.ts +0 -7
  166. package/dist/chat/message.d.ts.map +0 -1
  167. package/dist/chat/message.js +0 -254
  168. package/dist/chat/messages.d.ts +0 -35
  169. package/dist/chat/messages.d.ts.map +0 -1
  170. package/dist/chat/messages.js +0 -210
  171. package/dist/chat/name.d.ts +0 -7
  172. package/dist/chat/name.d.ts.map +0 -1
  173. package/dist/chat/name.js +0 -37
  174. package/dist/chat/opened.d.ts +0 -12
  175. package/dist/chat/opened.d.ts.map +0 -1
  176. package/dist/chat/opened.js +0 -19
  177. package/dist/chat/overlay.d.ts +0 -32
  178. package/dist/chat/overlay.d.ts.map +0 -1
  179. package/dist/chat/overlay.js +0 -103
  180. package/dist/chat/parts.d.ts +0 -58
  181. package/dist/chat/parts.d.ts.map +0 -1
  182. package/dist/chat/parts.js +0 -120
  183. package/dist/chat/pieces.d.ts +0 -62
  184. package/dist/chat/pieces.d.ts.map +0 -1
  185. package/dist/chat/pieces.js +0 -1110
  186. package/dist/chat/process.d.ts +0 -20
  187. package/dist/chat/process.d.ts.map +0 -1
  188. package/dist/chat/process.js +0 -32
  189. package/dist/chat/provider.d.ts +0 -70
  190. package/dist/chat/provider.d.ts.map +0 -1
  191. package/dist/chat/provider.js +0 -635
  192. package/dist/chat/question.d.ts +0 -9
  193. package/dist/chat/question.d.ts.map +0 -1
  194. package/dist/chat/question.js +0 -69
  195. package/dist/chat/questions.d.ts +0 -31
  196. package/dist/chat/questions.d.ts.map +0 -1
  197. package/dist/chat/questions.js +0 -111
  198. package/dist/chat/read.d.ts +0 -5
  199. package/dist/chat/read.d.ts.map +0 -1
  200. package/dist/chat/read.js +0 -13
  201. package/dist/chat/ready.d.ts +0 -37
  202. package/dist/chat/ready.d.ts.map +0 -1
  203. package/dist/chat/ready.js +0 -93
  204. package/dist/chat/room-file.d.ts +0 -8
  205. package/dist/chat/room-file.d.ts.map +0 -1
  206. package/dist/chat/room-file.js +0 -72
  207. package/dist/chat/steady.d.ts +0 -3
  208. package/dist/chat/steady.d.ts.map +0 -1
  209. package/dist/chat/steady.js +0 -26
  210. package/dist/chat/style.d.ts +0 -4
  211. package/dist/chat/style.d.ts.map +0 -1
  212. package/dist/chat/style.js +0 -307
  213. package/dist/chat.d.ts +0 -15
  214. package/dist/chat.d.ts.map +0 -1
  215. package/dist/chat.js +0 -8
  216. package/dist/fulltext.d.ts +0 -27
  217. package/dist/fulltext.d.ts.map +0 -1
  218. package/dist/fulltext.js +0 -368
  219. package/dist/reads.d.ts +0 -11
  220. package/dist/reads.d.ts.map +0 -1
  221. package/dist/reads.js +0 -98
  222. package/dist/words.d.ts +0 -19
  223. package/dist/words.d.ts.map +0 -1
  224. package/dist/words.js +0 -150
package/dist/store.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { composedOf } from './collection.js';
1
2
  import { binaryLocalId } from './identity.js';
2
3
  const FILE = '\u0000file';
3
4
  function batchFiles(batch) {
@@ -9,7 +10,7 @@ function draftFiles(drafts) {
9
10
  function roomDraftRow(record) {
10
11
  return { path: record.path, record: JSON.stringify(record), files: draftFiles([record]) };
11
12
  }
12
- function authoredRows({ locator, queue, founded, saved, roomDrafts, consumedRoomDrafts, accepted }, held) {
13
+ function authoredRows({ locator, queue, founded, saved, roomDrafts, consumedRoomDrafts }, held) {
13
14
  return {
14
15
  locator,
15
16
  ...(queue === undefined
@@ -43,14 +44,6 @@ function authoredRows({ locator, queue, founded, saved, roomDrafts, consumedRoom
43
44
  }),
44
45
  ...(roomDrafts === undefined ? {} : { roomDrafts: roomDrafts.map(roomDraftRow) }),
45
46
  ...(consumedRoomDrafts === undefined ? {} : { consumedRoomDrafts }),
46
- ...(accepted === undefined
47
- ? {}
48
- : {
49
- amendments: accepted.map(({ id, roomVersion }) => ({
50
- id,
51
- amendment: JSON.stringify({ accepted: roomVersion }),
52
- })),
53
- }),
54
47
  };
55
48
  }
56
49
  function marked(value) {
@@ -120,7 +113,7 @@ export function openRuntimeStore(fenced, authored) {
120
113
  return {
121
114
  async opened() {
122
115
  const held = await authored.ask({ kind: 'replica.open' });
123
- const unprepared = new Set(held.keys.flatMap(({ key, rederiving }) => (rederiving === null ? [] : [key])));
116
+ const unindexed = new Set(held.keys.flatMap(({ key, rederiving }) => (rederiving === null ? [] : [key])));
124
117
  const overlaid = new Map();
125
118
  for (const { key, path } of held.overlaid) {
126
119
  const paths = overlaid.get(key) ?? new Set();
@@ -134,13 +127,7 @@ export function openRuntimeStore(fenced, authored) {
134
127
  locator,
135
128
  { ...JSON.parse(record), key },
136
129
  ])),
137
- transfers: new Map(held.transfers
138
- .filter(({ locator }) => !fenced(locator))
139
- .map(({ locator, key, record }) => [
140
- locator,
141
- { ...JSON.parse(record), key },
142
- ])),
143
- unprepared,
130
+ unindexed,
144
131
  overlaid,
145
132
  erasing: held.erasing.length > 0,
146
133
  orphans: held.orphans,
@@ -153,6 +140,8 @@ export function openRuntimeStore(fenced, authored) {
153
140
  app,
154
141
  value: JSON.parse(value),
155
142
  })),
143
+ conversationList: json(held.facts.conversationList, null),
144
+ conversationCursor: json(held.facts.conversationCursor, null),
156
145
  };
157
146
  },
158
147
  counts(rooms) {
@@ -173,37 +162,33 @@ export function openRuntimeStore(fenced, authored) {
173
162
  referrers(key, view, targets, kinds) {
174
163
  return authored.ask({ kind: 'replica.referrers', key, view, targets, kinds });
175
164
  },
176
- walk(key, view, after, bytes) {
177
- return authored.ask({ kind: 'replica.walk', key, view, after, bytes });
178
- },
179
165
  files(key, view, after, limit) {
180
166
  return authored.ask({ kind: 'replica.files', key, view, after, limit });
181
167
  },
168
+ folders(key, view, paths) {
169
+ return authored.ask({ kind: 'replica.folders', key, view, paths });
170
+ },
182
171
  typedWithin(key, view, roots, within) {
183
172
  return authored.ask({ kind: 'replica.typedWithin', key, view, roots, within });
184
173
  },
185
- search(ask) {
186
- return authored.ask({ kind: 'replica.search', ...ask });
187
- },
188
- async stage(record, composition, page, key, last) {
174
+ async stage(record, composition, page) {
189
175
  if (fenced(record.locator))
190
176
  return null;
191
- const { key: _key, ...kept } = record;
192
177
  return authored.ask({
193
178
  kind: 'replica.stage',
194
179
  locator: record.locator,
195
180
  transfer: record.transfer,
196
- record: last ? JSON.stringify(kept) : null,
197
- key,
198
- composition,
181
+ key: record.key,
182
+ fingerprint: composedOf(composition).fingerprint,
199
183
  entries: page.entries,
200
184
  folders: page.folders,
201
185
  });
202
186
  },
203
- async refresh(key, page) {
187
+ async refresh(key, composition, page) {
204
188
  await authored.ask({
205
189
  kind: 'replica.refresh',
206
190
  key,
191
+ composed: composedOf(composition),
207
192
  entries: page.entries,
208
193
  removals: page.removals,
209
194
  folders: page.folders,
@@ -213,25 +198,56 @@ export function openRuntimeStore(fenced, authored) {
213
198
  async unrefresh(key) {
214
199
  await authored.ask({ kind: 'replica.unrefresh', key });
215
200
  },
216
- async commit({ rooms, writes = [], files = [], whole = false, discards = [] }) {
201
+ async hold(locator, key, composition, texts) {
202
+ if (fenced(locator))
203
+ return [];
204
+ change(key);
205
+ return authored.ask({
206
+ kind: 'replica.hold',
207
+ key,
208
+ locator,
209
+ composed: composedOf(composition),
210
+ texts,
211
+ });
212
+ },
213
+ async unhold(locator, key, composition) {
214
+ if (fenced(locator))
215
+ return { paths: [], bytes: 0 };
216
+ change(key);
217
+ return authored.ask({
218
+ kind: 'replica.unhold',
219
+ key,
220
+ locator,
221
+ composed: composedOf(composition),
222
+ });
223
+ },
224
+ async wanted(locator, key) {
225
+ if (fenced(locator))
226
+ return [];
227
+ return authored.ask({ kind: 'replica.wanted', key, locator });
228
+ },
229
+ async remember(locator, key, paths) {
230
+ if (fenced(locator) || paths.length === 0)
231
+ return;
232
+ await authored.ask({ kind: 'replica.remember', key, locator, paths });
233
+ },
234
+ async commit({ rooms, writes = [], files = [], whole = false }) {
217
235
  const kept = whole ? writes : writes.filter(({ locator }) => !fenced(locator));
218
236
  const refused = whole ? kept.find(({ locator }) => fenced(locator)) : undefined;
219
237
  if (refused !== undefined) {
220
- return { fenced: refused.locator, counts: {}, changed: {}, prepared: {} };
238
+ return { fenced: refused.locator, counts: {}, changed: {}, indexed: {} };
221
239
  }
222
240
  for (const room of rooms)
223
241
  change(room.key);
224
242
  const committed = await authored.ask({
225
243
  kind: 'replica.commit',
226
- ...(kept.length === 0 && files.length === 0 && discards.length === 0
244
+ ...(kept.length === 0 && files.length === 0
227
245
  ? {}
228
- : { authored: { writes: rows(kept), files, whole, discards } }),
246
+ : { authored: { writes: rows(kept), files, whole } }),
229
247
  rooms: rooms.filter(({ locator }) => !fenced(locator)),
230
248
  });
231
249
  if (committed.fenced === null || !whole)
232
250
  noted(kept);
233
- for (const locator of discards)
234
- queued.delete(locator);
235
251
  return committed;
236
252
  },
237
253
  async fence(locators) {
@@ -242,17 +258,24 @@ export function openRuntimeStore(fenced, authored) {
242
258
  async erase(locator, limit) {
243
259
  return (await authored.ask({ kind: 'replica.erase', locator, limit })).remaining;
244
260
  },
245
- async abandon(locator, kept = false) {
261
+ async abandon(locator) {
246
262
  if (fenced(locator))
247
- return null;
248
- return authored.ask({ kind: 'replica.abandon', locator, kept });
263
+ return;
264
+ await authored.ask({ kind: 'replica.abandon', locator });
249
265
  },
250
266
  async release(key) {
251
267
  await authored.ask({ kind: 'replica.release', key });
252
268
  },
253
- async rederive(key, limit) {
269
+ async rederive(key, composition, bytes, ms, floor) {
254
270
  change(key);
255
- return (await authored.ask({ kind: 'replica.rederive', key, limit })).done;
271
+ return authored.ask({
272
+ kind: 'replica.rederive',
273
+ key,
274
+ composed: composedOf(composition),
275
+ bytes,
276
+ ms,
277
+ floor,
278
+ });
256
279
  },
257
280
  async fact(name, value) {
258
281
  await authored.ask({ kind: 'replica.fact', name, value: JSON.stringify(value) });
@@ -303,11 +326,11 @@ export function openRuntimeStore(fenced, authored) {
303
326
  async keepMessages(write) {
304
327
  await authored.ask({ kind: 'conversation.keep', ...write });
305
328
  },
306
- messageWindow(conversation, limit, before) {
307
- return authored.ask({ kind: 'conversation.window', conversation, limit, before });
329
+ messageWindow(conversation, limit, before, phrase = null) {
330
+ return authored.ask({ kind: 'conversation.window', conversation, limit, before, phrase });
308
331
  },
309
- messageCount(conversation) {
310
- return authored.ask({ kind: 'conversation.count', conversation });
332
+ messageCount(conversation, phrase = null) {
333
+ return authored.ask({ kind: 'conversation.count', conversation, phrase });
311
334
  },
312
335
  turnArrived(conversation, turn) {
313
336
  return authored.ask({ kind: 'conversation.turn', conversation, turn });
@@ -367,25 +390,6 @@ export function openRuntimeStore(fenced, authored) {
367
390
  fences() {
368
391
  return authored.ask({ kind: 'authored.fences' });
369
392
  },
370
- receivedHeads() {
371
- return authored.ask({ kind: 'replica.received' });
372
- },
373
- receivedParts(key, count) {
374
- return authored.ask({ kind: 'replica.receivedParts', key, count });
375
- },
376
- async keepReceived(key, head, part) {
377
- await authored.ask({
378
- kind: 'replica.receive',
379
- key,
380
- head: JSON.stringify(head),
381
- ...(part === undefined
382
- ? {}
383
- : { part: { index: part.index, value: JSON.stringify(part.value) } }),
384
- });
385
- },
386
- async dropReceived(keys) {
387
- await authored.ask({ kind: 'replica.unreceive', keys });
388
- },
389
393
  generation() {
390
394
  return fact('generation');
391
395
  },
package/dist/stored.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ import { type Outline } from '@agentshouse/mdmodel';
1
2
  import type { HeadChange } from './adapter.js';
2
- import type { Composition } from './collection.js';
3
+ import { type Composed, type Composition } from './collection.js';
3
4
  import type { HeldBinary } from './overlay.js';
4
5
  import type { Connection } from './tables.js';
5
6
  export declare const REPLICA_TABLES: readonly string[];
@@ -7,6 +8,7 @@ export type View = 'confirmed' | 'visible' | 'refreshed';
7
8
  export type StoredEntry = {
8
9
  readonly path: string;
9
10
  readonly content: string | null;
11
+ readonly outline: Outline | null;
10
12
  readonly binary: HeldBinary | null;
11
13
  readonly revision: string | null;
12
14
  readonly fileId: string | null;
@@ -41,11 +43,6 @@ export type ReplicaOpened = {
41
43
  readonly key: number;
42
44
  readonly record: string;
43
45
  }[];
44
- readonly transfers: readonly {
45
- readonly locator: string;
46
- readonly key: number;
47
- readonly record: string;
48
- }[];
49
46
  readonly keys: readonly HeldKey[];
50
47
  readonly facts: Readonly<Record<string, string>>;
51
48
  readonly presentation: readonly {
@@ -71,7 +68,7 @@ export type RoomCommit = {
71
68
  readonly from: number | null;
72
69
  };
73
70
  readonly refreshed?: true;
74
- readonly composition?: Composition;
71
+ readonly composed: Composed;
75
72
  readonly confirmed?: {
76
73
  readonly set: readonly StoredEntry[];
77
74
  readonly removed: readonly string[];
@@ -84,29 +81,24 @@ export type RoomCommit = {
84
81
  export type Committed = {
85
82
  readonly counts: Readonly<Record<string, number>>;
86
83
  readonly changed: Readonly<Record<string, readonly string[] | null>>;
87
- readonly prepared: Readonly<Record<string, boolean>>;
84
+ readonly indexed: Readonly<Record<string, boolean>>;
88
85
  };
89
86
  export type CountedRoom = {
90
87
  readonly key: number;
91
88
  readonly roots: readonly string[];
92
89
  };
93
- export type Walked = {
94
- readonly entries: readonly HeldEntry[];
95
- readonly next: string | null;
96
- };
97
- export declare function fingerprint(composition: Composition): string;
98
90
  export declare function entered(connection: Connection, locator: string, composition: Composition, rows: readonly StoredEntry[]): number;
99
91
  export declare function stage(connection: Connection, request: {
100
92
  readonly locator: string;
101
93
  readonly transfer: string;
102
- readonly record: string | null;
103
94
  readonly key: number | null;
104
- readonly composition: Composition;
95
+ readonly fingerprint: string;
105
96
  readonly entries: readonly StoredEntry[];
106
97
  readonly folders: readonly string[];
107
98
  }): number;
108
99
  export declare function refreshing(connection: Connection, request: {
109
100
  readonly key: number;
101
+ readonly composed: Composed;
110
102
  readonly entries: readonly StoredEntry[];
111
103
  readonly removals: readonly string[];
112
104
  readonly folders: readonly string[];
@@ -116,22 +108,54 @@ export declare function unrefresh(connection: Connection, key: number): null;
116
108
  export declare function counts(connection: Connection, rooms: readonly CountedRoom[]): number[];
117
109
  export declare function commit(connection: Connection, rooms: readonly RoomCommit[]): Committed;
118
110
  export declare function fenceRooms(connection: Connection, locators: readonly string[]): null;
119
- export declare function abandon(connection: Connection, locator: string, kept: boolean): number | null;
111
+ export declare function abandon(connection: Connection, locator: string): null;
120
112
  export declare function release(connection: Connection, key: number): null;
121
113
  export declare function erase(connection: Connection, locator: string | null, limit: number): {
122
114
  readonly remaining: boolean;
123
115
  };
124
- export declare function rederive(connection: Connection, key: number, limit: number): {
116
+ export declare function rederive(connection: Connection, key: number, composed: Composed, bytes: number, ms: number, floor: number): {
125
117
  readonly done: boolean;
118
+ readonly text: number;
126
119
  };
120
+ export type HeldText = {
121
+ readonly path: string;
122
+ readonly revision: string;
123
+ readonly content: string;
124
+ };
125
+ export declare function holdTexts(connection: Connection, request: {
126
+ readonly key: number;
127
+ readonly locator: string;
128
+ readonly composed: Composed;
129
+ readonly texts: readonly HeldText[];
130
+ }): string[];
131
+ export declare function unholdTexts(connection: Connection, request: {
132
+ readonly key: number;
133
+ readonly locator: string;
134
+ readonly composed: Composed;
135
+ }): {
136
+ readonly paths: readonly string[];
137
+ readonly bytes: number;
138
+ };
139
+ export declare function remembered(connection: Connection, request: {
140
+ readonly key: number;
141
+ readonly locator: string;
142
+ readonly paths: readonly string[];
143
+ }): null;
144
+ export declare function wanted(connection: Connection, request: {
145
+ readonly key: number;
146
+ readonly locator: string;
147
+ }): {
148
+ readonly path: string;
149
+ readonly revision: string;
150
+ }[];
127
151
  export declare function entries(connection: Connection, key: number, view: View, list: readonly string[]): HeldEntry[];
128
152
  export declare function typed(connection: Connection, key: number, view: View, list: readonly string[]): TypedEntry[];
129
153
  export declare function referrers(connection: Connection, key: number, view: View, targets: readonly string[], kinds: readonly string[]): Referrer[];
130
- export declare function walk(connection: Connection, key: number, view: View, after: string | null, bytes: number): Walked;
131
154
  export declare function files(connection: Connection, key: number, view: View, after: string | null, limit: number): {
132
155
  readonly path: string;
133
156
  readonly revision: string;
134
157
  }[];
158
+ export declare function folders(connection: Connection, key: number, view: View, list: readonly string[]): string[];
135
159
  export declare function typedWithin(connection: Connection, key: number, view: View, roots: readonly string[], within: boolean): boolean;
136
160
  export declare function opened(connection: Connection): ReplicaOpened;
137
161
  export declare function ended(connection: Connection): void;
@@ -1 +1 @@
1
- {"version":3,"file":"stored.d.ts","sourceRoot":"","sources":["../src/stored.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AAE1D,eAAO,MAAM,cAAc,EAAE,SAAS,MAAM,EAkB3C,CAAC;AAMF,MAAM,MAAM,IAAI,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ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