@copado/agentia-cli 0.21.0-alpha.0 → 0.23.0-alpha.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.
Files changed (51) hide show
  1. package/README.md +134 -138
  2. package/dist/commands/job/get.d.ts +0 -4
  3. package/dist/commands/job/get.js +3 -6
  4. package/dist/commands/job/get.js.map +1 -1
  5. package/dist/commands/job/kill.d.ts +0 -4
  6. package/dist/commands/job/kill.js +3 -6
  7. package/dist/commands/job/kill.js.map +1 -1
  8. package/dist/commands/job/list.d.ts +1 -2
  9. package/dist/commands/job/list.js +16 -7
  10. package/dist/commands/job/list.js.map +1 -1
  11. package/dist/commands/job/log/get.d.ts +18 -0
  12. package/dist/commands/job/log/get.js +48 -0
  13. package/dist/commands/job/log/get.js.map +1 -0
  14. package/dist/commands/job/pause.d.ts +0 -4
  15. package/dist/commands/job/pause.js +3 -6
  16. package/dist/commands/job/pause.js.map +1 -1
  17. package/dist/commands/job/resume.d.ts +0 -4
  18. package/dist/commands/job/resume.js +3 -6
  19. package/dist/commands/job/resume.js.map +1 -1
  20. package/dist/commands/job/run.d.ts +0 -2
  21. package/dist/commands/job/run.js +2 -5
  22. package/dist/commands/job/run.js.map +1 -1
  23. package/dist/commands/metadata/refresh/deleted.d.ts +0 -2
  24. package/dist/commands/metadata/refresh/deleted.js +2 -5
  25. package/dist/commands/metadata/refresh/deleted.js.map +1 -1
  26. package/dist/commands/metadata/refresh/run.d.ts +0 -2
  27. package/dist/commands/metadata/refresh/run.js +2 -5
  28. package/dist/commands/metadata/refresh/run.js.map +1 -1
  29. package/dist/commands/metadata/refresh/status.d.ts +0 -2
  30. package/dist/commands/metadata/refresh/status.js +2 -5
  31. package/dist/commands/metadata/refresh/status.js.map +1 -1
  32. package/dist/commands/pipeline/connection/list.d.ts +0 -2
  33. package/dist/commands/pipeline/connection/list.js +3 -5
  34. package/dist/commands/pipeline/connection/list.js.map +1 -1
  35. package/dist/commands/pipeline/get.d.ts +0 -4
  36. package/dist/commands/pipeline/get.js +3 -6
  37. package/dist/commands/pipeline/get.js.map +1 -1
  38. package/dist/commands/pipeline/list.d.ts +0 -4
  39. package/dist/commands/pipeline/list.js +3 -6
  40. package/dist/commands/pipeline/list.js.map +1 -1
  41. package/dist/lib/job-types.d.ts +7 -0
  42. package/dist/lib/job-types.js +44 -0
  43. package/dist/lib/job-types.js.map +1 -1
  44. package/dist/lib/mcp/tools.d.ts +5 -9
  45. package/dist/lib/mcp/tools.js +3 -33
  46. package/dist/lib/mcp/tools.js.map +1 -1
  47. package/oclif.manifest.json +158 -272
  48. package/package.json +1 -1
  49. package/dist/lib/pipeline-flags.d.ts +0 -10
  50. package/dist/lib/pipeline-flags.js +0 -19
  51. package/dist/lib/pipeline-flags.js.map +0 -1
@@ -475,8 +475,8 @@
475
475
  },
476
476
  "description": "Get a Copado job execution with ordered steps",
477
477
  "examples": [
478
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id>",
479
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id> --json"
478
+ "<%= config.bin %> <%= command.id %> <job-id>",
479
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
480
480
  ],
481
481
  "flags": {
482
482
  "json": {
@@ -485,20 +485,6 @@
485
485
  "name": "json",
486
486
  "allowNo": false,
487
487
  "type": "boolean"
488
- },
489
- "organization-id": {
490
- "description": "Organization Id for the x-organization-id gateway header",
491
- "name": "organization-id",
492
- "hasDynamicHelp": false,
493
- "multiple": false,
494
- "type": "option"
495
- },
496
- "user-id": {
497
- "description": "User Id for the x-user-id gateway header",
498
- "name": "user-id",
499
- "hasDynamicHelp": false,
500
- "multiple": false,
501
- "type": "option"
502
488
  }
503
489
  },
504
490
  "hasDynamicHelp": false,
@@ -528,8 +514,8 @@
528
514
  },
529
515
  "description": "Cancel a Copado job execution",
530
516
  "examples": [
531
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id>",
532
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id> --json"
517
+ "<%= config.bin %> <%= command.id %> <job-id>",
518
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
533
519
  ],
534
520
  "flags": {
535
521
  "json": {
@@ -538,20 +524,6 @@
538
524
  "name": "json",
539
525
  "allowNo": false,
540
526
  "type": "boolean"
541
- },
542
- "organization-id": {
543
- "description": "Organization Id for the x-organization-id gateway header",
544
- "name": "organization-id",
545
- "hasDynamicHelp": false,
546
- "multiple": false,
547
- "type": "option"
548
- },
549
- "user-id": {
550
- "description": "User Id for the x-user-id gateway header",
551
- "name": "user-id",
552
- "hasDynamicHelp": false,
553
- "multiple": false,
554
- "type": "option"
555
527
  }
556
528
  },
557
529
  "hasDynamicHelp": false,
@@ -575,10 +547,10 @@
575
547
  "args": {},
576
548
  "description": "List Copado job executions",
577
549
  "examples": [
578
- "<%= config.bin %> <%= command.id %> --user-id <id> --organization-id <id>",
579
- "<%= config.bin %> <%= command.id %> --user-id <id> --organization-id <id> --status \"In Progress\" --limit 50",
580
- "<%= config.bin %> <%= command.id %> --user-id <id> --organization-id <id> --name JE- --type Deploy --parent <parent-id>",
581
- "<%= config.bin %> <%= command.id %> --user-id <id> --organization-id <id> --json"
550
+ "<%= config.bin %> <%= command.id %>",
551
+ "<%= config.bin %> <%= command.id %> --status \"In Progress\" --limit 50",
552
+ "<%= config.bin %> <%= command.id %> --name JE- --type Deploy --parent <parent-id>",
553
+ "<%= config.bin %> <%= command.id %> --json"
582
554
  ],
583
555
  "flags": {
584
556
  "json": {
@@ -588,20 +560,6 @@
588
560
  "allowNo": false,
589
561
  "type": "boolean"
590
562
  },
591
- "organization-id": {
592
- "description": "Organization Id for the x-organization-id gateway header",
593
- "name": "organization-id",
594
- "hasDynamicHelp": false,
595
- "multiple": false,
596
- "type": "option"
597
- },
598
- "user-id": {
599
- "description": "User Id for the x-user-id gateway header",
600
- "name": "user-id",
601
- "hasDynamicHelp": false,
602
- "multiple": false,
603
- "type": "option"
604
- },
605
563
  "context": {
606
564
  "description": "Contains match on JobExecution context",
607
565
  "name": "context",
@@ -623,6 +581,12 @@
623
581
  "multiple": false,
624
582
  "type": "option"
625
583
  },
584
+ "mine": {
585
+ "description": "List only jobs owned by the current user",
586
+ "name": "mine",
587
+ "allowNo": false,
588
+ "type": "boolean"
589
+ },
626
590
  "name": {
627
591
  "description": "Contains match on JobExecution name",
628
592
  "name": "name",
@@ -679,8 +643,8 @@
679
643
  },
680
644
  "description": "Pause a Copado job execution (resumable cancel alias)",
681
645
  "examples": [
682
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id>",
683
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id> --json"
646
+ "<%= config.bin %> <%= command.id %> <job-id>",
647
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
684
648
  ],
685
649
  "flags": {
686
650
  "json": {
@@ -689,20 +653,6 @@
689
653
  "name": "json",
690
654
  "allowNo": false,
691
655
  "type": "boolean"
692
- },
693
- "organization-id": {
694
- "description": "Organization Id for the x-organization-id gateway header",
695
- "name": "organization-id",
696
- "hasDynamicHelp": false,
697
- "multiple": false,
698
- "type": "option"
699
- },
700
- "user-id": {
701
- "description": "User Id for the x-user-id gateway header",
702
- "name": "user-id",
703
- "hasDynamicHelp": false,
704
- "multiple": false,
705
- "type": "option"
706
656
  }
707
657
  },
708
658
  "hasDynamicHelp": false,
@@ -732,8 +682,8 @@
732
682
  },
733
683
  "description": "Resume outstanding steps for a Copado job execution",
734
684
  "examples": [
735
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id>",
736
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id> --json"
685
+ "<%= config.bin %> <%= command.id %> <job-id>",
686
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
737
687
  ],
738
688
  "flags": {
739
689
  "json": {
@@ -742,20 +692,6 @@
742
692
  "name": "json",
743
693
  "allowNo": false,
744
694
  "type": "boolean"
745
- },
746
- "organization-id": {
747
- "description": "Organization Id for the x-organization-id gateway header",
748
- "name": "organization-id",
749
- "hasDynamicHelp": false,
750
- "multiple": false,
751
- "type": "option"
752
- },
753
- "user-id": {
754
- "description": "User Id for the x-user-id gateway header",
755
- "name": "user-id",
756
- "hasDynamicHelp": false,
757
- "multiple": false,
758
- "type": "option"
759
695
  }
760
696
  },
761
697
  "hasDynamicHelp": false,
@@ -785,8 +721,8 @@
785
721
  },
786
722
  "description": "Run all steps for a Copado job execution",
787
723
  "examples": [
788
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id>",
789
- "<%= config.bin %> <%= command.id %> <job-id> --user-id <id> --organization-id <id> --restart --json"
724
+ "<%= config.bin %> <%= command.id %> <job-id>",
725
+ "<%= config.bin %> <%= command.id %> <job-id> --restart --json"
790
726
  ],
791
727
  "flags": {
792
728
  "json": {
@@ -796,20 +732,6 @@
796
732
  "allowNo": false,
797
733
  "type": "boolean"
798
734
  },
799
- "organization-id": {
800
- "description": "Organization Id for the x-organization-id gateway header",
801
- "name": "organization-id",
802
- "hasDynamicHelp": false,
803
- "multiple": false,
804
- "type": "option"
805
- },
806
- "user-id": {
807
- "description": "User Id for the x-user-id gateway header",
808
- "name": "user-id",
809
- "hasDynamicHelp": false,
810
- "multiple": false,
811
- "type": "option"
812
- },
813
735
  "restart": {
814
736
  "description": "Restart the job run (gateway compatibility flag)",
815
737
  "name": "restart",
@@ -1022,8 +944,8 @@
1022
944
  },
1023
945
  "description": "Get a Copado pipeline",
1024
946
  "examples": [
1025
- "<%= config.bin %> <%= command.id %> <pipeline-id> --user-id <id> --organization-id <id>",
1026
- "<%= config.bin %> <%= command.id %> <pipeline-id> --user-id <id> --organization-id <id> --json"
947
+ "<%= config.bin %> <%= command.id %> <pipeline-id>",
948
+ "<%= config.bin %> <%= command.id %> <pipeline-id> --json"
1027
949
  ],
1028
950
  "flags": {
1029
951
  "json": {
@@ -1032,20 +954,6 @@
1032
954
  "name": "json",
1033
955
  "allowNo": false,
1034
956
  "type": "boolean"
1035
- },
1036
- "organization-id": {
1037
- "description": "Organization Id for the x-organization-id gateway header",
1038
- "name": "organization-id",
1039
- "hasDynamicHelp": false,
1040
- "multiple": false,
1041
- "type": "option"
1042
- },
1043
- "user-id": {
1044
- "description": "User Id for the x-user-id gateway header",
1045
- "name": "user-id",
1046
- "hasDynamicHelp": false,
1047
- "multiple": false,
1048
- "type": "option"
1049
957
  }
1050
958
  },
1051
959
  "hasDynamicHelp": false,
@@ -1069,8 +977,8 @@
1069
977
  "args": {},
1070
978
  "description": "List Copado pipelines",
1071
979
  "examples": [
1072
- "<%= config.bin %> <%= command.id %> --user-id <id> --organization-id <id>",
1073
- "<%= config.bin %> <%= command.id %> --user-id <id> --organization-id <id> --json"
980
+ "<%= config.bin %> <%= command.id %>",
981
+ "<%= config.bin %> <%= command.id %> --json"
1074
982
  ],
1075
983
  "flags": {
1076
984
  "json": {
@@ -1079,20 +987,6 @@
1079
987
  "name": "json",
1080
988
  "allowNo": false,
1081
989
  "type": "boolean"
1082
- },
1083
- "organization-id": {
1084
- "description": "Organization Id for the x-organization-id gateway header",
1085
- "name": "organization-id",
1086
- "hasDynamicHelp": false,
1087
- "multiple": false,
1088
- "type": "option"
1089
- },
1090
- "user-id": {
1091
- "description": "User Id for the x-user-id gateway header",
1092
- "name": "user-id",
1093
- "hasDynamicHelp": false,
1094
- "multiple": false,
1095
- "type": "option"
1096
990
  }
1097
991
  },
1098
992
  "hasDynamicHelp": false,
@@ -2270,6 +2164,54 @@
2270
2164
  "status.js"
2271
2165
  ]
2272
2166
  },
2167
+ "job:log:get": {
2168
+ "aliases": [],
2169
+ "args": {
2170
+ "id": {
2171
+ "description": "JobExecution Id",
2172
+ "name": "id",
2173
+ "required": true
2174
+ }
2175
+ },
2176
+ "description": "Get log output for a Copado job execution step",
2177
+ "examples": [
2178
+ "<%= config.bin %> <%= command.id %> <job-id>",
2179
+ "<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
2180
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
2181
+ ],
2182
+ "flags": {
2183
+ "json": {
2184
+ "description": "Format output as json.",
2185
+ "helpGroup": "GLOBAL",
2186
+ "name": "json",
2187
+ "allowNo": false,
2188
+ "type": "boolean"
2189
+ },
2190
+ "step": {
2191
+ "description": "Job step Id (defaults to the first step with a result Id)",
2192
+ "name": "step",
2193
+ "hasDynamicHelp": false,
2194
+ "multiple": false,
2195
+ "type": "option"
2196
+ }
2197
+ },
2198
+ "hasDynamicHelp": false,
2199
+ "hiddenAliases": [],
2200
+ "id": "job:log:get",
2201
+ "pluginAlias": "@copado/agentia-cli",
2202
+ "pluginName": "@copado/agentia-cli",
2203
+ "pluginType": "core",
2204
+ "strict": true,
2205
+ "enableJsonFlag": true,
2206
+ "isESM": true,
2207
+ "relativePath": [
2208
+ "dist",
2209
+ "commands",
2210
+ "job",
2211
+ "log",
2212
+ "get.js"
2213
+ ]
2214
+ },
2273
2215
  "metadata:content:compare": {
2274
2216
  "aliases": [],
2275
2217
  "args": {},
@@ -2532,89 +2474,6 @@
2532
2474
  "get.js"
2533
2475
  ]
2534
2476
  },
2535
- "metadata:index:compare": {
2536
- "aliases": [],
2537
- "args": {},
2538
- "description": "Compare metadata between orgs or Git branches",
2539
- "examples": [
2540
- "<%= config.bin %> <%= command.id %> --comparison-mode BRANCH_COMPARE --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
2541
- "<%= config.bin %> <%= command.id %> --comparison-mode INDEX_FILE --filter-type ApexClass --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
2542
- "<%= config.bin %> <%= command.id %> --comparison-mode MIX --json"
2543
- ],
2544
- "flags": {
2545
- "json": {
2546
- "description": "Format output as json.",
2547
- "helpGroup": "GLOBAL",
2548
- "name": "json",
2549
- "allowNo": false,
2550
- "type": "boolean"
2551
- },
2552
- "comparison-mode": {
2553
- "description": "Comparison mode",
2554
- "name": "comparison-mode",
2555
- "default": "BRANCH_COMPARE",
2556
- "hasDynamicHelp": false,
2557
- "multiple": false,
2558
- "options": [
2559
- "BRANCH_COMPARE",
2560
- "INDEX_FILE",
2561
- "MIX"
2562
- ],
2563
- "type": "option"
2564
- },
2565
- "filter-type": {
2566
- "description": "Optional metadata type filter, for example ApexClass",
2567
- "name": "filter-type",
2568
- "hasDynamicHelp": false,
2569
- "multiple": false,
2570
- "type": "option"
2571
- },
2572
- "pipeline-id": {
2573
- "description": "Pipeline Id",
2574
- "name": "pipeline-id",
2575
- "hasDynamicHelp": false,
2576
- "multiple": false,
2577
- "type": "option"
2578
- },
2579
- "source-credential-id": {
2580
- "description": "Source org credential Id",
2581
- "name": "source-credential-id",
2582
- "hasDynamicHelp": false,
2583
- "multiple": false,
2584
- "type": "option"
2585
- },
2586
- "source-org-id": {
2587
- "description": "Source org Id",
2588
- "name": "source-org-id",
2589
- "hasDynamicHelp": false,
2590
- "multiple": false,
2591
- "type": "option"
2592
- },
2593
- "target-org-id": {
2594
- "description": "Target org Id",
2595
- "name": "target-org-id",
2596
- "hasDynamicHelp": false,
2597
- "multiple": false,
2598
- "type": "option"
2599
- }
2600
- },
2601
- "hasDynamicHelp": false,
2602
- "hiddenAliases": [],
2603
- "id": "metadata:index:compare",
2604
- "pluginAlias": "@copado/agentia-cli",
2605
- "pluginName": "@copado/agentia-cli",
2606
- "pluginType": "core",
2607
- "strict": true,
2608
- "enableJsonFlag": true,
2609
- "isESM": true,
2610
- "relativePath": [
2611
- "dist",
2612
- "commands",
2613
- "metadata",
2614
- "index",
2615
- "compare.js"
2616
- ]
2617
- },
2618
2477
  "metadata:dependency:list": {
2619
2478
  "aliases": [],
2620
2479
  "args": {},
@@ -2777,13 +2636,14 @@
2777
2636
  "list.js"
2778
2637
  ]
2779
2638
  },
2780
- "metadata:refresh:deleted": {
2639
+ "metadata:index:compare": {
2781
2640
  "aliases": [],
2782
2641
  "args": {},
2783
- "description": "Refresh the deleted metadata index via the CICD gateway",
2642
+ "description": "Compare metadata between orgs or Git branches",
2784
2643
  "examples": [
2785
- "<%= config.bin %> <%= command.id %> --env <environment-id> --user-id <id> --organization-id <id>",
2786
- "<%= config.bin %> <%= command.id %> --env <environment-id> --user-id <id> --organization-id <id> --module-type vlocity --json"
2644
+ "<%= config.bin %> <%= command.id %> --comparison-mode BRANCH_COMPARE --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
2645
+ "<%= config.bin %> <%= command.id %> --comparison-mode INDEX_FILE --filter-type ApexClass --pipeline-id <id> --source-org-id <id> --source-credential-id <id> --target-org-id <id>",
2646
+ "<%= config.bin %> <%= command.id %> --comparison-mode MIX --json"
2787
2647
  ],
2788
2648
  "flags": {
2789
2649
  "json": {
@@ -2793,20 +2653,88 @@
2793
2653
  "allowNo": false,
2794
2654
  "type": "boolean"
2795
2655
  },
2796
- "organization-id": {
2797
- "description": "Organization Id for the x-organization-id gateway header",
2798
- "name": "organization-id",
2656
+ "comparison-mode": {
2657
+ "description": "Comparison mode",
2658
+ "name": "comparison-mode",
2659
+ "default": "BRANCH_COMPARE",
2660
+ "hasDynamicHelp": false,
2661
+ "multiple": false,
2662
+ "options": [
2663
+ "BRANCH_COMPARE",
2664
+ "INDEX_FILE",
2665
+ "MIX"
2666
+ ],
2667
+ "type": "option"
2668
+ },
2669
+ "filter-type": {
2670
+ "description": "Optional metadata type filter, for example ApexClass",
2671
+ "name": "filter-type",
2672
+ "hasDynamicHelp": false,
2673
+ "multiple": false,
2674
+ "type": "option"
2675
+ },
2676
+ "pipeline-id": {
2677
+ "description": "Pipeline Id",
2678
+ "name": "pipeline-id",
2679
+ "hasDynamicHelp": false,
2680
+ "multiple": false,
2681
+ "type": "option"
2682
+ },
2683
+ "source-credential-id": {
2684
+ "description": "Source org credential Id",
2685
+ "name": "source-credential-id",
2799
2686
  "hasDynamicHelp": false,
2800
2687
  "multiple": false,
2801
2688
  "type": "option"
2802
2689
  },
2803
- "user-id": {
2804
- "description": "User Id for the x-user-id gateway header",
2805
- "name": "user-id",
2690
+ "source-org-id": {
2691
+ "description": "Source org Id",
2692
+ "name": "source-org-id",
2806
2693
  "hasDynamicHelp": false,
2807
2694
  "multiple": false,
2808
2695
  "type": "option"
2809
2696
  },
2697
+ "target-org-id": {
2698
+ "description": "Target org Id",
2699
+ "name": "target-org-id",
2700
+ "hasDynamicHelp": false,
2701
+ "multiple": false,
2702
+ "type": "option"
2703
+ }
2704
+ },
2705
+ "hasDynamicHelp": false,
2706
+ "hiddenAliases": [],
2707
+ "id": "metadata:index:compare",
2708
+ "pluginAlias": "@copado/agentia-cli",
2709
+ "pluginName": "@copado/agentia-cli",
2710
+ "pluginType": "core",
2711
+ "strict": true,
2712
+ "enableJsonFlag": true,
2713
+ "isESM": true,
2714
+ "relativePath": [
2715
+ "dist",
2716
+ "commands",
2717
+ "metadata",
2718
+ "index",
2719
+ "compare.js"
2720
+ ]
2721
+ },
2722
+ "metadata:refresh:deleted": {
2723
+ "aliases": [],
2724
+ "args": {},
2725
+ "description": "Refresh the deleted metadata index via the CICD gateway",
2726
+ "examples": [
2727
+ "<%= config.bin %> <%= command.id %> --env <environment-id>",
2728
+ "<%= config.bin %> <%= command.id %> --env <environment-id> --module-type vlocity --json"
2729
+ ],
2730
+ "flags": {
2731
+ "json": {
2732
+ "description": "Format output as json.",
2733
+ "helpGroup": "GLOBAL",
2734
+ "name": "json",
2735
+ "allowNo": false,
2736
+ "type": "boolean"
2737
+ },
2810
2738
  "env": {
2811
2739
  "description": "Copado environment Id used to resolve the credential",
2812
2740
  "name": "env",
@@ -2862,8 +2790,8 @@
2862
2790
  "args": {},
2863
2791
  "description": "Trigger a metadata index refresh via the CICD gateway",
2864
2792
  "examples": [
2865
- "<%= config.bin %> <%= command.id %> --env <environment-id> --user-id <id> --organization-id <id>",
2866
- "<%= config.bin %> <%= command.id %> --env <environment-id> --user-id <id> --organization-id <id> --all --json"
2793
+ "<%= config.bin %> <%= command.id %> --env <environment-id>",
2794
+ "<%= config.bin %> <%= command.id %> --env <environment-id> --all --json"
2867
2795
  ],
2868
2796
  "flags": {
2869
2797
  "json": {
@@ -2873,20 +2801,6 @@
2873
2801
  "allowNo": false,
2874
2802
  "type": "boolean"
2875
2803
  },
2876
- "organization-id": {
2877
- "description": "Organization Id for the x-organization-id gateway header",
2878
- "name": "organization-id",
2879
- "hasDynamicHelp": false,
2880
- "multiple": false,
2881
- "type": "option"
2882
- },
2883
- "user-id": {
2884
- "description": "User Id for the x-user-id gateway header",
2885
- "name": "user-id",
2886
- "hasDynamicHelp": false,
2887
- "multiple": false,
2888
- "type": "option"
2889
- },
2890
2804
  "all": {
2891
2805
  "description": "Request replacing the metadata index instead of merging it",
2892
2806
  "name": "all",
@@ -3004,8 +2918,8 @@
3004
2918
  "args": {},
3005
2919
  "description": "Get metadata index refresh status via the CICD gateway",
3006
2920
  "examples": [
3007
- "<%= config.bin %> <%= command.id %> --job-id <event-id> --user-id <id> --organization-id <id>",
3008
- "<%= config.bin %> <%= command.id %> --job-id <event-id> --user-id <id> --organization-id <id> --json"
2921
+ "<%= config.bin %> <%= command.id %> --job-id <event-id>",
2922
+ "<%= config.bin %> <%= command.id %> --job-id <event-id> --json"
3009
2923
  ],
3010
2924
  "flags": {
3011
2925
  "json": {
@@ -3015,20 +2929,6 @@
3015
2929
  "allowNo": false,
3016
2930
  "type": "boolean"
3017
2931
  },
3018
- "organization-id": {
3019
- "description": "Organization Id for the x-organization-id gateway header",
3020
- "name": "organization-id",
3021
- "hasDynamicHelp": false,
3022
- "multiple": false,
3023
- "type": "option"
3024
- },
3025
- "user-id": {
3026
- "description": "User Id for the x-user-id gateway header",
3027
- "name": "user-id",
3028
- "hasDynamicHelp": false,
3029
- "multiple": false,
3030
- "type": "option"
3031
- },
3032
2932
  "job-id": {
3033
2933
  "description": "Metadata refresh event Id",
3034
2934
  "name": "job-id",
@@ -3084,8 +2984,8 @@
3084
2984
  "args": {},
3085
2985
  "description": "List connections for a Copado pipeline",
3086
2986
  "examples": [
3087
- "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --user-id <id> --organization-id <id>",
3088
- "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --user-id <id> --organization-id <id> --json"
2987
+ "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id>",
2988
+ "<%= config.bin %> <%= command.id %> --pipeline-id <pipeline-id> --json"
3089
2989
  ],
3090
2990
  "flags": {
3091
2991
  "json": {
@@ -3095,20 +2995,6 @@
3095
2995
  "allowNo": false,
3096
2996
  "type": "boolean"
3097
2997
  },
3098
- "organization-id": {
3099
- "description": "Organization Id for the x-organization-id gateway header",
3100
- "name": "organization-id",
3101
- "hasDynamicHelp": false,
3102
- "multiple": false,
3103
- "type": "option"
3104
- },
3105
- "user-id": {
3106
- "description": "User Id for the x-user-id gateway header",
3107
- "name": "user-id",
3108
- "hasDynamicHelp": false,
3109
- "multiple": false,
3110
- "type": "option"
3111
- },
3112
2998
  "pipeline-id": {
3113
2999
  "description": "Pipeline Id whose connections should be listed",
3114
3000
  "name": "pipeline-id",
@@ -3677,5 +3563,5 @@
3677
3563
  ]
3678
3564
  }
3679
3565
  },
3680
- "version": "0.21.0-alpha.0"
3566
+ "version": "0.23.0-alpha.0"
3681
3567
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@copado/agentia-cli",
3
3
  "description": "Command-line interface for Agentia",
4
- "version": "0.21.0-alpha.0",
4
+ "version": "0.23.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"
@@ -1,10 +0,0 @@
1
- export { assertRequired } from './assert.js';
2
- export declare const pipelineHeaderFlags: {
3
- readonly 'organization-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
4
- readonly 'user-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
5
- };
6
- export type PipelineHeaderFlagValues = {
7
- 'organization-id'?: string;
8
- 'user-id'?: string;
9
- };
10
- export declare function pipelineHeaders(flags: PipelineHeaderFlagValues): Record<string, string>;
@@ -1,19 +0,0 @@
1
- import { Flags } from '@oclif/core';
2
- import { assertRequired } from './assert.js';
3
- import { normalizeSalesforceId } from './salesforce-id.js';
4
- export { assertRequired } from './assert.js';
5
- export const pipelineHeaderFlags = {
6
- 'organization-id': Flags.string({
7
- description: 'Organization Id for the x-organization-id gateway header',
8
- }),
9
- 'user-id': Flags.string({
10
- description: 'User Id for the x-user-id gateway header',
11
- }),
12
- };
13
- export function pipelineHeaders(flags) {
14
- return {
15
- 'x-organization-id': normalizeSalesforceId(assertRequired(flags['organization-id'], '--organization-id')),
16
- 'x-user-id': normalizeSalesforceId(assertRequired(flags['user-id'], '--user-id')),
17
- };
18
- }
19
- //# sourceMappingURL=pipeline-flags.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pipeline-flags.js","sourceRoot":"","sources":["../../src/lib/pipeline-flags.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAC,qBAAqB,EAAC,MAAM,oBAAoB,CAAA;AAExD,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC;QAC9B,WAAW,EAAE,0DAA0D;KACxE,CAAC;IACF,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC;QACtB,WAAW,EAAE,0CAA0C;KACxD,CAAC;CACM,CAAA;AAOV,MAAM,UAAU,eAAe,CAAC,KAA+B;IAC7D,OAAO;QACL,mBAAmB,EAAE,qBAAqB,CAAC,cAAc,CAAC,KAAK,CAAC,iBAAiB,CAAC,EAAE,mBAAmB,CAAC,CAAC;QACzG,WAAW,EAAE,qBAAqB,CAAC,cAAc,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;KAClF,CAAA;AACH,CAAC"}