From 464bed619007727a5f2f9aedd9abf7d5c243a362 Mon Sep 17 00:00:00 2001 From: sawradip Date: Sun, 21 Dec 2025 01:07:53 +0600 Subject: [PATCH 1/3] refactor: standardize output messages in build-windows-standalone.ps1 - Updated output messages to include standardized prefixes for better clarity and consistency. - Changed various status indicators (e.g., "Checking prerequisites", "Building for Windows") to use a uniform format. - Enhanced user feedback during the build process with clearer messaging for errors, warnings, and success states. --- build_scripts/build-windows-standalone.ps1 | 77 +++++++++++----------- 1 file changed, 39 insertions(+), 38 deletions(-) diff --git a/build_scripts/build-windows-standalone.ps1 b/build_scripts/build-windows-standalone.ps1 index 905ac7a..cf9cd6c 100644 --- a/build_scripts/build-windows-standalone.ps1 +++ b/build_scripts/build-windows-standalone.ps1 @@ -4,28 +4,28 @@ $ErrorActionPreference = "Stop" -Write-Host "๐ŸชŸ RunAgent Windows Build Script (Standalone)" -ForegroundColor Cyan +Write-Host "[WINDOWS] RunAgent Windows Build Script (Standalone)" -ForegroundColor Cyan Write-Host "==============================================" -ForegroundColor Cyan Write-Host "" # Check prerequisites -Write-Host "๐Ÿ“‹ Checking prerequisites..." -ForegroundColor White +Write-Host "[CHECK] Checking prerequisites..." -ForegroundColor White # Check Python if (-not (Get-Command python -ErrorAction SilentlyContinue)) { - Write-Host "โŒ Python 3 not found. Please install Python 3.9+" -ForegroundColor Red + Write-Host "[ERROR] Python 3 not found. Please install Python 3.9+" -ForegroundColor Red Write-Host "" Write-Host "Download from: https://www.python.org/downloads/" -ForegroundColor Yellow exit 1 } $PythonVersion = python --version -Write-Host "โœ… $PythonVersion found" -ForegroundColor Green +Write-Host "[OK] $PythonVersion found" -ForegroundColor Green # Check for Visual Studio Build Tools $VSWhere = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" if (-not (Test-Path $VSWhere)) { - Write-Host "โš ๏ธ Visual Studio Build Tools not found" -ForegroundColor Yellow + Write-Host "[WARN] Visual Studio Build Tools not found" -ForegroundColor Yellow Write-Host "" Write-Host "Please install Visual Studio Build Tools:" -ForegroundColor Yellow Write-Host "https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022" -ForegroundColor Yellow @@ -39,22 +39,22 @@ $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path $ProjectRoot = Split-Path -Parent $ScriptDir Set-Location $ProjectRoot -Write-Host "๐Ÿ“ Project root: $ProjectRoot" -ForegroundColor White +Write-Host "[DIR] Project root: $ProjectRoot" -ForegroundColor White # Check if we're in the right directory if (-not (Test-Path "pyproject.toml")) { - Write-Host "โŒ Error: pyproject.toml not found. Please run this script from the project root or build_scripts folder." -ForegroundColor Red + Write-Host "[ERROR] Error: pyproject.toml not found. Please run this script from the project root or build_scripts folder." -ForegroundColor Red exit 1 } # Setup virtual environment Write-Host "" -Write-Host "๐Ÿ“ฆ Setting up virtual environment..." -ForegroundColor White +Write-Host "[PKG] Setting up virtual environment..." -ForegroundColor White if (-not (Test-Path ".venv")) { python -m venv .venv - Write-Host "โœ… Virtual environment created" -ForegroundColor Green + Write-Host "[OK] Virtual environment created" -ForegroundColor Green } else { - Write-Host "โœ… Virtual environment already exists" -ForegroundColor Green + Write-Host "[OK] Virtual environment already exists" -ForegroundColor Green } # Activate virtual environment @@ -62,17 +62,17 @@ if (-not (Test-Path ".venv")) { # Install dependencies Write-Host "" -Write-Host "๐Ÿ“ฅ Installing dependencies..." -ForegroundColor White +Write-Host "[DOWNLOAD] Installing dependencies..." -ForegroundColor White pip install --upgrade pip --quiet pip install -e . --quiet pip install nuitka --quiet pip install ordered-set --quiet -Write-Host "โœ… Dependencies installed" -ForegroundColor Green +Write-Host "[OK] Dependencies installed" -ForegroundColor Green # Create entry point if it doesn't exist if (-not (Test-Path "runagent_entry.py")) { Write-Host "" - Write-Host "๐Ÿ“ Creating entry point file..." -ForegroundColor White + Write-Host "[FILE] Creating entry point file..." -ForegroundColor White @' #!/usr/bin/env python3 """Nuitka entry point for RunAgent CLI""" @@ -81,7 +81,7 @@ if __name__ == "__main__": from runagent.cli.main import runagent runagent() '@ | Out-File -FilePath "runagent_entry.py" -Encoding UTF8 - Write-Host "โœ… Entry point created" -ForegroundColor Green + Write-Host "[OK] Entry point created" -ForegroundColor Green } # Detect architecture @@ -94,8 +94,8 @@ if ($env:ARCH) { } Write-Host "" -Write-Host "๐Ÿ–ฅ๏ธ Building for Windows-$Arch" -ForegroundColor White -Write-Host "โณ This will take 5-10 minutes on first build..." -ForegroundColor White +Write-Host "[BUILD] Building for Windows-$Arch" -ForegroundColor White +Write-Host "[WAIT] This will take 5-10 minutes on first build..." -ForegroundColor White Write-Host "" $BuildDir = "dist\windows-$Arch" @@ -115,7 +115,7 @@ New-Item -ItemType Directory -Force -Path $BuildDir | Out-Null $FinalOutput = "runagent.exe" -Write-Host "๐Ÿš€ Building Standalone Version (Fast Startup)..." -ForegroundColor Cyan +Write-Host "[START] Building Standalone Version (Fast Startup)..." -ForegroundColor Cyan # STANDALONE NUITKA COMMAND python -m nuitka ` @@ -142,76 +142,77 @@ python -m nuitka ` runagent_entry.py Write-Host "" -Write-Host "๐Ÿงน Cleaning up build artifacts..." -ForegroundColor White +Write-Host "[CLEAN] Cleaning up build artifacts..." -ForegroundColor White Remove-Item -Recurse -Force "$BuildDir\runagent_entry.build" -ErrorAction SilentlyContinue Remove-Item -Recurse -Force "$BuildDir\runagent_entry.onefile-build" -ErrorAction SilentlyContinue -Write-Host "โœ… Cleaned up temporary files" -ForegroundColor Green +Write-Host "[OK] Cleaned up temporary files" -ForegroundColor Green Write-Host "" -Write-Host "โœ… Build complete!" -ForegroundColor Green +Write-Host "[OK] Build complete!" -ForegroundColor Green Write-Host "" # The binary is in the standalone folder $DistExecutable = "$BuildDir\runagent_entry.dist\$FinalOutput" if (Test-Path $DistExecutable) { - Write-Host "โœ… Found executable at: $DistExecutable" -ForegroundColor Green + Write-Host "[OK] Found executable at: $DistExecutable" -ForegroundColor Green # Create a wrapper batch file for easy execution $Wrapper = "$BuildDir\runagent.bat" - @" + $BatchContent = @' @echo off REM RunAgent wrapper script set SCRIPT_DIR=%~dp0 -"%SCRIPT_DIR%runagent_entry.dist\$FinalOutput" %* -"@ | Out-File -FilePath $Wrapper -Encoding ASCII +"%SCRIPT_DIR%runagent_entry.dist\runagent.exe" %* +'@ + $BatchContent | Out-File -FilePath $Wrapper -Encoding ASCII Write-Host "" - Write-Host "๐Ÿงช Testing binary..." -ForegroundColor White + Write-Host "[TEST] Testing binary..." -ForegroundColor White & $DistExecutable --version Write-Host "" - Write-Host "โœจ Success! Executable is ready" -ForegroundColor Green + Write-Host "[SUCCESS] Success! Executable is ready" -ForegroundColor Green Write-Host "" - + $FolderSize = (Get-ChildItem "$BuildDir\runagent_entry.dist" -Recurse | Measure-Object -Property Length -Sum).Sum / 1MB $BinarySize = (Get-Item $DistExecutable).Length / 1MB - - Write-Host "๐Ÿ“Š Binary information:" -ForegroundColor White + + Write-Host "[INFO] Binary information:" -ForegroundColor White Write-Host " Distributable folder: $([math]::Round($FolderSize, 2)) MB" Write-Host " Main binary: $([math]::Round($BinarySize, 2)) MB" Write-Host "" - Write-Host "๐Ÿ“ฆ Distribution structure:" -ForegroundColor White + Write-Host "[PKG] Distribution structure:" -ForegroundColor White Write-Host " $BuildDir\runagent_entry.dist\ # Standalone folder with all dependencies" Write-Host " $BuildDir\runagent.bat # Wrapper script (use this!)" Write-Host "" # Create zip for distribution - Write-Host "๐Ÿ“ฆ Creating release archive..." -ForegroundColor White + Write-Host "[PKG] Creating release archive..." -ForegroundColor White $ZipPath = "dist\runagent-windows-$Arch.zip" if (Test-Path $ZipPath) { Remove-Item $ZipPath } Compress-Archive -Path "$BuildDir\runagent_entry.dist" -DestinationPath $ZipPath -Force - + $ZipSize = (Get-Item $ZipPath).Length / 1MB - Write-Host "โœ… Release archive created: $ZipPath ($([math]::Round($ZipSize, 2)) MB)" -ForegroundColor Green + Write-Host "[OK] Release archive created: $ZipPath ($([math]::Round($ZipSize, 2)) MB)" -ForegroundColor Green Write-Host "" - Write-Host "๐Ÿ’ก Usage:" -ForegroundColor White + Write-Host "[USAGE] Usage:" -ForegroundColor White Write-Host " $BuildDir\runagent.bat --version" Write-Host " $BuildDir\runagent.bat --help" Write-Host "" - Write-Host "โšก Performance test:" -ForegroundColor White + Write-Host "[PERF] Performance test:" -ForegroundColor White Write-Host " Measure-Command { & $BuildDir\runagent.bat --help }" Write-Host "" - Write-Host "๐Ÿ’ก To install system-wide:" -ForegroundColor White + Write-Host "[TIP] To install system-wide:" -ForegroundColor White Write-Host " 1. Copy $BuildDir\runagent_entry.dist to C:\Program Files\RunAgent" Write-Host " 2. Add C:\Program Files\RunAgent to your PATH" Write-Host "" - Write-Host "๐Ÿ“ Note: This creates a ~100-150MB folder instead of single file" -ForegroundColor Yellow + Write-Host "[NOTE] Note: This creates a ~100-150MB folder instead of single file" -ForegroundColor Yellow Write-Host " But startup is 10-20x FASTER! (~1-2s instead of 15-20s)" -ForegroundColor Yellow } else { - Write-Host "โŒ Binary file not found at $DistExecutable" -ForegroundColor Red + Write-Host "[ERROR] Binary file not found at $DistExecutable" -ForegroundColor Red Write-Host "" Write-Host "Looking for build output in $BuildDir\:" -ForegroundColor Yellow Get-ChildItem $BuildDir From afc8530a870849ccb5c92d87edf3628a9834bca4 Mon Sep 17 00:00:00 2001 From: sawradip Date: Sun, 21 Dec 2025 01:08:16 +0600 Subject: [PATCH 2/3] chore: bump version to v0.1.47 - Updated all SDK versions to 0.1.47 --- pyproject.toml | 4 ++-- 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, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 18431fa..62c92c0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "hatchling.build" [project] name = "runagent" -version = "0.1.46" +version = "0.1.47" 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.46" +python_version = "0.1.47" warn_return_any = true warn_unused_configs = true disallow_untyped_defs = true diff --git a/runagent-go/version.go b/runagent-go/version.go index 5314a08..8412055 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.46" +const Version = "0.1.47" diff --git a/runagent-rust/runagent/Cargo.toml b/runagent-rust/runagent/Cargo.toml index d0b6192..173af9c 100644 --- a/runagent-rust/runagent/Cargo.toml +++ b/runagent-rust/runagent/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "runagent" -version = "0.1.46" +version = "0.1.47" 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 750863d..7bdc7a1 100644 --- a/runagent-ts/package-lock.json +++ b/runagent-ts/package-lock.json @@ -1,12 +1,12 @@ { "name": "runagent", - "version": "0.1.46", + "version": "0.1.47", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "runagent", - "version": "0.1.46", + "version": "0.1.47", "dependencies": { "better-sqlite3": "^12.2.0" }, diff --git a/runagent-ts/package.json b/runagent-ts/package.json index 92fee9d..9feffcc 100644 --- a/runagent-ts/package.json +++ b/runagent-ts/package.json @@ -1,6 +1,6 @@ { "name": "runagent", - "version": "0.1.46", + "version": "0.1.47", "type": "module", "files": [ "dist" diff --git a/runagent/__init__.py b/runagent/__init__.py index dad93b6..78e45ff 100644 --- a/runagent/__init__.py +++ b/runagent/__init__.py @@ -5,7 +5,7 @@ built with frameworks like LangGraph, LangChain, and LlamaIndex. """ -__version__ = "0.1.46" +__version__ = "0.1.47" from .client import RunAgentClient diff --git a/runagent/__version__.py b/runagent/__version__.py index 3d22c21..1d70f6b 100644 --- a/runagent/__version__.py +++ b/runagent/__version__.py @@ -1 +1 @@ -__version__ = "0.1.46" +__version__ = "0.1.47" From 60131882575eacce2425a9fa77c7973a58d8ad02 Mon Sep 17 00:00:00 2001 From: sawradip Date: Sun, 21 Dec 2025 01:08:16 +0600 Subject: [PATCH 3/3] docs: update changelog for v0.1.47 --- CHANGELOG.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a29426..577322c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,18 @@ # Changelog All notable changes to this project's latest version. -## [0.1.46] - 2025-12-20 +## [0.1.47] - 2025-12-20 ### Documentation -- Update changelog for v0.1.45 +- Update changelog for v0.1.46 ### Miscellaneous Tasks -- Update GitHub Actions workflows to use latest action versions -- Bump version to v0.1.46 +- Bump version to v0.1.47 + +### Refactor + +- Standardize output messages in build-windows-standalone.ps1