@agent-marshal/marshal-prime-agent 0.48.4 → 0.49.2
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 +25 -20
- package/src/generated/index.ts +266 -266
- package/src/index.ts +16 -3
package/package.json
CHANGED
|
@@ -1,48 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
|
|
2
|
+
"dependencies": {
|
|
3
|
+
"@myko/core": "^4.24.4"
|
|
4
|
+
},
|
|
4
5
|
"description": "Prime Agent extension that connects live conversations to the marshal coordination daemon with native tools and real-time steering delivery of sibling-agent messages.",
|
|
5
|
-
"
|
|
6
|
-
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"typescript": "^5.3.3"
|
|
8
|
+
},
|
|
7
9
|
"exports": {
|
|
8
10
|
".": "./src/index.ts"
|
|
9
11
|
},
|
|
10
|
-
"main": "./src/index.ts",
|
|
11
12
|
"files": [
|
|
12
13
|
"src",
|
|
13
14
|
"README.md"
|
|
14
15
|
],
|
|
16
|
+
"flux": {
|
|
17
|
+
"bridges": [
|
|
18
|
+
"cargo:marshal-entities"
|
|
19
|
+
],
|
|
20
|
+
"tasks": [
|
|
21
|
+
"gen",
|
|
22
|
+
"publish"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
15
25
|
"keywords": [
|
|
16
26
|
"prime-agent-package",
|
|
17
27
|
"prime-agent",
|
|
18
28
|
"marshal",
|
|
19
29
|
"agent-coordination"
|
|
20
30
|
],
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
"license": "MIT OR Apache-2.0",
|
|
32
|
+
"main": "./src/index.ts",
|
|
33
|
+
"name": "@agent-marshal/marshal-prime-agent",
|
|
24
34
|
"peerDependencies": {
|
|
25
35
|
"@earendil-works/pi-coding-agent": "*",
|
|
26
36
|
"typebox": "*"
|
|
27
37
|
},
|
|
28
|
-
"devDependencies": {
|
|
29
|
-
"typescript": "^5.3.3"
|
|
30
|
-
},
|
|
31
38
|
"pi": {
|
|
32
39
|
"extensions": [
|
|
33
40
|
"./src/index.ts"
|
|
34
41
|
]
|
|
35
42
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"tasks": [
|
|
41
|
-
"gen",
|
|
42
|
-
"publish"
|
|
43
|
-
]
|
|
43
|
+
"repository": {
|
|
44
|
+
"directory": "plugins/marshal-prime-agent",
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "https://github.com/ignition-is-go/marshal"
|
|
44
47
|
},
|
|
45
48
|
"scripts": {
|
|
46
49
|
"gen": "cargo run -p marshal-entities --no-default-features --features codegen --bin typegen -- src/generated"
|
|
47
|
-
}
|
|
50
|
+
},
|
|
51
|
+
"type": "module",
|
|
52
|
+
"version": "0.49.2"
|
|
48
53
|
}
|
package/src/generated/index.ts
CHANGED
|
@@ -316,41 +316,41 @@ export class GetAllMessageReads {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
export class
|
|
320
|
-
static readonly queryId = "
|
|
321
|
-
static readonly queryItemType = "
|
|
322
|
-
readonly queryId = "
|
|
323
|
-
readonly queryItemType = "
|
|
324
|
-
readonly query: Omit<
|
|
325
|
-
declare readonly $res: () =>
|
|
319
|
+
export class GetRoomMembersByQuery {
|
|
320
|
+
static readonly queryId = "GetRoomMembersByQuery" as const;
|
|
321
|
+
static readonly queryItemType = "RoomMember" as const;
|
|
322
|
+
readonly queryId = "GetRoomMembersByQuery" as const;
|
|
323
|
+
readonly queryItemType = "RoomMember" as const;
|
|
324
|
+
readonly query: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">;
|
|
325
|
+
declare readonly $res: () => RoomMember[];
|
|
326
326
|
|
|
327
|
-
constructor(args: Omit<
|
|
327
|
+
constructor(args: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">) {
|
|
328
328
|
this.query = args;
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
export class
|
|
333
|
-
static readonly queryId = "
|
|
334
|
-
static readonly queryItemType = "
|
|
335
|
-
readonly queryId = "
|
|
336
|
-
readonly queryItemType = "
|
|
337
|
-
readonly query: Omit<
|
|
338
|
-
declare readonly $res: () =>
|
|
332
|
+
export class GetRoomMembersByIds {
|
|
333
|
+
static readonly queryId = "GetRoomMembersByIds" as const;
|
|
334
|
+
static readonly queryItemType = "RoomMember" as const;
|
|
335
|
+
readonly queryId = "GetRoomMembersByIds" as const;
|
|
336
|
+
readonly queryItemType = "RoomMember" as const;
|
|
337
|
+
readonly query: Omit<_GetRoomMembersByIds, "tx" | "createdAt">;
|
|
338
|
+
declare readonly $res: () => RoomMember[];
|
|
339
339
|
|
|
340
|
-
constructor(args: Omit<
|
|
340
|
+
constructor(args: Omit<_GetRoomMembersByIds, "tx" | "createdAt">) {
|
|
341
341
|
this.query = args;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
|
|
345
|
-
export class
|
|
346
|
-
static readonly queryId = "
|
|
347
|
-
static readonly queryItemType = "
|
|
348
|
-
readonly queryId = "
|
|
349
|
-
readonly queryItemType = "
|
|
350
|
-
readonly query: Omit<
|
|
351
|
-
declare readonly $res: () =>
|
|
345
|
+
export class GetAllRoomMembers {
|
|
346
|
+
static readonly queryId = "GetAllRoomMembers" as const;
|
|
347
|
+
static readonly queryItemType = "RoomMember" as const;
|
|
348
|
+
readonly queryId = "GetAllRoomMembers" as const;
|
|
349
|
+
readonly queryItemType = "RoomMember" as const;
|
|
350
|
+
readonly query: Omit<_GetAllRoomMembers, "tx" | "createdAt">;
|
|
351
|
+
declare readonly $res: () => RoomMember[];
|
|
352
352
|
|
|
353
|
-
constructor(args: Omit<
|
|
353
|
+
constructor(args: Omit<_GetAllRoomMembers, "tx" | "createdAt">) {
|
|
354
354
|
this.query = args;
|
|
355
355
|
}
|
|
356
356
|
}
|
|
@@ -394,80 +394,41 @@ export class GetAllSessions {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
|
|
397
|
-
export class
|
|
398
|
-
static readonly queryId = "
|
|
399
|
-
static readonly queryItemType = "
|
|
400
|
-
readonly queryId = "
|
|
401
|
-
readonly queryItemType = "
|
|
402
|
-
readonly query: Omit<
|
|
403
|
-
declare readonly $res: () =>
|
|
404
|
-
|
|
405
|
-
constructor(args: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">) {
|
|
406
|
-
this.query = args;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
export class GetSessionNicknamesByIds {
|
|
411
|
-
static readonly queryId = "GetSessionNicknamesByIds" as const;
|
|
412
|
-
static readonly queryItemType = "SessionNickname" as const;
|
|
413
|
-
readonly queryId = "GetSessionNicknamesByIds" as const;
|
|
414
|
-
readonly queryItemType = "SessionNickname" as const;
|
|
415
|
-
readonly query: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">;
|
|
416
|
-
declare readonly $res: () => SessionNickname[];
|
|
417
|
-
|
|
418
|
-
constructor(args: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">) {
|
|
419
|
-
this.query = args;
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
export class GetAllSessionNicknames {
|
|
424
|
-
static readonly queryId = "GetAllSessionNicknames" as const;
|
|
425
|
-
static readonly queryItemType = "SessionNickname" as const;
|
|
426
|
-
readonly queryId = "GetAllSessionNicknames" as const;
|
|
427
|
-
readonly queryItemType = "SessionNickname" as const;
|
|
428
|
-
readonly query: Omit<_GetAllSessionNicknames, "tx" | "createdAt">;
|
|
429
|
-
declare readonly $res: () => SessionNickname[];
|
|
430
|
-
|
|
431
|
-
constructor(args: Omit<_GetAllSessionNicknames, "tx" | "createdAt">) {
|
|
432
|
-
this.query = args;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export class GetRoomMembersByQuery {
|
|
437
|
-
static readonly queryId = "GetRoomMembersByQuery" as const;
|
|
438
|
-
static readonly queryItemType = "RoomMember" as const;
|
|
439
|
-
readonly queryId = "GetRoomMembersByQuery" as const;
|
|
440
|
-
readonly queryItemType = "RoomMember" as const;
|
|
441
|
-
readonly query: Omit<_GetRoomMembersByQuery, "tx" | "createdAt">;
|
|
442
|
-
declare readonly $res: () => RoomMember[];
|
|
397
|
+
export class GetMessagesByQuery {
|
|
398
|
+
static readonly queryId = "GetMessagesByQuery" as const;
|
|
399
|
+
static readonly queryItemType = "Message" as const;
|
|
400
|
+
readonly queryId = "GetMessagesByQuery" as const;
|
|
401
|
+
readonly queryItemType = "Message" as const;
|
|
402
|
+
readonly query: Omit<_GetMessagesByQuery, "tx" | "createdAt">;
|
|
403
|
+
declare readonly $res: () => Message[];
|
|
443
404
|
|
|
444
|
-
constructor(args: Omit<
|
|
405
|
+
constructor(args: Omit<_GetMessagesByQuery, "tx" | "createdAt">) {
|
|
445
406
|
this.query = args;
|
|
446
407
|
}
|
|
447
408
|
}
|
|
448
409
|
|
|
449
|
-
export class
|
|
450
|
-
static readonly queryId = "
|
|
451
|
-
static readonly queryItemType = "
|
|
452
|
-
readonly queryId = "
|
|
453
|
-
readonly queryItemType = "
|
|
454
|
-
readonly query: Omit<
|
|
455
|
-
declare readonly $res: () =>
|
|
410
|
+
export class GetMessagesByIds {
|
|
411
|
+
static readonly queryId = "GetMessagesByIds" as const;
|
|
412
|
+
static readonly queryItemType = "Message" as const;
|
|
413
|
+
readonly queryId = "GetMessagesByIds" as const;
|
|
414
|
+
readonly queryItemType = "Message" as const;
|
|
415
|
+
readonly query: Omit<_GetMessagesByIds, "tx" | "createdAt">;
|
|
416
|
+
declare readonly $res: () => Message[];
|
|
456
417
|
|
|
457
|
-
constructor(args: Omit<
|
|
418
|
+
constructor(args: Omit<_GetMessagesByIds, "tx" | "createdAt">) {
|
|
458
419
|
this.query = args;
|
|
459
420
|
}
|
|
460
421
|
}
|
|
461
422
|
|
|
462
|
-
export class
|
|
463
|
-
static readonly queryId = "
|
|
464
|
-
static readonly queryItemType = "
|
|
465
|
-
readonly queryId = "
|
|
466
|
-
readonly queryItemType = "
|
|
467
|
-
readonly query: Omit<
|
|
468
|
-
declare readonly $res: () =>
|
|
423
|
+
export class GetAllMessages {
|
|
424
|
+
static readonly queryId = "GetAllMessages" as const;
|
|
425
|
+
static readonly queryItemType = "Message" as const;
|
|
426
|
+
readonly queryId = "GetAllMessages" as const;
|
|
427
|
+
readonly queryItemType = "Message" as const;
|
|
428
|
+
readonly query: Omit<_GetAllMessages, "tx" | "createdAt">;
|
|
429
|
+
declare readonly $res: () => Message[];
|
|
469
430
|
|
|
470
|
-
constructor(args: Omit<
|
|
431
|
+
constructor(args: Omit<_GetAllMessages, "tx" | "createdAt">) {
|
|
471
432
|
this.query = args;
|
|
472
433
|
}
|
|
473
434
|
}
|
|
@@ -511,6 +472,45 @@ export class GetAllRooms {
|
|
|
511
472
|
}
|
|
512
473
|
}
|
|
513
474
|
|
|
475
|
+
export class GetSessionNicknamesByQuery {
|
|
476
|
+
static readonly queryId = "GetSessionNicknamesByQuery" as const;
|
|
477
|
+
static readonly queryItemType = "SessionNickname" as const;
|
|
478
|
+
readonly queryId = "GetSessionNicknamesByQuery" as const;
|
|
479
|
+
readonly queryItemType = "SessionNickname" as const;
|
|
480
|
+
readonly query: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">;
|
|
481
|
+
declare readonly $res: () => SessionNickname[];
|
|
482
|
+
|
|
483
|
+
constructor(args: Omit<_GetSessionNicknamesByQuery, "tx" | "createdAt">) {
|
|
484
|
+
this.query = args;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export class GetSessionNicknamesByIds {
|
|
489
|
+
static readonly queryId = "GetSessionNicknamesByIds" as const;
|
|
490
|
+
static readonly queryItemType = "SessionNickname" as const;
|
|
491
|
+
readonly queryId = "GetSessionNicknamesByIds" as const;
|
|
492
|
+
readonly queryItemType = "SessionNickname" as const;
|
|
493
|
+
readonly query: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">;
|
|
494
|
+
declare readonly $res: () => SessionNickname[];
|
|
495
|
+
|
|
496
|
+
constructor(args: Omit<_GetSessionNicknamesByIds, "tx" | "createdAt">) {
|
|
497
|
+
this.query = args;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export class GetAllSessionNicknames {
|
|
502
|
+
static readonly queryId = "GetAllSessionNicknames" as const;
|
|
503
|
+
static readonly queryItemType = "SessionNickname" as const;
|
|
504
|
+
readonly queryId = "GetAllSessionNicknames" as const;
|
|
505
|
+
readonly queryItemType = "SessionNickname" as const;
|
|
506
|
+
readonly query: Omit<_GetAllSessionNicknames, "tx" | "createdAt">;
|
|
507
|
+
declare readonly $res: () => SessionNickname[];
|
|
508
|
+
|
|
509
|
+
constructor(args: Omit<_GetAllSessionNicknames, "tx" | "createdAt">) {
|
|
510
|
+
this.query = args;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
|
|
514
514
|
// View classes
|
|
515
515
|
|
|
516
516
|
// Report classes
|
|
@@ -547,35 +547,35 @@ export class CountAllMessageReads {
|
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
export class
|
|
551
|
-
static readonly reportId = "
|
|
552
|
-
readonly reportId = "
|
|
553
|
-
readonly report: Omit<
|
|
554
|
-
declare readonly $res: () =>
|
|
550
|
+
export class GetRoomMemberById {
|
|
551
|
+
static readonly reportId = "GetRoomMemberById" as const;
|
|
552
|
+
readonly reportId = "GetRoomMemberById" as const;
|
|
553
|
+
readonly report: Omit<_GetRoomMemberById, "tx">;
|
|
554
|
+
declare readonly $res: () => RoomMember | null;
|
|
555
555
|
|
|
556
|
-
constructor(args: Omit<
|
|
556
|
+
constructor(args: Omit<_GetRoomMemberById, "tx">) {
|
|
557
557
|
this.report = args;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
|
|
561
|
-
export class
|
|
562
|
-
static readonly reportId = "
|
|
563
|
-
readonly reportId = "
|
|
564
|
-
readonly report: Omit<
|
|
565
|
-
declare readonly $res: () =>
|
|
561
|
+
export class CountRoomMembers {
|
|
562
|
+
static readonly reportId = "CountRoomMembers" as const;
|
|
563
|
+
readonly reportId = "CountRoomMembers" as const;
|
|
564
|
+
readonly report: Omit<_CountRoomMembers, "tx">;
|
|
565
|
+
declare readonly $res: () => RoomMemberCount;
|
|
566
566
|
|
|
567
|
-
constructor(args: Omit<
|
|
567
|
+
constructor(args: Omit<_CountRoomMembers, "tx">) {
|
|
568
568
|
this.report = args;
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
571
|
|
|
572
|
-
export class
|
|
573
|
-
static readonly reportId = "
|
|
574
|
-
readonly reportId = "
|
|
575
|
-
readonly report: Omit<
|
|
576
|
-
declare readonly $res: () =>
|
|
572
|
+
export class CountAllRoomMembers {
|
|
573
|
+
static readonly reportId = "CountAllRoomMembers" as const;
|
|
574
|
+
readonly reportId = "CountAllRoomMembers" as const;
|
|
575
|
+
readonly report: Omit<_CountAllRoomMembers, "tx">;
|
|
576
|
+
declare readonly $res: () => RoomMemberCount;
|
|
577
577
|
|
|
578
|
-
constructor(args: Omit<
|
|
578
|
+
constructor(args: Omit<_CountAllRoomMembers, "tx">) {
|
|
579
579
|
this.report = args;
|
|
580
580
|
}
|
|
581
581
|
}
|
|
@@ -613,68 +613,35 @@ export class CountAllSessions {
|
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
|
|
616
|
-
export class
|
|
617
|
-
static readonly reportId = "
|
|
618
|
-
readonly reportId = "
|
|
619
|
-
readonly report: Omit<
|
|
620
|
-
declare readonly $res: () =>
|
|
621
|
-
|
|
622
|
-
constructor(args: Omit<_GetSessionNicknameById, "tx">) {
|
|
623
|
-
this.report = args;
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
export class CountSessionNicknames {
|
|
628
|
-
static readonly reportId = "CountSessionNicknames" as const;
|
|
629
|
-
readonly reportId = "CountSessionNicknames" as const;
|
|
630
|
-
readonly report: Omit<_CountSessionNicknames, "tx">;
|
|
631
|
-
declare readonly $res: () => SessionNicknameCount;
|
|
632
|
-
|
|
633
|
-
constructor(args: Omit<_CountSessionNicknames, "tx">) {
|
|
634
|
-
this.report = args;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
export class CountAllSessionNicknames {
|
|
639
|
-
static readonly reportId = "CountAllSessionNicknames" as const;
|
|
640
|
-
readonly reportId = "CountAllSessionNicknames" as const;
|
|
641
|
-
readonly report: Omit<_CountAllSessionNicknames, "tx">;
|
|
642
|
-
declare readonly $res: () => SessionNicknameCount;
|
|
643
|
-
|
|
644
|
-
constructor(args: Omit<_CountAllSessionNicknames, "tx">) {
|
|
645
|
-
this.report = args;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
export class GetRoomMemberById {
|
|
650
|
-
static readonly reportId = "GetRoomMemberById" as const;
|
|
651
|
-
readonly reportId = "GetRoomMemberById" as const;
|
|
652
|
-
readonly report: Omit<_GetRoomMemberById, "tx">;
|
|
653
|
-
declare readonly $res: () => RoomMember | null;
|
|
616
|
+
export class GetMessageById {
|
|
617
|
+
static readonly reportId = "GetMessageById" as const;
|
|
618
|
+
readonly reportId = "GetMessageById" as const;
|
|
619
|
+
readonly report: Omit<_GetMessageById, "tx">;
|
|
620
|
+
declare readonly $res: () => Message | null;
|
|
654
621
|
|
|
655
|
-
constructor(args: Omit<
|
|
622
|
+
constructor(args: Omit<_GetMessageById, "tx">) {
|
|
656
623
|
this.report = args;
|
|
657
624
|
}
|
|
658
625
|
}
|
|
659
626
|
|
|
660
|
-
export class
|
|
661
|
-
static readonly reportId = "
|
|
662
|
-
readonly reportId = "
|
|
663
|
-
readonly report: Omit<
|
|
664
|
-
declare readonly $res: () =>
|
|
665
|
-
|
|
666
|
-
constructor(args: Omit<_CountRoomMembers, "tx">) {
|
|
667
|
-
this.report = args;
|
|
668
|
-
}
|
|
669
|
-
}
|
|
627
|
+
export class CountMessages {
|
|
628
|
+
static readonly reportId = "CountMessages" as const;
|
|
629
|
+
readonly reportId = "CountMessages" as const;
|
|
630
|
+
readonly report: Omit<_CountMessages, "tx">;
|
|
631
|
+
declare readonly $res: () => MessageCount;
|
|
670
632
|
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
declare readonly $res: () => RoomMemberCount;
|
|
633
|
+
constructor(args: Omit<_CountMessages, "tx">) {
|
|
634
|
+
this.report = args;
|
|
635
|
+
}
|
|
636
|
+
}
|
|
676
637
|
|
|
677
|
-
|
|
638
|
+
export class CountAllMessages {
|
|
639
|
+
static readonly reportId = "CountAllMessages" as const;
|
|
640
|
+
readonly reportId = "CountAllMessages" as const;
|
|
641
|
+
readonly report: Omit<_CountAllMessages, "tx">;
|
|
642
|
+
declare readonly $res: () => MessageCount;
|
|
643
|
+
|
|
644
|
+
constructor(args: Omit<_CountAllMessages, "tx">) {
|
|
678
645
|
this.report = args;
|
|
679
646
|
}
|
|
680
647
|
}
|
|
@@ -712,14 +679,47 @@ export class CountAllRooms {
|
|
|
712
679
|
}
|
|
713
680
|
}
|
|
714
681
|
|
|
682
|
+
export class GetSessionNicknameById {
|
|
683
|
+
static readonly reportId = "GetSessionNicknameById" as const;
|
|
684
|
+
readonly reportId = "GetSessionNicknameById" as const;
|
|
685
|
+
readonly report: Omit<_GetSessionNicknameById, "tx">;
|
|
686
|
+
declare readonly $res: () => SessionNickname | null;
|
|
687
|
+
|
|
688
|
+
constructor(args: Omit<_GetSessionNicknameById, "tx">) {
|
|
689
|
+
this.report = args;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
export class CountSessionNicknames {
|
|
694
|
+
static readonly reportId = "CountSessionNicknames" as const;
|
|
695
|
+
readonly reportId = "CountSessionNicknames" as const;
|
|
696
|
+
readonly report: Omit<_CountSessionNicknames, "tx">;
|
|
697
|
+
declare readonly $res: () => SessionNicknameCount;
|
|
698
|
+
|
|
699
|
+
constructor(args: Omit<_CountSessionNicknames, "tx">) {
|
|
700
|
+
this.report = args;
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export class CountAllSessionNicknames {
|
|
705
|
+
static readonly reportId = "CountAllSessionNicknames" as const;
|
|
706
|
+
readonly reportId = "CountAllSessionNicknames" as const;
|
|
707
|
+
readonly report: Omit<_CountAllSessionNicknames, "tx">;
|
|
708
|
+
declare readonly $res: () => SessionNicknameCount;
|
|
709
|
+
|
|
710
|
+
constructor(args: Omit<_CountAllSessionNicknames, "tx">) {
|
|
711
|
+
this.report = args;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
715
|
// Command classes
|
|
716
|
-
export class
|
|
717
|
-
static readonly commandId = "
|
|
718
|
-
readonly commandId = "
|
|
719
|
-
readonly command: Omit<
|
|
720
|
-
declare readonly $res: () =>
|
|
716
|
+
export class SendMessage {
|
|
717
|
+
static readonly commandId = "SendMessage" as const;
|
|
718
|
+
readonly commandId = "SendMessage" as const;
|
|
719
|
+
readonly command: Omit<_SendMessage, "tx" | "createdAt">;
|
|
720
|
+
declare readonly $res: () => SendMessageResult;
|
|
721
721
|
|
|
722
|
-
constructor(args: Omit<
|
|
722
|
+
constructor(args: Omit<_SendMessage, "tx" | "createdAt">) {
|
|
723
723
|
this.command = args;
|
|
724
724
|
}
|
|
725
725
|
}
|
|
@@ -746,90 +746,35 @@ export class DeleteMessageRead {
|
|
|
746
746
|
}
|
|
747
747
|
}
|
|
748
748
|
|
|
749
|
-
export class
|
|
750
|
-
static readonly commandId = "
|
|
751
|
-
readonly commandId = "
|
|
752
|
-
readonly command: Omit<
|
|
753
|
-
declare readonly $res: () =>
|
|
754
|
-
|
|
755
|
-
constructor(args: Omit<_AckMessages, "tx" | "createdAt">) {
|
|
756
|
-
this.command = args;
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
export class ReadMessages {
|
|
761
|
-
static readonly commandId = "ReadMessages" as const;
|
|
762
|
-
readonly commandId = "ReadMessages" as const;
|
|
763
|
-
readonly command: Omit<_ReadMessages, "tx" | "createdAt">;
|
|
764
|
-
declare readonly $res: () => ReadMessagesResult;
|
|
765
|
-
|
|
766
|
-
constructor(args: Omit<_ReadMessages, "tx" | "createdAt">) {
|
|
767
|
-
this.command = args;
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
export class LeaveRoom {
|
|
772
|
-
static readonly commandId = "LeaveRoom" as const;
|
|
773
|
-
readonly commandId = "LeaveRoom" as const;
|
|
774
|
-
readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
|
|
775
|
-
declare readonly $res: () => LeaveRoomResult;
|
|
776
|
-
|
|
777
|
-
constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
|
|
778
|
-
this.command = args;
|
|
779
|
-
}
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
export class JoinRoom {
|
|
783
|
-
static readonly commandId = "JoinRoom" as const;
|
|
784
|
-
readonly commandId = "JoinRoom" as const;
|
|
785
|
-
readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
|
|
786
|
-
declare readonly $res: () => JoinRoomResult;
|
|
787
|
-
|
|
788
|
-
constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
|
|
789
|
-
this.command = args;
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
export class DeleteMessages {
|
|
794
|
-
static readonly commandId = "DeleteMessages" as const;
|
|
795
|
-
readonly commandId = "DeleteMessages" as const;
|
|
796
|
-
readonly command: Omit<_DeleteMessages, "tx" | "createdAt">;
|
|
797
|
-
declare readonly $res: () => DeleteMessagesResult;
|
|
798
|
-
|
|
799
|
-
constructor(args: Omit<_DeleteMessages, "tx" | "createdAt">) {
|
|
800
|
-
this.command = args;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
export class DeleteMessage {
|
|
805
|
-
static readonly commandId = "DeleteMessage" as const;
|
|
806
|
-
readonly commandId = "DeleteMessage" as const;
|
|
807
|
-
readonly command: Omit<_DeleteMessage, "tx" | "createdAt">;
|
|
808
|
-
declare readonly $res: () => DeleteMessageResult;
|
|
749
|
+
export class NotifyChannel {
|
|
750
|
+
static readonly commandId = "NotifyChannel" as const;
|
|
751
|
+
readonly commandId = "NotifyChannel" as const;
|
|
752
|
+
readonly command: Omit<_NotifyChannel, "tx" | "createdAt">;
|
|
753
|
+
declare readonly $res: () => void;
|
|
809
754
|
|
|
810
|
-
constructor(args: Omit<
|
|
755
|
+
constructor(args: Omit<_NotifyChannel, "tx" | "createdAt">) {
|
|
811
756
|
this.command = args;
|
|
812
757
|
}
|
|
813
758
|
}
|
|
814
759
|
|
|
815
|
-
export class
|
|
816
|
-
static readonly commandId = "
|
|
817
|
-
readonly commandId = "
|
|
818
|
-
readonly command: Omit<
|
|
819
|
-
declare readonly $res: () =>
|
|
760
|
+
export class DeleteRoomMembers {
|
|
761
|
+
static readonly commandId = "DeleteRoomMembers" as const;
|
|
762
|
+
readonly commandId = "DeleteRoomMembers" as const;
|
|
763
|
+
readonly command: Omit<_DeleteRoomMembers, "tx" | "createdAt">;
|
|
764
|
+
declare readonly $res: () => DeleteRoomMembersResult;
|
|
820
765
|
|
|
821
|
-
constructor(args: Omit<
|
|
766
|
+
constructor(args: Omit<_DeleteRoomMembers, "tx" | "createdAt">) {
|
|
822
767
|
this.command = args;
|
|
823
768
|
}
|
|
824
769
|
}
|
|
825
770
|
|
|
826
|
-
export class
|
|
827
|
-
static readonly commandId = "
|
|
828
|
-
readonly commandId = "
|
|
829
|
-
readonly command: Omit<
|
|
830
|
-
declare readonly $res: () =>
|
|
771
|
+
export class DeleteRoomMember {
|
|
772
|
+
static readonly commandId = "DeleteRoomMember" as const;
|
|
773
|
+
readonly commandId = "DeleteRoomMember" as const;
|
|
774
|
+
readonly command: Omit<_DeleteRoomMember, "tx" | "createdAt">;
|
|
775
|
+
declare readonly $res: () => DeleteRoomMemberResult;
|
|
831
776
|
|
|
832
|
-
constructor(args: Omit<
|
|
777
|
+
constructor(args: Omit<_DeleteRoomMember, "tx" | "createdAt">) {
|
|
833
778
|
this.command = args;
|
|
834
779
|
}
|
|
835
780
|
}
|
|
@@ -933,46 +878,57 @@ export class SetSessionGitBranch {
|
|
|
933
878
|
}
|
|
934
879
|
}
|
|
935
880
|
|
|
936
|
-
export class
|
|
937
|
-
static readonly commandId = "
|
|
938
|
-
readonly commandId = "
|
|
939
|
-
readonly command: Omit<
|
|
940
|
-
declare readonly $res: () =>
|
|
881
|
+
export class BroadcastMessage {
|
|
882
|
+
static readonly commandId = "BroadcastMessage" as const;
|
|
883
|
+
readonly commandId = "BroadcastMessage" as const;
|
|
884
|
+
readonly command: Omit<_BroadcastMessage, "tx" | "createdAt">;
|
|
885
|
+
declare readonly $res: () => BroadcastMessageResult;
|
|
941
886
|
|
|
942
|
-
constructor(args: Omit<
|
|
887
|
+
constructor(args: Omit<_BroadcastMessage, "tx" | "createdAt">) {
|
|
943
888
|
this.command = args;
|
|
944
889
|
}
|
|
945
890
|
}
|
|
946
891
|
|
|
947
|
-
export class
|
|
948
|
-
static readonly commandId = "
|
|
949
|
-
readonly commandId = "
|
|
950
|
-
readonly command: Omit<
|
|
951
|
-
declare readonly $res: () =>
|
|
892
|
+
export class DeleteMessages {
|
|
893
|
+
static readonly commandId = "DeleteMessages" as const;
|
|
894
|
+
readonly commandId = "DeleteMessages" as const;
|
|
895
|
+
readonly command: Omit<_DeleteMessages, "tx" | "createdAt">;
|
|
896
|
+
declare readonly $res: () => DeleteMessagesResult;
|
|
952
897
|
|
|
953
|
-
constructor(args: Omit<
|
|
898
|
+
constructor(args: Omit<_DeleteMessages, "tx" | "createdAt">) {
|
|
954
899
|
this.command = args;
|
|
955
900
|
}
|
|
956
901
|
}
|
|
957
902
|
|
|
958
|
-
export class
|
|
959
|
-
static readonly commandId = "
|
|
960
|
-
readonly commandId = "
|
|
961
|
-
readonly command: Omit<
|
|
962
|
-
declare readonly $res: () =>
|
|
903
|
+
export class DeleteMessage {
|
|
904
|
+
static readonly commandId = "DeleteMessage" as const;
|
|
905
|
+
readonly commandId = "DeleteMessage" as const;
|
|
906
|
+
readonly command: Omit<_DeleteMessage, "tx" | "createdAt">;
|
|
907
|
+
declare readonly $res: () => DeleteMessageResult;
|
|
963
908
|
|
|
964
|
-
constructor(args: Omit<
|
|
909
|
+
constructor(args: Omit<_DeleteMessage, "tx" | "createdAt">) {
|
|
965
910
|
this.command = args;
|
|
966
911
|
}
|
|
967
912
|
}
|
|
968
913
|
|
|
969
|
-
export class
|
|
970
|
-
static readonly commandId = "
|
|
971
|
-
readonly commandId = "
|
|
972
|
-
readonly command: Omit<
|
|
973
|
-
declare readonly $res: () =>
|
|
914
|
+
export class LeaveRoom {
|
|
915
|
+
static readonly commandId = "LeaveRoom" as const;
|
|
916
|
+
readonly commandId = "LeaveRoom" as const;
|
|
917
|
+
readonly command: Omit<_LeaveRoom, "tx" | "createdAt">;
|
|
918
|
+
declare readonly $res: () => LeaveRoomResult;
|
|
974
919
|
|
|
975
|
-
constructor(args: Omit<
|
|
920
|
+
constructor(args: Omit<_LeaveRoom, "tx" | "createdAt">) {
|
|
921
|
+
this.command = args;
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export class JoinRoom {
|
|
926
|
+
static readonly commandId = "JoinRoom" as const;
|
|
927
|
+
readonly commandId = "JoinRoom" as const;
|
|
928
|
+
readonly command: Omit<_JoinRoom, "tx" | "createdAt">;
|
|
929
|
+
declare readonly $res: () => JoinRoomResult;
|
|
930
|
+
|
|
931
|
+
constructor(args: Omit<_JoinRoom, "tx" | "createdAt">) {
|
|
976
932
|
this.command = args;
|
|
977
933
|
}
|
|
978
934
|
}
|
|
@@ -1021,14 +977,58 @@ export class SetRoomDescription {
|
|
|
1021
977
|
}
|
|
1022
978
|
}
|
|
1023
979
|
|
|
980
|
+
export class DeleteSessionNicknames {
|
|
981
|
+
static readonly commandId = "DeleteSessionNicknames" as const;
|
|
982
|
+
readonly commandId = "DeleteSessionNicknames" as const;
|
|
983
|
+
readonly command: Omit<_DeleteSessionNicknames, "tx" | "createdAt">;
|
|
984
|
+
declare readonly $res: () => DeleteSessionNicknamesResult;
|
|
985
|
+
|
|
986
|
+
constructor(args: Omit<_DeleteSessionNicknames, "tx" | "createdAt">) {
|
|
987
|
+
this.command = args;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
export class DeleteSessionNickname {
|
|
992
|
+
static readonly commandId = "DeleteSessionNickname" as const;
|
|
993
|
+
readonly commandId = "DeleteSessionNickname" as const;
|
|
994
|
+
readonly command: Omit<_DeleteSessionNickname, "tx" | "createdAt">;
|
|
995
|
+
declare readonly $res: () => DeleteSessionNicknameResult;
|
|
996
|
+
|
|
997
|
+
constructor(args: Omit<_DeleteSessionNickname, "tx" | "createdAt">) {
|
|
998
|
+
this.command = args;
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
export class ReadMessages {
|
|
1003
|
+
static readonly commandId = "ReadMessages" as const;
|
|
1004
|
+
readonly commandId = "ReadMessages" as const;
|
|
1005
|
+
readonly command: Omit<_ReadMessages, "tx" | "createdAt">;
|
|
1006
|
+
declare readonly $res: () => ReadMessagesResult;
|
|
1007
|
+
|
|
1008
|
+
constructor(args: Omit<_ReadMessages, "tx" | "createdAt">) {
|
|
1009
|
+
this.command = args;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
export class AckMessages {
|
|
1014
|
+
static readonly commandId = "AckMessages" as const;
|
|
1015
|
+
readonly commandId = "AckMessages" as const;
|
|
1016
|
+
readonly command: Omit<_AckMessages, "tx" | "createdAt">;
|
|
1017
|
+
declare readonly $res: () => AckMessagesResult;
|
|
1018
|
+
|
|
1019
|
+
constructor(args: Omit<_AckMessages, "tx" | "createdAt">) {
|
|
1020
|
+
this.command = args;
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
1024
|
// Item constructors
|
|
1025
1025
|
export const items = {
|
|
1026
1026
|
MessageRead: (args: MessageRead) => ({ item: args, itemType: "MessageRead" }),
|
|
1027
|
-
Message: (args: Message) => ({ item: args, itemType: "Message" }),
|
|
1028
|
-
Session: (args: Session) => ({ item: args, itemType: "Session" }),
|
|
1029
|
-
SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
|
|
1030
1027
|
RoomMember: (args: RoomMember) => ({ item: args, itemType: "RoomMember" }),
|
|
1028
|
+
Session: (args: Session) => ({ item: args, itemType: "Session" }),
|
|
1029
|
+
Message: (args: Message) => ({ item: args, itemType: "Message" }),
|
|
1031
1030
|
Room: (args: Room) => ({ item: args, itemType: "Room" }),
|
|
1031
|
+
SessionNickname: (args: SessionNickname) => ({ item: args, itemType: "SessionNickname" }),
|
|
1032
1032
|
};
|
|
1033
1033
|
|
|
1034
1034
|
// Message events
|
package/src/index.ts
CHANGED
|
@@ -72,7 +72,14 @@ async function init(pi: ExtensionAPI) {
|
|
|
72
72
|
|
|
73
73
|
let daemon: MarshalDaemon | undefined;
|
|
74
74
|
let sessionId: string | undefined;
|
|
75
|
-
let sessionCtx: {
|
|
75
|
+
let sessionCtx: {
|
|
76
|
+
hasUI?: boolean;
|
|
77
|
+
ui: {
|
|
78
|
+
notify(m: string, v?: string): void;
|
|
79
|
+
setStatus(k: string, v: string): void;
|
|
80
|
+
setWidget(k: string, content: string[], options?: { placement?: "aboveEditor" | "belowEditor" }): void;
|
|
81
|
+
};
|
|
82
|
+
} | undefined;
|
|
76
83
|
|
|
77
84
|
// ── Inbound live push ──────────────────────────────────────────────────
|
|
78
85
|
|
|
@@ -124,12 +131,18 @@ async function init(pi: ExtensionAPI) {
|
|
|
124
131
|
|
|
125
132
|
function footerText(): string {
|
|
126
133
|
const nick = daemon?.isConnected() ? daemon?.currentNickname() : undefined;
|
|
127
|
-
const label = nick ?? "offline"
|
|
134
|
+
const label = `marshal:${nick ?? "offline"}`;
|
|
128
135
|
return currentStatus ? `${label} ${currentStatus}` : label;
|
|
129
136
|
}
|
|
130
137
|
|
|
131
138
|
function refreshFooter() {
|
|
132
|
-
if (sessionCtx)
|
|
139
|
+
if (!sessionCtx) return;
|
|
140
|
+
const text = footerText();
|
|
141
|
+
sessionCtx.ui.setStatus("marshal", text);
|
|
142
|
+
// Prime Agent's daemon-backed default footer is intentionally empty and
|
|
143
|
+
// does not render setStatus() entries. Mirror the text into a serializable
|
|
144
|
+
// below-editor widget so it remains visible in the normal TUI.
|
|
145
|
+
sessionCtx.ui.setWidget("marshal-statusline", [text], { placement: "belowEditor" });
|
|
133
146
|
}
|
|
134
147
|
|
|
135
148
|
let agentActive = false;
|