File tree Expand file tree Collapse file tree
src/__tests__/CodexACPAgent/e2e Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,6 +77,24 @@ export async function createGatewayFixture(
7777 } ) ;
7878}
7979
80+ function buildClientCapabilities ( ) : acp . ClientCapabilities {
81+ return {
82+ fs : {
83+ readTextFile : true ,
84+ writeTextFile : true ,
85+ } ,
86+ terminal : true ,
87+ auth : {
88+ _meta : {
89+ gateway : true ,
90+ } ,
91+ } ,
92+ _meta : {
93+ "terminal-auth" : true ,
94+ } ,
95+ } ;
96+ }
97+
8098type Authenticator = ( connection : acp . ClientSideConnection , authMethods : acp . AuthMethod [ ] ) => Promise < void > ;
8199
82100async function createSpawnedFixture (
@@ -88,7 +106,7 @@ async function createSpawnedFixture(
88106
89107 const initializeResponse = await connection . initialize ( {
90108 protocolVersion : acp . PROTOCOL_VERSION ,
91- clientCapabilities : { } ,
109+ clientCapabilities : buildClientCapabilities ( ) ,
92110 clientInfo : {
93111 name : "vitest" ,
94112 version : "1.0.0" ,
You can’t perform that action at this time.
0 commit comments