@agentshouse/app-bridge 0.1.0-c3fb054e3f51c → 0.1.0-c3fd29abbefb2
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/index.d.ts +48 -456
- package/dist/mdruntime/adapter.d.ts +10 -1
- package/dist/mdruntime/client.d.ts +4 -11
- package/dist/mdruntime/conversation-live.d.ts +2 -1
- package/dist/mdruntime/conversation.d.ts +15 -1
- package/dist/mdruntime/store/records.d.ts +2 -0
- package/dist/mdruntime/wire.d.ts +36 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { MdRuntimeClient, Open } from './mdruntime/client.js';
|
|
2
2
|
export interface HouseMethods {
|
|
3
|
+
readonly "agent-functions/decide": {
|
|
4
|
+
readonly params: never;
|
|
5
|
+
readonly result: never;
|
|
6
|
+
};
|
|
3
7
|
readonly "agent-functions/requests/list": {
|
|
4
8
|
readonly params: {
|
|
9
|
+
readonly operation_id?: string;
|
|
5
10
|
readonly room_ref: string;
|
|
6
11
|
};
|
|
7
12
|
readonly result: {
|
|
@@ -16,7 +21,9 @@ export interface HouseMethods {
|
|
|
16
21
|
};
|
|
17
22
|
};
|
|
18
23
|
readonly "apps/features/list": {
|
|
19
|
-
readonly params: {
|
|
24
|
+
readonly params: {
|
|
25
|
+
readonly operation_id?: string;
|
|
26
|
+
};
|
|
20
27
|
readonly result: {
|
|
21
28
|
readonly features: readonly {
|
|
22
29
|
readonly allowed: boolean;
|
|
@@ -25,7 +32,9 @@ export interface HouseMethods {
|
|
|
25
32
|
};
|
|
26
33
|
};
|
|
27
34
|
readonly "apps/holders/list": {
|
|
28
|
-
readonly params: {
|
|
35
|
+
readonly params: {
|
|
36
|
+
readonly operation_id?: string;
|
|
37
|
+
};
|
|
29
38
|
readonly result: {
|
|
30
39
|
readonly holders: readonly {
|
|
31
40
|
readonly name: string;
|
|
@@ -36,6 +45,7 @@ export interface HouseMethods {
|
|
|
36
45
|
readonly "apps/messages/send": {
|
|
37
46
|
readonly params: {
|
|
38
47
|
readonly body: unknown;
|
|
48
|
+
readonly operation_id?: string;
|
|
39
49
|
readonly to: string;
|
|
40
50
|
};
|
|
41
51
|
readonly result: {
|
|
@@ -44,7 +54,7 @@ export interface HouseMethods {
|
|
|
44
54
|
};
|
|
45
55
|
readonly "apps/relay/read": {
|
|
46
56
|
readonly params: {
|
|
47
|
-
readonly
|
|
57
|
+
readonly operation_id?: string;
|
|
48
58
|
};
|
|
49
59
|
readonly result: {
|
|
50
60
|
readonly expires_at: string;
|
|
@@ -57,6 +67,7 @@ export interface HouseMethods {
|
|
|
57
67
|
};
|
|
58
68
|
readonly "apps/ring": {
|
|
59
69
|
readonly params: {
|
|
70
|
+
readonly operation_id?: string;
|
|
60
71
|
readonly to: string;
|
|
61
72
|
};
|
|
62
73
|
readonly result: {
|
|
@@ -72,7 +83,7 @@ export interface HouseMethods {
|
|
|
72
83
|
} | {
|
|
73
84
|
readonly user: string;
|
|
74
85
|
};
|
|
75
|
-
readonly operation_id
|
|
86
|
+
readonly operation_id?: string;
|
|
76
87
|
readonly path: string;
|
|
77
88
|
readonly room_ref: string;
|
|
78
89
|
};
|
|
@@ -98,7 +109,7 @@ export interface HouseMethods {
|
|
|
98
109
|
};
|
|
99
110
|
readonly "chats/reply": {
|
|
100
111
|
readonly params: {
|
|
101
|
-
readonly operation_id
|
|
112
|
+
readonly operation_id?: string;
|
|
102
113
|
readonly path: string;
|
|
103
114
|
readonly room_ref: string;
|
|
104
115
|
readonly template?: {
|
|
@@ -121,6 +132,7 @@ export interface HouseMethods {
|
|
|
121
132
|
};
|
|
122
133
|
readonly "chats/return": {
|
|
123
134
|
readonly params: {
|
|
135
|
+
readonly operation_id?: string;
|
|
124
136
|
readonly path: string;
|
|
125
137
|
readonly room_ref: string;
|
|
126
138
|
};
|
|
@@ -146,7 +158,7 @@ export interface HouseMethods {
|
|
|
146
158
|
};
|
|
147
159
|
readonly "chats/take-control": {
|
|
148
160
|
readonly params: {
|
|
149
|
-
readonly operation_id
|
|
161
|
+
readonly operation_id?: string;
|
|
150
162
|
readonly path: string;
|
|
151
163
|
readonly room_ref: string;
|
|
152
164
|
};
|
|
@@ -171,422 +183,52 @@ export interface HouseMethods {
|
|
|
171
183
|
};
|
|
172
184
|
};
|
|
173
185
|
readonly "conversations/create": {
|
|
174
|
-
readonly params:
|
|
175
|
-
|
|
176
|
-
readonly operation_id: string;
|
|
177
|
-
};
|
|
178
|
-
readonly result: {
|
|
179
|
-
readonly agent_id: string;
|
|
180
|
-
readonly authority: string;
|
|
181
|
-
readonly conversation_id: string;
|
|
182
|
-
readonly log_epoch: string;
|
|
183
|
-
readonly position: string;
|
|
184
|
-
readonly url: string;
|
|
185
|
-
};
|
|
186
|
+
readonly params: never;
|
|
187
|
+
readonly result: never;
|
|
186
188
|
};
|
|
187
189
|
readonly "conversations/delete": {
|
|
188
|
-
readonly params:
|
|
189
|
-
|
|
190
|
-
readonly operation_id: string;
|
|
191
|
-
};
|
|
192
|
-
readonly result: {
|
|
193
|
-
readonly authority: string;
|
|
194
|
-
readonly conversation_id: string;
|
|
195
|
-
readonly log_epoch: string;
|
|
196
|
-
readonly outcome: "deleted";
|
|
197
|
-
readonly position: string;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
readonly "conversations/end": {
|
|
201
|
-
readonly params: {
|
|
202
|
-
readonly conversation_id: string;
|
|
203
|
-
readonly operation_id: string;
|
|
204
|
-
};
|
|
205
|
-
readonly result: {
|
|
206
|
-
readonly agent_id: string;
|
|
207
|
-
readonly authority: string;
|
|
208
|
-
readonly conversation_id: string;
|
|
209
|
-
readonly jobs: readonly {
|
|
210
|
-
readonly name: string;
|
|
211
|
-
}[];
|
|
212
|
-
readonly log_epoch: string;
|
|
213
|
-
readonly position: string;
|
|
214
|
-
readonly url: string;
|
|
215
|
-
};
|
|
190
|
+
readonly params: never;
|
|
191
|
+
readonly result: never;
|
|
216
192
|
};
|
|
217
193
|
readonly "conversations/history/list": {
|
|
218
|
-
readonly params:
|
|
219
|
-
|
|
220
|
-
readonly after?: {
|
|
221
|
-
readonly accepted_at: string;
|
|
222
|
-
readonly message_id: string;
|
|
223
|
-
};
|
|
224
|
-
readonly conversation_id: string;
|
|
225
|
-
}[];
|
|
226
|
-
readonly limit?: number;
|
|
227
|
-
};
|
|
228
|
-
readonly result: {
|
|
229
|
-
readonly histories: readonly {
|
|
230
|
-
readonly agent_id: string;
|
|
231
|
-
readonly conversation_id: string;
|
|
232
|
-
readonly messages: readonly {
|
|
233
|
-
readonly accepted_at: string;
|
|
234
|
-
readonly content: null | {
|
|
235
|
-
readonly parts: readonly ({
|
|
236
|
-
readonly calls: null | number;
|
|
237
|
-
readonly duration: null | number;
|
|
238
|
-
readonly kind: "agent" | "fork" | "workflow";
|
|
239
|
-
readonly name: null | string;
|
|
240
|
-
readonly parent: null | number;
|
|
241
|
-
readonly report: null | string;
|
|
242
|
-
readonly status: "done" | "failed" | "running" | "stopped";
|
|
243
|
-
readonly step: null | string;
|
|
244
|
-
readonly task: string;
|
|
245
|
-
readonly tokens: null | number;
|
|
246
|
-
readonly type: "subagent";
|
|
247
|
-
} | {
|
|
248
|
-
readonly command: string;
|
|
249
|
-
readonly parent: null | number;
|
|
250
|
-
readonly target: null | string;
|
|
251
|
-
readonly type: "message";
|
|
252
|
-
} | {
|
|
253
|
-
readonly duration: null | number;
|
|
254
|
-
readonly exit: null | number;
|
|
255
|
-
readonly kind: "command";
|
|
256
|
-
readonly line: string;
|
|
257
|
-
readonly output: string;
|
|
258
|
-
readonly parent: null | number;
|
|
259
|
-
readonly status: "done" | "failed" | "running" | "stopped";
|
|
260
|
-
readonly type: "call";
|
|
261
|
-
} | {
|
|
262
|
-
readonly duration: null | number;
|
|
263
|
-
readonly files: readonly {
|
|
264
|
-
readonly added: number;
|
|
265
|
-
readonly diff: null | string;
|
|
266
|
-
readonly path: string;
|
|
267
|
-
readonly removed: number;
|
|
268
|
-
}[];
|
|
269
|
-
readonly kind: "edit";
|
|
270
|
-
readonly line: string;
|
|
271
|
-
readonly parent: null | number;
|
|
272
|
-
readonly status: "done" | "failed" | "running" | "stopped";
|
|
273
|
-
readonly type: "call";
|
|
274
|
-
} | {
|
|
275
|
-
readonly duration: null | number;
|
|
276
|
-
readonly kind: "fetch" | "other" | "tool";
|
|
277
|
-
readonly line: string;
|
|
278
|
-
readonly output: string;
|
|
279
|
-
readonly parent: null | number;
|
|
280
|
-
readonly status: "done" | "failed" | "running" | "stopped";
|
|
281
|
-
readonly type: "call";
|
|
282
|
-
} | {
|
|
283
|
-
readonly duration: null | number;
|
|
284
|
-
readonly kind: "read" | "search";
|
|
285
|
-
readonly line: string;
|
|
286
|
-
readonly parent: null | number;
|
|
287
|
-
readonly returned: null | number;
|
|
288
|
-
readonly status: "done" | "failed" | "running" | "stopped";
|
|
289
|
-
readonly type: "call";
|
|
290
|
-
} | {
|
|
291
|
-
readonly entries: readonly {
|
|
292
|
-
readonly content: string;
|
|
293
|
-
readonly status: "done" | "pending" | "running";
|
|
294
|
-
}[];
|
|
295
|
-
readonly parent: null | number;
|
|
296
|
-
readonly type: "plan";
|
|
297
|
-
} | {
|
|
298
|
-
readonly file: string;
|
|
299
|
-
readonly media_type: string;
|
|
300
|
-
readonly name: string;
|
|
301
|
-
readonly parent: null | number;
|
|
302
|
-
readonly type: "image";
|
|
303
|
-
} | {
|
|
304
|
-
readonly kind: "compaction" | "error" | "info" | "mode" | "model" | "retry" | "warning";
|
|
305
|
-
readonly parent: null | number;
|
|
306
|
-
readonly text: string;
|
|
307
|
-
readonly type: "notice";
|
|
308
|
-
} | {
|
|
309
|
-
readonly kind: "monitor" | "schedule" | "shell" | "task";
|
|
310
|
-
readonly label: string;
|
|
311
|
-
readonly parent: null | number;
|
|
312
|
-
readonly status: "done" | "failed" | "running" | "stopped";
|
|
313
|
-
readonly type: "background";
|
|
314
|
-
} | {
|
|
315
|
-
readonly parent: null | number;
|
|
316
|
-
readonly text: string;
|
|
317
|
-
readonly type: "reasoning" | "text";
|
|
318
|
-
})[];
|
|
319
|
-
readonly state: {
|
|
320
|
-
readonly branch: null | string;
|
|
321
|
-
readonly context: null | {
|
|
322
|
-
readonly breakdown: readonly {
|
|
323
|
-
readonly name: string;
|
|
324
|
-
readonly tokens: number;
|
|
325
|
-
}[];
|
|
326
|
-
readonly used: number;
|
|
327
|
-
readonly window: number;
|
|
328
|
-
};
|
|
329
|
-
readonly cost: null | {
|
|
330
|
-
readonly amount: number;
|
|
331
|
-
readonly currency: string;
|
|
332
|
-
};
|
|
333
|
-
readonly duration: null | number;
|
|
334
|
-
readonly effort: null | string;
|
|
335
|
-
readonly files: readonly {
|
|
336
|
-
readonly added: number;
|
|
337
|
-
readonly path: string;
|
|
338
|
-
readonly removed: number;
|
|
339
|
-
}[];
|
|
340
|
-
readonly limits: readonly {
|
|
341
|
-
readonly minutes: number;
|
|
342
|
-
readonly name: null | string;
|
|
343
|
-
readonly percent: number;
|
|
344
|
-
readonly resets: null | string;
|
|
345
|
-
}[];
|
|
346
|
-
readonly mode: null | string;
|
|
347
|
-
readonly model: null | string;
|
|
348
|
-
readonly pull: null | {
|
|
349
|
-
readonly number: number;
|
|
350
|
-
readonly url: string;
|
|
351
|
-
};
|
|
352
|
-
readonly running: readonly {
|
|
353
|
-
readonly kind: "monitor" | "schedule" | "shell" | "subagent" | "task";
|
|
354
|
-
readonly label: string;
|
|
355
|
-
readonly next: null | string;
|
|
356
|
-
readonly progress: null | string;
|
|
357
|
-
}[];
|
|
358
|
-
readonly suggestion: null | string;
|
|
359
|
-
readonly title: null | string;
|
|
360
|
-
readonly tokens: null | {
|
|
361
|
-
readonly cache_read: number;
|
|
362
|
-
readonly cache_write: number;
|
|
363
|
-
readonly input: number;
|
|
364
|
-
readonly output: number;
|
|
365
|
-
};
|
|
366
|
-
readonly worktree: null | string;
|
|
367
|
-
};
|
|
368
|
-
readonly tokens: null | {
|
|
369
|
-
readonly cache_read: number;
|
|
370
|
-
readonly cache_write: number;
|
|
371
|
-
readonly input: number;
|
|
372
|
-
readonly output: number;
|
|
373
|
-
};
|
|
374
|
-
};
|
|
375
|
-
readonly conversation_id: string;
|
|
376
|
-
readonly failure: null | string;
|
|
377
|
-
readonly message_id: string;
|
|
378
|
-
readonly role: "assistant" | "house" | "user";
|
|
379
|
-
readonly sender?: "conversation" | "customer" | "owner" | "replier" | "report" | "requester" | "trigger";
|
|
380
|
-
readonly source?: {
|
|
381
|
-
readonly agent: {
|
|
382
|
-
readonly id: string;
|
|
383
|
-
readonly name: string;
|
|
384
|
-
readonly url: string;
|
|
385
|
-
};
|
|
386
|
-
readonly approved_at?: string;
|
|
387
|
-
readonly declined_at?: string;
|
|
388
|
-
readonly kind: "mail";
|
|
389
|
-
readonly owner: {
|
|
390
|
-
readonly name: string;
|
|
391
|
-
readonly user: string;
|
|
392
|
-
};
|
|
393
|
-
readonly request: string;
|
|
394
|
-
readonly room: string;
|
|
395
|
-
} | {
|
|
396
|
-
readonly agent: {
|
|
397
|
-
readonly id: string;
|
|
398
|
-
readonly name: string;
|
|
399
|
-
readonly url: string;
|
|
400
|
-
};
|
|
401
|
-
readonly conversation: {
|
|
402
|
-
readonly id: string;
|
|
403
|
-
readonly name: string;
|
|
404
|
-
readonly url: string;
|
|
405
|
-
};
|
|
406
|
-
readonly kind: "conversation";
|
|
407
|
-
} | {
|
|
408
|
-
readonly agent: {
|
|
409
|
-
readonly id: string;
|
|
410
|
-
readonly name: string;
|
|
411
|
-
readonly url: string;
|
|
412
|
-
};
|
|
413
|
-
readonly kind: "declined";
|
|
414
|
-
readonly owner: {
|
|
415
|
-
readonly name: string;
|
|
416
|
-
readonly user: string;
|
|
417
|
-
};
|
|
418
|
-
readonly request: string;
|
|
419
|
-
} | {
|
|
420
|
-
readonly agent_function: null | {
|
|
421
|
-
readonly id: string;
|
|
422
|
-
readonly name: string;
|
|
423
|
-
readonly version: number;
|
|
424
|
-
};
|
|
425
|
-
readonly approved_at: null | string;
|
|
426
|
-
readonly kind: "request";
|
|
427
|
-
readonly request: string;
|
|
428
|
-
readonly requester: {
|
|
429
|
-
readonly name: string;
|
|
430
|
-
readonly room: string;
|
|
431
|
-
readonly url: string;
|
|
432
|
-
} | {
|
|
433
|
-
readonly name: string;
|
|
434
|
-
readonly user: string;
|
|
435
|
-
};
|
|
436
|
-
readonly room: {
|
|
437
|
-
readonly handle: string;
|
|
438
|
-
readonly name: string;
|
|
439
|
-
readonly ref: string;
|
|
440
|
-
readonly url: string;
|
|
441
|
-
};
|
|
442
|
-
} | {
|
|
443
|
-
readonly kind: "reply";
|
|
444
|
-
readonly name: string;
|
|
445
|
-
} | {
|
|
446
|
-
readonly kind: "trigger";
|
|
447
|
-
readonly path: null | string;
|
|
448
|
-
readonly room: {
|
|
449
|
-
readonly handle: string;
|
|
450
|
-
readonly name: string;
|
|
451
|
-
readonly ref: string;
|
|
452
|
-
readonly url: string;
|
|
453
|
-
};
|
|
454
|
-
readonly trigger: {
|
|
455
|
-
readonly description: string;
|
|
456
|
-
readonly id: string;
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
readonly telegram_undelivered?: true;
|
|
460
|
-
readonly text: string;
|
|
461
|
-
readonly transcripts?: readonly {
|
|
462
|
-
readonly path: string;
|
|
463
|
-
readonly text: string;
|
|
464
|
-
}[];
|
|
465
|
-
readonly turn_id: null | string;
|
|
466
|
-
readonly url?: string;
|
|
467
|
-
readonly waiting?: true;
|
|
468
|
-
}[];
|
|
469
|
-
readonly next: null | {
|
|
470
|
-
readonly accepted_at: string;
|
|
471
|
-
readonly message_id: string;
|
|
472
|
-
};
|
|
473
|
-
readonly url: string;
|
|
474
|
-
}[];
|
|
475
|
-
};
|
|
194
|
+
readonly params: never;
|
|
195
|
+
readonly result: never;
|
|
476
196
|
};
|
|
477
197
|
readonly "conversations/interaction/answer": {
|
|
478
|
-
readonly params:
|
|
479
|
-
|
|
480
|
-
readonly interaction_id: string;
|
|
481
|
-
readonly operation_id: string;
|
|
482
|
-
readonly response: readonly unknown[] | boolean | null | number | {
|
|
483
|
-
readonly [key: string]: unknown;
|
|
484
|
-
} | string;
|
|
485
|
-
};
|
|
486
|
-
readonly result: {
|
|
487
|
-
readonly agent_id: string;
|
|
488
|
-
readonly authority: string;
|
|
489
|
-
readonly conversation_id: string;
|
|
490
|
-
readonly interaction_id: string;
|
|
491
|
-
readonly log_epoch: string;
|
|
492
|
-
readonly position: string;
|
|
493
|
-
readonly url: string;
|
|
494
|
-
};
|
|
198
|
+
readonly params: never;
|
|
199
|
+
readonly result: never;
|
|
495
200
|
};
|
|
496
201
|
readonly "conversations/interrupt": {
|
|
497
|
-
readonly params:
|
|
498
|
-
|
|
499
|
-
readonly operation_id: string;
|
|
500
|
-
};
|
|
501
|
-
readonly result: {
|
|
502
|
-
readonly agent_id: string;
|
|
503
|
-
readonly authority: string;
|
|
504
|
-
readonly conversation_id: string;
|
|
505
|
-
readonly log_epoch: string;
|
|
506
|
-
readonly position: string;
|
|
507
|
-
readonly url: string;
|
|
508
|
-
};
|
|
202
|
+
readonly params: never;
|
|
203
|
+
readonly result: never;
|
|
509
204
|
};
|
|
510
205
|
readonly "conversations/kill": {
|
|
511
|
-
readonly params:
|
|
512
|
-
|
|
513
|
-
readonly operation_id: string;
|
|
514
|
-
};
|
|
515
|
-
readonly result: {
|
|
516
|
-
readonly agent_id: string;
|
|
517
|
-
readonly authority: string;
|
|
518
|
-
readonly conversation_id: string;
|
|
519
|
-
readonly log_epoch: string;
|
|
520
|
-
readonly position: string;
|
|
521
|
-
readonly url: string;
|
|
522
|
-
};
|
|
206
|
+
readonly params: never;
|
|
207
|
+
readonly result: never;
|
|
523
208
|
};
|
|
524
209
|
readonly "conversations/option/set": {
|
|
525
|
-
readonly params:
|
|
526
|
-
|
|
527
|
-
readonly operation_id: string;
|
|
528
|
-
readonly option: string;
|
|
529
|
-
readonly value: boolean | string;
|
|
530
|
-
};
|
|
531
|
-
readonly result: {
|
|
532
|
-
readonly agent_id: string;
|
|
533
|
-
readonly authority: string;
|
|
534
|
-
readonly conversation_id: string;
|
|
535
|
-
readonly log_epoch: string;
|
|
536
|
-
readonly position: string;
|
|
537
|
-
readonly url: string;
|
|
538
|
-
};
|
|
210
|
+
readonly params: never;
|
|
211
|
+
readonly result: never;
|
|
539
212
|
};
|
|
540
213
|
readonly "conversations/rename": {
|
|
541
|
-
readonly params:
|
|
542
|
-
|
|
543
|
-
readonly name: string;
|
|
544
|
-
readonly operation_id: string;
|
|
545
|
-
};
|
|
546
|
-
readonly result: {
|
|
547
|
-
readonly agent_id: string;
|
|
548
|
-
readonly authority: string;
|
|
549
|
-
readonly conversation_id: string;
|
|
550
|
-
readonly log_epoch: string;
|
|
551
|
-
readonly name: string;
|
|
552
|
-
readonly position: string;
|
|
553
|
-
readonly url: string;
|
|
554
|
-
};
|
|
214
|
+
readonly params: never;
|
|
215
|
+
readonly result: never;
|
|
555
216
|
};
|
|
556
217
|
readonly "conversations/retry": {
|
|
557
|
-
readonly params:
|
|
558
|
-
|
|
559
|
-
readonly message_id: string;
|
|
560
|
-
readonly operation_id: string;
|
|
561
|
-
};
|
|
562
|
-
readonly result: {
|
|
563
|
-
readonly agent_id: string;
|
|
564
|
-
readonly authority: string;
|
|
565
|
-
readonly conversation_id: string;
|
|
566
|
-
readonly log_epoch: string;
|
|
567
|
-
readonly message_id: string;
|
|
568
|
-
readonly position: string;
|
|
569
|
-
readonly url: string;
|
|
570
|
-
};
|
|
218
|
+
readonly params: never;
|
|
219
|
+
readonly result: never;
|
|
571
220
|
};
|
|
572
221
|
readonly "conversations/send": {
|
|
573
|
-
readonly params:
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
readonly result:
|
|
579
|
-
readonly agent_id: string;
|
|
580
|
-
readonly authority: string;
|
|
581
|
-
readonly conversation_id: string;
|
|
582
|
-
readonly log_epoch: string;
|
|
583
|
-
readonly message_id: string;
|
|
584
|
-
readonly position: string;
|
|
585
|
-
readonly url: string;
|
|
586
|
-
};
|
|
222
|
+
readonly params: never;
|
|
223
|
+
readonly result: never;
|
|
224
|
+
};
|
|
225
|
+
readonly "conversations/take-out": {
|
|
226
|
+
readonly params: never;
|
|
227
|
+
readonly result: never;
|
|
587
228
|
};
|
|
588
229
|
readonly "records/list": {
|
|
589
230
|
readonly params: {
|
|
231
|
+
readonly operation_id?: string;
|
|
590
232
|
readonly order?: "asc" | "desc";
|
|
591
233
|
readonly room_ref: string;
|
|
592
234
|
};
|
|
@@ -602,6 +244,7 @@ export interface HouseMethods {
|
|
|
602
244
|
};
|
|
603
245
|
readonly "rooms/access/list": {
|
|
604
246
|
readonly params: {
|
|
247
|
+
readonly operation_id?: string;
|
|
605
248
|
readonly room_ref: string;
|
|
606
249
|
};
|
|
607
250
|
readonly result: {
|
|
@@ -640,6 +283,7 @@ export interface HouseMethods {
|
|
|
640
283
|
readonly "rooms/members/list": {
|
|
641
284
|
readonly params: {
|
|
642
285
|
readonly history?: boolean;
|
|
286
|
+
readonly operation_id?: string;
|
|
643
287
|
readonly room_ref: string;
|
|
644
288
|
};
|
|
645
289
|
readonly result: {
|
|
@@ -664,6 +308,7 @@ export interface HouseMethods {
|
|
|
664
308
|
};
|
|
665
309
|
readonly "rooms/settings/processing/read": {
|
|
666
310
|
readonly params: {
|
|
311
|
+
readonly operation_id?: string;
|
|
667
312
|
readonly path: string;
|
|
668
313
|
readonly room_ref: string;
|
|
669
314
|
};
|
|
@@ -705,6 +350,7 @@ export interface HouseMethods {
|
|
|
705
350
|
};
|
|
706
351
|
readonly "storage/inventory/read": {
|
|
707
352
|
readonly params: {
|
|
353
|
+
readonly operation_id?: string;
|
|
708
354
|
readonly room_ref?: string;
|
|
709
355
|
readonly rooms?: "owned";
|
|
710
356
|
};
|
|
@@ -796,65 +442,11 @@ export interface HouseMethods {
|
|
|
796
442
|
readonly bytes: string;
|
|
797
443
|
readonly gigabytes: string;
|
|
798
444
|
};
|
|
799
|
-
} | {
|
|
800
|
-
readonly blob: {
|
|
801
|
-
readonly bytes: string;
|
|
802
|
-
readonly gigabytes: string;
|
|
803
|
-
};
|
|
804
|
-
readonly freshness: {
|
|
805
|
-
readonly state: "settled";
|
|
806
|
-
};
|
|
807
|
-
readonly indexed_text: {
|
|
808
|
-
readonly approximate_pages: null | string;
|
|
809
|
-
readonly bytes: string;
|
|
810
|
-
readonly gigabytes: string;
|
|
811
|
-
};
|
|
812
|
-
readonly measurement: {
|
|
813
|
-
readonly page_reference: null | {
|
|
814
|
-
readonly bytes_per_page: string;
|
|
815
|
-
readonly encoding: string;
|
|
816
|
-
readonly font: string;
|
|
817
|
-
readonly font_size_pt: string;
|
|
818
|
-
readonly layout: string;
|
|
819
|
-
};
|
|
820
|
-
};
|
|
821
|
-
readonly rooms?: readonly {
|
|
822
|
-
readonly blob: {
|
|
823
|
-
readonly bytes: string;
|
|
824
|
-
readonly gigabytes: string;
|
|
825
|
-
};
|
|
826
|
-
readonly freshness: {
|
|
827
|
-
readonly state: "settled";
|
|
828
|
-
};
|
|
829
|
-
readonly indexed_text: {
|
|
830
|
-
readonly approximate_pages: null | string;
|
|
831
|
-
readonly bytes: string;
|
|
832
|
-
readonly gigabytes: string;
|
|
833
|
-
};
|
|
834
|
-
readonly measurement: {
|
|
835
|
-
readonly page_reference: null | {
|
|
836
|
-
readonly bytes_per_page: string;
|
|
837
|
-
readonly encoding: string;
|
|
838
|
-
readonly font: string;
|
|
839
|
-
readonly font_size_pt: string;
|
|
840
|
-
readonly layout: string;
|
|
841
|
-
};
|
|
842
|
-
};
|
|
843
|
-
readonly room_ref: string;
|
|
844
|
-
readonly total: {
|
|
845
|
-
readonly bytes: string;
|
|
846
|
-
readonly gigabytes: string;
|
|
847
|
-
};
|
|
848
|
-
readonly url: string;
|
|
849
|
-
}[];
|
|
850
|
-
readonly total: {
|
|
851
|
-
readonly bytes: string;
|
|
852
|
-
readonly gigabytes: string;
|
|
853
|
-
};
|
|
854
445
|
};
|
|
855
446
|
};
|
|
856
447
|
readonly "triggers/fired/list": {
|
|
857
448
|
readonly params: {
|
|
449
|
+
readonly operation_id?: string;
|
|
858
450
|
readonly room_ref?: string;
|
|
859
451
|
};
|
|
860
452
|
readonly result: {
|
|
@@ -52,7 +52,7 @@ export type ListedConversation = {
|
|
|
52
52
|
newest: string | null;
|
|
53
53
|
processEnded: string | null;
|
|
54
54
|
};
|
|
55
|
-
export type ConversationAction = 'conversations/create' | 'conversations/send' | 'conversations/interaction/answer' | 'conversations/interrupt' | 'conversations/kill' | 'conversations/delete';
|
|
55
|
+
export type ConversationAction = 'conversations/create' | 'conversations/send' | 'conversations/interaction/answer' | 'conversations/interrupt' | 'conversations/kill' | 'conversations/delete' | 'conversations/take-out' | 'conversations/rename' | 'conversations/option/set' | 'conversations/retry' | 'agent-functions/decide';
|
|
56
56
|
export type ConversationMessage = {
|
|
57
57
|
identity: string;
|
|
58
58
|
turn: string;
|
|
@@ -61,6 +61,7 @@ export type ConversationMessage = {
|
|
|
61
61
|
};
|
|
62
62
|
export type AcceptedMessage = ConversationMessage & {
|
|
63
63
|
position: string;
|
|
64
|
+
change: string;
|
|
64
65
|
};
|
|
65
66
|
export type ConversationHistoryRequest = {
|
|
66
67
|
conversations: readonly {
|
|
@@ -152,6 +153,7 @@ export type ConversationEvent = {
|
|
|
152
153
|
} | {
|
|
153
154
|
kind: 'deliveries';
|
|
154
155
|
conversation: string;
|
|
156
|
+
waiting: readonly string[];
|
|
155
157
|
unknown: readonly string[];
|
|
156
158
|
} | {
|
|
157
159
|
kind: 'accepted-message';
|
|
@@ -173,10 +175,17 @@ export type ConversationEvent = {
|
|
|
173
175
|
kind: 'unlisted';
|
|
174
176
|
conversation: string;
|
|
175
177
|
};
|
|
178
|
+
export type AgentEnvironment = {
|
|
179
|
+
identity: string;
|
|
180
|
+
name: string;
|
|
181
|
+
state: 'online' | 'offline';
|
|
182
|
+
};
|
|
176
183
|
export type ListedAgent = {
|
|
177
184
|
agent: string;
|
|
178
185
|
name: string;
|
|
179
186
|
retired: boolean;
|
|
187
|
+
cli: string;
|
|
188
|
+
environment: AgentEnvironment;
|
|
180
189
|
};
|
|
181
190
|
export type ConversationStream = {
|
|
182
191
|
replicate(conversations: readonly string[]): void;
|
|
@@ -6,9 +6,9 @@ import type { RoomSchemas } from './surface.js';
|
|
|
6
6
|
import type { SavedParts, SavedRoomDraft, SaveResult } from './saves.js';
|
|
7
7
|
import type { Member, ServiceMode } from './adapter.js';
|
|
8
8
|
import type { UnsentWork } from './durability.js';
|
|
9
|
-
import type { ChatDraft, ConversationAgent,
|
|
9
|
+
import type { ChatDraft, ConversationAgent, ConversationEntry, ConversationOptions, ConversationSurface, ConversationView } from './conversation.js';
|
|
10
10
|
import { type Observation } from './observation.js';
|
|
11
|
-
import type { AttachAnswer, BinaryAnswer, CallResult, DownloadAnswer, HistoryAnswer,
|
|
11
|
+
import type { AttachAnswer, BinaryAnswer, CallResult, DownloadAnswer, HistoryAnswer, QueueEntry, Resolution } from './outcome.js';
|
|
12
12
|
import type { FiguresResult } from './figures.js';
|
|
13
13
|
import type { Holdings } from './holdings.js';
|
|
14
14
|
import type { DocumentResult, GroupResult, PendingResult } from './query.js';
|
|
@@ -41,15 +41,8 @@ export type MdRuntimeClient = {
|
|
|
41
41
|
write(value: unknown): Promise<void>;
|
|
42
42
|
edit(members: Readonly<Record<string, unknown>>): Promise<void>;
|
|
43
43
|
};
|
|
44
|
-
conversation: {
|
|
45
|
-
|
|
46
|
-
read(conversation: string, options?: ConversationRead): Promise<ConversationView>;
|
|
47
|
-
create(input: unknown): Promise<CallResult>;
|
|
48
|
-
send(conversation: string, operation?: string, draft?: ChatDraft): Promise<CallResult | Offline>;
|
|
49
|
-
answer(conversation: string, answer: ConversationAnswer): Promise<CallResult>;
|
|
50
|
-
interrupt(conversation: string): Promise<CallResult>;
|
|
51
|
-
kill(conversation: string): Promise<CallResult>;
|
|
52
|
-
delete(conversation: string): Promise<CallResult>;
|
|
44
|
+
conversation: ConversationSurface & {
|
|
45
|
+
pageMetadata(app: string, address: string): Promise<string>;
|
|
53
46
|
};
|
|
54
47
|
chatDraft: {
|
|
55
48
|
write(conversation: string, draft: ChatDraft, revision?: string): Promise<void>;
|
|
@@ -34,6 +34,7 @@ export type Live = {
|
|
|
34
34
|
link: {
|
|
35
35
|
connected: boolean;
|
|
36
36
|
} | null;
|
|
37
|
+
deliveryWaiting: readonly string[];
|
|
37
38
|
deliveryUnknown: readonly string[];
|
|
38
39
|
};
|
|
39
40
|
export declare const QUIET: Live;
|
|
@@ -106,7 +107,7 @@ export type LiveConversations = {
|
|
|
106
107
|
caughtUpTo(conversation: string): void;
|
|
107
108
|
gapOpened(conversation: string): void;
|
|
108
109
|
generation(conversation: string): number;
|
|
109
|
-
heardAt(conversation: string,
|
|
110
|
+
heardAt(conversation: string, change: string): void;
|
|
110
111
|
newestHeard(conversation: string): string | undefined;
|
|
111
112
|
catching(conversation: string): Promise<void> | undefined;
|
|
112
113
|
catchingUntil(conversation: string, ended: Promise<void>): void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type Part, type SessionState } from '../session-content/index.js';
|
|
2
|
-
import type { ConversationEvent, ConversationMessage, ProcessCommand, SessionOption } from './adapter.js';
|
|
2
|
+
import type { AgentEnvironment, ConversationEvent, ConversationMessage, ProcessCommand, SessionOption } from './adapter.js';
|
|
3
3
|
import { type ChangeSet } from './change-set.js';
|
|
4
4
|
import { type LiveConversations } from './conversation-live.js';
|
|
5
5
|
import { type ConversationHeld } from './conversation-row.js';
|
|
6
6
|
import type { Open } from './open.js';
|
|
7
7
|
import { type CallResult, type Offline } from './outcome.js';
|
|
8
|
+
import type { ChatRequest } from './source.js';
|
|
8
9
|
import type { CycleProgress } from './status.js';
|
|
9
10
|
import type { RuntimeStore } from './store.js';
|
|
10
11
|
export type ConversationState = Open<'working' | 'asking' | 'idle'>;
|
|
@@ -29,6 +30,8 @@ export type ConversationEntry = ConversationHeld & {
|
|
|
29
30
|
export type ConversationAgent = {
|
|
30
31
|
identity: string;
|
|
31
32
|
name: string;
|
|
33
|
+
cli?: string;
|
|
34
|
+
environment?: AgentEnvironment;
|
|
32
35
|
};
|
|
33
36
|
export type RunningTurn = {
|
|
34
37
|
turn: string;
|
|
@@ -64,11 +67,13 @@ export type ConversationView = {
|
|
|
64
67
|
link: {
|
|
65
68
|
connected: boolean;
|
|
66
69
|
} | null;
|
|
70
|
+
deliveryWaiting: readonly string[];
|
|
67
71
|
deliveryUnknown: readonly string[];
|
|
68
72
|
chatDraft: (ChatDraft & {
|
|
69
73
|
readonly revision: string;
|
|
70
74
|
}) | null;
|
|
71
75
|
};
|
|
76
|
+
export type RequestDecision = 'approve' | 'decline';
|
|
72
77
|
export type ConversationSurface = {
|
|
73
78
|
list(): Promise<readonly ConversationEntry[]>;
|
|
74
79
|
read(conversation: string, options?: ConversationRead): Promise<ConversationView>;
|
|
@@ -78,6 +83,15 @@ export type ConversationSurface = {
|
|
|
78
83
|
interrupt(conversation: string): Promise<CallResult>;
|
|
79
84
|
kill(conversation: string): Promise<CallResult>;
|
|
80
85
|
delete(conversation: string): Promise<CallResult>;
|
|
86
|
+
takeOut(conversation: string, message: string, operation: string): Promise<CallResult>;
|
|
87
|
+
decide(request: ChatRequest, decision: RequestDecision, operation: string): Promise<CallResult>;
|
|
88
|
+
rename(conversation: string, name: string, operation: string): Promise<CallResult>;
|
|
89
|
+
option(conversation: string, option: string, value: string | boolean, operation: string): Promise<CallResult>;
|
|
90
|
+
retry(conversation: string, message: string, operation: string): Promise<CallResult>;
|
|
91
|
+
pins(): Promise<readonly string[]>;
|
|
92
|
+
pin(figures: readonly string[]): Promise<void>;
|
|
93
|
+
openedTurns(): Promise<Readonly<Record<string, string>>>;
|
|
94
|
+
openTurn(conversation: string, turn: string): Promise<void>;
|
|
81
95
|
};
|
|
82
96
|
export type ConversationAnswer = {
|
|
83
97
|
interaction_id: string;
|
|
@@ -125,6 +125,8 @@ export type Facts = {
|
|
|
125
125
|
readonly targets: Readonly<Record<string, TargetRecord>>;
|
|
126
126
|
readonly conversationList: readonly ListedConversation[] | null;
|
|
127
127
|
readonly conversationCursor: string | null;
|
|
128
|
+
readonly chatPins: readonly string[];
|
|
129
|
+
readonly openedTurns: Readonly<Record<string, string>>;
|
|
128
130
|
};
|
|
129
131
|
export type Commit = {
|
|
130
132
|
readonly rooms: readonly RoomCommit[];
|
package/dist/mdruntime/wire.d.ts
CHANGED
|
@@ -166,6 +166,42 @@ declare const MEMBERS: {
|
|
|
166
166
|
readonly reach: 'within';
|
|
167
167
|
readonly effect: 'action';
|
|
168
168
|
};
|
|
169
|
+
readonly 'conversation.takeOut': {
|
|
170
|
+
readonly reach: 'within';
|
|
171
|
+
readonly effect: 'action';
|
|
172
|
+
};
|
|
173
|
+
readonly 'conversation.decide': {
|
|
174
|
+
readonly reach: 'within';
|
|
175
|
+
readonly effect: 'action';
|
|
176
|
+
};
|
|
177
|
+
readonly 'conversation.rename': {
|
|
178
|
+
readonly reach: 'within';
|
|
179
|
+
readonly effect: 'action';
|
|
180
|
+
};
|
|
181
|
+
readonly 'conversation.option': {
|
|
182
|
+
readonly reach: 'within';
|
|
183
|
+
readonly effect: 'action';
|
|
184
|
+
};
|
|
185
|
+
readonly 'conversation.retry': {
|
|
186
|
+
readonly reach: 'within';
|
|
187
|
+
readonly effect: 'action';
|
|
188
|
+
};
|
|
189
|
+
readonly 'conversation.pins': {
|
|
190
|
+
readonly reach: 'within';
|
|
191
|
+
readonly effect: 'read';
|
|
192
|
+
};
|
|
193
|
+
readonly 'conversation.pin': {
|
|
194
|
+
readonly reach: 'within';
|
|
195
|
+
readonly effect: 'write';
|
|
196
|
+
};
|
|
197
|
+
readonly 'conversation.openedTurns': {
|
|
198
|
+
readonly reach: 'within';
|
|
199
|
+
readonly effect: 'read';
|
|
200
|
+
};
|
|
201
|
+
readonly 'conversation.openTurn': {
|
|
202
|
+
readonly reach: 'within';
|
|
203
|
+
readonly effect: 'write';
|
|
204
|
+
};
|
|
169
205
|
readonly 'chatDraft.write': {
|
|
170
206
|
readonly reach: 'within';
|
|
171
207
|
readonly effect: 'write';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/app-bridge",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-c3fd29abbefb2",
|
|
4
4
|
"description": "Types of the agents.house App bridge House hands every App: navigation, the tab title and icon, ceremonies, installation, notifications and the icon badge, status, Site image reads, App release code, App and Site screenshot reads, App messages and the Chat, with an accessor and an in-page test host.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|