@agentshouse/mdruntime 0.1.0-c49444f2a8fc6 → 0.1.0-c4c5934c45f21
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 +8 -8
- package/dist/acceptance.d.ts +3 -0
- package/dist/acceptance.d.ts.map +1 -0
- package/dist/acceptance.js +308 -0
- package/dist/act-lanes.d.ts +33 -0
- package/dist/act-lanes.d.ts.map +1 -0
- package/dist/act-lanes.js +177 -0
- package/dist/actions.d.ts +20 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +251 -0
- package/dist/adapter.d.ts +31 -44
- package/dist/adapter.d.ts.map +1 -1
- package/dist/bootstrap.d.ts +1 -1
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +6 -18
- package/dist/cell.d.ts +6 -0
- package/dist/cell.d.ts.map +1 -0
- package/dist/cell.js +9 -0
- package/dist/change-set.d.ts +4 -0
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +6 -0
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +4 -2
- package/dist/chat-types.d.ts +5 -0
- package/dist/chat-types.d.ts.map +1 -0
- package/dist/chat-types.js +13 -0
- package/dist/client.d.ts +19 -13
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +30 -14
- package/dist/collection.d.ts +22 -4
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +12 -2
- package/dist/compile.d.ts +5 -0
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +200 -75
- package/dist/connection.d.ts +5 -143
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +104 -5308
- package/dist/conversation-live.d.ts +136 -0
- package/dist/conversation-live.d.ts.map +1 -0
- package/dist/conversation-live.js +249 -0
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +7 -1
- package/dist/conversation.d.ts +43 -44
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +906 -1024
- package/dist/declaration.d.ts +10 -0
- package/dist/declaration.d.ts.map +1 -0
- package/dist/declaration.js +24 -0
- package/dist/discovery.d.ts +10 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +148 -0
- package/dist/durability.d.ts +9 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/expectation.d.ts +4 -2
- package/dist/expectation.d.ts.map +1 -1
- package/dist/expectation.js +33 -11
- package/dist/failure.d.ts +1 -0
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +3 -0
- package/dist/figures.d.ts +49 -0
- package/dist/figures.d.ts.map +1 -0
- package/dist/figures.js +197 -0
- package/dist/holdings.d.ts +29 -0
- package/dist/holdings.d.ts.map +1 -0
- package/dist/holdings.js +95 -0
- package/dist/host.d.ts +18 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +45 -12
- package/dist/index.d.ts +22 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/install.d.ts +54 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +538 -0
- package/dist/lifecycle.d.ts +7 -0
- package/dist/lifecycle.d.ts.map +1 -0
- package/dist/lifecycle.js +272 -0
- package/dist/listing.d.ts +48 -0
- package/dist/listing.d.ts.map +1 -0
- package/dist/listing.js +139 -0
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +3 -3
- package/dist/locks.d.ts +7 -0
- package/dist/locks.d.ts.map +1 -0
- package/dist/locks.js +33 -0
- package/dist/log.d.ts +1 -0
- package/dist/log.d.ts.map +1 -1
- package/dist/lost.d.ts +5 -0
- package/dist/lost.d.ts.map +1 -0
- package/dist/lost.js +50 -0
- package/dist/media.d.ts +1 -1
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +4 -4
- package/dist/memory.d.ts +4 -2
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +38 -20
- package/dist/messages.d.ts +1 -4
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +14 -32
- package/dist/model.d.ts +0 -1
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +0 -5
- package/dist/models.d.ts +10 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +156 -0
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +12 -17
- package/dist/opened.d.ts +1 -1
- package/dist/opened.d.ts.map +1 -1
- package/dist/opened.js +5 -5
- package/dist/opening.d.ts +4 -0
- package/dist/opening.d.ts.map +1 -0
- package/dist/opening.js +59 -0
- package/dist/outcome.d.ts +4 -1
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +3 -0
- package/dist/overlay.d.ts +2 -1
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +32 -21
- 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 +3 -51
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +14 -111
- package/dist/paths.d.ts +1 -0
- package/dist/paths.d.ts.map +1 -1
- package/dist/paths.js +22 -0
- package/dist/preparation.d.ts +20 -0
- package/dist/preparation.d.ts.map +1 -0
- package/dist/preparation.js +233 -0
- package/dist/presence.d.ts +52 -0
- package/dist/presence.d.ts.map +1 -0
- package/dist/presence.js +220 -0
- package/dist/queries.d.ts +16 -0
- package/dist/queries.d.ts.map +1 -0
- package/dist/queries.js +270 -0
- package/dist/query.d.ts +10 -1
- package/dist/query.d.ts.map +1 -1
- package/dist/questions.d.ts +2 -0
- package/dist/questions.d.ts.map +1 -1
- package/dist/questions.js +5 -1
- package/dist/queue.d.ts +40 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +455 -0
- package/dist/reach.d.ts +3 -1
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +38 -8
- package/dist/react.d.ts +18 -1
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +15 -1
- package/dist/readiness.d.ts +0 -1
- package/dist/readiness.d.ts.map +1 -1
- package/dist/reads.d.ts +37 -0
- package/dist/reads.d.ts.map +1 -0
- package/dist/reads.js +174 -0
- package/dist/refresh.js +2 -2
- package/dist/refusal.d.ts +5 -0
- package/dist/refusal.d.ts.map +1 -0
- package/dist/refusal.js +57 -0
- package/dist/replica.d.ts +5 -13
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +15 -16
- package/dist/room-draft.d.ts +4 -6
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +36 -52
- package/dist/room-drafts.d.ts +24 -0
- package/dist/room-drafts.d.ts.map +1 -0
- package/dist/room-drafts.js +217 -0
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +3 -4
- package/dist/runtime.d.ts +34 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +1 -0
- package/dist/save.d.ts +41 -86
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +232 -112
- package/dist/saves.d.ts +32 -0
- package/dist/saves.d.ts.map +1 -0
- package/dist/saves.js +413 -0
- package/dist/seed.d.ts +11 -2
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +71 -1
- package/dist/shared.d.ts +1 -6
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +13 -95
- package/dist/shown.d.ts +32 -0
- package/dist/shown.d.ts.map +1 -0
- package/dist/shown.js +290 -0
- package/dist/socket/admission.d.ts +7 -0
- package/dist/socket/admission.d.ts.map +1 -0
- package/dist/socket/admission.js +39 -0
- package/dist/socket/answers.d.ts +6 -0
- package/dist/socket/answers.d.ts.map +1 -0
- package/dist/socket/answers.js +20 -0
- package/dist/socket/lanes.d.ts +20 -0
- package/dist/socket/lanes.d.ts.map +1 -0
- package/dist/socket/lanes.js +77 -0
- package/dist/socket/reads.d.ts +10 -0
- package/dist/socket/reads.d.ts.map +1 -0
- package/dist/socket/reads.js +31 -0
- package/dist/socket/session.d.ts +38 -0
- package/dist/socket/session.d.ts.map +1 -0
- package/dist/socket/session.js +23 -0
- package/dist/socket.d.ts +67 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +170 -0
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +5 -4
- package/dist/store/installs.d.ts +30 -0
- package/dist/store/installs.d.ts.map +1 -0
- package/dist/store/installs.js +34 -0
- package/dist/store/readiness.d.ts +10 -0
- package/dist/store/readiness.d.ts.map +1 -0
- package/dist/store/readiness.js +52 -0
- package/dist/store/records.d.ts +212 -0
- package/dist/store/records.d.ts.map +1 -0
- package/dist/store/records.js +430 -0
- package/dist/store/room-held.d.ts +8 -0
- package/dist/store/room-held.d.ts.map +1 -0
- package/dist/store/room-held.js +17 -0
- package/dist/store/space.d.ts +11 -0
- package/dist/store/space.d.ts.map +1 -0
- package/dist/store/space.js +41 -0
- package/dist/store/watchers.d.ts +17 -0
- package/dist/store/watchers.d.ts.map +1 -0
- package/dist/store/watchers.js +56 -0
- package/dist/store/writes.d.ts +24 -0
- package/dist/store/writes.d.ts.map +1 -0
- package/dist/store/writes.js +125 -0
- package/dist/store.d.ts +112 -204
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +158 -394
- package/dist/stored.d.ts +1 -1
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +28 -14
- package/dist/surface.d.ts +88 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +223 -0
- package/dist/sync.d.ts +19 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +521 -0
- package/dist/tables.d.ts +32 -8
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +43 -12
- package/dist/tallies.d.ts +18 -0
- package/dist/tallies.d.ts.map +1 -0
- package/dist/tallies.js +129 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +2 -2
- package/dist/wire.d.ts +48 -5
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +16 -3
- package/package.json +3 -2
- package/dist/attempt.d.ts +0 -16
- package/dist/attempt.d.ts.map +0 -1
- package/dist/attempt.js +0 -70
- package/dist/job.d.ts +0 -33
- package/dist/job.d.ts.map +0 -1
- package/dist/job.js +0 -54
package/dist/queries.js
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { identityOf } from '@agentshouse/mdmodel';
|
|
2
|
+
import { ROOM_TOTALS } from './figures.js';
|
|
3
|
+
import { roomInFlight } from './install.js';
|
|
4
|
+
import { roomFacts } from './listing.js';
|
|
5
|
+
import { lockedRooms } from './locks.js';
|
|
6
|
+
import { OFFLINE, UNCERTAIN, failure } from './outcome.js';
|
|
7
|
+
import { connectionNow, prepare, roomsOfReach } from './preparation.js';
|
|
8
|
+
import { planWithin, } from './query.js';
|
|
9
|
+
import { planReach } from './reach.js';
|
|
10
|
+
import { refuse } from './refusal.js';
|
|
11
|
+
import { documentKey } from './rows.js';
|
|
12
|
+
import { searchPlanOf } from './search.js';
|
|
13
|
+
import { seedApplies, seededResult, watchSeeded } from './seed.js';
|
|
14
|
+
import { capped, MAXIMUM_WINDOW } from './windows.js';
|
|
15
|
+
const QUERY_BYTES = 1 << 20;
|
|
16
|
+
function everyRoom({ presence }, held) {
|
|
17
|
+
return [
|
|
18
|
+
...new Set([
|
|
19
|
+
...presence.rooms().map(({ locator }) => locator),
|
|
20
|
+
...held.rooms.keys(),
|
|
21
|
+
...held.queues.keys(),
|
|
22
|
+
]),
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
function reachedRooms(runtime, plan, held) {
|
|
26
|
+
const reached = plan.reach === null ? null : roomsOfReach(plan.reach);
|
|
27
|
+
const named = plan.rooms ?? (reached === null ? everyRoom(runtime, held) : [...reached]);
|
|
28
|
+
return [...new Set(named)]
|
|
29
|
+
.filter((locator) => (reached === null || reached.has(locator)) && !plan.locked.includes(locator))
|
|
30
|
+
.sort();
|
|
31
|
+
}
|
|
32
|
+
function awaited({ socket, presence }, locator) {
|
|
33
|
+
return (!socket.session.now().roomsListed || presence.room(locator)?.replica.admission === 'admitted');
|
|
34
|
+
}
|
|
35
|
+
function coveredRooms(runtime, locators, whole, held) {
|
|
36
|
+
const { store, socket } = runtime;
|
|
37
|
+
if (locators.length === 0 && whole && !socket.session.now().roomsListed)
|
|
38
|
+
return { pending: [] };
|
|
39
|
+
const pending = [];
|
|
40
|
+
const coverage = [];
|
|
41
|
+
const overlay = [];
|
|
42
|
+
const read = [];
|
|
43
|
+
for (const locator of locators) {
|
|
44
|
+
const replica = held.rooms.get(locator);
|
|
45
|
+
if (replica === undefined) {
|
|
46
|
+
if (awaited(runtime, locator))
|
|
47
|
+
pending.push({ room: locator, awaits: 'acquisition' });
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
if (!replica.indexed) {
|
|
51
|
+
pending.push({ room: locator, awaits: 'preparation' });
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
coverage.push({
|
|
55
|
+
room: locator,
|
|
56
|
+
generation: replica.transfer,
|
|
57
|
+
current: !roomInFlight(store, locator),
|
|
58
|
+
});
|
|
59
|
+
read.push({ locator, key: replica.key });
|
|
60
|
+
for (const id of held.queues.get(locator) ?? [])
|
|
61
|
+
overlay.push(id);
|
|
62
|
+
}
|
|
63
|
+
if (pending.length > 0)
|
|
64
|
+
return { pending };
|
|
65
|
+
return { coverage: { rooms: coverage, overlay }, rooms: read };
|
|
66
|
+
}
|
|
67
|
+
function covered(runtime, plan, held) {
|
|
68
|
+
return coveredRooms(runtime, reachedRooms(runtime, plan, held), plan.rooms === null && plan.reach === null, held);
|
|
69
|
+
}
|
|
70
|
+
function awaitPreparation(runtime, cover) {
|
|
71
|
+
if (!('pending' in cover))
|
|
72
|
+
return;
|
|
73
|
+
const waiting = cover.pending.filter(({ awaits }) => awaits === 'preparation');
|
|
74
|
+
if (waiting.length > 0) {
|
|
75
|
+
prepare(runtime, waiting.map(({ room }) => room));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export async function figuresCover(runtime) {
|
|
79
|
+
const held = await runtime.store.covering();
|
|
80
|
+
const locked = await lockedRooms(runtime);
|
|
81
|
+
const cover = coveredRooms(runtime, everyRoom(runtime, held)
|
|
82
|
+
.filter((locator) => !locked.includes(locator))
|
|
83
|
+
.sort(), true, held);
|
|
84
|
+
awaitPreparation(runtime, cover);
|
|
85
|
+
return 'pending' in cover ? cover : { rooms: cover.rooms };
|
|
86
|
+
}
|
|
87
|
+
function sameCover(left, right) {
|
|
88
|
+
return JSON.stringify(left) === JSON.stringify(right);
|
|
89
|
+
}
|
|
90
|
+
async function windowRows(local, plan, rooms, unchanged) {
|
|
91
|
+
const first = await local.query(plan, rooms, QUERY_BYTES);
|
|
92
|
+
if (first.more === undefined || !('documents' in first)) {
|
|
93
|
+
const { more: _more, ...rows } = first;
|
|
94
|
+
return rows;
|
|
95
|
+
}
|
|
96
|
+
const documents = [...first.documents];
|
|
97
|
+
for (let more = first.more; more !== undefined;) {
|
|
98
|
+
if (!unchanged())
|
|
99
|
+
return null;
|
|
100
|
+
const page = await local.query({
|
|
101
|
+
...plan,
|
|
102
|
+
after: { text: more, values: JSON.parse(more) },
|
|
103
|
+
limit: plan.limit === null ? null : plan.limit - documents.length,
|
|
104
|
+
total: false,
|
|
105
|
+
}, rooms, QUERY_BYTES);
|
|
106
|
+
if (!('documents' in page))
|
|
107
|
+
return null;
|
|
108
|
+
documents.push(...page.documents);
|
|
109
|
+
more = page.more;
|
|
110
|
+
if (more === undefined) {
|
|
111
|
+
return {
|
|
112
|
+
documents,
|
|
113
|
+
...(page.next === undefined ? {} : { next: page.next }),
|
|
114
|
+
...(first.total === undefined ? {} : { total: first.total }),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return null;
|
|
119
|
+
}
|
|
120
|
+
async function coveredRows({ store }, plan, cover) {
|
|
121
|
+
for (;;) {
|
|
122
|
+
const before = await cover();
|
|
123
|
+
if ('pending' in before)
|
|
124
|
+
return { pending: before };
|
|
125
|
+
const local = await store.open();
|
|
126
|
+
const keys = before.rooms.map(({ key }) => key);
|
|
127
|
+
const changes = local.changes(keys);
|
|
128
|
+
const current = () => local.changes(keys) === changes;
|
|
129
|
+
const rows = await windowRows(local, plan, before.rooms, current);
|
|
130
|
+
const after = await cover();
|
|
131
|
+
if (rows !== null && sameCover(before, after))
|
|
132
|
+
return { rows, cover: before, current };
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
function keyedOf(rows, coverage) {
|
|
136
|
+
if ('groups' in rows) {
|
|
137
|
+
return {
|
|
138
|
+
result: { ...rows, coverage },
|
|
139
|
+
keys: rows.groups.map((group) => JSON.stringify(group.key)),
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
return {
|
|
143
|
+
result: { ...rows, coverage },
|
|
144
|
+
keys: rows.documents.map((document) => documentKey(document.room, document.path)),
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
export async function answeredPlan(runtime, plan, cover) {
|
|
148
|
+
const answered = await coveredRows(runtime, plan, cover);
|
|
149
|
+
if ('pending' in answered) {
|
|
150
|
+
const pending = answered.pending;
|
|
151
|
+
return { result: pending, keys: [], current: () => true };
|
|
152
|
+
}
|
|
153
|
+
const held = answered.cover;
|
|
154
|
+
return { ...keyedOf(answered.rows, held.coverage), current: answered.current };
|
|
155
|
+
}
|
|
156
|
+
async function coverNow(runtime, plan) {
|
|
157
|
+
const cover = covered(runtime, plan, await runtime.store.covering());
|
|
158
|
+
awaitPreparation(runtime, cover);
|
|
159
|
+
return cover;
|
|
160
|
+
}
|
|
161
|
+
export async function rowsQuery(runtime, plan) {
|
|
162
|
+
const held = await runtime.store.covering();
|
|
163
|
+
const before = covered(runtime, plan, held);
|
|
164
|
+
awaitPreparation(runtime, before);
|
|
165
|
+
const seeded = seedApplies(runtime, plan, held);
|
|
166
|
+
if (seeded !== null)
|
|
167
|
+
return seededResult(seeded).result;
|
|
168
|
+
if ('pending' in before)
|
|
169
|
+
return before;
|
|
170
|
+
const answered = await coveredRows(runtime, plan, () => coverNow(runtime, plan));
|
|
171
|
+
if ('pending' in answered)
|
|
172
|
+
return answered.pending;
|
|
173
|
+
const shownCover = answered.cover;
|
|
174
|
+
return { ...answered.rows, coverage: shownCover.coverage };
|
|
175
|
+
}
|
|
176
|
+
export async function planned(runtime, input, reach) {
|
|
177
|
+
const plan = planWithin(input, await roomFacts(runtime, reach), planReach(reach));
|
|
178
|
+
const named = plan.paths !== null &&
|
|
179
|
+
plan.rooms !== null &&
|
|
180
|
+
plan.paths.length * plan.rooms.length <= MAXIMUM_WINDOW;
|
|
181
|
+
return plan.limit === null && named ? plan : { ...plan, limit: capped(plan.limit) };
|
|
182
|
+
}
|
|
183
|
+
export async function roomTallies(runtime, rooms, since) {
|
|
184
|
+
return runtime.store.ask({
|
|
185
|
+
kind: 'replica.tallies',
|
|
186
|
+
totals: { ...(await planned(runtime, ROOM_TOTALS, null)), limit: null },
|
|
187
|
+
rooms,
|
|
188
|
+
since,
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
export function watchPlan(runtime, plan, deliver, fail) {
|
|
192
|
+
return watchSeeded(runtime, plan, deliver, (behind, answered) => runtime.liveQueries.watch(plan, identityOf(plan), (held) => {
|
|
193
|
+
const cover = covered(runtime, plan, held);
|
|
194
|
+
awaitPreparation(runtime, cover);
|
|
195
|
+
return behind(cover, held);
|
|
196
|
+
}, answered, fail));
|
|
197
|
+
}
|
|
198
|
+
export function watchPlanned(runtime, planning, deliver, fail) {
|
|
199
|
+
let stop = null;
|
|
200
|
+
let stopped = false;
|
|
201
|
+
planning.then((plan) => {
|
|
202
|
+
if (!stopped)
|
|
203
|
+
stop = watchPlan(runtime, plan, deliver, fail);
|
|
204
|
+
}, (error) => {
|
|
205
|
+
if (!stopped)
|
|
206
|
+
fail(error);
|
|
207
|
+
});
|
|
208
|
+
return () => {
|
|
209
|
+
stopped = true;
|
|
210
|
+
stop?.();
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
export async function searched(runtime, input, reach) {
|
|
214
|
+
const { store, socket, journal } = runtime;
|
|
215
|
+
const { session } = socket;
|
|
216
|
+
const asked = searchPlanOf(input);
|
|
217
|
+
await socket.ready;
|
|
218
|
+
const search = socket.search();
|
|
219
|
+
if (search === undefined) {
|
|
220
|
+
return {
|
|
221
|
+
kind: 'undeclared',
|
|
222
|
+
code: 'action-undeclared',
|
|
223
|
+
fields: { name: 'search' },
|
|
224
|
+
retryable: false,
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
if (socket.closed() ||
|
|
228
|
+
session.now().refusal !== null ||
|
|
229
|
+
(await connectionNow(runtime)) !== 'connected')
|
|
230
|
+
return OFFLINE;
|
|
231
|
+
const reached = reach === null ? null : new Set(reach.rooms);
|
|
232
|
+
const named = asked.rooms === null
|
|
233
|
+
? reached === null
|
|
234
|
+
? null
|
|
235
|
+
: [...reached]
|
|
236
|
+
: asked.rooms.filter((room) => reached === null || reached.has(room));
|
|
237
|
+
const held = named === null ? null : await store.rooms(named);
|
|
238
|
+
const rooms = named === null ? null : named.filter((room) => held.has(room)).sort();
|
|
239
|
+
if (rooms !== null && rooms.length === 0)
|
|
240
|
+
return { kind: 'found', documents: [] };
|
|
241
|
+
try {
|
|
242
|
+
await socket.authorize();
|
|
243
|
+
}
|
|
244
|
+
catch {
|
|
245
|
+
return UNCERTAIN;
|
|
246
|
+
}
|
|
247
|
+
const { closed, authorization, refusal } = session.now();
|
|
248
|
+
if (closed || authorization === undefined || refusal !== null)
|
|
249
|
+
return UNCERTAIN;
|
|
250
|
+
journal.record('transfer search');
|
|
251
|
+
try {
|
|
252
|
+
const result = await search(authorization, { text: asked.text, rooms });
|
|
253
|
+
if (result.kind === 'revoked-authorization')
|
|
254
|
+
await refuse(runtime, 'revoked-authorization');
|
|
255
|
+
journal.record(`outcome search ${result.kind}`);
|
|
256
|
+
if (result.kind === 'rejected')
|
|
257
|
+
return result;
|
|
258
|
+
if (result.kind !== 'found')
|
|
259
|
+
return failure(result);
|
|
260
|
+
const kept = rooms === null ? null : new Set(rooms);
|
|
261
|
+
return {
|
|
262
|
+
kind: 'found',
|
|
263
|
+
documents: result.documents.filter((hit) => kept === null || kept.has(hit.room)),
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
catch {
|
|
267
|
+
journal.record('outcome search transport-uncertainty');
|
|
268
|
+
return UNCERTAIN;
|
|
269
|
+
}
|
|
270
|
+
}
|
package/dist/query.d.ts
CHANGED
|
@@ -20,10 +20,20 @@ export type QueryDocument = {
|
|
|
20
20
|
fileId?: string | null;
|
|
21
21
|
revision?: string | null;
|
|
22
22
|
binaryFile?: BinaryFileRecord;
|
|
23
|
+
size?: number | null;
|
|
24
|
+
created?: string | null;
|
|
25
|
+
};
|
|
26
|
+
export type GroupTotal = {
|
|
27
|
+
count: number;
|
|
28
|
+
size: number;
|
|
23
29
|
};
|
|
24
30
|
export type QueryGroup = {
|
|
25
31
|
key: readonly unknown[];
|
|
26
32
|
count: number;
|
|
33
|
+
documents?: GroupTotal;
|
|
34
|
+
files?: GroupTotal;
|
|
35
|
+
updated?: string | null;
|
|
36
|
+
greatest?: unknown;
|
|
27
37
|
};
|
|
28
38
|
export type CoveredRoom = {
|
|
29
39
|
room: string;
|
|
@@ -32,7 +42,6 @@ export type CoveredRoom = {
|
|
|
32
42
|
};
|
|
33
43
|
export type QueryCoverage = {
|
|
34
44
|
rooms: readonly CoveredRoom[];
|
|
35
|
-
indexes: readonly string[];
|
|
36
45
|
overlay: readonly string[];
|
|
37
46
|
};
|
|
38
47
|
export type Awaits = Open<'acquisition' | 'preparation' | 'unlock'>;
|
package/dist/query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../src/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,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AS,MAAM,EAAE,CAAC;IAC7B,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG;IAC7B,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,GAAE,SAAS,GAAG,IAAW,GAAG,IAAI,CAEjG"}
|
package/dist/questions.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export type ChatField = {
|
|
|
14
14
|
export type ChatAnswer = Readonly<Record<string, unknown>>;
|
|
15
15
|
export type ChatQuestion = {
|
|
16
16
|
readonly interaction: string;
|
|
17
|
+
readonly asked: string | null;
|
|
17
18
|
readonly secret: boolean;
|
|
18
19
|
readonly message: string;
|
|
19
20
|
readonly fields: readonly ChatField[];
|
|
@@ -24,6 +25,7 @@ export type ChatQuestion = {
|
|
|
24
25
|
export declare function entered(field: ChatField): boolean;
|
|
25
26
|
export declare function questionsOf(view: Pick<ConversationView, 'questions'> | null): readonly ChatQuestion[];
|
|
26
27
|
export declare function openQuestion(questions: readonly unknown[]): string | null;
|
|
28
|
+
export declare function questionAsked(questions: readonly unknown[]): string | null;
|
|
27
29
|
export type ChatLone = {
|
|
28
30
|
readonly question: ChatQuestion;
|
|
29
31
|
readonly field: ChatField;
|
package/dist/questions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../src/questions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,K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AAG,IAAI,CAKzE;AAED,wBAAgB,aAAa,CAAC,SAAS,EAAE,SAAS,OAAO,EAAE,GAAG,MAAM,GAAG,IAAI,CAE1E;AAED,MAAM,MAAM,QAAQ,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAC;AAEtF,wBAAgB,MAAM,CAAC,SAAS,EAAE,SAAS,YAAY,EAAE,GAAG,QAAQ,GAAG,IAAI,CAM1E"}
|
package/dist/questions.js
CHANGED
|
@@ -95,6 +95,7 @@ export function questionsOf(view) {
|
|
|
95
95
|
: [
|
|
96
96
|
{
|
|
97
97
|
interaction,
|
|
98
|
+
asked: text(one, 'asked_at'),
|
|
98
99
|
secret: one.secret === true,
|
|
99
100
|
undelivered: one.telegram_undelivered === true,
|
|
100
101
|
...asked,
|
|
@@ -109,8 +110,11 @@ export function openQuestion(questions) {
|
|
|
109
110
|
const said = asked.message === '' ? asked.fields[0]?.prompt : asked.message;
|
|
110
111
|
return said === undefined || said === '' ? null : excerpt(said);
|
|
111
112
|
}
|
|
113
|
+
export function questionAsked(questions) {
|
|
114
|
+
return questionsOf({ questions })[0]?.asked ?? null;
|
|
115
|
+
}
|
|
112
116
|
export function loneOf(questions) {
|
|
113
|
-
const asked = questions.length === 1 && !questions[0]
|
|
117
|
+
const asked = questions.length === 1 && !questions[0].secret ? questions[0] : undefined;
|
|
114
118
|
const only = asked?.fields.length === 1 ? asked.fields[0] : undefined;
|
|
115
119
|
return asked !== undefined && only !== undefined && entered(only)
|
|
116
120
|
? { question: asked, field: only }
|
package/dist/queue.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { MutationResult } from './adapter.js';
|
|
2
|
+
import { type ChangeBatch } from './change.js';
|
|
3
|
+
import { type HeldReplica, type ReplicaRecord, type Returned, type Slice } from './replica.js';
|
|
4
|
+
import type { Runtime } from './runtime.js';
|
|
5
|
+
import type { SavePlan } from './save.js';
|
|
6
|
+
import type { SaveResult } from './saves.js';
|
|
7
|
+
import type { PendingState, RoomCommit, Store, StoredFile, View, Work } from './store.js';
|
|
8
|
+
export type Queueing = Pick<Runtime, 'store' | 'journal' | 'localSaves'> & {
|
|
9
|
+
readonly socket: Pick<Runtime['socket'], 'continuing'>;
|
|
10
|
+
readonly presence: Pick<Runtime['presence'], 'lost'>;
|
|
11
|
+
};
|
|
12
|
+
export type Restand = {
|
|
13
|
+
readonly locator: string;
|
|
14
|
+
readonly record: ReplicaRecord;
|
|
15
|
+
readonly accepted?: string;
|
|
16
|
+
readonly adopted?: Returned;
|
|
17
|
+
readonly installed?: Pick<RoomCommit, 'published' | 'refreshed'>;
|
|
18
|
+
readonly refused?: true;
|
|
19
|
+
readonly after?: () => void;
|
|
20
|
+
};
|
|
21
|
+
export type Appending = {
|
|
22
|
+
readonly plan: SavePlan;
|
|
23
|
+
readonly files: readonly StoredFile[];
|
|
24
|
+
readonly held: ReadonlyMap<string, {
|
|
25
|
+
readonly replica: HeldReplica;
|
|
26
|
+
readonly confirmed: Slice;
|
|
27
|
+
}>;
|
|
28
|
+
readonly after?: () => Promise<void>;
|
|
29
|
+
};
|
|
30
|
+
type Answer = Extract<MutationResult, {
|
|
31
|
+
kind: 'conflicted' | 'rejected';
|
|
32
|
+
}>;
|
|
33
|
+
export declare function withdrawable(states: ReadonlyMap<string, PendingState>): (batch: ChangeBatch) => boolean;
|
|
34
|
+
export declare function sliceAt(store: Store, record: ReplicaRecord, view: View, queue: readonly ChangeBatch[], extra?: Iterable<string>, moved?: Iterable<string>): Promise<Slice>;
|
|
35
|
+
export declare function settle(runtime: Queueing, locators: readonly string[], decide: (held: ReadonlyMap<string, Work>) => Promise<readonly Restand[]>): Promise<void>;
|
|
36
|
+
export declare function answered(runtime: Queueing, locator: string, head: ChangeBatch, answer: Answer): Promise<void>;
|
|
37
|
+
export declare function unpair(runtime: Queueing): Promise<void>;
|
|
38
|
+
export declare function append(runtime: Queueing, appending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