chore: generate
This commit is contained in:
@@ -170,23 +170,23 @@ 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 |
|
||||||
| `config` | `bridged` | read, providers, update |
|
| `config` | `bridged` | read, providers, update |
|
||||||
| `project` | `bridged` | list, current, git init, update |
|
| `project` | `bridged` | list, current, git init, update |
|
||||||
| `file` | `bridged` partial | find text/file/symbol, list/content/status |
|
| `file` | `bridged` partial | find text/file/symbol, list/content/status |
|
||||||
| `mcp` | `bridged` | status, add, OAuth, connect/disconnect |
|
| `mcp` | `bridged` | status, add, OAuth, connect/disconnect |
|
||||||
| `workspace` | `bridged` | adaptor/list/status/create/remove/session-restore |
|
| `workspace` | `bridged` | adaptor/list/status/create/remove/session-restore |
|
||||||
| top-level instance routes | `bridged` | path, vcs, command, agent, skill, lsp, formatter, dispose |
|
| top-level instance routes | `bridged` | path, vcs, command, agent, skill, lsp, formatter, dispose |
|
||||||
| experimental JSON routes | `bridged` | console, tool, worktree list/mutations, global session list, resource list |
|
| experimental JSON routes | `bridged` | console, tool, worktree list/mutations, global session list, resource list |
|
||||||
| `session` | `later/special` | large stateful surface plus streaming |
|
| `session` | `later/special` | large stateful surface plus streaming |
|
||||||
| `sync` | `bridged` | start/replay/history |
|
| `sync` | `bridged` | start/replay/history |
|
||||||
| `event` | `special` | SSE |
|
| `event` | `special` | SSE |
|
||||||
| `pty` | `special` | websocket |
|
| `pty` | `special` | websocket |
|
||||||
| `tui` | `special` | UI bridge |
|
| `tui` | `special` | UI bridge |
|
||||||
|
|
||||||
## Full Route Checklist
|
## Full Route Checklist
|
||||||
|
|
||||||
|
|||||||
@@ -140,9 +140,9 @@ export const mcpHandlers = Layer.unwrap(
|
|||||||
|
|
||||||
const add = Effect.fn("McpHttpApi.add")(function* (ctx: { payload: typeof AddPayload.Type }) {
|
const add = Effect.fn("McpHttpApi.add")(function* (ctx: { payload: typeof AddPayload.Type }) {
|
||||||
const result = (yield* mcp.add(ctx.payload.name, ctx.payload.config)).status
|
const result = (yield* mcp.add(ctx.payload.name, ctx.payload.config)).status
|
||||||
return yield* Schema.decodeUnknownEffect(StatusMap)("status" in result ? { [ctx.payload.name]: result } : result).pipe(
|
return yield* Schema.decodeUnknownEffect(StatusMap)(
|
||||||
Effect.mapError(() => new HttpApiError.BadRequest({})),
|
"status" in result ? { [ctx.payload.name]: result } : result,
|
||||||
)
|
).pipe(Effect.mapError(() => new HttpApiError.BadRequest({})))
|
||||||
})
|
})
|
||||||
|
|
||||||
const authStart = Effect.fn("McpHttpApi.authStart")(function* (ctx: { params: { name: string } }) {
|
const authStart = Effect.fn("McpHttpApi.authStart")(function* (ctx: { params: { name: string } }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user