@agentshouse/app-bridge 0.1.0-c1e94bea3fb3f → 0.1.0-c1f21d63accfa
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 +211 -144
- package/dist/mdmodel/definition.d.ts +15 -0
- package/dist/mdmodel/document.d.ts +8 -5
- package/dist/mdmodel/event.d.ts +2 -2
- package/dist/mdmodel/index.d.ts +9 -10
- package/dist/mdmodel/kinds.d.ts +1 -2
- package/dist/mdmodel/markdown.d.ts +50 -0
- package/dist/mdmodel/reserved.d.ts +1 -0
- package/dist/mdmodel/types.d.ts +7 -1
- package/dist/mdmodel/validate.d.ts +2 -1
- package/dist/mdruntime/adapter.d.ts +28 -44
- package/dist/mdruntime/bootstrap.d.ts +1 -1
- package/dist/mdruntime/change-set.d.ts +4 -0
- package/dist/mdruntime/client.d.ts +7 -12
- package/dist/mdruntime/collection.d.ts +22 -4
- package/dist/mdruntime/conversation-live.d.ts +135 -0
- package/dist/mdruntime/conversation.d.ts +37 -40
- package/dist/mdruntime/declaration.d.ts +9 -0
- package/dist/mdruntime/failure.d.ts +1 -0
- package/dist/mdruntime/figures.d.ts +1 -0
- package/dist/mdruntime/listing.d.ts +6 -11
- package/dist/mdruntime/media.d.ts +1 -1
- package/dist/mdruntime/messages.d.ts +0 -3
- package/dist/mdruntime/model.d.ts +0 -1
- package/dist/mdruntime/opened.d.ts +1 -1
- package/dist/mdruntime/overlay.d.ts +2 -1
- package/dist/mdruntime/presence.d.ts +51 -0
- package/dist/mdruntime/query.d.ts +0 -1
- package/dist/mdruntime/readiness.d.ts +0 -1
- package/dist/mdruntime/reads.d.ts +1 -0
- package/dist/mdruntime/replica.d.ts +5 -10
- package/dist/mdruntime/room-draft.d.ts +4 -6
- package/dist/mdruntime/runtime.d.ts +9 -17
- package/dist/mdruntime/save.d.ts +41 -86
- package/dist/mdruntime/saves.d.ts +2 -40
- package/dist/mdruntime/socket/session.d.ts +0 -1
- package/dist/mdruntime/socket.d.ts +0 -3
- package/dist/mdruntime/store/records.d.ts +4 -4
- package/dist/mdruntime/store/space.d.ts +1 -1
- package/dist/mdruntime/store.d.ts +9 -6
- package/dist/mdruntime/stored.d.ts +1 -1
- package/dist/mdruntime/surface.d.ts +1 -1
- package/dist/mdruntime/tables.d.ts +4 -7
- package/dist/mdruntime/wire.d.ts +40 -4
- package/dist/session-content/bounds.d.ts +7 -0
- package/dist/session-content/check.d.ts +18 -0
- package/dist/session-content/index.d.ts +7 -0
- package/dist/session-content/parts.d.ts +102 -0
- package/dist/session-content/state.d.ts +61 -0
- package/dist/session-content/turn.d.ts +328 -0
- package/docs/families.md +1 -1
- package/package.json +1 -1
- package/dist/mdmodel/blocks.d.ts +0 -10
- package/dist/mdmodel/links.d.ts +0 -28
- package/dist/mdmodel/profile.d.ts +0 -5
- package/dist/mdruntime/install.d.ts +0 -55
- package/dist/mdruntime/job.d.ts +0 -32
- package/dist/mdruntime/socket/rooms.d.ts +0 -42
- package/dist/mdruntime/store/fences.d.ts +0 -15
- package/dist/mdruntime/turn.d.ts +0 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
import type { MdRuntimeClient, Open } from './mdruntime/client.js';
|
|
2
2
|
export interface HouseMethods {
|
|
3
|
+
readonly "agent-functions/decide": {
|
|
4
|
+
readonly params: {
|
|
5
|
+
readonly decision: "approve" | "decline";
|
|
6
|
+
readonly message?: string;
|
|
7
|
+
readonly operation_id?: string;
|
|
8
|
+
readonly request: string;
|
|
9
|
+
readonly room_ref: string;
|
|
10
|
+
};
|
|
11
|
+
readonly result: {
|
|
12
|
+
readonly authority: string;
|
|
13
|
+
readonly log_epoch: string;
|
|
14
|
+
readonly message?: string;
|
|
15
|
+
readonly position: string;
|
|
16
|
+
readonly request: string;
|
|
17
|
+
readonly state: "declined" | "sent" | "started" | "withdrawn_admission";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
3
20
|
readonly "agent-functions/requests/list": {
|
|
4
21
|
readonly params: {
|
|
22
|
+
readonly operation_id?: string;
|
|
5
23
|
readonly room_ref: string;
|
|
6
24
|
};
|
|
7
25
|
readonly result: {
|
|
@@ -16,7 +34,9 @@ export interface HouseMethods {
|
|
|
16
34
|
};
|
|
17
35
|
};
|
|
18
36
|
readonly "apps/features/list": {
|
|
19
|
-
readonly params: {
|
|
37
|
+
readonly params: {
|
|
38
|
+
readonly operation_id?: string;
|
|
39
|
+
};
|
|
20
40
|
readonly result: {
|
|
21
41
|
readonly features: readonly {
|
|
22
42
|
readonly allowed: boolean;
|
|
@@ -25,7 +45,9 @@ export interface HouseMethods {
|
|
|
25
45
|
};
|
|
26
46
|
};
|
|
27
47
|
readonly "apps/holders/list": {
|
|
28
|
-
readonly params: {
|
|
48
|
+
readonly params: {
|
|
49
|
+
readonly operation_id?: string;
|
|
50
|
+
};
|
|
29
51
|
readonly result: {
|
|
30
52
|
readonly holders: readonly {
|
|
31
53
|
readonly name: string;
|
|
@@ -36,6 +58,7 @@ export interface HouseMethods {
|
|
|
36
58
|
readonly "apps/messages/send": {
|
|
37
59
|
readonly params: {
|
|
38
60
|
readonly body: unknown;
|
|
61
|
+
readonly operation_id?: string;
|
|
39
62
|
readonly to: string;
|
|
40
63
|
};
|
|
41
64
|
readonly result: {
|
|
@@ -44,7 +67,7 @@ export interface HouseMethods {
|
|
|
44
67
|
};
|
|
45
68
|
readonly "apps/relay/read": {
|
|
46
69
|
readonly params: {
|
|
47
|
-
readonly
|
|
70
|
+
readonly operation_id?: string;
|
|
48
71
|
};
|
|
49
72
|
readonly result: {
|
|
50
73
|
readonly expires_at: string;
|
|
@@ -57,6 +80,7 @@ export interface HouseMethods {
|
|
|
57
80
|
};
|
|
58
81
|
readonly "apps/ring": {
|
|
59
82
|
readonly params: {
|
|
83
|
+
readonly operation_id?: string;
|
|
60
84
|
readonly to: string;
|
|
61
85
|
};
|
|
62
86
|
readonly result: {
|
|
@@ -72,7 +96,7 @@ export interface HouseMethods {
|
|
|
72
96
|
} | {
|
|
73
97
|
readonly user: string;
|
|
74
98
|
};
|
|
75
|
-
readonly operation_id
|
|
99
|
+
readonly operation_id?: string;
|
|
76
100
|
readonly path: string;
|
|
77
101
|
readonly room_ref: string;
|
|
78
102
|
};
|
|
@@ -98,7 +122,7 @@ export interface HouseMethods {
|
|
|
98
122
|
};
|
|
99
123
|
readonly "chats/reply": {
|
|
100
124
|
readonly params: {
|
|
101
|
-
readonly operation_id
|
|
125
|
+
readonly operation_id?: string;
|
|
102
126
|
readonly path: string;
|
|
103
127
|
readonly room_ref: string;
|
|
104
128
|
readonly template?: {
|
|
@@ -121,6 +145,7 @@ export interface HouseMethods {
|
|
|
121
145
|
};
|
|
122
146
|
readonly "chats/return": {
|
|
123
147
|
readonly params: {
|
|
148
|
+
readonly operation_id?: string;
|
|
124
149
|
readonly path: string;
|
|
125
150
|
readonly room_ref: string;
|
|
126
151
|
};
|
|
@@ -146,7 +171,7 @@ export interface HouseMethods {
|
|
|
146
171
|
};
|
|
147
172
|
readonly "chats/take-control": {
|
|
148
173
|
readonly params: {
|
|
149
|
-
readonly operation_id
|
|
174
|
+
readonly operation_id?: string;
|
|
150
175
|
readonly path: string;
|
|
151
176
|
readonly room_ref: string;
|
|
152
177
|
};
|
|
@@ -173,7 +198,7 @@ export interface HouseMethods {
|
|
|
173
198
|
readonly "conversations/create": {
|
|
174
199
|
readonly params: {
|
|
175
200
|
readonly agent_id: string;
|
|
176
|
-
readonly operation_id
|
|
201
|
+
readonly operation_id?: string;
|
|
177
202
|
};
|
|
178
203
|
readonly result: {
|
|
179
204
|
readonly agent_id: string;
|
|
@@ -187,7 +212,7 @@ export interface HouseMethods {
|
|
|
187
212
|
readonly "conversations/delete": {
|
|
188
213
|
readonly params: {
|
|
189
214
|
readonly conversation_id: string;
|
|
190
|
-
readonly operation_id
|
|
215
|
+
readonly operation_id?: string;
|
|
191
216
|
};
|
|
192
217
|
readonly result: {
|
|
193
218
|
readonly authority: string;
|
|
@@ -197,34 +222,14 @@ export interface HouseMethods {
|
|
|
197
222
|
readonly position: string;
|
|
198
223
|
};
|
|
199
224
|
};
|
|
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
|
-
readonly running_since: string;
|
|
212
|
-
}[];
|
|
213
|
-
readonly log_epoch: string;
|
|
214
|
-
readonly position: string;
|
|
215
|
-
readonly url: string;
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
225
|
readonly "conversations/history/list": {
|
|
219
226
|
readonly params: {
|
|
220
227
|
readonly conversations: readonly {
|
|
221
|
-
readonly after?:
|
|
222
|
-
readonly accepted_at: string;
|
|
223
|
-
readonly message_id: string;
|
|
224
|
-
};
|
|
228
|
+
readonly after?: number;
|
|
225
229
|
readonly conversation_id: string;
|
|
226
230
|
}[];
|
|
227
231
|
readonly limit?: number;
|
|
232
|
+
readonly operation_id?: string;
|
|
228
233
|
};
|
|
229
234
|
readonly result: {
|
|
230
235
|
readonly histories: readonly {
|
|
@@ -232,47 +237,152 @@ export interface HouseMethods {
|
|
|
232
237
|
readonly conversation_id: string;
|
|
233
238
|
readonly messages: readonly {
|
|
234
239
|
readonly accepted_at: string;
|
|
235
|
-
readonly
|
|
236
|
-
|
|
237
|
-
readonly
|
|
240
|
+
readonly change: number;
|
|
241
|
+
readonly content: null | {
|
|
242
|
+
readonly parts: readonly ({
|
|
243
|
+
readonly calls: null | number;
|
|
244
|
+
readonly duration: null | number;
|
|
245
|
+
readonly kind: "agent" | "fork" | "workflow";
|
|
246
|
+
readonly name: null | string;
|
|
247
|
+
readonly parent: null | number;
|
|
248
|
+
readonly report: null | string;
|
|
249
|
+
readonly status: "done" | "failed" | "running" | "stopped";
|
|
250
|
+
readonly step: null | string;
|
|
251
|
+
readonly task: string;
|
|
252
|
+
readonly tokens: null | number;
|
|
253
|
+
readonly type: "subagent";
|
|
254
|
+
} | {
|
|
255
|
+
readonly command: string;
|
|
256
|
+
readonly parent: null | number;
|
|
257
|
+
readonly target: null | string;
|
|
258
|
+
readonly type: "message";
|
|
259
|
+
} | {
|
|
260
|
+
readonly duration: null | number;
|
|
261
|
+
readonly exit: null | number;
|
|
262
|
+
readonly kind: "command";
|
|
263
|
+
readonly line: string;
|
|
264
|
+
readonly output: string;
|
|
265
|
+
readonly parent: null | number;
|
|
266
|
+
readonly status: "done" | "failed" | "running" | "stopped";
|
|
267
|
+
readonly type: "call";
|
|
268
|
+
} | {
|
|
269
|
+
readonly duration: null | number;
|
|
270
|
+
readonly files: readonly {
|
|
271
|
+
readonly added: number;
|
|
272
|
+
readonly diff: null | string;
|
|
273
|
+
readonly path: string;
|
|
274
|
+
readonly removed: number;
|
|
275
|
+
}[];
|
|
276
|
+
readonly kind: "edit";
|
|
277
|
+
readonly line: string;
|
|
278
|
+
readonly parent: null | number;
|
|
279
|
+
readonly status: "done" | "failed" | "running" | "stopped";
|
|
280
|
+
readonly type: "call";
|
|
281
|
+
} | {
|
|
282
|
+
readonly duration: null | number;
|
|
283
|
+
readonly kind: "fetch" | "other" | "tool";
|
|
284
|
+
readonly line: string;
|
|
285
|
+
readonly output: string;
|
|
286
|
+
readonly parent: null | number;
|
|
287
|
+
readonly status: "done" | "failed" | "running" | "stopped";
|
|
288
|
+
readonly type: "call";
|
|
289
|
+
} | {
|
|
290
|
+
readonly duration: null | number;
|
|
291
|
+
readonly kind: "read" | "search";
|
|
292
|
+
readonly line: string;
|
|
293
|
+
readonly parent: null | number;
|
|
294
|
+
readonly returned: null | number;
|
|
295
|
+
readonly status: "done" | "failed" | "running" | "stopped";
|
|
296
|
+
readonly type: "call";
|
|
297
|
+
} | {
|
|
298
|
+
readonly entries: readonly {
|
|
299
|
+
readonly content: string;
|
|
300
|
+
readonly status: "done" | "pending" | "running";
|
|
301
|
+
}[];
|
|
302
|
+
readonly parent: null | number;
|
|
303
|
+
readonly type: "plan";
|
|
304
|
+
} | {
|
|
305
|
+
readonly file: string;
|
|
306
|
+
readonly media_type: string;
|
|
307
|
+
readonly name: string;
|
|
308
|
+
readonly parent: null | number;
|
|
309
|
+
readonly type: "image";
|
|
310
|
+
} | {
|
|
311
|
+
readonly kind: "compaction" | "error" | "info" | "mode" | "model" | "retry" | "warning";
|
|
312
|
+
readonly parent: null | number;
|
|
313
|
+
readonly text: string;
|
|
314
|
+
readonly type: "notice";
|
|
315
|
+
} | {
|
|
316
|
+
readonly kind: "monitor" | "schedule" | "shell" | "task";
|
|
317
|
+
readonly label: string;
|
|
318
|
+
readonly parent: null | number;
|
|
319
|
+
readonly status: "done" | "failed" | "running" | "stopped";
|
|
320
|
+
readonly type: "background";
|
|
321
|
+
} | {
|
|
322
|
+
readonly parent: null | number;
|
|
323
|
+
readonly text: string;
|
|
324
|
+
readonly type: "reasoning" | "text";
|
|
325
|
+
})[];
|
|
326
|
+
readonly state: {
|
|
327
|
+
readonly branch: null | string;
|
|
328
|
+
readonly context: null | {
|
|
329
|
+
readonly breakdown: readonly {
|
|
330
|
+
readonly name: string;
|
|
331
|
+
readonly tokens: number;
|
|
332
|
+
}[];
|
|
333
|
+
readonly used: number;
|
|
334
|
+
readonly window: number;
|
|
335
|
+
};
|
|
336
|
+
readonly cost: null | {
|
|
337
|
+
readonly amount: number;
|
|
338
|
+
readonly currency: string;
|
|
339
|
+
};
|
|
340
|
+
readonly duration: null | number;
|
|
341
|
+
readonly effort: null | string;
|
|
342
|
+
readonly files: readonly {
|
|
343
|
+
readonly added: number;
|
|
344
|
+
readonly path: string;
|
|
345
|
+
readonly removed: number;
|
|
346
|
+
}[];
|
|
347
|
+
readonly limits: readonly {
|
|
348
|
+
readonly minutes: number;
|
|
349
|
+
readonly name: null | string;
|
|
350
|
+
readonly percent: number;
|
|
351
|
+
readonly resets: null | string;
|
|
352
|
+
}[];
|
|
353
|
+
readonly mode: null | string;
|
|
354
|
+
readonly model: null | string;
|
|
355
|
+
readonly pull: null | {
|
|
356
|
+
readonly number: number;
|
|
357
|
+
readonly url: string;
|
|
358
|
+
};
|
|
359
|
+
readonly running: readonly {
|
|
360
|
+
readonly kind: "monitor" | "schedule" | "shell" | "subagent" | "task";
|
|
361
|
+
readonly label: string;
|
|
362
|
+
readonly next: null | string;
|
|
363
|
+
readonly progress: null | string;
|
|
364
|
+
}[];
|
|
365
|
+
readonly suggestion: null | string;
|
|
366
|
+
readonly title: null | string;
|
|
367
|
+
readonly tokens: null | {
|
|
368
|
+
readonly cache_read: number;
|
|
369
|
+
readonly cache_write: number;
|
|
370
|
+
readonly input: number;
|
|
371
|
+
readonly output: number;
|
|
372
|
+
};
|
|
373
|
+
readonly worktree: null | string;
|
|
374
|
+
};
|
|
375
|
+
readonly tokens: null | {
|
|
376
|
+
readonly cache_read: number;
|
|
377
|
+
readonly cache_write: number;
|
|
378
|
+
readonly input: number;
|
|
379
|
+
readonly output: number;
|
|
380
|
+
};
|
|
238
381
|
};
|
|
239
382
|
readonly conversation_id: string;
|
|
240
383
|
readonly failure: null | string;
|
|
241
384
|
readonly message_id: string;
|
|
242
|
-
readonly
|
|
243
|
-
readonly command: string;
|
|
244
|
-
readonly target: null | string;
|
|
245
|
-
readonly type: "message";
|
|
246
|
-
} | {
|
|
247
|
-
readonly count: number;
|
|
248
|
-
readonly type: "commands";
|
|
249
|
-
} | {
|
|
250
|
-
readonly description: string;
|
|
251
|
-
readonly result: null | string;
|
|
252
|
-
readonly status: "done" | "running";
|
|
253
|
-
readonly type: "subagent";
|
|
254
|
-
} | {
|
|
255
|
-
readonly entries: readonly {
|
|
256
|
-
readonly content: string;
|
|
257
|
-
readonly status: string;
|
|
258
|
-
}[];
|
|
259
|
-
readonly type: "plan";
|
|
260
|
-
} | {
|
|
261
|
-
readonly file: string;
|
|
262
|
-
readonly media_type: string;
|
|
263
|
-
readonly name: string;
|
|
264
|
-
readonly type: "image";
|
|
265
|
-
} | {
|
|
266
|
-
readonly marker: "compaction" | "job" | "mode" | "model" | "retry";
|
|
267
|
-
readonly text: string;
|
|
268
|
-
readonly type: "marker";
|
|
269
|
-
} | {
|
|
270
|
-
readonly text: string;
|
|
271
|
-
readonly type: "reasoning";
|
|
272
|
-
} | {
|
|
273
|
-
readonly text: string;
|
|
274
|
-
readonly type: "text";
|
|
275
|
-
})[];
|
|
385
|
+
readonly removed?: true;
|
|
276
386
|
readonly role: "assistant" | "house" | "user";
|
|
277
387
|
readonly sender?: "conversation" | "customer" | "owner" | "replier" | "report" | "requester" | "trigger";
|
|
278
388
|
readonly source?: {
|
|
@@ -356,12 +466,6 @@ export interface HouseMethods {
|
|
|
356
466
|
};
|
|
357
467
|
readonly telegram_undelivered?: true;
|
|
358
468
|
readonly text: string;
|
|
359
|
-
readonly tokens?: {
|
|
360
|
-
readonly cache_read: number;
|
|
361
|
-
readonly cache_write: number;
|
|
362
|
-
readonly input: number;
|
|
363
|
-
readonly output: number;
|
|
364
|
-
};
|
|
365
469
|
readonly transcripts?: readonly {
|
|
366
470
|
readonly path: string;
|
|
367
471
|
readonly text: string;
|
|
@@ -370,10 +474,7 @@ export interface HouseMethods {
|
|
|
370
474
|
readonly url?: string;
|
|
371
475
|
readonly waiting?: true;
|
|
372
476
|
}[];
|
|
373
|
-
readonly next: null |
|
|
374
|
-
readonly accepted_at: string;
|
|
375
|
-
readonly message_id: string;
|
|
376
|
-
};
|
|
477
|
+
readonly next: null | number;
|
|
377
478
|
readonly url: string;
|
|
378
479
|
}[];
|
|
379
480
|
};
|
|
@@ -382,7 +483,7 @@ export interface HouseMethods {
|
|
|
382
483
|
readonly params: {
|
|
383
484
|
readonly conversation_id: string;
|
|
384
485
|
readonly interaction_id: string;
|
|
385
|
-
readonly operation_id
|
|
486
|
+
readonly operation_id?: string;
|
|
386
487
|
readonly response: readonly unknown[] | boolean | null | number | {
|
|
387
488
|
readonly [key: string]: unknown;
|
|
388
489
|
} | string;
|
|
@@ -400,7 +501,7 @@ export interface HouseMethods {
|
|
|
400
501
|
readonly "conversations/interrupt": {
|
|
401
502
|
readonly params: {
|
|
402
503
|
readonly conversation_id: string;
|
|
403
|
-
readonly operation_id
|
|
504
|
+
readonly operation_id?: string;
|
|
404
505
|
};
|
|
405
506
|
readonly result: {
|
|
406
507
|
readonly agent_id: string;
|
|
@@ -414,7 +515,7 @@ export interface HouseMethods {
|
|
|
414
515
|
readonly "conversations/kill": {
|
|
415
516
|
readonly params: {
|
|
416
517
|
readonly conversation_id: string;
|
|
417
|
-
readonly operation_id
|
|
518
|
+
readonly operation_id?: string;
|
|
418
519
|
};
|
|
419
520
|
readonly result: {
|
|
420
521
|
readonly agent_id: string;
|
|
@@ -428,7 +529,7 @@ export interface HouseMethods {
|
|
|
428
529
|
readonly "conversations/option/set": {
|
|
429
530
|
readonly params: {
|
|
430
531
|
readonly conversation_id: string;
|
|
431
|
-
readonly operation_id
|
|
532
|
+
readonly operation_id?: string;
|
|
432
533
|
readonly option: string;
|
|
433
534
|
readonly value: boolean | string;
|
|
434
535
|
};
|
|
@@ -445,7 +546,7 @@ export interface HouseMethods {
|
|
|
445
546
|
readonly params: {
|
|
446
547
|
readonly conversation_id: string;
|
|
447
548
|
readonly name: string;
|
|
448
|
-
readonly operation_id
|
|
549
|
+
readonly operation_id?: string;
|
|
449
550
|
};
|
|
450
551
|
readonly result: {
|
|
451
552
|
readonly agent_id: string;
|
|
@@ -461,7 +562,7 @@ export interface HouseMethods {
|
|
|
461
562
|
readonly params: {
|
|
462
563
|
readonly conversation_id: string;
|
|
463
564
|
readonly message_id: string;
|
|
464
|
-
readonly operation_id
|
|
565
|
+
readonly operation_id?: string;
|
|
465
566
|
};
|
|
466
567
|
readonly result: {
|
|
467
568
|
readonly agent_id: string;
|
|
@@ -476,7 +577,7 @@ export interface HouseMethods {
|
|
|
476
577
|
readonly "conversations/send": {
|
|
477
578
|
readonly params: {
|
|
478
579
|
readonly conversation_id: string;
|
|
479
|
-
readonly operation_id
|
|
580
|
+
readonly operation_id?: string;
|
|
480
581
|
readonly text: string;
|
|
481
582
|
};
|
|
482
583
|
readonly result: {
|
|
@@ -489,8 +590,25 @@ export interface HouseMethods {
|
|
|
489
590
|
readonly url: string;
|
|
490
591
|
};
|
|
491
592
|
};
|
|
593
|
+
readonly "conversations/take-out": {
|
|
594
|
+
readonly params: {
|
|
595
|
+
readonly conversation_id: string;
|
|
596
|
+
readonly message_id: string;
|
|
597
|
+
readonly operation_id?: string;
|
|
598
|
+
};
|
|
599
|
+
readonly result: {
|
|
600
|
+
readonly agent_id: string;
|
|
601
|
+
readonly authority: string;
|
|
602
|
+
readonly conversation_id: string;
|
|
603
|
+
readonly log_epoch: string;
|
|
604
|
+
readonly message_id: string;
|
|
605
|
+
readonly position: string;
|
|
606
|
+
readonly url: string;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
492
609
|
readonly "records/list": {
|
|
493
610
|
readonly params: {
|
|
611
|
+
readonly operation_id?: string;
|
|
494
612
|
readonly order?: "asc" | "desc";
|
|
495
613
|
readonly room_ref: string;
|
|
496
614
|
};
|
|
@@ -506,6 +624,7 @@ export interface HouseMethods {
|
|
|
506
624
|
};
|
|
507
625
|
readonly "rooms/access/list": {
|
|
508
626
|
readonly params: {
|
|
627
|
+
readonly operation_id?: string;
|
|
509
628
|
readonly room_ref: string;
|
|
510
629
|
};
|
|
511
630
|
readonly result: {
|
|
@@ -544,6 +663,7 @@ export interface HouseMethods {
|
|
|
544
663
|
readonly "rooms/members/list": {
|
|
545
664
|
readonly params: {
|
|
546
665
|
readonly history?: boolean;
|
|
666
|
+
readonly operation_id?: string;
|
|
547
667
|
readonly room_ref: string;
|
|
548
668
|
};
|
|
549
669
|
readonly result: {
|
|
@@ -568,6 +688,7 @@ export interface HouseMethods {
|
|
|
568
688
|
};
|
|
569
689
|
readonly "rooms/settings/processing/read": {
|
|
570
690
|
readonly params: {
|
|
691
|
+
readonly operation_id?: string;
|
|
571
692
|
readonly path: string;
|
|
572
693
|
readonly room_ref: string;
|
|
573
694
|
};
|
|
@@ -609,6 +730,7 @@ export interface HouseMethods {
|
|
|
609
730
|
};
|
|
610
731
|
readonly "storage/inventory/read": {
|
|
611
732
|
readonly params: {
|
|
733
|
+
readonly operation_id?: string;
|
|
612
734
|
readonly room_ref?: string;
|
|
613
735
|
readonly rooms?: "owned";
|
|
614
736
|
};
|
|
@@ -700,65 +822,11 @@ export interface HouseMethods {
|
|
|
700
822
|
readonly bytes: string;
|
|
701
823
|
readonly gigabytes: string;
|
|
702
824
|
};
|
|
703
|
-
} | {
|
|
704
|
-
readonly blob: {
|
|
705
|
-
readonly bytes: string;
|
|
706
|
-
readonly gigabytes: string;
|
|
707
|
-
};
|
|
708
|
-
readonly freshness: {
|
|
709
|
-
readonly state: "settled";
|
|
710
|
-
};
|
|
711
|
-
readonly indexed_text: {
|
|
712
|
-
readonly approximate_pages: null | string;
|
|
713
|
-
readonly bytes: string;
|
|
714
|
-
readonly gigabytes: string;
|
|
715
|
-
};
|
|
716
|
-
readonly measurement: {
|
|
717
|
-
readonly page_reference: null | {
|
|
718
|
-
readonly bytes_per_page: string;
|
|
719
|
-
readonly encoding: string;
|
|
720
|
-
readonly font: string;
|
|
721
|
-
readonly font_size_pt: string;
|
|
722
|
-
readonly layout: string;
|
|
723
|
-
};
|
|
724
|
-
};
|
|
725
|
-
readonly rooms?: readonly {
|
|
726
|
-
readonly blob: {
|
|
727
|
-
readonly bytes: string;
|
|
728
|
-
readonly gigabytes: string;
|
|
729
|
-
};
|
|
730
|
-
readonly freshness: {
|
|
731
|
-
readonly state: "settled";
|
|
732
|
-
};
|
|
733
|
-
readonly indexed_text: {
|
|
734
|
-
readonly approximate_pages: null | string;
|
|
735
|
-
readonly bytes: string;
|
|
736
|
-
readonly gigabytes: string;
|
|
737
|
-
};
|
|
738
|
-
readonly measurement: {
|
|
739
|
-
readonly page_reference: null | {
|
|
740
|
-
readonly bytes_per_page: string;
|
|
741
|
-
readonly encoding: string;
|
|
742
|
-
readonly font: string;
|
|
743
|
-
readonly font_size_pt: string;
|
|
744
|
-
readonly layout: string;
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
readonly room_ref: string;
|
|
748
|
-
readonly total: {
|
|
749
|
-
readonly bytes: string;
|
|
750
|
-
readonly gigabytes: string;
|
|
751
|
-
};
|
|
752
|
-
readonly url: string;
|
|
753
|
-
}[];
|
|
754
|
-
readonly total: {
|
|
755
|
-
readonly bytes: string;
|
|
756
|
-
readonly gigabytes: string;
|
|
757
|
-
};
|
|
758
825
|
};
|
|
759
826
|
};
|
|
760
827
|
readonly "triggers/fired/list": {
|
|
761
828
|
readonly params: {
|
|
829
|
+
readonly operation_id?: string;
|
|
762
830
|
readonly room_ref?: string;
|
|
763
831
|
};
|
|
764
832
|
readonly result: {
|
|
@@ -834,14 +902,14 @@ export interface HouseMethods {
|
|
|
834
902
|
readonly limit: "custom_domains" | "external_calls" | "publish_data" | "sites";
|
|
835
903
|
readonly outcome: "refused";
|
|
836
904
|
readonly position: number;
|
|
837
|
-
} | {
|
|
838
|
-
readonly code: "agent_function_not_found" | "agent_function_retired" | "app_function_not_found" | "app_not_found" | "environment_function_not_found" | "environment_offline" | "no_recipient" | "target_agent_unavailable";
|
|
839
|
-
readonly outcome: "no_target";
|
|
840
|
-
readonly position: number;
|
|
841
905
|
} | {
|
|
842
906
|
readonly code: "agent_function_request_not_started" | "internal_error";
|
|
843
907
|
readonly outcome: "failed";
|
|
844
908
|
readonly position: number;
|
|
909
|
+
} | {
|
|
910
|
+
readonly code: "agent_function_retired" | "environment_offline" | "no_recipient" | "not_found" | "target_agent_unavailable";
|
|
911
|
+
readonly outcome: "no_target";
|
|
912
|
+
readonly position: number;
|
|
845
913
|
} | {
|
|
846
914
|
readonly code: string;
|
|
847
915
|
readonly outcome: "refused";
|
|
@@ -937,7 +1005,6 @@ export interface HouseStatus {
|
|
|
937
1005
|
readonly sync: HouseSyncState | null;
|
|
938
1006
|
readonly refusal: {
|
|
939
1007
|
readonly code: string;
|
|
940
|
-
readonly retryable: boolean;
|
|
941
1008
|
} | null;
|
|
942
1009
|
readonly loss: string | null;
|
|
943
1010
|
readonly database: Open<HouseDatabaseFailure> | null;
|
|
@@ -56,17 +56,31 @@ export type Failure = {
|
|
|
56
56
|
readonly rule: string;
|
|
57
57
|
readonly location?: string;
|
|
58
58
|
};
|
|
59
|
+
export type Placed = {
|
|
60
|
+
readonly node: Record<string, unknown>;
|
|
61
|
+
readonly at: string;
|
|
62
|
+
};
|
|
59
63
|
export declare const JSON_TYPES: readonly JsonType[];
|
|
60
64
|
export declare const BUILT_IN_TYPE = "any";
|
|
61
65
|
export declare const ATTACHMENT = "attachment";
|
|
66
|
+
export declare const OPENING: readonly string[];
|
|
62
67
|
export declare const ARRAY_INDEX: RegExp;
|
|
63
68
|
export declare const JSON_POINTER: RegExp;
|
|
69
|
+
export declare function refuse(rule: string, location: string): Failure;
|
|
64
70
|
export declare function escapePointer(key: string): string;
|
|
65
71
|
export declare function pointerSegments(pointer: string): string[];
|
|
66
72
|
export declare function refTarget(reference: string, defs: Readonly<Record<string, unknown>>): {
|
|
67
73
|
readonly name: string;
|
|
68
74
|
readonly node: unknown;
|
|
69
75
|
} | undefined;
|
|
76
|
+
export declare function conjoined(declared: readonly {
|
|
77
|
+
readonly node: unknown;
|
|
78
|
+
readonly at: string;
|
|
79
|
+
}[], defs: Readonly<Record<string, unknown>>, ancestry: ReadonlySet<unknown>): {
|
|
80
|
+
readonly held: readonly Placed[];
|
|
81
|
+
readonly ancestry: ReadonlySet<unknown>;
|
|
82
|
+
};
|
|
83
|
+
export declare function variantsOf({ node, at }: Placed): Placed[];
|
|
70
84
|
export declare function valueFacts(node: unknown, defs: Readonly<Record<string, unknown>>): ValueFacts;
|
|
71
85
|
export declare function itemFacts(facts: ValueFacts, index: number): ValueFacts | undefined;
|
|
72
86
|
export declare function memberFacts(facts: ValueFacts, key: string): ValueFacts | undefined;
|
|
@@ -78,4 +92,5 @@ export type PointerFacts = {
|
|
|
78
92
|
export declare function crossedFacts(facts: ValueFacts): ValueFacts[];
|
|
79
93
|
export declare function fieldFacts(definition: Definition, key: string): ValueFacts | undefined;
|
|
80
94
|
export declare function pointerFacts(definition: Definition, pointer: string): PointerFacts | undefined;
|
|
95
|
+
export declare function untitled(definition: Definition): Definition;
|
|
81
96
|
export declare function readSchema(text: string, provided?: VerifiedModel, checked?: boolean): VerifiedModel | Failure;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { type Definition } from './definition.js';
|
|
2
|
-
import { type
|
|
3
|
-
import type { ApplyResult, BodyResult, FrontmatterResult, Change, Document, Link, ParseResult, UnlinkedBody } from './types.js';
|
|
2
|
+
import { type HrefOccurrence, type Reading } from './markdown.js';
|
|
3
|
+
import type { ApplyResult, BodyResult, FrontmatterResult, Change, DefinitionOf, Document, Link, ParseResult, Span, UnlinkedBody } from './types.js';
|
|
4
4
|
import { type YamlMap } from './yaml.js';
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function readingOf(document: Document): Reading;
|
|
6
|
+
export declare function linkDestinations(document: Document): readonly HrefOccurrence[];
|
|
7
|
+
export declare function textSpans(document: Document): readonly Span[];
|
|
6
8
|
export declare function parseFrontmatter(content: string, file?: string): FrontmatterResult;
|
|
7
|
-
export declare function parse(content: string, file?: string): ParseResult;
|
|
9
|
+
export declare function parse(content: string, file?: string, definition?: Definition | DefinitionOf): ParseResult;
|
|
10
|
+
export declare function create(type: string | undefined, definition?: Definition): Document;
|
|
8
11
|
export declare function relativize(document: Document, file: string, handle: string, definition?: Definition, kept?: ReadonlySet<string>): ApplyResult;
|
|
9
12
|
export declare function relativizeBody(body: string, file: string, handle: string): BodyResult;
|
|
10
13
|
export declare function relinkBody(body: string, file: string, moves: ReadonlyMap<string, string>): BodyResult;
|
|
11
14
|
export declare function unlinkBody(body: string, hrefs: ReadonlySet<string>): UnlinkedBody;
|
|
12
15
|
export declare function links(document: Document, file: string): readonly Link[];
|
|
13
16
|
export declare function bodyLinks(body: string, file: string): readonly Link[];
|
|
14
|
-
export declare function apply(document: Document, changes: readonly Change[]): ApplyResult;
|
|
17
|
+
export declare function apply(document: Document, changes: readonly Change[], definition?: Definition): ApplyResult;
|
|
15
18
|
export declare function serialize(document: Document): string;
|
|
16
19
|
export declare function frontmatter(document: Document): YamlMap | null;
|
package/dist/mdmodel/event.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { type Definition } from './definition.js';
|
|
2
|
+
import { type Kind } from './kinds.js';
|
|
2
3
|
import type { Candidate } from './query/match.js';
|
|
3
4
|
import type { Document, VerifiedModel } from './types.js';
|
|
4
|
-
export type FactKind = 'string' | 'number' | 'boolean' | 'date' | 'time' | 'enum' | 'reference';
|
|
5
5
|
type Scalar = string | number | boolean;
|
|
6
6
|
export type Fact = {
|
|
7
|
-
readonly kind:
|
|
7
|
+
readonly kind: Kind;
|
|
8
8
|
readonly value: Scalar;
|
|
9
9
|
readonly member?: string;
|
|
10
10
|
} | {
|