@agentshouse/mdruntime 0.1.0-c2c52158b7381 → 0.1.0-c2e8a6f99866d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +14 -10
- package/dist/adapter.d.ts +14 -5
- package/dist/adapter.d.ts.map +1 -1
- package/dist/bootstrap.d.ts +13 -6
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +86 -88
- package/dist/chain.d.ts +11 -0
- package/dist/chain.d.ts.map +1 -0
- package/dist/chain.js +64 -0
- package/dist/change-set.d.ts +5 -9
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +10 -86
- package/dist/chat/list.d.ts.map +1 -1
- package/dist/chat/list.js +1 -1
- package/dist/chat/message.d.ts.map +1 -1
- package/dist/chat/message.js +8 -1
- package/dist/chat/messages.d.ts +1 -0
- package/dist/chat/messages.d.ts.map +1 -1
- package/dist/chat/messages.js +9 -1
- package/dist/chat/provider.d.ts +2 -0
- package/dist/chat/provider.d.ts.map +1 -1
- package/dist/chat/provider.js +17 -1
- package/dist/client.d.ts +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +1 -0
- package/dist/collection.d.ts +5 -19
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +22 -360
- package/dist/compile.d.ts +11 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +712 -0
- package/dist/connection.d.ts +2 -2
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +1396 -624
- package/dist/conversation.d.ts +1 -1
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +26 -17
- package/dist/entry.d.ts +2 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +17 -23
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/live.d.ts +22 -0
- package/dist/live.d.ts.map +1 -0
- package/dist/live.js +123 -0
- package/dist/memory.d.ts +1 -0
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +12 -0
- package/dist/observation.d.ts +12 -0
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +84 -0
- package/dist/overlay.d.ts +0 -3
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +1 -151
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +15 -35
- package/dist/reads.js +1 -1
- package/dist/refresh.d.ts +10 -13
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +74 -70
- package/dist/replica.d.ts +55 -38
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +273 -214
- package/dist/rows.d.ts +29 -31
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +113 -69
- package/dist/save.d.ts +9 -10
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +59 -57
- package/dist/search.d.ts +2 -2
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +60 -28
- package/dist/shared.d.ts +0 -3
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +1 -31
- package/dist/store.d.ts +79 -62
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +164 -330
- package/dist/stored.d.ts +143 -0
- package/dist/stored.d.ts.map +1 -0
- package/dist/stored.js +561 -0
- package/dist/tables.d.ts +246 -168
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +156 -25
- package/dist/turn.d.ts +1 -1
- package/dist/turn.d.ts.map +1 -1
- package/dist/turn.js +28 -20
- package/dist/validation.d.ts +30 -0
- package/dist/validation.d.ts.map +1 -0
- package/dist/validation.js +162 -0
- package/dist/windows.d.ts +2 -1
- package/dist/windows.d.ts.map +1 -1
- package/dist/windows.js +30 -25
- package/package.json +2 -3
- package/dist/read-side.d.ts +0 -27
- package/dist/read-side.d.ts.map +0 -1
- package/dist/read-side.js +0 -1179
package/dist/search.js
CHANGED
|
@@ -14,6 +14,7 @@ export function undeclaredSearch() {
|
|
|
14
14
|
}
|
|
15
15
|
const FIELDS = ['fields', 'sections', 'preamble', 'path', 'text'];
|
|
16
16
|
const VACUUM_CONDITIONS = { minDirtCount: 20, minDirtFactor: 0.1 };
|
|
17
|
+
const CHANGED_BATCH = 256;
|
|
17
18
|
function documentId(room, path) {
|
|
18
19
|
return JSON.stringify(['document', room, path]);
|
|
19
20
|
}
|
|
@@ -107,6 +108,7 @@ export function createSearchIndex(source) {
|
|
|
107
108
|
const conversations = new Set();
|
|
108
109
|
const acquiring = new Set();
|
|
109
110
|
const changedDocuments = new Map();
|
|
111
|
+
const refilling = new Set();
|
|
110
112
|
const arrived = new Map();
|
|
111
113
|
let vacuuming = null;
|
|
112
114
|
let changes = 0;
|
|
@@ -180,32 +182,53 @@ export function createSearchIndex(source) {
|
|
|
180
182
|
await yielded();
|
|
181
183
|
await vacuumed();
|
|
182
184
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
if (
|
|
185
|
+
let catching = null;
|
|
186
|
+
async function refill(room) {
|
|
187
|
+
for (const [id, entry] of documents)
|
|
188
|
+
if (entry.room === room)
|
|
189
|
+
discard(id, documents);
|
|
190
|
+
for await (const batch of source.room(room)) {
|
|
191
|
+
if (!rooms.has(room) && !filling.has(room))
|
|
187
192
|
return;
|
|
188
|
-
|
|
189
|
-
|
|
193
|
+
for (const document of batch)
|
|
194
|
+
addDocument(document);
|
|
195
|
+
await paused();
|
|
190
196
|
}
|
|
191
197
|
}
|
|
192
|
-
|
|
198
|
+
async function catchUp() {
|
|
199
|
+
for (const room of refilling) {
|
|
200
|
+
refilling.delete(room);
|
|
201
|
+
await refill(room);
|
|
202
|
+
}
|
|
203
|
+
while (changedDocuments.size > 0) {
|
|
204
|
+
await paused();
|
|
205
|
+
const batch = new Map();
|
|
206
|
+
for (const [id, { room, path }] of changedDocuments) {
|
|
207
|
+
changedDocuments.delete(id);
|
|
208
|
+
const held = batch.get(room) ?? new Map();
|
|
209
|
+
held.set(path, id);
|
|
210
|
+
batch.set(room, held);
|
|
211
|
+
if (held.size >= CHANGED_BATCH)
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
for (const [room, held] of batch) {
|
|
215
|
+
for (const id of held.values())
|
|
216
|
+
discard(id, documents);
|
|
217
|
+
for (const document of await source.documents(room, [...held.keys()])) {
|
|
218
|
+
if (rooms.has(room) || filling.has(room))
|
|
219
|
+
addDocument(document);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
await vacuumed();
|
|
224
|
+
}
|
|
193
225
|
function caughtUp() {
|
|
194
226
|
if (catching !== null)
|
|
195
227
|
return catching;
|
|
196
|
-
|
|
197
|
-
discard(id, documents);
|
|
198
|
-
const document = source.document(room, path);
|
|
199
|
-
if (document === null)
|
|
200
|
-
return ROW_WEIGHT;
|
|
201
|
-
addDocument(document);
|
|
202
|
-
return Object.values(document.sections).reduce((total, text) => total + text.length, ROW_WEIGHT + document.preamble.length);
|
|
203
|
-
}, undefined, paused);
|
|
204
|
-
if (!(running instanceof Promise) && vacuuming === null)
|
|
228
|
+
if (changedDocuments.size === 0 && refilling.size === 0 && vacuuming === null) {
|
|
205
229
|
return Promise.resolve();
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
.finally(() => {
|
|
230
|
+
}
|
|
231
|
+
catching = catchUp().finally(() => {
|
|
209
232
|
catching = null;
|
|
210
233
|
});
|
|
211
234
|
return catching;
|
|
@@ -234,13 +257,13 @@ export function createSearchIndex(source) {
|
|
|
234
257
|
return;
|
|
235
258
|
filling.add(room);
|
|
236
259
|
try {
|
|
237
|
-
await
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
260
|
+
for await (const batch of source.room(room)) {
|
|
261
|
+
if (!filling.has(room))
|
|
262
|
+
return;
|
|
263
|
+
for (const document of batch)
|
|
264
|
+
addDocument(document);
|
|
265
|
+
await paused();
|
|
266
|
+
}
|
|
244
267
|
if (filling.has(room))
|
|
245
268
|
rooms.add(room);
|
|
246
269
|
}
|
|
@@ -266,14 +289,23 @@ export function createSearchIndex(source) {
|
|
|
266
289
|
for (const room of leaving) {
|
|
267
290
|
rooms.delete(room);
|
|
268
291
|
filling.delete(room);
|
|
292
|
+
refilling.delete(room);
|
|
269
293
|
}
|
|
270
294
|
},
|
|
271
295
|
changed(set) {
|
|
272
296
|
changes += 1;
|
|
273
297
|
for (const { locator, path } of set.documents) {
|
|
274
|
-
if (rooms.has(locator)
|
|
275
|
-
|
|
298
|
+
if (!rooms.has(locator) && !filling.has(locator))
|
|
299
|
+
continue;
|
|
300
|
+
if (path === null) {
|
|
301
|
+
for (const [id, entry] of changedDocuments) {
|
|
302
|
+
if (entry.room === locator)
|
|
303
|
+
changedDocuments.delete(id);
|
|
304
|
+
}
|
|
305
|
+
refilling.add(locator);
|
|
306
|
+
continue;
|
|
276
307
|
}
|
|
308
|
+
changedDocuments.set(documentId(locator, path), { room: locator, path });
|
|
277
309
|
}
|
|
278
310
|
for (const { conversation, identity, text } of set.messages) {
|
|
279
311
|
if (!conversations.has(conversation) && !acquiring.has(conversation))
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export type Paths<V> = Readonly<Record<string, V>>;
|
|
2
|
-
type Weigh<V> = (key: string, value: V) => number;
|
|
3
2
|
export declare function entriesIn<V>(map: Paths<V>): Generator<readonly [string, V]>;
|
|
4
3
|
export declare function keysIn(...maps: readonly Paths<unknown>[]): Generator<number, Set<string>, void>;
|
|
5
4
|
export declare function sortedKeys(map: Paths<unknown>): Generator<number, readonly string[], void>;
|
|
@@ -8,12 +7,10 @@ export declare function sharing<V>(map: Paths<V>): Generator<number, Paths<V>, v
|
|
|
8
7
|
export declare function shared<V>(map: Paths<V>): Paths<V>;
|
|
9
8
|
export declare function patched<V>(base: Paths<V>, set: Iterable<readonly [string, V]>, removed?: Iterable<string>): Paths<V>;
|
|
10
9
|
export declare function patching<V>(base: Paths<V>, set: Iterable<readonly [string, V]>, removed?: Iterable<string>): Generator<number, Paths<V>, void>;
|
|
11
|
-
export declare function tallying<V>(map: Paths<V>, weigh: Weigh<V>): Generator<number, number, void>;
|
|
12
10
|
export declare function sizeOf<V>(map: Paths<V>): number;
|
|
13
11
|
export declare function differences<V>(left: Paths<V>, right: Paths<V>, same?: (left: V, right: V) => boolean): Generator<number, ReadonlySet<string>, void>;
|
|
14
12
|
export declare function differing<V>(left: Paths<V>, right: Paths<V>, same?: (left: V, right: V) => boolean): ReadonlySet<string>;
|
|
15
13
|
export declare function drafted<V>(base: Paths<V>): Record<string, V>;
|
|
16
14
|
export declare function settled<V>(draft: Record<string, V>): Paths<V>;
|
|
17
15
|
export declare function settling<V>(draft: Record<string, V>): Generator<number, Paths<V>, void>;
|
|
18
|
-
export {};
|
|
19
16
|
//# sourceMappingURL=shared.d.ts.map
|
package/dist/shared.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/shared.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AA+LnD,wBAAiB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAO5E;AAeD,wBAAiB,MAAM,CAAC,GAAG,IAAI,EAAE,SAAS,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAShG;AA0BD,wBAAiB,UAAU,CAAC,G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E,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,OAAmB,GAC/C,SAAS,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAkB9C;AAED,wBAAgB,SAAS,CAAC,CAAC,EACzB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,EACd,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,EACf,IAAI,GAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,OAAmB,GAC/C,WAAW,CAAC,MAAM,CAAC,CAErB;AAMD,wBAAgB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,CAiD5D;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAE7D;AAED,wBAAiB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAUxF"}
|
package/dist/shared.js
CHANGED
|
@@ -2,7 +2,6 @@ import { finished, ROW_WEIGHT } from './turn.js';
|
|
|
2
2
|
const BITS = 5;
|
|
3
3
|
const MASK = (1 << BITS) - 1;
|
|
4
4
|
const roots = new WeakMap();
|
|
5
|
-
const tallies = new WeakMap();
|
|
6
5
|
function hashOf(key) {
|
|
7
6
|
let hash = 0x811c9dc5;
|
|
8
7
|
for (let index = 0; index < key.length; index += 1) {
|
|
@@ -266,16 +265,8 @@ export function patched(base, set, removed = []) {
|
|
|
266
265
|
}
|
|
267
266
|
export function* patching(base, set, removed = []) {
|
|
268
267
|
const root = yield* rooted(base);
|
|
269
|
-
const weighed = [...(tallies.get(base) ?? [])];
|
|
270
268
|
let node = root.node;
|
|
271
269
|
let size = root.size;
|
|
272
|
-
const shift = (key, before, after) => {
|
|
273
|
-
for (const entry of weighed) {
|
|
274
|
-
entry[1] +=
|
|
275
|
-
(after === undefined ? 0 : entry[0](key, after)) -
|
|
276
|
-
(before === undefined ? 0 : entry[0](key, before.value));
|
|
277
|
-
}
|
|
278
|
-
};
|
|
279
270
|
for (const key of removed) {
|
|
280
271
|
if (node === undefined)
|
|
281
272
|
break;
|
|
@@ -284,7 +275,6 @@ export function* patching(base, set, removed = []) {
|
|
|
284
275
|
continue;
|
|
285
276
|
node = taken(node, before.hash, key, 0);
|
|
286
277
|
size -= 1;
|
|
287
|
-
shift(key, before, undefined);
|
|
288
278
|
yield ROW_WEIGHT;
|
|
289
279
|
}
|
|
290
280
|
for (const [key, value] of set) {
|
|
@@ -292,31 +282,11 @@ export function* patching(base, set, removed = []) {
|
|
|
292
282
|
node = put(node, { key, hash: hashOf(key), value }, 0);
|
|
293
283
|
if (before === undefined)
|
|
294
284
|
size += 1;
|
|
295
|
-
shift(key, before, value);
|
|
296
285
|
yield ROW_WEIGHT;
|
|
297
286
|
}
|
|
298
287
|
if (node === root.node && roots.has(base))
|
|
299
288
|
return base;
|
|
300
|
-
|
|
301
|
-
if (weighed.length > 0)
|
|
302
|
-
tallies.set(map, new Map(weighed));
|
|
303
|
-
return map;
|
|
304
|
-
}
|
|
305
|
-
export function* tallying(map, weigh) {
|
|
306
|
-
const known = tallies.get(map)?.get(weigh);
|
|
307
|
-
if (known !== undefined)
|
|
308
|
-
return known;
|
|
309
|
-
let total = 0;
|
|
310
|
-
for (const [key, value] of entriesIn(map)) {
|
|
311
|
-
total += weigh(key, value);
|
|
312
|
-
yield ROW_WEIGHT;
|
|
313
|
-
}
|
|
314
|
-
if (roots.has(map)) {
|
|
315
|
-
const kept = tallies.get(map) ?? new Map();
|
|
316
|
-
kept.set(weigh, total);
|
|
317
|
-
tallies.set(map, kept);
|
|
318
|
-
}
|
|
319
|
-
return total;
|
|
289
|
+
return facade({ node, size });
|
|
320
290
|
}
|
|
321
291
|
export function sizeOf(map) {
|
|
322
292
|
return roots.get(map)?.size ?? Object.keys(map).length;
|
package/dist/store.d.ts
CHANGED
|
@@ -1,44 +1,28 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Capability, HeadChange, Member, OperationScopes, ProviderLimit, ReplicaAdmission, TypedSelection } from './adapter.js';
|
|
1
|
+
import type { Capability, Member, ProviderLimit } from './adapter.js';
|
|
3
2
|
import type { AcceptedMessage, KeptReceipt } from './adapter.js';
|
|
4
3
|
import type { ChangeBatch } from './change.js';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import type { Composition } from './collection.js';
|
|
5
|
+
import type { Plan } from './query.js';
|
|
6
|
+
import type { ReplicaRecord } from './replica.js';
|
|
7
|
+
import type { Later } from './turn.js';
|
|
7
8
|
import type { Submission } from './outcome.js';
|
|
8
9
|
import type { RoomDraftRecord, SavedDraft } from './room-draft.js';
|
|
9
|
-
import type {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
name: string;
|
|
14
|
-
handle: string;
|
|
15
|
-
operations: OperationScopes;
|
|
16
|
-
replica: ReplicaAdmission;
|
|
17
|
-
model: ModelState;
|
|
18
|
-
typedSelection: TypedSelection | null;
|
|
19
|
-
selectionModel: ModelState;
|
|
20
|
-
providerOwnedPaths: readonly string[];
|
|
21
|
-
roomVersion: string;
|
|
22
|
-
transfer: string;
|
|
23
|
-
documents: Readonly<Record<string, string>>;
|
|
24
|
-
binaries: Readonly<Record<string, HeldBinary>>;
|
|
25
|
-
revisions: Readonly<Record<string, string>>;
|
|
26
|
-
fileIds: Readonly<Record<string, string>>;
|
|
27
|
-
changes: Readonly<Record<string, HeadChange>>;
|
|
28
|
-
written: Readonly<Record<string, string>>;
|
|
29
|
-
};
|
|
30
|
-
export type StagedLayer = Pick<ReplicaRecord, 'documents' | 'binaries' | 'revisions' | 'fileIds' | 'changes' | 'written'>;
|
|
10
|
+
import type { ModelState } from './model.js';
|
|
11
|
+
import type { SearchedDocument } from './search.js';
|
|
12
|
+
import type { CommittedWrite, CountedRoom, HeldEntry, QueryAnswer, QueryRoom, Referrer, RoomCommit, RuntimeDatabase, StoredEntry, StoredFile, TypedEntry, View, Walked } from './tables.js';
|
|
13
|
+
export declare const STORE_SCHEMA = 26;
|
|
31
14
|
export type TransferRecord = {
|
|
32
|
-
locator: string;
|
|
33
|
-
transfer: string;
|
|
34
|
-
selection: string;
|
|
35
|
-
from: string;
|
|
36
|
-
last: string;
|
|
37
|
-
pageToken: string | null;
|
|
38
|
-
models: {
|
|
39
|
-
collection: ModelState;
|
|
40
|
-
selection: ModelState;
|
|
15
|
+
readonly locator: string;
|
|
16
|
+
readonly transfer: string;
|
|
17
|
+
readonly selection: string;
|
|
18
|
+
readonly from: string;
|
|
19
|
+
readonly last: string;
|
|
20
|
+
readonly pageToken: string | null;
|
|
21
|
+
readonly models: {
|
|
22
|
+
readonly collection: ModelState;
|
|
23
|
+
readonly selection: ModelState;
|
|
41
24
|
};
|
|
25
|
+
readonly key: number | null;
|
|
42
26
|
};
|
|
43
27
|
export type PendingState = {
|
|
44
28
|
readonly drafts: readonly SavedDraft[];
|
|
@@ -95,11 +79,6 @@ export type CallRecord = {
|
|
|
95
79
|
readonly name: string;
|
|
96
80
|
readonly input: unknown;
|
|
97
81
|
};
|
|
98
|
-
export type RecordWrite = {
|
|
99
|
-
next: ReplicaRecord;
|
|
100
|
-
previous: ReplicaRecord | null;
|
|
101
|
-
stored?: StagedLayer;
|
|
102
|
-
};
|
|
103
82
|
export type AuthoredWrite = {
|
|
104
83
|
locator: string;
|
|
105
84
|
queue?: readonly ChangeBatch[];
|
|
@@ -107,28 +86,72 @@ export type AuthoredWrite = {
|
|
|
107
86
|
saved?: ReadonlyMap<string, readonly SavedDraft[]>;
|
|
108
87
|
roomDrafts?: readonly RoomDraftRecord[];
|
|
109
88
|
consumedRoomDrafts?: readonly string[];
|
|
89
|
+
accepted?: readonly {
|
|
90
|
+
readonly id: string;
|
|
91
|
+
readonly roomVersion: string;
|
|
92
|
+
}[];
|
|
93
|
+
};
|
|
94
|
+
export type StagedPage = {
|
|
95
|
+
readonly entries: readonly StoredEntry[];
|
|
96
|
+
readonly folders: readonly string[];
|
|
97
|
+
};
|
|
98
|
+
export type RefreshedPage = StagedPage & {
|
|
99
|
+
readonly removals: readonly string[];
|
|
100
|
+
readonly folderRemovals: readonly string[];
|
|
101
|
+
};
|
|
102
|
+
export type Opened = {
|
|
103
|
+
readonly rooms: ReadonlyMap<string, ReplicaRecord>;
|
|
104
|
+
readonly transfers: ReadonlyMap<string, TransferRecord>;
|
|
105
|
+
readonly unprepared: ReadonlySet<number>;
|
|
106
|
+
readonly overlaid: ReadonlyMap<number, ReadonlySet<string>>;
|
|
107
|
+
readonly erasing: boolean;
|
|
108
|
+
readonly orphans: readonly number[];
|
|
109
|
+
readonly lastCompleted: string | null;
|
|
110
|
+
readonly providerLimits: readonly ProviderLimit[];
|
|
111
|
+
readonly capabilities: readonly Capability[];
|
|
112
|
+
readonly member: Member | null;
|
|
113
|
+
readonly targets: Readonly<Record<string, TargetRecord>>;
|
|
114
|
+
readonly presentation: readonly PresentationRecord[];
|
|
115
|
+
};
|
|
116
|
+
export type Commit = {
|
|
117
|
+
readonly rooms: readonly RoomCommit[];
|
|
118
|
+
readonly writes?: readonly AuthoredWrite[];
|
|
119
|
+
readonly files?: readonly StoredFile[];
|
|
120
|
+
readonly whole?: boolean;
|
|
121
|
+
readonly discards?: readonly string[];
|
|
110
122
|
};
|
|
111
123
|
export type RuntimeStore = {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
opened(): Promise<Opened>;
|
|
125
|
+
counts(rooms: readonly CountedRoom[]): Promise<readonly number[]>;
|
|
126
|
+
query(plan: Plan, rooms: readonly QueryRoom[], budget: number | null): Promise<QueryAnswer>;
|
|
127
|
+
changes(keys: readonly number[]): number;
|
|
128
|
+
entries(key: number, view: View, paths: readonly string[]): Promise<readonly HeldEntry[]>;
|
|
129
|
+
typed(key: number, view: View, paths: readonly string[]): Promise<readonly TypedEntry[]>;
|
|
130
|
+
referrers(key: number, view: View, targets: readonly string[], kinds: readonly string[]): Promise<readonly Referrer[]>;
|
|
131
|
+
walk(key: number, view: View, after: string | null, bytes: number): Promise<Walked>;
|
|
132
|
+
files(key: number, view: View, after: string | null, limit: number): Promise<readonly {
|
|
133
|
+
readonly path: string;
|
|
134
|
+
readonly revision: string;
|
|
135
|
+
}[]>;
|
|
136
|
+
typedWithin(key: number, view: View, roots: readonly string[], within: boolean): Promise<boolean>;
|
|
137
|
+
searched(key: number, locator: string, after: string | null, limit: number, paths: readonly string[] | null): Promise<{
|
|
138
|
+
readonly documents: readonly SearchedDocument[];
|
|
139
|
+
readonly next: string | null;
|
|
140
|
+
}>;
|
|
141
|
+
stage(record: TransferRecord, composition: Composition, page: StagedPage, key: number | null, last: boolean): Promise<number | null>;
|
|
142
|
+
refresh(key: number, page: RefreshedPage): Promise<void>;
|
|
143
|
+
unrefresh(key: number): Promise<void>;
|
|
144
|
+
commit(commit: Commit): Promise<CommittedWrite>;
|
|
145
|
+
fence(locators: readonly string[]): Promise<void>;
|
|
146
|
+
erase(locator: string | null, limit: number): Promise<boolean>;
|
|
147
|
+
abandon(locator: string, kept?: boolean): Promise<number | null>;
|
|
148
|
+
release(key: number): Promise<void>;
|
|
149
|
+
rederive(key: number, limit: number): Promise<boolean>;
|
|
150
|
+
fact(name: string, value: unknown): Promise<void>;
|
|
126
151
|
queues(): Promise<readonly QueueRecord[]>;
|
|
127
152
|
submit(locator: string, id: string, submission: Submission, lost: boolean): Promise<void>;
|
|
128
|
-
accept(locator: string, id: string, roomVersion: string): Promise<void>;
|
|
129
153
|
keepUpload(locator: string, id: string, upload: unknown): Promise<void>;
|
|
130
154
|
roomDrafts(): Promise<readonly RoomDraftRecord[]>;
|
|
131
|
-
presentation(): Promise<readonly PresentationRecord[]>;
|
|
132
155
|
present(record: PresentationRecord): Promise<void>;
|
|
133
156
|
conversations(): Promise<readonly HeldConversation[]>;
|
|
134
157
|
keepMessages(write: ConversationWrite): Promise<void>;
|
|
@@ -147,12 +170,6 @@ export type RuntimeStore = {
|
|
|
147
170
|
keepRoomDraft(record: RoomDraftRecord, files: readonly StoredFile[]): Promise<void>;
|
|
148
171
|
discardRoomDraft(locator: string, path: string): Promise<void>;
|
|
149
172
|
fences(): Promise<readonly string[]>;
|
|
150
|
-
erase(locators: readonly string[]): Promise<void>;
|
|
151
|
-
discard(locator: string): Promise<void>;
|
|
152
|
-
transfers(): Promise<readonly TransferRecord[]>;
|
|
153
|
-
staged(record: TransferRecord): Promise<StagedLayer>;
|
|
154
|
-
stage(record: TransferRecord, page: StagedLayer): Promise<void>;
|
|
155
|
-
abandon(locator: string): Promise<void>;
|
|
156
173
|
receivedHeads(): Promise<readonly KeptReceipt[]>;
|
|
157
174
|
receivedParts(key: string, count: number): Promise<readonly unknown[]>;
|
|
158
175
|
keepReceived(key: string, head: unknown, part?: {
|
package/dist/store.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,EAAE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