Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

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

/** Optional capability supplied only by a local companion view, not ordinary task messages. */
export type MessageReadAloud = {
  sessionId: string;
  available: boolean;
  disabled: boolean;
  messageId: string | null;
  phase: 'idle' | 'preparing' | 'playing' | 'error';
  canRead(text: string): boolean;
  toggle(messageId: string, text: string): void;
};
export const MessageReadAloudContext = createContext<MessageReadAloud | null>(null);