SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
bc575bc verified
Raw History Blame Contribute Delete
726 Bytes
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<JsonValue>;
reload(context: Context): Promise<JsonValue>;
}
export const PresentationPlugins = defineService<PresentationPlugins>("pi.presentation-plugins");
/** Plugin facets hosted in the currently attached Session worker. */
export interface SessionPlugins {
reload(context: Context): Promise<void>;
}
export const SessionPlugins = defineService<SessionPlugins>("pi.session-plugins");