(state: WrapperState)
| 160 | const MIN_PTY_ROWS = 2; |
| 161 | const MAX_PTY_ROWS = 200; |
| 162 | const WORKSPACE_TERMINAL_ENV = { |
| 163 | // Shell startup files may replace inherited PS1, so reapply it before each prompt. |
| 164 | PROMPT_COMMAND: "PS1='\\n\\W\\n\\$ '", |
| 165 | PS1: '\\n\\W\\n\\$ ', |
| 166 | [PNPM_STORE_ENV_VAR]: PNPM_STORE_DIR, |
| 167 | } satisfies Record<string, string>; |
| 168 | |
| 169 | function jsonResponse(data: unknown, status = 200): Response { |
| 170 | return new Response(JSON.stringify(data), { |
| 171 | status, |
| 172 | headers: { 'Content-Type': 'application/json' }, |
| 173 | }); |
| 174 | } |
no test coverage detected