unbrowse 9.3.7 → 9.3.8
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/package.json +1 -1
- package/runtime/cli.js +42 -1
- package/runtime/mcp.js +1 -1
- package/vendor/kuri/darwin-arm64/libkuri_ffi.dylib +0 -0
- package/vendor/kuri/darwin-x64/libkuri_ffi.dylib +0 -0
- package/vendor/kuri/linux-arm64/libkuri_ffi.so +0 -0
- package/vendor/kuri/linux-x64/kuri +0 -0
- package/vendor/kuri/linux-x64/libkuri_ffi.so +0 -0
- package/vendor/kuri/manifest.json +7 -7
- package/vendor/kuri/win-x64/kuri.exe +0 -0
package/package.json
CHANGED
package/runtime/cli.js
CHANGED
|
@@ -5020,7 +5020,7 @@ var init_cached_resolution = __esm(() => {
|
|
|
5020
5020
|
});
|
|
5021
5021
|
|
|
5022
5022
|
// .tmp-runtime-src/build-info.generated.ts
|
|
5023
|
-
var BUILD_RELEASE_VERSION = "9.3.
|
|
5023
|
+
var BUILD_RELEASE_VERSION = "9.3.8", BUILD_GIT_SHA = "b6b3ccddbddb", BUILD_CODE_HASH = "5d9ebf619c61", BUILD_RELEASE_MANIFEST_BASE64 = "eyJzY2hlbWFfdmVyc2lvbiI6MSwicmVsZWFzZV92ZXJzaW9uIjoiOS4zLjgiLCJnaXRfc2hhIjoiYjZiM2NjZGRiZGRiIiwiY29kZV9oYXNoIjoiNWQ5ZWJmNjE5YzYxIiwidHJhY2VfdmVyc2lvbiI6IjVkOWViZjYxOWM2MUBiNmIzY2NkZGJkZGIiLCJpc3N1ZWRfYXQiOiIyMDI2LTA2LTE1VDA4OjA4OjEzLjIwOVoifQ", BUILD_RELEASE_MANIFEST_SIGNATURE = "_Iq92fuWcstPs_AVWy9QRA1dfWknSpisW8xHV-wUuW4", BUILD_DEFAULT_BACKEND_URL = "https://beta-api.unbrowse.ai", BUILD_DEFAULT_PROFILE = "";
|
|
5024
5024
|
|
|
5025
5025
|
// .tmp-runtime-src/version.ts
|
|
5026
5026
|
import { createHash as createHash4 } from "crypto";
|
|
@@ -201930,6 +201930,41 @@ function extractEmbeddedJsonBody(intent) {
|
|
|
201930
201930
|
return;
|
|
201931
201931
|
}
|
|
201932
201932
|
|
|
201933
|
+
// .tmp-runtime-src/lib/extract-auth-header.ts
|
|
201934
|
+
var TOKEN = "([A-Za-z0-9][A-Za-z0-9._~+/=-]{5,})";
|
|
201935
|
+
var BEARER_RULES = [
|
|
201936
|
+
new RegExp(`\\bbearer\\s+token\\s+${TOKEN}`, "i"),
|
|
201937
|
+
new RegExp(`\\bbearer\\s+${TOKEN}`, "i"),
|
|
201938
|
+
new RegExp(`\\b(?:auth(?:enticate|orization)?)\\s+(?:with\\s+)?token\\s+${TOKEN}`, "i")
|
|
201939
|
+
];
|
|
201940
|
+
var APIKEY_RULES = [
|
|
201941
|
+
new RegExp(`\\b(?:api[- ]?key|apikey|x-api-key)\\s*[:=]?\\s+${TOKEN}`, "i")
|
|
201942
|
+
];
|
|
201943
|
+
function looksLikeToken(t) {
|
|
201944
|
+
if (t.length >= 16)
|
|
201945
|
+
return true;
|
|
201946
|
+
if (/[0-9._~+/=-]/.test(t))
|
|
201947
|
+
return true;
|
|
201948
|
+
if (/[A-Z]/.test(t) && /[a-z]/.test(t))
|
|
201949
|
+
return true;
|
|
201950
|
+
return false;
|
|
201951
|
+
}
|
|
201952
|
+
function extractAuthHeader(intent) {
|
|
201953
|
+
if (!intent)
|
|
201954
|
+
return;
|
|
201955
|
+
for (const re of BEARER_RULES) {
|
|
201956
|
+
const m = intent.match(re);
|
|
201957
|
+
if (m?.[1] && looksLikeToken(m[1]))
|
|
201958
|
+
return `Authorization: Bearer ${m[1]}`;
|
|
201959
|
+
}
|
|
201960
|
+
for (const re of APIKEY_RULES) {
|
|
201961
|
+
const m = intent.match(re);
|
|
201962
|
+
if (m?.[1] && looksLikeToken(m[1]))
|
|
201963
|
+
return `X-API-Key: ${m[1]}`;
|
|
201964
|
+
}
|
|
201965
|
+
return;
|
|
201966
|
+
}
|
|
201967
|
+
|
|
201933
201968
|
// .tmp-runtime-src/env/kuri-proxy-bridge.ts
|
|
201934
201969
|
init_proxy_fetch();
|
|
201935
201970
|
var __dirname = "/home/runner/work/unbrowse-dev/unbrowse-dev/.tmp-runtime-src/env";
|
|
@@ -206990,6 +207025,12 @@ async function cmdRun(args, flags, verb = "run") {
|
|
|
206990
207025
|
...oneHoleWriteBody ? { body: oneHoleWriteBody } : {}
|
|
206991
207026
|
});
|
|
206992
207027
|
}
|
|
207028
|
+
if (url) {
|
|
207029
|
+
const authHeader = typeof flags.header === "string" ? flags.header : extractAuthHeader(intent);
|
|
207030
|
+
if (authHeader) {
|
|
207031
|
+
return cmdFetch([], { ...flags, url, header: authHeader });
|
|
207032
|
+
}
|
|
207033
|
+
}
|
|
206993
207034
|
const draftOnlyIntent = isDraftOnlyMutationIntent(intent);
|
|
206994
207035
|
const resolveIntent = draftOnlyIntent ? draftOnlyReadIntent(intent) : intent;
|
|
206995
207036
|
maybeShowContributionNotice();
|
package/runtime/mcp.js
CHANGED
|
@@ -36178,7 +36178,7 @@ var init_cached_resolution = __esm(() => {
|
|
|
36178
36178
|
});
|
|
36179
36179
|
|
|
36180
36180
|
// .tmp-runtime-src/build-info.generated.ts
|
|
36181
|
-
var BUILD_RELEASE_VERSION = "9.3.
|
|
36181
|
+
var BUILD_RELEASE_VERSION = "9.3.8", BUILD_GIT_SHA = "b6b3ccddbddb", BUILD_CODE_HASH = "5d9ebf619c61", BUILD_RELEASE_MANIFEST_BASE64 = "eyJzY2hlbWFfdmVyc2lvbiI6MSwicmVsZWFzZV92ZXJzaW9uIjoiOS4zLjgiLCJnaXRfc2hhIjoiYjZiM2NjZGRiZGRiIiwiY29kZV9oYXNoIjoiNWQ5ZWJmNjE5YzYxIiwidHJhY2VfdmVyc2lvbiI6IjVkOWViZjYxOWM2MUBiNmIzY2NkZGJkZGIiLCJpc3N1ZWRfYXQiOiIyMDI2LTA2LTE1VDA4OjA4OjEzLjIwOVoifQ", BUILD_RELEASE_MANIFEST_SIGNATURE = "_Iq92fuWcstPs_AVWy9QRA1dfWknSpisW8xHV-wUuW4", BUILD_DEFAULT_BACKEND_URL = "https://beta-api.unbrowse.ai", BUILD_DEFAULT_PROFILE = "";
|
|
36182
36182
|
|
|
36183
36183
|
// .tmp-runtime-src/version.ts
|
|
36184
36184
|
import { createHash as createHash3 } from "crypto";
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"repo_url": "https://github.com/justrach/kuri.git",
|
|
3
3
|
"branch": "adding-extensions",
|
|
4
4
|
"source_sha": "149881254046a20778f642b69f20f0c6468f6fb4",
|
|
5
|
-
"built_at": "2026-06-15T07:
|
|
5
|
+
"built_at": "2026-06-15T07:49:42.329Z",
|
|
6
6
|
"binaries": {
|
|
7
7
|
"darwin-arm64": {
|
|
8
8
|
"zig_target": "aarch64-macos",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"linux-x64": {
|
|
23
23
|
"zig_target": "x86_64-linux",
|
|
24
|
-
"sha256": "
|
|
24
|
+
"sha256": "afeb7be07284a7aa84eb0ab532166b1ccf4f1ebdbe289b6d5b98c284a7f82c70"
|
|
25
25
|
},
|
|
26
26
|
"win-x64": {
|
|
27
27
|
"zig_target": "x86_64-windows-gnu",
|
|
28
|
-
"sha256": "
|
|
28
|
+
"sha256": "a2428a63e9c881b32875d71c766397fb7bb771f901284fb5ed54430836f80991",
|
|
29
29
|
"source": "pre-staged"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
@@ -33,22 +33,22 @@
|
|
|
33
33
|
"darwin-arm64": {
|
|
34
34
|
"zig_target": "aarch64-macos",
|
|
35
35
|
"lib": "libkuri_ffi.dylib",
|
|
36
|
-
"sha256": "
|
|
36
|
+
"sha256": "8817997af2c42fc0a0cae00651c6892c437fbd4ab78860af442786bd475d24ff"
|
|
37
37
|
},
|
|
38
38
|
"darwin-x64": {
|
|
39
39
|
"zig_target": "x86_64-macos",
|
|
40
40
|
"lib": "libkuri_ffi.dylib",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "dd8b62e581a51784a2b17b8cf21b2cd3fe98a070f97ef34c071f94030478da04"
|
|
42
42
|
},
|
|
43
43
|
"linux-arm64": {
|
|
44
44
|
"zig_target": "aarch64-linux",
|
|
45
45
|
"lib": "libkuri_ffi.so",
|
|
46
|
-
"sha256": "
|
|
46
|
+
"sha256": "5c8991c9a751f9f509a4d34ed7d139a7206f5484c92118f0d2cb49e1c690c60e"
|
|
47
47
|
},
|
|
48
48
|
"linux-x64": {
|
|
49
49
|
"zig_target": "x86_64-linux",
|
|
50
50
|
"lib": "libkuri_ffi.so",
|
|
51
|
-
"sha256": "
|
|
51
|
+
"sha256": "875e7e160723d71742982b62f88e5c1a7c5c6325f4eae616233238e74e1d5885"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
Binary file
|