()
| 41 | * terminal window, and the screenshots exclude it regardless. |
| 42 | */ |
| 43 | export function getTerminalBundleId(): string | null { |
| 44 | const cfBundleId = process.env.__CFBundleIdentifier |
| 45 | if (cfBundleId) return cfBundleId |
| 46 | return TERMINAL_BUNDLE_ID_FALLBACK[env.terminal ?? ''] ?? null |
| 47 | } |
| 48 | |
| 49 | /** |
| 50 | * Static capabilities for macOS CLI. `hostBundleId` is not here — it's added |