browser-cookie-bridge 1.4.3 → 1.4.4
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/extension-template/manifest.json +1 -1
- package/macos-app/Info.plist +2 -2
- package/package.json +1 -1
- package/src/cli.js +18 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest_version": 3,
|
|
3
3
|
"name": "Browser Cookie Bridge",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.4",
|
|
5
5
|
"description": "Transfers selected browser data locally between supported browsers and into ChatGPT Codex.",
|
|
6
6
|
"key": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5o6lDkXzU/23Jm2QRk4mfuxNnr3VlEIjRHcZr93Gdo7PI7asHJQhigaMGT6UOz0lkaTn1F+TGIPlsJo9GNBSsxbCfxWoBSXcFQFrPolY5LEfKaMtZQQ6eb4UAnp+bbUwb1den4On0piWU47Yzl6i0Jcdg4EG5H1kCSF/6nJsbKgF7OTaR/3drULu40yRvflzSXRhly3UDO7c5mgHJsaMwVV+VILsxbcPOoRINjuo3zDC737HFs67dpf38xF3tjSVL0HURAWKKobMvfABiDfVEm5O0Lvf+57d1Ib12QLT2qtVXNDy3iYwX+w2S0wH2vIMsfvoFPlRdmeqft70kZOqXwIDAQAB",
|
|
7
7
|
"permissions": ["alarms", "cookies", "history"],
|
package/macos-app/Info.plist
CHANGED
|
@@ -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.
|
|
14
|
-
<key>CFBundleVersion</key><string>
|
|
13
|
+
<key>CFBundleShortVersionString</key><string>1.4.4</string>
|
|
14
|
+
<key>CFBundleVersion</key><string>32</string>
|
|
15
15
|
<key>LSMinimumSystemVersion</key><string>13.5</string>
|
|
16
16
|
<key>NSHighResolutionCapable</key><true/>
|
|
17
17
|
</dict>
|
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -309,14 +309,15 @@ async function sync(args, { signal } = {}) {
|
|
|
309
309
|
if (isCodexTarget) {
|
|
310
310
|
if (isCodexRunning()) throw new Error(CODEX_RUNNING_ERROR);
|
|
311
311
|
const siteStorage = config.imports?.siteStorage === true;
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
312
|
+
const source = requireClosedCodexSource({
|
|
313
|
+
sourceBrowser: config.sourceBrowser,
|
|
314
|
+
siteStorage,
|
|
315
|
+
});
|
|
315
316
|
const payload = readChromiumProfile({
|
|
316
|
-
browser:
|
|
317
|
+
browser: source,
|
|
317
318
|
imports: config.imports || { cookies: true, history: false },
|
|
318
319
|
});
|
|
319
|
-
console.log(`Read ${payload.cookies.length} of ${payload.cookieStats.total} cookies (${payload.cookieStats.skipped} unavailable) and ${payload.history.length} history URLs from ${
|
|
320
|
+
console.log(`Read ${payload.cookies.length} of ${payload.cookieStats.total} cookies (${payload.cookieStats.skipped} unavailable) and ${payload.history.length} history URLs from ${source}.`);
|
|
320
321
|
const result = directImportToCodex({
|
|
321
322
|
cookies: payload.cookies,
|
|
322
323
|
history: payload.history,
|
|
@@ -353,6 +354,18 @@ async function sync(args, { signal } = {}) {
|
|
|
353
354
|
return result;
|
|
354
355
|
}
|
|
355
356
|
|
|
357
|
+
export function requireClosedCodexSource({
|
|
358
|
+
sourceBrowser,
|
|
359
|
+
siteStorage,
|
|
360
|
+
runningCheck = isChromiumBrowserRunning,
|
|
361
|
+
}) {
|
|
362
|
+
const source = sourceBrowser || "brave";
|
|
363
|
+
if (siteStorage && runningCheck({ browser: source })) {
|
|
364
|
+
throw new Error(`Quit ${source} completely before importing full site data into Codex.`);
|
|
365
|
+
}
|
|
366
|
+
return source;
|
|
367
|
+
}
|
|
368
|
+
|
|
356
369
|
function browserlessPreflight() {
|
|
357
370
|
assertMacOS();
|
|
358
371
|
const config = readConfig();
|