Something went wrong. Try again.
ATProto-based AI Assistant Chat interface.
Something went wrong. Try again.
123456789101112131415161718192021222324252627import { EventEmitter } from 'node:events'import type { JsonRecord } from '../storage/records.ts'
export type SyncEvents = { 'message:changed': [ { did: string skey: string rkey: string record: JsonRecord cid: string kind: 'create' | 'update' live: boolean }, ] 'message:invalid': [{ did: string; skey: string; rkey: string; raw: JsonRecord; error: string }] 'conversation:changed': [{ did: string; skey: string }] /** A conversation was created, by this app or, as sync noticed, another client. Once each. */ 'conversation:created': [{ did: string; skey: string }] /** A conversation was deleted, by this app or, as sync noticed, another client. Once each. */ 'conversation:deleted': [{ did: string; skey: string }] 'index:changed': [{ did: string }]}
/** In-process events about chat changes, for turns and for open browser tabs. */export class SyncEventBus extends EventEmitter<SyncEvents> {}