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/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/.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/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 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/release.sh b/release.sh index 3cc8916..c434016 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")" + 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 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"