Folo/locales
DIYgod df748a5f6a
feat(cli): deep integration with desktop client (#4896)
* feat(cli): deep integration with desktop client

- Package CLI binary with desktop app via extraResource in Electron Forge
- Sync desktop login session to ~/.folo/config.json automatically on login/logout
- Add CliService IPC with install/uninstall methods supporting macOS (osascript), Linux (pkexec), Windows (.cmd wrapper)
- Add CLI settings tab in desktop app for install status and management
- Create prepare-cli build script to compile and bundle CLI before packaging
- Add i18n strings for CLI UI (English and Chinese)

The CLI now shares the desktop app's authentication session without requiring separate login.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

* fix(cli): fix CI failures in auth service and forge config

- Pass `undefined` explicitly to syncSessionToCliConfig() to satisfy TS arity check
- Make resources/cli conditional in extraResource so packaging doesn't fail when CLI bundle is absent

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(cli): make syncSessionToCliConfig token param optional

Avoids TS2554 when called without arguments on signOut, while also
satisfying the lint rule that strips explicit `undefined` arguments.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(cli): address PR review feedback

- Fix $@ shell expansion in privileged install path by writing to a
  temp file first, then using admin cp (Comment #1)
- Check .cmd extension on Windows for install status and uninstall
  guard so the CLI is correctly detected and removed (Comment #2)
- Wire prepare:cli into build:electron-vite instead of build:electron
  so all CI packaging paths (vite + forge) include CLI (Comment #3)
- Add CLI i18n strings for ja, fr-FR, zh-TW locales (Comment #4)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-08 10:02:11 +08:00
..
ai feat(i18n): merge #4597/#4774 and complete localization audit (#4839) 2026-02-13 09:25:08 +00:00
app Merge remote-tracking branch 'origin/mobile-main' into release/mobile/0.3.0 2026-02-18 23:53:40 +08:00
common feat(i18n): merge #4597/#4774 and complete localization audit (#4839) 2026-02-13 09:25:08 +00:00
errors feat(i18n): merge #4597/#4774 and complete localization audit (#4839) 2026-02-13 09:25:08 +00:00
external feat(i18n): merge #4597/#4774 and complete localization audit (#4839) 2026-02-13 09:25:08 +00:00
lang feat(i18n): merge #4597/#4774 and complete localization audit (#4839) 2026-02-13 09:25:08 +00:00
mobile/default fix: mobile full audit for UI consistency and stability (#4849) 2026-02-15 10:18:09 +08:00
native feat(i18n): merge #4597/#4774 and complete localization audit (#4839) 2026-02-13 09:25:08 +00:00
settings feat(cli): deep integration with desktop client (#4896) 2026-03-08 10:02:11 +08:00
shortcuts feat(i18n): merge #4597/#4774 and complete localization audit (#4839) 2026-02-13 09:25:08 +00:00