@agentshouse/mdruntime 0.1.0-cf08ada271a7f → 0.1.0-cf08df9b663d8
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 +21 -19
- package/dist/acceptance.d.ts.map +1 -1
- package/dist/acceptance.js +57 -38
- package/dist/act-lanes.d.ts +30 -0
- package/dist/act-lanes.d.ts.map +1 -0
- package/dist/act-lanes.js +225 -0
- package/dist/actions.d.ts +8 -2
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +173 -83
- package/dist/adapter.d.ts +210 -30
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts +0 -1
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +2 -7
- package/dist/{binary.d.ts → attachment.d.ts} +8 -4
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.js +15 -0
- package/dist/authored.d.ts +88 -0
- package/dist/authored.d.ts.map +1 -0
- package/dist/authored.js +345 -0
- package/dist/chain.d.ts +1 -1
- package/dist/chain.d.ts.map +1 -1
- package/dist/chain.js +5 -2
- package/dist/change.d.ts +6 -2
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +3 -0
- package/dist/chat-types.d.ts +0 -2
- package/dist/chat-types.d.ts.map +1 -1
- package/dist/chat-types.js +2 -4
- package/dist/client.d.ts +29 -24
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +49 -64
- package/dist/collection.d.ts +6 -1
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +23 -9
- package/dist/column.d.ts +5 -0
- package/dist/column.d.ts.map +1 -0
- package/dist/column.js +9 -0
- package/dist/compile.d.ts +4 -1
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +88 -44
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +32 -17
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +26 -11
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +24 -11
- package/dist/conversation-row.d.ts +23 -1
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +37 -8
- package/dist/conversation.d.ts +45 -11
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +337 -203
- package/dist/declaration.js +3 -3
- package/dist/discovery.d.ts +3 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +46 -48
- package/dist/download.d.ts +6 -0
- package/dist/download.d.ts.map +1 -0
- package/dist/download.js +42 -0
- package/dist/durability.d.ts +6 -1
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +26 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +126 -36
- package/dist/expectation.d.ts +25 -14
- package/dist/expectation.d.ts.map +1 -1
- package/dist/expectation.js +51 -20
- package/dist/failure.d.ts +2 -0
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +6 -1
- package/dist/figures.d.ts +1 -1
- package/dist/figures.d.ts.map +1 -1
- package/dist/figures.js +6 -4
- package/dist/file.d.ts +1 -1
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +3 -2
- package/dist/holdings.d.ts.map +1 -1
- package/dist/holdings.js +5 -3
- package/dist/host.d.ts +7 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +94 -30
- package/dist/house-query.d.ts +24 -0
- package/dist/house-query.d.ts.map +1 -0
- package/dist/house-query.js +102 -0
- package/dist/identity.d.ts +1 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +1 -1
- package/dist/index.d.ts +27 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -9
- package/dist/install.d.ts +10 -5
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +49 -55
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +74 -51
- package/dist/linked-file.d.ts +7 -0
- package/dist/linked-file.d.ts.map +1 -0
- package/dist/linked-file.js +13 -0
- package/dist/listing.d.ts +27 -20
- package/dist/listing.d.ts.map +1 -1
- package/dist/listing.js +68 -69
- package/dist/live.d.ts +19 -3
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +94 -36
- package/dist/loaded.d.ts +7 -0
- package/dist/loaded.d.ts.map +1 -0
- package/dist/loaded.js +46 -0
- package/dist/locks.d.ts +2 -4
- package/dist/locks.d.ts.map +1 -1
- package/dist/locks.js +10 -38
- package/dist/lost.d.ts.map +1 -1
- package/dist/lost.js +8 -20
- package/dist/media.d.ts +19 -3
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +181 -34
- package/dist/memory.d.ts +7 -3
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +99 -37
- package/dist/messages.d.ts +21 -3
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +48 -16
- package/dist/modal.d.ts +2 -0
- package/dist/modal.d.ts.map +1 -0
- package/dist/modal.js +11 -0
- package/dist/model.d.ts +10 -7
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +7 -1
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +18 -35
- package/dist/name.d.ts +0 -1
- package/dist/name.d.ts.map +1 -1
- package/dist/name.js +3 -7
- package/dist/observation.d.ts +29 -12
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +206 -69
- package/dist/online.d.ts +7 -0
- package/dist/online.d.ts.map +1 -0
- package/dist/online.js +29 -0
- package/dist/opened.d.ts +6 -6
- package/dist/opened.d.ts.map +1 -1
- package/dist/opened.js +4 -4
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +22 -10
- package/dist/outcome.d.ts +33 -13
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +36 -6
- package/dist/overlay.d.ts +21 -7
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +112 -39
- package/dist/page-metadata.d.ts +8 -0
- package/dist/page-metadata.d.ts.map +1 -0
- package/dist/page-metadata.js +19 -0
- package/dist/parts.d.ts +5 -9
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +30 -15
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +1 -1
- package/dist/preparation.d.ts +33 -7
- package/dist/preparation.d.ts.map +1 -1
- package/dist/preparation.js +207 -96
- package/dist/presence.d.ts +58 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +231 -0
- package/dist/queries.d.ts +2 -2
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +137 -79
- package/dist/query.d.ts +2 -2
- package/dist/query.d.ts.map +1 -1
- package/dist/questions.d.ts +1 -5
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +3 -8
- package/dist/queue.d.ts +2 -1
- package/dist/queue.d.ts.map +1 -1
- package/dist/queue.js +76 -49
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +196 -37
- package/dist/react.d.ts +17 -5
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +28 -5
- package/dist/readiness.d.ts +23 -4
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +18 -10
- package/dist/reads.d.ts +5 -3
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +26 -14
- package/dist/recovery.d.ts +4 -1
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +31 -8
- package/dist/refresh.d.ts +1 -1
- package/dist/refresh.js +4 -4
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +2 -4
- package/dist/replica.d.ts +3 -8
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +5 -5
- package/dist/retried.d.ts +30 -0
- package/dist/retried.d.ts.map +1 -0
- package/dist/retried.js +72 -0
- package/dist/room-draft.d.ts +31 -6
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +262 -36
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +12 -7
- package/dist/room-list.d.ts +10 -0
- package/dist/room-list.d.ts.map +1 -0
- package/dist/room-list.js +47 -0
- package/dist/rows.d.ts +11 -3
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +25 -11
- package/dist/run-tables.d.ts +25 -0
- package/dist/run-tables.d.ts.map +1 -0
- package/dist/run-tables.js +98 -0
- package/dist/running.d.ts +5 -0
- package/dist/running.d.ts.map +1 -0
- package/dist/running.js +10 -0
- package/dist/runs.d.ts +27 -0
- package/dist/runs.d.ts.map +1 -0
- package/dist/runs.js +92 -0
- package/dist/runtime.d.ts +11 -5
- package/dist/runtime.d.ts.map +1 -1
- package/dist/save.d.ts +2 -0
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +120 -135
- package/dist/saves.d.ts +7 -5
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +116 -65
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +4 -4
- package/dist/selector.d.ts +3 -0
- package/dist/selector.d.ts.map +1 -0
- package/dist/selector.js +22 -0
- package/dist/shown.d.ts +8 -5
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +95 -67
- package/dist/socket/lanes.d.ts +12 -4
- package/dist/socket/lanes.d.ts.map +1 -1
- package/dist/socket/lanes.js +34 -8
- package/dist/socket/session.d.ts +4 -1
- package/dist/socket/session.d.ts.map +1 -1
- package/dist/socket/session.js +3 -0
- package/dist/socket.d.ts +9 -6
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +17 -16
- package/dist/source.d.ts +42 -7
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +76 -9
- package/dist/store/installs.d.ts +2 -2
- package/dist/store/installs.d.ts.map +1 -1
- package/dist/store/installs.js +10 -4
- package/dist/store/readiness.d.ts +5 -4
- package/dist/store/readiness.d.ts.map +1 -1
- package/dist/store/readiness.js +28 -12
- package/dist/store/records.d.ts +31 -7
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +70 -24
- package/dist/store/rooms-shown.d.ts +8 -0
- package/dist/store/rooms-shown.d.ts.map +1 -0
- package/dist/store/rooms-shown.js +13 -0
- package/dist/store.d.ts +24 -14
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +49 -17
- package/dist/stored.d.ts +41 -16
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +215 -57
- package/dist/surface.d.ts +20 -8
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +66 -32
- package/dist/sync.d.ts +4 -2
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +109 -82
- package/dist/tables.d.ts +40 -52
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +109 -326
- package/dist/tallies.d.ts.map +1 -1
- package/dist/tallies.js +3 -4
- package/dist/validation.d.ts +2 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +50 -10
- package/dist/wire.d.ts +68 -8
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +28 -11
- package/package.json +4 -4
- package/dist/attempt.d.ts +0 -16
- package/dist/attempt.d.ts.map +0 -1
- package/dist/attempt.js +0 -70
- package/dist/binary.d.ts.map +0 -1
- package/dist/binary.js +0 -8
- package/dist/job.d.ts +0 -5
- package/dist/job.d.ts.map +0 -1
- package/dist/job.js +0 -7
- package/dist/log.d.ts +0 -6
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js +0 -14
- package/dist/socket/rooms.d.ts +0 -41
- package/dist/socket/rooms.d.ts.map +0 -1
- package/dist/socket/rooms.js +0 -90
- package/dist/store/fences.d.ts +0 -16
- package/dist/store/fences.d.ts.map +0 -1
- package/dist/store/fences.js +0 -26
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { invalid, known, plain } from '@agentshouse/mdmodel';
|
|
2
|
+
import { listedOrHeld } from './listing.js';
|
|
3
|
+
import { normalize } from './paths.js';
|
|
4
|
+
import { failure, OFFLINE, UNCERTAIN, undeclared } from './outcome.js';
|
|
5
|
+
import { askedOnline, offline } from './online.js';
|
|
6
|
+
import { holds, queriedOnly } from './reach.js';
|
|
7
|
+
import { documentKey } from './rows.js';
|
|
8
|
+
const HELD_ON_DEVICE = {
|
|
9
|
+
kind: 'rejected',
|
|
10
|
+
code: 'held-on-device',
|
|
11
|
+
fields: {},
|
|
12
|
+
retryable: false,
|
|
13
|
+
};
|
|
14
|
+
function freshOf(options) {
|
|
15
|
+
if (options === undefined)
|
|
16
|
+
return false;
|
|
17
|
+
if (!plain(options))
|
|
18
|
+
invalid('options', 'expects { fresh }');
|
|
19
|
+
known(options, ['fresh'], 'options');
|
|
20
|
+
const { fresh = false } = options;
|
|
21
|
+
if (typeof fresh !== 'boolean')
|
|
22
|
+
invalid('fresh', 'expects true or false');
|
|
23
|
+
return fresh;
|
|
24
|
+
}
|
|
25
|
+
function viewOf(query) {
|
|
26
|
+
known(query, ['path', 'after'], '');
|
|
27
|
+
const { path, after } = query;
|
|
28
|
+
if (typeof path !== 'string' || path === '' || normalize(path) !== path)
|
|
29
|
+
invalid('path', 'names a View by its Path in the Room');
|
|
30
|
+
if (after === undefined)
|
|
31
|
+
return { path };
|
|
32
|
+
if (typeof after !== 'string')
|
|
33
|
+
invalid('after', 'expects the next an earlier page answered');
|
|
34
|
+
return { path, after };
|
|
35
|
+
}
|
|
36
|
+
function followedOf(reach) {
|
|
37
|
+
if (reach === null)
|
|
38
|
+
return {};
|
|
39
|
+
const whole = new Set([
|
|
40
|
+
...reach.rooms,
|
|
41
|
+
...(reach.queriesOnly ?? []).map(({ locator }) => locator),
|
|
42
|
+
]);
|
|
43
|
+
const documents = new Map(reach.documents
|
|
44
|
+
.filter(({ room }) => !whole.has(room))
|
|
45
|
+
.map(({ room, path }) => [documentKey(room, path), { room, path }]));
|
|
46
|
+
const followed = new Set([...whole, ...[...documents.values()].map(({ room }) => room)]);
|
|
47
|
+
const areas = new Map((reach.areas ?? [])
|
|
48
|
+
.filter(({ room }) => followed.has(room))
|
|
49
|
+
.map(({ room, path, open }) => [
|
|
50
|
+
documentKey(room, path),
|
|
51
|
+
{ room, path, open: [...new Set(open)].sort() },
|
|
52
|
+
]));
|
|
53
|
+
return {
|
|
54
|
+
follows: [
|
|
55
|
+
...[...whole].sort(),
|
|
56
|
+
...[...documents.keys()].sort().map((key) => documents.get(key)),
|
|
57
|
+
...[...areas.keys()].sort().map((key) => areas.get(key)),
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function houseQueryOf(input, options, reach) {
|
|
62
|
+
if (!plain(input))
|
|
63
|
+
invalid('query', 'expects a query object');
|
|
64
|
+
const { rooms, ...query } = input;
|
|
65
|
+
if (!Array.isArray(rooms) || rooms.length !== 1 || typeof rooms[0] !== 'string')
|
|
66
|
+
invalid('rooms', 'names the one Room House answers');
|
|
67
|
+
const asked = { room: rooms[0], fresh: freshOf(options), ...followedOf(reach) };
|
|
68
|
+
return query.path === undefined ? { ...asked, query } : { ...asked, ...viewOf(query) };
|
|
69
|
+
}
|
|
70
|
+
async function heldHere(runtime, reach, room) {
|
|
71
|
+
return holds(reach, room) && listedOrHeld(runtime, await runtime.store.rooms([room]), room);
|
|
72
|
+
}
|
|
73
|
+
async function searchListed(runtime, room) {
|
|
74
|
+
const { roomList } = await (await runtime.store.open()).facts(['roomList']);
|
|
75
|
+
return roomList?.rooms.some((one) => one.room_ref === room && one.level === 'search') === true;
|
|
76
|
+
}
|
|
77
|
+
async function queriedHere(runtime, reach, room) {
|
|
78
|
+
if (queriedOnly(reach, runtime.socket.session.now().queriesOnly, room))
|
|
79
|
+
return true;
|
|
80
|
+
return reach === null && (await searchListed(runtime, room));
|
|
81
|
+
}
|
|
82
|
+
export async function queriedHouse(runtime, input, reach, options) {
|
|
83
|
+
const { socket } = runtime;
|
|
84
|
+
const query = socket.queryHouse();
|
|
85
|
+
if (query === undefined)
|
|
86
|
+
return undeclared('queryHouse');
|
|
87
|
+
const asked = houseQueryOf(input, options, reach);
|
|
88
|
+
await socket.ready;
|
|
89
|
+
if (!(await queriedHere(runtime, reach, asked.room))) {
|
|
90
|
+
return (await heldHere(runtime, reach, asked.room))
|
|
91
|
+
? HELD_ON_DEVICE
|
|
92
|
+
: failure({ kind: 'room-not-readable', locator: asked.room });
|
|
93
|
+
}
|
|
94
|
+
if (await offline(runtime))
|
|
95
|
+
return OFFLINE;
|
|
96
|
+
const answer = await askedOnline(runtime, (authorization) => query(authorization, asked));
|
|
97
|
+
if (answer === null)
|
|
98
|
+
return UNCERTAIN;
|
|
99
|
+
return answer.kind === 'rows' || answer.kind === 'groups' || answer.kind === 'rejected'
|
|
100
|
+
? answer
|
|
101
|
+
: failure(answer);
|
|
102
|
+
}
|
package/dist/identity.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ export declare function changeBatchIdentity(at?: number): string;
|
|
|
2
2
|
export declare function roomDraftRevision(): string;
|
|
3
3
|
export declare function chatDraftRevision(): string;
|
|
4
4
|
export declare function transferIdentity(): string;
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function attachmentLocalId(): string;
|
|
6
6
|
//# sourceMappingURL=identity.d.ts.map
|
package/dist/identity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,EAAE,GAAE,MAAmB,GAAG,MAAM,CAWnE;AAQD,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,EAAE,GAAE,MAAmB,GAAG,MAAM,CAWnE;AAQD,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
|
package/dist/identity.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,55 @@
|
|
|
1
|
-
export type { AcceptedMessage, AcceptedRoom, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, AttachRequest, AttachResult, AuthorityChange, Authorization,
|
|
1
|
+
export type { AcceptedMessage, AcceptedRoom, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, AttachRequest, AttachResult, AuthorityChange, Authorization, AttachmentCopy, AttachmentCopy as BinaryCopy, Attachment, AttachmentLinkResult, AttachmentLinkResult as BinaryLinkResult, AttachmentRequest, AttachmentRequest as BinaryRequest, AttachmentResult, AttachmentResult as BinaryResult, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, AppMemberAuthor, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, SavedFacts, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, BootstrapPart, NotReady, HeldRoom, KeyedRequest, AgentEnvironment, ConversationActivity, ListedAgent, ListedConversation, ListedOwner, ListedSpaceRef, RoomList, RoomListEntry, SpaceListEntry, MdModelIdentity, AppMember, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomChange, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, HeardRun, RunEvent, RunMarks, RunStream, HouseQueryAnswer, HouseQueryAsk, HouseQueryGroups, HouseQueryRows, SearchAnswer, SearchAsk, ServiceMode, ServiceModeSignal, TransportUncertainty, TurnOperation, TypedPath, TypedSelection, } from './adapter.js';
|
|
2
2
|
export type { Change, ChangeBatch, Precondition, RoomMove, WrittenBy } from './change.js';
|
|
3
|
+
export type { Written, WrittenDocument } from './overlay.js';
|
|
4
|
+
export { unreadDocuments } from './overlay.js';
|
|
3
5
|
export { heldFacts } from './conversation-row.js';
|
|
4
|
-
export type { ConversationAsk, ConversationHeld, ConversationLast, ConversationStart, } from './conversation-row.js';
|
|
5
|
-
export type { ChatDraft, ChatDraftSurface, ConversationAgent, ConversationAnswer, ConversationEntry, ConversationOptions, ConversationRead, ConversationState, ConversationSurface, ConversationView, RunningTurn, } from './conversation.js';
|
|
6
|
+
export type { ConversationAsk, ConversationHeld, ConversationLast, ConversationProposal, ConversationStart, } from './conversation-row.js';
|
|
7
|
+
export type { ChatDraft, ChatDraftSurface, ConversationAgent, ConversationAnswer, ConversationEntry, ConversationOptions, ConversationRead, ConversationSettings, ConversationState, ConversationSurface, ConversationView, RequestDecision, RunningTurn, } from './conversation.js';
|
|
6
8
|
export type { MdRuntimeOptions } from './connection.js';
|
|
9
|
+
export { PAGE_METADATA_WORDS } from './page-metadata.js';
|
|
7
10
|
export { writeRule, type WriteRefusal } from './declaration.js';
|
|
8
11
|
export type { HistoryQuery } from './actions.js';
|
|
9
12
|
export type { AppRoom, AppTypedSelection } from './listing.js';
|
|
10
13
|
export type { ConnectionRefusal, ConnectionRefusalCode } from './socket.js';
|
|
11
14
|
export type { MdRuntime, RoomSchemas } from './surface.js';
|
|
12
|
-
export type {
|
|
15
|
+
export type { AttachmentSurface, SavedParts, SavedRoomDraft, SaveResult } from './saves.js';
|
|
13
16
|
export type { Observation } from './observation.js';
|
|
14
17
|
export type { DayFigures, Figures, FiguresResult, RoomFigures } from './figures.js';
|
|
15
18
|
export type { HeldApp, Holdings, RoomDocuments } from './holdings.js';
|
|
16
19
|
export type { PresentationSurface, RoomDraftSurface } from './room-drafts.js';
|
|
17
|
-
export type { AttachAnswer, BinaryAnswer, BinaryLinkAnswer, CallResult, DownloadAnswer, Failure, HistoryAnswer, Offline, QueueEntry, Resolution, Submission, } from './outcome.js';
|
|
18
|
-
export
|
|
20
|
+
export type { AttachAnswer, AttachmentAnswer, AttachmentAnswer as BinaryAnswer, AttachmentLinkAnswer, AttachmentLinkAnswer as BinaryLinkAnswer, CallResult, ShownAnswer, ConversationAttachAnswer, DownloadAnswer, Failure, HistoryAnswer, Offline, QueueEntry, Resolution, Submission, } from './outcome.js';
|
|
21
|
+
export { attachmentBlob, attachmentBlob as blobOf, declaredType } from './outcome.js';
|
|
22
|
+
export type { AttachmentRecord } from './attachment.js';
|
|
19
23
|
export type { RuntimeError } from './failure.js';
|
|
20
|
-
export
|
|
24
|
+
export { refusalError } from './failure.js';
|
|
25
|
+
export type { ChangedPart, FieldValue, Marks, ReturnReason, RoomDraft, RoomDraftCreation, RoomDraftParts, RoomDraftWrite, TextParts, } from './room-draft.js';
|
|
21
26
|
export type { SaveRefusal } from './save.js';
|
|
22
27
|
export type { SearchFound, SearchHit, SearchRequest, SearchResult } from './search.js';
|
|
23
|
-
export {
|
|
28
|
+
export type { HouseQuery, HouseQueryOptions, HouseQueryResult } from './house-query.js';
|
|
29
|
+
export { keptFile, keptLines } from './chat-types.js';
|
|
24
30
|
export { FIGURES_DAY_MS } from './figures.js';
|
|
25
|
-
export { departure } from './change.js';
|
|
31
|
+
export { departure, isPart } from './change.js';
|
|
26
32
|
export { definitionsIn, selected } from './collection.js';
|
|
27
33
|
export { lineEnded, partsAfter, partsChanges } from './room-draft.js';
|
|
28
|
-
export { cutName, nameFrom
|
|
29
|
-
export { HISTORY_CONVERSATIONS,
|
|
34
|
+
export { cutName, nameFrom } from './name.js';
|
|
35
|
+
export { HISTORY_CONVERSATIONS, newChat } from './conversation.js';
|
|
30
36
|
export { contextFigure } from './context.js';
|
|
31
|
-
export {
|
|
37
|
+
export { runningWords } from './running.js';
|
|
38
|
+
export { turnLine, WORKING } from './parts.js';
|
|
32
39
|
export { changeBatchIdentity } from './identity.js';
|
|
33
40
|
export { paced, ROW_WEIGHT, stepped } from './turn.js';
|
|
34
|
-
export { authoredAt, covered } from './paths.js';
|
|
41
|
+
export { documentAt, documentAt as authoredAt, covered } from './paths.js';
|
|
35
42
|
export { untilAnswered } from './recovery.js';
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
43
|
+
export { selectorRewritten } from './selector.js';
|
|
44
|
+
export { createRetries, STEPS, retrying, Unanswered, uncertainError, type RetriedFailure, type Retries, type Step, } from './retried.js';
|
|
45
|
+
export { patching } from './shared.js';
|
|
46
|
+
export { acting, type Acting, type ActingRules, type Ended, type Lane, type LaneShown, type Send, } from './act-lanes.js';
|
|
47
|
+
export { expectation, expecting, type Descriptor, type Expectation, type Expected, type Expecting, } from './expectation.js';
|
|
39
48
|
export type { AppCode, HeldCode, RuntimeShell, UnsentKind, UnsentWork } from './durability.js';
|
|
49
|
+
export { leftToSend } from './durability.js';
|
|
40
50
|
export type { CodeAvailability, ConnectionAvailability, ConversationCoverage, Durability, HouseOutcome, Installation, InstallationAmount, InstallationStep, Persistence, Readiness, ReadinessStatus, RoomCoverage, RoomPreparation, Space, TargetCoverage, } from './readiness.js';
|
|
41
51
|
export type { ObservedRead } from './reads.js';
|
|
52
|
+
export type { RunEntry, Runs } from './runs.js';
|
|
42
53
|
export type { AttentionEntry, SyncStatus } from './status.js';
|
|
43
54
|
export type { Direction, DocumentQuery, Filter, GroupKey, GroupOrder, GroupQuery, GroupSelect, Key, LocalQuery, OrderOptions, Predicate, Related, Select, Value, Where, } from '@agentshouse/mdmodel';
|
|
44
55
|
export type { Awaits, Backlink, CoveredRoom, DocumentResult, GroupResult, GroupTotal, PendingResult, PendingRoom, QueryCoverage, QueryDocument, QueryGroup, QueryResult, QueryRows, } from './query.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,UAAU,EACV,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,cAAc,EACd,cAAc,IAAI,UAAU,EAC5B,UAAU,EACV,oBAAoB,EACpB,oBAAoB,IAAI,gBAAgB,EACxC,iBAAiB,EACjB,iBAAiB,IAAI,aAAa,EAClC,gBAAgB,EAChB,gBAAgB,IAAI,YAAY,EAChC,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,EACf,SAAS,EACT,MAAM,EACN,eAAe,EACf,cAAc,EACd,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,eAAe,EACf,UAAU,EACV,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,oBA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,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,YAAY,EACV,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,eAAe,EACf,YAAY,EACZ,eAAe,EACf,KAAK,EACL,cAAc,GACf,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAChD,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9D,YAAY,EACV,SAAS,EACT,aAAa,EACb,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,WAAW,EACX,GAAG,EACH,UAAU,EACV,YAAY,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,GACN,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,MAAM,EACN,QAAQ,EACR,WAAW,EACX,cAAc,EACd,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,MAAM,EACN,aAAa,EACb,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,18 +1,26 @@
|
|
|
1
|
+
export { unreadDocuments } from './overlay.js';
|
|
1
2
|
export { heldFacts } from './conversation-row.js';
|
|
3
|
+
export { PAGE_METADATA_WORDS } from './page-metadata.js';
|
|
2
4
|
export { writeRule } from './declaration.js';
|
|
3
|
-
export {
|
|
5
|
+
export { attachmentBlob, attachmentBlob as blobOf, declaredType } from './outcome.js';
|
|
6
|
+
export { refusalError } from './failure.js';
|
|
7
|
+
export { keptFile, keptLines } from './chat-types.js';
|
|
4
8
|
export { FIGURES_DAY_MS } from './figures.js';
|
|
5
|
-
export { departure } from './change.js';
|
|
9
|
+
export { departure, isPart } from './change.js';
|
|
6
10
|
export { definitionsIn, selected } from './collection.js';
|
|
7
11
|
export { lineEnded, partsAfter, partsChanges } from './room-draft.js';
|
|
8
|
-
export { cutName, nameFrom
|
|
9
|
-
export { HISTORY_CONVERSATIONS,
|
|
12
|
+
export { cutName, nameFrom } from './name.js';
|
|
13
|
+
export { HISTORY_CONVERSATIONS, newChat } from './conversation.js';
|
|
10
14
|
export { contextFigure } from './context.js';
|
|
11
|
-
export {
|
|
15
|
+
export { runningWords } from './running.js';
|
|
16
|
+
export { turnLine, WORKING } from './parts.js';
|
|
12
17
|
export { changeBatchIdentity } from './identity.js';
|
|
13
18
|
export { paced, ROW_WEIGHT, stepped } from './turn.js';
|
|
14
|
-
export { authoredAt, covered } from './paths.js';
|
|
19
|
+
export { documentAt, documentAt as authoredAt, covered } from './paths.js';
|
|
15
20
|
export { untilAnswered } from './recovery.js';
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
21
|
+
export { selectorRewritten } from './selector.js';
|
|
22
|
+
export { createRetries, STEPS, retrying, Unanswered, uncertainError, } from './retried.js';
|
|
23
|
+
export { patching } from './shared.js';
|
|
24
|
+
export { acting, } from './act-lanes.js';
|
|
25
|
+
export { expectation, expecting, } from './expectation.js';
|
|
26
|
+
export { leftToSend } from './durability.js';
|
package/dist/install.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AdapterFailure, Authorization, DiscoveredRoom, NotReady, RetryableRefusal } from './adapter.js';
|
|
2
2
|
import { type Reads } from './bootstrap.js';
|
|
3
|
-
import type { Installation, RoomCoverage } from './readiness.js';
|
|
3
|
+
import type { Installation, InstallationAmount, RoomCoverage } from './readiness.js';
|
|
4
4
|
import { advancement, type Refresher } from './refresh.js';
|
|
5
5
|
import type { ReplicaRecord } from './replica.js';
|
|
6
6
|
import type { Runtime } from './runtime.js';
|
|
@@ -33,10 +33,15 @@ type Refreshed = {
|
|
|
33
33
|
kind: 'advanced';
|
|
34
34
|
}>;
|
|
35
35
|
export declare const ERASE_BATCH = 512;
|
|
36
|
-
export
|
|
36
|
+
export type InstallShare = {
|
|
37
|
+
readonly installing: boolean;
|
|
38
|
+
readonly downloading: boolean;
|
|
39
|
+
readonly bytes: InstallationAmount;
|
|
40
|
+
};
|
|
41
|
+
export declare function installShare(store: Store, { room, state }: RoomCoverage, held: ReadonlyMap<string, CoveredRoom>): InstallShare;
|
|
42
|
+
export declare function installationOf(installing: number, downloading: number, bytes: InstallationAmount): Installation;
|
|
37
43
|
export declare function roomInFlight(store: Store, locator: string): boolean;
|
|
38
|
-
export declare function sweep({ store, socket
|
|
39
|
-
export declare function forgetInstall(store: Store, locator: string): void;
|
|
44
|
+
export declare function sweep({ store, socket }: Runtime): void;
|
|
40
45
|
export declare function caughtUpTo(runtime: Runtime, locator: string): void;
|
|
41
46
|
export declare function catching(store: Store, locator: string): void;
|
|
42
47
|
export declare function standingAt(store: Store, locator: string, held: Pick<ReplicaRecord, 'key'> | undefined): Standing;
|
|
@@ -47,7 +52,7 @@ export declare function reachedBy({ store, socket }: Runtime, locator: string, r
|
|
|
47
52
|
export declare function behind({ store, socket }: Runtime, room: DiscoveredRoom): Promise<boolean>;
|
|
48
53
|
export declare function writtenAfter({ store, socket }: Runtime, locator: string, roomVersion: string, path: string): Promise<boolean>;
|
|
49
54
|
export declare function pullRefresh(runtime: Runtime, authorized: Authorization, record: ReplicaRecord, liveness: Live, hold: InstallHold, refresh: Refresher): Promise<Refreshed>;
|
|
50
|
-
export declare function pullBootstrap(runtime: Runtime, authorized: Authorization, room: DiscoveredRoom, local: RuntimeStore, liveness: Live, prior: ReplicaRecord | undefined, from?: Reads, unheld?: Unheld): Promise<import("./bootstrap.js").Bootstrapped | NotReady | import("./adapter.js").RevokedAuthorization | import("./adapter.js").RoomNotReadable | Unconfirmed | {
|
|
55
|
+
export declare function pullBootstrap(runtime: Runtime, authorized: Authorization, room: DiscoveredRoom, local: RuntimeStore, liveness: Live, prior: ReplicaRecord | undefined, from?: Reads, unheld?: Unheld): Promise<import("./bootstrap.js").Bootstrapped | NotReady | import("./adapter.js").RevokedAuthorization | import("./adapter.js").RoomNotReadable | import("./adapter.js").TransportUncertainty | Unconfirmed | {
|
|
51
56
|
readonly kind: 'transport-uncertainty';
|
|
52
57
|
} | RetryableRefusal | import("./adapter.js").ScopedRefusal>;
|
|
53
58
|
export declare function publish(runtime: Runtime, local: RuntimeStore, room: DiscoveredRoom, reached: ReplicaRecord, landing: Landing, live: Live): Promise<boolean>;
|
package/dist/install.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,cAAc,EACd,QAAQ,EACR,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAkC,KAAK,KAAK,EAAgB,MAAM,gBAAgB,CAAC;AAO1F,OAAO,KAAK,EACV,YAAY,
|
|
1
|
+
{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../src/install.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACb,cAAc,EACd,QAAQ,EACR,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAkC,KAAK,KAAK,EAAgB,MAAM,gBAAgB,CAAC;AAO1F,OAAO,KAAK,EACV,YAAY,EACZ,kBAAkB,EAElB,YAAY,EACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,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/dist/install.js
CHANGED
|
@@ -2,12 +2,11 @@ import { attachedModel } from './attached-model.js';
|
|
|
2
2
|
import { bootstrapRoom } from './bootstrap.js';
|
|
3
3
|
import { refusedForSpace } from './durability.js';
|
|
4
4
|
import { uncaught } from './failure.js';
|
|
5
|
-
import { name
|
|
5
|
+
import { name } from './listing.js';
|
|
6
6
|
import { NO_MODEL } from './model.js';
|
|
7
7
|
import { settle } from './queue.js';
|
|
8
8
|
import { advancement } from './refresh.js';
|
|
9
9
|
import { recoverReads } from './shown.js';
|
|
10
|
-
import { NO_INSTALL, } from './store.js';
|
|
11
10
|
import { unconfirmed } from './transfer.js';
|
|
12
11
|
import { ROW_WEIGHT, yielded } from './turn.js';
|
|
13
12
|
// Bytes still arriving are reported at most this often, so readiness is not rebuilt for every chunk the network hands over while a slow link still moves the figure.
|
|
@@ -80,28 +79,32 @@ function batchEnd(entries, from, bytes) {
|
|
|
80
79
|
}
|
|
81
80
|
return end;
|
|
82
81
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
bytes
|
|
100
|
-
|
|
101
|
-
|
|
82
|
+
const UNSHARED = {
|
|
83
|
+
installing: false,
|
|
84
|
+
downloading: false,
|
|
85
|
+
bytes: { done: 0, total: 0 },
|
|
86
|
+
};
|
|
87
|
+
export function installShare(store, { room, state }, held) {
|
|
88
|
+
if (state === 'unadmitted')
|
|
89
|
+
return UNSHARED;
|
|
90
|
+
const install = store.installs.of(room);
|
|
91
|
+
const underway = state === 'acquiring' || (install.installing && state !== 'complete');
|
|
92
|
+
const kept = underway ? NOTHING_HELD.bytes : (held.get(room)?.bytes ?? NOTHING_HELD.bytes);
|
|
93
|
+
const now = amountOf(install, kept);
|
|
94
|
+
const earlier = underway ? install.startedOver : null;
|
|
95
|
+
return {
|
|
96
|
+
installing: underway,
|
|
97
|
+
downloading: underway && (install.streaming || install.arrived === null),
|
|
98
|
+
bytes: {
|
|
99
|
+
done: Math.max(now.done, earlier?.done ?? 0),
|
|
100
|
+
total: Math.max(now.total, earlier?.total ?? 0),
|
|
101
|
+
},
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
export function installationOf(installing, downloading, bytes) {
|
|
102
105
|
const step = installing === 0
|
|
103
106
|
? null
|
|
104
|
-
: downloading
|
|
107
|
+
: downloading > 0
|
|
105
108
|
? 'downloading'
|
|
106
109
|
: bytes.done < bytes.total
|
|
107
110
|
? 'writing'
|
|
@@ -114,15 +117,15 @@ export function roomInFlight(store, locator) {
|
|
|
114
117
|
}
|
|
115
118
|
function installing(runtime, locator) {
|
|
116
119
|
runtime.store.installs.change(locator, (held) => ({ ...held, installing: true }));
|
|
117
|
-
runtime.store.readiness.queue();
|
|
120
|
+
runtime.store.readiness.queue([locator]);
|
|
118
121
|
}
|
|
119
122
|
function installed(runtime, locator) {
|
|
120
123
|
if (!runtime.store.installs.of(locator).installing)
|
|
121
124
|
return;
|
|
122
125
|
runtime.store.installs.change(locator, (held) => ({ ...held, installing: false }));
|
|
123
|
-
runtime.store.readiness.queue();
|
|
126
|
+
runtime.store.readiness.queue([locator]);
|
|
124
127
|
}
|
|
125
|
-
export function sweep({ store, socket
|
|
128
|
+
export function sweep({ store, socket }) {
|
|
126
129
|
if (store.device.now().sweeping || socket.closed())
|
|
127
130
|
return;
|
|
128
131
|
store.device.set({ sweeping: true });
|
|
@@ -133,7 +136,6 @@ export function sweep({ store, socket, journal }) {
|
|
|
133
136
|
}
|
|
134
137
|
}
|
|
135
138
|
catch (error) {
|
|
136
|
-
journal.record('erasure failed');
|
|
137
139
|
uncaught(error);
|
|
138
140
|
}
|
|
139
141
|
finally {
|
|
@@ -141,14 +143,11 @@ export function sweep({ store, socket, journal }) {
|
|
|
141
143
|
}
|
|
142
144
|
})();
|
|
143
145
|
}
|
|
144
|
-
export function forgetInstall(store, locator) {
|
|
145
|
-
store.installs.change(locator, ({ installing }) => ({ ...NO_INSTALL, installing }));
|
|
146
|
-
}
|
|
147
146
|
export function caughtUpTo(runtime, locator) {
|
|
148
147
|
if (!runtime.store.installs.of(locator).catching)
|
|
149
148
|
return;
|
|
150
149
|
runtime.store.installs.change(locator, (held) => ({ ...held, catching: false }));
|
|
151
|
-
recoverReads(runtime);
|
|
150
|
+
recoverReads(runtime, [locator]);
|
|
152
151
|
}
|
|
153
152
|
export function catching(store, locator) {
|
|
154
153
|
store.installs.change(locator, (held) => ({ ...held, catching: true }));
|
|
@@ -267,7 +266,7 @@ function refreshingOf(runtime, local, locator, key, composition, liveness, repla
|
|
|
267
266
|
export async function pullRefresh(runtime, authorized, record, liveness, hold, refresh) {
|
|
268
267
|
if (!liveness())
|
|
269
268
|
return unconfirmed;
|
|
270
|
-
const { store
|
|
269
|
+
const { store } = runtime;
|
|
271
270
|
const from = standingAt(store, record.locator, record);
|
|
272
271
|
const local = await store.open();
|
|
273
272
|
try {
|
|
@@ -281,11 +280,8 @@ export async function pullRefresh(runtime, authorized, record, liveness, hold, r
|
|
|
281
280
|
hold.take();
|
|
282
281
|
}
|
|
283
282
|
}, authorized, record, (models, kept) => (liveness() ? remodel(runtime, models, kept) : kept), liveness, refreshingOf(runtime, local, record.locator, record.key, store.composed(record), liveness, false, record.roomVersion));
|
|
284
|
-
if (result.kind !== 'advanced')
|
|
285
|
-
journal.record(`transfer refresh ${record.locator} ${result.kind}`);
|
|
283
|
+
if (result.kind !== 'advanced')
|
|
286
284
|
return result;
|
|
287
|
-
}
|
|
288
|
-
journal.record(`transfer refresh ${record.locator} ${result.record.roomVersion}`);
|
|
289
285
|
return {
|
|
290
286
|
kind: 'advanced',
|
|
291
287
|
record: result.record,
|
|
@@ -296,14 +292,14 @@ export async function pullRefresh(runtime, authorized, record, liveness, hold, r
|
|
|
296
292
|
catch (error) {
|
|
297
293
|
if (refusedForSpace(error))
|
|
298
294
|
return unconfirmed;
|
|
299
|
-
journal.record(`transfer refresh ${record.locator} transport-uncertainty`);
|
|
300
295
|
throw error;
|
|
301
296
|
}
|
|
302
297
|
}
|
|
303
298
|
async function abandoned(runtime, local, locator) {
|
|
304
299
|
await local.abandon(locator);
|
|
305
300
|
runtime.store.installs.change(locator, (held) => transferGone(setBack(held)));
|
|
306
|
-
recoverReads(runtime);
|
|
301
|
+
recoverReads(runtime, [locator]);
|
|
302
|
+
runtime.store.readiness.queue([locator]);
|
|
307
303
|
sweep(runtime);
|
|
308
304
|
}
|
|
309
305
|
function staging(runtime, local, liveness, unheld) {
|
|
@@ -317,7 +313,7 @@ function staging(runtime, local, liveness, unheld) {
|
|
|
317
313
|
if (done === null)
|
|
318
314
|
return false;
|
|
319
315
|
store.installs.change(locator, (held) => built(held, done.done, done.text));
|
|
320
|
-
runtime.store.readiness.queue();
|
|
316
|
+
runtime.store.readiness.queue([locator]);
|
|
321
317
|
if (done.done)
|
|
322
318
|
return true;
|
|
323
319
|
}
|
|
@@ -341,9 +337,9 @@ function staging(runtime, local, liveness, unheld) {
|
|
|
341
337
|
arrived: bytes,
|
|
342
338
|
streaming: true,
|
|
343
339
|
}));
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
340
|
+
const due = store.installs.arrivalsDue(locator, performance.now(), ARRIVAL_REPORT_MS);
|
|
341
|
+
if (due.length > 0)
|
|
342
|
+
runtime.store.readiness.queue(due);
|
|
347
343
|
},
|
|
348
344
|
end() {
|
|
349
345
|
if (ended)
|
|
@@ -352,7 +348,7 @@ function staging(runtime, local, liveness, unheld) {
|
|
|
352
348
|
if (!store.installs.of(locator).streaming)
|
|
353
349
|
return;
|
|
354
350
|
store.installs.change(locator, (held) => ({ ...held, streaming: false }));
|
|
355
|
-
runtime.store.readiness.queue();
|
|
351
|
+
runtime.store.readiness.queue([locator]);
|
|
356
352
|
},
|
|
357
353
|
};
|
|
358
354
|
},
|
|
@@ -380,7 +376,7 @@ function staging(runtime, local, liveness, unheld) {
|
|
|
380
376
|
underived: owed,
|
|
381
377
|
}));
|
|
382
378
|
installing(runtime, locator);
|
|
383
|
-
recoverReads(runtime);
|
|
379
|
+
recoverReads(runtime, [locator]);
|
|
384
380
|
if (owed < store.deriveBytes())
|
|
385
381
|
return held;
|
|
386
382
|
return (await derived(locator, key, composition)) ? held : null;
|
|
@@ -415,7 +411,8 @@ function staging(runtime, local, liveness, unheld) {
|
|
|
415
411
|
done: { bytes },
|
|
416
412
|
};
|
|
417
413
|
store.installs.change(locator, (room) => ({ ...room, transfer: held }));
|
|
418
|
-
recoverReads(runtime);
|
|
414
|
+
recoverReads(runtime, [locator]);
|
|
415
|
+
store.readiness.queue([locator]);
|
|
419
416
|
return { record: held, staged: parted };
|
|
420
417
|
},
|
|
421
418
|
derive: derived,
|
|
@@ -431,7 +428,8 @@ function staging(runtime, local, liveness, unheld) {
|
|
|
431
428
|
if (!liveness())
|
|
432
429
|
return;
|
|
433
430
|
store.installs.change(locator, (held) => transferGone(setBack(held)));
|
|
434
|
-
recoverReads(runtime);
|
|
431
|
+
recoverReads(runtime, [locator]);
|
|
432
|
+
store.readiness.queue([locator]);
|
|
435
433
|
},
|
|
436
434
|
release: (key) => store.exclusive(async () => {
|
|
437
435
|
await local.release(key);
|
|
@@ -442,23 +440,20 @@ function staging(runtime, local, liveness, unheld) {
|
|
|
442
440
|
export async function pullBootstrap(runtime, authorized, room, local, liveness, prior, from = runtime.socket.reads, unheld) {
|
|
443
441
|
if (!liveness())
|
|
444
442
|
return unconfirmed;
|
|
445
|
-
const { store
|
|
443
|
+
const { store } = runtime;
|
|
446
444
|
if (prior !== undefined) {
|
|
447
445
|
catching(store, room.locator);
|
|
448
|
-
recoverReads(runtime);
|
|
446
|
+
recoverReads(runtime, [room.locator]);
|
|
449
447
|
}
|
|
450
448
|
try {
|
|
451
449
|
const result = await bootstrapRoom(from, authorized, room, {
|
|
452
|
-
collection: prior?.model ?? runtime.
|
|
450
|
+
collection: prior?.model ?? runtime.presence.unheldModel(room.locator) ?? NO_MODEL,
|
|
453
451
|
}, runtime.builtIn, runtime.typedPaths, (models, held) => (liveness() ? remodel(runtime, models, held) : held), liveness, staging(runtime, local, liveness, unheld));
|
|
454
|
-
const detail = result.kind === 'staged' ? result.record.roomVersion : result.kind;
|
|
455
|
-
journal.record(`transfer bootstrap ${room.locator} ${detail}`);
|
|
456
452
|
if (result.kind === 'staged' &&
|
|
457
453
|
(await older(runtime, room.locator, result.record.roomVersion))) {
|
|
458
454
|
caughtUpTo(runtime, room.locator);
|
|
459
455
|
installed(runtime, room.locator);
|
|
460
456
|
await abandoned(runtime, local, room.locator);
|
|
461
|
-
journal.record(`transfer bootstrap ${room.locator} older than shown`);
|
|
462
457
|
return { kind: 'transport-uncertainty' };
|
|
463
458
|
}
|
|
464
459
|
if (result.kind !== 'staged') {
|
|
@@ -472,7 +467,6 @@ export async function pullBootstrap(runtime, authorized, room, local, liveness,
|
|
|
472
467
|
installed(runtime, room.locator);
|
|
473
468
|
if (refusedForSpace(error))
|
|
474
469
|
return unconfirmed;
|
|
475
|
-
journal.record(`transfer bootstrap ${room.locator} transport-uncertainty`);
|
|
476
470
|
throw error;
|
|
477
471
|
}
|
|
478
472
|
}
|
|
@@ -513,8 +507,10 @@ export function publish(runtime, local, room, reached, landing, live) {
|
|
|
513
507
|
...(landing.refreshed ? { refreshed: true } : {}),
|
|
514
508
|
},
|
|
515
509
|
after() {
|
|
510
|
+
runtime.presence.installed(room.locator, landing.kind === 'bootstrapped');
|
|
511
|
+
runtime.retries.succeeded('download', room.locator);
|
|
512
|
+
store.prepareAgain(room.locator);
|
|
516
513
|
if (landing.kind === 'bootstrapped') {
|
|
517
|
-
runtime.socket.rooms.readied(room.locator);
|
|
518
514
|
store.installs.change(room.locator, (held) => ({
|
|
519
515
|
...transferGone(held),
|
|
520
516
|
highest: null,
|
|
@@ -522,12 +518,10 @@ export function publish(runtime, local, room, reached, landing, live) {
|
|
|
522
518
|
startedOver: null,
|
|
523
519
|
catching: false,
|
|
524
520
|
}));
|
|
525
|
-
runtime.socket.rooms.stand(room.locator, { unheldModel: null });
|
|
526
521
|
if (prior !== undefined && prior.record.key !== record.key)
|
|
527
522
|
sweep(runtime);
|
|
528
523
|
void name(runtime, room.locator);
|
|
529
524
|
}
|
|
530
|
-
usable(runtime, room);
|
|
531
525
|
},
|
|
532
526
|
},
|
|
533
527
|
];
|
package/dist/lifecycle.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Runtime } from './runtime.js';
|
|
2
2
|
export declare function scheduleCurrency(runtime: Runtime): void;
|
|
3
3
|
export declare function spaceFreed(runtime: Runtime): void;
|
|
4
|
-
export declare function close({ store, socket, conversations, recovery, liveQueries, figures }: Runtime): void;
|
|
4
|
+
export declare function close({ store, socket, presence, conversations, recovery, liveQueries, figures, }: Runtime): void;
|
|
5
5
|
export declare function stop(runtime: Runtime): Promise<void>;
|
|
6
|
-
export declare function start(runtime: Runtime, signal: AbortSignal | undefined): void;
|
|
6
|
+
export declare function start(runtime: Runtime, signal: AbortSignal | undefined, onNeed: boolean): void;
|
|
7
7
|
//# sourceMappingURL=lifecycle.d.ts.map
|
package/dist/lifecycle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../src/lifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../src/lifecycle.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA6O5C,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,QAOhD;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,OAAO,QAQ1C;AAED,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,MAAM,EACN,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,WAAW,EACX,OAAO,GACR,EAAE,OAAO,QAST;AAED,wBAAsB,IAAI,CAAC,OAAO,EAAE,OAAO,iBAS1C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAG,SAAS,EAAE,MAAM,EAAE,OAAO,QA0CvF"}
|