Download packages/agent-core-v2/src/agent/shellCommand/shellCommand.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 700 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/shellCommand/shellCommand.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/agent/shellCommand/shellCommand.ts
-
curl -L -o shellCommand.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/agent/shellCommand/shellCommand.ts
700 Bytes
| import { createDecorator, type ServiceIdentifier } from '#/_base/di/instantiation'; | |
| export interface RunShellCommandInput { | |
| readonly command: string; | |
| readonly commandId?: string; | |
| } | |
| export interface RunShellCommandResult { | |
| readonly stdout: string; | |
| readonly stderr: string; | |
| readonly isError?: boolean; | |
| readonly backgrounded?: boolean; | |
| } | |
| export interface IAgentShellCommandService { | |
| readonly _serviceBrand: undefined; | |
| run(input: RunShellCommandInput): Promise<RunShellCommandResult>; | |
| cancel(commandId: string): void; | |
| } | |
| export const IAgentShellCommandService: ServiceIdentifier<IAgentShellCommandService> = | |
| createDecorator<IAgentShellCommandService>('agentShellCommandService'); | |