@@ -178,8 +178,8 @@ Use raw Effect HTTP routes where `HttpApi` does not fit. The goal is deleting Ho |
178 | 178 | | `config` | `bridged` | read, providers, update | |
179 | 179 | | `project` | `bridged` | list, current, git init, update | |
180 | 180 | | `file` | `bridged` partial | find text/file/symbol, list/content/status | |
181 | | -| `mcp` | `bridged` partial | status only | |
182 | | -| `workspace` | `bridged` | list, get, enter | |
| 181 | +| `mcp` | `bridged` partial | status, add, connect/disconnect; OAuth remains | |
| 182 | +| `workspace` | `bridged` partial | adaptor/list/status; create/remove/session-restore remain | |
183 | 183 | | top-level instance routes | `bridged` | path, vcs, command, agent, skill, lsp, formatter, dispose | |
184 | 184 | | experimental JSON routes | `bridged` partial | console reads, tool ids, worktree list/mutations, resource list; global session list remains later | |
185 | 185 | | `session` | `later/special` | large stateful surface plus streaming | |
@@ -188,24 +188,180 @@ Use raw Effect HTTP routes where `HttpApi` does not fit. The goal is deleting Ho |
188 | 188 | | `pty` | `special` | websocket | |
189 | 189 | | `tui` | `special` | UI bridge | |
190 | 190 |
|
| 191 | +## Full Route Checklist |
| 192 | + |
| 193 | +This checklist tracks bridge parity only. Checked routes are available through the experimental `HttpApi` bridge; Hono deletion is tracked separately by the deletion checklist above. |
| 194 | + |
| 195 | +### Top-Level Instance Routes |
| 196 | + |
| 197 | +- [x] `POST /instance/dispose` - dispose active instance after response. |
| 198 | +- [x] `GET /path` - current directory and worktree paths. |
| 199 | +- [x] `GET /vcs` - current VCS status. |
| 200 | +- [x] `GET /vcs/diff` - VCS diff summary. |
| 201 | +- [x] `GET /command` - command catalog. |
| 202 | +- [x] `GET /agent` - agent catalog. |
| 203 | +- [x] `GET /skill` - skill catalog. |
| 204 | +- [x] `GET /lsp` - LSP status. |
| 205 | +- [x] `GET /formatter` - formatter status. |
| 206 | + |
| 207 | +### Config Routes |
| 208 | + |
| 209 | +- [x] `GET /config` - read config. |
| 210 | +- [x] `PATCH /config` - update config and dispose active instance after response. |
| 211 | +- [x] `GET /config/providers` - config provider summary. |
| 212 | + |
| 213 | +### Project Routes |
| 214 | + |
| 215 | +- [x] `GET /project` - list projects. |
| 216 | +- [x] `GET /project/current` - current project. |
| 217 | +- [x] `POST /project/git/init` - initialize git and reload active instance after response. |
| 218 | +- [x] `PATCH /project/:projectID` - update project metadata. |
| 219 | + |
| 220 | +### Provider Routes |
| 221 | + |
| 222 | +- [x] `GET /provider` - list providers. |
| 223 | +- [x] `GET /provider/auth` - list provider auth methods. |
| 224 | +- [x] `POST /provider/:providerID/oauth/authorize` - start provider OAuth. |
| 225 | +- [x] `POST /provider/:providerID/oauth/callback` - finish provider OAuth. |
| 226 | + |
| 227 | +### Question Routes |
| 228 | + |
| 229 | +- [x] `GET /question` - list questions. |
| 230 | +- [x] `POST /question/:requestID/reply` - reply to question. |
| 231 | +- [x] `POST /question/:requestID/reject` - reject question. |
| 232 | + |
| 233 | +### Permission Routes |
| 234 | + |
| 235 | +- [x] `GET /permission` - list permission requests. |
| 236 | +- [x] `POST /permission/:requestID/reply` - reply to permission request. |
| 237 | + |
| 238 | +### File Routes |
| 239 | + |
| 240 | +- [x] `GET /find` - text search. |
| 241 | +- [x] `GET /find/file` - file search. |
| 242 | +- [x] `GET /find/symbol` - symbol search. |
| 243 | +- [x] `GET /file` - list directory entries. |
| 244 | +- [x] `GET /file/content` - read file content. |
| 245 | +- [x] `GET /file/status` - file status. |
| 246 | + |
| 247 | +### MCP Routes |
| 248 | + |
| 249 | +- [x] `GET /mcp` - MCP status. |
| 250 | +- [x] `POST /mcp` - add MCP server at runtime. |
| 251 | +- [ ] `POST /mcp/:name/auth` - start MCP OAuth. |
| 252 | +- [ ] `POST /mcp/:name/auth/callback` - finish MCP OAuth callback. |
| 253 | +- [ ] `POST /mcp/:name/auth/authenticate` - run MCP OAuth authenticate flow. |
| 254 | +- [ ] `DELETE /mcp/:name/auth` - remove MCP OAuth credentials. |
| 255 | +- [x] `POST /mcp/:name/connect` - connect MCP server. |
| 256 | +- [x] `POST /mcp/:name/disconnect` - disconnect MCP server. |
| 257 | + |
| 258 | +### Experimental Routes |
| 259 | + |
| 260 | +- [x] `GET /experimental/console` - active Console provider metadata. |
| 261 | +- [x] `GET /experimental/console/orgs` - switchable Console orgs. |
| 262 | +- [ ] `POST /experimental/console/switch` - switch active Console org. |
| 263 | +- [x] `GET /experimental/tool/ids` - tool IDs. |
| 264 | +- [ ] `GET /experimental/tool` - tools for provider/model. |
| 265 | +- [x] `GET /experimental/worktree` - list worktrees. |
| 266 | +- [x] `POST /experimental/worktree` - create worktree. |
| 267 | +- [x] `DELETE /experimental/worktree` - remove worktree. |
| 268 | +- [x] `POST /experimental/worktree/reset` - reset worktree. |
| 269 | +- [ ] `GET /experimental/session` - global session list. |
| 270 | +- [x] `GET /experimental/resource` - MCP resources. |
| 271 | + |
| 272 | +### Workspace Routes |
| 273 | + |
| 274 | +- [x] `GET /experimental/workspace/adaptor` - list workspace adaptors. |
| 275 | +- [ ] `POST /experimental/workspace` - create workspace. |
| 276 | +- [x] `GET /experimental/workspace` - list workspaces. |
| 277 | +- [x] `GET /experimental/workspace/status` - workspace status. |
| 278 | +- [ ] `DELETE /experimental/workspace/:id` - remove workspace. |
| 279 | +- [ ] `POST /experimental/workspace/:id/session-restore` - restore session into workspace. |
| 280 | + |
| 281 | +### Sync Routes |
| 282 | + |
| 283 | +- [ ] `POST /sync/start` - start workspace sync. |
| 284 | +- [ ] `POST /sync/replay` - replay sync events. |
| 285 | +- [ ] `POST /sync/history` - list sync event history. |
| 286 | + |
| 287 | +### Session Routes |
| 288 | + |
| 289 | +- [ ] `GET /session` - list sessions. |
| 290 | +- [ ] `GET /session/status` - session status map. |
| 291 | +- [ ] `GET /session/:sessionID` - get session. |
| 292 | +- [ ] `GET /session/:sessionID/children` - get child sessions. |
| 293 | +- [ ] `GET /session/:sessionID/todo` - get session todos. |
| 294 | +- [ ] `POST /session` - create session. |
| 295 | +- [ ] `DELETE /session/:sessionID` - delete session. |
| 296 | +- [ ] `PATCH /session/:sessionID` - update session metadata. |
| 297 | +- [ ] `POST /session/:sessionID/init` - run project init command. |
| 298 | +- [ ] `POST /session/:sessionID/fork` - fork session. |
| 299 | +- [ ] `POST /session/:sessionID/abort` - abort session. |
| 300 | +- [ ] `POST /session/:sessionID/share` - share session. |
| 301 | +- [ ] `GET /session/:sessionID/diff` - session diff. |
| 302 | +- [ ] `DELETE /session/:sessionID/share` - unshare session. |
| 303 | +- [ ] `POST /session/:sessionID/summarize` - summarize session. |
| 304 | +- [ ] `GET /session/:sessionID/message` - list session messages. |
| 305 | +- [ ] `GET /session/:sessionID/message/:messageID` - get message. |
| 306 | +- [ ] `DELETE /session/:sessionID/message/:messageID` - delete message. |
| 307 | +- [ ] `DELETE /session/:sessionID/message/:messageID/part/:partID` - delete part. |
| 308 | +- [ ] `PATCH /session/:sessionID/message/:messageID/part/:partID` - update part. |
| 309 | +- [ ] `POST /session/:sessionID/message` - prompt with streaming response. |
| 310 | +- [ ] `POST /session/:sessionID/prompt_async` - async prompt. |
| 311 | +- [ ] `POST /session/:sessionID/command` - run command. |
| 312 | +- [ ] `POST /session/:sessionID/shell` - run shell command. |
| 313 | +- [ ] `POST /session/:sessionID/revert` - revert message. |
| 314 | +- [ ] `POST /session/:sessionID/unrevert` - restore reverted messages. |
| 315 | +- [ ] `POST /session/:sessionID/permissions/:permissionID` - deprecated permission response route. |
| 316 | + |
| 317 | +### Event Routes |
| 318 | + |
| 319 | +- [ ] `GET /event` - SSE event stream; replace with raw Effect HTTP, not `HttpApi`. |
| 320 | + |
| 321 | +### PTY Routes |
| 322 | + |
| 323 | +- [ ] `GET /pty` - list PTY sessions. |
| 324 | +- [ ] `POST /pty` - create PTY session. |
| 325 | +- [ ] `GET /pty/:ptyID` - get PTY session. |
| 326 | +- [ ] `PUT /pty/:ptyID` - update PTY session. |
| 327 | +- [ ] `DELETE /pty/:ptyID` - remove PTY session. |
| 328 | +- [ ] `GET /pty/:ptyID/connect` - PTY websocket; replace with raw Effect HTTP/websocket support. |
| 329 | + |
| 330 | +### TUI Routes |
| 331 | + |
| 332 | +- [ ] `POST /tui/append-prompt` - append prompt. |
| 333 | +- [ ] `POST /tui/open-help` - open help. |
| 334 | +- [ ] `POST /tui/open-sessions` - open sessions. |
| 335 | +- [ ] `POST /tui/open-themes` - open themes. |
| 336 | +- [ ] `POST /tui/open-models` - open models. |
| 337 | +- [ ] `POST /tui/submit-prompt` - submit prompt. |
| 338 | +- [ ] `POST /tui/clear-prompt` - clear prompt. |
| 339 | +- [ ] `POST /tui/execute-command` - execute command. |
| 340 | +- [ ] `POST /tui/show-toast` - show toast. |
| 341 | +- [ ] `POST /tui/publish` - publish TUI event. |
| 342 | +- [ ] `POST /tui/select-session` - select session. |
| 343 | +- [ ] `GET /tui/control/next` - get next TUI request. |
| 344 | +- [ ] `POST /tui/control/response` - submit TUI control response. |
| 345 | + |
191 | 346 | ## Remaining PR Plan |
192 | 347 |
|
193 | 348 | Prefer smaller PRs from here so route behavior and SDK/OpenAPI fallout stays reviewable. |
194 | 349 |
|
195 | | -1. Bridge `PATCH /project/:projectID`. |
196 | | -2. Bridge MCP add/connect/disconnect routes. |
197 | | -3. Bridge MCP OAuth routes: start, callback, authenticate, remove. |
198 | | -4. Bridge experimental console switch and tool list routes. |
199 | | -5. Bridge experimental global session list. |
200 | | -6. Bridge sync start/replay/history routes. |
201 | | -7. Bridge session read routes: list, status, get, children, todo, diff, messages. |
202 | | -8. Bridge session lifecycle mutation routes: create, delete, update, fork, abort. |
203 | | -9. Bridge session share/summary/message/part mutation routes. |
204 | | -10. Replace event SSE with non-Hono Effect HTTP. |
205 | | -11. Replace pty websocket/control routes with non-Hono Effect HTTP. |
206 | | -12. Replace tui bridge routes or explicitly isolate them behind a non-Hono compatibility layer. |
207 | | -13. Switch OpenAPI/SDK generation to Effect routes and compare SDK output. |
208 | | -14. Flip ported JSON routes default-on, keep a short fallback, then delete replaced Hono route files. |
| 350 | +1. [x] Bridge `PATCH /project/:projectID`. |
| 351 | +2. [x] Bridge MCP add/connect/disconnect routes. |
| 352 | +3. [ ] Bridge MCP OAuth routes: start, callback, authenticate, remove. |
| 353 | +4. [ ] Bridge experimental console switch and tool list routes. |
| 354 | +5. [ ] Bridge experimental global session list. |
| 355 | +6. [ ] Bridge workspace create/remove/session-restore routes. |
| 356 | +7. [ ] Bridge sync start/replay/history routes. |
| 357 | +8. [ ] Bridge session read routes: list, status, get, children, todo, diff, messages. |
| 358 | +9. [ ] Bridge session lifecycle mutation routes: create, delete, update, fork, abort. |
| 359 | +10. [ ] Bridge session share/summary/message/part mutation routes. |
| 360 | +11. [ ] Replace event SSE with non-Hono Effect HTTP. |
| 361 | +12. [ ] Replace pty websocket/control routes with non-Hono Effect HTTP. |
| 362 | +13. [ ] Replace tui bridge routes or explicitly isolate them behind a non-Hono compatibility layer. |
| 363 | +14. [ ] Switch OpenAPI/SDK generation to Effect routes and compare SDK output. |
| 364 | +15. [ ] Flip ported JSON routes default-on, keep a short fallback, then delete replaced Hono route files. |
209 | 365 |
|
210 | 366 | ## Checklist |
211 | 367 |
|
@@ -216,7 +372,7 @@ Prefer smaller PRs from here so route behavior and SDK/OpenAPI fallout stays rev |
216 | 372 | - [x] Attach auth middleware in route modules. |
217 | 373 | - [x] Support `auth_token` as a query security scheme. |
218 | 374 | - [x] Add bridge-level auth and instance tests. |
219 | | -- [ ] Complete exact Hono route inventory. |
| 375 | +- [x] Complete exact Hono route inventory. |
220 | 376 | - [x] Resolve implemented-but-unmounted route groups. |
221 | 377 | - [x] Port remaining top-level JSON reads. |
222 | 378 | - [ ] Generate SDK/OpenAPI from Effect routes. |
|