@copado/agentia-cli 0.20.0-alpha.0 → 0.21.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.20.0-alpha.0 linux-x64 node-v22.23.2
25
+ @copado/agentia-cli/0.21.0-alpha.0 linux-x64 node-v22.23.2
26
26
  $ agentia --help [COMMAND]
27
27
  USAGE
28
28
  $ agentia COMMAND
@@ -176,6 +176,7 @@ Agentia CLI is distributed under the Copado End User License Agreement. See [LIC
176
176
  * [`agentia work list`](#agentia-work-list)
177
177
  * [`agentia work push`](#agentia-work-push)
178
178
  * [`agentia work set ID`](#agentia-work-set-id)
179
+ * [`agentia work status [ID]`](#agentia-work-status-id)
179
180
  * [`agentia work submit`](#agentia-work-submit)
180
181
  * [`agentia work update [ID]`](#agentia-work-update-id)
181
182
 
@@ -209,7 +210,7 @@ EXAMPLES
209
210
  $ agentia auth get --json
210
211
  ```
211
212
 
212
- _See code: [src/commands/auth/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/auth/get.ts)_
213
+ _See code: [src/commands/auth/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/auth/get.ts)_
213
214
 
214
215
  ## `agentia auth set`
215
216
 
@@ -247,7 +248,7 @@ EXAMPLES
247
248
  $ agentia auth set --cicd <copado-api-key> --region na --json
248
249
  ```
249
250
 
250
- _See code: [src/commands/auth/set.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/auth/set.ts)_
251
+ _See code: [src/commands/auth/set.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/auth/set.ts)_
251
252
 
252
253
  ## `agentia environment auth status ID`
253
254
 
@@ -277,7 +278,7 @@ EXAMPLES
277
278
  $ agentia environment auth status <environment-id> --json
278
279
  ```
279
280
 
280
- _See code: [src/commands/environment/auth/status.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/environment/auth/status.ts)_
281
+ _See code: [src/commands/environment/auth/status.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/environment/auth/status.ts)_
281
282
 
282
283
  ## `agentia environment auth web login ID`
283
284
 
@@ -311,7 +312,7 @@ EXAMPLES
311
312
  $ agentia environment auth web login <environment-id> --json
312
313
  ```
313
314
 
314
- _See code: [src/commands/environment/auth/web/login.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/environment/auth/web/login.ts)_
315
+ _See code: [src/commands/environment/auth/web/login.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/environment/auth/web/login.ts)_
315
316
 
316
317
  ## `agentia environment create NAME`
317
318
 
@@ -356,7 +357,7 @@ EXAMPLES
356
357
  $ agentia environment create Dev --json
357
358
  ```
358
359
 
359
- _See code: [src/commands/environment/create.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/environment/create.ts)_
360
+ _See code: [src/commands/environment/create.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/environment/create.ts)_
360
361
 
361
362
  ## `agentia environment get ID`
362
363
 
@@ -381,7 +382,7 @@ EXAMPLES
381
382
  $ agentia environment get a0SKC000000CmZ2AU --json
382
383
  ```
383
384
 
384
- _See code: [src/commands/environment/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/environment/get.ts)_
385
+ _See code: [src/commands/environment/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/environment/get.ts)_
385
386
 
386
387
  ## `agentia environment list`
387
388
 
@@ -413,7 +414,7 @@ EXAMPLES
413
414
  $ agentia environment list --json
414
415
  ```
415
416
 
416
- _See code: [src/commands/environment/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/environment/list.ts)_
417
+ _See code: [src/commands/environment/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/environment/list.ts)_
417
418
 
418
419
  ## `agentia environment update ID`
419
420
 
@@ -459,7 +460,7 @@ EXAMPLES
459
460
  $ agentia environment update a0SKC000000CmZ2AU --name UAT --json
460
461
  ```
461
462
 
462
- _See code: [src/commands/environment/update.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/environment/update.ts)_
463
+ _See code: [src/commands/environment/update.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/environment/update.ts)_
463
464
 
464
465
  ## `agentia help [COMMAND]`
465
466
 
@@ -508,7 +509,7 @@ EXAMPLES
508
509
  $ agentia job get <job-id> --user-id <id> --organization-id <id> --json
509
510
  ```
510
511
 
511
- _See code: [src/commands/job/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/job/get.ts)_
512
+ _See code: [src/commands/job/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/job/get.ts)_
512
513
 
513
514
  ## `agentia job kill ID`
514
515
 
@@ -537,7 +538,7 @@ EXAMPLES
537
538
  $ agentia job kill <job-id> --user-id <id> --organization-id <id> --json
538
539
  ```
539
540
 
540
- _See code: [src/commands/job/kill.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/job/kill.ts)_
541
+ _See code: [src/commands/job/kill.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/job/kill.ts)_
541
542
 
542
543
  ## `agentia job list`
543
544
 
@@ -575,7 +576,7 @@ EXAMPLES
575
576
  $ agentia job list --user-id <id> --organization-id <id> --json
576
577
  ```
577
578
 
578
- _See code: [src/commands/job/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/job/list.ts)_
579
+ _See code: [src/commands/job/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/job/list.ts)_
579
580
 
580
581
  ## `agentia job pause ID`
581
582
 
@@ -604,7 +605,7 @@ EXAMPLES
604
605
  $ agentia job pause <job-id> --user-id <id> --organization-id <id> --json
605
606
  ```
606
607
 
607
- _See code: [src/commands/job/pause.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/job/pause.ts)_
608
+ _See code: [src/commands/job/pause.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/job/pause.ts)_
608
609
 
609
610
  ## `agentia job resume ID`
610
611
 
@@ -633,7 +634,7 @@ EXAMPLES
633
634
  $ agentia job resume <job-id> --user-id <id> --organization-id <id> --json
634
635
  ```
635
636
 
636
- _See code: [src/commands/job/resume.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/job/resume.ts)_
637
+ _See code: [src/commands/job/resume.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/job/resume.ts)_
637
638
 
638
639
  ## `agentia job run ID`
639
640
 
@@ -663,7 +664,7 @@ EXAMPLES
663
664
  $ agentia job run <job-id> --user-id <id> --organization-id <id> --restart --json
664
665
  ```
665
666
 
666
- _See code: [src/commands/job/run.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/job/run.ts)_
667
+ _See code: [src/commands/job/run.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/job/run.ts)_
667
668
 
668
669
  ## `agentia mcp start`
669
670
 
@@ -682,7 +683,7 @@ EXAMPLES
682
683
  $ agentia mcp start # long-running stdio MCP server for Cursor and other clients
683
684
  ```
684
685
 
685
- _See code: [src/commands/mcp/start.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/mcp/start.ts)_
686
+ _See code: [src/commands/mcp/start.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/mcp/start.ts)_
686
687
 
687
688
  ## `agentia metadata content compare`
688
689
 
@@ -725,7 +726,7 @@ EXAMPLES
725
726
  $ agentia metadata content compare --metadata-type ApexClass --api-name MyClass --json
726
727
  ```
727
728
 
728
- _See code: [src/commands/metadata/content/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/content/compare.ts)_
729
+ _See code: [src/commands/metadata/content/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/content/compare.ts)_
729
730
 
730
731
  ## `agentia metadata content get`
731
732
 
@@ -766,7 +767,7 @@ EXAMPLES
766
767
  $ agentia metadata content get --file requests.json --json
767
768
  ```
768
769
 
769
- _See code: [src/commands/metadata/content/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/content/get.ts)_
770
+ _See code: [src/commands/metadata/content/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/content/get.ts)_
770
771
 
771
772
  ## `agentia metadata dependency list`
772
773
 
@@ -814,7 +815,7 @@ EXAMPLES
814
815
  $ agentia metadata dependency list --from-changes --base-ref origin/main --retrieve-mode all --pipeline-id <id> --source-org-id <id> --source-credential-id <id>
815
816
  ```
816
817
 
817
- _See code: [src/commands/metadata/dependency/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/dependency/list.ts)_
818
+ _See code: [src/commands/metadata/dependency/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/dependency/list.ts)_
818
819
 
819
820
  ## `agentia metadata index compare`
820
821
 
@@ -848,7 +849,7 @@ EXAMPLES
848
849
  $ agentia metadata index compare --comparison-mode MIX --json
849
850
  ```
850
851
 
851
- _See code: [src/commands/metadata/index/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/index/compare.ts)_
852
+ _See code: [src/commands/metadata/index/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/index/compare.ts)_
852
853
 
853
854
  ## `agentia metadata list`
854
855
 
@@ -896,7 +897,7 @@ EXAMPLES
896
897
  $ agentia metadata list --source NewAndChanged --find-managed-packages --json
897
898
  ```
898
899
 
899
- _See code: [src/commands/metadata/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/list.ts)_
900
+ _See code: [src/commands/metadata/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/list.ts)_
900
901
 
901
902
  ## `agentia metadata refresh deleted`
902
903
 
@@ -928,7 +929,7 @@ EXAMPLES
928
929
  $ agentia metadata refresh deleted --env <environment-id> --user-id <id> --organization-id <id> --module-type vlocity --json
929
930
  ```
930
931
 
931
- _See code: [src/commands/metadata/refresh/deleted.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/refresh/deleted.ts)_
932
+ _See code: [src/commands/metadata/refresh/deleted.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/refresh/deleted.ts)_
932
933
 
933
934
  ## `agentia metadata refresh run`
934
935
 
@@ -971,7 +972,7 @@ EXAMPLES
971
972
  $ agentia metadata refresh run --env <environment-id> --user-id <id> --organization-id <id> --all --json
972
973
  ```
973
974
 
974
- _See code: [src/commands/metadata/refresh/run.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/refresh/run.ts)_
975
+ _See code: [src/commands/metadata/refresh/run.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/refresh/run.ts)_
975
976
 
976
977
  ## `agentia metadata refresh status`
977
978
 
@@ -1003,7 +1004,7 @@ EXAMPLES
1003
1004
  $ agentia metadata refresh status --job-id <event-id> --user-id <id> --organization-id <id> --json
1004
1005
  ```
1005
1006
 
1006
- _See code: [src/commands/metadata/refresh/status.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/metadata/refresh/status.ts)_
1007
+ _See code: [src/commands/metadata/refresh/status.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/metadata/refresh/status.ts)_
1007
1008
 
1008
1009
  ## `agentia pipeline connection list`
1009
1010
 
@@ -1030,7 +1031,7 @@ EXAMPLES
1030
1031
  $ agentia pipeline connection list --pipeline-id <pipeline-id> --user-id <id> --organization-id <id> --json
1031
1032
  ```
1032
1033
 
1033
- _See code: [src/commands/pipeline/connection/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/pipeline/connection/list.ts)_
1034
+ _See code: [src/commands/pipeline/connection/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/pipeline/connection/list.ts)_
1034
1035
 
1035
1036
  ## `agentia pipeline get ID`
1036
1037
 
@@ -1059,7 +1060,7 @@ EXAMPLES
1059
1060
  $ agentia pipeline get <pipeline-id> --user-id <id> --organization-id <id> --json
1060
1061
  ```
1061
1062
 
1062
- _See code: [src/commands/pipeline/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/pipeline/get.ts)_
1063
+ _See code: [src/commands/pipeline/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/pipeline/get.ts)_
1063
1064
 
1064
1065
  ## `agentia pipeline list`
1065
1066
 
@@ -1085,7 +1086,7 @@ EXAMPLES
1085
1086
  $ agentia pipeline list --user-id <id> --organization-id <id> --json
1086
1087
  ```
1087
1088
 
1088
- _See code: [src/commands/pipeline/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/pipeline/list.ts)_
1089
+ _See code: [src/commands/pipeline/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/pipeline/list.ts)_
1089
1090
 
1090
1091
  ## `agentia plugins`
1091
1092
 
@@ -1412,7 +1413,7 @@ EXAMPLES
1412
1413
  $ agentia project default get --json
1413
1414
  ```
1414
1415
 
1415
- _See code: [src/commands/project/default/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/project/default/get.ts)_
1416
+ _See code: [src/commands/project/default/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/project/default/get.ts)_
1416
1417
 
1417
1418
  ## `agentia project default set`
1418
1419
 
@@ -1449,7 +1450,7 @@ EXAMPLES
1449
1450
  $ agentia project default set --project my-project --json
1450
1451
  ```
1451
1452
 
1452
- _See code: [src/commands/project/default/set.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/project/default/set.ts)_
1453
+ _See code: [src/commands/project/default/set.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/project/default/set.ts)_
1453
1454
 
1454
1455
  ## `agentia project default unset`
1455
1456
 
@@ -1486,7 +1487,7 @@ EXAMPLES
1486
1487
  $ agentia project default unset --project --json
1487
1488
  ```
1488
1489
 
1489
- _See code: [src/commands/project/default/unset.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/project/default/unset.ts)_
1490
+ _See code: [src/commands/project/default/unset.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/project/default/unset.ts)_
1490
1491
 
1491
1492
  ## `agentia project get ID`
1492
1493
 
@@ -1511,7 +1512,7 @@ EXAMPLES
1511
1512
  $ agentia project get <project-id> --json
1512
1513
  ```
1513
1514
 
1514
- _See code: [src/commands/project/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/project/get.ts)_
1515
+ _See code: [src/commands/project/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/project/get.ts)_
1515
1516
 
1516
1517
  ## `agentia project list`
1517
1518
 
@@ -1541,7 +1542,7 @@ EXAMPLES
1541
1542
  $ agentia project list --mine --json
1542
1543
  ```
1543
1544
 
1544
- _See code: [src/commands/project/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/project/list.ts)_
1545
+ _See code: [src/commands/project/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/project/list.ts)_
1545
1546
 
1546
1547
  ## `agentia promotion conflict get ID`
1547
1548
 
@@ -1572,7 +1573,7 @@ EXAMPLES
1572
1573
  $ agentia promotion conflict get <conflict-id> -p <promotion-id> --json
1573
1574
  ```
1574
1575
 
1575
- _See code: [src/commands/promotion/conflict/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/promotion/conflict/get.ts)_
1576
+ _See code: [src/commands/promotion/conflict/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/promotion/conflict/get.ts)_
1576
1577
 
1577
1578
  ## `agentia promotion conflict list`
1578
1579
 
@@ -1597,7 +1598,7 @@ EXAMPLES
1597
1598
  $ agentia promotion conflict list -p <promotion-id> --json
1598
1599
  ```
1599
1600
 
1600
- _See code: [src/commands/promotion/conflict/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/promotion/conflict/list.ts)_
1601
+ _See code: [src/commands/promotion/conflict/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/promotion/conflict/list.ts)_
1601
1602
 
1602
1603
  ## `agentia promotion conflict resolve ID`
1603
1604
 
@@ -1630,7 +1631,7 @@ EXAMPLES
1630
1631
  $ agentia promotion conflict resolve <conflict-id> -p <promotion-id> --mode auto --json
1631
1632
  ```
1632
1633
 
1633
- _See code: [src/commands/promotion/conflict/resolve.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/promotion/conflict/resolve.ts)_
1634
+ _See code: [src/commands/promotion/conflict/resolve.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/promotion/conflict/resolve.ts)_
1634
1635
 
1635
1636
  ## `agentia promotion conflict unresolve ID`
1636
1637
 
@@ -1658,7 +1659,7 @@ EXAMPLES
1658
1659
  $ agentia promotion conflict unresolve <conflict-id> -p <promotion-id> --json
1659
1660
  ```
1660
1661
 
1661
- _See code: [src/commands/promotion/conflict/unresolve.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/promotion/conflict/unresolve.ts)_
1662
+ _See code: [src/commands/promotion/conflict/unresolve.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/promotion/conflict/unresolve.ts)_
1662
1663
 
1663
1664
  ## `agentia promotion get ID`
1664
1665
 
@@ -1683,7 +1684,7 @@ EXAMPLES
1683
1684
  $ agentia promotion get <promotion-id> --json
1684
1685
  ```
1685
1686
 
1686
- _See code: [src/commands/promotion/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/promotion/get.ts)_
1687
+ _See code: [src/commands/promotion/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/promotion/get.ts)_
1687
1688
 
1688
1689
  ## `agentia promotion list`
1689
1690
 
@@ -1726,7 +1727,7 @@ EXAMPLES
1726
1727
  $ agentia promotion list --json
1727
1728
  ```
1728
1729
 
1729
- _See code: [src/commands/promotion/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/promotion/list.ts)_
1730
+ _See code: [src/commands/promotion/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/promotion/list.ts)_
1730
1731
 
1731
1732
  ## `agentia user get`
1732
1733
 
@@ -1755,7 +1756,7 @@ EXAMPLES
1755
1756
  $ agentia user get --json
1756
1757
  ```
1757
1758
 
1758
- _See code: [src/commands/user/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/user/get.ts)_
1759
+ _See code: [src/commands/user/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/user/get.ts)_
1759
1760
 
1760
1761
  ## `agentia work create`
1761
1762
 
@@ -1810,7 +1811,7 @@ EXAMPLES
1810
1811
  $ agentia work create --title "My story" --json
1811
1812
  ```
1812
1813
 
1813
- _See code: [src/commands/work/create.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/create.ts)_
1814
+ _See code: [src/commands/work/create.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/create.ts)_
1814
1815
 
1815
1816
  ## `agentia work delete ID`
1816
1817
 
@@ -1835,7 +1836,7 @@ EXAMPLES
1835
1836
  $ agentia work delete a0SKC000000CmZ2AU --json
1836
1837
  ```
1837
1838
 
1838
- _See code: [src/commands/work/delete.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/delete.ts)_
1839
+ _See code: [src/commands/work/delete.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/delete.ts)_
1839
1840
 
1840
1841
  ## `agentia work done`
1841
1842
 
@@ -1858,7 +1859,7 @@ EXAMPLES
1858
1859
  $ agentia work done --json
1859
1860
  ```
1860
1861
 
1861
- _See code: [src/commands/work/done.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/done.ts)_
1862
+ _See code: [src/commands/work/done.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/done.ts)_
1862
1863
 
1863
1864
  ## `agentia work get [ID]`
1864
1865
 
@@ -1885,7 +1886,7 @@ EXAMPLES
1885
1886
  $ agentia work get a0SKC000000CmZ2AU --json
1886
1887
  ```
1887
1888
 
1888
- _See code: [src/commands/work/get.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/get.ts)_
1889
+ _See code: [src/commands/work/get.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/get.ts)_
1889
1890
 
1890
1891
  ## `agentia work list`
1891
1892
 
@@ -1928,7 +1929,7 @@ EXAMPLES
1928
1929
  $ agentia work list --json
1929
1930
  ```
1930
1931
 
1931
- _See code: [src/commands/work/list.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/list.ts)_
1932
+ _See code: [src/commands/work/list.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/list.ts)_
1932
1933
 
1933
1934
  ## `agentia work push`
1934
1935
 
@@ -1951,7 +1952,7 @@ EXAMPLES
1951
1952
  $ agentia work push --json
1952
1953
  ```
1953
1954
 
1954
- _See code: [src/commands/work/push.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/push.ts)_
1955
+ _See code: [src/commands/work/push.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/push.ts)_
1955
1956
 
1956
1957
  ## `agentia work set ID`
1957
1958
 
@@ -1983,7 +1984,35 @@ EXAMPLES
1983
1984
  $ agentia work set US-0001 --base-branch develop
1984
1985
  ```
1985
1986
 
1986
- _See code: [src/commands/work/set.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/set.ts)_
1987
+ _See code: [src/commands/work/set.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/set.ts)_
1988
+
1989
+ ## `agentia work status [ID]`
1990
+
1991
+ Get status for a work item, including related job executions. Uses the given user story ID/name, or the last work item from `agentia work set`.
1992
+
1993
+ ```
1994
+ USAGE
1995
+ $ agentia work status [ID] [--json]
1996
+
1997
+ ARGUMENTS
1998
+ [ID] User story ID or name (defaults to the last work item from `work set`)
1999
+
2000
+ GLOBAL FLAGS
2001
+ --json Format output as json.
2002
+
2003
+ DESCRIPTION
2004
+ Get status for a work item, including related job executions. Uses the given user story ID/name, or the last work item
2005
+ from `agentia work set`.
2006
+
2007
+ EXAMPLES
2008
+ $ agentia work status
2009
+
2010
+ $ agentia work status US-0001
2011
+
2012
+ $ agentia work status a0SKC000000CmZ2AU --json
2013
+ ```
2014
+
2015
+ _See code: [src/commands/work/status.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/status.ts)_
1987
2016
 
1988
2017
  ## `agentia work submit`
1989
2018
 
@@ -2006,7 +2035,7 @@ EXAMPLES
2006
2035
  $ agentia work submit --json
2007
2036
  ```
2008
2037
 
2009
- _See code: [src/commands/work/submit.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/submit.ts)_
2038
+ _See code: [src/commands/work/submit.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/submit.ts)_
2010
2039
 
2011
2040
  ## `agentia work update [ID]`
2012
2041
 
@@ -2066,5 +2095,5 @@ EXAMPLES
2066
2095
  $ agentia work update a0SKC000000CmZ2AU --status "In Progress" --json
2067
2096
  ```
2068
2097
 
2069
- _See code: [src/commands/work/update.ts](https://github.com/Copado/agentia-cli/blob/v0.20.0-alpha.0/src/commands/work/update.ts)_
2098
+ _See code: [src/commands/work/update.ts](https://github.com/Copado/agentia-cli/blob/v0.21.0-alpha.0/src/commands/work/update.ts)_
2070
2099
  <!-- commandsstop -->
@@ -0,0 +1,10 @@
1
+ import { AgentiaCommand } from '../../lib/agentia-command.js';
2
+ import { type HeadlessWorkStatusResult } from '../../lib/work-types.js';
3
+ export default class WorkStatus extends AgentiaCommand {
4
+ static args: {
5
+ id: import("@oclif/core/interfaces").Arg<string | undefined, Record<string, unknown>>;
6
+ };
7
+ static description: string;
8
+ static examples: string[];
9
+ run(): Promise<HeadlessWorkStatusResult>;
10
+ }
@@ -0,0 +1,44 @@
1
+ import { Args } from '@oclif/core';
2
+ import { AgentiaCommand } from '../../lib/agentia-command.js';
3
+ import { CicdGateway } from '../../lib/cicd-gateway.js';
4
+ import { readLastWorkItem } from '../../lib/defaults-store.js';
5
+ import { formatWorkStatus, workStatusEndpoint, } from '../../lib/work-types.js';
6
+ export default class WorkStatus extends AgentiaCommand {
7
+ static args = {
8
+ id: Args.string({
9
+ description: 'User story ID or name (defaults to the last work item from `work set`)',
10
+ required: false,
11
+ }),
12
+ };
13
+ static description = [
14
+ 'Get status for a work item, including related job executions.',
15
+ 'Uses the given user story ID/name, or the last work item from `agentia work set`.',
16
+ ].join(' ');
17
+ static examples = [
18
+ '<%= config.bin %> <%= command.id %>',
19
+ '<%= config.bin %> <%= command.id %> US-0001',
20
+ '<%= config.bin %> <%= command.id %> a0SKC000000CmZ2AU --json',
21
+ ];
22
+ async run() {
23
+ const { args } = await this.parse(WorkStatus);
24
+ const workItem = args.id?.trim() || (await readLastWorkItem());
25
+ if (workItem === undefined || workItem.length === 0) {
26
+ this.error('No work item specified and no last work item recorded.', {
27
+ exit: 1,
28
+ suggestions: [
29
+ `${this.config.bin} work status <id-or-name>`,
30
+ `${this.config.bin} work set <id-or-name>`,
31
+ ],
32
+ });
33
+ }
34
+ const result = await this.withSpinner(`Fetching status for ${workItem}`, () => CicdGateway.call({
35
+ endpoint: workStatusEndpoint(workItem),
36
+ method: 'GET',
37
+ }));
38
+ this.display(() => {
39
+ this.log(formatWorkStatus(result));
40
+ });
41
+ return result;
42
+ }
43
+ }
44
+ //# sourceMappingURL=status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.js","sourceRoot":"","sources":["../../../src/commands/work/status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,aAAa,CAAA;AAEhC,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAA;AACrD,OAAO,EAAC,gBAAgB,EAAC,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EACL,gBAAgB,EAEhB,kBAAkB,GACnB,MAAM,yBAAyB,CAAA;AAEhC,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,cAAc;IACpD,MAAM,CAAU,IAAI,GAAG;QACrB,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC;YACd,WAAW,EAAE,wEAAwE;YACrF,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH,CAAA;IACD,MAAM,CAAU,WAAW,GAAG;QAC5B,+DAA+D;QAC/D,mFAAmF;KACpF,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACX,MAAM,CAAU,QAAQ,GAAG;QACzB,qCAAqC;QACrC,6CAA6C;QAC7C,8DAA8D;KAC/D,CAAA;IAEM,KAAK,CAAC,GAAG;QACd,MAAM,EAAC,IAAI,EAAC,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;QAE3C,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,gBAAgB,EAAE,CAAC,CAAA;QAC9D,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACpD,IAAI,CAAC,KAAK,CAAC,wDAAwD,EAAE;gBACnE,IAAI,EAAE,CAAC;gBACP,WAAW,EAAE;oBACX,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,2BAA2B;oBAC7C,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,wBAAwB;iBAC3C;aACF,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,uBAAuB,QAAQ,EAAE,EAAE,GAAG,EAAE,CAC5E,WAAW,CAAC,IAAI,CAA2B;YACzC,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,CAAC;YACtC,MAAM,EAAE,KAAK;SACd,CAAC,CACH,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YAChB,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAA;QACpC,CAAC,CAAC,CAAA;QAEF,OAAO,MAAM,CAAA;IACf,CAAC"}
@@ -51,22 +51,26 @@ export type CicdGatewayErrorRequest = {
51
51
  export declare class CicdGatewayError extends Error {
52
52
  readonly categories: string[];
53
53
  readonly code?: string;
54
+ readonly jobId?: string;
54
55
  readonly requestMethod?: string;
55
56
  readonly requestUrl?: string;
57
+ readonly retryAfterSeconds?: number;
56
58
  readonly statusCode?: number;
57
59
  constructor(message: string, options?: {
58
60
  categories?: string[];
59
61
  code?: string;
62
+ jobId?: string;
60
63
  request?: CicdGatewayErrorRequest;
64
+ retryAfterSeconds?: number;
61
65
  statusCode?: number;
62
66
  });
63
67
  }
64
68
  export declare function gatewayUserAgent(): string;
65
69
  export declare function createTransactionId(): string;
66
70
  export declare function normalizeCicdBaseUrl(value: string): string;
67
- export declare function sanitizeCicdErrorMessage(message: string): string;
68
71
  export declare function maskUrlSecrets(url: string | URL): string;
69
- export declare function formatCicdGatewayError(status: number, raw: string, request?: CicdGatewayErrorRequest): Error;
72
+ export declare function parseRetryAfterHeader(value?: number | string | string[]): number | undefined;
73
+ export declare function formatCicdGatewayError(status: number, raw: string, request?: CicdGatewayErrorRequest, retryAfterSeconds?: number): Error;
70
74
  export declare function cicdApiUrl(serverUrl: string, apiKey: string): URL;
71
75
  export declare function maskedCicdApiUrl(serverUrl: string): string;
72
76
  export declare function discoverCicdBaseUrl(apiKey: string): Promise<string>;