@copado/agentia-cli 0.116.0-alpha.0 → 0.118.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.
- package/README.md +369 -358
- package/dist/commands/cicd/work/commit.d.ts +0 -5
- package/dist/commands/cicd/work/commit.js +18 -33
- package/dist/commands/cicd/work/commit.js.map +1 -1
- package/dist/commands/cicd/work/publish.d.ts +12 -0
- package/dist/commands/cicd/work/publish.js +20 -0
- package/dist/commands/cicd/work/publish.js.map +1 -0
- package/dist/commands/cicd/work/push.d.ts +4 -0
- package/dist/commands/cicd/work/push.js +11 -82
- package/dist/commands/cicd/work/push.js.map +1 -1
- package/dist/commands/cicd/work/set.d.ts +2 -2
- package/dist/commands/cicd/work/set.js +6 -2
- package/dist/commands/cicd/work/set.js.map +1 -1
- package/dist/commands/cicd/work/status.js +14 -13
- package/dist/commands/cicd/work/status.js.map +1 -1
- package/dist/commands/cicd/work/submit.d.ts +2 -0
- package/dist/commands/cicd/work/submit.js +11 -3
- package/dist/commands/cicd/work/submit.js.map +1 -1
- package/dist/commands/cicd/work/test/apex.d.ts +11 -0
- package/dist/commands/cicd/work/test/apex.js +57 -0
- package/dist/commands/cicd/work/test/apex.js.map +1 -0
- package/dist/commands/cicd/work/test.js +12 -4
- package/dist/commands/cicd/work/test.js.map +1 -1
- package/dist/lib/cicd-gateway.d.ts +4 -0
- package/dist/lib/cicd-gateway.js +49 -3
- package/dist/lib/cicd-gateway.js.map +1 -1
- package/dist/lib/defaults-store.d.ts +1 -1
- package/dist/lib/defaults-store.js +1 -1
- package/dist/lib/git-worktree.d.ts +6 -0
- package/dist/lib/git-worktree.js +35 -1
- package/dist/lib/git-worktree.js.map +1 -1
- package/dist/lib/local-quality-gates.d.ts +4 -0
- package/dist/lib/local-quality-gates.js +1 -1
- package/dist/lib/local-quality-gates.js.map +1 -1
- package/dist/lib/mcp/tools.d.ts +12 -2
- package/dist/lib/mcp/tools.js +10 -8
- package/dist/lib/mcp/tools.js.map +1 -1
- package/dist/lib/mcp/work-tools.d.ts +18 -6
- package/dist/lib/mcp/work-tools.js +75 -50
- package/dist/lib/mcp/work-tools.js.map +1 -1
- package/dist/lib/nested-metadata-changes.d.ts +4 -4
- package/dist/lib/setup-templates.d.ts +3 -3
- package/dist/lib/setup-templates.js +33 -28
- package/dist/lib/setup-templates.js.map +1 -1
- package/dist/lib/setup-wizard.js +1 -1
- package/dist/lib/setup-wizard.js.map +1 -1
- package/dist/lib/stock-quality-gates.d.ts +12 -0
- package/dist/lib/stock-quality-gates.js +67 -0
- package/dist/lib/stock-quality-gates.js.map +1 -0
- package/dist/lib/work-apex-test.d.ts +56 -0
- package/dist/lib/work-apex-test.js +265 -0
- package/dist/lib/work-apex-test.js.map +1 -0
- package/dist/lib/work-branch-metadata.d.ts +2 -0
- package/dist/lib/work-branch-metadata.js +9 -0
- package/dist/lib/work-branch-metadata.js.map +1 -1
- package/dist/lib/work-local-commit.d.ts +1 -1
- package/dist/lib/work-local-commit.js +1 -1
- package/dist/lib/work-publish-command.d.ts +26 -0
- package/dist/lib/work-publish-command.js +88 -0
- package/dist/lib/work-publish-command.js.map +1 -0
- package/dist/lib/work-push.d.ts +3 -3
- package/dist/lib/work-push.js +12 -12
- package/dist/lib/work-push.js.map +1 -1
- package/dist/lib/work-set-selection.d.ts +3 -1
- package/dist/lib/work-set-selection.js +19 -1
- package/dist/lib/work-set-selection.js.map +1 -1
- package/dist/lib/work-types.d.ts +12 -1
- package/dist/lib/work-types.js.map +1 -1
- package/oclif.manifest.json +292 -212
- package/package.json +4 -1
- package/templates/AGENTS.md +2 -2
- package/templates/skills/agentia-cicd/SKILL.md +4 -3
- package/templates/skills/agentia-cicd/references/work.md +25 -23
package/oclif.manifest.json
CHANGED
|
@@ -2020,6 +2020,168 @@
|
|
|
2020
2020
|
"update.js"
|
|
2021
2021
|
]
|
|
2022
2022
|
},
|
|
2023
|
+
"cicd:credential:create": {
|
|
2024
|
+
"aliases": [],
|
|
2025
|
+
"args": {},
|
|
2026
|
+
"description": "Create a Copado environment credential",
|
|
2027
|
+
"examples": [
|
|
2028
|
+
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\"",
|
|
2029
|
+
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\" --default",
|
|
2030
|
+
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\" --json"
|
|
2031
|
+
],
|
|
2032
|
+
"flags": {
|
|
2033
|
+
"json": {
|
|
2034
|
+
"description": "Format output as json.",
|
|
2035
|
+
"helpGroup": "GLOBAL",
|
|
2036
|
+
"name": "json",
|
|
2037
|
+
"allowNo": false,
|
|
2038
|
+
"type": "boolean"
|
|
2039
|
+
},
|
|
2040
|
+
"default": {
|
|
2041
|
+
"description": "Mark this credential as the environment default",
|
|
2042
|
+
"name": "default",
|
|
2043
|
+
"allowNo": true,
|
|
2044
|
+
"type": "boolean"
|
|
2045
|
+
},
|
|
2046
|
+
"environmentid": {
|
|
2047
|
+
"description": "Copado environment ID",
|
|
2048
|
+
"name": "environmentid",
|
|
2049
|
+
"required": true,
|
|
2050
|
+
"hasDynamicHelp": false,
|
|
2051
|
+
"multiple": false,
|
|
2052
|
+
"type": "option"
|
|
2053
|
+
},
|
|
2054
|
+
"name": {
|
|
2055
|
+
"description": "Credential name",
|
|
2056
|
+
"name": "name",
|
|
2057
|
+
"required": true,
|
|
2058
|
+
"hasDynamicHelp": false,
|
|
2059
|
+
"multiple": false,
|
|
2060
|
+
"type": "option"
|
|
2061
|
+
}
|
|
2062
|
+
},
|
|
2063
|
+
"hasDynamicHelp": false,
|
|
2064
|
+
"hiddenAliases": [],
|
|
2065
|
+
"id": "cicd:credential:create",
|
|
2066
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
2067
|
+
"pluginName": "@copado/agentia-cli",
|
|
2068
|
+
"pluginType": "core",
|
|
2069
|
+
"strict": true,
|
|
2070
|
+
"enableJsonFlag": true,
|
|
2071
|
+
"isESM": true,
|
|
2072
|
+
"relativePath": [
|
|
2073
|
+
"dist",
|
|
2074
|
+
"commands",
|
|
2075
|
+
"cicd",
|
|
2076
|
+
"credential",
|
|
2077
|
+
"create.js"
|
|
2078
|
+
]
|
|
2079
|
+
},
|
|
2080
|
+
"cicd:credential:list": {
|
|
2081
|
+
"aliases": [],
|
|
2082
|
+
"args": {},
|
|
2083
|
+
"description": "List credentials for a Copado environment",
|
|
2084
|
+
"examples": [
|
|
2085
|
+
"<%= config.bin %> <%= command.id %> --environmentid <environment-id>",
|
|
2086
|
+
"<%= config.bin %> <%= command.id %> --environmentid \"Dev Sandbox\"",
|
|
2087
|
+
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --json"
|
|
2088
|
+
],
|
|
2089
|
+
"flags": {
|
|
2090
|
+
"json": {
|
|
2091
|
+
"description": "Format output as json.",
|
|
2092
|
+
"helpGroup": "GLOBAL",
|
|
2093
|
+
"name": "json",
|
|
2094
|
+
"allowNo": false,
|
|
2095
|
+
"type": "boolean"
|
|
2096
|
+
},
|
|
2097
|
+
"environmentid": {
|
|
2098
|
+
"description": "Copado environment ID",
|
|
2099
|
+
"name": "environmentid",
|
|
2100
|
+
"required": true,
|
|
2101
|
+
"hasDynamicHelp": false,
|
|
2102
|
+
"multiple": false,
|
|
2103
|
+
"type": "option"
|
|
2104
|
+
}
|
|
2105
|
+
},
|
|
2106
|
+
"hasDynamicHelp": false,
|
|
2107
|
+
"hiddenAliases": [],
|
|
2108
|
+
"id": "cicd:credential:list",
|
|
2109
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
2110
|
+
"pluginName": "@copado/agentia-cli",
|
|
2111
|
+
"pluginType": "core",
|
|
2112
|
+
"strict": true,
|
|
2113
|
+
"enableJsonFlag": true,
|
|
2114
|
+
"isESM": true,
|
|
2115
|
+
"relativePath": [
|
|
2116
|
+
"dist",
|
|
2117
|
+
"commands",
|
|
2118
|
+
"cicd",
|
|
2119
|
+
"credential",
|
|
2120
|
+
"list.js"
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
2123
|
+
"cicd:credential:update": {
|
|
2124
|
+
"aliases": [],
|
|
2125
|
+
"args": {
|
|
2126
|
+
"id": {
|
|
2127
|
+
"description": "Copado credential ID",
|
|
2128
|
+
"name": "id",
|
|
2129
|
+
"required": true
|
|
2130
|
+
}
|
|
2131
|
+
},
|
|
2132
|
+
"description": "Update a Copado environment credential by ID",
|
|
2133
|
+
"examples": [
|
|
2134
|
+
"<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --name \"CI User\"",
|
|
2135
|
+
"<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --default",
|
|
2136
|
+
"<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --no-default --json"
|
|
2137
|
+
],
|
|
2138
|
+
"flags": {
|
|
2139
|
+
"json": {
|
|
2140
|
+
"description": "Format output as json.",
|
|
2141
|
+
"helpGroup": "GLOBAL",
|
|
2142
|
+
"name": "json",
|
|
2143
|
+
"allowNo": false,
|
|
2144
|
+
"type": "boolean"
|
|
2145
|
+
},
|
|
2146
|
+
"default": {
|
|
2147
|
+
"description": "Mark this credential as the environment default",
|
|
2148
|
+
"name": "default",
|
|
2149
|
+
"allowNo": true,
|
|
2150
|
+
"type": "boolean"
|
|
2151
|
+
},
|
|
2152
|
+
"environmentid": {
|
|
2153
|
+
"description": "Copado environment ID",
|
|
2154
|
+
"name": "environmentid",
|
|
2155
|
+
"required": true,
|
|
2156
|
+
"hasDynamicHelp": false,
|
|
2157
|
+
"multiple": false,
|
|
2158
|
+
"type": "option"
|
|
2159
|
+
},
|
|
2160
|
+
"name": {
|
|
2161
|
+
"description": "Credential name",
|
|
2162
|
+
"name": "name",
|
|
2163
|
+
"hasDynamicHelp": false,
|
|
2164
|
+
"multiple": false,
|
|
2165
|
+
"type": "option"
|
|
2166
|
+
}
|
|
2167
|
+
},
|
|
2168
|
+
"hasDynamicHelp": false,
|
|
2169
|
+
"hiddenAliases": [],
|
|
2170
|
+
"id": "cicd:credential:update",
|
|
2171
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
2172
|
+
"pluginName": "@copado/agentia-cli",
|
|
2173
|
+
"pluginType": "core",
|
|
2174
|
+
"strict": true,
|
|
2175
|
+
"enableJsonFlag": true,
|
|
2176
|
+
"isESM": true,
|
|
2177
|
+
"relativePath": [
|
|
2178
|
+
"dist",
|
|
2179
|
+
"commands",
|
|
2180
|
+
"cicd",
|
|
2181
|
+
"credential",
|
|
2182
|
+
"update.js"
|
|
2183
|
+
]
|
|
2184
|
+
},
|
|
2023
2185
|
"cicd:environment:create": {
|
|
2024
2186
|
"aliases": [],
|
|
2025
2187
|
"args": {
|
|
@@ -2431,168 +2593,6 @@
|
|
|
2431
2593
|
"update.js"
|
|
2432
2594
|
]
|
|
2433
2595
|
},
|
|
2434
|
-
"cicd:credential:create": {
|
|
2435
|
-
"aliases": [],
|
|
2436
|
-
"args": {},
|
|
2437
|
-
"description": "Create a Copado environment credential",
|
|
2438
|
-
"examples": [
|
|
2439
|
-
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\"",
|
|
2440
|
-
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\" --default",
|
|
2441
|
-
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --name \"CI User\" --json"
|
|
2442
|
-
],
|
|
2443
|
-
"flags": {
|
|
2444
|
-
"json": {
|
|
2445
|
-
"description": "Format output as json.",
|
|
2446
|
-
"helpGroup": "GLOBAL",
|
|
2447
|
-
"name": "json",
|
|
2448
|
-
"allowNo": false,
|
|
2449
|
-
"type": "boolean"
|
|
2450
|
-
},
|
|
2451
|
-
"default": {
|
|
2452
|
-
"description": "Mark this credential as the environment default",
|
|
2453
|
-
"name": "default",
|
|
2454
|
-
"allowNo": true,
|
|
2455
|
-
"type": "boolean"
|
|
2456
|
-
},
|
|
2457
|
-
"environmentid": {
|
|
2458
|
-
"description": "Copado environment ID",
|
|
2459
|
-
"name": "environmentid",
|
|
2460
|
-
"required": true,
|
|
2461
|
-
"hasDynamicHelp": false,
|
|
2462
|
-
"multiple": false,
|
|
2463
|
-
"type": "option"
|
|
2464
|
-
},
|
|
2465
|
-
"name": {
|
|
2466
|
-
"description": "Credential name",
|
|
2467
|
-
"name": "name",
|
|
2468
|
-
"required": true,
|
|
2469
|
-
"hasDynamicHelp": false,
|
|
2470
|
-
"multiple": false,
|
|
2471
|
-
"type": "option"
|
|
2472
|
-
}
|
|
2473
|
-
},
|
|
2474
|
-
"hasDynamicHelp": false,
|
|
2475
|
-
"hiddenAliases": [],
|
|
2476
|
-
"id": "cicd:credential:create",
|
|
2477
|
-
"pluginAlias": "@copado/agentia-cli",
|
|
2478
|
-
"pluginName": "@copado/agentia-cli",
|
|
2479
|
-
"pluginType": "core",
|
|
2480
|
-
"strict": true,
|
|
2481
|
-
"enableJsonFlag": true,
|
|
2482
|
-
"isESM": true,
|
|
2483
|
-
"relativePath": [
|
|
2484
|
-
"dist",
|
|
2485
|
-
"commands",
|
|
2486
|
-
"cicd",
|
|
2487
|
-
"credential",
|
|
2488
|
-
"create.js"
|
|
2489
|
-
]
|
|
2490
|
-
},
|
|
2491
|
-
"cicd:credential:list": {
|
|
2492
|
-
"aliases": [],
|
|
2493
|
-
"args": {},
|
|
2494
|
-
"description": "List credentials for a Copado environment",
|
|
2495
|
-
"examples": [
|
|
2496
|
-
"<%= config.bin %> <%= command.id %> --environmentid <environment-id>",
|
|
2497
|
-
"<%= config.bin %> <%= command.id %> --environmentid \"Dev Sandbox\"",
|
|
2498
|
-
"<%= config.bin %> <%= command.id %> --environmentid <environment-id> --json"
|
|
2499
|
-
],
|
|
2500
|
-
"flags": {
|
|
2501
|
-
"json": {
|
|
2502
|
-
"description": "Format output as json.",
|
|
2503
|
-
"helpGroup": "GLOBAL",
|
|
2504
|
-
"name": "json",
|
|
2505
|
-
"allowNo": false,
|
|
2506
|
-
"type": "boolean"
|
|
2507
|
-
},
|
|
2508
|
-
"environmentid": {
|
|
2509
|
-
"description": "Copado environment ID",
|
|
2510
|
-
"name": "environmentid",
|
|
2511
|
-
"required": true,
|
|
2512
|
-
"hasDynamicHelp": false,
|
|
2513
|
-
"multiple": false,
|
|
2514
|
-
"type": "option"
|
|
2515
|
-
}
|
|
2516
|
-
},
|
|
2517
|
-
"hasDynamicHelp": false,
|
|
2518
|
-
"hiddenAliases": [],
|
|
2519
|
-
"id": "cicd:credential:list",
|
|
2520
|
-
"pluginAlias": "@copado/agentia-cli",
|
|
2521
|
-
"pluginName": "@copado/agentia-cli",
|
|
2522
|
-
"pluginType": "core",
|
|
2523
|
-
"strict": true,
|
|
2524
|
-
"enableJsonFlag": true,
|
|
2525
|
-
"isESM": true,
|
|
2526
|
-
"relativePath": [
|
|
2527
|
-
"dist",
|
|
2528
|
-
"commands",
|
|
2529
|
-
"cicd",
|
|
2530
|
-
"credential",
|
|
2531
|
-
"list.js"
|
|
2532
|
-
]
|
|
2533
|
-
},
|
|
2534
|
-
"cicd:credential:update": {
|
|
2535
|
-
"aliases": [],
|
|
2536
|
-
"args": {
|
|
2537
|
-
"id": {
|
|
2538
|
-
"description": "Copado credential ID",
|
|
2539
|
-
"name": "id",
|
|
2540
|
-
"required": true
|
|
2541
|
-
}
|
|
2542
|
-
},
|
|
2543
|
-
"description": "Update a Copado environment credential by ID",
|
|
2544
|
-
"examples": [
|
|
2545
|
-
"<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --name \"CI User\"",
|
|
2546
|
-
"<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --default",
|
|
2547
|
-
"<%= config.bin %> <%= command.id %> <credential-id> --environmentid <environment-id> --no-default --json"
|
|
2548
|
-
],
|
|
2549
|
-
"flags": {
|
|
2550
|
-
"json": {
|
|
2551
|
-
"description": "Format output as json.",
|
|
2552
|
-
"helpGroup": "GLOBAL",
|
|
2553
|
-
"name": "json",
|
|
2554
|
-
"allowNo": false,
|
|
2555
|
-
"type": "boolean"
|
|
2556
|
-
},
|
|
2557
|
-
"default": {
|
|
2558
|
-
"description": "Mark this credential as the environment default",
|
|
2559
|
-
"name": "default",
|
|
2560
|
-
"allowNo": true,
|
|
2561
|
-
"type": "boolean"
|
|
2562
|
-
},
|
|
2563
|
-
"environmentid": {
|
|
2564
|
-
"description": "Copado environment ID",
|
|
2565
|
-
"name": "environmentid",
|
|
2566
|
-
"required": true,
|
|
2567
|
-
"hasDynamicHelp": false,
|
|
2568
|
-
"multiple": false,
|
|
2569
|
-
"type": "option"
|
|
2570
|
-
},
|
|
2571
|
-
"name": {
|
|
2572
|
-
"description": "Credential name",
|
|
2573
|
-
"name": "name",
|
|
2574
|
-
"hasDynamicHelp": false,
|
|
2575
|
-
"multiple": false,
|
|
2576
|
-
"type": "option"
|
|
2577
|
-
}
|
|
2578
|
-
},
|
|
2579
|
-
"hasDynamicHelp": false,
|
|
2580
|
-
"hiddenAliases": [],
|
|
2581
|
-
"id": "cicd:credential:update",
|
|
2582
|
-
"pluginAlias": "@copado/agentia-cli",
|
|
2583
|
-
"pluginName": "@copado/agentia-cli",
|
|
2584
|
-
"pluginType": "core",
|
|
2585
|
-
"strict": true,
|
|
2586
|
-
"enableJsonFlag": true,
|
|
2587
|
-
"isESM": true,
|
|
2588
|
-
"relativePath": [
|
|
2589
|
-
"dist",
|
|
2590
|
-
"commands",
|
|
2591
|
-
"cicd",
|
|
2592
|
-
"credential",
|
|
2593
|
-
"update.js"
|
|
2594
|
-
]
|
|
2595
|
-
},
|
|
2596
2596
|
"cicd:function:defaults": {
|
|
2597
2597
|
"aliases": [],
|
|
2598
2598
|
"args": {},
|
|
@@ -5582,11 +5582,8 @@
|
|
|
5582
5582
|
"required": false
|
|
5583
5583
|
}
|
|
5584
5584
|
},
|
|
5585
|
-
"description": "
|
|
5585
|
+
"description": "Create a Copado cloud metadata commit for a user story. Requires --cloud: preflights the story, submits POST /release/commit, and polls the job monitor by default. For local Git work, use git add/commit then `cicd work publish`. Permission and full-metadata selections belong on `cicd work publish`.",
|
|
5586
5586
|
"examples": [
|
|
5587
|
-
"<%= config.bin %> <%= command.id %> --local --all",
|
|
5588
|
-
"<%= config.bin %> <%= command.id %> --local -a -m \"US-0000001 add account service\" --permissions CustomField:Account.SLA__c,ApexClass:AccountService --apex-test-classes MyTest,OtherTest",
|
|
5589
|
-
"<%= config.bin %> <%= command.id %> --local -a -m \"US-0000001 full onboarding permission set\" --full-metadata PermissionSet:Sales_Onboarding",
|
|
5590
5587
|
"<%= config.bin %> <%= command.id %> --cloud --message \"Commit AccountService\" --metadata-name AccountService --metadata-type ApexClass --metadata-category SFDX --action Add",
|
|
5591
5588
|
"<%= 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",
|
|
5592
5589
|
"cat commit-request.json | <%= config.bin %> <%= command.id %> --cloud --stdin --json"
|
|
@@ -5613,20 +5610,6 @@
|
|
|
5613
5610
|
],
|
|
5614
5611
|
"type": "option"
|
|
5615
5612
|
},
|
|
5616
|
-
"all": {
|
|
5617
|
-
"char": "a",
|
|
5618
|
-
"description": "Local commit only. Stage every tracked modification before committing, like `git commit -a`.",
|
|
5619
|
-
"name": "all",
|
|
5620
|
-
"allowNo": false,
|
|
5621
|
-
"type": "boolean"
|
|
5622
|
-
},
|
|
5623
|
-
"apex-test-classes": {
|
|
5624
|
-
"description": "Local commit only. Comma-separated Apex test class names stored as lastApexTestClassesSelected for `cicd work push`. Pass an empty value to clear it.",
|
|
5625
|
-
"name": "apex-test-classes",
|
|
5626
|
-
"hasDynamicHelp": false,
|
|
5627
|
-
"multiple": false,
|
|
5628
|
-
"type": "option"
|
|
5629
|
-
},
|
|
5630
5613
|
"base-branch": {
|
|
5631
5614
|
"description": "Optional base branch to include in the commit request.",
|
|
5632
5615
|
"name": "base-branch",
|
|
@@ -5635,7 +5618,7 @@
|
|
|
5635
5618
|
"type": "option"
|
|
5636
5619
|
},
|
|
5637
5620
|
"cloud": {
|
|
5638
|
-
"description": "
|
|
5621
|
+
"description": "Create a Copado cloud metadata commit (POST /release/commit). Required. For local Git work, use git commit then `cicd work publish`.",
|
|
5639
5622
|
"name": "cloud",
|
|
5640
5623
|
"allowNo": false,
|
|
5641
5624
|
"type": "boolean"
|
|
@@ -5661,22 +5644,9 @@
|
|
|
5661
5644
|
"multiple": false,
|
|
5662
5645
|
"type": "option"
|
|
5663
5646
|
},
|
|
5664
|
-
"full-metadata": {
|
|
5665
|
-
"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.",
|
|
5666
|
-
"name": "full-metadata",
|
|
5667
|
-
"hasDynamicHelp": false,
|
|
5668
|
-
"multiple": false,
|
|
5669
|
-
"type": "option"
|
|
5670
|
-
},
|
|
5671
|
-
"local": {
|
|
5672
|
-
"description": "Run a local git commit and record Copado selections. Used by default when --cloud is omitted.",
|
|
5673
|
-
"name": "local",
|
|
5674
|
-
"allowNo": false,
|
|
5675
|
-
"type": "boolean"
|
|
5676
|
-
},
|
|
5677
5647
|
"message": {
|
|
5678
5648
|
"char": "m",
|
|
5679
|
-
"description": "Commit message.
|
|
5649
|
+
"description": "Commit message. Required unless provided by JSON input.",
|
|
5680
5650
|
"name": "message",
|
|
5681
5651
|
"hasDynamicHelp": false,
|
|
5682
5652
|
"multiple": false,
|
|
@@ -5717,13 +5687,6 @@
|
|
|
5717
5687
|
"multiple": false,
|
|
5718
5688
|
"type": "option"
|
|
5719
5689
|
},
|
|
5720
|
-
"permissions": {
|
|
5721
|
-
"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.",
|
|
5722
|
-
"name": "permissions",
|
|
5723
|
-
"hasDynamicHelp": false,
|
|
5724
|
-
"multiple": false,
|
|
5725
|
-
"type": "option"
|
|
5726
|
-
},
|
|
5727
5690
|
"platform-experience": {
|
|
5728
5691
|
"description": "Initial platform-experience header for preflight. The preflight response wins for commit.",
|
|
5729
5692
|
"name": "platform-experience",
|
|
@@ -6393,10 +6356,10 @@
|
|
|
6393
6356
|
"promote.js"
|
|
6394
6357
|
]
|
|
6395
6358
|
},
|
|
6396
|
-
"cicd:work:
|
|
6359
|
+
"cicd:work:publish": {
|
|
6397
6360
|
"aliases": [],
|
|
6398
6361
|
"args": {},
|
|
6399
|
-
"description": "
|
|
6362
|
+
"description": "Publish 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`. Fetches origin/<lastBaseBranch>, then registers only commits in origin/<lastBaseBranch>..HEAD and diffs nested parent XML at merge-base(origin/<lastBaseBranch>, HEAD) versus HEAD, so origin/base-only history is ignored. When there are no commits since origin/<lastBaseBranch>, or origin already has HEAD, fails with \"No changes to publish\" 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. `cicd work push` is a compatibility alias of this command.",
|
|
6400
6363
|
"examples": [
|
|
6401
6364
|
"<%= config.bin %> <%= command.id %>",
|
|
6402
6365
|
"<%= config.bin %> <%= command.id %> --permissions CustomField:Account.SLA__c,ApexClass:AccountService",
|
|
@@ -6413,14 +6376,70 @@
|
|
|
6413
6376
|
"type": "boolean"
|
|
6414
6377
|
},
|
|
6415
6378
|
"full-metadata": {
|
|
6416
|
-
"description": "Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, added
|
|
6379
|
+
"description": "Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, added for this publish 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.",
|
|
6417
6380
|
"name": "full-metadata",
|
|
6418
6381
|
"hasDynamicHelp": false,
|
|
6419
6382
|
"multiple": false,
|
|
6420
6383
|
"type": "option"
|
|
6421
6384
|
},
|
|
6422
6385
|
"permissions": {
|
|
6423
|
-
"description": "Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, added
|
|
6386
|
+
"description": "Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, added for this publish and sent as headless push RetrieveOnly corrections. Not stored.",
|
|
6387
|
+
"name": "permissions",
|
|
6388
|
+
"hasDynamicHelp": false,
|
|
6389
|
+
"multiple": false,
|
|
6390
|
+
"type": "option"
|
|
6391
|
+
},
|
|
6392
|
+
"skip-nested-metadata-detection": {
|
|
6393
|
+
"description": "Do not detect the nested metadata changed across the branch (also configurable via skipNestedMetadataDetection in .agentia/config.json or .agentia/config.user.json)",
|
|
6394
|
+
"name": "skip-nested-metadata-detection",
|
|
6395
|
+
"allowNo": false,
|
|
6396
|
+
"type": "boolean"
|
|
6397
|
+
}
|
|
6398
|
+
},
|
|
6399
|
+
"hasDynamicHelp": false,
|
|
6400
|
+
"hiddenAliases": [],
|
|
6401
|
+
"id": "cicd:work:publish",
|
|
6402
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
6403
|
+
"pluginName": "@copado/agentia-cli",
|
|
6404
|
+
"pluginType": "core",
|
|
6405
|
+
"strict": true,
|
|
6406
|
+
"enableJsonFlag": true,
|
|
6407
|
+
"isESM": true,
|
|
6408
|
+
"relativePath": [
|
|
6409
|
+
"dist",
|
|
6410
|
+
"commands",
|
|
6411
|
+
"cicd",
|
|
6412
|
+
"work",
|
|
6413
|
+
"publish.js"
|
|
6414
|
+
]
|
|
6415
|
+
},
|
|
6416
|
+
"cicd:work:push": {
|
|
6417
|
+
"aliases": [],
|
|
6418
|
+
"args": {},
|
|
6419
|
+
"description": "Alias of cicd work publish. Publishes the current feature/<lastWorkItem> branch and registers commits with Copado. Prefer: agentia cicd work publish.",
|
|
6420
|
+
"examples": [
|
|
6421
|
+
"<%= config.bin %> cicd work publish",
|
|
6422
|
+
"<%= config.bin %> <%= command.id %>",
|
|
6423
|
+
"<%= config.bin %> <%= command.id %> --skip-nested-metadata-detection",
|
|
6424
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
6425
|
+
],
|
|
6426
|
+
"flags": {
|
|
6427
|
+
"json": {
|
|
6428
|
+
"description": "Format output as json.",
|
|
6429
|
+
"helpGroup": "GLOBAL",
|
|
6430
|
+
"name": "json",
|
|
6431
|
+
"allowNo": false,
|
|
6432
|
+
"type": "boolean"
|
|
6433
|
+
},
|
|
6434
|
+
"full-metadata": {
|
|
6435
|
+
"description": "Comma-separated type-prefixed metadata such as Profile:Sales_User,PermissionSet:Sales_Onboarding, added for this publish 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.",
|
|
6436
|
+
"name": "full-metadata",
|
|
6437
|
+
"hasDynamicHelp": false,
|
|
6438
|
+
"multiple": false,
|
|
6439
|
+
"type": "option"
|
|
6440
|
+
},
|
|
6441
|
+
"permissions": {
|
|
6442
|
+
"description": "Comma-separated type-prefixed metadata such as CustomField:Account.SLA__c,ApexClass:AccountService, added for this publish and sent as headless push RetrieveOnly corrections. Not stored.",
|
|
6424
6443
|
"name": "permissions",
|
|
6425
6444
|
"hasDynamicHelp": false,
|
|
6426
6445
|
"multiple": false,
|
|
@@ -6459,7 +6478,7 @@
|
|
|
6459
6478
|
"required": false
|
|
6460
6479
|
}
|
|
6461
6480
|
},
|
|
6462
|
-
"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>. After work/set returns, compares the Story source credential with the CICD project default: warns when the default or Story credential is missing, and warns without changing the Story when they differ (shows the current credential and environment; use work update to change it). 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.",
|
|
6481
|
+
"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>. A gateway warning prints the message, skips git, and leaves local work context unchanged. After work/set returns, compares the Story source credential with the CICD project default: warns when the default or Story credential is missing, and warns without changing the Story when they differ (shows the current credential and environment; use work update to change it). 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.",
|
|
6463
6482
|
"examples": [
|
|
6464
6483
|
"<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU",
|
|
6465
6484
|
"<%= config.bin %> <%= command.id %> US-0001 --json",
|
|
@@ -6514,7 +6533,7 @@
|
|
|
6514
6533
|
"required": false
|
|
6515
6534
|
}
|
|
6516
6535
|
},
|
|
6517
|
-
"description": "Get status for a work item, including related job executions
|
|
6536
|
+
"description": "Get status for a work item, including related job executions. Includes local branch metadata when lastBaseBranch is recorded by `work set`. 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.",
|
|
6518
6537
|
"examples": [
|
|
6519
6538
|
"<%= config.bin %> <%= command.id %>",
|
|
6520
6539
|
"<%= config.bin %> <%= command.id %> US-0001",
|
|
@@ -6556,13 +6575,14 @@
|
|
|
6556
6575
|
"cicd:work:submit": {
|
|
6557
6576
|
"aliases": [],
|
|
6558
6577
|
"args": {},
|
|
6559
|
-
"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.",
|
|
6578
|
+
"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 or --deploy, matches Copado UI Submit when promoting (validate=false / headless work/done). cicd work done is a compatibility alias of this command with --done.",
|
|
6560
6579
|
"examples": [
|
|
6561
6580
|
"<%= config.bin %> <%= command.id %>",
|
|
6562
6581
|
"<%= config.bin %> <%= command.id %> --apex-test-classes=MyTest,OtherTest",
|
|
6563
6582
|
"<%= config.bin %> <%= command.id %> --skip-local-tests",
|
|
6564
6583
|
"<%= config.bin %> <%= command.id %> --skip-pull-request",
|
|
6565
6584
|
"<%= config.bin %> <%= command.id %> --done",
|
|
6585
|
+
"<%= config.bin %> <%= command.id %> --deploy",
|
|
6566
6586
|
"<%= config.bin %> <%= command.id %> --done --skip-nested-metadata-detection",
|
|
6567
6587
|
"<%= config.bin %> <%= command.id %> --json"
|
|
6568
6588
|
],
|
|
@@ -6587,8 +6607,14 @@
|
|
|
6587
6607
|
"multiple": false,
|
|
6588
6608
|
"type": "option"
|
|
6589
6609
|
},
|
|
6610
|
+
"deploy": {
|
|
6611
|
+
"description": "Alias of --done: promote instead of validate-only (Copado UI Submit promote)",
|
|
6612
|
+
"name": "deploy",
|
|
6613
|
+
"allowNo": false,
|
|
6614
|
+
"type": "boolean"
|
|
6615
|
+
},
|
|
6590
6616
|
"done": {
|
|
6591
|
-
"description": "Promote instead of validate-only (Copado UI Submit promote); honors --skip-nested-metadata-detection",
|
|
6617
|
+
"description": "Promote instead of validate-only (Copado UI Submit promote); honors --skip-nested-metadata-detection. --deploy is an alias of --done.",
|
|
6592
6618
|
"name": "done",
|
|
6593
6619
|
"allowNo": false,
|
|
6594
6620
|
"type": "boolean"
|
|
@@ -6626,7 +6652,7 @@
|
|
|
6626
6652
|
"cicd:work:test": {
|
|
6627
6653
|
"aliases": [],
|
|
6628
6654
|
"args": {},
|
|
6629
|
-
"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
|
|
6655
|
+
"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. When no project script exists it warns, runs the stock Agentia setup sample from a temporary file, then deletes that file. With --cloud it runs remote Copado quality gates (not implemented yet).",
|
|
6630
6656
|
"examples": [
|
|
6631
6657
|
"<%= config.bin %> <%= command.id %>",
|
|
6632
6658
|
"<%= config.bin %> <%= command.id %> --local --apex-test-classes=MyTest,OtherTest",
|
|
@@ -17264,6 +17290,60 @@
|
|
|
17264
17290
|
"update.js"
|
|
17265
17291
|
]
|
|
17266
17292
|
},
|
|
17293
|
+
"cicd:work:test:apex": {
|
|
17294
|
+
"aliases": [],
|
|
17295
|
+
"args": {},
|
|
17296
|
+
"description": "Run specified Apex test classes via Salesforce CLI (`sf apex run test`) with code coverage. Usually run from project-root local quality gates (`.agentia_quality_gates.sh` / `.agentia_quality_gates.cmd`) when those scripts are configured. Prints the test-run summary when the run passes, or failing tests with their messages and stack traces when it fails.",
|
|
17297
|
+
"examples": [
|
|
17298
|
+
"<%= config.bin %> <%= command.id %> -t HelloWorldTest",
|
|
17299
|
+
"<%= config.bin %> <%= command.id %> --apex-test-classes=MyTest,OtherTest",
|
|
17300
|
+
"<%= config.bin %> <%= command.id %> -t MyTest,OtherTest -w 10 --json"
|
|
17301
|
+
],
|
|
17302
|
+
"flags": {
|
|
17303
|
+
"json": {
|
|
17304
|
+
"description": "Format output as json.",
|
|
17305
|
+
"helpGroup": "GLOBAL",
|
|
17306
|
+
"name": "json",
|
|
17307
|
+
"allowNo": false,
|
|
17308
|
+
"type": "boolean"
|
|
17309
|
+
},
|
|
17310
|
+
"apex-test-classes": {
|
|
17311
|
+
"char": "t",
|
|
17312
|
+
"description": "Comma-separated Apex test class names to run",
|
|
17313
|
+
"name": "apex-test-classes",
|
|
17314
|
+
"required": true,
|
|
17315
|
+
"hasDynamicHelp": false,
|
|
17316
|
+
"multiple": false,
|
|
17317
|
+
"type": "option"
|
|
17318
|
+
},
|
|
17319
|
+
"wait": {
|
|
17320
|
+
"char": "w",
|
|
17321
|
+
"description": "Minutes to wait for Salesforce CLI Apex test results",
|
|
17322
|
+
"name": "wait",
|
|
17323
|
+
"default": 60,
|
|
17324
|
+
"hasDynamicHelp": false,
|
|
17325
|
+
"multiple": false,
|
|
17326
|
+
"type": "option"
|
|
17327
|
+
}
|
|
17328
|
+
},
|
|
17329
|
+
"hasDynamicHelp": false,
|
|
17330
|
+
"hiddenAliases": [],
|
|
17331
|
+
"id": "cicd:work:test:apex",
|
|
17332
|
+
"pluginAlias": "@copado/agentia-cli",
|
|
17333
|
+
"pluginName": "@copado/agentia-cli",
|
|
17334
|
+
"pluginType": "core",
|
|
17335
|
+
"strict": true,
|
|
17336
|
+
"enableJsonFlag": true,
|
|
17337
|
+
"isESM": true,
|
|
17338
|
+
"relativePath": [
|
|
17339
|
+
"dist",
|
|
17340
|
+
"commands",
|
|
17341
|
+
"cicd",
|
|
17342
|
+
"work",
|
|
17343
|
+
"test",
|
|
17344
|
+
"apex.js"
|
|
17345
|
+
]
|
|
17346
|
+
},
|
|
17267
17347
|
"testing:job:schedule:get": {
|
|
17268
17348
|
"aliases": [],
|
|
17269
17349
|
"args": {
|
|
@@ -17793,5 +17873,5 @@
|
|
|
17793
17873
|
]
|
|
17794
17874
|
}
|
|
17795
17875
|
},
|
|
17796
|
-
"version": "0.
|
|
17876
|
+
"version": "0.118.0-alpha.0"
|
|
17797
17877
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copado/agentia-cli",
|
|
3
3
|
"description": "Command-line interface for Agentia",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.118.0-alpha.0",
|
|
5
5
|
"author": "Copado Solutions",
|
|
6
6
|
"bin": {
|
|
7
7
|
"agentia": "./bin/run.js"
|
|
@@ -191,6 +191,9 @@
|
|
|
191
191
|
"cicd:work:deployment-step": {
|
|
192
192
|
"description": "Manage user story deployment steps"
|
|
193
193
|
},
|
|
194
|
+
"cicd:work:test": {
|
|
195
|
+
"description": "Run quality gates and Apex tests for a work item"
|
|
196
|
+
},
|
|
194
197
|
"cicd:promotion": {
|
|
195
198
|
"description": "Manage Copado promotions"
|
|
196
199
|
},
|