n8n-nodes-browserpair 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/LICENSE +21 -0
- package/README.md +83 -2
- package/dist/credentials/BrowserPairApi.credentials.d.ts +10 -0
- package/dist/credentials/BrowserPairApi.credentials.js +36 -0
- package/dist/credentials/BrowserPairApi.credentials.js.map +1 -0
- package/dist/icons/browserpair.svg +13 -0
- package/dist/nodes/BrowserPair/BrowserPair.node.d.ts +4 -0
- package/dist/nodes/BrowserPair/BrowserPair.node.js +230 -0
- package/dist/nodes/BrowserPair/BrowserPair.node.js.map +1 -0
- package/dist/nodes/BrowserPair/BrowserPair.node.json +18 -0
- package/dist/nodes/BrowserPair/requests.d.ts +3 -0
- package/dist/nodes/BrowserPair/requests.js +97 -0
- package/dist/nodes/BrowserPair/requests.js.map +1 -0
- package/package.json +68 -5
- package/workflows/README.md +30 -0
- package/workflows/back-office-export.json +593 -0
- package/workflows/portal-monitor.json +593 -0
- package/workflows/supplier-stock.json +593 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
- Initial BrowserPair declarative REST action node.
|
|
6
|
+
- Agent Key credential, browser list and presence, task create/get/respond/cancel.
|
|
7
|
+
- Explicit idempotency, bounded actions, mandatory confirmations for sensitive categories.
|
|
8
|
+
- Real n8n MCP OAuth (DCR + PKCE) and scoped REST connection accepted.
|
|
9
|
+
- Three real browser workflow examples accepted on n8n 2.50.6.
|
|
10
|
+
- Sandbox-compatible URL validation and independently verified portal marker checks.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BrowserPair contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,84 @@
|
|
|
1
|
-
#
|
|
1
|
+
# BrowserPair for n8n
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Control your own connected Chrome profile using [BrowserPair](https://browserpair.com).
|
|
4
|
+
This package is a declarative REST action node, not an autonomous browser agent.
|
|
5
|
+
For AI-driven browser tasks, use n8n's built-in MCP Client Tool with BrowserPair instead.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
After publication, install `n8n-nodes-browserpair` through Settings > Community
|
|
10
|
+
Nodes in self-hosted n8n. The reviewed package and all three examples passed
|
|
11
|
+
live acceptance on n8n 2.50.6 (path-segment escaping requires n8n 2.46.1 or later).
|
|
12
|
+
Check the package's npm availability and n8n Cloud verification separately.
|
|
13
|
+
|
|
14
|
+
## Credentials
|
|
15
|
+
|
|
16
|
+
Install the BrowserPair Chrome extension, sign in at https://app.browserpair.com/
|
|
17
|
+
and pair an authorized Chrome profile. Create a dedicated Agent Key scoped to
|
|
18
|
+
that profile. Store it in the encrypted **BrowserPair API** credential in n8n.
|
|
19
|
+
Credential testing calls GET /v1/browsers. Do not place keys in workflow JSON,
|
|
20
|
+
expressions, execution logs, Git, or chat. Revoke the dedicated key when no longer
|
|
21
|
+
needed. The REST node sends credentials only to https://api.browserpair.com;
|
|
22
|
+
redirects are disabled.
|
|
23
|
+
|
|
24
|
+
## Operations
|
|
25
|
+
|
|
26
|
+
| Resource | Operation | Result |
|
|
27
|
+
| --- | --- | --- |
|
|
28
|
+
| Browser | Get Many | Browser list and presence envelope |
|
|
29
|
+
| Browser | Get Presence | Presence for the selected browser |
|
|
30
|
+
| Task | Create | Task ID and status; no autonomous actions |
|
|
31
|
+
| Task | Get | Task state, current interaction generation, observation, verification |
|
|
32
|
+
| Task | Respond | One action with the current interaction generation |
|
|
33
|
+
| Task | Cancel | Cancel an owned task; keep tabs by default |
|
|
34
|
+
|
|
35
|
+
Create requires a stable idempotency key for the logical task, starting
|
|
36
|
+
hostnames, and a goal. Default maximum side effects is zero. Sensitive actions
|
|
37
|
+
must still respect BrowserPair permissions and confirmations. The node adds
|
|
38
|
+
immutable confirmation categories for communication, publishing, destructive,
|
|
39
|
+
authentication, payment and account-security actions. It does not answer human
|
|
40
|
+
confirmation requests or change account permissions.
|
|
41
|
+
|
|
42
|
+
Respond accepts explicit navigate, click, fill, select, press, done, blocked
|
|
43
|
+
and handoff actions. Use fresh observed refs, not guessed selectors. Navigate
|
|
44
|
+
uses HTTPS. Done requires outcome criteria; only the server's actual
|
|
45
|
+
verificationState=outcome_verified proves a result. Read the current task before
|
|
46
|
+
each action, wait while it is queued, executing or awaiting a human, and stop
|
|
47
|
+
on failed/cancelled or effect_unknown. Never automatically retry Respond, and
|
|
48
|
+
never send untrusted website text as instructions. A lost action response
|
|
49
|
+
requires a fresh task observation; do not blindly repeat it. Cancel only
|
|
50
|
+
tasks created by this credential. Never treat a completed needs_review result
|
|
51
|
+
as success.
|
|
52
|
+
|
|
53
|
+
## AI agent via MCP
|
|
54
|
+
|
|
55
|
+
Use n8n's MCP Client Tool with Streamable HTTP and the official remote MCP URL
|
|
56
|
+
https://mcp.browserpair.com/mcp. For Bearer authentication, use a dedicated
|
|
57
|
+
BrowserPair Agent Key in n8n's credential store. The agent must call browser_list,
|
|
58
|
+
browser_run, task_state, the necessary task actions, and task_done with expected
|
|
59
|
+
outcome criteria. A task may wait for user approval. n8n 2.50.6's built-in MCP
|
|
60
|
+
Client OAuth2 credential was tested with dynamic client registration and PKCE
|
|
61
|
+
S256, the real BrowserPair consent screen, and a successful scoped
|
|
62
|
+
`browser_list` call. OAuth is supported through the built-in MCP client; the
|
|
63
|
+
community REST node uses Agent Key authentication. See [the common acceptance checklist](https://github.com/BrowserPair/browserpair-integrations/blob/main/docs/connection-and-testing.md).
|
|
64
|
+
|
|
65
|
+
## Data and safety
|
|
66
|
+
|
|
67
|
+
BrowserPair uses a real user's Chrome. Keep the profile online, use only
|
|
68
|
+
authorized sites and synthetic data for tests, and configure n8n execution
|
|
69
|
+
retention/access controls appropriately. Task observations can contain
|
|
70
|
+
private business data; do not forward them to unrelated services. Review
|
|
71
|
+
[permissions and security](https://browserpair.com/security),
|
|
72
|
+
[privacy](https://browserpair.com/privacy), and [terms](https://browserpair.com/terms).
|
|
73
|
+
The API may reject operations due to credit limits, offline browsers or
|
|
74
|
+
permissions; do not override these controls.
|
|
75
|
+
|
|
76
|
+
## Development
|
|
77
|
+
|
|
78
|
+
Use Node.js 24 and npm. Run npm ci --ignore-scripts --legacy-peer-deps,
|
|
79
|
+
npm run lint, npm run build, npm test, then npm pack --dry-run. No external
|
|
80
|
+
runtime dependencies are shipped. This package lives in a public integration
|
|
81
|
+
repository; private BrowserPair product source is not included. Before a
|
|
82
|
+
release, verify a real isolated n8n installation and a harmless browser task,
|
|
83
|
+
plus the workflow examples. Release through the repository's reviewed
|
|
84
|
+
GitHub Actions workflow with npm provenance.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, Icon, INodeProperties } from 'n8n-workflow';
|
|
2
|
+
export declare class BrowserPairApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
icon: Icon;
|
|
6
|
+
documentationUrl: string;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrowserPairApi = void 0;
|
|
4
|
+
class BrowserPairApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'browserPairApi';
|
|
7
|
+
this.displayName = 'BrowserPair API';
|
|
8
|
+
this.icon = { light: 'file:../icons/browserpair.svg', dark: 'file:../icons/browserpair.svg' };
|
|
9
|
+
this.documentationUrl = 'https://docs.browserpair.com/';
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Agent Key',
|
|
13
|
+
name: 'apiKey',
|
|
14
|
+
type: 'string',
|
|
15
|
+
typeOptions: { password: true },
|
|
16
|
+
default: '',
|
|
17
|
+
required: true,
|
|
18
|
+
description: 'A BrowserPair agent key scoped to the Chrome profiles you authorize',
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
this.authenticate = {
|
|
22
|
+
type: 'generic',
|
|
23
|
+
properties: { headers: { Authorization: '=Bearer {{$credentials.apiKey}}' } },
|
|
24
|
+
};
|
|
25
|
+
this.test = {
|
|
26
|
+
request: {
|
|
27
|
+
baseURL: 'https://api.browserpair.com',
|
|
28
|
+
url: '/v1/browsers',
|
|
29
|
+
method: 'GET',
|
|
30
|
+
disableFollowRedirect: true,
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.BrowserPairApi = BrowserPairApi;
|
|
36
|
+
//# sourceMappingURL=BrowserPairApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserPairApi.credentials.js","sourceRoot":"","sources":["../../credentials/BrowserPairApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,cAAc;IAA3B;QACC,SAAI,GAAG,gBAAgB,CAAC;QACxB,gBAAW,GAAG,iBAAiB,CAAC;QAChC,SAAI,GAAS,EAAE,KAAK,EAAE,+BAA+B,EAAE,IAAI,EAAE,+BAA+B,EAAE,CAAC;QAC/F,qBAAgB,GAAG,+BAA+B,CAAC;QACnD,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,WAAW;gBACxB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,qEAAqE;aAClF;SACD,CAAC;QACF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,iCAAiC,EAAE,EAAE;SAC7E,CAAC;QACF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,6BAA6B;gBACtC,GAAG,EAAE,cAAc;gBACnB,MAAM,EAAE,KAAK;gBACb,qBAAqB,EAAE,IAAI;aAC3B;SACD,CAAC;IACH,CAAC;CAAA;AA5BD,wCA4BC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" fill="none" role="img" aria-label="BrowserPair">
|
|
2
|
+
<rect width="64" height="64" rx="16" fill="#C8FF4D"/>
|
|
3
|
+
|
|
4
|
+
<circle cx="11.5" cy="32" r="7.5" fill="#07110F"/>
|
|
5
|
+
<circle cx="52.5" cy="32" r="7.5" fill="#07110F"/>
|
|
6
|
+
|
|
7
|
+
<path d="M19 32H24" stroke="#07110F" stroke-width="7" stroke-linecap="round"/>
|
|
8
|
+
<path d="M40 32H45" stroke="#07110F" stroke-width="7" stroke-linecap="round"/>
|
|
9
|
+
|
|
10
|
+
<rect x="19.5" y="10" width="25" height="44" rx="12.5" fill="#07110F"/>
|
|
11
|
+
|
|
12
|
+
<circle cx="32" cy="32" r="6" fill="#C8FF4D"/>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrowserPair = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const requests_1 = require("./requests");
|
|
6
|
+
const taskCreate = { resource: ['task'], operation: ['create'] };
|
|
7
|
+
const taskRespond = { resource: ['task'], operation: ['respond'] };
|
|
8
|
+
class BrowserPair {
|
|
9
|
+
constructor() {
|
|
10
|
+
this.description = {
|
|
11
|
+
displayName: 'BrowserPair',
|
|
12
|
+
name: 'browserPair',
|
|
13
|
+
icon: { light: 'file:../../icons/browserpair.svg', dark: 'file:../../icons/browserpair.svg' },
|
|
14
|
+
group: ['transform'],
|
|
15
|
+
usableAsTool: true,
|
|
16
|
+
version: 1,
|
|
17
|
+
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
|
18
|
+
description: 'Manage BrowserPair browsers and tasks in your own Chrome',
|
|
19
|
+
defaults: { name: 'BrowserPair' },
|
|
20
|
+
inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
21
|
+
outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
|
|
22
|
+
credentials: [{ name: 'browserPairApi', required: true }],
|
|
23
|
+
requestDefaults: {
|
|
24
|
+
baseURL: 'https://api.browserpair.com',
|
|
25
|
+
headers: { Accept: 'application/json', 'Content-Type': 'application/json' },
|
|
26
|
+
disableFollowRedirect: true,
|
|
27
|
+
timeout: 30000,
|
|
28
|
+
},
|
|
29
|
+
properties: [
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Resource',
|
|
32
|
+
name: 'resource',
|
|
33
|
+
type: 'options',
|
|
34
|
+
noDataExpression: true,
|
|
35
|
+
options: [
|
|
36
|
+
{ name: 'Browser', value: 'browser' },
|
|
37
|
+
{ name: 'Task', value: 'task' },
|
|
38
|
+
],
|
|
39
|
+
default: 'browser',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
displayName: 'Operation',
|
|
43
|
+
name: 'operation',
|
|
44
|
+
type: 'options',
|
|
45
|
+
noDataExpression: true,
|
|
46
|
+
displayOptions: { show: { resource: ['browser'] } },
|
|
47
|
+
options: [
|
|
48
|
+
{
|
|
49
|
+
name: 'Get Many',
|
|
50
|
+
value: 'getAll',
|
|
51
|
+
action: 'Get many browsers',
|
|
52
|
+
description: 'List the browsers authorized by the agent key and their presence',
|
|
53
|
+
routing: { request: { method: 'GET', url: '/v1/browsers' } },
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'Get Presence',
|
|
57
|
+
value: 'presence',
|
|
58
|
+
action: 'Get browser presence',
|
|
59
|
+
description: 'Check the online status of a specific browser',
|
|
60
|
+
routing: {
|
|
61
|
+
request: {
|
|
62
|
+
method: 'GET',
|
|
63
|
+
url: '=/v1/browsers/{{ toPathSegment($parameter.browserId) }}/presence',
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
],
|
|
68
|
+
default: 'getAll',
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
displayName: 'Operation',
|
|
72
|
+
name: 'operation',
|
|
73
|
+
type: 'options',
|
|
74
|
+
noDataExpression: true,
|
|
75
|
+
displayOptions: { show: { resource: ['task'] } },
|
|
76
|
+
options: [
|
|
77
|
+
{
|
|
78
|
+
name: 'Cancel',
|
|
79
|
+
value: 'cancel',
|
|
80
|
+
action: 'Cancel a task',
|
|
81
|
+
description: 'Cancel a task owned by this agent key',
|
|
82
|
+
routing: {
|
|
83
|
+
request: {
|
|
84
|
+
method: 'POST',
|
|
85
|
+
url: '=/v1/tasks/{{ toPathSegment($parameter.taskId) }}/cancel',
|
|
86
|
+
body: { tabs: '={{$parameter.tabs}}' },
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: 'Create',
|
|
92
|
+
value: 'create',
|
|
93
|
+
action: 'Create a task',
|
|
94
|
+
description: 'Create an external-agent task without performing browser actions',
|
|
95
|
+
routing: {
|
|
96
|
+
request: { method: 'POST', url: '/v1/tasks' },
|
|
97
|
+
send: { preSend: [requests_1.createTask] },
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'Get',
|
|
102
|
+
value: 'get',
|
|
103
|
+
action: 'Get a task',
|
|
104
|
+
description: 'Read the task status, verification and current observation',
|
|
105
|
+
routing: {
|
|
106
|
+
request: { method: 'GET', url: '=/v1/tasks/{{ toPathSegment($parameter.taskId) }}' },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'Respond',
|
|
111
|
+
value: 'respond',
|
|
112
|
+
action: 'Respond to a task',
|
|
113
|
+
description: 'Send one explicit action using the current interaction generation',
|
|
114
|
+
routing: {
|
|
115
|
+
request: {
|
|
116
|
+
method: 'POST',
|
|
117
|
+
url: '=/v1/tasks/{{ toPathSegment($parameter.taskId) }}/respond',
|
|
118
|
+
},
|
|
119
|
+
send: { preSend: [requests_1.respondToTask] },
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
],
|
|
123
|
+
default: 'get',
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
displayName: 'Browser ID',
|
|
127
|
+
name: 'browserId',
|
|
128
|
+
type: 'string',
|
|
129
|
+
default: '',
|
|
130
|
+
required: true,
|
|
131
|
+
placeholder: 'brw_...',
|
|
132
|
+
description: 'ID returned by the Get Many Browsers operation',
|
|
133
|
+
displayOptions: { show: { resource: ['browser'], operation: ['presence'] } },
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
displayName: 'Browser ID',
|
|
137
|
+
name: 'browserId',
|
|
138
|
+
type: 'string',
|
|
139
|
+
default: '',
|
|
140
|
+
required: true,
|
|
141
|
+
placeholder: 'brw_...',
|
|
142
|
+
description: 'ID returned by the Get Many Browsers operation',
|
|
143
|
+
displayOptions: { show: taskCreate },
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
displayName: 'Goal',
|
|
147
|
+
name: 'goal',
|
|
148
|
+
type: 'string',
|
|
149
|
+
typeOptions: { rows: 4 },
|
|
150
|
+
default: '',
|
|
151
|
+
required: true,
|
|
152
|
+
description: 'Purpose of the task. Creating a task does not run an AI agent.',
|
|
153
|
+
displayOptions: { show: taskCreate },
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
displayName: 'Starting Hostnames',
|
|
157
|
+
name: 'domains',
|
|
158
|
+
type: 'string',
|
|
159
|
+
default: '',
|
|
160
|
+
required: true,
|
|
161
|
+
placeholder: 'example.com, portal.example.com',
|
|
162
|
+
description: 'Comma-separated starting hostnames without a scheme, path or wildcard',
|
|
163
|
+
displayOptions: { show: taskCreate },
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
displayName: 'Idempotency Key',
|
|
167
|
+
name: 'idempotencyKey',
|
|
168
|
+
type: 'string',
|
|
169
|
+
default: '',
|
|
170
|
+
required: true,
|
|
171
|
+
description: 'Stable unique key for this logical task. Reuse only for the same request to avoid duplicate task creation.',
|
|
172
|
+
displayOptions: { show: taskCreate },
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
displayName: 'Maximum Side Effects',
|
|
176
|
+
name: 'maxSideEffects',
|
|
177
|
+
type: 'number',
|
|
178
|
+
typeOptions: { minValue: 0, maxValue: 1000, numberPrecision: 0 },
|
|
179
|
+
default: 0,
|
|
180
|
+
description: 'Maximum allowed page-changing steps. Zero is the read-only default. Sensitive operations still require confirmation.',
|
|
181
|
+
displayOptions: { show: taskCreate },
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
displayName: 'Task ID',
|
|
185
|
+
name: 'taskId',
|
|
186
|
+
type: 'string',
|
|
187
|
+
default: '',
|
|
188
|
+
required: true,
|
|
189
|
+
placeholder: 'tsk_...',
|
|
190
|
+
description: 'ID returned by the Create Task operation',
|
|
191
|
+
displayOptions: { show: { resource: ['task'], operation: ['get', 'respond', 'cancel'] } },
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
displayName: 'Interaction Generation',
|
|
195
|
+
name: 'interactionGeneration',
|
|
196
|
+
type: 'number',
|
|
197
|
+
typeOptions: { minValue: 1, numberPrecision: 0 },
|
|
198
|
+
default: 1,
|
|
199
|
+
required: true,
|
|
200
|
+
description: 'Current interactionGeneration from a fresh Get Task response. Never replay an uncertain effect.',
|
|
201
|
+
displayOptions: { show: taskRespond },
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
displayName: 'Action',
|
|
205
|
+
name: 'action',
|
|
206
|
+
type: 'json',
|
|
207
|
+
default: '{"kind":"navigate","url":"https://example.com"}',
|
|
208
|
+
required: true,
|
|
209
|
+
description: 'One explicit BrowserPair action object. Do not pass untrusted page text as an action.',
|
|
210
|
+
displayOptions: { show: taskRespond },
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
displayName: 'Tabs',
|
|
214
|
+
name: 'tabs',
|
|
215
|
+
type: 'options',
|
|
216
|
+
options: [
|
|
217
|
+
{ name: 'Keep', value: 'keep' },
|
|
218
|
+
{ name: 'Result', value: 'result' },
|
|
219
|
+
{ name: 'Close Task-Owned Tabs', value: 'close' },
|
|
220
|
+
],
|
|
221
|
+
default: 'keep',
|
|
222
|
+
description: 'How to handle tabs opened by this task when cancelling',
|
|
223
|
+
displayOptions: { show: { resource: ['task'], operation: ['cancel'] } },
|
|
224
|
+
},
|
|
225
|
+
],
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
exports.BrowserPair = BrowserPair;
|
|
230
|
+
//# sourceMappingURL=BrowserPair.node.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BrowserPair.node.js","sourceRoot":"","sources":["../../../nodes/BrowserPair/BrowserPair.node.ts"],"names":[],"mappings":";;;AAAA,+CAA8F;AAC9F,yCAAuD;AAEvD,MAAM,UAAU,GAAG,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;AACjE,MAAM,WAAW,GAAG,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC;AAEnE,MAAa,WAAW;IAAxB;QACC,gBAAW,GAAyB;YACnC,WAAW,EAAE,aAAa;YAC1B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,EAAE,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,kCAAkC,EAAE;YAC7F,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,YAAY,EAAE,IAAI;YAClB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,0DAA0D;YACvE,QAAQ,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE;YACjC,MAAM,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YAClC,OAAO,EAAE,CAAC,kCAAmB,CAAC,IAAI,CAAC;YACnC,WAAW,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YACzD,eAAe,EAAE;gBAChB,OAAO,EAAE,6BAA6B;gBACtC,OAAO,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE,cA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AAE,KAAK,EAAE,MAAM,EAAE;wBAC/B,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;wBACnC,EAAE,IAAI,EAAE,uBAAuB,EAAE,KAAK,EAAE,OAAO,EAAE;qBACjD;oBACD,OAAO,EAAE,MAAM;oBACf,WAAW,EAAE,wDAAwD;oBACrE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE;iBACvE;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA9ND,kCA8NC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"node": "n8n-nodes-browserpair.browserPair",
|
|
3
|
+
"nodeVersion": "1.0",
|
|
4
|
+
"codexVersion": "1.0",
|
|
5
|
+
"categories": ["Productivity", "Utility"],
|
|
6
|
+
"resources": {
|
|
7
|
+
"credentialDocumentation": [
|
|
8
|
+
{
|
|
9
|
+
"url": "https://github.com/BrowserPair/browserpair-integrations/tree/main/n8n-nodes-browserpair#credentials"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"primaryDocumentation": [
|
|
13
|
+
{
|
|
14
|
+
"url": "https://github.com/BrowserPair/browserpair-integrations/tree/main/n8n-nodes-browserpair"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { IExecuteSingleFunctions, IHttpRequestOptions } from 'n8n-workflow';
|
|
2
|
+
export declare function createTask(this: IExecuteSingleFunctions, request: IHttpRequestOptions): Promise<IHttpRequestOptions>;
|
|
3
|
+
export declare function respondToTask(this: IExecuteSingleFunctions, request: IHttpRequestOptions): Promise<IHttpRequestOptions>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createTask = createTask;
|
|
4
|
+
exports.respondToTask = respondToTask;
|
|
5
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
6
|
+
const START_CONFIRMATIONS = [
|
|
7
|
+
'communication',
|
|
8
|
+
'publish',
|
|
9
|
+
'destructive',
|
|
10
|
+
'authentication',
|
|
11
|
+
'payment',
|
|
12
|
+
'account_security',
|
|
13
|
+
];
|
|
14
|
+
const RESPONSE_KINDS = new Set([
|
|
15
|
+
'navigate',
|
|
16
|
+
'click',
|
|
17
|
+
'fill',
|
|
18
|
+
'select',
|
|
19
|
+
'press',
|
|
20
|
+
'done',
|
|
21
|
+
'blocked',
|
|
22
|
+
'handoff',
|
|
23
|
+
]);
|
|
24
|
+
function fail(context, message) {
|
|
25
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), message, { itemIndex: context.getItemIndex() });
|
|
26
|
+
}
|
|
27
|
+
async function createTask(request) {
|
|
28
|
+
const browserId = String(this.getNodeParameter('browserId', '')).trim();
|
|
29
|
+
const goal = String(this.getNodeParameter('goal', '')).trim();
|
|
30
|
+
const key = String(this.getNodeParameter('idempotencyKey', '')).trim();
|
|
31
|
+
const domains = [
|
|
32
|
+
...new Set(String(this.getNodeParameter('domains', ''))
|
|
33
|
+
.split(',')
|
|
34
|
+
.map((d) => d.trim().toLowerCase())),
|
|
35
|
+
];
|
|
36
|
+
const maxSideEffects = this.getNodeParameter('maxSideEffects', 0);
|
|
37
|
+
if (!/^brw_[A-Za-z0-9_-]+$/.test(browserId))
|
|
38
|
+
fail(this, 'Enter a BrowserPair browser ID');
|
|
39
|
+
if (!goal || goal.length > 16000)
|
|
40
|
+
fail(this, 'Goal must contain 1 to 16000 characters');
|
|
41
|
+
if (!/^[A-Za-z0-9._:-]{8,200}$/.test(key))
|
|
42
|
+
fail(this, 'Use an idempotency key of 8 to 200 letters, digits, dots, underscores, colons or hyphens');
|
|
43
|
+
if (!domains.length ||
|
|
44
|
+
domains.length > 128 ||
|
|
45
|
+
domains.some((d) => d.length > 253 ||
|
|
46
|
+
!/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(d)))
|
|
47
|
+
fail(this, 'Enter comma-separated hostnames without schemes, paths or wildcards');
|
|
48
|
+
if (typeof maxSideEffects !== 'number' ||
|
|
49
|
+
!Number.isInteger(maxSideEffects) ||
|
|
50
|
+
maxSideEffects < 0 ||
|
|
51
|
+
maxSideEffects > 1000)
|
|
52
|
+
fail(this, 'Maximum side effects must be an integer from 0 to 1000');
|
|
53
|
+
request.headers = { ...request.headers, 'Idempotency-Key': key };
|
|
54
|
+
request.body = {
|
|
55
|
+
browserId,
|
|
56
|
+
goal,
|
|
57
|
+
contract: {
|
|
58
|
+
domains,
|
|
59
|
+
confirmations: START_CONFIRMATIONS,
|
|
60
|
+
maxSideEffects,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
return request;
|
|
64
|
+
}
|
|
65
|
+
async function respondToTask(request) {
|
|
66
|
+
const generation = this.getNodeParameter('interactionGeneration', 0);
|
|
67
|
+
if (typeof generation !== 'number' || !Number.isSafeInteger(generation) || generation < 1)
|
|
68
|
+
fail(this, 'Use the current interaction generation from Get Task');
|
|
69
|
+
const raw = this.getNodeParameter('action', '{}');
|
|
70
|
+
let action;
|
|
71
|
+
try {
|
|
72
|
+
const value = typeof raw === 'string' ? JSON.parse(raw) : raw;
|
|
73
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value))
|
|
74
|
+
fail(this, 'Action must be a JSON object');
|
|
75
|
+
action = value;
|
|
76
|
+
}
|
|
77
|
+
catch {
|
|
78
|
+
fail(this, 'Action must be a valid JSON object');
|
|
79
|
+
}
|
|
80
|
+
if (typeof action.kind !== 'string' || !RESPONSE_KINDS.has(action.kind))
|
|
81
|
+
fail(this, 'Unsupported action kind; use the BrowserPair MCP client for other actions');
|
|
82
|
+
if (action.kind === 'done') {
|
|
83
|
+
const expected = action.expectedOutcome;
|
|
84
|
+
if (!expected ||
|
|
85
|
+
!Array.isArray(expected.criteria) ||
|
|
86
|
+
expected.criteria.length < 1 ||
|
|
87
|
+
expected.criteria.length > 6)
|
|
88
|
+
fail(this, 'Done requires one to six independently verifiable outcome criteria');
|
|
89
|
+
}
|
|
90
|
+
if (action.kind === 'navigate') {
|
|
91
|
+
if (typeof action.url !== 'string' || !/^https:\/\//i.test(action.url))
|
|
92
|
+
fail(this, 'Navigate requires an HTTPS URL');
|
|
93
|
+
}
|
|
94
|
+
request.body = { interactionGeneration: generation, action };
|
|
95
|
+
return request;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=requests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requests.js","sourceRoot":"","sources":["../../../nodes/BrowserPair/requests.ts"],"names":[],"mappings":";;AA0BA,gCAoDC;AAED,sCAmCC;AAnHD,+CAAkD;AAGlD,MAAM,mBAAmB,GAAG;IAC3B,eAAe;IACf,SAAS;IACT,aAAa;IACb,gBAAgB;IAChB,SAAS;IACT,kBAAkB;CAClB,CAAC;AACF,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC9B,UAAU;IACV,OAAO;IACP,MAAM;IACN,QAAQ;IACR,OAAO;IACP,MAAM;IACN,SAAS;IACT,SAAS;CACT,CAAC,CAAC;AAEH,SAAS,IAAI,CAAC,OAAgC,EAAE,OAAe;IAC9D,MAAM,IAAI,iCAAkB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;AACjG,CAAC;AAEM,KAAK,UAAU,UAAU,CAE/B,OAA4B;IAE5B,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IACxE,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,gBAAg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AAC,MAAM,CAAC,IAAI,CAAC;QACtE,IAAI,CAAC,IAAI,EAAE,2EAA2E,CAAC,CAAC;IACzF,IAAI,MAAM,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,MAAM,CAAC,eAA0C,CAAC;QACnE,IACC,CAAC,QAAQ;YACT,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACjC,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;YAC5B,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC;YAE5B,IAAI,CAAC,IAAI,EAAE,oEAAoE,CAAC,CAAC;IACnF,CAAC;IACD,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,EAAE,CAAC;QAChC,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,QAAQ,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACrE,IAAI,CAAC,IAAI,EAAE,gCAAgC,CAAC,CAAC;IAC/C,CAAC;IACD,OAAO,CAAC,IAAI,GAAG,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAC7D,OAAO,OAAO,CAAC;AAChB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "n8n-nodes-browserpair",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "BrowserPair browser and task lifecycle operations for n8n using your own signed-in Chrome",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"homepage": "https://github.com/BrowserPair/browserpair-integrations/tree/main/n8n-nodes-browserpair",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"n8n-community-node-package",
|
|
9
|
+
"browserpair",
|
|
10
|
+
"browser-automation"
|
|
11
|
+
],
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "BrowserPair",
|
|
14
|
+
"email": "support@browserpair.com"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "git+https://github.com/BrowserPair/browserpair-integrations.git",
|
|
19
|
+
"directory": "n8n-nodes-browserpair"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/BrowserPair/browserpair-integrations/issues"
|
|
23
|
+
},
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=24"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "n8n-node build",
|
|
29
|
+
"dev": "n8n-node dev",
|
|
30
|
+
"lint": "n8n-node lint",
|
|
31
|
+
"lint:fix": "n8n-node lint --fix",
|
|
32
|
+
"test": "node --test tests/*.test.cjs",
|
|
33
|
+
"prepublishOnly": "npm run lint && npm run build && npm test"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"dist",
|
|
37
|
+
"!dist/**/*.tsbuildinfo",
|
|
38
|
+
"!dist/package.json",
|
|
39
|
+
"README.md",
|
|
40
|
+
"LICENSE",
|
|
41
|
+
"CHANGELOG.md",
|
|
42
|
+
"workflows"
|
|
43
|
+
],
|
|
44
|
+
"n8n": {
|
|
45
|
+
"n8nNodesApiVersion": 1,
|
|
46
|
+
"strict": true,
|
|
47
|
+
"credentials": [
|
|
48
|
+
"dist/credentials/BrowserPairApi.credentials.js"
|
|
49
|
+
],
|
|
50
|
+
"nodes": [
|
|
51
|
+
"dist/nodes/BrowserPair/BrowserPair.node.js"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public",
|
|
56
|
+
"provenance": true
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@n8n/node-cli": "1.4.1",
|
|
60
|
+
"@n8n/scan-community-package": "1.5.0",
|
|
61
|
+
"eslint": "9.32.0",
|
|
62
|
+
"n8n-workflow": "2.50.5",
|
|
63
|
+
"prettier": "3.6.2",
|
|
64
|
+
"typescript": "5.9.2"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"n8n-workflow": "*"
|
|
68
|
+
}
|
|
69
|
+
}
|