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
fix(npm): detect vibe shim entrypoint on Windows
cyhfec0bacee8fe
diff --git a/npm/avibe/bin/avibe.js b/npm/avibe/bin/avibe.jsindex 73e52b4bd..3c844e4f4 100755--- a/npm/avibe/bin/avibe.js+++ b/npm/avibe/bin/avibe.js@@ -41,8 +41,11 @@ function printVersion() {}function invokedAsVibe() {- const invokedName = path.basename(process.argv[1] || "").toLowerCase();- return invokedName === "vibe" || invokedName === "vibe.cmd" || invokedName === "vibe.bat" || invokedName === "vibe.exe";+ const candidates = [process.env.AVIBE_ENTRYPOINT, process.argv0, process.argv[1]];+ return candidates.some((candidate) => {+ const invokedName = path.basename(candidate || "").toLowerCase();+ return invokedName === "vibe" || invokedName === "vibe.cmd" || invokedName === "vibe.bat" || invokedName === "vibe.exe";+ });}function prependPathEntries(env, entries) {diff --git a/npm/avibe/test/cli.test.js b/npm/avibe/test/cli.test.jsindex 03ca7446d..646966b5e 100644--- a/npm/avibe/test/cli.test.js+++ b/npm/avibe/test/cli.test.js@@ -35,7 +35,7 @@ function writeFakeVibe(bin, label) {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');+ fs.writeFileSync(shimPath, `@echo off\r\nset AVIBE_ENTRYPOINT=vibe\r\nnode "${cliPath}" %*\r\n`);} else {fs.symlinkSync(cliPath, shimPath);}