@agentshouse/mdruntime-adapter 0.1.0-c8bd3a750f35b → 0.1.0-c8bfc1969f4fe
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/dist/actions.d.ts +1 -162
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +1 -220
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +37 -42
- package/dist/discovery.d.ts +7 -2
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +27 -12
- package/dist/history.d.ts +12 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +91 -0
- package/dist/house-model.d.ts +359 -2367
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +35 -1147
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +0 -1
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +27 -22
- package/dist/stream.d.ts +13 -4
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +66 -15
- package/dist/transport.d.ts +20 -4
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +4 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter, type AgentsHouseAdapterOptions } from './adapter.js';
|
|
2
2
|
export { finishedUpload, houseUpload, type HouseUpload } from './upload.js';
|
|
3
|
-
export {
|
|
3
|
+
export { houseAction, type HouseActDoor } from './actions.js';
|
|
4
|
+
export { HISTORY_PAGE } from './history.js';
|
|
4
5
|
export { houseParts, type ChangeMapping } from './write.js';
|
|
5
6
|
export { APP_REFERENCE_PATTERN } from './app-reference.js';
|
|
6
7
|
export { HOUSE_MODEL_DECLARATION, HOUSE_MODEL_TYPES, type HouseDocumentFields, type HouseModelType, } from './house-model.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,KAAK,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,mBAAmB,EACxB,KAAK,cAAc,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,yBAAyB,EACzB,gBAAgB,EAChB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,KAAK,gBAAgB,GACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,KAAK,eAAe,EACpB,KAAK,iBAAiB,GACvB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,GACf,MAAM,gBAAgB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { createAgentsHouseAdapter } from './adapter.js';
|
|
2
2
|
export { finishedUpload, houseUpload } from './upload.js';
|
|
3
|
-
export {
|
|
3
|
+
export { houseAction } from './actions.js';
|
|
4
|
+
export { HISTORY_PAGE } from './history.js';
|
|
4
5
|
export { houseParts } from './write.js';
|
|
5
6
|
export { APP_REFERENCE_PATTERN } from './app-reference.js';
|
|
6
7
|
export { HOUSE_MODEL_DECLARATION, HOUSE_MODEL_TYPES, } from './house-model.js';
|
package/dist/room-types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"room-types.d.ts","sourceRoot":"","sources":["../src/room-types.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,YAC9B,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,WAAW,EACX,OAAO,EACP,QAAQ,CACA,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,eAAO,MAAM,yBAAyB,UAAwC,CAAC;AAyB/E,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"room-types.d.ts","sourceRoot":"","sources":["../src/room-types.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,YAC9B,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,WAAW,EACX,WAAW,EACX,OAAO,EACP,QAAQ,CACA,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEpE,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,eAAO,MAAM,kBAAkB,kBAAkB,CAAC;AAElD,eAAO,MAAM,yBAAyB,UAAwC,CAAC;AAyB/E,eAAO,MAAM,gBAAgB,QA6FjB,CAAC"}
|
package/dist/room-types.js
CHANGED
package/dist/site.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../src/site.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAQR,MAAM,wBAAwB,CAAC;AAehC,OAAO,
|
|
1
|
+
{"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../src/site.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAQR,MAAM,wBAAwB,CAAC;AAehC,OAAO,EAKL,KAAK,kBAAkB,EACxB,MAAM,gBAAgB,CAAC;AAuBxB,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,kBAAkB,EAAE,QAAQ,UAAQ,GAAG,OAAO,CAkK1F"}
|
package/dist/site.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { stepped } from '@agentshouse/mdruntime';
|
|
2
|
-
import { actionOutcome
|
|
2
|
+
import { actionOutcome } from './actions.js';
|
|
3
3
|
import { mapDiscovery, parseSiteDiscovery, siteCapabilities, siteTracked, } from './discovery.js';
|
|
4
4
|
import { bootstrapping } from './read.js';
|
|
5
5
|
import { roomStreams } from './room-stream.js';
|
|
6
6
|
import { classifyDoor, discoveryFailure } from './refusal.js';
|
|
7
7
|
import { HOUSE_NAMEABLE_ROOM_TYPES, HOUSE_ROOM_TYPES } from './room-types.js';
|
|
8
8
|
import { houseNotifications } from './stream.js';
|
|
9
|
-
import { houseSiteRoute, SITE_DOOR_SUBMIT, SITE_FILES, } from './transport.js';
|
|
9
|
+
import { houseSiteRoute, SITE_DOOR_SUBMIT, SITE_FILES, SITE_SUBMISSION, } from './transport.js';
|
|
10
10
|
import { followsVersion, logPosition, presented, reachedVersion, roomVersion } from './version.js';
|
|
11
11
|
const UNCERTAIN = { kind: 'transport-uncertainty' };
|
|
12
12
|
function unfound() {
|
|
@@ -24,7 +24,13 @@ function siteRoom(tracked) {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
export function createSiteAdapter(transport, snapshot = false) {
|
|
27
|
-
const notifications = houseNotifications(transport, 'site'
|
|
27
|
+
const notifications = houseNotifications(transport, 'site', {
|
|
28
|
+
opened: async () => {
|
|
29
|
+
const found = await discovered();
|
|
30
|
+
return found.kind === 'discovery' ? found : null;
|
|
31
|
+
},
|
|
32
|
+
changed: () => null,
|
|
33
|
+
});
|
|
28
34
|
const tracked = new Map();
|
|
29
35
|
const read = new Map();
|
|
30
36
|
const rooms = roomStreams('site');
|
|
@@ -57,29 +63,28 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
57
63
|
bytes: part.bytes,
|
|
58
64
|
};
|
|
59
65
|
}
|
|
66
|
+
async function discovered() {
|
|
67
|
+
const answer = await transport.read(houseSiteRoute('discover'));
|
|
68
|
+
const failed = discoveryFailure(answer.status, answer.body);
|
|
69
|
+
if (failed !== null)
|
|
70
|
+
return failed;
|
|
71
|
+
const document = parseSiteDiscovery(answer.body);
|
|
72
|
+
if (document === null)
|
|
73
|
+
return UNCERTAIN;
|
|
74
|
+
const entries = siteTracked(document);
|
|
75
|
+
tracked.clear();
|
|
76
|
+
for (const entry of entries)
|
|
77
|
+
tracked.set(entry.locator, entry);
|
|
78
|
+
notifications.track(entries);
|
|
79
|
+
return mapDiscovery(document, entries.map(siteRoom), siteCapabilities());
|
|
80
|
+
}
|
|
60
81
|
return {
|
|
61
82
|
localSaves: true,
|
|
62
|
-
exhaustiveDiscovery: true,
|
|
63
83
|
roomTypes: HOUSE_ROOM_TYPES,
|
|
64
84
|
nameableRoomTypes: HOUSE_NAMEABLE_ROOM_TYPES,
|
|
65
85
|
async authorize() {
|
|
66
86
|
return {};
|
|
67
87
|
},
|
|
68
|
-
async discover() {
|
|
69
|
-
const answer = await transport.read(houseSiteRoute('discover'));
|
|
70
|
-
const failed = discoveryFailure(answer.status, answer.body);
|
|
71
|
-
if (failed !== null)
|
|
72
|
-
return failed;
|
|
73
|
-
const document = parseSiteDiscovery(answer.body);
|
|
74
|
-
if (document === null)
|
|
75
|
-
return UNCERTAIN;
|
|
76
|
-
const entries = siteTracked(document);
|
|
77
|
-
tracked.clear();
|
|
78
|
-
for (const entry of entries)
|
|
79
|
-
tracked.set(entry.locator, entry);
|
|
80
|
-
notifications.track(entries);
|
|
81
|
-
return mapDiscovery(document, entries.map(siteRoom), siteCapabilities());
|
|
82
|
-
},
|
|
83
88
|
async bootstrap(_authorization, request) {
|
|
84
89
|
const entry = tracked.get(request.locator);
|
|
85
90
|
if (entry === undefined)
|
|
@@ -90,6 +95,7 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
90
95
|
},
|
|
91
96
|
...(snapshot
|
|
92
97
|
? {
|
|
98
|
+
discover: discovered,
|
|
93
99
|
async refresh(_authorization, request) {
|
|
94
100
|
const entry = tracked.get(request.locator);
|
|
95
101
|
if (entry === undefined)
|
|
@@ -139,7 +145,7 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
139
145
|
return followsVersion(version, next);
|
|
140
146
|
},
|
|
141
147
|
async action(_authorization, request) {
|
|
142
|
-
if (request.name !==
|
|
148
|
+
if (request.name !== SITE_SUBMISSION) {
|
|
143
149
|
return {
|
|
144
150
|
kind: 'rejected',
|
|
145
151
|
code: 'action-unimplemented',
|
|
@@ -149,7 +155,7 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
149
155
|
}
|
|
150
156
|
if (!transport.online())
|
|
151
157
|
return UNCERTAIN;
|
|
152
|
-
return actionOutcome(await transport.door(SITE_DOOR_SUBMIT, request.input),
|
|
158
|
+
return actionOutcome(await transport.door(SITE_DOOR_SUBMIT, request.input), SITE_SUBMISSION);
|
|
153
159
|
},
|
|
154
160
|
roomStream: snapshot
|
|
155
161
|
? undefined
|
|
@@ -161,7 +167,6 @@ export function createSiteAdapter(transport, snapshot = false) {
|
|
|
161
167
|
return entry === undefined || at === null ? [] : [presented(entry.authority, at)];
|
|
162
168
|
}));
|
|
163
169
|
},
|
|
164
|
-
reopen: notifications.reopen,
|
|
165
170
|
observe: notifications.observe,
|
|
166
171
|
},
|
|
167
172
|
serviceMode: notifications.serviceMode,
|
package/dist/stream.d.ts
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
import { type ConversationStream, type RoomStreamEvent, type ServiceModeSignal } from '@agentshouse/mdruntime';
|
|
1
|
+
import { type AuthorityChange, type Discovery, type ConversationStream, type RoomStreamEvent, type ServiceModeSignal } from '@agentshouse/mdruntime';
|
|
2
2
|
import type { TrackedAuthority } from './discovery.js';
|
|
3
|
-
import { type HouseDoor, type HouseHeldRoom, type HouseMode } from './transport.js';
|
|
3
|
+
import { type HouseDoor, type HouseHeldRoom, type HouseMode, type HouseStreamFrame } from './transport.js';
|
|
4
|
+
export type HouseOpeningFrame = Extract<HouseStreamFrame, {
|
|
5
|
+
type: 'opening';
|
|
6
|
+
}>;
|
|
7
|
+
export type HouseAuthorityChangedFrame = Extract<HouseStreamFrame, {
|
|
8
|
+
type: 'authority_changed';
|
|
9
|
+
}>;
|
|
10
|
+
export type HouseDiscovering = {
|
|
11
|
+
opened(frame: HouseOpeningFrame | null): Promise<Discovery | null>;
|
|
12
|
+
changed(frame: HouseAuthorityChangedFrame): AuthorityChange | null;
|
|
13
|
+
};
|
|
4
14
|
export type HouseNotifications = {
|
|
5
15
|
runtime: string;
|
|
6
16
|
observe(notify: (event: RoomStreamEvent) => void): () => void;
|
|
7
17
|
send(rooms: readonly HouseHeldRoom[]): void;
|
|
8
|
-
reopen(): void;
|
|
9
18
|
track(authorities: readonly TrackedAuthority[]): void;
|
|
10
19
|
conversations: ConversationStream;
|
|
11
20
|
serviceMode: ServiceModeSignal;
|
|
12
21
|
};
|
|
13
|
-
export declare function houseNotifications(transport: HouseDoor, mode: HouseMode): HouseNotifications;
|
|
22
|
+
export declare function houseNotifications(transport: HouseDoor, mode: HouseMode, discovering: HouseDiscovering): HouseNotifications;
|
|
14
23
|
//# sourceMappingURL=stream.d.ts.map
|
package/dist/stream.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../src/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,eAAe,EAEpB,KAAK,SAAS,EACd,KAAK,kBAAkB,EAIvB,KAAK,eAAe,EAEpB,KAAK,iBAAiB,EAEvB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAWvD,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,aAAa,EAElB,KAAK,SAAS,EAGd,KAAK,gBAAgB,EACtB,MAAM,gBAAgB,CAAC;AAaxB,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,EAAE;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC,CAAC;AAE/E,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,gBAAgB,EAAE;IAAE,IAAI,EAAE,mBAAmB,CAAA;CAAE,CAAC,CAAC;AAElG,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;IACnE,OAAO,CAAC,KAAK,EAAE,0BAA0B,GAAG,eAAe,GAAG,IAAI,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,GAAG,MAAM,IAAI,CAAC;IAC9D,IAAI,CAAC,KAAK,EAAE,SAAS,aAAa,EAAE,GAAG,IAAI,CAAC;IAC5C,KAAK,CAAC,WAAW,EAAE,SAAS,gBAAgB,EAAE,GAAG,IAAI,CAAC;IACtD,aAAa,EAAE,kBAAkB,CAAC;IAClC,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAkFF,wBAAgB,kBAAkB,CAChC,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,SAAS,EACf,WAAW,EAAE,gBAAgB,GAC5B,kBAAkB,CA6TpB"}
|
package/dist/stream.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ROW_WEIGHT, stepped, } from '@agentshouse/mdruntime';
|
|
2
|
-
import { acceptedMessage, cursorPosition } from './
|
|
2
|
+
import { acceptedMessage, cursorPosition, houseHistory } from './history.js';
|
|
3
3
|
import { streamedModels } from './model.js';
|
|
4
4
|
import { answered, answering, binaryFileOf, folded, forgotten, headChange, revised, } from './read.js';
|
|
5
5
|
import { houseDoorRoute, } from './transport.js';
|
|
@@ -74,7 +74,7 @@ async function changePage(tracked, entries, version, mode) {
|
|
|
74
74
|
const models = await streamedModels(schemas, tracked, mode);
|
|
75
75
|
return models === undefined ? page : { ...page, models };
|
|
76
76
|
}
|
|
77
|
-
export function houseNotifications(transport, mode) {
|
|
77
|
+
export function houseNotifications(transport, mode, discovering) {
|
|
78
78
|
const stream = transport.stream;
|
|
79
79
|
const staged = new Map();
|
|
80
80
|
let socket = null;
|
|
@@ -83,8 +83,10 @@ export function houseNotifications(transport, mode) {
|
|
|
83
83
|
const conversationObservers = new Set();
|
|
84
84
|
const modeObservers = new Set();
|
|
85
85
|
let replicated = [];
|
|
86
|
+
let listedCursor = null;
|
|
86
87
|
const live = new Set();
|
|
87
88
|
let opening = null;
|
|
89
|
+
let announced = null;
|
|
88
90
|
const runtime = crypto.randomUUID();
|
|
89
91
|
function emit(event) {
|
|
90
92
|
for (const observer of observers)
|
|
@@ -97,6 +99,7 @@ export function houseNotifications(transport, mode) {
|
|
|
97
99
|
event.kind === 'commands' ||
|
|
98
100
|
event.kind === 'options' ||
|
|
99
101
|
event.kind === 'starting' ||
|
|
102
|
+
event.kind === 'subagents' ||
|
|
100
103
|
event.kind === 'link' ||
|
|
101
104
|
event.kind === 'deliveries') {
|
|
102
105
|
live.add(event.conversation);
|
|
@@ -106,6 +109,7 @@ export function houseNotifications(transport, mode) {
|
|
|
106
109
|
}
|
|
107
110
|
function reopened(next) {
|
|
108
111
|
opening = next;
|
|
112
|
+
announced = null;
|
|
109
113
|
socket = next;
|
|
110
114
|
staged.clear();
|
|
111
115
|
const gapped = new Set([...replicated, ...live]);
|
|
@@ -113,6 +117,23 @@ export function houseNotifications(transport, mode) {
|
|
|
113
117
|
for (const conversation of gapped)
|
|
114
118
|
emitConversation({ kind: 'gap', conversation });
|
|
115
119
|
emit({ kind: 'opened' });
|
|
120
|
+
if (mode === 'site')
|
|
121
|
+
announce(next, null);
|
|
122
|
+
}
|
|
123
|
+
function announce(via, frame) {
|
|
124
|
+
void discovering.opened(frame).then((discovery) => {
|
|
125
|
+
if (socket !== via)
|
|
126
|
+
return;
|
|
127
|
+
if (discovery === null) {
|
|
128
|
+
via.close();
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
announced = { kind: 'discovered', discovery };
|
|
132
|
+
emit(announced);
|
|
133
|
+
}, () => {
|
|
134
|
+
if (socket === via)
|
|
135
|
+
via.close();
|
|
136
|
+
});
|
|
116
137
|
}
|
|
117
138
|
function converse(frame) {
|
|
118
139
|
const conversation = frame.conversation_id;
|
|
@@ -131,6 +152,7 @@ export function houseNotifications(transport, mode) {
|
|
|
131
152
|
return;
|
|
132
153
|
emitConversation({ kind: 'commands', conversation, commands: [] });
|
|
133
154
|
emitConversation({ kind: 'options', conversation, options: [] });
|
|
155
|
+
emitConversation({ kind: 'subagents', conversation, subagents: [] });
|
|
134
156
|
return;
|
|
135
157
|
}
|
|
136
158
|
if (frame.type === 'commands') {
|
|
@@ -149,6 +171,14 @@ export function houseNotifications(transport, mode) {
|
|
|
149
171
|
emitConversation({ kind: 'starting', conversation, step: frame.step });
|
|
150
172
|
return;
|
|
151
173
|
}
|
|
174
|
+
if (frame.type === 'subagents') {
|
|
175
|
+
emitConversation({
|
|
176
|
+
kind: 'subagents',
|
|
177
|
+
conversation,
|
|
178
|
+
subagents: structuredClone(frame.subagents),
|
|
179
|
+
});
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
152
182
|
if (frame.type === 'link') {
|
|
153
183
|
emitConversation({ kind: 'link', conversation, connected: frame.connected });
|
|
154
184
|
return;
|
|
@@ -205,18 +235,31 @@ export function houseNotifications(transport, mode) {
|
|
|
205
235
|
return;
|
|
206
236
|
}
|
|
207
237
|
if (frame.type === 'opening') {
|
|
238
|
+
if (via !== null && mode === 'credential')
|
|
239
|
+
announce(via, frame);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (frame.type === 'caught_up') {
|
|
208
243
|
emit({
|
|
209
|
-
kind: '
|
|
244
|
+
kind: 'caught-up',
|
|
210
245
|
expired: frame.expired.flatMap((authority) => (tracking.get(authority) ?? []).map((tracked) => tracked.locator)),
|
|
211
246
|
});
|
|
212
247
|
return;
|
|
213
248
|
}
|
|
214
249
|
if (frame.type === 'authority_changed') {
|
|
215
|
-
|
|
250
|
+
const change = discovering.changed(frame);
|
|
251
|
+
if (change !== null)
|
|
252
|
+
emit(change);
|
|
216
253
|
return;
|
|
217
254
|
}
|
|
218
255
|
if (frame.type === 'conversations') {
|
|
219
|
-
emitConversation({
|
|
256
|
+
emitConversation({
|
|
257
|
+
kind: 'list',
|
|
258
|
+
entries: frame.conversations.map(listedConversation),
|
|
259
|
+
whole: frame.whole,
|
|
260
|
+
more: frame.more,
|
|
261
|
+
cursor: frame.cursor,
|
|
262
|
+
});
|
|
220
263
|
return;
|
|
221
264
|
}
|
|
222
265
|
if (frame.type === 'conversation') {
|
|
@@ -232,6 +275,7 @@ export function houseNotifications(transport, mode) {
|
|
|
232
275
|
frame.type === 'commands' ||
|
|
233
276
|
frame.type === 'options' ||
|
|
234
277
|
frame.type === 'starting' ||
|
|
278
|
+
frame.type === 'subagents' ||
|
|
235
279
|
frame.type === 'link' ||
|
|
236
280
|
frame.type === 'deliveries' ||
|
|
237
281
|
frame.type === 'interactions' ||
|
|
@@ -265,6 +309,7 @@ export function houseNotifications(transport, mode) {
|
|
|
265
309
|
stream.opened(reopened);
|
|
266
310
|
stream.closed(({ revoked, lost }) => {
|
|
267
311
|
opening = null;
|
|
312
|
+
announced = null;
|
|
268
313
|
socket = null;
|
|
269
314
|
staged.clear();
|
|
270
315
|
emit({ kind: 'closed', revoked, lost });
|
|
@@ -283,20 +328,30 @@ export function houseNotifications(transport, mode) {
|
|
|
283
328
|
replicate(next) {
|
|
284
329
|
replicated = [...next];
|
|
285
330
|
},
|
|
331
|
+
hold(cursor) {
|
|
332
|
+
listedCursor = cursor;
|
|
333
|
+
},
|
|
286
334
|
observe(notify) {
|
|
287
335
|
conversationObservers.add(notify);
|
|
288
336
|
return () => {
|
|
289
337
|
conversationObservers.delete(notify);
|
|
290
338
|
};
|
|
291
339
|
},
|
|
292
|
-
...(mode === 'credential'
|
|
340
|
+
...(mode === 'credential'
|
|
341
|
+
? {
|
|
342
|
+
agents: () => houseAgents(transport),
|
|
343
|
+
history: (request) => houseHistory(transport, request),
|
|
344
|
+
}
|
|
345
|
+
: {}),
|
|
293
346
|
},
|
|
294
347
|
observe(notify) {
|
|
295
348
|
observers.add(notify);
|
|
296
|
-
|
|
349
|
+
const replayed = opening === null ? [] : [{ kind: 'opened' }, announced];
|
|
350
|
+
if (replayed.length > 0) {
|
|
297
351
|
queueMicrotask(() => {
|
|
298
|
-
|
|
299
|
-
|
|
352
|
+
for (const event of replayed)
|
|
353
|
+
if (event !== null && observers.has(notify))
|
|
354
|
+
notify(event);
|
|
300
355
|
});
|
|
301
356
|
}
|
|
302
357
|
return () => {
|
|
@@ -305,12 +360,8 @@ export function houseNotifications(transport, mode) {
|
|
|
305
360
|
},
|
|
306
361
|
send(rooms) {
|
|
307
362
|
opening = null;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
reopen() {
|
|
311
|
-
const current = opening;
|
|
312
|
-
opening = null;
|
|
313
|
-
current?.close();
|
|
363
|
+
announced = null;
|
|
364
|
+
socket?.hold(rooms, runtime, listedCursor);
|
|
314
365
|
},
|
|
315
366
|
track(entries) {
|
|
316
367
|
tracking.clear();
|
package/dist/transport.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { ConversationEvent, TurnOperation } from '@agentshouse/mdruntime';
|
|
2
2
|
export declare const HOUSE_RUNTIME_READS: {
|
|
3
|
-
readonly acts: readonly ['account/push', 'agents/read', 'apps/features/set', 'apps/source/download', 'apps/source/top', 'batch', 'batch-upload', 'bootstrap', 'discover', 'files/attach', 'files/finish', 'files/get', 'revisions', 'sites/screenshot/read'];
|
|
4
|
-
readonly frames: readonly ['app-message', 'authority_changed', 'carried', 'commands', 'conversation', 'conversation_deleted', 'conversations', 'deliveries', 'deployment', 'held', 'interactions', 'link', 'message', 'opening', 'options', 'part', 'process', 'received', 'signal', 'site', 'starting', 'tab-icon', 'turn'];
|
|
3
|
+
readonly acts: readonly ['account/push', 'agents/read', 'apps/features/set', 'apps/source/download', 'apps/source/top', 'batch', 'batch-upload', 'bootstrap', 'conversations/history', 'discover', 'files/attach', 'files/finish', 'files/get', 'revisions', 'sites/screenshot/read'];
|
|
4
|
+
readonly frames: readonly ['app-message', 'authority_changed', 'carried', 'caught_up', 'commands', 'conversation', 'conversation_deleted', 'conversations', 'deliveries', 'deployment', 'held', 'interactions', 'link', 'message', 'opening', 'options', 'part', 'process', 'received', 'signal', 'site', 'starting', 'subagents', 'tab-icon', 'turn'];
|
|
5
5
|
};
|
|
6
6
|
export type HouseRuntimeAct = (typeof HOUSE_RUNTIME_READS.acts)[number];
|
|
7
7
|
export type HouseRuntimeFrame = (typeof HOUSE_RUNTIME_READS.frames)[number];
|
|
8
8
|
export declare function houseDoorRoute(act: HouseRuntimeAct): string;
|
|
9
9
|
export declare function houseSiteRoute(act: Extract<HouseRuntimeAct, 'bootstrap' | 'discover'>): string;
|
|
10
|
+
export declare const SITE_SUBMISSION = "site/submission";
|
|
10
11
|
export declare const SITE_DOOR_SUBMIT = "/_house/door/submit";
|
|
11
12
|
export type HouseMode = 'credential' | 'site';
|
|
12
13
|
export type HouseDoorAnswer = {
|
|
@@ -80,10 +81,18 @@ export type HouseStreamFrame = Listed<{
|
|
|
80
81
|
log_epoch: string;
|
|
81
82
|
} | {
|
|
82
83
|
type: 'opening';
|
|
84
|
+
member: unknown;
|
|
85
|
+
bounds: unknown;
|
|
86
|
+
actions: readonly unknown[];
|
|
87
|
+
authorities: readonly unknown[];
|
|
88
|
+
} | {
|
|
89
|
+
type: 'caught_up';
|
|
83
90
|
expired: readonly string[];
|
|
84
91
|
} | {
|
|
85
92
|
type: 'authority_changed';
|
|
86
|
-
|
|
93
|
+
member: unknown;
|
|
94
|
+
authorities: readonly unknown[];
|
|
95
|
+
left: readonly string[];
|
|
87
96
|
} | ({
|
|
88
97
|
type: 'turn';
|
|
89
98
|
conversation_id: string;
|
|
@@ -116,6 +125,10 @@ export type HouseStreamFrame = Listed<{
|
|
|
116
125
|
type: 'starting';
|
|
117
126
|
conversation_id: string;
|
|
118
127
|
step: string | null;
|
|
128
|
+
} | {
|
|
129
|
+
type: 'subagents';
|
|
130
|
+
conversation_id: string;
|
|
131
|
+
subagents: LiveFact<'subagents'>['subagents'];
|
|
119
132
|
} | {
|
|
120
133
|
type: 'link';
|
|
121
134
|
conversation_id: string;
|
|
@@ -123,6 +136,9 @@ export type HouseStreamFrame = Listed<{
|
|
|
123
136
|
} | {
|
|
124
137
|
type: 'conversations';
|
|
125
138
|
conversations: readonly HouseListedConversation[];
|
|
139
|
+
whole: boolean;
|
|
140
|
+
more: boolean;
|
|
141
|
+
cursor: string | null;
|
|
126
142
|
} | {
|
|
127
143
|
type: 'conversation';
|
|
128
144
|
conversation: HouseListedConversation;
|
|
@@ -139,7 +155,7 @@ export type HouseHeldRoom = {
|
|
|
139
155
|
log_epoch: string;
|
|
140
156
|
};
|
|
141
157
|
export type HouseOpening = {
|
|
142
|
-
hold(rooms: readonly HouseHeldRoom[], runtime: string): void;
|
|
158
|
+
hold(rooms: readonly HouseHeldRoom[], runtime: string, conversations: string | null): void;
|
|
143
159
|
received(authority: string, carry: string, index: number): void;
|
|
144
160
|
close(): void;
|
|
145
161
|
};
|
package/dist/transport.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE/E,eAAO,MAAM,mBAAmB;aAC9B,IAAI,YACF,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,WAAW,EACX,UAAU,EACV,cAAc,EACd,cAAc,EACd,WAAW,EACX,WAAW,EACX,uBAAuB;aAEzB,MAAM,YACJ,aAAa,EACb,mBAAmB,EACnB,SAAS,EACT,UAAU,EACV,cAAc,EACd,sBAAsB,EACtB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,MAAM,EACN,cAAc,EACd,MAAM,EACN,SAAS,EACT,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,UAAU,EACV,QAAQ,EACR,MAAM,EACN,UAAU,EACV,UAAU,EACV,MAAM;CAEA,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,mBAAmB,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,wBAAgB,cAAc,CAAC,GAAG,E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upload',
|
|
10
10
|
'bootstrap',
|
|
11
|
+
'conversations/history',
|
|
11
12
|
'discover',
|
|
12
13
|
'files/attach',
|
|
13
14
|
'files/finish',
|
|
@@ -19,6 +20,7 @@ export const HOUSE_RUNTIME_READS = {
|
|
|
19
20
|
'app-message',
|
|
20
21
|
'authority_changed',
|
|
21
22
|
'carried',
|
|
23
|
+
'caught_up',
|
|
22
24
|
'commands',
|
|
23
25
|
'conversation',
|
|
24
26
|
'conversation_deleted',
|
|
@@ -37,6 +39,7 @@ export const HOUSE_RUNTIME_READS = {
|
|
|
37
39
|
'signal',
|
|
38
40
|
'site',
|
|
39
41
|
'starting',
|
|
42
|
+
'subagents',
|
|
40
43
|
'tab-icon',
|
|
41
44
|
'turn',
|
|
42
45
|
],
|
|
@@ -47,5 +50,6 @@ export function houseDoorRoute(act) {
|
|
|
47
50
|
export function houseSiteRoute(act) {
|
|
48
51
|
return `/_house/door/${act}`;
|
|
49
52
|
}
|
|
53
|
+
export const SITE_SUBMISSION = 'site/submission';
|
|
50
54
|
export const SITE_DOOR_SUBMIT = '/_house/door/submit';
|
|
51
55
|
export const SITE_FILES = '/_house/files/';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/mdruntime-adapter",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-c8bfc1969f4fe",
|
|
4
4
|
"description": "Agents House Adapter for the MD Runtime",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"LICENSE"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@agentshouse/mdruntime": "0.1.0-
|
|
27
|
+
"@agentshouse/mdruntime": "0.1.0-c31fdf9e58db7"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|