@agentshouse/mdruntime 0.1.0-c4ca57eefb98a → 0.1.0-c4ef58fbdca7b
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/README.md +2 -2
- package/dist/acceptance.d.ts +6 -0
- package/dist/acceptance.d.ts.map +1 -0
- package/dist/acceptance.js +389 -0
- package/dist/actions.d.ts +20 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +251 -0
- package/dist/adapter.d.ts +85 -67
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts +3 -10
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +21 -56
- package/dist/bootstrap.d.ts +11 -10
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +218 -82
- package/dist/cell.d.ts +6 -0
- package/dist/cell.d.ts.map +1 -0
- package/dist/cell.js +9 -0
- package/dist/chain.d.ts +2 -1
- package/dist/chain.d.ts.map +1 -1
- package/dist/chain.js +3 -7
- package/dist/change.d.ts +1 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/chat-types.d.ts +5 -0
- package/dist/chat-types.d.ts.map +1 -0
- package/dist/chat-types.js +13 -0
- package/dist/client.d.ts +21 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3 -1
- package/dist/collection.d.ts +2 -4
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +1 -17
- package/dist/compile.d.ts +6 -6
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +263 -319
- package/dist/connection.d.ts +5 -143
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +102 -5311
- package/dist/context.d.ts +2 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +7 -0
- package/dist/conversation-live.d.ts +136 -0
- package/dist/conversation-live.d.ts.map +1 -0
- package/dist/conversation-live.js +248 -0
- package/dist/conversation-row.d.ts +33 -0
- package/dist/conversation-row.d.ts.map +1 -0
- package/dist/conversation-row.js +53 -0
- package/dist/conversation.d.ts +41 -45
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +860 -869
- package/dist/discovery.d.ts +10 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +175 -0
- package/dist/durability.d.ts +15 -1
- package/dist/durability.d.ts.map +1 -1
- package/dist/entry.d.ts +2 -2
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +17 -7
- package/dist/figures.d.ts +49 -0
- package/dist/figures.d.ts.map +1 -0
- package/dist/figures.js +197 -0
- package/dist/holdings.d.ts +29 -0
- package/dist/holdings.d.ts.map +1 -0
- package/dist/holdings.js +95 -0
- package/dist/host.d.ts +4 -7
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +29 -31
- package/dist/identity.d.ts +0 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +0 -3
- package/dist/index.d.ts +25 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -1
- package/dist/install.d.ts +56 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +556 -0
- package/dist/job.d.ts +33 -0
- package/dist/job.d.ts.map +1 -0
- package/dist/job.js +54 -0
- package/dist/lifecycle.d.ts +7 -0
- package/dist/lifecycle.d.ts.map +1 -0
- package/dist/lifecycle.js +268 -0
- package/dist/listing.d.ts +53 -0
- package/dist/listing.d.ts.map +1 -0
- package/dist/listing.js +175 -0
- package/dist/live.d.ts +5 -4
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +63 -22
- package/dist/locks.d.ts +9 -0
- package/dist/locks.d.ts.map +1 -0
- package/dist/locks.js +61 -0
- package/dist/log.d.ts +1 -0
- package/dist/log.d.ts.map +1 -1
- package/dist/lost.d.ts +5 -0
- package/dist/lost.d.ts.map +1 -0
- package/dist/lost.js +61 -0
- package/dist/media.d.ts +1 -1
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +19 -9
- package/dist/memory.d.ts +11 -4
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +171 -82
- package/dist/messages.d.ts +27 -3
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +97 -19
- package/dist/model.d.ts +2 -10
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +0 -18
- package/dist/models.d.ts +14 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +193 -0
- package/dist/observation.d.ts +2 -2
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +7 -2
- package/dist/opening.d.ts +4 -0
- package/dist/opening.d.ts.map +1 -0
- package/dist/opening.js +57 -0
- package/dist/outcome.d.ts +4 -4
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +3 -0
- package/dist/overlay.d.ts +1 -0
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +11 -0
- package/dist/parts.d.ts +59 -0
- package/dist/parts.d.ts.map +1 -0
- package/dist/parts.js +118 -0
- package/dist/preparation.d.ts +20 -0
- package/dist/preparation.d.ts.map +1 -0
- package/dist/preparation.js +226 -0
- package/dist/queries.d.ts +16 -0
- package/dist/queries.d.ts.map +1 -0
- package/dist/queries.js +272 -0
- package/dist/query.d.ts +14 -209
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +3 -505
- package/dist/questions.d.ts +34 -0
- package/dist/questions.d.ts.map +1 -0
- package/dist/questions.js +122 -0
- package/dist/reach.d.ts +15 -13
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +183 -137
- package/dist/react.d.ts +10 -2
- package/dist/react.d.ts.map +1 -1
- package/dist/read.d.ts +7 -0
- package/dist/read.d.ts.map +1 -0
- package/dist/read.js +17 -0
- package/dist/readiness.d.ts +2 -16
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +4 -10
- package/dist/reads.d.ts +36 -10
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +158 -78
- package/dist/recovery.d.ts +1 -0
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +35 -1
- package/dist/refresh.d.ts +7 -5
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +33 -5
- package/dist/refusal.d.ts +5 -0
- package/dist/refusal.d.ts.map +1 -0
- package/dist/refusal.js +56 -0
- package/dist/replica.d.ts +8 -9
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +52 -20
- package/dist/room-draft.d.ts +4 -3
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +65 -52
- package/dist/room-drafts.d.ts +24 -0
- package/dist/room-drafts.d.ts.map +1 -0
- package/dist/room-drafts.js +216 -0
- package/dist/rows.d.ts +14 -21
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +48 -184
- package/dist/runtime.d.ts +43 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +1 -0
- package/dist/save.d.ts +3 -1
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +16 -11
- package/dist/saves.d.ts +70 -0
- package/dist/saves.d.ts.map +1 -0
- package/dist/saves.js +1006 -0
- package/dist/search.d.ts +12 -63
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +9 -52
- package/dist/seed.d.ts +11 -2
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +71 -0
- package/dist/shared.d.ts +1 -2
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +9 -15
- package/dist/shown.d.ts +31 -0
- package/dist/shown.d.ts.map +1 -0
- package/dist/shown.js +295 -0
- package/dist/socket/admission.d.ts +7 -0
- package/dist/socket/admission.d.ts.map +1 -0
- package/dist/socket/admission.js +39 -0
- package/dist/socket/answers.d.ts +6 -0
- package/dist/socket/answers.d.ts.map +1 -0
- package/dist/socket/answers.js +20 -0
- package/dist/socket/lanes.d.ts +20 -0
- package/dist/socket/lanes.d.ts.map +1 -0
- package/dist/socket/lanes.js +77 -0
- package/dist/socket/reads.d.ts +10 -0
- package/dist/socket/reads.d.ts.map +1 -0
- package/dist/socket/reads.js +31 -0
- package/dist/socket/rooms.d.ts +43 -0
- package/dist/socket/rooms.d.ts.map +1 -0
- package/dist/socket/rooms.js +90 -0
- package/dist/socket/session.d.ts +39 -0
- package/dist/socket/session.d.ts.map +1 -0
- package/dist/socket/session.js +23 -0
- package/dist/socket.d.ts +70 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +175 -0
- package/dist/source.d.ts +61 -0
- package/dist/source.d.ts.map +1 -0
- package/dist/source.js +81 -0
- package/dist/status.d.ts +0 -6
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +0 -6
- package/dist/store/fences.d.ts +16 -0
- package/dist/store/fences.d.ts.map +1 -0
- package/dist/store/fences.js +26 -0
- package/dist/store/installs.d.ts +30 -0
- package/dist/store/installs.d.ts.map +1 -0
- package/dist/store/installs.js +34 -0
- package/dist/store/readiness.d.ts +10 -0
- package/dist/store/readiness.d.ts.map +1 -0
- package/dist/store/readiness.js +52 -0
- package/dist/store/records.d.ts +212 -0
- package/dist/store/records.d.ts.map +1 -0
- package/dist/store/records.js +431 -0
- package/dist/store/room-held.d.ts +8 -0
- package/dist/store/room-held.d.ts.map +1 -0
- package/dist/store/room-held.js +17 -0
- package/dist/store/space.d.ts +11 -0
- package/dist/store/space.d.ts.map +1 -0
- package/dist/store/space.js +43 -0
- package/dist/store/watchers.d.ts +17 -0
- package/dist/store/watchers.d.ts.map +1 -0
- package/dist/store/watchers.js +57 -0
- package/dist/store/writes.d.ts +24 -0
- package/dist/store/writes.d.ts.map +1 -0
- package/dist/store/writes.js +125 -0
- package/dist/store.d.ts +107 -157
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +143 -395
- package/dist/stored.d.ts +58 -37
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +283 -203
- package/dist/surface.d.ts +88 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +223 -0
- package/dist/sync.d.ts +20 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +532 -0
- package/dist/tables.d.ts +120 -55
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +212 -93
- package/dist/tallies.d.ts +18 -0
- package/dist/tallies.d.ts.map +1 -0
- package/dist/tallies.js +129 -0
- package/dist/transfer.d.ts +0 -5
- package/dist/transfer.d.ts.map +1 -1
- package/dist/validation.d.ts +3 -4
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +42 -100
- package/dist/windows.d.ts +1 -12
- package/dist/windows.d.ts.map +1 -1
- package/dist/windows.js +2 -75
- package/dist/wire.d.ts +17 -5
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +7 -1
- package/package.json +2 -2
- package/dist/fence.d.ts +0 -6
- package/dist/fence.d.ts.map +0 -1
- package/dist/fence.js +0 -10
- package/dist/fulltext.d.ts +0 -27
- package/dist/fulltext.d.ts.map +0 -1
- package/dist/fulltext.js +0 -370
- package/dist/words.d.ts +0 -19
- package/dist/words.d.ts.map +0 -1
- package/dist/words.js +0 -156
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
import { composedOf } from '../collection.js';
|
|
2
|
+
import { binaryLocalId } from '../identity.js';
|
|
3
|
+
import { readsRuntime } from '../tables.js';
|
|
4
|
+
const FILE = '\u0000file';
|
|
5
|
+
function batchFacts(batch) {
|
|
6
|
+
return { paths: batch.changes.map(({ path }) => path), moving: batch.between !== undefined };
|
|
7
|
+
}
|
|
8
|
+
function batchFiles(batch) {
|
|
9
|
+
return batch.changes.flatMap((change) => (change.kind === 'binary' ? [change.localId] : []));
|
|
10
|
+
}
|
|
11
|
+
function draftFiles(drafts) {
|
|
12
|
+
return drafts.flatMap(({ parts }) => (parts.file === undefined ? [] : [parts.file.localId]));
|
|
13
|
+
}
|
|
14
|
+
function roomDraftRow(record) {
|
|
15
|
+
return { path: record.path, record: JSON.stringify(record), files: draftFiles([record]) };
|
|
16
|
+
}
|
|
17
|
+
function authoredRows({ locator, queue, stored, founded, saved, roomDrafts, consumedRoomDrafts, }) {
|
|
18
|
+
const held = new Set((stored ?? []).map(({ id }) => id));
|
|
19
|
+
return {
|
|
20
|
+
locator,
|
|
21
|
+
...(queue === undefined
|
|
22
|
+
? {}
|
|
23
|
+
: {
|
|
24
|
+
order: queue.map(({ id }) => id),
|
|
25
|
+
added: queue
|
|
26
|
+
.filter(({ id }) => !held.has(id))
|
|
27
|
+
.map((batch) => {
|
|
28
|
+
const drafts = saved?.get(batch.id) ?? [];
|
|
29
|
+
return {
|
|
30
|
+
id: batch.id,
|
|
31
|
+
batch: JSON.stringify(batch),
|
|
32
|
+
state: JSON.stringify({
|
|
33
|
+
drafts,
|
|
34
|
+
submission: { state: 'waiting' },
|
|
35
|
+
lost: false,
|
|
36
|
+
}),
|
|
37
|
+
files: [...batchFiles(batch), ...draftFiles(drafts)],
|
|
38
|
+
...batchFacts(batch),
|
|
39
|
+
};
|
|
40
|
+
}),
|
|
41
|
+
}),
|
|
42
|
+
...(founded === undefined
|
|
43
|
+
? {}
|
|
44
|
+
: {
|
|
45
|
+
founded: founded.map((batch) => ({
|
|
46
|
+
id: batch.id,
|
|
47
|
+
batch: JSON.stringify(batch),
|
|
48
|
+
files: batchFiles(batch),
|
|
49
|
+
...batchFacts(batch),
|
|
50
|
+
})),
|
|
51
|
+
}),
|
|
52
|
+
...(roomDrafts === undefined ? {} : { roomDrafts: roomDrafts.map(roomDraftRow) }),
|
|
53
|
+
...(consumedRoomDrafts === undefined ? {} : { consumedRoomDrafts }),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function marked(value) {
|
|
57
|
+
return typeof value === 'object' && value !== null && FILE in value;
|
|
58
|
+
}
|
|
59
|
+
function keyed(keys, value) {
|
|
60
|
+
const stored = [];
|
|
61
|
+
const files = [];
|
|
62
|
+
const record = JSON.stringify(value, (_name, held) => {
|
|
63
|
+
if (!(held instanceof Blob))
|
|
64
|
+
return held;
|
|
65
|
+
let key = keys.get(held);
|
|
66
|
+
if (key === undefined) {
|
|
67
|
+
key = binaryLocalId();
|
|
68
|
+
keys.set(held, key);
|
|
69
|
+
}
|
|
70
|
+
stored.push({ key, blob: held });
|
|
71
|
+
files.push(key);
|
|
72
|
+
return { [FILE]: key, type: held.type };
|
|
73
|
+
});
|
|
74
|
+
return { record, files, stored };
|
|
75
|
+
}
|
|
76
|
+
async function filed(value, read) {
|
|
77
|
+
if (Array.isArray(value))
|
|
78
|
+
return Promise.all(value.map((item) => filed(item, read)));
|
|
79
|
+
if (marked(value))
|
|
80
|
+
return read(value[FILE], value.type);
|
|
81
|
+
if (typeof value !== 'object' || value === null)
|
|
82
|
+
return value;
|
|
83
|
+
const restored = {};
|
|
84
|
+
for (const [name, item] of Object.entries(value))
|
|
85
|
+
restored[name] = await filed(item, read);
|
|
86
|
+
return restored;
|
|
87
|
+
}
|
|
88
|
+
function roomOf(row) {
|
|
89
|
+
return {
|
|
90
|
+
record: { ...JSON.parse(row.record), key: row.key },
|
|
91
|
+
indexed: row.indexed,
|
|
92
|
+
documents: row.documents,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function json(value, fallback) {
|
|
96
|
+
return value === undefined ? fallback : JSON.parse(value);
|
|
97
|
+
}
|
|
98
|
+
function coverOf({ rooms, queues }) {
|
|
99
|
+
return {
|
|
100
|
+
rooms: new Map(rooms.map(({ locator, ...room }) => [locator, room])),
|
|
101
|
+
queues: new Map(queues.map(({ locator, ids }) => [locator, ids])),
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export function openRuntimeStore(database) {
|
|
105
|
+
let written = 0;
|
|
106
|
+
let covered = null;
|
|
107
|
+
const authored = {
|
|
108
|
+
ask(request) {
|
|
109
|
+
if (!readsRuntime(request))
|
|
110
|
+
written += 1;
|
|
111
|
+
return database.ask(request);
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
const keys = new WeakMap();
|
|
115
|
+
const read = async (key, type) => {
|
|
116
|
+
const blob = await authored.ask({ kind: 'authored.file', key, type });
|
|
117
|
+
keys.set(blob, key);
|
|
118
|
+
return blob;
|
|
119
|
+
};
|
|
120
|
+
const restored = async (records) => Promise.all(records.map(async (record) => (await filed(JSON.parse(record), read))));
|
|
121
|
+
const amend = async (locator, id, amendment) => {
|
|
122
|
+
await authored.ask({
|
|
123
|
+
kind: 'authored.amend',
|
|
124
|
+
locator,
|
|
125
|
+
id,
|
|
126
|
+
amendment: JSON.stringify(amendment),
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
const fact = (name) => authored.ask({ kind: 'authored.fact', name });
|
|
130
|
+
const changed = new Map();
|
|
131
|
+
const change = (key) => changed.set(key, (changed.get(key) ?? 0) + 1);
|
|
132
|
+
return {
|
|
133
|
+
opened() {
|
|
134
|
+
return authored.ask({ kind: 'replica.open' });
|
|
135
|
+
},
|
|
136
|
+
async rooms(locators) {
|
|
137
|
+
const held = await authored.ask({ kind: 'replica.rooms', locators: locators ?? null });
|
|
138
|
+
return held.map(roomOf);
|
|
139
|
+
},
|
|
140
|
+
async room(locator) {
|
|
141
|
+
const { room, queue } = await authored.ask({ kind: 'replica.room', locator });
|
|
142
|
+
return {
|
|
143
|
+
room: room === null ? null : { ...roomOf(room), overlaid: new Set(room.overlaid) },
|
|
144
|
+
queue: queue.map(({ batch, state }) => ({
|
|
145
|
+
batch: JSON.parse(batch),
|
|
146
|
+
state: JSON.parse(state),
|
|
147
|
+
})),
|
|
148
|
+
};
|
|
149
|
+
},
|
|
150
|
+
covering() {
|
|
151
|
+
if (covered?.at === written)
|
|
152
|
+
return covered.cover;
|
|
153
|
+
const held = {
|
|
154
|
+
at: written,
|
|
155
|
+
cover: authored.ask({ kind: 'replica.covering' }).then(coverOf),
|
|
156
|
+
};
|
|
157
|
+
covered = held;
|
|
158
|
+
held.cover.catch(() => {
|
|
159
|
+
if (covered === held)
|
|
160
|
+
covered = null;
|
|
161
|
+
});
|
|
162
|
+
return held.cover;
|
|
163
|
+
},
|
|
164
|
+
offline(locator) {
|
|
165
|
+
return authored.ask({ kind: 'replica.offline', locator });
|
|
166
|
+
},
|
|
167
|
+
async held() {
|
|
168
|
+
const { held, staged } = await authored.ask({ kind: 'replica.held' });
|
|
169
|
+
return { held: new Set(held), staged: new Set(staged) };
|
|
170
|
+
},
|
|
171
|
+
async status() {
|
|
172
|
+
const { queued, lastCompleted, changes, resets, returned } = await authored.ask({
|
|
173
|
+
kind: 'authored.status',
|
|
174
|
+
});
|
|
175
|
+
return {
|
|
176
|
+
queued,
|
|
177
|
+
lastCompleted: json(lastCompleted ?? undefined, null),
|
|
178
|
+
unsent: changes.map(({ locator, path }) => ({ room: locator, path })),
|
|
179
|
+
resets,
|
|
180
|
+
returned: returned.map((record) => JSON.parse(record)),
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
async batch(locator, id) {
|
|
184
|
+
const held = await authored.ask({ kind: 'authored.batch', locator, id });
|
|
185
|
+
return held === null ? null : JSON.parse(held);
|
|
186
|
+
},
|
|
187
|
+
order(locator) {
|
|
188
|
+
return authored.ask({ kind: 'authored.order', locator });
|
|
189
|
+
},
|
|
190
|
+
queued() {
|
|
191
|
+
return authored.ask({ kind: 'authored.queued' });
|
|
192
|
+
},
|
|
193
|
+
async moving() {
|
|
194
|
+
const { queues, pending } = await authored.ask({ kind: 'authored.moving' });
|
|
195
|
+
return {
|
|
196
|
+
queued: new Map(queues.map(({ locator, ids }) => [locator, ids])),
|
|
197
|
+
moving: pending.map(({ locator, batch, state }) => ({
|
|
198
|
+
locator,
|
|
199
|
+
batch: JSON.parse(batch),
|
|
200
|
+
state: JSON.parse(state),
|
|
201
|
+
})),
|
|
202
|
+
};
|
|
203
|
+
},
|
|
204
|
+
async pending(locator, id) {
|
|
205
|
+
const { state, room } = await authored.ask({ kind: 'authored.pending', locator, id });
|
|
206
|
+
return { state: state === null ? undefined : JSON.parse(state), room };
|
|
207
|
+
},
|
|
208
|
+
async facts() {
|
|
209
|
+
const held = await authored.ask({ kind: 'replica.facts' });
|
|
210
|
+
return {
|
|
211
|
+
lastCompleted: json(held.lastCompleted, null),
|
|
212
|
+
providerLimits: json(held.providerLimits, []),
|
|
213
|
+
capabilities: json(held.capabilities, []),
|
|
214
|
+
member: json(held.member, null),
|
|
215
|
+
targets: json(held.targets, {}),
|
|
216
|
+
conversationList: json(held.conversationList, null),
|
|
217
|
+
conversationCursor: json(held.conversationCursor, null),
|
|
218
|
+
};
|
|
219
|
+
},
|
|
220
|
+
async presentation(app) {
|
|
221
|
+
const held = await authored.ask({ kind: 'replica.presentation', app });
|
|
222
|
+
return held === null ? undefined : JSON.parse(held);
|
|
223
|
+
},
|
|
224
|
+
async demote() {
|
|
225
|
+
await authored.ask({ kind: 'replica.demote' });
|
|
226
|
+
},
|
|
227
|
+
query(plan, rooms, budget) {
|
|
228
|
+
return authored.ask({ kind: 'replica.query', plan, rooms, budget });
|
|
229
|
+
},
|
|
230
|
+
changes(keys) {
|
|
231
|
+
return keys.reduce((total, key) => total + (changed.get(key) ?? 0), 0);
|
|
232
|
+
},
|
|
233
|
+
entries(key, view, paths) {
|
|
234
|
+
return authored.ask({ kind: 'replica.entries', key, view, paths });
|
|
235
|
+
},
|
|
236
|
+
typed(key, view, paths) {
|
|
237
|
+
return authored.ask({ kind: 'replica.typed', key, view, paths });
|
|
238
|
+
},
|
|
239
|
+
referrers(key, view, targets) {
|
|
240
|
+
return authored.ask({ kind: 'replica.referrers', key, view, targets });
|
|
241
|
+
},
|
|
242
|
+
folders(key, view, paths) {
|
|
243
|
+
return authored.ask({ kind: 'replica.folders', key, view, paths });
|
|
244
|
+
},
|
|
245
|
+
typedWithin(key, view, roots, within) {
|
|
246
|
+
return authored.ask({ kind: 'replica.typedWithin', key, view, roots, within });
|
|
247
|
+
},
|
|
248
|
+
stage(record, composition, page) {
|
|
249
|
+
return authored.ask({
|
|
250
|
+
kind: 'replica.stage',
|
|
251
|
+
locator: record.locator,
|
|
252
|
+
transfer: record.transfer,
|
|
253
|
+
key: record.key,
|
|
254
|
+
fingerprint: composedOf(composition).fingerprint,
|
|
255
|
+
entries: page.entries,
|
|
256
|
+
folders: page.folders,
|
|
257
|
+
part: page.part ?? null,
|
|
258
|
+
});
|
|
259
|
+
},
|
|
260
|
+
resume(record, composition, parts, published) {
|
|
261
|
+
return authored.ask({
|
|
262
|
+
kind: 'replica.resume',
|
|
263
|
+
locator: record.locator,
|
|
264
|
+
transfer: record.transfer,
|
|
265
|
+
fingerprint: composedOf(composition).fingerprint,
|
|
266
|
+
parts,
|
|
267
|
+
published,
|
|
268
|
+
});
|
|
269
|
+
},
|
|
270
|
+
async refresh(key, composition, page) {
|
|
271
|
+
await authored.ask({
|
|
272
|
+
kind: 'replica.refresh',
|
|
273
|
+
key,
|
|
274
|
+
composed: composedOf(composition),
|
|
275
|
+
entries: page.entries,
|
|
276
|
+
removals: page.removals,
|
|
277
|
+
folders: page.folders,
|
|
278
|
+
folderRemovals: page.folderRemovals,
|
|
279
|
+
});
|
|
280
|
+
},
|
|
281
|
+
async unrefresh(key) {
|
|
282
|
+
await authored.ask({ kind: 'replica.unrefresh', key });
|
|
283
|
+
},
|
|
284
|
+
commit({ rooms, writes = [], files = [], whole = false }) {
|
|
285
|
+
for (const room of rooms)
|
|
286
|
+
change(room.key);
|
|
287
|
+
return authored.ask({
|
|
288
|
+
kind: 'replica.commit',
|
|
289
|
+
...(writes.length === 0 && files.length === 0
|
|
290
|
+
? {}
|
|
291
|
+
: { authored: { writes: writes.map(authoredRows), files, whole } }),
|
|
292
|
+
rooms,
|
|
293
|
+
});
|
|
294
|
+
},
|
|
295
|
+
async fence(locators) {
|
|
296
|
+
await authored.ask({ kind: 'replica.fence', locators });
|
|
297
|
+
},
|
|
298
|
+
async erase(locator, limit) {
|
|
299
|
+
return (await authored.ask({ kind: 'replica.erase', locator, limit })).remaining;
|
|
300
|
+
},
|
|
301
|
+
async abandon(locator) {
|
|
302
|
+
await authored.ask({ kind: 'replica.abandon', locator });
|
|
303
|
+
},
|
|
304
|
+
async unfence(locators) {
|
|
305
|
+
return new Set(await authored.ask({ kind: 'replica.unfence', locators }));
|
|
306
|
+
},
|
|
307
|
+
async release(key) {
|
|
308
|
+
await authored.ask({ kind: 'replica.release', key });
|
|
309
|
+
},
|
|
310
|
+
async rederive(key, composition, bytes, ms, floor) {
|
|
311
|
+
change(key);
|
|
312
|
+
return authored.ask({
|
|
313
|
+
kind: 'replica.rederive',
|
|
314
|
+
key,
|
|
315
|
+
composed: composedOf(composition),
|
|
316
|
+
bytes,
|
|
317
|
+
ms,
|
|
318
|
+
floor,
|
|
319
|
+
});
|
|
320
|
+
},
|
|
321
|
+
async fact(name, value) {
|
|
322
|
+
await authored.ask({ kind: 'replica.fact', name, value: JSON.stringify(value) });
|
|
323
|
+
},
|
|
324
|
+
submit(locator, id, submission, lost) {
|
|
325
|
+
return amend(locator, id, { submission, lost });
|
|
326
|
+
},
|
|
327
|
+
keepUpload(locator, id, upload) {
|
|
328
|
+
return amend(locator, id, { upload });
|
|
329
|
+
},
|
|
330
|
+
async roomDrafts(locator, paths) {
|
|
331
|
+
const held = await authored.ask({
|
|
332
|
+
kind: 'authored.roomDrafts',
|
|
333
|
+
locator: locator ?? null,
|
|
334
|
+
paths: paths ?? null,
|
|
335
|
+
});
|
|
336
|
+
return held.map((record) => JSON.parse(record));
|
|
337
|
+
},
|
|
338
|
+
async present(record) {
|
|
339
|
+
await authored.ask({
|
|
340
|
+
kind: 'replica.present',
|
|
341
|
+
app: record.app,
|
|
342
|
+
value: JSON.stringify(record.value ?? null),
|
|
343
|
+
});
|
|
344
|
+
},
|
|
345
|
+
conversations(conversations) {
|
|
346
|
+
return authored.ask({ kind: 'conversation.held', conversations: conversations ?? null });
|
|
347
|
+
},
|
|
348
|
+
async keepMessages(write) {
|
|
349
|
+
await authored.ask({ kind: 'conversation.keep', ...write });
|
|
350
|
+
},
|
|
351
|
+
messageWindow(conversation, limit, before, phrase = null) {
|
|
352
|
+
return authored.ask({ kind: 'conversation.window', conversation, limit, before, phrase });
|
|
353
|
+
},
|
|
354
|
+
messageCount(conversation, phrase = null) {
|
|
355
|
+
return authored.ask({ kind: 'conversation.count', conversation, phrase });
|
|
356
|
+
},
|
|
357
|
+
turnArrived(conversation, turn) {
|
|
358
|
+
return authored.ask({ kind: 'conversation.turn', conversation, turn });
|
|
359
|
+
},
|
|
360
|
+
conversationRows(conversations) {
|
|
361
|
+
return authored.ask({ kind: 'conversation.rows', conversations });
|
|
362
|
+
},
|
|
363
|
+
jobMarkers(conversation) {
|
|
364
|
+
return authored.ask({ kind: 'conversation.jobs', conversation });
|
|
365
|
+
},
|
|
366
|
+
async dropConversations(conversations) {
|
|
367
|
+
await authored.ask({ kind: 'conversation.drop', conversations });
|
|
368
|
+
},
|
|
369
|
+
async chatDrafts() {
|
|
370
|
+
const records = await authored.ask({ kind: 'authored.chatDrafts' });
|
|
371
|
+
return records.map((record) => JSON.parse(record));
|
|
372
|
+
},
|
|
373
|
+
async chatDraft(conversation) {
|
|
374
|
+
const record = await authored.ask({ kind: 'authored.chatDraft.read', conversation });
|
|
375
|
+
return record === null ? null : JSON.parse(record);
|
|
376
|
+
},
|
|
377
|
+
async keepChatDrafts(records) {
|
|
378
|
+
await authored.ask({
|
|
379
|
+
kind: 'authored.chatDraft',
|
|
380
|
+
kept: records.map((record) => ({
|
|
381
|
+
conversation: record.conversation,
|
|
382
|
+
record: JSON.stringify(record),
|
|
383
|
+
})),
|
|
384
|
+
dropped: [],
|
|
385
|
+
});
|
|
386
|
+
},
|
|
387
|
+
async dropChatDraft(conversation) {
|
|
388
|
+
await authored.ask({ kind: 'authored.chatDraft', kept: [], dropped: [conversation] });
|
|
389
|
+
},
|
|
390
|
+
async calls() {
|
|
391
|
+
return restored(await authored.ask({ kind: 'authored.calls' }));
|
|
392
|
+
},
|
|
393
|
+
async keepCall(record) {
|
|
394
|
+
const { stored, ...kept } = keyed(keys, record);
|
|
395
|
+
await authored.ask({
|
|
396
|
+
kind: 'authored.call',
|
|
397
|
+
operation: record.operation,
|
|
398
|
+
kept,
|
|
399
|
+
files: stored,
|
|
400
|
+
});
|
|
401
|
+
},
|
|
402
|
+
async dropCall(operation) {
|
|
403
|
+
await authored.ask({ kind: 'authored.call', operation, kept: null, files: [] });
|
|
404
|
+
},
|
|
405
|
+
async keepRoomDraft(record, files) {
|
|
406
|
+
const { path, ...kept } = roomDraftRow(record);
|
|
407
|
+
await authored.ask({
|
|
408
|
+
kind: 'authored.roomDraft',
|
|
409
|
+
locator: record.locator,
|
|
410
|
+
path,
|
|
411
|
+
kept,
|
|
412
|
+
files,
|
|
413
|
+
});
|
|
414
|
+
},
|
|
415
|
+
async discardRoomDraft(locator, path) {
|
|
416
|
+
await authored.ask({ kind: 'authored.roomDraft', locator, path, kept: null, files: [] });
|
|
417
|
+
},
|
|
418
|
+
fences() {
|
|
419
|
+
return authored.ask({ kind: 'authored.fences' });
|
|
420
|
+
},
|
|
421
|
+
generation() {
|
|
422
|
+
return fact('generation');
|
|
423
|
+
},
|
|
424
|
+
async rememberGeneration(value) {
|
|
425
|
+
await authored.ask({ kind: 'authored.remember', name: 'generation', value });
|
|
426
|
+
},
|
|
427
|
+
file(key, type) {
|
|
428
|
+
return authored.ask({ kind: 'authored.file', key, type });
|
|
429
|
+
},
|
|
430
|
+
};
|
|
431
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type RoomHeld<T> = {
|
|
2
|
+
of(locator: string, key: string): T | undefined;
|
|
3
|
+
hold(locator: string, key: string, value: T): void;
|
|
4
|
+
drop(locator: string, key: string): void;
|
|
5
|
+
forget(locator: string): void;
|
|
6
|
+
};
|
|
7
|
+
export declare function createRoomHeld<T>(): RoomHeld<T>;
|
|
8
|
+
//# sourceMappingURL=room-held.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"room-held.d.ts","sourceRoot":"","sources":["../../src/store/room-held.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;IACxB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAChD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,IAAI,CAAC;IACnD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACzC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,wBAAgB,cAAc,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAgB/C"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export function createRoomHeld() {
|
|
2
|
+
const rooms = new Map();
|
|
3
|
+
return {
|
|
4
|
+
of: (locator, key) => rooms.get(locator)?.get(key),
|
|
5
|
+
hold(locator, key, value) {
|
|
6
|
+
const room = rooms.get(locator) ?? new Map();
|
|
7
|
+
room.set(key, value);
|
|
8
|
+
rooms.set(locator, room);
|
|
9
|
+
},
|
|
10
|
+
drop(locator, key) {
|
|
11
|
+
rooms.get(locator)?.delete(key);
|
|
12
|
+
},
|
|
13
|
+
forget(locator) {
|
|
14
|
+
rooms.delete(locator);
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RuntimeDatabase } from '../tables.js';
|
|
2
|
+
export type Space = {
|
|
3
|
+
full(): boolean;
|
|
4
|
+
fill(): boolean;
|
|
5
|
+
probing(): boolean;
|
|
6
|
+
probeEachMinute(): void;
|
|
7
|
+
probe(): Promise<boolean>;
|
|
8
|
+
stop(): void;
|
|
9
|
+
};
|
|
10
|
+
export declare function createSpace(database: RuntimeDatabase, freed: () => void): Space;
|
|
11
|
+
//# sourceMappingURL=space.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"space.d.ts","sourceRoot":"","sources":["../../src/store/space.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEpD,MAAM,MAAM,KAAK,GAAG;IAClB,IAAI,IAAI,OAAO,CAAC;IAChB,IAAI,IAAI,OAAO,CAAC;IAChB,OAAO,IAAI,OAAO,CAAC;IACnB,eAAe,IAAI,IAAI,CAAC;IACxB,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC1B,IAAI,IAAI,IAAI,CAAC;CACd,CAAC;AAEF,wBAAgB,WAAW,CAAC,QAAQ,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,KAAK,CA4C/E"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export function createSpace(database, freed) {
|
|
2
|
+
let full = false;
|
|
3
|
+
let probing = null;
|
|
4
|
+
let testing = null;
|
|
5
|
+
function probe() {
|
|
6
|
+
testing ??= database.ask({ kind: 'space.probe' }).then(() => {
|
|
7
|
+
testing = null;
|
|
8
|
+
if (full) {
|
|
9
|
+
full = false;
|
|
10
|
+
if (probing !== null)
|
|
11
|
+
clearInterval(probing);
|
|
12
|
+
probing = null;
|
|
13
|
+
freed();
|
|
14
|
+
}
|
|
15
|
+
return true;
|
|
16
|
+
}, () => {
|
|
17
|
+
testing = null;
|
|
18
|
+
return false;
|
|
19
|
+
});
|
|
20
|
+
return testing;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
full: () => full,
|
|
24
|
+
fill() {
|
|
25
|
+
if (full)
|
|
26
|
+
return false;
|
|
27
|
+
full = true;
|
|
28
|
+
return true;
|
|
29
|
+
},
|
|
30
|
+
probing: () => probing !== null,
|
|
31
|
+
probeEachMinute() {
|
|
32
|
+
// A device whose storage filled after its install tries a write each minute, so space freed elsewhere ends its read-only mode without a Retry.
|
|
33
|
+
probing = setInterval(() => {
|
|
34
|
+
void probe();
|
|
35
|
+
}, 60_000);
|
|
36
|
+
},
|
|
37
|
+
probe,
|
|
38
|
+
stop() {
|
|
39
|
+
if (probing !== null)
|
|
40
|
+
clearInterval(probing);
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type Watcher = {
|
|
2
|
+
held(): boolean;
|
|
3
|
+
stop(): void;
|
|
4
|
+
answer(value: unknown): void;
|
|
5
|
+
};
|
|
6
|
+
export type Watching = 'all' | 'waiting' | 'ready';
|
|
7
|
+
type Watchers = {
|
|
8
|
+
publication(work: () => Promise<void>): Promise<void>;
|
|
9
|
+
owing<T>(topic: string, add: (owed: T | undefined) => T, work: (owed: T) => Promise<void>): Promise<void>;
|
|
10
|
+
watch(topic: string, notify: (value: unknown) => void): Watcher;
|
|
11
|
+
watching(topic: string, which?: Watching): readonly Watcher[];
|
|
12
|
+
tell(topic: string, value: unknown): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
};
|
|
15
|
+
export declare function createWatchers(unpublished: (error: unknown) => void): Watchers;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=watchers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watchers.d.ts","sourceRoot":"","sources":["../../src/store/watchers.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,IAAI,OAAO,CAAC;IAChB,IAAI,IAAI,IAAI,CAAC;IACb,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC;AAMnD,KAAK,QAAQ,GAAG;IACd,WAAW,CAAC,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,KAAK,CAAC,CAAC,EACL,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,SAAS,KAAK,CAAC,EAC/B,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAC/B,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC;IAChE,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,OAAO,EAAE,CAAC;IAC9D,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1C,KAAK,IAAI,IAAI,CAAC;CACf,CAAC;AAEF,wBAAgB,cAAc,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,GAAG,QAAQ,CA6D9E"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export function createWatchers(unpublished) {
|
|
2
|
+
let published = Promise.resolve();
|
|
3
|
+
const topics = new Map();
|
|
4
|
+
const owed = new Map();
|
|
5
|
+
function publication(work) {
|
|
6
|
+
published = published.then(work).catch(unpublished);
|
|
7
|
+
return published;
|
|
8
|
+
}
|
|
9
|
+
return {
|
|
10
|
+
publication,
|
|
11
|
+
owing(topic, add, work) {
|
|
12
|
+
const held = owed.get(topic);
|
|
13
|
+
if (held !== undefined) {
|
|
14
|
+
held.value = add(held.value);
|
|
15
|
+
return held.shown;
|
|
16
|
+
}
|
|
17
|
+
const owing = { value: add(undefined), shown: Promise.resolve() };
|
|
18
|
+
owed.set(topic, owing);
|
|
19
|
+
owing.shown = publication(async () => {
|
|
20
|
+
if (owed.get(topic) === owing)
|
|
21
|
+
owed.delete(topic);
|
|
22
|
+
await work(owing.value);
|
|
23
|
+
});
|
|
24
|
+
return owing.shown;
|
|
25
|
+
},
|
|
26
|
+
watch(topic, notify) {
|
|
27
|
+
const held = topics.get(topic) ?? new Set();
|
|
28
|
+
topics.set(topic, held);
|
|
29
|
+
const watcher = {
|
|
30
|
+
ready: false,
|
|
31
|
+
held: () => topics.get(topic)?.has(watcher) === true,
|
|
32
|
+
stop() {
|
|
33
|
+
const on = topics.get(topic);
|
|
34
|
+
on?.delete(watcher);
|
|
35
|
+
if (on?.size === 0)
|
|
36
|
+
topics.delete(topic);
|
|
37
|
+
},
|
|
38
|
+
answer(value) {
|
|
39
|
+
watcher.ready = true;
|
|
40
|
+
notify(value);
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
held.add(watcher);
|
|
44
|
+
return watcher;
|
|
45
|
+
},
|
|
46
|
+
watching(topic, which = 'all') {
|
|
47
|
+
return [...(topics.get(topic) ?? [])].filter(({ ready }) => which === 'all' || ready === (which === 'ready'));
|
|
48
|
+
},
|
|
49
|
+
tell(topic, value) {
|
|
50
|
+
for (const watcher of topics.get(topic) ?? [])
|
|
51
|
+
watcher.answer(value);
|
|
52
|
+
},
|
|
53
|
+
close() {
|
|
54
|
+
topics.clear();
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Composition } from '../collection.js';
|
|
2
|
+
import type { RefreshedPage, RuntimeStore } from './records.js';
|
|
3
|
+
export type InstallHold = {
|
|
4
|
+
take(): void;
|
|
5
|
+
release(): void;
|
|
6
|
+
};
|
|
7
|
+
type Writes = {
|
|
8
|
+
exclusive<T>(work: () => Promise<T>): Promise<T>;
|
|
9
|
+
gathered<I, T>(key: string, input: I, merge: (earlier: I, later: I) => I | null, work: (input: I) => Promise<T>): Promise<T>;
|
|
10
|
+
written(): Promise<unknown>;
|
|
11
|
+
startingWrite<T>(work: () => Promise<T>): Promise<T>;
|
|
12
|
+
finishingWrite<T>(work: () => Promise<T>): Promise<T>;
|
|
13
|
+
ahead<T>(work: (hold: InstallHold) => Promise<T>): Promise<T>;
|
|
14
|
+
rederive(local: RuntimeStore, key: number, composition: Composition): Promise<{
|
|
15
|
+
readonly done: boolean;
|
|
16
|
+
readonly text: number;
|
|
17
|
+
}>;
|
|
18
|
+
refreshPage(local: RuntimeStore, key: number, composition: Composition, page: RefreshedPage): Promise<void>;
|
|
19
|
+
stageBytes(): number;
|
|
20
|
+
deriveBytes(): number;
|
|
21
|
+
};
|
|
22
|
+
export declare function createWrites(): Writes;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=writes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writes.d.ts","sourceRoot":"","sources":["../../src/store/writes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA8BhE,MAAM,MAAM,WAAW,GAAG;IAAE,IAAI,IAAI,IAAI,CAAC;IAAC,OAAO,IAAI,IAAI,CAAA;CAAE,CAAC;AAE5D,KAAK,MAAM,GAAG;IACZ,SAAS,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACjD,QAAQ,CAAC,CAAC,EAAE,CAAC,EACX,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,EACzC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,GAC7B,OAAO,CAAC,CAAC,CAAC,CAAC;IACd,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5B,aAAa,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACrD,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACtD,KAAK,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC9D,QAAQ,CACN,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC;QAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;QAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9D,WAAW,CACT,KAAK,EAAE,YAAY,EACnB,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,aAAa,GAClB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,UAAU,IAAI,MAAM,CAAC;IACrB,WAAW,IAAI,MAAM,CAAC;CACvB,CAAC;AAcF,wBAAgB,YAAY,IAAI,MAAM,CAqHrC"}
|