Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

feat(rebrand): repoint avibe distribution surface

cyhd1ed7514dff8
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index c1ccf2867..814a86e64 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -196,10 +196,10 @@ jobs:
throw "Missing wheel artifact"
}
- $env:VIBE_INSTALL_PACKAGE_SPEC = $wheel
+ $env:AVIBE_INSTALL_PACKAGE_SPEC = $wheel
& .\install.ps1 *>&1 | Tee-Object -FilePath install-output.log
- if (-not (Select-String -Path install-output.log -Pattern 'vibe-remote installed successfully \(from custom package spec\)' -Quiet)) {
+ if (-not (Select-String -Path install-output.log -Pattern 'avibe-os installed successfully \(from custom package spec\)' -Quiet)) {
throw "Installer output missing custom package success message"
}
@@ -216,6 +216,6 @@ jobs:
throw "Get-Command vibe did not resolve to vibe.exe"
}
- if (-not (Select-String -Path vibe-version.log -Pattern 'vibe-remote ' -Quiet)) {
+ if (-not (Select-String -Path vibe-version.log -Pattern 'avibe-os ' -Quiet)) {
throw "vibe version output missing expected marker"
}
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index d3224723b..0d63598a5 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -272,4 +272,4 @@ jobs:
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
# Uses trusted publishing (OIDC), no API token needed
- # Configure at: https://pypi.org/manage/project/vibe-remote/settings/publishing/
+ # Configure at: https://pypi.org/manage/project/avibe-os/settings/publishing/
diff --git a/.github/workflows/release_ai.yml b/.github/workflows/release_ai.yml
index 90fbc91f6..7e5ba17be 100644
--- a/.github/workflows/release_ai.yml
+++ b/.github/workflows/release_ai.yml
@@ -451,9 +451,9 @@ jobs:
TAG: ${{ steps.tag.outputs.tag }}
run: |
TAG_MSG=$(git tag -l --format='%(contents)' "$TAG")
- if echo "$TAG_MSG" | grep -qE 'vibe-remote:update-notification[[:space:]]*=[[:space:]]*none'; then
+ if echo "$TAG_MSG" | grep -qE '(avibe|vibe-remote):update-notification[[:space:]]*=[[:space:]]*none'; then
echo "Silent update marker found in tag annotation; prepending to release notes."
- { printf '<!-- vibe-remote:update-notification=none -->\n\n'; cat release.md; } > release.md.tmp
+ { printf '<!-- avibe:update-notification=none -->\n<!-- vibe-remote:update-notification=none -->\n\n'; cat release.md; } > release.md.tmp
mv release.md.tmp release.md
fi
diff --git a/core/update_checker.py b/core/update_checker.py
index 87e73cef5..36e9d5001 100644
--- a/core/update_checker.py
+++ b/core/update_checker.py
@@ -24,7 +24,7 @@ from config import paths
from config.v2_config import UpdateConfig
from config.v2_settings import _infer_channel_platform, _infer_user_platform, _split_scoped_key
from modules.im import InlineButton, InlineKeyboard, MessageContext
-from vibe.upgrade import has_newer_version, select_latest_update_version
+from vibe.upgrade import PACKAGE_NAME, get_update_metadata_url, has_newer_version, select_latest_update_version
if TYPE_CHECKING:
from core.controller import Controller
@@ -41,12 +41,12 @@ MIN_CHECK_INTERVAL_MINUTES = 1
# This gives admins time to read the notification and decide whether to update manually.
NOTIFICATION_GRACE_PERIOD_MINUTES = 10
-GITHUB_RELEASE_TAG_BASE_URL = "https://github.com/cyhhao/vibe-remote/releases/tag"
-GITHUB_RELEASE_API_BASE_URL = "https://api.github.com/repos/cyhhao/vibe-remote/releases/tags"
+GITHUB_RELEASE_TAG_BASE_URL = "https://github.com/avibe-bot/avibe/releases/tag"
+GITHUB_RELEASE_API_BASE_URL = "https://api.github.com/repos/avibe-bot/avibe/releases/tags"
UPDATE_NOTIFICATION_POLICY_DEFAULT = "default"
UPDATE_NOTIFICATION_POLICY_NONE = "none"
UPDATE_NOTIFICATION_POLICY_MARKER_RE = re.compile(
- r"<!--\s*vibe-remote:update-notification\s*=\s*(?P<policy>none|default)\s*-->",
+ r"<!--\s*(?:avibe|vibe-remote):update-notification\s*=\s*(?P<policy>none|default)\s*-->",
re.IGNORECASE,
)
@@ -59,8 +59,8 @@ def _fetch_pypi_version_sync() -> Dict[str, Any]:
result = {"current": current, "latest": None, "has_update": False, "error": None}
try:
- url = "https://pypi.org/pypi/vibe-remote/json"
- req = urllib.request.Request(url, headers={"User-Agent": "vibe-remote"})
+ url = get_update_metadata_url()
+ req = urllib.request.Request(url, headers={"User-Agent": PACKAGE_NAME})
with urllib.request.urlopen(req, timeout=10) as resp:
data = json.loads(resp.read().decode("utf-8"))
latest = select_latest_update_version(data, current)
@@ -107,7 +107,7 @@ def _fetch_update_notification_policy_sync(version: str) -> Dict[str, Any]:
_github_release_api_url(version),
headers={
"Accept": "application/vnd.github+json",
- "User-Agent": "vibe-remote",
+ "User-Agent": PACKAGE_NAME,
},
)
with urllib.request.urlopen(req, timeout=10) as resp:
diff --git a/install.ps1 b/install.ps1
index 1ac50746a..3cca6eb22 100644
--- a/install.ps1
+++ b/install.ps1
@@ -1,13 +1,13 @@
-# Vibe Remote Installation Script for Windows
-# Usage: irm https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.ps1 | iex
+# avibe Installation Script for Windows
+# Usage: irm https://raw.githubusercontent.com/avibe-bot/avibe/master/install.ps1 | iex
#
# Prerequisites: None! uv will be installed automatically and manages Python for you.
$ErrorActionPreference = "Stop"
# Configuration
-$REPO = "cyhhao/vibe-remote"
-$PACKAGE_NAME = "vibe-remote"
+$REPO = "avibe-bot/avibe"
+$PACKAGE_NAME = "avibe-os"
$TSINGHUA_INDEX_URL = "https://pypi.tuna.tsinghua.edu.cn/simple"
$NODE_MINIMUM_REQUIREMENT = "20.19+ or 22.12+"
@@ -234,19 +234,22 @@ function Invoke-UvToolInstallAttempt {
}
function Install-Vibe {
- Write-Info "Installing vibe-remote (Python will be downloaded automatically if needed)..."
+ Write-Info "Installing avibe-os (Python will be downloaded automatically if needed)..."
- $customPackageSpec = $env:VIBE_INSTALL_PACKAGE_SPEC
+ $customPackageSpec = $env:AVIBE_INSTALL_PACKAGE_SPEC
+ if (-not $customPackageSpec) {
+ $customPackageSpec = $env:VIBE_INSTALL_PACKAGE_SPEC
+ }
if ($customPackageSpec) {
Write-Info "Trying custom package spec..."
$result = Invoke-UvToolInstallAttempt -Arguments @($customPackageSpec, "--force")
if ($result.Success) {
- Write-Success "vibe-remote installed successfully (from custom package spec)"
+ Write-Success "avibe-os installed successfully (from custom package spec)"
return
}
- $failureMessage = "Failed to install vibe-remote from custom package spec"
+ $failureMessage = "Failed to install avibe-os from custom package spec"
if ($result.ExitCode -ne $null) {
$failureMessage += " (exit code $($result.ExitCode))"
}
@@ -277,7 +280,7 @@ function Install-Vibe {
Write-Info "Trying $($attempt.Name)..."
$result = Invoke-UvToolInstallAttempt -Arguments $attempt.Arguments
if ($result.Success) {
- Write-Success "vibe-remote installed successfully (from $($attempt.Name))"
+ Write-Success "avibe-os installed successfully (from $($attempt.Name))"
return
}
@@ -293,7 +296,7 @@ function Install-Vibe {
$failures += $failureMessage
}
- Write-Error "Failed to install vibe-remote from all sources.`n$($failures -join "`n`n")"
+ Write-Error "Failed to install avibe-os from all sources.`n$($failures -join "`n`n")"
}
function Test-Installation {
@@ -370,7 +373,9 @@ function Write-NextSteps {
Write-Host " vibe doctor - Run diagnostics"
Write-Host ""
Write-Host "Uninstall:" -ForegroundColor Blue
+ Write-Host " uv tool uninstall avibe-os"
Write-Host " uv tool uninstall vibe-remote"
+ Write-Host " pip uninstall avibe-os vibe-remote"
Write-Host " Remove-Item -Recurse ~\.vibe_remote # remove config and data"
Write-Host ""
Write-Host "Documentation:" -ForegroundColor Blue
@@ -391,7 +396,7 @@ function Main {
# block installation of the main Vibe Remote CLI/service.
Install-NodeOptional
- # Install vibe-remote
+ # Install avibe-os
Install-Vibe
# Verify
diff --git a/install.sh b/install.sh
index 3c95d3a10..a5c31dcf9 100755
--- a/install.sh
+++ b/install.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Vibe Remote Installation Script
+# avibe Installation Script
# Usage: curl -fsSL https://avibe.bot/install.sh | bash
#
# Prerequisites: None! uv will be installed automatically and manages Python for you.
@@ -14,8 +14,8 @@ BLUE='\033[0;34m'
NC='\033[0m' # No Color
# Configuration
-REPO="cyhhao/vibe-remote"
-PACKAGE_NAME="vibe-remote"
+REPO="avibe-bot/avibe"
+PACKAGE_NAME="avibe-os"
NODE_MINIMUM_REQUIREMENT="20.19+ or 22.12+"
VIBE_BIN_PATH=""
VIBE_TOOL_BIN_DIR=""
@@ -475,10 +475,10 @@ install_uv() {
fi
}
-# Install vibe-remote using uv (uv auto-downloads Python if needed)
+# Install avibe-os using uv (uv auto-downloads Python if needed)
install_vibe() {
- info "Installing vibe-remote (Python will be downloaded automatically if needed)..."
- local install_package_spec="${VIBE_INSTALL_PACKAGE_SPEC:-}"
+ info "Installing avibe-os (Python will be downloaded automatically if needed)..."
+ local install_package_spec="${AVIBE_INSTALL_PACKAGE_SPEC:-${VIBE_INSTALL_PACKAGE_SPEC:-}}"
VIBE_TOOL_BIN_DIR="$(choose_tool_bin_dir || true)"
if [ -n "$VIBE_TOOL_BIN_DIR" ]; then
@@ -489,11 +489,11 @@ install_vibe() {
if [ -n "$install_package_spec" ]; then
if install_package_candidate "$install_package_spec"; then
- success "vibe-remote installed successfully (from custom package spec)"
+ success "avibe-os installed successfully (from custom package spec)"
return 0
fi
- error "Failed to install vibe-remote from custom package spec: $install_package_spec"
+ error "Failed to install avibe-os from custom package spec: $install_package_spec"
fi
# uv tool install will auto-download Python if not available
@@ -501,13 +501,13 @@ install_vibe() {
# --refresh: refresh package cache to get latest version
# Try in order: PyPI -> China mirror (tsinghua) -> GitHub
if install_package_candidate "$PACKAGE_NAME"; then
- success "vibe-remote installed successfully (from PyPI)"
+ success "avibe-os installed successfully (from PyPI)"
elif install_package_candidate "$PACKAGE_NAME" --index-url https://pypi.tuna.tsinghua.edu.cn/simple; then
- success "vibe-remote installed successfully (from Tsinghua mirror)"
+ success "avibe-os installed successfully (from Tsinghua mirror)"
elif install_package_candidate "git+https://github.com/${REPO}.git"; then
- success "vibe-remote installed successfully (from GitHub)"
+ success "avibe-os installed successfully (from GitHub)"
else
- error "Failed to install vibe-remote from all sources"
+ error "Failed to install avibe-os from all sources"
fi
}
@@ -604,8 +604,9 @@ print_next_steps() {
echo " vibe doctor - Run diagnostics"
echo ""
echo -e "${BLUE}Uninstall:${NC}"
- echo " uv tool uninstall vibe-remote # if installed with uv"
- echo " pip uninstall vibe-remote # if installed with pip"
+ echo " uv tool uninstall avibe-os # current uv install"
+ echo " uv tool uninstall vibe-remote # legacy uv install"
+ echo " pip uninstall avibe-os vibe-remote"
echo " rm -rf ~/.vibe_remote # remove config and data"
echo ""
echo -e "${BLUE}If 'vibe' is still not found:${NC}"
@@ -638,7 +639,7 @@ main() {
# block installation of the main Vibe Remote CLI/service.
install_node_optional
- # Install vibe-remote
+ # Install avibe-os
install_vibe
# Verify
diff --git a/npm/avibe/README.md b/npm/avibe/README.md
index 4c973435d..19c0626dc 100644
--- a/npm/avibe/README.md
+++ b/npm/avibe/README.md
@@ -1,8 +1,8 @@
# avibe
-NPM entrypoint for [Vibe Remote](https://github.com/cyhhao/vibe-remote).
+NPM entrypoint for [avibe](https://github.com/avibe-bot/avibe).
-Vibe Remote is still installed and upgraded as the Python package `vibe-remote`.
+avibe is installed and upgraded as the Python package `avibe-os`.
This package is a thin bootstrapper for developers who expect npm-native entry
points.
@@ -28,13 +28,13 @@ available when you want to call the npm bootstrapper explicitly.
```bash
vibe # start Vibe Remote after global npm install
-avibe install # install or refresh the underlying vibe-remote Python CLI
+avibe install # install or refresh the underlying avibe-os Python CLI
avibe init # start the setup wizard
avibe start # start Vibe Remote
avibe status # show runtime status
avibe doctor # diagnose local setup issues
avibe remote # configure remote Web UI access
-avibe upgrade # upgrade the underlying vibe-remote Python package
+avibe upgrade # upgrade the underlying avibe-os Python package
```
After bootstrap, the npm entrypoint delegates to the real `vibe` command.
@@ -46,9 +46,9 @@ After bootstrap, the npm entrypoint delegates to the real `vibe` command.
- Windows: PowerShell
The installer downloads `uv` automatically when it is missing. `uv` manages the
-Python runtime for `vibe-remote`.
+Python runtime for `avibe-os`.
## Docs
- <https://docs.avibe.bot>
-- <https://github.com/cyhhao/vibe-remote>
+- <https://github.com/avibe-bot/avibe>
diff --git a/npm/avibe/bin/avibe.js b/npm/avibe/bin/avibe.js
index 68c93aeb1..36877d38c 100755
--- a/npm/avibe/bin/avibe.js
+++ b/npm/avibe/bin/avibe.js
@@ -10,10 +10,10 @@ const packageJson = require("../package.json");
const INSTALL_SH_URL =
process.env.AVIBE_INSTALL_SH_URL ||
- "https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.sh";
+ "https://raw.githubusercontent.com/avibe-bot/avibe/master/install.sh";
const INSTALL_PS1_URL =
process.env.AVIBE_INSTALL_PS1_URL ||
- "https://raw.githubusercontent.com/cyhhao/vibe-remote/master/install.ps1";
+ "https://raw.githubusercontent.com/avibe-bot/avibe/master/install.ps1";
function printHelp() {
console.log(`avibe ${packageJson.version}
@@ -24,13 +24,13 @@ Usage:
npx @avibe/cli Install Vibe Remote if needed, then start the setup wizard
avibe Same as above after npm install -g @avibe/cli
vibe Same as above after npm install -g @avibe/cli
- avibe install Install or refresh the underlying vibe-remote Python CLI
+ avibe install Install or refresh the underlying avibe-os Python CLI
avibe init Start the setup wizard
avibe start Start Vibe Remote
avibe status Show runtime status
avibe doctor Diagnose local setup issues
avibe remote Configure remote Web UI access
- avibe upgrade Upgrade the underlying vibe-remote Python package
+ avibe upgrade Upgrade the underlying avibe-os Python package
After bootstrap, avibe delegates to the real 'vibe' command.
Docs: https://docs.avibe.bot`);
diff --git a/npm/avibe/package.json b/npm/avibe/package.json
index a7e828c61..9d4485519 100644
--- a/npm/avibe/package.json
+++ b/npm/avibe/package.json
@@ -1,17 +1,17 @@
{
"name": "@avibe/cli",
"version": "2.2.14",
- "description": "NPM entrypoint for installing and running Vibe Remote",
+ "description": "NPM entrypoint for installing and running avibe",
"license": "MIT",
"author": "cyhhao",
"homepage": "https://docs.avibe.bot",
"repository": {
"type": "git",
- "url": "git+https://github.com/cyhhao/vibe-remote.git",
+ "url": "git+https://github.com/avibe-bot/avibe.git",
"directory": "npm/avibe"
},
"bugs": {
- "url": "https://github.com/cyhhao/vibe-remote/issues"
+ "url": "https://github.com/avibe-bot/avibe/issues"
},
"bin": {
"avibe": "bin/avibe.js",
@@ -26,6 +26,7 @@
},
"keywords": [
"avibe",
+ "avibe-os",
"vibe-remote",
"claude-code",
"codex",
diff --git a/pyproject.toml b/pyproject.toml
index daef8cb2f..e3e7a26d9 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,9 +3,9 @@ requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[project]
-name = "vibe-remote"
+name = "avibe-os"
dynamic = ["version"]
-description = "Local-first agent runtime for Slack, Discord, Telegram, WeChat, and Lark"
+description = "Local-first Agent OS for Web and IM agent workflows"
readme = "README.md"
license = "MIT"
requires-python = ">=3.10"
@@ -21,6 +21,7 @@ keywords = [
"feishu",
"ai",
"agent",
+ "agent-os",
"claude-code",
"opencode",
"codex",
@@ -71,10 +72,10 @@ dependencies = [
]
[project.urls]
-Homepage = "https://github.com/cyhhao/vibe-remote"
-Repository = "https://github.com/cyhhao/vibe-remote"
-Documentation = "https://github.com/cyhhao/vibe-remote#readme"
-Issues = "https://github.com/cyhhao/vibe-remote/issues"
+Homepage = "https://github.com/avibe-bot/avibe"
+Repository = "https://github.com/avibe-bot/avibe"
+Documentation = "https://github.com/avibe-bot/avibe#readme"
+Issues = "https://github.com/avibe-bot/avibe/issues"
[project.scripts]
vibe = "vibe.cli:main"
diff --git a/scripts/incus_tenant.py b/scripts/incus_tenant.py
index 5030ed697..13a442f26 100755
--- a/scripts/incus_tenant.py
+++ b/scripts/incus_tenant.py
@@ -194,7 +194,7 @@ def cloud_init_user_data(spec: TenantSpec) -> str:
config_json = json.dumps(default_config(spec), indent=2)
install_prefix = ""
if spec.install_package_spec:
- install_prefix = f"export VIBE_INSTALL_PACKAGE_SPEC={shlex.quote(spec.install_package_spec)}; "
+ install_prefix = f"export AVIBE_INSTALL_PACKAGE_SPEC={shlex.quote(spec.install_package_spec)}; "
install_command = install_prefix + "curl -fsSL https://avibe.bot/install.sh | bash"
runcmd = [
["mkdir", "-p", TENANT_WORKDIR, f"{TENANT_HOME}/.vibe_remote/config"],
@@ -613,7 +613,7 @@ def build_parser() -> argparse.ArgumentParser:
create.add_argument("--backend", choices=["opencode", "claude", "codex"], default="opencode", help="Default agent backend.")
create.add_argument(
"--install-package-spec",
- help="Optional package spec passed to the Vibe Remote installer, e.g. git+https://github.com/cyhhao/vibe-remote.git@master.",
+ help="Optional package spec passed to the avibe installer, e.g. git+https://github.com/avibe-bot/avibe.git@master.",
)
add_common(create)
create.set_defaults(func=cmd_create)
diff --git a/scripts/run_install_audit.sh b/scripts/run_install_audit.sh
index a1cacd8e8..c1f01603b 100755
--- a/scripts/run_install_audit.sh
+++ b/scripts/run_install_audit.sh
@@ -52,7 +52,7 @@ def build_wheel(dest: Path, version: str) -> Path:
if result.returncode != 0:
raise RuntimeError(result.stdout + result.stderr)
- wheel = dest / f"vibe_remote-{version}-py3-none-any.whl"
+ wheel = dest / f"avibe_os-{version}-py3-none-any.whl"
if not wheel.exists():
raise RuntimeError(f"Missing built wheel: {wheel}")
return wheel
@@ -66,7 +66,7 @@ def build_scenarios(current_name: str, old_name: str, new_name: str) -> list[tup
set -euo pipefail
apt-get update >/dev/null
apt-get install -y --no-install-recommends curl ca-certificates bash procps >/dev/null
-cat /repo/install.sh | env VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
+cat /repo/install.sh | env AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
test "$(command -v vibe)" = "/usr/local/bin/vibe"
vibe version | tee /tmp/vibe-version.log
grep -q '9997.0.0' /tmp/vibe-version.log
@@ -78,7 +78,7 @@ grep -q '9997.0.0' /tmp/vibe-version.log
set -euo pipefail
apt-get update >/dev/null
apt-get install -y --no-install-recommends curl ca-certificates bash procps >/dev/null
-cat /repo/install.sh | env VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
+cat /repo/install.sh | env AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
command -v vibe
vibe >/tmp/vibe-start.log 2>&1 &
sleep 3
@@ -98,7 +98,7 @@ cat > "$HOME/.local/bin/vibe" <<'EOF'
echo "vibe-remote 0.1.0"
EOF
chmod +x "$HOME/.local/bin/vibe"
-cat /repo/install.sh | env VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
+cat /repo/install.sh | env AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
test "$(command -v vibe)" = "/usr/local/bin/vibe"
vibe version | tee /tmp/vibe-version.log
! grep -q '0.1.0' /tmp/vibe-version.log
@@ -114,7 +114,7 @@ apt-get install -y --no-install-recommends curl ca-certificates bash procps >/de
mkdir -p /tmp/case/bin
cd /tmp/case
export PATH="bin:/usr/local/bin:/usr/bin:/bin"
-cat /repo/install.sh | env VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
+cat /repo/install.sh | env AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
test ! -e /tmp/case/bin/vibe
test "$(command -v vibe)" = "/usr/local/bin/vibe"
""",
@@ -130,7 +130,7 @@ export VIRTUAL_ENV=/tmp/.venv
export PYENV_ROOT=/tmp/.pyenv
export MISE_DATA_DIR=/tmp/.local/share/mise
export PATH="/tmp/.venv/bin:/tmp/.pyenv/shims:/tmp/.pyenv/versions/3.12.0/bin:/tmp/.local/share/mise/installs/python/3.12.1/bin:/usr/local/bin:/usr/bin:/bin"
-cat /repo/install.sh | env VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
+cat /repo/install.sh | env AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
test ! -e /tmp/.venv/bin/vibe
test ! -e /tmp/.pyenv/shims/vibe
test ! -e /tmp/.pyenv/versions/3.12.0/bin/vibe
@@ -145,7 +145,7 @@ set -euo pipefail
apt-get update >/dev/null
apt-get install -y --no-install-recommends curl ca-certificates bash procps >/dev/null
export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/bin"
-cat /repo/install.sh | env VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
+cat /repo/install.sh | env AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash
test "$(command -v vibe)" = "/usr/local/bin/vibe"
""",
),
@@ -158,7 +158,7 @@ apt-get install -y --no-install-recommends curl ca-certificates bash procps pass
mkdir -p /opt/locked/bin
chmod 0555 /opt/locked /opt/locked/bin || true
useradd -m tester
-install_output="$(su - tester -s /bin/bash -c 'export PATH="/opt/locked/bin:/usr/bin:/bin"; cat /repo/install.sh | env VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash' 2>&1)"
+install_output="$(su - tester -s /bin/bash -c 'export PATH="/opt/locked/bin:/usr/bin:/bin"; cat /repo/install.sh | env AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{current_name} bash' 2>&1)"
printf '%s\n' "$install_output"
printf '%s' "$install_output" | grep -F '/home/tester/.local/bin:$PATH'
test -x /home/tester/.local/bin/vibe
@@ -179,14 +179,14 @@ export PATH="/usr/local/bin:/usr/bin:/bin"
test "$(command -v vibe)" = "/usr/local/bin/vibe"
vibe version | tee /tmp/old-version.log
grep -q '9998.0.0' /tmp/old-version.log
-VIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json VIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{new_name} vibe check-update
-VIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json VIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{new_name} vibe upgrade
+AVIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json AVIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{new_name} vibe check-update
+AVIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json AVIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{new_name} vibe upgrade
hash -r
test "$(command -v vibe)" = "/usr/local/bin/vibe"
test "$(readlink /usr/local/bin/vibe)" = "/root/.local/bin/vibe"
vibe version | tee /tmp/new-version.log
grep -q '9999.0.0' /tmp/new-version.log
-VIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json vibe check-update | tee /tmp/check-update.log
+AVIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json vibe check-update | tee /tmp/check-update.log
grep -q 'latest version' /tmp/check-update.log
vibe >/tmp/vibe-upgrade-start.log 2>&1 &
sleep 3
diff --git a/tests/e2e/test_install_command.py b/tests/e2e/test_install_command.py
index ba0c4e2b1..c3732480f 100644
--- a/tests/e2e/test_install_command.py
+++ b/tests/e2e/test_install_command.py
@@ -17,7 +17,7 @@ BASE_IMAGE = os.environ.get("VIBE_INSTALL_TEST_IMAGE", "debian:trixie-slim")
def _resolve_install_wheel(fixtures_dir: Path) -> Path:
- configured_wheel = os.environ.get("VIBE_INSTALL_TEST_WHEEL")
+ configured_wheel = os.environ.get("AVIBE_INSTALL_TEST_WHEEL") or os.environ.get("VIBE_INSTALL_TEST_WHEEL")
if configured_wheel:
wheel_path = Path(configured_wheel).resolve()
assert wheel_path.exists(), f"Expected install test wheel at {wheel_path}"
@@ -32,7 +32,7 @@ def _resolve_install_wheel(fixtures_dir: Path) -> Path:
)
assert result.returncode == 0, result.stdout + result.stderr
- wheels = sorted(fixtures_dir.glob("vibe_remote-*.whl"))
+ wheels = sorted(fixtures_dir.glob("avibe_os-*.whl"))
assert wheels, "Expected a built wheel for install test"
return wheels[-1]
@@ -60,7 +60,7 @@ def test_install_command_starts_vibe_in_fresh_container():
command = (
"apt-get update >/dev/null && "
"apt-get install -y --no-install-recommends curl ca-certificates bash procps >/dev/null && "
- f"cat /work/install.sh | env VIBE_INSTALL_SKIP_SHOW_RUNTIME=1 VIBE_INSTALL_PACKAGE_SPEC=/fixtures/{wheel_path.name} bash && "
+ f"cat /work/install.sh | env VIBE_INSTALL_SKIP_SHOW_RUNTIME=1 AVIBE_INSTALL_PACKAGE_SPEC=/fixtures/{wheel_path.name} bash && "
"vibe version && "
"vibe && sleep 2 && vibe status"
)
@@ -93,8 +93,8 @@ def test_install_command_starts_vibe_in_fresh_container():
assert result.returncode == 0, result.stdout + result.stderr
assert "Installing vibe command into" in result.stdout
- assert "vibe-remote installed successfully (from custom package spec)" in result.stdout
- assert "vibe-remote " in result.stdout
+ assert "avibe-os installed successfully (from custom package spec)" in result.stdout
+ assert "avibe-os " in result.stdout
assert "Web UI:" in result.stdout
assert '"running": true' in result.stdout
assert '"service_pid":' in result.stdout
diff --git a/tests/e2e/test_upgrade_command.py b/tests/e2e/test_upgrade_command.py
index d3363af41..e03a98e38 100644
--- a/tests/e2e/test_upgrade_command.py
+++ b/tests/e2e/test_upgrade_command.py
@@ -43,7 +43,7 @@ def _build_test_wheel(fixtures_dir: Path, version: str) -> Path:
)
assert result.returncode == 0, result.stdout + result.stderr
- wheel_path = fixtures_dir / f"vibe_remote-{version}-py3-none-any.whl"
+ wheel_path = fixtures_dir / f"avibe_os-{version}-py3-none-any.whl"
assert wheel_path.exists(), f"Expected built wheel at {wheel_path}"
return wheel_path
@@ -72,14 +72,14 @@ def test_upgrade_command_uses_built_release_artifact():
'ln -sf "$HOME/.local/bin/vibe" /usr/local/bin/vibe',
'export PATH="/usr/local/bin:/usr/bin:/bin"',
"vibe version",
- "VIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json "
- f"VIBE_INSTALL_SKIP_SHOW_RUNTIME=1 VIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{wheel_path.name} vibe check-update",
- "VIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json "
- f"VIBE_INSTALL_SKIP_SHOW_RUNTIME=1 VIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{wheel_path.name} vibe upgrade",
+ "AVIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json "
+ f"VIBE_INSTALL_SKIP_SHOW_RUNTIME=1 AVIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{wheel_path.name} vibe check-update",
+ "AVIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json "
+ f"VIBE_INSTALL_SKIP_SHOW_RUNTIME=1 AVIBE_UPGRADE_PACKAGE_SPEC=/fixtures/{wheel_path.name} vibe upgrade",
"hash -r",
'printf "launcher=%s\n" "$(command -v vibe)"',
"vibe version",
- "VIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json vibe check-update",
+ "AVIBE_UPDATE_METADATA_URL=file:///fixtures/metadata.json vibe check-update",
"vibe",
"sleep 2",
"vibe status",
@@ -113,10 +113,10 @@ def test_upgrade_command_uses_built_release_artifact():
subprocess.run(["docker", "rm", "-f", container_name], capture_output=True)
assert result.returncode == 0, result.stdout + result.stderr
- assert f"vibe-remote {INITIAL_RELEASE_VERSION}" in result.stdout
+ assert f"avibe-os {INITIAL_RELEASE_VERSION}" in result.stdout
assert "New version available: 9999.0.0" in result.stdout
assert "Upgrade successful!" in result.stdout
assert "launcher=/usr/local/bin/vibe" in result.stdout
- assert f"vibe-remote {TEST_RELEASE_VERSION}" in result.stdout
+ assert f"avibe-os {TEST_RELEASE_VERSION}" in result.stdout
assert "You are using the latest version." in result.stdout
assert '"running": true' in result.stdout
diff --git a/tests/test_install_script.py b/tests/test_install_script.py
index 82ead06f4..d7b75e67c 100644
--- a/tests/test_install_script.py
+++ b/tests/test_install_script.py
@@ -48,7 +48,7 @@ def _write_fake_uv(path: Path, uv_log: Path) -> None:
if [ "${{1:-}}" = "--help" ]; then
echo "usage: vibe"
elif [ "${{1:-}}" = "version" ]; then
- echo "vibe-remote 9.9.9"
+ echo "avibe-os 9.9.9"
elif [ "${{1:-}}" = "runtime" ] && [ "${{2:-}}" = "prepare" ]; then
if [ "${{VIBE_TEST_RUNTIME_PREPARE_FAIL:-}}" = "1" ]; then
echo "node missing" >&2
@@ -162,7 +162,7 @@ def test_install_script_keeps_vibe_available_on_current_path(tmp_path):
assert "vibe remote - Set up remote Web UI access" in install_result.stdout
assert "export PATH=" not in install_result.stdout
assert version_result.returncode == 0, version_result.stdout + version_result.stderr
- assert "vibe-remote 9.9.9" in version_result.stdout
+ assert "avibe-os 9.9.9" in version_result.stdout
assert uv_log.read_text(encoding="utf-8")
@@ -284,9 +284,9 @@ def test_install_script_continues_when_node_install_fails(tmp_path):
assert install_result.returncode == 0, install_result.stdout + install_result.stderr
assert "Installing Node.js 20.19+ or 22.12+" in install_result.stdout
assert "Continuing with Vibe Remote installation" in install_result.stdout
- assert "vibe-remote installed successfully" in install_result.stdout
+ assert "avibe-os installed successfully" in install_result.stdout
assert version_result.returncode == 0, version_result.stdout + version_result.stderr
- assert "vibe-remote 9.9.9" in version_result.stdout
+ assert "avibe-os 9.9.9" in version_result.stdout
def test_install_script_continues_when_show_runtime_prepare_fails(tmp_path):
@@ -309,7 +309,7 @@ def test_install_script_continues_when_show_runtime_prepare_fails(tmp_path):
assert install_result.returncode == 0, install_result.stdout + install_result.stderr
assert "Show Runtime preparation failed; Vibe Remote installation is still complete" in install_result.stdout
assert version_result.returncode == 0, version_result.stdout + version_result.stderr
- assert "vibe-remote 9.9.9" in version_result.stdout
+ assert "avibe-os 9.9.9" in version_result.stdout
def test_install_script_prefers_new_bin_over_stale_local_bin(tmp_path):
@@ -339,7 +339,7 @@ def test_install_script_prefers_new_bin_over_stale_local_bin(tmp_path):
assert install_result.returncode == 0, install_result.stdout + install_result.stderr
assert version_result.returncode == 0, version_result.stdout + version_result.stderr
- assert "vibe-remote 9.9.9" in version_result.stdout
+ assert "avibe-os 9.9.9" in version_result.stdout
assert "vibe-remote 0.1.0" not in version_result.stdout
diff --git a/tests/test_update_checker_platforms.py b/tests/test_update_checker_platforms.py
index c5f5ff9f9..dfd4307c1 100644
--- a/tests/test_update_checker_platforms.py
+++ b/tests/test_update_checker_platforms.py
@@ -15,7 +15,7 @@ from core import update_checker
from core.update_checker import UpdateChecker
-RELEASE_URL_101 = "https://github.com/cyhhao/vibe-remote/releases/tag/v1.0.1"
+RELEASE_URL_101 = "https://github.com/avibe-bot/avibe/releases/tag/v1.0.1"
class _StubSettingsManager:
@@ -107,7 +107,7 @@ def test_update_notification_release_url_normalizes_github_tags():
assert update_checker._github_release_url("v1.0.1") == RELEASE_URL_101
assert (
update_checker._github_release_url("gh-v2.2.8rc1")
- == "https://github.com/cyhhao/vibe-remote/releases/tag/gh-v2.2.8rc1"
+ == "https://github.com/avibe-bot/avibe/releases/tag/gh-v2.2.8rc1"
)
@@ -121,6 +121,7 @@ def test_update_notification_policy_marker_parses_hidden_release_metadata():
"""
assert update_checker._parse_update_notification_policy(body) == "none"
+ assert update_checker._parse_update_notification_policy("<!-- avibe:update-notification=none -->") == "none"
assert update_checker._parse_update_notification_policy("## Changes") == "default"
assert update_checker._parse_update_notification_policy(None) == "default"
@@ -132,7 +133,8 @@ def test_fetch_update_notification_policy_reads_github_release_body():
info = update_checker._fetch_update_notification_policy_sync("1.0.1")
req = urlopen.call_args.args[0]
- assert req.full_url == "https://api.github.com/repos/cyhhao/vibe-remote/releases/tags/v1.0.1"
+ assert req.full_url == "https://api.github.com/repos/avibe-bot/avibe/releases/tags/v1.0.1"
+ assert req.headers["User-agent"] == "avibe-os"
assert info == {"version": "1.0.1", "policy": "none", "error": None}
@@ -328,8 +330,11 @@ def test_fetch_pypi_version_sync_ignores_prerelease_for_stable_current(monkeypat
}
"""
- with patch.object(update_checker.urllib.request, "urlopen", return_value=_FakeResponse(payload)):
+ with patch.object(update_checker.urllib.request, "urlopen", return_value=_FakeResponse(payload)) as urlopen:
monkeypatch.setattr("vibe.__version__", "2.2.7", raising=False)
info = update_checker._fetch_pypi_version_sync()
+ req = urlopen.call_args.args[0]
+ assert req.full_url == "https://pypi.org/pypi/avibe-os/json"
+ assert req.headers["User-agent"] == "avibe-os"
assert info == {"current": "2.2.7", "latest": "2.2.7", "has_update": False, "error": None}
diff --git a/tests/test_upgrade_flow.py b/tests/test_upgrade_flow.py
index f60339ded..a5cc90fd4 100644
--- a/tests/test_upgrade_flow.py
+++ b/tests/test_upgrade_flow.py
@@ -29,19 +29,34 @@ def test_build_upgrade_plan_uses_uv_and_preserves_tool_bin_dir(monkeypatch):
monkeypatch.setattr("vibe.upgrade.os.access", lambda path, mode: True)
plan = build_upgrade_plan(
- python_executable="/tmp/.local/share/uv/tools/vibe-remote/bin/python",
+ python_executable="/tmp/.local/share/uv/tools/avibe-os/bin/python",
uv_path="/usr/local/bin/uv",
vibe_path="/custom/bin/vibe",
base_env={"PATH": "/usr/bin"},
)
assert plan.method == "uv"
- assert plan.command == ["/usr/local/bin/uv", "tool", "install", "vibe-remote", "--upgrade"]
+ assert plan.command == ["/usr/local/bin/uv", "tool", "install", "avibe-os", "--upgrade"]
assert plan.env is not None
assert plan.env["UV_TOOL_BIN_DIR"] == "/custom/bin"
assert plan.env["PATH"] == "/usr/bin"
+def test_build_upgrade_plan_forces_legacy_uv_tool_install(monkeypatch):
+ monkeypatch.setattr("vibe.upgrade.os.path.exists", lambda path: True)
+ monkeypatch.setattr("vibe.upgrade.os.access", lambda path, mode: True)
+
+ plan = build_upgrade_plan(
+ python_executable="/tmp/.local/share/uv/tools/vibe-remote/bin/python",
+ uv_path="/usr/local/bin/uv",
+ vibe_path="/custom/bin/vibe",
+ base_env={"PATH": "/usr/bin"},
+ )
+
+ assert plan.method == "uv"
+ assert plan.command == ["/usr/local/bin/uv", "tool", "install", "avibe-os", "--upgrade", "--force"]
+
+
def test_build_upgrade_plan_uses_pip_for_non_uv_install():
plan = build_upgrade_plan(
python_executable="/usr/bin/python3",
@@ -51,7 +66,7 @@ def test_build_upgrade_plan_uses_pip_for_non_uv_install():
)
assert plan.method == "pip"
- assert plan.command == ["/usr/bin/python3", "-m", "pip", "install", "--upgrade", "vibe-remote"]
+ assert plan.command == ["/usr/bin/python3", "-m", "pip", "install", "--upgrade", "avibe-os"]
assert plan.env == {"PATH": "/usr/bin"}
@@ -92,13 +107,13 @@ def test_build_upgrade_plan_finds_uv_outside_current_path(monkeypatch):
)
plan = build_upgrade_plan(
- python_executable="/tmp/.local/share/uv/tools/vibe-remote/bin/python",
+ python_executable="/tmp/.local/share/uv/tools/avibe-os/bin/python",
vibe_path="/custom/bin/vibe",
base_env={"PATH": "/usr/local/bin:/usr/bin:/bin", "HOME": "/home/test"},
)
assert plan.method == "uv"
- assert plan.command == ["/home/test/.local/bin/uv", "tool", "install", "vibe-remote", "--upgrade"]
+ assert plan.command == ["/home/test/.local/bin/uv", "tool", "install", "avibe-os", "--upgrade"]
def test_get_current_vibe_bin_dir_resolves_launcher_target(monkeypatch):
@@ -316,7 +331,7 @@ def test_get_restart_environment_normalizes_relative_pythonpath_entries(monkeypa
def test_do_upgrade_uses_upgrade_plan_env_and_restarts(monkeypatch):
plan = UpgradePlan(
- command=["/usr/local/bin/uv", "tool", "install", "vibe-remote", "--upgrade"],
+ command=["/usr/local/bin/uv", "tool", "install", "avibe-os", "--upgrade"],
env={"UV_TOOL_BIN_DIR": "/custom/bin"},
method="uv",
)
@@ -356,7 +371,7 @@ def test_do_upgrade_uses_upgrade_plan_env_and_restarts(monkeypatch):
def test_do_upgrade_auto_restart_does_not_block_on_runtime_prepare(monkeypatch):
plan = UpgradePlan(
- command=["/usr/local/bin/uv", "tool", "install", "vibe-remote", "--upgrade"],
+ command=["/usr/local/bin/uv", "tool", "install", "avibe-os", "--upgrade"],
env=None,
method="uv",
)
@@ -383,7 +398,7 @@ def test_do_upgrade_auto_restart_does_not_block_on_runtime_prepare(monkeypatch):
def test_do_upgrade_without_auto_restart_prepares_runtime(monkeypatch):
plan = UpgradePlan(
- command=["/usr/local/bin/uv", "tool", "install", "vibe-remote", "--upgrade"],
+ command=["/usr/local/bin/uv", "tool", "install", "avibe-os", "--upgrade"],
env=None,
method="uv",
)
@@ -424,7 +439,7 @@ def test_do_upgrade_without_auto_restart_prepares_runtime(monkeypatch):
def test_cmd_upgrade_uses_upgrade_plan_env(monkeypatch):
plan = UpgradePlan(
- command=["/usr/local/bin/uv", "tool", "install", "vibe-remote", "--upgrade"],
+ command=["/usr/local/bin/uv", "tool", "install", "avibe-os", "--upgrade"],
env={"UV_TOOL_BIN_DIR": "/custom/bin"},
method="uv",
)
diff --git a/uv.lock b/uv.lock
index 48f373ae8..6414f00da 100644
--- a/uv.lock
+++ b/uv.lock
@@ -2240,7 +2240,7 @@ wheels = [
]
[[package]]
-name = "vibe-remote"
+name = "avibe-os"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },
diff --git a/vibe/cli.py b/vibe/cli.py
index 712e77385..507cc25f1 100644
--- a/vibe/cli.py
+++ b/vibe/cli.py
@@ -46,6 +46,8 @@ from vibe import __version__, api, runtime
from vibe.restart_supervisor import schedule_restart
from vibe.screenshot import ScreenshotError, capture_screenshot
from vibe.upgrade import (
+ LEGACY_PACKAGE_NAME,
+ PACKAGE_NAME,
build_upgrade_plan,
cache_running_vibe_path,
get_latest_version_info,
@@ -59,6 +61,7 @@ from storage.read_only_query import ReadOnlyQueryError, run_read_only_query
from storage.settings_service import make_scope_id
logger = logging.getLogger(__name__)
+UV_TOOL_PACKAGE_NAMES = (PACKAGE_NAME, LEGACY_PACKAGE_NAME)
WATCH_STARTUP_STABLE_RUNNING_SECONDS = 1.5
WATCH_STARTUP_JITTER_BUFFER_SECONDS = 1.0
@@ -3770,14 +3773,15 @@ def _uv_tool_site_packages_for_vibe(vibe_path: Path) -> list[Path]:
except ValueError:
pass
else:
- if tools_index + 1 < len(parts) and parts[tools_index + 1] == "vibe-remote":
+ if tools_index + 1 < len(parts) and parts[tools_index + 1] in UV_TOOL_PACKAGE_NAMES:
add_tool_root(Path(*parts[: tools_index + 2]))
uv_bin_dir = _uv_tool_dir(bin_dir=True)
if uv_bin_dir is not None and _path_is_relative_to(vibe_path, uv_bin_dir):
uv_tools_dir = _uv_tool_dir(bin_dir=False)
if uv_tools_dir is not None:
- add_tool_root(uv_tools_dir / "vibe-remote")
+ for package_name in UV_TOOL_PACKAGE_NAMES:
+ add_tool_root(uv_tools_dir / package_name)
site_packages_dirs: list[Path] = []
for tool_root in tool_roots:
@@ -3834,15 +3838,17 @@ def _path_is_relative_to(path: Path, parent: Path) -> bool:
def _is_uv_tool_editable(site_packages: Path) -> bool:
- if list(site_packages.glob("_editable*_vibe_remote*.pth")):
+ editable_patterns = ("_editable*_avibe_os*.pth", "_editable*_vibe_remote*.pth")
+ if any(list(site_packages.glob(pattern)) for pattern in editable_patterns):
return True
- for direct_url in site_packages.glob("vibe_remote-*.dist-info/direct_url.json"):
- try:
- payload = json.loads(direct_url.read_text(encoding="utf-8"))
- except (OSError, json.JSONDecodeError):
- continue
- if payload.get("dir_info", {}).get("editable") is True:
- return True
+ for dist_info_pattern in ("avibe_os-*.dist-info/direct_url.json", "vibe_remote-*.dist-info/direct_url.json"):
+ for direct_url in site_packages.glob(dist_info_pattern):
+ try:
+ payload = json.loads(direct_url.read_text(encoding="utf-8"))
+ except (OSError, json.JSONDecodeError):
+ continue
+ if payload.get("dir_info", {}).get("editable") is True:
+ return True
return False
@@ -5014,7 +5020,7 @@ def cmd_screenshot(args):
def cmd_version():
"""Show current version."""
- print(f"vibe-remote {__version__}")
+ print(f"avibe-os {__version__}")
return 0
@@ -5048,7 +5054,7 @@ def cmd_check_update():
def cmd_upgrade():
- """Upgrade vibe-remote to the latest version."""
+ """Upgrade avibe-os to the latest version."""
print(f"Current version: {__version__}")
print("Checking for updates...")
diff --git a/vibe/upgrade.py b/vibe/upgrade.py
index f40669ab4..10f7265d4 100644
--- a/vibe/upgrade.py
+++ b/vibe/upgrade.py
@@ -14,7 +14,8 @@ from pathlib import Path
from typing import cast
-PACKAGE_NAME = "vibe-remote"
+PACKAGE_NAME = "avibe-os"
+LEGACY_PACKAGE_NAME = "vibe-remote"
DEFAULT_UPDATE_METADATA_URL = f"https://pypi.org/pypi/{PACKAGE_NAME}/json"
CURRENT_VIBE_EXECUTABLE_ENV = "VIBE_CURRENT_EXECUTABLE"
UV_FALLBACK_BIN_DIRS = (".local/bin", ".cargo/bin")
@@ -239,11 +240,13 @@ def get_restart_shell_command(
def get_update_metadata_url() -> str:
- return os.environ.get("VIBE_UPDATE_METADATA_URL", DEFAULT_UPDATE_METADATA_URL)
+ return os.environ.get("AVIBE_UPDATE_METADATA_URL") or os.environ.get(
+ "VIBE_UPDATE_METADATA_URL", DEFAULT_UPDATE_METADATA_URL
+ )
def get_upgrade_package_spec() -> str:
- return os.environ.get("VIBE_UPGRADE_PACKAGE_SPEC", PACKAGE_NAME)
+ return os.environ.get("AVIBE_UPGRADE_PACKAGE_SPEC") or os.environ.get("VIBE_UPGRADE_PACKAGE_SPEC", PACKAGE_NAME)
def _normalize_release_parts(parts: tuple[int, ...]) -> tuple[int, ...]:
@@ -350,6 +353,11 @@ def is_uv_tool_install(python_executable: str | None = None) -> bool:
return "/uv/tools/" in executable
+def is_legacy_uv_tool_install(python_executable: str | None = None) -> bool:
+ executable = (python_executable or sys.executable or "").replace("\\", "/")
+ return f"/uv/tools/{LEGACY_PACKAGE_NAME}/" in executable
+
+
def get_current_vibe_bin_dir(vibe_path: str | None = None) -> str | None:
current_vibe = get_running_vibe_path(vibe_path=vibe_path)
if not current_vibe:
@@ -375,7 +383,7 @@ def build_upgrade_plan(
if vibe_bin_dir:
env["UV_TOOL_BIN_DIR"] = vibe_bin_dir
command = [uv_binary, "tool", "install", package_spec, "--upgrade"]
- if package_spec != PACKAGE_NAME:
+ if package_spec != PACKAGE_NAME or is_legacy_uv_tool_install(executable):
command.append("--force")
return UpgradePlan(
command=command,