Ver Fonte

chore: generate

opencode-agent[bot] há 4 meses atrás
pai
commit
097d930668

+ 17 - 17
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
 

+ 10 - 3
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", "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, {
       method: "POST",