@fetchproxy/cli
Advanced tools
@@ -32,3 +32,9 @@ import { classifyBridgeError, FetchproxySessionNotReadyError } from '@fetchproxy/server'; | ||
| // actual remedy is a re-pair, and the message should say so. | ||
| if (/\b(cookie|localStorage|sessionStorage) keys not in declared set:/.test(msg)) { | ||
| // | ||
| // Match on "not in declared" rather than enumerating buckets: gate #2 has | ||
| // eight distinct wordings (cookie / {local,session}Storage keys / storage | ||
| // pointer / IndexedDB keys / read_dom names / captureHeaders / indexedDbScopes | ||
| // / graphqlOps), and every one of them means the same thing. Enumerating them | ||
| // is how the first cut of this fix missed five. | ||
| if (/not in declared/.test(msg)) { | ||
| io.err(`bridge error (${kind}): ${msg} — the declared scope changed since you paired. ` + | ||
@@ -35,0 +41,0 @@ 'Revoke this MCP in the Transporter extension popup, then re-run to re-approve ' + |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"bridge-errors.js","sourceRoot":"","sources":["../src/bridge-errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,IAAI,EAAE,UAAU,EAAW,MAAM,aAAa,CAAC;AAExD;;;GAGG;AACH,MAAM,UAAU,cAAc,CAAC,GAAY,EAAE,EAAM;IACjD,IAAI,GAAG,YAAY,UAAU;QAAE,MAAM,GAAG,CAAC;IACzC,IAAI,GAAG,YAAY,8BAA8B,EAAE,CAAC;QAClD,MAAM,IAAI,GAAI,GAAoC,CAAC,QAAQ,CAAC;QAC5D,EAAE,CAAC,GAAG,CACJ,IAAI;YACF,CAAC,CAAC,yDAAyD,IAAI,gDAAgD;YAC/G,CAAC,CAAC,8FAA8F,CACnG,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,MAAM,IAAI,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACtC,MAAM,GAAG,GAAG,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAA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;QACpC,WAAW,EAAE,6DAA6D;QAC1E,OAAO,EAAE,qDAAqD;QAC9D,QAAQ,EAAE,kDAAkD;QAC5D,IAAI,EAAE,EAAE;QACR,KAAK,EAAE,EAAE;KACV,CAAC;IACF,EAAE,CAAC,GAAG,CAAC,iBAAiB,IAAI,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClF,OAAO,IAAI,CAAC,MAAM,CAAC;AACrB,CAAC"} |
@@ -1,1 +0,1 @@ | ||
| export declare const VERSION = "1.8.0"; | ||
| export declare const VERSION = "1.9.0"; |
+1
-1
| // Managed by release-please (generic updater) — do not hand-edit. | ||
| export const VERSION = '1.8.0'; // x-release-please-version | ||
| export const VERSION = '1.9.0'; // x-release-please-version | ||
| //# sourceMappingURL=version.js.map |
+5
-5
| { | ||
| "name": "@fetchproxy/cli", | ||
| "version": "1.8.0", | ||
| "version": "1.9.0", | ||
| "description": "One-shot CLI for the fetchproxy bridge: authenticated fetches and session reads through the user's signed-in browser tab, scoped by per-service profiles.", | ||
@@ -33,9 +33,9 @@ "type": "module", | ||
| "dependencies": { | ||
| "@fetchproxy/bootstrap": "^1.8.0", | ||
| "@fetchproxy/protocol": "^1.8.0", | ||
| "@fetchproxy/server": "^1.8.0" | ||
| "@fetchproxy/bootstrap": "^1.9.0", | ||
| "@fetchproxy/protocol": "^1.9.0", | ||
| "@fetchproxy/server": "^1.9.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@fetchproxy/test-helpers": "^1.8.0" | ||
| "@fetchproxy/test-helpers": "^1.9.0" | ||
| } | ||
| } |
+1
-1
@@ -79,3 +79,3 @@ # @fetchproxy/cli | ||
| | `fpx profile remove <name>` | Delete the profile and its identity file. | `fpx profile remove opentable` | | ||
| | `fpx pair -p <name> [--domain <apex>]` | Force a pairing round-trip against one declared domain (defaults to the only one, if there's exactly one). | `fpx pair -p opentable` | | ||
| | `fpx pair -p <name> [--domain <apex>] [--subdomain <label>]` | Force a pairing round-trip against one declared domain (defaults to the only one, if there's exactly one). `--subdomain` aims at the host your signed-in tab is actually on — the fetch tab-matcher is strict-prefix, so an apex-only profile won't match a `www.` tab. | `fpx pair -p opentable --subdomain www` | | ||
| | `fpx health -p <name>` | Print the bridge's health snapshot (host/peer role, connection state). | `fpx health -p opentable` | | ||
@@ -82,0 +82,0 @@ | `fpx get <url> -p <name> [--json] [-H 'K: V']…` | GET a URL through the profile's tab. | `fpx get https://www.opentable.com/ -p opentable` | |
103439
0.59%1227
0.49%Updated
Updated
Updated