@agentshouse/mdruntime 0.1.0-c26d7e158e11b → 0.1.0-c27d511fb284d
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 +32 -22
- package/dist/act-lanes.d.ts +11 -14
- package/dist/act-lanes.d.ts.map +1 -1
- package/dist/act-lanes.js +53 -5
- package/dist/actions.d.ts +1 -0
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +135 -55
- package/dist/adapter.d.ts +136 -29
- 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 +347 -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 +21 -15
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +29 -57
- 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 +15 -14
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +1 -1
- package/dist/conversation-live.d.ts +20 -9
- package/dist/conversation-live.d.ts.map +1 -1
- package/dist/conversation-live.js +18 -8
- 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 +30 -12
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +256 -180
- 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 +30 -8
- 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 +2 -0
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +25 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +111 -34
- 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.map +1 -1
- package/dist/failure.js +3 -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/host.d.ts +7 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +78 -32
- 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 +21 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -7
- package/dist/install.d.ts +9 -3
- package/dist/install.d.ts.map +1 -1
- package/dist/install.js +44 -46
- package/dist/lifecycle.d.ts +1 -1
- package/dist/lifecycle.d.ts.map +1 -1
- package/dist/lifecycle.js +40 -29
- package/dist/listing.d.ts +24 -12
- package/dist/listing.d.ts.map +1 -1
- package/dist/listing.js +50 -21
- 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.map +1 -1
- package/dist/locks.js +4 -3
- package/dist/lost.d.ts.map +1 -1
- package/dist/lost.js +2 -3
- 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 +66 -22
- package/dist/messages.d.ts +17 -3
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +29 -10
- 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 +5 -8
- 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 +5 -5
- 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 +20 -10
- package/dist/outcome.d.ts +30 -13
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +21 -6
- package/dist/overlay.d.ts +21 -7
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +112 -39
- package/dist/parts.d.ts +4 -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 +198 -87
- package/dist/presence.d.ts +8 -2
- package/dist/presence.d.ts.map +1 -1
- package/dist/presence.js +24 -13
- package/dist/queries.d.ts +1 -1
- package/dist/queries.d.ts.map +1 -1
- package/dist/queries.js +133 -73
- 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 -2
- package/dist/queue.d.ts.map +1 -1
- package/dist/queue.js +73 -48
- package/dist/reach.d.ts +15 -6
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +164 -39
- package/dist/react.d.ts +10 -11
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +22 -4
- 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 +1 -1
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +17 -6
- package/dist/recovery.d.ts +4 -1
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +31 -8
- package/dist/reference-forms.d.ts +4 -0
- package/dist/reference-forms.d.ts.map +1 -0
- package/dist/reference-forms.js +74 -0
- 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 +1 -3
- package/dist/replica.d.ts +3 -8
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +5 -5
- 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 +45 -0
- package/dist/rows.d.ts +11 -2
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +24 -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 +5 -4
- 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 +105 -124
- package/dist/saves.d.ts +7 -5
- package/dist/saves.d.ts.map +1 -1
- package/dist/saves.js +107 -57
- package/dist/seed.d.ts.map +1 -1
- package/dist/seed.js +2 -2
- 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 +5 -2
- package/dist/shown.d.ts.map +1 -1
- package/dist/shown.js +79 -43
- package/dist/socket/lanes.d.ts +10 -3
- package/dist/socket/lanes.d.ts.map +1 -1
- package/dist/socket/lanes.js +29 -6
- 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 +3 -3
- package/dist/socket.d.ts.map +1 -1
- package/dist/socket.js +3 -9
- package/dist/source.d.ts +7 -7
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +15 -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 +30 -8
- package/dist/store/records.d.ts.map +1 -1
- package/dist/store/records.js +70 -26
- 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 +15 -10
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +12 -5
- 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 +14 -8
- package/dist/surface.d.ts.map +1 -1
- package/dist/surface.js +59 -27
- package/dist/sync.d.ts +4 -2
- package/dist/sync.d.ts.map +1 -1
- package/dist/sync.js +52 -35
- package/dist/tables.d.ts +28 -52
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +95 -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 +39 -16
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +21 -14
- package/package.json +4 -4
- package/dist/binary.d.ts.map +0 -1
- package/dist/binary.js +0 -8
- package/dist/log.d.ts +0 -6
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js +0 -14
package/dist/compile.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
1
|
import { ARRAY_INDEX, bodied, byCodePoint, compared, cursorOf, heldKind, parse, pointerSegments, sql, } from '@agentshouse/mdmodel';
|
|
2
|
-
import {
|
|
2
|
+
import { attachmentRecord } from './attachment.js';
|
|
3
|
+
import { definitionsAt, UNTYPED } from './collection.js';
|
|
3
4
|
import { documentKey, pathOfKey, roomOfKey } from './rows.js';
|
|
5
|
+
import { ROOM_HANDLE } from './stored.js';
|
|
4
6
|
import { FROM_START, MAXIMUM_WINDOW } from './windows.js';
|
|
5
7
|
const { all, any, exists, fragment, grouped, joined, listed } = sql;
|
|
6
|
-
export const VISIBLE = (alias) => `${alias}.visible = 1 AND ${alias}.present = 1
|
|
8
|
+
export const VISIBLE = (alias) => `${alias}.visible = 1 AND ${alias}.present = 1`;
|
|
7
9
|
function located(alias) {
|
|
8
10
|
return fragment(`(SELECT k.locator FROM replica_keys k WHERE k.key = ${alias}.key)`);
|
|
9
11
|
}
|
|
10
|
-
|
|
11
|
-
return fragment(`(${
|
|
12
|
-
|
|
13
|
-
`${
|
|
14
|
-
`${
|
|
12
|
+
function inside(path, folder) {
|
|
13
|
+
return fragment(`(${path} = ? OR (${path} >= ? AND ${path} < ?))`, [
|
|
14
|
+
folder,
|
|
15
|
+
`${folder}/`,
|
|
16
|
+
`${folder}0`,
|
|
15
17
|
]);
|
|
16
18
|
}
|
|
19
|
+
export function within(alias, path) {
|
|
20
|
+
return inside(`${alias}.path`, path);
|
|
21
|
+
}
|
|
17
22
|
function ancestors(area) {
|
|
18
23
|
const depth = area.path.split('/').length;
|
|
19
24
|
return area.open.flatMap((open) => {
|
|
@@ -21,18 +26,18 @@ function ancestors(area) {
|
|
|
21
26
|
return segments.slice(depth - 1, -1).map((_, at) => segments.slice(0, depth + at).join('/'));
|
|
22
27
|
});
|
|
23
28
|
}
|
|
24
|
-
function fenced(
|
|
29
|
+
function fenced(key, path, held, area, folders) {
|
|
25
30
|
const opened = any([
|
|
26
|
-
...area.open.map((open) =>
|
|
27
|
-
...(folders ? ancestors(area).map((
|
|
31
|
+
...area.open.map((open) => inside(path, open)),
|
|
32
|
+
...(folders ? ancestors(area).map((ancestor) => fragment(`${path} = ?`, [ancestor])) : []),
|
|
28
33
|
]);
|
|
29
34
|
return all([
|
|
30
|
-
fragment(`${
|
|
31
|
-
|
|
35
|
+
fragment(`${key} = ?`, [held]),
|
|
36
|
+
inside(path, area.path),
|
|
32
37
|
fragment(`NOT ${grouped(opened).sql}`, opened.bind),
|
|
33
38
|
]);
|
|
34
39
|
}
|
|
35
|
-
function reached(bound,
|
|
40
|
+
function reached(bound, key, path) {
|
|
36
41
|
const reach = bound.reach;
|
|
37
42
|
if (reach === null)
|
|
38
43
|
return fragment('1');
|
|
@@ -45,49 +50,65 @@ function reached(bound, alias) {
|
|
|
45
50
|
return key === undefined ? [] : [[key, pathOfKey(held)]];
|
|
46
51
|
});
|
|
47
52
|
const outside = any(reach.areas.flatMap((area) => {
|
|
48
|
-
const
|
|
49
|
-
return
|
|
53
|
+
const held = bound.keys.get(area.room);
|
|
54
|
+
return held === undefined ? [] : [fenced(key, path, held, area, false)];
|
|
50
55
|
}));
|
|
51
56
|
return all([
|
|
52
57
|
any([
|
|
53
|
-
...(rooms.length === 0 ? [] : [fragment(`${
|
|
58
|
+
...(rooms.length === 0 ? [] : [fragment(`${key} IN ${listed(rooms).sql}`, rooms)]),
|
|
54
59
|
...(documents.length === 0
|
|
55
60
|
? []
|
|
56
61
|
: [
|
|
57
|
-
fragment(`EXISTS (SELECT 1 FROM json_each(?) j WHERE j.value ->> 0 = ${
|
|
62
|
+
fragment(`EXISTS (SELECT 1 FROM json_each(?) j WHERE j.value ->> 0 = ${key} AND j.value ->> 1 = ${path})`, [JSON.stringify(documents)]),
|
|
58
63
|
]),
|
|
59
64
|
]),
|
|
60
65
|
...(reach.areas.length === 0 ? [] : [fragment(`NOT ${grouped(outside).sql}`, outside.bind)]),
|
|
61
66
|
]);
|
|
62
67
|
}
|
|
68
|
+
function handled(bound, link) {
|
|
69
|
+
return fragment(`FROM replica_rooms h WHERE ${ROOM_HANDLE('h')} = ${link}.handle AND h.key IN (SELECT value FROM json_each(?))`, [bound.follows]);
|
|
70
|
+
}
|
|
71
|
+
function followed(bound) {
|
|
72
|
+
return {
|
|
73
|
+
targets: (link, document) => {
|
|
74
|
+
const room = handled(bound, link);
|
|
75
|
+
return joined([
|
|
76
|
+
fragment(`replica_entries ${document} ON ${document}.key = CASE WHEN ${link}.handle IS NULL THEN d.key ELSE (SELECT h.key ${room.sql}) END AND ${document}.path = ${link}.target AND ${VISIBLE(document)} AND`, room.bind),
|
|
77
|
+
grouped(reached(bound, `${document}.key`, `${document}.path`)),
|
|
78
|
+
], ' ');
|
|
79
|
+
},
|
|
80
|
+
unfollowed: (link) => {
|
|
81
|
+
const own = reached(bound, 'd.key', `${link}.target`);
|
|
82
|
+
const room = handled(bound, link);
|
|
83
|
+
const other = reached(bound, 'h.key', `${link}.target`);
|
|
84
|
+
return fragment(`NOT ((${link}.handle IS NULL AND ${own.sql}) OR EXISTS (SELECT 1 ${room.sql} AND ${other.sql}))`, [...own.bind, ...room.bind, ...other.bind]);
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
}
|
|
63
88
|
function related(bound, plan) {
|
|
64
89
|
const parts = [];
|
|
65
|
-
if (plan.hop !== null)
|
|
66
|
-
parts.push(
|
|
67
|
-
fragment(`SELECT 1 FROM replica_links l JOIN replica_entries m ON m.key = d.key AND m.path = l.target AND ${VISIBLE('m')} WHERE l.doc = d.id AND l.kind = 'field' AND`),
|
|
68
|
-
grouped(sql.placed('l', plan.hop.field, 'link')),
|
|
69
|
-
fragment('AND'),
|
|
70
|
-
grouped(all([sql.scoped('m', plan.hop), reached(bound, 'm')])),
|
|
71
|
-
], ' ')));
|
|
72
|
-
}
|
|
90
|
+
if (plan.hop !== null)
|
|
91
|
+
parts.push(sql.hopped('d', plan.hop, followed(bound)));
|
|
73
92
|
if (plan.backlinks !== null) {
|
|
74
93
|
const field = plan.backlinks.field;
|
|
75
94
|
parts.push(exists(joined([
|
|
76
|
-
fragment(`SELECT 1 FROM replica_links l JOIN replica_entries s ON s.id = l.doc AND ${VISIBLE('s')} WHERE l.key = d.key AND l.target = d.path AND l.kind = 'field' AND`),
|
|
95
|
+
fragment(`SELECT 1 FROM replica_links l JOIN replica_entries s ON s.id = l.doc AND ${VISIBLE('s')} WHERE l.key = d.key AND l.handle IS NULL AND l.target = d.path AND l.kind = 'field' AND`),
|
|
77
96
|
...(field === null ? [] : [grouped(sql.placed('l', field, 'link')), fragment('AND')]),
|
|
78
|
-
grouped(all([sql.scoped('s', plan.backlinks), reached(bound, 's')])),
|
|
97
|
+
grouped(all([sql.scoped('s', plan.backlinks), reached(bound, 's.key', 's.path')])),
|
|
79
98
|
], ' ')));
|
|
80
99
|
}
|
|
81
100
|
return parts;
|
|
82
101
|
}
|
|
83
|
-
function
|
|
102
|
+
function tested(bound, plan) {
|
|
84
103
|
const keys = bound.rooms.map(({ key }) => key);
|
|
85
|
-
return
|
|
104
|
+
return [
|
|
86
105
|
fragment(`d.key IN ${listed(keys).sql} AND ${VISIBLE('d')}`, keys),
|
|
87
|
-
reached(bound, 'd'),
|
|
106
|
+
reached(bound, 'd.key', 'd.path'),
|
|
88
107
|
sql.tests('d', plan),
|
|
89
|
-
|
|
90
|
-
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
function filtered(bound, plan) {
|
|
111
|
+
return all([...tested(bound, plan), ...related(bound, plan)]);
|
|
91
112
|
}
|
|
92
113
|
function orderingOf(options) {
|
|
93
114
|
const stringSort = options.stringSort ?? 'locale';
|
|
@@ -310,7 +331,16 @@ function sectionsOf(sections, names) {
|
|
|
310
331
|
return sections;
|
|
311
332
|
return Object.fromEntries(names.flatMap((name) => (Object.hasOwn(sections, name) ? [[name, sections[name]]] : [])));
|
|
312
333
|
}
|
|
313
|
-
function
|
|
334
|
+
function freeParts(room, path, type, content) {
|
|
335
|
+
const definitions = room.composition === undefined ? undefined : definitionsAt(room.composition, path);
|
|
336
|
+
const definition = definitions?.(type === UNTYPED ? undefined : type);
|
|
337
|
+
if (definition === undefined && type !== UNTYPED)
|
|
338
|
+
return null;
|
|
339
|
+
const read = parse(content, path, definition);
|
|
340
|
+
return read.ok ? read.document : null;
|
|
341
|
+
}
|
|
342
|
+
function documentOf(shape, queried, row, linked) {
|
|
343
|
+
const room = queried.locator;
|
|
314
344
|
const path = row.path;
|
|
315
345
|
const type = row.type;
|
|
316
346
|
const fileId = row.file_id;
|
|
@@ -324,7 +354,7 @@ function documentOf(shape, room, row, linked) {
|
|
|
324
354
|
...(binary === null
|
|
325
355
|
? {}
|
|
326
356
|
: {
|
|
327
|
-
|
|
357
|
+
attachment: attachmentRecord(path, binary, revision ?? undefined),
|
|
328
358
|
}),
|
|
329
359
|
...(shape.markdown && content !== null ? { markdown: content } : {}),
|
|
330
360
|
...(shape.change ? { change: changeOf(row) } : {}),
|
|
@@ -333,8 +363,9 @@ function documentOf(shape, room, row, linked) {
|
|
|
333
363
|
...heldFacts(shape, row),
|
|
334
364
|
};
|
|
335
365
|
}
|
|
336
|
-
const
|
|
337
|
-
|
|
366
|
+
const body = shape.sections !== null || shape.preamble
|
|
367
|
+
? freeParts(queried, path, type, row.content)
|
|
368
|
+
: null;
|
|
338
369
|
const fields = JSON.parse(row.fields ?? '{}');
|
|
339
370
|
return {
|
|
340
371
|
room,
|
|
@@ -377,10 +408,10 @@ function backlinksOf(connection, bound, rows) {
|
|
|
377
408
|
held.push(row.path);
|
|
378
409
|
byKey.set(key, held);
|
|
379
410
|
}
|
|
380
|
-
const reach = reached(bound, 's');
|
|
411
|
+
const reach = reached(bound, 's.key', 's.path');
|
|
381
412
|
for (const [key, targets] of byKey) {
|
|
382
413
|
const room = bound.rooms.find((one) => one.key === key).locator;
|
|
383
|
-
const found = connection.rows(`SELECT target, path, type, field FROM (SELECT l.target, s.path, s.type, l.field, ROW_NUMBER() OVER (PARTITION BY l.target ORDER BY s.path, l.field) AS rank FROM (SELECT DISTINCT doc, target, field FROM replica_links WHERE key = ? AND kind = 'field' AND target IN (SELECT value FROM json_each(?))) l JOIN replica_entries s ON s.id = l.doc AND ${VISIBLE('s')} WHERE ${reach.sql}) WHERE rank <= ? ORDER BY target, path, field`, [key, JSON.stringify(targets), ...reach.bind, MAXIMUM_WINDOW]);
|
|
414
|
+
const found = connection.rows(`SELECT target, path, type, field FROM (SELECT l.target, s.path, s.type, l.field, ROW_NUMBER() OVER (PARTITION BY l.target ORDER BY s.path, l.field) AS rank FROM (SELECT DISTINCT doc, target, field FROM replica_links WHERE key = ? AND kind = 'field' AND handle IS NULL AND target IN (SELECT value FROM json_each(?))) l JOIN replica_entries s ON s.id = l.doc AND ${VISIBLE('s')} WHERE ${reach.sql}) WHERE rank <= ? ORDER BY target, path, field`, [key, JSON.stringify(targets), ...reach.bind, MAXIMUM_WINDOW]);
|
|
384
415
|
for (const row of found) {
|
|
385
416
|
const at = documentKey(room, row.target);
|
|
386
417
|
const held = linked.get(at) ?? [];
|
|
@@ -428,8 +459,9 @@ function documents(connection, bound, plan, shape, budget) {
|
|
|
428
459
|
const kept = bodied(shape) ? withContent(connection, windowed, budget) : windowed;
|
|
429
460
|
const cut = kept.length;
|
|
430
461
|
const roomOf = new Map(bound.rooms.map(({ key, locator }) => [key, locator]));
|
|
462
|
+
const queried = new Map(bound.rooms.map((one) => [one.key, one]));
|
|
431
463
|
const linked = shape.backlinks ? backlinksOf(connection, bound, kept) : new Map();
|
|
432
|
-
const found = kept.map((row) => documentOf(shape,
|
|
464
|
+
const found = kept.map((row) => documentOf(shape, queried.get(Number(row.key)), row, linked));
|
|
433
465
|
const last = kept.at(-1);
|
|
434
466
|
const cursorAt = (row) => cursorOf([
|
|
435
467
|
...shape.orderBy.map(({ key }, index) => decodedKey(key, row, index)),
|
|
@@ -494,7 +526,7 @@ function storedFolders(bound, plan, subfolder) {
|
|
|
494
526
|
const key = bound.keys.get(area.room);
|
|
495
527
|
if (key === undefined)
|
|
496
528
|
return [];
|
|
497
|
-
const fence = fenced('f', key, area, true);
|
|
529
|
+
const fence = fenced('f.key', 'f.path', key, area, true);
|
|
498
530
|
return [fragment(`NOT ${grouped(fence).sql}`, fence.bind)];
|
|
499
531
|
});
|
|
500
532
|
const under = prefix === ''
|
|
@@ -690,16 +722,28 @@ function groups(connection, bound, plan, shape) {
|
|
|
690
722
|
...(total === undefined ? {} : { total }),
|
|
691
723
|
};
|
|
692
724
|
}
|
|
693
|
-
function boundOf(connection, plan, rooms) {
|
|
725
|
+
function boundOf(connection, plan, rooms, follows) {
|
|
694
726
|
return {
|
|
695
727
|
rooms: [...rooms].sort((left, right) => left.locator < right.locator ? -1 : left.locator > right.locator ? 1 : 0),
|
|
696
|
-
keys: new Map(rooms.map(({ locator, key }) => [locator, key])),
|
|
728
|
+
keys: new Map([...rooms, ...follows].map(({ locator, key }) => [locator, key])),
|
|
729
|
+
follows: JSON.stringify(follows.map(({ key }) => key)),
|
|
697
730
|
reach: plan.reach,
|
|
698
731
|
collate: collating(connection),
|
|
699
732
|
};
|
|
700
733
|
}
|
|
701
|
-
export function
|
|
702
|
-
|
|
734
|
+
export function namedHandles(connection, plan, rooms, handles) {
|
|
735
|
+
if (plan.hop === null)
|
|
736
|
+
return [];
|
|
737
|
+
const statement = joined([
|
|
738
|
+
fragment("SELECT DISTINCT l.handle FROM replica_entries d JOIN replica_links l ON l.doc = d.id AND l.kind = 'field' AND l.handle IN (SELECT value FROM json_each(?)) AND ", [JSON.stringify(handles)]),
|
|
739
|
+
grouped(sql.placed('l', plan.hop.field, 'link')),
|
|
740
|
+
fragment(' WHERE '),
|
|
741
|
+
all(tested(boundOf(connection, plan, rooms, []), plan)),
|
|
742
|
+
], '');
|
|
743
|
+
return connection.rows(statement.sql, statement.bind).map((row) => row.handle);
|
|
744
|
+
}
|
|
745
|
+
export function answerQuery(connection, plan, rooms, budget = null, follows = []) {
|
|
746
|
+
const bound = boundOf(connection, plan, rooms, follows);
|
|
703
747
|
if (rooms.length === 0) {
|
|
704
748
|
return plan.shape.kind === 'groups'
|
|
705
749
|
? { groups: [], ...(plan.total ? { total: 0 } : {}) }
|
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,CAwGzE"}
|
package/dist/connection.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { notReadyWaitMs } from '@agentshouse/mdmodel';
|
|
1
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';
|
|
5
6
|
import { writeRule } from './declaration.js';
|
|
6
7
|
import { refusedForSpace } from './durability.js';
|
|
@@ -8,7 +9,6 @@ import { uncaught } from './failure.js';
|
|
|
8
9
|
import { createFigures } from './figures.js';
|
|
9
10
|
import { scheduleCurrency, spaceFreed, start } from './lifecycle.js';
|
|
10
11
|
import { createLiveQueries } from './live.js';
|
|
11
|
-
import { createLog } from './log.js';
|
|
12
12
|
import { open } from './opening.js';
|
|
13
13
|
import { deliverOwedReadiness, filled, prepare } from './preparation.js';
|
|
14
14
|
import { createPresence } from './presence.js';
|
|
@@ -20,16 +20,16 @@ import { publishChangeSet, show } from './shown.js';
|
|
|
20
20
|
import { createSocket } from './socket.js';
|
|
21
21
|
import { createStore } from './store.js';
|
|
22
22
|
import { composedRuntime } from './surface.js';
|
|
23
|
+
import { adopt, discover } from './sync.js';
|
|
23
24
|
const ROOM_ATTEMPTS = 16;
|
|
24
25
|
export function composeRuntime(options) {
|
|
25
26
|
const { adapter, shell } = options;
|
|
26
|
-
const roomTypes =
|
|
27
|
+
const roomTypes = adapter.roomTypes ?? NO_ROOM_TYPES;
|
|
27
28
|
const builtIn = builtInModel(roomTypes);
|
|
28
29
|
const typedPaths = adapter.typedPaths ?? [];
|
|
29
|
-
const journal = createLog();
|
|
30
30
|
const retries = createRetries(shell);
|
|
31
|
-
const socket = createSocket(adapter,
|
|
32
|
-
const presence = createPresence();
|
|
31
|
+
const socket = createSocket(adapter, retries, options.authorization);
|
|
32
|
+
const presence = createPresence(notReadyWaitMs);
|
|
33
33
|
const store = createStore({
|
|
34
34
|
retries,
|
|
35
35
|
database: {
|
|
@@ -49,11 +49,9 @@ export function composeRuntime(options) {
|
|
|
49
49
|
typedPaths,
|
|
50
50
|
persistence: shell.persistence,
|
|
51
51
|
lost: presence.lost,
|
|
52
|
+
losing: presence.losing,
|
|
52
53
|
opening: (local) => open(runtime, local),
|
|
53
|
-
unpublished
|
|
54
|
-
journal.record(`publication failed ${error instanceof Error ? error.name : 'unknown'}`);
|
|
55
|
-
uncaught(error);
|
|
56
|
-
},
|
|
54
|
+
unpublished: uncaught,
|
|
57
55
|
changed(set) {
|
|
58
56
|
if (set.unindexed.length > 0)
|
|
59
57
|
prepare(runtime, set.unindexed);
|
|
@@ -61,7 +59,7 @@ export function composeRuntime(options) {
|
|
|
61
59
|
submitLater(runtime, locator);
|
|
62
60
|
return publishChangeSet(runtime, set);
|
|
63
61
|
},
|
|
64
|
-
deliverReadiness: (owed) => deliverOwedReadiness(runtime, owed),
|
|
62
|
+
deliverReadiness: (owed, rooms) => deliverOwedReadiness(runtime, owed, rooms),
|
|
65
63
|
spaceFreed: () => spaceFreed(runtime),
|
|
66
64
|
});
|
|
67
65
|
const recovery = (options.recovery ?? createRecovery()).scope(ROOM_ATTEMPTS);
|
|
@@ -69,7 +67,6 @@ export function composeRuntime(options) {
|
|
|
69
67
|
store,
|
|
70
68
|
socket,
|
|
71
69
|
presence,
|
|
72
|
-
journal,
|
|
73
70
|
recovery,
|
|
74
71
|
retries,
|
|
75
72
|
shell,
|
|
@@ -77,8 +74,9 @@ export function composeRuntime(options) {
|
|
|
77
74
|
roomTypes,
|
|
78
75
|
builtIn,
|
|
79
76
|
typedPaths,
|
|
77
|
+
renamedActions: adapter.renamedActions ?? new Map(),
|
|
78
|
+
rewrittenInputs: adapter.rewrittenInputs ?? new Map(),
|
|
80
79
|
writeRule: (declaration) => writeRule(declaration, adapter.pathRule ?? (() => true), adapter.localSaves === true),
|
|
81
|
-
usableWhenHeld: options.usableWhenHeld ?? [],
|
|
82
80
|
build: options.build ?? '',
|
|
83
81
|
conversations: createLiveConversations({
|
|
84
82
|
call: (name, input, attempt) => invokeAction(runtime, name, input, { attempt }),
|
|
@@ -97,6 +95,7 @@ export function composeRuntime(options) {
|
|
|
97
95
|
full: store.space.full,
|
|
98
96
|
closed: socket.closed,
|
|
99
97
|
unanswered: () => resendLater(runtime),
|
|
98
|
+
heard: (operation, lost) => socket.lanes.settle(operation, lost),
|
|
100
99
|
recovery: recovery.scope(),
|
|
101
100
|
retries,
|
|
102
101
|
}),
|
|
@@ -120,7 +119,9 @@ export function composeRuntime(options) {
|
|
|
120
119
|
full: store.space.full,
|
|
121
120
|
filled: () => filled(runtime),
|
|
122
121
|
}),
|
|
122
|
+
discover: () => discover(runtime),
|
|
123
|
+
adopt: (unstored) => adopt(runtime, unstored),
|
|
123
124
|
};
|
|
124
|
-
start(runtime, options.signal);
|
|
125
|
+
start(runtime, options.signal, options.storeOnNeed === true);
|
|
125
126
|
return composedRuntime(runtime);
|
|
126
127
|
}
|
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
|
@@ -20,6 +20,7 @@ export type ConversationDependencies = {
|
|
|
20
20
|
full(): boolean;
|
|
21
21
|
closed(): boolean;
|
|
22
22
|
unanswered(): void;
|
|
23
|
+
heard(operation: string, lost: boolean): void;
|
|
23
24
|
readonly recovery: Recovery;
|
|
24
25
|
readonly retries: Retries;
|
|
25
26
|
};
|
|
@@ -33,9 +34,6 @@ export type Live = {
|
|
|
33
34
|
options: readonly SessionOption[];
|
|
34
35
|
starting: string | null;
|
|
35
36
|
state: SessionState | null;
|
|
36
|
-
link: {
|
|
37
|
-
connected: boolean;
|
|
38
|
-
} | null;
|
|
39
37
|
deliveryWaiting: readonly string[];
|
|
40
38
|
deliveryUnknown: readonly string[];
|
|
41
39
|
};
|
|
@@ -45,10 +43,14 @@ export declare const FACTS: readonly Fact[];
|
|
|
45
43
|
type Watcher = {
|
|
46
44
|
readonly notify: (view: ConversationView) => void;
|
|
47
45
|
};
|
|
48
|
-
type
|
|
49
|
-
readonly window: readonly AcceptedMessage[] | null;
|
|
46
|
+
export type Kept = {
|
|
50
47
|
readonly draft: ChatDraftRecord | null;
|
|
51
48
|
readonly ended: string | null;
|
|
49
|
+
readonly dismissed: string | null;
|
|
50
|
+
readonly pins: readonly string[];
|
|
51
|
+
};
|
|
52
|
+
type HeldWindow = Kept & {
|
|
53
|
+
readonly window: readonly AcceptedMessage[] | null;
|
|
52
54
|
readonly more: boolean;
|
|
53
55
|
readonly total: number | null;
|
|
54
56
|
};
|
|
@@ -74,23 +76,30 @@ export type Audience<T> = {
|
|
|
74
76
|
};
|
|
75
77
|
type HeldFacts = {
|
|
76
78
|
readonly listKnown: boolean;
|
|
79
|
+
readonly listHeld: boolean;
|
|
80
|
+
readonly openingRead: boolean;
|
|
81
|
+
readonly openingListed: boolean;
|
|
77
82
|
readonly listOwed: boolean;
|
|
78
83
|
readonly listTelling: boolean;
|
|
79
84
|
readonly agentsShown: string | null;
|
|
80
|
-
readonly
|
|
81
|
-
readonly agentsReading: boolean;
|
|
85
|
+
readonly listedShown: string | null;
|
|
82
86
|
readonly replicated: ReadonlySet<string>;
|
|
83
87
|
readonly handedReplicated: string | undefined;
|
|
84
88
|
};
|
|
85
89
|
export type Dispatch = Cell<{
|
|
86
90
|
readonly answered: boolean;
|
|
87
91
|
}>;
|
|
92
|
+
export type Relisted = {
|
|
93
|
+
readonly conversations: ReadonlyMap<string, ListedConversation>;
|
|
94
|
+
readonly agents: ReadonlyMap<string, ListedAgent>;
|
|
95
|
+
};
|
|
88
96
|
export type LiveConversations = {
|
|
89
97
|
readonly deps: ConversationDependencies;
|
|
90
98
|
readonly held: Cell<HeldFacts>;
|
|
91
99
|
readonly closing: AbortSignal;
|
|
92
100
|
readonly listeners: Audience<readonly ConversationEntry[]>;
|
|
93
101
|
readonly agentListeners: Audience<readonly ConversationAgent[]>;
|
|
102
|
+
readonly listedListeners: Audience<readonly ListedAgent[]>;
|
|
94
103
|
views(): Iterable<SharedView>;
|
|
95
104
|
viewJoined(key: string, conversation: string, asked: Asked, notify: (view: ConversationView) => void): {
|
|
96
105
|
readonly view: SharedView;
|
|
@@ -118,9 +127,9 @@ export type LiveConversations = {
|
|
|
118
127
|
isCreating(conversation: string): boolean;
|
|
119
128
|
relisting(): boolean;
|
|
120
129
|
relistBegun(): void;
|
|
121
|
-
relistHeard(entries: readonly ListedConversation[]): void;
|
|
130
|
+
relistHeard(entries: readonly ListedConversation[], agents: readonly ListedAgent[]): void;
|
|
122
131
|
relistDropped(conversation: string): void;
|
|
123
|
-
relistTaken():
|
|
132
|
+
relistTaken(): Relisted | null;
|
|
124
133
|
sendingBegan(operation: string): Dispatch;
|
|
125
134
|
sendingEnded(operation: string, dispatch: Dispatch): void;
|
|
126
135
|
sending(operation: string): boolean;
|
|
@@ -129,6 +138,8 @@ export type LiveConversations = {
|
|
|
129
138
|
forget(conversation: string): void;
|
|
130
139
|
current(): boolean;
|
|
131
140
|
known(): boolean;
|
|
141
|
+
listHeld(): boolean;
|
|
142
|
+
listed(): boolean;
|
|
132
143
|
reopened(): void;
|
|
133
144
|
lost(): void;
|
|
134
145
|
close(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-live.d.ts","sourceRoot":"","sources":["../src/conversation-live.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,EACV,eAAe,EACf,kBAAkB,EAClB,0BAA0B,EAC1B,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,cAAc,EACd,aAAa,EACd,MAAM,cAAc,CAAC;AACtB,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,KAAK,EACV,KAAK,EACL,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEhE,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,CAAC,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IACvF,OAAO,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAClE,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|
9
9
|
state: null,
|
|
10
|
-
link: null,
|
|
11
10
|
deliveryWaiting: [],
|
|
12
11
|
deliveryUnknown: [],
|
|
13
12
|
};
|
|
@@ -18,7 +17,6 @@ export const FACTS = [
|
|
|
18
17
|
'options',
|
|
19
18
|
'starting',
|
|
20
19
|
'state',
|
|
21
|
-
'link',
|
|
22
20
|
'deliveryWaiting',
|
|
23
21
|
'deliveryUnknown',
|
|
24
22
|
];
|
|
@@ -63,6 +61,8 @@ function sharedView(conversation, asked) {
|
|
|
63
61
|
window: null,
|
|
64
62
|
draft: null,
|
|
65
63
|
ended: null,
|
|
64
|
+
dismissed: null,
|
|
65
|
+
pins: [],
|
|
66
66
|
more: false,
|
|
67
67
|
total: null,
|
|
68
68
|
}),
|
|
@@ -93,13 +93,16 @@ export function createLiveConversations(deps) {
|
|
|
93
93
|
const closing = new AbortController();
|
|
94
94
|
const listeners = createAudience();
|
|
95
95
|
const agentListeners = createAudience();
|
|
96
|
+
const listedListeners = createAudience();
|
|
96
97
|
const held = createCell({
|
|
97
98
|
listKnown: false,
|
|
99
|
+
listHeld: false,
|
|
100
|
+
openingRead: false,
|
|
101
|
+
openingListed: false,
|
|
98
102
|
listOwed: false,
|
|
99
103
|
listTelling: false,
|
|
100
104
|
agentsShown: null,
|
|
101
|
-
|
|
102
|
-
agentsReading: false,
|
|
105
|
+
listedShown: null,
|
|
103
106
|
replicated: new Set(),
|
|
104
107
|
handedReplicated: undefined,
|
|
105
108
|
});
|
|
@@ -112,6 +115,7 @@ export function createLiveConversations(deps) {
|
|
|
112
115
|
closing: closing.signal,
|
|
113
116
|
listeners,
|
|
114
117
|
agentListeners,
|
|
118
|
+
listedListeners,
|
|
115
119
|
views: () => views.values(),
|
|
116
120
|
viewJoined(key, conversation, asked, notify) {
|
|
117
121
|
const view = views.get(key) ?? sharedView(conversation, asked);
|
|
@@ -183,14 +187,16 @@ export function createLiveConversations(deps) {
|
|
|
183
187
|
isCreating: (conversation) => creations.has(conversation),
|
|
184
188
|
relisting: () => relisting !== null,
|
|
185
189
|
relistBegun() {
|
|
186
|
-
relisting ??= new Map();
|
|
190
|
+
relisting ??= { conversations: new Map(), agents: new Map() };
|
|
187
191
|
},
|
|
188
|
-
relistHeard(entries) {
|
|
192
|
+
relistHeard(entries, agents) {
|
|
189
193
|
for (const entry of entries)
|
|
190
|
-
relisting?.set(entry.conversation, { ...entry });
|
|
194
|
+
relisting?.conversations.set(entry.conversation, { ...entry });
|
|
195
|
+
for (const agent of agents)
|
|
196
|
+
relisting?.agents.set(agent.id, { ...agent });
|
|
191
197
|
},
|
|
192
198
|
relistDropped(conversation) {
|
|
193
|
-
relisting?.delete(conversation);
|
|
199
|
+
relisting?.conversations.delete(conversation);
|
|
194
200
|
},
|
|
195
201
|
relistTaken() {
|
|
196
202
|
const whole = relisting;
|
|
@@ -225,8 +231,11 @@ export function createLiveConversations(deps) {
|
|
|
225
231
|
},
|
|
226
232
|
current: () => behind.size === 0,
|
|
227
233
|
known: () => held.now().listKnown,
|
|
234
|
+
listHeld: () => held.now().listHeld,
|
|
235
|
+
listed: () => deps.stream() === undefined || held.now().openingListed,
|
|
228
236
|
reopened() {
|
|
229
237
|
relisting = null;
|
|
238
|
+
held.set({ openingRead: false, openingListed: false });
|
|
230
239
|
for (const [operation, dispatch] of sending)
|
|
231
240
|
if (!dispatch.now().answered)
|
|
232
241
|
sending.delete(operation);
|
|
@@ -244,6 +253,7 @@ export function createLiveConversations(deps) {
|
|
|
244
253
|
unsent.clear();
|
|
245
254
|
listeners.clear();
|
|
246
255
|
agentListeners.clear();
|
|
256
|
+
listedListeners.clear();
|
|
247
257
|
},
|
|
248
258
|
};
|
|
249
259
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HeldRow } from './messages.js';
|
|
2
|
-
import { type HouseSource } from './source.js';
|
|
2
|
+
import { type HouseSource, type RequestAnswer } from './source.js';
|
|
3
3
|
export type ConversationLast = {
|
|
4
4
|
readonly text: string;
|
|
5
5
|
readonly by: 'owner' | 'agent' | 'house';
|
|
@@ -10,18 +10,25 @@ export type ConversationStart = Extract<HouseSource, {
|
|
|
10
10
|
}>;
|
|
11
11
|
export type ConversationAsk = {
|
|
12
12
|
readonly who: string;
|
|
13
|
+
readonly fromRoom: boolean;
|
|
13
14
|
readonly agent: string | null;
|
|
14
15
|
readonly room: {
|
|
15
16
|
readonly ref: string;
|
|
17
|
+
readonly handle: string;
|
|
16
18
|
readonly name: string;
|
|
17
19
|
};
|
|
18
20
|
readonly prompt: string;
|
|
21
|
+
readonly agentFunction: string | null;
|
|
22
|
+
readonly answer: RequestAnswer | null;
|
|
23
|
+
readonly instruction: string | null;
|
|
19
24
|
readonly at: string;
|
|
20
25
|
readonly request: string;
|
|
21
26
|
readonly message?: string;
|
|
22
27
|
};
|
|
23
28
|
export type ConversationHeld = {
|
|
24
29
|
readonly last: ConversationLast | null;
|
|
30
|
+
readonly answered: string | null;
|
|
31
|
+
readonly opened: string | null;
|
|
25
32
|
readonly failure: string | null;
|
|
26
33
|
readonly startedBy: ConversationStart | null;
|
|
27
34
|
readonly asks: ConversationAsk | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-row.d.ts","sourceRoot":"","sources":["../src/conversation-row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAY,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"conversation-row.d.ts","sourceRoot":"","sources":["../src/conversation-row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAY,KAAK,WAAW,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,EAAE,OAAO,GAAG,O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