unbrowse 9.3.4 → 9.3.6
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/bin/unbrowse-update-hint.mjs +12 -1
- package/package.json +1 -1
- package/runtime/cli.js +121 -78
- package/runtime/mcp.js +7 -7
- 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
|
@@ -2,10 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
import { dirname, join } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { existsSync } from "node:fs";
|
|
5
6
|
import { spawn } from "node:child_process";
|
|
6
7
|
|
|
7
8
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
// Resolve the real CLI entrypoint. The package ships the readable bun runtime at
|
|
11
|
+
// `runtime/cli.js` (runnable on plain Node); older/dev layouts used `dist/cli.js`.
|
|
12
|
+
// Hardcoding `dist/cli.js` made this hook ENOENT silently on every shipped install
|
|
13
|
+
// — fall back across the known layouts and exit quietly if none is present.
|
|
14
|
+
const candidates = [
|
|
15
|
+
join(__dirname, "..", "runtime", "cli.js"),
|
|
16
|
+
join(__dirname, "..", "dist", "cli.js"),
|
|
17
|
+
];
|
|
18
|
+
const cliPath = candidates.find((p) => existsSync(p));
|
|
19
|
+
if (!cliPath) process.exit(0); // no runtime to drive — nothing to do, fail quiet
|
|
9
20
|
|
|
10
21
|
const child = spawn(process.execPath, [cliPath, "upgrade", "--hint-only"], {
|
|
11
22
|
stdio: "inherit",
|
package/package.json
CHANGED
package/runtime/cli.js
CHANGED
|
@@ -1106,8 +1106,7 @@ __export(exports_proxy_fetch, {
|
|
|
1106
1106
|
resolveEgressProxy: () => resolveEgressProxy,
|
|
1107
1107
|
proxiedFetchOnce: () => proxiedFetchOnce,
|
|
1108
1108
|
iproyalStickySuffix: () => iproyalStickySuffix,
|
|
1109
|
-
egressProxyArg: () => egressProxyArg
|
|
1110
|
-
PROXYKINGDOM_DEFAULT_URL: () => PROXYKINGDOM_DEFAULT_URL
|
|
1109
|
+
egressProxyArg: () => egressProxyArg
|
|
1111
1110
|
});
|
|
1112
1111
|
import { randomBytes } from "node:crypto";
|
|
1113
1112
|
import { readFileSync as readFileSync4, writeFileSync as writeFileSync2, mkdirSync as mkdirSync3, statSync as statSync2 } from "node:fs";
|
|
@@ -1183,10 +1182,11 @@ function resolveEgressProxy(env = process.env) {
|
|
|
1183
1182
|
if (iproyal)
|
|
1184
1183
|
return iproyal;
|
|
1185
1184
|
const override = env.UNBROWSE_PROXYKINGDOM_URL?.trim();
|
|
1186
|
-
|
|
1187
|
-
if (peekFailure(pk, "proxy") === "structural")
|
|
1185
|
+
if (!override)
|
|
1188
1186
|
return;
|
|
1189
|
-
|
|
1187
|
+
if (peekFailure(override, "proxy") === "structural")
|
|
1188
|
+
return;
|
|
1189
|
+
return override;
|
|
1190
1190
|
}
|
|
1191
1191
|
function egressProxyArg(env = process.env) {
|
|
1192
1192
|
const url = resolveEgressProxy(env);
|
|
@@ -1286,7 +1286,7 @@ async function x402ProxyAuthorization(proxyUrl = resolveEgressProxy()) {
|
|
|
1286
1286
|
};
|
|
1287
1287
|
}
|
|
1288
1288
|
}
|
|
1289
|
-
var STICKY_SESSION_MAX_AGE_MS, _processStickyFallback,
|
|
1289
|
+
var STICKY_SESSION_MAX_AGE_MS, _processStickyFallback, _cachedProxyAuth = null;
|
|
1290
1290
|
var init_proxy_fetch = __esm(() => {
|
|
1291
1291
|
init_x402_fetch();
|
|
1292
1292
|
init_failure_cache();
|
|
@@ -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.6", BUILD_GIT_SHA = "cda0319ecbae", BUILD_CODE_HASH = "5d9ebf619c61", BUILD_RELEASE_MANIFEST_BASE64 = "eyJzY2hlbWFfdmVyc2lvbiI6MSwicmVsZWFzZV92ZXJzaW9uIjoiOS4zLjYiLCJnaXRfc2hhIjoiY2RhMDMxOWVjYmFlIiwiY29kZV9oYXNoIjoiNWQ5ZWJmNjE5YzYxIiwidHJhY2VfdmVyc2lvbiI6IjVkOWViZjYxOWM2MUBjZGEwMzE5ZWNiYWUiLCJpc3N1ZWRfYXQiOiIyMDI2LTA2LTE1VDA2OjI4OjA4LjAwN1oifQ", BUILD_RELEASE_MANIFEST_SIGNATURE = "7i1jjWajzOwxL3KzVQjQWXZdtZaPXBlj_MiF1hw9MPc", 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";
|
|
@@ -191395,10 +191395,12 @@ var init_indexer_core2 = __esm(async () => {
|
|
|
191395
191395
|
// .tmp-runtime-src/runtime/update-hints.ts
|
|
191396
191396
|
var exports_update_hints = {};
|
|
191397
191397
|
__export(exports_update_hints, {
|
|
191398
|
+
shouldSpawnBackgroundUpdateCheck: () => shouldSpawnBackgroundUpdateCheck,
|
|
191398
191399
|
shouldAutoUpdate: () => shouldAutoUpdate,
|
|
191399
191400
|
saveInstallSource: () => saveInstallSource2,
|
|
191400
191401
|
resolveInstallSource: () => resolveInstallSource2,
|
|
191401
191402
|
recordUpdateHint: () => recordUpdateHint,
|
|
191403
|
+
maybeSpawnBackgroundUpdateCheck: () => maybeSpawnBackgroundUpdateCheck,
|
|
191402
191404
|
maybeAutoUpdate: () => maybeAutoUpdate,
|
|
191403
191405
|
loadInstallSource: () => loadInstallSource2,
|
|
191404
191406
|
getInstalledVersion: () => getInstalledVersion,
|
|
@@ -191477,13 +191479,20 @@ function detectInstallHost2(repoRoot) {
|
|
|
191477
191479
|
return "unknown";
|
|
191478
191480
|
}
|
|
191479
191481
|
function getInstalledVersion(metaUrl) {
|
|
191480
|
-
|
|
191481
|
-
|
|
191482
|
-
|
|
191483
|
-
|
|
191484
|
-
|
|
191485
|
-
|
|
191482
|
+
let dir = getModuleDir(metaUrl);
|
|
191483
|
+
const root2 = path23.parse(dir).root;
|
|
191484
|
+
while (dir !== root2) {
|
|
191485
|
+
const pj = path23.join(dir, "package.json");
|
|
191486
|
+
if (existsSync50(pj)) {
|
|
191487
|
+
try {
|
|
191488
|
+
const pkg = JSON.parse(readFileSync38(pj, "utf8"));
|
|
191489
|
+
if (typeof pkg.version === "string" && pkg.version.trim())
|
|
191490
|
+
return pkg.version.trim();
|
|
191491
|
+
} catch {}
|
|
191492
|
+
}
|
|
191493
|
+
dir = path23.dirname(dir);
|
|
191486
191494
|
}
|
|
191495
|
+
return "unknown";
|
|
191487
191496
|
}
|
|
191488
191497
|
function resolveInstallSource2(metaUrl) {
|
|
191489
191498
|
const packageRoot = getPackageRoot(metaUrl);
|
|
@@ -191598,6 +191607,46 @@ function shouldAutoUpdate(input2) {
|
|
|
191598
191607
|
}
|
|
191599
191608
|
return { update: true, reason: "applying" };
|
|
191600
191609
|
}
|
|
191610
|
+
function shouldSpawnBackgroundUpdateCheck(input2) {
|
|
191611
|
+
if (input2.disabled)
|
|
191612
|
+
return { spawn: false, reason: "disabled" };
|
|
191613
|
+
if (BACKGROUND_UPDATE_SKIP_COMMANDS2.has(input2.command)) {
|
|
191614
|
+
return { spawn: false, reason: `command:${input2.command}` };
|
|
191615
|
+
}
|
|
191616
|
+
if (input2.lastSpawnAtMs != null && Number.isFinite(input2.lastSpawnAtMs) && input2.nowMs - input2.lastSpawnAtMs < input2.intervalMs) {
|
|
191617
|
+
return { spawn: false, reason: "throttled" };
|
|
191618
|
+
}
|
|
191619
|
+
return { spawn: true, reason: "due" };
|
|
191620
|
+
}
|
|
191621
|
+
function maybeSpawnBackgroundUpdateCheck(metaUrl, command2) {
|
|
191622
|
+
try {
|
|
191623
|
+
const statePath = getUpdateCheckStatePath();
|
|
191624
|
+
const state = readJsonFile2(statePath) ?? {};
|
|
191625
|
+
const lastSpawn = state.bg_check_spawned_at ? Date.parse(state.bg_check_spawned_at) : Number.NaN;
|
|
191626
|
+
const decision = shouldSpawnBackgroundUpdateCheck({
|
|
191627
|
+
command: command2,
|
|
191628
|
+
disabled: autoUpdateDisabled(),
|
|
191629
|
+
lastSpawnAtMs: Number.isFinite(lastSpawn) ? lastSpawn : null,
|
|
191630
|
+
nowMs: Date.now(),
|
|
191631
|
+
intervalMs: getUpdateIntervalMs()
|
|
191632
|
+
});
|
|
191633
|
+
if (!decision.spawn)
|
|
191634
|
+
return { spawned: false, reason: decision.reason };
|
|
191635
|
+
writeJsonFile2(statePath, { ...state, bg_check_spawned_at: new Date().toISOString() });
|
|
191636
|
+
const hintBin = getHookScriptPath2(metaUrl);
|
|
191637
|
+
if (!existsSync50(hintBin))
|
|
191638
|
+
return { spawned: false, reason: "hint-bin-missing" };
|
|
191639
|
+
const child = spawn12(process.execPath, [hintBin], {
|
|
191640
|
+
detached: true,
|
|
191641
|
+
stdio: ["ignore", "ignore", "ignore"],
|
|
191642
|
+
windowsHide: true
|
|
191643
|
+
});
|
|
191644
|
+
child.unref();
|
|
191645
|
+
return { spawned: true, reason: "spawned" };
|
|
191646
|
+
} catch (err) {
|
|
191647
|
+
return { spawned: false, reason: `error:${err?.message ?? "unknown"}` };
|
|
191648
|
+
}
|
|
191649
|
+
}
|
|
191601
191650
|
function autoUpdateDisabled() {
|
|
191602
191651
|
return envOn("UNBROWSE_NO_AUTO_UPDATE") || envOn("UNBROWSE_DISABLE_UPDATE_HINTS") || envOn("CI") || !!process.env.GITHUB_ACTIONS;
|
|
191603
191652
|
}
|
|
@@ -191748,10 +191797,22 @@ function configureUpdateHintHooks2(metaUrl, install2) {
|
|
|
191748
191797
|
const configuredHosts = source.host === "codex" || source.host === "claude" ? [source.host] : ["codex", "claude"];
|
|
191749
191798
|
return configuredHosts.map((host) => host === "codex" ? writeCodexHook2(metaUrl) : writeClaudeHook2(metaUrl));
|
|
191750
191799
|
}
|
|
191751
|
-
var INSTALL_SCRIPT_URL = "https://unbrowse.ai/install.sh", DEFAULT_INTERVAL_MS2, CODEX_MARKER2 = "# Unbrowse update hints — managed by unbrowse setup";
|
|
191800
|
+
var INSTALL_SCRIPT_URL = "https://unbrowse.ai/install.sh", DEFAULT_INTERVAL_MS2, CODEX_MARKER2 = "# Unbrowse update hints — managed by unbrowse setup", BACKGROUND_UPDATE_SKIP_COMMANDS2;
|
|
191752
191801
|
var init_update_hints = __esm(() => {
|
|
191753
191802
|
init_paths();
|
|
191754
191803
|
DEFAULT_INTERVAL_MS2 = 12 * 60 * 60 * 1000;
|
|
191804
|
+
BACKGROUND_UPDATE_SKIP_COMMANDS2 = new Set([
|
|
191805
|
+
"upgrade",
|
|
191806
|
+
"update",
|
|
191807
|
+
"health",
|
|
191808
|
+
"mcp",
|
|
191809
|
+
"mcp-serve",
|
|
191810
|
+
"serve",
|
|
191811
|
+
"setup",
|
|
191812
|
+
"help",
|
|
191813
|
+
"__drain-queue",
|
|
191814
|
+
"contract-bridge"
|
|
191815
|
+
]);
|
|
191755
191816
|
});
|
|
191756
191817
|
|
|
191757
191818
|
// .tmp-runtime-src/lib/indexer-core/queue-store.ts
|
|
@@ -193869,8 +193930,7 @@ __export(exports_proxy_fetch2, {
|
|
|
193869
193930
|
resolveEgressProxy: () => resolveEgressProxy2,
|
|
193870
193931
|
proxiedFetchOnce: () => proxiedFetchOnce2,
|
|
193871
193932
|
iproyalStickySuffix: () => iproyalStickySuffix2,
|
|
193872
|
-
egressProxyArg: () => egressProxyArg2
|
|
193873
|
-
PROXYKINGDOM_DEFAULT_URL: () => PROXYKINGDOM_DEFAULT_URL2
|
|
193933
|
+
egressProxyArg: () => egressProxyArg2
|
|
193874
193934
|
});
|
|
193875
193935
|
import { randomBytes as randomBytes21 } from "node:crypto";
|
|
193876
193936
|
import { readFileSync as readFileSync46, writeFileSync as writeFileSync35, mkdirSync as mkdirSync39, statSync as statSync12 } from "node:fs";
|
|
@@ -193946,10 +194006,11 @@ function resolveEgressProxy2(env2 = process.env) {
|
|
|
193946
194006
|
if (iproyal)
|
|
193947
194007
|
return iproyal;
|
|
193948
194008
|
const override = env2.UNBROWSE_PROXYKINGDOM_URL?.trim();
|
|
193949
|
-
|
|
193950
|
-
|
|
194009
|
+
if (!override)
|
|
194010
|
+
return;
|
|
194011
|
+
if (peekFailure(override, "proxy") === "structural")
|
|
193951
194012
|
return;
|
|
193952
|
-
return
|
|
194013
|
+
return override;
|
|
193953
194014
|
}
|
|
193954
194015
|
function egressProxyArg2(env2 = process.env) {
|
|
193955
194016
|
const url = resolveEgressProxy2(env2);
|
|
@@ -194049,7 +194110,7 @@ async function x402ProxyAuthorization2(proxyUrl = resolveEgressProxy2()) {
|
|
|
194049
194110
|
};
|
|
194050
194111
|
}
|
|
194051
194112
|
}
|
|
194052
|
-
var STICKY_SESSION_MAX_AGE_MS2, _processStickyFallback2,
|
|
194113
|
+
var STICKY_SESSION_MAX_AGE_MS2, _processStickyFallback2, _cachedProxyAuth2 = null;
|
|
194053
194114
|
var init_proxy_fetch2 = __esm(() => {
|
|
194054
194115
|
init_x402_fetch();
|
|
194055
194116
|
init_failure_cache();
|
|
@@ -201816,7 +201877,7 @@ var init_server = __esm(async () => {
|
|
|
201816
201877
|
} else if (outcome.reason === "opt_out") {
|
|
201817
201878
|
console.error("[kuri-proxy] direct egress (opt-out); kuri runs without --proxy-server");
|
|
201818
201879
|
} else if (outcome.reason === "creds_missing") {
|
|
201819
|
-
console.error("[kuri-proxy] no
|
|
201880
|
+
console.error("[kuri-proxy] no proxy configured — kuri runs direct (set UNBROWSE_PROXY_URL / IProyal creds / UNBROWSE_PROXYKINGDOM_URL to opt in)");
|
|
201820
201881
|
} else if (outcome.reason === "invalid_toggle") {
|
|
201821
201882
|
console.error(`[kuri-proxy] UNBROWSE_KURI_PROXY="${outcome.value}" not recognized — expected auto|1|true|0|false or explicit http://|socks5:// URL`);
|
|
201822
201883
|
}
|
|
@@ -204798,6 +204859,18 @@ function saveInstallSource(metaUrl) {
|
|
|
204798
204859
|
function loadInstallSource(metaUrl) {
|
|
204799
204860
|
return readJsonFile(getInstallSourcePath()) ?? resolveInstallSource(metaUrl);
|
|
204800
204861
|
}
|
|
204862
|
+
var BACKGROUND_UPDATE_SKIP_COMMANDS = new Set([
|
|
204863
|
+
"upgrade",
|
|
204864
|
+
"update",
|
|
204865
|
+
"health",
|
|
204866
|
+
"mcp",
|
|
204867
|
+
"mcp-serve",
|
|
204868
|
+
"serve",
|
|
204869
|
+
"setup",
|
|
204870
|
+
"help",
|
|
204871
|
+
"__drain-queue",
|
|
204872
|
+
"contract-bridge"
|
|
204873
|
+
]);
|
|
204801
204874
|
function commandIncludesHook(command2, marker) {
|
|
204802
204875
|
return typeof command2 === "string" && command2.includes(marker);
|
|
204803
204876
|
}
|
|
@@ -205717,7 +205790,8 @@ import_dotenv.config({ path: ".env.runtime", quiet: true });
|
|
|
205717
205790
|
if (trace)
|
|
205718
205791
|
console.error("[kuri-proxy] direct egress (opt-out); kuri runs without --proxy-server");
|
|
205719
205792
|
} else if (outcome.reason === "creds_missing") {
|
|
205720
|
-
|
|
205793
|
+
if (trace)
|
|
205794
|
+
console.error("[kuri-proxy] no proxy configured \u2014 kuri runs direct (set UNBROWSE_PROXY_URL / IProyal creds / UNBROWSE_PROXYKINGDOM_URL to opt in)");
|
|
205721
205795
|
} else if (outcome.reason === "invalid_toggle") {
|
|
205722
205796
|
console.error(`[kuri-proxy] UNBROWSE_KURI_PROXY="${outcome.value}" not recognized \u2014 expected auto|1|true|0|false or explicit http://|socks5:// URL`);
|
|
205723
205797
|
}
|
|
@@ -210139,6 +210213,9 @@ async function main() {
|
|
|
210139
210213
|
}
|
|
210140
210214
|
}
|
|
210141
210215
|
_maybeSweepQueue().catch(() => {});
|
|
210216
|
+
try {
|
|
210217
|
+
maybeSpawnBackgroundUpdateCheck(import.meta.url, command2);
|
|
210218
|
+
} catch {}
|
|
210142
210219
|
if (Object.keys(cliParams).length > 0) {
|
|
210143
210220
|
flags._params = cliParams;
|
|
210144
210221
|
}
|
|
@@ -210240,75 +210317,41 @@ async function main() {
|
|
|
210240
210317
|
}
|
|
210241
210318
|
await refreshContributionPreferenceFromServer(false);
|
|
210242
210319
|
const KNOWN_COMMANDS = new Set([
|
|
210320
|
+
...CLI_REFERENCE.commands.map((c) => c.name),
|
|
210321
|
+
...Object.keys(DEPRECATED_VERBS),
|
|
210243
210322
|
"health",
|
|
210244
210323
|
"mcp",
|
|
210245
|
-
"setup",
|
|
210246
|
-
"resolve",
|
|
210247
|
-
"run",
|
|
210248
|
-
"execute",
|
|
210249
|
-
"exec",
|
|
210250
|
-
"create",
|
|
210251
|
-
"act",
|
|
210252
|
-
"read",
|
|
210253
|
-
"connect-chrome",
|
|
210254
|
-
"stats",
|
|
210255
|
-
"flywheel",
|
|
210256
|
-
"earnings",
|
|
210257
|
-
"billing",
|
|
210258
|
-
"telemetry",
|
|
210259
|
-
"corpus-test",
|
|
210260
|
-
"corpus-run",
|
|
210261
|
-
"sessions-scan",
|
|
210262
|
-
"cache-clear",
|
|
210263
|
-
"register",
|
|
210264
|
-
"mode",
|
|
210265
|
-
"payment-provider",
|
|
210266
|
-
"account",
|
|
210267
|
-
"dashboard",
|
|
210268
|
-
"capture",
|
|
210269
210324
|
"status",
|
|
210270
|
-
"inspect",
|
|
210271
210325
|
"stop",
|
|
210272
210326
|
"restart",
|
|
210273
210327
|
"serve",
|
|
210274
210328
|
"upgrade",
|
|
210275
210329
|
"update",
|
|
210276
|
-
"
|
|
210277
|
-
"
|
|
210278
|
-
"
|
|
210279
|
-
"
|
|
210280
|
-
"
|
|
210281
|
-
"
|
|
210282
|
-
"
|
|
210283
|
-
"
|
|
210284
|
-
"
|
|
210285
|
-
"scroll",
|
|
210286
|
-
"screenshot",
|
|
210287
|
-
"text",
|
|
210288
|
-
"markdown",
|
|
210289
|
-
"cookies",
|
|
210330
|
+
"create",
|
|
210331
|
+
"act",
|
|
210332
|
+
"read",
|
|
210333
|
+
"exec",
|
|
210334
|
+
"fb",
|
|
210335
|
+
"contract",
|
|
210336
|
+
"contract-bridge",
|
|
210337
|
+
"contribute",
|
|
210338
|
+
"sandbox-replay",
|
|
210290
210339
|
"wallet",
|
|
210291
|
-
"
|
|
210292
|
-
"
|
|
210293
|
-
"
|
|
210294
|
-
"
|
|
210295
|
-
"
|
|
210296
|
-
"
|
|
210297
|
-
"stats",
|
|
210298
|
-
"flywheel",
|
|
210299
|
-
"earnings",
|
|
210340
|
+
"auth-capture",
|
|
210341
|
+
"login",
|
|
210342
|
+
"browse-cookies",
|
|
210343
|
+
"register",
|
|
210344
|
+
"mode",
|
|
210345
|
+
"payment-provider",
|
|
210300
210346
|
"billing",
|
|
210301
210347
|
"telemetry",
|
|
210348
|
+
"cache-clear",
|
|
210349
|
+
"sessions-scan",
|
|
210302
210350
|
"corpus-test",
|
|
210303
210351
|
"corpus-run",
|
|
210304
|
-
"
|
|
210305
|
-
"
|
|
210306
|
-
"
|
|
210307
|
-
"mode",
|
|
210308
|
-
"account",
|
|
210309
|
-
"dashboard",
|
|
210310
|
-
"capture",
|
|
210311
|
-
"contract-bridge"
|
|
210352
|
+
"flywheel",
|
|
210353
|
+
"earnings",
|
|
210354
|
+
"connect-chrome"
|
|
210312
210355
|
]);
|
|
210313
210356
|
if (!KNOWN_COMMANDS.has(command2)) {
|
|
210314
210357
|
const pack = findSitePack(command2);
|
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.6", BUILD_GIT_SHA = "cda0319ecbae", BUILD_CODE_HASH = "5d9ebf619c61", BUILD_RELEASE_MANIFEST_BASE64 = "eyJzY2hlbWFfdmVyc2lvbiI6MSwicmVsZWFzZV92ZXJzaW9uIjoiOS4zLjYiLCJnaXRfc2hhIjoiY2RhMDMxOWVjYmFlIiwiY29kZV9oYXNoIjoiNWQ5ZWJmNjE5YzYxIiwidHJhY2VfdmVyc2lvbiI6IjVkOWViZjYxOWM2MUBjZGEwMzE5ZWNiYWUiLCJpc3N1ZWRfYXQiOiIyMDI2LTA2LTE1VDA2OjI4OjA4LjAwN1oifQ", BUILD_RELEASE_MANIFEST_SIGNATURE = "7i1jjWajzOwxL3KzVQjQWXZdtZaPXBlj_MiF1hw9MPc", 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";
|
|
@@ -96627,8 +96627,7 @@ __export(exports_proxy_fetch, {
|
|
|
96627
96627
|
resolveEgressProxy: () => resolveEgressProxy,
|
|
96628
96628
|
proxiedFetchOnce: () => proxiedFetchOnce,
|
|
96629
96629
|
iproyalStickySuffix: () => iproyalStickySuffix,
|
|
96630
|
-
egressProxyArg: () => egressProxyArg
|
|
96631
|
-
PROXYKINGDOM_DEFAULT_URL: () => PROXYKINGDOM_DEFAULT_URL
|
|
96630
|
+
egressProxyArg: () => egressProxyArg
|
|
96632
96631
|
});
|
|
96633
96632
|
import { randomBytes as randomBytes4 } from "node:crypto";
|
|
96634
96633
|
import { readFileSync as readFileSync15, writeFileSync as writeFileSync10, mkdirSync as mkdirSync12, statSync as statSync2 } from "node:fs";
|
|
@@ -96704,10 +96703,11 @@ function resolveEgressProxy(env = process.env) {
|
|
|
96704
96703
|
if (iproyal)
|
|
96705
96704
|
return iproyal;
|
|
96706
96705
|
const override = env.UNBROWSE_PROXYKINGDOM_URL?.trim();
|
|
96707
|
-
|
|
96708
|
-
if (peekFailure(pk, "proxy") === "structural")
|
|
96706
|
+
if (!override)
|
|
96709
96707
|
return;
|
|
96710
|
-
|
|
96708
|
+
if (peekFailure(override, "proxy") === "structural")
|
|
96709
|
+
return;
|
|
96710
|
+
return override;
|
|
96711
96711
|
}
|
|
96712
96712
|
function egressProxyArg(env = process.env) {
|
|
96713
96713
|
const url = resolveEgressProxy(env);
|
|
@@ -96807,7 +96807,7 @@ async function x402ProxyAuthorization(proxyUrl = resolveEgressProxy()) {
|
|
|
96807
96807
|
};
|
|
96808
96808
|
}
|
|
96809
96809
|
}
|
|
96810
|
-
var STICKY_SESSION_MAX_AGE_MS, _processStickyFallback,
|
|
96810
|
+
var STICKY_SESSION_MAX_AGE_MS, _processStickyFallback, _cachedProxyAuth = null;
|
|
96811
96811
|
var init_proxy_fetch = __esm(() => {
|
|
96812
96812
|
init_x402_fetch();
|
|
96813
96813
|
init_failure_cache();
|
|
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-
|
|
5
|
+
"built_at": "2026-06-15T06:10:25.429Z",
|
|
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": "5cebf85e7901cd86252219a1599e8b63f53dc7e14674d4361162684076fdf135"
|
|
25
25
|
},
|
|
26
26
|
"win-x64": {
|
|
27
27
|
"zig_target": "x86_64-windows-gnu",
|
|
28
|
-
"sha256": "
|
|
28
|
+
"sha256": "2cbfc1317a6503169afb3d4487fda8ae7d10d7520960be682c90079aec049c2f",
|
|
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": "a8eb0fb5ddf1275e16dd85ff183d179606586b57af6444dacc140b4e8f829023"
|
|
37
37
|
},
|
|
38
38
|
"darwin-x64": {
|
|
39
39
|
"zig_target": "x86_64-macos",
|
|
40
40
|
"lib": "libkuri_ffi.dylib",
|
|
41
|
-
"sha256": "
|
|
41
|
+
"sha256": "b43e9af87008ad904611dd7f038113450a243eff70e6065848f12c5dc75b93c4"
|
|
42
42
|
},
|
|
43
43
|
"linux-arm64": {
|
|
44
44
|
"zig_target": "aarch64-linux",
|
|
45
45
|
"lib": "libkuri_ffi.so",
|
|
46
|
-
"sha256": "
|
|
46
|
+
"sha256": "fa676b2054172e1f7056106024f904677a7bfdb76d71cc852dbc38b83809ca3c"
|
|
47
47
|
},
|
|
48
48
|
"linux-x64": {
|
|
49
49
|
"zig_target": "x86_64-linux",
|
|
50
50
|
"lib": "libkuri_ffi.so",
|
|
51
|
-
"sha256": "
|
|
51
|
+
"sha256": "d95ff3dbcfb4d0e1a9bba3e0906dadedfee3de227b0c2a858786b903a750f675"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}
|
|
Binary file
|