pi / packages /coding-agent /src /experimental /services /presentation-ui.ts
SaylorTwift's picture
SaylorTwift HF Staff
Add files using upload-large-folder tool
bc575bc verified
Raw History Blame Contribute Delete
632 Bytes
import { type Context, defineService } from "@earendil-works/chord";
export interface PresentationSelectItem {
readonly value: string;
readonly label: string;
readonly description?: string;
}
/** Narrow process-local UI capabilities available to presentation facets. */
export interface PresentationUI {
select(
title: string,
items: readonly PresentationSelectItem[],
selectedValue: string | undefined,
context: Context,
): Promise<string | undefined>;
showStatus(message: string, context: Context): void;
}
export const PresentationUI = defineService<PresentationUI>("pi.local.presentation-ui", { local: true });