@agentshouse/mdruntime 0.1.0-cf6e25bcd52f6 → 0.1.0-cf85301a4a962
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 +3 -0
- package/dist/acceptance.d.ts.map +1 -0
- package/dist/acceptance.js +299 -0
- 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 +26 -0
- package/dist/actions.d.ts.map +1 -0
- package/dist/actions.js +346 -0
- package/dist/adapter.d.ts +215 -121
- package/dist/adapter.d.ts.map +1 -1
- package/dist/attached-model.d.ts +3 -11
- package/dist/attached-model.d.ts.map +1 -1
- package/dist/attached-model.js +20 -60
- package/dist/authored.d.ts +88 -0
- package/dist/authored.d.ts.map +1 -0
- package/dist/authored.js +347 -0
- package/dist/binary.d.ts +6 -2
- package/dist/binary.d.ts.map +1 -1
- package/dist/binary.js +10 -3
- package/dist/bootstrap.d.ts +15 -18
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +252 -158
- package/dist/cell.d.ts +6 -0
- package/dist/cell.d.ts.map +1 -0
- package/dist/cell.js +9 -0
- package/dist/chain.d.ts +3 -2
- package/dist/chain.d.ts.map +1 -1
- package/dist/chain.js +5 -2
- 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 +7 -2
- package/dist/change.d.ts.map +1 -1
- package/dist/change.js +7 -2
- package/dist/chat-types.d.ts +3 -0
- package/dist/chat-types.d.ts.map +1 -0
- package/dist/chat-types.js +11 -0
- package/dist/client.d.ts +41 -25
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +58 -69
- package/dist/collection.d.ts +28 -7
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +35 -27
- 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 +10 -7
- package/dist/compile.d.ts.map +1 -1
- package/dist/compile.js +337 -347
- package/dist/connection.d.ts +6 -144
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +116 -5227
- package/dist/context.d.ts +2 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +7 -0
- package/dist/conversation-live.d.ts +149 -0
- package/dist/conversation-live.d.ts.map +1 -0
- package/dist/conversation-live.js +259 -0
- package/dist/conversation-row.d.ts +40 -0
- package/dist/conversation-row.d.ts.map +1 -0
- package/dist/conversation-row.js +66 -0
- package/dist/conversation.d.ts +79 -56
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +1016 -883
- 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 +12 -0
- package/dist/discovery.d.ts.map +1 -0
- package/dist/discovery.js +175 -0
- 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 +20 -1
- package/dist/durability.d.ts.map +1 -1
- package/dist/durability.js +7 -0
- package/dist/entry.d.ts +17 -2
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +60 -21
- package/dist/expectation.d.ts +26 -13
- package/dist/expectation.d.ts.map +1 -1
- package/dist/expectation.js +72 -19
- 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 +49 -0
- package/dist/figures.d.ts.map +1 -0
- package/dist/figures.js +199 -0
- package/dist/file.d.ts +1 -1
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +3 -2
- package/dist/holdings.d.ts +29 -0
- package/dist/holdings.d.ts.map +1 -0
- package/dist/holdings.js +95 -0
- package/dist/host.d.ts +25 -8
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +130 -56
- package/dist/house-query.d.ts +24 -0
- package/dist/house-query.d.ts.map +1 -0
- package/dist/house-query.js +76 -0
- package/dist/identity.d.ts +0 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +0 -3
- package/dist/index.d.ts +43 -16
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -6
- package/dist/install.d.ts +60 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +537 -0
- package/dist/lifecycle.d.ts +7 -0
- package/dist/lifecycle.d.ts.map +1 -0
- package/dist/lifecycle.js +290 -0
- package/dist/listing.d.ts +60 -0
- package/dist/listing.d.ts.map +1 -0
- package/dist/listing.js +168 -0
- package/dist/live.d.ts +23 -6
- package/dist/live.d.ts.map +1 -1
- package/dist/live.js +138 -39
- 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 +7 -0
- package/dist/locks.d.ts.map +1 -0
- package/dist/locks.js +34 -0
- package/dist/lost.d.ts +5 -0
- package/dist/lost.d.ts.map +1 -0
- package/dist/lost.js +49 -0
- package/dist/media.d.ts +20 -4
- package/dist/media.d.ts.map +1 -1
- package/dist/media.js +183 -39
- package/dist/memory.d.ts +21 -8
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +262 -109
- package/dist/messages.d.ts +40 -5
- package/dist/messages.d.ts.map +1 -1
- package/dist/messages.js +118 -39
- 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 +6 -13
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +6 -23
- package/dist/models.d.ts +10 -0
- package/dist/models.d.ts.map +1 -0
- package/dist/models.js +153 -0
- 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 +30 -13
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +218 -81
- 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 +5 -5
- package/dist/opening.d.ts +4 -0
- package/dist/opening.d.ts.map +1 -0
- package/dist/opening.js +69 -0
- package/dist/outcome.d.ts +28 -8
- package/dist/outcome.d.ts.map +1 -1
- package/dist/outcome.js +36 -3
- package/dist/overlay.d.ts +10 -5
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +48 -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 +6 -0
- package/dist/parts.d.ts.map +1 -0
- package/dist/parts.js +36 -0
- 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 +46 -0
- package/dist/preparation.d.ts.map +1 -0
- package/dist/preparation.js +344 -0
- 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 +16 -0
- package/dist/queries.d.ts.map +1 -0
- package/dist/queries.js +330 -0
- package/dist/query.d.ts +16 -212
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +3 -505
- package/dist/questions.d.ts +30 -0
- package/dist/questions.d.ts.map +1 -0
- package/dist/questions.js +117 -0
- 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 +26 -15
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +350 -160
- package/dist/react.d.ts +21 -3
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +33 -1
- package/dist/read.d.ts +7 -0
- package/dist/read.d.ts.map +1 -0
- package/dist/read.js +17 -0
- package/dist/readiness.d.ts +23 -22
- package/dist/readiness.d.ts.map +1 -1
- package/dist/readiness.js +21 -20
- package/dist/reads.d.ts +38 -10
- package/dist/reads.d.ts.map +1 -1
- package/dist/reads.js +163 -85
- package/dist/recovery.d.ts +4 -0
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +59 -2
- 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 +7 -5
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +37 -9
- package/dist/refusal.d.ts +5 -0
- package/dist/refusal.d.ts.map +1 -0
- package/dist/refusal.js +55 -0
- package/dist/replica.d.ts +12 -18
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +68 -38
- 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 +51 -12
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +368 -111
- package/dist/room-drafts.d.ts +24 -0
- package/dist/room-drafts.d.ts.map +1 -0
- package/dist/room-drafts.js +222 -0
- 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 +24 -22
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +63 -186
- 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 +37 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/runtime.js +1 -0
- package/dist/save.d.ts +43 -86
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +332 -228
- package/dist/saves.d.ts +34 -0
- package/dist/saves.d.ts.map +1 -0
- package/dist/saves.js +463 -0
- package/dist/search.d.ts +12 -63
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +9 -52
- 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 -7
- package/dist/shared.d.ts.map +1 -1
- package/dist/shared.js +13 -105
- package/dist/shown.d.ts +35 -0
- package/dist/shown.d.ts.map +1 -0
- package/dist/shown.js +326 -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 +28 -0
- package/dist/socket/lanes.d.ts.map +1 -0
- package/dist/socket/lanes.js +103 -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 +41 -0
- package/dist/socket/session.d.ts.map +1 -0
- package/dist/socket/session.js +26 -0
- package/dist/socket.d.ts +68 -0
- package/dist/socket.d.ts.map +1 -0
- package/dist/socket.js +165 -0
- package/dist/source.d.ts +61 -0
- package/dist/source.d.ts.map +1 -0
- package/dist/source.js +95 -0
- package/dist/status.d.ts +0 -6
- package/dist/status.d.ts.map +1 -1
- package/dist/status.js +0 -6
- package/dist/store/installs.d.ts +30 -0
- package/dist/store/installs.d.ts.map +1 -0
- package/dist/store/installs.js +40 -0
- package/dist/store/readiness.d.ts +11 -0
- package/dist/store/readiness.d.ts.map +1 -0
- package/dist/store/readiness.js +68 -0
- package/dist/store/records.d.ts +229 -0
- package/dist/store/records.d.ts.map +1 -0
- package/dist/store/records.js +474 -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/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/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 +125 -175
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +173 -419
- package/dist/stored.d.ts +88 -61
- package/dist/stored.d.ts.map +1 -1
- package/dist/stored.js +480 -251
- package/dist/surface.d.ts +94 -0
- package/dist/surface.d.ts.map +1 -0
- package/dist/surface.js +255 -0
- package/dist/sync.d.ts +21 -0
- package/dist/sync.d.ts.map +1 -0
- package/dist/sync.js +557 -0
- package/dist/tables.d.ts +128 -102
- package/dist/tables.d.ts.map +1 -1
- package/dist/tables.js +209 -330
- package/dist/tallies.d.ts +18 -0
- package/dist/tallies.d.ts.map +1 -0
- package/dist/tallies.js +128 -0
- package/dist/transfer.d.ts +0 -5
- package/dist/transfer.d.ts.map +1 -1
- package/dist/validation.d.ts +5 -4
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +87 -105
- package/dist/windows.d.ts +1 -12
- package/dist/windows.d.ts.map +1 -1
- package/dist/windows.js +2 -75
- package/dist/wire.d.ts +85 -14
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +37 -15
- package/package.json +4 -3
- package/dist/attempt.d.ts +0 -16
- package/dist/attempt.d.ts.map +0 -1
- package/dist/attempt.js +0 -70
- package/dist/fence.d.ts +0 -6
- package/dist/fence.d.ts.map +0 -1
- package/dist/fence.js +0 -10
- package/dist/fulltext.d.ts +0 -27
- package/dist/fulltext.d.ts.map +0 -1
- package/dist/fulltext.js +0 -368
- package/dist/log.d.ts +0 -5
- package/dist/log.d.ts.map +0 -1
- package/dist/log.js +0 -14
- package/dist/words.d.ts +0 -19
- package/dist/words.d.ts.map +0 -1
- package/dist/words.js +0 -156
package/dist/host.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { queryKey } from '@agentshouse/mdmodel';
|
|
2
|
+
import { composeRuntime } from './connection.js';
|
|
3
|
+
import { untilAnswered } from './recovery.js';
|
|
3
4
|
import { described } from './failure.js';
|
|
4
|
-
import {
|
|
5
|
+
import { observed } from './observation.js';
|
|
6
|
+
import { answeredResult } from './outcome.js';
|
|
7
|
+
import { AUTHORIZATION_ENDED, WIRE, wireRequest, } from './wire.js';
|
|
5
8
|
const NARROWED = new Set(['within', 'whole']);
|
|
6
|
-
|
|
9
|
+
const UNWAITED_MEMBERS = new Set(['call', 'queryHouse']);
|
|
10
|
+
const UNWAITED_TOPICS = new Set([
|
|
11
|
+
'deployment-facts',
|
|
12
|
+
'room-drafts',
|
|
13
|
+
'sync-status',
|
|
14
|
+
'connection-refusal',
|
|
15
|
+
'storage-loss',
|
|
16
|
+
'service-mode',
|
|
17
|
+
'authority-changes',
|
|
18
|
+
]);
|
|
19
|
+
function answered(md, app, writtenBy, member, input, said) {
|
|
7
20
|
switch (member) {
|
|
8
21
|
case 'rooms':
|
|
9
22
|
return md.rooms();
|
|
@@ -11,34 +24,48 @@ function answered(md, app, writtenBy, member, input) {
|
|
|
11
24
|
return md.query(input[0]);
|
|
12
25
|
case 'search':
|
|
13
26
|
return md.search(input[0]);
|
|
27
|
+
case 'queryHouse':
|
|
28
|
+
return md.queryHouse(input[0], input[1]);
|
|
14
29
|
case 'types':
|
|
15
30
|
return md.types(input[0]);
|
|
16
31
|
case 'save':
|
|
17
|
-
return md
|
|
32
|
+
return md
|
|
33
|
+
.save(input[0], input[1], writtenBy)
|
|
34
|
+
.then(said);
|
|
18
35
|
case 'saveParts':
|
|
19
|
-
return md
|
|
36
|
+
return md
|
|
37
|
+
.saveParts(input[0], input[1], writtenBy)
|
|
38
|
+
.then(said);
|
|
20
39
|
case 'history':
|
|
21
40
|
return md.history(input[0], input[1], input[2]);
|
|
22
41
|
case 'resolve':
|
|
23
42
|
return md.resolve(input[0], input[1], input[2]);
|
|
24
|
-
case '
|
|
25
|
-
return md.
|
|
26
|
-
case '
|
|
27
|
-
return md.
|
|
28
|
-
case '
|
|
29
|
-
return md.
|
|
30
|
-
case '
|
|
31
|
-
return md.
|
|
32
|
-
case '
|
|
33
|
-
return md.
|
|
43
|
+
case 'attachment.read':
|
|
44
|
+
return md.attachment.read(input[0], input[1], input[2]);
|
|
45
|
+
case 'attachment.link':
|
|
46
|
+
return md.attachment.link(input[0], input[1], input[2]);
|
|
47
|
+
case 'attachment.show':
|
|
48
|
+
return md.attachment.show(input[0], input[1], input[2]);
|
|
49
|
+
case 'attachment.attach':
|
|
50
|
+
return md.attachment.attach(input[0], input[1]);
|
|
51
|
+
case 'attachment.part':
|
|
52
|
+
return md.attachment.part(input[0], input[1]);
|
|
34
53
|
case 'call':
|
|
35
54
|
return md.call(input[0], input[1]);
|
|
55
|
+
case 'answered':
|
|
56
|
+
return md.answered(input[0]);
|
|
36
57
|
case 'reached':
|
|
37
58
|
return md.reached(input[0], input[1], input[2]);
|
|
38
|
-
case 'log':
|
|
39
|
-
return md.log();
|
|
40
59
|
case 'cleanUp':
|
|
41
60
|
return md.cleanUp();
|
|
61
|
+
case 'unsent':
|
|
62
|
+
return md.unsent();
|
|
63
|
+
case 'sent':
|
|
64
|
+
return md.sent();
|
|
65
|
+
case 'reset':
|
|
66
|
+
return md.reset();
|
|
67
|
+
case 'readAgain':
|
|
68
|
+
return md.readAgain();
|
|
42
69
|
case 'persistence':
|
|
43
70
|
return md.persistence();
|
|
44
71
|
case 'retry':
|
|
@@ -68,19 +95,39 @@ function answered(md, app, writtenBy, member, input) {
|
|
|
68
95
|
case 'conversation.send':
|
|
69
96
|
return md.conversation.send(input[0], input[1], input[2]);
|
|
70
97
|
case 'conversation.answer':
|
|
71
|
-
return md.conversation.answer(input[0], input[1]);
|
|
98
|
+
return md.conversation.answer(input[0], input[1], input[2]);
|
|
72
99
|
case 'conversation.interrupt':
|
|
73
|
-
return md.conversation.interrupt(input[0]);
|
|
100
|
+
return md.conversation.interrupt(input[0], input[1]);
|
|
74
101
|
case 'conversation.kill':
|
|
75
|
-
return md.conversation.kill(input[0]);
|
|
76
|
-
case 'conversation.cancel':
|
|
77
|
-
return md.conversation.cancel(input[0], input[1]);
|
|
102
|
+
return md.conversation.kill(input[0], input[1]);
|
|
78
103
|
case 'conversation.delete':
|
|
79
|
-
return md.conversation.delete(input[0]);
|
|
104
|
+
return md.conversation.delete(input[0], input[1]);
|
|
105
|
+
case 'conversation.takeOut':
|
|
106
|
+
return md.conversation.takeOut(input[0], input[1], input[2]);
|
|
107
|
+
case 'conversation.decide':
|
|
108
|
+
return md.conversation.decide(input[0], input[1], input[2]);
|
|
109
|
+
case 'conversation.rename':
|
|
110
|
+
return md.conversation.rename(input[0], input[1], input[2]);
|
|
111
|
+
case 'conversation.set':
|
|
112
|
+
return md.conversation.set(input[0], input[1], input[2]);
|
|
113
|
+
case 'conversation.retry':
|
|
114
|
+
return md.conversation.retry(input[0], input[1], input[2]);
|
|
115
|
+
case 'conversation.pin':
|
|
116
|
+
return md.conversation.pin(input[0]);
|
|
117
|
+
case 'conversation.openTurn':
|
|
118
|
+
return md.conversation.openTurn(input[0], input[1]);
|
|
119
|
+
case 'conversation.dismissSuggestion':
|
|
120
|
+
return md.conversation.dismissSuggestion(input[0], input[1]);
|
|
121
|
+
case 'conversation.attach':
|
|
122
|
+
return md.conversation.attach(input[0]);
|
|
123
|
+
case 'conversation.attachment':
|
|
124
|
+
return md.conversation.attachment(input[0]);
|
|
80
125
|
case 'chatDraft.write':
|
|
81
126
|
return md.chatDraft.write(input[0], input[1], input[2]);
|
|
82
127
|
case 'chatDraft.prepend':
|
|
83
128
|
return md.chatDraft.prepend(input[0], input[1]);
|
|
129
|
+
case 'chatDraft.append':
|
|
130
|
+
return md.chatDraft.append(input[0], input[1]);
|
|
84
131
|
case 'chatDraft.discard':
|
|
85
132
|
return md.chatDraft.discard(input[0]);
|
|
86
133
|
}
|
|
@@ -93,16 +140,20 @@ function attempted(work) {
|
|
|
93
140
|
return Promise.reject(error);
|
|
94
141
|
}
|
|
95
142
|
}
|
|
96
|
-
function answeredResult(value) {
|
|
97
|
-
return typeof value === 'object' && value !== null && !('pending' in value);
|
|
98
|
-
}
|
|
99
143
|
function answeredMessage(value) {
|
|
100
144
|
if (typeof value !== 'object' || value === null)
|
|
101
145
|
return false;
|
|
102
|
-
return
|
|
146
|
+
return 'result' in value ? answeredResult(value.result) : !('pending' in value);
|
|
103
147
|
}
|
|
104
148
|
export function serveMdRuntime(options) {
|
|
105
149
|
const deploymentFacts = structuredClone(options.deploymentFacts);
|
|
150
|
+
const saveMessages = new Map(Object.entries(options.saveMessages ?? {}));
|
|
151
|
+
const said = (result) => {
|
|
152
|
+
if (result.outcome !== 'refused')
|
|
153
|
+
return result;
|
|
154
|
+
const message = saveMessages.get(result.code);
|
|
155
|
+
return message === undefined ? result : { ...result, message };
|
|
156
|
+
};
|
|
106
157
|
const closing = new AbortController();
|
|
107
158
|
const close = () => {
|
|
108
159
|
closing.abort();
|
|
@@ -114,16 +165,18 @@ export function serveMdRuntime(options) {
|
|
|
114
165
|
const { md } = runtime;
|
|
115
166
|
const attachments = new Map();
|
|
116
167
|
let authorized = true;
|
|
168
|
+
let opening = null;
|
|
169
|
+
const opened = () => (opening ??= untilAnswered(() => md.loaded(), closing.signal, () => true, options.recovery));
|
|
117
170
|
const watchFacts = (deliver) => {
|
|
118
171
|
deliver(structuredClone(deploymentFacts));
|
|
119
172
|
return () => { };
|
|
120
173
|
};
|
|
121
|
-
function attach(port,
|
|
174
|
+
function attach(port, options) {
|
|
122
175
|
if (!authorized)
|
|
123
176
|
throw new Error(AUTHORIZATION_ENDED);
|
|
177
|
+
const { app, release, reach, admission, code = 'stored', first = null } = options;
|
|
124
178
|
const writtenBy = release === undefined ? undefined : { app, release };
|
|
125
|
-
|
|
126
|
-
const view = runtime.within(reach ?? null, facts);
|
|
179
|
+
const view = runtime.within(reach ?? null, { target: app, code, first, inboxed: null });
|
|
127
180
|
const observations = new Map();
|
|
128
181
|
const followed = new Set();
|
|
129
182
|
const answeredKeys = new Set();
|
|
@@ -149,6 +202,7 @@ export function serveMdRuntime(options) {
|
|
|
149
202
|
observations.clear();
|
|
150
203
|
for (const end of [...followed])
|
|
151
204
|
end();
|
|
205
|
+
view.close();
|
|
152
206
|
attachments.delete(detach);
|
|
153
207
|
};
|
|
154
208
|
const observe = (id, topic, input) => {
|
|
@@ -161,9 +215,16 @@ export function serveMdRuntime(options) {
|
|
|
161
215
|
if (topic === 'query' && answeredMessage(value))
|
|
162
216
|
answeredQuery(input[0]);
|
|
163
217
|
};
|
|
218
|
+
const fail = (error) => {
|
|
219
|
+
if (!serving || resolved)
|
|
220
|
+
return;
|
|
221
|
+
observations.get(id)?.();
|
|
222
|
+
observations.delete(id);
|
|
223
|
+
send({ kind: 'failure', id, ...described(error) });
|
|
224
|
+
};
|
|
164
225
|
observations.set(id, topic === 'deployment-facts'
|
|
165
226
|
? watchFacts(deliver)
|
|
166
|
-
: (NARROWED.has(WIRE.topics[topic]) ? view : runtime).watch(topic, topic === 'presentation' ? [app] : input, deliver));
|
|
227
|
+
: (NARROWED.has(WIRE.topics[topic]) ? view : runtime).watch(topic, topic === 'presentation' ? [app] : input, deliver, fail));
|
|
167
228
|
};
|
|
168
229
|
const reply = async (id, query, pending) => {
|
|
169
230
|
try {
|
|
@@ -179,6 +240,15 @@ export function serveMdRuntime(options) {
|
|
|
179
240
|
send({ kind: 'failure', id, ...described(error) });
|
|
180
241
|
}
|
|
181
242
|
};
|
|
243
|
+
const admitted = admission === undefined
|
|
244
|
+
? view.md
|
|
245
|
+
: {
|
|
246
|
+
...view.md,
|
|
247
|
+
async call(name, input) {
|
|
248
|
+
const decided = await admission(name, input);
|
|
249
|
+
return 'refused' in decided ? decided.refused : view.md.call(name, decided.admitted);
|
|
250
|
+
},
|
|
251
|
+
};
|
|
182
252
|
const serve = async (message) => {
|
|
183
253
|
if (message.kind === 'hello')
|
|
184
254
|
return;
|
|
@@ -188,7 +258,11 @@ export function serveMdRuntime(options) {
|
|
|
188
258
|
return;
|
|
189
259
|
}
|
|
190
260
|
try {
|
|
191
|
-
if (message.kind
|
|
261
|
+
if (message.kind === 'observe') {
|
|
262
|
+
if (!UNWAITED_TOPICS.has(message.topic))
|
|
263
|
+
await opened();
|
|
264
|
+
}
|
|
265
|
+
else if (!UNWAITED_MEMBERS.has(message.member))
|
|
192
266
|
await md.loaded();
|
|
193
267
|
if (message.kind === 'observe') {
|
|
194
268
|
if (serving)
|
|
@@ -202,13 +276,13 @@ export function serveMdRuntime(options) {
|
|
|
202
276
|
return;
|
|
203
277
|
}
|
|
204
278
|
const { id, member, input } = message;
|
|
205
|
-
const pending = attempted(() => answered(NARROWED.has(WIRE.members[member].reach) ?
|
|
279
|
+
const pending = attempted(() => answered(NARROWED.has(WIRE.members[member].reach) ? admitted : md, app, writtenBy, member, input, said));
|
|
206
280
|
return reply(id, member === 'query' ? input[0] : undefined, pending);
|
|
207
281
|
};
|
|
208
282
|
port.addEventListener('message', (event) => {
|
|
209
283
|
if (!serving)
|
|
210
284
|
return;
|
|
211
|
-
const message =
|
|
285
|
+
const message = wireRequest(event.data);
|
|
212
286
|
if (message === null)
|
|
213
287
|
return;
|
|
214
288
|
void serve(message);
|
|
@@ -222,17 +296,9 @@ export function serveMdRuntime(options) {
|
|
|
222
296
|
if (serving)
|
|
223
297
|
view.narrow(next);
|
|
224
298
|
},
|
|
225
|
-
code(next
|
|
226
|
-
if (
|
|
227
|
-
|
|
228
|
-
facts = { ...facts, code: next, space };
|
|
229
|
-
view.facts(facts);
|
|
230
|
-
},
|
|
231
|
-
search(next) {
|
|
232
|
-
if (!serving)
|
|
233
|
-
return;
|
|
234
|
-
facts = { ...facts, search: next };
|
|
235
|
-
view.facts(facts);
|
|
299
|
+
code(next) {
|
|
300
|
+
if (serving)
|
|
301
|
+
view.code(next);
|
|
236
302
|
},
|
|
237
303
|
answered(queries, done) {
|
|
238
304
|
const keys = queries.map(queryKey);
|
|
@@ -244,10 +310,18 @@ export function serveMdRuntime(options) {
|
|
|
244
310
|
readiness(deliver) {
|
|
245
311
|
if (!serving)
|
|
246
312
|
return () => { };
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
313
|
+
let shown = null;
|
|
314
|
+
const stop = view.watch('readiness', [], (message) => {
|
|
315
|
+
if (!serving)
|
|
316
|
+
return;
|
|
317
|
+
if (shown !== null) {
|
|
318
|
+
shown.receive(message);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
shown = observed(message, () => { }, 'readiness');
|
|
322
|
+
shown.observation.subscribe((value) => deliver(value));
|
|
323
|
+
deliver(shown.observation.current());
|
|
324
|
+
}, () => { });
|
|
251
325
|
const end = () => {
|
|
252
326
|
followed.delete(end);
|
|
253
327
|
stop();
|
|
@@ -259,15 +333,15 @@ export function serveMdRuntime(options) {
|
|
|
259
333
|
}
|
|
260
334
|
return {
|
|
261
335
|
attach,
|
|
336
|
+
present(app, members) {
|
|
337
|
+
return md.presentation.edit(app, members);
|
|
338
|
+
},
|
|
262
339
|
seed(entry) {
|
|
263
340
|
runtime.seed(entry);
|
|
264
341
|
},
|
|
265
342
|
persisted(answer) {
|
|
266
343
|
runtime.persisted(answer);
|
|
267
344
|
},
|
|
268
|
-
shown(onScreen) {
|
|
269
|
-
runtime.shown(onScreen);
|
|
270
|
-
},
|
|
271
345
|
async endAuthorization(holder) {
|
|
272
346
|
authorized = false;
|
|
273
347
|
for (const [detach, send] of [...attachments]) {
|
|
@@ -279,9 +353,6 @@ export function serveMdRuntime(options) {
|
|
|
279
353
|
await options.shell.dropGeneration();
|
|
280
354
|
}
|
|
281
355
|
},
|
|
282
|
-
lose(locators) {
|
|
283
|
-
return runtime.lose(locators);
|
|
284
|
-
},
|
|
285
356
|
stop() {
|
|
286
357
|
return runtime.stop();
|
|
287
358
|
},
|
|
@@ -289,3 +360,6 @@ export function serveMdRuntime(options) {
|
|
|
289
360
|
}
|
|
290
361
|
export { entrySeedOf } from './seed.js';
|
|
291
362
|
export { createRecovery, retryDelay, } from './recovery.js';
|
|
363
|
+
export { replaces } from './observation.js';
|
|
364
|
+
export { undeclared } from './outcome.js';
|
|
365
|
+
export { wireAnswer, wireRequest, } from './wire.js';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type DocumentQuery, type GroupQuery } from '@agentshouse/mdmodel';
|
|
2
|
+
import type { HouseQueryGroups, HouseQueryRows, ProviderRefusal } from './adapter.js';
|
|
3
|
+
import { type Failure, type Offline } from './outcome.js';
|
|
4
|
+
import { type PortReach } from './reach.js';
|
|
5
|
+
import type { Runtime } from './runtime.js';
|
|
6
|
+
type HouseViewQuery = {
|
|
7
|
+
readonly rooms: readonly [string];
|
|
8
|
+
readonly path: string;
|
|
9
|
+
readonly after?: string;
|
|
10
|
+
};
|
|
11
|
+
export type HouseQuery = ((DocumentQuery | GroupQuery) & {
|
|
12
|
+
rooms: readonly [string];
|
|
13
|
+
}) | HouseViewQuery;
|
|
14
|
+
export type HouseQueryOptions = {
|
|
15
|
+
readonly fresh?: boolean;
|
|
16
|
+
};
|
|
17
|
+
export type HouseQueryResult = HouseQueryRows | HouseQueryGroups | Offline | (ProviderRefusal & {
|
|
18
|
+
kind: 'rejected';
|
|
19
|
+
}) | (ProviderRefusal & {
|
|
20
|
+
kind: 'undeclared';
|
|
21
|
+
}) | Failure;
|
|
22
|
+
export declare function queriedHouse(runtime: Runtime, input: unknown, reach: PortReach | null, options: unknown): Promise<HouseQueryResult>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=house-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"house-query.d.ts","sourceRoot":"","sources":["../src/house-query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAEV,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAA2C,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAC;AAEnG,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,UAAU,GAClB,CAAC,CAAC,aAAa,GAAG,UAAU,CAAC,GAAG;IAAE,KAAK,EAAE,SAAS,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC,GAC7D,cAAc,CAAC;AAEnB,MAAM,MAAM,iBAAiB,GAAG;IAAE,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE7D,MAAM,MAAM,gBAAgB,GACxB,cAAc,GACd,gBAAgB,GAChB,OAAO,GACP,CAAC,eAAe,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,GACxC,CAAC,eAAe,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC,GAC1C,OAAO,CAAC;AAmDZ,wBAAsB,YAAY,CAChC,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,OAAO,EACd,KAAK,EAAE,SAAS,GAAG,IAAI,EACvB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,gBAAgB,CAAC,CAiB3B"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { invalid, known, plain } from '@agentshouse/mdmodel';
|
|
2
|
+
import { listedOrHeld } from './listing.js';
|
|
3
|
+
import { normalize } from './paths.js';
|
|
4
|
+
import { failure, OFFLINE, UNCERTAIN, undeclared } from './outcome.js';
|
|
5
|
+
import { askedOnline, offline } from './online.js';
|
|
6
|
+
import { holds, queriedOnly } from './reach.js';
|
|
7
|
+
const HELD_ON_DEVICE = {
|
|
8
|
+
kind: 'rejected',
|
|
9
|
+
code: 'held-on-device',
|
|
10
|
+
fields: {},
|
|
11
|
+
retryable: false,
|
|
12
|
+
};
|
|
13
|
+
function freshOf(options) {
|
|
14
|
+
if (options === undefined)
|
|
15
|
+
return false;
|
|
16
|
+
if (!plain(options))
|
|
17
|
+
invalid('options', 'expects { fresh }');
|
|
18
|
+
known(options, ['fresh'], 'options');
|
|
19
|
+
const { fresh = false } = options;
|
|
20
|
+
if (typeof fresh !== 'boolean')
|
|
21
|
+
invalid('fresh', 'expects true or false');
|
|
22
|
+
return fresh;
|
|
23
|
+
}
|
|
24
|
+
function viewOf(query) {
|
|
25
|
+
known(query, ['path', 'after'], '');
|
|
26
|
+
const { path, after } = query;
|
|
27
|
+
if (typeof path !== 'string' || path === '' || normalize(path) !== path)
|
|
28
|
+
invalid('path', 'names a View by its Path in the Room');
|
|
29
|
+
if (after === undefined)
|
|
30
|
+
return { path };
|
|
31
|
+
if (typeof after !== 'string')
|
|
32
|
+
invalid('after', 'expects the next an earlier page answered');
|
|
33
|
+
return { path, after };
|
|
34
|
+
}
|
|
35
|
+
function houseQueryOf(input, options) {
|
|
36
|
+
if (!plain(input))
|
|
37
|
+
invalid('query', 'expects a query object');
|
|
38
|
+
const { rooms, ...query } = input;
|
|
39
|
+
if (!Array.isArray(rooms) || rooms.length !== 1 || typeof rooms[0] !== 'string')
|
|
40
|
+
invalid('rooms', 'names the one Room House answers');
|
|
41
|
+
const asked = { room: rooms[0], fresh: freshOf(options) };
|
|
42
|
+
return query.path === undefined ? { ...asked, query } : { ...asked, ...viewOf(query) };
|
|
43
|
+
}
|
|
44
|
+
async function heldHere(runtime, reach, room) {
|
|
45
|
+
return holds(reach, room) && listedOrHeld(runtime, await runtime.store.rooms([room]), room);
|
|
46
|
+
}
|
|
47
|
+
async function searchListed(runtime, room) {
|
|
48
|
+
const { roomList } = await (await runtime.store.open()).facts(['roomList']);
|
|
49
|
+
return roomList?.rooms.some((one) => one.room_ref === room && one.level === 'search') === true;
|
|
50
|
+
}
|
|
51
|
+
async function queriedHere(runtime, reach, room) {
|
|
52
|
+
if (queriedOnly(reach, runtime.socket.session.now().queriesOnly, room))
|
|
53
|
+
return true;
|
|
54
|
+
return reach === null && (await searchListed(runtime, room));
|
|
55
|
+
}
|
|
56
|
+
export async function queriedHouse(runtime, input, reach, options) {
|
|
57
|
+
const { socket } = runtime;
|
|
58
|
+
const asked = houseQueryOf(input, options);
|
|
59
|
+
await socket.ready;
|
|
60
|
+
const query = socket.queryHouse();
|
|
61
|
+
if (query === undefined)
|
|
62
|
+
return undeclared('queryHouse');
|
|
63
|
+
if (!(await queriedHere(runtime, reach, asked.room))) {
|
|
64
|
+
return (await heldHere(runtime, reach, asked.room))
|
|
65
|
+
? HELD_ON_DEVICE
|
|
66
|
+
: failure({ kind: 'room-not-readable', locator: asked.room });
|
|
67
|
+
}
|
|
68
|
+
if (await offline(runtime))
|
|
69
|
+
return OFFLINE;
|
|
70
|
+
const answer = await askedOnline(runtime, (authorization) => query(authorization, asked));
|
|
71
|
+
if (answer === null)
|
|
72
|
+
return UNCERTAIN;
|
|
73
|
+
return answer.kind === 'rows' || answer.kind === 'groups' || answer.kind === 'rejected'
|
|
74
|
+
? answer
|
|
75
|
+
: failure(answer);
|
|
76
|
+
}
|
package/dist/identity.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare function changeBatchIdentity(at?: number): string;
|
|
2
|
-
export declare function identityTime(identity: string): number;
|
|
3
2
|
export declare function roomDraftRevision(): string;
|
|
4
3
|
export declare function chatDraftRevision(): string;
|
|
5
4
|
export declare function transferIdentity(): string;
|
package/dist/identity.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,EAAE,GAAE,MAAmB,GAAG,MAAM,CAWnE;
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../src/identity.ts"],"names":[],"mappings":"AAAA,wBAAgB,mBAAmB,CAAC,EAAE,GAAE,MAAmB,GAAG,MAAM,CAWnE;AAQD,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED,wBAAgB,aAAa,IAAI,MAAM,CAEtC"}
|
package/dist/identity.js
CHANGED
|
@@ -10,9 +10,6 @@ export function changeBatchIdentity(at = Date.now()) {
|
|
|
10
10
|
const hex = [...bytes].map((byte) => byte.toString(16).padStart(2, '0')).join('');
|
|
11
11
|
return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
|
|
12
12
|
}
|
|
13
|
-
export function identityTime(identity) {
|
|
14
|
-
return Number.parseInt(identity.replaceAll('-', '').slice(0, 12), 16);
|
|
15
|
-
}
|
|
16
13
|
function randomIdentity() {
|
|
17
14
|
const bytes = new Uint8Array(16);
|
|
18
15
|
crypto.getRandomValues(bytes);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,54 @@
|
|
|
1
|
-
export type { AcceptedMessage, AcceptedRoom, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, AttachRequest, AttachResult, Authorization,
|
|
1
|
+
export type { AcceptedMessage, AcceptedRoom, ActionDeclaration, ActionRequest, ActionResult, Adapter, AdapterFailure, AttachRequest, AttachResult, AuthorityChange, Authorization, BinaryCopy, Attachment, BinaryLinkResult, BinaryRequest, BinaryResult, BootstrapPage, BootstrapRequest, BootstrapResult, Capability, ChangeAuthor, ContractUnavailable, ConversationAction, ConversationEvent, ConversationHistories, ConversationHistoryPage, ConversationHistoryRequest, ConversationMessage, ConversationStream, DiscoverResult, DiscoveredRoom, Discovery, SavedFacts, HistoryAuthor, HistoryRequest, HistoryResult, HistoryRetention, HistoryRevision, BootstrapPart, NotReady, HeldRoom, KeyedRequest, AgentEnvironment, ListedAgent, ListedConversation, ListedOwner, ListedSpaceRef, RoomList, RoomListEntry, SpaceListEntry, MdModelIdentity, Member, MutationRequest, MutationResult, PageToken, ProviderLimit, ProviderRefusal, RefreshPage, RefreshRequest, RefreshResult, Retention, RetryableRefusal, RevokedAuthorization, RoomChange, RoomModels, RoomNotReadable, RoomStream, RoomStreamEvent, RoomVersionAt, HouseQueryAnswer, HouseQueryAsk, HouseQueryGroups, HouseQueryRows, SearchAnswer, SearchAsk, ServiceMode, ServiceModeSignal, TransportUncertainty, TurnOperation, TypedPath, TypedSelection, } from './adapter.js';
|
|
2
2
|
export type { Change, ChangeBatch, Precondition, RoomMove, WrittenBy } from './change.js';
|
|
3
|
-
export
|
|
4
|
-
export type {
|
|
3
|
+
export { heldFacts } from './conversation-row.js';
|
|
4
|
+
export type { ConversationAsk, ConversationHeld, ConversationLast, ConversationStart, } from './conversation-row.js';
|
|
5
|
+
export type { ChatDraft, ChatDraftSurface, ConversationAgent, ConversationAnswer, ConversationEntry, ConversationOptions, ConversationRead, ConversationSettings, ConversationState, ConversationSurface, ConversationView, RequestDecision, RunningTurn, } from './conversation.js';
|
|
6
|
+
export type { MdRuntimeOptions } from './connection.js';
|
|
7
|
+
export { PAGE_METADATA_WORDS } from './page-metadata.js';
|
|
8
|
+
export { writeRule, type WriteRefusal } from './declaration.js';
|
|
9
|
+
export type { HistoryQuery } from './actions.js';
|
|
10
|
+
export type { AppRoom, AppTypedSelection } from './listing.js';
|
|
11
|
+
export type { ConnectionRefusal, ConnectionRefusalCode } from './socket.js';
|
|
12
|
+
export type { MdRuntime, RoomSchemas } from './surface.js';
|
|
13
|
+
export type { AttachmentSurface, SavedParts, SavedRoomDraft, SaveResult } from './saves.js';
|
|
5
14
|
export type { Observation } from './observation.js';
|
|
6
|
-
export type {
|
|
7
|
-
export type {
|
|
15
|
+
export type { DayFigures, Figures, FiguresResult, RoomFigures } from './figures.js';
|
|
16
|
+
export type { HeldApp, Holdings, RoomDocuments } from './holdings.js';
|
|
17
|
+
export type { PresentationSurface, RoomDraftSurface } from './room-drafts.js';
|
|
18
|
+
export type { AttachAnswer, BinaryAnswer, BinaryLinkAnswer, CallResult, ShownAnswer, ConversationAttachAnswer, DownloadAnswer, Failure, HistoryAnswer, Offline, QueueEntry, Resolution, Submission, } from './outcome.js';
|
|
19
|
+
export { blobOf, declaredType } from './outcome.js';
|
|
20
|
+
export type { AttachmentRecord } from './binary.js';
|
|
8
21
|
export type { RuntimeError } from './failure.js';
|
|
9
|
-
export
|
|
22
|
+
export { refusalError } from './failure.js';
|
|
23
|
+
export type { ChangedPart, FieldValue, Marks, ReturnReason, RoomDraft, RoomDraftCreation, RoomDraftParts, RoomDraftWrite, TextParts, } from './room-draft.js';
|
|
10
24
|
export type { SaveRefusal } from './save.js';
|
|
11
|
-
export type {
|
|
25
|
+
export type { SearchFound, SearchHit, SearchRequest, SearchResult } from './search.js';
|
|
26
|
+
export type { HouseQuery, HouseQueryOptions, HouseQueryResult } from './house-query.js';
|
|
27
|
+
export { keptFile, keptLines } from './chat-types.js';
|
|
28
|
+
export { FIGURES_DAY_MS } from './figures.js';
|
|
12
29
|
export { departure } from './change.js';
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
30
|
+
export { definitionsIn, selected } from './collection.js';
|
|
31
|
+
export { lineEnded, partsAfter, partsChanges } from './room-draft.js';
|
|
32
|
+
export { cutName, nameFrom } from './name.js';
|
|
33
|
+
export { HISTORY_CONVERSATIONS, newChat } from './conversation.js';
|
|
34
|
+
export { contextFigure } from './context.js';
|
|
35
|
+
export { runningWords } from './running.js';
|
|
36
|
+
export { turnLine, WORKING } from './parts.js';
|
|
16
37
|
export { changeBatchIdentity } from './identity.js';
|
|
17
38
|
export { paced, ROW_WEIGHT, stepped } from './turn.js';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export
|
|
22
|
-
export
|
|
39
|
+
export { authoredAt, covered } from './paths.js';
|
|
40
|
+
export { untilAnswered } from './recovery.js';
|
|
41
|
+
export { createRetries, STEPS, retrying, Unanswered, uncertainError, type RetriedFailure, type Retries, type Step, } from './retried.js';
|
|
42
|
+
export { patching } from './shared.js';
|
|
43
|
+
export { acting, type Acting, type ActingRules, type Ended, type Lane, type LaneShown, type Send, } from './act-lanes.js';
|
|
44
|
+
export { expectation, expecting, type Descriptor, type Expectation, type Expected, type Expecting, } from './expectation.js';
|
|
45
|
+
export type { AppCode, HeldCode, RuntimeShell, UnsentKind, UnsentWork } from './durability.js';
|
|
46
|
+
export { leftToSend } from './durability.js';
|
|
47
|
+
export type { CodeAvailability, ConnectionAvailability, ConversationCoverage, Durability, HouseOutcome, Installation, InstallationAmount, InstallationStep, Persistence, Readiness, ReadinessStatus, RoomCoverage, RoomPreparation, Space, TargetCoverage, } from './readiness.js';
|
|
48
|
+
export type { ObservedRead } from './reads.js';
|
|
23
49
|
export type { AttentionEntry, SyncStatus } from './status.js';
|
|
24
|
-
export type {
|
|
50
|
+
export type { Direction, DocumentQuery, Filter, GroupKey, GroupOrder, GroupQuery, GroupSelect, Key, LocalQuery, OrderOptions, Predicate, Related, Select, Value, Where, } from '@agentshouse/mdmodel';
|
|
51
|
+
export type { Awaits, Backlink, CoveredRoom, DocumentResult, GroupResult, GroupTotal, PendingResult, PendingRoom, QueryCoverage, QueryDocument, QueryGroup, QueryResult, QueryRows, } from './query.js';
|
|
25
52
|
export type { MdType, ModelIdentity, ModelSnapshot, ModelState, ModelResult, TypesResult, ValidationReceipt, } from './model.js';
|
|
26
53
|
export type { OperationScopes, ReplicaAdmission, ScopedRefusal } from './adapter.js';
|
|
27
54
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,YAAY,EACZ,OAAO,EACP,cAAc,EACd,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EACvB,0BAA0B,EAC1B,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,EACV,aAAa,EACb,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,WAAW,EACX,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,QAAQ,EACR,aAAa,EACb,cAAc,EACd,eAAe,EACf,MAAM,EACN,eAAe,EACf,cAAc,EACd,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,SAAS,EACT,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,EACV,UAAU,EACV,eAAe,EACf,UAAU,EACV,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,WAAW,EACX,iBAAiB,EACjB,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC1F,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MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,WAAW,EACX,GAAG,EACH,UAAU,EACV,YAAY,EACZ,SAAS,EACT,OAAO,EACP,MAAM,EACN,KAAK,EACL,KAAK,GACN,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,MAAM,EACN,QAAQ,EACR,WAAW,EACX,cAAc,EACd,WAAW,EACX,UAAU,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,aAAa,EACb,UAAU,EACV,WAAW,EACX,SAAS,GACV,MAAM,YAAY,CAAC;AAEpB,YAAY,EACV,MAAM,EACN,aAAa,EACb,aAAa,EACb,UAAU,EACV,WAAW,EACX,WAAW,EACX,iBAAiB,GAClB,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
+
export { heldFacts } from './conversation-row.js';
|
|
2
|
+
export { PAGE_METADATA_WORDS } from './page-metadata.js';
|
|
3
|
+
export { writeRule } from './declaration.js';
|
|
4
|
+
export { blobOf, declaredType } from './outcome.js';
|
|
5
|
+
export { refusalError } from './failure.js';
|
|
6
|
+
export { keptFile, keptLines } from './chat-types.js';
|
|
7
|
+
export { FIGURES_DAY_MS } from './figures.js';
|
|
1
8
|
export { departure } from './change.js';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
9
|
+
export { definitionsIn, selected } from './collection.js';
|
|
10
|
+
export { lineEnded, partsAfter, partsChanges } from './room-draft.js';
|
|
11
|
+
export { cutName, nameFrom } from './name.js';
|
|
12
|
+
export { HISTORY_CONVERSATIONS, newChat } from './conversation.js';
|
|
13
|
+
export { contextFigure } from './context.js';
|
|
14
|
+
export { runningWords } from './running.js';
|
|
15
|
+
export { turnLine, WORKING } from './parts.js';
|
|
5
16
|
export { changeBatchIdentity } from './identity.js';
|
|
6
17
|
export { paced, ROW_WEIGHT, stepped } from './turn.js';
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
18
|
+
export { authoredAt, covered } from './paths.js';
|
|
19
|
+
export { untilAnswered } from './recovery.js';
|
|
20
|
+
export { createRetries, STEPS, retrying, Unanswered, uncertainError, } from './retried.js';
|
|
21
|
+
export { patching } from './shared.js';
|
|
22
|
+
export { acting, } from './act-lanes.js';
|
|
23
|
+
export { expectation, expecting, } from './expectation.js';
|
|
24
|
+
export { leftToSend } from './durability.js';
|