feat(pty): expose shells and connect tokens

This commit is contained in:
Brendan Allan 2026-07-21 19:02:12 +08:00
commit dbe7b937ef
No known key found for this signature in database
GPG key ID: 41E835AEA046A32E
6 changed files with 50 additions and 4 deletions

View file

@ -29,6 +29,13 @@ export const PtyHandler = HttpApiBuilder.group(Api, "server.pty", (handlers) =>
const environment = yield* PtyEnvironment.Service
return handlers
.handle(
"pty.shells",
Effect.fn(function* () {
const pty = yield* Pty.Service
return yield* response(pty.shells())
}),
)
.handle(
"pty.list",
Effect.fn(function* () {