| 11 | import type { Identity, Target } from "../src/target"; |
| 12 | |
| 13 | export const localTarget = (): Target => ({ |
| 14 | name: "local", |
| 15 | // Placeholders: scenarios navigate to absolute URLs (the CLI prints the real |
| 16 | // port), so the browser context's baseURL is never used to resolve a path. |
| 17 | baseUrl: "http://127.0.0.1", |
| 18 | mcpUrl: "http://127.0.0.1/mcp", |
| 19 | // "browser" provides the Browser surface; Cli is always available. No |
| 20 | // "mcp-oauth" (bearer-gated, not OAuth consent) and no "billing". |
| 21 | capabilities: new Set(["browser"]), |
| 22 | // Single-user: a trivial identity with no cookies. The browser authenticates |
| 23 | // via the ?_token bootstrap the scenario performs, not via injected identity. |
| 24 | newIdentity: () => Effect.sync((): Identity => ({ label: "local" })), |
| 25 | }); |