@pmate/cli 0.24.9 → 0.24.10

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 CHANGED
@@ -22,6 +22,7 @@ declare enum Command {
22
22
  Qrcode = "qrcode",
23
23
  Random = "random",
24
24
  Collect = "collect",
25
+ ChatRoom = "chat-room",
25
26
  Agent = "agent",
26
27
  Runner = "runner",
27
28
  Ns = "ns",
@@ -556,6 +557,47 @@ type CollectCommandArgs = {
556
557
  source?: "cc" | "yelling";
557
558
  endpoint?: string;
558
559
  };
560
+ type ChatRoomCommonArgs = {
561
+ type: Command.ChatRoom;
562
+ bot: string;
563
+ app: string;
564
+ hubUrl?: string;
565
+ authBaseUrl?: string;
566
+ };
567
+ type ChatRoomCommandArgs = (ChatRoomCommonArgs & {
568
+ action: "join";
569
+ }) | (ChatRoomCommonArgs & {
570
+ action: "request-friend";
571
+ to: string;
572
+ message?: string;
573
+ }) | (ChatRoomCommonArgs & {
574
+ action: "accept-friend";
575
+ to: string;
576
+ requestId?: string;
577
+ message?: string;
578
+ }) | (ChatRoomCommonArgs & {
579
+ action: "send";
580
+ to: string;
581
+ text: string;
582
+ }) | (ChatRoomCommonArgs & {
583
+ action: "group-create";
584
+ groupId: string;
585
+ members: string[];
586
+ title?: string;
587
+ }) | (ChatRoomCommonArgs & {
588
+ action: "group-send";
589
+ groupId: string;
590
+ text: string;
591
+ recipients?: string[];
592
+ }) | {
593
+ type: Command.ChatRoom;
594
+ action: "smoke";
595
+ botA: string;
596
+ botB: string;
597
+ app: string;
598
+ hubUrl?: string;
599
+ authBaseUrl?: string;
600
+ };
559
601
  type AgentCommandArgs = {
560
602
  type: Command.Agent;
561
603
  action: "list";
@@ -960,7 +1002,7 @@ type VercelDeploysCommandArgs = {
960
1002
  lastWeek: boolean;
961
1003
  };
962
1004
  type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
963
- type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | PrepareDevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | AgentCommandArgs | RunnerCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | OrgCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
1005
+ type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | PrepareDevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | ChatRoomCommandArgs | AgentCommandArgs | RunnerCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | OrgCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
964
1006
 
965
1007
  interface ParsedArgs {
966
1008
  help: boolean;