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.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
feat(npm): expose vibe command shim
cyh7b86208e11df
diff --git a/docs/plans/distribution-growth.md b/docs/plans/distribution-growth.mdindex 4410dc03c..7d0b7a877 100644--- a/docs/plans/distribution-growth.md+++ b/docs/plans/distribution-growth.md@@ -20,8 +20,9 @@ The canonical install path should remain the current one-line curl / PowerShell- Linked the AI-agent installation guides from the docs section without interrupting the landing-page narrative.- Updated package metadata and installer banner copy so the project no longer presents as Slack-only.- Added an npm entrypoint package under `npm/avibe`:- - `npx avibe` and globally installed `avibe` bootstrap the existing Python `vibe-remote` package.+ - `npx avibe` and globally installed `avibe` / `vibe` bootstrap the existing Python `vibe-remote` package.- The npm package does not ship a second runtime; it installs or locates the real `vibe` command and delegates to it.+ - The npm package skips its own `vibe` shim when resolving the real Python runtime to avoid recursion.- `avibe init` and `avibe start` map to the default `vibe` startup flow.- `avibe status`, `doctor`, `remote`, `upgrade`, `task`, `hook`, and other commands pass through to `vibe`.- CI now tests the wrapper and validates the packed npm contents.@@ -31,7 +32,7 @@ The canonical install path should remain the current one-line curl / PowerShell1. Publish the `avibe` npm package as a supplemental install entrypoint.- Keep the main README / docs install path as the existing one-line curl / PowerShell installer.- - Document `npx avibe` and `npm install -g avibe && avibe` as optional Node-friendly alternatives after publish.+ - Document `npx avibe` and `npm install -g avibe && vibe` as optional Node-friendly alternatives after publish.- Do not make npm the default public install copy unless the product distribution strategy changes explicitly.2. Add Homebrew distribution.diff --git a/npm/avibe/README.md b/npm/avibe/README.mdindex 1f380193b..eaf6eb20b 100644--- a/npm/avibe/README.md+++ b/npm/avibe/README.md@@ -16,15 +16,18 @@ Or install the npm entrypoint globally:```bashnpm install -g avibe-avibe+vibe```The first run installs the underlying `vibe` command if needed, then starts the-local Vibe Remote setup wizard.+local Vibe Remote setup wizard. The global npm package exposes both `vibe` and+`avibe`; `vibe` matches the rest of the Vibe Remote docs, while `avibe` remains+available when you want to call the npm bootstrapper explicitly.## Commands```bash+vibe # start Vibe Remote after global npm installavibe install # install or refresh the underlying vibe-remote Python CLIavibe init # start the setup wizardavibe start # start Vibe Remote@@ -34,7 +37,7 @@ avibe remote # configure remote Web UI accessavibe upgrade # upgrade the underlying vibe-remote Python package```-After bootstrap, `avibe` delegates to the real `vibe` command.+After bootstrap, the npm entrypoint delegates to the real `vibe` command.## Requirementsdiff --git a/npm/avibe/bin/avibe.js b/npm/avibe/bin/avibe.jsindex 10efb9a8d..b33055de5 100755--- a/npm/avibe/bin/avibe.js+++ b/npm/avibe/bin/avibe.js@@ -23,6 +23,7 @@ NPM entrypoint for Vibe Remote.Usage:npx avibe Install Vibe Remote if needed, then start the setup wizardavibe Same as above after npm install -g avibe+ vibe Same as above after npm install -g avibeavibe install Install or refresh the underlying vibe-remote Python CLIavibe init Start the setup wizardavibe start Start Vibe Remote@@ -96,6 +97,39 @@ function isExecutable(filePath) {}}+function realpathOrNull(filePath) {+ try {+ return fs.realpathSync(filePath);+ } catch {+ return null;+ }+}++function isSelfWrapperCandidate(filePath) {+ const currentScriptPath = realpathOrNull(__filename);+ const candidatePath = realpathOrNull(filePath);++ if (currentScriptPath && candidatePath && currentScriptPath === candidatePath) {+ return true;+ }++ if (process.platform !== "win32") {+ return false;+ }++ const extension = path.extname(filePath).toLowerCase();+ if (extension !== ".cmd" && extension !== ".bat") {+ return false;+ }++ try {+ const content = fs.readFileSync(filePath, "utf8").toLowerCase();+ return content.includes("\\node_modules\\avibe\\bin\\avibe.js") || content.includes("/node_modules/avibe/bin/avibe.js");+ } catch {+ return false;+ }+}+function resolveFromPath(command, env = process.env) {const pathValue = env.PATH || env.Path || "";for (const dir of pathValue.split(path.delimiter)) {@@ -104,7 +138,7 @@ function resolveFromPath(command, env = process.env) {}for (const executableName of executableNames(command)) {const candidate = path.join(dir, executableName);- if (isExecutable(candidate)) {+ if (isExecutable(candidate) && !isSelfWrapperCandidate(candidate)) {return candidate;}}diff --git a/npm/avibe/package.json b/npm/avibe/package.jsonindex b767a372c..a417a8bce 100644--- a/npm/avibe/package.json+++ b/npm/avibe/package.json@@ -14,7 +14,8 @@"url": "https://github.com/cyhhao/vibe-remote/issues"},"bin": {- "avibe": "./bin/avibe.js"+ "avibe": "./bin/avibe.js",+ "vibe": "./bin/avibe.js"},"files": ["bin/",diff --git a/npm/avibe/test/cli.test.js b/npm/avibe/test/cli.test.jsindex c059de37e..a8c6d3d7e 100644--- a/npm/avibe/test/cli.test.js+++ b/npm/avibe/test/cli.test.js@@ -32,6 +32,16 @@ function writeFakeVibe(bin, label) {return vibePath;}+function writeSelfNpmVibeShim(bin) {+ const shimPath = path.join(bin, process.platform === "win32" ? "vibe.cmd" : "vibe");+ if (process.platform === "win32") {+ fs.writeFileSync(shimPath, '@echo off\r\nnode "%~dp0\\node_modules\\avibe\\bin\\avibe.js" %*\r\n');+ } else {+ fs.symlinkSync(cliPath, shimPath);+ }+ return shimPath;+}+function runCli(args, envOverrides = {}) {const env = {...process.env,@@ -115,6 +125,25 @@ test("ignores non-executable vibe files on PATH", { skip: process.platform === "assert.match(result.stdout, /working-vibe status/);});+test("skips its own npm vibe shim before delegating", () => {+ const temp = makeTempEnv();+ const npmBin = path.join(temp.root, "npm-bin");+ const runtimeBin = path.join(temp.root, "runtime-bin");+ fs.mkdirSync(npmBin, { recursive: true });+ fs.mkdirSync(runtimeBin, { recursive: true });+ writeSelfNpmVibeShim(npmBin);+ writeFakeVibe(runtimeBin, "runtime-vibe");++ const result = runCli(["status"], {+ HOME: temp.home,+ USERPROFILE: temp.home,+ PATH: `${npmBin}${path.delimiter}${runtimeBin}`,+ });++ assert.equal(result.status, 0);+ assert.match(result.stdout, /runtime-vibe status/);+});+test("installs vibe when missing, then delegates", () => {const temp = makeTempEnv();const installCommand =