@panerelay/agent-browser
Advanced tools
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,6BAA6B,EAAG,yBAAkC,CAAC;AAEhF,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,OAAO,6BAA6B,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AA6GD,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CA+DvF"} | ||
| {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,6BAA6B,EAAG,yBAAkC,CAAC;AAEhF,UAAU,aAAa;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,OAAO,6BAA6B,CAAC;IAC/C,OAAO,EAAE,OAAO,CAAC;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AA6GD,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAoEvF"} |
+6
-3
| import { readLiveBrowserRegistration, readLiveLegacyBrowserRegistration, selectBrowserRegistration, } from '@panerelay/browser-registry'; | ||
| import { PANERELAY_PROTOCOL_VERSION, PANERELAY_CONVERSATION_TARGET_SESSION_PREFIX, parseConversationTargetSessionName, } from '@panerelay/protocol'; | ||
| import { PANERELAY_PROTOCOL_VERSION, PANERELAY_CONVERSATION_TARGET_SESSION_PREFIX, PANERELAY_LEGACY_CONVERSATION_TARGET_SESSION_PREFIX, parseConversationTargetSessionName, } from '@panerelay/protocol'; | ||
| export const AGENT_BROWSER_PLUGIN_PROTOCOL = 'agent-browser.plugin.v1'; | ||
@@ -116,3 +116,6 @@ function success(body) { | ||
| const target = label ? parseConversationTargetSessionName(label) : undefined; | ||
| if (label?.startsWith(PANERELAY_CONVERSATION_TARGET_SESSION_PREFIX) && !target) { | ||
| if (label && | ||
| !target && | ||
| (label.startsWith(PANERELAY_CONVERSATION_TARGET_SESSION_PREFIX) || | ||
| label.startsWith(PANERELAY_LEGACY_CONVERSATION_TARGET_SESSION_PREFIX))) { | ||
| throw new Error('The Panerelay conversation target session is malformed or unsupported'); | ||
@@ -133,3 +136,3 @@ } | ||
| browserName: state.browserName, | ||
| extensionVersion: state.extensionVersion, | ||
| extensionVersion: state.extensionReleaseVersion, | ||
| relaySessionId: session.sessionId, | ||
@@ -136,0 +139,0 @@ connectExpiresAt: session.connectExpiresAt, |
+5
-8
| { | ||
| "name": "@panerelay/agent-browser", | ||
| "version": "0.7.0", | ||
| "version": "0.8.0", | ||
| "description": "Use agent-browser with current-tab or all-supported-tabs authorization in your existing browser through Panerelay.", | ||
@@ -10,3 +10,3 @@ "type": "module", | ||
| "url": "git+https://github.com/F-loat/panerelay.git", | ||
| "directory": "packages/agent-browser" | ||
| "directory": "packages/adapters/agent-browser" | ||
| }, | ||
@@ -29,5 +29,2 @@ "homepage": "https://github.com/F-loat/panerelay#readme", | ||
| }, | ||
| "bin": { | ||
| "panerelay-agent-browser": "./dist/index.js" | ||
| }, | ||
| "files": [ | ||
@@ -40,4 +37,4 @@ "dist", | ||
| "dependencies": { | ||
| "@panerelay/browser-registry": "0.7.0", | ||
| "@panerelay/protocol": "0.7.0" | ||
| "@panerelay/browser-registry": "0.8.0", | ||
| "@panerelay/protocol": "0.8.0" | ||
| }, | ||
@@ -47,4 +44,4 @@ "scripts": { | ||
| "typecheck": "tsc -p tsconfig.json --noEmit", | ||
| "test": "pnpm run build && node ../../scripts/run-compiled-tests.mjs dist" | ||
| "test": "pnpm run build && node ../../../scripts/run-compiled-tests.mjs dist" | ||
| } | ||
| } |
+4
-4
@@ -56,3 +56,3 @@ # `@panerelay/agent-browser` | ||
| New Side Panel conversations may inject a reserved `panerelay-tab-v1-...` session value for the originating tab. Use that exact value with `--session` and `--provider panerelay`; the Provider selects the named live browser and orders the already-authorized target as agent-browser's local `t1`. Do not construct the value manually or substitute a similar URL/title when it is unavailable. Ordinary session names keep the existing default-browser and tab-order behavior. | ||
| New Side Panel conversations may inject a reserved 56-character `panerelay-v2-...` session value for the originating tab. Use that exact value with `--session` and `--provider panerelay`; it stays within agent-browser 0.33.0's session-name limit while the Provider selects the named live browser and orders the already-authorized target as agent-browser's local `t1`. Do not construct or shorten the value manually or substitute a similar URL/title when it is unavailable. Malformed and legacy target values fail closed, while ordinary session names keep the existing default-browser and tab-order behavior. | ||
@@ -75,4 +75,4 @@ When more than one Panerelay browser is connected, choose one in Extension settings or with the optional administration CLI: | ||
| - [Upstream agent-browser documentation](https://agent-browser.dev/) | ||
| - [Panerelay agent-browser 0.33.0 compatibility record](../../docs/compatibility/agent-browser-0.33.0.md) | ||
| - [Browser platform compatibility record](../../docs/compatibility/browser-platforms.md) | ||
| - [`@panerelay/setup` technical reference](../setup/README.md) | ||
| - [Panerelay agent-browser 0.33.0 compatibility record](../../../docs/compatibility/agent-browser-0.33.0.md) | ||
| - [Browser platform compatibility record](../../../docs/compatibility/browser-platforms.md) | ||
| - [`@panerelay/setup` technical reference](../../setup/README.md) |
| #!/usr/bin/env node | ||
| export {}; | ||
| //# sourceMappingURL=index.d.ts.map |
| {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""} |
| #!/usr/bin/env node | ||
| import { handlePluginRequest } from './plugin.js'; | ||
| const chunks = []; | ||
| for await (const chunk of process.stdin) { | ||
| chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk)); | ||
| } | ||
| let input; | ||
| try { | ||
| input = JSON.parse(Buffer.concat(chunks).toString('utf8')); | ||
| } | ||
| catch { | ||
| input = {}; | ||
| } | ||
| const response = await handlePluginRequest(input); | ||
| process.stdout.write(JSON.stringify(response)); |
13811
-2.17%6
-33.33%165
-7.82%+ Added
+ Added
- Removed
- Removed
Updated