Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

439 B
Raw Blame
import { create } from "zustand";
import type { RoutineChatTarget } from "./routineExecution";

/** Navigation only: opening the selected chat is the host's lazy responsibility. */
export const useRoutineNavigation = create<{
  target: RoutineChatTarget | null;
  open: (target: RoutineChatTarget) => void;
  close: () => void;
}>((set) => ({
  target: null,
  open: (target) => set({ target }),
  close: () => set({ target: null }),
}));