@agentshouse/mdruntime-adapter 0.1.0-cb0e03e5f0ff6 → 0.1.0-cb1a2f809f691

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.
Files changed (82) hide show
  1. package/README.md +2 -2
  2. package/dist/actions.d.ts +9 -1
  3. package/dist/actions.d.ts.map +1 -1
  4. package/dist/actions.js +129 -9
  5. package/dist/adapter.d.ts +0 -1
  6. package/dist/adapter.d.ts.map +1 -1
  7. package/dist/adapter.js +131 -122
  8. package/dist/authored-path.d.ts +61 -0
  9. package/dist/authored-path.d.ts.map +1 -0
  10. package/dist/authored-path.js +166 -0
  11. package/dist/chunks.d.ts +2 -4
  12. package/dist/chunks.d.ts.map +1 -1
  13. package/dist/chunks.js +72 -38
  14. package/dist/digest.d.ts +0 -1
  15. package/dist/discovery.d.ts +26 -8
  16. package/dist/discovery.d.ts.map +1 -1
  17. package/dist/discovery.js +174 -26
  18. package/dist/history.d.ts +1 -7
  19. package/dist/history.d.ts.map +1 -1
  20. package/dist/history.js +21 -28
  21. package/dist/index.d.ts +8 -10
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +7 -8
  24. package/dist/map.d.ts +0 -1
  25. package/dist/model.d.ts +5 -6
  26. package/dist/model.d.ts.map +1 -1
  27. package/dist/model.js +18 -28
  28. package/dist/read.d.ts +11 -25
  29. package/dist/read.d.ts.map +1 -1
  30. package/dist/read.js +74 -47
  31. package/dist/refusal.d.ts +6 -2
  32. package/dist/refusal.d.ts.map +1 -1
  33. package/dist/refusal.js +28 -7
  34. package/dist/renamed.d.ts +10 -0
  35. package/dist/renamed.d.ts.map +1 -0
  36. package/dist/renamed.js +20 -0
  37. package/dist/room-query.d.ts +4 -0
  38. package/dist/room-query.d.ts.map +1 -0
  39. package/dist/room-query.js +63 -0
  40. package/dist/search.d.ts +0 -1
  41. package/dist/search.d.ts.map +1 -1
  42. package/dist/search.js +4 -4
  43. package/dist/session-content/check.d.ts +17 -0
  44. package/dist/session-content/index.d.ts +6 -0
  45. package/dist/session-content/parts.d.ts +30 -0
  46. package/dist/session-content/state.d.ts +59 -0
  47. package/dist/session-content/turn.d.ts +137 -0
  48. package/dist/site.d.ts +0 -1
  49. package/dist/site.d.ts.map +1 -1
  50. package/dist/site.js +61 -23
  51. package/dist/space-schema.d.ts +0 -1
  52. package/dist/space-schema.d.ts.map +1 -1
  53. package/dist/space-schema.js +1 -8
  54. package/dist/stream.d.ts +2 -4
  55. package/dist/stream.d.ts.map +1 -1
  56. package/dist/stream.js +89 -86
  57. package/dist/transport.d.ts +60 -24
  58. package/dist/transport.d.ts.map +1 -1
  59. package/dist/transport.js +44 -8
  60. package/dist/uncertain.d.ts +5 -0
  61. package/dist/uncertain.d.ts.map +1 -0
  62. package/dist/uncertain.js +11 -0
  63. package/dist/upload.d.ts +7 -2
  64. package/dist/upload.d.ts.map +1 -1
  65. package/dist/upload.js +49 -6
  66. package/dist/version.d.ts +0 -1
  67. package/dist/write.d.ts +3 -10
  68. package/dist/write.d.ts.map +1 -1
  69. package/dist/write.js +90 -110
  70. package/package.json +4 -3
  71. package/dist/app-reference.d.ts +0 -2
  72. package/dist/app-reference.d.ts.map +0 -1
  73. package/dist/app-reference.js +0 -2
  74. package/dist/crockford.d.ts +0 -4
  75. package/dist/crockford.d.ts.map +0 -1
  76. package/dist/crockford.js +0 -3
  77. package/dist/house-model.d.ts +0 -672
  78. package/dist/house-model.d.ts.map +0 -1
  79. package/dist/house-model.js +0 -377
  80. package/dist/room-types.d.ts +0 -7
  81. package/dist/room-types.d.ts.map +0 -1
  82. package/dist/room-types.js +0 -123
package/dist/stream.js CHANGED
@@ -1,38 +1,46 @@
1
1
  import { ROW_WEIGHT, stepped, } from '@agentshouse/mdruntime';
2
- import { acceptedMessage, cursorPosition, houseHistory } from './history.js';
3
- import { keptSpaceSchemas, streamedModels } from './model.js';
4
- import { answered, answering, binaryFileOf, createdOf, folded, forgotten, headChange, revised, } from './read.js';
5
- import { houseDoorRoute, } from './transport.js';
2
+ import { acceptedMessage, changeCursor, houseHistory } from './history.js';
3
+ import { spaceSchemaTexts, streamedModels } from './model.js';
4
+ import { spaceSchemas } from './space-schema.js';
5
+ import { answered, answering, documentEntry, folded, forgotten, kept, } from './read.js';
6
6
  import { DECIMAL, logPosition, presented, roomVersion } from './version.js';
7
7
  function turnOperation(frame) {
8
- const { type: _type, conversation_id: _conversation, turn_id: _turn, ...operation } = frame;
9
- return structuredClone(operation);
8
+ return 'at' in frame ? { op: 'begin', at: frame.at } : structuredClone(frame.operation);
10
9
  }
11
- async function houseAgents(transport) {
12
- const answer = await transport.door(houseDoorRoute('agents/list'), {});
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
- });
10
+ function listedAgent(agent) {
11
+ return {
12
+ id: agent.id,
13
+ name: agent.name,
14
+ revision: agent.revision,
15
+ environment: agent.environment,
16
+ environment_name: agent.environment_name,
17
+ environment_connected: agent.environment_connected,
18
+ launch_directory: agent.launch_directory,
19
+ cli: agent.cli,
20
+ model: agent.model,
21
+ effort: agent.effort,
22
+ mode: agent.mode,
23
+ base_instructions: agent.base_instructions,
24
+ in_telegram: agent.in_telegram,
25
+ telegram_messages: agent.telegram_messages,
26
+ created: agent.created,
27
+ retired_at: agent.retired_at,
28
+ };
22
29
  }
23
30
  function listedConversation(listed) {
24
31
  return {
25
32
  conversation: listed.conversation_id,
26
33
  agent: listed.agent_id,
27
- agentName: listed.agent_name,
28
- agentRetired: listed.agent_retired,
29
34
  name: listed.name,
30
35
  created: listed.created_at,
31
- finished: listed.finished_at,
32
36
  outcome: listed.outcome,
33
37
  waiting: listed.waiting,
34
- newest: listed.newest === null ? null : cursorPosition(listed.newest),
38
+ newest: listed.newest === null ? null : changeCursor(listed.newest),
35
39
  processEnded: listed.process_ended_at,
40
+ subject: listed.subject,
41
+ room: listed.room_ref,
42
+ model: listed.model,
43
+ effort: listed.effort,
36
44
  };
37
45
  }
38
46
  function position(value) {
@@ -40,55 +48,47 @@ function position(value) {
40
48
  return null;
41
49
  return BigInt(value);
42
50
  }
43
- function* changed(tracked, entries, version, schemas) {
51
+ function* changed(tracked, entries, version, mode, schemas) {
44
52
  const answer = answering();
45
53
  for (const entry of entries) {
46
- yield ROW_WEIGHT + (entry.text?.length ?? 0);
54
+ yield ROW_WEIGHT + (entry.content?.length ?? 0);
47
55
  if (entry.kind === 'folder') {
48
56
  folded(answer, entry.path, entry.removed === true);
49
57
  continue;
50
58
  }
51
- if (entry.path === tracked.schema)
52
- schemas.set(entry.path, entry);
53
- forgotten(answer, entry.path);
54
- if (entry.space !== undefined) {
55
- answer.removals.add(entry.path);
56
- continue;
57
- }
58
59
  if (entry.kind === 'removed') {
60
+ if (entry.path === tracked.schema)
61
+ schemas.set(entry.path, null);
62
+ forgotten(answer, entry.path);
59
63
  answer.removals.add(entry.path);
60
64
  continue;
61
65
  }
62
- const binary = binaryFileOf(entry);
63
- if (binary === undefined)
64
- answer.documents.set(entry.path, entry.text ?? '');
65
- else if (binary !== null)
66
- answer.binaryFiles.set(entry.path, binary);
67
- if (binary === undefined && entry.facts !== undefined)
68
- answer.facts.set(entry.path, entry.facts);
69
- const revision = entry.revision ?? binary?.sha256;
70
- if (revision !== undefined)
71
- revised(answer, entry.path, revision);
72
- const head = headChange(entry);
73
- if (head)
74
- answer.changes.set(entry.path, head);
75
- const created = createdOf(entry);
76
- if (created)
77
- answer.created.set(entry.path, created);
66
+ const file = documentEntry(entry, mode);
67
+ if (file === null)
68
+ throw new Error(`the stream carried ${entry.path} as no file`);
69
+ if (entry.path === tracked.schema)
70
+ schemas.set(entry.path, file);
71
+ forgotten(answer, file.path);
72
+ if (file.space === undefined)
73
+ kept(answer, file);
74
+ else
75
+ answer.removals.add(file.path);
78
76
  }
79
77
  return { kind: 'net-advancement', roomVersion: version, ...(yield* answered(answer)) };
80
78
  }
81
- async function changePage(tracked, entries, version, mode, spaces, whole) {
79
+ async function changePage(tracked, entries, version, mode, whole) {
82
80
  const schemas = new Map();
83
- const page = await stepped(changed(tracked, entries, version, schemas));
84
- const models = await streamedModels(schemas, tracked, mode, spaces, whole);
81
+ const page = await stepped(changed(tracked, entries, version, mode, schemas));
82
+ const models = await streamedModels(schemas, tracked, whole);
85
83
  return models === undefined ? page : { ...page, models };
86
84
  }
87
- export function houseNotifications(transport, mode, discovering, spaces) {
85
+ export function houseNotifications(transport, mode, discovering) {
88
86
  const stream = transport.stream;
89
87
  const staged = new Map();
88
+ let spaces = spaceSchemas();
90
89
  let socket = null;
91
90
  const tracking = new Map();
91
+ const located = new Map();
92
92
  const observers = new Set();
93
93
  const replaying = new Map();
94
94
  const conversationObservers = new Set();
@@ -117,8 +117,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
117
117
  event.kind === 'commands' ||
118
118
  event.kind === 'options' ||
119
119
  event.kind === 'starting' ||
120
- event.kind === 'subagents' ||
121
- event.kind === 'link' ||
120
+ event.kind === 'state' ||
122
121
  event.kind === 'deliveries') {
123
122
  live.add(event.conversation);
124
123
  }
@@ -130,6 +129,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
130
129
  announced = null;
131
130
  socket = next;
132
131
  staged.clear();
132
+ spaces = spaceSchemas();
133
133
  unanswered.length = 0;
134
134
  heldAtZero.clear();
135
135
  const gapped = new Set([...replicated, ...live]);
@@ -150,9 +150,9 @@ export function houseNotifications(transport, mode, discovering, spaces) {
150
150
  }
151
151
  announced = { kind: 'discovered', discovery };
152
152
  emit(announced);
153
- }, () => {
153
+ }, (failure) => {
154
154
  if (socket === via)
155
- via.close();
155
+ via.close(failure);
156
156
  });
157
157
  }
158
158
  function converse(frame) {
@@ -172,7 +172,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
172
172
  return;
173
173
  emitConversation({ kind: 'commands', conversation, commands: [] });
174
174
  emitConversation({ kind: 'options', conversation, options: [] });
175
- emitConversation({ kind: 'subagents', conversation, subagents: [] });
175
+ emitConversation({ kind: 'state', conversation, state: null });
176
176
  return;
177
177
  }
178
178
  if (frame.type === 'commands') {
@@ -191,20 +191,17 @@ export function houseNotifications(transport, mode, discovering, spaces) {
191
191
  emitConversation({ kind: 'starting', conversation, step: frame.step });
192
192
  return;
193
193
  }
194
- if (frame.type === 'subagents') {
195
- emitConversation({
196
- kind: 'subagents',
197
- conversation,
198
- subagents: structuredClone(frame.subagents),
199
- });
200
- return;
201
- }
202
- if (frame.type === 'link') {
203
- emitConversation({ kind: 'link', conversation, connected: frame.connected });
194
+ if (frame.type === 'state') {
195
+ emitConversation({ kind: 'state', conversation, state: structuredClone(frame.state) });
204
196
  return;
205
197
  }
206
198
  if (frame.type === 'deliveries') {
207
- emitConversation({ kind: 'deliveries', conversation, unknown: [...frame.unknown] });
199
+ emitConversation({
200
+ kind: 'deliveries',
201
+ conversation,
202
+ waiting: [...frame.waiting],
203
+ unknown: [...frame.unknown],
204
+ });
208
205
  return;
209
206
  }
210
207
  if (frame.type === 'interactions') {
@@ -221,6 +218,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
221
218
  emitConversation({ kind: 'accepted-message', conversation, message });
222
219
  }
223
220
  function stage(frame, via) {
221
+ const entries = spaceSchemaTexts(frame.entries, spaces);
224
222
  const held = staged.get(frame.carry);
225
223
  if (frame.index !== (held?.parts ?? 0)) {
226
224
  staged.delete(frame.carry);
@@ -233,8 +231,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
233
231
  }
234
232
  }
235
233
  const next = held ?? { authority: frame.authority, parts: 0, entries: [] };
236
- keptSpaceSchemas(frame.entries, spaces);
237
- next.entries.push(...frame.entries);
234
+ next.entries.push(...entries);
238
235
  next.parts += 1;
239
236
  staged.set(frame.carry, next);
240
237
  via?.received(frame.authority, frame.carry, frame.index);
@@ -261,16 +258,18 @@ export function houseNotifications(transport, mode, discovering, spaces) {
261
258
  return;
262
259
  }
263
260
  if (frame.type === 'caught_up') {
264
- discovering.expired?.(frame.expired);
261
+ const expired = frame.expired.flatMap((authority) => tracking.get(authority) ?? []);
262
+ discovering.expired?.(expired);
265
263
  emit({
266
264
  kind: 'caught-up',
267
- expired: [
268
- ...frame.expired.flatMap((authority) => (tracking.get(authority) ?? []).map((tracked) => tracked.locator)),
269
- ...(unanswered.shift() ?? []),
270
- ],
265
+ expired: [...expired.map(({ locator }) => locator), ...(unanswered.shift() ?? [])],
271
266
  });
272
267
  return;
273
268
  }
269
+ if (frame.type === 'report') {
270
+ emit({ kind: 'reported' });
271
+ return;
272
+ }
274
273
  if (frame.type === 'authority_changed') {
275
274
  const change = discovering.changed(frame);
276
275
  if (change !== null)
@@ -280,6 +279,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
280
279
  if (frame.type === 'conversations') {
281
280
  emitConversation({
282
281
  kind: 'list',
282
+ agents: frame.agents.map(listedAgent),
283
283
  entries: frame.conversations.map(listedConversation),
284
284
  whole: frame.whole,
285
285
  more: frame.more,
@@ -291,6 +291,10 @@ export function houseNotifications(transport, mode, discovering, spaces) {
291
291
  emitConversation({ kind: 'listed', entry: listedConversation(frame.conversation) });
292
292
  return;
293
293
  }
294
+ if (frame.type === 'agent') {
295
+ emitConversation({ kind: 'agent', agent: listedAgent(frame.agent) });
296
+ return;
297
+ }
294
298
  if (frame.type === 'conversation_deleted') {
295
299
  emitConversation({ kind: 'unlisted', conversation: frame.conversation_id });
296
300
  return;
@@ -300,8 +304,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
300
304
  frame.type === 'commands' ||
301
305
  frame.type === 'options' ||
302
306
  frame.type === 'starting' ||
303
- frame.type === 'subagents' ||
304
- frame.type === 'link' ||
307
+ frame.type === 'state' ||
305
308
  frame.type === 'deliveries' ||
306
309
  frame.type === 'interactions' ||
307
310
  frame.type === 'message') {
@@ -328,7 +331,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
328
331
  locator: tracked.locator,
329
332
  from,
330
333
  roomVersion: version,
331
- read: () => changePage(tracked, entries, version, mode, spaces, from === null),
334
+ read: () => changePage(tracked, entries, version, mode, from === null),
332
335
  });
333
336
  }
334
337
  }
@@ -339,6 +342,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
339
342
  announced = null;
340
343
  socket = null;
341
344
  staged.clear();
345
+ spaces = spaceSchemas();
342
346
  unanswered.length = 0;
343
347
  heldAtZero.clear();
344
348
  emit({ kind: 'closed', revoked, lost, authorityChanged });
@@ -366,12 +370,7 @@ export function houseNotifications(transport, mode, discovering, spaces) {
366
370
  conversationObservers.delete(notify);
367
371
  };
368
372
  },
369
- ...(mode === 'credential'
370
- ? {
371
- agents: () => houseAgents(transport),
372
- history: (request) => houseHistory(transport, request),
373
- }
374
- : {}),
373
+ ...(mode === 'credential' ? { history: (request) => houseHistory(transport, request) } : {}),
375
374
  },
376
375
  observe(notify) {
377
376
  observers.add(notify);
@@ -396,14 +395,13 @@ export function houseNotifications(transport, mode, discovering, spaces) {
396
395
  announced = null;
397
396
  if (socket === null)
398
397
  return;
399
- const entries = new Map([...tracking.values()].flat().map((tracked) => [tracked.locator, tracked]));
400
398
  const named = rooms.flatMap((room) => {
401
- const entry = entries.get(room.locator);
399
+ const entry = located.get(room.locator);
402
400
  const at = room.roomVersion === null ? null : logPosition(room.roomVersion);
403
401
  return entry === undefined || at === null ? [] : [{ entry, at }];
404
402
  });
405
403
  const unheld = rooms.flatMap((room) => {
406
- const entry = entries.get(room.locator);
404
+ const entry = located.get(room.locator);
407
405
  return entry === undefined || room.roomVersion !== null ? [] : [entry];
408
406
  });
409
407
  for (const { entry, at } of named) {
@@ -431,16 +429,21 @@ export function houseNotifications(transport, mode, discovering, spaces) {
431
429
  locator: entry.locator,
432
430
  from: null,
433
431
  roomVersion: version,
434
- read: () => changePage(entry, [], version, mode, spaces, true),
432
+ read: () => changePage(entry, [], version, mode, true),
435
433
  });
436
434
  }
437
435
  });
438
436
  },
439
437
  track(entries) {
440
438
  tracking.clear();
439
+ located.clear();
441
440
  for (const entry of entries) {
442
441
  tracking.set(entry.authority, [...(tracking.get(entry.authority) ?? []), entry]);
443
442
  }
443
+ for (const held of tracking.values()) {
444
+ for (const entry of held)
445
+ located.set(entry.locator, entry);
446
+ }
444
447
  for (const [carry, held] of staged) {
445
448
  if (!tracking.has(held.authority))
446
449
  staged.delete(carry);
@@ -1,28 +1,42 @@
1
- import type { ConversationEvent, SavedFacts, TurnOperation } from '@agentshouse/mdruntime';
1
+ import type { ConversationEvent, ListedAgent, SavedFacts } from '@agentshouse/mdruntime';
2
+ import type { Operation, SessionState } from './session-content/index.js';
2
3
  export declare const HOUSE_RUNTIME_READS: {
3
- readonly acts: readonly ['account/push/set', 'agents/list', 'apps/features/set', 'apps/source/download', 'apps/source/top/read', 'conversations/history/list', 'files/attach', 'files/batch', 'files/batch-upload', 'files/finish', 'files/read', 'files/revisions/list', 'room-chunks/list', 'rooms/discover', 'rooms/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'];
4
+ readonly acts: readonly ['account/push/set', 'account/time-zone/set', 'app.screenshot', 'app.source', 'apps/features/set', 'conversations/history/list', 'files/attach', 'files/finish', 'files/read', 'files/revisions/list', 'info', 'room-chunks/list', 'rooms/discover', 'rooms/search', 'update'];
5
+ readonly frames: readonly ['agent', 'app-message', 'app-rooms', 'authority_changed', 'carried', 'caught_up', 'commands', 'conversation', 'conversation_deleted', 'conversations', 'deliveries', 'deployment', 'held', 'interactions', 'message', 'opening', 'options', 'part', 'process', 'received', 'report', 'signal', 'site', 'starting', 'state', 'tab-icon', 'turn'];
5
6
  };
6
7
  export type HouseRuntimeAct = (typeof HOUSE_RUNTIME_READS.acts)[number];
7
8
  export type HouseRuntimeFrame = (typeof HOUSE_RUNTIME_READS.frames)[number];
8
9
  export declare function houseDoorRoute(act: HouseRuntimeAct): string;
9
- export declare function houseSiteRoute(act: 'chunks' | 'discover'): string;
10
+ export declare function houseSiteRoute(act: 'chunks' | 'discover' | 'query'): string;
11
+ export declare const SITE_QUERY = "query";
12
+ export declare const SITE_FRESH_QUERY = "fresh";
13
+ export declare const SITE_QUERY_ROUTE_CHARACTERS = 12000;
14
+ export declare function siteQueryRoute(room: string, query: Readonly<Record<string, unknown>>, fresh?: boolean): string;
15
+ export declare function siteQueryAsked(address: string): Readonly<Record<string, unknown>> | null;
10
16
  export declare const SITES_SUBMISSIONS_CREATE = "sites/submissions/create";
11
17
  export declare const SITE_DOOR_SUBMIT = "/_house/door/submit";
18
+ export declare const SITES_FUNCTIONS_CALL = "sites/functions/call";
19
+ export declare const SITE_DOOR_FUNCTION = "/_house/door/function";
20
+ interface SiteDoorAct {
21
+ readonly op: string;
22
+ readonly route: string;
23
+ }
24
+ export declare const SITE_DOOR_ACTS: Readonly<Record<string, SiteDoorAct>>;
25
+ export declare const SITE_DOOR_TOOL = "app_update";
12
26
  export type HouseMode = 'credential' | 'site';
13
27
  export type HouseDoorAnswer = {
14
28
  status: number;
15
29
  body: unknown;
16
30
  };
17
31
  export declare const SITE_FILES = "/_house/files/";
18
- export type HouseByteAct = 'authored_batch_upload';
32
+ export declare const SITE_IMAGE_COPIES_HEADER = "X-House-Image-Copies";
19
33
  export type HouseBytesAnswer = {
20
34
  status: number;
21
35
  body: ReadableStream<Uint8Array> | null;
22
36
  mediaType: string;
37
+ copies?: string | null;
23
38
  };
24
39
  export type HouseByteTransfer = {
25
- act: HouseByteAct;
26
40
  url: string;
27
41
  body: string;
28
42
  };
@@ -32,7 +46,6 @@ export type HouseStreamEntry = {
32
46
  removed?: true;
33
47
  revision?: string;
34
48
  sha256?: string;
35
- text?: string;
36
49
  bytes?: number;
37
50
  media_type?: string;
38
51
  author?: {
@@ -41,10 +54,21 @@ export type HouseStreamEntry = {
41
54
  } | {
42
55
  site: string;
43
56
  name: string;
57
+ } | {
58
+ inbox: string;
59
+ name: string;
60
+ } | {
61
+ app: string;
62
+ function: string;
63
+ release: string;
64
+ name: string;
44
65
  };
45
66
  changed_at?: string;
46
67
  created_at?: string;
68
+ content?: string;
69
+ provenance?: string;
47
70
  facts?: SavedFacts;
71
+ move?: 'arrival' | 'leaving';
48
72
  space?: string;
49
73
  };
50
74
  type LiveFact<K extends ConversationEvent['kind']> = Extract<ConversationEvent, {
@@ -53,18 +77,16 @@ type LiveFact<K extends ConversationEvent['kind']> = Extract<ConversationEvent,
53
77
  export type HouseListedConversation = {
54
78
  conversation_id: string;
55
79
  agent_id: string;
56
- agent_name: string;
57
- agent_retired: boolean;
58
80
  name: string;
59
81
  created_at: string;
60
- finished_at: string | null;
61
82
  outcome: string | null;
62
83
  waiting: boolean;
63
- newest: {
64
- accepted_at: string;
65
- message_id: string;
66
- } | null;
84
+ newest: number | null;
67
85
  process_ended_at: string | null;
86
+ subject: string | null;
87
+ room_ref: string | null;
88
+ model: string | null;
89
+ effort: string | null;
68
90
  };
69
91
  type Listed<Frame extends {
70
92
  readonly type: HouseRuntimeFrame;
@@ -86,23 +108,35 @@ export type HouseStreamFrame = Listed<{
86
108
  } | {
87
109
  type: 'opening';
88
110
  member: unknown;
111
+ time_zone: unknown;
89
112
  bounds: unknown;
90
113
  actions: readonly unknown[];
91
114
  shapes: readonly unknown[];
92
115
  rooms: readonly unknown[];
116
+ listed: readonly unknown[];
117
+ spaces: readonly unknown[];
93
118
  } | {
94
119
  type: 'caught_up';
95
120
  expired: readonly string[];
96
121
  } | {
97
122
  type: 'authority_changed';
98
123
  member: unknown;
124
+ time_zone: unknown;
99
125
  authorities: readonly unknown[];
126
+ listed: readonly unknown[];
127
+ spaces: readonly unknown[];
100
128
  left: readonly string[];
101
- } | ({
129
+ } | {
130
+ type: 'turn';
131
+ conversation_id: string;
132
+ turn_id: string;
133
+ at: string;
134
+ } | {
102
135
  type: 'turn';
103
136
  conversation_id: string;
104
137
  turn_id: string;
105
- } & TurnOperation) | {
138
+ operation: Operation;
139
+ } | {
106
140
  type: 'message';
107
141
  conversation_id: string;
108
142
  message: unknown;
@@ -113,6 +147,7 @@ export type HouseStreamFrame = Listed<{
113
147
  } | {
114
148
  type: 'deliveries';
115
149
  conversation_id: string;
150
+ waiting: readonly string[];
116
151
  unknown: readonly string[];
117
152
  } | {
118
153
  type: 'process';
@@ -131,15 +166,12 @@ export type HouseStreamFrame = Listed<{
131
166
  conversation_id: string;
132
167
  step: string | null;
133
168
  } | {
134
- type: 'subagents';
169
+ type: 'state';
135
170
  conversation_id: string;
136
- subagents: LiveFact<'subagents'>['subagents'];
137
- } | {
138
- type: 'link';
139
- conversation_id: string;
140
- connected: boolean;
171
+ state: SessionState;
141
172
  } | {
142
173
  type: 'conversations';
174
+ agents: readonly ListedAgent[];
143
175
  conversations: readonly HouseListedConversation[];
144
176
  whole: boolean;
145
177
  more: boolean;
@@ -147,12 +179,17 @@ export type HouseStreamFrame = Listed<{
147
179
  } | {
148
180
  type: 'conversation';
149
181
  conversation: HouseListedConversation;
182
+ } | {
183
+ type: 'agent';
184
+ agent: ListedAgent;
150
185
  } | {
151
186
  type: 'conversation_deleted';
152
187
  conversation_id: string;
153
188
  } | {
154
189
  type: 'signal';
155
190
  service_mode: string;
191
+ } | {
192
+ type: 'report';
156
193
  }>;
157
194
  export type HouseHeldRoom = {
158
195
  authority: string;
@@ -162,7 +199,7 @@ export type HouseHeldRoom = {
162
199
  export type HouseOpening = {
163
200
  hold(rooms: readonly HouseHeldRoom[], runtime: string, conversations: string | null): void;
164
201
  received(authority: string, carry: string, index: number): void;
165
- close(): void;
202
+ close(failure?: unknown): void;
166
203
  };
167
204
  export type HouseClosing = {
168
205
  revoked: boolean;
@@ -189,4 +226,3 @@ export type HouseSiteTransport = HouseDoor & {
189
226
  download(route: string): Promise<HouseBytesAnswer>;
190
227
  };
191
228
  export {};
192
- //# sourceMappingURL=transport.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE3F,eAAO,MAAM,mBAAmB;aAC9B,IAAI,YACF,kBAAkB,EAClB,aAAa,EACb,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,4BAA4B,EAC5B,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,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,MAAM,CAAC,CAAC;AAE5E,wBAAgB,cAAc,CAAC,GAAG,EAAE,eAAe,GAAG,MAAM,CAE3D;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,QAAQ,GAAG,UAAU,GAAG,MAAM,CAEjE;AAED,eAAO,MAAM,wBAAwB,6BAA6B,CAAC;AAEnE,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC;AAE9C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