refactor(server): unify instance httpapi middleware routing
publish-github-action / publish (push) Has been cancelled

Unify declared instance HTTP API endpoints under typed middleware routing, including event streaming and PTY WebSocket connect handling.\n\nPreserve PTY connect compatibility by checking missing PTYs before parsing optional cursor and ticket query fields, with regression coverage.
This commit is contained in:
Kit Langton
2026-05-27 08:45:11 -04:00
committed by GitHub
parent 61001c5dd6
commit 0122f38e09
18 changed files with 340 additions and 195 deletions
+4
View File
@@ -2633,6 +2633,8 @@ export class Pty extends HeyApiClient {
ptyID: string
directory?: string
workspace?: string
cursor?: string
ticket?: string
},
options?: Options<never, ThrowOnError>,
) {
@@ -2644,6 +2646,8 @@ export class Pty extends HeyApiClient {
{ in: "path", key: "ptyID" },
{ in: "query", key: "directory" },
{ in: "query", key: "workspace" },
{ in: "query", key: "cursor" },
{ in: "query", key: "ticket" },
],
},
],
+2
View File
@@ -8200,6 +8200,8 @@ export type PtyConnectData = {
query?: {
directory?: string
workspace?: string
cursor?: string
ticket?: string
}
url: "/pty/{ptyID}/connect"
}