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.

chore(node): move build and regression environments to Node 22.23.4 (#2915)

Call Whitea6142a52282b
diff --git a/.github/workflows/desktop-shell.yml b/.github/workflows/desktop-shell.yml
index 5bf9b4fb0..d57f306fa 100644
--- a/.github/workflows/desktop-shell.yml
+++ b/.github/workflows/desktop-shell.yml
@@ -50,7 +50,7 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
cache-dependency-path: desktop/package-lock.json
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 621c503f8..aac91946e 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -118,7 +118,7 @@ jobs:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
cache-dependency-path: ui/package-lock.json
@@ -143,7 +143,7 @@ jobs:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
cache-dependency-path: ui/package-lock.json
- name: Install UI dependencies
@@ -180,7 +180,7 @@ jobs:
path: .show-runtime-test
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: npm
cache-dependency-path: .show-runtime-test/package-lock.json
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
@@ -217,7 +217,7 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
cache-dependency-path: ui/package-lock.json
diff --git a/.github/workflows/model-hub-e2e.yml b/.github/workflows/model-hub-e2e.yml
index a8007aba6..2cec25d3e 100644
--- a/.github/workflows/model-hub-e2e.yml
+++ b/.github/workflows/model-hub-e2e.yml
@@ -46,7 +46,7 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
# The agent CLIs users install: the latest release of each, as Avibe installs them.
- name: Install agent CLIs
diff --git a/.github/workflows/model-hub-ui-regression.yml b/.github/workflows/model-hub-ui-regression.yml
index 0eb827d4e..b816d0301 100644
--- a/.github/workflows/model-hub-ui-regression.yml
+++ b/.github/workflows/model-hub-ui-regression.yml
@@ -25,7 +25,7 @@ jobs:
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
cache-dependency-path: ui/package-lock.json
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 0b3cbd6cc..3fe95867d 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -120,7 +120,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
- name: Build Show Runtime bundle
@@ -192,7 +192,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
cache-dependency-path: ui/package-lock.json
diff --git a/.github/workflows/publish_npm.yml b/.github/workflows/publish_npm.yml
index 95e615875..c7b41ed65 100644
--- a/.github/workflows/publish_npm.yml
+++ b/.github/workflows/publish_npm.yml
@@ -26,7 +26,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
registry-url: "https://registry.npmjs.org"
- name: Install npm with trusted publishing support
diff --git a/.github/workflows/release_ai.yml b/.github/workflows/release_ai.yml
index 911eef4a6..c46a1fea2 100644
--- a/.github/workflows/release_ai.yml
+++ b/.github/workflows/release_ai.yml
@@ -128,7 +128,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
- name: Build Show Runtime bundle
# Keep the runner's native shell: Git Bash shadows Windows' tar.
@@ -190,7 +190,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
- node-version: "22.14.0"
+ node-version: "22.23.4"
cache: "npm"
cache-dependency-path: ui/package-lock.json
diff --git a/Dockerfile b/Dockerfile
index ada79f092..2c01a95aa 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,7 +1,7 @@
# ============================================================
# Stage 1: Build UI (React + Vite)
# ============================================================
-FROM node:20-slim AS ui-builder
+FROM node:22.23.4-slim AS ui-builder
WORKDIR /app/ui
COPY ui/package.json ui/package-lock.json ./
diff --git a/docs/maintenance/eslint-10-migration.md b/docs/maintenance/eslint-10-migration.md
index 9cd0caae6..d1dbf9970 100644
--- a/docs/maintenance/eslint-10-migration.md
+++ b/docs/maintenance/eslint-10-migration.md
@@ -11,7 +11,7 @@ the lint gate. This replaces the incomplete ESLint-only update in #2844.
8.71.2 (explicit ESLint 10 peer). Refresh 0.5's rule/config rewrite is not
necessary for this migration; do not silently take it with the Hooks update.
- UI development Node range: `^20.19.0 || ^22.13.0 || >=24`, matching ESLint 10.
- Existing UI CI uses Node 22.14.0. This is not a change to the separately
+ UI CI uses Node 22.23.4. This is not a change to the separately
packaged Show Runtime's Node requirement.
- Keep all enforced rules, severities, source coverage, inline-configuration
guards, and the per-file/per-rule debt ratchet. No peer-dependency bypass,
diff --git a/scripts/incus_regression.py b/scripts/incus_regression.py
index 768299f60..a8d910ab4 100644
--- a/scripts/incus_regression.py
+++ b/scripts/incus_regression.py
@@ -65,6 +65,11 @@ OPENCODE_INSTALL_SH = (
"curl -fsSL --retry 3 --retry-delay 2 --retry-all-errors https://opencode.ai/install "
'| HOME="$opencode_home" bash -s -- --no-modify-path --version "$opencode_version"'
)
+# The regression base installs Node from NodeSource's rolling 22.x channel,
+# which can lag an upstream security release; refuse to publish a base whose
+# Node is older than the patched floor.
+REGRESSION_NODE_MAJOR = 22
+REGRESSION_NODE_MIN_VERSION = "22.23.4"
VENV_DIR = "/opt/avibe/venv"
METADATA_DIR = "/var/lib/avibe-regression"
METADATA_PATH = f"{METADATA_DIR}/metadata.json"
@@ -2763,8 +2768,9 @@ def build_base_image(args: argparse.Namespace) -> int:
{cloud_init_wait_command()}
apt-get update
apt-get install -y bash ca-certificates curl git build-essential python3 python3-pip python3-venv rsync sudo tmux
- curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
+ curl -fsSL https://deb.nodesource.com/setup_{REGRESSION_NODE_MAJOR}.x | bash -
apt-get install -y nodejs
+ node -e 'const want = process.argv[1].split(".").map(Number); const have = process.versions.node.split(".").map(Number); const ok = have[0] === want[0] && (have[1] > want[1] || (have[1] === want[1] && have[2] >= want[2])); if (!ok) {{ console.error(`NodeSource installed Node ${{process.versions.node}}, need ${{process.argv[1]}} or a newer ${{want[0]}}.x`); process.exit(1); }}' {REGRESSION_NODE_MIN_VERSION}
# Backends must be service-owned at creation so their updaters
# stay writable without a recursive ownership repair at deployment.
id -u avibe >/dev/null 2>&1 || useradd --create-home --shell /bin/bash --groups sudo avibe
diff --git a/tests/test_incus_regression.py b/tests/test_incus_regression.py
index c6e1244bd..ad662355d 100644
--- a/tests/test_incus_regression.py
+++ b/tests/test_incus_regression.py
@@ -875,7 +875,10 @@ def test_build_base_uses_publishable_temp_instance() -> None:
joined = "\n".join(" ".join(command) for command in commands)
assert "--ephemeral" not in joined
assert "incus --project default launch images:ubuntu/24.04/cloud avibe-regression-base-build --storage default --network incusbr0" in joined
- assert "https://deb.nodesource.com/setup_20.x" in joined
+ assert "https://deb.nodesource.com/setup_22.x" in joined
+ node_install = joined.split("apt-get install -y nodejs\n", 1)[1]
+ assert node_install.splitlines()[0].startswith("node -e ")
+ assert node_install.splitlines()[0].endswith(f" {incus_regression.REGRESSION_NODE_MIN_VERSION}")
assert "useradd --create-home --shell /bin/bash --groups sudo avibe" in joined
backend_install = joined.split("sudo -H -u avibe -- bash -s <<'AVIBE_BACKENDS'\n", 1)[1].split("\nAVIBE_BACKENDS", 1)[0]
assert 'avibe_home="$HOME"' in backend_install
@@ -1003,7 +1006,7 @@ BACKEND
chmod +x "$HOME/.opencode/bin/opencode"
INSTALLER
;;
- '-fsSL https://deb.nodesource.com/setup_20.x'|'-fsSL https://askill.sh')
+ '-fsSL https://deb.nodesource.com/setup_22.x'|'-fsSL https://askill.sh')
printf 'exit 0\n' ;;
*) exit 98 ;;
esac
@@ -1156,7 +1159,7 @@ def write_ui_builder_stage(root: Path, *, external: Sequence[str] = ()) -> None:
"""
copies = "".join(f"COPY {relative} /app/{relative}\n" for relative in external)
(root / "Dockerfile").write_text(
- "FROM node:20-slim AS ui-builder\n"
+ "FROM node:22-slim AS ui-builder\n"
"WORKDIR /app/ui\n"
"COPY ui/package.json ui/package-lock.json ./\n"
f"{copies}"
diff --git a/ui/README.md b/ui/README.md
index a04117c7c..8cef778b8 100644
--- a/ui/README.md
+++ b/ui/README.md
@@ -2,7 +2,7 @@
## Development toolchain
-Use Node.js `^20.19.0 || ^22.13.0 || >=24` (UI CI uses 22.14.0), then run
+Use Node.js `^20.19.0 || ^22.13.0 || >=24` (UI CI uses 22.23.4), then run
`npm ci`. ESLint 10 does not support Node 22.12.x or Node 23.x.
`npm run lint` checks the full TypeScript source domain against the reviewed