Commit Graph
4 Commits
Author SHA1 Message Date
weishu 673e0c8aec refactor(cli): extract platform validation and error reporting from binary launcher
Refactor platform detection and error reporting logic into dedicated,
testable functions. This improves code organization and enables better
error handling for unsupported platforms and missing platform packages.

- Add SUPPORTED_PLATFORMS constant with platform labels
- Extract getPlatformKey() utility function
- Extract isSupportedPlatform() validation function
- Extract reportUnsupportedPlatform() error reporting function
- Extract reportMissingPlatformPackage() error reporting function
- Update main() to use new functions for clearer error handling
2026-03-02 11:58:08 +08:00
Mark LandGitHub 1f958f44fa fix(cli): report binary startup failures with actionable diagnostics (#220) 2026-02-27 09:01:24 +08:00
weishu 73f5a51548 fix url of happy project 2025-12-25 17:42:22 +08:00
jiangjiweiandClaude Opus 4.5 cde0a09134 fix: use .cjs extension for bin script to fix ES module compatibility
The package.json has "type": "module" but bin/hapi.js uses CommonJS
require() syntax. Renaming to .cjs forces Node.js to treat it as
CommonJS regardless of the package type setting.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-25 10:30:58 +08:00