mirror of
https://github.com/stablyai/orca.git
synced 2026-10-03 00:02:19 +00:00
Register Helium (imput, bundle id net.imput.helium) so it is auto-detected and importable from the picker on macOS like Chrome/Edge/Arc/Brave/Comet, instead of only via the "From File..." JSON path. Reuses the existing macOS Chromium decryption path unchanged. Helium quirks (verified on a real install): its Keychain entry is service "Helium Storage Key" / account "Helium" (not the usual "<Browser> Safe Storage"), it stores data under its bundle id, and it keeps cookies at the legacy <Profile>/Cookies path. Mac-only for now; Windows/Linux data dirs are unverified so winRoot/linuxRoot are omitted and the source defaults off there. Claude-Session: https://claude.ai/code/session_01SZzX6ktZaaCUg5PWnzniuC
37 lines
888 B
TypeScript
37 lines
888 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { getBrowserCookieImportSourceLabels } from './browser-cookie-import-sources'
|
|
|
|
describe('getBrowserCookieImportSourceLabels', () => {
|
|
it('includes mac-only sources on darwin', () => {
|
|
expect(getBrowserCookieImportSourceLabels('darwin')).toEqual([
|
|
'Google Chrome',
|
|
'Microsoft Edge',
|
|
'Arc',
|
|
'Brave',
|
|
'Comet',
|
|
'Helium',
|
|
'Firefox',
|
|
'Safari'
|
|
])
|
|
})
|
|
|
|
it('omits mac-only sources on Windows', () => {
|
|
expect(getBrowserCookieImportSourceLabels('win32')).toEqual([
|
|
'Google Chrome',
|
|
'Microsoft Edge',
|
|
'Brave',
|
|
'Comet',
|
|
'Firefox'
|
|
])
|
|
})
|
|
|
|
it('omits mac-only and Comet on Linux', () => {
|
|
expect(getBrowserCookieImportSourceLabels('linux')).toEqual([
|
|
'Google Chrome',
|
|
'Microsoft Edge',
|
|
'Brave',
|
|
'Firefox'
|
|
])
|
|
})
|
|
})
|