@agentshouse/mdruntime 0.1.0-cfb2ae0107054 → 0.1.0-cfcbb238a5fa0
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/AGENTS.md +262 -262
- package/dist/acquisition.d.ts +14 -0
- package/dist/acquisition.d.ts.map +1 -0
- package/dist/acquisition.js +24 -0
- package/dist/adapter.d.ts +14 -7
- package/dist/adapter.d.ts.map +1 -1
- package/dist/bootstrap.d.ts +2 -1
- package/dist/bootstrap.d.ts.map +1 -1
- package/dist/bootstrap.js +4 -0
- package/dist/change-set.d.ts +2 -0
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +36 -10
- package/dist/chat/kit.d.ts +2 -1
- package/dist/chat/kit.d.ts.map +1 -1
- package/dist/chat/kit.js +3 -3
- package/dist/chat/list.d.ts +2 -1
- package/dist/chat/list.d.ts.map +1 -1
- package/dist/chat/list.js +4 -3
- package/dist/chat/message.d.ts.map +1 -1
- package/dist/chat/message.js +2 -2
- package/dist/chat/messages.d.ts +1 -0
- package/dist/chat/messages.d.ts.map +1 -1
- package/dist/chat/messages.js +4 -0
- package/dist/chat/provider.d.ts +1 -1
- package/dist/chat/provider.d.ts.map +1 -1
- package/dist/chat/provider.js +26 -17
- package/dist/chat/ready.d.ts +1 -0
- package/dist/chat/ready.d.ts.map +1 -1
- package/dist/chat/ready.js +2 -2
- package/dist/client.d.ts +10 -6
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +11 -2
- package/dist/collection.d.ts +17 -3
- package/dist/collection.d.ts.map +1 -1
- package/dist/collection.js +230 -19
- package/dist/connection.d.ts +23 -7
- package/dist/connection.d.ts.map +1 -1
- package/dist/connection.js +1065 -192
- package/dist/conversation.d.ts +11 -5
- package/dist/conversation.d.ts.map +1 -1
- package/dist/conversation.js +241 -100
- package/dist/durability.d.ts +7 -1
- package/dist/durability.d.ts.map +1 -1
- package/dist/entry.d.ts +2 -2
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +3 -3
- package/dist/host.d.ts +16 -2
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +82 -8
- package/dist/identity.d.ts +2 -0
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +6 -0
- package/dist/index.d.ts +8 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/memory.d.ts +7 -2
- package/dist/memory.d.ts.map +1 -1
- package/dist/memory.js +20 -7
- package/dist/model.d.ts +4 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +10 -1
- package/dist/observation.d.ts +5 -2
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +22 -11
- package/dist/overlay.d.ts +2 -0
- package/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +58 -55
- package/dist/query.d.ts +35 -3
- package/dist/query.d.ts.map +1 -1
- package/dist/query.js +8 -2
- package/dist/reach.d.ts +6 -3
- package/dist/reach.d.ts.map +1 -1
- package/dist/reach.js +16 -4
- package/dist/react.d.ts +7 -4
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +6 -4
- package/dist/read-side.d.ts +13 -6
- package/dist/read-side.d.ts.map +1 -1
- package/dist/read-side.js +285 -83
- package/dist/readiness.d.ts +53 -0
- package/dist/readiness.d.ts.map +1 -0
- package/dist/readiness.js +33 -0
- package/dist/reads.d.ts +11 -0
- package/dist/reads.d.ts.map +1 -0
- package/dist/reads.js +98 -0
- package/dist/recovery.d.ts +25 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +197 -0
- package/dist/refresh.d.ts +4 -4
- package/dist/refresh.d.ts.map +1 -1
- package/dist/refresh.js +17 -10
- package/dist/replica.d.ts +1 -1
- package/dist/replica.d.ts.map +1 -1
- package/dist/replica.js +57 -20
- package/dist/room-draft.d.ts +13 -1
- package/dist/room-draft.d.ts.map +1 -1
- package/dist/room-draft.js +2 -2
- package/dist/rows.d.ts +5 -13
- package/dist/rows.d.ts.map +1 -1
- package/dist/rows.js +5 -13
- package/dist/save.d.ts +5 -0
- package/dist/save.d.ts.map +1 -1
- package/dist/save.js +36 -13
- package/dist/search.d.ts +36 -6
- package/dist/search.d.ts.map +1 -1
- package/dist/search.js +132 -46
- package/dist/seed.d.ts +16 -0
- package/dist/seed.d.ts.map +1 -0
- package/dist/seed.js +61 -0
- package/dist/shared.d.ts +11 -0
- package/dist/shared.d.ts.map +1 -0
- package/dist/shared.js +368 -0
- package/dist/status.d.ts +4 -0
- package/dist/status.d.ts.map +1 -1
- package/dist/store.d.ts +21 -5
- package/dist/store.d.ts.map +1 -1
- package/dist/store.js +157 -53
- package/dist/turn.d.ts +7 -0
- package/dist/turn.d.ts.map +1 -0
- package/dist/turn.js +45 -0
- package/dist/wire.d.ts +136 -32
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js +48 -31
- package/package.json +2 -2
package/dist/wire.js
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
+
import { UNCERTAIN } from './outcome.js';
|
|
1
2
|
const MEMBERS = {
|
|
2
|
-
rooms: 'within',
|
|
3
|
-
query: 'within',
|
|
4
|
-
search: 'within',
|
|
5
|
-
types: 'within',
|
|
6
|
-
save: 'within',
|
|
7
|
-
history: 'within',
|
|
8
|
-
'binaryFile.read': 'within',
|
|
9
|
-
'binaryFile.readReference': 'within',
|
|
10
|
-
call: 'actions',
|
|
11
|
-
reached: 'within',
|
|
12
|
-
log: 'whole',
|
|
13
|
-
persistence: 'runtime',
|
|
14
|
-
|
|
15
|
-
'
|
|
16
|
-
'roomDraft.
|
|
17
|
-
'roomDraft.
|
|
18
|
-
'roomDraft.
|
|
19
|
-
'
|
|
20
|
-
'presentation.
|
|
21
|
-
'
|
|
22
|
-
'conversation.
|
|
23
|
-
'conversation.
|
|
24
|
-
'conversation.
|
|
25
|
-
'conversation.
|
|
26
|
-
'conversation.
|
|
27
|
-
'conversation.
|
|
28
|
-
'conversation.
|
|
29
|
-
'conversation.
|
|
30
|
-
'
|
|
31
|
-
'chatDraft.
|
|
3
|
+
rooms: { reach: 'within', effect: 'read' },
|
|
4
|
+
query: { reach: 'within', effect: 'read' },
|
|
5
|
+
search: { reach: 'within', effect: 'read' },
|
|
6
|
+
types: { reach: 'within', effect: 'read' },
|
|
7
|
+
save: { reach: 'within', effect: 'write' },
|
|
8
|
+
history: { reach: 'within', effect: 'read' },
|
|
9
|
+
'binaryFile.read': { reach: 'within', effect: 'read' },
|
|
10
|
+
'binaryFile.readReference': { reach: 'within', effect: 'read' },
|
|
11
|
+
call: { reach: 'actions', effect: 'action' },
|
|
12
|
+
reached: { reach: 'within', effect: 'read' },
|
|
13
|
+
log: { reach: 'whole', effect: 'read' },
|
|
14
|
+
persistence: { reach: 'runtime', effect: 'read' },
|
|
15
|
+
retry: { reach: 'runtime', effect: 'write' },
|
|
16
|
+
reauthorize: { reach: 'runtime', effect: 'write' },
|
|
17
|
+
'roomDraft.list': { reach: 'within', effect: 'read' },
|
|
18
|
+
'roomDraft.read': { reach: 'within', effect: 'read' },
|
|
19
|
+
'roomDraft.write': { reach: 'within', effect: 'write' },
|
|
20
|
+
'roomDraft.discard': { reach: 'within', effect: 'write' },
|
|
21
|
+
'presentation.read': { reach: 'app', effect: 'read' },
|
|
22
|
+
'presentation.write': { reach: 'app', effect: 'write' },
|
|
23
|
+
'conversation.list': { reach: 'within', effect: 'read' },
|
|
24
|
+
'conversation.read': { reach: 'within', effect: 'read' },
|
|
25
|
+
'conversation.create': { reach: 'within', effect: 'action' },
|
|
26
|
+
'conversation.send': { reach: 'within', effect: 'action' },
|
|
27
|
+
'conversation.answer': { reach: 'within', effect: 'action' },
|
|
28
|
+
'conversation.interrupt': { reach: 'within', effect: 'action' },
|
|
29
|
+
'conversation.kill': { reach: 'within', effect: 'action' },
|
|
30
|
+
'conversation.cancel': { reach: 'within', effect: 'action' },
|
|
31
|
+
'conversation.delete': { reach: 'within', effect: 'action' },
|
|
32
|
+
'chatDraft.write': { reach: 'within', effect: 'write' },
|
|
33
|
+
'chatDraft.discard': { reach: 'within', effect: 'write' },
|
|
32
34
|
};
|
|
33
35
|
const TOPICS = {
|
|
34
36
|
rooms: 'within',
|
|
37
|
+
readiness: 'within',
|
|
35
38
|
'connection-refusal': 'runtime',
|
|
36
39
|
'storage-loss': 'runtime',
|
|
37
40
|
'deployment-facts': 'runtime',
|
|
@@ -46,7 +49,21 @@ const TOPICS = {
|
|
|
46
49
|
conversations: 'within',
|
|
47
50
|
agents: 'within',
|
|
48
51
|
};
|
|
49
|
-
export const
|
|
52
|
+
export const WIRE = { members: MEMBERS, topics: TOPICS };
|
|
53
|
+
export function unanswered(call) {
|
|
54
|
+
const { effect } = MEMBERS[call.member];
|
|
55
|
+
if (effect === 'read')
|
|
56
|
+
return null;
|
|
57
|
+
if (effect === 'action')
|
|
58
|
+
return { kind: 'result', id: call.id, value: UNCERTAIN };
|
|
59
|
+
return {
|
|
60
|
+
kind: 'failure',
|
|
61
|
+
id: call.id,
|
|
62
|
+
message: UNCERTAIN.code,
|
|
63
|
+
code: UNCERTAIN.code,
|
|
64
|
+
retryable: UNCERTAIN.retryable,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
50
67
|
export const AUTHORIZATION_ENDED = 'the host authorization ended';
|
|
51
68
|
export const PORT_CLOSED = 'the port closed';
|
|
52
69
|
function body(message) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/mdruntime",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-cfcbb238a5fa0",
|
|
4
4
|
"description": "The headless core of MD App",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"LICENSE"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@agentshouse/mdmodel": "0.1.0-
|
|
52
|
+
"@agentshouse/mdmodel": "0.1.0-ce9295da1c4c9",
|
|
53
53
|
"@assistant-ui/react-markdown": "0.14.20",
|
|
54
54
|
"@tanstack/db": "0.9.2",
|
|
55
55
|
"lucide-react": "1.47.0",
|