(
_args: acp.InitializeRequest,
)
| 71 | ) {} |
| 72 | |
| 73 | async initialize( |
| 74 | _args: acp.InitializeRequest, |
| 75 | ): Promise<acp.InitializeResponse> { |
| 76 | const authMethods = [ |
| 77 | { |
| 78 | id: AuthType.LOGIN_WITH_GOOGLE, |
| 79 | name: 'Log in with Google', |
| 80 | description: null, |
| 81 | }, |
| 82 | { |
| 83 | id: AuthType.USE_GROK, |
| 84 | name: 'Use Grok API key', |
| 85 | description: 'Requires setting the `GROK_API_KEY` environment variable', |
| 86 | }, |
| 87 | { |
| 88 | id: AuthType.USE_VERTEX_AI, |
| 89 | name: 'Vertex AI', |
| 90 | description: null, |
| 91 | }, |
| 92 | ]; |
| 93 | |
| 94 | return { |
| 95 | protocolVersion: acp.PROTOCOL_VERSION, |
| 96 | authMethods, |
| 97 | agentCapabilities: { |
| 98 | loadSession: false, |
| 99 | }, |
| 100 | }; |
| 101 | } |
| 102 | |
| 103 | async authenticate({ methodId }: acp.AuthenticateRequest): Promise<void> { |
| 104 | const method = z.nativeEnum(AuthType).parse(methodId); |
nothing calls this directly
no outgoing calls
no test coverage detected