Files
Folo/apps/desktop/package.json
T
DIYgodandClaude Opus 4.6 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

93 lines
3.6 KiB
JSON

{
"name": "Folo",
"type": "module",
"version": "1.3.1",
"private": true,
"description": "Follow everything in one place",
"author": "Folo Team",
"homepage": "https://github.com/RSSNext",
"repository": {
"url": "https://github.com/RSSNext/Folo",
"type": "git"
},
"main": "./dist/main/index.js",
"scripts": {
"analyze:web": "cross-env analyzer=1 WEB_BUILD=1 vite build",
"build:electron": "pnpm run build:electron-vite && electron-forge make",
"build:electron-forge": "electron-forge make",
"build:electron-forge:macos": "electron-forge make --arch=x64 --platform=darwin && electron-forge make --arch=arm64 --platform=darwin && tsx scripts/merge-yml.ts",
"build:electron-forge:mas": "electron-forge make --arch=universal --platform=mas",
"build:electron-forge:ms": "tsx scripts/generate-appx-manifest.ts && electron-forge make --platform=win32 --ms=true",
"build:electron-vite": "pnpm run prepare:cli && electron-vite build",
"build:render": "vite build -c vite.config.electron-render.ts",
"build:web": "rm -rf out/web && cross-env WEB_BUILD=1 vite build",
"bump": "vv --minor",
"dedupe:locales": "eslint --fix locales/**/*.json",
"depcheck": "npx depcheck --quiet",
"dev": "turbo run @follow/web#dev @follow/ssr#dev",
"dev:debug": "export DEBUG=true && vite --debug",
"dev:electron": "electron-vite dev",
"dev:server": "pnpm run --filter=ssr dev",
"dev:web": "cross-env WEB_BUILD=1 vite",
"hotfix": "vv -c bump.hotfix.config.js --patch",
"prepare:cli": "tsx scripts/prepare-cli.ts",
"publish": "electron-vite build && electron-forge publish",
"start": "electron-vite preview",
"update:main-hash": "tsx plugins/vite/generate-main-hash.ts"
},
"devDependencies": {
"@electron-forge/cli": "7.11.1",
"@electron-forge/maker-appx": "7.11.1",
"@electron-forge/maker-dmg": "7.11.1",
"@electron-forge/maker-pkg": "7.11.1",
"@electron-forge/maker-squirrel": "7.11.1",
"@electron-forge/maker-zip": "7.11.1",
"@electron-forge/plugin-fuses": "7.11.1",
"@electron-forge/publisher-github": "7.11.1",
"@electron-toolkit/tsconfig": "2.0.0",
"@follow/components": "workspace:*",
"@follow/configs": "workspace:*",
"@follow/constants": "workspace:*",
"@follow/hooks": "workspace:*",
"@follow/models": "workspace:*",
"@follow/shared": "workspace:*",
"@follow/utils": "workspace:*",
"@pengx17/electron-forge-maker-appimage": "1.2.1",
"@types/html-minifier-terser": "7.0.2",
"@types/js-yaml": "4.0.9",
"@vitejs/plugin-legacy": "7.2.1",
"@vitejs/plugin-react": "5.1.4",
"async-es": "3.2.6",
"autoprefixer": "10.4.24",
"bufferutil": "4.1.0",
"code-inspector-plugin": "1.4.2",
"cssnano": "7.1.2",
"drizzle-orm": "0.45.1",
"electron": "38.3.0",
"electron-devtools-installer": "4.0.0",
"electron-packager-languages": "0.6.0",
"electron-vite": "4.0.1",
"es-toolkit": "1.44.0",
"fake-indexeddb": "6.2.5",
"happy-dom": "20.6.1",
"html-minifier-terser": "7.2.0",
"js-yaml": "4.1.1",
"nbump": "2.1.8",
"pathe": "2.0.3",
"react": "19.0.0",
"react-dom": "19.0.0",
"tailwindcss": "3.4.17",
"tailwindcss-content-visibility": "1.0.2",
"tailwindcss-multi": "0.4.6",
"tar": "7.5.7",
"unplugin-ast": "0.16.0",
"vite-bundle-analyzer": "1.3.6",
"vite-plugin-mkcert": "1.17.9",
"vite-plugin-pwa": "1.2.0",
"vite-plugin-route-builder": "0.4.1",
"vite-tsconfig-paths": "6.1.1"
},
"productName": "Folo",
"mainHash": "906a0b82e00829115764f36a38132f3774120c4bea764e3b1be8949f447ccb06"
}