@copado/agentia-cli 0.109.0-alpha.0 → 0.110.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 (79) hide show
  1. package/README.md +253 -184
  2. package/dist/commands/ai/session/list.d.ts +14 -0
  3. package/dist/commands/ai/session/list.js +46 -0
  4. package/dist/commands/ai/session/list.js.map +1 -0
  5. package/dist/commands/ai/session/start.d.ts +17 -0
  6. package/dist/commands/ai/session/start.js +60 -0
  7. package/dist/commands/ai/session/start.js.map +1 -0
  8. package/dist/commands/cicd/notification/configure.d.ts +1 -1
  9. package/dist/commands/cicd/work/deployment-step/create.d.ts +1 -1
  10. package/dist/commands/testing/build/run.d.ts +1 -1
  11. package/dist/commands/testing/job/update.d.ts +1 -1
  12. package/dist/commands/testing/run.d.ts +1 -1
  13. package/dist/commands/testing/test/run.d.ts +1 -1
  14. package/dist/lib/ai-chat-session.d.ts +3 -0
  15. package/dist/lib/ai-chat-session.js +180 -64
  16. package/dist/lib/ai-chat-session.js.map +1 -1
  17. package/dist/lib/ai-gateway.d.ts +8 -1
  18. package/dist/lib/ai-gateway.js +34 -2
  19. package/dist/lib/ai-gateway.js.map +1 -1
  20. package/dist/lib/ai-session-banner.d.ts +5 -0
  21. package/dist/lib/ai-session-banner.js +20 -0
  22. package/dist/lib/ai-session-banner.js.map +1 -0
  23. package/dist/lib/ai-session-tui-blocks.d.ts +9 -0
  24. package/dist/lib/ai-session-tui-blocks.js +36 -0
  25. package/dist/lib/ai-session-tui-blocks.js.map +1 -0
  26. package/dist/lib/ai-session-tui-clipboard.d.ts +22 -0
  27. package/dist/lib/ai-session-tui-clipboard.js +78 -0
  28. package/dist/lib/ai-session-tui-clipboard.js.map +1 -0
  29. package/dist/lib/ai-session-tui-composer.d.ts +35 -0
  30. package/dist/lib/ai-session-tui-composer.js +96 -0
  31. package/dist/lib/ai-session-tui-composer.js.map +1 -0
  32. package/dist/lib/ai-session-tui-highlight.d.ts +11 -0
  33. package/dist/lib/ai-session-tui-highlight.js +310 -0
  34. package/dist/lib/ai-session-tui-highlight.js.map +1 -0
  35. package/dist/lib/ai-session-tui-keys.d.ts +42 -0
  36. package/dist/lib/ai-session-tui-keys.js +159 -0
  37. package/dist/lib/ai-session-tui-keys.js.map +1 -0
  38. package/dist/lib/ai-session-tui-mermaid-image.d.ts +43 -0
  39. package/dist/lib/ai-session-tui-mermaid-image.js +444 -0
  40. package/dist/lib/ai-session-tui-mermaid-image.js.map +1 -0
  41. package/dist/lib/ai-session-tui-mermaid-paint.d.ts +3 -0
  42. package/dist/lib/ai-session-tui-mermaid-paint.js +182 -0
  43. package/dist/lib/ai-session-tui-mermaid-paint.js.map +1 -0
  44. package/dist/lib/ai-session-tui-mermaid.d.ts +19 -0
  45. package/dist/lib/ai-session-tui-mermaid.js +158 -0
  46. package/dist/lib/ai-session-tui-mermaid.js.map +1 -0
  47. package/dist/lib/ai-session-tui-message.d.ts +9 -0
  48. package/dist/lib/ai-session-tui-message.js +24 -0
  49. package/dist/lib/ai-session-tui-message.js.map +1 -0
  50. package/dist/lib/ai-session-tui-scroll.d.ts +32 -0
  51. package/dist/lib/ai-session-tui-scroll.js +148 -0
  52. package/dist/lib/ai-session-tui-scroll.js.map +1 -0
  53. package/dist/lib/ai-session-tui-slash.d.ts +14 -0
  54. package/dist/lib/ai-session-tui-slash.js +53 -0
  55. package/dist/lib/ai-session-tui-slash.js.map +1 -0
  56. package/dist/lib/ai-session-tui-welcome.d.ts +12 -0
  57. package/dist/lib/ai-session-tui-welcome.js +33 -0
  58. package/dist/lib/ai-session-tui-welcome.js.map +1 -0
  59. package/dist/lib/ai-session-tui-wrap.d.ts +2 -0
  60. package/dist/lib/ai-session-tui-wrap.js +24 -0
  61. package/dist/lib/ai-session-tui-wrap.js.map +1 -0
  62. package/dist/lib/ai-session-tui.d.ts +7 -0
  63. package/dist/lib/ai-session-tui.js +859 -0
  64. package/dist/lib/ai-session-tui.js.map +1 -0
  65. package/dist/lib/ai-sessions.d.ts +17 -0
  66. package/dist/lib/ai-sessions.js +142 -0
  67. package/dist/lib/ai-sessions.js.map +1 -0
  68. package/dist/lib/ai-types.d.ts +19 -0
  69. package/dist/lib/ai-types.js +49 -1
  70. package/dist/lib/ai-types.js.map +1 -1
  71. package/dist/lib/format.d.ts +2 -0
  72. package/dist/lib/format.js +5 -2
  73. package/dist/lib/format.js.map +1 -1
  74. package/dist/lib/mcp/tools.d.ts +2 -2
  75. package/dist/lib/testing-flags.d.ts +1 -1
  76. package/oclif.manifest.json +1759 -1608
  77. package/package.json +10 -1
  78. package/templates/skills/agentia-ai/SKILL.md +5 -5
  79. package/templates/skills/agentia-ai/references/ai-agents.md +18 -3
@@ -1122,6 +1122,157 @@
1122
1122
  "get.js"
1123
1123
  ]
1124
1124
  },
1125
+ "ai:session:list": {
1126
+ "aliases": [],
1127
+ "args": {},
1128
+ "description": "List Copado AI dialogue sessions",
1129
+ "examples": [
1130
+ "<%= config.bin %> <%= command.id %>",
1131
+ "<%= config.bin %> <%= command.id %> --page-size 15",
1132
+ "<%= config.bin %> <%= command.id %> --workspace 42d0b908-37b7-4565-9ec9-86eda40c9782 --json"
1133
+ ],
1134
+ "flags": {
1135
+ "json": {
1136
+ "description": "Format output as json.",
1137
+ "helpGroup": "GLOBAL",
1138
+ "name": "json",
1139
+ "allowNo": false,
1140
+ "type": "boolean"
1141
+ },
1142
+ "timeout": {
1143
+ "description": "AI gateway timeout in seconds.",
1144
+ "name": "timeout",
1145
+ "hasDynamicHelp": false,
1146
+ "multiple": false,
1147
+ "type": "option"
1148
+ },
1149
+ "cursor": {
1150
+ "description": "Opaque pagination cursor from a previous list response (nextCursor)",
1151
+ "name": "cursor",
1152
+ "hasDynamicHelp": false,
1153
+ "multiple": false,
1154
+ "type": "option"
1155
+ },
1156
+ "page-size": {
1157
+ "description": "Number of sessions to show (1-200)",
1158
+ "name": "page-size",
1159
+ "default": 15,
1160
+ "hasDynamicHelp": false,
1161
+ "multiple": false,
1162
+ "type": "option"
1163
+ },
1164
+ "workspace": {
1165
+ "description": "Copado AI workspace UUID to filter sessions",
1166
+ "name": "workspace",
1167
+ "hasDynamicHelp": false,
1168
+ "multiple": false,
1169
+ "type": "option"
1170
+ }
1171
+ },
1172
+ "hasDynamicHelp": false,
1173
+ "hiddenAliases": [],
1174
+ "id": "ai:session:list",
1175
+ "pluginAlias": "@copado/agentia-cli",
1176
+ "pluginName": "@copado/agentia-cli",
1177
+ "pluginType": "core",
1178
+ "strict": true,
1179
+ "enableJsonFlag": true,
1180
+ "isESM": true,
1181
+ "relativePath": [
1182
+ "dist",
1183
+ "commands",
1184
+ "ai",
1185
+ "session",
1186
+ "list.js"
1187
+ ]
1188
+ },
1189
+ "ai:session:start": {
1190
+ "aliases": [],
1191
+ "args": {},
1192
+ "description": "Start or resume an interactive Copado AI session",
1193
+ "examples": [
1194
+ "<%= config.bin %> <%= command.id %>",
1195
+ "<%= config.bin %> <%= command.id %> --dialogue 42d0b908-37b7-4565-9ec9-86eda40c9782",
1196
+ "<%= config.bin %> <%= command.id %> --agent build --user-story US-1042"
1197
+ ],
1198
+ "flags": {
1199
+ "agent": {
1200
+ "description": "Copado AI agent to start on",
1201
+ "name": "agent",
1202
+ "default": "orchestrate",
1203
+ "hasDynamicHelp": false,
1204
+ "multiple": false,
1205
+ "options": [
1206
+ "plan",
1207
+ "build",
1208
+ "test",
1209
+ "release",
1210
+ "operate",
1211
+ "knowledge",
1212
+ "orchestrate"
1213
+ ],
1214
+ "type": "option"
1215
+ },
1216
+ "component": {
1217
+ "description": "Metadata component name prepended to the first prompt as context",
1218
+ "name": "component",
1219
+ "hasDynamicHelp": false,
1220
+ "multiple": false,
1221
+ "type": "option"
1222
+ },
1223
+ "dialogue": {
1224
+ "description": "Copado AI dialogue UUID to resume",
1225
+ "name": "dialogue",
1226
+ "hasDynamicHelp": false,
1227
+ "multiple": false,
1228
+ "type": "option"
1229
+ },
1230
+ "timeout": {
1231
+ "description": "AI gateway timeout in seconds.",
1232
+ "name": "timeout",
1233
+ "hasDynamicHelp": false,
1234
+ "multiple": false,
1235
+ "type": "option"
1236
+ },
1237
+ "sf-org": {
1238
+ "description": "Salesforce org or environment name prepended to the first prompt as context",
1239
+ "name": "sf-org",
1240
+ "hasDynamicHelp": false,
1241
+ "multiple": false,
1242
+ "type": "option"
1243
+ },
1244
+ "user-story": {
1245
+ "description": "Copado user story id prepended to the first prompt as context",
1246
+ "name": "user-story",
1247
+ "hasDynamicHelp": false,
1248
+ "multiple": false,
1249
+ "type": "option"
1250
+ },
1251
+ "workspace": {
1252
+ "description": "Override the workspace UUID from auth or AGENTIA_AI_WORKSPACE; omit to use that default",
1253
+ "name": "workspace",
1254
+ "hasDynamicHelp": false,
1255
+ "multiple": false,
1256
+ "type": "option"
1257
+ }
1258
+ },
1259
+ "hasDynamicHelp": false,
1260
+ "hiddenAliases": [],
1261
+ "id": "ai:session:start",
1262
+ "pluginAlias": "@copado/agentia-cli",
1263
+ "pluginName": "@copado/agentia-cli",
1264
+ "pluginType": "core",
1265
+ "strict": true,
1266
+ "enableJsonFlag": false,
1267
+ "isESM": true,
1268
+ "relativePath": [
1269
+ "dist",
1270
+ "commands",
1271
+ "ai",
1272
+ "session",
1273
+ "start.js"
1274
+ ]
1275
+ },
1125
1276
  "ai:workspace:create": {
1126
1277
  "aliases": [],
1127
1278
  "args": {},
@@ -1957,13 +2108,14 @@
1957
2108
  "update.js"
1958
2109
  ]
1959
2110
  },
1960
- "cicd:function:defaults": {
2111
+ "cicd:metadata:list": {
1961
2112
  "aliases": [],
1962
2113
  "args": {},
1963
- "description": "Scaffold default Copado Function metadata and script without writing to Salesforce",
2114
+ "description": "Search the metadata index for an org via the CICD gateway",
1964
2115
  "examples": [
1965
- "<%= config.bin %> <%= command.id %> --name MyFunction",
1966
- "<%= config.bin %> <%= command.id %> --name MyFunction --runtime python --json"
2116
+ "<%= config.bin %> <%= command.id %> --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
2117
+ "<%= config.bin %> <%= command.id %> --source Changed --metadata-types ApexClass --limit 100 --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
2118
+ "<%= config.bin %> <%= command.id %> --source NewAndChanged --find-managed-packages --json"
1967
2119
  ],
1968
2120
  "flags": {
1969
2121
  "json": {
@@ -1973,127 +2125,294 @@
1973
2125
  "allowNo": false,
1974
2126
  "type": "boolean"
1975
2127
  },
1976
- "image-name": {
1977
- "description": "Function container image",
1978
- "name": "image-name",
1979
- "default": "copado-function-core:v1",
2128
+ "avoid-source-tracking": {
2129
+ "description": "Pass avoidSourceTracking=true to the gateway index route",
2130
+ "name": "avoid-source-tracking",
2131
+ "allowNo": false,
2132
+ "type": "boolean"
2133
+ },
2134
+ "change-date-from": {
2135
+ "description": "Optional change-date-from filter (ISO datetime)",
2136
+ "name": "change-date-from",
1980
2137
  "hasDynamicHelp": false,
1981
2138
  "multiple": false,
1982
2139
  "type": "option"
1983
2140
  },
1984
- "name": {
1985
- "description": "Function display name used to scaffold defaults",
1986
- "name": "name",
1987
- "required": true,
2141
+ "change-date-to": {
2142
+ "description": "Optional change-date-to filter (ISO datetime)",
2143
+ "name": "change-date-to",
1988
2144
  "hasDynamicHelp": false,
1989
2145
  "multiple": false,
1990
2146
  "type": "option"
1991
2147
  },
1992
- "runtime": {
1993
- "description": "Script runtime",
1994
- "name": "runtime",
1995
- "default": "bash",
2148
+ "filter-type": {
2149
+ "description": "Optional metadata type name filter, for example ApexClass",
2150
+ "name": "filter-type",
1996
2151
  "hasDynamicHelp": false,
1997
2152
  "multiple": false,
1998
- "options": [
1999
- "bash",
2000
- "node",
2001
- "python"
2002
- ],
2003
2153
  "type": "option"
2004
- }
2005
- },
2006
- "hasDynamicHelp": false,
2007
- "hiddenAliases": [],
2008
- "id": "cicd:function:defaults",
2009
- "pluginAlias": "@copado/agentia-cli",
2010
- "pluginName": "@copado/agentia-cli",
2011
- "pluginType": "core",
2012
- "strict": true,
2013
- "enableJsonFlag": true,
2014
- "isESM": true,
2015
- "relativePath": [
2016
- "dist",
2017
- "commands",
2018
- "cicd",
2019
- "function",
2020
- "defaults.js"
2021
- ]
2022
- },
2023
- "cicd:function:delete": {
2024
- "aliases": [],
2025
- "args": {
2026
- "api-name": {
2027
- "description": "Function API name",
2028
- "name": "api-name",
2029
- "required": true
2030
- }
2031
- },
2032
- "description": "Delete a Copado Function by API name",
2033
- "examples": [
2034
- "<%= config.bin %> <%= command.id %> myFunction",
2035
- "<%= config.bin %> <%= command.id %> myFunction --json"
2036
- ],
2037
- "flags": {
2038
- "json": {
2039
- "description": "Format output as json.",
2040
- "helpGroup": "GLOBAL",
2041
- "name": "json",
2042
- "allowNo": false,
2043
- "type": "boolean"
2044
- }
2045
- },
2046
- "hasDynamicHelp": false,
2047
- "hiddenAliases": [],
2048
- "id": "cicd:function:delete",
2049
- "pluginAlias": "@copado/agentia-cli",
2050
- "pluginName": "@copado/agentia-cli",
2051
- "pluginType": "core",
2052
- "strict": true,
2053
- "enableJsonFlag": true,
2054
- "isESM": true,
2055
- "relativePath": [
2056
- "dist",
2057
- "commands",
2058
- "cicd",
2059
- "function",
2060
- "delete.js"
2061
- ]
2062
- },
2063
- "cicd:function:get": {
2064
- "aliases": [],
2065
- "args": {
2066
- "api-name": {
2067
- "description": "Function API name",
2068
- "name": "api-name",
2069
- "required": true
2070
- }
2071
- },
2072
- "description": "Get a Copado Function by API name",
2073
- "examples": [
2074
- "<%= config.bin %> <%= command.id %> myFunction",
2075
- "<%= config.bin %> <%= command.id %> myFunction --json"
2076
- ],
2077
- "flags": {
2078
- "json": {
2079
- "description": "Format output as json.",
2080
- "helpGroup": "GLOBAL",
2081
- "name": "json",
2154
+ },
2155
+ "find-managed-packages": {
2156
+ "description": "Include managed package metadata in the search",
2157
+ "name": "find-managed-packages",
2082
2158
  "allowNo": false,
2083
2159
  "type": "boolean"
2084
- }
2085
- },
2086
- "hasDynamicHelp": false,
2087
- "hiddenAliases": [],
2088
- "id": "cicd:function:get",
2089
- "pluginAlias": "@copado/agentia-cli",
2090
- "pluginName": "@copado/agentia-cli",
2091
- "pluginType": "core",
2092
- "strict": true,
2093
- "enableJsonFlag": true,
2094
- "isESM": true,
2095
- "relativePath": [
2096
- "dist",
2160
+ },
2161
+ "limit": {
2162
+ "description": "Maximum number of records to return",
2163
+ "name": "limit",
2164
+ "hasDynamicHelp": false,
2165
+ "multiple": false,
2166
+ "type": "option"
2167
+ },
2168
+ "metadata-types": {
2169
+ "description": "Optional comma-separated metadata types to include",
2170
+ "name": "metadata-types",
2171
+ "hasDynamicHelp": false,
2172
+ "multiple": false,
2173
+ "type": "option"
2174
+ },
2175
+ "modified-by": {
2176
+ "description": "Filter by last modified user",
2177
+ "name": "modified-by",
2178
+ "hasDynamicHelp": false,
2179
+ "multiple": false,
2180
+ "type": "option"
2181
+ },
2182
+ "module-type": {
2183
+ "description": "Optional addon module type",
2184
+ "name": "module-type",
2185
+ "hasDynamicHelp": false,
2186
+ "multiple": false,
2187
+ "options": [
2188
+ "vlocity",
2189
+ "data_cloud"
2190
+ ],
2191
+ "type": "option"
2192
+ },
2193
+ "order-direction": {
2194
+ "description": "Sort direction for last modified date",
2195
+ "name": "order-direction",
2196
+ "hasDynamicHelp": false,
2197
+ "multiple": false,
2198
+ "options": [
2199
+ "ASC",
2200
+ "DESC"
2201
+ ],
2202
+ "type": "option"
2203
+ },
2204
+ "pipeline-id": {
2205
+ "description": "Pipeline Id",
2206
+ "name": "pipeline-id",
2207
+ "hasDynamicHelp": false,
2208
+ "multiple": false,
2209
+ "type": "option"
2210
+ },
2211
+ "platform-experience": {
2212
+ "description": "Gateway platform experience header",
2213
+ "name": "platform-experience",
2214
+ "default": "salesforce",
2215
+ "hasDynamicHelp": false,
2216
+ "multiple": false,
2217
+ "options": [
2218
+ "salesforce",
2219
+ "sfdx",
2220
+ "metacache",
2221
+ "db"
2222
+ ],
2223
+ "type": "option"
2224
+ },
2225
+ "source": {
2226
+ "description": "Index source filter",
2227
+ "name": "source",
2228
+ "hasDynamicHelp": false,
2229
+ "multiple": false,
2230
+ "options": [
2231
+ "All",
2232
+ "Changed",
2233
+ "Deleted",
2234
+ "New",
2235
+ "NewAndChanged",
2236
+ "PreviouslyCommitted"
2237
+ ],
2238
+ "type": "option"
2239
+ },
2240
+ "source-credential-id": {
2241
+ "description": "Source org credential Id",
2242
+ "name": "source-credential-id",
2243
+ "hasDynamicHelp": false,
2244
+ "multiple": false,
2245
+ "type": "option"
2246
+ },
2247
+ "source-org-id": {
2248
+ "description": "Source org Id",
2249
+ "name": "source-org-id",
2250
+ "hasDynamicHelp": false,
2251
+ "multiple": false,
2252
+ "type": "option"
2253
+ },
2254
+ "target-org-id": {
2255
+ "description": "Optional target org Id",
2256
+ "name": "target-org-id",
2257
+ "hasDynamicHelp": false,
2258
+ "multiple": false,
2259
+ "type": "option"
2260
+ }
2261
+ },
2262
+ "hasDynamicHelp": false,
2263
+ "hiddenAliases": [],
2264
+ "id": "cicd:metadata:list",
2265
+ "pluginAlias": "@copado/agentia-cli",
2266
+ "pluginName": "@copado/agentia-cli",
2267
+ "pluginType": "core",
2268
+ "strict": true,
2269
+ "enableJsonFlag": true,
2270
+ "isESM": true,
2271
+ "relativePath": [
2272
+ "dist",
2273
+ "commands",
2274
+ "cicd",
2275
+ "metadata",
2276
+ "list.js"
2277
+ ]
2278
+ },
2279
+ "cicd:function:defaults": {
2280
+ "aliases": [],
2281
+ "args": {},
2282
+ "description": "Scaffold default Copado Function metadata and script without writing to Salesforce",
2283
+ "examples": [
2284
+ "<%= config.bin %> <%= command.id %> --name MyFunction",
2285
+ "<%= config.bin %> <%= command.id %> --name MyFunction --runtime python --json"
2286
+ ],
2287
+ "flags": {
2288
+ "json": {
2289
+ "description": "Format output as json.",
2290
+ "helpGroup": "GLOBAL",
2291
+ "name": "json",
2292
+ "allowNo": false,
2293
+ "type": "boolean"
2294
+ },
2295
+ "image-name": {
2296
+ "description": "Function container image",
2297
+ "name": "image-name",
2298
+ "default": "copado-function-core:v1",
2299
+ "hasDynamicHelp": false,
2300
+ "multiple": false,
2301
+ "type": "option"
2302
+ },
2303
+ "name": {
2304
+ "description": "Function display name used to scaffold defaults",
2305
+ "name": "name",
2306
+ "required": true,
2307
+ "hasDynamicHelp": false,
2308
+ "multiple": false,
2309
+ "type": "option"
2310
+ },
2311
+ "runtime": {
2312
+ "description": "Script runtime",
2313
+ "name": "runtime",
2314
+ "default": "bash",
2315
+ "hasDynamicHelp": false,
2316
+ "multiple": false,
2317
+ "options": [
2318
+ "bash",
2319
+ "node",
2320
+ "python"
2321
+ ],
2322
+ "type": "option"
2323
+ }
2324
+ },
2325
+ "hasDynamicHelp": false,
2326
+ "hiddenAliases": [],
2327
+ "id": "cicd:function:defaults",
2328
+ "pluginAlias": "@copado/agentia-cli",
2329
+ "pluginName": "@copado/agentia-cli",
2330
+ "pluginType": "core",
2331
+ "strict": true,
2332
+ "enableJsonFlag": true,
2333
+ "isESM": true,
2334
+ "relativePath": [
2335
+ "dist",
2336
+ "commands",
2337
+ "cicd",
2338
+ "function",
2339
+ "defaults.js"
2340
+ ]
2341
+ },
2342
+ "cicd:function:delete": {
2343
+ "aliases": [],
2344
+ "args": {
2345
+ "api-name": {
2346
+ "description": "Function API name",
2347
+ "name": "api-name",
2348
+ "required": true
2349
+ }
2350
+ },
2351
+ "description": "Delete a Copado Function by API name",
2352
+ "examples": [
2353
+ "<%= config.bin %> <%= command.id %> myFunction",
2354
+ "<%= config.bin %> <%= command.id %> myFunction --json"
2355
+ ],
2356
+ "flags": {
2357
+ "json": {
2358
+ "description": "Format output as json.",
2359
+ "helpGroup": "GLOBAL",
2360
+ "name": "json",
2361
+ "allowNo": false,
2362
+ "type": "boolean"
2363
+ }
2364
+ },
2365
+ "hasDynamicHelp": false,
2366
+ "hiddenAliases": [],
2367
+ "id": "cicd:function:delete",
2368
+ "pluginAlias": "@copado/agentia-cli",
2369
+ "pluginName": "@copado/agentia-cli",
2370
+ "pluginType": "core",
2371
+ "strict": true,
2372
+ "enableJsonFlag": true,
2373
+ "isESM": true,
2374
+ "relativePath": [
2375
+ "dist",
2376
+ "commands",
2377
+ "cicd",
2378
+ "function",
2379
+ "delete.js"
2380
+ ]
2381
+ },
2382
+ "cicd:function:get": {
2383
+ "aliases": [],
2384
+ "args": {
2385
+ "api-name": {
2386
+ "description": "Function API name",
2387
+ "name": "api-name",
2388
+ "required": true
2389
+ }
2390
+ },
2391
+ "description": "Get a Copado Function by API name",
2392
+ "examples": [
2393
+ "<%= config.bin %> <%= command.id %> myFunction",
2394
+ "<%= config.bin %> <%= command.id %> myFunction --json"
2395
+ ],
2396
+ "flags": {
2397
+ "json": {
2398
+ "description": "Format output as json.",
2399
+ "helpGroup": "GLOBAL",
2400
+ "name": "json",
2401
+ "allowNo": false,
2402
+ "type": "boolean"
2403
+ }
2404
+ },
2405
+ "hasDynamicHelp": false,
2406
+ "hiddenAliases": [],
2407
+ "id": "cicd:function:get",
2408
+ "pluginAlias": "@copado/agentia-cli",
2409
+ "pluginName": "@copado/agentia-cli",
2410
+ "pluginType": "core",
2411
+ "strict": true,
2412
+ "enableJsonFlag": true,
2413
+ "isESM": true,
2414
+ "relativePath": [
2415
+ "dist",
2097
2416
  "commands",
2098
2417
  "cicd",
2099
2418
  "function",
@@ -2871,174 +3190,6 @@
2871
3190
  "run.js"
2872
3191
  ]
2873
3192
  },
2874
- "cicd:metadata:list": {
2875
- "aliases": [],
2876
- "args": {},
2877
- "description": "Search the metadata index for an org via the CICD gateway",
2878
- "examples": [
2879
- "<%= config.bin %> <%= command.id %> --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
2880
- "<%= config.bin %> <%= command.id %> --source Changed --metadata-types ApexClass --limit 100 --pipeline-id <id> --source-org-id <id> --source-credential-id <id>",
2881
- "<%= config.bin %> <%= command.id %> --source NewAndChanged --find-managed-packages --json"
2882
- ],
2883
- "flags": {
2884
- "json": {
2885
- "description": "Format output as json.",
2886
- "helpGroup": "GLOBAL",
2887
- "name": "json",
2888
- "allowNo": false,
2889
- "type": "boolean"
2890
- },
2891
- "avoid-source-tracking": {
2892
- "description": "Pass avoidSourceTracking=true to the gateway index route",
2893
- "name": "avoid-source-tracking",
2894
- "allowNo": false,
2895
- "type": "boolean"
2896
- },
2897
- "change-date-from": {
2898
- "description": "Optional change-date-from filter (ISO datetime)",
2899
- "name": "change-date-from",
2900
- "hasDynamicHelp": false,
2901
- "multiple": false,
2902
- "type": "option"
2903
- },
2904
- "change-date-to": {
2905
- "description": "Optional change-date-to filter (ISO datetime)",
2906
- "name": "change-date-to",
2907
- "hasDynamicHelp": false,
2908
- "multiple": false,
2909
- "type": "option"
2910
- },
2911
- "filter-type": {
2912
- "description": "Optional metadata type name filter, for example ApexClass",
2913
- "name": "filter-type",
2914
- "hasDynamicHelp": false,
2915
- "multiple": false,
2916
- "type": "option"
2917
- },
2918
- "find-managed-packages": {
2919
- "description": "Include managed package metadata in the search",
2920
- "name": "find-managed-packages",
2921
- "allowNo": false,
2922
- "type": "boolean"
2923
- },
2924
- "limit": {
2925
- "description": "Maximum number of records to return",
2926
- "name": "limit",
2927
- "hasDynamicHelp": false,
2928
- "multiple": false,
2929
- "type": "option"
2930
- },
2931
- "metadata-types": {
2932
- "description": "Optional comma-separated metadata types to include",
2933
- "name": "metadata-types",
2934
- "hasDynamicHelp": false,
2935
- "multiple": false,
2936
- "type": "option"
2937
- },
2938
- "modified-by": {
2939
- "description": "Filter by last modified user",
2940
- "name": "modified-by",
2941
- "hasDynamicHelp": false,
2942
- "multiple": false,
2943
- "type": "option"
2944
- },
2945
- "module-type": {
2946
- "description": "Optional addon module type",
2947
- "name": "module-type",
2948
- "hasDynamicHelp": false,
2949
- "multiple": false,
2950
- "options": [
2951
- "vlocity",
2952
- "data_cloud"
2953
- ],
2954
- "type": "option"
2955
- },
2956
- "order-direction": {
2957
- "description": "Sort direction for last modified date",
2958
- "name": "order-direction",
2959
- "hasDynamicHelp": false,
2960
- "multiple": false,
2961
- "options": [
2962
- "ASC",
2963
- "DESC"
2964
- ],
2965
- "type": "option"
2966
- },
2967
- "pipeline-id": {
2968
- "description": "Pipeline Id",
2969
- "name": "pipeline-id",
2970
- "hasDynamicHelp": false,
2971
- "multiple": false,
2972
- "type": "option"
2973
- },
2974
- "platform-experience": {
2975
- "description": "Gateway platform experience header",
2976
- "name": "platform-experience",
2977
- "default": "salesforce",
2978
- "hasDynamicHelp": false,
2979
- "multiple": false,
2980
- "options": [
2981
- "salesforce",
2982
- "sfdx",
2983
- "metacache",
2984
- "db"
2985
- ],
2986
- "type": "option"
2987
- },
2988
- "source": {
2989
- "description": "Index source filter",
2990
- "name": "source",
2991
- "hasDynamicHelp": false,
2992
- "multiple": false,
2993
- "options": [
2994
- "All",
2995
- "Changed",
2996
- "Deleted",
2997
- "New",
2998
- "NewAndChanged",
2999
- "PreviouslyCommitted"
3000
- ],
3001
- "type": "option"
3002
- },
3003
- "source-credential-id": {
3004
- "description": "Source org credential Id",
3005
- "name": "source-credential-id",
3006
- "hasDynamicHelp": false,
3007
- "multiple": false,
3008
- "type": "option"
3009
- },
3010
- "source-org-id": {
3011
- "description": "Source org Id",
3012
- "name": "source-org-id",
3013
- "hasDynamicHelp": false,
3014
- "multiple": false,
3015
- "type": "option"
3016
- },
3017
- "target-org-id": {
3018
- "description": "Optional target org Id",
3019
- "name": "target-org-id",
3020
- "hasDynamicHelp": false,
3021
- "multiple": false,
3022
- "type": "option"
3023
- }
3024
- },
3025
- "hasDynamicHelp": false,
3026
- "hiddenAliases": [],
3027
- "id": "cicd:metadata:list",
3028
- "pluginAlias": "@copado/agentia-cli",
3029
- "pluginName": "@copado/agentia-cli",
3030
- "pluginType": "core",
3031
- "strict": true,
3032
- "enableJsonFlag": true,
3033
- "isESM": true,
3034
- "relativePath": [
3035
- "dist",
3036
- "commands",
3037
- "cicd",
3038
- "metadata",
3039
- "list.js"
3040
- ]
3041
- },
3042
3193
  "cicd:notification:configure": {
3043
3194
  "aliases": [],
3044
3195
  "args": {},
@@ -3983,6 +4134,50 @@
3983
4134
  "run.js"
3984
4135
  ]
3985
4136
  },
4137
+ "cicd:user:get": {
4138
+ "aliases": [],
4139
+ "args": {},
4140
+ "description": "Get a Copado user by ID (defaults to the authenticated user)",
4141
+ "examples": [
4142
+ "<%= config.bin %> <%= command.id %>",
4143
+ "<%= config.bin %> <%= command.id %> --id me",
4144
+ "<%= config.bin %> <%= command.id %> --id 005000000000000",
4145
+ "<%= config.bin %> <%= command.id %> --json"
4146
+ ],
4147
+ "flags": {
4148
+ "json": {
4149
+ "description": "Format output as json.",
4150
+ "helpGroup": "GLOBAL",
4151
+ "name": "json",
4152
+ "allowNo": false,
4153
+ "type": "boolean"
4154
+ },
4155
+ "id": {
4156
+ "description": "User ID, or \"me\" for the authenticated user",
4157
+ "name": "id",
4158
+ "default": "me",
4159
+ "hasDynamicHelp": false,
4160
+ "multiple": false,
4161
+ "type": "option"
4162
+ }
4163
+ },
4164
+ "hasDynamicHelp": false,
4165
+ "hiddenAliases": [],
4166
+ "id": "cicd:user:get",
4167
+ "pluginAlias": "@copado/agentia-cli",
4168
+ "pluginName": "@copado/agentia-cli",
4169
+ "pluginType": "core",
4170
+ "strict": true,
4171
+ "enableJsonFlag": true,
4172
+ "isESM": true,
4173
+ "relativePath": [
4174
+ "dist",
4175
+ "commands",
4176
+ "cicd",
4177
+ "user",
4178
+ "get.js"
4179
+ ]
4180
+ },
3986
4181
  "cicd:repository:create": {
3987
4182
  "aliases": [],
3988
4183
  "args": {
@@ -4893,14 +5088,14 @@
4893
5088
  "update.js"
4894
5089
  ]
4895
5090
  },
4896
- "cicd:user:get": {
5091
+ "setup:skills:create": {
4897
5092
  "aliases": [],
4898
5093
  "args": {},
4899
- "description": "Get a Copado user by ID (defaults to the authenticated user)",
5094
+ "description": "Create portable Markdown-only Agentia CLI skills in this project without overwriting managed files",
4900
5095
  "examples": [
4901
5096
  "<%= config.bin %> <%= command.id %>",
4902
- "<%= config.bin %> <%= command.id %> --id me",
4903
- "<%= config.bin %> <%= command.id %> --id 005000000000000",
5097
+ "<%= config.bin %> <%= command.id %> --cicd --target agents --no-prompt",
5098
+ "<%= config.bin %> <%= command.id %> --testing --ai --target cursor --no-prompt",
4904
5099
  "<%= config.bin %> <%= command.id %> --json"
4905
5100
  ],
4906
5101
  "flags": {
@@ -4911,18 +5106,53 @@
4911
5106
  "allowNo": false,
4912
5107
  "type": "boolean"
4913
5108
  },
4914
- "id": {
4915
- "description": "User ID, or \"me\" for the authenticated user",
4916
- "name": "id",
4917
- "default": "me",
5109
+ "ai": {
5110
+ "description": "Create the Copado AI agent skill pack",
5111
+ "name": "ai",
5112
+ "allowNo": false,
5113
+ "type": "boolean"
5114
+ },
5115
+ "cicd": {
5116
+ "description": "Create the Copado CICD skill pack",
5117
+ "name": "cicd",
5118
+ "allowNo": false,
5119
+ "type": "boolean"
5120
+ },
5121
+ "force": {
5122
+ "description": "Replace conflicting unmanaged Agentia skill files",
5123
+ "name": "force",
5124
+ "allowNo": false,
5125
+ "type": "boolean"
5126
+ },
5127
+ "no-prompt": {
5128
+ "char": "n",
5129
+ "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
5130
+ "name": "no-prompt",
5131
+ "allowNo": false,
5132
+ "type": "boolean"
5133
+ },
5134
+ "target": {
5135
+ "description": "Project skill root to write (repeatable)",
5136
+ "name": "target",
4918
5137
  "hasDynamicHelp": false,
4919
- "multiple": false,
4920
- "type": "option"
4921
- }
4922
- },
5138
+ "multiple": true,
5139
+ "options": [
5140
+ "agents",
5141
+ "cursor",
5142
+ "claude"
5143
+ ],
5144
+ "type": "option"
5145
+ },
5146
+ "testing": {
5147
+ "description": "Create the Copado Robotic Testing skill pack",
5148
+ "name": "testing",
5149
+ "allowNo": false,
5150
+ "type": "boolean"
5151
+ }
5152
+ },
4923
5153
  "hasDynamicHelp": false,
4924
5154
  "hiddenAliases": [],
4925
- "id": "cicd:user:get",
5155
+ "id": "setup:skills:create",
4926
5156
  "pluginAlias": "@copado/agentia-cli",
4927
5157
  "pluginName": "@copado/agentia-cli",
4928
5158
  "pluginType": "core",
@@ -4932,28 +5162,20 @@
4932
5162
  "relativePath": [
4933
5163
  "dist",
4934
5164
  "commands",
4935
- "cicd",
4936
- "user",
4937
- "get.js"
5165
+ "setup",
5166
+ "skills",
5167
+ "create.js"
4938
5168
  ]
4939
5169
  },
4940
- "cicd:work:commit": {
5170
+ "setup:skills:update": {
4941
5171
  "aliases": [],
4942
- "args": {
4943
- "id": {
4944
- "description": "User story ID (defaults to the active work item from `work set`)",
4945
- "name": "id",
4946
- "required": false
4947
- }
4948
- },
4949
- "description": "Commit user story work locally or through the Copado cloud commit API. With --local (the default) it runs a plain git commit and records the Copado selections lastPermissionSelected, lastFullMetadataSelected, and lastApexTestClassesSelected in .agentia/config.user.json for `cicd work push`. With --cloud it preflights the story, submits POST /release/commit, and polls the job monitor by default.",
5172
+ "args": {},
5173
+ "description": "Update Agentia-managed Markdown skill files and restore missing files in this project",
4950
5174
  "examples": [
4951
- "<%= config.bin %> <%= command.id %> --local --all",
4952
- "<%= config.bin %> <%= command.id %> --local -a -m \"US-0000001 add account service\" --permissions CustomField:Account.SLA__c,ApexClass:AccountService --apex-test-classes MyTest,OtherTest",
4953
- "<%= config.bin %> <%= command.id %> --local -a -m \"US-0000001 full onboarding permission set\" --full-metadata PermissionSet:Sales_Onboarding",
4954
- "<%= config.bin %> <%= command.id %> --cloud --message \"Commit AccountService\" --metadata-name AccountService --metadata-type ApexClass --metadata-category SFDX --action Add",
4955
- "<%= config.bin %> <%= command.id %> a07XXXXXXXXXXXXXXX --cloud --message \"Update Aura files\" --metadata-name accountEditor --metadata-type AuraDefinitionBundle --metadata-category SFDX --action SelectiveCommit --selection accountEditor/accountEditor.cmp --selection accountEditor/accountEditorController.js",
4956
- "cat commit-request.json | <%= config.bin %> <%= command.id %> --cloud --stdin --json"
5175
+ "<%= config.bin %> <%= command.id %>",
5176
+ "<%= config.bin %> <%= command.id %> --ai --target cursor --no-prompt",
5177
+ "<%= config.bin %> <%= command.id %> --cicd --testing --target agents --no-prompt",
5178
+ "<%= config.bin %> <%= command.id %> --force --json"
4957
5179
  ],
4958
5180
  "flags": {
4959
5181
  "json": {
@@ -4963,180 +5185,53 @@
4963
5185
  "allowNo": false,
4964
5186
  "type": "boolean"
4965
5187
  },
4966
- "action": {
4967
- "description": "Metadata action for simple flag input. Defaults to Add.",
4968
- "name": "action",
4969
- "hasDynamicHelp": false,
4970
- "multiple": false,
4971
- "options": [
4972
- "Add",
4973
- "Delete",
4974
- "RetrieveOnly",
4975
- "SelectiveCommit",
4976
- "Full"
4977
- ],
4978
- "type": "option"
4979
- },
4980
- "all": {
4981
- "char": "a",
4982
- "description": "Local commit only. Stage every tracked modification before committing, like `git commit -a`.",
4983
- "name": "all",
5188
+ "ai": {
5189
+ "description": "Update the Copado AI agent skill pack",
5190
+ "name": "ai",
4984
5191
  "allowNo": false,
4985
5192
  "type": "boolean"
4986
5193
  },
4987
- "apex-test-classes": {
4988
- "description": "Local commit only. Comma-separated Apex test class names stored as lastApexTestClassesSelected for `cicd work push`. Pass an empty value to clear it.",
4989
- "name": "apex-test-classes",
4990
- "hasDynamicHelp": false,
4991
- "multiple": false,
4992
- "type": "option"
4993
- },
4994
- "base-branch": {
4995
- "description": "Optional base branch to include in the commit request.",
4996
- "name": "base-branch",
4997
- "hasDynamicHelp": false,
4998
- "multiple": false,
4999
- "type": "option"
5000
- },
5001
- "cloud": {
5002
- "description": "Use the Copado cloud commit API instead of a local git commit.",
5003
- "name": "cloud",
5194
+ "cicd": {
5195
+ "description": "Update the Copado CICD skill pack",
5196
+ "name": "cicd",
5004
5197
  "allowNo": false,
5005
5198
  "type": "boolean"
5006
5199
  },
5007
- "commit-id": {
5008
- "description": "Existing local Git commit identifier to register when --no-execute-commit is used.",
5009
- "name": "commit-id",
5010
- "hasDynamicHelp": false,
5011
- "multiple": false,
5012
- "type": "option"
5013
- },
5014
- "execute-commit": {
5015
- "description": "Execute the Copado commit job. Use --no-execute-commit only with --commit-id.",
5016
- "name": "execute-commit",
5017
- "allowNo": true,
5018
- "type": "boolean"
5019
- },
5020
- "file": {
5021
- "char": "f",
5022
- "description": "Path to a JSON commit request body.",
5023
- "name": "file",
5024
- "hasDynamicHelp": false,
5025
- "multiple": false,
5026
- "type": "option"
5027
- },
5028
- "full-metadata": {
5029
- "description": "Local commit only. Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, stored as lastFullMetadataSelected and sent as `cicd work push` fullMetadata corrections. The named metadata is committed as a complete file, so every permission it contains is applied instead of only the permissions selected with --permissions. Pass an empty value to clear it.",
5030
- "name": "full-metadata",
5031
- "hasDynamicHelp": false,
5032
- "multiple": false,
5033
- "type": "option"
5034
- },
5035
- "local": {
5036
- "description": "Run a local git commit and record Copado selections. Used by default when --cloud is omitted.",
5037
- "name": "local",
5200
+ "force": {
5201
+ "description": "Replace conflicting unmanaged Agentia skill files",
5202
+ "name": "force",
5038
5203
  "allowNo": false,
5039
5204
  "type": "boolean"
5040
5205
  },
5041
- "message": {
5042
- "char": "m",
5043
- "description": "Commit message. Defaults to \"<lastWorkItem> <lastWorkItemTitle>\" for a local commit; required for a cloud commit unless provided by JSON input.",
5044
- "name": "message",
5045
- "hasDynamicHelp": false,
5046
- "multiple": false,
5047
- "type": "option"
5048
- },
5049
- "metadata-category": {
5050
- "description": "Metadata category for simple input. Maps to change field c. For Salesforce metadata, always set SFDX so Copado stores c:SFDX. Omitting it omits c, and SFDX deploy steps log \"Salesforce changes not found.\" and skip the deploy while the job can still report Successful.",
5051
- "name": "metadata-category",
5052
- "hasDynamicHelp": false,
5053
- "multiple": false,
5054
- "type": "option"
5055
- },
5056
- "metadata-message": {
5057
- "description": "Optional per-change message for simple flag input.",
5058
- "name": "metadata-message",
5059
- "hasDynamicHelp": false,
5060
- "multiple": false,
5061
- "type": "option"
5062
- },
5063
- "metadata-name": {
5064
- "description": "Metadata full name for simple flag input.",
5065
- "name": "metadata-name",
5066
- "hasDynamicHelp": false,
5067
- "multiple": false,
5068
- "type": "option"
5069
- },
5070
- "metadata-raw-json": {
5071
- "description": "Optional raw metadata JSON value for simple flag input.",
5072
- "name": "metadata-raw-json",
5073
- "hasDynamicHelp": false,
5074
- "multiple": false,
5075
- "type": "option"
5076
- },
5077
- "metadata-type": {
5078
- "description": "Metadata type for simple flag input, for example ApexClass.",
5079
- "name": "metadata-type",
5080
- "hasDynamicHelp": false,
5081
- "multiple": false,
5082
- "type": "option"
5083
- },
5084
- "permissions": {
5085
- "description": "Local commit only. Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, stored as lastPermissionSelected and sent as `cicd work push` RetrieveOnly corrections. The named metadata is not committed or deployed; it filters which permissions are updated inside the committed permission sets and profiles so other permissions are not overwritten. Pass an empty value to clear it.",
5086
- "name": "permissions",
5087
- "hasDynamicHelp": false,
5088
- "multiple": false,
5089
- "type": "option"
5090
- },
5091
- "platform-experience": {
5092
- "description": "Initial platform-experience header for preflight. The preflight response wins for commit.",
5093
- "name": "platform-experience",
5094
- "default": "sfdx",
5095
- "hasDynamicHelp": false,
5096
- "multiple": false,
5097
- "options": [
5098
- "sfdx",
5099
- "salesforce"
5100
- ],
5101
- "type": "option"
5102
- },
5103
- "recreate-feature-branch": {
5104
- "description": "Ask Copado to recreate the feature branch before committing.",
5105
- "name": "recreate-feature-branch",
5206
+ "no-prompt": {
5207
+ "char": "n",
5208
+ "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
5209
+ "name": "no-prompt",
5106
5210
  "allowNo": false,
5107
5211
  "type": "boolean"
5108
5212
  },
5109
- "selection": {
5110
- "description": "Selected file inside a bundle for SelectiveCommit. Can be provided multiple times.",
5111
- "name": "selection",
5213
+ "target": {
5214
+ "description": "Project skill root to write (repeatable)",
5215
+ "name": "target",
5112
5216
  "hasDynamicHelp": false,
5113
5217
  "multiple": true,
5218
+ "options": [
5219
+ "agents",
5220
+ "cursor",
5221
+ "claude"
5222
+ ],
5114
5223
  "type": "option"
5115
5224
  },
5116
- "stdin": {
5117
- "description": "Read a JSON commit request body from stdin.",
5118
- "name": "stdin",
5225
+ "testing": {
5226
+ "description": "Update the Copado Robotic Testing skill pack",
5227
+ "name": "testing",
5119
5228
  "allowNo": false,
5120
5229
  "type": "boolean"
5121
- },
5122
- "wait": {
5123
- "description": "Poll the commit job to a terminal status when a jobExecution Id is returned.",
5124
- "name": "wait",
5125
- "allowNo": true,
5126
- "type": "boolean"
5127
- },
5128
- "wait-timeout": {
5129
- "description": "Maximum seconds to wait for the commit job.",
5130
- "name": "wait-timeout",
5131
- "default": 300,
5132
- "hasDynamicHelp": false,
5133
- "multiple": false,
5134
- "type": "option"
5135
5230
  }
5136
5231
  },
5137
5232
  "hasDynamicHelp": false,
5138
5233
  "hiddenAliases": [],
5139
- "id": "cicd:work:commit",
5234
+ "id": "setup:skills:update",
5140
5235
  "pluginAlias": "@copado/agentia-cli",
5141
5236
  "pluginName": "@copado/agentia-cli",
5142
5237
  "pluginType": "core",
@@ -5146,18 +5241,24 @@
5146
5241
  "relativePath": [
5147
5242
  "dist",
5148
5243
  "commands",
5149
- "cicd",
5150
- "work",
5151
- "commit.js"
5244
+ "setup",
5245
+ "skills",
5246
+ "update.js"
5152
5247
  ]
5153
5248
  },
5154
- "cicd:work:create": {
5249
+ "testing:build:abort": {
5155
5250
  "aliases": [],
5156
- "args": {},
5157
- "description": "Create a Copado user story",
5251
+ "args": {
5252
+ "id": {
5253
+ "description": "CRT build/run ID.",
5254
+ "name": "id",
5255
+ "required": true
5256
+ }
5257
+ },
5258
+ "description": "Abort a Copado Robotic Testing build/run",
5158
5259
  "examples": [
5159
- "<%= config.bin %> <%= command.id %> --title \"My story\" --status Draft",
5160
- "<%= config.bin %> <%= command.id %> --title \"My story\" --json"
5260
+ "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id>",
5261
+ "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id> --json"
5161
5262
  ],
5162
5263
  "flags": {
5163
5264
  "json": {
@@ -5167,191 +5268,104 @@
5167
5268
  "allowNo": false,
5168
5269
  "type": "boolean"
5169
5270
  },
5170
- "excluded-from-cbm": {
5171
- "description": "Exclude from CBM",
5172
- "name": "excluded-from-cbm",
5173
- "allowNo": true,
5174
- "type": "boolean"
5175
- },
5176
- "actual-points": {
5177
- "description": "Actual points",
5178
- "name": "actual-points",
5179
- "hasDynamicHelp": false,
5180
- "multiple": false,
5181
- "type": "option"
5182
- },
5183
- "planned-points": {
5184
- "description": "Planned points",
5185
- "name": "planned-points",
5186
- "hasDynamicHelp": false,
5187
- "multiple": false,
5188
- "type": "option"
5189
- },
5190
- "priority": {
5191
- "description": "Priority",
5192
- "name": "priority",
5193
- "hasDynamicHelp": false,
5194
- "multiple": false,
5195
- "type": "option"
5196
- },
5197
- "acceptance-criteria": {
5198
- "description": "Acceptance criteria",
5199
- "name": "acceptance-criteria",
5200
- "hasDynamicHelp": false,
5201
- "multiple": false,
5202
- "type": "option"
5203
- },
5204
- "as-a": {
5205
- "description": "User story \"as a\" clause",
5206
- "name": "as-a",
5207
- "hasDynamicHelp": false,
5208
- "multiple": false,
5209
- "type": "option"
5210
- },
5211
- "assignee": {
5212
- "description": "Assignee ID",
5213
- "name": "assignee",
5214
- "hasDynamicHelp": false,
5215
- "multiple": false,
5216
- "type": "option"
5217
- },
5218
- "cancellation-reason": {
5219
- "description": "Cancellation reason",
5220
- "name": "cancellation-reason",
5221
- "hasDynamicHelp": false,
5222
- "multiple": false,
5223
- "type": "option"
5224
- },
5225
- "close-date": {
5226
- "description": "Close date",
5227
- "name": "close-date",
5228
- "hasDynamicHelp": false,
5229
- "multiple": false,
5230
- "type": "option"
5231
- },
5232
- "epic": {
5233
- "description": "Epic",
5234
- "name": "epic",
5235
- "hasDynamicHelp": false,
5236
- "multiple": false,
5237
- "type": "option"
5238
- },
5239
- "feature": {
5240
- "description": "Feature",
5241
- "name": "feature",
5242
- "hasDynamicHelp": false,
5243
- "multiple": false,
5244
- "type": "option"
5245
- },
5246
- "functional-requirements": {
5247
- "description": "Functional requirements",
5248
- "name": "functional-requirements",
5249
- "hasDynamicHelp": false,
5250
- "multiple": false,
5251
- "type": "option"
5252
- },
5253
- "owner-id": {
5254
- "description": "Owner ID",
5255
- "name": "owner-id",
5256
- "hasDynamicHelp": false,
5257
- "multiple": false,
5258
- "type": "option"
5259
- },
5260
5271
  "project": {
5261
- "description": "Project ID",
5272
+ "char": "p",
5273
+ "description": "CRT project ID.",
5262
5274
  "name": "project",
5275
+ "required": true,
5263
5276
  "hasDynamicHelp": false,
5264
5277
  "multiple": false,
5265
5278
  "type": "option"
5266
5279
  },
5267
- "record-type": {
5268
- "description": "Record type",
5269
- "name": "record-type",
5270
- "hasDynamicHelp": false,
5271
- "multiple": false,
5272
- "type": "option"
5273
- },
5274
- "release-id": {
5275
- "description": "Release ID",
5276
- "name": "release-id",
5277
- "hasDynamicHelp": false,
5278
- "multiple": false,
5279
- "type": "option"
5280
- },
5281
- "so-that": {
5282
- "description": "User story \"so that\" clause",
5283
- "name": "so-that",
5280
+ "job": {
5281
+ "char": "j",
5282
+ "description": "CRT job/test ID.",
5283
+ "name": "job",
5284
+ "required": true,
5284
5285
  "hasDynamicHelp": false,
5285
5286
  "multiple": false,
5286
5287
  "type": "option"
5288
+ }
5289
+ },
5290
+ "hasDynamicHelp": false,
5291
+ "hiddenAliases": [],
5292
+ "id": "testing:build:abort",
5293
+ "pluginAlias": "@copado/agentia-cli",
5294
+ "pluginName": "@copado/agentia-cli",
5295
+ "pluginType": "core",
5296
+ "strict": true,
5297
+ "enableJsonFlag": true,
5298
+ "isESM": true,
5299
+ "relativePath": [
5300
+ "dist",
5301
+ "commands",
5302
+ "testing",
5303
+ "build",
5304
+ "abort.js"
5305
+ ]
5306
+ },
5307
+ "testing:build:list": {
5308
+ "aliases": [],
5309
+ "args": {},
5310
+ "description": "List Copado Robotic Testing builds/runs",
5311
+ "examples": [
5312
+ "<%= config.bin %> <%= command.id %> --project <project-id>",
5313
+ "<%= config.bin %> <%= command.id %> --project <project-id> --job <job-id> --status succeeded --json"
5314
+ ],
5315
+ "flags": {
5316
+ "json": {
5317
+ "description": "Format output as json.",
5318
+ "helpGroup": "GLOBAL",
5319
+ "name": "json",
5320
+ "allowNo": false,
5321
+ "type": "boolean"
5287
5322
  },
5288
- "source-credential": {
5289
- "description": "Source credential ID",
5290
- "name": "source-credential",
5323
+ "project": {
5324
+ "char": "p",
5325
+ "description": "CRT project ID.",
5326
+ "name": "project",
5327
+ "required": true,
5291
5328
  "hasDynamicHelp": false,
5292
5329
  "multiple": false,
5293
5330
  "type": "option"
5294
5331
  },
5295
- "source-environment": {
5296
- "description": "Source environment ID",
5297
- "name": "source-environment",
5332
+ "job": {
5333
+ "description": "Limit builds to one CRT job/test ID.",
5334
+ "name": "job",
5298
5335
  "hasDynamicHelp": false,
5299
5336
  "multiple": false,
5300
5337
  "type": "option"
5301
5338
  },
5302
- "sprint-id": {
5303
- "description": "Sprint ID",
5304
- "name": "sprint-id",
5339
+ "result-size": {
5340
+ "description": "CRT build result size.",
5341
+ "name": "result-size",
5342
+ "default": "compact",
5305
5343
  "hasDynamicHelp": false,
5306
5344
  "multiple": false,
5345
+ "options": [
5346
+ "compact"
5347
+ ],
5307
5348
  "type": "option"
5308
5349
  },
5309
5350
  "status": {
5310
- "description": "Status",
5351
+ "description": "Build status filter.",
5311
5352
  "name": "status",
5312
5353
  "hasDynamicHelp": false,
5313
5354
  "multiple": false,
5314
- "type": "option"
5315
- },
5316
- "team": {
5317
- "description": "Team",
5318
- "name": "team",
5319
- "hasDynamicHelp": false,
5320
- "multiple": false,
5321
- "type": "option"
5322
- },
5323
- "technical-specifications": {
5324
- "description": "Technical specifications",
5325
- "name": "technical-specifications",
5326
- "hasDynamicHelp": false,
5327
- "multiple": false,
5328
- "type": "option"
5329
- },
5330
- "theme": {
5331
- "description": "Theme",
5332
- "name": "theme",
5333
- "hasDynamicHelp": false,
5334
- "multiple": false,
5335
- "type": "option"
5336
- },
5337
- "title": {
5338
- "description": "Title",
5339
- "name": "title",
5340
- "hasDynamicHelp": false,
5341
- "multiple": false,
5342
- "type": "option"
5343
- },
5344
- "want-to": {
5345
- "description": "User story \"want to\" clause",
5346
- "name": "want-to",
5347
- "hasDynamicHelp": false,
5348
- "multiple": false,
5355
+ "options": [
5356
+ "aborted",
5357
+ "executing",
5358
+ "failed",
5359
+ "finished",
5360
+ "queued",
5361
+ "succeeded"
5362
+ ],
5349
5363
  "type": "option"
5350
5364
  }
5351
5365
  },
5352
5366
  "hasDynamicHelp": false,
5353
5367
  "hiddenAliases": [],
5354
- "id": "cicd:work:create",
5368
+ "id": "testing:build:list",
5355
5369
  "pluginAlias": "@copado/agentia-cli",
5356
5370
  "pluginName": "@copado/agentia-cli",
5357
5371
  "pluginType": "core",
@@ -5361,24 +5375,24 @@
5361
5375
  "relativePath": [
5362
5376
  "dist",
5363
5377
  "commands",
5364
- "cicd",
5365
- "work",
5366
- "create.js"
5378
+ "testing",
5379
+ "build",
5380
+ "list.js"
5367
5381
  ]
5368
5382
  },
5369
- "cicd:work:delete": {
5383
+ "testing:build:logs": {
5370
5384
  "aliases": [],
5371
5385
  "args": {
5372
5386
  "id": {
5373
- "description": "User story ID",
5387
+ "description": "CRT build/run ID.",
5374
5388
  "name": "id",
5375
5389
  "required": true
5376
5390
  }
5377
5391
  },
5378
- "description": "Delete a Copado user story by ID",
5392
+ "description": "Get logs for a Copado Robotic Testing build/run",
5379
5393
  "examples": [
5380
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
5381
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
5394
+ "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id>",
5395
+ "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id> --output log.html --json"
5382
5396
  ],
5383
5397
  "flags": {
5384
5398
  "json": {
@@ -5387,11 +5401,37 @@
5387
5401
  "name": "json",
5388
5402
  "allowNo": false,
5389
5403
  "type": "boolean"
5404
+ },
5405
+ "project": {
5406
+ "char": "p",
5407
+ "description": "CRT project ID.",
5408
+ "name": "project",
5409
+ "required": true,
5410
+ "hasDynamicHelp": false,
5411
+ "multiple": false,
5412
+ "type": "option"
5413
+ },
5414
+ "job": {
5415
+ "char": "j",
5416
+ "description": "CRT job/test ID.",
5417
+ "name": "job",
5418
+ "required": true,
5419
+ "hasDynamicHelp": false,
5420
+ "multiple": false,
5421
+ "type": "option"
5422
+ },
5423
+ "output": {
5424
+ "char": "o",
5425
+ "description": "Write raw output to this file path.",
5426
+ "name": "output",
5427
+ "hasDynamicHelp": false,
5428
+ "multiple": false,
5429
+ "type": "option"
5390
5430
  }
5391
5431
  },
5392
5432
  "hasDynamicHelp": false,
5393
5433
  "hiddenAliases": [],
5394
- "id": "cicd:work:delete",
5434
+ "id": "testing:build:logs",
5395
5435
  "pluginAlias": "@copado/agentia-cli",
5396
5436
  "pluginName": "@copado/agentia-cli",
5397
5437
  "pluginType": "core",
@@ -5401,20 +5441,25 @@
5401
5441
  "relativePath": [
5402
5442
  "dist",
5403
5443
  "commands",
5404
- "cicd",
5405
- "work",
5406
- "delete.js"
5444
+ "testing",
5445
+ "build",
5446
+ "logs.js"
5407
5447
  ]
5408
5448
  },
5409
- "cicd:work:done": {
5449
+ "testing:build:run": {
5410
5450
  "aliases": [],
5411
- "args": {},
5412
- "description": "Alias of cicd work submit --done. Matches Copado UI Submit when promoting (not validate-only). Prefer: agentia cicd work submit --done.",
5451
+ "args": {
5452
+ "id": {
5453
+ "description": "CRT job/test ID to run.",
5454
+ "name": "id",
5455
+ "required": true
5456
+ }
5457
+ },
5458
+ "description": "Run a Copado Robotic Testing job/test",
5413
5459
  "examples": [
5414
- "<%= config.bin %> cicd work submit --done",
5415
- "<%= config.bin %> <%= command.id %>",
5416
- "<%= config.bin %> <%= command.id %> --skip-nested-metadata-detection",
5417
- "<%= config.bin %> <%= command.id %> --json"
5460
+ "<%= config.bin %> <%= command.id %> <job-id> --project <project-id>",
5461
+ "<%= config.bin %> <%= command.id %> <job-id> --project <project-id> --param BROWSER=chrome --record failed",
5462
+ "<%= config.bin %> <%= command.id %> <job-id> --project <project-id> --json"
5418
5463
  ],
5419
5464
  "flags": {
5420
5465
  "json": {
@@ -5424,16 +5469,79 @@
5424
5469
  "allowNo": false,
5425
5470
  "type": "boolean"
5426
5471
  },
5427
- "skip-nested-metadata-detection": {
5428
- "description": "Do not detect the nested metadata changed across the branch when pushing (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
5429
- "name": "skip-nested-metadata-detection",
5472
+ "project": {
5473
+ "char": "p",
5474
+ "description": "CRT project ID.",
5475
+ "name": "project",
5476
+ "required": true,
5477
+ "hasDynamicHelp": false,
5478
+ "multiple": false,
5479
+ "type": "option"
5480
+ },
5481
+ "branch": {
5482
+ "description": "Git branch/ref to use for this run. Mutually exclusive with --tag.",
5483
+ "name": "branch",
5484
+ "hasDynamicHelp": false,
5485
+ "multiple": false,
5486
+ "type": "option"
5487
+ },
5488
+ "exclude": {
5489
+ "description": "Robot Framework tag to exclude from this run. Can be provided multiple times.",
5490
+ "name": "exclude",
5491
+ "hasDynamicHelp": false,
5492
+ "multiple": true,
5493
+ "type": "option"
5494
+ },
5495
+ "include": {
5496
+ "description": "Robot Framework tag to include in this run. Can be provided multiple times.",
5497
+ "name": "include",
5498
+ "hasDynamicHelp": false,
5499
+ "multiple": true,
5500
+ "type": "option"
5501
+ },
5502
+ "param": {
5503
+ "description": "Execution parameter in KEY=VALUE format. Can be provided multiple times.",
5504
+ "name": "param",
5505
+ "hasDynamicHelp": false,
5506
+ "multiple": true,
5507
+ "type": "option"
5508
+ },
5509
+ "record": {
5510
+ "description": "CRT execution recording mode.",
5511
+ "name": "record",
5512
+ "hasDynamicHelp": false,
5513
+ "multiple": false,
5514
+ "options": [
5515
+ "all",
5516
+ "failed",
5517
+ "none"
5518
+ ],
5519
+ "type": "option"
5520
+ },
5521
+ "rerun-failed": {
5522
+ "description": "Rerun failed tests from the specified build/run ID. Mutually exclusive with --rerun-failed-from-latest.",
5523
+ "name": "rerun-failed",
5524
+ "hasDynamicHelp": false,
5525
+ "multiple": false,
5526
+ "type": "option"
5527
+ },
5528
+ "rerun-failed-from-latest": {
5529
+ "description": "Rerun failed tests from the latest failed run. Mutually exclusive with --rerun-failed.",
5530
+ "name": "rerun-failed-from-latest",
5430
5531
  "allowNo": false,
5431
5532
  "type": "boolean"
5533
+ },
5534
+ "tag": {
5535
+ "description": "Git tag to use for this run. Mutually exclusive with --branch.",
5536
+ "name": "tag",
5537
+ "hasDynamicHelp": false,
5538
+ "multiple": false,
5539
+ "type": "option"
5432
5540
  }
5433
5541
  },
5434
5542
  "hasDynamicHelp": false,
5435
5543
  "hiddenAliases": [],
5436
- "id": "cicd:work:done",
5544
+ "id": "testing:build:run",
5437
5545
  "pluginAlias": "@copado/agentia-cli",
5438
5546
  "pluginName": "@copado/agentia-cli",
5439
5547
  "pluginType": "core",
@@ -5443,12 +5551,12 @@
5443
5551
  "relativePath": [
5444
5552
  "dist",
5445
5553
  "commands",
5446
- "cicd",
5447
- "work",
5448
- "done.js"
5554
+ "testing",
5555
+ "build",
5556
+ "run.js"
5449
5557
  ]
5450
5558
  },
5451
- "cicd:work:get": {
5559
+ "cicd:work:commit": {
5452
5560
  "aliases": [],
5453
5561
  "args": {
5454
5562
  "id": {
@@ -5457,11 +5565,14 @@
5457
5565
  "required": false
5458
5566
  }
5459
5567
  },
5460
- "description": "Get a Copado user story by ID",
5568
+ "description": "Commit user story work locally or through the Copado cloud commit API. With --local (the default) it runs a plain git commit and records the Copado selections lastPermissionSelected, lastFullMetadataSelected, and lastApexTestClassesSelected in .agentia/config.user.json for `cicd work push`. With --cloud it preflights the story, submits POST /release/commit, and polls the job monitor by default.",
5461
5569
  "examples": [
5462
- "<%= config.bin %> <%= command.id %>",
5463
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
5464
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
5570
+ "<%= config.bin %> <%= command.id %> --local --all",
5571
+ "<%= config.bin %> <%= command.id %> --local -a -m \"US-0000001 add account service\" --permissions CustomField:Account.SLA__c,ApexClass:AccountService --apex-test-classes MyTest,OtherTest",
5572
+ "<%= config.bin %> <%= command.id %> --local -a -m \"US-0000001 full onboarding permission set\" --full-metadata PermissionSet:Sales_Onboarding",
5573
+ "<%= config.bin %> <%= command.id %> --cloud --message \"Commit AccountService\" --metadata-name AccountService --metadata-type ApexClass --metadata-category SFDX --action Add",
5574
+ "<%= config.bin %> <%= command.id %> a07XXXXXXXXXXXXXXX --cloud --message \"Update Aura files\" --metadata-name accountEditor --metadata-type AuraDefinitionBundle --metadata-category SFDX --action SelectiveCommit --selection accountEditor/accountEditor.cmp --selection accountEditor/accountEditorController.js",
5575
+ "cat commit-request.json | <%= config.bin %> <%= command.id %> --cloud --stdin --json"
5465
5576
  ],
5466
5577
  "flags": {
5467
5578
  "json": {
@@ -5470,11 +5581,181 @@
5470
5581
  "name": "json",
5471
5582
  "allowNo": false,
5472
5583
  "type": "boolean"
5584
+ },
5585
+ "action": {
5586
+ "description": "Metadata action for simple flag input. Defaults to Add.",
5587
+ "name": "action",
5588
+ "hasDynamicHelp": false,
5589
+ "multiple": false,
5590
+ "options": [
5591
+ "Add",
5592
+ "Delete",
5593
+ "RetrieveOnly",
5594
+ "SelectiveCommit",
5595
+ "Full"
5596
+ ],
5597
+ "type": "option"
5598
+ },
5599
+ "all": {
5600
+ "char": "a",
5601
+ "description": "Local commit only. Stage every tracked modification before committing, like `git commit -a`.",
5602
+ "name": "all",
5603
+ "allowNo": false,
5604
+ "type": "boolean"
5605
+ },
5606
+ "apex-test-classes": {
5607
+ "description": "Local commit only. Comma-separated Apex test class names stored as lastApexTestClassesSelected for `cicd work push`. Pass an empty value to clear it.",
5608
+ "name": "apex-test-classes",
5609
+ "hasDynamicHelp": false,
5610
+ "multiple": false,
5611
+ "type": "option"
5612
+ },
5613
+ "base-branch": {
5614
+ "description": "Optional base branch to include in the commit request.",
5615
+ "name": "base-branch",
5616
+ "hasDynamicHelp": false,
5617
+ "multiple": false,
5618
+ "type": "option"
5619
+ },
5620
+ "cloud": {
5621
+ "description": "Use the Copado cloud commit API instead of a local git commit.",
5622
+ "name": "cloud",
5623
+ "allowNo": false,
5624
+ "type": "boolean"
5625
+ },
5626
+ "commit-id": {
5627
+ "description": "Existing local Git commit identifier to register when --no-execute-commit is used.",
5628
+ "name": "commit-id",
5629
+ "hasDynamicHelp": false,
5630
+ "multiple": false,
5631
+ "type": "option"
5632
+ },
5633
+ "execute-commit": {
5634
+ "description": "Execute the Copado commit job. Use --no-execute-commit only with --commit-id.",
5635
+ "name": "execute-commit",
5636
+ "allowNo": true,
5637
+ "type": "boolean"
5638
+ },
5639
+ "file": {
5640
+ "char": "f",
5641
+ "description": "Path to a JSON commit request body.",
5642
+ "name": "file",
5643
+ "hasDynamicHelp": false,
5644
+ "multiple": false,
5645
+ "type": "option"
5646
+ },
5647
+ "full-metadata": {
5648
+ "description": "Local commit only. Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, stored as lastFullMetadataSelected and sent as `cicd work push` fullMetadata corrections. The named metadata is committed as a complete file, so every permission it contains is applied instead of only the permissions selected with --permissions. Pass an empty value to clear it.",
5649
+ "name": "full-metadata",
5650
+ "hasDynamicHelp": false,
5651
+ "multiple": false,
5652
+ "type": "option"
5653
+ },
5654
+ "local": {
5655
+ "description": "Run a local git commit and record Copado selections. Used by default when --cloud is omitted.",
5656
+ "name": "local",
5657
+ "allowNo": false,
5658
+ "type": "boolean"
5659
+ },
5660
+ "message": {
5661
+ "char": "m",
5662
+ "description": "Commit message. Defaults to \"<lastWorkItem> <lastWorkItemTitle>\" for a local commit; required for a cloud commit unless provided by JSON input.",
5663
+ "name": "message",
5664
+ "hasDynamicHelp": false,
5665
+ "multiple": false,
5666
+ "type": "option"
5667
+ },
5668
+ "metadata-category": {
5669
+ "description": "Metadata category for simple input. Maps to change field c. For Salesforce metadata, always set SFDX so Copado stores c:SFDX. Omitting it omits c, and SFDX deploy steps log \"Salesforce changes not found.\" and skip the deploy while the job can still report Successful.",
5670
+ "name": "metadata-category",
5671
+ "hasDynamicHelp": false,
5672
+ "multiple": false,
5673
+ "type": "option"
5674
+ },
5675
+ "metadata-message": {
5676
+ "description": "Optional per-change message for simple flag input.",
5677
+ "name": "metadata-message",
5678
+ "hasDynamicHelp": false,
5679
+ "multiple": false,
5680
+ "type": "option"
5681
+ },
5682
+ "metadata-name": {
5683
+ "description": "Metadata full name for simple flag input.",
5684
+ "name": "metadata-name",
5685
+ "hasDynamicHelp": false,
5686
+ "multiple": false,
5687
+ "type": "option"
5688
+ },
5689
+ "metadata-raw-json": {
5690
+ "description": "Optional raw metadata JSON value for simple flag input.",
5691
+ "name": "metadata-raw-json",
5692
+ "hasDynamicHelp": false,
5693
+ "multiple": false,
5694
+ "type": "option"
5695
+ },
5696
+ "metadata-type": {
5697
+ "description": "Metadata type for simple flag input, for example ApexClass.",
5698
+ "name": "metadata-type",
5699
+ "hasDynamicHelp": false,
5700
+ "multiple": false,
5701
+ "type": "option"
5702
+ },
5703
+ "permissions": {
5704
+ "description": "Local commit only. Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, stored as lastPermissionSelected and sent as `cicd work push` RetrieveOnly corrections. The named metadata is not committed or deployed; it filters which permissions are updated inside the committed permission sets and profiles so other permissions are not overwritten. Pass an empty value to clear it.",
5705
+ "name": "permissions",
5706
+ "hasDynamicHelp": false,
5707
+ "multiple": false,
5708
+ "type": "option"
5709
+ },
5710
+ "platform-experience": {
5711
+ "description": "Initial platform-experience header for preflight. The preflight response wins for commit.",
5712
+ "name": "platform-experience",
5713
+ "default": "sfdx",
5714
+ "hasDynamicHelp": false,
5715
+ "multiple": false,
5716
+ "options": [
5717
+ "sfdx",
5718
+ "salesforce"
5719
+ ],
5720
+ "type": "option"
5721
+ },
5722
+ "recreate-feature-branch": {
5723
+ "description": "Ask Copado to recreate the feature branch before committing.",
5724
+ "name": "recreate-feature-branch",
5725
+ "allowNo": false,
5726
+ "type": "boolean"
5727
+ },
5728
+ "selection": {
5729
+ "description": "Selected file inside a bundle for SelectiveCommit. Can be provided multiple times.",
5730
+ "name": "selection",
5731
+ "hasDynamicHelp": false,
5732
+ "multiple": true,
5733
+ "type": "option"
5734
+ },
5735
+ "stdin": {
5736
+ "description": "Read a JSON commit request body from stdin.",
5737
+ "name": "stdin",
5738
+ "allowNo": false,
5739
+ "type": "boolean"
5740
+ },
5741
+ "wait": {
5742
+ "description": "Poll the commit job to a terminal status when a jobExecution Id is returned.",
5743
+ "name": "wait",
5744
+ "allowNo": true,
5745
+ "type": "boolean"
5746
+ },
5747
+ "wait-timeout": {
5748
+ "description": "Maximum seconds to wait for the commit job.",
5749
+ "name": "wait-timeout",
5750
+ "default": 300,
5751
+ "hasDynamicHelp": false,
5752
+ "multiple": false,
5753
+ "type": "option"
5473
5754
  }
5474
5755
  },
5475
5756
  "hasDynamicHelp": false,
5476
5757
  "hiddenAliases": [],
5477
- "id": "cicd:work:get",
5758
+ "id": "cicd:work:commit",
5478
5759
  "pluginAlias": "@copado/agentia-cli",
5479
5760
  "pluginName": "@copado/agentia-cli",
5480
5761
  "pluginType": "core",
@@ -5486,19 +5767,16 @@
5486
5767
  "commands",
5487
5768
  "cicd",
5488
5769
  "work",
5489
- "get.js"
5770
+ "commit.js"
5490
5771
  ]
5491
5772
  },
5492
- "cicd:work:list": {
5773
+ "cicd:work:create": {
5493
5774
  "aliases": [],
5494
5775
  "args": {},
5495
- "description": "List Copado user stories",
5776
+ "description": "Create a Copado user story",
5496
5777
  "examples": [
5497
- "<%= config.bin %> <%= command.id %>",
5498
- "<%= config.bin %> <%= command.id %> --status \"In Progress\" --project-name MyProject",
5499
- "<%= config.bin %> <%= command.id %> --assigned-to-me",
5500
- "<%= config.bin %> <%= command.id %> --owned-by-me",
5501
- "<%= config.bin %> <%= command.id %> --json"
5778
+ "<%= config.bin %> <%= command.id %> --title \"My story\" --status Draft",
5779
+ "<%= config.bin %> <%= command.id %> --title \"My story\" --json"
5502
5780
  ],
5503
5781
  "flags": {
5504
5782
  "json": {
@@ -5508,241 +5786,191 @@
5508
5786
  "allowNo": false,
5509
5787
  "type": "boolean"
5510
5788
  },
5511
- "cursor": {
5512
- "description": "Opaque pagination cursor from a previous list response (nextCursor)",
5513
- "name": "cursor",
5789
+ "excluded-from-cbm": {
5790
+ "description": "Exclude from CBM",
5791
+ "name": "excluded-from-cbm",
5792
+ "allowNo": true,
5793
+ "type": "boolean"
5794
+ },
5795
+ "actual-points": {
5796
+ "description": "Actual points",
5797
+ "name": "actual-points",
5514
5798
  "hasDynamicHelp": false,
5515
5799
  "multiple": false,
5516
5800
  "type": "option"
5517
5801
  },
5518
- "page-size": {
5519
- "description": "Number of records per page (1-200)",
5520
- "name": "page-size",
5802
+ "planned-points": {
5803
+ "description": "Planned points",
5804
+ "name": "planned-points",
5521
5805
  "hasDynamicHelp": false,
5522
5806
  "multiple": false,
5523
5807
  "type": "option"
5524
5808
  },
5525
- "assigned-to-me": {
5526
- "description": "Filter by the current user as assignee",
5527
- "name": "assigned-to-me",
5528
- "allowNo": false,
5529
- "type": "boolean"
5809
+ "priority": {
5810
+ "description": "Priority",
5811
+ "name": "priority",
5812
+ "hasDynamicHelp": false,
5813
+ "multiple": false,
5814
+ "type": "option"
5530
5815
  },
5531
- "assignee-id": {
5532
- "description": "Filter by assignee ID",
5533
- "name": "assignee-id",
5816
+ "acceptance-criteria": {
5817
+ "description": "Acceptance criteria",
5818
+ "name": "acceptance-criteria",
5534
5819
  "hasDynamicHelp": false,
5535
5820
  "multiple": false,
5536
5821
  "type": "option"
5537
5822
  },
5538
- "assignee-name": {
5539
- "description": "Filter by assignee name",
5540
- "name": "assignee-name",
5823
+ "as-a": {
5824
+ "description": "User story \"as a\" clause",
5825
+ "name": "as-a",
5541
5826
  "hasDynamicHelp": false,
5542
5827
  "multiple": false,
5543
5828
  "type": "option"
5544
5829
  },
5545
- "name": {
5546
- "description": "Filter by name",
5547
- "name": "name",
5830
+ "assignee": {
5831
+ "description": "Assignee ID",
5832
+ "name": "assignee",
5548
5833
  "hasDynamicHelp": false,
5549
5834
  "multiple": false,
5550
5835
  "type": "option"
5551
5836
  },
5552
- "owned-by-me": {
5553
- "description": "Filter by the current user as owner",
5554
- "name": "owned-by-me",
5555
- "allowNo": false,
5556
- "type": "boolean"
5837
+ "cancellation-reason": {
5838
+ "description": "Cancellation reason",
5839
+ "name": "cancellation-reason",
5840
+ "hasDynamicHelp": false,
5841
+ "multiple": false,
5842
+ "type": "option"
5557
5843
  },
5558
- "owner-id": {
5559
- "description": "Filter by owner ID",
5560
- "name": "owner-id",
5844
+ "close-date": {
5845
+ "description": "Close date",
5846
+ "name": "close-date",
5561
5847
  "hasDynamicHelp": false,
5562
5848
  "multiple": false,
5563
5849
  "type": "option"
5564
5850
  },
5565
- "owner-name": {
5566
- "description": "Filter by owner name",
5567
- "name": "owner-name",
5851
+ "epic": {
5852
+ "description": "Epic",
5853
+ "name": "epic",
5568
5854
  "hasDynamicHelp": false,
5569
5855
  "multiple": false,
5570
5856
  "type": "option"
5571
5857
  },
5572
- "project-id": {
5573
- "description": "Filter by project ID",
5574
- "name": "project-id",
5858
+ "feature": {
5859
+ "description": "Feature",
5860
+ "name": "feature",
5575
5861
  "hasDynamicHelp": false,
5576
5862
  "multiple": false,
5577
5863
  "type": "option"
5578
5864
  },
5579
- "project-name": {
5580
- "description": "Filter by project name",
5581
- "name": "project-name",
5865
+ "functional-requirements": {
5866
+ "description": "Functional requirements",
5867
+ "name": "functional-requirements",
5582
5868
  "hasDynamicHelp": false,
5583
5869
  "multiple": false,
5584
5870
  "type": "option"
5585
5871
  },
5586
- "status": {
5587
- "description": "Filter by status",
5588
- "name": "status",
5872
+ "owner-id": {
5873
+ "description": "Owner ID",
5874
+ "name": "owner-id",
5589
5875
  "hasDynamicHelp": false,
5590
5876
  "multiple": false,
5591
5877
  "type": "option"
5592
5878
  },
5593
- "title": {
5594
- "description": "Filter by title",
5595
- "name": "title",
5879
+ "project": {
5880
+ "description": "Project ID",
5881
+ "name": "project",
5596
5882
  "hasDynamicHelp": false,
5597
5883
  "multiple": false,
5598
5884
  "type": "option"
5599
- }
5600
- },
5601
- "hasDynamicHelp": false,
5602
- "hiddenAliases": [],
5603
- "id": "cicd:work:list",
5604
- "pluginAlias": "@copado/agentia-cli",
5605
- "pluginName": "@copado/agentia-cli",
5606
- "pluginType": "core",
5607
- "strict": true,
5608
- "enableJsonFlag": true,
5609
- "isESM": true,
5610
- "relativePath": [
5611
- "dist",
5612
- "commands",
5613
- "cicd",
5614
- "work",
5615
- "list.js"
5616
- ]
5617
- },
5618
- "cicd:work:open": {
5619
- "aliases": [],
5620
- "args": {
5621
- "id": {
5622
- "description": "User story ID (defaults to the active work item from `work set`)",
5623
- "name": "id",
5624
- "required": false
5625
- }
5626
- },
5627
- "description": "Open a Copado user story in the browser",
5628
- "examples": [
5629
- "<%= config.bin %> <%= command.id %>",
5630
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
5631
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
5632
- ],
5633
- "flags": {
5634
- "json": {
5635
- "description": "Format output as json.",
5636
- "helpGroup": "GLOBAL",
5637
- "name": "json",
5638
- "allowNo": false,
5639
- "type": "boolean"
5640
- }
5641
- },
5642
- "hasDynamicHelp": false,
5643
- "hiddenAliases": [],
5644
- "id": "cicd:work:open",
5645
- "pluginAlias": "@copado/agentia-cli",
5646
- "pluginName": "@copado/agentia-cli",
5647
- "pluginType": "core",
5648
- "strict": true,
5649
- "enableJsonFlag": true,
5650
- "isESM": true,
5651
- "relativePath": [
5652
- "dist",
5653
- "commands",
5654
- "cicd",
5655
- "work",
5656
- "open.js"
5657
- ]
5658
- },
5659
- "cicd:work:promote": {
5660
- "aliases": [],
5661
- "args": {
5662
- "id": {
5663
- "description": "User Story ID (defaults to the active work item from `work set`)",
5664
- "name": "id",
5665
- "required": false
5666
- }
5667
- },
5668
- "description": "Promote the explicit or active User Story through its Copado Promotion. Requires --cloud and selects promote-only unless --deploy is passed.",
5669
- "examples": [
5670
- "<%= config.bin %> <%= command.id %> --cloud",
5671
- "<%= config.bin %> <%= command.id %> a07XXXXXXXXXXXXXXX --cloud --promotion-id a0BXXXXXXXXXXXXXXX",
5672
- "<%= config.bin %> <%= command.id %> --cloud --deploy --json"
5673
- ],
5674
- "flags": {
5675
- "json": {
5676
- "description": "Format output as json.",
5677
- "helpGroup": "GLOBAL",
5678
- "name": "json",
5679
- "allowNo": false,
5680
- "type": "boolean"
5681
5885
  },
5682
- "cloud": {
5683
- "description": "Use the Copado cloud promotion API. Required for this command.",
5684
- "name": "cloud",
5685
- "allowNo": false,
5686
- "type": "boolean"
5886
+ "record-type": {
5887
+ "description": "Record type",
5888
+ "name": "record-type",
5889
+ "hasDynamicHelp": false,
5890
+ "multiple": false,
5891
+ "type": "option"
5687
5892
  },
5688
- "deploy": {
5689
- "description": "Use merge_and_deploy instead of promote-only merge.",
5690
- "name": "deploy",
5691
- "allowNo": false,
5692
- "type": "boolean"
5893
+ "release-id": {
5894
+ "description": "Release ID",
5895
+ "name": "release-id",
5896
+ "hasDynamicHelp": false,
5897
+ "multiple": false,
5898
+ "type": "option"
5693
5899
  },
5694
- "deployment-step-id": {
5695
- "description": "Ordered deployment-step Salesforce ID. Can be provided multiple times with --deploy.",
5696
- "name": "deployment-step-id",
5900
+ "so-that": {
5901
+ "description": "User story \"so that\" clause",
5902
+ "name": "so-that",
5903
+ "hasDynamicHelp": false,
5904
+ "multiple": false,
5905
+ "type": "option"
5906
+ },
5907
+ "source-credential": {
5908
+ "description": "Source credential ID",
5909
+ "name": "source-credential",
5910
+ "hasDynamicHelp": false,
5911
+ "multiple": false,
5912
+ "type": "option"
5913
+ },
5914
+ "source-environment": {
5915
+ "description": "Source environment ID",
5916
+ "name": "source-environment",
5917
+ "hasDynamicHelp": false,
5918
+ "multiple": false,
5919
+ "type": "option"
5920
+ },
5921
+ "sprint-id": {
5922
+ "description": "Sprint ID",
5923
+ "name": "sprint-id",
5697
5924
  "hasDynamicHelp": false,
5698
- "multiple": true,
5925
+ "multiple": false,
5699
5926
  "type": "option"
5700
5927
  },
5701
- "ignored-metadata-json": {
5702
- "description": "JSON array to persist through ignored-metadata before starting the promotion.",
5703
- "name": "ignored-metadata-json",
5928
+ "status": {
5929
+ "description": "Status",
5930
+ "name": "status",
5704
5931
  "hasDynamicHelp": false,
5705
5932
  "multiple": false,
5706
5933
  "type": "option"
5707
5934
  },
5708
- "promotion-id": {
5709
- "description": "Explicit 18-character Promotion ID when the User Story belongs to multiple promotions.",
5710
- "name": "promotion-id",
5935
+ "team": {
5936
+ "description": "Team",
5937
+ "name": "team",
5711
5938
  "hasDynamicHelp": false,
5712
5939
  "multiple": false,
5713
5940
  "type": "option"
5714
5941
  },
5715
- "recreate-promotion-branch": {
5716
- "description": "Recreate the promotion branch before execution. Requires confirmation or --yes.",
5717
- "name": "recreate-promotion-branch",
5718
- "allowNo": false,
5719
- "type": "boolean"
5942
+ "technical-specifications": {
5943
+ "description": "Technical specifications",
5944
+ "name": "technical-specifications",
5945
+ "hasDynamicHelp": false,
5946
+ "multiple": false,
5947
+ "type": "option"
5720
5948
  },
5721
- "wait": {
5722
- "description": "Poll promotion and deployment executions to terminal status.",
5723
- "name": "wait",
5724
- "allowNo": true,
5725
- "type": "boolean"
5949
+ "theme": {
5950
+ "description": "Theme",
5951
+ "name": "theme",
5952
+ "hasDynamicHelp": false,
5953
+ "multiple": false,
5954
+ "type": "option"
5726
5955
  },
5727
- "wait-timeout": {
5728
- "description": "Maximum total seconds to wait for promotion and deployment executions.",
5729
- "name": "wait-timeout",
5730
- "default": 900,
5956
+ "title": {
5957
+ "description": "Title",
5958
+ "name": "title",
5731
5959
  "hasDynamicHelp": false,
5732
5960
  "multiple": false,
5733
5961
  "type": "option"
5734
5962
  },
5735
- "yes": {
5736
- "char": "y",
5737
- "description": "Confirm promotion branch recreation without prompting.",
5738
- "name": "yes",
5739
- "allowNo": false,
5740
- "type": "boolean"
5963
+ "want-to": {
5964
+ "description": "User story \"want to\" clause",
5965
+ "name": "want-to",
5966
+ "hasDynamicHelp": false,
5967
+ "multiple": false,
5968
+ "type": "option"
5741
5969
  }
5742
5970
  },
5743
5971
  "hasDynamicHelp": false,
5744
5972
  "hiddenAliases": [],
5745
- "id": "cicd:work:promote",
5973
+ "id": "cicd:work:create",
5746
5974
  "pluginAlias": "@copado/agentia-cli",
5747
5975
  "pluginName": "@copado/agentia-cli",
5748
5976
  "pluginType": "core",
@@ -5754,19 +5982,22 @@
5754
5982
  "commands",
5755
5983
  "cicd",
5756
5984
  "work",
5757
- "promote.js"
5985
+ "create.js"
5758
5986
  ]
5759
5987
  },
5760
- "cicd:work:push": {
5988
+ "cicd:work:delete": {
5761
5989
  "aliases": [],
5762
- "args": {},
5763
- "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`. When there are no commits since the base branch, or origin already has HEAD, fails with \"No changes to push\" unless `--permissions` and/or `--full-metadata` is set, in which case it creates an empty commit so a tip commit id exists. 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>`, reports the nested metadata changed across the branch, such as the CustomField behind a profile field-permission edit, plus the parent components it would ignore, calls headless work/push with one changeListUpdate list of Action:MetadataType:MetadataName corrections: lastPermissionSelected and --permissions plus the nested metadata of the changed profiles and permission sets as RetrieveOnly, lastFullMetadataSelected and --full-metadata plus brand-new nested parent files as fullMetadata, the ignored parents as unchanged, the nested metadata deleted on the branch as Del, and the remaining nested metadata as Add, then merges the feature branch into the recorded dev org branch. The changed profiles and permission sets themselves are never sent as corrections, so they stay in the change list and deploy only the permissions their RetrieveOnly entries select. Brand-new nested parent files are an exception: they are sent as fullMetadata so the complete file travels.",
5990
+ "args": {
5991
+ "id": {
5992
+ "description": "User story ID",
5993
+ "name": "id",
5994
+ "required": true
5995
+ }
5996
+ },
5997
+ "description": "Delete a Copado user story by ID",
5764
5998
  "examples": [
5765
- "<%= config.bin %> <%= command.id %>",
5766
- "<%= config.bin %> <%= command.id %> --permissions CustomField:Account.SLA__c,ApexClass:AccountService",
5767
- "<%= config.bin %> <%= command.id %> --full-metadata PermissionSet:Sales_Onboarding",
5768
- "<%= config.bin %> <%= command.id %> --skip-nested-metadata-detection",
5769
- "<%= config.bin %> <%= command.id %> --json"
5999
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
6000
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
5770
6001
  ],
5771
6002
  "flags": {
5772
6003
  "json": {
@@ -5775,31 +6006,11 @@
5775
6006
  "name": "json",
5776
6007
  "allowNo": false,
5777
6008
  "type": "boolean"
5778
- },
5779
- "full-metadata": {
5780
- "description": "Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, added to lastFullMetadataSelected for this push and sent as headless push fullMetadata corrections. The named metadata is committed as a complete file, so it is never decomposed into nested metadata. Not stored; use `cicd work commit --full-metadata` to record it.",
5781
- "name": "full-metadata",
5782
- "hasDynamicHelp": false,
5783
- "multiple": false,
5784
- "type": "option"
5785
- },
5786
- "permissions": {
5787
- "description": "Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, added to lastPermissionSelected for this push and sent as headless push RetrieveOnly corrections. Not stored; use `cicd work commit --permissions` to record it.",
5788
- "name": "permissions",
5789
- "hasDynamicHelp": false,
5790
- "multiple": false,
5791
- "type": "option"
5792
- },
5793
- "skip-nested-metadata-detection": {
5794
- "description": "Do not detect the nested metadata changed across the branch (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
5795
- "name": "skip-nested-metadata-detection",
5796
- "allowNo": false,
5797
- "type": "boolean"
5798
6009
  }
5799
6010
  },
5800
6011
  "hasDynamicHelp": false,
5801
6012
  "hiddenAliases": [],
5802
- "id": "cicd:work:push",
6013
+ "id": "cicd:work:delete",
5803
6014
  "pluginAlias": "@copado/agentia-cli",
5804
6015
  "pluginName": "@copado/agentia-cli",
5805
6016
  "pluginType": "core",
@@ -5811,24 +6022,18 @@
5811
6022
  "commands",
5812
6023
  "cicd",
5813
6024
  "work",
5814
- "push.js"
6025
+ "delete.js"
5815
6026
  ]
5816
6027
  },
5817
- "cicd:work:set": {
6028
+ "cicd:work:done": {
5818
6029
  "aliases": [],
5819
- "args": {
5820
- "id": {
5821
- "description": "User story ID or name (omit with --none)",
5822
- "name": "id",
5823
- "required": false
5824
- }
5825
- },
5826
- "description": "Set the active work item and prepare a local feature branch. Calls the CICD gateway work/set endpoint, requires a clean tracked working tree, fetches the work item base branch from origin, then creates or checks out feature/<user-story-name>. With --none, clears every last* key from `.agentia/config.user.json` and checks out the previous lastBaseBranch when present, else main, else master, else stays put.",
6030
+ "args": {},
6031
+ "description": "Alias of cicd work submit --done. Matches Copado UI Submit when promoting (not validate-only). Prefer: agentia cicd work submit --done.",
5827
6032
  "examples": [
5828
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
5829
- "<%= config.bin %> <%= command.id %> US-0001 --json",
5830
- "<%= config.bin %> <%= command.id %> US-0001 --base-branch develop",
5831
- "<%= config.bin %> <%= command.id %> --none"
6033
+ "<%= config.bin %> cicd work submit --done",
6034
+ "<%= config.bin %> <%= command.id %>",
6035
+ "<%= config.bin %> <%= command.id %> --skip-nested-metadata-detection",
6036
+ "<%= config.bin %> <%= command.id %> --json"
5832
6037
  ],
5833
6038
  "flags": {
5834
6039
  "json": {
@@ -5838,23 +6043,16 @@
5838
6043
  "allowNo": false,
5839
6044
  "type": "boolean"
5840
6045
  },
5841
- "base-branch": {
5842
- "description": "Override the base branch returned by the work/set endpoint",
5843
- "name": "base-branch",
5844
- "hasDynamicHelp": false,
5845
- "multiple": false,
5846
- "type": "option"
5847
- },
5848
- "none": {
5849
- "description": "Clear every last* key from `.agentia/config.user.json` and check out lastBaseBranch, else main, else master.",
5850
- "name": "none",
6046
+ "skip-nested-metadata-detection": {
6047
+ "description": "Do not detect the nested metadata changed across the branch when pushing (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
6048
+ "name": "skip-nested-metadata-detection",
5851
6049
  "allowNo": false,
5852
6050
  "type": "boolean"
5853
6051
  }
5854
6052
  },
5855
6053
  "hasDynamicHelp": false,
5856
6054
  "hiddenAliases": [],
5857
- "id": "cicd:work:set",
6055
+ "id": "cicd:work:done",
5858
6056
  "pluginAlias": "@copado/agentia-cli",
5859
6057
  "pluginName": "@copado/agentia-cli",
5860
6058
  "pluginType": "core",
@@ -5866,24 +6064,23 @@
5866
6064
  "commands",
5867
6065
  "cicd",
5868
6066
  "work",
5869
- "set.js"
6067
+ "done.js"
5870
6068
  ]
5871
6069
  },
5872
- "cicd:work:status": {
6070
+ "cicd:work:get": {
5873
6071
  "aliases": [],
5874
6072
  "args": {
5875
6073
  "id": {
5876
- "description": "User story ID or name (defaults to the last work item from `work set`)",
6074
+ "description": "User story ID (defaults to the active work item from `work set`)",
5877
6075
  "name": "id",
5878
6076
  "required": false
5879
6077
  }
5880
6078
  },
5881
- "description": "Get status for a work item, including related job executions and local branch metadata. Uses the given user story ID/name, or the last work item from `agentia cicd work set`. Use --metadata-list-only to retrieve only local branch metadata without an API call.",
6079
+ "description": "Get a Copado user story by ID",
5882
6080
  "examples": [
5883
6081
  "<%= config.bin %> <%= command.id %>",
5884
- "<%= config.bin %> <%= command.id %> US-0001",
5885
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json",
5886
- "<%= config.bin %> <%= command.id %> --metadata-list-only"
6082
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
6083
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
5887
6084
  ],
5888
6085
  "flags": {
5889
6086
  "json": {
@@ -5892,17 +6089,11 @@
5892
6089
  "name": "json",
5893
6090
  "allowNo": false,
5894
6091
  "type": "boolean"
5895
- },
5896
- "metadata-list-only": {
5897
- "description": "Return only local branch metadata without calling the CICD API",
5898
- "name": "metadata-list-only",
5899
- "allowNo": false,
5900
- "type": "boolean"
5901
6092
  }
5902
6093
  },
5903
6094
  "hasDynamicHelp": false,
5904
6095
  "hiddenAliases": [],
5905
- "id": "cicd:work:status",
6096
+ "id": "cicd:work:get",
5906
6097
  "pluginAlias": "@copado/agentia-cli",
5907
6098
  "pluginName": "@copado/agentia-cli",
5908
6099
  "pluginType": "core",
@@ -5914,20 +6105,18 @@
5914
6105
  "commands",
5915
6106
  "cicd",
5916
6107
  "work",
5917
- "status.js"
6108
+ "get.js"
5918
6109
  ]
5919
6110
  },
5920
- "cicd:work:submit": {
6111
+ "cicd:work:list": {
5921
6112
  "aliases": [],
5922
6113
  "args": {},
5923
- "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). With --done, matches Copado UI Submit when promoting (validate=false / headless work/done). cicd work done is a compatibility alias of this command with --done.",
6114
+ "description": "List Copado user stories",
5924
6115
  "examples": [
5925
6116
  "<%= config.bin %> <%= command.id %>",
5926
- "<%= config.bin %> <%= command.id %> --apex-test-classes=MyTest,OtherTest",
5927
- "<%= config.bin %> <%= command.id %> --skip-local-tests",
5928
- "<%= config.bin %> <%= command.id %> --skip-pull-request",
5929
- "<%= config.bin %> <%= command.id %> --done",
5930
- "<%= config.bin %> <%= command.id %> --done --skip-nested-metadata-detection",
6117
+ "<%= config.bin %> <%= command.id %> --status \"In Progress\" --project-name MyProject",
6118
+ "<%= config.bin %> <%= command.id %> --assigned-to-me",
6119
+ "<%= config.bin %> <%= command.id %> --owned-by-me",
5931
6120
  "<%= config.bin %> <%= command.id %> --json"
5932
6121
  ],
5933
6122
  "flags": {
@@ -5938,41 +6127,99 @@
5938
6127
  "allowNo": false,
5939
6128
  "type": "boolean"
5940
6129
  },
5941
- "skip-nested-metadata-detection": {
5942
- "description": "Do not detect the nested metadata changed across the branch when pushing (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
5943
- "name": "skip-nested-metadata-detection",
6130
+ "cursor": {
6131
+ "description": "Opaque pagination cursor from a previous list response (nextCursor)",
6132
+ "name": "cursor",
6133
+ "hasDynamicHelp": false,
6134
+ "multiple": false,
6135
+ "type": "option"
6136
+ },
6137
+ "page-size": {
6138
+ "description": "Number of records per page (1-200)",
6139
+ "name": "page-size",
6140
+ "hasDynamicHelp": false,
6141
+ "multiple": false,
6142
+ "type": "option"
6143
+ },
6144
+ "assigned-to-me": {
6145
+ "description": "Filter by the current user as assignee",
6146
+ "name": "assigned-to-me",
5944
6147
  "allowNo": false,
5945
6148
  "type": "boolean"
5946
6149
  },
5947
- "apex-test-classes": {
5948
- "description": "Comma-separated Apex test class names passed to local quality gates as AGENTIA_APEX_TEST_CLASSES",
5949
- "name": "apex-test-classes",
6150
+ "assignee-id": {
6151
+ "description": "Filter by assignee ID",
6152
+ "name": "assignee-id",
6153
+ "hasDynamicHelp": false,
6154
+ "multiple": false,
6155
+ "type": "option"
6156
+ },
6157
+ "assignee-name": {
6158
+ "description": "Filter by assignee name",
6159
+ "name": "assignee-name",
6160
+ "hasDynamicHelp": false,
6161
+ "multiple": false,
6162
+ "type": "option"
6163
+ },
6164
+ "name": {
6165
+ "description": "Filter by name",
6166
+ "name": "name",
6167
+ "hasDynamicHelp": false,
6168
+ "multiple": false,
6169
+ "type": "option"
6170
+ },
6171
+ "owned-by-me": {
6172
+ "description": "Filter by the current user as owner",
6173
+ "name": "owned-by-me",
6174
+ "allowNo": false,
6175
+ "type": "boolean"
6176
+ },
6177
+ "owner-id": {
6178
+ "description": "Filter by owner ID",
6179
+ "name": "owner-id",
6180
+ "hasDynamicHelp": false,
6181
+ "multiple": false,
6182
+ "type": "option"
6183
+ },
6184
+ "owner-name": {
6185
+ "description": "Filter by owner name",
6186
+ "name": "owner-name",
6187
+ "hasDynamicHelp": false,
6188
+ "multiple": false,
6189
+ "type": "option"
6190
+ },
6191
+ "project-id": {
6192
+ "description": "Filter by project ID",
6193
+ "name": "project-id",
6194
+ "hasDynamicHelp": false,
6195
+ "multiple": false,
6196
+ "type": "option"
6197
+ },
6198
+ "project-name": {
6199
+ "description": "Filter by project name",
6200
+ "name": "project-name",
6201
+ "hasDynamicHelp": false,
6202
+ "multiple": false,
6203
+ "type": "option"
6204
+ },
6205
+ "status": {
6206
+ "description": "Filter by status",
6207
+ "name": "status",
5950
6208
  "hasDynamicHelp": false,
5951
6209
  "multiple": false,
5952
6210
  "type": "option"
5953
6211
  },
5954
- "done": {
5955
- "description": "Promote instead of validate-only (Copado UI Submit promote); honors --skip-nested-metadata-detection",
5956
- "name": "done",
5957
- "allowNo": false,
5958
- "type": "boolean"
5959
- },
5960
- "skip-local-tests": {
5961
- "description": "Skip running local quality gates scripts in the project root",
5962
- "name": "skip-local-tests",
5963
- "allowNo": false,
5964
- "type": "boolean"
5965
- },
5966
- "skip-pull-request": {
5967
- "description": "Do not open the pull request compare URL after submit (also configurable via skipPullRequest in .agentia/config.json or .agentia/config.user.json)",
5968
- "name": "skip-pull-request",
5969
- "allowNo": false,
5970
- "type": "boolean"
6212
+ "title": {
6213
+ "description": "Filter by title",
6214
+ "name": "title",
6215
+ "hasDynamicHelp": false,
6216
+ "multiple": false,
6217
+ "type": "option"
5971
6218
  }
5972
6219
  },
5973
6220
  "hasDynamicHelp": false,
5974
6221
  "hiddenAliases": [],
5975
- "id": "cicd:work:submit",
6222
+ "id": "cicd:work:list",
5976
6223
  "pluginAlias": "@copado/agentia-cli",
5977
6224
  "pluginName": "@copado/agentia-cli",
5978
6225
  "pluginType": "core",
@@ -5984,18 +6231,23 @@
5984
6231
  "commands",
5985
6232
  "cicd",
5986
6233
  "work",
5987
- "submit.js"
6234
+ "list.js"
5988
6235
  ]
5989
6236
  },
5990
- "cicd:work:test": {
6237
+ "cicd:work:open": {
5991
6238
  "aliases": [],
5992
- "args": {},
5993
- "description": "Run quality gates for the current work item. With --local (the default) it runs project-root .agentia_quality_gates.sh (macOS/Linux) or .agentia_quality_gates.cmd (Windows) when present — the same local gates as work submit. With --cloud it runs remote Copado quality gates (not implemented yet).",
6239
+ "args": {
6240
+ "id": {
6241
+ "description": "User story ID (defaults to the active work item from `work set`)",
6242
+ "name": "id",
6243
+ "required": false
6244
+ }
6245
+ },
6246
+ "description": "Open a Copado user story in the browser",
5994
6247
  "examples": [
5995
6248
  "<%= config.bin %> <%= command.id %>",
5996
- "<%= config.bin %> <%= command.id %> --local --apex-test-classes=MyTest,OtherTest",
5997
- "<%= config.bin %> <%= command.id %> --json",
5998
- "<%= config.bin %> <%= command.id %> --cloud"
6249
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
6250
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json"
5999
6251
  ],
6000
6252
  "flags": {
6001
6253
  "json": {
@@ -6004,30 +6256,11 @@
6004
6256
  "name": "json",
6005
6257
  "allowNo": false,
6006
6258
  "type": "boolean"
6007
- },
6008
- "apex-test-classes": {
6009
- "description": "Comma-separated Apex test class names passed to local quality gates as AGENTIA_APEX_TEST_CLASSES",
6010
- "name": "apex-test-classes",
6011
- "hasDynamicHelp": false,
6012
- "multiple": false,
6013
- "type": "option"
6014
- },
6015
- "cloud": {
6016
- "description": "Run remote Copado quality gates (not implemented yet).",
6017
- "name": "cloud",
6018
- "allowNo": false,
6019
- "type": "boolean"
6020
- },
6021
- "local": {
6022
- "description": "Run local project-root quality gates scripts. Used by default when --cloud is omitted.",
6023
- "name": "local",
6024
- "allowNo": false,
6025
- "type": "boolean"
6026
6259
  }
6027
6260
  },
6028
6261
  "hasDynamicHelp": false,
6029
6262
  "hiddenAliases": [],
6030
- "id": "cicd:work:test",
6263
+ "id": "cicd:work:open",
6031
6264
  "pluginAlias": "@copado/agentia-cli",
6032
6265
  "pluginName": "@copado/agentia-cli",
6033
6266
  "pluginType": "core",
@@ -6039,23 +6272,23 @@
6039
6272
  "commands",
6040
6273
  "cicd",
6041
6274
  "work",
6042
- "test.js"
6275
+ "open.js"
6043
6276
  ]
6044
6277
  },
6045
- "cicd:work:update": {
6278
+ "cicd:work:promote": {
6046
6279
  "aliases": [],
6047
6280
  "args": {
6048
6281
  "id": {
6049
- "description": "User story ID (defaults to the active work item from `work set`)",
6282
+ "description": "User Story ID (defaults to the active work item from `work set`)",
6050
6283
  "name": "id",
6051
6284
  "required": false
6052
6285
  }
6053
6286
  },
6054
- "description": "Update a Copado user story by ID",
6287
+ "description": "Promote the explicit or active User Story through its Copado Promotion. Requires --cloud and selects promote-only unless --deploy is passed.",
6055
6288
  "examples": [
6056
- "<%= config.bin %> <%= command.id %> --title \"Updated story\"",
6057
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --title \"Updated story\"",
6058
- "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --status \"In Progress\" --json"
6289
+ "<%= config.bin %> <%= command.id %> --cloud",
6290
+ "<%= config.bin %> <%= command.id %> a07XXXXXXXXXXXXXXX --cloud --promotion-id a0BXXXXXXXXXXXXXXX",
6291
+ "<%= config.bin %> <%= command.id %> --cloud --deploy --json"
6059
6292
  ],
6060
6293
  "flags": {
6061
6294
  "json": {
@@ -6065,191 +6298,70 @@
6065
6298
  "allowNo": false,
6066
6299
  "type": "boolean"
6067
6300
  },
6068
- "excluded-from-cbm": {
6069
- "description": "Exclude from CBM",
6070
- "name": "excluded-from-cbm",
6071
- "allowNo": true,
6301
+ "cloud": {
6302
+ "description": "Use the Copado cloud promotion API. Required for this command.",
6303
+ "name": "cloud",
6304
+ "allowNo": false,
6072
6305
  "type": "boolean"
6073
6306
  },
6074
- "actual-points": {
6075
- "description": "Actual points",
6076
- "name": "actual-points",
6077
- "hasDynamicHelp": false,
6078
- "multiple": false,
6079
- "type": "option"
6080
- },
6081
- "planned-points": {
6082
- "description": "Planned points",
6083
- "name": "planned-points",
6084
- "hasDynamicHelp": false,
6085
- "multiple": false,
6086
- "type": "option"
6087
- },
6088
- "priority": {
6089
- "description": "Priority",
6090
- "name": "priority",
6091
- "hasDynamicHelp": false,
6092
- "multiple": false,
6093
- "type": "option"
6094
- },
6095
- "acceptance-criteria": {
6096
- "description": "Acceptance criteria",
6097
- "name": "acceptance-criteria",
6098
- "hasDynamicHelp": false,
6099
- "multiple": false,
6100
- "type": "option"
6101
- },
6102
- "as-a": {
6103
- "description": "User story \"as a\" clause",
6104
- "name": "as-a",
6105
- "hasDynamicHelp": false,
6106
- "multiple": false,
6107
- "type": "option"
6108
- },
6109
- "assignee": {
6110
- "description": "Assignee ID",
6111
- "name": "assignee",
6112
- "hasDynamicHelp": false,
6113
- "multiple": false,
6114
- "type": "option"
6115
- },
6116
- "cancellation-reason": {
6117
- "description": "Cancellation reason",
6118
- "name": "cancellation-reason",
6119
- "hasDynamicHelp": false,
6120
- "multiple": false,
6121
- "type": "option"
6122
- },
6123
- "close-date": {
6124
- "description": "Close date",
6125
- "name": "close-date",
6126
- "hasDynamicHelp": false,
6127
- "multiple": false,
6128
- "type": "option"
6129
- },
6130
- "epic": {
6131
- "description": "Epic",
6132
- "name": "epic",
6133
- "hasDynamicHelp": false,
6134
- "multiple": false,
6135
- "type": "option"
6136
- },
6137
- "feature": {
6138
- "description": "Feature",
6139
- "name": "feature",
6140
- "hasDynamicHelp": false,
6141
- "multiple": false,
6142
- "type": "option"
6143
- },
6144
- "functional-requirements": {
6145
- "description": "Functional requirements",
6146
- "name": "functional-requirements",
6147
- "hasDynamicHelp": false,
6148
- "multiple": false,
6149
- "type": "option"
6150
- },
6151
- "owner-id": {
6152
- "description": "Owner ID",
6153
- "name": "owner-id",
6154
- "hasDynamicHelp": false,
6155
- "multiple": false,
6156
- "type": "option"
6157
- },
6158
- "project": {
6159
- "description": "Project ID",
6160
- "name": "project",
6161
- "hasDynamicHelp": false,
6162
- "multiple": false,
6163
- "type": "option"
6164
- },
6165
- "record-type": {
6166
- "description": "Record type",
6167
- "name": "record-type",
6168
- "hasDynamicHelp": false,
6169
- "multiple": false,
6170
- "type": "option"
6171
- },
6172
- "release-id": {
6173
- "description": "Release ID",
6174
- "name": "release-id",
6175
- "hasDynamicHelp": false,
6176
- "multiple": false,
6177
- "type": "option"
6178
- },
6179
- "so-that": {
6180
- "description": "User story \"so that\" clause",
6181
- "name": "so-that",
6182
- "hasDynamicHelp": false,
6183
- "multiple": false,
6184
- "type": "option"
6185
- },
6186
- "source-credential": {
6187
- "description": "Source credential ID",
6188
- "name": "source-credential",
6189
- "hasDynamicHelp": false,
6190
- "multiple": false,
6191
- "type": "option"
6192
- },
6193
- "source-environment": {
6194
- "description": "Source environment ID",
6195
- "name": "source-environment",
6196
- "hasDynamicHelp": false,
6197
- "multiple": false,
6198
- "type": "option"
6199
- },
6200
- "sprint-id": {
6201
- "description": "Sprint ID",
6202
- "name": "sprint-id",
6203
- "hasDynamicHelp": false,
6204
- "multiple": false,
6205
- "type": "option"
6206
- },
6207
- "status": {
6208
- "description": "Status",
6209
- "name": "status",
6210
- "hasDynamicHelp": false,
6211
- "multiple": false,
6212
- "type": "option"
6213
- },
6214
- "team": {
6215
- "description": "Team",
6216
- "name": "team",
6217
- "hasDynamicHelp": false,
6218
- "multiple": false,
6219
- "type": "option"
6307
+ "deploy": {
6308
+ "description": "Use merge_and_deploy instead of promote-only merge.",
6309
+ "name": "deploy",
6310
+ "allowNo": false,
6311
+ "type": "boolean"
6220
6312
  },
6221
- "technical-specifications": {
6222
- "description": "Technical specifications",
6223
- "name": "technical-specifications",
6313
+ "deployment-step-id": {
6314
+ "description": "Ordered deployment-step Salesforce ID. Can be provided multiple times with --deploy.",
6315
+ "name": "deployment-step-id",
6224
6316
  "hasDynamicHelp": false,
6225
- "multiple": false,
6317
+ "multiple": true,
6226
6318
  "type": "option"
6227
6319
  },
6228
- "theme": {
6229
- "description": "Theme",
6230
- "name": "theme",
6320
+ "ignored-metadata-json": {
6321
+ "description": "JSON array to persist through ignored-metadata before starting the promotion.",
6322
+ "name": "ignored-metadata-json",
6231
6323
  "hasDynamicHelp": false,
6232
6324
  "multiple": false,
6233
6325
  "type": "option"
6234
6326
  },
6235
- "title": {
6236
- "description": "Title",
6237
- "name": "title",
6327
+ "promotion-id": {
6328
+ "description": "Explicit 18-character Promotion ID when the User Story belongs to multiple promotions.",
6329
+ "name": "promotion-id",
6238
6330
  "hasDynamicHelp": false,
6239
6331
  "multiple": false,
6240
6332
  "type": "option"
6241
6333
  },
6242
- "want-to": {
6243
- "description": "User story \"want to\" clause",
6244
- "name": "want-to",
6334
+ "recreate-promotion-branch": {
6335
+ "description": "Recreate the promotion branch before execution. Requires confirmation or --yes.",
6336
+ "name": "recreate-promotion-branch",
6337
+ "allowNo": false,
6338
+ "type": "boolean"
6339
+ },
6340
+ "wait": {
6341
+ "description": "Poll promotion and deployment executions to terminal status.",
6342
+ "name": "wait",
6343
+ "allowNo": true,
6344
+ "type": "boolean"
6345
+ },
6346
+ "wait-timeout": {
6347
+ "description": "Maximum total seconds to wait for promotion and deployment executions.",
6348
+ "name": "wait-timeout",
6349
+ "default": 900,
6245
6350
  "hasDynamicHelp": false,
6246
6351
  "multiple": false,
6247
6352
  "type": "option"
6353
+ },
6354
+ "yes": {
6355
+ "char": "y",
6356
+ "description": "Confirm promotion branch recreation without prompting.",
6357
+ "name": "yes",
6358
+ "allowNo": false,
6359
+ "type": "boolean"
6248
6360
  }
6249
6361
  },
6250
6362
  "hasDynamicHelp": false,
6251
6363
  "hiddenAliases": [],
6252
- "id": "cicd:work:update",
6364
+ "id": "cicd:work:promote",
6253
6365
  "pluginAlias": "@copado/agentia-cli",
6254
6366
  "pluginName": "@copado/agentia-cli",
6255
6367
  "pluginType": "core",
@@ -6261,17 +6373,18 @@
6261
6373
  "commands",
6262
6374
  "cicd",
6263
6375
  "work",
6264
- "update.js"
6376
+ "promote.js"
6265
6377
  ]
6266
6378
  },
6267
- "setup:skills:create": {
6379
+ "cicd:work:push": {
6268
6380
  "aliases": [],
6269
6381
  "args": {},
6270
- "description": "Create portable Markdown-only Agentia CLI skills in this project without overwriting managed files",
6382
+ "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`. When there are no commits since the base branch, or origin already has HEAD, fails with \"No changes to push\" unless `--permissions` and/or `--full-metadata` is set, in which case it creates an empty commit so a tip commit id exists. 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>`, reports the nested metadata changed across the branch, such as the CustomField behind a profile field-permission edit, plus the parent components it would ignore, calls headless work/push with one changeListUpdate list of Action:MetadataType:MetadataName corrections: lastPermissionSelected and --permissions plus the nested metadata of the changed profiles and permission sets as RetrieveOnly, lastFullMetadataSelected and --full-metadata plus brand-new nested parent files as fullMetadata, the ignored parents as unchanged, the nested metadata deleted on the branch as Del, and the remaining nested metadata as Add, then merges the feature branch into the recorded dev org branch. The changed profiles and permission sets themselves are never sent as corrections, so they stay in the change list and deploy only the permissions their RetrieveOnly entries select. Brand-new nested parent files are an exception: they are sent as fullMetadata so the complete file travels.",
6271
6383
  "examples": [
6272
6384
  "<%= config.bin %> <%= command.id %>",
6273
- "<%= config.bin %> <%= command.id %> --cicd --target agents --no-prompt",
6274
- "<%= config.bin %> <%= command.id %> --testing --ai --target cursor --no-prompt",
6385
+ "<%= config.bin %> <%= command.id %> --permissions CustomField:Account.SLA__c,ApexClass:AccountService",
6386
+ "<%= config.bin %> <%= command.id %> --full-metadata PermissionSet:Sales_Onboarding",
6387
+ "<%= config.bin %> <%= command.id %> --skip-nested-metadata-detection",
6275
6388
  "<%= config.bin %> <%= command.id %> --json"
6276
6389
  ],
6277
6390
  "flags": {
@@ -6282,53 +6395,30 @@
6282
6395
  "allowNo": false,
6283
6396
  "type": "boolean"
6284
6397
  },
6285
- "ai": {
6286
- "description": "Create the Copado AI agent skill pack",
6287
- "name": "ai",
6288
- "allowNo": false,
6289
- "type": "boolean"
6290
- },
6291
- "cicd": {
6292
- "description": "Create the Copado CICD skill pack",
6293
- "name": "cicd",
6294
- "allowNo": false,
6295
- "type": "boolean"
6296
- },
6297
- "force": {
6298
- "description": "Replace conflicting unmanaged Agentia skill files",
6299
- "name": "force",
6300
- "allowNo": false,
6301
- "type": "boolean"
6302
- },
6303
- "no-prompt": {
6304
- "char": "n",
6305
- "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
6306
- "name": "no-prompt",
6307
- "allowNo": false,
6308
- "type": "boolean"
6398
+ "full-metadata": {
6399
+ "description": "Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, added to lastFullMetadataSelected for this push and sent as headless push fullMetadata corrections. The named metadata is committed as a complete file, so it is never decomposed into nested metadata. Not stored; use `cicd work commit --full-metadata` to record it.",
6400
+ "name": "full-metadata",
6401
+ "hasDynamicHelp": false,
6402
+ "multiple": false,
6403
+ "type": "option"
6309
6404
  },
6310
- "target": {
6311
- "description": "Project skill root to write (repeatable)",
6312
- "name": "target",
6405
+ "permissions": {
6406
+ "description": "Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, added to lastPermissionSelected for this push and sent as headless push RetrieveOnly corrections. Not stored; use `cicd work commit --permissions` to record it.",
6407
+ "name": "permissions",
6313
6408
  "hasDynamicHelp": false,
6314
- "multiple": true,
6315
- "options": [
6316
- "agents",
6317
- "cursor",
6318
- "claude"
6319
- ],
6409
+ "multiple": false,
6320
6410
  "type": "option"
6321
6411
  },
6322
- "testing": {
6323
- "description": "Create the Copado Robotic Testing skill pack",
6324
- "name": "testing",
6412
+ "skip-nested-metadata-detection": {
6413
+ "description": "Do not detect the nested metadata changed across the branch (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
6414
+ "name": "skip-nested-metadata-detection",
6325
6415
  "allowNo": false,
6326
6416
  "type": "boolean"
6327
6417
  }
6328
6418
  },
6329
6419
  "hasDynamicHelp": false,
6330
6420
  "hiddenAliases": [],
6331
- "id": "setup:skills:create",
6421
+ "id": "cicd:work:push",
6332
6422
  "pluginAlias": "@copado/agentia-cli",
6333
6423
  "pluginName": "@copado/agentia-cli",
6334
6424
  "pluginType": "core",
@@ -6338,20 +6428,26 @@
6338
6428
  "relativePath": [
6339
6429
  "dist",
6340
6430
  "commands",
6341
- "setup",
6342
- "skills",
6343
- "create.js"
6431
+ "cicd",
6432
+ "work",
6433
+ "push.js"
6344
6434
  ]
6345
6435
  },
6346
- "setup:skills:update": {
6436
+ "cicd:work:set": {
6347
6437
  "aliases": [],
6348
- "args": {},
6349
- "description": "Update Agentia-managed Markdown skill files and restore missing files in this project",
6438
+ "args": {
6439
+ "id": {
6440
+ "description": "User story ID or name (omit with --none)",
6441
+ "name": "id",
6442
+ "required": false
6443
+ }
6444
+ },
6445
+ "description": "Set the active work item and prepare a local feature branch. Calls the CICD gateway work/set endpoint, requires a clean tracked working tree, fetches the work item base branch from origin, then creates or checks out feature/<user-story-name>. With --none, clears every last* key from `.agentia/config.user.json` and checks out the previous lastBaseBranch when present, else main, else master, else stays put.",
6350
6446
  "examples": [
6351
- "<%= config.bin %> <%= command.id %>",
6352
- "<%= config.bin %> <%= command.id %> --ai --target cursor --no-prompt",
6353
- "<%= config.bin %> <%= command.id %> --cicd --testing --target agents --no-prompt",
6354
- "<%= config.bin %> <%= command.id %> --force --json"
6447
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
6448
+ "<%= config.bin %> <%= command.id %> US-0001 --json",
6449
+ "<%= config.bin %> <%= command.id %> US-0001 --base-branch develop",
6450
+ "<%= config.bin %> <%= command.id %> --none"
6355
6451
  ],
6356
6452
  "flags": {
6357
6453
  "json": {
@@ -6361,53 +6457,23 @@
6361
6457
  "allowNo": false,
6362
6458
  "type": "boolean"
6363
6459
  },
6364
- "ai": {
6365
- "description": "Update the Copado AI agent skill pack",
6366
- "name": "ai",
6367
- "allowNo": false,
6368
- "type": "boolean"
6369
- },
6370
- "cicd": {
6371
- "description": "Update the Copado CICD skill pack",
6372
- "name": "cicd",
6373
- "allowNo": false,
6374
- "type": "boolean"
6375
- },
6376
- "force": {
6377
- "description": "Replace conflicting unmanaged Agentia skill files",
6378
- "name": "force",
6379
- "allowNo": false,
6380
- "type": "boolean"
6381
- },
6382
- "no-prompt": {
6383
- "char": "n",
6384
- "description": "Skip interactive prompts; defaults the target to .agents/skills when --target is omitted",
6385
- "name": "no-prompt",
6386
- "allowNo": false,
6387
- "type": "boolean"
6388
- },
6389
- "target": {
6390
- "description": "Project skill root to write (repeatable)",
6391
- "name": "target",
6460
+ "base-branch": {
6461
+ "description": "Override the base branch returned by the work/set endpoint",
6462
+ "name": "base-branch",
6392
6463
  "hasDynamicHelp": false,
6393
- "multiple": true,
6394
- "options": [
6395
- "agents",
6396
- "cursor",
6397
- "claude"
6398
- ],
6464
+ "multiple": false,
6399
6465
  "type": "option"
6400
6466
  },
6401
- "testing": {
6402
- "description": "Update the Copado Robotic Testing skill pack",
6403
- "name": "testing",
6467
+ "none": {
6468
+ "description": "Clear every last* key from `.agentia/config.user.json` and check out lastBaseBranch, else main, else master.",
6469
+ "name": "none",
6404
6470
  "allowNo": false,
6405
6471
  "type": "boolean"
6406
6472
  }
6407
6473
  },
6408
6474
  "hasDynamicHelp": false,
6409
6475
  "hiddenAliases": [],
6410
- "id": "setup:skills:update",
6476
+ "id": "cicd:work:set",
6411
6477
  "pluginAlias": "@copado/agentia-cli",
6412
6478
  "pluginName": "@copado/agentia-cli",
6413
6479
  "pluginType": "core",
@@ -6417,24 +6483,26 @@
6417
6483
  "relativePath": [
6418
6484
  "dist",
6419
6485
  "commands",
6420
- "setup",
6421
- "skills",
6422
- "update.js"
6486
+ "cicd",
6487
+ "work",
6488
+ "set.js"
6423
6489
  ]
6424
6490
  },
6425
- "testing:build:abort": {
6491
+ "cicd:work:status": {
6426
6492
  "aliases": [],
6427
6493
  "args": {
6428
6494
  "id": {
6429
- "description": "CRT build/run ID.",
6495
+ "description": "User story ID or name (defaults to the last work item from `work set`)",
6430
6496
  "name": "id",
6431
- "required": true
6497
+ "required": false
6432
6498
  }
6433
6499
  },
6434
- "description": "Abort a Copado Robotic Testing build/run",
6500
+ "description": "Get status for a work item, including related job executions and local branch metadata. Uses the given user story ID/name, or the last work item from `agentia cicd work set`. Use --metadata-list-only to retrieve only local branch metadata without an API call.",
6435
6501
  "examples": [
6436
- "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id>",
6437
- "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id> --json"
6502
+ "<%= config.bin %> <%= command.id %>",
6503
+ "<%= config.bin %> <%= command.id %> US-0001",
6504
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json",
6505
+ "<%= config.bin %> <%= command.id %> --metadata-list-only"
6438
6506
  ],
6439
6507
  "flags": {
6440
6508
  "json": {
@@ -6444,28 +6512,16 @@
6444
6512
  "allowNo": false,
6445
6513
  "type": "boolean"
6446
6514
  },
6447
- "project": {
6448
- "char": "p",
6449
- "description": "CRT project ID.",
6450
- "name": "project",
6451
- "required": true,
6452
- "hasDynamicHelp": false,
6453
- "multiple": false,
6454
- "type": "option"
6455
- },
6456
- "job": {
6457
- "char": "j",
6458
- "description": "CRT job/test ID.",
6459
- "name": "job",
6460
- "required": true,
6461
- "hasDynamicHelp": false,
6462
- "multiple": false,
6463
- "type": "option"
6515
+ "metadata-list-only": {
6516
+ "description": "Return only local branch metadata without calling the CICD API",
6517
+ "name": "metadata-list-only",
6518
+ "allowNo": false,
6519
+ "type": "boolean"
6464
6520
  }
6465
6521
  },
6466
6522
  "hasDynamicHelp": false,
6467
6523
  "hiddenAliases": [],
6468
- "id": "testing:build:abort",
6524
+ "id": "cicd:work:status",
6469
6525
  "pluginAlias": "@copado/agentia-cli",
6470
6526
  "pluginName": "@copado/agentia-cli",
6471
6527
  "pluginType": "core",
@@ -6475,18 +6531,23 @@
6475
6531
  "relativePath": [
6476
6532
  "dist",
6477
6533
  "commands",
6478
- "testing",
6479
- "build",
6480
- "abort.js"
6534
+ "cicd",
6535
+ "work",
6536
+ "status.js"
6481
6537
  ]
6482
6538
  },
6483
- "testing:build:list": {
6539
+ "cicd:work:submit": {
6484
6540
  "aliases": [],
6485
6541
  "args": {},
6486
- "description": "List Copado Robotic Testing builds/runs",
6542
+ "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). With --done, matches Copado UI Submit when promoting (validate=false / headless work/done). cicd work done is a compatibility alias of this command with --done.",
6487
6543
  "examples": [
6488
- "<%= config.bin %> <%= command.id %> --project <project-id>",
6489
- "<%= config.bin %> <%= command.id %> --project <project-id> --job <job-id> --status succeeded --json"
6544
+ "<%= config.bin %> <%= command.id %>",
6545
+ "<%= config.bin %> <%= command.id %> --apex-test-classes=MyTest,OtherTest",
6546
+ "<%= config.bin %> <%= command.id %> --skip-local-tests",
6547
+ "<%= config.bin %> <%= command.id %> --skip-pull-request",
6548
+ "<%= config.bin %> <%= command.id %> --done",
6549
+ "<%= config.bin %> <%= command.id %> --done --skip-nested-metadata-detection",
6550
+ "<%= config.bin %> <%= command.id %> --json"
6490
6551
  ],
6491
6552
  "flags": {
6492
6553
  "json": {
@@ -6496,52 +6557,41 @@
6496
6557
  "allowNo": false,
6497
6558
  "type": "boolean"
6498
6559
  },
6499
- "project": {
6500
- "char": "p",
6501
- "description": "CRT project ID.",
6502
- "name": "project",
6503
- "required": true,
6504
- "hasDynamicHelp": false,
6505
- "multiple": false,
6506
- "type": "option"
6507
- },
6508
- "job": {
6509
- "description": "Limit builds to one CRT job/test ID.",
6510
- "name": "job",
6511
- "hasDynamicHelp": false,
6512
- "multiple": false,
6513
- "type": "option"
6514
- },
6515
- "result-size": {
6516
- "description": "CRT build result size.",
6517
- "name": "result-size",
6518
- "default": "compact",
6519
- "hasDynamicHelp": false,
6520
- "multiple": false,
6521
- "options": [
6522
- "compact"
6523
- ],
6524
- "type": "option"
6560
+ "skip-nested-metadata-detection": {
6561
+ "description": "Do not detect the nested metadata changed across the branch when pushing (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
6562
+ "name": "skip-nested-metadata-detection",
6563
+ "allowNo": false,
6564
+ "type": "boolean"
6525
6565
  },
6526
- "status": {
6527
- "description": "Build status filter.",
6528
- "name": "status",
6566
+ "apex-test-classes": {
6567
+ "description": "Comma-separated Apex test class names passed to local quality gates as AGENTIA_APEX_TEST_CLASSES",
6568
+ "name": "apex-test-classes",
6529
6569
  "hasDynamicHelp": false,
6530
6570
  "multiple": false,
6531
- "options": [
6532
- "aborted",
6533
- "executing",
6534
- "failed",
6535
- "finished",
6536
- "queued",
6537
- "succeeded"
6538
- ],
6539
6571
  "type": "option"
6572
+ },
6573
+ "done": {
6574
+ "description": "Promote instead of validate-only (Copado UI Submit promote); honors --skip-nested-metadata-detection",
6575
+ "name": "done",
6576
+ "allowNo": false,
6577
+ "type": "boolean"
6578
+ },
6579
+ "skip-local-tests": {
6580
+ "description": "Skip running local quality gates scripts in the project root",
6581
+ "name": "skip-local-tests",
6582
+ "allowNo": false,
6583
+ "type": "boolean"
6584
+ },
6585
+ "skip-pull-request": {
6586
+ "description": "Do not open the pull request compare URL after submit (also configurable via skipPullRequest in .agentia/config.json or .agentia/config.user.json)",
6587
+ "name": "skip-pull-request",
6588
+ "allowNo": false,
6589
+ "type": "boolean"
6540
6590
  }
6541
6591
  },
6542
6592
  "hasDynamicHelp": false,
6543
6593
  "hiddenAliases": [],
6544
- "id": "testing:build:list",
6594
+ "id": "cicd:work:submit",
6545
6595
  "pluginAlias": "@copado/agentia-cli",
6546
6596
  "pluginName": "@copado/agentia-cli",
6547
6597
  "pluginType": "core",
@@ -6551,24 +6601,20 @@
6551
6601
  "relativePath": [
6552
6602
  "dist",
6553
6603
  "commands",
6554
- "testing",
6555
- "build",
6556
- "list.js"
6604
+ "cicd",
6605
+ "work",
6606
+ "submit.js"
6557
6607
  ]
6558
6608
  },
6559
- "testing:build:logs": {
6609
+ "cicd:work:test": {
6560
6610
  "aliases": [],
6561
- "args": {
6562
- "id": {
6563
- "description": "CRT build/run ID.",
6564
- "name": "id",
6565
- "required": true
6566
- }
6567
- },
6568
- "description": "Get logs for a Copado Robotic Testing build/run",
6611
+ "args": {},
6612
+ "description": "Run quality gates for the current work item. With --local (the default) it runs project-root .agentia_quality_gates.sh (macOS/Linux) or .agentia_quality_gates.cmd (Windows) when present — the same local gates as work submit. With --cloud it runs remote Copado quality gates (not implemented yet).",
6569
6613
  "examples": [
6570
- "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id>",
6571
- "<%= config.bin %> <%= command.id %> <build-id> --project <project-id> --job <job-id> --output log.html --json"
6614
+ "<%= config.bin %> <%= command.id %>",
6615
+ "<%= config.bin %> <%= command.id %> --local --apex-test-classes=MyTest,OtherTest",
6616
+ "<%= config.bin %> <%= command.id %> --json",
6617
+ "<%= config.bin %> <%= command.id %> --cloud"
6572
6618
  ],
6573
6619
  "flags": {
6574
6620
  "json": {
@@ -6578,36 +6624,29 @@
6578
6624
  "allowNo": false,
6579
6625
  "type": "boolean"
6580
6626
  },
6581
- "project": {
6582
- "char": "p",
6583
- "description": "CRT project ID.",
6584
- "name": "project",
6585
- "required": true,
6627
+ "apex-test-classes": {
6628
+ "description": "Comma-separated Apex test class names passed to local quality gates as AGENTIA_APEX_TEST_CLASSES",
6629
+ "name": "apex-test-classes",
6586
6630
  "hasDynamicHelp": false,
6587
6631
  "multiple": false,
6588
6632
  "type": "option"
6589
6633
  },
6590
- "job": {
6591
- "char": "j",
6592
- "description": "CRT job/test ID.",
6593
- "name": "job",
6594
- "required": true,
6595
- "hasDynamicHelp": false,
6596
- "multiple": false,
6597
- "type": "option"
6634
+ "cloud": {
6635
+ "description": "Run remote Copado quality gates (not implemented yet).",
6636
+ "name": "cloud",
6637
+ "allowNo": false,
6638
+ "type": "boolean"
6598
6639
  },
6599
- "output": {
6600
- "char": "o",
6601
- "description": "Write raw output to this file path.",
6602
- "name": "output",
6603
- "hasDynamicHelp": false,
6604
- "multiple": false,
6605
- "type": "option"
6640
+ "local": {
6641
+ "description": "Run local project-root quality gates scripts. Used by default when --cloud is omitted.",
6642
+ "name": "local",
6643
+ "allowNo": false,
6644
+ "type": "boolean"
6606
6645
  }
6607
6646
  },
6608
6647
  "hasDynamicHelp": false,
6609
6648
  "hiddenAliases": [],
6610
- "id": "testing:build:logs",
6649
+ "id": "cicd:work:test",
6611
6650
  "pluginAlias": "@copado/agentia-cli",
6612
6651
  "pluginName": "@copado/agentia-cli",
6613
6652
  "pluginType": "core",
@@ -6617,25 +6656,25 @@
6617
6656
  "relativePath": [
6618
6657
  "dist",
6619
6658
  "commands",
6620
- "testing",
6621
- "build",
6622
- "logs.js"
6659
+ "cicd",
6660
+ "work",
6661
+ "test.js"
6623
6662
  ]
6624
6663
  },
6625
- "testing:build:run": {
6664
+ "cicd:work:update": {
6626
6665
  "aliases": [],
6627
6666
  "args": {
6628
6667
  "id": {
6629
- "description": "CRT job/test ID to run.",
6668
+ "description": "User story ID (defaults to the active work item from `work set`)",
6630
6669
  "name": "id",
6631
- "required": true
6670
+ "required": false
6632
6671
  }
6633
6672
  },
6634
- "description": "Run a Copado Robotic Testing job/test",
6673
+ "description": "Update a Copado user story by ID",
6635
6674
  "examples": [
6636
- "<%= config.bin %> <%= command.id %> <job-id> --project <project-id>",
6637
- "<%= config.bin %> <%= command.id %> <job-id> --project <project-id> --param BROWSER=chrome --record failed",
6638
- "<%= config.bin %> <%= command.id %> <job-id> --project <project-id> --json"
6675
+ "<%= config.bin %> <%= command.id %> --title \"Updated story\"",
6676
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --title \"Updated story\"",
6677
+ "<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --status \"In Progress\" --json"
6639
6678
  ],
6640
6679
  "flags": {
6641
6680
  "json": {
@@ -6645,71 +6684,183 @@
6645
6684
  "allowNo": false,
6646
6685
  "type": "boolean"
6647
6686
  },
6687
+ "excluded-from-cbm": {
6688
+ "description": "Exclude from CBM",
6689
+ "name": "excluded-from-cbm",
6690
+ "allowNo": true,
6691
+ "type": "boolean"
6692
+ },
6693
+ "actual-points": {
6694
+ "description": "Actual points",
6695
+ "name": "actual-points",
6696
+ "hasDynamicHelp": false,
6697
+ "multiple": false,
6698
+ "type": "option"
6699
+ },
6700
+ "planned-points": {
6701
+ "description": "Planned points",
6702
+ "name": "planned-points",
6703
+ "hasDynamicHelp": false,
6704
+ "multiple": false,
6705
+ "type": "option"
6706
+ },
6707
+ "priority": {
6708
+ "description": "Priority",
6709
+ "name": "priority",
6710
+ "hasDynamicHelp": false,
6711
+ "multiple": false,
6712
+ "type": "option"
6713
+ },
6714
+ "acceptance-criteria": {
6715
+ "description": "Acceptance criteria",
6716
+ "name": "acceptance-criteria",
6717
+ "hasDynamicHelp": false,
6718
+ "multiple": false,
6719
+ "type": "option"
6720
+ },
6721
+ "as-a": {
6722
+ "description": "User story \"as a\" clause",
6723
+ "name": "as-a",
6724
+ "hasDynamicHelp": false,
6725
+ "multiple": false,
6726
+ "type": "option"
6727
+ },
6728
+ "assignee": {
6729
+ "description": "Assignee ID",
6730
+ "name": "assignee",
6731
+ "hasDynamicHelp": false,
6732
+ "multiple": false,
6733
+ "type": "option"
6734
+ },
6735
+ "cancellation-reason": {
6736
+ "description": "Cancellation reason",
6737
+ "name": "cancellation-reason",
6738
+ "hasDynamicHelp": false,
6739
+ "multiple": false,
6740
+ "type": "option"
6741
+ },
6742
+ "close-date": {
6743
+ "description": "Close date",
6744
+ "name": "close-date",
6745
+ "hasDynamicHelp": false,
6746
+ "multiple": false,
6747
+ "type": "option"
6748
+ },
6749
+ "epic": {
6750
+ "description": "Epic",
6751
+ "name": "epic",
6752
+ "hasDynamicHelp": false,
6753
+ "multiple": false,
6754
+ "type": "option"
6755
+ },
6756
+ "feature": {
6757
+ "description": "Feature",
6758
+ "name": "feature",
6759
+ "hasDynamicHelp": false,
6760
+ "multiple": false,
6761
+ "type": "option"
6762
+ },
6763
+ "functional-requirements": {
6764
+ "description": "Functional requirements",
6765
+ "name": "functional-requirements",
6766
+ "hasDynamicHelp": false,
6767
+ "multiple": false,
6768
+ "type": "option"
6769
+ },
6770
+ "owner-id": {
6771
+ "description": "Owner ID",
6772
+ "name": "owner-id",
6773
+ "hasDynamicHelp": false,
6774
+ "multiple": false,
6775
+ "type": "option"
6776
+ },
6648
6777
  "project": {
6649
- "char": "p",
6650
- "description": "CRT project ID.",
6778
+ "description": "Project ID",
6651
6779
  "name": "project",
6652
- "required": true,
6653
6780
  "hasDynamicHelp": false,
6654
6781
  "multiple": false,
6655
6782
  "type": "option"
6656
6783
  },
6657
- "branch": {
6658
- "description": "Git branch/ref to use for this run. Mutually exclusive with --tag.",
6659
- "name": "branch",
6784
+ "record-type": {
6785
+ "description": "Record type",
6786
+ "name": "record-type",
6660
6787
  "hasDynamicHelp": false,
6661
6788
  "multiple": false,
6662
6789
  "type": "option"
6663
6790
  },
6664
- "exclude": {
6665
- "description": "Robot Framework tag to exclude from this run. Can be provided multiple times.",
6666
- "name": "exclude",
6791
+ "release-id": {
6792
+ "description": "Release ID",
6793
+ "name": "release-id",
6794
+ "hasDynamicHelp": false,
6795
+ "multiple": false,
6796
+ "type": "option"
6797
+ },
6798
+ "so-that": {
6799
+ "description": "User story \"so that\" clause",
6800
+ "name": "so-that",
6801
+ "hasDynamicHelp": false,
6802
+ "multiple": false,
6803
+ "type": "option"
6804
+ },
6805
+ "source-credential": {
6806
+ "description": "Source credential ID",
6807
+ "name": "source-credential",
6808
+ "hasDynamicHelp": false,
6809
+ "multiple": false,
6810
+ "type": "option"
6811
+ },
6812
+ "source-environment": {
6813
+ "description": "Source environment ID",
6814
+ "name": "source-environment",
6815
+ "hasDynamicHelp": false,
6816
+ "multiple": false,
6817
+ "type": "option"
6818
+ },
6819
+ "sprint-id": {
6820
+ "description": "Sprint ID",
6821
+ "name": "sprint-id",
6822
+ "hasDynamicHelp": false,
6823
+ "multiple": false,
6824
+ "type": "option"
6825
+ },
6826
+ "status": {
6827
+ "description": "Status",
6828
+ "name": "status",
6667
6829
  "hasDynamicHelp": false,
6668
- "multiple": true,
6830
+ "multiple": false,
6669
6831
  "type": "option"
6670
6832
  },
6671
- "include": {
6672
- "description": "Robot Framework tag to include in this run. Can be provided multiple times.",
6673
- "name": "include",
6833
+ "team": {
6834
+ "description": "Team",
6835
+ "name": "team",
6674
6836
  "hasDynamicHelp": false,
6675
- "multiple": true,
6837
+ "multiple": false,
6676
6838
  "type": "option"
6677
6839
  },
6678
- "param": {
6679
- "description": "Execution parameter in KEY=VALUE format. Can be provided multiple times.",
6680
- "name": "param",
6840
+ "technical-specifications": {
6841
+ "description": "Technical specifications",
6842
+ "name": "technical-specifications",
6681
6843
  "hasDynamicHelp": false,
6682
- "multiple": true,
6844
+ "multiple": false,
6683
6845
  "type": "option"
6684
6846
  },
6685
- "record": {
6686
- "description": "CRT execution recording mode.",
6687
- "name": "record",
6847
+ "theme": {
6848
+ "description": "Theme",
6849
+ "name": "theme",
6688
6850
  "hasDynamicHelp": false,
6689
6851
  "multiple": false,
6690
- "options": [
6691
- "all",
6692
- "failed",
6693
- "none"
6694
- ],
6695
6852
  "type": "option"
6696
6853
  },
6697
- "rerun-failed": {
6698
- "description": "Rerun failed tests from the specified build/run ID. Mutually exclusive with --rerun-failed-from-latest.",
6699
- "name": "rerun-failed",
6854
+ "title": {
6855
+ "description": "Title",
6856
+ "name": "title",
6700
6857
  "hasDynamicHelp": false,
6701
6858
  "multiple": false,
6702
6859
  "type": "option"
6703
6860
  },
6704
- "rerun-failed-from-latest": {
6705
- "description": "Rerun failed tests from the latest failed run. Mutually exclusive with --rerun-failed.",
6706
- "name": "rerun-failed-from-latest",
6707
- "allowNo": false,
6708
- "type": "boolean"
6709
- },
6710
- "tag": {
6711
- "description": "Git tag to use for this run. Mutually exclusive with --branch.",
6712
- "name": "tag",
6861
+ "want-to": {
6862
+ "description": "User story \"want to\" clause",
6863
+ "name": "want-to",
6713
6864
  "hasDynamicHelp": false,
6714
6865
  "multiple": false,
6715
6866
  "type": "option"
@@ -6717,7 +6868,7 @@
6717
6868
  },
6718
6869
  "hasDynamicHelp": false,
6719
6870
  "hiddenAliases": [],
6720
- "id": "testing:build:run",
6871
+ "id": "cicd:work:update",
6721
6872
  "pluginAlias": "@copado/agentia-cli",
6722
6873
  "pluginName": "@copado/agentia-cli",
6723
6874
  "pluginType": "core",
@@ -6727,9 +6878,9 @@
6727
6878
  "relativePath": [
6728
6879
  "dist",
6729
6880
  "commands",
6730
- "testing",
6731
- "build",
6732
- "run.js"
6881
+ "cicd",
6882
+ "work",
6883
+ "update.js"
6733
6884
  ]
6734
6885
  },
6735
6886
  "testing:job:create": {
@@ -10086,209 +10237,8 @@
10086
10237
  },
10087
10238
  "description": "Save a v2 data template detail payload",
10088
10239
  "examples": [
10089
- "<%= config.bin %> <%= command.id %> a0X000000000001 --file detail.json",
10090
- "<%= config.bin %> <%= command.id %> a0X000000000001 --stdin --json"
10091
- ],
10092
- "flags": {
10093
- "json": {
10094
- "description": "Format output as json.",
10095
- "helpGroup": "GLOBAL",
10096
- "name": "json",
10097
- "allowNo": false,
10098
- "type": "boolean"
10099
- },
10100
- "file": {
10101
- "char": "f",
10102
- "description": "Path to a JSON file body",
10103
- "exclusive": [
10104
- "stdin"
10105
- ],
10106
- "name": "file",
10107
- "hasDynamicHelp": false,
10108
- "multiple": false,
10109
- "type": "option"
10110
- },
10111
- "stdin": {
10112
- "description": "Read the JSON body from stdin",
10113
- "exclusive": [
10114
- "file"
10115
- ],
10116
- "name": "stdin",
10117
- "allowNo": false,
10118
- "type": "boolean"
10119
- }
10120
- },
10121
- "hasDynamicHelp": false,
10122
- "hiddenAliases": [],
10123
- "id": "cicd:data:template:save-detail",
10124
- "pluginAlias": "@copado/agentia-cli",
10125
- "pluginName": "@copado/agentia-cli",
10126
- "pluginType": "core",
10127
- "strict": true,
10128
- "enableJsonFlag": true,
10129
- "isESM": true,
10130
- "relativePath": [
10131
- "dist",
10132
- "commands",
10133
- "cicd",
10134
- "data",
10135
- "template",
10136
- "save-detail.js"
10137
- ]
10138
- },
10139
- "cicd:environment:auth:status": {
10140
- "aliases": [],
10141
- "args": {
10142
- "id": {
10143
- "description": "Copado environment ID",
10144
- "name": "id",
10145
- "required": true
10146
- }
10147
- },
10148
- "description": "Validate the authentication status of an environment credential",
10149
- "examples": [
10150
- "<%= config.bin %> <%= command.id %> <environment-id>",
10151
- "<%= config.bin %> <%= command.id %> <environment-id> --credentialid <credential-id>",
10152
- "<%= config.bin %> <%= command.id %> <environment-id> --json"
10153
- ],
10154
- "flags": {
10155
- "json": {
10156
- "description": "Format output as json.",
10157
- "helpGroup": "GLOBAL",
10158
- "name": "json",
10159
- "allowNo": false,
10160
- "type": "boolean"
10161
- },
10162
- "credentialid": {
10163
- "description": "Credential ID to validate when automatic selection is not possible",
10164
- "name": "credentialid",
10165
- "hasDynamicHelp": false,
10166
- "multiple": false,
10167
- "type": "option"
10168
- }
10169
- },
10170
- "hasDynamicHelp": false,
10171
- "hiddenAliases": [],
10172
- "id": "cicd:environment:auth:status",
10173
- "pluginAlias": "@copado/agentia-cli",
10174
- "pluginName": "@copado/agentia-cli",
10175
- "pluginType": "core",
10176
- "strict": true,
10177
- "enableJsonFlag": true,
10178
- "isESM": true,
10179
- "relativePath": [
10180
- "dist",
10181
- "commands",
10182
- "cicd",
10183
- "environment",
10184
- "auth",
10185
- "status.js"
10186
- ]
10187
- },
10188
- "cicd:function:result:get": {
10189
- "aliases": [],
10190
- "args": {
10191
- "result-id": {
10192
- "description": "Function result Id",
10193
- "name": "result-id",
10194
- "required": true
10195
- }
10196
- },
10197
- "description": "Get Copado Function execution status by result Id",
10198
- "examples": [
10199
- "<%= config.bin %> <%= command.id %> <result-id>",
10200
- "<%= config.bin %> <%= command.id %> <result-id> --json"
10201
- ],
10202
- "flags": {
10203
- "json": {
10204
- "description": "Format output as json.",
10205
- "helpGroup": "GLOBAL",
10206
- "name": "json",
10207
- "allowNo": false,
10208
- "type": "boolean"
10209
- }
10210
- },
10211
- "hasDynamicHelp": false,
10212
- "hiddenAliases": [],
10213
- "id": "cicd:function:result:get",
10214
- "pluginAlias": "@copado/agentia-cli",
10215
- "pluginName": "@copado/agentia-cli",
10216
- "pluginType": "core",
10217
- "strict": true,
10218
- "enableJsonFlag": true,
10219
- "isESM": true,
10220
- "relativePath": [
10221
- "dist",
10222
- "commands",
10223
- "cicd",
10224
- "function",
10225
- "result",
10226
- "get.js"
10227
- ]
10228
- },
10229
- "cicd:job:log:get": {
10230
- "aliases": [],
10231
- "args": {
10232
- "id": {
10233
- "description": "JobExecution Id",
10234
- "name": "id",
10235
- "required": true
10236
- }
10237
- },
10238
- "description": "Get log output for a Copado job execution step",
10239
- "examples": [
10240
- "<%= config.bin %> <%= command.id %> <job-id>",
10241
- "<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
10242
- "<%= config.bin %> <%= command.id %> <job-id> --json"
10243
- ],
10244
- "flags": {
10245
- "json": {
10246
- "description": "Format output as json.",
10247
- "helpGroup": "GLOBAL",
10248
- "name": "json",
10249
- "allowNo": false,
10250
- "type": "boolean"
10251
- },
10252
- "step": {
10253
- "description": "Job step Id (defaults to the first step with a result Id)",
10254
- "name": "step",
10255
- "hasDynamicHelp": false,
10256
- "multiple": false,
10257
- "type": "option"
10258
- }
10259
- },
10260
- "hasDynamicHelp": false,
10261
- "hiddenAliases": [],
10262
- "id": "cicd:job:log:get",
10263
- "pluginAlias": "@copado/agentia-cli",
10264
- "pluginName": "@copado/agentia-cli",
10265
- "pluginType": "core",
10266
- "strict": true,
10267
- "enableJsonFlag": true,
10268
- "isESM": true,
10269
- "relativePath": [
10270
- "dist",
10271
- "commands",
10272
- "cicd",
10273
- "job",
10274
- "log",
10275
- "get.js"
10276
- ]
10277
- },
10278
- "cicd:job:result-file:get": {
10279
- "aliases": [],
10280
- "args": {
10281
- "resultId": {
10282
- "description": "Copado Result Id",
10283
- "name": "resultId",
10284
- "required": true
10285
- }
10286
- },
10287
- "description": "Get a File linked to a Copado job Result",
10288
- "examples": [
10289
- "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id>",
10290
- "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --output-file ./result.zip",
10291
- "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --json"
10240
+ "<%= config.bin %> <%= command.id %> a0X000000000001 --file detail.json",
10241
+ "<%= config.bin %> <%= command.id %> a0X000000000001 --stdin --json"
10292
10242
  ],
10293
10243
  "flags": {
10294
10244
  "json": {
@@ -10298,25 +10248,30 @@
10298
10248
  "allowNo": false,
10299
10249
  "type": "boolean"
10300
10250
  },
10301
- "file-id": {
10302
- "description": "File Id returned by result-file list",
10303
- "name": "file-id",
10304
- "required": true,
10251
+ "file": {
10252
+ "char": "f",
10253
+ "description": "Path to a JSON file body",
10254
+ "exclusive": [
10255
+ "stdin"
10256
+ ],
10257
+ "name": "file",
10305
10258
  "hasDynamicHelp": false,
10306
10259
  "multiple": false,
10307
10260
  "type": "option"
10308
10261
  },
10309
- "output-file": {
10310
- "description": "Explicit file path to receive decoded content",
10311
- "name": "output-file",
10312
- "hasDynamicHelp": false,
10313
- "multiple": false,
10314
- "type": "option"
10262
+ "stdin": {
10263
+ "description": "Read the JSON body from stdin",
10264
+ "exclusive": [
10265
+ "file"
10266
+ ],
10267
+ "name": "stdin",
10268
+ "allowNo": false,
10269
+ "type": "boolean"
10315
10270
  }
10316
10271
  },
10317
10272
  "hasDynamicHelp": false,
10318
10273
  "hiddenAliases": [],
10319
- "id": "cicd:job:result-file:get",
10274
+ "id": "cicd:data:template:save-detail",
10320
10275
  "pluginAlias": "@copado/agentia-cli",
10321
10276
  "pluginName": "@copado/agentia-cli",
10322
10277
  "pluginType": "core",
@@ -10327,24 +10282,25 @@
10327
10282
  "dist",
10328
10283
  "commands",
10329
10284
  "cicd",
10330
- "job",
10331
- "result-file",
10332
- "get.js"
10285
+ "data",
10286
+ "template",
10287
+ "save-detail.js"
10333
10288
  ]
10334
10289
  },
10335
- "cicd:job:result-file:list": {
10290
+ "cicd:environment:auth:status": {
10336
10291
  "aliases": [],
10337
10292
  "args": {
10338
- "resultId": {
10339
- "description": "Copado Result Id",
10340
- "name": "resultId",
10293
+ "id": {
10294
+ "description": "Copado environment ID",
10295
+ "name": "id",
10341
10296
  "required": true
10342
10297
  }
10343
10298
  },
10344
- "description": "List Files linked to a Copado job Result",
10299
+ "description": "Validate the authentication status of an environment credential",
10345
10300
  "examples": [
10346
- "<%= config.bin %> <%= command.id %> <result-id>",
10347
- "<%= config.bin %> <%= command.id %> <result-id> --json"
10301
+ "<%= config.bin %> <%= command.id %> <environment-id>",
10302
+ "<%= config.bin %> <%= command.id %> <environment-id> --credentialid <credential-id>",
10303
+ "<%= config.bin %> <%= command.id %> <environment-id> --json"
10348
10304
  ],
10349
10305
  "flags": {
10350
10306
  "json": {
@@ -10353,11 +10309,18 @@
10353
10309
  "name": "json",
10354
10310
  "allowNo": false,
10355
10311
  "type": "boolean"
10312
+ },
10313
+ "credentialid": {
10314
+ "description": "Credential ID to validate when automatic selection is not possible",
10315
+ "name": "credentialid",
10316
+ "hasDynamicHelp": false,
10317
+ "multiple": false,
10318
+ "type": "option"
10356
10319
  }
10357
10320
  },
10358
10321
  "hasDynamicHelp": false,
10359
10322
  "hiddenAliases": [],
10360
- "id": "cicd:job:result-file:list",
10323
+ "id": "cicd:environment:auth:status",
10361
10324
  "pluginAlias": "@copado/agentia-cli",
10362
10325
  "pluginName": "@copado/agentia-cli",
10363
10326
  "pluginType": "core",
@@ -10368,9 +10331,9 @@
10368
10331
  "dist",
10369
10332
  "commands",
10370
10333
  "cicd",
10371
- "job",
10372
- "result-file",
10373
- "list.js"
10334
+ "environment",
10335
+ "auth",
10336
+ "status.js"
10374
10337
  ]
10375
10338
  },
10376
10339
  "cicd:metadata:content:compare": {
@@ -11147,6 +11110,194 @@
11147
11110
  "status.js"
11148
11111
  ]
11149
11112
  },
11113
+ "cicd:function:result:get": {
11114
+ "aliases": [],
11115
+ "args": {
11116
+ "result-id": {
11117
+ "description": "Function result Id",
11118
+ "name": "result-id",
11119
+ "required": true
11120
+ }
11121
+ },
11122
+ "description": "Get Copado Function execution status by result Id",
11123
+ "examples": [
11124
+ "<%= config.bin %> <%= command.id %> <result-id>",
11125
+ "<%= config.bin %> <%= command.id %> <result-id> --json"
11126
+ ],
11127
+ "flags": {
11128
+ "json": {
11129
+ "description": "Format output as json.",
11130
+ "helpGroup": "GLOBAL",
11131
+ "name": "json",
11132
+ "allowNo": false,
11133
+ "type": "boolean"
11134
+ }
11135
+ },
11136
+ "hasDynamicHelp": false,
11137
+ "hiddenAliases": [],
11138
+ "id": "cicd:function:result:get",
11139
+ "pluginAlias": "@copado/agentia-cli",
11140
+ "pluginName": "@copado/agentia-cli",
11141
+ "pluginType": "core",
11142
+ "strict": true,
11143
+ "enableJsonFlag": true,
11144
+ "isESM": true,
11145
+ "relativePath": [
11146
+ "dist",
11147
+ "commands",
11148
+ "cicd",
11149
+ "function",
11150
+ "result",
11151
+ "get.js"
11152
+ ]
11153
+ },
11154
+ "cicd:job:log:get": {
11155
+ "aliases": [],
11156
+ "args": {
11157
+ "id": {
11158
+ "description": "JobExecution Id",
11159
+ "name": "id",
11160
+ "required": true
11161
+ }
11162
+ },
11163
+ "description": "Get log output for a Copado job execution step",
11164
+ "examples": [
11165
+ "<%= config.bin %> <%= command.id %> <job-id>",
11166
+ "<%= config.bin %> <%= command.id %> <job-id> --step <step-id>",
11167
+ "<%= config.bin %> <%= command.id %> <job-id> --json"
11168
+ ],
11169
+ "flags": {
11170
+ "json": {
11171
+ "description": "Format output as json.",
11172
+ "helpGroup": "GLOBAL",
11173
+ "name": "json",
11174
+ "allowNo": false,
11175
+ "type": "boolean"
11176
+ },
11177
+ "step": {
11178
+ "description": "Job step Id (defaults to the first step with a result Id)",
11179
+ "name": "step",
11180
+ "hasDynamicHelp": false,
11181
+ "multiple": false,
11182
+ "type": "option"
11183
+ }
11184
+ },
11185
+ "hasDynamicHelp": false,
11186
+ "hiddenAliases": [],
11187
+ "id": "cicd:job:log:get",
11188
+ "pluginAlias": "@copado/agentia-cli",
11189
+ "pluginName": "@copado/agentia-cli",
11190
+ "pluginType": "core",
11191
+ "strict": true,
11192
+ "enableJsonFlag": true,
11193
+ "isESM": true,
11194
+ "relativePath": [
11195
+ "dist",
11196
+ "commands",
11197
+ "cicd",
11198
+ "job",
11199
+ "log",
11200
+ "get.js"
11201
+ ]
11202
+ },
11203
+ "cicd:job:result-file:get": {
11204
+ "aliases": [],
11205
+ "args": {
11206
+ "resultId": {
11207
+ "description": "Copado Result Id",
11208
+ "name": "resultId",
11209
+ "required": true
11210
+ }
11211
+ },
11212
+ "description": "Get a File linked to a Copado job Result",
11213
+ "examples": [
11214
+ "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id>",
11215
+ "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --output-file ./result.zip",
11216
+ "<%= config.bin %> <%= command.id %> <result-id> --file-id <file-id> --json"
11217
+ ],
11218
+ "flags": {
11219
+ "json": {
11220
+ "description": "Format output as json.",
11221
+ "helpGroup": "GLOBAL",
11222
+ "name": "json",
11223
+ "allowNo": false,
11224
+ "type": "boolean"
11225
+ },
11226
+ "file-id": {
11227
+ "description": "File Id returned by result-file list",
11228
+ "name": "file-id",
11229
+ "required": true,
11230
+ "hasDynamicHelp": false,
11231
+ "multiple": false,
11232
+ "type": "option"
11233
+ },
11234
+ "output-file": {
11235
+ "description": "Explicit file path to receive decoded content",
11236
+ "name": "output-file",
11237
+ "hasDynamicHelp": false,
11238
+ "multiple": false,
11239
+ "type": "option"
11240
+ }
11241
+ },
11242
+ "hasDynamicHelp": false,
11243
+ "hiddenAliases": [],
11244
+ "id": "cicd:job:result-file:get",
11245
+ "pluginAlias": "@copado/agentia-cli",
11246
+ "pluginName": "@copado/agentia-cli",
11247
+ "pluginType": "core",
11248
+ "strict": true,
11249
+ "enableJsonFlag": true,
11250
+ "isESM": true,
11251
+ "relativePath": [
11252
+ "dist",
11253
+ "commands",
11254
+ "cicd",
11255
+ "job",
11256
+ "result-file",
11257
+ "get.js"
11258
+ ]
11259
+ },
11260
+ "cicd:job:result-file:list": {
11261
+ "aliases": [],
11262
+ "args": {
11263
+ "resultId": {
11264
+ "description": "Copado Result Id",
11265
+ "name": "resultId",
11266
+ "required": true
11267
+ }
11268
+ },
11269
+ "description": "List Files linked to a Copado job Result",
11270
+ "examples": [
11271
+ "<%= config.bin %> <%= command.id %> <result-id>",
11272
+ "<%= config.bin %> <%= command.id %> <result-id> --json"
11273
+ ],
11274
+ "flags": {
11275
+ "json": {
11276
+ "description": "Format output as json.",
11277
+ "helpGroup": "GLOBAL",
11278
+ "name": "json",
11279
+ "allowNo": false,
11280
+ "type": "boolean"
11281
+ }
11282
+ },
11283
+ "hasDynamicHelp": false,
11284
+ "hiddenAliases": [],
11285
+ "id": "cicd:job:result-file:list",
11286
+ "pluginAlias": "@copado/agentia-cli",
11287
+ "pluginName": "@copado/agentia-cli",
11288
+ "pluginType": "core",
11289
+ "strict": true,
11290
+ "enableJsonFlag": true,
11291
+ "isESM": true,
11292
+ "relativePath": [
11293
+ "dist",
11294
+ "commands",
11295
+ "cicd",
11296
+ "job",
11297
+ "result-file",
11298
+ "list.js"
11299
+ ]
11300
+ },
11150
11301
  "cicd:pipeline:connection:create": {
11151
11302
  "aliases": [],
11152
11303
  "args": {},
@@ -13010,5 +13161,5 @@
13010
13161
  ]
13011
13162
  }
13012
13163
  },
13013
- "version": "0.109.0-alpha.0"
13164
+ "version": "0.110.0-alpha.0"
13014
13165
  }