browser-cookie-bridge 1.4.7 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  <strong>Move signed-in sessions locally—or explicitly upload one to Browserless Cloud.</strong>
8
8
 
9
- <p>Brave, Chrome, Edge, Arc, Vivaldi, Opera, and Comet · ChatGPT Codex import · optional Browserless authenticated profiles.</p>
9
+ <p>Brave, Chrome, Edge, Arc, Vivaldi, Opera, and Comet · ChatGPT Codex and experimental Cursor browser import · encrypted Grok Bot <code>.bcbx</code> export · optional Browserless authenticated profiles.</p>
10
10
 
11
11
  <p>
12
12
  <img src="https://img.shields.io/badge/macOS-13.5%2B-111111?logo=apple&logoColor=white" alt="macOS 13.5+" />
@@ -16,6 +16,7 @@
16
16
  <a href="https://www.npmjs.com/package/browser-cookie-bridge"><img src="https://img.shields.io/npm/v/browser-cookie-bridge?logo=npm&color=CB3837" alt="browser-cookie-bridge on npm" /></a>
17
17
  <img src="https://img.shields.io/badge/local--first-cloud%20optional-C68B3C" alt="Local-first, cloud optional" />
18
18
  <img src="https://img.shields.io/github/stars/apoorvdarshan/browser-cookie-bridge?logo=github&color=C68B3C" alt="GitHub stars" />
19
+ <a href="https://www.producthunt.com/products/browser-cookie-bridge-2"><img src="https://img.shields.io/badge/Product%20Hunt-View%20launch-DA552F?logo=producthunt&logoColor=white" alt="Browser Cookie Bridge on Product Hunt" /></a>
19
20
  <a href="https://tally.so/r/J9j0D4"><img src="https://img.shields.io/badge/Windows-Join%20waitlist-8E2735?logo=windows&logoColor=white" alt="Join the Browser Cookie Bridge Windows waitlist" /></a>
20
21
  <img src="https://img.shields.io/badge/license-MIT-3DA639" alt="MIT License" />
21
22
  </p>
@@ -29,6 +30,7 @@
29
30
  <a href="#security--privacy">Security</a> ·
30
31
  <a href="CONTRIBUTING.md">Contribute</a> ·
31
32
  <a href="https://github.com/apoorvdarshan/browser-cookie-bridge/issues/new?template=bug_report.yml">Report a bug</a> ·
33
+ <a href="https://www.producthunt.com/products/browser-cookie-bridge-2">Product Hunt</a> ·
32
34
  <a href="https://tally.so/r/J9j0D4">Windows waitlist</a> ·
33
35
  <a href="#support">Support</a>
34
36
  </p>
@@ -46,13 +48,13 @@
46
48
 
47
49
  ---
48
50
 
49
- > **Version 1.4.0 adds an optional one-click Codex restart flow.** When enabled for a manual sync, Browser Cookie Bridge force quits Codex, waits for its database to close, performs the verified local transfer, preserves the imported/skipped/failed counts, and reopens Codex only after success. The option is off by default.
51
+ > **Version 1.5.1 restores the [Product Hunt](https://www.producthunt.com/products/browser-cookie-bridge-2) launch link.** Version 1.5.0 added experimental Cursor browser import and encrypted Grok Bot `.bcbx` export. Cursor is destination-only and currently imports cookie sessions into its dedicated browser partition. Grok Bot writes a one-time encrypted transfer file with a bundled importer and a one-time key: attach the `.bcbx` file to any Grok Bot, paste the prompt, and enter the key privately when asked. Cookie values must never be logged or pasted into chat. The optional Codex restart flow from 1.4.0 is unchanged and remains off by default.
50
52
 
51
53
  ## Why Browser Cookie Bridge
52
54
 
53
- Signing into the same sites across several browsers is repetitive. Export files are awkward, password managers do not move active sessions, and ChatGPT Codex does not currently offer a Brave import button.
55
+ Signing into the same sites across several browsers is repetitive. Export files are awkward, password managers do not move active sessions, and embedded app browsers do not always offer an import button.
54
56
 
55
- Browser Cookie Bridge gives those browser profiles a small, native control panel. Local browser and Codex transfers stay on the Mac. If you explicitly select Browserless Cloud and click Upload, the app can instead send authenticated profile state to your own Browserless account.
57
+ Browser Cookie Bridge gives those browser profiles a small, native control panel. Local browser, Codex, and Cursor transfers stay on the Mac. Grok Bot uses a one-time encrypted transfer file that you attach yourself. If you explicitly select Browserless Cloud and click Upload, the app can instead send authenticated profile state to your own Browserless account.
56
58
 
57
59
  ## Windows waitlist
58
60
 
@@ -63,15 +65,16 @@ Browser Cookie Bridge currently ships for macOS. A separate Windows app is being
63
65
  - 🍪 **Cookie and session transfer** — cookies are enabled by default, including supported domain, path, expiry, security, `SameSite`, and partition attributes.
64
66
  - 🗃️ **Optional full site data for Codex** — replace Codex's compatible Local Storage, IndexedDB, Session Storage, service-worker, and related origin stores from a closed source profile, with backup and rollback. Off by default.
65
67
  - 🌐 **Seven Chromium browsers** — Brave, Chrome, Edge, Arc, Vivaldi, Opera, and Perplexity Comet can be sources or destinations.
66
- - ✨ **ChatGPT Codex import** — merge selected local browser data into Codex's built-in browser; Codex is destination-only.
68
+ - ✨ **ChatGPT Codex and experimental Cursor import** — merge cookie sessions into either app's built-in browser; Codex also supports optional history and full site data. Both are destination-only. Cursor import is experimental: it writes only to Cursor's dedicated `Partitions/cursor-browser` profile and refuses unknown schemas.
69
+ - 🤖 **Encrypted Grok Bot transfer (`.bcbx`)** — export cookie sessions into a local encrypted bundle with a one-time key and bundled importer. The destination tile uses the official Grok Bot app icon. Attach the file to any Grok Bot; the importer runs on the cloud computer only. Manual only.
67
70
  - 🔁 **Optional Codex restart** — manual Sync can force quit a running Codex instance and reopen it only after a successful local transfer; off by default.
68
71
  - 🔄 **Optional two-app restart** — Full site data can force quit the selected source browser and Codex, then reopen only the apps that were running after a successful transfer; off by default.
69
72
  - ☁️ **Optional Browserless upload** — create or refresh a Browserless authenticated profile with cookies, local storage, and IndexedDB; see a local size preflight, live progress, cancellation, and post-upload verification.
70
73
  - 🕘 **Background automation** — sync when you sign in, at a fixed daily time, or whenever you choose.
71
74
  - ◉ **Native menu-bar app** — closing the window removes the Dock icon while the helper continues running.
72
- - 🧯 **Backup and rollback** — Codex's database is backed up, modified on a separate copy, integrity-checked, and restored if replacement fails.
75
+ - 🧯 **Backup and rollback** — the destination app browser's database is backed up, modified on a separate copy, integrity-checked, and restored if replacement fails.
73
76
  - ⬆️ **Built-in updates** — checks for GitHub releases, verifies the DMG checksum, installs in place, and relaunches the app.
74
- - 🔒 **Local-first** — local paths use no account, analytics, cookie logs, or remote relay; the separate Browserless path runs only after explicit selection and confirmation.
77
+ - 🔒 **Local-first** — local paths use no account, analytics, cookie logs, or remote relay; Grok Bot writes an encrypted file you attach yourself; the separate Browserless path runs only after explicit selection and confirmation.
75
78
 
76
79
  ## What it transfers
77
80
 
@@ -79,7 +82,8 @@ Browser Cookie Bridge currently ships for macOS. A separate Windows app is being
79
82
  |---|---:|---|
80
83
  | **Cookies and sessions** | ✅ Default | Transfers supported cookie values and attributes |
81
84
  | **Full site data → Codex** | Optional | Replaces compatible origin storage from a closed Chromium profile; backs up Codex first |
82
- | **History URLs** | Optional | Original visit times and page titles cannot be preserved |
85
+ | **Encrypted Grok Bot export** | Manual | Cookie sessions only, written to a local `.bcbx` file; history and full site data are excluded |
86
+ | **History URLs** | ◐ Optional | Supported for browser and Codex targets; excluded for Cursor and Grok Bot. Original visit times and page titles cannot be preserved |
83
87
  | **Local storage and IndexedDB** | ◐ Optional | Full site data into Codex, or an explicit Browserless authenticated-profile upload |
84
88
  | **Passwords** | — Never | Chromium extensions cannot read the browser password store |
85
89
  | **Bookmarks, autofill, payments** | — Never | Not requested or accessed |
@@ -90,7 +94,7 @@ Some websites bind sessions to a specific device or browser and may ask you to s
90
94
  ## Requirements
91
95
 
92
96
  - **macOS 13.5+**
93
- - A supported Chromium browser, or ChatGPT Codex as the destination
97
+ - A supported Chromium browser as the source, plus ChatGPT Codex, Cursor, Grok Bot, another supported browser, or optional Browserless Cloud as the destination
94
98
 
95
99
  The DMG is self-contained. Node.js 24+ and Xcode Command Line Tools are required only for npm or source installation.
96
100
 
@@ -143,16 +147,40 @@ The final command compiles the native SwiftUI app, enables **Open at login**, **
143
147
 
144
148
  ## Setup
145
149
 
146
- ### Browser → ChatGPT Codex
150
+ ### Browser → ChatGPT Codex or Cursor
147
151
 
148
152
  No browser extension is needed for this path.
149
153
 
150
- 1. Select a source browser and **ChatGPT Codex** as the destination.
151
- 2. Quit Codex completely, or enable **Restart Codex automatically**. Closing only its browser panel is not enough.
152
- 3. Choose **Cookies** and, optionally, **History URLs**.
153
- 4. Press **Sync now** and reopen Codex after the success message if automatic restart is off.
154
+ Cursor support is experimental and currently limited to cookie sessions in its dedicated browser partition. The importer validates the audited Cursor schema and fails closed if Cursor changes it.
154
155
 
155
- By default, an open Codex blocks the transfer. The optional **Restart Codex automatically** setting applies only to a manual Sync: it force quits Codex, waits for its database to close, and reopens Codex only after the transfer succeeds. Scheduled and login syncs never force quit it.
156
+ 1. Select a source browser and **ChatGPT Codex** or **Cursor browser** as the destination.
157
+ 2. Quit the destination app completely. For Codex, you can instead enable **Restart Codex automatically**. Closing only the app's browser panel is not enough.
158
+ 3. Choose **Cookies**. For Codex, you can also choose **History URLs** and **Full site data**. Both are excluded for Cursor until its other browser stores can be validated safely.
159
+ 4. Press **Sync now**, then reopen the destination app after the success message.
160
+
161
+ An open destination app blocks the transfer. The optional **Restart Codex automatically** setting applies only to a manual Codex sync: it force quits Codex, waits for its database to close, and reopens Codex only after the transfer succeeds. Cursor must be quit manually. Scheduled and login syncs never force quit either app.
162
+
163
+ ### Browser → Grok Bot (encrypted `.bcbx`)
164
+
165
+ No browser extension is needed for this path.
166
+
167
+ Grok Bot cannot receive a local database merge. The app writes a one-time encrypted transfer file that you attach to any Grok Bot.
168
+
169
+ 1. Select a source browser and **Grok Bot** as the destination. The tile uses the official Grok Bot app icon.
170
+ 2. Keep **Cookies** on. History URLs and Full site data are excluded from Grok Bot transfer files.
171
+ 3. Optionally limit the export with **Only these domains**. Leave it blank to include every readable cookie.
172
+ 4. Press **Create transfer file** and choose where to save `GrokBot-Import.bcbx`.
173
+ 5. The result sheet shows the one-time decryption key and the prompt to paste. Use **Reveal file** or **Copy prompt**. Keep the key off chat logs; do not paste cookie values into chat.
174
+ 6. Attach the `.bcbx` file to any Grok Bot, paste the prompt, then enter the one-time key privately through Agent Computer when asked.
175
+
176
+ The bundle is a zip-compatible `.bcbx` file containing `manifest.json`, encrypted `payload.enc`, `import.mjs`, and `PROMPT.txt`. Cookies are encrypted with AES-256-GCM using a scrypt-derived key. The file is written with user-only permissions (`0600`). Daily sync and Sync at login never create Grok Bot bundles.
177
+
178
+ On the Grok Bot cloud computer the bundled importer:
179
+
180
+ 1. Expects you to unzip `GrokBot-Import.bcbx` and run `node import.mjs`.
181
+ 2. Prompts for the one-time decryption key. Do not print cookie names or values.
182
+ 3. Injects cookies into the cloud browser and reports only how many cookies were imported.
183
+ 4. Deletes the unzipped files and the bundle copy.
156
184
 
157
185
  ### Browser → browser
158
186
 
@@ -187,7 +215,7 @@ The official CLI records the Browserless upload-disclaimer acceptance timestamp
187
215
  | Control | What it does |
188
216
  |---|---|
189
217
  | **Export from** | Selects the browser whose data will be read |
190
- | **Import into** | Selects a different browser, ChatGPT Codex, or optional Browserless Cloud |
218
+ | **Import into** | Selects a different browser, ChatGPT Codex, experimental Cursor browser, Grok Bot, or optional Browserless Cloud |
191
219
  | **Cookies** | Moves cookies and supported session attributes; on by default |
192
220
  | **History URLs** | Adds visited URLs without their original timestamps or titles |
193
221
  | **Daily sync** | Runs at one fixed local time; off by default |
@@ -197,15 +225,15 @@ The official CLI records the Browserless upload-disclaimer acceptance timestamp
197
225
  | **Restart Codex automatically** | Force quits Codex for a manual sync and reopens it only after success; off by default |
198
226
  | **Check for updates** | Finds a newer GitHub release, verifies its DMG, and offers install + relaunch |
199
227
 
200
- Automation uses the saved source, destination, and data choices for local transfers. A scheduled Codex sync safely exits without making changes when Codex is open. Browserless cloud uploads are always manual and require an explicit upload action.
228
+ Automation uses the saved source, destination, and data choices for local transfers. A scheduled embedded-browser sync safely exits without making changes when its destination app is open. Browserless cloud uploads and Grok Bot `.bcbx` exports are always manual.
201
229
 
202
230
  ## CLI
203
231
 
204
232
  ```bash
205
233
  browser-cookie-bridge install-app [--no-open] [--replace-system-from-source]
206
234
  browser-cookie-bridge setup [--hour 9] [--minute 0] [--no-schedule]
207
- browser-cookie-bridge preferences --source brave --target codex --cookies on --history off --site-storage off --auto-restart-codex off --auto-restart-both off
208
- browser-cookie-bridge sync [--timeout 300] [--allow-cloud-upload]
235
+ browser-cookie-bridge preferences --source brave --target codex --cookies on --history off --site-storage off --auto-restart-codex off --auto-restart-both off [--grok-bot-domains example.com]
236
+ browser-cookie-bridge sync [--timeout 300] [--allow-cloud-upload] [--output /path/GrokBot-Import.bcbx]
209
237
  browser-cookie-bridge browserless-preflight
210
238
  browser-cookie-bridge doctor
211
239
  browser-cookie-bridge enable-login-sync
@@ -215,26 +243,28 @@ browser-cookie-bridge disable-app-login
215
243
  browser-cookie-bridge remove-schedule
216
244
  ```
217
245
 
218
- Supported source IDs are `brave`, `chrome`, `edge`, `arc`, `vivaldi`, `opera`, and `comet`. Target IDs are the same plus `codex` and `browserless`. The same browser cannot be both endpoints. Browserless requires `BROWSERLESS_TOKEN` and the explicit `--allow-cloud-upload` flag; the native app supplies the token from Keychain without placing it in the OS command line or app configuration.
246
+ Supported source IDs are `brave`, `chrome`, `edge`, `arc`, `vivaldi`, `opera`, and `comet`. Target IDs are the same plus `codex`, `cursor`, `browserless`, and `grok-bot`. The same browser cannot be both endpoints. Cursor import currently supports cookies only. Grok Bot export requires `--output /path/GrokBot-Import.bcbx` and writes cookies only; `--grok-bot-domains` optionally limits the bundle. The CLI prints a one-time decryption key after export—keep it private and never paste cookie values into chat. Browserless requires `BROWSERLESS_TOKEN` and the explicit `--allow-cloud-upload` flag; the native app supplies the token from Keychain without placing it in the OS command line or app configuration.
219
247
 
220
248
  ## How it works
221
249
 
222
250
  | Path | Transfer method |
223
251
  |---|---|
224
252
  | **Browser → browser** | Unpacked extensions connect to a short-lived broker on IPv4 loopback. Selected data stays in memory and is never written to logs. |
225
- | **Browser → Codex** | The app reads the selected local Chromium profile, creates a consistent Codex SQLite backup, merges into a working copy, validates it, then replaces the destination atomically. |
253
+ | **Browser → Codex / Cursor** | The app reads the selected local Chromium profile, creates a consistent destination SQLite backup, merges cookies into a working copy, validates it, then replaces only the embedded browser's cookie database atomically. Codex also supports optional history and full site data. Cursor import is experimental and limited to the dedicated browser-partition cookie store. |
254
+ | **Browser → Grok Bot** | The app reads the selected local Chromium profile, encrypts cookie sessions into a `.bcbx` bundle with a one-time key, and writes that file locally. You attach it to a Grok Bot; the bundled importer decrypts and injects cookies on the cloud computer only. |
226
255
  | **Browser → Browserless** | The bundled official Browserless CLI copies a closed local profile, captures cookies/local storage/IndexedDB, and uploads it directly to the selected Browserless region. |
227
256
 
228
257
  The broker validates a random token and extension origin, limits payload size, and normally exits after five minutes. Only the endpoints selected in the app respond to a transfer.
229
258
 
230
259
  ## Security & privacy
231
260
 
232
- - Cookie values and history URLs are never logged.
261
+ - Cookie values and history URLs are never logged. Never paste cookie values or Grok Bot decryption keys into chat.
233
262
  - Browser-to-browser data is held only in broker memory.
234
- - Codex backups are stored with user-only permissions under `~/Library/Application Support/BraveCodexCookieSync/backups/codex`; the newest 14 are retained.
235
- - Full site-data import is opt-in and requires both Codex and the source browser to be closed. It replaces compatible Codex origin-storage directories rather than attempting an unsafe LevelDB merge; the previous directories are included in the same backup.
236
- - The app refuses unknown Codex database schemas instead of guessing.
237
- - Imported Codex rows use an empty `encrypted_value` because OpenAI's Safe Storage key is protected by a private macOS Keychain access group. Those imported rows can therefore remain readable to software running as your macOS user until the website refreshes them.
263
+ - Grok Bot `.bcbx` files are encrypted locally with AES-256-GCM. Treat the bundle and its one-time key as credentials. Enter the key privately through Agent Computer when the importer asks; do not ask Grok Bot to print cookie names or values. The bundled importer reports only import counts, then deletes the unzipped files and the bundle copy.
264
+ - Direct-import backups are stored with user-only permissions under `~/Library/Application Support/BraveCodexCookieSync/backups/codex` or `backups/cursor`; the newest 14 per destination are retained.
265
+ - Full site-data import is opt-in for Codex and requires both Codex and the source browser to be closed. It replaces compatible origin-storage directories rather than attempting an unsafe LevelDB merge; the previous directories are included in the same backup.
266
+ - The app refuses unknown destination database schemas instead of guessing and writes only to Cursor's dedicated `Partitions/cursor-browser` profile, never Cursor's main application cookie store.
267
+ - Direct imports currently store imported cookie values in SQLite's plaintext `value` column with an empty `encrypted_value`. Those imported rows can therefore remain readable to software running as your macOS user until the website refreshes them.
238
268
  - Anyone who can use your logged-in macOS account or modify a generated extension may be able to access transferred browser sessions.
239
269
  - The optional Browserless destination sends authenticated state to Browserless under their terms and privacy practices. Its API token is stored in macOS Keychain, uploads are manual, and Browserless CLI telemetry is disabled by the app.
240
270
 
@@ -269,8 +299,9 @@ If Browser Cookie Bridge is useful to you:
269
299
  - 🐛 **[Report a bug](https://github.com/apoorvdarshan/browser-cookie-bridge/issues/new?template=bug_report.yml)** — never include cookie values or tokens
270
300
  - ☕ **[Support on Ko-fi](https://ko-fi.com/apoorvdarshan)**
271
301
  - 𝕏 **Follow [@apoorvdarshan](https://x.com/apoorvdarshan)**
302
+ - 🚀 **[View on Product Hunt](https://www.producthunt.com/products/browser-cookie-bridge-2)**
272
303
 
273
- The product screenshot and transparent cookie logo live in [`marketing/`](marketing/).
304
+ Product screenshots, the transparent cookie logo, and launch artwork live in [`marketing/`](marketing/).
274
305
 
275
306
  ## Website
276
307
 
@@ -294,4 +325,4 @@ npm run web
294
325
 
295
326
  [MIT](LICENSE) © 2026 [Apoorv Darshan](https://github.com/apoorvdarshan)
296
327
 
297
- <sub>Not affiliated with Brave, Google, Microsoft, The Browser Company, Vivaldi, Opera, Perplexity, OpenAI, or Browserless. Their names and marks belong to their respective owners.</sub>
328
+ <sub>Not affiliated with Brave, Google, Microsoft, The Browser Company, Vivaldi, Opera, Perplexity, OpenAI, Cursor, xAI, or Browserless. Their names and marks belong to their respective owners.</sub>
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "manifest_version": 3,
3
3
  "name": "Browser Cookie Bridge",
4
- "version": "1.4.7",
5
- "description": "Transfers selected browser data locally between supported browsers and into ChatGPT Codex.",
4
+ "version": "1.5.1",
5
+ "description": "Transfers selected browser data locally between supported browsers and embedded app browsers.",
6
6
  "key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5o6lDkXzU/23Jm2QRk4mfuxNnr3VlEIjRHcZr93Gdo7PI7asHJQhigaMGT6UOz0lkaTn1F+TGIPlsJo9GNBSsxbCfxWoBSXcFQFrPolY5LEfKaMtZQQ6eb4UAnp+bbUwb1den4On0piWU47Yzl6i0Jcdg4EG5H1kCSF/6nJsbKgF7OTaR/3drULu40yRvflzSXRhly3UDO7c5mgHJsaMwVV+VILsxbcPOoRINjuo3zDC737HFs67dpf38xF3tjSVL0HURAWKKobMvfABiDfVEm5O0Lvf+57d1Ib12QLT2qtVXNDy3iYwX+w2S0wH2vIMsfvoFPlRdmeqft70kZOqXwIDAQAB",
7
7
  "permissions": ["alarms", "cookies", "history"],
8
8
  "host_permissions": ["<all_urls>", "http://127.0.0.1/*"],
@@ -10,8 +10,8 @@
10
10
  <key>CFBundleInfoDictionaryVersion</key><string>6.0</string>
11
11
  <key>CFBundleName</key><string>Browser Cookie Bridge</string>
12
12
  <key>CFBundlePackageType</key><string>APPL</string>
13
- <key>CFBundleShortVersionString</key><string>1.4.7</string>
14
- <key>CFBundleVersion</key><string>35</string>
13
+ <key>CFBundleShortVersionString</key><string>1.5.1</string>
14
+ <key>CFBundleVersion</key><string>37</string>
15
15
  <key>LSMinimumSystemVersion</key><string>13.5</string>
16
16
  <key>NSHighResolutionCapable</key><true/>
17
17
  </dict>
@@ -9,6 +9,7 @@ private enum ProjectLinks {
9
9
  static let license = URL(string: "https://github.com/apoorvdarshan/browser-cookie-bridge/blob/main/LICENSE")!
10
10
  static let koFi = URL(string: "https://ko-fi.com/apoorvdarshan")!
11
11
  static let x = URL(string: "https://x.com/apoorvdarshan")!
12
+ static let productHunt = URL(string: "https://www.producthunt.com/products/browser-cookie-bridge-2")!
12
13
  }
13
14
 
14
15
  @main
@@ -201,6 +202,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate, NSWindowDelegate {
201
202
  menu.addItem(.separator())
202
203
  addLink("Support on Ko-fi", url: ProjectLinks.koFi, to: menu)
203
204
  addLink("Follow @apoorvdarshan on X", url: ProjectLinks.x, to: menu)
205
+ addLink("View on Product Hunt", url: ProjectLinks.productHunt, to: menu)
204
206
  }
205
207
 
206
208
  private func addLink(_ title: String, url: URL, to menu: NSMenu) {
@@ -239,6 +241,9 @@ struct ContentView: View {
239
241
  .sheet(isPresented: $model.showingBrowserlessSetup) {
240
242
  BrowserlessSetupSheet().environmentObject(model)
241
243
  }
244
+ .sheet(isPresented: $model.showingGrokBotResult) {
245
+ GrokBotResultSheet().environmentObject(model)
246
+ }
242
247
  }
243
248
 
244
249
  private var header: some View {
@@ -291,7 +296,7 @@ struct ContentView: View {
291
296
  .buttonStyle(.plain)
292
297
  .foregroundStyle(.secondary)
293
298
  .help("Refresh status")
294
- if model.selectedTargetID != "codex" && !model.isBrowserlessTarget {
299
+ if !model.isDirectTarget && !model.isBrowserlessTarget && !model.isGrokBotTarget {
295
300
  Button("Extension setup…") { showingSetup = true }
296
301
  .controlSize(.small)
297
302
  }
@@ -384,17 +389,18 @@ struct SyncPanel: View {
384
389
  if model.isBrowserlessTarget && model.uploadCanceling { return "Canceling…" }
385
390
  if model.isBrowserlessTarget && model.isSyncing { return "Cancel upload" }
386
391
  if model.isSyncing { return "Syncing…" }
387
- if model.codexBlocked { return "Close Codex first" }
392
+ if model.cursorHasNoDataSelected || model.grokBotHasNoDataSelected { return "Turn on Cookies" }
393
+ if model.directTargetBlocked { return "Close \(model.targetName) first" }
388
394
  if model.isBrowserlessTarget && !model.browserlessConfigured { return "Connect Browserless" }
389
395
  if model.isBrowserlessTarget && model.selectedSourceID == "comet" { return "Choose another browser" }
390
396
  if model.isBrowserlessTarget && model.sourceBrowserRunning { return "Close \(model.selectedBrowser.name) first" }
391
- return model.isBrowserlessTarget ? "Upload now" : "Sync now"
397
+ return model.isGrokBotTarget ? "Create transfer file" : model.isBrowserlessTarget ? "Upload now" : "Sync now"
392
398
  }
393
399
 
394
400
  private var syncButtonIcon: String {
395
401
  if model.isBrowserlessTarget && model.isSyncing { return "xmark.circle.fill" }
396
402
  if model.syncBlocked { return model.isBrowserlessTarget && !model.browserlessConfigured ? "key.fill" : "xmark.circle.fill" }
397
- return model.isBrowserlessTarget ? "icloud.and.arrow.up.fill" : "arrow.triangle.2.circlepath"
403
+ return model.isBrowserlessTarget ? "icloud.and.arrow.up.fill" : model.isGrokBotTarget ? "arrow.up.doc.fill" : "arrow.triangle.2.circlepath"
398
404
  }
399
405
 
400
406
  }
@@ -461,6 +467,14 @@ struct TargetPicker: View {
461
467
  }
462
468
  HStack(spacing: 5) {
463
469
  ForEach(Array(model.browsers.dropFirst(4))) { browser in targetButton(browser) }
470
+ }
471
+ HStack(spacing: 5) {
472
+ EndpointButton(
473
+ icon: model.cursorIcon,
474
+ name: "Cursor browser",
475
+ selected: model.selectedTargetID == "cursor",
476
+ disabled: model.isWorking || model.isSyncing
477
+ ) { model.selectTarget("cursor") }
464
478
  EndpointButton(
465
479
  icon: model.codexIcon,
466
480
  name: "ChatGPT Codex",
@@ -470,10 +484,16 @@ struct TargetPicker: View {
470
484
  iconWidth: 66,
471
485
  iconHeight: 38
472
486
  ) { model.selectTarget("codex") }
487
+ EndpointButton(
488
+ icon: model.grokBotIcon,
489
+ name: "Grok Bot",
490
+ selected: model.selectedTargetID == "grok-bot",
491
+ disabled: model.isWorking || model.isSyncing
492
+ ) { model.selectTarget("grok-bot") }
473
493
  }
474
494
  }
475
495
  }
476
- .frame(width: 199)
496
+ .frame(width: 220)
477
497
  }
478
498
 
479
499
  private func targetButton(_ browser: BrowserChoice) -> some View {
@@ -562,12 +582,56 @@ struct PreferencesPanel: View {
562
582
  .help("Rescan local profile size")
563
583
  }
564
584
  }
585
+ } else if model.isGrokBotTarget {
586
+ PreferenceRow(
587
+ icon: "network",
588
+ color: Theme.accent,
589
+ title: "Cookies",
590
+ detail: "Encrypted cookie sessions for Grok Bot's shared cloud browser"
591
+ ) {
592
+ Toggle("", isOn: Binding(get: { model.cookiesEnabled }, set: { model.setCookiesEnabled($0) }))
593
+ .labelsHidden().toggleStyle(.switch).tint(Theme.active).disabled(model.isWorking)
594
+ }
595
+ RowDivider()
596
+ PreferenceRow(icon: "externaldrive.badge.plus", color: .secondary, title: "Full site data", detail: "Not included in Grok Bot transfer files", muted: true) {
597
+ FixedBadge("Excluded")
598
+ }
599
+ RowDivider()
600
+ PreferenceRow(icon: "clock.arrow.circlepath", color: .secondary, title: "History URLs", detail: "Not included in Grok Bot transfer files", muted: true) {
601
+ FixedBadge("Excluded")
602
+ }
603
+ RowDivider()
604
+ PreferenceRow(icon: "line.3.horizontal.decrease.circle", color: Theme.accent, title: "Only these domains", detail: "Leave blank to export every readable cookie") {
605
+ TextField("example.com, app.example.com", text: Binding(
606
+ get: { model.grokBotOnlyDomains },
607
+ set: { model.setGrokBotOnlyDomains($0) }
608
+ ))
609
+ .textFieldStyle(.roundedBorder)
610
+ .frame(width: 220)
611
+ .disabled(model.isWorking || model.isSyncing)
612
+ }
565
613
  } else {
566
- PreferenceRow(icon: "network", color: Theme.accent, title: "Cookies", detail: "Site sessions and sign-ins") {
614
+ PreferenceRow(
615
+ icon: "network",
616
+ color: Theme.accent,
617
+ title: "Cookies",
618
+ detail: model.selectedTargetID == "cursor" ? "Experimental direct import into Cursor's browser partition" : "Site sessions and sign-ins"
619
+ ) {
567
620
  Toggle("", isOn: Binding(get: { model.cookiesEnabled }, set: { model.setCookiesEnabled($0) }))
568
621
  .labelsHidden().toggleStyle(.switch).tint(Theme.active).disabled(model.isWorking)
569
622
  }
570
- if model.selectedTargetID == "codex" {
623
+ if model.selectedTargetID == "cursor" {
624
+ RowDivider()
625
+ PreferenceRow(
626
+ icon: "externaldrive.badge.plus",
627
+ color: .secondary,
628
+ title: "Full site data",
629
+ detail: "Not enabled for Cursor browser yet",
630
+ muted: true
631
+ ) {
632
+ FixedBadge("Excluded")
633
+ }
634
+ } else if model.selectedTargetID == "codex" {
571
635
  RowDivider()
572
636
  PreferenceRow(
573
637
  icon: "externaldrive.badge.plus",
@@ -580,9 +644,15 @@ struct PreferencesPanel: View {
580
644
  }
581
645
  }
582
646
  RowDivider()
583
- PreferenceRow(icon: "clock.arrow.circlepath", color: Theme.accent, title: "History URLs", detail: "Original visit times are not preserved") {
584
- Toggle("", isOn: Binding(get: { model.historyEnabled }, set: { model.setHistoryEnabled($0) }))
585
- .labelsHidden().toggleStyle(.switch).tint(Theme.active).disabled(model.isWorking)
647
+ if model.selectedTargetID == "cursor" {
648
+ PreferenceRow(icon: "clock.arrow.circlepath", color: .secondary, title: "History URLs", detail: "Cursor browser does not expose a history store", muted: true) {
649
+ FixedBadge("Excluded")
650
+ }
651
+ } else {
652
+ PreferenceRow(icon: "clock.arrow.circlepath", color: Theme.accent, title: "History URLs", detail: "Original visit times are not preserved") {
653
+ Toggle("", isOn: Binding(get: { model.historyEnabled }, set: { model.setHistoryEnabled($0) }))
654
+ .labelsHidden().toggleStyle(.switch).tint(Theme.active).disabled(model.isWorking)
655
+ }
586
656
  }
587
657
  RowDivider()
588
658
  PreferenceRow(icon: "key.slash", color: .secondary, title: "Passwords", detail: "Browser extensions cannot access passwords", muted: true) {
@@ -615,8 +685,8 @@ struct PreferencesPanel: View {
615
685
  }
616
686
 
617
687
  SectionLabel(title: "Automation", detail: "Runs in the background", separated: true)
618
- PreferenceRow(icon: "clock.badge.checkmark", color: Theme.accent, title: "Daily sync", detail: model.isBrowserlessTarget ? "Unavailable for cloud uploads" : (model.dailyEnabled ? "At the selected local time" : "Off")) {
619
- if model.isBrowserlessTarget {
688
+ PreferenceRow(icon: "clock.badge.checkmark", color: Theme.accent, title: "Daily sync", detail: model.isBrowserlessTarget || model.isGrokBotTarget ? "Unavailable for this destination" : (model.dailyEnabled ? "At the selected local time" : "Off")) {
689
+ if model.isBrowserlessTarget || model.isGrokBotTarget {
620
690
  FixedBadge("Manual only")
621
691
  } else {
622
692
  HStack(spacing: 8) {
@@ -635,8 +705,8 @@ struct PreferencesPanel: View {
635
705
  }
636
706
  }
637
707
  RowDivider()
638
- PreferenceRow(icon: "sunrise.fill", color: Theme.accent, title: "Sync at login", detail: model.isBrowserlessTarget ? "Unavailable for cloud uploads" : (model.loginSyncEnabled ? "Once whenever you sign in" : "Off")) {
639
- if model.isBrowserlessTarget {
708
+ PreferenceRow(icon: "sunrise.fill", color: Theme.accent, title: "Sync at login", detail: model.isBrowserlessTarget || model.isGrokBotTarget ? "Unavailable for this destination" : (model.loginSyncEnabled ? "Once whenever you sign in" : "Off")) {
709
+ if model.isBrowserlessTarget || model.isGrokBotTarget {
640
710
  FixedBadge("Manual only")
641
711
  } else {
642
712
  Toggle("", isOn: Binding(get: { model.loginSyncEnabled }, set: { model.setLoginSyncEnabled($0) }))
@@ -673,6 +743,8 @@ struct PreferencesPanel: View {
673
743
  ProjectLinkRow(icon: "heart", title: "Support on Ko-fi", detail: "Sponsor development", url: ProjectLinks.koFi)
674
744
  RowDivider()
675
745
  ProjectLinkRow(icon: "person.crop.circle.badge.plus", title: "Follow @apoorvdarshan on X", detail: "Developer updates", url: ProjectLinks.x)
746
+ RowDivider()
747
+ ProjectLinkRow(icon: "megaphone", title: "View on Product Hunt", detail: "Follow the launch and leave feedback", url: ProjectLinks.productHunt)
676
748
  }
677
749
  }
678
750
  }
@@ -863,7 +935,7 @@ struct ExtensionSetupSheet: View {
863
935
  Button("Open page") { model.openExtensions(for: model.selectedSourceID) }
864
936
  Button("Show folder") { model.revealExtension(model.selectedSourceID) }
865
937
  }
866
- if model.selectedTargetID != "codex" {
938
+ if !model.isDirectTarget && !model.isGrokBotTarget {
867
939
  Divider().padding(.leading, 58)
868
940
  SetupEndpointRow(icon: model.targetIcon, title: model.targetName, detail: "Load the destination extension") {
869
941
  Button("Open page") { model.openExtensions(for: model.selectedTargetID) }
@@ -874,8 +946,10 @@ struct ExtensionSetupSheet: View {
874
946
  .background(Color(nsColor: .controlBackgroundColor).opacity(0.65), in: RoundedRectangle(cornerRadius: 12, style: .continuous))
875
947
  .overlay(RoundedRectangle(cornerRadius: 12, style: .continuous).stroke(Color.primary.opacity(0.07)))
876
948
 
877
- Text(model.selectedTargetID == "codex"
878
- ? "Codex uses a direct local merge, so no extension is required. Quit Codex before syncing. Password access is never requested."
949
+ Text(model.isDirectTarget
950
+ ? "\(model.targetName) uses a direct local merge, so no extension is required. Quit \(model.targetName) before syncing. Password access is never requested."
951
+ : model.isGrokBotTarget
952
+ ? "Grok Bot uses a one-time encrypted transfer file, so no extension is required. Create the .bcbx bundle, attach it to any Grok Bot, and paste the prompt."
879
953
  : "In both endpoints, enable Developer mode and choose Load unpacked. Password access is never requested.")
880
954
  .font(.system(size: 10.5))
881
955
  .foregroundStyle(.secondary)
@@ -1089,3 +1163,73 @@ enum Theme {
1089
1163
  static let accent = Color(red: 0.46, green: 0.46, blue: 0.48)
1090
1164
  static let active = Color(red: 0.54, green: 0.12, blue: 0.18)
1091
1165
  }
1166
+
1167
+ struct GrokBotResultSheet: View {
1168
+ @EnvironmentObject private var model: SyncModel
1169
+ @Environment(\.dismiss) private var dismiss
1170
+
1171
+ var body: some View {
1172
+ VStack(alignment: .leading, spacing: 16) {
1173
+ HStack(alignment: .top, spacing: 12) {
1174
+ Image(nsImage: model.grokBotIcon)
1175
+ .resizable()
1176
+ .scaledToFit()
1177
+ .frame(width: 24, height: 24)
1178
+ .frame(width: 40, height: 40)
1179
+ .background(Theme.accent.opacity(0.11), in: RoundedRectangle(cornerRadius: 11, style: .continuous))
1180
+ VStack(alignment: .leading, spacing: 3) {
1181
+ Text("Grok Bot transfer ready")
1182
+ .font(.system(size: 18, weight: .bold, design: .rounded))
1183
+ Text(URL(fileURLWithPath: model.grokBotOutputPath).lastPathComponent)
1184
+ .font(.system(size: 11.5))
1185
+ .foregroundStyle(.secondary)
1186
+ }
1187
+ Spacer()
1188
+ }
1189
+
1190
+ VStack(alignment: .leading, spacing: 8) {
1191
+ Text("One-time decryption key")
1192
+ .font(.system(size: 11, weight: .semibold))
1193
+ .foregroundStyle(.secondary)
1194
+ Text(model.grokBotPassphrase)
1195
+ .font(.system(size: 15, weight: .semibold, design: .monospaced))
1196
+ .textSelection(.enabled)
1197
+ .padding(10)
1198
+ .frame(maxWidth: .infinity, alignment: .leading)
1199
+ .background(Color.primary.opacity(0.04), in: RoundedRectangle(cornerRadius: 10, style: .continuous))
1200
+ }
1201
+
1202
+ VStack(alignment: .leading, spacing: 8) {
1203
+ Text("Prompt for Grok Bot")
1204
+ .font(.system(size: 11, weight: .semibold))
1205
+ .foregroundStyle(.secondary)
1206
+ ScrollView {
1207
+ Text(model.grokBotPrompt)
1208
+ .font(.system(size: 11))
1209
+ .frame(maxWidth: .infinity, alignment: .leading)
1210
+ .textSelection(.enabled)
1211
+ }
1212
+ .frame(height: 180)
1213
+ .padding(10)
1214
+ .background(Color.primary.opacity(0.04), in: RoundedRectangle(cornerRadius: 10, style: .continuous))
1215
+ }
1216
+
1217
+ HStack {
1218
+ Button("Reveal file") {
1219
+ let url = URL(fileURLWithPath: model.grokBotOutputPath)
1220
+ NSWorkspace.shared.activateFileViewerSelecting([url])
1221
+ }
1222
+ Button("Copy prompt") {
1223
+ NSPasteboard.general.clearContents()
1224
+ NSPasteboard.general.setString(model.grokBotPrompt, forType: .string)
1225
+ }
1226
+ Spacer()
1227
+ Button("Done") { dismiss() }
1228
+ .keyboardShortcut(.defaultAction)
1229
+ }
1230
+ .controlSize(.regular)
1231
+ }
1232
+ .padding(20)
1233
+ .frame(width: 520)
1234
+ }
1235
+ }