Download packages/agent-core-v2/src/agent/command/agentCommand.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 601 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/command/agentCommand.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/command/agentCommand.ts
-
curl -L -o agentCommand.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/command/agentCommand.ts
601 Bytes
| import type { Event } from '#/_base/event'; | |
| import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation'; | |
| export interface AgentCommandInfo { | |
| readonly name: string; | |
| readonly description?: string; | |
| readonly source: string; | |
| } | |
| export interface IAgentCommandService { | |
| readonly _serviceBrand: undefined; | |
| readonly onDidChange: Event<void>; | |
| list(): readonly AgentCommandInfo[]; | |
| run(name: string, args?: string): Promise<void>; | |
| } | |
| export const IAgentCommandService: ServiceIdentifier<IAgentCommandService> = | |
| createDecorator<IAgentCommandService>('agentCommandService'); | |