Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

774 B
Raw Blame
// screenpipe — AI that knows everything you've seen, said, or heard
// https://screenpipe.com
"use client";
import { createContext, type Dispatch, type SetStateAction } from "react";
import type { AssistantContext, WorkflowsAssistantPlatform } from "./assistant";

/** A mounted page can supply an action to the existing chat without another composer. */
export type PageAssistant = {
  context: AssistantContext;
  platform?: WorkflowsAssistantPlatform;
  session?: import("./workflow-assistant").WorkflowAssistantSession;
  promptRequest?: { id: string; text: string };
  ask: WorkflowsAssistantPlatform["ask"];
  onBusyChange?: (busy: boolean) => void;
};
export const PageAssistantContext = createContext<Dispatch<SetStateAction<PageAssistant | null>> | null>(null);