summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-26 01:55:57 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-04-26 01:55:57 +0000
commit097d9306689a9b79a7f8484a00d8d7b91fcda91b (patch)
tree2a6455e3bef05bd2d61de2c514528b2e8d596bee
parent7cab6824d1bf83f147c8a86b5cb5ca499c8eda13 (diff)
downloadopencode-097d9306689a9b79a7f8484a00d8d7b91fcda91b.tar.gz
opencode-097d9306689a9b79a7f8484a00d8d7b91fcda91b.zip
chore: generate
-rw-r--r--packages/opencode/specs/effect/http-api.md34
-rw-r--r--packages/opencode/test/server/httpapi-experimental.test.ts13
2 files changed, 27 insertions, 20 deletions
diff --git a/packages/opencode/specs/effect/http-api.md b/packages/opencode/specs/effect/http-api.md
index c09d7c8ed..a33680460 100644
--- a/packages/opencode/specs/effect/http-api.md
+++ b/packages/opencode/specs/effect/http-api.md
@@ -170,23 +170,23 @@ Use raw Effect HTTP routes where `HttpApi` does not fit. The goal is deleting Ho
## Current Route Status
-| Area | Status | Notes |
-| ------------------------- | ----------------- | -------------------------------------------------------------------------------------------------- |
-| `question` | `bridged` | `GET /question`, reply, reject |
-| `permission` | `bridged` | list and reply |
-| `provider` | `bridged` | list, auth, OAuth authorize/callback |
-| `config` | `bridged` | read, providers, update |
-| `project` | `bridged` | list, current, git init, update |
-| `file` | `bridged` partial | find text/file/symbol, list/content/status |
-| `mcp` | `bridged` | status, add, OAuth, connect/disconnect |
-| `workspace` | `bridged` partial | adaptor/list/status; create/remove/session-restore remain |
-| top-level instance routes | `bridged` | path, vcs, command, agent, skill, lsp, formatter, dispose |
-| experimental JSON routes | `bridged` partial | console, tool, worktree list/mutations, resource list; global session list remains later |
-| `session` | `later/special` | large stateful surface plus streaming |
-| `sync` | `later` | process/control side effects |
-| `event` | `special` | SSE |
-| `pty` | `special` | websocket |
-| `tui` | `special` | UI bridge |
+| Area | Status | Notes |
+| ------------------------- | ----------------- | ---------------------------------------------------------------------------------------- |
+| `question` | `bridged` | `GET /question`, reply, reject |
+| `permission` | `bridged` | list and reply |
+| `provider` | `bridged` | list, auth, OAuth authorize/callback |
+| `config` | `bridged` | read, providers, update |
+| `project` | `bridged` | list, current, git init, update |
+| `file` | `bridged` partial | find text/file/symbol, list/content/status |
+| `mcp` | `bridged` | status, add, OAuth, connect/disconnect |
+| `workspace` | `bridged` partial | adaptor/list/status; create/remove/session-restore remain |
+| top-level instance routes | `bridged` | path, vcs, command, agent, skill, lsp, formatter, dispose |
+| experimental JSON routes | `bridged` partial | console, tool, worktree list/mutations, resource list; global session list remains later |
+| `session` | `later/special` | large stateful surface plus streaming |
+| `sync` | `later` | process/control side effects |
+| `event` | `special` | SSE |
+| `pty` | `special` | websocket |
+| `tui` | `special` | UI bridge |
## Full Route Checklist
diff --git a/packages/opencode/test/server/httpapi-experimental.test.ts b/packages/opencode/test/server/httpapi-experimental.test.ts
index 84f8cef65..cf673dc96 100644
--- a/packages/opencode/test/server/httpapi-experimental.test.ts
+++ b/packages/opencode/test/server/httpapi-experimental.test.ts
@@ -103,11 +103,18 @@ describe("experimental HttpApi", () => {
test("serves Console org switch through Hono bridge", async () => {
await using tmp = await tmpdir({ config: { formatter: false, lsp: false } })
Database.Client()
- .$client
- .prepare(
+ .$client.prepare(
"INSERT INTO account (id, email, url, access_token, refresh_token, time_created, time_updated) VALUES (?, ?, ?, ?, ?, ?, ?)",
)
- .run("account-test", "[email protected]", "https://console.example.com", "access", "refresh", Date.now(), Date.now())
+ .run(
+ "account-test",
+ "https://console.example.com",
+ "access",
+ "refresh",
+ Date.now(),
+ Date.now(),
+ )
const switched = await app().request(ExperimentalPaths.consoleSwitch, {
method: "POST",