@@ -6,10 +6,6 @@ import { SessionNotFoundError, SessionTerminatedError, SessionError } from "../.
66import { SessionState } from "../../src/core/models.js" ;
77import type { InteractiveExecResult , InteractiveSessionInfo , SessionDetailedMetrics , ManagerMetrics } from "../../src/core/models.js" ;
88
9- // ---------------------------------------------------------------------------
10- // Mock helpers
11- // ---------------------------------------------------------------------------
12-
139const NOW = "2024-01-01T00:00:00.000Z" ;
1410
1511function makeExecResult ( overrides : Partial < InteractiveExecResult > = { } ) : InteractiveExecResult {
@@ -87,10 +83,6 @@ function makeMockManager(): MockManager {
8783 } ;
8884}
8985
90- // ---------------------------------------------------------------------------
91- // QueryShellTool
92- // ---------------------------------------------------------------------------
93-
9486describe ( "QueryShellTool" , ( ) => {
9587 let mgr : MockManager ;
9688 let tool : QueryShellTool ;
@@ -149,7 +141,6 @@ describe("QueryShellTool", () => {
149141 } ) ;
150142
151143 it ( "blocks dangerous commands when whitelist is enabled" , async ( ) => {
152- // `quit` is in BLOCKED_COMMANDS
153144 const raw = await tool . execute ( "quit" ) ;
154145 const result = JSON . parse ( raw ) ;
155146 expect ( result . error ) . toMatch ( / C o m m a n d B l o c k e d / ) ;
@@ -161,10 +152,6 @@ describe("QueryShellTool", () => {
161152 } ) ;
162153} ) ;
163154
164- // ---------------------------------------------------------------------------
165- // ExecShellTool
166- // ---------------------------------------------------------------------------
167-
168155describe ( "ExecShellTool" , ( ) => {
169156 let mgr : MockManager ;
170157 let tool : ExecShellTool ;
@@ -195,10 +182,6 @@ describe("ExecShellTool", () => {
195182 } ) ;
196183} ) ;
197184
198- // ---------------------------------------------------------------------------
199- // ListSessionsTool
200- // ---------------------------------------------------------------------------
201-
202185describe ( "ListSessionsTool" , ( ) => {
203186 let mgr : MockManager ;
204187 let tool : ListSessionsTool ;
@@ -238,10 +221,6 @@ describe("ListSessionsTool", () => {
238221 } ) ;
239222} ) ;
240223
241- // ---------------------------------------------------------------------------
242- // CreateSessionTool
243- // ---------------------------------------------------------------------------
244-
245224describe ( "CreateSessionTool" , ( ) => {
246225 let mgr : MockManager ;
247226 let tool : CreateSessionTool ;
@@ -278,10 +257,6 @@ describe("CreateSessionTool", () => {
278257 } ) ;
279258} ) ;
280259
281- // ---------------------------------------------------------------------------
282- // TerminateSessionTool
283- // ---------------------------------------------------------------------------
284-
285260describe ( "TerminateSessionTool" , ( ) => {
286261 let mgr : MockManager ;
287262 let tool : TerminateSessionTool ;
@@ -325,10 +300,6 @@ describe("TerminateSessionTool", () => {
325300 } ) ;
326301} ) ;
327302
328- // ---------------------------------------------------------------------------
329- // InspectSessionTool
330- // ---------------------------------------------------------------------------
331-
332303describe ( "InspectSessionTool" , ( ) => {
333304 let mgr : MockManager ;
334305 let tool : InspectSessionTool ;
@@ -363,10 +334,6 @@ describe("InspectSessionTool", () => {
363334 } ) ;
364335} ) ;
365336
366- // ---------------------------------------------------------------------------
367- // SessionHistoryTool
368- // ---------------------------------------------------------------------------
369-
370337describe ( "SessionHistoryTool" , ( ) => {
371338 let mgr : MockManager ;
372339 let tool : SessionHistoryTool ;
@@ -410,10 +377,6 @@ describe("SessionHistoryTool", () => {
410377 } ) ;
411378} ) ;
412379
413- // ---------------------------------------------------------------------------
414- // SessionMetricsTool
415- // ---------------------------------------------------------------------------
416-
417380describe ( "SessionMetricsTool" , ( ) => {
418381 let mgr : MockManager ;
419382 let tool : SessionMetricsTool ;
@@ -440,12 +403,8 @@ describe("SessionMetricsTool", () => {
440403 } ) ;
441404} ) ;
442405
443- // ---------------------------------------------------------------------------
444- // Integration: full workflow
445- // ---------------------------------------------------------------------------
446-
447406describe ( "Integration: session workflow" , ( ) => {
448- it ( "create → execute → list → terminate" , async ( ) => {
407+ it ( "create, execute, list, terminate" , async ( ) => {
449408 const mgr = makeMockManager ( ) ;
450409 mgr . listSessions . mockResolvedValue ( [ makeSessionInfo ( ) ] ) ;
451410
@@ -476,9 +435,7 @@ describe("Integration: session workflow", () => {
476435 } ) ;
477436} ) ;
478437
479- // ---------------------------------------------------------------------------
480438// Snapshot: one representative output per tool
481- // ---------------------------------------------------------------------------
482439
483440describe ( "Snapshots: wire format stability" , ( ) => {
484441 it ( "QueryShellTool success output" , async ( ) => {
0 commit comments