@opencode/browse 0.0.10-dev.66 → 0.0.10-dev.67
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-kxyjvmt1.mjs → cli-qrjme0am.mjs} +9 -9
- package/dist/cli.mjs +9 -9
- package/dist/coreBundle-v82htk0w.mjs +9 -0
- package/dist/{helpers-662cywqn.mjs → helpers-mp1j877d.mjs} +2 -2
- package/dist/{main-h5qx5nza.mjs → main-3hcsagz7.mjs} +6 -6
- package/dist/{main-kc13f626.mjs → main-675wpqng.mjs} +3 -3
- package/dist/{main-qv7dcz2b.mjs → main-9156hx8a.mjs} +2 -2
- package/dist/{main-yxwq9jnw.mjs → main-fwv9bpgk.mjs} +3 -3
- package/dist/main-s1vp1rjp.mjs +4 -0
- package/dist/{main-z1w7bewk.mjs → main-v4z6qtmx.mjs} +3 -3
- package/dist/{main-zbeke3rx.mjs → main-ww8xvpdv.mjs} +3 -3
- package/dist/{main-g4kf9ber.mjs → main-zwfkvc8r.mjs} +2 -2
- package/dist/{mcp-116a0xjg.mjs → mcp-qgfs63cv.mjs} +6 -6
- package/dist/{relay-m68cmcbx.mjs → relay-mesbs50m.mjs} +20 -19
- package/dist/{runtime-update-4b99yzdt.mjs → runtime-update-x9fmjr34.mjs} +4 -4
- package/dist/{setup-85qjzypy.mjs → setup-3c7y4sqf.mjs} +5 -5
- package/dist/{supervisor-bzqw24d1.mjs → supervisor-yey35sd1.mjs} +3 -3
- package/dist/{update-41g8ds2h.mjs → update-fsfnbweb.mjs} +3 -3
- package/dist/{version-5crpk10z.mjs → version-kdhpx2d9.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-y96wt2ee.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-s1vp1rjp.mjs";
|
|
109
109
|
import {
|
|
110
110
|
dataRoot,
|
|
111
111
|
fromCheckout,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
devExtension,
|
|
116
116
|
installCommand,
|
|
117
117
|
autoUpdateStatus
|
|
118
|
-
} from "./main-
|
|
118
|
+
} from "./main-fwv9bpgk.mjs";
|
|
119
119
|
import {
|
|
120
120
|
extensionProtocolVersion,
|
|
121
121
|
extensionProtocolAdvice
|
|
@@ -141,13 +141,13 @@ import {
|
|
|
141
141
|
ensureExtensionConnected,
|
|
142
142
|
stoppedRelayStatus,
|
|
143
143
|
statusCollections
|
|
144
|
-
} from "./main-
|
|
145
|
-
import"./main-
|
|
144
|
+
} from "./main-675wpqng.mjs";
|
|
145
|
+
import"./main-v4z6qtmx.mjs";
|
|
146
146
|
import {
|
|
147
147
|
updateJson2,
|
|
148
148
|
formatUpdateNotice2,
|
|
149
149
|
updateNotice2
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-zwfkvc8r.mjs";
|
|
151
151
|
import {
|
|
152
152
|
settingKeys,
|
|
153
153
|
formatSettings,
|
|
@@ -155,12 +155,12 @@ import {
|
|
|
155
155
|
addSecret,
|
|
156
156
|
listSecrets,
|
|
157
157
|
removeSecret
|
|
158
|
-
} from "./main-
|
|
158
|
+
} from "./main-3hcsagz7.mjs";
|
|
159
159
|
import {
|
|
160
160
|
defaultJournalBaseDir,
|
|
161
161
|
readJournalEntries,
|
|
162
162
|
formatJournalEntry
|
|
163
|
-
} from "./main-
|
|
163
|
+
} from "./main-ww8xvpdv.mjs";
|
|
164
164
|
import {
|
|
165
165
|
pipeArguments,
|
|
166
166
|
dual,
|
|
@@ -5856,7 +5856,7 @@ var status = make("status", {
|
|
|
5856
5856
|
}
|
|
5857
5857
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5858
5858
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5859
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5859
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-qgfs63cv.mjs"));
|
|
5860
5860
|
yield* runMcpServer;
|
|
5861
5861
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5862
5862
|
registerCliCommand(400, () => tabs);
|
|
@@ -6304,7 +6304,7 @@ registerCliCommand(710, () => flightRecorder);
|
|
|
6304
6304
|
|
|
6305
6305
|
// src/cli/relay.ts
|
|
6306
6306
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
6307
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
6307
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-mesbs50m.mjs"), import("./helpers-mp1j877d.mjs")]));
|
|
6308
6308
|
const port = yield* portConfig;
|
|
6309
6309
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
6310
6310
|
yield* scoped(gen(function* () {
|
package/dist/cli.mjs
CHANGED
|
@@ -2,29 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
// src/main.ts
|
|
4
4
|
import path from "node:path";
|
|
5
|
-
var embeddedVersion = "0.0.10-dev.
|
|
5
|
+
var embeddedVersion = "0.0.10-dev.67";
|
|
6
6
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "rollback", "set"]);
|
|
7
7
|
var command = process.argv[2];
|
|
8
8
|
var invokedAs = path.basename(process.argv[1] ?? "");
|
|
9
9
|
if (command === "--version" || command === "-v") {
|
|
10
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
10
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-kdhpx2d9.mjs")).opencodeBrowserVersion;
|
|
11
11
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
12
12
|
`);
|
|
13
13
|
} else if (command === "mcp" && globalThis.__OPENCODE_BROWSER_COMPILED__ && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1") {
|
|
14
|
-
const { runBinaryMcp } = await import("./supervisor-
|
|
14
|
+
const { runBinaryMcp } = await import("./supervisor-yey35sd1.mjs");
|
|
15
15
|
await runBinaryMcp(process.argv.slice(3));
|
|
16
16
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
17
17
|
const { NodeRuntime } = await import("./index-8v65jg3n.mjs");
|
|
18
|
-
const { runMcpServer } = await import("./mcp-
|
|
18
|
+
const { runMcpServer } = await import("./mcp-qgfs63cv.mjs");
|
|
19
19
|
runMcpServer.pipe(NodeRuntime.runMain);
|
|
20
20
|
} else if (command === "runtime-install" || command === "runtime-switch") {
|
|
21
|
-
const { runRuntimeInstall, runRuntimeSwitch } = await import("./runtime-update-
|
|
21
|
+
const { runRuntimeInstall, runRuntimeSwitch } = await import("./runtime-update-x9fmjr34.mjs");
|
|
22
22
|
await (command === "runtime-install" ? runRuntimeInstall : runRuntimeSwitch)(process.argv.slice(3));
|
|
23
23
|
} else if (command === "update") {
|
|
24
|
-
const { runUpdateCommand } = await import("./update-
|
|
24
|
+
const { runUpdateCommand } = await import("./update-fsfnbweb.mjs");
|
|
25
25
|
await runUpdateCommand(process.argv.slice(3));
|
|
26
26
|
} else if (command && setupCommands.has(command)) {
|
|
27
|
-
const { runSetup } = await import("./setup-
|
|
27
|
+
const { runSetup } = await import("./setup-3c7y4sqf.mjs");
|
|
28
28
|
await runSetup(command, process.argv.slice(3));
|
|
29
29
|
} else {
|
|
30
30
|
if (!command || command === "--help" || command === "-h") {
|
|
@@ -59,9 +59,9 @@ if (command === "--version" || command === "-v") {
|
|
|
59
59
|
`);
|
|
60
60
|
}
|
|
61
61
|
if (command === "status" && !process.argv.includes("--json")) {
|
|
62
|
-
const { printSetupStatus } = await import("./setup-
|
|
62
|
+
const { printSetupStatus } = await import("./setup-3c7y4sqf.mjs");
|
|
63
63
|
printSetupStatus();
|
|
64
64
|
}
|
|
65
|
-
const { runCli } = await import("./cli-
|
|
65
|
+
const { runCli } = await import("./cli-qrjme0am.mjs");
|
|
66
66
|
runCli();
|
|
67
67
|
}
|
|
@@ -31,8 +31,8 @@ import {
|
|
|
31
31
|
isRestrictedTarget2,
|
|
32
32
|
isRestrictedUrl2,
|
|
33
33
|
dataUrlDocument2
|
|
34
|
-
} from "./main-
|
|
35
|
-
import"./main-
|
|
34
|
+
} from "./main-675wpqng.mjs";
|
|
35
|
+
import"./main-v4z6qtmx.mjs";
|
|
36
36
|
import"./main-mrew6jy8.mjs";
|
|
37
37
|
export {
|
|
38
38
|
HttpRouteError2 as HttpRouteError,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
parseTargetSelection2,
|
|
3
3
|
getObject2,
|
|
4
4
|
getString2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-675wpqng.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isNodeError,
|
|
8
8
|
writeJsonFileAtomically
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-v4z6qtmx.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getStackTraceLimit,
|
|
12
12
|
setStackTraceLimit,
|
|
@@ -102,10 +102,6 @@ import {
|
|
|
102
102
|
Json,
|
|
103
103
|
JsonObject
|
|
104
104
|
} from "./main-ta3yc4kx.mjs";
|
|
105
|
-
import {
|
|
106
|
-
dataRoot,
|
|
107
|
-
cliCommand
|
|
108
|
-
} from "./main-yxwq9jnw.mjs";
|
|
109
105
|
import {
|
|
110
106
|
pipeArguments,
|
|
111
107
|
identity,
|
|
@@ -118,6 +114,10 @@ import {
|
|
|
118
114
|
isObject,
|
|
119
115
|
hasProperty
|
|
120
116
|
} from "./main-yf9xhpn4.mjs";
|
|
117
|
+
import {
|
|
118
|
+
dataRoot,
|
|
119
|
+
cliCommand
|
|
120
|
+
} from "./main-fwv9bpgk.mjs";
|
|
121
121
|
|
|
122
122
|
// node_modules/effect/dist/Semaphore.js
|
|
123
123
|
var makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./main-mrew6jy8.mjs";
|
|
8
8
|
import {
|
|
9
9
|
relayAuthorization
|
|
10
|
-
} from "./main-
|
|
10
|
+
} from "./main-v4z6qtmx.mjs";
|
|
11
11
|
import {
|
|
12
12
|
assignProperty,
|
|
13
13
|
PipeInspectableProto,
|
|
@@ -110,14 +110,14 @@ import {
|
|
|
110
110
|
} from "./main-ta3yc4kx.mjs";
|
|
111
111
|
import {
|
|
112
112
|
opencodeBrowserBuildId2
|
|
113
|
-
} from "./main-
|
|
113
|
+
} from "./main-s1vp1rjp.mjs";
|
|
114
114
|
import {
|
|
115
115
|
compiledBinary,
|
|
116
116
|
scriptEntry,
|
|
117
117
|
cliCommand,
|
|
118
118
|
installCommand,
|
|
119
119
|
npmRuntime
|
|
120
|
-
} from "./main-
|
|
120
|
+
} from "./main-fwv9bpgk.mjs";
|
|
121
121
|
import {
|
|
122
122
|
dual,
|
|
123
123
|
memoize,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-v4z6qtmx.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
devExtensionUrl,
|
|
7
7
|
devExtensionFolder
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-fwv9bpgk.mjs";
|
|
9
9
|
|
|
10
10
|
// src/relay/browser-pairing.ts
|
|
11
11
|
import crypto from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-s1vp1rjp.mjs";
|
|
4
4
|
|
|
5
5
|
// src/update/auto-update.ts
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -53,7 +53,7 @@ function cliInstall() {
|
|
|
53
53
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
54
54
|
if (fromCheckout())
|
|
55
55
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
56
|
-
return { kind: "npm", version: "0.0.10-dev.
|
|
56
|
+
return { kind: "npm", version: "0.0.10-dev.67" };
|
|
57
57
|
}
|
|
58
58
|
function cliPrefix(install = cliInstall()) {
|
|
59
59
|
if (install.kind === "binary") {
|
|
@@ -73,7 +73,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
73
73
|
return id ? { id } : {};
|
|
74
74
|
}
|
|
75
75
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
76
|
-
function devExtension(baked = { file: "browse-extension-0.0.10-dev.
|
|
76
|
+
function devExtension(baked = { file: "browse-extension-0.0.10-dev.67.zip", sha256: "fedb1dbe1503803a6c72ab1e9b602f25779e445600cb21b1cabe4a66f58a8a66", size: 182517 }) {
|
|
77
77
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
78
78
|
}
|
|
79
79
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isNodeError
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-v4z6qtmx.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-675wpqng.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isSome,
|
|
9
9
|
decodeUnknownOption,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./main-ta3yc4kx.mjs";
|
|
18
18
|
import {
|
|
19
19
|
dataRoot
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-fwv9bpgk.mjs";
|
|
21
21
|
|
|
22
22
|
// src/session-manager/journal.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
compareVersions,
|
|
7
7
|
npmRuntime,
|
|
8
8
|
autoUpdateStatus
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-fwv9bpgk.mjs";
|
|
10
10
|
import {
|
|
11
11
|
unpackedReloadAdvice
|
|
12
12
|
} from "./main-mrew6jy8.mjs";
|
|
@@ -315,7 +315,7 @@ function runUpdate(args, deps) {
|
|
|
315
315
|
async function runUpdateCommand2(args) {
|
|
316
316
|
const log = (line) => process.stdout.write(line + `
|
|
317
317
|
`);
|
|
318
|
-
const { runNpmUpdate } = await import("./runtime-update-
|
|
318
|
+
const { runNpmUpdate } = await import("./runtime-update-x9fmjr34.mjs");
|
|
319
319
|
if (await runNpmUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -259,11 +259,11 @@ import {
|
|
|
259
259
|
} from "./main-ta3yc4kx.mjs";
|
|
260
260
|
import {
|
|
261
261
|
opencodeBrowserVersion2
|
|
262
|
-
} from "./main-
|
|
262
|
+
} from "./main-s1vp1rjp.mjs";
|
|
263
263
|
import {
|
|
264
264
|
cliCommand,
|
|
265
265
|
autoUpdateStatus
|
|
266
|
-
} from "./main-
|
|
266
|
+
} from "./main-fwv9bpgk.mjs";
|
|
267
267
|
import"./main-mrew6jy8.mjs";
|
|
268
268
|
import {
|
|
269
269
|
option,
|
|
@@ -275,12 +275,12 @@ import {
|
|
|
275
275
|
relayBuildProblem,
|
|
276
276
|
ensureRelay,
|
|
277
277
|
ensureExtensionConnected
|
|
278
|
-
} from "./main-
|
|
279
|
-
import"./main-
|
|
278
|
+
} from "./main-675wpqng.mjs";
|
|
279
|
+
import"./main-v4z6qtmx.mjs";
|
|
280
280
|
import {
|
|
281
281
|
updateJson2,
|
|
282
282
|
createUpdateWatcher2
|
|
283
|
-
} from "./main-
|
|
283
|
+
} from "./main-zwfkvc8r.mjs";
|
|
284
284
|
import {
|
|
285
285
|
makeUnsafe,
|
|
286
286
|
make,
|
|
@@ -353,7 +353,7 @@ import {
|
|
|
353
353
|
mcpErrorMessage2,
|
|
354
354
|
toolResult,
|
|
355
355
|
listSecrets
|
|
356
|
-
} from "./main-
|
|
356
|
+
} from "./main-3hcsagz7.mjs";
|
|
357
357
|
import {
|
|
358
358
|
Clock,
|
|
359
359
|
type,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-s1vp1rjp.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
oldStoreMarker,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
setStoredMode,
|
|
20
20
|
autoUpdateStatus,
|
|
21
21
|
createAutoUpdater
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-fwv9bpgk.mjs";
|
|
23
23
|
import {
|
|
24
24
|
extensionProtocolVersion,
|
|
25
25
|
minExtensionProtocolVersion,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
relayToken,
|
|
45
45
|
secretsEqual,
|
|
46
46
|
ensurePrivateDirectory
|
|
47
|
-
} from "./main-
|
|
47
|
+
} from "./main-v4z6qtmx.mjs";
|
|
48
48
|
import {
|
|
49
49
|
withDefault,
|
|
50
50
|
option,
|
|
@@ -98,7 +98,7 @@ import {
|
|
|
98
98
|
isRestrictedTarget2,
|
|
99
99
|
isRestrictedUrl2,
|
|
100
100
|
dataUrlDocument2
|
|
101
|
-
} from "./main-
|
|
101
|
+
} from "./main-675wpqng.mjs";
|
|
102
102
|
import {
|
|
103
103
|
relayHostname,
|
|
104
104
|
isLocalPeer,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
wrapToken,
|
|
121
121
|
installedDevExtension,
|
|
122
122
|
syncDevExtension
|
|
123
|
-
} from "./main-
|
|
123
|
+
} from "./main-9156hx8a.mjs";
|
|
124
124
|
import {
|
|
125
125
|
makeUnsafe,
|
|
126
126
|
SettingsInputError,
|
|
@@ -148,16 +148,16 @@ import {
|
|
|
148
148
|
checkNavigationUrl,
|
|
149
149
|
readSecret,
|
|
150
150
|
secretText
|
|
151
|
-
} from "./main-
|
|
151
|
+
} from "./main-3hcsagz7.mjs";
|
|
152
152
|
import {
|
|
153
153
|
defaultJournalBaseDir,
|
|
154
154
|
makeJournalEntry,
|
|
155
155
|
appendJournalEntry,
|
|
156
156
|
startJournalRetention
|
|
157
|
-
} from "./main-
|
|
157
|
+
} from "./main-ww8xvpdv.mjs";
|
|
158
158
|
import {
|
|
159
159
|
createUpdateWatcher2
|
|
160
|
-
} from "./main-
|
|
160
|
+
} from "./main-zwfkvc8r.mjs";
|
|
161
161
|
import {
|
|
162
162
|
isNone,
|
|
163
163
|
isSome,
|
|
@@ -1719,11 +1719,8 @@ class CdpRuntime {
|
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
1721
|
|
|
1722
|
-
// src/execute.ts
|
|
1723
|
-
import { chromium, errors } from "patchright-core";
|
|
1724
|
-
|
|
1725
1722
|
// src/snapshot/aria-snapshot.ts
|
|
1726
|
-
|
|
1723
|
+
var { selectors } = await import("./coreBundle-v82htk0w.mjs");
|
|
1727
1724
|
var redactionCleanupErrorMessage = "browse could not confirm ARIA snapshot value-redaction cleanup";
|
|
1728
1725
|
var redactionSelectorSource = `({
|
|
1729
1726
|
query(root, body) {
|
|
@@ -9764,9 +9761,6 @@ class Recorder {
|
|
|
9764
9761
|
}
|
|
9765
9762
|
}
|
|
9766
9763
|
|
|
9767
|
-
// src/execute/patchright-tuning.ts
|
|
9768
|
-
import { createRequire } from "node:module";
|
|
9769
|
-
|
|
9770
9764
|
// src/relay/log.ts
|
|
9771
9765
|
import fs7 from "node:fs";
|
|
9772
9766
|
import os5 from "node:os";
|
|
@@ -9795,8 +9789,7 @@ function relayLog(event, fields = {}) {
|
|
|
9795
9789
|
}
|
|
9796
9790
|
|
|
9797
9791
|
// src/execute/patchright-tuning.ts
|
|
9798
|
-
function tunePatchright() {
|
|
9799
|
-
const { server } = createRequire(import.meta.url)("patchright-core/lib/coreBundle");
|
|
9792
|
+
function tunePatchright({ server }) {
|
|
9800
9793
|
const page = server?.Page?.prototype;
|
|
9801
9794
|
const mainFrame = page?.mainFrame;
|
|
9802
9795
|
if (!page || typeof mainFrame !== "function") {
|
|
@@ -9828,7 +9821,8 @@ function tunePatchright() {
|
|
|
9828
9821
|
}
|
|
9829
9822
|
|
|
9830
9823
|
// src/execute.ts
|
|
9831
|
-
|
|
9824
|
+
var { chromium, errors, internals } = await import("./coreBundle-v82htk0w.mjs");
|
|
9825
|
+
tunePatchright(internals);
|
|
9832
9826
|
|
|
9833
9827
|
class ExecuteSandbox extends DefaultPageHost {
|
|
9834
9828
|
options;
|
|
@@ -14583,12 +14577,19 @@ function relayProcessFaultSummary() {
|
|
|
14583
14577
|
};
|
|
14584
14578
|
}
|
|
14585
14579
|
function shouldSuppressRelayProcessFault(cause) {
|
|
14580
|
+
if (isPatchrightProtocolError(cause))
|
|
14581
|
+
return true;
|
|
14586
14582
|
const errorText = cause instanceof Error ? `${cause.message}
|
|
14587
14583
|
${cause.stack ?? ""}` : String(cause);
|
|
14588
14584
|
return /playwright-core|patchright-core|coreBundle|Duplicate target/i.test(errorText);
|
|
14589
14585
|
}
|
|
14586
|
+
function isPatchrightProtocolError(cause) {
|
|
14587
|
+
return cause instanceof Error && Object.hasOwn(cause, "method") && Object.hasOwn(cause, "logs") && "type" in cause && (cause.type === "error" || cause.type === "closed" || cause.type === "crashed");
|
|
14588
|
+
}
|
|
14590
14589
|
function isBenignClosedSessionRejection(cause) {
|
|
14591
|
-
if (!(cause instanceof Error)
|
|
14590
|
+
if (!(cause instanceof Error))
|
|
14591
|
+
return false;
|
|
14592
|
+
if (!isPatchrightProtocolError(cause) && !/patchright-core|playwright-core|coreBundle/.test(cause.stack ?? ""))
|
|
14592
14593
|
return false;
|
|
14593
14594
|
return /^Protocol error \([\w.]+\): .*(session closed|Target closed|Extension disconnected|extension is not connected|Unknown CDP session|Detached while handling command|Relay closed)/i.test(cause.message);
|
|
14594
14595
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-s1vp1rjp.mjs";
|
|
2
2
|
import {
|
|
3
3
|
cliCommand,
|
|
4
4
|
installCommand,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
installVersion,
|
|
19
19
|
pruneVersions,
|
|
20
20
|
switchVersion
|
|
21
|
-
} from "./main-
|
|
21
|
+
} from "./main-fwv9bpgk.mjs";
|
|
22
22
|
import"./main-mrew6jy8.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Service,
|
|
25
25
|
layerFetch,
|
|
26
26
|
restartRelay,
|
|
27
27
|
startManagedRelay
|
|
28
|
-
} from "./main-
|
|
29
|
-
import"./main-
|
|
28
|
+
} from "./main-675wpqng.mjs";
|
|
29
|
+
import"./main-v4z6qtmx.mjs";
|
|
30
30
|
import {
|
|
31
31
|
succeed6,
|
|
32
32
|
suspend2,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-s1vp1rjp.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
oldStoreMarker,
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
installVersion,
|
|
27
27
|
pruneVersions,
|
|
28
28
|
switchVersion
|
|
29
|
-
} from "./main-
|
|
29
|
+
} from "./main-fwv9bpgk.mjs";
|
|
30
30
|
import {
|
|
31
31
|
relayAuthorization
|
|
32
|
-
} from "./main-
|
|
32
|
+
} from "./main-v4z6qtmx.mjs";
|
|
33
33
|
import {
|
|
34
34
|
parseHostname,
|
|
35
35
|
readRelayConfig,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
legacyPairingCode,
|
|
47
47
|
removeLegacyPairingCode,
|
|
48
48
|
syncDevExtension
|
|
49
|
-
} from "./main-
|
|
49
|
+
} from "./main-9156hx8a.mjs";
|
|
50
50
|
import {
|
|
51
51
|
unpackedExtensionId,
|
|
52
52
|
extensionProtocolSkew,
|
|
@@ -12147,7 +12147,7 @@ async function runSetup(command, args) {
|
|
|
12147
12147
|
if (command === "set")
|
|
12148
12148
|
return set(args);
|
|
12149
12149
|
if (command === "rollback") {
|
|
12150
|
-
const { runRollback } = await import("./runtime-update-
|
|
12150
|
+
const { runRollback } = await import("./runtime-update-x9fmjr34.mjs");
|
|
12151
12151
|
return runRollback(args);
|
|
12152
12152
|
}
|
|
12153
12153
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-s1vp1rjp.mjs";
|
|
2
2
|
import {
|
|
3
3
|
versionEntry,
|
|
4
4
|
readCurrent,
|
|
5
5
|
npmRuntime
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-fwv9bpgk.mjs";
|
|
7
7
|
|
|
8
8
|
// src/mcp/supervisor.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -14,7 +14,7 @@ async function runBinaryMcp(args) {
|
|
|
14
14
|
const runtime = npmRuntime();
|
|
15
15
|
if (!runtime) {
|
|
16
16
|
process.env[directEnvironmentVariable] = "1";
|
|
17
|
-
const { runCli } = await import("./cli-
|
|
17
|
+
const { runCli } = await import("./cli-qrjme0am.mjs");
|
|
18
18
|
return runCli();
|
|
19
19
|
}
|
|
20
20
|
const { layout } = runtime;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
8
|
-
import"./main-yxwq9jnw.mjs";
|
|
9
|
-
import"./main-y96wt2ee.mjs";
|
|
7
|
+
} from "./main-zwfkvc8r.mjs";
|
|
10
8
|
import"./main-mrew6jy8.mjs";
|
|
9
|
+
import"./main-fwv9bpgk.mjs";
|
|
10
|
+
import"./main-s1vp1rjp.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/dist/main-y96wt2ee.mjs
DELETED