File size: 1,007 Bytes
68d7816
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);