@pmate/cli 0.21.0 → 0.21.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.
Files changed (3) hide show
  1. package/dist/index.d.ts +68 -5
  2. package/dist/index.js +1041 -413
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -22,6 +22,7 @@ declare enum Command {
22
22
  Random = "random",
23
23
  Collect = "collect",
24
24
  Agent = "agent",
25
+ Runner = "runner",
25
26
  Ns = "ns",
26
27
  Role = "role",
27
28
  Account = "account",
@@ -373,10 +374,9 @@ type RandomEasyCommandArgs = {
373
374
  type RandomCommandArgs = RandomTokenCommandArgs | RandomEasyCommandArgs;
374
375
  type CollectCommandArgs = {
375
376
  type: Command.Collect;
376
- endpoint: string;
377
- json: boolean;
378
- mode: "list" | "thread";
379
- threadName?: string;
377
+ action: "sync";
378
+ source?: "cc" | "yelling";
379
+ endpoint?: string;
380
380
  };
381
381
  type AgentCommandArgs = {
382
382
  type: Command.Agent;
@@ -437,6 +437,51 @@ type AgentCommandArgs = {
437
437
  toName: string;
438
438
  baseUrl?: string;
439
439
  json: boolean;
440
+ } | {
441
+ type: Command.Agent;
442
+ action: "move";
443
+ namespace: string;
444
+ fromName: string;
445
+ targetNamespace: string;
446
+ toName?: string;
447
+ baseUrl?: string;
448
+ json: boolean;
449
+ };
450
+ type RunnerCommandArgs = {
451
+ type: Command.Runner;
452
+ action: "list";
453
+ namespace?: string;
454
+ baseUrl?: string;
455
+ json: boolean;
456
+ } | {
457
+ type: Command.Runner;
458
+ action: "get" | "view";
459
+ namespace: string;
460
+ name: string;
461
+ baseUrl?: string;
462
+ json: boolean;
463
+ } | {
464
+ type: Command.Runner;
465
+ action: "create";
466
+ namespace: string;
467
+ filePath: string;
468
+ baseUrl?: string;
469
+ json: boolean;
470
+ } | {
471
+ type: Command.Runner;
472
+ action: "update";
473
+ namespace: string;
474
+ name: string;
475
+ filePath: string;
476
+ baseUrl?: string;
477
+ json: boolean;
478
+ } | {
479
+ type: Command.Runner;
480
+ action: "delete";
481
+ namespace: string;
482
+ name: string;
483
+ baseUrl?: string;
484
+ json: boolean;
440
485
  };
441
486
  type NsCommandArgs = {
442
487
  type: Command.Ns;
@@ -548,6 +593,15 @@ type AppCommandArgs = {
548
593
  toId: string;
549
594
  baseUrl?: string;
550
595
  json: boolean;
596
+ } | {
597
+ type: Command.App;
598
+ action: "move";
599
+ namespace: string;
600
+ fromId: string;
601
+ targetNamespace: string;
602
+ toId?: string;
603
+ baseUrl?: string;
604
+ json: boolean;
551
605
  };
552
606
  type ServiceCommandArgs = {
553
607
  type: Command.Service;
@@ -586,6 +640,15 @@ type ServiceCommandArgs = {
586
640
  toName: string;
587
641
  baseUrl?: string;
588
642
  json: boolean;
643
+ } | {
644
+ type: Command.Service;
645
+ action: "move";
646
+ namespace: string;
647
+ fromName: string;
648
+ targetNamespace: string;
649
+ toName?: string;
650
+ baseUrl?: string;
651
+ json: boolean;
589
652
  } | {
590
653
  type: Command.Service;
591
654
  action: "deploy";
@@ -627,7 +690,7 @@ type VercelDeploysCommandArgs = {
627
690
  lastWeek: boolean;
628
691
  };
629
692
  type VercelCommandArgs = VercelProjectsCommandArgs | VercelDeploysCommandArgs;
630
- 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 | AgentCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
693
+ 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 | AgentCommandArgs | RunnerCommandArgs | NsCommandArgs | RoleCommandArgs | AccountCommandArgs | StoreCommandArgs | AppCommandArgs | VercelCommandArgs;
631
694
 
632
695
  interface ParsedArgs {
633
696
  help: boolean;