()
| 149 | // tmux/screen require passthrough wrapping to forward the sequence. |
| 150 | |
| 151 | export function isRemoteSession(): boolean { |
| 152 | const env = getCliEnv() |
| 153 | return !!(env.SSH_CLIENT || env.SSH_TTY || env.SSH_CONNECTION) |
| 154 | } |
| 155 | |
| 156 | function tryCopyViaPlatformTool(text: string): boolean { |
| 157 | const { execSync } = require('child_process') as typeof import('child_process') |
no test coverage detected