1010
1111namespace SpecCodingMcpServer . Tools ;
1212
13- public class RequirementsConfirmedTool
13+ public class RequirementsConfirmedTool
1414{
1515 private readonly ISessionManager _sessionManager ;
1616 private readonly IFileService _fileService ;
@@ -22,17 +22,17 @@ public RequirementsConfirmedTool(
2222 ISessionManager sessionManager ,
2323 IFileService fileService ,
2424 IContextManager contextManager ,
25-
25+
2626 ILogger < FeatureConfirmedTool > logger )
2727 {
2828 _sessionManager = sessionManager ;
2929 _fileService = fileService ;
30- _specCodingConfiguration = new SpecCodingConfiguration ( ) ;
31- _logger = logger ;
32- _contextManager = contextManager ;
30+ _specCodingConfiguration = new SpecCodingConfiguration ( ) ;
31+ _logger = logger ;
32+ _contextManager = contextManager ;
3333 }
34-
35-
34+
35+
3636 [ McpServerTool ]
3737 [ Description ( "Confirm the completion of the requirements document and proceed to the design phase" ) ]
3838 public async Task < string > SpecCodingRequirementsConfirmed (
@@ -41,11 +41,11 @@ public async Task<string> SpecCodingRequirementsConfirmed(
4141 {
4242 try
4343 {
44-
4544
46- Log . Information ( $ "Requirements confirmed for session { sessionId } { featureName } " ) ;
4745
48-
46+ Log . Information ( $ "Requirements confirmed for session { sessionId } { featureName } ") ;
47+
48+
4949 var sessionState = _sessionManager . GetSession ( sessionId ) ;
5050 if ( sessionState == null )
5151 {
@@ -55,8 +55,8 @@ public async Task<string> SpecCodingRequirementsConfirmed(
5555 if ( sessionState . CurrentStage != WorkflowStage . RequirementsGathering )
5656 {
5757 throw new WorkflowException ( WorkflowStage . RequirementsGathering . ToString ( ) , sessionId ) ;
58- }
59-
58+ }
59+
6060 sessionState . CurrentStage = WorkflowStage . CreateFeatureDesignDocument ;
6161 sessionState . UpdatedAt = DateTime . UtcNow ;
6262 _sessionManager . UpdateSession ( sessionId , sessionState ) ;
@@ -75,5 +75,5 @@ public async Task<string> SpecCodingRequirementsConfirmed(
7575 Log . Fatal ( ex , "Error executing requirements confirmation" ) ;
7676 throw new InvalidOperationException ( "Error executing requirements confirmation" , ex ) ;
7777 }
78- }
78+ }
7979}
0 commit comments