@agentshouse/mdruntime 0.1.0-c09bf842921ff → 0.1.0-c0c1e81da9166
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 +1 -1
- package/dist/adapter.d.ts +14 -16
- package/dist/adapter.d.ts.map +1 -1
- package/dist/bootstrap.d.ts +8 -4
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +206 -76
- package/dist/change.d.ts +1 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/chat-types.d.ts +3 -0
- package/dist/chat-types.d.ts.map +1 -0
- package/dist/chat-types.js +2 -0
- package/dist/client.d.ts +2 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/compile.d.ts +5 -0
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +186 -55
- package/dist/connection.d.ts +4 -2
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +1362 -1040
- package/dist/conversation-row.d.ts +33 -0
- package/dist/conversation-row.d.ts.map +1 -0
- package/dist/conversation-row.js +47 -0
- package/dist/conversation.d.ts +13 -5
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +354 -192
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +1 -0
- package/dist/figures.d.ts +48 -0
- package/dist/figures.d.ts.map +1 -0
- package/dist/figures.js +197 -0
- package/dist/index.d.ts +8 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/job.d.ts +20 -1
- package/dist/job.d.ts.map +1 -1
- package/dist/job.js +26 -0
- package/dist/live.d.ts +4 -4
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +53 -15
- package/dist/memory.d.ts +1 -0
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +11 -3
- package/dist/messages.d.ts +25 -1
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +82 -3
- package/dist/model.d.ts +0 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +0 -6
- 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/query.d.ts +10 -0
- package/dist/query.d.ts.map +1 -1
- package/dist/questions.d.ts +32 -0
- package/dist/questions.d.ts.map +1 -0
- package/dist/questions.js +118 -0
- package/dist/reach.d.ts +5 -5
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +151 -99
- package/dist/read.d.ts +7 -0
- package/dist/read.d.ts.map +1 -0
- package/dist/read.js +17 -0
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +9 -1
- package/dist/refresh.d.ts +1 -1
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +4 -0
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +23 -6
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +10 -7
- 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 -2
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +0 -6
- package/dist/store.d.ts +85 -25
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +136 -98
- package/dist/stored.d.ts +55 -28
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +187 -74
- package/dist/tables.d.ts +91 -19
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +160 -34
- package/dist/tallies.d.ts +18 -0
- package/dist/tallies.d.ts.map +1 -0
- package/dist/tallies.js +129 -0
- package/dist/wire.d.ts +1 -0
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +1 -0
- 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/store.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { composedOf } from './collection.js';
|
|
2
2
|
import { binaryLocalId } from './identity.js';
|
|
3
3
|
const FILE = '\u0000file';
|
|
4
|
+
function batchFacts(batch) {
|
|
5
|
+
return { paths: batch.changes.map(({ path }) => path), moving: batch.between !== undefined };
|
|
6
|
+
}
|
|
4
7
|
function batchFiles(batch) {
|
|
5
8
|
return batch.changes.flatMap((change) => (change.kind === 'binary' ? [change.localId] : []));
|
|
6
9
|
}
|
|
@@ -10,7 +13,8 @@ function draftFiles(drafts) {
|
|
|
10
13
|
function roomDraftRow(record) {
|
|
11
14
|
return { path: record.path, record: JSON.stringify(record), files: draftFiles([record]) };
|
|
12
15
|
}
|
|
13
|
-
function authoredRows({ locator, queue, founded, saved, roomDrafts, consumedRoomDrafts }
|
|
16
|
+
function authoredRows({ locator, queue, stored, founded, saved, roomDrafts, consumedRoomDrafts, }) {
|
|
17
|
+
const held = new Set((stored ?? []).map(({ id }) => id));
|
|
14
18
|
return {
|
|
15
19
|
locator,
|
|
16
20
|
...(queue === undefined
|
|
@@ -18,7 +22,7 @@ function authoredRows({ locator, queue, founded, saved, roomDrafts, consumedRoom
|
|
|
18
22
|
: {
|
|
19
23
|
order: queue.map(({ id }) => id),
|
|
20
24
|
added: queue
|
|
21
|
-
.filter(({ id }) => held
|
|
25
|
+
.filter(({ id }) => !held.has(id))
|
|
22
26
|
.map((batch) => {
|
|
23
27
|
const drafts = saved?.get(batch.id) ?? [];
|
|
24
28
|
return {
|
|
@@ -30,6 +34,7 @@ function authoredRows({ locator, queue, founded, saved, roomDrafts, consumedRoom
|
|
|
30
34
|
lost: false,
|
|
31
35
|
}),
|
|
32
36
|
files: [...batchFiles(batch), ...draftFiles(drafts)],
|
|
37
|
+
...batchFacts(batch),
|
|
33
38
|
};
|
|
34
39
|
}),
|
|
35
40
|
}),
|
|
@@ -40,6 +45,7 @@ function authoredRows({ locator, queue, founded, saved, roomDrafts, consumedRoom
|
|
|
40
45
|
id: batch.id,
|
|
41
46
|
batch: JSON.stringify(batch),
|
|
42
47
|
files: batchFiles(batch),
|
|
48
|
+
...batchFacts(batch),
|
|
43
49
|
})),
|
|
44
50
|
}),
|
|
45
51
|
...(roomDrafts === undefined ? {} : { roomDrafts: roomDrafts.map(roomDraftRow) }),
|
|
@@ -78,10 +84,17 @@ async function filed(value, read) {
|
|
|
78
84
|
restored[name] = await filed(item, read);
|
|
79
85
|
return restored;
|
|
80
86
|
}
|
|
87
|
+
function roomOf(row) {
|
|
88
|
+
return {
|
|
89
|
+
record: { ...JSON.parse(row.record), key: row.key },
|
|
90
|
+
indexed: row.indexed,
|
|
91
|
+
documents: row.documents,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
81
94
|
function json(value, fallback) {
|
|
82
95
|
return value === undefined ? fallback : JSON.parse(value);
|
|
83
96
|
}
|
|
84
|
-
export function openRuntimeStore(
|
|
97
|
+
export function openRuntimeStore(authored) {
|
|
85
98
|
const keys = new WeakMap();
|
|
86
99
|
const read = async (key, type) => {
|
|
87
100
|
const blob = await authored.ask({ kind: 'authored.file', key, type });
|
|
@@ -90,8 +103,6 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
90
103
|
};
|
|
91
104
|
const restored = async (records) => Promise.all(records.map(async (record) => (await filed(JSON.parse(record), read))));
|
|
92
105
|
const amend = async (locator, id, amendment) => {
|
|
93
|
-
if (fenced(locator))
|
|
94
|
-
return;
|
|
95
106
|
await authored.ask({
|
|
96
107
|
kind: 'authored.amend',
|
|
97
108
|
locator,
|
|
@@ -100,52 +111,95 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
100
111
|
});
|
|
101
112
|
};
|
|
102
113
|
const fact = (name) => authored.ask({ kind: 'authored.fact', name });
|
|
103
|
-
const queued = new Map();
|
|
104
114
|
const changed = new Map();
|
|
105
115
|
const change = (key) => changed.set(key, (changed.get(key) ?? 0) + 1);
|
|
106
|
-
const rows = (writes) => writes.map((write) => authoredRows(write, queued.get(write.locator)));
|
|
107
|
-
const noted = (writes) => {
|
|
108
|
-
for (const { locator, queue } of writes) {
|
|
109
|
-
if (queue !== undefined)
|
|
110
|
-
queued.set(locator, new Set(queue.map(({ id }) => id)));
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
116
|
return {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
}
|
|
117
|
+
opened() {
|
|
118
|
+
return authored.ask({ kind: 'replica.open' });
|
|
119
|
+
},
|
|
120
|
+
async rooms(locators) {
|
|
121
|
+
const held = await authored.ask({ kind: 'replica.rooms', locators: locators ?? null });
|
|
122
|
+
return held.map(roomOf);
|
|
123
|
+
},
|
|
124
|
+
async room(locator) {
|
|
125
|
+
const { room, queue } = await authored.ask({ kind: 'replica.room', locator });
|
|
126
|
+
return {
|
|
127
|
+
room: room === null ? null : { ...roomOf(room), overlaid: new Set(room.overlaid) },
|
|
128
|
+
queue: queue.map(({ batch, state }) => ({
|
|
129
|
+
batch: JSON.parse(batch),
|
|
130
|
+
state: JSON.parse(state),
|
|
131
|
+
})),
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
async covering() {
|
|
135
|
+
const { rooms, queues } = await authored.ask({ kind: 'replica.covering' });
|
|
136
|
+
return {
|
|
137
|
+
rooms: new Map(rooms.map(({ locator, ...room }) => [locator, room])),
|
|
138
|
+
queues: new Map(queues.map(({ locator, ids }) => [locator, ids])),
|
|
139
|
+
};
|
|
140
|
+
},
|
|
141
|
+
offline(locator) {
|
|
142
|
+
return authored.ask({ kind: 'replica.offline', locator });
|
|
143
|
+
},
|
|
144
|
+
async held() {
|
|
145
|
+
const { held, staged } = await authored.ask({ kind: 'replica.held' });
|
|
146
|
+
return { held: new Set(held), staged: new Set(staged) };
|
|
147
|
+
},
|
|
148
|
+
async status() {
|
|
149
|
+
const { queued, lastCompleted, changes, resets, returned } = await authored.ask({
|
|
150
|
+
kind: 'authored.status',
|
|
151
|
+
});
|
|
152
|
+
return {
|
|
153
|
+
queued,
|
|
154
|
+
lastCompleted: json(lastCompleted ?? undefined, null),
|
|
155
|
+
unsent: changes.map(({ locator, path }) => ({ room: locator, path })),
|
|
156
|
+
resets,
|
|
157
|
+
returned: returned.map((record) => JSON.parse(record)),
|
|
158
|
+
};
|
|
159
|
+
},
|
|
160
|
+
async batch(locator, id) {
|
|
161
|
+
const held = await authored.ask({ kind: 'authored.batch', locator, id });
|
|
162
|
+
return held === null ? null : JSON.parse(held);
|
|
163
|
+
},
|
|
164
|
+
order(locator) {
|
|
165
|
+
return authored.ask({ kind: 'authored.order', locator });
|
|
166
|
+
},
|
|
167
|
+
queued() {
|
|
168
|
+
return authored.ask({ kind: 'authored.queued' });
|
|
169
|
+
},
|
|
170
|
+
async moving() {
|
|
171
|
+
const { queues, pending } = await authored.ask({ kind: 'authored.moving' });
|
|
123
172
|
return {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
.map(({ locator, key, record }) => [
|
|
173
|
+
queued: new Map(queues.map(({ locator, ids }) => [locator, ids])),
|
|
174
|
+
moving: pending.map(({ locator, batch, state }) => ({
|
|
127
175
|
locator,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
unindexed,
|
|
131
|
-
overlaid,
|
|
132
|
-
erasing: held.erasing.length > 0,
|
|
133
|
-
orphans: held.orphans,
|
|
134
|
-
lastCompleted: json(held.facts.lastCompleted, null),
|
|
135
|
-
providerLimits: json(held.facts.providerLimits, []),
|
|
136
|
-
capabilities: json(held.facts.capabilities, []),
|
|
137
|
-
member: json(held.facts.member, null),
|
|
138
|
-
targets: json(held.facts.targets, {}),
|
|
139
|
-
presentation: held.presentation.map(({ app, value }) => ({
|
|
140
|
-
app,
|
|
141
|
-
value: JSON.parse(value),
|
|
176
|
+
batch: JSON.parse(batch),
|
|
177
|
+
state: JSON.parse(state),
|
|
142
178
|
})),
|
|
143
|
-
conversationList: json(held.facts.conversationList, null),
|
|
144
|
-
conversationCursor: json(held.facts.conversationCursor, null),
|
|
145
179
|
};
|
|
146
180
|
},
|
|
147
|
-
|
|
148
|
-
|
|
181
|
+
async pending(locator, id) {
|
|
182
|
+
const { state, room } = await authored.ask({ kind: 'authored.pending', locator, id });
|
|
183
|
+
return { state: state === null ? undefined : JSON.parse(state), room };
|
|
184
|
+
},
|
|
185
|
+
async facts() {
|
|
186
|
+
const held = await authored.ask({ kind: 'replica.facts' });
|
|
187
|
+
return {
|
|
188
|
+
lastCompleted: json(held.lastCompleted, null),
|
|
189
|
+
providerLimits: json(held.providerLimits, []),
|
|
190
|
+
capabilities: json(held.capabilities, []),
|
|
191
|
+
member: json(held.member, null),
|
|
192
|
+
targets: json(held.targets, {}),
|
|
193
|
+
conversationList: json(held.conversationList, null),
|
|
194
|
+
conversationCursor: json(held.conversationCursor, null),
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
async presentation(app) {
|
|
198
|
+
const held = await authored.ask({ kind: 'replica.presentation', app });
|
|
199
|
+
return held === null ? undefined : JSON.parse(held);
|
|
200
|
+
},
|
|
201
|
+
async demote() {
|
|
202
|
+
await authored.ask({ kind: 'replica.demote' });
|
|
149
203
|
},
|
|
150
204
|
query(plan, rooms, budget) {
|
|
151
205
|
return authored.ask({ kind: 'replica.query', plan, rooms, budget });
|
|
@@ -162,18 +216,13 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
162
216
|
referrers(key, view, targets) {
|
|
163
217
|
return authored.ask({ kind: 'replica.referrers', key, view, targets });
|
|
164
218
|
},
|
|
165
|
-
files(key, view, after, limit) {
|
|
166
|
-
return authored.ask({ kind: 'replica.files', key, view, after, limit });
|
|
167
|
-
},
|
|
168
219
|
folders(key, view, paths) {
|
|
169
220
|
return authored.ask({ kind: 'replica.folders', key, view, paths });
|
|
170
221
|
},
|
|
171
222
|
typedWithin(key, view, roots, within) {
|
|
172
223
|
return authored.ask({ kind: 'replica.typedWithin', key, view, roots, within });
|
|
173
224
|
},
|
|
174
|
-
|
|
175
|
-
if (fenced(record.locator))
|
|
176
|
-
return null;
|
|
225
|
+
stage(record, composition, page) {
|
|
177
226
|
return authored.ask({
|
|
178
227
|
kind: 'replica.stage',
|
|
179
228
|
locator: record.locator,
|
|
@@ -182,6 +231,17 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
182
231
|
fingerprint: composedOf(composition).fingerprint,
|
|
183
232
|
entries: page.entries,
|
|
184
233
|
folders: page.folders,
|
|
234
|
+
part: page.part ?? null,
|
|
235
|
+
});
|
|
236
|
+
},
|
|
237
|
+
resume(record, composition, parts, published) {
|
|
238
|
+
return authored.ask({
|
|
239
|
+
kind: 'replica.resume',
|
|
240
|
+
locator: record.locator,
|
|
241
|
+
transfer: record.transfer,
|
|
242
|
+
fingerprint: composedOf(composition).fingerprint,
|
|
243
|
+
parts,
|
|
244
|
+
published,
|
|
185
245
|
});
|
|
186
246
|
},
|
|
187
247
|
async refresh(key, composition, page) {
|
|
@@ -198,38 +258,29 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
198
258
|
async unrefresh(key) {
|
|
199
259
|
await authored.ask({ kind: 'replica.unrefresh', key });
|
|
200
260
|
},
|
|
201
|
-
|
|
202
|
-
const kept = whole ? writes : writes.filter(({ locator }) => !fenced(locator));
|
|
203
|
-
const refused = whole ? kept.find(({ locator }) => fenced(locator)) : undefined;
|
|
204
|
-
if (refused !== undefined) {
|
|
205
|
-
return { fenced: refused.locator, counts: {}, changed: {}, indexed: {} };
|
|
206
|
-
}
|
|
261
|
+
commit({ rooms, writes = [], files = [], whole = false }) {
|
|
207
262
|
for (const room of rooms)
|
|
208
263
|
change(room.key);
|
|
209
|
-
|
|
264
|
+
return authored.ask({
|
|
210
265
|
kind: 'replica.commit',
|
|
211
|
-
...(
|
|
266
|
+
...(writes.length === 0 && files.length === 0
|
|
212
267
|
? {}
|
|
213
|
-
: { authored: { writes:
|
|
214
|
-
rooms
|
|
268
|
+
: { authored: { writes: writes.map(authoredRows), files, whole } }),
|
|
269
|
+
rooms,
|
|
215
270
|
});
|
|
216
|
-
if (committed.fenced === null || !whole)
|
|
217
|
-
noted(kept);
|
|
218
|
-
return committed;
|
|
219
271
|
},
|
|
220
272
|
async fence(locators) {
|
|
221
273
|
await authored.ask({ kind: 'replica.fence', locators });
|
|
222
|
-
for (const locator of locators)
|
|
223
|
-
queued.delete(locator);
|
|
224
274
|
},
|
|
225
275
|
async erase(locator, limit) {
|
|
226
276
|
return (await authored.ask({ kind: 'replica.erase', locator, limit })).remaining;
|
|
227
277
|
},
|
|
228
278
|
async abandon(locator) {
|
|
229
|
-
if (fenced(locator))
|
|
230
|
-
return;
|
|
231
279
|
await authored.ask({ kind: 'replica.abandon', locator });
|
|
232
280
|
},
|
|
281
|
+
async unfence(locators) {
|
|
282
|
+
return new Set(await authored.ask({ kind: 'replica.unfence', locators }));
|
|
283
|
+
},
|
|
233
284
|
async release(key) {
|
|
234
285
|
await authored.ask({ kind: 'replica.release', key });
|
|
235
286
|
},
|
|
@@ -247,38 +298,19 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
247
298
|
async fact(name, value) {
|
|
248
299
|
await authored.ask({ kind: 'replica.fact', name, value: JSON.stringify(value) });
|
|
249
300
|
},
|
|
250
|
-
async queues() {
|
|
251
|
-
const { queues, pending } = await authored.ask({ kind: 'authored.queues' });
|
|
252
|
-
queued.clear();
|
|
253
|
-
for (const queue of queues)
|
|
254
|
-
queued.set(queue.locator, new Set(queue.ids));
|
|
255
|
-
const byId = new Map(pending.map((record) => [`${record.locator}\0${record.id}`, record]));
|
|
256
|
-
return queues
|
|
257
|
-
.filter((queue) => !fenced(queue.locator))
|
|
258
|
-
.map((queue) => ({
|
|
259
|
-
locator: queue.locator,
|
|
260
|
-
pending: queue.ids.map((id) => {
|
|
261
|
-
const record = byId.get(`${queue.locator}\0${id}`);
|
|
262
|
-
if (record === undefined)
|
|
263
|
-
throw new Error(`Missing Pending Change ${queue.locator}/${id}`);
|
|
264
|
-
return {
|
|
265
|
-
batch: JSON.parse(record.batch),
|
|
266
|
-
state: JSON.parse(record.state),
|
|
267
|
-
};
|
|
268
|
-
}),
|
|
269
|
-
}));
|
|
270
|
-
},
|
|
271
301
|
submit(locator, id, submission, lost) {
|
|
272
302
|
return amend(locator, id, { submission, lost });
|
|
273
303
|
},
|
|
274
304
|
keepUpload(locator, id, upload) {
|
|
275
305
|
return amend(locator, id, { upload });
|
|
276
306
|
},
|
|
277
|
-
async roomDrafts() {
|
|
278
|
-
const held = await authored.ask({
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
307
|
+
async roomDrafts(locator, paths) {
|
|
308
|
+
const held = await authored.ask({
|
|
309
|
+
kind: 'authored.roomDrafts',
|
|
310
|
+
locator: locator ?? null,
|
|
311
|
+
paths: paths ?? null,
|
|
312
|
+
});
|
|
313
|
+
return held.map((record) => JSON.parse(record));
|
|
282
314
|
},
|
|
283
315
|
async present(record) {
|
|
284
316
|
await authored.ask({
|
|
@@ -287,8 +319,8 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
287
319
|
value: JSON.stringify(record.value ?? null),
|
|
288
320
|
});
|
|
289
321
|
},
|
|
290
|
-
conversations() {
|
|
291
|
-
return authored.ask({ kind: 'conversation.held' });
|
|
322
|
+
conversations(conversations) {
|
|
323
|
+
return authored.ask({ kind: 'conversation.held', conversations: conversations ?? null });
|
|
292
324
|
},
|
|
293
325
|
async keepMessages(write) {
|
|
294
326
|
await authored.ask({ kind: 'conversation.keep', ...write });
|
|
@@ -302,6 +334,12 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
302
334
|
turnArrived(conversation, turn) {
|
|
303
335
|
return authored.ask({ kind: 'conversation.turn', conversation, turn });
|
|
304
336
|
},
|
|
337
|
+
conversationRows(conversations) {
|
|
338
|
+
return authored.ask({ kind: 'conversation.rows', conversations });
|
|
339
|
+
},
|
|
340
|
+
jobMarkers(conversation) {
|
|
341
|
+
return authored.ask({ kind: 'conversation.jobs', conversation });
|
|
342
|
+
},
|
|
305
343
|
async dropConversations(conversations) {
|
|
306
344
|
await authored.ask({ kind: 'conversation.drop', conversations });
|
|
307
345
|
},
|
|
@@ -309,6 +347,10 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
309
347
|
const records = await authored.ask({ kind: 'authored.chatDrafts' });
|
|
310
348
|
return records.map((record) => JSON.parse(record));
|
|
311
349
|
},
|
|
350
|
+
async chatDraft(conversation) {
|
|
351
|
+
const record = await authored.ask({ kind: 'authored.chatDraft.read', conversation });
|
|
352
|
+
return record === null ? null : JSON.parse(record);
|
|
353
|
+
},
|
|
312
354
|
async keepChatDrafts(records) {
|
|
313
355
|
await authored.ask({
|
|
314
356
|
kind: 'authored.chatDraft',
|
|
@@ -338,8 +380,6 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
338
380
|
await authored.ask({ kind: 'authored.call', operation, kept: null, files: [] });
|
|
339
381
|
},
|
|
340
382
|
async keepRoomDraft(record, files) {
|
|
341
|
-
if (fenced(record.locator))
|
|
342
|
-
return;
|
|
343
383
|
const { path, ...kept } = roomDraftRow(record);
|
|
344
384
|
await authored.ask({
|
|
345
385
|
kind: 'authored.roomDraft',
|
|
@@ -350,8 +390,6 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
350
390
|
});
|
|
351
391
|
},
|
|
352
392
|
async discardRoomDraft(locator, path) {
|
|
353
|
-
if (fenced(locator))
|
|
354
|
-
return;
|
|
355
393
|
await authored.ask({ kind: 'authored.roomDraft', locator, path, kept: null, files: [] });
|
|
356
394
|
},
|
|
357
395
|
fences() {
|
package/dist/stored.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type StoredEntry = {
|
|
|
10
10
|
readonly binary: HeldBinary | null;
|
|
11
11
|
readonly revision: string | null;
|
|
12
12
|
readonly fileId: string | null;
|
|
13
|
+
readonly created: string | null;
|
|
13
14
|
readonly change: HeadChange | null;
|
|
14
15
|
readonly written: string | null;
|
|
15
16
|
readonly facts: SavedFacts | null;
|
|
@@ -29,32 +30,45 @@ export type Referrer = {
|
|
|
29
30
|
readonly path: string;
|
|
30
31
|
readonly target: string;
|
|
31
32
|
};
|
|
32
|
-
export type
|
|
33
|
-
readonly key: number;
|
|
33
|
+
export type HeldRoomRow = {
|
|
34
34
|
readonly locator: string;
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
35
|
+
readonly key: number;
|
|
36
|
+
readonly record: string;
|
|
37
|
+
readonly indexed: boolean;
|
|
38
|
+
readonly documents: number;
|
|
37
39
|
};
|
|
38
|
-
export type
|
|
40
|
+
export type HeldRoomWork = {
|
|
41
|
+
readonly room: (HeldRoomRow & {
|
|
42
|
+
readonly overlaid: readonly string[];
|
|
43
|
+
}) | null;
|
|
44
|
+
readonly queue: readonly {
|
|
45
|
+
readonly id: string;
|
|
46
|
+
readonly batch: string;
|
|
47
|
+
readonly state: string;
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
50
|
+
export type Covering = {
|
|
39
51
|
readonly rooms: readonly {
|
|
40
52
|
readonly locator: string;
|
|
41
53
|
readonly key: number;
|
|
42
|
-
readonly
|
|
54
|
+
readonly transfer: string;
|
|
55
|
+
readonly roomVersion: string;
|
|
56
|
+
readonly indexed: boolean;
|
|
57
|
+
readonly documents: number;
|
|
58
|
+
readonly bytes: number;
|
|
59
|
+
readonly offline: string;
|
|
43
60
|
}[];
|
|
44
|
-
readonly
|
|
45
|
-
readonly facts: Readonly<Record<string, string>>;
|
|
46
|
-
readonly presentation: readonly {
|
|
47
|
-
readonly app: string;
|
|
48
|
-
readonly value: string;
|
|
49
|
-
}[];
|
|
50
|
-
readonly overlaid: readonly {
|
|
51
|
-
readonly key: number;
|
|
52
|
-
readonly path: string;
|
|
53
|
-
}[];
|
|
54
|
-
readonly erasing: readonly {
|
|
55
|
-
readonly key: number;
|
|
61
|
+
readonly queues: readonly {
|
|
56
62
|
readonly locator: string;
|
|
63
|
+
readonly ids: readonly string[];
|
|
57
64
|
}[];
|
|
65
|
+
};
|
|
66
|
+
export type HeldLocators = {
|
|
67
|
+
readonly held: readonly string[];
|
|
68
|
+
readonly staged: readonly string[];
|
|
69
|
+
};
|
|
70
|
+
export type ReplicaOpened = {
|
|
71
|
+
readonly erasing: boolean;
|
|
58
72
|
readonly orphans: readonly number[];
|
|
59
73
|
};
|
|
60
74
|
export type RoomCommit = {
|
|
@@ -77,14 +91,9 @@ export type RoomCommit = {
|
|
|
77
91
|
};
|
|
78
92
|
};
|
|
79
93
|
export type Committed = {
|
|
80
|
-
readonly counts: Readonly<Record<string, number>>;
|
|
81
94
|
readonly changed: Readonly<Record<string, readonly string[] | null>>;
|
|
82
95
|
readonly indexed: Readonly<Record<string, boolean>>;
|
|
83
96
|
};
|
|
84
|
-
export type CountedRoom = {
|
|
85
|
-
readonly key: number;
|
|
86
|
-
readonly roots: readonly string[];
|
|
87
|
-
};
|
|
88
97
|
export declare function entered(connection: Connection, locator: string, composition: Composition, rows: readonly StoredEntry[]): number;
|
|
89
98
|
export declare function stage(connection: Connection, request: {
|
|
90
99
|
readonly locator: string;
|
|
@@ -93,7 +102,20 @@ export declare function stage(connection: Connection, request: {
|
|
|
93
102
|
readonly fingerprint: string;
|
|
94
103
|
readonly entries: readonly StoredEntry[];
|
|
95
104
|
readonly folders: readonly string[];
|
|
105
|
+
readonly part: string | null;
|
|
96
106
|
}): number;
|
|
107
|
+
export type Resumed = {
|
|
108
|
+
readonly key: number | null;
|
|
109
|
+
readonly transfer: string;
|
|
110
|
+
readonly staged: readonly string[];
|
|
111
|
+
};
|
|
112
|
+
export declare function resume(connection: Connection, request: {
|
|
113
|
+
readonly locator: string;
|
|
114
|
+
readonly transfer: string;
|
|
115
|
+
readonly fingerprint: string;
|
|
116
|
+
readonly parts: readonly string[];
|
|
117
|
+
readonly published: number | null;
|
|
118
|
+
}): Resumed;
|
|
97
119
|
export declare function refreshing(connection: Connection, request: {
|
|
98
120
|
readonly key: number;
|
|
99
121
|
readonly composed: Composed;
|
|
@@ -103,7 +125,6 @@ export declare function refreshing(connection: Connection, request: {
|
|
|
103
125
|
readonly folderRemovals: readonly string[];
|
|
104
126
|
}): null;
|
|
105
127
|
export declare function unrefresh(connection: Connection, key: number): null;
|
|
106
|
-
export declare function counts(connection: Connection, rooms: readonly CountedRoom[]): number[];
|
|
107
128
|
export declare function commit(connection: Connection, rooms: readonly RoomCommit[]): Committed;
|
|
108
129
|
export declare function fenceRooms(connection: Connection, locators: readonly string[]): null;
|
|
109
130
|
export declare function abandon(connection: Connection, locator: string): null;
|
|
@@ -118,12 +139,18 @@ export declare function rederive(connection: Connection, key: number, composed:
|
|
|
118
139
|
export declare function entries(connection: Connection, key: number, view: View, list: readonly string[]): HeldEntry[];
|
|
119
140
|
export declare function typed(connection: Connection, key: number, view: View, list: readonly string[]): TypedEntry[];
|
|
120
141
|
export declare function referrers(connection: Connection, key: number, view: View, targets: readonly string[]): Referrer[];
|
|
121
|
-
export declare function files(connection: Connection, key: number, view: View, after: string | null, limit: number): {
|
|
122
|
-
readonly path: string;
|
|
123
|
-
readonly revision: string;
|
|
124
|
-
}[];
|
|
125
142
|
export declare function folders(connection: Connection, key: number, view: View, list: readonly string[]): string[];
|
|
126
143
|
export declare function typedWithin(connection: Connection, key: number, view: View, roots: readonly string[], within: boolean): boolean;
|
|
127
144
|
export declare function opened(connection: Connection): ReplicaOpened;
|
|
145
|
+
export declare function heldRooms(connection: Connection, locators: readonly string[] | null): readonly HeldRoomRow[];
|
|
146
|
+
export declare function heldRoom(connection: Connection, locator: string): HeldRoomRow | null;
|
|
147
|
+
export declare function overlaid(connection: Connection, key: number): readonly string[];
|
|
148
|
+
export declare function covering(connection: Connection): Covering['rooms'];
|
|
149
|
+
export declare function offlineMode(connection: Connection, locator: string): string | null;
|
|
150
|
+
export declare function stagedLocators(connection: Connection): readonly string[];
|
|
151
|
+
export declare function heldLocators(connection: Connection): readonly string[];
|
|
152
|
+
export declare function demoted(connection: Connection): null;
|
|
153
|
+
export declare function facts(connection: Connection): Readonly<Record<string, string>>;
|
|
154
|
+
export declare function presentation(connection: Connection, app: string): string | null;
|
|
128
155
|
export declare function ended(connection: Connection): void;
|
|
129
156
|
//# sourceMappingURL=stored.d.ts.map
|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