diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be1409317..15d21790d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,13 +3,13 @@ name: CI on: push: branches: [main] - tags: ['v*'] + tags: ["v*"] pull_request: branches: [main] workflow_dispatch: inputs: skip_npm: - description: 'Skip npm publish' + description: "Skip npm publish" type: boolean default: false @@ -54,37 +54,44 @@ jobs: - uses: oven-sh/setup-bun@v2 - uses: actions/setup-node@v4 with: - node-version: '24' - registry-url: 'https://registry.npmjs.org' + node-version: "24" + registry-url: "https://registry.npmjs.org" - name: Cache bun dependencies uses: actions/cache@v4 with: path: ~/.bun/install/cache key: bun-${{ runner.os }}-${{ hashFiles('**/bun.lockb') }} - run: bun install --frozen-lockfile - - name: Install cross-platform native bindings - run: | - # bun install only fetches optional deps for current platform (linux-x64) - # Explicitly install all platform binaries for bun cross-compilation - bun add --no-save \ - @img/sharp-darwin-arm64@0.34.5 \ - @img/sharp-darwin-x64@0.34.5 \ - @img/sharp-linux-x64@0.34.5 \ - @img/sharp-linux-arm64@0.34.5 \ - @img/sharp-win32-x64@0.34.5 \ - @img/sharp-libvips-darwin-arm64@1.2.4 \ - @img/sharp-libvips-darwin-x64@1.2.4 \ - @img/sharp-libvips-linux-x64@1.2.4 \ - @img/sharp-libvips-linux-arm64@1.2.4 - - name: Build binaries + - name: Build darwin-arm64 run: | cd packages/coding-agent - mkdir -p binaries + bun install --os darwin --cpu arm64 + bun add --no-save @img/sharp-darwin-arm64@0.34.5 @img/sharp-libvips-darwin-arm64@1.2.4 bun build --compile --target=bun-darwin-arm64 ./src/cli.ts --outfile binaries/omp-darwin-arm64 + - name: Build darwin-x64 + run: | + cd packages/coding-agent + bun install --os darwin --cpu x64 + bun add --no-save @img/sharp-darwin-x64@0.34.5 @img/sharp-libvips-darwin-x64@1.2.4 bun build --compile --target=bun-darwin-x64 ./src/cli.ts --outfile binaries/omp-darwin-x64 + - name: Build linux-x64 + run: | + cd packages/coding-agent + bun install --os linux --cpu x64 + bun add --no-save @img/sharp-linux-x64@0.34.5 @img/sharp-libvips-linux-x64@1.2.4 bun build --compile --target=bun-linux-x64 ./src/cli.ts --outfile binaries/omp-linux-x64 + - name: Build linux-arm64 + run: | + cd packages/coding-agent + bun install --os linux --cpu arm64 + bun add --no-save @img/sharp-linux-arm64@0.34.5 @img/sharp-libvips-linux-arm64@1.2.4 bun build --compile --target=bun-linux-arm64 ./src/cli.ts --outfile binaries/omp-linux-arm64 - bun build --compile --target=bun-windows-x64 ./src/cli.ts --outfile binaries/omp-windows-x64.exe + - name: Build win32-x64 + run: | + cd packages/coding-agent + bun install --os win32 --cpu x64 + bun add --no-save @img/sharp-win32-x64@0.34.5 @img/sharp-libvips-win32-x64@1.2.4 + bun build --compile --target=bun-win32-x64 ./src/cli.ts --outfile binaries/omp-win32-x64 - name: Create GitHub Release uses: softprops/action-gh-release@v2 with: diff --git a/bun.lock b/bun.lock index fe043b86b..1ceae500e 100644 --- a/bun.lock +++ b/bun.lock @@ -21,7 +21,7 @@ }, "packages/agent": { "name": "@oh-my-pi/pi-agent-core", - "version": "4.7.0", + "version": "4.8.0", "dependencies": { "@oh-my-pi/pi-ai": "workspace:*", "@oh-my-pi/pi-tui": "workspace:*", @@ -33,7 +33,7 @@ }, "packages/ai": { "name": "@oh-my-pi/pi-ai", - "version": "4.7.0", + "version": "4.8.0", "bin": { "pi-ai": "./src/cli.ts", }, @@ -59,7 +59,7 @@ }, "packages/coding-agent": { "name": "@oh-my-pi/pi-coding-agent", - "version": "4.7.0", + "version": "4.8.0", "bin": { "omp": "src/cli.ts", }, @@ -102,7 +102,7 @@ }, "packages/git-tool": { "name": "@oh-my-pi/pi-git-tool", - "version": "4.7.0", + "version": "4.8.0", "devDependencies": { "@types/node": "^24.3.0", "vitest": "^3.2.4", @@ -110,7 +110,7 @@ }, "packages/tui": { "name": "@oh-my-pi/pi-tui", - "version": "4.7.0", + "version": "4.8.0", "dependencies": { "@types/mime-types": "^2.1.4", "chalk": "^5.5.0", @@ -385,21 +385,21 @@ "@types/ws": ["@types/ws@8.18.1", "", { "dependencies": { "@types/node": "*" } }, "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg=="], - "@typescript/native-preview": ["@typescript/native-preview@7.0.0-dev.20260111.1", "", { "optionalDependencies": { "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260111.1", "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260111.1", "@typescript/native-preview-linux-arm": "7.0.0-dev.20260111.1", "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260111.1", "@typescript/native-preview-linux-x64": "7.0.0-dev.20260111.1", "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260111.1", "@typescript/native-preview-win32-x64": "7.0.0-dev.20260111.1" }, "bin": { "tsgo": "bin/tsgo.js" } }, "sha512-nfSxvmTUZSSIyaO1qCP0iyy59UnEu24wXqq6xG5qpAN3HKh6UKfB1XJowzmHsO8k3MOO41QbLwvzWk6MA65HvA=="], + "@typescript/native-preview": ["@typescript/native-preview@7.0.0-dev.20260112.1", "", { "optionalDependencies": { "@typescript/native-preview-darwin-arm64": "7.0.0-dev.20260112.1", "@typescript/native-preview-darwin-x64": "7.0.0-dev.20260112.1", "@typescript/native-preview-linux-arm": "7.0.0-dev.20260112.1", "@typescript/native-preview-linux-arm64": "7.0.0-dev.20260112.1", "@typescript/native-preview-linux-x64": "7.0.0-dev.20260112.1", "@typescript/native-preview-win32-arm64": "7.0.0-dev.20260112.1", "@typescript/native-preview-win32-x64": "7.0.0-dev.20260112.1" }, "bin": { "tsgo": "bin/tsgo.js" } }, "sha512-DvUmkkJ5BePLmZbQ9OecQr6wRVUlWbNz/bNEYmTcl7+0qwF8KtgPGriWiyuIzs+TiIhjf3HM1tt5OC/uBHNJsw=="], - "@typescript/native-preview-darwin-arm64": ["@typescript/native-preview-darwin-arm64@7.0.0-dev.20260111.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-+MjmGzP03XiJFvgJTwHBWomv+XUeV2D0WymF0sh0ozZmU04i1zSnpuemdR7Va8uHnQT/f/nBuavWHL7z1G8Viw=="], + "@typescript/native-preview-darwin-arm64": ["@typescript/native-preview-darwin-arm64@7.0.0-dev.20260112.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-FUOOGN0/9LF+AOX07SOqfX1hBQfP3rezMFCwDlwAVW52leJ2Fur8efrQR5oUNL8hDt/NMGJwsg3wreZGdYSqJg=="], - "@typescript/native-preview-darwin-x64": ["@typescript/native-preview-darwin-x64@7.0.0-dev.20260111.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-3fwrUI9JeYFpBZ9JkI4oyE1bfhsFzfDEfLyeZ+e3FoxZJSjuuFMV76rHYpr+25ircI48hvQOX2MYODQ18rRV9g=="], + "@typescript/native-preview-darwin-x64": ["@typescript/native-preview-darwin-x64@7.0.0-dev.20260112.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-SgiY7DcvhcyCCdrFRcgq5zPK1jdp7hxhnvo8YEEGvBsvyI+Y/q6phoR79nqMnz5W7a2HTPuaxLjCf7tR17cw4w=="], - "@typescript/native-preview-linux-arm": ["@typescript/native-preview-linux-arm@7.0.0-dev.20260111.1", "", { "os": "linux", "cpu": "arm" }, "sha512-TVQHKwS5sFgYdeoXTnLHIJ+ERmLKjxLOKrm4jv6jz8zYEf59mTGvk5goRGVZc0NPeRr0WVauRs1zY5/T3vKc5g=="], + "@typescript/native-preview-linux-arm": ["@typescript/native-preview-linux-arm@7.0.0-dev.20260112.1", "", { "os": "linux", "cpu": "arm" }, "sha512-7mtAOEKaNOqKFIIVUsFK2IYB09bd/i8oIkzPi1EcEN3V7dzuKtSieNak30pY+k6z/f6QpUheHXVFM4wXBGbGrQ=="], - "@typescript/native-preview-linux-arm64": ["@typescript/native-preview-linux-arm64@7.0.0-dev.20260111.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-8JCbQvP3UCC0QTVt/HA/Rm0mBmbnQobUouVPJEzSsGqb8KDtNzjwgVTh5Wd5mpnw+h1GXyFNfbtwJi3H6FOEPA=="], + "@typescript/native-preview-linux-arm64": ["@typescript/native-preview-linux-arm64@7.0.0-dev.20260112.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-N9Ukn5NUjO063F3YICBl/dSLEpJayTIMTAJbvbuLjEdlHmp9xn7ty3MCkE4FqP6x/CWLDiZttnu9jYppJ//Q5g=="], - "@typescript/native-preview-linux-x64": ["@typescript/native-preview-linux-x64@7.0.0-dev.20260111.1", "", { "os": "linux", "cpu": "x64" }, "sha512-iXUeMndINuTG01NFFCr7uuNQUZyOTjCHCHoVNv3OgtEABo5/U/yf6CpsNFUc77PGscnW3wN19Bc99PWEHAig0Q=="], + "@typescript/native-preview-linux-x64": ["@typescript/native-preview-linux-x64@7.0.0-dev.20260112.1", "", { "os": "linux", "cpu": "x64" }, "sha512-K4/6TRu2MAwObOxZyUmUvAxi1B5fpwi/8OYb8xyf9VsLbkDCsBMbZxgwEMf9RBYhW74I187IIGEfw/g0oHDKEA=="], - "@typescript/native-preview-win32-arm64": ["@typescript/native-preview-win32-arm64@7.0.0-dev.20260111.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-0pH8HX62jqb61zOXa4c0Vg3A/sqoY7gdDX/ulCWeZU06WvjtXsbJyej0ylelVSR2NqTDKJpVSD3cwK1W+I6Bww=="], + "@typescript/native-preview-win32-arm64": ["@typescript/native-preview-win32-arm64@7.0.0-dev.20260112.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-ivjcYuqlCD91x6QOO+/xpjGUiWBLzBCgz0aAITkEfDTBHEwf3keTEQH2GsaVnMC8GKUFdoEF6QtSR+jZ75BhWA=="], - "@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20260111.1", "", { "os": "win32", "cpu": "x64" }, "sha512-kMbLO9yEVHSBmtaK2FUDJifXS3KPMusigjb/92W4RRnO53SMS7zTcbe8TYci4qf19k18Zw/I3xv63OsTAYDBVQ=="], + "@typescript/native-preview-win32-x64": ["@typescript/native-preview-win32-x64@7.0.0-dev.20260112.1", "", { "os": "win32", "cpu": "x64" }, "sha512-gZ+72BdVDA4VUFKw9ZvEkEger/2SrXw62gstz25TriOHROvjxEgXLVHqiVKhE/XkWqYT0GJ7aM7WKoM/RG2XTw=="], "@typescript/vfs": ["@typescript/vfs@1.6.2", "", { "dependencies": { "debug": "^4.1.1" }, "peerDependencies": { "typescript": "*" } }, "sha512-hoBwJwcbKHmvd2QVebiytN1aELvpk9B74B4L1mFm/XT1Q/VOYAWl2vQ9AWRFtQq8zmz6enTpfTV8WRc4ATjW/g=="], diff --git a/packages/agent/CHANGELOG.md b/packages/agent/CHANGELOG.md index 2d388d659..a93516e6f 100644 --- a/packages/agent/CHANGELOG.md +++ b/packages/agent/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [4.8.0] - 2026-01-12 + ## [4.7.0] - 2026-01-12 ## [4.6.0] - 2026-01-12 diff --git a/packages/agent/package.json b/packages/agent/package.json index 6b36d82ab..c79fec58e 100644 --- a/packages/agent/package.json +++ b/packages/agent/package.json @@ -1,6 +1,6 @@ { "name": "@oh-my-pi/pi-agent-core", - "version": "4.7.0", + "version": "4.8.0", "description": "General-purpose agent with transport abstraction, state management, and attachment support", "type": "module", "main": "./src/index.ts", diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 9f34157ae..93f703561 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [4.8.0] - 2026-01-12 + ## [4.7.0] - 2026-01-12 ## [4.6.0] - 2026-01-12 diff --git a/packages/ai/package.json b/packages/ai/package.json index dbeb63ead..11e38c2dd 100644 --- a/packages/ai/package.json +++ b/packages/ai/package.json @@ -1,6 +1,6 @@ { "name": "@oh-my-pi/pi-ai", - "version": "4.7.0", + "version": "4.8.0", "description": "Unified LLM API with automatic model discovery and provider configuration", "type": "module", "main": "./src/index.ts", diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 02e6ac264..6eec1f008 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [4.8.0] - 2026-01-12 + ### Fixed - Move `sharp` to optional dependencies with all platform binaries to fix arm64 runtime errors diff --git a/packages/coding-agent/package.json b/packages/coding-agent/package.json index 2855a6ac5..93b9d3b66 100644 --- a/packages/coding-agent/package.json +++ b/packages/coding-agent/package.json @@ -1,6 +1,6 @@ { "name": "@oh-my-pi/pi-coding-agent", - "version": "4.7.0", + "version": "4.8.0", "description": "Coding agent CLI with read, bash, edit, write tools and session management", "type": "module", "ompConfig": { @@ -58,7 +58,6 @@ "nanoid": "^5.1.6", "ndjson": "^2.0.0", "node-html-parser": "^6.1.13", - "smol-toml": "^1.6.0", "strip-ansi": "^7.1.2", "winston": "^3.17.0", diff --git a/packages/git-tool/CHANGELOG.md b/packages/git-tool/CHANGELOG.md index 5b4ed6b08..1d841ab7b 100644 --- a/packages/git-tool/CHANGELOG.md +++ b/packages/git-tool/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [4.8.0] - 2026-01-12 + ## [4.7.0] - 2026-01-12 ## [4.6.0] - 2026-01-12 diff --git a/packages/git-tool/package.json b/packages/git-tool/package.json index dc75e914e..41a35dd6c 100644 --- a/packages/git-tool/package.json +++ b/packages/git-tool/package.json @@ -1,6 +1,6 @@ { "name": "@oh-my-pi/pi-git-tool", - "version": "4.7.0", + "version": "4.8.0", "description": "Structured Git tool with safety guards and typed output", "type": "module", "main": "./src/index.ts", diff --git a/packages/tui/CHANGELOG.md b/packages/tui/CHANGELOG.md index c28c97b02..c9f19f74c 100644 --- a/packages/tui/CHANGELOG.md +++ b/packages/tui/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +## [4.8.0] - 2026-01-12 + ## [4.7.0] - 2026-01-12 ### Fixed diff --git a/packages/tui/package.json b/packages/tui/package.json index 30691b9ea..2474b8d04 100644 --- a/packages/tui/package.json +++ b/packages/tui/package.json @@ -1,6 +1,6 @@ { "name": "@oh-my-pi/pi-tui", - "version": "4.7.0", + "version": "4.8.0", "description": "Terminal User Interface library with differential rendering for efficient text-based applications", "type": "module", "main": "src/index.ts",