(value?: string)
| 57 | } |
| 58 | |
| 59 | async function input(value?: string) { |
| 60 | const piped = process.stdin.isTTY ? undefined : await Bun.stdin.text() |
| 61 | if (!value) return piped |
| 62 | if (!piped) return value |
| 63 | return piped + "\n" + value |
| 64 | } |
| 65 | |
| 66 | export function resolveThreadDirectory(project?: string, envPWD = process.env.PWD, cwd = process.cwd()) { |
| 67 | const root = Filesystem.resolve(envPWD ?? cwd) |
no test coverage detected