Download packages/agent-core-v2/src/agent/command/commandContribution.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/command/commandContribution.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/command/commandContribution.ts
-
curl -L -o commandContribution.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/command/commandContribution.ts
469 Bytes
| import { collection } from '#/_base/di/collection'; | |
| import type { ServiceIdentifier } from '#/_base/di/instantiation'; | |
| export interface CommandRunContext { | |
| readonly args: string; | |
| get<T>(id: ServiceIdentifier<T>): T; | |
| } | |
| export interface CommandContribution { | |
| readonly name: string; | |
| readonly description?: string; | |
| readonly run: (ctx: CommandRunContext) => void | Promise<void>; | |
| } | |
| export const CommandContribution = collection<CommandContribution>('command'); | |