()
| 66 | } |
| 67 | |
| 68 | function listState() { |
| 69 | return Effect.gen(function* () { |
| 70 | const cfg = yield* Config.Service |
| 71 | const mcp = yield* MCP.Service |
| 72 | const config = yield* cfg.get() |
| 73 | const statuses = yield* mcp.status() |
| 74 | const stored = yield* Effect.all( |
| 75 | Object.fromEntries(configuredServers(config).map(([name]) => [name, mcp.hasStoredTokens(name)])), |
| 76 | { concurrency: "unbounded" }, |
| 77 | ) |
| 78 | return { config, statuses, stored } |
| 79 | }) |
| 80 | } |
| 81 | |
| 82 | function authState() { |
| 83 | return Effect.gen(function* () { |
no test coverage detected