Commit 90a4544
fix(dream-cli): Apple GPU output polish — integer gpu_cores + Apple-aware header
cmd_status_json emitted gpu_cores as a JSON string via --arg. Switch
to --argjson with integer-or-null detection: numeric gpu_cores
become JSON integers, the literal "?" from system_profiler fallback
becomes JSON null.
dream gpu status header hardcoded "(0 GPUs)" derived from nvidia-smi.
Branch on GPU_BACKEND=apple to show "(1 integrated GPU)" instead.
Non-apple paths keep the existing behavior.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 4916453 commit 90a4544
1 file changed
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
772 | 772 | | |
773 | 773 | | |
774 | 774 | | |
775 | | - | |
| 775 | + | |
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
| |||
2536 | 2536 | | |
2537 | 2537 | | |
2538 | 2538 | | |
2539 | | - | |
2540 | | - | |
2541 | | - | |
2542 | | - | |
2543 | | - | |
| 2539 | + | |
| 2540 | + | |
| 2541 | + | |
| 2542 | + | |
| 2543 | + | |
| 2544 | + | |
| 2545 | + | |
| 2546 | + | |
| 2547 | + | |
2544 | 2548 | | |
2545 | 2549 | | |
2546 | 2550 | | |
| |||
0 commit comments