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.

563 B
Raw Blame
import { createContext } from 'react';

import type {
  UnsavedChangesActionAuthorization,
  UnsavedChangesRegistrationId,
} from '../lib/unsavedChangesRegistry';

export interface UnsavedChangesContextValue {
  setRegistration: (id: UnsavedChangesRegistrationId, message: string | null) => void;
  /** Confirm before an action mutates data and later navigates. Null means the user canceled. */
  authorizeRouteAction: () => UnsavedChangesActionAuthorization | null;
}

export const UnsavedChangesContext = createContext<UnsavedChangesContextValue | null>(null);