@agentshouse/mdruntime 0.1.0-cf281e8224a5d → 0.1.0-cf4cf1851ebaa
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 +0 -3
- package/dist/acceptance.d.ts.map +1 -1
- package/dist/acceptance.js +72 -158
- 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 +142 -72
- package/dist/adapter.d.ts +120 -58
- 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 +0 -5
- package/dist/authored.d.ts +88 -0
- package/dist/authored.d.ts.map +1 -0
- package/dist/authored.js +345 -0
- package/dist/bootstrap.d.ts +1 -1
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +6 -19
- 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 +4 -0
- 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 +0 -2
- package/dist/client.d.ts +16 -20
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +41 -56
- package/dist/collection.d.ts +26 -4
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +28 -10
- 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 +2 -0
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +17 -5
- package/dist/connection.d.ts +1 -1
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +35 -26
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +28 -12
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +25 -12
- package/dist/conversation-row.d.ts +8 -1
- package/dist/conversation-row.d.ts.map +1 -1
- package/dist/conversation-row.js +20 -7
- package/dist/conversation.d.ts +37 -12
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +325 -234
- 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 +3 -1
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +47 -47
- 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 +5 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +14 -0
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +45 -16
- 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 +3 -0
- package/dist/failure.d.ts.map +1 -1
- package/dist/failure.js +8 -0
- package/dist/figures.d.ts.map +1 -1
- package/dist/figures.js +4 -2
- package/dist/file.d.ts +1 -1
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +3 -2
- package/dist/host.d.ts +23 -4
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +84 -19
- package/dist/house-query.d.ts +15 -0
- package/dist/house-query.d.ts.map +1 -0
- package/dist/house-query.js +43 -0
- package/dist/index.d.ts +20 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -7
- package/dist/install.d.ts +10 -6
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +92 -109
- package/dist/lifecycle.d.ts +2 -2
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +75 -53
- package/dist/listing.d.ts +29 -22
- package/dist/listing.d.ts.map +1 -1
- package/dist/listing.js +71 -79
- package/dist/live.d.ts +5 -3
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +74 -31
- package/dist/loaded.d.ts +5 -0
- package/dist/loaded.d.ts.map +1 -0
- package/dist/loaded.js +40 -0
- package/dist/locks.d.ts +2 -4
- package/dist/locks.d.ts.map +1 -1
- package/dist/locks.js +12 -39
- package/dist/lost.d.ts.map +1 -1
- package/dist/lost.js +11 -23
- package/dist/media.d.ts +18 -1
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +114 -24
- package/dist/memory.d.ts +9 -3
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +93 -32
- package/dist/messages.d.ts +12 -6
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +29 -27
- 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 +4 -3
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +6 -5
- package/dist/models.d.ts +4 -8
- package/dist/models.d.ts.map +1 -1
- package/dist/models.js +97 -139
- 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 +1 -1
- package/dist/opened.d.ts.map +1 -1
- package/dist/opened.js +2 -2
- package/dist/opening.d.ts.map +1 -1
- package/dist/opening.js +22 -10
- package/dist/outcome.d.ts +13 -1
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +32 -2
- package/dist/overlay.d.ts +6 -2
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +37 -24
- 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 -59
- package/dist/parts.d.ts.map +1 -1
- package/dist/parts.js +32 -122
- package/dist/preparation.d.ts +33 -7
- package/dist/preparation.d.ts.map +1 -1
- package/dist/preparation.js +210 -92
- 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 +85 -70
- 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 +40 -0
- package/dist/queue.d.ts.map +1 -0
- package/dist/queue.js +480 -0
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +177 -33
- package/dist/react.d.ts +11 -5
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +28 -5
- package/dist/readiness.d.ts +20 -4
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +17 -10
- package/dist/reads.d.ts +4 -2
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +11 -4
- package/dist/recovery.d.ts +4 -1
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +31 -8
- package/dist/refresh.js +2 -2
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +5 -5
- package/dist/replica.d.ts +5 -11
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +14 -16
- 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 +30 -5
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +270 -63
- package/dist/room-drafts.d.ts.map +1 -1
- package/dist/room-drafts.js +8 -5
- package/dist/room-list.d.ts +10 -0
- package/dist/room-list.d.ts.map +1 -0
- package/dist/room-list.js +45 -0
- package/dist/rows.d.ts +2 -1
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +9 -10
- package/dist/running.d.ts +5 -0
- package/dist/running.d.ts.map +1 -0
- package/dist/running.js +10 -0
- package/dist/runtime.d.ts +11 -19
- package/dist/runtime.d.ts.map +1 -1
- package/dist/save.d.ts +42 -90
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +326 -223
- package/dist/saves.d.ts +4 -40
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +142 -710
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +4 -4
- package/dist/shown.d.ts +9 -5
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +94 -60
- 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 +4 -6
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +4 -14
- package/dist/source.d.ts +5 -7
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +13 -2
- 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 +21 -6
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +59 -22
- 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 +25 -15
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +50 -18
- package/dist/stored.d.ts +32 -14
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +187 -51
- package/dist/surface.d.ts +12 -6
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +66 -34
- package/dist/sync.d.ts +4 -2
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +126 -101
- package/dist/tables.d.ts +16 -56
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +86 -327
- package/dist/tallies.d.ts.map +1 -1
- package/dist/tallies.js +1 -2
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +4 -10
- package/dist/wire.d.ts +66 -7
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +25 -9
- 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/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 -44
- 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
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,OAAO,EAAe,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACzE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC/E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js';
|
|
2
|
-
import {
|
|
3
|
+
import { pageMetadataBlock } from './page-metadata.js';
|
|
4
|
+
import { appRooms, observed } from './observation.js';
|
|
3
5
|
import { runtimeError } from './failure.js';
|
|
4
|
-
import {
|
|
6
|
+
import { blobOf, } from './outcome.js';
|
|
7
|
+
import { AUTHORIZATION_ENDED, PORT_CLOSED, wireAnswer, } from './wire.js';
|
|
5
8
|
// React renders an arrived value in a later task and opens what that render observes as it commits, so this many frames opening nothing mean the page drew what it observes.
|
|
6
9
|
const SETTLED_FRAMES = 2;
|
|
7
|
-
// A browser reads a download's address only after the click that hands it returns, so a copy's address is released a minute later.
|
|
8
|
-
const HANDED_COPY_MS = 60_000;
|
|
9
|
-
const PAGE = /\.html?$/iu;
|
|
10
|
-
const STARTED = { kind: 'started' };
|
|
11
|
-
const BLOCKED = {
|
|
12
|
-
kind: 'blocked',
|
|
13
|
-
code: 'popup-blocked',
|
|
14
|
-
fields: {},
|
|
15
|
-
retryable: true,
|
|
16
|
-
};
|
|
17
|
-
function handed(url, name) {
|
|
18
|
-
const anchor = document.createElement('a');
|
|
19
|
-
anchor.href = url;
|
|
20
|
-
anchor.download = name;
|
|
21
|
-
anchor.click();
|
|
22
|
-
}
|
|
23
10
|
function refused(refusal) {
|
|
24
11
|
return runtimeError(refusal.code);
|
|
25
12
|
}
|
|
@@ -36,13 +23,13 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
36
23
|
const send = (message) => {
|
|
37
24
|
port.postMessage(message);
|
|
38
25
|
};
|
|
39
|
-
function begin(id, topic, first) {
|
|
26
|
+
function begin(id, topic, input, first) {
|
|
40
27
|
const handle = observed(first, () => {
|
|
41
28
|
observations.delete(id);
|
|
42
29
|
if (refusal === null)
|
|
43
30
|
send({ kind: 'stop', id });
|
|
44
|
-
}, topic
|
|
45
|
-
observations.set(id, { topic, handle });
|
|
31
|
+
}, topic);
|
|
32
|
+
observations.set(id, { topic, input, handle });
|
|
46
33
|
return handle.observation;
|
|
47
34
|
}
|
|
48
35
|
function refuse(reported) {
|
|
@@ -54,7 +41,7 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
54
41
|
const failure = refused(reported);
|
|
55
42
|
for (const [id, waiting] of opening) {
|
|
56
43
|
if (waiting.topic === 'connection-refusal')
|
|
57
|
-
waiting.settle(begin(id, waiting.topic, reported));
|
|
44
|
+
waiting.settle(begin(id, waiting.topic, waiting.input, reported));
|
|
58
45
|
else
|
|
59
46
|
waiting.fail(failure);
|
|
60
47
|
}
|
|
@@ -80,7 +67,7 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
80
67
|
drawing?.();
|
|
81
68
|
}
|
|
82
69
|
port.addEventListener('message', (event) => {
|
|
83
|
-
const message =
|
|
70
|
+
const message = wireAnswer(event.data);
|
|
84
71
|
if (message === null)
|
|
85
72
|
return;
|
|
86
73
|
if (message.kind === 'refusal') {
|
|
@@ -89,7 +76,7 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
89
76
|
}
|
|
90
77
|
if (message.kind === 'ended') {
|
|
91
78
|
for (const { topic, handle } of observations.values()) {
|
|
92
|
-
if (topic === 'member')
|
|
79
|
+
if (topic === 'member' || topic === 'time-zone')
|
|
93
80
|
handle.receive(null);
|
|
94
81
|
}
|
|
95
82
|
end(runtimeError('authorization-ended', AUTHORIZATION_ENDED));
|
|
@@ -106,7 +93,7 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
106
93
|
waiting.fail(runtimeError(message.code, message.message, message.retryable));
|
|
107
94
|
}
|
|
108
95
|
else
|
|
109
|
-
waiting.settle(begin(message.id, waiting.topic, message.value));
|
|
96
|
+
waiting.settle(begin(message.id, waiting.topic, waiting.input, message.value));
|
|
110
97
|
drawing?.();
|
|
111
98
|
return;
|
|
112
99
|
}
|
|
@@ -142,11 +129,11 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
142
129
|
const id = (sequence += 1);
|
|
143
130
|
if (refusal !== null) {
|
|
144
131
|
return topic === 'connection-refusal'
|
|
145
|
-
? Promise.resolve(begin(id, topic, refusal))
|
|
132
|
+
? Promise.resolve(begin(id, topic, input, refusal))
|
|
146
133
|
: Promise.reject(refused(refusal));
|
|
147
134
|
}
|
|
148
135
|
return new Promise((settle, fail) => {
|
|
149
|
-
opening.set(id, { topic, settle, fail });
|
|
136
|
+
opening.set(id, { topic, input, settle, fail });
|
|
150
137
|
send({ kind: 'observe', id, topic, input });
|
|
151
138
|
drawing?.();
|
|
152
139
|
});
|
|
@@ -175,32 +162,13 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
175
162
|
return { kind: 'binary', stream, byteLength, mediaType };
|
|
176
163
|
}
|
|
177
164
|
async function download(room, path, revision) {
|
|
178
|
-
const
|
|
179
|
-
const linked = await ask('binaryFile.link', [room, path, revision]);
|
|
180
|
-
if (linked.kind === 'link' && PAGE.test(linked.name)) {
|
|
181
|
-
const away = tab ?? globalThis.open('', '_blank');
|
|
182
|
-
if (away === null)
|
|
183
|
-
return BLOCKED;
|
|
184
|
-
away.location.replace(linked.url);
|
|
185
|
-
return STARTED;
|
|
186
|
-
}
|
|
187
|
-
tab?.close();
|
|
188
|
-
if (linked.kind === 'link') {
|
|
189
|
-
handed(linked.url, linked.name);
|
|
190
|
-
return STARTED;
|
|
191
|
-
}
|
|
165
|
+
const linked = await handedLink(path, () => ask('binaryFile.link', [room, path, revision]));
|
|
192
166
|
if (linked.kind !== 'absent')
|
|
193
167
|
return linked;
|
|
194
168
|
const read = streamed(await ask('binaryFile.read', [room, path, revision]));
|
|
195
169
|
if (read.kind !== 'binary')
|
|
196
170
|
return read;
|
|
197
|
-
|
|
198
|
-
headers: { 'content-type': read.mediaType },
|
|
199
|
-
}).blob();
|
|
200
|
-
const url = URL.createObjectURL(copy);
|
|
201
|
-
handed(url, path.slice(path.lastIndexOf('/') + 1));
|
|
202
|
-
setTimeout(() => URL.revokeObjectURL(url), HANDED_COPY_MS);
|
|
203
|
-
return STARTED;
|
|
171
|
+
return handedCopy(await blobOf(read), path.slice(path.lastIndexOf('/') + 1));
|
|
204
172
|
}
|
|
205
173
|
function settled() {
|
|
206
174
|
if (settling !== null)
|
|
@@ -234,9 +202,10 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
234
202
|
const show = (room, path, revision) => ask('binaryFile.show', [room, path, revision]).then((shown) => streamed(shown));
|
|
235
203
|
return shownBy(show, {
|
|
236
204
|
buildFile,
|
|
237
|
-
rooms: () => ask('rooms', []),
|
|
205
|
+
rooms: () => ask('rooms', []).then(appRooms),
|
|
238
206
|
query: ((query) => ask('query', [query])),
|
|
239
207
|
search: (request) => ask('search', [request]),
|
|
208
|
+
queryHouse: (query) => ask('queryHouse', [query]),
|
|
240
209
|
types: (locator) => ask('types', [locator]),
|
|
241
210
|
roomDraft: {
|
|
242
211
|
list: () => ask('roomDraft.list', []),
|
|
@@ -256,14 +225,28 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
256
225
|
read: (conversation, options) => ask('conversation.read', [conversation, options]),
|
|
257
226
|
create: (input) => ask('conversation.create', [input]),
|
|
258
227
|
send: (conversation, operation, draft) => ask('conversation.send', [conversation, operation, draft]),
|
|
259
|
-
answer: (conversation, answer) => ask('conversation.answer', [conversation, answer]),
|
|
260
|
-
interrupt: (conversation) => ask('conversation.interrupt', [conversation]),
|
|
261
|
-
kill: (conversation) => ask('conversation.kill', [conversation]),
|
|
262
|
-
delete: (conversation) => ask('conversation.delete', [conversation]),
|
|
228
|
+
answer: (conversation, answer, operation) => ask('conversation.answer', [conversation, answer, operation]),
|
|
229
|
+
interrupt: (conversation, operation) => ask('conversation.interrupt', [conversation, operation]),
|
|
230
|
+
kill: (conversation, operation) => ask('conversation.kill', [conversation, operation]),
|
|
231
|
+
delete: (conversation, operation) => ask('conversation.delete', [conversation, operation]),
|
|
232
|
+
takeOut: (conversation, message, operation) => ask('conversation.takeOut', [conversation, message, operation]),
|
|
233
|
+
decide: (request, decision, operation) => ask('conversation.decide', [request, decision, operation]),
|
|
234
|
+
rename: (conversation, name, operation) => ask('conversation.rename', [conversation, name, operation]),
|
|
235
|
+
option: (conversation, option, value, operation) => ask('conversation.option', [conversation, option, value, operation]),
|
|
236
|
+
retry: (conversation, message, operation) => ask('conversation.retry', [conversation, message, operation]),
|
|
237
|
+
pin: (figures) => ask('conversation.pin', [figures]),
|
|
238
|
+
openTurn: (conversation, turn) => ask('conversation.openTurn', [conversation, turn]),
|
|
239
|
+
dismissSuggestion: (conversation, suggestion) => ask('conversation.dismissSuggestion', [conversation, suggestion]),
|
|
240
|
+
attach: (file) => ask('conversation.attach', [file]),
|
|
241
|
+
attachment: (link) => ask('conversation.attachment', [link]),
|
|
242
|
+
pageMetadata: async (app, address) => pageMetadataBlock(app, address, [...observations]
|
|
243
|
+
.sort(([left], [right]) => left - right)
|
|
244
|
+
.flatMap(([, { topic, input }]) => (topic === 'query' ? [input[0]] : []))),
|
|
263
245
|
},
|
|
264
246
|
chatDraft: {
|
|
265
247
|
write: (conversation, draft, revision) => ask('chatDraft.write', [conversation, draft, revision]),
|
|
266
248
|
prepend: (conversation, draft) => ask('chatDraft.prepend', [conversation, draft]),
|
|
249
|
+
append: (conversation, draft) => ask('chatDraft.append', [conversation, draft]),
|
|
267
250
|
discard: (conversation) => ask('chatDraft.discard', [conversation]),
|
|
268
251
|
},
|
|
269
252
|
history: (locator, path, query) => ask('history', [locator, path, query]),
|
|
@@ -274,12 +257,13 @@ export function connectMdRuntime(port, buildFile = UNBUILT) {
|
|
|
274
257
|
download,
|
|
275
258
|
},
|
|
276
259
|
call: (name, input) => ask('call', [name, input]),
|
|
260
|
+
answered: (operation) => ask('answered', [operation]),
|
|
277
261
|
reached: (locator, roomVersion, path) => ask('reached', [locator, roomVersion, path]),
|
|
278
|
-
log: () => ask('log', []),
|
|
279
262
|
persistence: () => ask('persistence', []),
|
|
280
263
|
retry: () => ask('retry', []),
|
|
281
264
|
cleanUp: () => ask('cleanUp', []),
|
|
282
265
|
unsent: () => ask('unsent', []),
|
|
266
|
+
sent: () => ask('sent', []),
|
|
283
267
|
reset: () => ask('reset', []),
|
|
284
268
|
readAgain: () => ask('readAgain', []),
|
|
285
269
|
observe: ((topic, ...input) => watch(topic, input)),
|
|
@@ -295,5 +279,6 @@ export function inTurn(client, work) {
|
|
|
295
279
|
}
|
|
296
280
|
export { chainedWindows } from './chain.js';
|
|
297
281
|
export { roomDraftRevision } from './identity.js';
|
|
298
|
-
export { defineRoomMedia, ROOM_MEDIA } from './media.js';
|
|
299
|
-
export {
|
|
282
|
+
export { defineRoomMedia, ROOM_MEDIA, viewFile } from './media.js';
|
|
283
|
+
export { shownModal } from './modal.js';
|
|
284
|
+
export { unanswered, undelivered } from './wire.js';
|
package/dist/collection.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { type Document, type TypedPath } from '@agentshouse/mdmodel';
|
|
2
|
-
import type { ModelState } from './model.js';
|
|
1
|
+
import { type DefinitionOf, type Document, type ParseResult, type TypedPath, type VerifiedModel } from '@agentshouse/mdmodel';
|
|
2
|
+
import type { ModelState, TypesResult } from './model.js';
|
|
3
|
+
import type { AppTypedSelection } from './listing.js';
|
|
3
4
|
import type { MdModelIdentity } from './adapter.js';
|
|
4
5
|
export declare const MD_MODEL: MdModelIdentity;
|
|
5
6
|
export type Collection = {
|
|
@@ -19,11 +20,32 @@ export type Composed = {
|
|
|
19
20
|
readonly composition: Composition;
|
|
20
21
|
readonly fingerprint: string;
|
|
21
22
|
};
|
|
23
|
+
export declare function typesPrint(types: VerifiedModel['types']): string;
|
|
22
24
|
export declare function composedOf(composition: Composition): Composed;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
+
type Selecting<M> = {
|
|
26
|
+
readonly model: M;
|
|
27
|
+
readonly selection: {
|
|
28
|
+
readonly roots: readonly string[];
|
|
29
|
+
readonly model: M;
|
|
30
|
+
} | null;
|
|
31
|
+
};
|
|
32
|
+
export declare function selected(composition: {
|
|
33
|
+
readonly selection: {
|
|
34
|
+
readonly roots: readonly string[];
|
|
35
|
+
} | null;
|
|
36
|
+
}, path: string): boolean;
|
|
37
|
+
export declare function governing<M>(composition: Selecting<M>, path: string): M;
|
|
38
|
+
export declare function definitionsAt(composition: Composition, path: string): DefinitionOf;
|
|
39
|
+
export declare function definitionsIn(room: {
|
|
40
|
+
readonly model: TypesResult;
|
|
41
|
+
readonly typedSelection: AppTypedSelection | null;
|
|
42
|
+
}, path: string, typedPaths: readonly TypedPath[]): DefinitionOf;
|
|
25
43
|
export declare function collectionOf(text: Readonly<Record<string, string>>, composition: Composition): Collection;
|
|
26
44
|
export declare function documentsOf(collection: Collection): Generator<number, Iterable<readonly [string, Document]>, void>;
|
|
27
45
|
export declare function validRoot(root: unknown): root is string;
|
|
46
|
+
export declare const UNTYPED = "any";
|
|
47
|
+
export declare function textType(read: ParseResult): string | undefined;
|
|
48
|
+
export declare function typedText(read: ParseResult): boolean;
|
|
28
49
|
export declare function available(composition: Composition): boolean;
|
|
50
|
+
export {};
|
|
29
51
|
//# sourceMappingURL=collection.d.ts.map
|
package/dist/collection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../src/collection.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../src/collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAIpD,eAAO,MAAM,QAAQ,EAAE,eAAwE,C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AAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAIvE;AAYD,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAIlF;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAAC,QAAQ,CAAC,cAAc,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAAE,EACxF,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,SAAS,SAAS,EAAE,GAC/B,YAAY,CAQd;AAED,wBAAgB,YAAY,CAC1B,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EACtC,WAAW,EAAE,WAAW,GACvB,UAAU,CAcZ;AAED,wBAAiB,WAAW,CAC1B,UAAU,EAAE,UAAU,GACrB,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAQhE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAEvD;AAED,eAAO,MAAM,OAAO,QAAQ,CAAC;AAE7B,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,GAAG,SAAS,CAE9D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAEpD;AAED,wBAAgB,SAAS,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,CAE3D"}
|
package/dist/collection.js
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import { parse, VERSION } from '@agentshouse/mdmodel';
|
|
1
|
+
import { definitionAt, parse, VERSION, } from '@agentshouse/mdmodel';
|
|
2
2
|
import { beneath, normalize } from './paths.js';
|
|
3
3
|
import { hashed } from './observation.js';
|
|
4
4
|
import { sortedKeys } from './shared.js';
|
|
5
5
|
export const MD_MODEL = { identity: '@agentshouse/mdmodel', version: VERSION };
|
|
6
6
|
const typesPrinted = new WeakMap();
|
|
7
|
-
function typesPrint(
|
|
8
|
-
|
|
9
|
-
return '';
|
|
10
|
-
let print = typesPrinted.get(model.types);
|
|
7
|
+
export function typesPrint(types) {
|
|
8
|
+
let print = typesPrinted.get(types);
|
|
11
9
|
if (print === undefined) {
|
|
12
|
-
print = hashed(JSON.stringify(
|
|
13
|
-
typesPrinted.set(
|
|
10
|
+
print = hashed(JSON.stringify(types)).toString(36);
|
|
11
|
+
typesPrinted.set(types, print);
|
|
14
12
|
}
|
|
15
13
|
return print;
|
|
16
14
|
}
|
|
15
|
+
function modelPrint(model) {
|
|
16
|
+
return model.status === 'unavailable' ? '' : typesPrint(model.types);
|
|
17
|
+
}
|
|
17
18
|
export function composedOf(composition) {
|
|
18
19
|
const { model, selection } = composition;
|
|
19
20
|
return {
|
|
20
21
|
composition,
|
|
21
22
|
fingerprint: JSON.stringify([
|
|
22
|
-
|
|
23
|
-
selection === null ? null : [selection.roots,
|
|
23
|
+
modelPrint(model),
|
|
24
|
+
selection === null ? null : [selection.roots, modelPrint(selection.model)],
|
|
24
25
|
]),
|
|
25
26
|
};
|
|
26
27
|
}
|
|
@@ -33,6 +34,16 @@ export function governing(composition, path) {
|
|
|
33
34
|
? composition.selection.model
|
|
34
35
|
: composition.model;
|
|
35
36
|
}
|
|
37
|
+
function definitionsUnder(composition, path, typedPaths, typesOf) {
|
|
38
|
+
const types = typesOf(governing(composition, path));
|
|
39
|
+
return types === null ? () => undefined : definitionAt({ types }, path, typedPaths);
|
|
40
|
+
}
|
|
41
|
+
export function definitionsAt(composition, path) {
|
|
42
|
+
return definitionsUnder(composition, path, composition.typedPaths, (model) => model.status === 'unavailable' ? null : model.types);
|
|
43
|
+
}
|
|
44
|
+
export function definitionsIn(room, path, typedPaths) {
|
|
45
|
+
return definitionsUnder({ model: room.model, selection: room.typedSelection }, path, typedPaths, ({ types }) => types === null ? null : Object.fromEntries(types.map((type) => [type.name, type])));
|
|
46
|
+
}
|
|
36
47
|
export function collectionOf(text, composition) {
|
|
37
48
|
const parsed = new Map();
|
|
38
49
|
return {
|
|
@@ -44,7 +55,7 @@ export function collectionOf(text, composition) {
|
|
|
44
55
|
const content = text[path];
|
|
45
56
|
if (content === undefined)
|
|
46
57
|
return undefined;
|
|
47
|
-
const read = parse(content, path);
|
|
58
|
+
const read = parse(content, path, definitionsAt(composition, path));
|
|
48
59
|
parsed.set(path, read.ok ? read.document : null);
|
|
49
60
|
return read.ok ? read.document : undefined;
|
|
50
61
|
},
|
|
@@ -63,6 +74,13 @@ export function* documentsOf(collection) {
|
|
|
63
74
|
export function validRoot(root) {
|
|
64
75
|
return typeof root === 'string' && normalize(root) === root;
|
|
65
76
|
}
|
|
77
|
+
export const UNTYPED = 'any';
|
|
78
|
+
export function textType(read) {
|
|
79
|
+
return read.ok ? (read.document.type ?? UNTYPED) : undefined;
|
|
80
|
+
}
|
|
81
|
+
export function typedText(read) {
|
|
82
|
+
return (textType(read) ?? UNTYPED) !== UNTYPED;
|
|
83
|
+
}
|
|
66
84
|
export function available(composition) {
|
|
67
85
|
return composition.model.status !== 'unavailable';
|
|
68
86
|
}
|
package/dist/column.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { Row, Value } from './tables.js';
|
|
2
|
+
export declare function text(value: Value | undefined): string;
|
|
3
|
+
export declare function texts(rows: readonly Row[], column: string): string[];
|
|
4
|
+
export declare function count(value: Value | undefined): number;
|
|
5
|
+
//# sourceMappingURL=column.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"column.d.ts","sourceRoot":"","sources":["../src/column.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,IAAI,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAErD;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,SAAS,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAEpE;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAEtD"}
|
package/dist/column.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export function text(value) {
|
|
2
|
+
return typeof value === 'string' ? value : String(value);
|
|
3
|
+
}
|
|
4
|
+
export function texts(rows, column) {
|
|
5
|
+
return rows.map((row) => text(row[column]));
|
|
6
|
+
}
|
|
7
|
+
export function count(value) {
|
|
8
|
+
return typeof value === 'bigint' ? Number(value) : typeof value === 'number' ? value : 0;
|
|
9
|
+
}
|
package/dist/compile.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { sql } from '@agentshouse/mdmodel';
|
|
2
|
+
import { type Composition } from './collection.js';
|
|
2
3
|
import type { Plan, QueryRows } from './query.js';
|
|
3
4
|
import type { Connection } from './tables.js';
|
|
4
5
|
export type QueryRoom = {
|
|
5
6
|
readonly locator: string;
|
|
6
7
|
readonly key: number;
|
|
8
|
+
readonly composition?: Composition;
|
|
7
9
|
};
|
|
8
10
|
type Fragment = sql.Fragment;
|
|
9
11
|
export declare const VISIBLE: (alias: string) => string;
|
package/dist/compile.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,GAAG,
|
|
1
|
+
{"version":3,"file":"compile.d.ts","sourceRoot":"","sources":["../src/compile.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,GAAG,EAQJ,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE3E,OAAO,KAAK,EAAE,IAAI,EAAuC,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvF,OAAO,KAAK,EAAE,UAAU,EAAc,MAAM,aAAa,CAAC;AAG1D,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,WAAW,CAAC,EAAE,WAAW,CAAC;CACpC,CAAC;AAEF,KAAK,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAI7B,eAAO,MAAM,OAAO,UAAW,MAAM,KAAG,MAAyD,CAAC;AAalG,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAM5D;AA2dD,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AA4ZjE,wBAAgB,WAAW,CACzB,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,MAAM,GAAE,MAAM,GAAG,IAAW,GAC3B,WAAW,CAUb"}
|
package/dist/compile.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ARRAY_INDEX, bodied, byCodePoint, compared, cursorOf, heldKind, parse, pointerSegments, sql, } from '@agentshouse/mdmodel';
|
|
2
2
|
import { binaryRecord } from './binary.js';
|
|
3
|
+
import { definitionsAt, UNTYPED } from './collection.js';
|
|
3
4
|
import { documentKey, pathOfKey, roomOfKey } from './rows.js';
|
|
4
5
|
import { FROM_START, MAXIMUM_WINDOW } from './windows.js';
|
|
5
6
|
const { all, any, exists, fragment, grouped, joined, listed } = sql;
|
|
6
|
-
export const VISIBLE = (alias) => `${alias}.visible = 1 AND ${alias}.present = 1
|
|
7
|
+
export const VISIBLE = (alias) => `${alias}.visible = 1 AND ${alias}.present = 1`;
|
|
7
8
|
function located(alias) {
|
|
8
9
|
return fragment(`(SELECT k.locator FROM replica_keys k WHERE k.key = ${alias}.key)`);
|
|
9
10
|
}
|
|
@@ -310,7 +311,16 @@ function sectionsOf(sections, names) {
|
|
|
310
311
|
return sections;
|
|
311
312
|
return Object.fromEntries(names.flatMap((name) => (Object.hasOwn(sections, name) ? [[name, sections[name]]] : [])));
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function freeParts(room, path, type, content) {
|
|
315
|
+
const definitions = room.composition === undefined ? undefined : definitionsAt(room.composition, path);
|
|
316
|
+
const definition = definitions?.(type === UNTYPED ? undefined : type);
|
|
317
|
+
if (definition === undefined && type !== UNTYPED)
|
|
318
|
+
return null;
|
|
319
|
+
const read = parse(content, path, definition);
|
|
320
|
+
return read.ok ? read.document : null;
|
|
321
|
+
}
|
|
322
|
+
function documentOf(shape, queried, row, linked) {
|
|
323
|
+
const room = queried.locator;
|
|
314
324
|
const path = row.path;
|
|
315
325
|
const type = row.type;
|
|
316
326
|
const fileId = row.file_id;
|
|
@@ -333,8 +343,9 @@ function documentOf(shape, room, row, linked) {
|
|
|
333
343
|
...heldFacts(shape, row),
|
|
334
344
|
};
|
|
335
345
|
}
|
|
336
|
-
const
|
|
337
|
-
|
|
346
|
+
const body = shape.sections !== null || shape.preamble
|
|
347
|
+
? freeParts(queried, path, type, row.content)
|
|
348
|
+
: null;
|
|
338
349
|
const fields = JSON.parse(row.fields ?? '{}');
|
|
339
350
|
return {
|
|
340
351
|
room,
|
|
@@ -428,8 +439,9 @@ function documents(connection, bound, plan, shape, budget) {
|
|
|
428
439
|
const kept = bodied(shape) ? withContent(connection, windowed, budget) : windowed;
|
|
429
440
|
const cut = kept.length;
|
|
430
441
|
const roomOf = new Map(bound.rooms.map(({ key, locator }) => [key, locator]));
|
|
442
|
+
const queried = new Map(bound.rooms.map((one) => [one.key, one]));
|
|
431
443
|
const linked = shape.backlinks ? backlinksOf(connection, bound, kept) : new Map();
|
|
432
|
-
const found = kept.map((row) => documentOf(shape,
|
|
444
|
+
const found = kept.map((row) => documentOf(shape, queried.get(Number(row.key)), row, linked));
|
|
433
445
|
const last = kept.at(-1);
|
|
434
446
|
const cursorAt = (row) => cursorOf([
|
|
435
447
|
...shape.orderBy.map(({ key }, index) => decodedKey(key, row, index)),
|
package/dist/connection.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export type MdRuntimeOptions = {
|
|
|
10
10
|
authorization?: Authorization;
|
|
11
11
|
signal?: AbortSignal;
|
|
12
12
|
recovery?: Recovery;
|
|
13
|
-
usableWhenHeld?: readonly string[];
|
|
14
13
|
build?: string;
|
|
14
|
+
storeOnNeed?: boolean;
|
|
15
15
|
};
|
|
16
16
|
export declare function composeRuntime(options: MdRuntimeOptions): ComposedRuntime;
|
|
17
17
|
//# sourceMappingURL=connection.d.ts.map
|
package/dist/connection.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../src/connection.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAsB,MAAM,cAAc,CAAC;AAI/E,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAUrE,OAAO,EAAkB,KAAK,QAAQ,EAAE,MAAM,eAAe,CAAC;AAK9D,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAGrE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,eAAe,CAAC;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAIF,wBAAgB,cAAc,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAsGzE"}
|
package/dist/connection.js
CHANGED
|
@@ -1,33 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { notReadyWaitMs } from '@agentshouse/mdmodel';
|
|
2
|
+
import { submitLater } from './acceptance.js';
|
|
2
3
|
import { invokeAction, called, readConversationHistory, resendLater } from './actions.js';
|
|
3
|
-
import { builtInModel,
|
|
4
|
+
import { builtInModel, NO_ROOM_TYPES } from './attached-model.js';
|
|
4
5
|
import { createLiveConversations } from './conversation-live.js';
|
|
6
|
+
import { writeRule } from './declaration.js';
|
|
5
7
|
import { refusedForSpace } from './durability.js';
|
|
8
|
+
import { uncaught } from './failure.js';
|
|
6
9
|
import { createFigures } from './figures.js';
|
|
7
10
|
import { scheduleCurrency, spaceFreed, start } from './lifecycle.js';
|
|
8
11
|
import { createLiveQueries } from './live.js';
|
|
9
|
-
import { createLog } from './log.js';
|
|
10
|
-
import { scoped } from './models.js';
|
|
11
12
|
import { open } from './opening.js';
|
|
12
|
-
import { deliverOwedReadiness, filled } from './preparation.js';
|
|
13
|
+
import { deliverOwedReadiness, filled, prepare } from './preparation.js';
|
|
14
|
+
import { createPresence } from './presence.js';
|
|
13
15
|
import { answeredPlan, figuresCover, roomTallies } from './queries.js';
|
|
14
16
|
import { readAnswers } from './reads.js';
|
|
15
17
|
import { createRecovery } from './recovery.js';
|
|
16
|
-
import {
|
|
18
|
+
import { createRetries } from './retried.js';
|
|
17
19
|
import { publishChangeSet, show } from './shown.js';
|
|
18
20
|
import { createSocket } from './socket.js';
|
|
19
21
|
import { createStore } from './store.js';
|
|
20
22
|
import { composedRuntime } from './surface.js';
|
|
21
|
-
import {
|
|
23
|
+
import { adopt, discover } from './sync.js';
|
|
22
24
|
const ROOM_ATTEMPTS = 16;
|
|
23
25
|
export function composeRuntime(options) {
|
|
24
26
|
const { adapter, shell } = options;
|
|
25
|
-
const roomTypes =
|
|
27
|
+
const roomTypes = adapter.roomTypes ?? NO_ROOM_TYPES;
|
|
26
28
|
const builtIn = builtInModel(roomTypes);
|
|
27
29
|
const typedPaths = adapter.typedPaths ?? [];
|
|
28
|
-
const
|
|
29
|
-
const socket = createSocket(adapter,
|
|
30
|
+
const retries = createRetries(shell);
|
|
31
|
+
const socket = createSocket(adapter, retries, options.authorization);
|
|
32
|
+
const presence = createPresence(notReadyWaitMs);
|
|
30
33
|
const store = createStore({
|
|
34
|
+
retries,
|
|
31
35
|
database: {
|
|
32
36
|
async ask(request) {
|
|
33
37
|
try {
|
|
@@ -44,30 +48,36 @@ export function composeRuntime(options) {
|
|
|
44
48
|
builtIn,
|
|
45
49
|
typedPaths,
|
|
46
50
|
persistence: shell.persistence,
|
|
51
|
+
lost: presence.lost,
|
|
52
|
+
losing: presence.losing,
|
|
47
53
|
opening: (local) => open(runtime, local),
|
|
48
|
-
unpublished
|
|
49
|
-
|
|
54
|
+
unpublished: uncaught,
|
|
55
|
+
changed(set) {
|
|
56
|
+
if (set.unindexed.length > 0)
|
|
57
|
+
prepare(runtime, set.unindexed);
|
|
58
|
+
for (const locator of set.due)
|
|
59
|
+
submitLater(runtime, locator);
|
|
60
|
+
return publishChangeSet(runtime, set);
|
|
50
61
|
},
|
|
51
|
-
|
|
52
|
-
deliverReadiness: (owed) => deliverOwedReadiness(runtime, owed),
|
|
62
|
+
deliverReadiness: (owed, rooms) => deliverOwedReadiness(runtime, owed, rooms),
|
|
53
63
|
spaceFreed: () => spaceFreed(runtime),
|
|
54
64
|
});
|
|
55
65
|
const recovery = (options.recovery ?? createRecovery()).scope(ROOM_ATTEMPTS);
|
|
56
66
|
const runtime = {
|
|
57
67
|
store,
|
|
58
68
|
socket,
|
|
59
|
-
|
|
69
|
+
presence,
|
|
60
70
|
recovery,
|
|
71
|
+
retries,
|
|
61
72
|
shell,
|
|
62
73
|
localSaves: adapter.localSaves === true,
|
|
63
74
|
roomTypes,
|
|
64
75
|
builtIn,
|
|
65
76
|
typedPaths,
|
|
66
|
-
|
|
67
|
-
usableWhenHeld: options.usableWhenHeld ?? [],
|
|
77
|
+
writeRule: (declaration) => writeRule(declaration, adapter.pathRule ?? (() => true), adapter.localSaves === true),
|
|
68
78
|
build: options.build ?? '',
|
|
69
79
|
conversations: createLiveConversations({
|
|
70
|
-
call: (name, input) => invokeAction(runtime, name, input),
|
|
80
|
+
call: (name, input, attempt) => invokeAction(runtime, name, input, { attempt }),
|
|
71
81
|
history: (request) => readConversationHistory(runtime, request),
|
|
72
82
|
durably: store.durably,
|
|
73
83
|
local: store.open,
|
|
@@ -83,7 +93,9 @@ export function composeRuntime(options) {
|
|
|
83
93
|
full: store.space.full,
|
|
84
94
|
closed: socket.closed,
|
|
85
95
|
unanswered: () => resendLater(runtime),
|
|
96
|
+
heard: (operation, lost) => socket.lanes.settle(operation, lost),
|
|
86
97
|
recovery: recovery.scope(),
|
|
98
|
+
retries,
|
|
87
99
|
}),
|
|
88
100
|
liveQueries: createLiveQueries((plan, cover) => answeredPlan(runtime, plan, cover), store.covering),
|
|
89
101
|
figures: createFigures({
|
|
@@ -97,20 +109,17 @@ export function composeRuntime(options) {
|
|
|
97
109
|
unkept: adapter.unkeptReads ?? [],
|
|
98
110
|
leading: adapter.leadingReads ?? [],
|
|
99
111
|
recovery: recovery.scope(),
|
|
100
|
-
|
|
112
|
+
retries,
|
|
113
|
+
call: (name, input, attempt) => called(runtime, name, input, attempt),
|
|
101
114
|
online: socket.reached,
|
|
102
115
|
streaming: socket.isOpen,
|
|
103
116
|
closed: socket.closed,
|
|
104
117
|
full: store.space.full,
|
|
105
118
|
filled: () => filled(runtime),
|
|
106
119
|
}),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
submitLater: (locator) => submitLater(runtime, locator),
|
|
110
|
-
unpair: (local) => unpair(runtime, local),
|
|
111
|
-
advanced: (...held) => advanced(runtime, ...held),
|
|
112
|
-
withhold: (...held) => withhold(runtime, ...held),
|
|
120
|
+
discover: () => discover(runtime),
|
|
121
|
+
adopt: (unstored) => adopt(runtime, unstored),
|
|
113
122
|
};
|
|
114
|
-
start(runtime, options.signal);
|
|
123
|
+
start(runtime, options.signal, options.storeOnNeed === true);
|
|
115
124
|
return composedRuntime(runtime);
|
|
116
125
|
}
|
package/dist/context.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../src/context.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAKpD"}
|
package/dist/context.js
CHANGED