Commit graph

7 commits

Author SHA1 Message Date
91204e9d4e fix(install): resolve the newest OpenCode build actually published for the platform
- don't trust opencode.ai metadata (it can advertise a version whose platform binary isn't published yet, e.g. 'Version 2.0.28 is not available for linux-x64')
- resolve_latest_published() reads the platform package's npm dist-tag latest (@opencode/cli-<os>-<arch>[-baseline][-musl]) and passes --version to the official installer
- README note updated
2026-10-13 09:06:17 +00:00
bbe6b042a7 feat: standalone install-service.sh; install.sh delegates the service step
- new install-service.sh: creates/removes the OpenCode web UI systemd service as its own process (interactive by default, flags for automation, --uninstall, --dry-run, backs up an existing unit)
- install.sh no longer embeds the service logic; run_service_setup locates the sibling script (or downloads it) and invokes it as a separate process
- README documents running install-service.sh on its own
2026-10-13 07:38:17 +00:00
169c900805 fix(install): prompt via /dev/tty so 'curl | bash' is interactive
- prompts (location, OpenCode activation, web UI service, collision strategy) now read from the controlling terminal, not stdin
- have_tty()/tty_read() helpers; all read sites routed through tty_read
- previously 'curl | bash' had no TTY on stdin, so every prompt was silently skipped
- README: note the one-liner is interactive (and falls back to safe defaults in CI)
2026-10-13 07:36:11 +00:00
b2939d525a fix(install): detect and offer to activate OpenCode on PATH
- ensure_opencode no longer reports 'already installed' when the binary exists but isn't reachable; it now reports the PATH gap
- activate_opencode: explains the rc line / 'source ~/.bashrc', and interactively offers to symlink opencode into /usr/local/bin so it works immediately in every shell
- post-install hint reflects whether opencode is actually on PATH
- README: PATH & activation section
2026-10-13 07:32:43 +00:00
b25b2fa7c8 feat(install): interactive web UI service setup; README for the public repo
- install.sh: at the end of an interactive install, offer to set up the OpenCode web UI as a systemd service. Prompts for bind address (default 127.0.0.1), port (4096), working dir and enable-on-boot, shows the unit, then asks to install. --service/--no-service for scripting; off by default non-interactively. Non-systemd hosts get the manual command.
- fix: perform_install returned non-zero under set -e, aborting the post-install and service steps
- README: repository is now public (quick curl|bash install, no token); document the web UI service and its security default
2026-10-13 07:29:11 +00:00
2e1f8ca525 feat(install): all-in-one bootstrap — install OpenCode then the fork
- install.sh now ensures the OpenCode runtime is present: detects it on PATH or at $HOME/.opencode/bin, and otherwise runs the official installer (opencode.ai/v2/install)
- new flags: --with-opencode, --no-opencode, --opencode-version V, --opencode-no-path
- --dry-run never installs the runtime; OPENCODE_INSTALLER_URL can be overridden (mirrors/tests)
- README documents the all-in-one behaviour and the new runtime flags
2026-10-13 06:25:16 +00:00
5e84cf7af0 docs: adapt README to the Architect fork; add fork installer
- README rewritten around the Controlling Architect concept (spec -> build -> report -> verify), the architect/builder agency and the channels; upstream README preserved as README.upstream.md
- install.sh: fork-native installer adapted from Darren Hinde's OAC installer. Syncs the complete .opencode payload (no registry), supports local/global/custom, skip/overwrite/backup, --source/--token/--branch/--yes/--force/--dry-run
2026-10-12 09:11:39 +00:00