From 6911af554566c7a0ca48f2830488b1f376fe7d8c Mon Sep 17 00:00:00 2001 From: sawradip Date: Wed, 19 Nov 2025 19:53:08 +0600 Subject: [PATCH 1/4] fix: update Go SDK version handling in release script and workflow - Modified the release script to correctly handle the version.go file path and update the version constant based on the operating system. - Adjusted the go-release workflow to reflect the new path for version.go, ensuring accurate version extraction. --- .github/workflows/go-release.yml | 2 +- release.sh | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/go-release.yml b/.github/workflows/go-release.yml index a9446ea..97b6f6c 100644 --- a/.github/workflows/go-release.yml +++ b/.github/workflows/go-release.yml @@ -45,7 +45,7 @@ jobs: run: | TAG_VERSION="${{ inputs.version }}" # Extract version from version.go file - PACKAGE_VERSION=$(grep -E '^\s*const\s+Version\s*=' runagent/version.go | sed -E 's/.*Version\s*=\s*"([^"]+)".*/\1/') + PACKAGE_VERSION=$(grep -E '^\s*const\s+Version\s*=' version.go | sed -E 's/.*Version\s*=\s*"([^"]+)".*/\1/') echo "Detected Go SDK version: $PACKAGE_VERSION" if [ "$PACKAGE_VERSION" != "$TAG_VERSION" ]; then echo "❌ Version mismatch! Tag: $TAG_VERSION, version.go: $PACKAGE_VERSION" diff --git a/release.sh b/release.sh index 3cc8916..5f549e0 100755 --- a/release.sh +++ b/release.sh @@ -202,21 +202,27 @@ update_rust_version() { update_go_version() { local version=$1 - local version_file="runagent-go/runagent/version.go" + local version_file="runagent-go/version.go" local go_mod_file="runagent-go/go.mod" - mkdir -p "$(dirname "$version_file")" - cat > "$version_file" << EOF + if [[ ! -f "$version_file" ]]; then + cat > "$version_file" << EOF package runagent // Version represents the current version of the RunAgent Go SDK const Version = "$version" EOF + else + if [[ "$OSTYPE" == "darwin"* ]]; then + sed -i '' "s/const Version = \".*\"/const Version = \"$version\"/" "$version_file" + else + sed -i "s/const Version = \".*\"/const Version = \"$version\"/" "$version_file" + fi + fi if [[ ! -f "$go_mod_file" ]]; then - mkdir -p "$(dirname "$go_mod_file")" cat > "$go_mod_file" << EOF -module github.com/runagent-dev/runagent/runagent-go +module github.com/runagent-dev/runagent-go go 1.20 From 0d92c130151d02ceb98ad84f2108e5649fb2ce67 Mon Sep 17 00:00:00 2001 From: sawradip Date: Wed, 19 Nov 2025 19:58:15 +0600 Subject: [PATCH 2/4] chore: clean up release scripts and workflows - Fixed indentation in the release script for better readability. - Removed unnecessary 'id-token: write' permission from create-release.yml for a cleaner workflow. - Added 'attestations: false' to python-release.yml to streamline the release process. --- .github/workflows/create-release.yml | 2 -- .github/workflows/python-release.yml | 1 + release.sh | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index ec7e2e4..de43300 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -15,7 +15,6 @@ jobs: contents: write pull-requests: read issues: read - id-token: write # Not needed for API token approach, but kept for compatibility steps: - uses: actions/checkout@v4 @@ -89,7 +88,6 @@ jobs: uses: ./.github/workflows/python-release.yml permissions: contents: read - id-token: write with: working-directory: . tag: ${{ needs.detect-release.outputs.latest_tag }} diff --git a/.github/workflows/python-release.yml b/.github/workflows/python-release.yml index 167e230..b48ce81 100644 --- a/.github/workflows/python-release.yml +++ b/.github/workflows/python-release.yml @@ -93,6 +93,7 @@ jobs: with: password: ${{ secrets.PYPI_API_TOKEN }} print-hash: true + attestations: false - name: Skip publish (already exists) if: steps.check-python.outputs.should_publish != 'true' diff --git a/release.sh b/release.sh index 5f549e0..c434016 100755 --- a/release.sh +++ b/release.sh @@ -206,7 +206,7 @@ update_go_version() { local go_mod_file="runagent-go/go.mod" if [[ ! -f "$version_file" ]]; then - cat > "$version_file" << EOF + cat > "$version_file" << EOF package runagent // Version represents the current version of the RunAgent Go SDK From 380fd8128b59f6c5bda354d522f825d6ea98147a Mon Sep 17 00:00:00 2001 From: sawradip Date: Wed, 19 Nov 2025 19:59:50 +0600 Subject: [PATCH 3/4] chore: bump version to v0.1.40 - Updated all SDK versions to 0.1.40 --- pyproject.toml | 6 +++--- runagent-go/version.go | 2 +- runagent-rust/runagent/Cargo.toml | 2 +- runagent-ts/package-lock.json | 4 ++-- runagent-ts/package.json | 2 +- runagent/__init__.py | 2 +- runagent/__version__.py | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 53de995..edc3507 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "hatchling.build" [project] name = "runagent" -version = "0.1.39" +version = "0.1.40" description = "A command-line tool and SDK for deploying, managing, and interacting with AI agents" readme = "README.md" requires-python = ">=3.9" @@ -103,7 +103,7 @@ line_length = 88 skip = ["docs"] [tool.mypy] -python_version = "0.1.39" +python_version = "0.1.40" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true @@ -159,7 +159,7 @@ fail_under = 80 [tool.ruff] line-length = 88 -target-version = "0.1.39" +target-version = "0.1.40" select = [ "E", # pycodestyle errors "W", # pycodestyle warnings diff --git a/runagent-go/version.go b/runagent-go/version.go index 864123f..74b1d12 100644 --- a/runagent-go/version.go +++ b/runagent-go/version.go @@ -1,4 +1,4 @@ package runagent // Version represents the current version of the RunAgent Go SDK -const Version = "0.1.39" +const Version = "0.1.40" diff --git a/runagent-rust/runagent/Cargo.toml b/runagent-rust/runagent/Cargo.toml index 97c0572..708daa6 100644 --- a/runagent-rust/runagent/Cargo.toml +++ b/runagent-rust/runagent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runagent" -version = "0.1.39" +version = "0.1.40" edition = "2021" description = "RunAgent SDK for Rust - Client SDK for interacting with deployed AI agents" license = "MIT" diff --git a/runagent-ts/package-lock.json b/runagent-ts/package-lock.json index ab5613c..d824f8c 100644 --- a/runagent-ts/package-lock.json +++ b/runagent-ts/package-lock.json @@ -1,12 +1,12 @@ { "name": "runagent", - "version": "0.1.39", + "version": "0.1.40", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "runagent", - "version": "0.1.39", + "version": "0.1.40", "dependencies": { "better-sqlite3": "^12.2.0" }, diff --git a/runagent-ts/package.json b/runagent-ts/package.json index b04bab3..9a371c3 100644 --- a/runagent-ts/package.json +++ b/runagent-ts/package.json @@ -1,6 +1,6 @@ { "name": "runagent", - "version": "0.1.39", + "version": "0.1.40", "type": "module", "files": [ "dist" diff --git a/runagent/__init__.py b/runagent/__init__.py index 9cc8783..182cc57 100644 --- a/runagent/__init__.py +++ b/runagent/__init__.py @@ -5,7 +5,7 @@ built with frameworks like LangGraph, LangChain, and LlamaIndex. """ -__version__ = "0.1.39" +__version__ = "0.1.40" from .client import RunAgentClient diff --git a/runagent/__version__.py b/runagent/__version__.py index 31b9658..5dc4aab 100644 --- a/runagent/__version__.py +++ b/runagent/__version__.py @@ -1 +1 @@ -__version__ = "0.1.39" +__version__ = "0.1.40" From f8ae7f82d97ae484d012fb2c8dccddc867aa8346 Mon Sep 17 00:00:00 2001 From: sawradip Date: Wed, 19 Nov 2025 19:59:50 +0600 Subject: [PATCH 4/4] docs: update changelog for v0.1.40 --- CHANGELOG.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 526f1bc..54d877e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,20 @@ # Changelog All notable changes to this project's latest version. -## [0.1.38] - 2025-11-19 +## [0.1.40] - 2025-11-19 + +### Bug Fixes + +- Update Go SDK version handling in release script and workflow ### Miscellaneous Tasks -- Bump version to v0.1.38 +- Clean up release scripts and workflows +- Bump version to v0.1.40 + +### Refactor + +- Clean up whitespace in serializer tests +- Improve release process and add Go SDK