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.

408 B
Raw Blame
let sdkUrl;

export function initialize(data) {
  sdkUrl = data?.sdkUrl;
  if (typeof sdkUrl !== "string" || !sdkUrl.startsWith("file:")) {
    throw new Error("invalid @avibe/computer module URL");
  }
}

export async function resolve(specifier, context, nextResolve) {
  if (specifier === "@avibe/computer") {
    return { url: sdkUrl, shortCircuit: true };
  }
  return nextResolve(specifier, context);
}