fix(ui): respect `--output-logs` and `outputLogs` for persisting logs after TUI exits (#8612)
### Description
This hooks up the `--output-logs` flag and `outputLogs` in `turbo.json`
to the logic that persists task output.
Previously these values were not respected and task output was always
printed.
### Testing Instructions
`new-only` should only print cache status on a cache hit, but everything
on a miss.
```
[0 olszewski@chriss-mbp] /tmp/tui-output-logs $ turbo_dev --skip-infer build --output-logs=new-only --no-daemon 12:46:14 [2/570]
• Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web
• Running build in 5 packages
• Remote caching disabled
┌ web#build > cache miss, executing e45fd0a9bad40e92
│
│ > web@0.1.0 build /private/tmp/tui-output-logs/apps/web
│ > next build
│
│ ▲ Next.js 15.0.0-rc.0
│
│ Creating an optimized production build ...
│ ✓ Compiled successfully
│ ✓ Linting and checking validity of types
│ ✓ Collecting page data
│ ✓ Generating static pages (5/5)
│ ✓ Collecting build traces
│ ✓ Finalizing page optimization
│
│ Route (app) Size First Load JS
│ ┌ ○ / 5.53 kB 94.4 kB
│ └ ○ /_not-found 895 B 89.8 kB
│ + First Load JS shared by all 88.9 kB
│ ├ chunks/207a5ba7-ac24752941b7dbc9.js 51.5 kB
│ ├ chunks/479-8568a017162d290a.js 35.5 kB
│ └ other shared chunks (total) 1.88 kB
│
│
│ ○ (Static) prerendered as static content
└────>
┌ docs#build > cache miss, executing 5176bc1351e4bb6b
│
│ > docs@0.1.0 build /private/tmp/tui-output-logs/apps/docs
│ > next build
│
│ ▲ Next.js 15.0.0-rc.0
│
│ Creating an optimized production build ...
│ ✓ Compiled successfully
│ ✓ Linting and checking validity of types
│ ✓ Collecting page data
│ ✓ Generating static pages (5/5)
│ ✓ Collecting build traces
│ ✓ Finalizing page optimization
│
│ Route (app) Size First Load JS
│ ┌ ○ / 5.53 kB 94.4 kB
│ └ ○ /_not-found 895 B 89.8 kB
│ + First Load JS shared by all 88.9 kB
│ ├ chunks/207a5ba7-ac24752941b7dbc9.js 51.5 kB
│ ├ chunks/479-8568a017162d290a.js 35.5 kB
│ └ other shared chunks (total) 1.88 kB
│
│
│ ○ (Static) prerendered as static content
└────>
Tasks: 2 successful, 2 total
Cached: 0 cached, 2 total
Time: 8.692s
[0 olszewski@chriss-mbp] /tmp/tui-output-logs $ turbo_dev --skip-infer build --output-logs=new-only --no-daemon
• Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web
• Running build in 5 packages
• Remote caching disabled
web#build > cache hit, suppressing logs e45fd0a9bad40e92
docs#build > cache hit, suppressing logs 5176bc1351e4bb6b
Tasks: 2 successful, 2 total
Cached: 2 cached, 2 total
Time: 110ms >>> FULL TURBO
```
`hash-only` should only persist the status line:
```
[0 olszewski@chriss-mbp] /tmp/tui-output-logs $ turbo_dev --skip-infer build --output-logs=hash-only --no-daemon
• Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web
• Running build in 5 packages
• Remote caching disabled
docs#build > cache hit, suppressing logs 5176bc1351e4bb6b
web#build > cache hit, suppressing logs e45fd0a9bad40e92
Tasks: 2 successful, 2 total
Cached: 2 cached, 2 total
Time: 138ms >>> FULL TURBO
[0 olszewski@chriss-mbp] /tmp/tui-output-logs $ turbo_dev --skip-infer build --output-logs=hash-only --no-daemon --force
• Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web
• Running build in 5 packages
• Remote caching disabled
web#build > cache bypass, force executing e45fd0a9bad40e92
docs#build > cache bypass, force executing 5176bc1351e4bb6b
Tasks: 2 successful, 2 total
Cached: 0 cached, 2 total
Time: 10.807s
```
`errors-only` should only output errors:
```
[0 olszewski@chriss-mbp] /tmp/tui-output-logs $ turbo_dev --skip-infer build --output-logs=errors-only --no-daemon --force --continue
• Packages in scope: @repo/eslint-config, @repo/typescript-config, @repo/ui, docs, web
• Running build in 5 packages
• Remote caching disabled
┌ web#build > cache miss, executing a9ef756a1783f051
│
│ > web@0.1.0 build /private/tmp/tui-output-logs/apps/web
│ > sleep 1; echo oops; exit 1
│
│ oops
│ ELIFECYCLE Command failed with exit code 1.
│
│ command finished with error, but continuing...
└────>
web#build: command (/private/tmp/tui-output-logs/apps/web) /Users/olszewski/.nvm/versions/node/v20.11.1/bin/pnpm run build exited (1)
Tasks: 1 successful, 2 total
Cached: 0 cached, 2 total
Time: 8.07s
Failed: web#build
```