Download packages/agent-core-v2/src/features/plan/planFeature.ts from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/plan/planFeature.ts
- Command line
-
hf download hf://SaylorTwift/kimi-code/packages/agent-core-v2/src/features/plan/planFeature.ts
-
curl -L -o planFeature.ts https://huggingface.co/SaylorTwift/kimi-code/resolve/main/packages/agent-core-v2/src/features/plan/planFeature.ts
1.01 kB
| import { Feature } from '#/features/feature'; | |
| import { registerFeature } from '#/features/featureRegistry'; | |
| import './configSection'; | |
| import { IAgentPlanService } from './plan'; | |
| import { AgentPlanService } from './planService'; | |
| import { IEnterPlanModeTool } from './tools/enter-plan-mode/enter-plan-mode'; | |
| import { EnterPlanModeTool } from './tools/enter-plan-mode/enterPlanModeTool'; | |
| import { IExitPlanModeTool } from './tools/exit-plan-mode/exit-plan-mode'; | |
| import { ExitPlanModeTool } from './tools/exit-plan-mode/exitPlanModeTool'; | |
| export class PlanFeature extends Feature { | |
| static override readonly name = 'plan'; | |
| constructor() { | |
| super(); | |
| this.contributeAgentService(IAgentPlanService, AgentPlanService); | |
| this.contributeTool(IEnterPlanModeTool, EnterPlanModeTool, { | |
| name: 'EnterPlanMode', | |
| domain: 'plan', | |
| }); | |
| this.contributeTool(IExitPlanModeTool, ExitPlanModeTool, { | |
| name: 'ExitPlanMode', | |
| domain: 'plan', | |
| }); | |
| } | |
| } | |
| registerFeature(PlanFeature); | |