clawdie-ai/setup
Sam & Claude 6cb600be25 fix(onboarding): capture bsddialog selection from stderr via spawnSync
bsddialog writes the selected item to stderr by default (not stdout).
The previous code used --stdout which, when stdout is piped (non-TTY),
causes bsddialog to dump all terminal escape codes + the tag to stdout,
making .trim() return escape-sequence garbage instead of the bare tag.

Switch to spawnSync with stdio: ['inherit', 'inherit', 'pipe'] so that
the TUI renders on the inherited TTY (stdin/stdout) while the selection
tag is captured cleanly from result.stderr.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: pass — Tests  414 passed | 10 skipped (424)
2026-03-14 23:07:20 +00:00
..
cms.ts feat(setup): add host preflight and protected screenshots 2026-03-14 22:52:09 +01:00
db.ts feat(skills): make built-in knowledge part of default db setup 2026-03-14 17:59:20 +01:00
environment.test.ts Replace WhatsApp setup with Telegram auth 2026-03-07 23:08:14 +01:00
environment.ts fix(setup): pin uv guidance to Python 3.11 2026-03-14 15:57:06 +01:00
freebsd-locales.test.ts feat(setup): add FreeBSD onboarding and baseline sync 2026-03-14 02:51:10 +01:00
freebsd-locales.ts feat(setup): add FreeBSD onboarding and baseline sync 2026-03-14 02:51:10 +01:00
git.ts feat(setup): make local git a default jail 2026-03-14 17:41:41 +01:00
groups.ts Fix jail config migration and chat listing 2026-03-08 00:16:10 +01:00
hosts.ts fix(network): harden local DNS placeholders and hosts sync 2026-03-14 19:45:15 +01:00
index.ts feat(setup): add host preflight and protected screenshots 2026-03-14 22:52:09 +01:00
jails.ts refactor(setup): unify FreeBSD package baselines 2026-03-14 15:26:46 +01:00
mounts.ts refactor(phase-2.2): installer steps — AGENT_NAME naming + pi-config + cleanup 2026-03-13 13:49:55 +00:00
onboarding.test.ts refactor(payments): simplify Stripe integration 2026-03-14 13:58:32 +01:00
onboarding.ts fix(onboarding): capture bsddialog selection from stderr via spawnSync 2026-03-14 23:07:20 +00:00
packages.ts refactor(setup): unify FreeBSD package baselines 2026-03-14 15:26:46 +01:00
pi-config.ts refactor(pi): add runtime profiles and targeted tmux captures 2026-03-14 20:50:05 +01:00
platform.test.ts refactor(phase-2.1): AGENT_NAME namespace — jail-config + platform + jails step 2026-03-13 13:47:22 +00:00
platform.ts refactor(phase-2.1): AGENT_NAME namespace — jail-config + platform + jails step 2026-03-13 13:47:22 +00:00
preflight.test.ts test(preflight): smoke tests for both preflight invocation paths 2026-03-14 22:41:43 +00:00
preflight.ts fix(preflight): record real step timing and gate capture 2026-03-14 23:23:12 +01:00
profile.test.ts feat(setup): add FreeBSD onboarding and baseline sync 2026-03-14 02:51:10 +01:00
profile.ts feat(setup): add FreeBSD onboarding and baseline sync 2026-03-14 02:51:10 +01:00
register.test.ts Drop legacy container config aliases 2026-03-07 22:38:47 +01:00
register.ts Drop legacy container config aliases 2026-03-07 22:38:47 +01:00
secrets.test.ts feat(setup): add host preflight and protected screenshots 2026-03-14 22:52:09 +01:00
secrets.ts feat(setup): add host preflight and protected screenshots 2026-03-14 22:52:09 +01:00
service.test.ts Remove non-FreeBSD runtime paths 2026-03-07 21:55:25 +01:00
service.ts feat(service): three-mode autostart with NONE default and grandpa-friendly docs 2026-03-14 09:06:46 +00:00
skills-memory.ts refactor(setup): reuse built-in knowledge helpers 2026-03-14 20:23:05 +01:00
status.ts Fix build imports and setup branding 2026-03-07 22:03:41 +01:00
telegram-auth.ts Replace WhatsApp setup with Telegram auth 2026-03-07 23:08:14 +01:00
upstream.ts feat: sharpen FreeBSD differentiation and skills-memory bootstrap 2026-03-13 19:05:10 +01:00
verify.ts fix(setup): unblock fresh-host deployment preflight 2026-03-14 23:04:03 +01:00