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
export interface ViewportPoint {
x: number;
y: number;
}
export const SHOW_PAGE_WINDOW_DRAG_THRESHOLD_PX = 48;
export const SHOW_PAGE_DOCK_DROP_SELECTOR = '[data-show-page-dock-drop-target]';
/** A free drop opens a window only after a deliberate downward drag. */
export function isShowPageWindowDrop(start: ViewportPoint, current: ViewportPoint): boolean {
return current.y - start.y >= SHOW_PAGE_WINDOW_DRAG_THRESHOLD_PX;
}
/** Use the release point as the new window's origin, bounded by the viewport edge. */
export function showPageWindowOrigin(point: ViewportPoint): ViewportPoint {
return {
x: Math.max(8, Math.round(point.x)),
y: Math.max(8, Math.round(point.y)),
};
}