feat: encrypted offline all-origin Firefox localStorage migration

This commit is contained in:
souta
2026-10-23 16:50:44 +09:00
parent 7dfc3d68e3
commit 1e5ba9c91c
17 changed files with 792 additions and 249 deletions
+45 -39
View File
@@ -1,54 +1,60 @@
# Whole-profile LocalStorage migration (experimental, Linux)
# Experimental whole-profile Firefox → Chromium LocalStorage migration
The browser extension cannot enumerate another browser's complete site storage via
WebExtension APIs. Portage's companion script therefore reads **all compatible
first-party Firefox LSNG localStorage databases**, not only open tabs. It is
read-only and standard-library-only (no Internet requests).
The Portage extension cannot enumerate every origin's LocalStorage via WebExtension APIs. This optional Linux companion migrates **every compatible first-party Firefox LocalStorage origin** by reading the offline Firefox profile and writing via a separate, headless Chrome/Brave session. It does **not** depend on currently open tabs, and does **not** visit the real websites during import.
**Privacy:** localStorage often includes authentication tokens. Output is
**UNENCRYPTED** JSON and created with mode `0600`. Do not share, attach to bug
reports, or commit it. After migration, securely manage/delete the file per
local policy. Keep an offline backup of your Firefox profile.
**This is not complete browser-profile migration.** It does *not* migrate IndexedDB, sessionStorage, Service Workers, Firefox Containers, partitioned localStorage, WebAuthn/passkeys, or device-bound session credentials. Login persistence cannot be guaranteed. Cookies and bookmarks can be migrated separately using the standard Portage extension.
1. In Firefox `about:profiles`, find the **Root Directory** of the intended
profile. Close Firefox to avoid racing database changes.
2. Export in a private directory:
## Safety / prerequisites
```sh
- Backup the Firefox and Chromium/Brave profiles first.
- Close Firefox before exporting; close Brave/Chrome before applying to its profile. The importer refuses an existing Chromium `SingletonLock`.
- LocalStorage can contain live session tokens. **Encrypted AES-256-GCM export is the default**; use a long unique passphrase. `--plaintext` is an explicitly unsafe opt-out. Output is mode 0600. Never attach exported bundles to an issue, share them, or commit them.
- Require **Python 3** and `cryptography` for encryption (`sudo apt install python3-cryptography` on Debian), and **Node.js 20+**, plus Puppeteer Core (`cd tools && npm install`). Puppeteer Core uses the existing installed Chrome/Brave and downloads no browsers.
- The exporter reports a **count of IndexedDB origins omitted** (without opening their records), so you can estimate missing coverage.
- Import is **merge/upsert**: values with matching LocalStorage keys in the target are overwritten. Use a fresh Chromium profile where possible. Failed sites are reported and attempted writes are rolled back within the page when possible; this does not provide cross-origin atomic transactions.
- Import launches the browser **headless**, intercepts all page network requests to return inert local HTML, disables service workers for the temporary page, and validates the loaded origin. This avoids visiting live websites but does not formally guarantee that the browser itself makes no background connections. Standard Chrome sandboxing remains enabled.
## Usage on Linux
1. Open `about:profiles` in Firefox to find your intended profile's **Root Directory**. Close Firefox, then run:
```bash
python3 tools/firefox_localstorage.py \
--profile '/path/from/about:profiles' \
--output "$HOME/portage-localstorage.portage.json"
--profile "$HOME/.mozilla/firefox/your-profile" \
--output "$HOME/firefox-storage.portage.json"
```
3. Install the **unpacked** `chrome/` Portage extension in Brave (Developer mode)
or `firefox/` in Firefox. Open Portage, switch to Import, and load the new
`.portage.json` file. Select LocalStorage and choose **Import selected**.
4. The extension visits *every exported origin*, sequentially, in temporary
background tabs and writes the saved localStorage, then closes the tabs.
This causes real network requests to those sites. It may trigger background
actions; do not perform this on a production profile without a backup.
The importer reports imported/skipped **origins**, not individual keys.
An encryption passphrase will be requested. For non-interactive usage, pipe a secret securely through `--passphrase-stdin` (never put it in shell command arguments). No upload/network request is performed.
## Scope and limitations
2. Install the *optional* importer dependency, once:
- First-party HTTP(S) localStorage from `storage/default/*/ls/data.sqlite`.
- Handles UTF-8 and UTF-16BE, plus Firefox raw Snappy compression.
- Skips partitioned/container origin attributes rather than merging them into
a different privacy context. Logs skipped/corrupt databases without contents.
- Does **not** migrate IndexedDB, sessionStorage, WebAuthn credentials, cookies,
service workers, or origin-bound browser keys. Portage's regular browser UI
handles cookies as a separate category.
- Does not guarantee uninterrupted login state. Some sites need fresh login.
- No login credentials are read from `logins.json`.
- Chromium must be able to load a site for its storage to be written via a
content script. Redirects, dead origins, missing permissions and browser
restrictions may cause individual origins to be skipped.
```bash
cd tools && npm install && cd ..
```
For tests (synthetic, no personal browser data):
3. Close Brave. Check data counts in **dry-run** mode (the default):
```sh
```bash
node tools/chromium_localstorage_import.cjs \
--bundle "$HOME/firefox-storage.portage.json" \
--browser /usr/bin/brave-browser \
--user-data-dir "$HOME/.config/BraveSoftware/Brave-Browser"
```
Only the counts are printed; there are no browser changes. To actually import, repeat with `--apply` appended. Provide `--profile-directory 'Profile 1'` if your target is not `Default`. Replace `/usr/bin/brave-browser` with the executable on your system.
4. Launch Brave normally and inspect the sites you care about. **Delete the encrypted migration file when no longer needed.** Restore from your backup if necessary.
## Tests (all synthetic profiles; no personal browser data)
```bash
python3 -m unittest discover -s tests -p 'test_*.py'
node tests/test_storage_browser.cjs
# Optional: requires Puppeteer and a local Chrome installation; uses a temp profile
# Optional desktop E2E: local Firefox 159 and Chrome 156 were verified;
# needs installed Firefox and Google Chrome plus Puppeteer
node tests/e2e_cross_browser.cjs
node tests/e2e_offline_import.cjs
node tests/e2e_chrome.cjs
```
Chromium E2E tests verify that **requests to the synthetic target origin equal zero during import**, and the stored values remain readable after browser restart. The cross-browser test verifies Firefox LSNG decoding, AES encryption compatibility and Chromium restoration. Neither test guarantees the preservation of real-world login sessions.
+191
View File
@@ -0,0 +1,191 @@
#!/usr/bin/env node
/**
* Offline, cross-origin Chromium localStorage importer.
* Chrome/Brave is launched under a user-specified (preferably empty) profile;
* request interception fulfills ALL page requests locally with inert HTML.
* No extension or direct LevelDB editing is necessary.
* Dependency: puppeteer-core (or puppeteer). Node >=20.
*/
'use strict';
const fs = require('node:fs');
const path = require('node:path');
const crypto = require('node:crypto');
const readline = require('node:readline');
function parseArgs(argv) {
const opts = {apply: false, profileDirectory: 'Default', timeout: 12000};
for (let i = 0; i < argv.length; i++) {
const a = argv[i];
if (a === '--apply') opts.apply = true;
else if (a === '--passphrase-stdin') opts.passphraseStdin = true;
else if (['--bundle','--user-data-dir','--browser','--profile-directory','--timeout-ms'].includes(a)) {
const v = argv[++i]; if (!v) throw Error(`Missing value for ${a}`);
const key = {'--bundle':'bundle','--user-data-dir':'userDataDir','--browser':'browser','--profile-directory':'profileDirectory','--timeout-ms':'timeout'}[a];
opts[key] = key === 'timeout' ? Number(v) : v;
} else if (a === '--help' || a === '-h') opts.help = true;
else throw Error(`Unknown argument: ${a}`);
}
if (!opts.help && (!opts.bundle || !opts.userDataDir || !opts.browser)) throw Error('Required: --bundle FILE --user-data-dir DIR --browser PATH');
if (!Number.isFinite(opts.timeout) || opts.timeout < 1000 || opts.timeout > 120000) throw Error('Invalid timeout');
if (!/^[\w. -]+$/.test(opts.profileDirectory) || opts.profileDirectory === '.' || opts.profileDirectory === '..') throw Error('Invalid profile directory');
return opts;
}
function validOrigin(origin) {
if (typeof origin !== 'string' || origin.includes('^')) return false;
try {
const url = new URL(origin);
return (url.protocol === 'http:' || url.protocol === 'https:') && url.origin === origin && !url.username && !url.password;
} catch { return false; }
}
function validateBundle(obj) {
if (obj?.portage?.format !== 'portage-bundle' || obj?.portage?.version !== 1) throw Error('Invalid Portage bundle format');
const sites = obj?.data?.localStorage;
if (!Array.isArray(sites)) throw Error('Bundle does not contain localStorage');
if (sites.length > 100000) throw Error('Too many origins');
const seen = new Set();
let totalKeys = 0;
for (const site of sites) {
if (!validOrigin(site?.origin)) throw Error('Unsafe or unsupported site origin in bundle');
if (seen.has(site.origin)) throw Error('Duplicate origin in bundle');
seen.add(site.origin);
const values = site.items;
if (!values || typeof values !== 'object' || Array.isArray(values) || Object.getPrototypeOf(values) !== Object.prototype) throw Error('Invalid localStorage entries');
const keys = Object.keys(values);
totalKeys += keys.length;
if (keys.length > 10000 || totalKeys > 1000000) throw Error('Too many storage entries');
if (keys.some(k => typeof values[k] !== 'string')) throw Error('Non-string storage values');
}
return {sites, totalKeys};
}
async function passphrasePrompt() {
if (!process.stdin.isTTY) throw Error('Encrypted bundle: use --passphrase-stdin, or run interactively');
const rl = readline.createInterface({input: process.stdin, output: process.stderr});
// Prevent echoing a password to the terminal.
rl._writeToOutput = () => {};
return new Promise(resolve => {process.stderr.write('Portage bundle passphrase: '); rl.question('', s => {process.stderr.write('\n');rl.close();resolve(s);});});
}
async function readPassphrase(stdinFlag) {
if (!stdinFlag) return passphrasePrompt();
const chunks=[];
for await(const c of process.stdin) chunks.push(c);
const value=Buffer.concat(chunks).toString('utf8').replace(/\r?\n$/, '');
if (!value) throw Error('Empty passphrase from standard input');
return value;
}
async function decryptWrapper(wrapper, passphrase) {
const p = wrapper.portage;
if (p?.format !== 'portage-bundle-encrypted' || p?.version !== 1 ||
p.cipher !== 'AES-GCM' || p.kdf !== 'PBKDF2' || p.hash !== 'SHA-256' || p.keyLength !== 256 ||
!Number.isInteger(p.iterations) || p.iterations < 100000 || p.iterations > 2000000) throw Error('Unsupported encryption format');
const salt=Buffer.from(p.salt,'base64'), iv=Buffer.from(p.iv,'base64'), ct=Buffer.from(wrapper.ciphertext,'base64');
if(salt.length !== 16 || iv.length !== 12 || ct.length < 16 || ct.length > 512*1024*1024) throw Error('Invalid encrypted bundle size');
const key = crypto.pbkdf2Sync(passphrase,salt,p.iterations,32,'sha256');
const dec = crypto.createDecipheriv('aes-256-gcm',key,iv);
dec.setAuthTag(ct.subarray(ct.length-16));
let inner;
try {inner=JSON.parse(Buffer.concat([dec.update(ct.subarray(0,-16)),dec.final()]).toString('utf8'));}
catch {throw Error('Cannot decrypt: wrong passphrase or corrupted bundle');}
return {portage:{format:'portage-bundle',version:1,source:p.source},meta:inner.meta,data:inner.data};
}
async function loadBundle(filename, passphraseStdin) {
const stat=fs.statSync(filename);
if (stat.size > 512*1024*1024) throw Error('Bundle too large');
const wrapper=JSON.parse(fs.readFileSync(filename,'utf8'));
if(wrapper?.portage?.format==='portage-bundle-encrypted') {
const pass=await readPassphrase(passphraseStdin);
return await decryptWrapper(wrapper,pass);
}
return wrapper;
}
/** For every origin, respond to *every* navigation/subresource request locally. */
async function restoreSites(browser, sites, timeout=12000) {
const results = {imported: 0, skipped: 0, keys: 0, errors: []};
const page=await browser.newPage();
await page.setBypassServiceWorker(true);
await page.setCacheEnabled(false);
await page.setRequestInterception(true);
page.on('request', req=>{
const isDocument=req.isNavigationRequest() && req.frame() === page.mainFrame();
if (isDocument) req.respond({status:200,contentType:'text/html; charset=utf-8',headers:{'cache-control':'no-store'},body:'<!doctype html><html><head><title>Portage localStorage import</title></head><body></body></html>'}).catch(()=>{});
else req.respond({status:204,body:''}).catch(()=>{});
});
for(let i=0;i<sites.length;i++) {
const site=sites[i];
try {
await page.goto(site.origin+'/',{waitUntil:'domcontentloaded',timeout});
if (new URL(page.url()).origin !== site.origin) throw Error('Unexpected navigation origin');
const pairs=Object.entries(site.items);
const result=await page.evaluate((entries)=>{
// Entire operation occurs in one renderer task, before site scripts (page is inert).
const old=[];
try {
for(const [k,v] of entries) {
old.push([k,localStorage.getItem(k)]);
localStorage.setItem(k,v);
}
if(entries.some(([k,v])=>localStorage.getItem(k)!==v)) throw Error('Storage verification failed');
} catch(e) {
for(let j=old.length-1;j>=0;j--) {
const [k,v]=old[j];
try{if(v===null)localStorage.removeItem(k);else localStorage.setItem(k,v);}catch{}
}
throw e;
}
return entries.length;
}, pairs);
if(result!==pairs.length)throw Error('Storage key count mismatch');
results.imported++;results.keys+=result;
} catch(e) {
results.skipped++;
results.errors.push({index:i+1,reason:String(e.message||e).slice(0,180)});
}
}
await page.close();
return results;
}
async function run(opts) {
const bundle=await loadBundle(path.resolve(opts.bundle),opts.passphraseStdin);
const {sites,totalKeys}=validateBundle(bundle);
const profile=path.resolve(opts.userDataDir);
if(profile==='/' || profile===require('node:os').homedir()) throw Error('Refusing to use root or home as Chrome user-data-dir');
const lock=path.join(profile,'SingletonLock');
if (fs.existsSync(lock) || fs.lstatSync(lock, {throwIfNoEntry:false})) throw Error('Browser profile appears to be in use (SingletonLock present); close browser and retry');
console.log(`Validated ${sites.length} origins / ${totalKeys} LocalStorage keys.`);
const unsupportedIdb = bundle?.meta?.unsupported?.indexedDBOrigins;
if (Number.isInteger(unsupportedIdb) && unsupportedIdb > 0) {
console.warn(`WARNING: ${unsupportedIdb} Firefox IndexedDB origin(s) are not migrated; some logins may require reauthentication.`);
}
if(!opts.apply){console.log('DRY RUN: No browser started; pass --apply after creating a backup.');return;}
if(!fs.existsSync(opts.browser))throw Error('Browser executable not found');
let puppeteer;
try{puppeteer=require('puppeteer-core');}catch{try{puppeteer=require('puppeteer');}catch{throw Error('Install puppeteer-core locally (npm i --no-save puppeteer-core)');}}
// Never start with a personal profile unless explicitly specified by the operator.
// Keep Chrome sandbox enabled; do not pass --no-sandbox.
const browser=await puppeteer.launch({executablePath:path.resolve(opts.browser),userDataDir:profile,
headless:true,defaultViewport:{width:600,height:400},
args:['--profile-directory='+opts.profileDirectory,'--no-first-run','--no-default-browser-check',
'--disable-background-networking','--disable-sync','--disable-extensions','--disable-features=MediaRouter']});
let result;
try {result=await restoreSites(browser,sites,opts.timeout);}
finally {await browser.close();}
console.log(`Imported ${result.imported}/${sites.length} origins and ${result.keys} keys; skipped ${result.skipped}.`);
if(result.errors.length)console.log('Skipped (index and reason; no credentials):',JSON.stringify(result.errors));
if(result.skipped)process.exitCode=2;
}
if(require.main===module) {
let opts;
try{opts=parseArgs(process.argv.slice(2));
if(opts.help){console.log('Usage: node tools/chromium_localstorage_import.cjs --bundle FILE --user-data-dir DIR --browser /path/to/chrome [--profile-directory Default] [--passphrase-stdin] [--apply]\nDry-run is default. Requires puppeteer-core to --apply. No remote site requests are made by the importer.');process.exit(0);}
run(opts).catch(e=>{console.error('Error:',e.message);process.exitCode=1});
}catch(e){console.error('Error:',e.message);process.exitCode=1}
}
module.exports={parseArgs,validOrigin,validateBundle,loadBundle,decryptWrapper,restoreSites,run};
+44 -2
View File
@@ -5,6 +5,9 @@ This is deliberately an offline, read-only exporter. It never accesses network
services, Firefox cookies, passwords, or browser extension profiles.
"""
import argparse
import base64
import getpass
import hashlib
from contextlib import closing
import json
import os
@@ -130,6 +133,8 @@ def main(argv=None):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--profile', type=Path, required=True, help='Firefox profile folder from about:profiles')
parser.add_argument('--output', type=Path, required=True, help='New private .portage.json bundle (contains session secrets)')
parser.add_argument('--plaintext', action='store_true', help='DANGEROUS: disable default AES-256-GCM encryption')
parser.add_argument('--passphrase-stdin', action='store_true', help='Read encryption passphrase from stdin instead of prompting')
args = parser.parse_args(argv)
profile = args.profile.expanduser().resolve()
output = args.output.expanduser().resolve()
@@ -138,15 +143,50 @@ def main(argv=None):
if not profile.is_dir():
parser.error('Profile directory does not exist')
sites, warnings = export_profile(profile)
# Inventory unsupported IndexedDB without opening or reading any IDB records.
# Counts, not credential-bearing names/values, go into the bundle metadata.
idb_count = sum(1 for directory in (profile / 'storage' / 'default').glob('*/idb')
if directory.is_dir() and any(directory.glob('*.sqlite')))
if not sites:
parser.error('No compatible localStorage origins found (see warnings / profile path)')
bundle = {
'portage': {'format': 'portage-bundle', 'version': 1, 'source': 'firefox',
'generator': 'Portage offline localStorage exporter',
'exportedAt': datetime.now(timezone.utc).isoformat()},
'meta': {'counts': {'localStorage': len(sites)}},
'meta': {'counts': {'localStorage': len(sites)},
'unsupported': {'indexedDBOrigins': idb_count}},
'data': {'localStorage': sites},
}
if not args.plaintext:
# Uses the same PBKDF2 + AES-GCM wire format as the extension itself.
# Imported lazily: plaintext mode has no third-party dependencies.
try:
from cryptography.hazmat.primitives.ciphers.aead import AESGCM
except ImportError:
parser.error('Encryption needs cryptography: pip install cryptography (or explicitly use --plaintext)')
if args.passphrase_stdin:
phrase = sys.stdin.readline().rstrip('\r\n')
elif sys.stdin.isatty():
phrase = getpass.getpass('Portage encryption passphrase: ')
else:
parser.error('Encrypted export requires a TTY, or --passphrase-stdin')
if len(phrase) < 16:
parser.error('Use a passphrase of at least 16 characters')
salt, iv, iterations = os.urandom(16), os.urandom(12), 250000
key = hashlib.pbkdf2_hmac('sha256', phrase.encode('utf8'), salt, iterations, dklen=32)
inner = json.dumps({'meta': bundle['meta'], 'data': bundle['data']}, ensure_ascii=False, separators=(',', ':')).encode('utf8')
ciphertext = AESGCM(key).encrypt(iv, inner, None)
bundle = {
'portage': {
'format':'portage-bundle-encrypted', 'version':1, 'source':'firefox',
'generator': 'Portage offline localStorage exporter',
'exportedAt': bundle['portage']['exportedAt'],
'cipher':'AES-GCM','keyLength':256,'kdf':'PBKDF2','hash':'SHA-256',
'iterations':iterations,'salt':base64.b64encode(salt).decode(),
'iv':base64.b64encode(iv).decode(),
},
'ciphertext':base64.b64encode(ciphertext).decode(),
}
# Create mode 0600: no permissive intermediate file, no clobber.
fd = os.open(output, os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o600)
try:
@@ -155,8 +195,10 @@ def main(argv=None):
except BaseException:
output.unlink(missing_ok=True)
raise
print(f'Exported {len(sites)} origins to {output} (PRIVATE, UNENCRYPTED)')
print(f'Exported {len(sites)} origins to {output} (PRIVATE, '+('UNENCRYPTED' if args.plaintext else 'AES-256-GCM encrypted')+')')
print('The bundle may contain active login tokens. Do not upload or share it.')
if idb_count:
print(f'WARNING: IndexedDB exists for {idb_count} origin(s) and is NOT migrated.', file=sys.stderr)
for warning in warnings:
print('WARNING:', warning, file=sys.stderr)
if warnings:
+333
View File
@@ -0,0 +1,333 @@
{
"name": "portage-profile-migration-tools",
"version": "0.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "portage-profile-migration-tools",
"version": "0.1.0",
"dependencies": {
"puppeteer-core": "^25.14.0"
},
"engines": {
"node": ">=20"
}
},
"node_modules/@puppeteer/browsers": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/@puppeteer/browsers/-/browsers-3.2.6.tgz",
"integrity": "sha512-MJP29gVoHznmqmwhH1tlZqzfeQ3aylTpSSa6WKZXtkwYUH02i9imBmWGTyZrbnAou5paX78SE4jMAUqnEPf8ug==",
"license": "Apache-2.0",
"dependencies": {
"modern-tar": "^0.8.6",
"yargs": "^18.0.0"
},
"bin": {
"browsers": "lib/main-cli.js"
},
"engines": {
"node": ">=22.12.0"
},
"peerDependencies": {
"proxy-agent": ">=8.0.1",
"yauzl": "^2.10.0 || ^3.4.0"
},
"peerDependenciesMeta": {
"proxy-agent": {
"optional": true
},
"yauzl": {
"optional": true
}
}
},
"node_modules/ansi-regex": {
"version": "6.4.0",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz",
"integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==",
"license": "MIT",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/ansi-regex?sponsor=1"
}
},
"node_modules/ansi-styles": {
"version": "6.2.3",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
"integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
"license": "MIT",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/chromium-bidi": {
"version": "157.0.8090-0",
"resolved": "https://registry.npmjs.org/chromium-bidi/-/chromium-bidi-157.0.8090-0.tgz",
"integrity": "sha512-KJw7IQgqXwxpJgJlEIPg5mr2ZoqA+jkTRtc5EABI7sUJ3bu3cpI7NuEBoj4Gn1AsF78CaT9So5WQWspK3/wYag==",
"license": "Apache-2.0",
"dependencies": {
"mitt": "^3.0.1",
"zod": "^4.6.5"
},
"engines": {
"node": ">=20.19.0 <22.0.0 || >=22.12.0"
},
"peerDependencies": {
"devtools-protocol": "*"
}
},
"node_modules/cliui": {
"version": "9.0.1",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-9.0.1.tgz",
"integrity": "sha512-k7ndgKhwoQveBL+/1tqGJYNz097I7WOvwbmmU2AR5+magtbjPWQTS1C5vzGkBC8Ym8UWRzfKUzUUqFLypY4Q+w==",
"license": "ISC",
"dependencies": {
"string-width": "^7.2.0",
"strip-ansi": "^7.1.0",
"wrap-ansi": "^9.0.0"
},
"engines": {
"node": ">=20"
}
},
"node_modules/cliui/node_modules/string-width": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
"integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
"license": "MIT",
"dependencies": {
"emoji-regex": "^10.3.0",
"get-east-asian-width": "^1.0.0",
"strip-ansi": "^7.1.0"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/devtools-protocol": {
"version": "0.0.1704951",
"resolved": "https://registry.npmjs.org/devtools-protocol/-/devtools-protocol-0.0.1704951.tgz",
"integrity": "sha512-GQhQOs9u/Mvm1zMtJIH872JS4AskuZdUSsPNPk4ChahtWAUqgz6atEtIsMt+nO7MqF1Ic4HxII/k8Cu36JivNg==",
"license": "BSD-3-Clause"
},
"node_modules/emoji-regex": {
"version": "10.6.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
"integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
"license": "MIT"
},
"node_modules/escalade": {
"version": "3.2.0",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",
"integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",
"license": "MIT",
"engines": {
"node": ">=6"
}
},
"node_modules/get-caller-file": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",
"integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",
"license": "ISC",
"engines": {
"node": "6.* || 8.* || >= 10.*"
}
},
"node_modules/get-east-asian-width": {
"version": "1.7.0",
"resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.7.0.tgz",
"integrity": "sha512-XjH1AECxf0giL2V1aU8vKyRR2ppRUb5c0EvT7zuJTokQ74bNo52zOtghqdWIqrhUD79fo3x0WfKZdOqxF6LG1Q==",
"license": "MIT",
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/mitt": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz",
"integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==",
"license": "MIT"
},
"node_modules/modern-tar": {
"version": "0.8.6",
"resolved": "https://registry.npmjs.org/modern-tar/-/modern-tar-0.8.6.tgz",
"integrity": "sha512-LYSks0tNVqbtez/9OB0YFP6qLRSqkdAxJWOQpVaR67lNTbj2zNLyYpowkRMia5lXLCZKzxwoxkxH2MbbBR2aEg==",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
}
},
"node_modules/puppeteer-core": {
"version": "25.16.0",
"resolved": "https://registry.npmjs.org/puppeteer-core/-/puppeteer-core-25.16.0.tgz",
"integrity": "sha512-VA5Pf54N8shfopNkZZXCdiiwfnnY8ZJYAMqFQRhlH5mGUhfwf53Ar770GPtdpTDLUqvQeYpIBtC9/G2Jij2IJw==",
"license": "Apache-2.0",
"dependencies": {
"@puppeteer/browsers": "3.2.6",
"chromium-bidi": "157.0.8090-0",
"devtools-protocol": "0.0.1704951",
"typed-query-selector": "^2.12.3",
"webdriver-bidi-protocol": "1.0.1",
"ws": "^8.22.0"
},
"engines": {
"node": ">=22.12.0"
}
},
"node_modules/string-width": {
"version": "8.3.0",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-8.3.0.tgz",
"integrity": "sha512-ZbmZM0JCihQN91dWnxoipT2KOEyHqEyfRXUyjuRhW8b/xnqPDoq4gWEVApTVa9db2wN8mmoikgFBbjh71+cGeQ==",
"license": "MIT",
"dependencies": {
"get-east-asian-width": "^1.5.0",
"strip-ansi": "^7.1.2"
},
"engines": {
"node": ">=20"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/strip-ansi": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
"integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
"license": "MIT",
"dependencies": {
"ansi-regex": "^6.2.2"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/typed-query-selector": {
"version": "2.12.3",
"resolved": "https://registry.npmjs.org/typed-query-selector/-/typed-query-selector-2.12.3.tgz",
"integrity": "sha512-/dtuMZyutHLlrxWhhC1uib00ELUr2dZ8C9B8YzZYsJmeE3V56OxRblrSM2UaF142pcMtak7ehZ6+poWGeehNIg==",
"license": "MIT"
},
"node_modules/webdriver-bidi-protocol": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/webdriver-bidi-protocol/-/webdriver-bidi-protocol-1.0.1.tgz",
"integrity": "sha512-WXWs/aXF2a6Al1Z2/V/7Gp2oPZOAAmHjJOTmv4KCXRJ122IMj3tSSMc6a4q3K4QOmhQbse/Ahr+oTVJOU2dUiw==",
"license": "Apache-2.0"
},
"node_modules/wrap-ansi": {
"version": "9.0.2",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
"integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
"license": "MIT",
"dependencies": {
"ansi-styles": "^6.2.1",
"string-width": "^7.0.0",
"strip-ansi": "^7.1.0"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/chalk/wrap-ansi?sponsor=1"
}
},
"node_modules/wrap-ansi/node_modules/string-width": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz",
"integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==",
"license": "MIT",
"dependencies": {
"emoji-regex": "^10.3.0",
"get-east-asian-width": "^1.0.0",
"strip-ansi": "^7.1.0"
},
"engines": {
"node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/ws": {
"version": "8.22.0",
"resolved": "https://registry.npmjs.org/ws/-/ws-8.22.0.tgz",
"integrity": "sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==",
"license": "MIT",
"engines": {
"node": ">=10.0.0"
},
"peerDependencies": {
"bufferutil": "^4.0.1",
"utf-8-validate": ">=5.0.2"
},
"peerDependenciesMeta": {
"bufferutil": {
"optional": true
},
"utf-8-validate": {
"optional": true
}
}
},
"node_modules/y18n": {
"version": "5.0.8",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",
"integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",
"license": "ISC",
"engines": {
"node": ">=10"
}
},
"node_modules/yargs": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-18.2.0.tgz",
"integrity": "sha512-9OpKOLeaoNFecEp7P6iYbzze/5CqWoH7N3SMs/6y1XF4nMvFMspEGZzJ6uFi9MmQwXhyzqYoSEKO3tvA3Z/o2w==",
"license": "MIT",
"dependencies": {
"cliui": "^9.0.1",
"escalade": "^3.1.1",
"get-caller-file": "^2.0.5",
"string-width": "^8.2.1",
"y18n": "^5.0.5",
"yargs-parser": "^22.0.0"
},
"engines": {
"node": "^20.19.0 || ^22.12.0 || >=23"
}
},
"node_modules/yargs-parser": {
"version": "22.0.0",
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-22.0.0.tgz",
"integrity": "sha512-rwu/ClNdSMpkSrUb+d6BRsSkLUq1fmfsY6TOpYzTwvwkg1/NRG85KBy3kq++A8LKQwX6lsu+aWad+2khvuXrqw==",
"license": "ISC",
"engines": {
"node": "^20.19.0 || ^22.12.0 || >=23"
}
},
"node_modules/zod": {
"version": "4.6.7",
"resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz",
"integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
}
}
}
+8
View File
@@ -0,0 +1,8 @@
{
"name": "portage-profile-migration-tools",
"version": "0.1.0",
"private": true,
"description": "Optional offline profile migration helpers for Portage",
"engines": { "node": ">=20" },
"dependencies": { "puppeteer-core": "^25.14.0" }
}