feat(driver): prefer npm-global remediation with installer fallback

This commit is contained in:
ZenchantLive 2026-03-02 20:45:09 -08:00
parent 4a98ab2976
commit 8df567c327
4 changed files with 33 additions and 6 deletions

View file

@ -12,7 +12,10 @@ async function main() {
ok: false,
error_code: 'BD_NOT_FOUND',
reason: 'Could not find bd in PATH.',
remediation: 'Install beads CLI or add bd executable to PATH.',
remediation:
process.platform === 'win32'
? 'Primary: npm i -g beadboard. Fallback: powershell -ExecutionPolicy Bypass -File .\\install\\install.ps1. Then ensure bd is available in PATH.'
: 'Primary: npm i -g beadboard. Fallback: bash ./install/install.sh. Then ensure bd is available in PATH.',
tools: {
bd: { available: false, path: null },
},