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