feat: Add WSL support, fix broken API calls (generate-chat, summarize, faq, etc.) and JSON parsing fix. #16
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
This PR adds WSL (Windows Subsystem for Linux) support and fixes several broken API calls that were
returning "API error 3 (Unavailable)" or "400 Bad Request".
Changes
WSL Support
NLM_USE_ORIGINAL_PROFILE=1environment variable to use Windows Chrome profile from WSLchrome_linux.godocs/WSL.mdsetup guideAPI Fixes
Fix ActOnSources encoder (
summarize,faq,mindmap,explain,study-guide, etc.)NotebookIDto RPC calls for propersource-pathroutingFix GenerateFreeFormStreamed (
generate-chat)/google.internal.labs.tailwind.orchestration.v1.LabsTailwindOrchestrationService/GenerateFree FormStreamedDynamic API Parameters
blandf.sidparametersGetAPIParams()function that extracts parameters dynamically from NotebookLM page HTMLNLM_BUILD_VERSION,NLM_SESSION_ID) → page extraction → defaultsJSON Parsing Fix
C:\Users\Desktop)sanitizeJSON()function to handle invalid escape sequences in server responsesTesting
All commands tested and working:
nlm list✅nlm sources✅nlm generate-chat✅ (was broken)nlm summarize✅ (was broken)nlm faq✅ (was broken)nlm auth✅ (with WSL)Related Issues
Fixes #14 (API error 3 - Service unavailable)
Fixes #7 (invalid character '\n' in string escape code)
May fix #5 (JSON parsing improvements)
Breaking Changes
None - all changes are backwards compatible.