@agent-marshal/marshal-pi 0.57.0 → 0.58.0
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/package.json +1 -1
- package/src/daemon.ts +1 -0
- package/src/generated/RegisterSession.ts +4 -0
- package/src/generated/RegisterSessionArgs.ts +4 -0
- package/src/generated/Session.ts +4 -0
- package/src/generated/SessionQuery.ts +1 -1
- package/src/generated/index.ts +363 -350
- package/src/identity.ts +2 -1
- package/src/index.ts +2 -1
package/package.json
CHANGED
package/src/daemon.ts
CHANGED
|
@@ -160,6 +160,7 @@ export class MarshalDaemon {
|
|
|
160
160
|
pid: process.pid,
|
|
161
161
|
cwd: this.cfg.cwd,
|
|
162
162
|
connectedAt: now,
|
|
163
|
+
agentId: this.cfg.identity.agentId,
|
|
163
164
|
operator: this.cfg.identity.operator ?? null,
|
|
164
165
|
host: this.cfg.identity.host ?? null,
|
|
165
166
|
gitBranch: this.cfg.identity.gitBranch ?? null,
|
package/src/generated/Session.ts
CHANGED
|
@@ -14,6 +14,10 @@ export type Session = {
|
|
|
14
14
|
* `client_id` in the Client store; absent there ⇒ disconnected.
|
|
15
15
|
*/
|
|
16
16
|
clientId?: ClientId | null,
|
|
17
|
+
/**
|
|
18
|
+
* Self-reported embedding-agent correlation metadata, never an address or credential.
|
|
19
|
+
*/
|
|
20
|
+
agentId?: string | null,
|
|
17
21
|
/**
|
|
18
22
|
* OS process id of the connecting client.
|
|
19
23
|
*/
|
|
@@ -6,4 +6,4 @@ import type { SessionId } from "./SessionId";
|
|
|
6
6
|
import type { StringFilter } from "./StringFilter";
|
|
7
7
|
import type { Unfilterable } from "./Unfilterable";
|
|
8
8
|
|
|
9
|
-
export type SessionQuery = { clientId?: IdFilter<ClientId> | null, pid?: NumericFilter<number> | null, cwd?: StringFilter | null, gitBranch?: StringFilter | null, currentTask?: StringFilter | null, sessionName?: StringFilter | null, activity?: StringFilter | null, kind?: StringFilter | null, connectedAt?: NumericFilter<bigint> | null, lastActivityAt?: NumericFilter<bigint> | null, lastTool?: StringFilter | null, lastToolAt?: NumericFilter<bigint> | null, operator?: StringFilter | null, host?: Unfilterable | null, project?: StringFilter | null, channelsEnabled?: boolean | null, acksPushes?: boolean | null, id?: IdFilter<SessionId> | null, };
|
|
9
|
+
export type SessionQuery = { clientId?: IdFilter<ClientId> | null, agentId?: StringFilter | null, pid?: NumericFilter<number> | null, cwd?: StringFilter | null, gitBranch?: StringFilter | null, currentTask?: StringFilter | null, sessionName?: StringFilter | null, activity?: StringFilter | null, kind?: StringFilter | null, connectedAt?: NumericFilter<bigint> | null, lastActivityAt?: NumericFilter<bigint> | null, lastTool?: StringFilter | null, lastToolAt?: NumericFilter<bigint> | null, operator?: StringFilter | null, host?: Unfilterable | null, project?: StringFilter | null, channelsEnabled?: boolean | null, acksPushes?: boolean | null, id?: IdFilter<SessionId> | null, };
|
package/src/generated/index.ts
CHANGED
|
@@ -70,6 +70,7 @@ export type { NotifyChannelArgs } from "./NotifyChannelArgs";
|
|
|
70
70
|
export type { NumericFilter } from "./NumericFilter";
|
|
71
71
|
export type { ReadMessagesArgs } from "./ReadMessagesArgs";
|
|
72
72
|
export type { ReadMessagesResult } from "./ReadMessagesResult";
|
|
73
|
+
export type { RegisterSessionArgs } from "./RegisterSessionArgs";
|
|
73
74
|
export type { Room } from "./Room";
|
|
74
75
|
export type { RoomCount } from "./RoomCount";
|
|
75
76
|
export type { RoomId } from "./RoomId";
|
|
@@ -211,6 +212,7 @@ import type { MessageReadCount } from "./MessageReadCount";
|
|
|
211
212
|
import type { NotifyChannel as _NotifyChannel } from "./NotifyChannel";
|
|
212
213
|
import type { ReadMessages as _ReadMessages } from "./ReadMessages";
|
|
213
214
|
import type { ReadMessagesResult } from "./ReadMessagesResult";
|
|
215
|
+
import type { RegisterSession as _RegisterSession } from "./RegisterSession";
|
|
214
216
|
import type { Room } from "./Room";
|
|
215
217
|
import type { RoomCount } from "./RoomCount";
|
|
216
218
|
import type { RoomMember } from "./RoomMember";
|
|
@@ -237,41 +239,41 @@ import type { WakeWatcher } from "./WakeWatcher";
|
|
|
237
239
|
import type { WakeWatcherCount } from "./WakeWatcherCount";
|
|
238
240
|
|
|
239
241
|
// Query classes
|
|
240
|
-
export class
|
|
241
|
-
static readonly queryId = "
|
|
242
|
-
static readonly queryItemType = "
|
|
243
|
-
readonly queryId = "
|
|
244
|
-
readonly queryItemType = "
|
|
245
|
-
readonly query: Omit<
|
|
246
|
-
declare readonly $res: () =>
|
|
242
|
+
export class GetRoomsByQuery {
|
|
243
|
+
static readonly queryId = "GetRoomsByQuery" as const;
|
|
244
|
+
static readonly queryItemType = "Room" as const;
|
|
245
|
+
readonly queryId = "GetRoomsByQuery" as const;
|
|
246
|
+
readonly queryItemType = "Room" as const;
|
|
247
|
+
readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
|
|
248
|
+
declare readonly $res: () => Room[];
|
|
247
249
|
|
|
248
|
-
constructor(args: Omit<
|
|
250
|
+
constructor(args: Omit<_GetRoomsByQuery, "tx" | "createdAt">) {
|
|
249
251
|
this.query = args;
|
|
250
252
|
}
|
|
251
253
|
}
|
|
252
254
|
|
|
253
|
-
export class
|
|
254
|
-
static readonly queryId = "
|
|
255
|
-
static readonly queryItemType = "
|
|
256
|
-
readonly queryId = "
|
|
257
|
-
readonly queryItemType = "
|
|
258
|
-
readonly query: Omit<
|
|
259
|
-
declare readonly $res: () =>
|
|
255
|
+
export class GetRoomsByIds {
|
|
256
|
+
static readonly queryId = "GetRoomsByIds" as const;
|
|
257
|
+
static readonly queryItemType = "Room" as const;
|
|
258
|
+
readonly queryId = "GetRoomsByIds" as const;
|
|
259
|
+
readonly queryItemType = "Room" as const;
|
|
260
|
+
readonly query: Omit<_GetRoomsByIds, "tx" | "createdAt">;
|
|
261
|
+
declare readonly $res: () => Room[];
|
|
260
262
|
|
|
261
|
-
constructor(args: Omit<
|
|
263
|
+
constructor(args: Omit<_GetRoomsByIds, "tx" | "createdAt">) {
|
|
262
264
|
this.query = args;
|
|
263
265
|
}
|
|
264
266
|
}
|
|
265
267
|
|
|
266
|
-
export class
|
|
267
|
-
static readonly queryId = "
|
|
268
|
-
static readonly queryItemType = "
|
|
269
|
-
readonly queryId = "
|
|
270
|
-
readonly queryItemType = "
|
|
271
|
-
readonly query: Omit<
|
|
272
|
-
declare readonly $res: () =>
|
|
268
|
+
export class GetAllRooms {
|
|
269
|
+
static readonly queryId = "GetAllRooms" as const;
|
|
270
|
+
static readonly queryItemType = "Room" as const;
|
|
271
|
+
readonly queryId = "GetAllRooms" as const;
|
|
272
|
+
readonly queryItemType = "Room" as const;
|
|
273
|
+
readonly query: Omit<_GetAllRooms, "tx" | "createdAt">;
|
|
274
|
+
declare readonly $res: () => Room[];
|
|
273
275
|
|
|
274
|
-
constructor(args: Omit<
|
|
276
|
+
constructor(args: Omit<_GetAllRooms, "tx" | "createdAt">) {
|
|
275
277
|
this.query = args;
|
|
276
278
|
}
|
|
277
279
|
}
|
|
@@ -315,80 +317,41 @@ export class GetAllSessionNicknames {
|
|
|
315
317
|
}
|
|
316
318
|
}
|
|
317
319
|
|
|
318
|
-
export class
|
|
319
|
-
static readonly queryId = "
|
|
320
|
-
static readonly queryItemType = "
|
|
321
|
-
readonly queryId = "
|
|
322
|
-
readonly queryItemType = "
|
|
323
|
-
readonly query: Omit<
|
|
324
|
-
declare readonly $res: () =>
|
|
325
|
-
|
|
326
|
-
constructor(args: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">) {
|
|
327
|
-
this.query = args;
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export class GetRoomMembersByIds {
|
|
332
|
-
static readonly queryId = "GetRoomMembersByIds" as const;
|
|
333
|
-
static readonly queryItemType = "RoomMember" as const;
|
|
334
|
-
readonly queryId = "GetRoomMembersByIds" as const;
|
|
335
|
-
readonly queryItemType = "RoomMember" as const;
|
|
336
|
-
readonly query: Omit<_GetRoomMembersByIds, "tx" | "createdAt">;
|
|
337
|
-
declare readonly $res: () => RoomMember[];
|
|
338
|
-
|
|
339
|
-
constructor(args: Omit<_GetRoomMembersByIds, "tx" | "createdAt">) {
|
|
340
|
-
this.query = args;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
export class GetAllRoomMembers {
|
|
345
|
-
static readonly queryId = "GetAllRoomMembers" as const;
|
|
346
|
-
static readonly queryItemType = "RoomMember" as const;
|
|
347
|
-
readonly queryId = "GetAllRoomMembers" as const;
|
|
348
|
-
readonly queryItemType = "RoomMember" as const;
|
|
349
|
-
readonly query: Omit<_GetAllRoomMembers, "tx" | "createdAt">;
|
|
350
|
-
declare readonly $res: () => RoomMember[];
|
|
351
|
-
|
|
352
|
-
constructor(args: Omit<_GetAllRoomMembers, "tx" | "createdAt">) {
|
|
353
|
-
this.query = args;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
export class GetRoomsByQuery {
|
|
358
|
-
static readonly queryId = "GetRoomsByQuery" as const;
|
|
359
|
-
static readonly queryItemType = "Room" as const;
|
|
360
|
-
readonly queryId = "GetRoomsByQuery" as const;
|
|
361
|
-
readonly queryItemType = "Room" as const;
|
|
362
|
-
readonly query: Omit<_GetRoomsByQuery, "tx" | "createdAt">;
|
|
363
|
-
declare readonly $res: () => Room[];
|
|
320
|
+
export class GetSessionsByQuery {
|
|
321
|
+
static readonly queryId = "GetSessionsByQuery" as const;
|
|
322
|
+
static readonly queryItemType = "Session" as const;
|
|
323
|
+
readonly queryId = "GetSessionsByQuery" as const;
|
|
324
|
+
readonly queryItemType = "Session" as const;
|
|
325
|
+
readonly query: Omit<_GetSessionsByQuery, "tx" | "createdAt">;
|
|
326
|
+
declare readonly $res: () => Session[];
|
|
364
327
|
|
|
365
|
-
constructor(args: Omit<
|
|
328
|
+
constructor(args: Omit<_GetSessionsByQuery, "tx" | "createdAt">) {
|
|
366
329
|
this.query = args;
|
|
367
330
|
}
|
|
368
331
|
}
|
|
369
332
|
|
|
370
|
-
export class
|
|
371
|
-
static readonly queryId = "
|
|
372
|
-
static readonly queryItemType = "
|
|
373
|
-
readonly queryId = "
|
|
374
|
-
readonly queryItemType = "
|
|
375
|
-
readonly query: Omit<
|
|
376
|
-
declare readonly $res: () =>
|
|
333
|
+
export class GetSessionsByIds {
|
|
334
|
+
static readonly queryId = "GetSessionsByIds" as const;
|
|
335
|
+
static readonly queryItemType = "Session" as const;
|
|
336
|
+
readonly queryId = "GetSessionsByIds" as const;
|
|
337
|
+
readonly queryItemType = "Session" as const;
|
|
338
|
+
readonly query: Omit<_GetSessionsByIds, "tx" | "createdAt">;
|
|
339
|
+
declare readonly $res: () => Session[];
|
|
377
340
|
|
|
378
|
-
constructor(args: Omit<
|
|
341
|
+
constructor(args: Omit<_GetSessionsByIds, "tx" | "createdAt">) {
|
|
379
342
|
this.query = args;
|
|
380
343
|
}
|
|
381
344
|
}
|
|
382
345
|
|
|
383
|
-
export class
|
|
384
|
-
static readonly queryId = "
|
|
385
|
-
static readonly queryItemType = "
|
|
386
|
-
readonly queryId = "
|
|
387
|
-
readonly queryItemType = "
|
|
388
|
-
readonly query: Omit<
|
|
389
|
-
declare readonly $res: () =>
|
|
346
|
+
export class GetAllSessions {
|
|
347
|
+
static readonly queryId = "GetAllSessions" as const;
|
|
348
|
+
static readonly queryItemType = "Session" as const;
|
|
349
|
+
readonly queryId = "GetAllSessions" as const;
|
|
350
|
+
readonly queryItemType = "Session" as const;
|
|
351
|
+
readonly query: Omit<_GetAllSessions, "tx" | "createdAt">;
|
|
352
|
+
declare readonly $res: () => Session[];
|
|
390
353
|
|
|
391
|
-
constructor(args: Omit<
|
|
354
|
+
constructor(args: Omit<_GetAllSessions, "tx" | "createdAt">) {
|
|
392
355
|
this.query = args;
|
|
393
356
|
}
|
|
394
357
|
}
|
|
@@ -432,41 +395,41 @@ export class GetAllWakeWatchers {
|
|
|
432
395
|
}
|
|
433
396
|
}
|
|
434
397
|
|
|
435
|
-
export class
|
|
436
|
-
static readonly queryId = "
|
|
437
|
-
static readonly queryItemType = "
|
|
438
|
-
readonly queryId = "
|
|
439
|
-
readonly queryItemType = "
|
|
440
|
-
readonly query: Omit<
|
|
441
|
-
declare readonly $res: () =>
|
|
398
|
+
export class GetRoomMembersByQuery {
|
|
399
|
+
static readonly queryId = "GetRoomMembersByQuery" as const;
|
|
400
|
+
static readonly queryItemType = "RoomMember" as const;
|
|
401
|
+
readonly queryId = "GetRoomMembersByQuery" as const;
|
|
402
|
+
readonly queryItemType = "RoomMember" as const;
|
|
403
|
+
readonly query: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">;
|
|
404
|
+
declare readonly $res: () => RoomMember[];
|
|
442
405
|
|
|
443
|
-
constructor(args: Omit<
|
|
406
|
+
constructor(args: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">) {
|
|
444
407
|
this.query = args;
|
|
445
408
|
}
|
|
446
409
|
}
|
|
447
410
|
|
|
448
|
-
export class
|
|
449
|
-
static readonly queryId = "
|
|
450
|
-
static readonly queryItemType = "
|
|
451
|
-
readonly queryId = "
|
|
452
|
-
readonly queryItemType = "
|
|
453
|
-
readonly query: Omit<
|
|
454
|
-
declare readonly $res: () =>
|
|
411
|
+
export class GetRoomMembersByIds {
|
|
412
|
+
static readonly queryId = "GetRoomMembersByIds" as const;
|
|
413
|
+
static readonly queryItemType = "RoomMember" as const;
|
|
414
|
+
readonly queryId = "GetRoomMembersByIds" as const;
|
|
415
|
+
readonly queryItemType = "RoomMember" as const;
|
|
416
|
+
readonly query: Omit<_GetRoomMembersByIds, "tx" | "createdAt">;
|
|
417
|
+
declare readonly $res: () => RoomMember[];
|
|
455
418
|
|
|
456
|
-
constructor(args: Omit<
|
|
419
|
+
constructor(args: Omit<_GetRoomMembersByIds, "tx" | "createdAt">) {
|
|
457
420
|
this.query = args;
|
|
458
421
|
}
|
|
459
422
|
}
|
|
460
423
|
|
|
461
|
-
export class
|
|
462
|
-
static readonly queryId = "
|
|
463
|
-
static readonly queryItemType = "
|
|
464
|
-
readonly queryId = "
|
|
465
|
-
readonly queryItemType = "
|
|
466
|
-
readonly query: Omit<
|
|
467
|
-
declare readonly $res: () =>
|
|
424
|
+
export class GetAllRoomMembers {
|
|
425
|
+
static readonly queryId = "GetAllRoomMembers" as const;
|
|
426
|
+
static readonly queryItemType = "RoomMember" as const;
|
|
427
|
+
readonly queryId = "GetAllRoomMembers" as const;
|
|
428
|
+
readonly queryItemType = "RoomMember" as const;
|
|
429
|
+
readonly query: Omit<_GetAllRoomMembers, "tx" | "createdAt">;
|
|
430
|
+
declare readonly $res: () => RoomMember[];
|
|
468
431
|
|
|
469
|
-
constructor(args: Omit<
|
|
432
|
+
constructor(args: Omit<_GetAllRoomMembers, "tx" | "createdAt">) {
|
|
470
433
|
this.query = args;
|
|
471
434
|
}
|
|
472
435
|
}
|
|
@@ -549,38 +512,77 @@ export class GetAllMessageReads {
|
|
|
549
512
|
}
|
|
550
513
|
}
|
|
551
514
|
|
|
515
|
+
export class GetSandboxRunsByQuery {
|
|
516
|
+
static readonly queryId = "GetSandboxRunsByQuery" as const;
|
|
517
|
+
static readonly queryItemType = "SandboxRun" as const;
|
|
518
|
+
readonly queryId = "GetSandboxRunsByQuery" as const;
|
|
519
|
+
readonly queryItemType = "SandboxRun" as const;
|
|
520
|
+
readonly query: Omit<_GetSandboxRunsByQuery, "tx" | "createdAt">;
|
|
521
|
+
declare readonly $res: () => SandboxRun[];
|
|
522
|
+
|
|
523
|
+
constructor(args: Omit<_GetSandboxRunsByQuery, "tx" | "createdAt">) {
|
|
524
|
+
this.query = args;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
export class GetSandboxRunsByIds {
|
|
529
|
+
static readonly queryId = "GetSandboxRunsByIds" as const;
|
|
530
|
+
static readonly queryItemType = "SandboxRun" as const;
|
|
531
|
+
readonly queryId = "GetSandboxRunsByIds" as const;
|
|
532
|
+
readonly queryItemType = "SandboxRun" as const;
|
|
533
|
+
readonly query: Omit<_GetSandboxRunsByIds, "tx" | "createdAt">;
|
|
534
|
+
declare readonly $res: () => SandboxRun[];
|
|
535
|
+
|
|
536
|
+
constructor(args: Omit<_GetSandboxRunsByIds, "tx" | "createdAt">) {
|
|
537
|
+
this.query = args;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
export class GetAllSandboxRuns {
|
|
542
|
+
static readonly queryId = "GetAllSandboxRuns" as const;
|
|
543
|
+
static readonly queryItemType = "SandboxRun" as const;
|
|
544
|
+
readonly queryId = "GetAllSandboxRuns" as const;
|
|
545
|
+
readonly queryItemType = "SandboxRun" as const;
|
|
546
|
+
readonly query: Omit<_GetAllSandboxRuns, "tx" | "createdAt">;
|
|
547
|
+
declare readonly $res: () => SandboxRun[];
|
|
548
|
+
|
|
549
|
+
constructor(args: Omit<_GetAllSandboxRuns, "tx" | "createdAt">) {
|
|
550
|
+
this.query = args;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
552
554
|
// View classes
|
|
553
555
|
|
|
554
556
|
// Report classes
|
|
555
|
-
export class
|
|
556
|
-
static readonly reportId = "
|
|
557
|
-
readonly reportId = "
|
|
558
|
-
readonly report: Omit<
|
|
559
|
-
declare readonly $res: () =>
|
|
557
|
+
export class GetRoomById {
|
|
558
|
+
static readonly reportId = "GetRoomById" as const;
|
|
559
|
+
readonly reportId = "GetRoomById" as const;
|
|
560
|
+
readonly report: Omit<_GetRoomById, "tx">;
|
|
561
|
+
declare readonly $res: () => Room | null;
|
|
560
562
|
|
|
561
|
-
constructor(args: Omit<
|
|
563
|
+
constructor(args: Omit<_GetRoomById, "tx">) {
|
|
562
564
|
this.report = args;
|
|
563
565
|
}
|
|
564
566
|
}
|
|
565
567
|
|
|
566
|
-
export class
|
|
567
|
-
static readonly reportId = "
|
|
568
|
-
readonly reportId = "
|
|
569
|
-
readonly report: Omit<
|
|
570
|
-
declare readonly $res: () =>
|
|
568
|
+
export class CountRooms {
|
|
569
|
+
static readonly reportId = "CountRooms" as const;
|
|
570
|
+
readonly reportId = "CountRooms" as const;
|
|
571
|
+
readonly report: Omit<_CountRooms, "tx">;
|
|
572
|
+
declare readonly $res: () => RoomCount;
|
|
571
573
|
|
|
572
|
-
constructor(args: Omit<
|
|
574
|
+
constructor(args: Omit<_CountRooms, "tx">) {
|
|
573
575
|
this.report = args;
|
|
574
576
|
}
|
|
575
577
|
}
|
|
576
578
|
|
|
577
|
-
export class
|
|
578
|
-
static readonly reportId = "
|
|
579
|
-
readonly reportId = "
|
|
580
|
-
readonly report: Omit<
|
|
581
|
-
declare readonly $res: () =>
|
|
579
|
+
export class CountAllRooms {
|
|
580
|
+
static readonly reportId = "CountAllRooms" as const;
|
|
581
|
+
readonly reportId = "CountAllRooms" as const;
|
|
582
|
+
readonly report: Omit<_CountAllRooms, "tx">;
|
|
583
|
+
declare readonly $res: () => RoomCount;
|
|
582
584
|
|
|
583
|
-
constructor(args: Omit<
|
|
585
|
+
constructor(args: Omit<_CountAllRooms, "tx">) {
|
|
584
586
|
this.report = args;
|
|
585
587
|
}
|
|
586
588
|
}
|
|
@@ -618,68 +620,35 @@ export class CountAllSessionNicknames {
|
|
|
618
620
|
}
|
|
619
621
|
}
|
|
620
622
|
|
|
621
|
-
export class
|
|
622
|
-
static readonly reportId = "
|
|
623
|
-
readonly reportId = "
|
|
624
|
-
readonly report: Omit<
|
|
625
|
-
declare readonly $res: () =>
|
|
626
|
-
|
|
627
|
-
constructor(args: Omit<_GetRoomMemberById, "tx">) {
|
|
628
|
-
this.report = args;
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
|
|
632
|
-
export class CountRoomMembers {
|
|
633
|
-
static readonly reportId = "CountRoomMembers" as const;
|
|
634
|
-
readonly reportId = "CountRoomMembers" as const;
|
|
635
|
-
readonly report: Omit<_CountRoomMembers, "tx">;
|
|
636
|
-
declare readonly $res: () => RoomMemberCount;
|
|
637
|
-
|
|
638
|
-
constructor(args: Omit<_CountRoomMembers, "tx">) {
|
|
639
|
-
this.report = args;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
export class CountAllRoomMembers {
|
|
644
|
-
static readonly reportId = "CountAllRoomMembers" as const;
|
|
645
|
-
readonly reportId = "CountAllRoomMembers" as const;
|
|
646
|
-
readonly report: Omit<_CountAllRoomMembers, "tx">;
|
|
647
|
-
declare readonly $res: () => RoomMemberCount;
|
|
648
|
-
|
|
649
|
-
constructor(args: Omit<_CountAllRoomMembers, "tx">) {
|
|
650
|
-
this.report = args;
|
|
651
|
-
}
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
export class GetRoomById {
|
|
655
|
-
static readonly reportId = "GetRoomById" as const;
|
|
656
|
-
readonly reportId = "GetRoomById" as const;
|
|
657
|
-
readonly report: Omit<_GetRoomById, "tx">;
|
|
658
|
-
declare readonly $res: () => Room | null;
|
|
623
|
+
export class GetSessionById {
|
|
624
|
+
static readonly reportId = "GetSessionById" as const;
|
|
625
|
+
readonly reportId = "GetSessionById" as const;
|
|
626
|
+
readonly report: Omit<_GetSessionById, "tx">;
|
|
627
|
+
declare readonly $res: () => Session | null;
|
|
659
628
|
|
|
660
|
-
constructor(args: Omit<
|
|
629
|
+
constructor(args: Omit<_GetSessionById, "tx">) {
|
|
661
630
|
this.report = args;
|
|
662
631
|
}
|
|
663
632
|
}
|
|
664
633
|
|
|
665
|
-
export class
|
|
666
|
-
static readonly reportId = "
|
|
667
|
-
readonly reportId = "
|
|
668
|
-
readonly report: Omit<
|
|
669
|
-
declare readonly $res: () =>
|
|
634
|
+
export class CountSessions {
|
|
635
|
+
static readonly reportId = "CountSessions" as const;
|
|
636
|
+
readonly reportId = "CountSessions" as const;
|
|
637
|
+
readonly report: Omit<_CountSessions, "tx">;
|
|
638
|
+
declare readonly $res: () => SessionCount;
|
|
670
639
|
|
|
671
|
-
constructor(args: Omit<
|
|
640
|
+
constructor(args: Omit<_CountSessions, "tx">) {
|
|
672
641
|
this.report = args;
|
|
673
642
|
}
|
|
674
643
|
}
|
|
675
644
|
|
|
676
|
-
export class
|
|
677
|
-
static readonly reportId = "
|
|
678
|
-
readonly reportId = "
|
|
679
|
-
readonly report: Omit<
|
|
680
|
-
declare readonly $res: () =>
|
|
645
|
+
export class CountAllSessions {
|
|
646
|
+
static readonly reportId = "CountAllSessions" as const;
|
|
647
|
+
readonly reportId = "CountAllSessions" as const;
|
|
648
|
+
readonly report: Omit<_CountAllSessions, "tx">;
|
|
649
|
+
declare readonly $res: () => SessionCount;
|
|
681
650
|
|
|
682
|
-
constructor(args: Omit<
|
|
651
|
+
constructor(args: Omit<_CountAllSessions, "tx">) {
|
|
683
652
|
this.report = args;
|
|
684
653
|
}
|
|
685
654
|
}
|
|
@@ -717,35 +686,35 @@ export class CountAllWakeWatchers {
|
|
|
717
686
|
}
|
|
718
687
|
}
|
|
719
688
|
|
|
720
|
-
export class
|
|
721
|
-
static readonly reportId = "
|
|
722
|
-
readonly reportId = "
|
|
723
|
-
readonly report: Omit<
|
|
724
|
-
declare readonly $res: () =>
|
|
689
|
+
export class GetRoomMemberById {
|
|
690
|
+
static readonly reportId = "GetRoomMemberById" as const;
|
|
691
|
+
readonly reportId = "GetRoomMemberById" as const;
|
|
692
|
+
readonly report: Omit<_GetRoomMemberById, "tx">;
|
|
693
|
+
declare readonly $res: () => RoomMember | null;
|
|
725
694
|
|
|
726
|
-
constructor(args: Omit<
|
|
695
|
+
constructor(args: Omit<_GetRoomMemberById, "tx">) {
|
|
727
696
|
this.report = args;
|
|
728
697
|
}
|
|
729
698
|
}
|
|
730
699
|
|
|
731
|
-
export class
|
|
732
|
-
static readonly reportId = "
|
|
733
|
-
readonly reportId = "
|
|
734
|
-
readonly report: Omit<
|
|
735
|
-
declare readonly $res: () =>
|
|
700
|
+
export class CountRoomMembers {
|
|
701
|
+
static readonly reportId = "CountRoomMembers" as const;
|
|
702
|
+
readonly reportId = "CountRoomMembers" as const;
|
|
703
|
+
readonly report: Omit<_CountRoomMembers, "tx">;
|
|
704
|
+
declare readonly $res: () => RoomMemberCount;
|
|
736
705
|
|
|
737
|
-
constructor(args: Omit<
|
|
706
|
+
constructor(args: Omit<_CountRoomMembers, "tx">) {
|
|
738
707
|
this.report = args;
|
|
739
708
|
}
|
|
740
709
|
}
|
|
741
710
|
|
|
742
|
-
export class
|
|
743
|
-
static readonly reportId = "
|
|
744
|
-
readonly reportId = "
|
|
745
|
-
readonly report: Omit<
|
|
746
|
-
declare readonly $res: () =>
|
|
711
|
+
export class CountAllRoomMembers {
|
|
712
|
+
static readonly reportId = "CountAllRoomMembers" as const;
|
|
713
|
+
readonly reportId = "CountAllRoomMembers" as const;
|
|
714
|
+
readonly report: Omit<_CountAllRoomMembers, "tx">;
|
|
715
|
+
declare readonly $res: () => RoomMemberCount;
|
|
747
716
|
|
|
748
|
-
constructor(args: Omit<
|
|
717
|
+
constructor(args: Omit<_CountAllRoomMembers, "tx">) {
|
|
749
718
|
this.report = args;
|
|
750
719
|
}
|
|
751
720
|
}
|
|
@@ -800,52 +769,140 @@ export class CountMessageReads {
|
|
|
800
769
|
readonly report: Omit<_CountMessageReads, "tx">;
|
|
801
770
|
declare readonly $res: () => MessageReadCount;
|
|
802
771
|
|
|
803
|
-
constructor(args: Omit<_CountMessageReads, "tx">) {
|
|
804
|
-
this.report = args;
|
|
772
|
+
constructor(args: Omit<_CountMessageReads, "tx">) {
|
|
773
|
+
this.report = args;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export class CountAllMessageReads {
|
|
778
|
+
static readonly reportId = "CountAllMessageReads" as const;
|
|
779
|
+
readonly reportId = "CountAllMessageReads" as const;
|
|
780
|
+
readonly report: Omit<_CountAllMessageReads, "tx">;
|
|
781
|
+
declare readonly $res: () => MessageReadCount;
|
|
782
|
+
|
|
783
|
+
constructor(args: Omit<_CountAllMessageReads, "tx">) {
|
|
784
|
+
this.report = args;
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export class GetSandboxRunById {
|
|
789
|
+
static readonly reportId = "GetSandboxRunById" as const;
|
|
790
|
+
readonly reportId = "GetSandboxRunById" as const;
|
|
791
|
+
readonly report: Omit<_GetSandboxRunById, "tx">;
|
|
792
|
+
declare readonly $res: () => SandboxRun | null;
|
|
793
|
+
|
|
794
|
+
constructor(args: Omit<_GetSandboxRunById, "tx">) {
|
|
795
|
+
this.report = args;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
export class CountSandboxRuns {
|
|
800
|
+
static readonly reportId = "CountSandboxRuns" as const;
|
|
801
|
+
readonly reportId = "CountSandboxRuns" as const;
|
|
802
|
+
readonly report: Omit<_CountSandboxRuns, "tx">;
|
|
803
|
+
declare readonly $res: () => SandboxRunCount;
|
|
804
|
+
|
|
805
|
+
constructor(args: Omit<_CountSandboxRuns, "tx">) {
|
|
806
|
+
this.report = args;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
export class CountAllSandboxRuns {
|
|
811
|
+
static readonly reportId = "CountAllSandboxRuns" as const;
|
|
812
|
+
readonly reportId = "CountAllSandboxRuns" as const;
|
|
813
|
+
readonly report: Omit<_CountAllSandboxRuns, "tx">;
|
|
814
|
+
declare readonly $res: () => SandboxRunCount;
|
|
815
|
+
|
|
816
|
+
constructor(args: Omit<_CountAllSandboxRuns, "tx">) {
|
|
817
|
+
this.report = args;
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
// Command classes
|
|
822
|
+
export class DeleteRoom {
|
|
823
|
+
static readonly commandId = "DeleteRoom" as const;
|
|
824
|
+
readonly commandId = "DeleteRoom" as const;
|
|
825
|
+
readonly command: Omit<_DeleteRoom, "tx" | "createdAt">;
|
|
826
|
+
declare readonly $res: () => DeleteRoomResult;
|
|
827
|
+
|
|
828
|
+
constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
|
|
829
|
+
this.command = args;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
export class SetRoomDescription {
|
|
834
|
+
static readonly commandId = "SetRoomDescription" as const;
|
|
835
|
+
readonly commandId = "SetRoomDescription" as const;
|
|
836
|
+
readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
|
|
837
|
+
declare readonly $res: () => void;
|
|
838
|
+
|
|
839
|
+
constructor(args: Omit<_SetRoomDescription, "tx" | "createdAt">) {
|
|
840
|
+
this.command = args;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export class SetRoomName {
|
|
845
|
+
static readonly commandId = "SetRoomName" as const;
|
|
846
|
+
readonly commandId = "SetRoomName" as const;
|
|
847
|
+
readonly command: Omit<_SetRoomName, "tx" | "createdAt">;
|
|
848
|
+
declare readonly $res: () => void;
|
|
849
|
+
|
|
850
|
+
constructor(args: Omit<_SetRoomName, "tx" | "createdAt">) {
|
|
851
|
+
this.command = args;
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
export class DeleteRooms {
|
|
856
|
+
static readonly commandId = "DeleteRooms" as const;
|
|
857
|
+
readonly commandId = "DeleteRooms" as const;
|
|
858
|
+
readonly command: Omit<_DeleteRooms, "tx" | "createdAt">;
|
|
859
|
+
declare readonly $res: () => DeleteRoomsResult;
|
|
860
|
+
|
|
861
|
+
constructor(args: Omit<_DeleteRooms, "tx" | "createdAt">) {
|
|
862
|
+
this.command = args;
|
|
805
863
|
}
|
|
806
864
|
}
|
|
807
865
|
|
|
808
|
-
export class
|
|
809
|
-
static readonly
|
|
810
|
-
readonly
|
|
811
|
-
readonly
|
|
812
|
-
declare readonly $res: () =>
|
|
866
|
+
export class DeleteSessionNickname {
|
|
867
|
+
static readonly commandId = "DeleteSessionNickname" as const;
|
|
868
|
+
readonly commandId = "DeleteSessionNickname" as const;
|
|
869
|
+
readonly command: Omit<_DeleteSessionNickname, "tx" | "createdAt">;
|
|
870
|
+
declare readonly $res: () => DeleteSessionNicknameResult;
|
|
813
871
|
|
|
814
|
-
constructor(args: Omit<
|
|
815
|
-
this.
|
|
872
|
+
constructor(args: Omit<_DeleteSessionNickname, "tx" | "createdAt">) {
|
|
873
|
+
this.command = args;
|
|
816
874
|
}
|
|
817
875
|
}
|
|
818
876
|
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
readonly
|
|
823
|
-
readonly
|
|
824
|
-
declare readonly $res: () => BroadcastMessageResult;
|
|
877
|
+
export class DeleteSessionNicknames {
|
|
878
|
+
static readonly commandId = "DeleteSessionNicknames" as const;
|
|
879
|
+
readonly commandId = "DeleteSessionNicknames" as const;
|
|
880
|
+
readonly command: Omit<_DeleteSessionNicknames, "tx" | "createdAt">;
|
|
881
|
+
declare readonly $res: () => DeleteSessionNicknamesResult;
|
|
825
882
|
|
|
826
|
-
constructor(args: Omit<
|
|
883
|
+
constructor(args: Omit<_DeleteSessionNicknames, "tx" | "createdAt">) {
|
|
827
884
|
this.command = args;
|
|
828
885
|
}
|
|
829
886
|
}
|
|
830
887
|
|
|
831
|
-
export class
|
|
832
|
-
static readonly commandId = "
|
|
833
|
-
readonly commandId = "
|
|
834
|
-
readonly command: Omit<
|
|
835
|
-
declare readonly $res: () =>
|
|
888
|
+
export class LeaveRoom {
|
|
889
|
+
static readonly commandId = "LeaveRoom" as const;
|
|
890
|
+
readonly commandId = "LeaveRoom" as const;
|
|
891
|
+
readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
|
|
892
|
+
declare readonly $res: () => LeaveRoomResult;
|
|
836
893
|
|
|
837
|
-
constructor(args: Omit<
|
|
894
|
+
constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
|
|
838
895
|
this.command = args;
|
|
839
896
|
}
|
|
840
897
|
}
|
|
841
898
|
|
|
842
|
-
export class
|
|
843
|
-
static readonly commandId = "
|
|
844
|
-
readonly commandId = "
|
|
845
|
-
readonly command: Omit<
|
|
846
|
-
declare readonly $res: () =>
|
|
899
|
+
export class JoinRoom {
|
|
900
|
+
static readonly commandId = "JoinRoom" as const;
|
|
901
|
+
readonly commandId = "JoinRoom" as const;
|
|
902
|
+
readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
|
|
903
|
+
declare readonly $res: () => JoinRoomResult;
|
|
847
904
|
|
|
848
|
-
constructor(args: Omit<
|
|
905
|
+
constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
|
|
849
906
|
this.command = args;
|
|
850
907
|
}
|
|
851
908
|
}
|
|
@@ -872,6 +929,17 @@ export class SetSessionLastTool {
|
|
|
872
929
|
}
|
|
873
930
|
}
|
|
874
931
|
|
|
932
|
+
export class RegisterSession {
|
|
933
|
+
static readonly commandId = "RegisterSession" as const;
|
|
934
|
+
readonly commandId = "RegisterSession" as const;
|
|
935
|
+
readonly command: Omit<_RegisterSession, "tx" | "createdAt">;
|
|
936
|
+
declare readonly $res: () => void;
|
|
937
|
+
|
|
938
|
+
constructor(args: Omit<_RegisterSession, "tx" | "createdAt">) {
|
|
939
|
+
this.command = args;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
|
|
875
943
|
export class SetSessionLastActivityAt {
|
|
876
944
|
static readonly commandId = "SetSessionLastActivityAt" as const;
|
|
877
945
|
readonly commandId = "SetSessionLastActivityAt" as const;
|
|
@@ -949,24 +1017,35 @@ export class DeleteSession {
|
|
|
949
1017
|
}
|
|
950
1018
|
}
|
|
951
1019
|
|
|
952
|
-
export class
|
|
953
|
-
static readonly commandId = "
|
|
954
|
-
readonly commandId = "
|
|
955
|
-
readonly command: Omit<
|
|
956
|
-
declare readonly $res: () =>
|
|
1020
|
+
export class DeleteWakeWatcher {
|
|
1021
|
+
static readonly commandId = "DeleteWakeWatcher" as const;
|
|
1022
|
+
readonly commandId = "DeleteWakeWatcher" as const;
|
|
1023
|
+
readonly command: Omit<_DeleteWakeWatcher, "tx" | "createdAt">;
|
|
1024
|
+
declare readonly $res: () => DeleteWakeWatcherResult;
|
|
957
1025
|
|
|
958
|
-
constructor(args: Omit<
|
|
1026
|
+
constructor(args: Omit<_DeleteWakeWatcher, "tx" | "createdAt">) {
|
|
959
1027
|
this.command = args;
|
|
960
1028
|
}
|
|
961
1029
|
}
|
|
962
1030
|
|
|
963
|
-
export class
|
|
964
|
-
static readonly commandId = "
|
|
965
|
-
readonly commandId = "
|
|
966
|
-
readonly command: Omit<
|
|
967
|
-
declare readonly $res: () =>
|
|
1031
|
+
export class DeleteWakeWatchers {
|
|
1032
|
+
static readonly commandId = "DeleteWakeWatchers" as const;
|
|
1033
|
+
readonly commandId = "DeleteWakeWatchers" as const;
|
|
1034
|
+
readonly command: Omit<_DeleteWakeWatchers, "tx" | "createdAt">;
|
|
1035
|
+
declare readonly $res: () => DeleteWakeWatchersResult;
|
|
968
1036
|
|
|
969
|
-
constructor(args: Omit<
|
|
1037
|
+
constructor(args: Omit<_DeleteWakeWatchers, "tx" | "createdAt">) {
|
|
1038
|
+
this.command = args;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
export class AckMessages {
|
|
1043
|
+
static readonly commandId = "AckMessages" as const;
|
|
1044
|
+
readonly commandId = "AckMessages" as const;
|
|
1045
|
+
readonly command: Omit<_AckMessages, "tx" | "createdAt">;
|
|
1046
|
+
declare readonly $res: () => AckMessagesResult;
|
|
1047
|
+
|
|
1048
|
+
constructor(args: Omit<_AckMessages, "tx" | "createdAt">) {
|
|
970
1049
|
this.command = args;
|
|
971
1050
|
}
|
|
972
1051
|
}
|
|
@@ -993,90 +1072,79 @@ export class DeleteRoomMembers {
|
|
|
993
1072
|
}
|
|
994
1073
|
}
|
|
995
1074
|
|
|
996
|
-
export class
|
|
997
|
-
static readonly commandId = "
|
|
998
|
-
readonly commandId = "
|
|
999
|
-
readonly command: Omit<
|
|
1000
|
-
declare readonly $res: () =>
|
|
1001
|
-
|
|
1002
|
-
constructor(args: Omit<_DeleteRoom, "tx" | "createdAt">) {
|
|
1003
|
-
this.command = args;
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
export class SetRoomDescription {
|
|
1008
|
-
static readonly commandId = "SetRoomDescription" as const;
|
|
1009
|
-
readonly commandId = "SetRoomDescription" as const;
|
|
1010
|
-
readonly command: Omit<_SetRoomDescription, "tx" | "createdAt">;
|
|
1011
|
-
declare readonly $res: () => void;
|
|
1075
|
+
export class DeleteMessage {
|
|
1076
|
+
static readonly commandId = "DeleteMessage" as const;
|
|
1077
|
+
readonly commandId = "DeleteMessage" as const;
|
|
1078
|
+
readonly command: Omit<_DeleteMessage, "tx" | "createdAt">;
|
|
1079
|
+
declare readonly $res: () => DeleteMessageResult;
|
|
1012
1080
|
|
|
1013
|
-
constructor(args: Omit<
|
|
1081
|
+
constructor(args: Omit<_DeleteMessage, "tx" | "createdAt">) {
|
|
1014
1082
|
this.command = args;
|
|
1015
1083
|
}
|
|
1016
1084
|
}
|
|
1017
1085
|
|
|
1018
|
-
export class
|
|
1019
|
-
static readonly commandId = "
|
|
1020
|
-
readonly commandId = "
|
|
1021
|
-
readonly command: Omit<
|
|
1022
|
-
declare readonly $res: () =>
|
|
1086
|
+
export class DeleteMessages {
|
|
1087
|
+
static readonly commandId = "DeleteMessages" as const;
|
|
1088
|
+
readonly commandId = "DeleteMessages" as const;
|
|
1089
|
+
readonly command: Omit<_DeleteMessages, "tx" | "createdAt">;
|
|
1090
|
+
declare readonly $res: () => DeleteMessagesResult;
|
|
1023
1091
|
|
|
1024
|
-
constructor(args: Omit<
|
|
1092
|
+
constructor(args: Omit<_DeleteMessages, "tx" | "createdAt">) {
|
|
1025
1093
|
this.command = args;
|
|
1026
1094
|
}
|
|
1027
1095
|
}
|
|
1028
1096
|
|
|
1029
|
-
export class
|
|
1030
|
-
static readonly commandId = "
|
|
1031
|
-
readonly commandId = "
|
|
1032
|
-
readonly command: Omit<
|
|
1033
|
-
declare readonly $res: () =>
|
|
1097
|
+
export class DeleteMessageRead {
|
|
1098
|
+
static readonly commandId = "DeleteMessageRead" as const;
|
|
1099
|
+
readonly commandId = "DeleteMessageRead" as const;
|
|
1100
|
+
readonly command: Omit<_DeleteMessageRead, "tx" | "createdAt">;
|
|
1101
|
+
declare readonly $res: () => DeleteMessageReadResult;
|
|
1034
1102
|
|
|
1035
|
-
constructor(args: Omit<
|
|
1103
|
+
constructor(args: Omit<_DeleteMessageRead, "tx" | "createdAt">) {
|
|
1036
1104
|
this.command = args;
|
|
1037
1105
|
}
|
|
1038
1106
|
}
|
|
1039
1107
|
|
|
1040
|
-
export class
|
|
1041
|
-
static readonly commandId = "
|
|
1042
|
-
readonly commandId = "
|
|
1043
|
-
readonly command: Omit<
|
|
1044
|
-
declare readonly $res: () =>
|
|
1108
|
+
export class DeleteMessageReads {
|
|
1109
|
+
static readonly commandId = "DeleteMessageReads" as const;
|
|
1110
|
+
readonly commandId = "DeleteMessageReads" as const;
|
|
1111
|
+
readonly command: Omit<_DeleteMessageReads, "tx" | "createdAt">;
|
|
1112
|
+
declare readonly $res: () => DeleteMessageReadsResult;
|
|
1045
1113
|
|
|
1046
|
-
constructor(args: Omit<
|
|
1114
|
+
constructor(args: Omit<_DeleteMessageReads, "tx" | "createdAt">) {
|
|
1047
1115
|
this.command = args;
|
|
1048
1116
|
}
|
|
1049
1117
|
}
|
|
1050
1118
|
|
|
1051
|
-
export class
|
|
1052
|
-
static readonly commandId = "
|
|
1053
|
-
readonly commandId = "
|
|
1054
|
-
readonly command: Omit<
|
|
1055
|
-
declare readonly $res: () =>
|
|
1119
|
+
export class BroadcastMessage {
|
|
1120
|
+
static readonly commandId = "BroadcastMessage" as const;
|
|
1121
|
+
readonly commandId = "BroadcastMessage" as const;
|
|
1122
|
+
readonly command: Omit<_BroadcastMessage, "tx" | "createdAt">;
|
|
1123
|
+
declare readonly $res: () => BroadcastMessageResult;
|
|
1056
1124
|
|
|
1057
|
-
constructor(args: Omit<
|
|
1125
|
+
constructor(args: Omit<_BroadcastMessage, "tx" | "createdAt">) {
|
|
1058
1126
|
this.command = args;
|
|
1059
1127
|
}
|
|
1060
1128
|
}
|
|
1061
1129
|
|
|
1062
|
-
export class
|
|
1063
|
-
static readonly commandId = "
|
|
1064
|
-
readonly commandId = "
|
|
1065
|
-
readonly command: Omit<
|
|
1066
|
-
declare readonly $res: () =>
|
|
1130
|
+
export class ReadMessages {
|
|
1131
|
+
static readonly commandId = "ReadMessages" as const;
|
|
1132
|
+
readonly commandId = "ReadMessages" as const;
|
|
1133
|
+
readonly command: Omit<_ReadMessages, "tx" | "createdAt">;
|
|
1134
|
+
declare readonly $res: () => ReadMessagesResult;
|
|
1067
1135
|
|
|
1068
|
-
constructor(args: Omit<
|
|
1136
|
+
constructor(args: Omit<_ReadMessages, "tx" | "createdAt">) {
|
|
1069
1137
|
this.command = args;
|
|
1070
1138
|
}
|
|
1071
1139
|
}
|
|
1072
1140
|
|
|
1073
|
-
export class
|
|
1074
|
-
static readonly commandId = "
|
|
1075
|
-
readonly commandId = "
|
|
1076
|
-
readonly command: Omit<
|
|
1077
|
-
declare readonly $res: () =>
|
|
1141
|
+
export class SendMessage {
|
|
1142
|
+
static readonly commandId = "SendMessage" as const;
|
|
1143
|
+
readonly commandId = "SendMessage" as const;
|
|
1144
|
+
readonly command: Omit<_SendMessage, "tx" | "createdAt">;
|
|
1145
|
+
declare readonly $res: () => SendMessageResult;
|
|
1078
1146
|
|
|
1079
|
-
constructor(args: Omit<
|
|
1147
|
+
constructor(args: Omit<_SendMessage, "tx" | "createdAt">) {
|
|
1080
1148
|
this.command = args;
|
|
1081
1149
|
}
|
|
1082
1150
|
}
|
|
@@ -1125,71 +1193,16 @@ export class NotifyChannel {
|
|
|
1125
1193
|
}
|
|
1126
1194
|
}
|
|
1127
1195
|
|
|
1128
|
-
export class DeleteMessage {
|
|
1129
|
-
static readonly commandId = "DeleteMessage" as const;
|
|
1130
|
-
readonly commandId = "DeleteMessage" as const;
|
|
1131
|
-
readonly command: Omit<_DeleteMessage, "tx" | "createdAt">;
|
|
1132
|
-
declare readonly $res: () => DeleteMessageResult;
|
|
1133
|
-
|
|
1134
|
-
constructor(args: Omit<_DeleteMessage, "tx" | "createdAt">) {
|
|
1135
|
-
this.command = args;
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
export class DeleteMessages {
|
|
1140
|
-
static readonly commandId = "DeleteMessages" as const;
|
|
1141
|
-
readonly commandId = "DeleteMessages" as const;
|
|
1142
|
-
readonly command: Omit<_DeleteMessages, "tx" | "createdAt">;
|
|
1143
|
-
declare readonly $res: () => DeleteMessagesResult;
|
|
1144
|
-
|
|
1145
|
-
constructor(args: Omit<_DeleteMessages, "tx" | "createdAt">) {
|
|
1146
|
-
this.command = args;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
export class DeleteMessageRead {
|
|
1151
|
-
static readonly commandId = "DeleteMessageRead" as const;
|
|
1152
|
-
readonly commandId = "DeleteMessageRead" as const;
|
|
1153
|
-
readonly command: Omit<_DeleteMessageRead, "tx" | "createdAt">;
|
|
1154
|
-
declare readonly $res: () => DeleteMessageReadResult;
|
|
1155
|
-
|
|
1156
|
-
constructor(args: Omit<_DeleteMessageRead, "tx" | "createdAt">) {
|
|
1157
|
-
this.command = args;
|
|
1158
|
-
}
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
|
-
export class DeleteMessageReads {
|
|
1162
|
-
static readonly commandId = "DeleteMessageReads" as const;
|
|
1163
|
-
readonly commandId = "DeleteMessageReads" as const;
|
|
1164
|
-
readonly command: Omit<_DeleteMessageReads, "tx" | "createdAt">;
|
|
1165
|
-
declare readonly $res: () => DeleteMessageReadsResult;
|
|
1166
|
-
|
|
1167
|
-
constructor(args: Omit<_DeleteMessageReads, "tx" | "createdAt">) {
|
|
1168
|
-
this.command = args;
|
|
1169
|
-
}
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
export class AckMessages {
|
|
1173
|
-
static readonly commandId = "AckMessages" as const;
|
|
1174
|
-
readonly commandId = "AckMessages" as const;
|
|
1175
|
-
readonly command: Omit<_AckMessages, "tx" | "createdAt">;
|
|
1176
|
-
declare readonly $res: () => AckMessagesResult;
|
|
1177
|
-
|
|
1178
|
-
constructor(args: Omit<_AckMessages, "tx" | "createdAt">) {
|
|
1179
|
-
this.command = args;
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
1196
|
// Item constructors
|
|
1184
1197
|
export const items = {
|
|
1185
|
-
Session: (args: Session) => ({ item: args, itemType: "Session" }),
|
|
1186
|
-
SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
|
|
1187
|
-
RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
|
|
1188
1198
|
Room: (args: Room) => ({ item: args, itemType: "Room" }),
|
|
1199
|
+
SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
|
|
1200
|
+
Session: (args: Session) => ({ item: args, itemType: "Session" }),
|
|
1189
1201
|
WakeWatcher: (args: WakeWatcher) => ({ item: args, itemType: "WakeWatcher" }),
|
|
1190
|
-
|
|
1202
|
+
RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
|
|
1191
1203
|
Message: (args: Message) => ({ item: args, itemType: "Message" }),
|
|
1192
1204
|
MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
|
|
1205
|
+
SandboxRun: (args: SandboxRun) => ({ item: args, itemType: "SandboxRun" }),
|
|
1193
1206
|
};
|
|
1194
1207
|
|
|
1195
1208
|
// Message events
|
package/src/identity.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { execFileSync } from "node:child_process";
|
|
|
8
8
|
import type { HostInfo } from "./entities.ts";
|
|
9
9
|
|
|
10
10
|
export interface Identity {
|
|
11
|
+
agentId?: string;
|
|
11
12
|
operator: string;
|
|
12
13
|
host: HostInfo;
|
|
13
14
|
gitBranch?: string;
|
|
@@ -57,5 +58,5 @@ export async function resolveIdentity(cwd: string): Promise<Identity> {
|
|
|
57
58
|
const toplevel = tryText("git", ["rev-parse", "--show-toplevel"], cwd);
|
|
58
59
|
const project = toplevel ? toplevel.split(/[/\\]/).pop() || undefined : undefined;
|
|
59
60
|
|
|
60
|
-
return { operator, host, gitBranch, project };
|
|
61
|
+
return { operator, host, gitBranch, project, agentId: process.env.MARSHAL_AGENT_ID?.trim() || undefined };
|
|
61
62
|
}
|
package/src/index.ts
CHANGED
|
@@ -348,6 +348,7 @@ async function init(pi: ExtensionAPI) {
|
|
|
348
348
|
"",
|
|
349
349
|
`nickname: ${nick}`,
|
|
350
350
|
`operator: ${identity.operator}`,
|
|
351
|
+
`agent_id: ${JSON.stringify(identity.agentId ?? null)}`,
|
|
351
352
|
`host: ${host}`,
|
|
352
353
|
`project: ${identity.project ?? "(none)"}`,
|
|
353
354
|
`branch: ${identity.gitBranch ?? "(none)"}`,
|
|
@@ -377,7 +378,7 @@ async function init(pi: ExtensionAPI) {
|
|
|
377
378
|
const branch = s.gitBranch ? ` @${s.gitBranch}` : "";
|
|
378
379
|
const op = s.operator ? ` (${s.operator})` : "";
|
|
379
380
|
const task = s.currentTask ? ` — ${s.currentTask}` : "";
|
|
380
|
-
return `- ${host}:${dir}${branch}${op} [${s.id}]${task}`;
|
|
381
|
+
return `- ${host}:${dir}${branch}${op} [${s.id}]${s.agentId ? ` agent_id=${JSON.stringify(s.agentId)}` : ""}${task}`;
|
|
381
382
|
});
|
|
382
383
|
return { content: [{ type: "text", text: rows.join("\n") }], details: {} };
|
|
383
384
|
},
|