import { type Context, defineService, type JsonValue } from "@earendil-works/chord"; /** Server-built plugin generations available to presentations. */ export interface PresentationPlugins { prepareSession( request: { readonly sessionId: string; readonly packagePaths: readonly string[] | null }, context: Context, ): Promise; reload(context: Context): Promise; } export const PresentationPlugins = defineService("pi.presentation-plugins"); /** Plugin facets hosted in the currently attached Session worker. */ export interface SessionPlugins { reload(context: Context): Promise; } export const SessionPlugins = defineService("pi.session-plugins");