@copado/agentia-cli 0.71.0-alpha.0 → 0.72.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 (62) hide show
  1. package/LICENSE.md +9 -9
  2. package/README.md +172 -170
  3. package/dist/commands/cicd/work/done.js +36 -22
  4. package/dist/commands/cicd/work/done.js.map +1 -1
  5. package/dist/commands/cicd/work/get.js +19 -10
  6. package/dist/commands/cicd/work/get.js.map +1 -1
  7. package/dist/commands/cicd/work/push.js +26 -21
  8. package/dist/commands/cicd/work/push.js.map +1 -1
  9. package/dist/commands/cicd/work/set.js +11 -20
  10. package/dist/commands/cicd/work/set.js.map +1 -1
  11. package/dist/commands/cicd/work/submit.js +40 -23
  12. package/dist/commands/cicd/work/submit.js.map +1 -1
  13. package/dist/commands/cicd/work/test.js +4 -0
  14. package/dist/commands/cicd/work/test.js.map +1 -1
  15. package/dist/hooks/init/migrate-user-config.d.ts +3 -0
  16. package/dist/hooks/init/migrate-user-config.js +17 -0
  17. package/dist/hooks/init/migrate-user-config.js.map +1 -0
  18. package/dist/lib/agentia-command.d.ts +3 -0
  19. package/dist/lib/agentia-command.js +11 -0
  20. package/dist/lib/agentia-command.js.map +1 -1
  21. package/dist/lib/defaults-store.d.ts +15 -0
  22. package/dist/lib/defaults-store.js +128 -21
  23. package/dist/lib/defaults-store.js.map +1 -1
  24. package/dist/lib/format.js +73 -26
  25. package/dist/lib/format.js.map +1 -1
  26. package/dist/lib/git-worktree.d.ts +18 -0
  27. package/dist/lib/git-worktree.js +44 -0
  28. package/dist/lib/git-worktree.js.map +1 -1
  29. package/dist/lib/mcp/server.js +4 -0
  30. package/dist/lib/mcp/server.js.map +1 -1
  31. package/dist/lib/mcp/work-tools.js +25 -57
  32. package/dist/lib/mcp/work-tools.js.map +1 -1
  33. package/dist/lib/project-setup.js +59 -7
  34. package/dist/lib/project-setup.js.map +1 -1
  35. package/dist/lib/setup-templates.d.ts +3 -1
  36. package/dist/lib/setup-templates.js +3 -1
  37. package/dist/lib/setup-templates.js.map +1 -1
  38. package/dist/lib/var-replacement.d.ts +47 -0
  39. package/dist/lib/var-replacement.js +150 -0
  40. package/dist/lib/var-replacement.js.map +1 -0
  41. package/dist/lib/work-get-selection.d.ts +6 -0
  42. package/dist/lib/work-get-selection.js +44 -0
  43. package/dist/lib/work-get-selection.js.map +1 -0
  44. package/dist/lib/work-local-run-tests.d.ts +3 -0
  45. package/dist/lib/work-local-run-tests.js +5 -0
  46. package/dist/lib/work-local-run-tests.js.map +1 -1
  47. package/dist/lib/work-push.d.ts +21 -1
  48. package/dist/lib/work-push.js +203 -40
  49. package/dist/lib/work-push.js.map +1 -1
  50. package/dist/lib/work-set-selection.d.ts +11 -0
  51. package/dist/lib/work-set-selection.js +27 -0
  52. package/dist/lib/work-set-selection.js.map +1 -0
  53. package/dist/lib/work-types.d.ts +26 -0
  54. package/dist/lib/work-types.js +16 -0
  55. package/dist/lib/work-types.js.map +1 -1
  56. package/dist/lib/yaml-replacement.d.ts +41 -0
  57. package/dist/lib/yaml-replacement.js +129 -0
  58. package/dist/lib/yaml-replacement.js.map +1 -0
  59. package/oclif.manifest.json +483 -483
  60. package/package.json +7 -4
  61. package/vendor/java/var-replace-command.jar +0 -0
  62. package/vendor/java/yaml-replace-command.jar +0 -0
@@ -887,75 +887,6 @@
887
887
  "update.js"
888
888
  ]
889
889
  },
890
- "ai:quota:get": {
891
- "aliases": [],
892
- "args": {},
893
- "description": "Get Copado AI organization quota",
894
- "examples": [
895
- "<%= config.bin %> <%= command.id %>",
896
- "<%= config.bin %> <%= command.id %> --domain robotic.copado.com --org 42888 --json"
897
- ],
898
- "flags": {
899
- "json": {
900
- "description": "Format output as json.",
901
- "helpGroup": "GLOBAL",
902
- "name": "json",
903
- "allowNo": false,
904
- "type": "boolean"
905
- },
906
- "domain": {
907
- "description": "Copado AI domain hostname. Defaults to AGENTIA_AI_DOMAIN, COPADO_AI_DOMAIN, or stored auth config.",
908
- "name": "domain",
909
- "hasDynamicHelp": false,
910
- "multiple": false,
911
- "type": "option"
912
- },
913
- "gateway-url": {
914
- "description": "Full Copado AI gateway base URL. Defaults to AGENTIA_AI_GATEWAY_URL, COPADO_AI_GATEWAY_URL, or stored auth config.",
915
- "name": "gateway-url",
916
- "hasDynamicHelp": false,
917
- "multiple": false,
918
- "type": "option"
919
- },
920
- "org": {
921
- "description": "Copado AI organization ID. Defaults to AGENTIA_AI_ORG, COPADO_AI_ORG, or stored auth config.",
922
- "name": "org",
923
- "hasDynamicHelp": false,
924
- "multiple": false,
925
- "type": "option"
926
- },
927
- "pat": {
928
- "description": "Copado AI PAT token override. Prefer auth set --ai or AGENTIA_AI_PAT for regular use.",
929
- "name": "pat",
930
- "hasDynamicHelp": false,
931
- "multiple": false,
932
- "type": "option"
933
- },
934
- "timeout": {
935
- "description": "AI gateway timeout in seconds.",
936
- "name": "timeout",
937
- "hasDynamicHelp": false,
938
- "multiple": false,
939
- "type": "option"
940
- }
941
- },
942
- "hasDynamicHelp": false,
943
- "hiddenAliases": [],
944
- "id": "ai:quota:get",
945
- "pluginAlias": "@copado/agentia-cli",
946
- "pluginName": "@copado/agentia-cli",
947
- "pluginType": "core",
948
- "strict": true,
949
- "enableJsonFlag": true,
950
- "isESM": true,
951
- "relativePath": [
952
- "dist",
953
- "commands",
954
- "ai",
955
- "quota",
956
- "get.js"
957
- ]
958
- },
959
890
  "ai:agent:ask": {
960
891
  "aliases": [],
961
892
  "args": {},
@@ -1269,6 +1200,75 @@
1269
1200
  "chat.js"
1270
1201
  ]
1271
1202
  },
1203
+ "ai:quota:get": {
1204
+ "aliases": [],
1205
+ "args": {},
1206
+ "description": "Get Copado AI organization quota",
1207
+ "examples": [
1208
+ "<%= config.bin %> <%= command.id %>",
1209
+ "<%= config.bin %> <%= command.id %> --domain robotic.copado.com --org 42888 --json"
1210
+ ],
1211
+ "flags": {
1212
+ "json": {
1213
+ "description": "Format output as json.",
1214
+ "helpGroup": "GLOBAL",
1215
+ "name": "json",
1216
+ "allowNo": false,
1217
+ "type": "boolean"
1218
+ },
1219
+ "domain": {
1220
+ "description": "Copado AI domain hostname. Defaults to AGENTIA_AI_DOMAIN, COPADO_AI_DOMAIN, or stored auth config.",
1221
+ "name": "domain",
1222
+ "hasDynamicHelp": false,
1223
+ "multiple": false,
1224
+ "type": "option"
1225
+ },
1226
+ "gateway-url": {
1227
+ "description": "Full Copado AI gateway base URL. Defaults to AGENTIA_AI_GATEWAY_URL, COPADO_AI_GATEWAY_URL, or stored auth config.",
1228
+ "name": "gateway-url",
1229
+ "hasDynamicHelp": false,
1230
+ "multiple": false,
1231
+ "type": "option"
1232
+ },
1233
+ "org": {
1234
+ "description": "Copado AI organization ID. Defaults to AGENTIA_AI_ORG, COPADO_AI_ORG, or stored auth config.",
1235
+ "name": "org",
1236
+ "hasDynamicHelp": false,
1237
+ "multiple": false,
1238
+ "type": "option"
1239
+ },
1240
+ "pat": {
1241
+ "description": "Copado AI PAT token override. Prefer auth set --ai or AGENTIA_AI_PAT for regular use.",
1242
+ "name": "pat",
1243
+ "hasDynamicHelp": false,
1244
+ "multiple": false,
1245
+ "type": "option"
1246
+ },
1247
+ "timeout": {
1248
+ "description": "AI gateway timeout in seconds.",
1249
+ "name": "timeout",
1250
+ "hasDynamicHelp": false,
1251
+ "multiple": false,
1252
+ "type": "option"
1253
+ }
1254
+ },
1255
+ "hasDynamicHelp": false,
1256
+ "hiddenAliases": [],
1257
+ "id": "ai:quota:get",
1258
+ "pluginAlias": "@copado/agentia-cli",
1259
+ "pluginName": "@copado/agentia-cli",
1260
+ "pluginType": "core",
1261
+ "strict": true,
1262
+ "enableJsonFlag": true,
1263
+ "isESM": true,
1264
+ "relativePath": [
1265
+ "dist",
1266
+ "commands",
1267
+ "ai",
1268
+ "quota",
1269
+ "get.js"
1270
+ ]
1271
+ },
1272
1272
  "ai:workspace:create": {
1273
1273
  "aliases": [],
1274
1274
  "args": {},
@@ -2664,174 +2664,6 @@
2664
2664
  "upsert.js"
2665
2665
  ]
2666
2666
  },
2667
- "cicd:metadata:list": {
2668
- "aliases": [],
2669
- "args": {},
2670
- "description": "Search the metadata index for an org via the CICD gateway",
2671
- "examples": [
2672
- "<%= config.bin %> <%= command.id %> --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
2673
- "<%= config.bin %> <%= command.id %> --source Changed --metadata-types ApexClass --limit 100 --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
2674
- "<%= config.bin %> <%= command.id %> --source NewAndChanged --find-managed-packages --json"
2675
- ],
2676
- "flags": {
2677
- "json": {
2678
- "description": "Format output as json.",
2679
- "helpGroup": "GLOBAL",
2680
- "name": "json",
2681
- "allowNo": false,
2682
- "type": "boolean"
2683
- },
2684
- "avoid-source-tracking": {
2685
- "description": "Pass avoidSourceTracking=true to the gateway index route",
2686
- "name": "avoid-source-tracking",
2687
- "allowNo": false,
2688
- "type": "boolean"
2689
- },
2690
- "change-date-from": {
2691
- "description": "Optional change-date-from filter (ISO datetime)",
2692
- "name": "change-date-from",
2693
- "hasDynamicHelp": false,
2694
- "multiple": false,
2695
- "type": "option"
2696
- },
2697
- "change-date-to": {
2698
- "description": "Optional change-date-to filter (ISO datetime)",
2699
- "name": "change-date-to",
2700
- "hasDynamicHelp": false,
2701
- "multiple": false,
2702
- "type": "option"
2703
- },
2704
- "filter-type": {
2705
- "description": "Optional metadata type name filter, for example ApexClass",
2706
- "name": "filter-type",
2707
- "hasDynamicHelp": false,
2708
- "multiple": false,
2709
- "type": "option"
2710
- },
2711
- "find-managed-packages": {
2712
- "description": "Include managed package metadata in the search",
2713
- "name": "find-managed-packages",
2714
- "allowNo": false,
2715
- "type": "boolean"
2716
- },
2717
- "limit": {
2718
- "description": "Maximum number of records to return",
2719
- "name": "limit",
2720
- "hasDynamicHelp": false,
2721
- "multiple": false,
2722
- "type": "option"
2723
- },
2724
- "metadata-types": {
2725
- "description": "Optional comma-separated metadata types to include",
2726
- "name": "metadata-types",
2727
- "hasDynamicHelp": false,
2728
- "multiple": false,
2729
- "type": "option"
2730
- },
2731
- "modified-by": {
2732
- "description": "Filter by last modified user",
2733
- "name": "modified-by",
2734
- "hasDynamicHelp": false,
2735
- "multiple": false,
2736
- "type": "option"
2737
- },
2738
- "module-type": {
2739
- "description": "Optional addon module type",
2740
- "name": "module-type",
2741
- "hasDynamicHelp": false,
2742
- "multiple": false,
2743
- "options": [
2744
- "vlocity",
2745
- "data_cloud"
2746
- ],
2747
- "type": "option"
2748
- },
2749
- "order-direction": {
2750
- "description": "Sort direction for last modified date",
2751
- "name": "order-direction",
2752
- "hasDynamicHelp": false,
2753
- "multiple": false,
2754
- "options": [
2755
- "ASC",
2756
- "DESC"
2757
- ],
2758
- "type": "option"
2759
- },
2760
- "pipeline-id": {
2761
- "description": "Pipeline Id",
2762
- "name": "pipeline-id",
2763
- "hasDynamicHelp": false,
2764
- "multiple": false,
2765
- "type": "option"
2766
- },
2767
- "platform-experience": {
2768
- "description": "Gateway platform experience header",
2769
- "name": "platform-experience",
2770
- "default": "salesforce",
2771
- "hasDynamicHelp": false,
2772
- "multiple": false,
2773
- "options": [
2774
- "salesforce",
2775
- "sfdx",
2776
- "metacache",
2777
- "db"
2778
- ],
2779
- "type": "option"
2780
- },
2781
- "source": {
2782
- "description": "Index source filter",
2783
- "name": "source",
2784
- "hasDynamicHelp": false,
2785
- "multiple": false,
2786
- "options": [
2787
- "All",
2788
- "Changed",
2789
- "Deleted",
2790
- "New",
2791
- "NewAndChanged",
2792
- "PreviouslyCommitted"
2793
- ],
2794
- "type": "option"
2795
- },
2796
- "source-credential-id": {
2797
- "description": "Source org credential Id",
2798
- "name": "source-credential-id",
2799
- "hasDynamicHelp": false,
2800
- "multiple": false,
2801
- "type": "option"
2802
- },
2803
- "source-org-id": {
2804
- "description": "Source org Id",
2805
- "name": "source-org-id",
2806
- "hasDynamicHelp": false,
2807
- "multiple": false,
2808
- "type": "option"
2809
- },
2810
- "target-org-id": {
2811
- "description": "Optional target org Id",
2812
- "name": "target-org-id",
2813
- "hasDynamicHelp": false,
2814
- "multiple": false,
2815
- "type": "option"
2816
- }
2817
- },
2818
- "hasDynamicHelp": false,
2819
- "hiddenAliases": [],
2820
- "id": "cicd:metadata:list",
2821
- "pluginAlias": "@copado/agentia-cli",
2822
- "pluginName": "@copado/agentia-cli",
2823
- "pluginType": "core",
2824
- "strict": true,
2825
- "enableJsonFlag": true,
2826
- "isESM": true,
2827
- "relativePath": [
2828
- "dist",
2829
- "commands",
2830
- "cicd",
2831
- "metadata",
2832
- "list.js"
2833
- ]
2834
- },
2835
2667
  "cicd:job:get": {
2836
2668
  "aliases": [],
2837
2669
  "args": {
@@ -3152,16 +2984,184 @@
3152
2984
  "allowNo": false,
3153
2985
  "type": "boolean"
3154
2986
  },
3155
- "restart": {
3156
- "description": "Restart the job run (gateway compatibility flag)",
3157
- "name": "restart",
3158
- "allowNo": false,
3159
- "type": "boolean"
2987
+ "restart": {
2988
+ "description": "Restart the job run (gateway compatibility flag)",
2989
+ "name": "restart",
2990
+ "allowNo": false,
2991
+ "type": "boolean"
2992
+ }
2993
+ },
2994
+ "hasDynamicHelp": false,
2995
+ "hiddenAliases": [],
2996
+ "id": "cicd:job:run",
2997
+ "pluginAlias": "@copado/agentia-cli",
2998
+ "pluginName": "@copado/agentia-cli",
2999
+ "pluginType": "core",
3000
+ "strict": true,
3001
+ "enableJsonFlag": true,
3002
+ "isESM": true,
3003
+ "relativePath": [
3004
+ "dist",
3005
+ "commands",
3006
+ "cicd",
3007
+ "job",
3008
+ "run.js"
3009
+ ]
3010
+ },
3011
+ "cicd:metadata:list": {
3012
+ "aliases": [],
3013
+ "args": {},
3014
+ "description": "Search the metadata index for an org via the CICD gateway",
3015
+ "examples": [
3016
+ "<%= config.bin %> <%= command.id %> --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
3017
+ "<%= config.bin %> <%= command.id %> --source Changed --metadata-types ApexClass --limit 100 --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
3018
+ "<%= config.bin %> <%= command.id %> --source NewAndChanged --find-managed-packages --json"
3019
+ ],
3020
+ "flags": {
3021
+ "json": {
3022
+ "description": "Format output as json.",
3023
+ "helpGroup": "GLOBAL",
3024
+ "name": "json",
3025
+ "allowNo": false,
3026
+ "type": "boolean"
3027
+ },
3028
+ "avoid-source-tracking": {
3029
+ "description": "Pass avoidSourceTracking=true to the gateway index route",
3030
+ "name": "avoid-source-tracking",
3031
+ "allowNo": false,
3032
+ "type": "boolean"
3033
+ },
3034
+ "change-date-from": {
3035
+ "description": "Optional change-date-from filter (ISO datetime)",
3036
+ "name": "change-date-from",
3037
+ "hasDynamicHelp": false,
3038
+ "multiple": false,
3039
+ "type": "option"
3040
+ },
3041
+ "change-date-to": {
3042
+ "description": "Optional change-date-to filter (ISO datetime)",
3043
+ "name": "change-date-to",
3044
+ "hasDynamicHelp": false,
3045
+ "multiple": false,
3046
+ "type": "option"
3047
+ },
3048
+ "filter-type": {
3049
+ "description": "Optional metadata type name filter, for example ApexClass",
3050
+ "name": "filter-type",
3051
+ "hasDynamicHelp": false,
3052
+ "multiple": false,
3053
+ "type": "option"
3054
+ },
3055
+ "find-managed-packages": {
3056
+ "description": "Include managed package metadata in the search",
3057
+ "name": "find-managed-packages",
3058
+ "allowNo": false,
3059
+ "type": "boolean"
3060
+ },
3061
+ "limit": {
3062
+ "description": "Maximum number of records to return",
3063
+ "name": "limit",
3064
+ "hasDynamicHelp": false,
3065
+ "multiple": false,
3066
+ "type": "option"
3067
+ },
3068
+ "metadata-types": {
3069
+ "description": "Optional comma-separated metadata types to include",
3070
+ "name": "metadata-types",
3071
+ "hasDynamicHelp": false,
3072
+ "multiple": false,
3073
+ "type": "option"
3074
+ },
3075
+ "modified-by": {
3076
+ "description": "Filter by last modified user",
3077
+ "name": "modified-by",
3078
+ "hasDynamicHelp": false,
3079
+ "multiple": false,
3080
+ "type": "option"
3081
+ },
3082
+ "module-type": {
3083
+ "description": "Optional addon module type",
3084
+ "name": "module-type",
3085
+ "hasDynamicHelp": false,
3086
+ "multiple": false,
3087
+ "options": [
3088
+ "vlocity",
3089
+ "data_cloud"
3090
+ ],
3091
+ "type": "option"
3092
+ },
3093
+ "order-direction": {
3094
+ "description": "Sort direction for last modified date",
3095
+ "name": "order-direction",
3096
+ "hasDynamicHelp": false,
3097
+ "multiple": false,
3098
+ "options": [
3099
+ "ASC",
3100
+ "DESC"
3101
+ ],
3102
+ "type": "option"
3103
+ },
3104
+ "pipeline-id": {
3105
+ "description": "Pipeline Id",
3106
+ "name": "pipeline-id",
3107
+ "hasDynamicHelp": false,
3108
+ "multiple": false,
3109
+ "type": "option"
3110
+ },
3111
+ "platform-experience": {
3112
+ "description": "Gateway platform experience header",
3113
+ "name": "platform-experience",
3114
+ "default": "salesforce",
3115
+ "hasDynamicHelp": false,
3116
+ "multiple": false,
3117
+ "options": [
3118
+ "salesforce",
3119
+ "sfdx",
3120
+ "metacache",
3121
+ "db"
3122
+ ],
3123
+ "type": "option"
3124
+ },
3125
+ "source": {
3126
+ "description": "Index source filter",
3127
+ "name": "source",
3128
+ "hasDynamicHelp": false,
3129
+ "multiple": false,
3130
+ "options": [
3131
+ "All",
3132
+ "Changed",
3133
+ "Deleted",
3134
+ "New",
3135
+ "NewAndChanged",
3136
+ "PreviouslyCommitted"
3137
+ ],
3138
+ "type": "option"
3139
+ },
3140
+ "source-credential-id": {
3141
+ "description": "Source org credential Id",
3142
+ "name": "source-credential-id",
3143
+ "hasDynamicHelp": false,
3144
+ "multiple": false,
3145
+ "type": "option"
3146
+ },
3147
+ "source-org-id": {
3148
+ "description": "Source org Id",
3149
+ "name": "source-org-id",
3150
+ "hasDynamicHelp": false,
3151
+ "multiple": false,
3152
+ "type": "option"
3153
+ },
3154
+ "target-org-id": {
3155
+ "description": "Optional target org Id",
3156
+ "name": "target-org-id",
3157
+ "hasDynamicHelp": false,
3158
+ "multiple": false,
3159
+ "type": "option"
3160
3160
  }
3161
3161
  },
3162
3162
  "hasDynamicHelp": false,
3163
3163
  "hiddenAliases": [],
3164
- "id": "cicd:job:run",
3164
+ "id": "cicd:metadata:list",
3165
3165
  "pluginAlias": "@copado/agentia-cli",
3166
3166
  "pluginName": "@copado/agentia-cli",
3167
3167
  "pluginType": "core",
@@ -3172,8 +3172,8 @@
3172
3172
  "dist",
3173
3173
  "commands",
3174
3174
  "cicd",
3175
- "job",
3176
- "run.js"
3175
+ "metadata",
3176
+ "list.js"
3177
3177
  ]
3178
3178
  },
3179
3179
  "cicd:pipeline:get": {
@@ -4791,7 +4791,7 @@
4791
4791
  "cicd:work:done": {
4792
4792
  "aliases": [],
4793
4793
  "args": {},
4794
- "description": "Mark the current feature/US-XXXX work item done and promote it to the next environment. Pushes and registers commits when the branch is ahead of origin, then calls headless work/done (Promote Action with validate=false).",
4794
+ "description": "Mark the current feature/<lastWorkItem> work item done and promote it to the next environment. Pushes and registers commits when the branch is ahead of origin, then calls headless work/done (Promote Action with validate=false).",
4795
4795
  "examples": [
4796
4796
  "<%= config.bin %> <%= command.id %>",
4797
4797
  "<%= config.bin %> <%= command.id %> --json"
@@ -4826,16 +4826,16 @@
4826
4826
  "aliases": [],
4827
4827
  "args": {
4828
4828
  "id": {
4829
- "description": "User story ID (defaults to the active work item from `work set`)",
4829
+ "description": "User story ID or name (defaults to the active work item from `work set`)",
4830
4830
  "name": "id",
4831
4831
  "required": false
4832
4832
  }
4833
4833
  },
4834
- "description": "Get a Copado user story by ID",
4834
+ "description": "Get a Copado user story by ID or name via headless work/get. When the response includes `devOrgBranch` for the active work item, persists it as `lastDevOrgBranch`.",
4835
4835
  "examples": [
4836
4836
  "<%= config.bin %> <%= command.id %>",
4837
4837
  "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
4838
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
4838
+ "<%= config.bin %> <%= command.id %> US-0001 --json"
4839
4839
  ],
4840
4840
  "flags": {
4841
4841
  "json": {
@@ -5134,7 +5134,7 @@
5134
5134
  "cicd:work:push": {
5135
5135
  "aliases": [],
5136
5136
  "args": {},
5137
- "description": "Push the current feature/US-XXXX branch and register commits with Copado. Requires a clean working tree and a base branch from `agentia cicd work set`. Locks the tip commit, runs `git push origin <branch>`, then calls headless work/push.",
5137
+ "description": "Push the current feature/<lastWorkItem> branch and register commits with Copado. Requires a clean working tree, base branch, and dev org branch from `.agentia/config.user.json`. Applies Copado environment-variable then yaml replacements when needed, commits both as a single follow-up commit, locks the tip commit, runs `git push origin <branch>`, calls headless work/push, then merges the feature branch into the recorded dev org branch.",
5138
5138
  "examples": [
5139
5139
  "<%= config.bin %> <%= command.id %>",
5140
5140
  "<%= config.bin %> <%= command.id %> --json"
@@ -5257,7 +5257,7 @@
5257
5257
  "cicd:work:submit": {
5258
5258
  "aliases": [],
5259
5259
  "args": {},
5260
- "description": "Submit the current feature/US-XXXX work item for pipeline quality gates and validation. Runs project-root .agentia_quality_gates.sh (macOS/Linux) or .agentia_quality_gates.cmd (Windows) when present, pushes and registers commits when the branch is ahead of origin, then calls headless work/submit (Promote Action with validate=true).",
5260
+ "description": "Submit the current feature/<lastWorkItem> work item for pipeline quality gates and validation. Runs project-root .agentia_quality_gates.sh (macOS/Linux) or .agentia_quality_gates.cmd (Windows) when present, pushes and registers commits when the branch is ahead of origin, then calls headless work/submit (Promote Action with validate=true).",
5261
5261
  "examples": [
5262
5262
  "<%= config.bin %> <%= command.id %>",
5263
5263
  "<%= config.bin %> <%= command.id %> --apex-test-classes=MyTest,OtherTest",
@@ -5287,7 +5287,7 @@
5287
5287
  "type": "boolean"
5288
5288
  },
5289
5289
  "skip-pull-request": {
5290
- "description": "Do not open the pull request compare URL after submit (also configurable via skipPullRequest in .agentia/config.json)",
5290
+ "description": "Do not open the pull request compare URL after submit (also configurable via skipPullRequest in .agentia/config.json or .agentia/config.user.json)",
5291
5291
  "name": "skip-pull-request",
5292
5292
  "allowNo": false,
5293
5293
  "type": "boolean"
@@ -9033,13 +9033,19 @@
9033
9033
  "update.js"
9034
9034
  ]
9035
9035
  },
9036
- "cicd:data:records:match": {
9036
+ "cicd:data:formula:create": {
9037
9037
  "aliases": [],
9038
- "args": {},
9039
- "description": "Match a source data record to a destination org",
9038
+ "args": {
9039
+ "dataTemplateId": {
9040
+ "description": "Data template Id",
9041
+ "name": "dataTemplateId",
9042
+ "required": true
9043
+ }
9044
+ },
9045
+ "description": "Create a record matching formula for a data template",
9040
9046
  "examples": [
9041
- "<%= config.bin %> <%= command.id %> --file match.json",
9042
- "<%= config.bin %> <%= command.id %> --stdin --json"
9047
+ "<%= config.bin %> <%= command.id %> a0X... --name MatchByName --object-api-name Account --fields Name,BillingCity",
9048
+ "<%= config.bin %> <%= command.id %> a0X... --name MatchByName --object-api-name Account --fields Name --fields BillingCity --hash-formula --json"
9043
9049
  ],
9044
9050
  "flags": {
9045
9051
  "json": {
@@ -9049,30 +9055,40 @@
9049
9055
  "allowNo": false,
9050
9056
  "type": "boolean"
9051
9057
  },
9052
- "file": {
9053
- "char": "f",
9054
- "description": "Path to a JSON file body",
9055
- "exclusive": [
9056
- "stdin"
9057
- ],
9058
- "name": "file",
9058
+ "fields": {
9059
+ "description": "Formula fields (repeatable or comma-separated, up to 3)",
9060
+ "name": "fields",
9061
+ "required": true,
9059
9062
  "hasDynamicHelp": false,
9060
- "multiple": false,
9063
+ "multiple": true,
9061
9064
  "type": "option"
9062
9065
  },
9063
- "stdin": {
9064
- "description": "Read the JSON body from stdin",
9065
- "exclusive": [
9066
- "file"
9067
- ],
9068
- "name": "stdin",
9066
+ "hash-formula": {
9067
+ "description": "Enable hash formula",
9068
+ "name": "hash-formula",
9069
9069
  "allowNo": false,
9070
9070
  "type": "boolean"
9071
+ },
9072
+ "name": {
9073
+ "description": "Formula name",
9074
+ "name": "name",
9075
+ "required": true,
9076
+ "hasDynamicHelp": false,
9077
+ "multiple": false,
9078
+ "type": "option"
9079
+ },
9080
+ "object-api-name": {
9081
+ "description": "sObject API name",
9082
+ "name": "object-api-name",
9083
+ "required": true,
9084
+ "hasDynamicHelp": false,
9085
+ "multiple": false,
9086
+ "type": "option"
9071
9087
  }
9072
9088
  },
9073
9089
  "hasDynamicHelp": false,
9074
9090
  "hiddenAliases": [],
9075
- "id": "cicd:data:records:match",
9091
+ "id": "cicd:data:formula:create",
9076
9092
  "pluginAlias": "@copado/agentia-cli",
9077
9093
  "pluginName": "@copado/agentia-cli",
9078
9094
  "pluginType": "core",
@@ -9084,18 +9100,23 @@
9084
9100
  "commands",
9085
9101
  "cicd",
9086
9102
  "data",
9087
- "records",
9088
- "match.js"
9103
+ "formula",
9104
+ "create.js"
9089
9105
  ]
9090
9106
  },
9091
- "cicd:data:records:search": {
9107
+ "cicd:data:formula:list": {
9092
9108
  "aliases": [],
9093
- "args": {},
9094
- "description": "Search data records for a data template",
9109
+ "args": {
9110
+ "objectApiName": {
9111
+ "description": "sObject API name",
9112
+ "name": "objectApiName",
9113
+ "required": true
9114
+ }
9115
+ },
9116
+ "description": "List record matching formulas for an sObject",
9095
9117
  "examples": [
9096
- "<%= config.bin %> <%= command.id %> --credential-id a0Y... --data-template-id a0X...",
9097
- "<%= config.bin %> <%= command.id %> --credential-id a0Y... --data-template-id a0X... --file request.json",
9098
- "<%= config.bin %> <%= command.id %> --credential-id a0Y... --data-template-id a0X... --json"
9118
+ "<%= config.bin %> <%= command.id %> Account",
9119
+ "<%= config.bin %> <%= command.id %> Account --json"
9099
9120
  ],
9100
9121
  "flags": {
9101
9122
  "json": {
@@ -9104,54 +9125,11 @@
9104
9125
  "name": "json",
9105
9126
  "allowNo": false,
9106
9127
  "type": "boolean"
9107
- },
9108
- "changed-date-from": {
9109
- "description": "Optional changed-date-from filter (ISO datetime)",
9110
- "name": "changed-date-from",
9111
- "hasDynamicHelp": false,
9112
- "multiple": false,
9113
- "type": "option"
9114
- },
9115
- "credential-id": {
9116
- "description": "Org credential Id",
9117
- "name": "credential-id",
9118
- "required": true,
9119
- "hasDynamicHelp": false,
9120
- "multiple": false,
9121
- "type": "option"
9122
- },
9123
- "data-template-id": {
9124
- "description": "Data template Id",
9125
- "name": "data-template-id",
9126
- "required": true,
9127
- "hasDynamicHelp": false,
9128
- "multiple": false,
9129
- "type": "option"
9130
- },
9131
- "file": {
9132
- "char": "f",
9133
- "description": "Path to a JSON file body",
9134
- "exclusive": [
9135
- "stdin"
9136
- ],
9137
- "name": "file",
9138
- "hasDynamicHelp": false,
9139
- "multiple": false,
9140
- "type": "option"
9141
- },
9142
- "stdin": {
9143
- "description": "Read the JSON body from stdin",
9144
- "exclusive": [
9145
- "file"
9146
- ],
9147
- "name": "stdin",
9148
- "allowNo": false,
9149
- "type": "boolean"
9150
9128
  }
9151
9129
  },
9152
9130
  "hasDynamicHelp": false,
9153
9131
  "hiddenAliases": [],
9154
- "id": "cicd:data:records:search",
9132
+ "id": "cicd:data:formula:list",
9155
9133
  "pluginAlias": "@copado/agentia-cli",
9156
9134
  "pluginName": "@copado/agentia-cli",
9157
9135
  "pluginType": "core",
@@ -9163,23 +9141,24 @@
9163
9141
  "commands",
9164
9142
  "cicd",
9165
9143
  "data",
9166
- "records",
9167
- "search.js"
9144
+ "formula",
9145
+ "list.js"
9168
9146
  ]
9169
9147
  },
9170
- "cicd:data:formula:create": {
9148
+ "cicd:data:formula:update": {
9171
9149
  "aliases": [],
9172
9150
  "args": {
9173
- "dataTemplateId": {
9174
- "description": "Data template Id",
9175
- "name": "dataTemplateId",
9151
+ "formulaId": {
9152
+ "description": "Record matching formula Id",
9153
+ "name": "formulaId",
9176
9154
  "required": true
9177
9155
  }
9178
9156
  },
9179
- "description": "Create a record matching formula for a data template",
9157
+ "description": "Update a record matching formula",
9180
9158
  "examples": [
9181
- "<%= config.bin %> <%= command.id %> a0X... --name MatchByName --object-api-name Account --fields Name,BillingCity",
9182
- "<%= config.bin %> <%= command.id %> a0X... --name MatchByName --object-api-name Account --fields Name --fields BillingCity --hash-formula --json"
9159
+ "<%= config.bin %> <%= command.id %> a0F... --name MatchByName --object-api-name Account --fields Name,BillingCity",
9160
+ "<%= config.bin %> <%= command.id %> a0F... --file formula.json",
9161
+ "<%= config.bin %> <%= command.id %> a0F... --stdin --json"
9183
9162
  ],
9184
9163
  "flags": {
9185
9164
  "json": {
@@ -9192,21 +9171,19 @@
9192
9171
  "fields": {
9193
9172
  "description": "Formula fields (repeatable or comma-separated, up to 3)",
9194
9173
  "name": "fields",
9195
- "required": true,
9196
9174
  "hasDynamicHelp": false,
9197
9175
  "multiple": true,
9198
9176
  "type": "option"
9199
9177
  },
9200
9178
  "hash-formula": {
9201
- "description": "Enable hash formula",
9179
+ "description": "Enable or disable hash formula",
9202
9180
  "name": "hash-formula",
9203
- "allowNo": false,
9181
+ "allowNo": true,
9204
9182
  "type": "boolean"
9205
9183
  },
9206
9184
  "name": {
9207
9185
  "description": "Formula name",
9208
9186
  "name": "name",
9209
- "required": true,
9210
9187
  "hasDynamicHelp": false,
9211
9188
  "multiple": false,
9212
9189
  "type": "option"
@@ -9214,15 +9191,34 @@
9214
9191
  "object-api-name": {
9215
9192
  "description": "sObject API name",
9216
9193
  "name": "object-api-name",
9217
- "required": true,
9218
9194
  "hasDynamicHelp": false,
9219
9195
  "multiple": false,
9220
9196
  "type": "option"
9197
+ },
9198
+ "file": {
9199
+ "char": "f",
9200
+ "description": "Path to a JSON file body",
9201
+ "exclusive": [
9202
+ "stdin"
9203
+ ],
9204
+ "name": "file",
9205
+ "hasDynamicHelp": false,
9206
+ "multiple": false,
9207
+ "type": "option"
9208
+ },
9209
+ "stdin": {
9210
+ "description": "Read the JSON body from stdin",
9211
+ "exclusive": [
9212
+ "file"
9213
+ ],
9214
+ "name": "stdin",
9215
+ "allowNo": false,
9216
+ "type": "boolean"
9221
9217
  }
9222
9218
  },
9223
9219
  "hasDynamicHelp": false,
9224
9220
  "hiddenAliases": [],
9225
- "id": "cicd:data:formula:create",
9221
+ "id": "cicd:data:formula:update",
9226
9222
  "pluginAlias": "@copado/agentia-cli",
9227
9223
  "pluginName": "@copado/agentia-cli",
9228
9224
  "pluginType": "core",
@@ -9235,22 +9231,16 @@
9235
9231
  "cicd",
9236
9232
  "data",
9237
9233
  "formula",
9238
- "create.js"
9234
+ "update.js"
9239
9235
  ]
9240
9236
  },
9241
- "cicd:data:formula:list": {
9237
+ "cicd:data:records:match": {
9242
9238
  "aliases": [],
9243
- "args": {
9244
- "objectApiName": {
9245
- "description": "sObject API name",
9246
- "name": "objectApiName",
9247
- "required": true
9248
- }
9249
- },
9250
- "description": "List record matching formulas for an sObject",
9239
+ "args": {},
9240
+ "description": "Match a source data record to a destination org",
9251
9241
  "examples": [
9252
- "<%= config.bin %> <%= command.id %> Account",
9253
- "<%= config.bin %> <%= command.id %> Account --json"
9242
+ "<%= config.bin %> <%= command.id %> --file match.json",
9243
+ "<%= config.bin %> <%= command.id %> --stdin --json"
9254
9244
  ],
9255
9245
  "flags": {
9256
9246
  "json": {
@@ -9259,11 +9249,31 @@
9259
9249
  "name": "json",
9260
9250
  "allowNo": false,
9261
9251
  "type": "boolean"
9252
+ },
9253
+ "file": {
9254
+ "char": "f",
9255
+ "description": "Path to a JSON file body",
9256
+ "exclusive": [
9257
+ "stdin"
9258
+ ],
9259
+ "name": "file",
9260
+ "hasDynamicHelp": false,
9261
+ "multiple": false,
9262
+ "type": "option"
9263
+ },
9264
+ "stdin": {
9265
+ "description": "Read the JSON body from stdin",
9266
+ "exclusive": [
9267
+ "file"
9268
+ ],
9269
+ "name": "stdin",
9270
+ "allowNo": false,
9271
+ "type": "boolean"
9262
9272
  }
9263
9273
  },
9264
9274
  "hasDynamicHelp": false,
9265
9275
  "hiddenAliases": [],
9266
- "id": "cicd:data:formula:list",
9276
+ "id": "cicd:data:records:match",
9267
9277
  "pluginAlias": "@copado/agentia-cli",
9268
9278
  "pluginName": "@copado/agentia-cli",
9269
9279
  "pluginType": "core",
@@ -9275,24 +9285,18 @@
9275
9285
  "commands",
9276
9286
  "cicd",
9277
9287
  "data",
9278
- "formula",
9279
- "list.js"
9288
+ "records",
9289
+ "match.js"
9280
9290
  ]
9281
9291
  },
9282
- "cicd:data:formula:update": {
9292
+ "cicd:data:records:search": {
9283
9293
  "aliases": [],
9284
- "args": {
9285
- "formulaId": {
9286
- "description": "Record matching formula Id",
9287
- "name": "formulaId",
9288
- "required": true
9289
- }
9290
- },
9291
- "description": "Update a record matching formula",
9294
+ "args": {},
9295
+ "description": "Search data records for a data template",
9292
9296
  "examples": [
9293
- "<%= config.bin %> <%= command.id %> a0F... --name MatchByName --object-api-name Account --fields Name,BillingCity",
9294
- "<%= config.bin %> <%= command.id %> a0F... --file formula.json",
9295
- "<%= config.bin %> <%= command.id %> a0F... --stdin --json"
9297
+ "<%= config.bin %> <%= command.id %> --credential-id a0Y... --data-template-id a0X...",
9298
+ "<%= config.bin %> <%= command.id %> --credential-id a0Y... --data-template-id a0X... --file request.json",
9299
+ "<%= config.bin %> <%= command.id %> --credential-id a0Y... --data-template-id a0X... --json"
9296
9300
  ],
9297
9301
  "flags": {
9298
9302
  "json": {
@@ -9302,29 +9306,25 @@
9302
9306
  "allowNo": false,
9303
9307
  "type": "boolean"
9304
9308
  },
9305
- "fields": {
9306
- "description": "Formula fields (repeatable or comma-separated, up to 3)",
9307
- "name": "fields",
9309
+ "changed-date-from": {
9310
+ "description": "Optional changed-date-from filter (ISO datetime)",
9311
+ "name": "changed-date-from",
9308
9312
  "hasDynamicHelp": false,
9309
- "multiple": true,
9313
+ "multiple": false,
9310
9314
  "type": "option"
9311
9315
  },
9312
- "hash-formula": {
9313
- "description": "Enable or disable hash formula",
9314
- "name": "hash-formula",
9315
- "allowNo": true,
9316
- "type": "boolean"
9317
- },
9318
- "name": {
9319
- "description": "Formula name",
9320
- "name": "name",
9316
+ "credential-id": {
9317
+ "description": "Org credential Id",
9318
+ "name": "credential-id",
9319
+ "required": true,
9321
9320
  "hasDynamicHelp": false,
9322
9321
  "multiple": false,
9323
9322
  "type": "option"
9324
9323
  },
9325
- "object-api-name": {
9326
- "description": "sObject API name",
9327
- "name": "object-api-name",
9324
+ "data-template-id": {
9325
+ "description": "Data template Id",
9326
+ "name": "data-template-id",
9327
+ "required": true,
9328
9328
  "hasDynamicHelp": false,
9329
9329
  "multiple": false,
9330
9330
  "type": "option"
@@ -9352,7 +9352,7 @@
9352
9352
  },
9353
9353
  "hasDynamicHelp": false,
9354
9354
  "hiddenAliases": [],
9355
- "id": "cicd:data:formula:update",
9355
+ "id": "cicd:data:records:search",
9356
9356
  "pluginAlias": "@copado/agentia-cli",
9357
9357
  "pluginName": "@copado/agentia-cli",
9358
9358
  "pluginType": "core",
@@ -9364,8 +9364,8 @@
9364
9364
  "commands",
9365
9365
  "cicd",
9366
9366
  "data",
9367
- "formula",
9368
- "update.js"
9367
+ "records",
9368
+ "search.js"
9369
9369
  ]
9370
9370
  },
9371
9371
  "cicd:data:sobject:fields": {
@@ -10014,6 +10014,55 @@
10014
10014
  "get.js"
10015
10015
  ]
10016
10016
  },
10017
+ "cicd:job:log:get": {
10018
+ "aliases": [],
10019
+ "args": {
10020
+ "id": {
10021
+ "description": "JobExecution Id",
10022
+ "name": "id",
10023
+ "required": true
10024
+ }
10025
+ },
10026
+ "description": "Get log output for a Copado job execution step",
10027
+ "examples": [
10028
+ "<%= config.bin %> <%= command.id %> <job-id>",
10029
+ "<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
10030
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
10031
+ ],
10032
+ "flags": {
10033
+ "json": {
10034
+ "description": "Format output as json.",
10035
+ "helpGroup": "GLOBAL",
10036
+ "name": "json",
10037
+ "allowNo": false,
10038
+ "type": "boolean"
10039
+ },
10040
+ "step": {
10041
+ "description": "Job step Id (defaults to the first step with a result Id)",
10042
+ "name": "step",
10043
+ "hasDynamicHelp": false,
10044
+ "multiple": false,
10045
+ "type": "option"
10046
+ }
10047
+ },
10048
+ "hasDynamicHelp": false,
10049
+ "hiddenAliases": [],
10050
+ "id": "cicd:job:log:get",
10051
+ "pluginAlias": "@copado/agentia-cli",
10052
+ "pluginName": "@copado/agentia-cli",
10053
+ "pluginType": "core",
10054
+ "strict": true,
10055
+ "enableJsonFlag": true,
10056
+ "isESM": true,
10057
+ "relativePath": [
10058
+ "dist",
10059
+ "commands",
10060
+ "cicd",
10061
+ "job",
10062
+ "log",
10063
+ "get.js"
10064
+ ]
10065
+ },
10017
10066
  "cicd:metadata:content:compare": {
10018
10067
  "aliases": [],
10019
10068
  "args": {},
@@ -10788,55 +10837,6 @@
10788
10837
  "status.js"
10789
10838
  ]
10790
10839
  },
10791
- "cicd:job:log:get": {
10792
- "aliases": [],
10793
- "args": {
10794
- "id": {
10795
- "description": "JobExecution Id",
10796
- "name": "id",
10797
- "required": true
10798
- }
10799
- },
10800
- "description": "Get log output for a Copado job execution step",
10801
- "examples": [
10802
- "<%= config.bin %> <%= command.id %> <job-id>",
10803
- "<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
10804
- "<%= config.bin %> <%= command.id %> <job-id> --json"
10805
- ],
10806
- "flags": {
10807
- "json": {
10808
- "description": "Format output as json.",
10809
- "helpGroup": "GLOBAL",
10810
- "name": "json",
10811
- "allowNo": false,
10812
- "type": "boolean"
10813
- },
10814
- "step": {
10815
- "description": "Job step Id (defaults to the first step with a result Id)",
10816
- "name": "step",
10817
- "hasDynamicHelp": false,
10818
- "multiple": false,
10819
- "type": "option"
10820
- }
10821
- },
10822
- "hasDynamicHelp": false,
10823
- "hiddenAliases": [],
10824
- "id": "cicd:job:log:get",
10825
- "pluginAlias": "@copado/agentia-cli",
10826
- "pluginName": "@copado/agentia-cli",
10827
- "pluginType": "core",
10828
- "strict": true,
10829
- "enableJsonFlag": true,
10830
- "isESM": true,
10831
- "relativePath": [
10832
- "dist",
10833
- "commands",
10834
- "cicd",
10835
- "job",
10836
- "log",
10837
- "get.js"
10838
- ]
10839
- },
10840
10840
  "cicd:pipeline:connection:list": {
10841
10841
  "aliases": [],
10842
10842
  "args": {},
@@ -11981,20 +11981,21 @@
11981
11981
  "update.js"
11982
11982
  ]
11983
11983
  },
11984
- "cicd:function:result:log:get": {
11984
+ "cicd:environment:auth:web:login": {
11985
11985
  "aliases": [],
11986
11986
  "args": {
11987
- "result-id": {
11988
- "description": "Function result Id",
11989
- "name": "result-id",
11987
+ "id": {
11988
+ "description": "Copado environment ID",
11989
+ "name": "id",
11990
11990
  "required": true
11991
11991
  }
11992
11992
  },
11993
- "description": "Get log output for a Copado Function result",
11993
+ "description": "Authenticate an environment credential via browser web login",
11994
11994
  "examples": [
11995
- "<%= config.bin %> <%= command.id %> <result-id>",
11996
- "<%= config.bin %> <%= command.id %> <result-id> --type stdout",
11997
- "<%= config.bin %> <%= command.id %> <result-id> --json"
11995
+ "<%= config.bin %> <%= command.id %> <environment-id>",
11996
+ "<%= config.bin %> <%= command.id %> <environment-id> --credentialid <credential-id>",
11997
+ "<%= config.bin %> <%= command.id %> <environment-id> --port 8085 --timeout 120",
11998
+ "<%= config.bin %> <%= command.id %> <environment-id> --json"
11998
11999
  ],
11999
12000
  "flags": {
12000
12001
  "json": {
@@ -12004,9 +12005,24 @@
12004
12005
  "allowNo": false,
12005
12006
  "type": "boolean"
12006
12007
  },
12007
- "type": {
12008
- "description": "Optional log file type filter",
12009
- "name": "type",
12008
+ "credentialid": {
12009
+ "description": "Credential ID to authenticate when automatic selection is not possible",
12010
+ "name": "credentialid",
12011
+ "hasDynamicHelp": false,
12012
+ "multiple": false,
12013
+ "type": "option"
12014
+ },
12015
+ "port": {
12016
+ "description": "Local loopback port (default: scan 8080-8090)",
12017
+ "name": "port",
12018
+ "hasDynamicHelp": false,
12019
+ "multiple": false,
12020
+ "type": "option"
12021
+ },
12022
+ "timeout": {
12023
+ "description": "Max seconds to wait for browser login",
12024
+ "name": "timeout",
12025
+ "default": 300,
12010
12026
  "hasDynamicHelp": false,
12011
12027
  "multiple": false,
12012
12028
  "type": "option"
@@ -12014,7 +12030,7 @@
12014
12030
  },
12015
12031
  "hasDynamicHelp": false,
12016
12032
  "hiddenAliases": [],
12017
- "id": "cicd:function:result:log:get",
12033
+ "id": "cicd:environment:auth:web:login",
12018
12034
  "pluginAlias": "@copado/agentia-cli",
12019
12035
  "pluginName": "@copado/agentia-cli",
12020
12036
  "pluginType": "core",
@@ -12025,27 +12041,26 @@
12025
12041
  "dist",
12026
12042
  "commands",
12027
12043
  "cicd",
12028
- "function",
12029
- "result",
12030
- "log",
12031
- "get.js"
12044
+ "environment",
12045
+ "auth",
12046
+ "web",
12047
+ "login.js"
12032
12048
  ]
12033
12049
  },
12034
- "cicd:environment:auth:web:login": {
12050
+ "cicd:function:result:log:get": {
12035
12051
  "aliases": [],
12036
12052
  "args": {
12037
- "id": {
12038
- "description": "Copado environment ID",
12039
- "name": "id",
12053
+ "result-id": {
12054
+ "description": "Function result Id",
12055
+ "name": "result-id",
12040
12056
  "required": true
12041
12057
  }
12042
12058
  },
12043
- "description": "Authenticate an environment credential via browser web login",
12059
+ "description": "Get log output for a Copado Function result",
12044
12060
  "examples": [
12045
- "<%= config.bin %> <%= command.id %> <environment-id>",
12046
- "<%= config.bin %> <%= command.id %> <environment-id> --credentialid <credential-id>",
12047
- "<%= config.bin %> <%= command.id %> <environment-id> --port 8085 --timeout 120",
12048
- "<%= config.bin %> <%= command.id %> <environment-id> --json"
12061
+ "<%= config.bin %> <%= command.id %> <result-id>",
12062
+ "<%= config.bin %> <%= command.id %> <result-id> --type stdout",
12063
+ "<%= config.bin %> <%= command.id %> <result-id> --json"
12049
12064
  ],
12050
12065
  "flags": {
12051
12066
  "json": {
@@ -12055,24 +12070,9 @@
12055
12070
  "allowNo": false,
12056
12071
  "type": "boolean"
12057
12072
  },
12058
- "credentialid": {
12059
- "description": "Credential ID to authenticate when automatic selection is not possible",
12060
- "name": "credentialid",
12061
- "hasDynamicHelp": false,
12062
- "multiple": false,
12063
- "type": "option"
12064
- },
12065
- "port": {
12066
- "description": "Local loopback port (default: scan 8080-8090)",
12067
- "name": "port",
12068
- "hasDynamicHelp": false,
12069
- "multiple": false,
12070
- "type": "option"
12071
- },
12072
- "timeout": {
12073
- "description": "Max seconds to wait for browser login",
12074
- "name": "timeout",
12075
- "default": 300,
12073
+ "type": {
12074
+ "description": "Optional log file type filter",
12075
+ "name": "type",
12076
12076
  "hasDynamicHelp": false,
12077
12077
  "multiple": false,
12078
12078
  "type": "option"
@@ -12080,7 +12080,7 @@
12080
12080
  },
12081
12081
  "hasDynamicHelp": false,
12082
12082
  "hiddenAliases": [],
12083
- "id": "cicd:environment:auth:web:login",
12083
+ "id": "cicd:function:result:log:get",
12084
12084
  "pluginAlias": "@copado/agentia-cli",
12085
12085
  "pluginName": "@copado/agentia-cli",
12086
12086
  "pluginType": "core",
@@ -12091,12 +12091,12 @@
12091
12091
  "dist",
12092
12092
  "commands",
12093
12093
  "cicd",
12094
- "environment",
12095
- "auth",
12096
- "web",
12097
- "login.js"
12094
+ "function",
12095
+ "result",
12096
+ "log",
12097
+ "get.js"
12098
12098
  ]
12099
12099
  }
12100
12100
  },
12101
- "version": "0.71.0-alpha.0"
12101
+ "version": "0.72.0-alpha.0"
12102
12102
  }