current-cli 0.1.8__tar.gz → 0.1.10__tar.gz
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.
- {current_cli-0.1.8 → current_cli-0.1.10}/PKG-INFO +1 -1
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/schema.yml +67 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/llms.txt +13 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/pyproject.toml +1 -1
- {current_cli-0.1.8 → current_cli-0.1.10}/scripts/bump_version.py +4 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/tests/test_bump_version.py +16 -2
- {current_cli-0.1.8 → current_cli-0.1.10}/.gitignore +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/README.md +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/__init__.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/build.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/config.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/docs.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/http.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/main.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/current_cli/schema.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/tests/__init__.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/tests/conftest.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/tests/test_auth.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/tests/test_command_tree.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/tests/test_docs.py +0 -0
- {current_cli-0.1.8 → current_cli-0.1.10}/tests/test_requests.py +0 -0
|
@@ -1525,6 +1525,11 @@ paths:
|
|
|
1525
1525
|
transitions inline. POST creates a run of a WorkflowDefinition and
|
|
1526
1526
|
dispatches it (or queues it behind the per-project write queue).
|
|
1527
1527
|
parameters:
|
|
1528
|
+
- in: query
|
|
1529
|
+
name: archived
|
|
1530
|
+
schema:
|
|
1531
|
+
type: boolean
|
|
1532
|
+
description: Filter by archived state. Defaults to false (hides archived runs).
|
|
1528
1533
|
- in: query
|
|
1529
1534
|
name: definition
|
|
1530
1535
|
schema:
|
|
@@ -1613,6 +1618,52 @@ paths:
|
|
|
1613
1618
|
schema:
|
|
1614
1619
|
$ref: '#/components/schemas/WorkflowRun'
|
|
1615
1620
|
description: ''
|
|
1621
|
+
/api/workflows/runs/{id}/archive/:
|
|
1622
|
+
post:
|
|
1623
|
+
operationId: workflows_runs_archive_create
|
|
1624
|
+
description: Hide the run from the default Actions list.
|
|
1625
|
+
parameters:
|
|
1626
|
+
- in: path
|
|
1627
|
+
name: id
|
|
1628
|
+
schema:
|
|
1629
|
+
type: string
|
|
1630
|
+
format: uuid
|
|
1631
|
+
description: A UUID string identifying this workflow run.
|
|
1632
|
+
required: true
|
|
1633
|
+
tags:
|
|
1634
|
+
- workflows
|
|
1635
|
+
security:
|
|
1636
|
+
- tokenAuth: []
|
|
1637
|
+
responses:
|
|
1638
|
+
'200':
|
|
1639
|
+
content:
|
|
1640
|
+
application/json:
|
|
1641
|
+
schema:
|
|
1642
|
+
$ref: '#/components/schemas/WorkflowRun'
|
|
1643
|
+
description: ''
|
|
1644
|
+
/api/workflows/runs/{id}/unarchive/:
|
|
1645
|
+
post:
|
|
1646
|
+
operationId: workflows_runs_unarchive_create
|
|
1647
|
+
description: Restore an archived run to the default Actions list.
|
|
1648
|
+
parameters:
|
|
1649
|
+
- in: path
|
|
1650
|
+
name: id
|
|
1651
|
+
schema:
|
|
1652
|
+
type: string
|
|
1653
|
+
format: uuid
|
|
1654
|
+
description: A UUID string identifying this workflow run.
|
|
1655
|
+
required: true
|
|
1656
|
+
tags:
|
|
1657
|
+
- workflows
|
|
1658
|
+
security:
|
|
1659
|
+
- tokenAuth: []
|
|
1660
|
+
responses:
|
|
1661
|
+
'200':
|
|
1662
|
+
content:
|
|
1663
|
+
application/json:
|
|
1664
|
+
schema:
|
|
1665
|
+
$ref: '#/components/schemas/WorkflowRun'
|
|
1666
|
+
description: ''
|
|
1616
1667
|
/api/workflows/runs/{run_id}/definition/:
|
|
1617
1668
|
get:
|
|
1618
1669
|
operationId: workflows_runs_definition_retrieve
|
|
@@ -3022,6 +3073,8 @@ components:
|
|
|
3022
3073
|
trigger:
|
|
3023
3074
|
$ref: '#/components/schemas/TriggerEnum'
|
|
3024
3075
|
trigger_config: {}
|
|
3076
|
+
match_description:
|
|
3077
|
+
type: string
|
|
3025
3078
|
approval_config: {}
|
|
3026
3079
|
definition:
|
|
3027
3080
|
type: string
|
|
@@ -3776,6 +3829,8 @@ components:
|
|
|
3776
3829
|
trigger:
|
|
3777
3830
|
$ref: '#/components/schemas/TriggerEnum'
|
|
3778
3831
|
trigger_config: {}
|
|
3832
|
+
match_description:
|
|
3833
|
+
type: string
|
|
3779
3834
|
approval_config: {}
|
|
3780
3835
|
definition:
|
|
3781
3836
|
type: string
|
|
@@ -3859,6 +3914,8 @@ components:
|
|
|
3859
3914
|
trigger:
|
|
3860
3915
|
$ref: '#/components/schemas/TriggerEnum'
|
|
3861
3916
|
trigger_config: {}
|
|
3917
|
+
match_description:
|
|
3918
|
+
type: string
|
|
3862
3919
|
approval_config: {}
|
|
3863
3920
|
definition:
|
|
3864
3921
|
type: string
|
|
@@ -3920,12 +3977,22 @@ components:
|
|
|
3920
3977
|
error:
|
|
3921
3978
|
type: string
|
|
3922
3979
|
readOnly: true
|
|
3980
|
+
archived:
|
|
3981
|
+
type: boolean
|
|
3982
|
+
readOnly: true
|
|
3983
|
+
archived_at:
|
|
3984
|
+
type: string
|
|
3985
|
+
format: date-time
|
|
3986
|
+
readOnly: true
|
|
3987
|
+
nullable: true
|
|
3923
3988
|
transitions:
|
|
3924
3989
|
type: array
|
|
3925
3990
|
items:
|
|
3926
3991
|
$ref: '#/components/schemas/StepTransition'
|
|
3927
3992
|
readOnly: true
|
|
3928
3993
|
required:
|
|
3994
|
+
- archived
|
|
3995
|
+
- archived_at
|
|
3929
3996
|
- definition
|
|
3930
3997
|
- dispatched_at
|
|
3931
3998
|
- error
|
|
@@ -558,6 +558,12 @@ Workflows across the caller's workspaces. Any member can create and edit.
|
|
|
558
558
|
|
|
559
559
|
GET /api/workflows/workflows/{id}/
|
|
560
560
|
|
|
561
|
+
### current workflows runs archive create <id>
|
|
562
|
+
|
|
563
|
+
Hide the run from the default Actions list.
|
|
564
|
+
|
|
565
|
+
POST /api/workflows/runs/{id}/archive/
|
|
566
|
+
|
|
561
567
|
### current workflows runs create
|
|
562
568
|
|
|
563
569
|
Run history for workflows in the caller's workspaces, with step
|
|
@@ -586,6 +592,7 @@ dispatches it (or queues it behind the per-project write queue).
|
|
|
586
592
|
GET /api/workflows/runs/
|
|
587
593
|
|
|
588
594
|
Options:
|
|
595
|
+
- `--archived` - Filter by archived state. Defaults to false (hides archived runs).
|
|
589
596
|
- `--definition` - Filter by definition UUID
|
|
590
597
|
- `--project` - Filter by project UUID
|
|
591
598
|
- `--workflow` - Filter by workflow UUID
|
|
@@ -627,6 +634,12 @@ POST /api/workflows/runs/{run_id}/transitions/
|
|
|
627
634
|
Options:
|
|
628
635
|
- `--data` (required) - Request body as JSON: inline, @file.json, or - for stdin.
|
|
629
636
|
|
|
637
|
+
### current workflows runs unarchive create <id>
|
|
638
|
+
|
|
639
|
+
Restore an archived run to the default Actions list.
|
|
640
|
+
|
|
641
|
+
POST /api/workflows/runs/{id}/unarchive/
|
|
642
|
+
|
|
630
643
|
### current workflows update <id>
|
|
631
644
|
|
|
632
645
|
Workflows across the caller's workspaces. Any member can create and edit.
|
|
@@ -22,6 +22,10 @@ def bump(path: Path, from_version: str | None = None) -> str:
|
|
|
22
22
|
text = path.read_text()
|
|
23
23
|
new_text = text.replace(f'version = "{current}"', f'version = "{new_version}"', 1)
|
|
24
24
|
if new_text == text:
|
|
25
|
+
# The file already holds the bumped version (an auto-bump commit
|
|
26
|
+
# landed after the base release): a no-op, not an error.
|
|
27
|
+
if current == new_version:
|
|
28
|
+
return new_version
|
|
25
29
|
raise SystemExit(f'could not find version = "{current}" in {path}')
|
|
26
30
|
path.write_text(new_text)
|
|
27
31
|
return new_version
|
|
@@ -34,9 +34,23 @@ def test_bump_patch_of_file_version(tmp_path):
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
def test_bump_patch_of_pypi_version(tmp_path):
|
|
37
|
-
"""CI passes the latest PyPI version; the file version is replaced with its
|
|
37
|
+
"""CI passes the latest PyPI version; the file version is replaced with its
|
|
38
|
+
successor. Synthetic content: the committed version moves with every
|
|
39
|
+
auto-bump, so copying the real file would tie the test to a release."""
|
|
38
40
|
target = tmp_path / "pyproject.toml"
|
|
39
|
-
target.write_text(
|
|
41
|
+
target.write_text('[project]\nname = "current-cli"\nversion = "0.1.6"\n')
|
|
42
|
+
|
|
43
|
+
printed = run_script(str(target), "0.1.7")
|
|
44
|
+
|
|
45
|
+
assert printed == "0.1.8"
|
|
46
|
+
assert tomllib.loads(target.read_text())["project"]["version"] == "0.1.8"
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def test_bump_is_noop_when_file_already_holds_target(tmp_path):
|
|
50
|
+
"""An auto-bump commit can land the target version before the publish
|
|
51
|
+
run; bumping to the version already in the file is a no-op, not an error."""
|
|
52
|
+
target = tmp_path / "pyproject.toml"
|
|
53
|
+
target.write_text('[project]\nname = "current-cli"\nversion = "0.1.8"\n')
|
|
40
54
|
|
|
41
55
|
printed = run_script(str(target), "0.1.7")
|
|
42
56
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|