@agnocon/piece-browserless 0.1.7
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/LICENSE.MIT-AP +24 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/actions/capture-screenshot.d.ts +20 -0
- package/dist/lib/actions/capture-screenshot.d.ts.map +1 -0
- package/dist/lib/actions/capture-screenshot.js +176 -0
- package/dist/lib/actions/capture-screenshot.js.map +1 -0
- package/dist/lib/actions/generate-pdf.d.ts +38 -0
- package/dist/lib/actions/generate-pdf.d.ts.map +1 -0
- package/dist/lib/actions/generate-pdf.js +346 -0
- package/dist/lib/actions/generate-pdf.js.map +1 -0
- package/dist/lib/actions/get-website-performance.d.ts +20 -0
- package/dist/lib/actions/get-website-performance.d.ts.map +1 -0
- package/dist/lib/actions/get-website-performance.js +306 -0
- package/dist/lib/actions/get-website-performance.js.map +1 -0
- package/dist/lib/actions/run-bql-query.d.ts +26 -0
- package/dist/lib/actions/run-bql-query.d.ts.map +1 -0
- package/dist/lib/actions/run-bql-query.js +273 -0
- package/dist/lib/actions/run-bql-query.js.map +1 -0
- package/dist/lib/actions/scrape-url.d.ts +27 -0
- package/dist/lib/actions/scrape-url.d.ts.map +1 -0
- package/dist/lib/actions/scrape-url.js +277 -0
- package/dist/lib/actions/scrape-url.js.map +1 -0
- package/dist/lib/common/auth.d.ts +6 -0
- package/dist/lib/common/auth.d.ts.map +1 -0
- package/dist/lib/common/auth.js +62 -0
- package/dist/lib/common/auth.js.map +1 -0
- package/dist/lib/common/client.d.ts +18 -0
- package/dist/lib/common/client.d.ts.map +1 -0
- package/dist/lib/common/client.js +56 -0
- package/dist/lib/common/client.js.map +1 -0
- package/package.json +46 -0
- package/src/index.ts +26 -0
- package/src/lib/actions/capture-screenshot.ts +176 -0
- package/src/lib/actions/generate-pdf.ts +364 -0
- package/src/lib/actions/get-website-performance.ts +321 -0
- package/src/lib/actions/run-bql-query.ts +295 -0
- package/src/lib/actions/scrape-url.ts +291 -0
- package/src/lib/common/auth.ts +57 -0
- package/src/lib/common/client.ts +72 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWebsitePerformance = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Vendored from Activepieces packages/pieces/community/browserless/src/lib/actions/get-website-performance.ts (MIT).
|
|
6
|
+
// Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
|
|
7
|
+
const pieces_framework_1 = require("@agnocon/pieces-framework");
|
|
8
|
+
const pieces_common_1 = require("@agnocon/pieces-common");
|
|
9
|
+
const auth_1 = require("../common/auth");
|
|
10
|
+
const client_1 = require("../common/client");
|
|
11
|
+
exports.getWebsitePerformance = (0, pieces_framework_1.createAction)({
|
|
12
|
+
name: 'get_website_performance',
|
|
13
|
+
displayName: 'Get Website Performance',
|
|
14
|
+
description: 'Analyze website performance metrics using Lighthouse',
|
|
15
|
+
audience: 'both',
|
|
16
|
+
aiMetadata: { description: 'Runs a Lighthouse audit on a public URL in a headless browser and returns performance, accessibility, best-practices, SEO, and PWA scores plus key metrics. Use to measure a page\'s quality; the URL is required, and you can scope the audit to specific categories and simulate a desktop or mobile device with network throttling. Read-only analysis: re-running with the same input re-audits the page without side effects (scores may vary slightly run to run).', idempotent: true },
|
|
17
|
+
auth: auth_1.browserlessAuth,
|
|
18
|
+
props: {
|
|
19
|
+
url: pieces_framework_1.Property.ShortText({
|
|
20
|
+
displayName: 'URL',
|
|
21
|
+
description: 'The URL of the website to analyze',
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
categories: pieces_framework_1.Property.Array({
|
|
25
|
+
displayName: 'Performance Categories',
|
|
26
|
+
description: 'Select which performance categories to analyze (performance, accessibility, best-practices, seo, pwa)',
|
|
27
|
+
required: false,
|
|
28
|
+
properties: {
|
|
29
|
+
category: pieces_framework_1.Property.StaticDropdown({
|
|
30
|
+
displayName: 'Category',
|
|
31
|
+
required: true,
|
|
32
|
+
options: {
|
|
33
|
+
options: [
|
|
34
|
+
{ label: 'Performance', value: 'performance' },
|
|
35
|
+
{ label: 'Accessibility', value: 'accessibility' },
|
|
36
|
+
{ label: 'Best Practices', value: 'best-practices' },
|
|
37
|
+
{ label: 'SEO', value: 'seo' },
|
|
38
|
+
{ label: 'PWA', value: 'pwa' }
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
device: pieces_framework_1.Property.StaticDropdown({
|
|
45
|
+
displayName: 'Device Type',
|
|
46
|
+
description: 'Device type for performance analysis',
|
|
47
|
+
required: false,
|
|
48
|
+
defaultValue: 'desktop',
|
|
49
|
+
options: {
|
|
50
|
+
options: [
|
|
51
|
+
{ label: 'Desktop', value: 'desktop' },
|
|
52
|
+
{ label: 'Mobile', value: 'mobile' }
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
}),
|
|
56
|
+
throttling: pieces_framework_1.Property.StaticDropdown({
|
|
57
|
+
displayName: 'Network Throttling',
|
|
58
|
+
description: 'Network throttling simulation',
|
|
59
|
+
required: false,
|
|
60
|
+
defaultValue: 'mobileSlow4G',
|
|
61
|
+
options: {
|
|
62
|
+
options: [
|
|
63
|
+
{ label: 'No Throttling', value: 'none' },
|
|
64
|
+
{ label: 'Slow 4G', value: 'mobileSlow4G' },
|
|
65
|
+
{ label: 'Regular 4G', value: 'mobileRegular4G' },
|
|
66
|
+
{ label: 'Fast 4G', value: 'mobileFast4G' }
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}),
|
|
70
|
+
onlyCategories: pieces_framework_1.Property.Checkbox({
|
|
71
|
+
displayName: 'Only Category Scores',
|
|
72
|
+
description: 'Return only category scores without detailed audit results',
|
|
73
|
+
required: false,
|
|
74
|
+
defaultValue: false,
|
|
75
|
+
}),
|
|
76
|
+
locale: pieces_framework_1.Property.ShortText({
|
|
77
|
+
displayName: 'Locale',
|
|
78
|
+
description: 'Locale for the analysis (e.g., en-US, de-DE)',
|
|
79
|
+
required: false,
|
|
80
|
+
defaultValue: 'en-US',
|
|
81
|
+
}),
|
|
82
|
+
userAgent: pieces_framework_1.Property.ShortText({
|
|
83
|
+
displayName: 'User Agent',
|
|
84
|
+
description: 'Custom user agent string',
|
|
85
|
+
required: false,
|
|
86
|
+
}),
|
|
87
|
+
timeout: pieces_framework_1.Property.Number({
|
|
88
|
+
displayName: 'Timeout (ms)',
|
|
89
|
+
description: 'Maximum time to wait for the analysis to complete',
|
|
90
|
+
required: false,
|
|
91
|
+
defaultValue: 60000,
|
|
92
|
+
}),
|
|
93
|
+
waitForSelector: pieces_framework_1.Property.ShortText({
|
|
94
|
+
displayName: 'Wait for Selector',
|
|
95
|
+
description: 'CSS selector to wait for before running performance analysis',
|
|
96
|
+
required: false,
|
|
97
|
+
}),
|
|
98
|
+
emulateMediaType: pieces_framework_1.Property.StaticDropdown({
|
|
99
|
+
displayName: 'Emulate Media Type',
|
|
100
|
+
description: 'Emulate CSS media type',
|
|
101
|
+
required: false,
|
|
102
|
+
options: {
|
|
103
|
+
options: [
|
|
104
|
+
{ label: 'Screen', value: 'screen' },
|
|
105
|
+
{ label: 'Print', value: 'print' }
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}),
|
|
109
|
+
budgets: pieces_framework_1.Property.Array({
|
|
110
|
+
displayName: 'Performance Budgets',
|
|
111
|
+
description: 'Lighthouse performance budgets for resource sizes',
|
|
112
|
+
required: false,
|
|
113
|
+
properties: {
|
|
114
|
+
resourceType: pieces_framework_1.Property.StaticDropdown({
|
|
115
|
+
displayName: 'Resource Type',
|
|
116
|
+
description: 'Type of resource to budget',
|
|
117
|
+
required: true,
|
|
118
|
+
options: {
|
|
119
|
+
options: [
|
|
120
|
+
{ label: 'Document', value: 'document' },
|
|
121
|
+
{ label: 'Script', value: 'script' },
|
|
122
|
+
{ label: 'Stylesheet', value: 'stylesheet' },
|
|
123
|
+
{ label: 'Image', value: 'image' },
|
|
124
|
+
{ label: 'Media', value: 'media' },
|
|
125
|
+
{ label: 'Font', value: 'font' },
|
|
126
|
+
{ label: 'Other', value: 'other' },
|
|
127
|
+
{ label: 'Third-party', value: 'third-party' }
|
|
128
|
+
]
|
|
129
|
+
}
|
|
130
|
+
}),
|
|
131
|
+
budget: pieces_framework_1.Property.Number({
|
|
132
|
+
displayName: 'Budget Size (KB)',
|
|
133
|
+
description: 'Maximum allowed size in kilobytes',
|
|
134
|
+
required: true,
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
}),
|
|
138
|
+
stealth: pieces_framework_1.Property.Checkbox({
|
|
139
|
+
displayName: 'Stealth Mode',
|
|
140
|
+
description: 'Enable stealth mode for bot detection bypass',
|
|
141
|
+
required: false,
|
|
142
|
+
defaultValue: false,
|
|
143
|
+
}),
|
|
144
|
+
blockAds: pieces_framework_1.Property.Checkbox({
|
|
145
|
+
displayName: 'Block Ads',
|
|
146
|
+
description: 'Enable ad blocker during performance analysis',
|
|
147
|
+
required: false,
|
|
148
|
+
defaultValue: false,
|
|
149
|
+
}),
|
|
150
|
+
},
|
|
151
|
+
run(context) {
|
|
152
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
153
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5;
|
|
154
|
+
const requestBody = {
|
|
155
|
+
url: context.propsValue.url,
|
|
156
|
+
};
|
|
157
|
+
const lighthouseConfig = {
|
|
158
|
+
extends: 'lighthouse:default',
|
|
159
|
+
settings: {}
|
|
160
|
+
};
|
|
161
|
+
if (context.propsValue.categories && context.propsValue.categories.length > 0) {
|
|
162
|
+
lighthouseConfig.settings.onlyCategories = context.propsValue.categories.map((cat) => cat.category);
|
|
163
|
+
}
|
|
164
|
+
if (context.propsValue.locale) {
|
|
165
|
+
lighthouseConfig.settings.locale = context.propsValue.locale;
|
|
166
|
+
}
|
|
167
|
+
if (context.propsValue.device) {
|
|
168
|
+
lighthouseConfig.settings.formFactor = context.propsValue.device;
|
|
169
|
+
}
|
|
170
|
+
if (context.propsValue.throttling && context.propsValue.throttling !== 'none') {
|
|
171
|
+
lighthouseConfig.settings.throttling = { rttMs: 150, throughputKbps: 1638.4, cpuSlowdownMultiplier: 4 };
|
|
172
|
+
switch (context.propsValue.throttling) {
|
|
173
|
+
case 'mobileSlow4G':
|
|
174
|
+
lighthouseConfig.settings.throttling = { rttMs: 150, throughputKbps: 1638.4, cpuSlowdownMultiplier: 4 };
|
|
175
|
+
break;
|
|
176
|
+
case 'mobileRegular4G':
|
|
177
|
+
lighthouseConfig.settings.throttling = { rttMs: 100, throughputKbps: 2048, cpuSlowdownMultiplier: 3 };
|
|
178
|
+
break;
|
|
179
|
+
case 'mobileFast4G':
|
|
180
|
+
lighthouseConfig.settings.throttling = { rttMs: 50, throughputKbps: 4096, cpuSlowdownMultiplier: 2 };
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
if (context.propsValue.userAgent) {
|
|
185
|
+
lighthouseConfig.settings.userAgent = context.propsValue.userAgent;
|
|
186
|
+
}
|
|
187
|
+
if (context.propsValue.timeout) {
|
|
188
|
+
lighthouseConfig.settings.timeout = context.propsValue.timeout;
|
|
189
|
+
}
|
|
190
|
+
if (context.propsValue.waitForSelector) {
|
|
191
|
+
lighthouseConfig.settings.waitForSelector = context.propsValue.waitForSelector;
|
|
192
|
+
}
|
|
193
|
+
if (context.propsValue.emulateMediaType) {
|
|
194
|
+
lighthouseConfig.settings.emulatedFormFactor = context.propsValue.emulateMediaType;
|
|
195
|
+
}
|
|
196
|
+
if (context.propsValue.onlyCategories && !lighthouseConfig.settings.onlyCategories) {
|
|
197
|
+
lighthouseConfig.settings.onlyCategories = ['performance', 'accessibility', 'best-practices', 'seo', 'pwa'];
|
|
198
|
+
}
|
|
199
|
+
requestBody.config = lighthouseConfig;
|
|
200
|
+
if (context.propsValue.budgets && context.propsValue.budgets.length > 0) {
|
|
201
|
+
requestBody.budgets = context.propsValue.budgets.map((budget) => ({
|
|
202
|
+
resourceType: budget.resourceType,
|
|
203
|
+
budget: budget.budget * 1024
|
|
204
|
+
}));
|
|
205
|
+
}
|
|
206
|
+
let resourceUri = '/performance';
|
|
207
|
+
const queryParams = [];
|
|
208
|
+
if (context.propsValue.stealth) {
|
|
209
|
+
queryParams.push('stealth=true');
|
|
210
|
+
}
|
|
211
|
+
if (context.propsValue.blockAds) {
|
|
212
|
+
queryParams.push('blockAds=true');
|
|
213
|
+
}
|
|
214
|
+
if (queryParams.length > 0) {
|
|
215
|
+
resourceUri += `?${queryParams.join('&')}`;
|
|
216
|
+
}
|
|
217
|
+
const response = yield client_1.browserlessCommon.apiCall({
|
|
218
|
+
auth: context.auth.props,
|
|
219
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
220
|
+
resourceUri,
|
|
221
|
+
body: requestBody,
|
|
222
|
+
});
|
|
223
|
+
const performanceData = response.body;
|
|
224
|
+
const summary = {
|
|
225
|
+
url: context.propsValue.url,
|
|
226
|
+
formFactor: context.propsValue.device || 'desktop',
|
|
227
|
+
timestamp: new Date().toISOString(),
|
|
228
|
+
};
|
|
229
|
+
if (performanceData.lhr && performanceData.lhr.categories) {
|
|
230
|
+
const categories = performanceData.lhr.categories;
|
|
231
|
+
summary.scores = {
|
|
232
|
+
performance: ((_a = categories.performance) === null || _a === void 0 ? void 0 : _a.score) ? Math.round(categories.performance.score * 100) : null,
|
|
233
|
+
accessibility: ((_b = categories.accessibility) === null || _b === void 0 ? void 0 : _b.score) ? Math.round(categories.accessibility.score * 100) : null,
|
|
234
|
+
bestPractices: ((_c = categories['best-practices']) === null || _c === void 0 ? void 0 : _c.score) ? Math.round(categories['best-practices'].score * 100) : null,
|
|
235
|
+
seo: ((_d = categories.seo) === null || _d === void 0 ? void 0 : _d.score) ? Math.round(categories.seo.score * 100) : null,
|
|
236
|
+
pwa: ((_e = categories.pwa) === null || _e === void 0 ? void 0 : _e.score) ? Math.round(categories.pwa.score * 100) : null,
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
if (performanceData.lhr && performanceData.lhr.audits) {
|
|
240
|
+
const audits = performanceData.lhr.audits;
|
|
241
|
+
summary.metrics = {
|
|
242
|
+
firstContentfulPaint: {
|
|
243
|
+
value: ((_f = audits['first-contentful-paint']) === null || _f === void 0 ? void 0 : _f.displayValue) || null,
|
|
244
|
+
score: ((_g = audits['first-contentful-paint']) === null || _g === void 0 ? void 0 : _g.score) ? Math.round(audits['first-contentful-paint'].score * 100) : null
|
|
245
|
+
},
|
|
246
|
+
largestContentfulPaint: {
|
|
247
|
+
value: ((_h = audits['largest-contentful-paint']) === null || _h === void 0 ? void 0 : _h.displayValue) || null,
|
|
248
|
+
score: ((_j = audits['largest-contentful-paint']) === null || _j === void 0 ? void 0 : _j.score) ? Math.round(audits['largest-contentful-paint'].score * 100) : null
|
|
249
|
+
},
|
|
250
|
+
firstMeaningfulPaint: {
|
|
251
|
+
value: ((_k = audits['first-meaningful-paint']) === null || _k === void 0 ? void 0 : _k.displayValue) || null,
|
|
252
|
+
score: ((_l = audits['first-meaningful-paint']) === null || _l === void 0 ? void 0 : _l.score) ? Math.round(audits['first-meaningful-paint'].score * 100) : null
|
|
253
|
+
},
|
|
254
|
+
speedIndex: {
|
|
255
|
+
value: ((_m = audits['speed-index']) === null || _m === void 0 ? void 0 : _m.displayValue) || null,
|
|
256
|
+
score: ((_o = audits['speed-index']) === null || _o === void 0 ? void 0 : _o.score) ? Math.round(audits['speed-index'].score * 100) : null
|
|
257
|
+
},
|
|
258
|
+
timeToInteractive: {
|
|
259
|
+
value: ((_p = audits['interactive']) === null || _p === void 0 ? void 0 : _p.displayValue) || null,
|
|
260
|
+
score: ((_q = audits['interactive']) === null || _q === void 0 ? void 0 : _q.score) ? Math.round(audits['interactive'].score * 100) : null
|
|
261
|
+
},
|
|
262
|
+
totalBlockingTime: {
|
|
263
|
+
value: ((_r = audits['total-blocking-time']) === null || _r === void 0 ? void 0 : _r.displayValue) || null,
|
|
264
|
+
score: ((_s = audits['total-blocking-time']) === null || _s === void 0 ? void 0 : _s.score) ? Math.round(audits['total-blocking-time'].score * 100) : null
|
|
265
|
+
},
|
|
266
|
+
cumulativeLayoutShift: {
|
|
267
|
+
value: ((_t = audits['cumulative-layout-shift']) === null || _t === void 0 ? void 0 : _t.displayValue) || null,
|
|
268
|
+
score: ((_u = audits['cumulative-layout-shift']) === null || _u === void 0 ? void 0 : _u.score) ? Math.round(audits['cumulative-layout-shift'].score * 100) : null
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
summary.opportunities = [];
|
|
272
|
+
if (((_x = (_w = (_v = audits['unused-css-rules']) === null || _v === void 0 ? void 0 : _v.details) === null || _w === void 0 ? void 0 : _w.items) === null || _x === void 0 ? void 0 : _x.length) > 0) {
|
|
273
|
+
summary.opportunities.push({
|
|
274
|
+
type: 'unused-css',
|
|
275
|
+
title: 'Remove unused CSS',
|
|
276
|
+
potentialSavings: audits['unused-css-rules'].displayValue || 'Unknown'
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
if (((_0 = (_z = (_y = audits['unused-javascript']) === null || _y === void 0 ? void 0 : _y.details) === null || _z === void 0 ? void 0 : _z.items) === null || _0 === void 0 ? void 0 : _0.length) > 0) {
|
|
280
|
+
summary.opportunities.push({
|
|
281
|
+
type: 'unused-javascript',
|
|
282
|
+
title: 'Remove unused JavaScript',
|
|
283
|
+
potentialSavings: audits['unused-javascript'].displayValue || 'Unknown'
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
if (((_3 = (_2 = (_1 = audits['render-blocking-resources']) === null || _1 === void 0 ? void 0 : _1.details) === null || _2 === void 0 ? void 0 : _2.items) === null || _3 === void 0 ? void 0 : _3.length) > 0) {
|
|
287
|
+
summary.opportunities.push({
|
|
288
|
+
type: 'render-blocking',
|
|
289
|
+
title: 'Eliminate render-blocking resources',
|
|
290
|
+
potentialSavings: audits['render-blocking-resources'].displayValue || 'Unknown'
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return {
|
|
295
|
+
success: true,
|
|
296
|
+
summary,
|
|
297
|
+
fullReport: performanceData,
|
|
298
|
+
metadata: {
|
|
299
|
+
analysisTime: ((_4 = response.headers) === null || _4 === void 0 ? void 0 : _4['x-response-time']) || 'unknown',
|
|
300
|
+
lighthouseVersion: ((_5 = performanceData.lhr) === null || _5 === void 0 ? void 0 : _5.lighthouseVersion) || 'unknown',
|
|
301
|
+
}
|
|
302
|
+
};
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
});
|
|
306
|
+
//# sourceMappingURL=get-website-performance.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-website-performance.js","sourceRoot":"","sources":["../../../src/lib/actions/get-website-performance.ts"],"names":[],"mappings":";;;;AAAA,qHAAqH;AACrH,qEAAqE;AACrE,gEAAmE;AACnE,0DAAoD;AACpD,yCAAiD;AACjD,6CAAqD;AAExC,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,0cAA0c,EAAE,UAAU,EAAE,IAAI,EAAE;IACzf,IAAI,EAAE,sBAAe;IACrB,KAAK,EAAE;QACH,GAAG,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACpB,WAAW,EAAE,KAAK;YAClB,WAAW,EAAE,mCAAmC;YAChD,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACvB,WAAW,EAAE,wBAA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AE,mBAAmB;wBAC1B,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC,YAAY,IAAI,SAAS;qBACzE,CAAC,CAAC;gBACP,CAAC;gBACD,IAAI,CAAA,MAAA,MAAA,MAAA,MAAM,CAAC,mBAAmB,CAAC,0CAAE,OAAO,0CAAE,KAAK,0CAAE,MAAM,IAAG,CAAC,EAAE,CAAC;oBAC1D,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;wBACvB,IAAI,EAAE,mBAAmB;wBACzB,KAAK,EAAE,0BAA0B;wBACjC,gBAAgB,EAAE,MAAM,CAAC,mBAAmB,CAAC,CAAC,YAAY,IAAI,SAAS;qBAC1E,CAAC,CAAC;gBACP,CAAC;gBACD,IAAI,CAAA,MAAA,MAAA,MAAA,MAAM,CAAC,2BAA2B,CAAC,0CAAE,OAAO,0CAAE,KAAK,0CAAE,MAAM,IAAG,CAAC,EAAE,CAAC;oBAClE,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;wBACvB,IAAI,EAAE,iBAAiB;wBACvB,KAAK,EAAE,qCAAqC;wBAC5C,gBAAgB,EAAE,MAAM,CAAC,2BAA2B,CAAC,CAAC,YAAY,IAAI,SAAS;qBAClF,CAAC,CAAC;gBACP,CAAC;YACL,CAAC;YAED,OAAO;gBACH,OAAO,EAAE,IAAI;gBACb,OAAO;gBACP,UAAU,EAAE,eAAe;gBAC3B,QAAQ,EAAE;oBACN,YAAY,EAAE,CAAA,MAAA,QAAQ,CAAC,OAAO,0CAAG,iBAAiB,CAAC,KAAI,SAAS;oBAChE,iBAAiB,EAAE,CAAA,MAAA,eAAe,CAAC,GAAG,0CAAE,iBAAiB,KAAI,SAAS;iBACzE;aACJ,CAAC;QACN,CAAC;KAAA;CACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const runBqlQuery: import("@agnocon/pieces-framework").IAction<import("@agnocon/pieces-framework").CustomAuthProperty<{
|
|
2
|
+
apiToken: import("@agnocon/pieces-framework").SecretTextProperty<true>;
|
|
3
|
+
region: import("@agnocon/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
+
customBaseUrl: import("@agnocon/pieces-framework").ShortTextProperty<false>;
|
|
5
|
+
}>, {
|
|
6
|
+
query: import("@agnocon/pieces-framework").LongTextProperty<true>;
|
|
7
|
+
variables: import("@agnocon/pieces-framework").ObjectProperty<false>;
|
|
8
|
+
operationName: import("@agnocon/pieces-framework").ShortTextProperty<false>;
|
|
9
|
+
timeout: import("@agnocon/pieces-framework").NumberProperty<false>;
|
|
10
|
+
stealth: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
11
|
+
headless: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
12
|
+
humanlike: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
13
|
+
proxy: import("@agnocon/pieces-framework").StaticDropdownProperty<string, false>;
|
|
14
|
+
proxyCountry: import("@agnocon/pieces-framework").ShortTextProperty<false>;
|
|
15
|
+
proxySticky: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
16
|
+
blockAds: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
17
|
+
blockConsentModals: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
18
|
+
record: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
19
|
+
slowMo: import("@agnocon/pieces-framework").NumberProperty<false>;
|
|
20
|
+
ignoreHTTPSErrors: import("@agnocon/pieces-framework").CheckboxProperty<false>;
|
|
21
|
+
userAgent: import("@agnocon/pieces-framework").ShortTextProperty<false>;
|
|
22
|
+
viewportWidth: import("@agnocon/pieces-framework").NumberProperty<false>;
|
|
23
|
+
viewportHeight: import("@agnocon/pieces-framework").NumberProperty<false>;
|
|
24
|
+
cookies: import("@agnocon/pieces-framework").ArrayProperty<true> | import("@agnocon/pieces-framework").ArrayProperty<false>;
|
|
25
|
+
}>;
|
|
26
|
+
//# sourceMappingURL=run-bql-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-bql-query.d.ts","sourceRoot":"","sources":["../../../src/lib/actions/run-bql-query.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;EAiStB,CAAC"}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runBqlQuery = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
// Vendored from Activepieces packages/pieces/community/browserless/src/lib/actions/run-bql-query.ts (MIT).
|
|
6
|
+
// Generated by packages/scripts/vendor-ap.mjs - do not edit by hand.
|
|
7
|
+
const pieces_framework_1 = require("@agnocon/pieces-framework");
|
|
8
|
+
const pieces_common_1 = require("@agnocon/pieces-common");
|
|
9
|
+
const auth_1 = require("../common/auth");
|
|
10
|
+
const client_1 = require("../common/client");
|
|
11
|
+
exports.runBqlQuery = (0, pieces_framework_1.createAction)({
|
|
12
|
+
name: 'run_bql_query',
|
|
13
|
+
displayName: 'Run BQL Query',
|
|
14
|
+
description: 'Execute Browser Query Language (BQL) GraphQL-based queries for advanced browser automation',
|
|
15
|
+
audience: 'both',
|
|
16
|
+
aiMetadata: { description: 'Runs a raw Browser Query Language (BQL) GraphQL query against a headless Chromium browser for advanced automation such as navigation, clicking, typing, and multi-step scripted browser flows. Use when the simpler screenshot/scrape/PDF actions cannot express the interaction; requires a valid BQL query string and supports session options like stealth, proxy, and cookies. Not idempotent: the query can perform stateful browser actions and side-effecting navigation, so repeating it may not yield the same result.', idempotent: false },
|
|
17
|
+
auth: auth_1.browserlessAuth,
|
|
18
|
+
props: {
|
|
19
|
+
query: pieces_framework_1.Property.LongText({
|
|
20
|
+
displayName: 'BQL Query',
|
|
21
|
+
description: 'GraphQL-based BQL query for browser automation. Example: mutation { goto(url: "https://example.com") { status } }',
|
|
22
|
+
required: true,
|
|
23
|
+
}),
|
|
24
|
+
variables: pieces_framework_1.Property.Object({
|
|
25
|
+
displayName: 'Query Variables',
|
|
26
|
+
description: 'Variables to pass to the BQL query (JSON object)',
|
|
27
|
+
required: false,
|
|
28
|
+
}),
|
|
29
|
+
operationName: pieces_framework_1.Property.ShortText({
|
|
30
|
+
displayName: 'Operation Name',
|
|
31
|
+
description: 'Name of the GraphQL operation to execute',
|
|
32
|
+
required: false,
|
|
33
|
+
}),
|
|
34
|
+
timeout: pieces_framework_1.Property.Number({
|
|
35
|
+
displayName: 'Timeout (ms)',
|
|
36
|
+
description: 'Maximum execution time in milliseconds',
|
|
37
|
+
required: false,
|
|
38
|
+
defaultValue: 30000,
|
|
39
|
+
}),
|
|
40
|
+
stealth: pieces_framework_1.Property.Checkbox({
|
|
41
|
+
displayName: 'Stealth Mode',
|
|
42
|
+
description: 'Enable stealth mode for bot detection bypass',
|
|
43
|
+
required: false,
|
|
44
|
+
defaultValue: true,
|
|
45
|
+
}),
|
|
46
|
+
headless: pieces_framework_1.Property.Checkbox({
|
|
47
|
+
displayName: 'Headless Mode',
|
|
48
|
+
description: 'Run browser in headless mode (set to false for GUI)',
|
|
49
|
+
required: false,
|
|
50
|
+
defaultValue: true,
|
|
51
|
+
}),
|
|
52
|
+
humanlike: pieces_framework_1.Property.Checkbox({
|
|
53
|
+
displayName: 'Human-like Behavior',
|
|
54
|
+
description: 'Enable human-like mouse movement, typing, and delays',
|
|
55
|
+
required: false,
|
|
56
|
+
defaultValue: false,
|
|
57
|
+
}),
|
|
58
|
+
proxy: pieces_framework_1.Property.StaticDropdown({
|
|
59
|
+
displayName: 'Proxy Type',
|
|
60
|
+
description: 'Type of proxy to use',
|
|
61
|
+
required: false,
|
|
62
|
+
options: {
|
|
63
|
+
options: [
|
|
64
|
+
{ label: 'Residential', value: 'residential' },
|
|
65
|
+
{ label: 'None', value: 'none' }
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
proxyCountry: pieces_framework_1.Property.ShortText({
|
|
70
|
+
displayName: 'Proxy Country',
|
|
71
|
+
description: 'Country code for residential proxy (e.g., us, gb, de)',
|
|
72
|
+
required: false,
|
|
73
|
+
}),
|
|
74
|
+
proxySticky: pieces_framework_1.Property.Checkbox({
|
|
75
|
+
displayName: 'Sticky Proxy',
|
|
76
|
+
description: 'Maintain same proxy IP across session',
|
|
77
|
+
required: false,
|
|
78
|
+
defaultValue: false,
|
|
79
|
+
}),
|
|
80
|
+
blockAds: pieces_framework_1.Property.Checkbox({
|
|
81
|
+
displayName: 'Block Ads',
|
|
82
|
+
description: 'Enable ad blocker (uBlock Origin)',
|
|
83
|
+
required: false,
|
|
84
|
+
defaultValue: false,
|
|
85
|
+
}),
|
|
86
|
+
blockConsentModals: pieces_framework_1.Property.Checkbox({
|
|
87
|
+
displayName: 'Block Consent Modals',
|
|
88
|
+
description: 'Automatically block/dismiss cookie consent banners',
|
|
89
|
+
required: false,
|
|
90
|
+
defaultValue: false,
|
|
91
|
+
}),
|
|
92
|
+
record: pieces_framework_1.Property.Checkbox({
|
|
93
|
+
displayName: 'Record Session',
|
|
94
|
+
description: 'Enable session recording for debugging',
|
|
95
|
+
required: false,
|
|
96
|
+
defaultValue: false,
|
|
97
|
+
}),
|
|
98
|
+
slowMo: pieces_framework_1.Property.Number({
|
|
99
|
+
displayName: 'Slow Motion (ms)',
|
|
100
|
+
description: 'Add delays between browser actions in milliseconds',
|
|
101
|
+
required: false,
|
|
102
|
+
}),
|
|
103
|
+
ignoreHTTPSErrors: pieces_framework_1.Property.Checkbox({
|
|
104
|
+
displayName: 'Ignore HTTPS Errors',
|
|
105
|
+
description: 'Ignore HTTPS certificate errors during navigation',
|
|
106
|
+
required: false,
|
|
107
|
+
defaultValue: false,
|
|
108
|
+
}),
|
|
109
|
+
userAgent: pieces_framework_1.Property.ShortText({
|
|
110
|
+
displayName: 'User Agent',
|
|
111
|
+
description: 'Custom user agent string',
|
|
112
|
+
required: false,
|
|
113
|
+
}),
|
|
114
|
+
viewportWidth: pieces_framework_1.Property.Number({
|
|
115
|
+
displayName: 'Viewport Width',
|
|
116
|
+
description: 'Browser viewport width',
|
|
117
|
+
required: false,
|
|
118
|
+
}),
|
|
119
|
+
viewportHeight: pieces_framework_1.Property.Number({
|
|
120
|
+
displayName: 'Viewport Height',
|
|
121
|
+
description: 'Browser viewport height',
|
|
122
|
+
required: false,
|
|
123
|
+
}),
|
|
124
|
+
cookies: pieces_framework_1.Property.Array({
|
|
125
|
+
displayName: 'Cookies',
|
|
126
|
+
description: 'Cookies to set before executing BQL query',
|
|
127
|
+
required: false,
|
|
128
|
+
properties: {
|
|
129
|
+
name: pieces_framework_1.Property.ShortText({
|
|
130
|
+
displayName: 'Cookie Name',
|
|
131
|
+
required: true,
|
|
132
|
+
}),
|
|
133
|
+
value: pieces_framework_1.Property.ShortText({
|
|
134
|
+
displayName: 'Cookie Value',
|
|
135
|
+
required: true,
|
|
136
|
+
}),
|
|
137
|
+
url: pieces_framework_1.Property.ShortText({
|
|
138
|
+
displayName: 'URL',
|
|
139
|
+
description: 'Request-URI to associate with the cookie',
|
|
140
|
+
required: false,
|
|
141
|
+
}),
|
|
142
|
+
domain: pieces_framework_1.Property.ShortText({
|
|
143
|
+
displayName: 'Domain',
|
|
144
|
+
required: false,
|
|
145
|
+
}),
|
|
146
|
+
path: pieces_framework_1.Property.ShortText({
|
|
147
|
+
displayName: 'Path',
|
|
148
|
+
required: false,
|
|
149
|
+
}),
|
|
150
|
+
secure: pieces_framework_1.Property.Checkbox({
|
|
151
|
+
displayName: 'Secure',
|
|
152
|
+
description: 'Indicates if the cookie is secure',
|
|
153
|
+
required: false,
|
|
154
|
+
defaultValue: false,
|
|
155
|
+
}),
|
|
156
|
+
httpOnly: pieces_framework_1.Property.Checkbox({
|
|
157
|
+
displayName: 'HTTP Only',
|
|
158
|
+
description: 'Indicates if the cookie is HTTP-only',
|
|
159
|
+
required: false,
|
|
160
|
+
defaultValue: false,
|
|
161
|
+
}),
|
|
162
|
+
sameSite: pieces_framework_1.Property.StaticDropdown({
|
|
163
|
+
displayName: 'SameSite',
|
|
164
|
+
description: 'SameSite policy for the cookie',
|
|
165
|
+
required: false,
|
|
166
|
+
options: {
|
|
167
|
+
options: [
|
|
168
|
+
{ label: 'Strict', value: 'Strict' },
|
|
169
|
+
{ label: 'Lax', value: 'Lax' },
|
|
170
|
+
{ label: 'None', value: 'None' }
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
}),
|
|
174
|
+
expires: pieces_framework_1.Property.Number({
|
|
175
|
+
displayName: 'Expires',
|
|
176
|
+
description: 'Expiration date as timestamp (session cookie if not set)',
|
|
177
|
+
required: false,
|
|
178
|
+
}),
|
|
179
|
+
}
|
|
180
|
+
}),
|
|
181
|
+
},
|
|
182
|
+
run(context) {
|
|
183
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
184
|
+
var _a;
|
|
185
|
+
const requestBody = {
|
|
186
|
+
query: context.propsValue.query,
|
|
187
|
+
};
|
|
188
|
+
if (context.propsValue.variables) {
|
|
189
|
+
requestBody.variables = context.propsValue.variables;
|
|
190
|
+
}
|
|
191
|
+
if (context.propsValue.operationName) {
|
|
192
|
+
requestBody.operationName = context.propsValue.operationName;
|
|
193
|
+
}
|
|
194
|
+
let resourceUri = '/chromium/bql';
|
|
195
|
+
const queryParams = [];
|
|
196
|
+
if (context.propsValue.timeout) {
|
|
197
|
+
queryParams.push(`timeout=${context.propsValue.timeout}`);
|
|
198
|
+
}
|
|
199
|
+
if (context.propsValue.stealth !== undefined) {
|
|
200
|
+
queryParams.push(`stealth=${context.propsValue.stealth}`);
|
|
201
|
+
}
|
|
202
|
+
if (context.propsValue.headless !== undefined) {
|
|
203
|
+
queryParams.push(`headless=${context.propsValue.headless}`);
|
|
204
|
+
}
|
|
205
|
+
if (context.propsValue.humanlike) {
|
|
206
|
+
queryParams.push(`humanlike=true`);
|
|
207
|
+
}
|
|
208
|
+
if (context.propsValue.proxy && context.propsValue.proxy !== 'none') {
|
|
209
|
+
queryParams.push(`proxy=${context.propsValue.proxy}`);
|
|
210
|
+
if (context.propsValue.proxyCountry) {
|
|
211
|
+
queryParams.push(`proxyCountry=${context.propsValue.proxyCountry}`);
|
|
212
|
+
}
|
|
213
|
+
if (context.propsValue.proxySticky) {
|
|
214
|
+
queryParams.push(`proxySticky=true`);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
if (context.propsValue.blockAds) {
|
|
218
|
+
queryParams.push(`blockAds=true`);
|
|
219
|
+
}
|
|
220
|
+
if (context.propsValue.blockConsentModals) {
|
|
221
|
+
queryParams.push(`blockConsentModals=true`);
|
|
222
|
+
}
|
|
223
|
+
if (context.propsValue.record) {
|
|
224
|
+
queryParams.push(`record=true`);
|
|
225
|
+
}
|
|
226
|
+
if (context.propsValue.slowMo) {
|
|
227
|
+
queryParams.push(`slowMo=${context.propsValue.slowMo}`);
|
|
228
|
+
}
|
|
229
|
+
if (context.propsValue.ignoreHTTPSErrors) {
|
|
230
|
+
queryParams.push(`ignoreHTTPSErrors=true`);
|
|
231
|
+
}
|
|
232
|
+
if (context.propsValue.userAgent) {
|
|
233
|
+
queryParams.push(`userAgent=${encodeURIComponent(context.propsValue.userAgent)}`);
|
|
234
|
+
}
|
|
235
|
+
if (context.propsValue.viewportWidth && context.propsValue.viewportHeight) {
|
|
236
|
+
queryParams.push(`viewport=${context.propsValue.viewportWidth}x${context.propsValue.viewportHeight}`);
|
|
237
|
+
}
|
|
238
|
+
if (context.propsValue.cookies && context.propsValue.cookies.length > 0) {
|
|
239
|
+
const cookiesJson = JSON.stringify(context.propsValue.cookies.map((cookie) => (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ name: cookie.name, value: cookie.value }, (cookie.url && { url: cookie.url })), (cookie.domain && { domain: cookie.domain })), (cookie.path && { path: cookie.path })), (cookie.secure !== undefined && { secure: cookie.secure })), (cookie.httpOnly !== undefined && { httpOnly: cookie.httpOnly })), (cookie.sameSite && { sameSite: cookie.sameSite })), (cookie.expires !== undefined && { expires: cookie.expires })))));
|
|
240
|
+
queryParams.push(`cookies=${encodeURIComponent(cookiesJson)}`);
|
|
241
|
+
}
|
|
242
|
+
if (queryParams.length > 0) {
|
|
243
|
+
resourceUri += `?${queryParams.join('&')}`;
|
|
244
|
+
}
|
|
245
|
+
const response = yield client_1.browserlessCommon.apiCall({
|
|
246
|
+
auth: context.auth.props,
|
|
247
|
+
method: pieces_common_1.HttpMethod.POST,
|
|
248
|
+
resourceUri,
|
|
249
|
+
body: requestBody,
|
|
250
|
+
});
|
|
251
|
+
let parsedResult;
|
|
252
|
+
try {
|
|
253
|
+
parsedResult = typeof response.body === 'string' ? JSON.parse(response.body) : response.body;
|
|
254
|
+
}
|
|
255
|
+
catch (error) {
|
|
256
|
+
parsedResult = response.body;
|
|
257
|
+
}
|
|
258
|
+
return {
|
|
259
|
+
success: true,
|
|
260
|
+
data: (parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.data) || null,
|
|
261
|
+
errors: (parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.errors) || null,
|
|
262
|
+
result: parsedResult,
|
|
263
|
+
metadata: {
|
|
264
|
+
browserType: 'chromium',
|
|
265
|
+
executionTime: ((_a = response.headers) === null || _a === void 0 ? void 0 : _a['x-response-time']) || 'unknown',
|
|
266
|
+
timestamp: new Date().toISOString(),
|
|
267
|
+
stealth: context.propsValue.stealth || false,
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
});
|
|
271
|
+
},
|
|
272
|
+
});
|
|
273
|
+
//# sourceMappingURL=run-bql-query.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run-bql-query.js","sourceRoot":"","sources":["../../../src/lib/actions/run-bql-query.ts"],"names":[],"mappings":";;;;AAAA,2GAA2G;AAC3G,qEAAqE;AACrE,gEAAmE;AACnE,0DAAoD;AACpD,yCAAiD;AACjD,6CAAqD;AAExC,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IAC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