chore: generate

This commit is contained in:
opencode-agent[bot]
2026-04-26 01:55:57 +00:00
parent 7cab6824d1
commit 097d930668
2 changed files with 27 additions and 20 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ Use raw Effect HTTP routes where `HttpApi` does not fit. The goal is deleting Ho
## Current Route Status ## Current Route Status
| Area | Status | Notes | | Area | Status | Notes |
| ------------------------- | ----------------- | -------------------------------------------------------------------------------------------------- | | ------------------------- | ----------------- | ---------------------------------------------------------------------------------------- |
| `question` | `bridged` | `GET /question`, reply, reject | | `question` | `bridged` | `GET /question`, reply, reject |
| `permission` | `bridged` | list and reply | | `permission` | `bridged` | list and reply |
| `provider` | `bridged` | list, auth, OAuth authorize/callback | | `provider` | `bridged` | list, auth, OAuth authorize/callback |
@@ -103,11 +103,18 @@ describe("experimental HttpApi", () => {
test("serves Console org switch through Hono bridge", async () => { test("serves Console org switch through Hono bridge", async () => {
await using tmp = await tmpdir({ config: { formatter: false, lsp: false } }) await using tmp = await tmpdir({ config: { formatter: false, lsp: false } })
Database.Client() Database.Client()
.$client .$client.prepare(
.prepare(
"INSERT INTO account (id, email, url, access_token, refresh_token, time_created, time_updated) VALUES (?, ?, ?, ?, ?, ?, ?)", "INSERT INTO account (id, email, url, access_token, refresh_token, time_created, time_updated) VALUES (?, ?, ?, ?, ?, ?, ?)",
) )
.run("account-test", "test@example.com", "https://console.example.com", "access", "refresh", Date.now(), Date.now()) .run(
"account-test",
"test@example.com",
"https://console.example.com",
"access",
"refresh",
Date.now(),
Date.now(),
)
const switched = await app().request(ExperimentalPaths.consoleSwitch, { const switched = await app().request(ExperimentalPaths.consoleSwitch, {
method: "POST", method: "POST",