charisma-cli 0.5.0__tar.gz → 0.5.1__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.
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/PKG-INFO +1 -1
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/pyproject.toml +1 -1
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/__init__.py +1 -1
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/read_client.py +7 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_read_client_launches.py +9 -3
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/.gitignore +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/README.md +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/config.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/launch_url.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/main.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/models.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/parser.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/read_models.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/retry.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/subprocess_mgr.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/uploader.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/src/charisma_cli/watcher.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/__init__.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/conftest.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_bamboo_labels.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_cli.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_config.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_integration.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_launch_url.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_models.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_open_launch_payload.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_parser.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_read_client.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_read_client_attachments.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_read_client_integration.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_read_client_pagination.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_read_client_results.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_read_client_single_result.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_retry.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_silent_mode.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_subprocess_mgr.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_uploader.py +0 -0
- {charisma_cli-0.5.0 → charisma_cli-0.5.1}/tests/test_watcher.py +0 -0
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
# is generated from pyproject.toml [project].version, so keeping this literal
|
|
5
5
|
# equal to pyproject guarantees `--version` reports the published version. The
|
|
6
6
|
# prepare-commit step owns the PATCH bump — do not hand-bump here.
|
|
7
|
-
__version__ = "0.5.
|
|
7
|
+
__version__ = "0.5.1"
|
|
@@ -296,6 +296,7 @@ class CharismaReadClient:
|
|
|
296
296
|
build_id: str | None = None,
|
|
297
297
|
commit_sha: str | None = None,
|
|
298
298
|
source_url: str | None = None,
|
|
299
|
+
component_id: str | None = None,
|
|
299
300
|
started_at_from: str | None = None,
|
|
300
301
|
started_at_to: str | None = None,
|
|
301
302
|
) -> PaginatedLaunchList:
|
|
@@ -317,6 +318,11 @@ class CharismaReadClient:
|
|
|
317
318
|
build_id: Optional build id filter (wire name ``buildId``).
|
|
318
319
|
commit_sha: Optional commit SHA filter (wire name ``commitSha``).
|
|
319
320
|
source_url: Optional source URL filter (wire name ``sourceUrl``).
|
|
321
|
+
component_id: Optional component UUID filter (wire name ``componentId``).
|
|
322
|
+
Matches a launch by its primary component, its component set, or a
|
|
323
|
+
build-plan-linked component. The sentinel ``"_unassigned"`` selects
|
|
324
|
+
launches with no component. A non-UUID value (other than the
|
|
325
|
+
sentinel) makes the server reject the request with HTTP 400.
|
|
320
326
|
started_at_from: Optional lower bound on ``startedAt`` (wire name ``startedAtFrom``).
|
|
321
327
|
started_at_to: Optional upper bound on ``startedAt`` (wire name ``startedAtTo``).
|
|
322
328
|
|
|
@@ -336,6 +342,7 @@ class CharismaReadClient:
|
|
|
336
342
|
"buildId": build_id,
|
|
337
343
|
"commitSha": commit_sha,
|
|
338
344
|
"sourceUrl": source_url,
|
|
345
|
+
"componentId": component_id,
|
|
339
346
|
"startedAtFrom": started_at_from,
|
|
340
347
|
"startedAtTo": started_at_to,
|
|
341
348
|
}
|
|
@@ -5,8 +5,9 @@ contract (per design.md "Client" + "Path & transport", requirements.md FR-2, and
|
|
|
5
5
|
contract in `.agents/tasks/charisma-cli-read-endpoint-contracts.md`):
|
|
6
6
|
|
|
7
7
|
- ``list_launches`` → ``GET /api/v1/projects/{pid}/launches`` with camelCase query params. Forwards
|
|
8
|
-
ALL
|
|
9
|
-
buildId, commitSha, sourceUrl, startedAtFrom, startedAtTo``) plus ``offset``/``limit``.
|
|
8
|
+
ALL exact-match filters with their camelCase wire names (``name, status, branch, environment,
|
|
9
|
+
buildId, commitSha, sourceUrl, componentId, startedAtFrom, startedAtTo``) plus ``offset``/``limit``.
|
|
10
|
+
Exposes
|
|
10
11
|
NO ``sortBy``/``sortOrder`` param — the server sort is FIXED newest-first. ``None``-valued filters
|
|
11
12
|
are omitted from the query (not sent as empty). Returns the ``{items, total}`` envelope verbatim
|
|
12
13
|
(camelCase ``BaseLaunch`` items).
|
|
@@ -230,7 +231,7 @@ class TestListLaunchesFiltersForwarded:
|
|
|
230
231
|
"""ALL 9 exact-match filters are forwarded with the correct camelCase wire names."""
|
|
231
232
|
|
|
232
233
|
@respx.mock
|
|
233
|
-
def
|
|
234
|
+
def test_all_filters_forwarded_with_camelcase_wire_names(self) -> None:
|
|
234
235
|
"""Every filter maps to its camelCase query key with the provided value."""
|
|
235
236
|
route = respx.get(LAUNCHES_URL).mock(
|
|
236
237
|
return_value=httpx.Response(200, json=LAUNCHES_ENVELOPE)
|
|
@@ -244,6 +245,7 @@ class TestListLaunchesFiltersForwarded:
|
|
|
244
245
|
build_id="build-4823",
|
|
245
246
|
commit_sha="a1b2c3d4",
|
|
246
247
|
source_url="https://ci.example.com/build/4823",
|
|
248
|
+
component_id="22222222-2222-2222-2222-222222222222",
|
|
247
249
|
started_at_from="2026-06-01T00:00:00+00:00",
|
|
248
250
|
started_at_to="2026-06-30T23:59:59+00:00",
|
|
249
251
|
)
|
|
@@ -255,6 +257,7 @@ class TestListLaunchesFiltersForwarded:
|
|
|
255
257
|
assert params["buildId"] == "build-4823"
|
|
256
258
|
assert params["commitSha"] == "a1b2c3d4"
|
|
257
259
|
assert params["sourceUrl"] == "https://ci.example.com/build/4823"
|
|
260
|
+
assert params["componentId"] == "22222222-2222-2222-2222-222222222222"
|
|
258
261
|
assert params["startedAtFrom"] == "2026-06-01T00:00:00+00:00"
|
|
259
262
|
assert params["startedAtTo"] == "2026-06-30T23:59:59+00:00"
|
|
260
263
|
|
|
@@ -269,6 +272,7 @@ class TestListLaunchesFiltersForwarded:
|
|
|
269
272
|
build_id="build-4823",
|
|
270
273
|
commit_sha="a1b2c3d4",
|
|
271
274
|
source_url="https://ci.example.com/build/4823",
|
|
275
|
+
component_id="22222222-2222-2222-2222-222222222222",
|
|
272
276
|
started_at_from="2026-06-01T00:00:00+00:00",
|
|
273
277
|
started_at_to="2026-06-30T23:59:59+00:00",
|
|
274
278
|
)
|
|
@@ -277,6 +281,7 @@ class TestListLaunchesFiltersForwarded:
|
|
|
277
281
|
"build_id",
|
|
278
282
|
"commit_sha",
|
|
279
283
|
"source_url",
|
|
284
|
+
"component_id",
|
|
280
285
|
"started_at_from",
|
|
281
286
|
"started_at_to",
|
|
282
287
|
):
|
|
@@ -299,6 +304,7 @@ class TestListLaunchesFiltersForwarded:
|
|
|
299
304
|
"buildId",
|
|
300
305
|
"commitSha",
|
|
301
306
|
"sourceUrl",
|
|
307
|
+
"componentId",
|
|
302
308
|
"startedAtFrom",
|
|
303
309
|
"startedAtTo",
|
|
304
310
|
):
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|