Download packages/coding-agent/examples/plugins/pi-example-plugin/src/contract.ts from SaylorTwift/pi: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/examples/plugins/pi-example-plugin/src/contract.ts
- Command line
-
hf download hf://SaylorTwift/pi/packages/coding-agent/examples/plugins/pi-example-plugin/src/contract.ts
-
curl -L -o contract.ts https://huggingface.co/SaylorTwift/pi/resolve/main/packages/coding-agent/examples/plugins/pi-example-plugin/src/contract.ts
492 Bytes
| import { type Context, defineService, type ReplicatedState } from "@earendil-works/chord"; | |
| export interface ExampleFacetReply { | |
| readonly message: string; | |
| readonly workerActivations: number; | |
| } | |
| export interface ExampleFacetService { | |
| readonly workerActivations: ReplicatedState<{ count: number }>; | |
| greet(input: { readonly name: string }, context: Context): Promise<ExampleFacetReply>; | |
| } | |
| export const ExampleFacetService = defineService<ExampleFacetService>("pi.example-plugin.greeting"); | |