mediago-dev--mediago
f04989e973
Ship the MediaGo browser extension alongside the Desktop installer so users can "Load unpacked" it from Chrome / Edge without building the repo or downloading a separate zip. Adds a discovery path from inside the app, a three-language doc page, and fixes the Desktop HTTP port the extension was pointing at. Packaging: - `pnpm build:electron` now also builds `@mediago/extension` (turbo filter), and `apps/electron/scripts/build.ts` copies the dist to `app/build/extension/` and declares it in electron-builder `extraResources` → installers land `resources/extension/`. Runtime: - `resolveExtensionDir()` in binaryResolver — dev points at the monorepo dist, prod at `process.resourcesPath/extension`, env override via `MEDIAGO_EXTENSION_DIR`. - New IPC `app.getExtensionDir()` returns the resolved path. UI pairs it with the existing `shell.open()` (no dedicated open-folder IPC) so the pattern matches configDir / binDir / localDir. Settings UI: - New "Browser extension directory" button in Settings → More Settings, right next to the existing folder shortcuts. Web/server mode hides the row behind `isWeb` and the stub returns "". - New i18n key `extensionDir` in shared zh/en resources; duplicate `currentVersion` key removed from zh.ts along the way. Port fix: - Extension `DESKTOP_HTTP_BASE` corrected from `:9900` → `:39719` to match the Electron-side `preferredPort`. 9900 is the standalone Go Core / web-server port — two separate deployments. Docs: - New `docs/extension.md` + `docs/en/extension.md` + `docs/jp/extension.md` covering what the extension does, how to install the unpacked build, the three dispatch modes (schema / desktop-http / docker-http), import-behaviour toggles, language switching, and common pitfalls. - Sidebar entries registered in `.vitepress/config.ts` for all three locales. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>