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