Skip to content

Commit 854d4b7

Browse files
chore: generate
1 parent aa5999b commit 854d4b7

3 files changed

Lines changed: 22 additions & 19 deletions

File tree

packages/opencode/specs/effect/http-api.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -170,23 +170,23 @@ Use raw Effect HTTP routes where `HttpApi` does not fit. The goal is deleting Ho
170170

171171
## Current Route Status
172172

173-
| Area | Status | Notes |
174-
| ------------------------- | ----------------- | ---------------------------------------------------------------------------------------- |
175-
| `question` | `bridged` | `GET /question`, reply, reject |
176-
| `permission` | `bridged` | list and reply |
177-
| `provider` | `bridged` | list, auth, OAuth authorize/callback |
178-
| `config` | `bridged` | read, providers, update |
179-
| `project` | `bridged` | list, current, git init, update |
180-
| `file` | `bridged` partial | find text/file/symbol, list/content/status |
181-
| `mcp` | `bridged` | status, add, OAuth, connect/disconnect |
182-
| `workspace` | `bridged` | adaptor/list/status/create/remove/session-restore |
183-
| top-level instance routes | `bridged` | path, vcs, command, agent, skill, lsp, formatter, dispose |
184-
| experimental JSON routes | `bridged` | console, tool, worktree list/mutations, global session list, resource list |
185-
| `session` | `later/special` | large stateful surface plus streaming |
186-
| `sync` | `later` | process/control side effects |
187-
| `event` | `special` | SSE |
188-
| `pty` | `special` | websocket |
189-
| `tui` | `special` | UI bridge |
173+
| Area | Status | Notes |
174+
| ------------------------- | ----------------- | -------------------------------------------------------------------------- |
175+
| `question` | `bridged` | `GET /question`, reply, reject |
176+
| `permission` | `bridged` | list and reply |
177+
| `provider` | `bridged` | list, auth, OAuth authorize/callback |
178+
| `config` | `bridged` | read, providers, update |
179+
| `project` | `bridged` | list, current, git init, update |
180+
| `file` | `bridged` partial | find text/file/symbol, list/content/status |
181+
| `mcp` | `bridged` | status, add, OAuth, connect/disconnect |
182+
| `workspace` | `bridged` | adaptor/list/status/create/remove/session-restore |
183+
| top-level instance routes | `bridged` | path, vcs, command, agent, skill, lsp, formatter, dispose |
184+
| experimental JSON routes | `bridged` | console, tool, worktree list/mutations, global session list, resource list |
185+
| `session` | `later/special` | large stateful surface plus streaming |
186+
| `sync` | `later` | process/control side effects |
187+
| `event` | `special` | SSE |
188+
| `pty` | `special` | websocket |
189+
| `tui` | `special` | UI bridge |
190190

191191
## Full Route Checklist
192192

packages/opencode/src/server/routes/instance/httpapi/workspace.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ const root = "/experimental/workspace"
1111
const CreatePayload = Schema.Struct(Struct.omit(Workspace.CreateInput.fields, ["projectID"])).annotate({
1212
identifier: "WorkspaceCreateInput",
1313
})
14-
const SessionRestorePayload = Schema.Struct(Struct.omit(Workspace.SessionRestoreInput.fields, ["workspaceID"])).annotate({
14+
const SessionRestorePayload = Schema.Struct(
15+
Struct.omit(Workspace.SessionRestoreInput.fields, ["workspaceID"]),
16+
).annotate({
1517
identifier: "WorkspaceSessionRestoreInput",
1618
})
1719
const SessionRestoreResponse = Schema.Struct({

packages/opencode/test/server/httpapi-workspace.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ describe("workspace HttpApi", () => {
9696
await using tmp = await tmpdir({ git: true })
9797
await Instance.provide({
9898
directory: tmp.path,
99-
fn: async () => registerAdaptor(Instance.project.id, "local-test", localAdaptor(path.join(tmp.path, ".workspace"))),
99+
fn: async () =>
100+
registerAdaptor(Instance.project.id, "local-test", localAdaptor(path.join(tmp.path, ".workspace"))),
100101
})
101102

102103
const created = await request(WorkspacePaths.list, tmp.path, {

0 commit comments

Comments
 (0)