@agentshouse/mdruntime 0.1.0-ce15a88ae8478 → 0.1.0-ce41fec66d91b
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 +10 -8
- package/dist/adapter.d.ts +71 -59
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts +2 -1
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +28 -4
- package/dist/binary.d.ts +0 -5
- package/dist/binary.d.ts.map +1 -1
- package/dist/binary.js +1 -1
- package/dist/bootstrap.d.ts +16 -8
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +142 -94
- package/dist/client.d.ts +8 -10
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +54 -8
- package/dist/collection.d.ts +5 -3
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +24 -19
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +95 -30
- package/dist/connection.d.ts +8 -8
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +1304 -1071
- package/dist/conversation.d.ts +13 -11
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +244 -136
- package/dist/durability.d.ts +1 -5
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +5 -0
- package/dist/entry.d.ts +1 -0
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +1 -1
- package/dist/file.d.ts +2 -11
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +6 -4
- package/dist/fulltext.d.ts.map +1 -1
- package/dist/fulltext.js +8 -6
- package/dist/host.d.ts +3 -4
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +40 -20
- package/dist/index.d.ts +10 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/media.d.ts +8 -0
- package/dist/media.d.ts.map +1 -0
- package/dist/media.js +218 -0
- package/dist/memory.d.ts +9 -6
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +175 -98
- package/dist/model.d.ts +6 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +7 -10
- package/dist/observation.d.ts +1 -0
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +1 -1
- package/dist/outcome.d.ts +13 -6
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +16 -5
- package/dist/overlay.js +1 -1
- package/dist/paths.d.ts +1 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +4 -0
- package/dist/query.d.ts +6 -0
- package/dist/query.d.ts.map +1 -1
- package/dist/reach.d.ts +8 -3
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +67 -51
- package/dist/readiness.d.ts +13 -14
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +2 -8
- package/dist/recovery.d.ts +1 -0
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +26 -0
- package/dist/refresh.d.ts +10 -4
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +85 -30
- package/dist/replica.d.ts +5 -5
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +4 -7
- package/dist/room-draft.d.ts +18 -2
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +73 -6
- package/dist/rows.d.ts +15 -6
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +102 -74
- package/dist/save.d.ts +2 -0
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +13 -7
- package/dist/shared.d.ts +0 -1
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +0 -10
- package/dist/status.d.ts +4 -3
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +3 -1
- package/dist/store.d.ts +20 -26
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +27 -51
- package/dist/stored.d.ts +10 -18
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +209 -193
- package/dist/tables.d.ts +28 -35
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +58 -50
- 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 +35 -96
- package/dist/wire.d.ts +5 -9
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +2 -3
- package/dist/words.d.ts.map +1 -1
- package/dist/words.js +8 -2
- package/package.json +11 -18
- package/AGENTS.md +0 -319
- package/dist/chat/acts.d.ts +0 -33
- package/dist/chat/acts.d.ts.map +0 -1
- package/dist/chat/acts.js +0 -36
- package/dist/chat/context.d.ts +0 -3
- package/dist/chat/context.d.ts.map +0 -1
- package/dist/chat/context.js +0 -10
- package/dist/chat/earlier.d.ts +0 -10
- package/dist/chat/earlier.d.ts.map +0 -1
- package/dist/chat/earlier.js +0 -54
- package/dist/chat/house.d.ts +0 -25
- package/dist/chat/house.d.ts.map +0 -1
- package/dist/chat/house.js +0 -38
- package/dist/chat/input.d.ts +0 -11
- package/dist/chat/input.d.ts.map +0 -1
- package/dist/chat/input.js +0 -92
- package/dist/chat/kit.d.ts +0 -61
- package/dist/chat/kit.d.ts.map +0 -1
- package/dist/chat/kit.js +0 -123
- package/dist/chat/lasting.d.ts +0 -6
- package/dist/chat/lasting.d.ts.map +0 -1
- package/dist/chat/lasting.js +0 -19
- package/dist/chat/list.d.ts +0 -28
- package/dist/chat/list.d.ts.map +0 -1
- package/dist/chat/list.js +0 -103
- package/dist/chat/markdown.d.ts +0 -21
- package/dist/chat/markdown.d.ts.map +0 -1
- package/dist/chat/markdown.js +0 -246
- package/dist/chat/message.d.ts +0 -7
- package/dist/chat/message.d.ts.map +0 -1
- package/dist/chat/message.js +0 -254
- package/dist/chat/messages.d.ts +0 -35
- package/dist/chat/messages.d.ts.map +0 -1
- package/dist/chat/messages.js +0 -210
- package/dist/chat/name.d.ts +0 -7
- package/dist/chat/name.d.ts.map +0 -1
- package/dist/chat/name.js +0 -37
- package/dist/chat/opened.d.ts +0 -12
- package/dist/chat/opened.d.ts.map +0 -1
- package/dist/chat/opened.js +0 -19
- package/dist/chat/overlay.d.ts +0 -32
- package/dist/chat/overlay.d.ts.map +0 -1
- package/dist/chat/overlay.js +0 -103
- package/dist/chat/parts.d.ts +0 -58
- package/dist/chat/parts.d.ts.map +0 -1
- package/dist/chat/parts.js +0 -120
- package/dist/chat/pieces.d.ts +0 -62
- package/dist/chat/pieces.d.ts.map +0 -1
- package/dist/chat/pieces.js +0 -1110
- package/dist/chat/process.d.ts +0 -20
- package/dist/chat/process.d.ts.map +0 -1
- package/dist/chat/process.js +0 -32
- package/dist/chat/provider.d.ts +0 -70
- package/dist/chat/provider.d.ts.map +0 -1
- package/dist/chat/provider.js +0 -635
- package/dist/chat/question.d.ts +0 -9
- package/dist/chat/question.d.ts.map +0 -1
- package/dist/chat/question.js +0 -69
- package/dist/chat/questions.d.ts +0 -31
- package/dist/chat/questions.d.ts.map +0 -1
- package/dist/chat/questions.js +0 -111
- package/dist/chat/read.d.ts +0 -5
- package/dist/chat/read.d.ts.map +0 -1
- package/dist/chat/read.js +0 -13
- package/dist/chat/ready.d.ts +0 -37
- package/dist/chat/ready.d.ts.map +0 -1
- package/dist/chat/ready.js +0 -93
- package/dist/chat/room-file.d.ts +0 -8
- package/dist/chat/room-file.d.ts.map +0 -1
- package/dist/chat/room-file.js +0 -72
- package/dist/chat/steady.d.ts +0 -3
- package/dist/chat/steady.d.ts.map +0 -1
- package/dist/chat/steady.js +0 -26
- package/dist/chat/style.d.ts +0 -4
- package/dist/chat/style.d.ts.map +0 -1
- package/dist/chat/style.js +0 -307
- package/dist/chat.d.ts +0 -15
- package/dist/chat.d.ts.map +0 -1
- package/dist/chat.js +0 -8
- package/dist/reads.d.ts +0 -11
- package/dist/reads.d.ts.map +0 -1
- package/dist/reads.js +0 -98
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
|
|
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
|
|
116
|
+
const unindexed = new Set(held.keys.flatMap(({ key, rederiving, searching }) => rederiving === null && searching === 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
|
-
|
|
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,36 @@ 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
174
|
search(ask) {
|
|
186
175
|
return authored.ask({ kind: 'replica.search', ...ask });
|
|
187
176
|
},
|
|
188
|
-
async stage(record, composition, page
|
|
177
|
+
async stage(record, composition, page) {
|
|
189
178
|
if (fenced(record.locator))
|
|
190
179
|
return null;
|
|
191
|
-
const { key: _key, ...kept } = record;
|
|
192
180
|
return authored.ask({
|
|
193
181
|
kind: 'replica.stage',
|
|
194
182
|
locator: record.locator,
|
|
195
183
|
transfer: record.transfer,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
composition,
|
|
184
|
+
key: record.key,
|
|
185
|
+
fingerprint: composedOf(composition).fingerprint,
|
|
199
186
|
entries: page.entries,
|
|
200
187
|
folders: page.folders,
|
|
201
188
|
});
|
|
202
189
|
},
|
|
203
|
-
async refresh(key, page) {
|
|
190
|
+
async refresh(key, composition, page) {
|
|
204
191
|
await authored.ask({
|
|
205
192
|
kind: 'replica.refresh',
|
|
206
193
|
key,
|
|
194
|
+
composed: composedOf(composition),
|
|
207
195
|
entries: page.entries,
|
|
208
196
|
removals: page.removals,
|
|
209
197
|
folders: page.folders,
|
|
@@ -217,7 +205,7 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
217
205
|
const kept = whole ? writes : writes.filter(({ locator }) => !fenced(locator));
|
|
218
206
|
const refused = whole ? kept.find(({ locator }) => fenced(locator)) : undefined;
|
|
219
207
|
if (refused !== undefined) {
|
|
220
|
-
return { fenced: refused.locator, counts: {}, changed: {},
|
|
208
|
+
return { fenced: refused.locator, counts: {}, changed: {}, indexed: {} };
|
|
221
209
|
}
|
|
222
210
|
for (const room of rooms)
|
|
223
211
|
change(room.key);
|
|
@@ -242,17 +230,24 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
242
230
|
async erase(locator, limit) {
|
|
243
231
|
return (await authored.ask({ kind: 'replica.erase', locator, limit })).remaining;
|
|
244
232
|
},
|
|
245
|
-
async abandon(locator
|
|
233
|
+
async abandon(locator) {
|
|
246
234
|
if (fenced(locator))
|
|
247
|
-
return
|
|
248
|
-
|
|
235
|
+
return;
|
|
236
|
+
await authored.ask({ kind: 'replica.abandon', locator });
|
|
249
237
|
},
|
|
250
238
|
async release(key) {
|
|
251
239
|
await authored.ask({ kind: 'replica.release', key });
|
|
252
240
|
},
|
|
253
|
-
async rederive(key,
|
|
241
|
+
async rederive(key, composition, bytes, ms, floor) {
|
|
254
242
|
change(key);
|
|
255
|
-
return
|
|
243
|
+
return authored.ask({
|
|
244
|
+
kind: 'replica.rederive',
|
|
245
|
+
key,
|
|
246
|
+
composed: composedOf(composition),
|
|
247
|
+
bytes,
|
|
248
|
+
ms,
|
|
249
|
+
floor,
|
|
250
|
+
});
|
|
256
251
|
},
|
|
257
252
|
async fact(name, value) {
|
|
258
253
|
await authored.ask({ kind: 'replica.fact', name, value: JSON.stringify(value) });
|
|
@@ -367,25 +362,6 @@ export function openRuntimeStore(fenced, authored) {
|
|
|
367
362
|
fences() {
|
|
368
363
|
return authored.ask({ kind: 'authored.fences' });
|
|
369
364
|
},
|
|
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
365
|
generation() {
|
|
390
366
|
return fact('generation');
|
|
391
367
|
},
|
package/dist/stored.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HeadChange } from './adapter.js';
|
|
2
|
-
import type
|
|
2
|
+
import { type Composed, type Composition } from './collection.js';
|
|
3
3
|
import type { HeldBinary } from './overlay.js';
|
|
4
4
|
import type { Connection } from './tables.js';
|
|
5
5
|
export declare const REPLICA_TABLES: readonly string[];
|
|
@@ -34,6 +34,7 @@ export type HeldKey = {
|
|
|
34
34
|
readonly locator: string;
|
|
35
35
|
readonly transfer: string;
|
|
36
36
|
readonly rederiving: number | null;
|
|
37
|
+
readonly searching: number | null;
|
|
37
38
|
};
|
|
38
39
|
export type ReplicaOpened = {
|
|
39
40
|
readonly rooms: readonly {
|
|
@@ -41,11 +42,6 @@ export type ReplicaOpened = {
|
|
|
41
42
|
readonly key: number;
|
|
42
43
|
readonly record: string;
|
|
43
44
|
}[];
|
|
44
|
-
readonly transfers: readonly {
|
|
45
|
-
readonly locator: string;
|
|
46
|
-
readonly key: number;
|
|
47
|
-
readonly record: string;
|
|
48
|
-
}[];
|
|
49
45
|
readonly keys: readonly HeldKey[];
|
|
50
46
|
readonly facts: Readonly<Record<string, string>>;
|
|
51
47
|
readonly presentation: readonly {
|
|
@@ -71,7 +67,7 @@ export type RoomCommit = {
|
|
|
71
67
|
readonly from: number | null;
|
|
72
68
|
};
|
|
73
69
|
readonly refreshed?: true;
|
|
74
|
-
readonly
|
|
70
|
+
readonly composed: Composed;
|
|
75
71
|
readonly confirmed?: {
|
|
76
72
|
readonly set: readonly StoredEntry[];
|
|
77
73
|
readonly removed: readonly string[];
|
|
@@ -84,29 +80,24 @@ export type RoomCommit = {
|
|
|
84
80
|
export type Committed = {
|
|
85
81
|
readonly counts: Readonly<Record<string, number>>;
|
|
86
82
|
readonly changed: Readonly<Record<string, readonly string[] | null>>;
|
|
87
|
-
readonly
|
|
83
|
+
readonly indexed: Readonly<Record<string, boolean>>;
|
|
88
84
|
};
|
|
89
85
|
export type CountedRoom = {
|
|
90
86
|
readonly key: number;
|
|
91
87
|
readonly roots: readonly string[];
|
|
92
88
|
};
|
|
93
|
-
export type Walked = {
|
|
94
|
-
readonly entries: readonly HeldEntry[];
|
|
95
|
-
readonly next: string | null;
|
|
96
|
-
};
|
|
97
|
-
export declare function fingerprint(composition: Composition): string;
|
|
98
89
|
export declare function entered(connection: Connection, locator: string, composition: Composition, rows: readonly StoredEntry[]): number;
|
|
99
90
|
export declare function stage(connection: Connection, request: {
|
|
100
91
|
readonly locator: string;
|
|
101
92
|
readonly transfer: string;
|
|
102
|
-
readonly record: string | null;
|
|
103
93
|
readonly key: number | null;
|
|
104
|
-
readonly
|
|
94
|
+
readonly fingerprint: string;
|
|
105
95
|
readonly entries: readonly StoredEntry[];
|
|
106
96
|
readonly folders: readonly string[];
|
|
107
97
|
}): number;
|
|
108
98
|
export declare function refreshing(connection: Connection, request: {
|
|
109
99
|
readonly key: number;
|
|
100
|
+
readonly composed: Composed;
|
|
110
101
|
readonly entries: readonly StoredEntry[];
|
|
111
102
|
readonly removals: readonly string[];
|
|
112
103
|
readonly folders: readonly string[];
|
|
@@ -116,22 +107,23 @@ export declare function unrefresh(connection: Connection, key: number): null;
|
|
|
116
107
|
export declare function counts(connection: Connection, rooms: readonly CountedRoom[]): number[];
|
|
117
108
|
export declare function commit(connection: Connection, rooms: readonly RoomCommit[]): Committed;
|
|
118
109
|
export declare function fenceRooms(connection: Connection, locators: readonly string[]): null;
|
|
119
|
-
export declare function abandon(connection: Connection, locator: string
|
|
110
|
+
export declare function abandon(connection: Connection, locator: string): null;
|
|
120
111
|
export declare function release(connection: Connection, key: number): null;
|
|
121
112
|
export declare function erase(connection: Connection, locator: string | null, limit: number): {
|
|
122
113
|
readonly remaining: boolean;
|
|
123
114
|
};
|
|
124
|
-
export declare function rederive(connection: Connection, key: number,
|
|
115
|
+
export declare function rederive(connection: Connection, key: number, composed: Composed, bytes: number, ms: number, floor: number): {
|
|
125
116
|
readonly done: boolean;
|
|
117
|
+
readonly text: number;
|
|
126
118
|
};
|
|
127
119
|
export declare function entries(connection: Connection, key: number, view: View, list: readonly string[]): HeldEntry[];
|
|
128
120
|
export declare function typed(connection: Connection, key: number, view: View, list: readonly string[]): TypedEntry[];
|
|
129
121
|
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
122
|
export declare function files(connection: Connection, key: number, view: View, after: string | null, limit: number): {
|
|
132
123
|
readonly path: string;
|
|
133
124
|
readonly revision: string;
|
|
134
125
|
}[];
|
|
126
|
+
export declare function folders(connection: Connection, key: number, view: View, list: readonly string[]): string[];
|
|
135
127
|
export declare function typedWithin(connection: Connection, key: number, view: View, roots: readonly string[], within: boolean): boolean;
|
|
136
128
|
export declare function opened(connection: Connection): ReplicaOpened;
|
|
137
129
|
export declare function ended(connection: Connection): void;
|
package/dist/stored.d.ts.map
CHANGED
|
@@ -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;
|
|
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,EAAc,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9E,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,EAgB3C,CAAC;AAoBF,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,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAAC;IACnC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,I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