From fbaec8010ebf1ec79e726c5b9ab6f794127ac001 Mon Sep 17 00:00:00 2001 From: BeamoINT Date: Sun, 27 Sep 2026 01:30:58 -0500 Subject: [PATCH 1/3] fix: follow canonical release repository in bootstraps --- CHANGELOG.md | 11 ++++++++++- bootstrap.ps1 | 4 ++-- bootstrap.sh | 2 +- package-lock.json | 4 ++-- package.json | 2 +- test.ps1 | 3 +++ test.zsh | 12 +++++++++++- 7 files changed, 30 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd050ea..f3c2197 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ uses [Semantic Versioning](https://semver.org/) for tagged releases. ## [Unreleased] +## [1.6.4] - 2026-09-27 + +### Fixed + +- Restored the verified source bootstrap after the GitHub repository moved to + BeamoTech by resolving releases from the canonical repository on Unix and + Windows. + ## [1.6.3] - 2026-09-26 ### Changed @@ -502,7 +510,8 @@ uses [Semantic Versioning](https://semver.org/) for tagged releases. - Claude in Chrome first party profile support. - Cross platform regression coverage in GitHub Actions. -[Unreleased]: https://github.com/BeamoINT/Claudex/compare/v1.6.3...HEAD +[Unreleased]: https://github.com/BeamoTech/Claudex/compare/v1.6.4...HEAD +[1.6.4]: https://github.com/BeamoTech/Claudex/compare/v1.6.3...v1.6.4 [1.6.3]: https://github.com/BeamoINT/Claudex/compare/v1.6.2...v1.6.3 [1.6.2]: https://github.com/BeamoINT/Claudex/compare/v1.6.1...v1.6.2 [1.6.1]: https://github.com/BeamoINT/Claudex/compare/v1.6.0...v1.6.1 diff --git a/bootstrap.ps1 b/bootstrap.ps1 index 463bf92..23c6b38 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -5,8 +5,8 @@ $ErrorActionPreference = 'Stop' Set-StrictMode -Version 2.0 [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 -$repositoryUrl = 'https://github.com/BeamoINT/Claudex' -$apiUrl = 'https://api.github.com/repos/BeamoINT/Claudex/releases/latest' +$repositoryUrl = 'https://github.com/BeamoTech/Claudex' +$apiUrl = 'https://api.github.com/repos/BeamoTech/Claudex/releases/latest' $temporary = Join-Path ([IO.Path]::GetTempPath()) ('claudex-bootstrap-' + [guid]::NewGuid().ToString('N')) function Fail([string] $Message) { diff --git a/bootstrap.sh b/bootstrap.sh index b476a1d..38fc631 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -readonly repository_url="https://github.com/BeamoINT/Claudex" +readonly repository_url="https://github.com/BeamoTech/Claudex" readonly latest_url="$repository_url/releases/latest" temporary="" diff --git a/package-lock.json b/package-lock.json index 4f8661f..56ec342 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "claudex-codex", - "version": "1.6.3", + "version": "1.6.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "claudex-codex", - "version": "1.6.3", + "version": "1.6.4", "license": "MIT", "engines": { "node": ">=18" diff --git a/package.json b/package.json index 4aac13b..9b7c8f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "claudex-codex", - "version": "1.6.3", + "version": "1.6.4", "private": true, "description": "Cross platform compatibility layer for using Codex GPT and native Claude models through Claude Code", "type": "module", diff --git a/test.ps1 b/test.ps1 index e4ee1be..c74ab3e 100644 --- a/test.ps1 +++ b/test.ps1 @@ -55,6 +55,9 @@ function Remove-TestPathWithRetry([string] $Path, [int] $TimeoutMilliseconds = 5 } try { + $bootstrapSource = Get-Content -LiteralPath (Join-Path $root 'bootstrap.ps1') -Raw + Assert-True ($bootstrapSource.Contains('$repositoryUrl = ''https://github.com/BeamoTech/Claudex''')) 'Windows bootstrap uses the canonical release repository' + Assert-True ($bootstrapSource.Contains('$apiUrl = ''https://api.github.com/repos/BeamoTech/Claudex/releases/latest''')) 'Windows bootstrap uses the canonical releases API' [IO.Directory]::CreateDirectory($testConfig) | Out-Null [IO.Directory]::CreateDirectory($fakeBin) | Out-Null if ($isWindowsPlatform -and $env:CI) { diff --git a/test.zsh b/test.zsh index 58d3bf4..77f42ea 100755 --- a/test.zsh +++ b/test.zsh @@ -2142,7 +2142,7 @@ output=""; url="" while (( $# > 0 )); do case "$1" in --output) output="$2"; shift 2 ;; --write-out) shift 2 ;; -*) shift ;; *) url="$1"; shift ;; esac done -if [[ "$output" == /dev/null ]]; then printf '%s' 'https://github.com/BeamoINT/Claudex/releases/tag/v9.8.7'; exit; fi +if [[ "$output" == /dev/null ]]; then printf '%s' "${FAKE_BOOTSTRAP_LATEST_REDIRECT:-https://github.com/BeamoTech/Claudex/releases/tag/v9.8.7}"; exit; fi case "$url" in */SHA256SUMS) cp "$FAKE_BOOTSTRAP_FIXTURE/SHA256SUMS" "$output" ;; *) cp "$FAKE_BOOTSTRAP_FIXTURE/claudex-9.8.7.tar.gz" "$output" ;; esac EOF chmod +x "$tmp/bootstrap-bin/curl" @@ -2152,6 +2152,16 @@ PATH="$tmp/bootstrap-bin:/usr/bin:/bin" TMPDIR="$bootstrap_tmp" \ "$root/bootstrap.sh" --login >/dev/null [[ "$(<"$bootstrap_install_log")" == 'archive:--login' ]] [[ -z "$(find "$bootstrap_tmp" -mindepth 1 -maxdepth 1 -print -quit)" ]] +rm -f "$bootstrap_install_log" +if PATH="$tmp/bootstrap-bin:/usr/bin:/bin" TMPDIR="$bootstrap_tmp" \ + FAKE_BOOTSTRAP_FIXTURE="$bootstrap_fixture" FAKE_BOOTSTRAP_INSTALL_LOG="$bootstrap_install_log" \ + FAKE_BOOTSTRAP_LATEST_REDIRECT='https://github.com/BeamoINT/Claudex/releases/tag/v9.8.7' \ + "$root/bootstrap.sh" >"$tmp/bootstrap-old-owner.stdout" 2>"$tmp/bootstrap-old-owner.stderr"; then + printf '%s\n' 'expected redirect to previous repository owner to fail' >&2 + exit 1 +fi +grep -F 'the latest-release redirect did not stay on the expected GitHub repository' "$tmp/bootstrap-old-owner.stderr" >/dev/null +[[ ! -e "$bootstrap_install_log" ]] printf x >> "$bootstrap_archive" if PATH="$tmp/bootstrap-bin:/usr/bin:/bin" TMPDIR="$bootstrap_tmp" \ FAKE_BOOTSTRAP_FIXTURE="$bootstrap_fixture" FAKE_BOOTSTRAP_INSTALL_LOG="$bootstrap_install_log" \ From 2581a9d2e490e3b4771e9a6132d6d74dfbf0a069 Mon Sep 17 00:00:00 2001 From: BeamoINT Date: Sun, 27 Sep 2026 01:36:20 -0500 Subject: [PATCH 2/3] docs: keep release compare links aligned with checker --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f3c2197..ebf3158 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -510,8 +510,8 @@ uses [Semantic Versioning](https://semver.org/) for tagged releases. - Claude in Chrome first party profile support. - Cross platform regression coverage in GitHub Actions. -[Unreleased]: https://github.com/BeamoTech/Claudex/compare/v1.6.4...HEAD -[1.6.4]: https://github.com/BeamoTech/Claudex/compare/v1.6.3...v1.6.4 +[Unreleased]: https://github.com/BeamoINT/Claudex/compare/v1.6.4...HEAD +[1.6.4]: https://github.com/BeamoINT/Claudex/compare/v1.6.3...v1.6.4 [1.6.3]: https://github.com/BeamoINT/Claudex/compare/v1.6.2...v1.6.3 [1.6.2]: https://github.com/BeamoINT/Claudex/compare/v1.6.1...v1.6.2 [1.6.1]: https://github.com/BeamoINT/Claudex/compare/v1.6.0...v1.6.1 From 7911db56a20abf86f3d3a56e8e058baef59bcbd5 Mon Sep 17 00:00:00 2001 From: BeamoINT Date: Sun, 27 Sep 2026 01:39:50 -0500 Subject: [PATCH 3/3] test: exercise Windows bootstrap release requests --- test.ps1 | 4 +-- tests/bootstrap-windows.test.ps1 | 53 ++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 tests/bootstrap-windows.test.ps1 diff --git a/test.ps1 b/test.ps1 index c74ab3e..e9979ef 100644 --- a/test.ps1 +++ b/test.ps1 @@ -55,9 +55,7 @@ function Remove-TestPathWithRetry([string] $Path, [int] $TimeoutMilliseconds = 5 } try { - $bootstrapSource = Get-Content -LiteralPath (Join-Path $root 'bootstrap.ps1') -Raw - Assert-True ($bootstrapSource.Contains('$repositoryUrl = ''https://github.com/BeamoTech/Claudex''')) 'Windows bootstrap uses the canonical release repository' - Assert-True ($bootstrapSource.Contains('$apiUrl = ''https://api.github.com/repos/BeamoTech/Claudex/releases/latest''')) 'Windows bootstrap uses the canonical releases API' + & (Join-Path $root 'tests/bootstrap-windows.test.ps1') [IO.Directory]::CreateDirectory($testConfig) | Out-Null [IO.Directory]::CreateDirectory($fakeBin) | Out-Null if ($isWindowsPlatform -and $env:CI) { diff --git a/tests/bootstrap-windows.test.ps1 b/tests/bootstrap-windows.test.ps1 new file mode 100644 index 0000000..bc4a6f7 --- /dev/null +++ b/tests/bootstrap-windows.test.ps1 @@ -0,0 +1,53 @@ +$ErrorActionPreference = 'Stop' +Set-StrictMode -Version 2.0 + +$root = Split-Path -Parent $PSScriptRoot +$global:ClaudexBootstrapTestCalls = New-Object 'System.Collections.Generic.List[string]' +$global:ClaudexBootstrapTestArchive = $null +$expectedFailure = 'bootstrap fixture stopped after the checksum download' +$failure = $null + +try { + & { + function Invoke-RestMethod { + param([switch] $UseBasicParsing, [hashtable] $Headers, [string] $Uri, [int] $TimeoutSec) + $global:ClaudexBootstrapTestCalls.Add("api:$Uri") + return [pscustomobject] @{ tag_name = 'v9.8.7' } + } + + function Invoke-WebRequest { + param([switch] $UseBasicParsing, [hashtable] $Headers, [string] $Uri, [string] $OutFile, [int] $TimeoutSec) + $global:ClaudexBootstrapTestCalls.Add("download:$Uri") + if ($Uri.EndsWith('/SHA256SUMS', [StringComparison]::Ordinal)) { + throw 'bootstrap fixture stopped after the checksum download' + } + $global:ClaudexBootstrapTestArchive = $OutFile + [IO.File]::WriteAllText($OutFile, 'fixture') + } + + & (Join-Path $root 'bootstrap.ps1') + } +} catch { + $failure = $_.Exception.Message +} + +if ($failure -ne $expectedFailure) { throw "Windows bootstrap fixture failed unexpectedly: $failure" } +$expectedCalls = @( + 'api:https://api.github.com/repos/BeamoTech/Claudex/releases/latest', + 'download:https://github.com/BeamoTech/Claudex/releases/download/v9.8.7/claudex-9.8.7-windows.zip', + 'download:https://github.com/BeamoTech/Claudex/releases/download/v9.8.7/SHA256SUMS' +) +if ($global:ClaudexBootstrapTestCalls.Count -ne $expectedCalls.Count) { + throw "Windows bootstrap made $($global:ClaudexBootstrapTestCalls.Count) requests, expected $($expectedCalls.Count)" +} +for ($index = 0; $index -lt $expectedCalls.Count; $index += 1) { + if ($global:ClaudexBootstrapTestCalls[$index] -ne $expectedCalls[$index]) { + throw "Windows bootstrap request $index was $($global:ClaudexBootstrapTestCalls[$index]), expected $($expectedCalls[$index])" + } +} +if (-not $global:ClaudexBootstrapTestArchive -or (Test-Path -LiteralPath $global:ClaudexBootstrapTestArchive)) { + throw 'Windows bootstrap did not clean up the interrupted download' +} + +[Console]::WriteLine('Windows bootstrap release lookup and download tests passed') +Remove-Variable -Name ClaudexBootstrapTestCalls, ClaudexBootstrapTestArchive -Scope Global