| 4 | import type * as AcpError from "./errors.ts"; |
| 5 | |
| 6 | export interface AcpTerminal { |
| 7 | readonly sessionId: string; |
| 8 | readonly terminalId: string; |
| 9 | /** Reads buffered output from the terminal. |
| 10 | * Spec: https://agentclientprotocol.com/protocol/schema#terminal/output |
| 11 | */ |
| 12 | readonly output: Effect.Effect<AcpSchema.TerminalOutputResponse, AcpError.AcpError>; |
| 13 | /** Waits for terminal exit and returns the exit result. |
| 14 | * Spec: https://agentclientprotocol.com/protocol/schema#terminal/wait_for_exit |
| 15 | */ |
| 16 | readonly waitForExit: Effect.Effect<AcpSchema.WaitForTerminalExitResponse, AcpError.AcpError>; |
| 17 | /** Terminates the terminal process. |
| 18 | * Spec: https://agentclientprotocol.com/protocol/schema#terminal/kill |
| 19 | */ |
| 20 | readonly kill: Effect.Effect<AcpSchema.KillTerminalResponse, AcpError.AcpError>; |
| 21 | /** Releases the terminal handle from the ACP session. |
| 22 | * Spec: https://agentclientprotocol.com/protocol/schema#terminal/release |
| 23 | */ |
| 24 | readonly release: Effect.Effect<AcpSchema.ReleaseTerminalResponse, AcpError.AcpError>; |
| 25 | } |
nothing calls this directly
no outgoing calls
no test coverage detected