Skip to content

Commit 0f24653

Browse files
anandgupta42claude
andcommitted
fix: [#309] point install endpoint at altimate.sh/install (not altimate.ai/install)
altimate.ai is the marketing site (a React Router SPA on a different host) where `/install` falls through to an HTML 404 page. altimate.sh is the canonical altimate-code site and now serves the install script at `/install` via a Next.js route handler with proper text/x-shellscript content type and server-side GA4 tracking (companion PR in AltimateAI/altimate-code-website). The mismatch broke v0.7.1's standalone install path end-to-end: • `curl -fsSL https://altimate.ai/install | bash` fetched HTML and tried to bash-execute it (would error out, but the symptom was confusing). • `altimate upgrade` for curl-installed users fetches the install URL via `Installation.upgradeCurl()` to re-run the install script. With the broken URL, every curl-user's in-place upgrade silently failed. This PR swaps the seven references in this repo: • install (curl install script): two examples in --help block • README.md: install instruction • packages/opencode/src/installation/index.ts: the fetch URL inside `upgradeCurl()` • docs/docs/reference/troubleshooting.md: three references in the install troubleshooting section added in v0.7.1 • packages/opencode/test/install/upgrade-method.test.ts: assertion now requires altimate.sh/install AND explicitly rejects altimate.ai/install so a future regression that reintroduces the broken URL fires immediately • packages/opencode/test/branding/branding.test.ts: renamed brand-domain assertion to "references altimate-owned domain for user-facing URLs" that requires altimate.sh/install and rejects altimate.ai/install • packages/opencode/test/skill/release-v0.7.1-binary-adversarial.test.ts: the README curl-install assertion was pinning the old URL; updated `docs/mkdocs.yml`'s `altimate.ai/discord` link is unchanged — that's a separate marketing-site URL, not the install path. Pairs with AltimateAI/altimate-code-website#22 which adds the `app/install/route.ts` handler. Ship the website PR FIRST so the new URL is live before this one merges to main — otherwise curl-install would be broken in a different way (pointing at a not-yet-deployed endpoint) between merges. Closes #309. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 parent b052b41 commit 0f24653

7 files changed

Lines changed: 20 additions & 12 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ npm install -g altimate-code
3131
Or via curl (installs the `altimate` binary to `~/.altimate/bin`):
3232

3333
```bash
34-
curl -fsSL https://altimate.ai/install | bash
34+
curl -fsSL https://altimate.sh/install | bash
3535
```
3636

3737
The curl install drops a single self-contained binary named `altimate`. The npm install exposes both `altimate` and `altimate-code` on PATH; the curl install only exposes `altimate`. Alpine Linux (musl) and Windows on ARM64 are not currently supported by the standalone binary — use `apk add gcompat` on Alpine, or use WSL on Windows-on-ARM.

‎docs/docs/reference/troubleshooting.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Standalone binary not found after curl install
66

7-
**Symptoms:** `altimate-code: command not found` after running `curl -fsSL https://altimate.ai/install | bash`.
7+
**Symptoms:** `altimate-code: command not found` after running `curl -fsSL https://altimate.sh/install | bash`.
88

99
As of v0.7.1 the curl-installed binary is named `altimate`, not `altimate-code`. The npm package continues to ship both names. If you scripted against the curl install:
1010

@@ -25,7 +25,7 @@ Or stay on the `altimate-code` name by installing via npm: `npm install -g altim
2525
The v0.7.0 curl install shipped without the NAPI native module. Fixed in v0.7.1 — the native module is now embedded directly into the binary. Re-install with:
2626

2727
```bash
28-
curl -fsSL https://altimate.ai/install | bash
28+
curl -fsSL https://altimate.sh/install | bash
2929
```
3030

3131
### Alpine Linux (musl) not supported
@@ -39,7 +39,7 @@ curl -fsSL https://altimate.ai/install | bash
3939
apk add gcompat
4040

4141
# Then either:
42-
curl -fsSL https://altimate.ai/install | bash # standalone binary
42+
curl -fsSL https://altimate.sh/install | bash # standalone binary
4343
# or:
4444
apk add gcompat && npm install -g altimate-code # npm install
4545
```

‎install‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Options:
2020
--no-modify-path Don't modify shell config files (.zshrc, .bashrc, etc.)
2121
2222
Examples:
23-
curl -fsSL https://altimate.ai/install | bash
24-
curl -fsSL https://altimate.ai/install | bash -s -- --version 1.0.180
23+
curl -fsSL https://altimate.sh/install | bash
24+
curl -fsSL https://altimate.sh/install | bash -s -- --version 1.0.180
2525
./install --binary /path/to/altimate
2626
EOF
2727
}

‎packages/opencode/src/installation/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export namespace Installation {
3434
}
3535

3636
async function upgradeCurl(target: string) {
37-
const body = await fetch("https://altimate.ai/install").then((res) => {
37+
const body = await fetch("https://altimate.sh/install").then((res) => {
3838
if (!res.ok) throw new Error(res.statusText)
3939
return res.text()
4040
})

‎packages/opencode/test/branding/branding.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,12 @@ describe("Installation Script", () => {
121121
expect(installContent).not.toContain("anomalyco")
122122
})
123123

124-
test("references altimate.ai domain for user-facing URLs", () => {
125-
expect(installContent).toContain("altimate.ai")
124+
test("references altimate-owned domain for user-facing URLs", () => {
125+
// The install URL moved from altimate.ai → altimate.sh in v0.7.1 because
126+
// altimate.ai/install was an unreachable route on the marketing SPA
127+
// (issue #309). altimate.sh is the canonical altimate-code site.
128+
expect(installContent).toContain("altimate.sh/install")
129+
expect(installContent).not.toContain("altimate.ai/install")
126130
})
127131
})
128132

‎packages/opencode/test/install/upgrade-method.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ describe("upgrade execution", () => {
8585
expect(INSTALLATION_SRC).toContain("HOMEBREW_NO_AUTO_UPDATE")
8686
})
8787

88-
test("curl upgrade uses altimate.ai/install endpoint", () => {
89-
expect(INSTALLATION_SRC).toContain("https://altimate.ai/install")
88+
test("curl upgrade uses altimate.sh/install endpoint", () => {
89+
expect(INSTALLATION_SRC).toContain("https://altimate.sh/install")
90+
// altimate.ai/install was the legacy URL (broken since 2026-05; tracked in
91+
// #309). Keep the assertion so any future regression that reintroduces it
92+
// fires immediately.
93+
expect(INSTALLATION_SRC).not.toContain("https://altimate.ai/install")
9094
})
9195

9296
test("VERSION normalization strips v prefix", () => {

‎packages/opencode/test/skill/release-v0.7.1-binary-adversarial.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ describe("v0.7.1 PR #820 — docs surface coverage", () => {
281281
})
282282
test("README documents the curl install option with the correct binary name", () => {
283283
const readme = readFileSync(path.join(REPO_ROOT, "README.md"), "utf8")
284-
expect(readme).toContain("curl -fsSL https://altimate.ai/install | bash")
284+
expect(readme).toContain("curl -fsSL https://altimate.sh/install | bash")
285285
expect(readme).toContain("~/.altimate/bin")
286286
expect(readme).toMatch(/single self-contained binary named `altimate`/)
287287
})

0 commit comments

Comments
 (0)