@pmate/cli 0.28.8 → 0.29.1

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
@@ -24,6 +24,9 @@ declare enum Command {
24
24
  ChatRoom = "chat-room",
25
25
  Agent = "agent",
26
26
  Runner = "runner",
27
+ Function = "function",
28
+ Worker = "worker",
29
+ Call = "call",
27
30
  Ns = "ns",
28
31
  Role = "role",
29
32
  Account = "account",
@@ -803,6 +806,54 @@ type RunnerCommandArgs = {
803
806
  baseUrl?: string;
804
807
  json: boolean;
805
808
  };
809
+ type RegistryResourceCommandArgs<T extends Command.Function | Command.Worker> = {
810
+ type: T;
811
+ action: "list";
812
+ namespace?: string;
813
+ baseUrl?: string;
814
+ json: boolean;
815
+ } | {
816
+ type: T;
817
+ action: "get" | "view";
818
+ namespace: string;
819
+ name: string;
820
+ baseUrl?: string;
821
+ json: boolean;
822
+ } | {
823
+ type: T;
824
+ action: "create";
825
+ namespace: string;
826
+ filePath: string;
827
+ baseUrl?: string;
828
+ json: boolean;
829
+ } | {
830
+ type: T;
831
+ action: "update";
832
+ namespace: string;
833
+ name: string;
834
+ filePath: string;
835
+ baseUrl?: string;
836
+ json: boolean;
837
+ } | {
838
+ type: T;
839
+ action: "delete";
840
+ namespace: string;
841
+ name: string;
842
+ baseUrl?: string;
843
+ json: boolean;
844
+ };
845
+ type FunctionCommandArgs = RegistryResourceCommandArgs<Command.Function>;
846
+ type WorkerCommandArgs = RegistryResourceCommandArgs<Command.Worker>;
847
+ type CallCommandArgs = {
848
+ type: Command.Call;
849
+ namespace: string;
850
+ name: string;
851
+ payload?: Record<string, unknown>;
852
+ filePath?: string;
853
+ hubBaseUrl?: string;
854
+ timeoutMs?: number;
855
+ json: boolean;
856
+ };
806
857
  type NsCommandArgs = {
807
858
  type: Command.Ns;
808
859
  action: "list";
@@ -1185,7 +1236,7 @@ type VercelDeploysCommandArgs = {
1185
1236
  lastWeek: boolean;
1186
1237
  };
1187
1238
  type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
1188
- type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | ChatRoomCommandArgs | AgentCommandArgs | RunnerCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | OrgCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs | HostCommandArgs;
1239
+ type CommandArgs = NoneCommandArgs | ListCommandArgs | LoginCommandArgs | AddDnsCommandArgs | StsCommandArgs | BucketCommandArgs | DeployCommandArgs | LogCommandArgs | InitCommandArgs | DeleteCommandArgs | DevCommandArgs | EnvCommandArgs | PrCommandArgs | CommitCommandArgs | SummaryCommandArgs | QuizCommandArgs | ServiceCommandArgs | LinearCommandArgs | NotionCommandArgs | OssCommandArgs | QrcodeCommandArgs | RandomCommandArgs | CollectCommandArgs | ChatRoomCommandArgs | AgentCommandArgs | RunnerCommandArgs | FunctionCommandArgs | WorkerCommandArgs | CallCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | OrgCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs | HostCommandArgs;
1189
1240
 
1190
1241
  interface ParsedArgs {
1191
1242
  help: boolean;