@@ -24,6 +24,9 @@ import {
2424 CancelNotification ,
2525 SessionNotification ,
2626 PROTOCOL_VERSION ,
27+ ListCommandsRequest ,
28+ ListCommandsResponse ,
29+ RunCommandRequest ,
2730} from "./acp.js" ;
2831
2932describe ( "Connection" , ( ) => {
@@ -78,6 +81,14 @@ describe("Connection", () => {
7881 async cancel ( _ : CancelNotification ) : Promise < void > {
7982 // no-op
8083 }
84+ async listCommands (
85+ _ : ListCommandsRequest ,
86+ ) : Promise < ListCommandsResponse > {
87+ throw new Error ( "not implemented" ) ;
88+ }
89+ async runCommand ( _ : RunCommandRequest ) : Promise < void > {
90+ throw new Error ( "not implemented" ) ;
91+ }
8192 }
8293
8394 // Set up connections
@@ -170,6 +181,14 @@ describe("Connection", () => {
170181 async cancel ( _ : CancelNotification ) : Promise < void > {
171182 // no-op
172183 }
184+ async listCommands (
185+ _ : ListCommandsRequest ,
186+ ) : Promise < ListCommandsResponse > {
187+ throw new Error ( "not implemented" ) ;
188+ }
189+ async runCommand ( _ : RunCommandRequest ) : Promise < void > {
190+ throw new Error ( "not implemented" ) ;
191+ }
173192 }
174193
175194 new ClientSideConnection (
@@ -276,6 +295,14 @@ describe("Connection", () => {
276295 async cancel ( params : CancelNotification ) : Promise < void > {
277296 messageLog . push ( `cancelled called: ${ params . sessionId } ` ) ;
278297 }
298+ async listCommands (
299+ _ : ListCommandsRequest ,
300+ ) : Promise < ListCommandsResponse > {
301+ throw new Error ( "not implemented" ) ;
302+ }
303+ async runCommand ( _ : RunCommandRequest ) : Promise < void > {
304+ throw new Error ( "not implemented" ) ;
305+ }
279306 }
280307
281308 // Set up connections
@@ -407,6 +434,14 @@ describe("Connection", () => {
407434 async cancel ( params : CancelNotification ) : Promise < void > {
408435 notificationLog . push ( `cancelled: ${ params . sessionId } ` ) ;
409436 }
437+ async listCommands (
438+ _ : ListCommandsRequest ,
439+ ) : Promise < ListCommandsResponse > {
440+ throw new Error ( "not implemented" ) ;
441+ }
442+ async runCommand ( _ : RunCommandRequest ) : Promise < void > {
443+ throw new Error ( "not implemented" ) ;
444+ }
410445 }
411446
412447 // Create shared instances
@@ -506,6 +541,14 @@ describe("Connection", () => {
506541 async cancel ( _ : CancelNotification ) : Promise < void > {
507542 // no-op
508543 }
544+ async listCommands (
545+ _ : ListCommandsRequest ,
546+ ) : Promise < ListCommandsResponse > {
547+ throw new Error ( "not implemented" ) ;
548+ }
549+ async runCommand ( _ : RunCommandRequest ) : Promise < void > {
550+ throw new Error ( "not implemented" ) ;
551+ }
509552 }
510553
511554 const agentConnection = new ClientSideConnection (
0 commit comments