Fixed 3 bugs related to coding-helper detection and installation: 1. Detection Bug: Wizard and bilingual checks only looked for 'chelper' command, but the npm package @z_ai/coding-helper doesn't create this command - it's run via 'npx @z_ai/coding-helper'. Fixed by adding 'npm list -g @z_ai/coding-helper' check to both: - wizard detection (line 505) - bilingual detection (line 542) 2. Misleading Success Message: When npm install failed, the script said "Installation completed. You can run manually with:" which sounded like it succeeded. Fixed by: - Capturing both stdout and stderr - Checking actual exit code - Showing "Installation failed!" with error output - Providing clearer manual installation instructions 3. No Installation Verification: After npm install appeared to succeed, there was no verification that the package was actually installed. Fixed by: - Adding npm list -g verification after install - Showing "installed and verified!" on success - Warning if installation appeared to succeed but verification failed Changes: - detect_coding_helper_components(): Added npm list check to wizard and bilingual detection - install_coding_helper(): Added error capture, exit code checking, verification step, and proper error messages - Removed misleading "chelper" command from success message (it's npx @z_ai/coding-helper, not chelper) Co-Authored-By: Claude <noreply@anthropic.com>
33 KiB
Executable File
33 KiB
Executable File