Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

chore(website): publish dev-channel installers

Salman Qureshiec1272ae9608
diff --git a/docs/install-dev.ps1 b/docs/install-dev.ps1
new file mode 100755
index 00000000..88b28eeb
--- /dev/null
+++ b/docs/install-dev.ps1
@@ -0,0 +1,26 @@
+# Mercury DEV-channel installer for Windows.
+#
+# irm https://mercuryagent.sh/install-dev.ps1 | iex
+#
+# Installs the rolling `mercury-dev-latest` GitHub pre-release as
+# mercury-dev.exe under ~\.mercury-dev — it coexists with a stable install
+# (mercury.exe under ~\.mercury) on the same machine. Re-run to update.
+#
+# This is a thin wrapper around the stable installer with
+# MERCURY_CHANNEL=dev; all logic lives in install.ps1 so the two never drift.
+
+#Requires -Version 5
+$ErrorActionPreference = 'Stop'
+
+# Running from a checkout: prefer the sibling stable installer.
+$sibling = Join-Path $PSScriptRoot 'install.ps1'
+if (Test-Path $sibling) {
+ $env:MERCURY_CHANNEL = 'dev'
+ & $sibling
+ return
+}
+
+# Otherwise pull the stable installer from the always-current site URL. The
+# env var is set in this session, which iex executes inside.
+$env:MERCURY_CHANNEL = 'dev'
+Invoke-RestMethod -Uri 'https://mercuryagent.sh/install.ps1' | Invoke-Expression
\ No newline at end of file
diff --git a/docs/install-dev.sh b/docs/install-dev.sh
new file mode 100755
index 00000000..4861391e
--- /dev/null
+++ b/docs/install-dev.sh
@@ -0,0 +1,43 @@
+#!/usr/bin/env sh
+# shellcheck shell=sh
+#
+# Mercury DEV-channel installer for macOS and Linux.
+#
+# curl -fsSL https://mercuryagent.sh/install-dev.sh | sh
+#
+# Installs the rolling `mercury-dev-latest` GitHub pre-release as
+# `mercury-dev` under $HOME/.mercury-dev — it coexists with a stable install
+# (`mercury` under $HOME/.mercury) on the same machine. Re-run to update.
+#
+# This is a thin wrapper around the stable installer with MERCURY_CHANNEL=dev;
+# ALL logic lives in install.sh so the two can never drift.
+
+set -eu
+
+CHANNEL_ENV="MERCURY_CHANNEL=dev"
+
+# Running inside a repo checkout: prefer the sibling stable installer.
+# (POSIX sh has no "$0"-safe dirname in every case; guard rather than trust.)
+case "$0" in
+ */*)
+ here=$(CDPATH= cd -- "$(dirname -- "$0")" 2>/dev/null && pwd || true)
+ ;;
+ *)
+ here=""
+ ;;
+esac
+if [ -n "$here" ] && [ -f "$here/install.sh" ]; then
+ exec env MERCURY_CHANNEL=dev sh "$here/install.sh"
+fi
+
+# Otherwise pull the stable installer from the always-current site URL.
+# The MERCURY_CHANNEL env var is set in the child shell's environment, so it
+# flows through the pipe into install.sh.
+if command -v curl >/dev/null 2>&1; then
+ curl -fsSL https://mercuryagent.sh/install.sh | env MERCURY_CHANNEL=dev sh
+elif command -v wget >/dev/null 2>&1; then
+ wget -qO- https://mercuryagent.sh/install.sh | env MERCURY_CHANNEL=dev sh
+else
+ printf 'x Need curl or wget to fetch the Mercury installer.\n' >&2
+ exit 1
+fi
\ No newline at end of file