Download packages/coding-agent/src/experimental/services/presentation-ui.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 632 Bytes
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/experimental/services/presentation-ui.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/coding-agent/src/experimental/services/presentation-ui.ts
-
curl -L -o presentation-ui.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/src/experimental/services/presentation-ui.ts
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 }); | |