Skip to content

feat(install): add /install/tasks route serving CLI install script#276

Merged
psdjungpulzze merged 2 commits into
mainfrom
feat/add-install-tasks-route-serve-cli-install-script
May 25, 2026
Merged

feat(install): add /install/tasks route serving CLI install script#276
psdjungpulzze merged 2 commits into
mainfrom
feat/add-install-tasks-route-serve-cli-install-script

Conversation

@psdjungpulzze
Copy link
Copy Markdown
Contributor

Summary

  • Adds src/app/install/tasks/route.ts — a Next.js Route Handler that returns Content-Type: text/plain with a POSIX shell install script
  • Fixes https://build.interactor.com/install/tasks returning an HTML login page (the route didn't exist, so the app was falling through to the Account Server)
  • Script detects OS (linux/macos) and arch (x64/arm64), fetches the latest GitHub Release tag, downloads the matching binary to ~/.local/bin/itasks, and prints PATH guidance if needed
  • Fails gracefully with a clear message if no GitHub Release exists yet (binary publishing is a separate CI task)

Test plan

  • curl -fsSL https://build.interactor.com/install/tasks returns Content-Type: text/plain with #!/bin/sh as the first line
  • curl -fsSL https://build.interactor.com/install/tasks | sh -n passes shell syntax check (no parse errors)
  • sh -n passes locally against the emitted script
  • Typecheck passes (npm run typecheck)

Closes #274

Fixes https://build.interactor.com/install/tasks returning an HTML login
page instead of a shell script. The route was referenced by local-sync-panel
but never existed in the codebase.

Closes #274
@psdjungpulzze psdjungpulzze merged commit 9005a2e into main May 25, 2026
7 checks passed
@psdjungpulzze psdjungpulzze deleted the feat/add-install-tasks-route-serve-cli-install-script branch May 25, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add /install/tasks route — serve CLI install script

1 participant