@fetchproxy/cli
Advanced tools
@@ -1,2 +0,2 @@ | ||
| import { classifyBridgeError, FetchproxySessionNotReadyError } from '@fetchproxy/server'; | ||
| import { classifyBridgeError, FetchproxyScopeError, FetchproxySessionNotReadyError, } from '@fetchproxy/server'; | ||
| import { EXIT, UsageError } from './output.js'; | ||
@@ -28,16 +28,11 @@ /** | ||
| // A widened declared scope is rejected by the extension's gate #2 until the | ||
| // user re-approves it. That arrives as a `protocol` error, so without this | ||
| // branch it inherited the blanket "version mismatch — update both" hint | ||
| // below and sent people chasing a version problem that does not exist. The | ||
| // actual remedy is a re-pair, and the message should say so. | ||
| // user re-approves. That arrives as a `protocol` error, so without this it | ||
| // inherits the blanket "version mismatch — update both" hint below and sends | ||
| // people chasing a version problem that does not exist. | ||
| // | ||
| // 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. ` + | ||
| 'Revoke this MCP in the Transporter extension popup, then re-run to re-approve ' + | ||
| 'the new scope.'); | ||
| // The wording knowledge now lives on the error itself (FetchproxyScopeError, | ||
| // server 1.10+) rather than in a regex here — the CLI is not the only | ||
| // consumer that needs it, and a second copy would drift from the first. | ||
| if (err instanceof FetchproxyScopeError) { | ||
| io.err(`bridge error (${kind}): ${err.originalError} — ${err.hint}`); | ||
| return EXIT.BRIDGE; | ||
@@ -44,0 +39,0 @@ } |
@@ -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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E,0DAA0D;IAC1D,IAAI,GAAG,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,CAAC;QAC9C,EAAE,CAAC,GAAG,CACJ,GAAG,GAAG,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC,4CAA4C,CACvF,CAAC;QACF,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IACD,4EAA4E;IAC5E,2EAA2E;IAC3E,6EAA6E;IAC7E,wDAAwD;IACxD,EAAE;IACF,6EAA6E;IAC7E,sEAAsE;IACtE,wEAAwE;IACxE,IAAI,GAAG,YAAY,oBAAoB,EAAE,CAAC;QACxC,EAAE,CAAC,GAAG,CAAC,iBAAiB,IAAI,MAAM,GAAG,CAAC,aAAa,MAAM,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IACD,MAAM,KAAK,GAA2B;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.9.1"; | ||
| export declare const VERSION = "1.10.0"; |
+1
-1
| // Managed by release-please (generic updater) — do not hand-edit. | ||
| export const VERSION = '1.9.1'; // x-release-please-version | ||
| export const VERSION = '1.10.0'; // x-release-please-version | ||
| //# sourceMappingURL=version.js.map |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"} | ||
| {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"} |
+5
-5
| { | ||
| "name": "@fetchproxy/cli", | ||
| "version": "1.9.1", | ||
| "version": "1.10.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.9.1", | ||
| "@fetchproxy/protocol": "^1.9.1", | ||
| "@fetchproxy/server": "^1.9.1" | ||
| "@fetchproxy/bootstrap": "^1.10.0", | ||
| "@fetchproxy/protocol": "^1.10.0", | ||
| "@fetchproxy/server": "^1.10.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@fetchproxy/test-helpers": "^1.9.1" | ||
| "@fetchproxy/test-helpers": "^1.10.0" | ||
| } | ||
| } |
103072
-0.35%1222
-0.41%Updated
Updated