Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
fix(toolchain): pin Bun canary for valid macOS signatures (#4315)
Alberto Schiabelbe8e978c3a9f
diff --git a/.github/actions/setup-node-pnpm-bun/action.yml b/.github/actions/setup-node-pnpm-bun/action.ymlindex 47f514370..5380a5ed8 100644--- a/.github/actions/setup-node-pnpm-bun/action.yml+++ b/.github/actions/setup-node-pnpm-bun/action.yml@@ -6,10 +6,6 @@ inputs:description: 'Node.js version to use. Defaults to mise.lock'required: falsedefault: ''- bun-version:- description: 'Bun version to use. Defaults to mise.lock'- required: false- default: ''enable-caching:description: 'Enable pnpm/tool cache'required: false@@ -49,21 +45,15 @@ runs:shell: bashenv:NODE_VERSION: ${{ inputs.node-version }}- BUN_VERSION: ${{ inputs.bun-version }}run: |resolver="$GITHUB_ACTION_PATH/../../scripts/read-mise-lock-version.sh"node_version="$NODE_VERSION"- bun_version="$BUN_VERSION"if [[ -z "$node_version" ]]; thennode_version=$(bash "$resolver" node)fi- if [[ -z "$bun_version" ]]; then- bun_version=$(bash "$resolver" bun)- fiecho "node=$node_version" >> "$GITHUB_OUTPUT"- echo "bun=$bun_version" >> "$GITHUB_OUTPUT"echo "pnpm=$(bash "$resolver" pnpm)" >> "$GITHUB_OUTPUT"- name: Setup Node.js@@ -72,9 +62,10 @@ runs:node-version: ${{ steps.tool-versions.outputs.node }}- name: Setup Bun- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0- with:- bun-version: ${{ steps.tool-versions.outputs.bun }}+ shell: bash+ run: |+ mise install bun+ dirname "$(mise which bun)" >> "$GITHUB_PATH"- name: Setup pnpmuses: pnpm/action-setup@0ebf47130e4866e96fce0953f49152a61190b271 # v6.0.9@@ -136,5 +127,5 @@ runs:shell: bashrun: |echo "node=$(node --version | sed 's/^v//')" >> "$GITHUB_OUTPUT"- echo "bun=$(bun --version)" >> "$GITHUB_OUTPUT"+ echo "bun=$(bun --revision)" >> "$GITHUB_OUTPUT"echo "pnpm=$(pnpm --version)" >> "$GITHUB_OUTPUT"diff --git a/.github/scripts/install-mise.sh b/.github/scripts/install-mise.shindex 2ed6580b7..4a755f128 100644--- a/.github/scripts/install-mise.sh+++ b/.github/scripts/install-mise.sh@@ -2,28 +2,34 @@set -euo pipefail-if command -v mise >/dev/null 2>&1; then- exit 0+version='2026.8.15'++if [[ -n "${MISE_INSTALL_PATH:-}" ]]; then+ existing_binary="$MISE_INSTALL_PATH"+else+ existing_binary=$(command -v mise 2>/dev/null || true)fi-version='2026.5.18'+if [[ -x "$existing_binary" ]] && [[ "$("$existing_binary" --version | awk '{print $1}')" == "$version" ]]; then+ exit 0+ficase "$(uname -s)-$(uname -m)" inLinux-x86_64)target='linux-x64'- checksum='cfac593469d028d7ae5fe36e37bd7c59118b5238e92d8a876209578464f24a84'+ checksum='a6dea05e896f1e6090f821588f45397262270e0e0b456252f8d1da28a416f3f2';;Linux-aarch64|Linux-arm64)target='linux-arm64'- checksum='3c19d4861684e4ed5b8d020bcbdd99f478df43583fb767bd8a663983d4a4e209'+ checksum='124ea8f7c8cb9a6a3c99c763cbf37ca48c9beaa816735f011d9fd99e6cd463e9';;Darwin-x86_64)target='macos-x64'- checksum='c3dd600be59c1ada5aa7b178da8324f5ad40bf6a10e98d4109728d727ac9ccb9'+ checksum='6a1cef931e299d7392cd7008dd97fcef2d9b41fbdfe79df4fd9f7ab0cc33d9f7';;Darwin-arm64)target='macos-arm64'- checksum='998428f820e22301bab9273cba8b4e59d05a40f77a9a8411d75b2de85fbb0335'+ checksum='17a6e37ac2aaeee78206abc601568e1fe5010e398bf3c7320e1683584124d3c7';;*)echo "Unsupported mise platform: $(uname -s)-$(uname -m)" >&2@@ -31,15 +37,24 @@ case "$(uname -s)-$(uname -m)" in;;esac-install_dir="${RUNNER_TEMP:-${TMPDIR:-/tmp}}/mise-bin"-binary="$install_dir/mise"+default_install_dir="${RUNNER_TEMP:-${TMPDIR:-/tmp}}/mise-bin"+binary="${MISE_INSTALL_PATH:-$default_install_dir/mise}"+install_dir=$(dirname "$binary")asset="mise-v${version}-${target}"url="https://github.com/jdx/mise/releases/download/v${version}/${asset}"mkdir -p "$install_dir"curl --fail --location --retry 3 --silent --show-error --output "$binary" "$url"-actual_checksum=$(shasum -a 256 "$binary" | awk '{print $1}')+if command -v shasum >/dev/null 2>&1; then+ actual_checksum=$(shasum -a 256 "$binary" | awk '{print $1}')+elif command -v sha256sum >/dev/null 2>&1; then+ actual_checksum=$(sha256sum "$binary" | awk '{print $1}')+else+ echo 'Neither shasum nor sha256sum is available to verify mise' >&2+ rm -f "$binary"+ exit 1+fiif [[ "$actual_checksum" != "$checksum" ]]; thenecho "Checksum mismatch for $asset" >&2rm -f "$binary"@@ -47,4 +62,6 @@ if [[ "$actual_checksum" != "$checksum" ]]; thenfichmod +x "$binary"-echo "$install_dir" >> "$GITHUB_PATH"+if [[ -n "${GITHUB_PATH:-}" ]]; then+ echo "$install_dir" >> "$GITHUB_PATH"+fidiff --git a/mise.lock b/mise.lockindex 6bdb77dfb..43bd1171e 100644--- a/mise.lock+++ b/mise.lock@@ -1,44 +1,24 @@# @generated - this file is auto-generated by `mise lock` https://mise.en.dev/dev-tools/mise-lock.html[[tools.bun]]-version = "1.4.0"-backend = "core:bun"+version = "1.4.1-canary.1+d9b769812"+backend = "http:bun"[tools.bun."platforms.linux-arm64"]-checksum = "sha256:4b1a332ee861983eb93bcfe6f770fff94e3e31b2c388bdaea3c8ed35e58eed0e"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-aarch64.zip"--[tools.bun."platforms.linux-arm64-musl"]-checksum = "sha256:576300ce33ff16ffcd455bf178c2f095f9df845c6cc3d0284ba1c96ca0e80473"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-aarch64-musl.zip"+checksum = "sha512:c9136e10a2ea707d36978fa3713fba2930764068636dfd95a06264823c892532d69d3926e3a304084d704a2be301635d5af21faf06efed1b8aaa58ac591a8acb"+url = "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.4.0-canary.20260831.1.tgz"[tools.bun."platforms.linux-x64"]-checksum = "sha256:2d03fb5fb83ac8b567aca0a281b2ce1a1a19d488f56c2968d88c3f25e92fe452"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64.zip"--[tools.bun."platforms.linux-x64-baseline"]-checksum = "sha256:184fb4595f0d401a217cf7c78c1bc430ba83314dab7a8b94805babbf7fa7097f"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64-baseline.zip"--[tools.bun."platforms.linux-x64-musl"]-checksum = "sha256:83b5f12fd258dd8d4fdcaea65ede954366aa717dab399e20093ecab280d54e7a"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64-musl.zip"--[tools.bun."platforms.linux-x64-musl-baseline"]-checksum = "sha256:618c4bc1f94b02337ee210003c0b7c066f11548a8cdc5109df10db043dc47ca2"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-linux-x64-musl-baseline.zip"+checksum = "sha512:d5d0db11b22ad51ea66ebe96de83790109d753b678998d30b22b10cc8e3553e324d59581401ce07b5053282fb5e206c882fc96ae06b774b6162b3620fee5cf59"+url = "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.4.0-canary.20260831.1.tgz"[tools.bun."platforms.macos-arm64"]-checksum = "sha256:c669e97f6164e1c96e0701748db98dfa77492908cbd8394c7557134a735de381"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-darwin-aarch64.zip"+checksum = "sha512:2cba511e3cc074290676eea0cf2a16c7086bae4504edc5db58c93ddf4999c424386cf1c53ae2fdfd4ffca0eb93e80a51abfb58806ad7cc32aaa31f724d36b290"+url = "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.4.0-canary.20260831.1.tgz"[tools.bun."platforms.macos-x64"]-checksum = "sha256:1d0211b8f1dc991182344687ad15e72ee86f154845a5f7fa477994cd341dd9b0"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-darwin-x64.zip"--[tools.bun."platforms.macos-x64-baseline"]-checksum = "sha256:da9b9f1b4ba766c6f299711f38dfaa98623e1ed9c40896aa53db803c52ec1fa0"-url = "https://github.com/oven-sh/bun/releases/download/bun-v1.4.0/bun-darwin-x64-baseline.zip"+checksum = "sha512:2cce674fb3a605ce1e33e4079afc418157001116767d1cfdc3bd640149ab51289bf87fb5f518fe840bcf82712db1b53e765b074f96386704136f7f8d4e8c70ea"+url = "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.4.0-canary.20260831.1.tgz"[[tools.deno]]version = "2.6.7"@@ -113,14 +93,14 @@ version = "0.8.19"backend = "aqua:astral-sh/uv"[tools.uv."platforms.linux-arm64"]-checksum = "sha256:87925376fa1e59de23582e1cbd81d6aabd16611e871ad085e09be2c2fa12689d"-url = "https://github.com/astral-sh/uv/releases/download/0.8.19/uv-aarch64-unknown-linux-musl.tar.gz"-url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/295160192"+checksum = "sha256:ffd29feed13cdd30b27def8e80e64223325fbe4f7cfc4d4c906ec2531f746bde"+url = "https://github.com/astral-sh/uv/releases/download/0.8.19/uv-aarch64-unknown-linux-gnu.tar.gz"+url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/295160191"[tools.uv."platforms.linux-x64"]-checksum = "sha256:6a37f712ae90c7b8cf364fe751144d7acc2479d6b336378111e74cc7fb14fa7b"-url = "https://github.com/astral-sh/uv/releases/download/0.8.19/uv-x86_64-unknown-linux-musl.tar.gz"-url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/295160235"+checksum = "sha256:cfc674e9b83d1becfca4d70386e5f7ace4c1fa8c47c518abeebb8ef2b30da4b8"+url = "https://github.com/astral-sh/uv/releases/download/0.8.19/uv-x86_64-unknown-linux-gnu.tar.gz"+url_api = "https://api.github.com/repos/astral-sh/uv/releases/assets/295160233"[tools.uv."platforms.macos-arm64"]checksum = "sha256:bb63d43c40a301d889a985223ee8ce540be199e98b3f27ed8477823869a0a605"diff --git a/mise.toml b/mise.tomlindex 7a4760b54..6b3adc3e8 100644--- a/mise.toml+++ b/mise.toml@@ -2,22 +2,59 @@## Local dev: `mise install` (after `brew install mise` / `winget install jdx.mise` / `curl https://mise.run | sh`)# CI: exact versions are read from `mise.lock` by the composite actions-# under `.github/actions/` and installed with allowlisted setup actions+# under `.github/actions/`; Bun is installed directly by mise## pnpm is pinned through mise's npm backend so mise owns the full local and CI# toolchain. We do not rely on Corepack because Node.js no longer distributes it# starting with v25.-min_version = "2026.1.0"+min_version = "2026.8.15"++[tool_alias]+bun = "http:bun"[tools]"npm:pnpm" = "11.8.0"node = "24.17.0"-bun = "1.4.0"deno = "2.6.7"python = "3.12"uv = "0.8.19"+# Bun's exact canary revision is not a GitHub release tag. These immutable npm+# platform packages contain the binaries with valid macOS signatures; mise+# extracts the matching one directly, with no npm lifecycle involved.+#+# `version` below is only a label: the http backend downloads whatever the+# platform URLs point at, and the checksums prove a tarball is the one we named,+# not that it holds the revision we claimed. The two are deliberately allowed to+# read differently -- the tarballs are published under Bun's canary date scheme+# (1.4.0-canary.20260831.1) while the binaries inside report their own revision+# (1.4.1-canary.1+d9b769812), which is what `bun --revision` prints.+#+# So when bumping Bun, change the URLs *and* `version` together, then run+# `mise install`. `pnpm run test:toolchain` (test/mise-bun-pin.test.ts) compares+# the label against the installed binary and is the only thing that catches a+# half-finished bump.+[tools.bun]+version = "1.4.1-canary.1+d9b769812"+bin_path = "package/bin"++[tools.bun.platforms.macos-arm64]+url = "https://registry.npmjs.org/@oven/bun-darwin-aarch64/-/bun-darwin-aarch64-1.4.0-canary.20260831.1.tgz"+checksum = "sha512:2cba511e3cc074290676eea0cf2a16c7086bae4504edc5db58c93ddf4999c424386cf1c53ae2fdfd4ffca0eb93e80a51abfb58806ad7cc32aaa31f724d36b290"++[tools.bun.platforms.macos-x64]+url = "https://registry.npmjs.org/@oven/bun-darwin-x64/-/bun-darwin-x64-1.4.0-canary.20260831.1.tgz"+checksum = "sha512:2cce674fb3a605ce1e33e4079afc418157001116767d1cfdc3bd640149ab51289bf87fb5f518fe840bcf82712db1b53e765b074f96386704136f7f8d4e8c70ea"++[tools.bun.platforms.linux-arm64]+url = "https://registry.npmjs.org/@oven/bun-linux-aarch64/-/bun-linux-aarch64-1.4.0-canary.20260831.1.tgz"+checksum = "sha512:c9136e10a2ea707d36978fa3713fba2930764068636dfd95a06264823c892532d69d3926e3a304084d704a2be301635d5af21faf06efed1b8aaa58ac591a8acb"++[tools.bun.platforms.linux-x64]+url = "https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.4.0-canary.20260831.1.tgz"+checksum = "sha512:d5d0db11b22ad51ea66ebe96de83790109d753b678998d30b22b10cc8e3553e324d59581401ce07b5053282fb5e206c882fc96ae06b774b6162b3620fee5cf59"+[env]_.path = ["{{config_root}}/node_modules/.bin"]diff --git a/package.json b/package.jsonindex 2cb16a5bb..8297dfcbc 100644--- a/package.json+++ b/package.json@@ -26,9 +26,10 @@"build:packages": "turbo build --filter=./ts/packages/**","cli:record": "turbo run record --filter=./ts/packages/cli","record": "turbo run record",- "test": "pnpm run test:install-sh && pnpm run test:release-workflow && turbo test --filter=./ts/packages/** --filter=!@e2e-tests/* && pnpm run test:examples",+ "test": "pnpm run test:toolchain && pnpm run test:install-sh && pnpm run test:release-workflow && turbo test --filter=./ts/packages/** --filter=!@e2e-tests/* && pnpm run test:examples","test:install-sh": "bash test/install-sh-release-resolution.test.sh && bash test/install-sh-atomic-replace.test.sh","test:release-workflow": "bun run test/release-workflow.test.ts",+ "test:toolchain": "bun run test/mise-bun-pin.test.ts","test:examples": "tsx ts/scripts/validate-examples.ts","test:e2e": "turbo test:e2e --filter='@e2e-tests/*'","test:e2e:node": "turbo test:e2e:node --filter='@e2e-tests/node-*'",@@ -45,7 +46,6 @@"lint:fix": "oxlint --fix .","lint:fix:packages": "oxlint --fix ts/packages","format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",- "preinstall": "./ts/scripts/pre-install.sh","prepare": "husky","create:provider": "bash ts/scripts/create-provider.sh","create:example": "bash ts/scripts/create-example.sh",diff --git a/test/mise-bun-pin.test.ts b/test/mise-bun-pin.test.tsnew file mode 100644index 000000000..e9a147a22--- /dev/null+++ b/test/mise-bun-pin.test.ts@@ -0,0 +1,75 @@+#!/usr/bin/env bun++/**+ * Asserts that the Bun revision declared in `mise.toml` matches the binary mise+ * actually installs.+ *+ * `[tool_alias] bun = "http:bun"` decouples the version label from the tarball+ * URLs, and mise never cross-checks the two: the per-platform checksums prove a+ * tarball is the one we named, not that it contains the revision we claimed. So+ * bumping the URLs without the `version` string (or the reverse) silently ships+ * the wrong Bun to every contributor and every CI job. This is the only check+ * that catches that.+ *+ * The binary is resolved through `mise which bun` rather than `$PATH`, so a+ * contributor running their own Bun does not get a spurious failure. When mise+ * cannot resolve Bun the check skips locally, but fails under CI, where the+ * toolchain is installed by `.github/actions/setup-node-pnpm-bun`.+ */++import { execFileSync } from 'node:child_process';++function run(command: string, args: string[]): string {+ return execFileSync(command, args, {+ encoding: 'utf-8',+ stdio: ['ignore', 'pipe', 'pipe'],+ }).trim();+}++function skipOrFail(reason: string) {+ if (process.env.CI) {+ console.error(+ `mise-bun-pin: ${reason}+CI must run under the mise-installed toolchain, so this is a failure here.`+ );+ process.exit(1);+ }++ console.log(+ `mise-bun-pin: skipped (${reason}).+Run \`mise install\` to enable this check locally.`+ );+ process.exit(0);+}++function main() {+ let declaredRevision: string;+ let bunPath: string;++ try {+ declaredRevision = run('mise', ['current', 'bun']);+ bunPath = run('mise', ['which', 'bun']);+ } catch (err) {+ skipOrFail(`could not resolve Bun from mise (${(err as Error).message})`);+ return;+ }++ const installedRevision = run(bunPath, ['--revision']);++ if (installedRevision !== declaredRevision) {+ console.error(+ `Bun revision mismatch between mise.toml and the installed binary.++ mise.toml declares: ${declaredRevision}+ ${bunPath} is: ${installedRevision}++The \`version\` under [tools.bun] and the per-platform tarball URLs are set+independently. Update whichever one is stale, then run \`mise install\`.`+ );+ process.exit(1);+ }++ console.log(`mise-bun-pin: ok (${installedRevision})`);+}++main();diff --git a/ts/e2e-tests/_utils/Dockerfile.cli b/ts/e2e-tests/_utils/Dockerfile.cliindex 6fe83e3c7..ac6cc2057 100644--- a/ts/e2e-tests/_utils/Dockerfile.cli+++ b/ts/e2e-tests/_utils/Dockerfile.cli@@ -23,7 +23,8 @@ RUN apt-get update && \# mise is installed to /usr/local/bin; its shared cache and shims expose bun and# pnpm while Node stays on the base image.ENV XDG_CACHE_HOME="/mise/cache"-RUN curl -fsSL https://mise.run | MISE_INSTALL_PATH=/usr/local/bin/mise sh+COPY .github/scripts/install-mise.sh ./.github/scripts/install-mise.sh+RUN MISE_INSTALL_PATH=/usr/local/bin/mise bash .github/scripts/install-mise.shCOPY mise.toml mise.lock ./RUN mise install && \pnpm --version && \@@ -41,17 +42,13 @@ COPY package.json \toolchain-versions.json \./-# Copy pre-install scripts (rarely change)-COPY ts/scripts/pre-install.sh ./ts/scripts/pre-install.sh-COPY ts/scripts/pre-install/ ./ts/scripts/pre-install/-# Copy all ts/packages (pre-built)COPY ts/packages/ ./ts/packages/# Install dependencies using pnpm# Note: We intentionally don't use --mount=type=cache for the pnpm store here# because it causes native binding issues across builds-RUN BYPASS_TOOLCHAIN_CHECK=1 pnpm install --frozen-lockfile+RUN pnpm install --frozen-lockfile# Build composio CLI binaryWORKDIR /app/ts/packages/clidiff --git a/ts/e2e-tests/_utils/Dockerfile.deno b/ts/e2e-tests/_utils/Dockerfile.denoindex e110214f0..161111fb2 100644--- a/ts/e2e-tests/_utils/Dockerfile.deno+++ b/ts/e2e-tests/_utils/Dockerfile.deno@@ -38,7 +38,8 @@ RUN curl -fsSL "https://deb.nodesource.com/setup_${NODE_MAJOR}.x" | bash - && \# mise is installed to /usr/local/bin; its shared cache and shims keep the tools# available to the non-root runtime user.ENV XDG_CACHE_HOME="/mise/cache"-RUN curl -fsSL https://mise.run | MISE_INSTALL_PATH=/usr/local/bin/mise sh+COPY .github/scripts/install-mise.sh ./.github/scripts/install-mise.sh+RUN MISE_INSTALL_PATH=/usr/local/bin/mise bash .github/scripts/install-mise.shCOPY mise.toml mise.lock ./RUN mise install && \pnpm --version && \@@ -56,17 +57,13 @@ COPY package.json \toolchain-versions.json \./-# Copy pre-install scripts (rarely change)-COPY ts/scripts/pre-install.sh ./ts/scripts/pre-install.sh-COPY ts/scripts/pre-install/ ./ts/scripts/pre-install/-# Copy all ts/packages (pre-built)COPY ts/packages/ ./ts/packages/# Install dependencies using pnpm# Note: We intentionally don't use --mount=type=cache for the pnpm store here# because it causes native binding issues (e.g., rolldown-binding) across builds-RUN BYPASS_TOOLCHAIN_CHECK=1 pnpm install --frozen-lockfile+RUN pnpm install --frozen-lockfile# Copy e2e tests last (changes frequently)COPY ts/e2e-tests/ ./ts/e2e-tests/diff --git a/ts/e2e-tests/_utils/Dockerfile.node b/ts/e2e-tests/_utils/Dockerfile.nodeindex 3e8fda7df..a3ba95db1 100644--- a/ts/e2e-tests/_utils/Dockerfile.node+++ b/ts/e2e-tests/_utils/Dockerfile.node@@ -29,7 +29,8 @@ RUN apt-get update && \# mise is installed to /usr/local/bin; its shared cache and shims keep the tools# available to the non-root runtime user.ENV XDG_CACHE_HOME="/mise/cache"-RUN curl -fsSL https://mise.run | MISE_INSTALL_PATH=/usr/local/bin/mise sh+COPY .github/scripts/install-mise.sh ./.github/scripts/install-mise.sh+RUN MISE_INSTALL_PATH=/usr/local/bin/mise bash .github/scripts/install-mise.shCOPY mise.toml mise.lock ./RUN mise install && \pnpm --version && \@@ -47,17 +48,13 @@ COPY package.json \toolchain-versions.json \./-# Copy pre-install scripts (rarely change)-COPY ts/scripts/pre-install.sh ./ts/scripts/pre-install.sh-COPY ts/scripts/pre-install/ ./ts/scripts/pre-install/-# Copy all ts/packages (pre-built)COPY ts/packages/ ./ts/packages/# Install dependencies using pnpm# Note: We intentionally don't use --mount=type=cache for the pnpm store here# because it causes native binding issues (e.g., rolldown-binding) across builds-RUN BYPASS_TOOLCHAIN_CHECK=1 pnpm install --frozen-lockfile+RUN pnpm install --frozen-lockfile# Build and install composio CLI binary# This is a simplified version of ts/packages/cli/scripts/build-binary.ts + install-binary.tsdiff --git a/ts/scripts/pre-install.sh b/ts/scripts/pre-install.shdeleted file mode 100755index 2c0373c64..000000000--- a/ts/scripts/pre-install.sh+++ /dev/null@@ -1,21 +0,0 @@-#!/bin/bash--set -eo pipefail--# Allow bypassing the local toolchain check (useful for CI workflows using prebuilt images)-if [ -n "$BYPASS_TOOLCHAIN_CHECK" ]; then- echo "Bypassing toolchain check (BYPASS_TOOLCHAIN_CHECK is set)"- exit 0-fi--SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"--echo "Checking if Bun is installed..."-if ! command -v bun &> /dev/null; then- echo "Bun is not installed. Please install it from https://bun.sh" >&2- exit 1-fi--echo "Bun is installed."-echo "Checking if toolchain versions match mise.toml..."-bun run "$SCRIPT_DIR/pre-install/check-toolchain.ts"diff --git a/ts/scripts/pre-install/check-toolchain.ts b/ts/scripts/pre-install/check-toolchain.tsdeleted file mode 100644index 18c20786c..000000000--- a/ts/scripts/pre-install/check-toolchain.ts+++ /dev/null@@ -1,80 +0,0 @@-#!/usr/bin/env bun--import { execFileSync } from 'node:child_process';--declare module 'bun' {- interface Env {- /**- * If set, bypasses the local toolchain check.- * Useful for CI workflows relying on prebuilt environments.- */- BYPASS_TOOLCHAIN_CHECK: string;- }-}--type CheckedTool = 'bun' | 'pnpm';--const miseTool: Record<CheckedTool, string> = {- bun: 'bun',- pnpm: 'npm:pnpm',-};--function getRequiredVersion(tool: CheckedTool): string {- try {- return execFileSync('mise', ['current', miseTool[tool]], { encoding: 'utf-8' }).trim();- } catch (err) {- console.error(- `Failed to resolve ${tool} version from mise.toml.-Install mise and run:--\`mise install\`--Original error: ${(err as Error).message}`- );- process.exit(1);- }-}--function getPnpmVersion(): string {- try {- return execFileSync('pnpm', ['--version'], { encoding: 'utf-8' }).trim();- } catch (err) {- console.error(- `Failed to resolve pnpm version.-Install the repository toolchain by running:--\`mise install\`--Original error: ${(err as Error).message}`- );- process.exit(1);- }-}--function assertVersion(tool: CheckedTool, actualVersion: string) {- const requiredVersion = getRequiredVersion(tool);-- if (actualVersion !== requiredVersion) {- console.error(- `${tool} version mismatch: expected ${requiredVersion}, got ${actualVersion}.-Install the repository toolchain by running:--\`mise install\`-`- );- process.exit(1);- }-}--function main() {- if (Bun.env.BYPASS_TOOLCHAIN_CHECK) {- return;- }-- assertVersion('bun', Bun.version.trim());- assertVersion('pnpm', getPnpmVersion());-}--if (import.meta.path === Bun.main) {- main();-}