unbrowse 6.1.1 → 6.1.3
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/dist/cli.js +8 -2
- package/dist/mcp.js +4 -4
- package/dist/server.js +17 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -31,7 +31,7 @@ var __promiseAll = (args) => Promise.all(args);
|
|
|
31
31
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
32
32
|
|
|
33
33
|
// ../../src/build-info.generated.ts
|
|
34
|
-
var BUILD_RELEASE_VERSION = "6.1.
|
|
34
|
+
var BUILD_RELEASE_VERSION = "6.1.3", BUILD_GIT_SHA = "2efa82e8f6a7", BUILD_CODE_HASH = "5d9ebf619c61", BUILD_RELEASE_MANIFEST_BASE64 = "eyJzY2hlbWFfdmVyc2lvbiI6MSwicmVsZWFzZV92ZXJzaW9uIjoiNi4xLjMiLCJnaXRfc2hhIjoiMmVmYTgyZThmNmE3IiwiY29kZV9oYXNoIjoiNWQ5ZWJmNjE5YzYxIiwidHJhY2VfdmVyc2lvbiI6IjVkOWViZjYxOWM2MUAyZWZhODJlOGY2YTciLCJpc3N1ZWRfYXQiOiIyMDI2LTA1LTAxVDAxOjA3OjIxLjM5NFoifQ", BUILD_RELEASE_MANIFEST_SIGNATURE = "bzwIl25aiAhrxXJfAHiTDAFUYKkOUntait0ZAKFE2Ys", BUILD_DEFAULT_BACKEND_URL = "https://beta-api.unbrowse.ai";
|
|
35
35
|
|
|
36
36
|
// ../../src/version.ts
|
|
37
37
|
import { createHash } from "crypto";
|
|
@@ -4447,7 +4447,13 @@ function parseArgs(argv) {
|
|
|
4447
4447
|
} else if (a.startsWith("--")) {
|
|
4448
4448
|
const key = a.slice(2);
|
|
4449
4449
|
const next = rest[i + 1];
|
|
4450
|
-
|
|
4450
|
+
const valueExpectedFlags = new Set(["skill", "endpoint", "intent", "url", "domain", "params", "path", "extract", "limit"]);
|
|
4451
|
+
if (valueExpectedFlags.has(key)) {
|
|
4452
|
+
if (next === undefined)
|
|
4453
|
+
die(`--${key} requires a value`);
|
|
4454
|
+
flags[key] = next;
|
|
4455
|
+
i++;
|
|
4456
|
+
} else if (!next || next.startsWith("--") || next === "-p" || next === "--param") {
|
|
4451
4457
|
flags[key] = true;
|
|
4452
4458
|
} else {
|
|
4453
4459
|
flags[key] = next;
|
package/dist/mcp.js
CHANGED
|
@@ -226,11 +226,11 @@ import { dirname, join, parse } from "path";
|
|
|
226
226
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
227
227
|
|
|
228
228
|
// ../../src/build-info.generated.ts
|
|
229
|
-
var BUILD_RELEASE_VERSION = "6.1.
|
|
230
|
-
var BUILD_GIT_SHA = "
|
|
229
|
+
var BUILD_RELEASE_VERSION = "6.1.3";
|
|
230
|
+
var BUILD_GIT_SHA = "2efa82e8f6a7";
|
|
231
231
|
var BUILD_CODE_HASH = "5d9ebf619c61";
|
|
232
|
-
var BUILD_RELEASE_MANIFEST_BASE64 = "
|
|
233
|
-
var BUILD_RELEASE_MANIFEST_SIGNATURE = "
|
|
232
|
+
var BUILD_RELEASE_MANIFEST_BASE64 = "eyJzY2hlbWFfdmVyc2lvbiI6MSwicmVsZWFzZV92ZXJzaW9uIjoiNi4xLjMiLCJnaXRfc2hhIjoiMmVmYTgyZThmNmE3IiwiY29kZV9oYXNoIjoiNWQ5ZWJmNjE5YzYxIiwidHJhY2VfdmVyc2lvbiI6IjVkOWViZjYxOWM2MUAyZWZhODJlOGY2YTciLCJpc3N1ZWRfYXQiOiIyMDI2LTA1LTAxVDAxOjA3OjIxLjM5NFoifQ";
|
|
233
|
+
var BUILD_RELEASE_MANIFEST_SIGNATURE = "bzwIl25aiAhrxXJfAHiTDAFUYKkOUntait0ZAKFE2Ys";
|
|
234
234
|
var BUILD_DEFAULT_BACKEND_URL = "https://beta-api.unbrowse.ai";
|
|
235
235
|
|
|
236
236
|
// ../../src/version.ts
|
package/dist/server.js
CHANGED
|
@@ -7285,7 +7285,7 @@ var init_capture = __esm(async () => {
|
|
|
7285
7285
|
});
|
|
7286
7286
|
|
|
7287
7287
|
// ../../src/build-info.generated.ts
|
|
7288
|
-
var BUILD_RELEASE_VERSION = "6.1.
|
|
7288
|
+
var BUILD_RELEASE_VERSION = "6.1.3", BUILD_GIT_SHA = "2efa82e8f6a7", BUILD_CODE_HASH = "5d9ebf619c61", BUILD_RELEASE_MANIFEST_BASE64 = "eyJzY2hlbWFfdmVyc2lvbiI6MSwicmVsZWFzZV92ZXJzaW9uIjoiNi4xLjMiLCJnaXRfc2hhIjoiMmVmYTgyZThmNmE3IiwiY29kZV9oYXNoIjoiNWQ5ZWJmNjE5YzYxIiwidHJhY2VfdmVyc2lvbiI6IjVkOWViZjYxOWM2MUAyZWZhODJlOGY2YTciLCJpc3N1ZWRfYXQiOiIyMDI2LTA1LTAxVDAxOjA3OjIxLjM5NFoifQ", BUILD_RELEASE_MANIFEST_SIGNATURE = "bzwIl25aiAhrxXJfAHiTDAFUYKkOUntait0ZAKFE2Ys", BUILD_DEFAULT_BACKEND_URL = "https://beta-api.unbrowse.ai";
|
|
7289
7289
|
|
|
7290
7290
|
// ../../src/version.ts
|
|
7291
7291
|
import { createHash as createHash2 } from "crypto";
|
|
@@ -17401,8 +17401,23 @@ async function executeEndpoint(skill, endpoint, params = {}, projection, options
|
|
|
17401
17401
|
urlTemplate = restoreTemplatePlaceholderEncoding(u.toString()).replace(/%28/gi, "(").replace(/%29/gi, ")").replace(/%2C/gi, ",").replace(/%3A/gi, ":");
|
|
17402
17402
|
} catch {}
|
|
17403
17403
|
}
|
|
17404
|
-
|
|
17404
|
+
let __gqlDecomp = decomposeGraphqlEndpoint(endpoint);
|
|
17405
17405
|
if (__gqlDecomp.isGraphql) {
|
|
17406
|
+
if (__gqlDecomp.operationName && (!__gqlDecomp.variablesTemplate || Object.keys(__gqlDecomp.variablesTemplate).length === 0)) {
|
|
17407
|
+
const siblings = (skill.endpoints ?? []).filter((e) => e.endpoint_id !== endpoint.endpoint_id);
|
|
17408
|
+
for (const sib of siblings) {
|
|
17409
|
+
const sibDecomp = decomposeGraphqlEndpoint(sib);
|
|
17410
|
+
if (sibDecomp.isGraphql && sibDecomp.operationName === __gqlDecomp.operationName && sibDecomp.variablesTemplate && Object.keys(sibDecomp.variablesTemplate).length > 0) {
|
|
17411
|
+
log("exec", `D8 graphql-template-borrow: ${endpoint.endpoint_id} → ${sib.endpoint_id} for ${__gqlDecomp.operationName}`);
|
|
17412
|
+
__gqlDecomp = sibDecomp;
|
|
17413
|
+
if (!endpoint.body && sib.body) {
|
|
17414
|
+
endpoint = { ...endpoint, body: sib.body, method: sib.method ?? endpoint.method, headers_template: sib.headers_template ?? endpoint.headers_template };
|
|
17415
|
+
log("exec", `D8 graphql-body-borrow: ${endpoint.endpoint_id} ← ${sib.endpoint_id}.body (${Object.keys(sib.body).length} keys)`);
|
|
17416
|
+
}
|
|
17417
|
+
break;
|
|
17418
|
+
}
|
|
17419
|
+
}
|
|
17420
|
+
}
|
|
17406
17421
|
const __gqlEnc = buildGraphqlRequestParams(__gqlDecomp, mergedParams);
|
|
17407
17422
|
if (mergedParams.variables == null || mergedParams.variables === "{variables}") {
|
|
17408
17423
|
mergedParams.variables = encodeURIComponent(__gqlEnc.variables);
|