(client: EmulatorClient)
| 109 | }); |
| 110 | |
| 111 | const mintEmulatorApiKey = (client: EmulatorClient) => |
| 112 | Effect.gen(function* () { |
| 113 | const credential = yield* Effect.promise(() => client.credentials.mint({ type: "api-key" })); |
| 114 | const token = credential.token; |
| 115 | if (!token) throw new Error(`emulator credential mint failed: ${JSON.stringify(credential)}`); |
| 116 | return token; |
| 117 | }); |
| 118 | |
| 119 | scenario( |
| 120 | "Connect · the agentic handoff URL opens this deployment's add-account flow and the pasted key works", |
no outgoing calls
no test coverage detected