@agentshouse/mdruntime-adapter 0.1.0-c068fdf374af0 → 0.1.0-c08ff97beadbc
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 +2 -164
- package/dist/actions.d.ts.map +1 -1
- package/dist/actions.js +7 -225
- package/dist/adapter.d.ts.map +1 -1
- package/dist/adapter.js +72 -200
- package/dist/discovery.d.ts +17 -3
- package/dist/discovery.d.ts.map +1 -1
- package/dist/discovery.js +58 -22
- package/dist/history.d.ts +12 -0
- package/dist/history.d.ts.map +1 -0
- package/dist/history.js +92 -0
- package/dist/house-model.d.ts +325 -2372
- package/dist/house-model.d.ts.map +1 -1
- package/dist/house-model.js +53 -1189
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/model.d.ts +1 -2
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +0 -17
- package/dist/read.d.ts +5 -44
- package/dist/read.d.ts.map +1 -1
- package/dist/read.js +30 -175
- package/dist/refusal.d.ts +0 -3
- package/dist/refusal.d.ts.map +1 -1
- package/dist/refusal.js +0 -5
- package/dist/room-stream.d.ts +1 -0
- package/dist/room-stream.d.ts.map +1 -1
- package/dist/room-stream.js +23 -2
- package/dist/room-types.d.ts +2 -2
- package/dist/room-types.d.ts.map +1 -1
- package/dist/room-types.js +5 -6
- package/dist/search.d.ts +5 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +47 -0
- package/dist/site.d.ts.map +1 -1
- package/dist/site.js +52 -85
- package/dist/stream.d.ts +12 -10
- package/dist/stream.d.ts.map +1 -1
- package/dist/stream.js +151 -158
- package/dist/transport.d.ts +37 -16
- package/dist/transport.d.ts.map +1 -1
- package/dist/transport.js +54 -12
- package/dist/upload.d.ts.map +1 -1
- package/dist/upload.js +2 -2
- package/dist/write.d.ts +2 -1
- package/dist/write.d.ts.map +1 -1
- package/dist/write.js +7 -17
- package/package.json +2 -2
- package/dist/gather.d.ts +0 -3
- package/dist/gather.d.ts.map +0 -1
- package/dist/gather.js +0 -35
package/dist/stream.js
CHANGED
|
@@ -1,41 +1,98 @@
|
|
|
1
|
-
import { ROW_WEIGHT, } from '@agentshouse/mdruntime';
|
|
2
|
-
import { acceptedMessage, cursorPosition } from './
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { ROW_WEIGHT, stepped, } from '@agentshouse/mdruntime';
|
|
2
|
+
import { acceptedMessage, cursorPosition, houseHistory } from './history.js';
|
|
3
|
+
import { streamedModels } from './model.js';
|
|
4
|
+
import { answered, answering, binaryFileOf, folded, forgotten, headChange, outlineOf, revised, } from './read.js';
|
|
5
|
+
import { houseDoorRoute, } from './transport.js';
|
|
6
|
+
import { DECIMAL, roomVersion } from './version.js';
|
|
6
7
|
function turnOperation(frame) {
|
|
7
8
|
const { type: _type, conversation_id: _conversation, turn_id: _turn, ...operation } = frame;
|
|
8
9
|
return structuredClone(operation);
|
|
9
10
|
}
|
|
11
|
+
async function houseAgents(transport) {
|
|
12
|
+
const answer = await transport.door(houseDoorRoute('agents/read'), {});
|
|
13
|
+
const agents = answer.status === 200 ? answer.body?.agents : null;
|
|
14
|
+
if (!Array.isArray(agents))
|
|
15
|
+
return null;
|
|
16
|
+
return agents.flatMap((one) => {
|
|
17
|
+
const { id, name, retired_at: retired } = (one ?? {});
|
|
18
|
+
return typeof id === 'string' && typeof name === 'string'
|
|
19
|
+
? [{ agent: id, name, retired: retired !== null && retired !== undefined }]
|
|
20
|
+
: [];
|
|
21
|
+
});
|
|
22
|
+
}
|
|
10
23
|
function listedConversation(listed) {
|
|
11
24
|
return {
|
|
12
25
|
conversation: listed.conversation_id,
|
|
13
26
|
agent: listed.agent_id,
|
|
27
|
+
agentName: listed.agent_name,
|
|
28
|
+
agentRetired: listed.agent_retired,
|
|
14
29
|
name: listed.name,
|
|
15
30
|
created: listed.created_at,
|
|
16
31
|
finished: listed.finished_at,
|
|
17
32
|
outcome: listed.outcome,
|
|
18
33
|
waiting: listed.waiting,
|
|
19
34
|
newest: listed.newest === null ? null : cursorPosition(listed.newest),
|
|
35
|
+
processEnded: listed.process_ended_at,
|
|
20
36
|
};
|
|
21
37
|
}
|
|
22
38
|
function position(value) {
|
|
23
|
-
if (
|
|
39
|
+
if (!DECIMAL.test(value))
|
|
24
40
|
return null;
|
|
25
41
|
return BigInt(value);
|
|
26
42
|
}
|
|
27
|
-
|
|
43
|
+
function* changed(tracked, entries, version, schemas) {
|
|
44
|
+
const answer = answering();
|
|
45
|
+
for (const entry of entries) {
|
|
46
|
+
yield ROW_WEIGHT + (entry.text?.length ?? 0);
|
|
47
|
+
if (entry.kind === 'folder') {
|
|
48
|
+
folded(answer, entry.path, entry.removed === true);
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
if (entry.path === tracked.schema)
|
|
52
|
+
schemas.set(entry.path, entry);
|
|
53
|
+
forgotten(answer, entry.path);
|
|
54
|
+
if (entry.kind === 'removed') {
|
|
55
|
+
answer.removals.add(entry.path);
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
const binary = binaryFileOf(entry);
|
|
59
|
+
const outline = entry.text === undefined ? outlineOf(entry.outline) : undefined;
|
|
60
|
+
if (binary !== undefined) {
|
|
61
|
+
if (binary !== null)
|
|
62
|
+
answer.binaryFiles.set(entry.path, binary);
|
|
63
|
+
}
|
|
64
|
+
else if (outline !== undefined && outline !== null)
|
|
65
|
+
answer.outlines.set(entry.path, outline);
|
|
66
|
+
else
|
|
67
|
+
answer.documents.set(entry.path, entry.text ?? '');
|
|
68
|
+
const revision = entry.revision ?? binary?.sha256 ?? entry.sha256;
|
|
69
|
+
if (revision !== undefined)
|
|
70
|
+
revised(answer, entry.path, revision);
|
|
71
|
+
const head = headChange(entry);
|
|
72
|
+
if (head)
|
|
73
|
+
answer.changes.set(entry.path, head);
|
|
74
|
+
}
|
|
75
|
+
return { kind: 'net-advancement', roomVersion: version, ...(yield* answered(answer)) };
|
|
76
|
+
}
|
|
77
|
+
async function changePage(tracked, entries, version, mode) {
|
|
78
|
+
const schemas = new Map();
|
|
79
|
+
const page = await stepped(changed(tracked, entries, version, schemas));
|
|
80
|
+
const models = await streamedModels(schemas, tracked, mode);
|
|
81
|
+
return models === undefined ? page : { ...page, models };
|
|
82
|
+
}
|
|
83
|
+
export function houseNotifications(transport, mode, discovering) {
|
|
28
84
|
const stream = transport.stream;
|
|
29
|
-
const lines = new Map();
|
|
30
85
|
const staged = new Map();
|
|
31
|
-
let
|
|
32
|
-
const
|
|
86
|
+
let socket = null;
|
|
87
|
+
const tracking = new Map();
|
|
33
88
|
const observers = new Set();
|
|
34
89
|
const conversationObservers = new Set();
|
|
35
90
|
const modeObservers = new Set();
|
|
36
91
|
let replicated = [];
|
|
92
|
+
let listedCursor = null;
|
|
37
93
|
const live = new Set();
|
|
38
94
|
let opening = null;
|
|
95
|
+
let announced = null;
|
|
39
96
|
const runtime = crypto.randomUUID();
|
|
40
97
|
function emit(event) {
|
|
41
98
|
for (const observer of observers)
|
|
@@ -48,6 +105,7 @@ export function houseNotifications(transport, mode) {
|
|
|
48
105
|
event.kind === 'commands' ||
|
|
49
106
|
event.kind === 'options' ||
|
|
50
107
|
event.kind === 'starting' ||
|
|
108
|
+
event.kind === 'subagents' ||
|
|
51
109
|
event.kind === 'link' ||
|
|
52
110
|
event.kind === 'deliveries') {
|
|
53
111
|
live.add(event.conversation);
|
|
@@ -57,13 +115,31 @@ export function houseNotifications(transport, mode) {
|
|
|
57
115
|
}
|
|
58
116
|
function reopened(next) {
|
|
59
117
|
opening = next;
|
|
60
|
-
|
|
118
|
+
announced = null;
|
|
119
|
+
socket = next;
|
|
61
120
|
staged.clear();
|
|
62
121
|
const gapped = new Set([...replicated, ...live]);
|
|
63
122
|
live.clear();
|
|
64
123
|
for (const conversation of gapped)
|
|
65
124
|
emitConversation({ kind: 'gap', conversation });
|
|
66
125
|
emit({ kind: 'opened' });
|
|
126
|
+
if (mode === 'site')
|
|
127
|
+
announce(next, null);
|
|
128
|
+
}
|
|
129
|
+
function announce(via, frame) {
|
|
130
|
+
void discovering.opened(frame).then((discovery) => {
|
|
131
|
+
if (socket !== via)
|
|
132
|
+
return;
|
|
133
|
+
if (discovery === null) {
|
|
134
|
+
via.close();
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
announced = { kind: 'discovered', discovery };
|
|
138
|
+
emit(announced);
|
|
139
|
+
}, () => {
|
|
140
|
+
if (socket === via)
|
|
141
|
+
via.close();
|
|
142
|
+
});
|
|
67
143
|
}
|
|
68
144
|
function converse(frame) {
|
|
69
145
|
const conversation = frame.conversation_id;
|
|
@@ -82,6 +158,7 @@ export function houseNotifications(transport, mode) {
|
|
|
82
158
|
return;
|
|
83
159
|
emitConversation({ kind: 'commands', conversation, commands: [] });
|
|
84
160
|
emitConversation({ kind: 'options', conversation, options: [] });
|
|
161
|
+
emitConversation({ kind: 'subagents', conversation, subagents: [] });
|
|
85
162
|
return;
|
|
86
163
|
}
|
|
87
164
|
if (frame.type === 'commands') {
|
|
@@ -100,6 +177,14 @@ export function houseNotifications(transport, mode) {
|
|
|
100
177
|
emitConversation({ kind: 'starting', conversation, step: frame.step });
|
|
101
178
|
return;
|
|
102
179
|
}
|
|
180
|
+
if (frame.type === 'subagents') {
|
|
181
|
+
emitConversation({
|
|
182
|
+
kind: 'subagents',
|
|
183
|
+
conversation,
|
|
184
|
+
subagents: structuredClone(frame.subagents),
|
|
185
|
+
});
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
103
188
|
if (frame.type === 'link') {
|
|
104
189
|
emitConversation({ kind: 'link', conversation, connected: frame.connected });
|
|
105
190
|
return;
|
|
@@ -121,25 +206,10 @@ export function houseNotifications(transport, mode) {
|
|
|
121
206
|
return;
|
|
122
207
|
emitConversation({ kind: 'accepted-message', conversation, message });
|
|
123
208
|
}
|
|
124
|
-
function announce(authority, at) {
|
|
125
|
-
const version = roomVersion(at);
|
|
126
|
-
for (const locator of locators.get(authority) ?? []) {
|
|
127
|
-
emit({ kind: 'room-version', locator, roomVersion: version });
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
function interrupt(authority) {
|
|
131
|
-
const line = lines.get(authority);
|
|
132
|
-
if (line !== undefined)
|
|
133
|
-
lines.set(authority, { ...line, frames: [] });
|
|
134
|
-
}
|
|
135
|
-
function lost(authority, carry) {
|
|
136
|
-
staged.delete(carry);
|
|
137
|
-
interrupt(authority);
|
|
138
|
-
}
|
|
139
209
|
function stage(frame, via) {
|
|
140
210
|
const held = staged.get(frame.carry);
|
|
141
211
|
if (frame.index !== (held?.parts ?? 0)) {
|
|
142
|
-
|
|
212
|
+
staged.delete(frame.carry);
|
|
143
213
|
return;
|
|
144
214
|
}
|
|
145
215
|
if (held === undefined) {
|
|
@@ -157,10 +227,8 @@ export function houseNotifications(transport, mode) {
|
|
|
157
227
|
function carried(frame) {
|
|
158
228
|
const held = staged.get(frame.carry);
|
|
159
229
|
staged.delete(frame.carry);
|
|
160
|
-
if ((held?.parts ?? 0) !== frame.parts)
|
|
161
|
-
interrupt(frame.authority);
|
|
230
|
+
if ((held?.parts ?? 0) !== frame.parts)
|
|
162
231
|
return;
|
|
163
|
-
}
|
|
164
232
|
publish(frame, held?.entries ?? []);
|
|
165
233
|
}
|
|
166
234
|
function handle(frame, via) {
|
|
@@ -173,18 +241,31 @@ export function houseNotifications(transport, mode) {
|
|
|
173
241
|
return;
|
|
174
242
|
}
|
|
175
243
|
if (frame.type === 'opening') {
|
|
244
|
+
if (via !== null && mode === 'credential')
|
|
245
|
+
announce(via, frame);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
if (frame.type === 'caught_up') {
|
|
176
249
|
emit({
|
|
177
|
-
kind: '
|
|
178
|
-
expired: frame.expired.flatMap((authority) =>
|
|
250
|
+
kind: 'caught-up',
|
|
251
|
+
expired: frame.expired.flatMap((authority) => (tracking.get(authority) ?? []).map((tracked) => tracked.locator)),
|
|
179
252
|
});
|
|
180
253
|
return;
|
|
181
254
|
}
|
|
182
255
|
if (frame.type === 'authority_changed') {
|
|
183
|
-
|
|
256
|
+
const change = discovering.changed(frame);
|
|
257
|
+
if (change !== null)
|
|
258
|
+
emit(change);
|
|
184
259
|
return;
|
|
185
260
|
}
|
|
186
261
|
if (frame.type === 'conversations') {
|
|
187
|
-
emitConversation({
|
|
262
|
+
emitConversation({
|
|
263
|
+
kind: 'list',
|
|
264
|
+
entries: frame.conversations.map(listedConversation),
|
|
265
|
+
whole: frame.whole,
|
|
266
|
+
more: frame.more,
|
|
267
|
+
cursor: frame.cursor,
|
|
268
|
+
});
|
|
188
269
|
return;
|
|
189
270
|
}
|
|
190
271
|
if (frame.type === 'conversation') {
|
|
@@ -200,6 +281,7 @@ export function houseNotifications(transport, mode) {
|
|
|
200
281
|
frame.type === 'commands' ||
|
|
201
282
|
frame.type === 'options' ||
|
|
202
283
|
frame.type === 'starting' ||
|
|
284
|
+
frame.type === 'subagents' ||
|
|
203
285
|
frame.type === 'link' ||
|
|
204
286
|
frame.type === 'deliveries' ||
|
|
205
287
|
frame.type === 'interactions' ||
|
|
@@ -215,33 +297,28 @@ export function houseNotifications(transport, mode) {
|
|
|
215
297
|
function publish(frame, entries) {
|
|
216
298
|
const at = position(frame.position);
|
|
217
299
|
const after = position(frame.after);
|
|
218
|
-
if (at === null || after === null || after >= at)
|
|
219
|
-
interrupt(frame.authority);
|
|
300
|
+
if (at === null || after === null || after >= at)
|
|
220
301
|
return;
|
|
302
|
+
const from = roomVersion({ position: frame.after, logEpoch: frame.log_epoch });
|
|
303
|
+
const version = roomVersion({ position: frame.position, logEpoch: frame.log_epoch });
|
|
304
|
+
for (const tracked of tracking.get(frame.authority) ?? []) {
|
|
305
|
+
emit({
|
|
306
|
+
kind: 'room-change',
|
|
307
|
+
locator: tracked.locator,
|
|
308
|
+
from,
|
|
309
|
+
roomVersion: version,
|
|
310
|
+
read: () => changePage(tracked, entries, version, mode),
|
|
311
|
+
});
|
|
221
312
|
}
|
|
222
|
-
const line = lines.get(frame.authority);
|
|
223
|
-
if (line?.logEpoch === frame.log_epoch) {
|
|
224
|
-
if (line.held !== null && at <= line.held)
|
|
225
|
-
return;
|
|
226
|
-
const last = line.frames.at(-1);
|
|
227
|
-
if (last !== undefined && at <= last.position)
|
|
228
|
-
return;
|
|
229
|
-
const held = { after, position: at, entries };
|
|
230
|
-
const next = last !== undefined && after <= last.position ? [...line.frames, held] : [held];
|
|
231
|
-
lines.set(frame.authority, { ...line, frames: next.length > HELD_FRAMES_MAX ? [] : next });
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
interrupt(frame.authority);
|
|
235
|
-
}
|
|
236
|
-
announce(frame.authority, { position: frame.position, logEpoch: frame.log_epoch });
|
|
237
313
|
}
|
|
238
|
-
stream.observe((frame) => handle(frame,
|
|
314
|
+
stream.observe((frame) => handle(frame, socket));
|
|
239
315
|
stream.opened(reopened);
|
|
240
|
-
stream.closed(({ revoked, lost }) => {
|
|
316
|
+
stream.closed(({ revoked, lost, authorityChanged }) => {
|
|
241
317
|
opening = null;
|
|
242
|
-
|
|
318
|
+
announced = null;
|
|
319
|
+
socket = null;
|
|
243
320
|
staged.clear();
|
|
244
|
-
emit({ kind: 'closed', revoked, lost });
|
|
321
|
+
emit({ kind: 'closed', revoked, lost, authorityChanged });
|
|
245
322
|
});
|
|
246
323
|
return {
|
|
247
324
|
runtime,
|
|
@@ -257,19 +334,30 @@ export function houseNotifications(transport, mode) {
|
|
|
257
334
|
replicate(next) {
|
|
258
335
|
replicated = [...next];
|
|
259
336
|
},
|
|
337
|
+
hold(cursor) {
|
|
338
|
+
listedCursor = cursor;
|
|
339
|
+
},
|
|
260
340
|
observe(notify) {
|
|
261
341
|
conversationObservers.add(notify);
|
|
262
342
|
return () => {
|
|
263
343
|
conversationObservers.delete(notify);
|
|
264
344
|
};
|
|
265
345
|
},
|
|
346
|
+
...(mode === 'credential'
|
|
347
|
+
? {
|
|
348
|
+
agents: () => houseAgents(transport),
|
|
349
|
+
history: (request) => houseHistory(transport, request),
|
|
350
|
+
}
|
|
351
|
+
: {}),
|
|
266
352
|
},
|
|
267
353
|
observe(notify) {
|
|
268
354
|
observers.add(notify);
|
|
269
|
-
|
|
355
|
+
const replayed = opening === null ? [] : [{ kind: 'opened' }, announced];
|
|
356
|
+
if (replayed.length > 0) {
|
|
270
357
|
queueMicrotask(() => {
|
|
271
|
-
|
|
272
|
-
|
|
358
|
+
for (const event of replayed)
|
|
359
|
+
if (event !== null && observers.has(notify))
|
|
360
|
+
notify(event);
|
|
273
361
|
});
|
|
274
362
|
}
|
|
275
363
|
return () => {
|
|
@@ -277,114 +365,19 @@ export function houseNotifications(transport, mode) {
|
|
|
277
365
|
};
|
|
278
366
|
},
|
|
279
367
|
send(rooms) {
|
|
280
|
-
for (const room of rooms) {
|
|
281
|
-
const line = lines.get(room.authority);
|
|
282
|
-
const held = position(room.position);
|
|
283
|
-
if (line === undefined || held === null || line.logEpoch !== room.log_epoch)
|
|
284
|
-
continue;
|
|
285
|
-
lines.set(room.authority, { ...line, frames: [], held });
|
|
286
|
-
}
|
|
287
|
-
const current = opening;
|
|
288
|
-
opening = null;
|
|
289
|
-
current?.hold(rooms, runtime);
|
|
290
|
-
},
|
|
291
|
-
reopen() {
|
|
292
|
-
const current = opening;
|
|
293
368
|
opening = null;
|
|
294
|
-
|
|
369
|
+
announced = null;
|
|
370
|
+
socket?.hold(rooms, runtime, listedCursor);
|
|
295
371
|
},
|
|
296
372
|
track(entries) {
|
|
297
|
-
|
|
373
|
+
tracking.clear();
|
|
298
374
|
for (const entry of entries) {
|
|
299
|
-
|
|
300
|
-
if (lines.get(entry.authority)?.logEpoch !== entry.logEpoch) {
|
|
301
|
-
lines.set(entry.authority, { logEpoch: entry.logEpoch, frames: [], held: null });
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
for (const authority of lines.keys()) {
|
|
305
|
-
if (!locators.has(authority))
|
|
306
|
-
lines.delete(authority);
|
|
375
|
+
tracking.set(entry.authority, [...(tracking.get(entry.authority) ?? []), entry]);
|
|
307
376
|
}
|
|
308
377
|
for (const [carry, held] of staged) {
|
|
309
|
-
if (!
|
|
378
|
+
if (!tracking.has(held.authority))
|
|
310
379
|
staged.delete(carry);
|
|
311
380
|
}
|
|
312
381
|
},
|
|
313
|
-
reach(authority, at) {
|
|
314
|
-
const line = lines.get(authority);
|
|
315
|
-
const held = position(at.position);
|
|
316
|
-
if (line === undefined || held === null || line.logEpoch !== at.logEpoch)
|
|
317
|
-
return;
|
|
318
|
-
if (line.held !== null && held <= line.held)
|
|
319
|
-
return;
|
|
320
|
-
lines.set(authority, {
|
|
321
|
-
...line,
|
|
322
|
-
frames: line.frames.filter((frame) => frame.position > held),
|
|
323
|
-
held,
|
|
324
|
-
});
|
|
325
|
-
},
|
|
326
|
-
*advance(tracked, from) {
|
|
327
|
-
const line = lines.get(tracked.authority);
|
|
328
|
-
const start = position(from.position);
|
|
329
|
-
if (line === undefined || start === null || line.logEpoch !== from.logEpoch)
|
|
330
|
-
return null;
|
|
331
|
-
const pending = line.frames.filter((frame) => frame.position > start);
|
|
332
|
-
const first = pending[0];
|
|
333
|
-
if (first === undefined || first.after > start)
|
|
334
|
-
return null;
|
|
335
|
-
const answer = answering();
|
|
336
|
-
const schemas = new Map();
|
|
337
|
-
for (const frame of pending) {
|
|
338
|
-
for (const entry of frame.entries) {
|
|
339
|
-
yield ROW_WEIGHT + (entry.text?.length ?? 0);
|
|
340
|
-
if (entry.kind === 'folder') {
|
|
341
|
-
folded(answer, entry.path, entry.removed === true);
|
|
342
|
-
continue;
|
|
343
|
-
}
|
|
344
|
-
if (entry.path === tracked.schema)
|
|
345
|
-
schemas.set(entry.path, entry);
|
|
346
|
-
if (entry.kind === 'removed') {
|
|
347
|
-
forgotten(answer, entry.path);
|
|
348
|
-
answer.removals.add(entry.path);
|
|
349
|
-
continue;
|
|
350
|
-
}
|
|
351
|
-
const binary = binaryFileOf(entry);
|
|
352
|
-
if (binary === null)
|
|
353
|
-
return null;
|
|
354
|
-
if (mode === 'credential' && entry.revision === undefined)
|
|
355
|
-
return null;
|
|
356
|
-
const head = headChange(entry);
|
|
357
|
-
if (head === null)
|
|
358
|
-
return null;
|
|
359
|
-
forgotten(answer, entry.path);
|
|
360
|
-
if (binary === undefined)
|
|
361
|
-
answer.documents.set(entry.path, entry.text);
|
|
362
|
-
else
|
|
363
|
-
answer.binaryFiles.set(entry.path, binary);
|
|
364
|
-
const revision = entry.revision ?? binary?.sha256;
|
|
365
|
-
if (revision !== undefined)
|
|
366
|
-
revised(answer, entry.path, revision);
|
|
367
|
-
if (head !== undefined)
|
|
368
|
-
answer.changes.set(entry.path, head);
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
const last = pending.at(-1);
|
|
372
|
-
const current = lines.get(tracked.authority);
|
|
373
|
-
if (current?.logEpoch === line.logEpoch) {
|
|
374
|
-
lines.set(tracked.authority, {
|
|
375
|
-
...current,
|
|
376
|
-
frames: current.frames.filter((frame) => frame.position > start),
|
|
377
|
-
held: current.held !== null && current.held > last.position ? current.held : last.position,
|
|
378
|
-
});
|
|
379
|
-
}
|
|
380
|
-
return {
|
|
381
|
-
page: {
|
|
382
|
-
kind: 'net-advancement',
|
|
383
|
-
roomVersion: roomVersion({ position: last.position.toString(), logEpoch: line.logEpoch }),
|
|
384
|
-
...(yield* answered(answer)),
|
|
385
|
-
},
|
|
386
|
-
schemas,
|
|
387
|
-
};
|
|
388
|
-
},
|
|
389
382
|
};
|
|
390
383
|
}
|
package/dist/transport.d.ts
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import type { ConversationEvent, TurnOperation } from '@agentshouse/mdruntime';
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export declare
|
|
9
|
-
export declare
|
|
10
|
-
export declare const
|
|
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', 'conversations/history', 'discover', 'files/attach', 'files/finish', 'files/get', 'revisions', 'search', '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
|
+
};
|
|
6
|
+
export type HouseRuntimeAct = (typeof HOUSE_RUNTIME_READS.acts)[number];
|
|
7
|
+
export type HouseRuntimeFrame = (typeof HOUSE_RUNTIME_READS.frames)[number];
|
|
8
|
+
export declare function houseDoorRoute(act: HouseRuntimeAct): string;
|
|
9
|
+
export declare function houseSiteRoute(act: Extract<HouseRuntimeAct, 'bootstrap' | 'discover'>): string;
|
|
10
|
+
export declare const SITE_SUBMISSION = "site/submission";
|
|
11
11
|
export declare const SITE_DOOR_SUBMIT = "/_house/door/submit";
|
|
12
12
|
export type HouseMode = 'credential' | 'site';
|
|
13
13
|
export type HouseDoorAnswer = {
|
|
14
14
|
status: number;
|
|
15
15
|
body: unknown;
|
|
16
16
|
};
|
|
17
|
-
export declare const DOOR_FILES_GET = "/door/files/get";
|
|
18
|
-
export declare const DOOR_FILES_ATTACH = "/door/files/attach";
|
|
19
|
-
export declare const DOOR_FILES_FINISH = "/door/files/finish";
|
|
20
17
|
export declare const SITE_FILES = "/_house/files/";
|
|
21
18
|
export type HouseByteAct = 'authored_batch_upload';
|
|
22
19
|
export type HouseBytesAnswer = {
|
|
@@ -36,6 +33,7 @@ export type HouseStreamEntry = {
|
|
|
36
33
|
revision?: string;
|
|
37
34
|
sha256?: string;
|
|
38
35
|
text?: string;
|
|
36
|
+
outline?: unknown;
|
|
39
37
|
bytes?: number;
|
|
40
38
|
media_type?: string;
|
|
41
39
|
author?: {
|
|
@@ -53,6 +51,8 @@ type LiveFact<K extends ConversationEvent['kind']> = Extract<ConversationEvent,
|
|
|
53
51
|
export type HouseListedConversation = {
|
|
54
52
|
conversation_id: string;
|
|
55
53
|
agent_id: string;
|
|
54
|
+
agent_name: string;
|
|
55
|
+
agent_retired: boolean;
|
|
56
56
|
name: string;
|
|
57
57
|
created_at: string;
|
|
58
58
|
finished_at: string | null;
|
|
@@ -62,8 +62,12 @@ export type HouseListedConversation = {
|
|
|
62
62
|
accepted_at: string;
|
|
63
63
|
message_id: string;
|
|
64
64
|
} | null;
|
|
65
|
+
process_ended_at: string | null;
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
+
type Listed<Frame extends {
|
|
68
|
+
readonly type: HouseRuntimeFrame;
|
|
69
|
+
}> = Frame;
|
|
70
|
+
export type HouseStreamFrame = Listed<{
|
|
67
71
|
type: 'part';
|
|
68
72
|
authority: string;
|
|
69
73
|
carry: string;
|
|
@@ -79,10 +83,19 @@ export type HouseStreamFrame = {
|
|
|
79
83
|
log_epoch: string;
|
|
80
84
|
} | {
|
|
81
85
|
type: 'opening';
|
|
86
|
+
member: unknown;
|
|
87
|
+
bounds: unknown;
|
|
88
|
+
actions: readonly unknown[];
|
|
89
|
+
shapes: readonly unknown[];
|
|
90
|
+
rooms: readonly unknown[];
|
|
91
|
+
} | {
|
|
92
|
+
type: 'caught_up';
|
|
82
93
|
expired: readonly string[];
|
|
83
94
|
} | {
|
|
84
95
|
type: 'authority_changed';
|
|
85
|
-
|
|
96
|
+
member: unknown;
|
|
97
|
+
authorities: readonly unknown[];
|
|
98
|
+
left: readonly string[];
|
|
86
99
|
} | ({
|
|
87
100
|
type: 'turn';
|
|
88
101
|
conversation_id: string;
|
|
@@ -115,6 +128,10 @@ export type HouseStreamFrame = {
|
|
|
115
128
|
type: 'starting';
|
|
116
129
|
conversation_id: string;
|
|
117
130
|
step: string | null;
|
|
131
|
+
} | {
|
|
132
|
+
type: 'subagents';
|
|
133
|
+
conversation_id: string;
|
|
134
|
+
subagents: LiveFact<'subagents'>['subagents'];
|
|
118
135
|
} | {
|
|
119
136
|
type: 'link';
|
|
120
137
|
conversation_id: string;
|
|
@@ -122,6 +139,9 @@ export type HouseStreamFrame = {
|
|
|
122
139
|
} | {
|
|
123
140
|
type: 'conversations';
|
|
124
141
|
conversations: readonly HouseListedConversation[];
|
|
142
|
+
whole: boolean;
|
|
143
|
+
more: boolean;
|
|
144
|
+
cursor: string | null;
|
|
125
145
|
} | {
|
|
126
146
|
type: 'conversation';
|
|
127
147
|
conversation: HouseListedConversation;
|
|
@@ -131,20 +151,21 @@ export type HouseStreamFrame = {
|
|
|
131
151
|
} | {
|
|
132
152
|
type: 'signal';
|
|
133
153
|
service_mode: string;
|
|
134
|
-
}
|
|
154
|
+
}>;
|
|
135
155
|
export type HouseHeldRoom = {
|
|
136
156
|
authority: string;
|
|
137
157
|
position: string;
|
|
138
158
|
log_epoch: string;
|
|
139
159
|
};
|
|
140
160
|
export type HouseOpening = {
|
|
141
|
-
hold(rooms: readonly HouseHeldRoom[], runtime: string): void;
|
|
161
|
+
hold(rooms: readonly HouseHeldRoom[], runtime: string, conversations: string | null): void;
|
|
142
162
|
received(authority: string, carry: string, index: number): void;
|
|
143
163
|
close(): void;
|
|
144
164
|
};
|
|
145
165
|
export type HouseClosing = {
|
|
146
166
|
revoked: boolean;
|
|
147
167
|
lost: boolean;
|
|
168
|
+
authorityChanged: boolean;
|
|
148
169
|
};
|
|
149
170
|
export type HouseStream = {
|
|
150
171
|
observe(receive: (frame: HouseStreamFrame) => void): () => void;
|
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,aAAa,mBAAmB,
|
|
1
|
+
{"version":3,"file":"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