Skip to content

Commit 936bac6

Browse files
stainless-app[bot]jromualdez-scalecursoragentmax-parke-scaleclaude
authored
chore: release main (#452)
Co-authored-by: Jerome Romualdez <jerome.romualdez@scale.com> Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Max Parke <max.parke@scale.com> Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 578df06 commit 936bac6

10 files changed

Lines changed: 90 additions & 10 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
name: Publish PyPI
55
on:
66
workflow_dispatch:
7+
inputs:
8+
package:
9+
description: Package to publish
10+
required: true
11+
default: all
12+
type: choice
13+
options:
14+
- all
15+
- agentex-client
16+
- agentex-sdk
717

818
release:
919
types: [published]
@@ -33,3 +43,5 @@ jobs:
3343
# Back-compat fallback — used by bin/publish-pypi when the
3444
# dedicated tokens above are unset.
3545
PYPI_TOKEN: ${{ secrets.AGENTEX_PYPI_TOKEN || secrets.PYPI_TOKEN }}
46+
# Manual dispatches can override tag-derived package selection.
47+
PYPI_PACKAGE: ${{ inputs.package }}

.release-please-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
".": "0.16.1",
3-
"adk": "0.15.0"
2+
".": "0.16.2",
3+
"adk": "0.16.2"
44
}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@
1212

1313
* **tracing:** emit OTel metrics for async span queue depth, batch drain, and SGP export success/failure (HTTP status labels). Disable SDK-side recording with ``AGENTEX_TRACING_METRICS=0``.
1414

15+
## 0.16.2 (2026-06-29)
16+
17+
Full Changelog: [agentex-client-v0.16.1...agentex-client-v0.16.2](https://github.com/scaleapi/scale-agentex-python/compare/agentex-client-v0.16.1...agentex-client-v0.16.2)
18+
19+
### Bug Fixes
20+
21+
* **adk:** release streaming buffer repair in sdk ([#449](https://github.com/scaleapi/scale-agentex-python/issues/449)) ([20795cb](https://github.com/scaleapi/scale-agentex-python/commit/20795cb158244767207b6d3758929014bc015bb6))
22+
1523
## 0.16.1 (2026-06-26)
1624

1725
Full Changelog: [agentex-client-v0.16.0...agentex-client-v0.16.1](https://github.com/scaleapi/scale-agentex-python/compare/agentex-client-v0.16.0...agentex-client-v0.16.1)

adk/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 0.16.2 (2026-06-29)
4+
5+
Full Changelog: [agentex-sdk-v0.15.0...agentex-sdk-v0.16.2](https://github.com/scaleapi/scale-agentex-python/compare/agentex-sdk-v0.15.0...agentex-sdk-v0.16.2)
6+
7+
### Bug Fixes
8+
9+
* **adk:** release streaming buffer repair in sdk ([#449](https://github.com/scaleapi/scale-agentex-python/issues/449)) ([20795cb](https://github.com/scaleapi/scale-agentex-python/commit/20795cb158244767207b6d3758929014bc015bb6))
10+
311
## 0.15.0 (2026-06-24)
412

513
Full Changelog: [agentex-sdk-v0.14.0...agentex-sdk-v0.15.0](https://github.com/scaleapi/scale-agentex-python/compare/agentex-sdk-v0.14.0...agentex-sdk-v0.15.0)

adk/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ The two packages contribute disjoint files to the `agentex.*` namespace — `age
3030
## Repo layout
3131

3232
This package is hand-authored and lives at `adk/` inside [scaleapi/scale-agentex-python](https://github.com/scaleapi/scale-agentex-python). Stainless codegen never touches `adk/**` — it's outside the generated surface. The sibling `agentex-client` package lives at the repo root and IS Stainless-generated.
33+
34+
The wheel source is assembled from `src/agentex/lib/**` by `adk/hatch_build.py`.

adk/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# (agentex/{__init__.py, _*.py, types/, resources/}) ships from the slim
55
# sibling package `agentex-client` which is pinned as a runtime dep.
66
name = "agentex-sdk"
7-
version = "0.15.0"
7+
version = "0.16.2"
88
description = "Agent Development Kit (ADK) overlay for the Agentex API — FastACP server, Temporal workflows, LLM provider integrations, observability"
99
license = "Apache-2.0"
1010
authors = [

bin/publish-pypi

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,54 @@
11
#!/usr/bin/env bash
22

3-
# Publish slim (root) before heavy (adk/): heavy pins slim, so a slim-first
4-
# failure aborts before shipping a heavy that needs an unreleased client.
3+
# Publish only the package requested by the component tag. Manual dispatches can
4+
# set PYPI_PACKAGE=all to publish both packages; in that case publish slim
5+
# before heavy because the heavy package depends on the slim package.
56

67
set -eux
78

89
rm -rf dist
910
# --wheel: the heavy's cross-dir force-include can't build via sdist.
1011
uv build --all-packages --wheel
1112

12-
# --check-url makes the per-component-tag double-trigger idempotent.
13-
uv publish --check-url https://pypi.org/simple/ --token="${AGENTEX_CLIENT_PYPI_TOKEN:-$PYPI_TOKEN}" dist/agentex_client-*.whl
14-
uv publish --check-url https://pypi.org/simple/ --token="${AGENTEX_PYPI_TOKEN:-$PYPI_TOKEN}" dist/agentex_sdk-*.whl
13+
publish_client() {
14+
uv publish --check-url https://pypi.org/simple/ --token="${AGENTEX_CLIENT_PYPI_TOKEN:-${PYPI_TOKEN:-}}" dist/agentex_client-*.whl
15+
}
16+
17+
publish_sdk() {
18+
uv publish --check-url https://pypi.org/simple/ --token="${AGENTEX_PYPI_TOKEN:-${PYPI_TOKEN:-}}" dist/agentex_sdk-*.whl
19+
}
20+
21+
package="${PYPI_PACKAGE:-}"
22+
23+
if [ -z "$package" ]; then
24+
tag_name="${GITHUB_REF_NAME:-}"
25+
if [ -z "$tag_name" ] && [[ "${GITHUB_REF:-}" == refs/tags/* ]]; then
26+
tag_name="${GITHUB_REF#refs/tags/}"
27+
fi
28+
29+
case "$tag_name" in
30+
agentex-client-v*) package="agentex-client" ;;
31+
agentex-sdk-v*) package="agentex-sdk" ;;
32+
*)
33+
echo "Unable to infer package from tag '$tag_name'. Set PYPI_PACKAGE to one of: all, agentex-client, agentex-sdk." >&2
34+
exit 1
35+
;;
36+
esac
37+
fi
38+
39+
case "$package" in
40+
all)
41+
publish_client
42+
publish_sdk
43+
;;
44+
agentex-client)
45+
publish_client
46+
;;
47+
agentex-sdk)
48+
publish_sdk
49+
;;
50+
*)
51+
echo "Unknown PYPI_PACKAGE '$package'. Expected one of: all, agentex-client, agentex-sdk." >&2
52+
exit 1
53+
;;
54+
esac

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# overlay (formerly `src/agentex/lib/*`) now lives in `adk/` and ships
44
# as the sibling `agentex-sdk` package — see `adk/pyproject.toml`.
55
name = "agentex-client"
6-
version = "0.16.1"
6+
version = "0.16.2"
77
description = "The official Python REST client for the Agentex API"
88
dynamic = ["readme"]
99
license = "Apache-2.0"

release-please-config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
"component": "agentex-sdk"
1111
}
1212
},
13+
"plugins": [
14+
{
15+
"type": "linked-versions",
16+
"groupName": "agentex",
17+
"components": [
18+
"agentex-client",
19+
"agentex-sdk"
20+
]
21+
}
22+
],
1323
"$schema": "https://raw.githubusercontent.com/stainless-api/release-please/main/schemas/config.json",
1424
"include-v-in-tag": true,
1525
"include-component-in-tag": true,

src/agentex/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "agentex"
4-
__version__ = "0.16.1" # x-release-please-version
4+
__version__ = "0.16.2" # x-release-please-version

0 commit comments

Comments
 (0)