Open
Conversation
- platform.ts: add 'windows' platform type and 'task-scheduler' service
manager; fix commandExists() to use `where` on Windows; fix
getNodePath() to use `where node`; fix openBrowser() for Windows
- whatsapp-auth.ts: fix spawn('npx') with shell:true on Windows; replace
shell-subprocess QR SVG generation with direct qrcode import to avoid
cmd.exe quote mangling
- service.ts: add setupWindows() — generates nanoclaw-ctl.ps1 and
start/stop/restart.bat control scripts, starts the service, reports
status; replaces unsupported_platform exit on Windows
- README.md: add Windows to requirements and FAQ
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
setup/platform.ts: add'windows'platform type and'task-scheduler'service manager; fixcommandExists()to usewhereon Windows; fixgetNodePath()to usewhere node; fixopenBrowser()for Windowssetup/whatsapp-auth.ts: fixspawn('npx', ...)withshell: trueon Windows; replace shell-subprocess QR SVG generation with directqrcodeimport (avoidscmd.exequote mangling)setup/service.ts: addsetupWindows()— generatesnanoclaw-ctl.ps1andstart/stop/restart.batcontrol scripts, starts the service, reports status; replacesunsupported_platformexit on WindowsREADME.md: add Windows to requirements and FAQWindows-specific behaviour
On Windows, the service step generates three files in the project root:
nanoclaw-ctl.ps1— PowerShell controller (start,stop,restart,status)start.bat/stop.bat/restart.bat— convenience wrappersNo Task Scheduler registration is done automatically — users run
start.batmanually (or add it to startup themselves).Test plan
/setupon a Windows machine with Docker Desktop installedstart.bat/stop.bat/restart.batwork as expected🤖 Generated with Claude Code