@copado/agentia-cli 0.16.0-alpha.0 → 0.17.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 CHANGED
@@ -22,7 +22,7 @@ $ npm install -g @copado/agentia-cli
22
22
  $ agentia COMMAND
23
23
  running command...
24
24
  $ agentia (--version)
25
- @copado/agentia-cli/0.16.0-alpha.0 linux-x64 node-v22.23.2
25
+ @copado/agentia-cli/0.17.0-alpha.0 linux-x64 node-v22.23.2
26
26
  $ agentia --help [COMMAND]
27
27
  USAGE
28
28
  $ agentia COMMAND
@@ -170,8 +170,12 @@ Agentia CLI is distributed under the Copado End User License Agreement. See [LIC
170
170
  * [`agentia user get`](#agentia-user-get)
171
171
  * [`agentia work create`](#agentia-work-create)
172
172
  * [`agentia work delete ID`](#agentia-work-delete-id)
173
+ * [`agentia work done`](#agentia-work-done)
173
174
  * [`agentia work get ID`](#agentia-work-get-id)
174
175
  * [`agentia work list`](#agentia-work-list)
176
+ * [`agentia work push`](#agentia-work-push)
177
+ * [`agentia work set ID`](#agentia-work-set-id)
178
+ * [`agentia work submit`](#agentia-work-submit)
175
179
  * [`agentia work update ID`](#agentia-work-update-id)
176
180
 
177
181
  ## `agentia auth get`
@@ -204,7 +208,7 @@ EXAMPLES
204
208
  $ agentia auth get --json
205
209
  ```
206
210
 
207
- _See code: [src/commands/auth/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/auth/get.ts)_
211
+ _See code: [src/commands/auth/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/auth/get.ts)_
208
212
 
209
213
  ## `agentia auth set`
210
214
 
@@ -242,7 +246,7 @@ EXAMPLES
242
246
  $ agentia auth set --cicd <copado-api-key> --region na --json
243
247
  ```
244
248
 
245
- _See code: [src/commands/auth/set.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/auth/set.ts)_
249
+ _See code: [src/commands/auth/set.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/auth/set.ts)_
246
250
 
247
251
  ## `agentia environment auth status ID`
248
252
 
@@ -272,7 +276,7 @@ EXAMPLES
272
276
  $ agentia environment auth status <environment-id> --json
273
277
  ```
274
278
 
275
- _See code: [src/commands/environment/auth/status.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/environment/auth/status.ts)_
279
+ _See code: [src/commands/environment/auth/status.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/environment/auth/status.ts)_
276
280
 
277
281
  ## `agentia environment auth web login ID`
278
282
 
@@ -306,7 +310,7 @@ EXAMPLES
306
310
  $ agentia environment auth web login <environment-id> --json
307
311
  ```
308
312
 
309
- _See code: [src/commands/environment/auth/web/login.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/environment/auth/web/login.ts)_
313
+ _See code: [src/commands/environment/auth/web/login.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/environment/auth/web/login.ts)_
310
314
 
311
315
  ## `agentia environment create NAME`
312
316
 
@@ -351,7 +355,7 @@ EXAMPLES
351
355
  $ agentia environment create Dev --json
352
356
  ```
353
357
 
354
- _See code: [src/commands/environment/create.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/environment/create.ts)_
358
+ _See code: [src/commands/environment/create.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/environment/create.ts)_
355
359
 
356
360
  ## `agentia environment get ID`
357
361
 
@@ -376,7 +380,7 @@ EXAMPLES
376
380
  $ agentia environment get a0SKC000000CmZ2AU --json
377
381
  ```
378
382
 
379
- _See code: [src/commands/environment/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/environment/get.ts)_
383
+ _See code: [src/commands/environment/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/environment/get.ts)_
380
384
 
381
385
  ## `agentia environment list`
382
386
 
@@ -408,7 +412,7 @@ EXAMPLES
408
412
  $ agentia environment list --json
409
413
  ```
410
414
 
411
- _See code: [src/commands/environment/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/environment/list.ts)_
415
+ _See code: [src/commands/environment/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/environment/list.ts)_
412
416
 
413
417
  ## `agentia environment update ID`
414
418
 
@@ -454,7 +458,7 @@ EXAMPLES
454
458
  $ agentia environment update a0SKC000000CmZ2AU --name UAT --json
455
459
  ```
456
460
 
457
- _See code: [src/commands/environment/update.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/environment/update.ts)_
461
+ _See code: [src/commands/environment/update.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/environment/update.ts)_
458
462
 
459
463
  ## `agentia help [COMMAND]`
460
464
 
@@ -503,7 +507,7 @@ EXAMPLES
503
507
  $ agentia job get <job-id> --user-id <id> --organization-id <id> --json
504
508
  ```
505
509
 
506
- _See code: [src/commands/job/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/job/get.ts)_
510
+ _See code: [src/commands/job/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/job/get.ts)_
507
511
 
508
512
  ## `agentia job kill ID`
509
513
 
@@ -532,7 +536,7 @@ EXAMPLES
532
536
  $ agentia job kill <job-id> --user-id <id> --organization-id <id> --json
533
537
  ```
534
538
 
535
- _See code: [src/commands/job/kill.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/job/kill.ts)_
539
+ _See code: [src/commands/job/kill.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/job/kill.ts)_
536
540
 
537
541
  ## `agentia job list`
538
542
 
@@ -570,7 +574,7 @@ EXAMPLES
570
574
  $ agentia job list --user-id <id> --organization-id <id> --json
571
575
  ```
572
576
 
573
- _See code: [src/commands/job/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/job/list.ts)_
577
+ _See code: [src/commands/job/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/job/list.ts)_
574
578
 
575
579
  ## `agentia job pause ID`
576
580
 
@@ -599,7 +603,7 @@ EXAMPLES
599
603
  $ agentia job pause <job-id> --user-id <id> --organization-id <id> --json
600
604
  ```
601
605
 
602
- _See code: [src/commands/job/pause.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/job/pause.ts)_
606
+ _See code: [src/commands/job/pause.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/job/pause.ts)_
603
607
 
604
608
  ## `agentia job resume ID`
605
609
 
@@ -628,7 +632,7 @@ EXAMPLES
628
632
  $ agentia job resume <job-id> --user-id <id> --organization-id <id> --json
629
633
  ```
630
634
 
631
- _See code: [src/commands/job/resume.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/job/resume.ts)_
635
+ _See code: [src/commands/job/resume.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/job/resume.ts)_
632
636
 
633
637
  ## `agentia job run ID`
634
638
 
@@ -658,7 +662,7 @@ EXAMPLES
658
662
  $ agentia job run <job-id> --user-id <id> --organization-id <id> --restart --json
659
663
  ```
660
664
 
661
- _See code: [src/commands/job/run.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/job/run.ts)_
665
+ _See code: [src/commands/job/run.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/job/run.ts)_
662
666
 
663
667
  ## `agentia mcp start`
664
668
 
@@ -677,7 +681,7 @@ EXAMPLES
677
681
  $ agentia mcp start # long-running stdio MCP server for Cursor and other clients
678
682
  ```
679
683
 
680
- _See code: [src/commands/mcp/start.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/mcp/start.ts)_
684
+ _See code: [src/commands/mcp/start.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/mcp/start.ts)_
681
685
 
682
686
  ## `agentia metadata content compare`
683
687
 
@@ -720,7 +724,7 @@ EXAMPLES
720
724
  $ agentia metadata content compare --metadata-type ApexClass --api-name MyClass --json
721
725
  ```
722
726
 
723
- _See code: [src/commands/metadata/content/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/content/compare.ts)_
727
+ _See code: [src/commands/metadata/content/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/content/compare.ts)_
724
728
 
725
729
  ## `agentia metadata content get`
726
730
 
@@ -761,7 +765,7 @@ EXAMPLES
761
765
  $ agentia metadata content get --file requests.json --json
762
766
  ```
763
767
 
764
- _See code: [src/commands/metadata/content/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/content/get.ts)_
768
+ _See code: [src/commands/metadata/content/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/content/get.ts)_
765
769
 
766
770
  ## `agentia metadata dependency list`
767
771
 
@@ -809,7 +813,7 @@ EXAMPLES
809
813
  $ agentia metadata dependency list --from-changes --base-ref origin/main --retrieve-mode all --pipeline-id <id> --source-org-id <id> --source-credential-id <id>
810
814
  ```
811
815
 
812
- _See code: [src/commands/metadata/dependency/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/dependency/list.ts)_
816
+ _See code: [src/commands/metadata/dependency/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/dependency/list.ts)_
813
817
 
814
818
  ## `agentia metadata index compare`
815
819
 
@@ -843,7 +847,7 @@ EXAMPLES
843
847
  $ agentia metadata index compare --comparison-mode MIX --json
844
848
  ```
845
849
 
846
- _See code: [src/commands/metadata/index/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/index/compare.ts)_
850
+ _See code: [src/commands/metadata/index/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/index/compare.ts)_
847
851
 
848
852
  ## `agentia metadata list`
849
853
 
@@ -891,7 +895,7 @@ EXAMPLES
891
895
  $ agentia metadata list --source NewAndChanged --find-managed-packages --json
892
896
  ```
893
897
 
894
- _See code: [src/commands/metadata/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/list.ts)_
898
+ _See code: [src/commands/metadata/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/list.ts)_
895
899
 
896
900
  ## `agentia metadata refresh deleted`
897
901
 
@@ -923,7 +927,7 @@ EXAMPLES
923
927
  $ agentia metadata refresh deleted --env <environment-id> --user-id <id> --organization-id <id> --module-type vlocity --json
924
928
  ```
925
929
 
926
- _See code: [src/commands/metadata/refresh/deleted.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/refresh/deleted.ts)_
930
+ _See code: [src/commands/metadata/refresh/deleted.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/refresh/deleted.ts)_
927
931
 
928
932
  ## `agentia metadata refresh run`
929
933
 
@@ -966,7 +970,7 @@ EXAMPLES
966
970
  $ agentia metadata refresh run --env <environment-id> --user-id <id> --organization-id <id> --all --json
967
971
  ```
968
972
 
969
- _See code: [src/commands/metadata/refresh/run.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/refresh/run.ts)_
973
+ _See code: [src/commands/metadata/refresh/run.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/refresh/run.ts)_
970
974
 
971
975
  ## `agentia metadata refresh status`
972
976
 
@@ -998,7 +1002,7 @@ EXAMPLES
998
1002
  $ agentia metadata refresh status --job-id <event-id> --user-id <id> --organization-id <id> --json
999
1003
  ```
1000
1004
 
1001
- _See code: [src/commands/metadata/refresh/status.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/metadata/refresh/status.ts)_
1005
+ _See code: [src/commands/metadata/refresh/status.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/metadata/refresh/status.ts)_
1002
1006
 
1003
1007
  ## `agentia pipeline connection list`
1004
1008
 
@@ -1025,7 +1029,7 @@ EXAMPLES
1025
1029
  $ agentia pipeline connection list --pipeline-id <pipeline-id> --user-id <id> --organization-id <id> --json
1026
1030
  ```
1027
1031
 
1028
- _See code: [src/commands/pipeline/connection/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/pipeline/connection/list.ts)_
1032
+ _See code: [src/commands/pipeline/connection/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/pipeline/connection/list.ts)_
1029
1033
 
1030
1034
  ## `agentia pipeline get ID`
1031
1035
 
@@ -1054,7 +1058,7 @@ EXAMPLES
1054
1058
  $ agentia pipeline get <pipeline-id> --user-id <id> --organization-id <id> --json
1055
1059
  ```
1056
1060
 
1057
- _See code: [src/commands/pipeline/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/pipeline/get.ts)_
1061
+ _See code: [src/commands/pipeline/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/pipeline/get.ts)_
1058
1062
 
1059
1063
  ## `agentia pipeline list`
1060
1064
 
@@ -1080,7 +1084,7 @@ EXAMPLES
1080
1084
  $ agentia pipeline list --user-id <id> --organization-id <id> --json
1081
1085
  ```
1082
1086
 
1083
- _See code: [src/commands/pipeline/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/pipeline/list.ts)_
1087
+ _See code: [src/commands/pipeline/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/pipeline/list.ts)_
1084
1088
 
1085
1089
  ## `agentia plugins`
1086
1090
 
@@ -1407,7 +1411,7 @@ EXAMPLES
1407
1411
  $ agentia project default get --json
1408
1412
  ```
1409
1413
 
1410
- _See code: [src/commands/project/default/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/project/default/get.ts)_
1414
+ _See code: [src/commands/project/default/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/project/default/get.ts)_
1411
1415
 
1412
1416
  ## `agentia project default set`
1413
1417
 
@@ -1444,7 +1448,7 @@ EXAMPLES
1444
1448
  $ agentia project default set --project my-project --json
1445
1449
  ```
1446
1450
 
1447
- _See code: [src/commands/project/default/set.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/project/default/set.ts)_
1451
+ _See code: [src/commands/project/default/set.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/project/default/set.ts)_
1448
1452
 
1449
1453
  ## `agentia project default unset`
1450
1454
 
@@ -1481,7 +1485,7 @@ EXAMPLES
1481
1485
  $ agentia project default unset --project --json
1482
1486
  ```
1483
1487
 
1484
- _See code: [src/commands/project/default/unset.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/project/default/unset.ts)_
1488
+ _See code: [src/commands/project/default/unset.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/project/default/unset.ts)_
1485
1489
 
1486
1490
  ## `agentia project list`
1487
1491
 
@@ -1508,7 +1512,7 @@ EXAMPLES
1508
1512
  $ agentia project list --mine --json
1509
1513
  ```
1510
1514
 
1511
- _See code: [src/commands/project/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/project/list.ts)_
1515
+ _See code: [src/commands/project/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/project/list.ts)_
1512
1516
 
1513
1517
  ## `agentia promotion conflict get ID`
1514
1518
 
@@ -1539,7 +1543,7 @@ EXAMPLES
1539
1543
  $ agentia promotion conflict get <conflict-id> -p <promotion-id> --json
1540
1544
  ```
1541
1545
 
1542
- _See code: [src/commands/promotion/conflict/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/promotion/conflict/get.ts)_
1546
+ _See code: [src/commands/promotion/conflict/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/promotion/conflict/get.ts)_
1543
1547
 
1544
1548
  ## `agentia promotion conflict list`
1545
1549
 
@@ -1564,7 +1568,7 @@ EXAMPLES
1564
1568
  $ agentia promotion conflict list -p <promotion-id> --json
1565
1569
  ```
1566
1570
 
1567
- _See code: [src/commands/promotion/conflict/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/promotion/conflict/list.ts)_
1571
+ _See code: [src/commands/promotion/conflict/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/promotion/conflict/list.ts)_
1568
1572
 
1569
1573
  ## `agentia promotion conflict resolve ID`
1570
1574
 
@@ -1597,7 +1601,7 @@ EXAMPLES
1597
1601
  $ agentia promotion conflict resolve <conflict-id> -p <promotion-id> --mode auto --json
1598
1602
  ```
1599
1603
 
1600
- _See code: [src/commands/promotion/conflict/resolve.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/promotion/conflict/resolve.ts)_
1604
+ _See code: [src/commands/promotion/conflict/resolve.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/promotion/conflict/resolve.ts)_
1601
1605
 
1602
1606
  ## `agentia promotion conflict unresolve ID`
1603
1607
 
@@ -1625,7 +1629,7 @@ EXAMPLES
1625
1629
  $ agentia promotion conflict unresolve <conflict-id> -p <promotion-id> --json
1626
1630
  ```
1627
1631
 
1628
- _See code: [src/commands/promotion/conflict/unresolve.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/promotion/conflict/unresolve.ts)_
1632
+ _See code: [src/commands/promotion/conflict/unresolve.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/promotion/conflict/unresolve.ts)_
1629
1633
 
1630
1634
  ## `agentia promotion get ID`
1631
1635
 
@@ -1650,7 +1654,7 @@ EXAMPLES
1650
1654
  $ agentia promotion get <promotion-id> --json
1651
1655
  ```
1652
1656
 
1653
- _See code: [src/commands/promotion/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/promotion/get.ts)_
1657
+ _See code: [src/commands/promotion/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/promotion/get.ts)_
1654
1658
 
1655
1659
  ## `agentia promotion list`
1656
1660
 
@@ -1693,7 +1697,7 @@ EXAMPLES
1693
1697
  $ agentia promotion list --json
1694
1698
  ```
1695
1699
 
1696
- _See code: [src/commands/promotion/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/promotion/list.ts)_
1700
+ _See code: [src/commands/promotion/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/promotion/list.ts)_
1697
1701
 
1698
1702
  ## `agentia user get`
1699
1703
 
@@ -1722,7 +1726,7 @@ EXAMPLES
1722
1726
  $ agentia user get --json
1723
1727
  ```
1724
1728
 
1725
- _See code: [src/commands/user/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/user/get.ts)_
1729
+ _See code: [src/commands/user/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/user/get.ts)_
1726
1730
 
1727
1731
  ## `agentia work create`
1728
1732
 
@@ -1777,7 +1781,7 @@ EXAMPLES
1777
1781
  $ agentia work create --title "My story" --json
1778
1782
  ```
1779
1783
 
1780
- _See code: [src/commands/work/create.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/work/create.ts)_
1784
+ _See code: [src/commands/work/create.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/create.ts)_
1781
1785
 
1782
1786
  ## `agentia work delete ID`
1783
1787
 
@@ -1802,7 +1806,30 @@ EXAMPLES
1802
1806
  $ agentia work delete a0SKC000000CmZ2AU --json
1803
1807
  ```
1804
1808
 
1805
- _See code: [src/commands/work/delete.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/work/delete.ts)_
1809
+ _See code: [src/commands/work/delete.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/delete.ts)_
1810
+
1811
+ ## `agentia work done`
1812
+
1813
+ Mark the current feature/US-XXXX work item done and promote it to the next environment. Pushes and registers commits when the branch is ahead of origin, then calls headless work/done (Promote Action with validate=false).
1814
+
1815
+ ```
1816
+ USAGE
1817
+ $ agentia work done [--json]
1818
+
1819
+ GLOBAL FLAGS
1820
+ --json Format output as json.
1821
+
1822
+ DESCRIPTION
1823
+ Mark the current feature/US-XXXX work item done and promote it to the next environment. Pushes and registers commits
1824
+ when the branch is ahead of origin, then calls headless work/done (Promote Action with validate=false).
1825
+
1826
+ EXAMPLES
1827
+ $ agentia work done
1828
+
1829
+ $ agentia work done --json
1830
+ ```
1831
+
1832
+ _See code: [src/commands/work/done.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/done.ts)_
1806
1833
 
1807
1834
  ## `agentia work get ID`
1808
1835
 
@@ -1827,7 +1854,7 @@ EXAMPLES
1827
1854
  $ agentia work get a0SKC000000CmZ2AU --json
1828
1855
  ```
1829
1856
 
1830
- _See code: [src/commands/work/get.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/work/get.ts)_
1857
+ _See code: [src/commands/work/get.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/get.ts)_
1831
1858
 
1832
1859
  ## `agentia work list`
1833
1860
 
@@ -1870,7 +1897,85 @@ EXAMPLES
1870
1897
  $ agentia work list --json
1871
1898
  ```
1872
1899
 
1873
- _See code: [src/commands/work/list.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/work/list.ts)_
1900
+ _See code: [src/commands/work/list.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/list.ts)_
1901
+
1902
+ ## `agentia work push`
1903
+
1904
+ Push the current feature/US-XXXX branch and register commits with Copado. Requires a clean working tree and a base branch from `agentia work set`. Locks the tip commit, runs `git push origin <branch>`, then calls headless work/push.
1905
+
1906
+ ```
1907
+ USAGE
1908
+ $ agentia work push [--json]
1909
+
1910
+ GLOBAL FLAGS
1911
+ --json Format output as json.
1912
+
1913
+ DESCRIPTION
1914
+ Push the current feature/US-XXXX branch and register commits with Copado. Requires a clean working tree and a base
1915
+ branch from `agentia work set`. Locks the tip commit, runs `git push origin <branch>`, then calls headless work/push.
1916
+
1917
+ EXAMPLES
1918
+ $ agentia work push
1919
+
1920
+ $ agentia work push --json
1921
+ ```
1922
+
1923
+ _See code: [src/commands/work/push.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/push.ts)_
1924
+
1925
+ ## `agentia work set ID`
1926
+
1927
+ 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>.
1928
+
1929
+ ```
1930
+ USAGE
1931
+ $ agentia work set ID [--json] [--base-branch <value>]
1932
+
1933
+ ARGUMENTS
1934
+ ID User story ID or name
1935
+
1936
+ FLAGS
1937
+ --base-branch=<value> Override the base branch returned by the work/set endpoint
1938
+
1939
+ GLOBAL FLAGS
1940
+ --json Format output as json.
1941
+
1942
+ DESCRIPTION
1943
+ Set the active work item and prepare a local feature branch. Calls the CICD gateway work/set endpoint, requires a
1944
+ clean tracked working tree, fetches the work item base branch from origin, then creates or checks out
1945
+ feature/<user-story-name>.
1946
+
1947
+ EXAMPLES
1948
+ $ agentia work set a0SKC000000CmZ2AU
1949
+
1950
+ $ agentia work set US-0001 --json
1951
+
1952
+ $ agentia work set US-0001 --base-branch develop
1953
+ ```
1954
+
1955
+ _See code: [src/commands/work/set.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/set.ts)_
1956
+
1957
+ ## `agentia work submit`
1958
+
1959
+ Submit the current feature/US-XXXX work item for pipeline quality gates and validation. Pushes and registers commits when the branch is ahead of origin, then calls headless work/submit (Promote Action with validate=true).
1960
+
1961
+ ```
1962
+ USAGE
1963
+ $ agentia work submit [--json]
1964
+
1965
+ GLOBAL FLAGS
1966
+ --json Format output as json.
1967
+
1968
+ DESCRIPTION
1969
+ Submit the current feature/US-XXXX work item for pipeline quality gates and validation. Pushes and registers commits
1970
+ when the branch is ahead of origin, then calls headless work/submit (Promote Action with validate=true).
1971
+
1972
+ EXAMPLES
1973
+ $ agentia work submit
1974
+
1975
+ $ agentia work submit --json
1976
+ ```
1977
+
1978
+ _See code: [src/commands/work/submit.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/submit.ts)_
1874
1979
 
1875
1980
  ## `agentia work update ID`
1876
1981
 
@@ -1928,5 +2033,5 @@ EXAMPLES
1928
2033
  $ agentia work update a0SKC000000CmZ2AU --status "In Progress" --json
1929
2034
  ```
1930
2035
 
1931
- _See code: [src/commands/work/update.ts](https://github.com/Copado/agentia-cli/blob/v0.16.0-alpha.0/src/commands/work/update.ts)_
2036
+ _See code: [src/commands/work/update.ts](https://github.com/Copado/agentia-cli/blob/v0.17.0-alpha.0/src/commands/work/update.ts)_
1932
2037
  <!-- commandsstop -->
@@ -3,6 +3,7 @@ import { type CredentialType } from '../../lib/credential-store.js';
3
3
  export type AuthCredentialResult = {
4
4
  baseUrl?: null | string;
5
5
  label: string;
6
+ local?: boolean;
6
7
  masked?: string;
7
8
  set: boolean;
8
9
  type: CredentialType;
@@ -18,6 +19,7 @@ export default class AuthGet extends AgentiaCommand {
18
19
  crt: import("@oclif/core/interfaces").BooleanFlag<boolean>;
19
20
  };
20
21
  run(): Promise<AuthGetResult>;
22
+ private buildCicdCredentialResult;
21
23
  private buildCredentialResult;
22
24
  private formatCredentialLine;
23
25
  }
@@ -1,6 +1,7 @@
1
1
  import { Flags } from '@oclif/core';
2
2
  import { AgentiaCommand } from '../../lib/agentia-command.js';
3
3
  import { ALL_CREDENTIAL_TYPES, credentialLabel, getCicdBaseUrl, getCredential, maskSecret, } from '../../lib/credential-store.js';
4
+ import { normalizeLocalGatewayBaseUrl, readLocalGatewayConfig } from '../../lib/local-gateway-config.js';
4
5
  export default class AuthGet extends AgentiaCommand {
5
6
  static description = 'Show stored authentication credentials from the system keychain';
6
7
  static examples = [
@@ -34,21 +35,54 @@ export default class AuthGet extends AgentiaCommand {
34
35
  }
35
36
  return { credentials };
36
37
  }
37
- buildCredentialResult(type) {
38
- const credential = getCredential(type);
38
+ buildCicdCredentialResult() {
39
+ const localConfig = readLocalGatewayConfig();
40
+ const label = credentialLabel('cicd');
41
+ if (localConfig.enabled) {
42
+ const apiKey = localConfig.apiKey || getCredential('cicd');
43
+ if (apiKey === null || apiKey.trim().length === 0) {
44
+ return {
45
+ baseUrl: normalizeLocalGatewayBaseUrl(localConfig.url),
46
+ label,
47
+ local: true,
48
+ set: false,
49
+ type: 'cicd',
50
+ };
51
+ }
52
+ return {
53
+ baseUrl: normalizeLocalGatewayBaseUrl(localConfig.url),
54
+ label,
55
+ local: true,
56
+ masked: maskSecret(apiKey),
57
+ set: true,
58
+ type: 'cicd',
59
+ };
60
+ }
61
+ const credential = getCredential('cicd');
39
62
  if (credential === null) {
40
63
  return {
41
- label: credentialLabel(type),
64
+ label,
42
65
  set: false,
43
- type,
66
+ type: 'cicd',
44
67
  };
45
68
  }
69
+ return {
70
+ baseUrl: getCicdBaseUrl(),
71
+ label,
72
+ masked: maskSecret(credential),
73
+ set: true,
74
+ type: 'cicd',
75
+ };
76
+ }
77
+ buildCredentialResult(type) {
46
78
  if (type === 'cicd') {
79
+ return this.buildCicdCredentialResult();
80
+ }
81
+ const credential = getCredential(type);
82
+ if (credential === null) {
47
83
  return {
48
- baseUrl: getCicdBaseUrl(),
49
84
  label: credentialLabel(type),
50
- masked: maskSecret(credential),
51
- set: true,
85
+ set: false,
52
86
  type,
53
87
  };
54
88
  }
@@ -61,11 +95,15 @@ export default class AuthGet extends AgentiaCommand {
61
95
  }
62
96
  formatCredentialLine(credential) {
63
97
  if (!credential.set) {
98
+ if (credential.type === 'cicd' && credential.local && credential.baseUrl) {
99
+ return `${credential.label}: not set (endpoint: ${credential.baseUrl}, local)`;
100
+ }
64
101
  return `${credential.label}: not set`;
65
102
  }
66
103
  if (credential.type === 'cicd') {
67
104
  const endpointLabel = credential.baseUrl === null || credential.baseUrl === undefined ? 'not set' : credential.baseUrl;
68
- return `${credential.label}: ${credential.masked} (endpoint: ${endpointLabel})`;
105
+ const localSuffix = credential.local ? ', local' : '';
106
+ return `${credential.label}: ${credential.masked} (endpoint: ${endpointLabel}${localSuffix})`;
69
107
  }
70
108
  return `${credential.label}: ${credential.masked}`;
71
109
  }
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/auth/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAA;AAEjC,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EACL,oBAAoB,EACpB,eAAe,EAEf,cAAc,EACd,aAAa,EACb,UAAU,GACX,MAAM,+BAA+B,CAAA;AActC,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,cAAc;IACjD,MAAM,CAAU,WAAW,GAAG,iEAAiE,CAAA;IAC/F,MAAM,CAAU,QAAQ,GAAG;QACzB,qCAAqC;QACrC,4CAA4C;QAC5C,2CAA2C;QAC3C,kDAAkD;QAClD,4CAA4C;KAC7C,CAAA;IACD,MAAM,CAAU,KAAK,GAAG;QACtB,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC;YAClB,WAAW,EAAE,6C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GAAG,EAAE,KAAK;gBACV,IAAI;aACL,CAAA;QACH,CAAC;QAED,OAAO;YACL,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC;YAC5B,MAAM,EAAE,UAAU,CAAC,UAAU,CAAC;YAC9B,GAAG,EAAE,IAAI;YACT,IAAI;SACL,CAAA;IACH,CAAC;IAEO,oBAAoB,CAAC,UAAgC;QAC3D,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC;YACpB,IAAI,UAAU,CAAC,IAAI,KAAK,MAAM,IAAI,UAAU,CAAC,KAAK,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC;gBACzE,OAAO,GAAG,UAAU,CAAC,KAAK,wBAAwB,UAAU,CAAC,OAAO,UAAU,CAAA;YAChF,CAAC;YAED,OAAO,GAAG,UAAU,CAAC,KAAK,WAAW,CAAA;QACvC,CAAC;QAED,IAAI,UAAU,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YAC/B,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,KAAK,IAAI,IAAI,UAAU,CAAC,OAAO,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,CAAA;YACtH,MAAM,WAAW,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAA;YACrD,OAAO,GAAG,UAAU,CAAC,KAAK,KAAK,UAAU,CAAC,MAAM,eAAe,aAAa,GAAG,WAAW,GAAG,CAAA;QAC/F,CAAC;QAED,OAAO,GAAG,UAAU,CAAC,KAAK,KAAK,UAAU,CAAC,MAAM,EAAE,CAAA;IACpD,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { AgentiaCommand } from '../../lib/agentia-command.js';
2
+ import { type WorkDoneResult } from '../../lib/work-types.js';
3
+ export default class WorkDone extends AgentiaCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ run(): Promise<WorkDoneResult>;
7
+ }