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

@ -90,6 +90,18 @@ const waitForOutput = (output: Queue.Queue<string>, text: string) =>
}),
)
describe("Pty.shells", () => {
it.live("lists available shells", () =>
Effect.gen(function* () {
const pty = yield* Pty.Service
const shells = yield* pty.shells()
expect(shells.length).toBeGreaterThan(0)
expect(shells.every((shell) => shell.path && shell.name && typeof shell.acceptable === "boolean")).toBe(true)
}),
)
})
describe("pty", () => {
it.live("returns typed not found errors for missing sessions", () =>
Effect.gen(function* () {