@opencode/browse 0.0.11-dev.73 → 0.0.11-dev.74
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-pqwk0593.mjs → cli-a7k2dxdn.mjs} +9 -9
- package/dist/cli.mjs +9 -9
- package/dist/{helpers-w2qyckdd.mjs → helpers-84e9b406.mjs} +2 -2
- package/dist/{main-rm734baq.mjs → main-2bb5sfft.mjs} +3 -3
- package/dist/{main-2v53xfxr.mjs → main-2d1fteqw.mjs} +1 -1
- package/dist/{main-rnc3f5wr.mjs → main-43zcz56n.mjs} +3 -3
- package/dist/{main-5fwb3tjm.mjs → main-7dpg0mjz.mjs} +3 -3
- package/dist/main-7zgqqv4q.mjs +4 -0
- package/dist/{main-6nwq3ezr.mjs → main-fp9pzxmb.mjs} +2 -2
- package/dist/{main-gcmshzpr.mjs → main-q5y16xa8.mjs} +3 -3
- package/dist/{main-mkt65nqy.mjs → main-qdrd6jck.mjs} +2 -2
- package/dist/{mcp-6d2jsged.mjs → mcp-v0nqt3b0.mjs} +6 -6
- package/dist/{relay-f035x14b.mjs → relay-pbt8dmpa.mjs} +31 -8
- package/dist/{runtime-update-5p996ppb.mjs → runtime-update-nhpkbvt2.mjs} +4 -4
- package/dist/{setup-ckx80s7r.mjs → setup-gt8mrdn6.mjs} +5 -5
- package/dist/{supervisor-rt8fh19g.mjs → supervisor-w0t2qaej.mjs} +3 -3
- package/dist/{update-7gcjgsnj.mjs → update-0ssj6chm.mjs} +3 -3
- package/dist/{version-4jkmgcvm.mjs → version-1mzgjxcn.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-wyynrqg7.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-7zgqqv4q.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-2bb5sfft.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-q5y16xa8.mjs";
|
|
145
|
+
import"./main-2d1fteqw.mjs";
|
|
146
146
|
import {
|
|
147
147
|
updateJson2,
|
|
148
148
|
formatUpdateNotice2,
|
|
149
149
|
updateNotice2
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-qdrd6jck.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-43zcz56n.mjs";
|
|
159
159
|
import {
|
|
160
160
|
defaultJournalBaseDir,
|
|
161
161
|
readJournalEntries,
|
|
162
162
|
formatJournalEntry
|
|
163
|
-
} from "./main-
|
|
163
|
+
} from "./main-7dpg0mjz.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-v0nqt3b0.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-pbt8dmpa.mjs"), import("./helpers-84e9b406.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.11-dev.
|
|
5
|
+
var embeddedVersion = "0.0.11-dev.74";
|
|
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-1mzgjxcn.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-w0t2qaej.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-0dcypq31.mjs");
|
|
18
|
-
const { runMcpServer } = await import("./mcp-
|
|
18
|
+
const { runMcpServer } = await import("./mcp-v0nqt3b0.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-nhpkbvt2.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-0ssj6chm.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-gt8mrdn6.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-gt8mrdn6.mjs");
|
|
63
63
|
printSetupStatus();
|
|
64
64
|
}
|
|
65
|
-
const { runCli } = await import("./cli-
|
|
65
|
+
const { runCli } = await import("./cli-a7k2dxdn.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-q5y16xa8.mjs";
|
|
35
|
+
import"./main-2d1fteqw.mjs";
|
|
36
36
|
import"./main-mrew6jy8.mjs";
|
|
37
37
|
export {
|
|
38
38
|
HttpRouteError2 as HttpRouteError,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-7zgqqv4q.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.11-dev.
|
|
56
|
+
return { kind: "npm", version: "0.0.11-dev.74" };
|
|
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.11-dev.
|
|
76
|
+
function devExtension(baked = { file: "browse-extension-0.0.11-dev.74.zip", sha256: "09109424c65ccb196fcf3a2ec160c8b123c9b0d7cbb95274a2d7ed5be6680b1c", size: 182615 }) {
|
|
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}`;
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
parseTargetSelection2,
|
|
12
12
|
getObject2,
|
|
13
13
|
getString2
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-q5y16xa8.mjs";
|
|
15
15
|
import {
|
|
16
16
|
isNodeError,
|
|
17
17
|
writeJsonFileAtomically
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-2d1fteqw.mjs";
|
|
19
19
|
import {
|
|
20
20
|
getStackTraceLimit,
|
|
21
21
|
setStackTraceLimit,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
import {
|
|
130
130
|
dataRoot,
|
|
131
131
|
cliCommand
|
|
132
|
-
} from "./main-
|
|
132
|
+
} from "./main-2bb5sfft.mjs";
|
|
133
133
|
|
|
134
134
|
// node_modules/effect/dist/Semaphore.js
|
|
135
135
|
var makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isNodeError
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-2d1fteqw.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-q5y16xa8.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isSome,
|
|
9
9
|
decodeUnknownOption,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./main-gevbt7h7.mjs";
|
|
18
18
|
import {
|
|
19
19
|
dataRoot
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-2bb5sfft.mjs";
|
|
21
21
|
|
|
22
22
|
// src/session-manager/journal.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-2d1fteqw.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
devExtensionUrl,
|
|
7
7
|
devExtensionFolder
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-2bb5sfft.mjs";
|
|
9
9
|
|
|
10
10
|
// src/relay/browser-pairing.ts
|
|
11
11
|
import crypto from "node:crypto";
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./main-mrew6jy8.mjs";
|
|
8
8
|
import {
|
|
9
9
|
relayAuthorization
|
|
10
|
-
} from "./main-
|
|
10
|
+
} from "./main-2d1fteqw.mjs";
|
|
11
11
|
import {
|
|
12
12
|
assignProperty,
|
|
13
13
|
PipeInspectableProto,
|
|
@@ -110,14 +110,14 @@ import {
|
|
|
110
110
|
} from "./main-gevbt7h7.mjs";
|
|
111
111
|
import {
|
|
112
112
|
opencodeBrowserBuildId2
|
|
113
|
-
} from "./main-
|
|
113
|
+
} from "./main-7zgqqv4q.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-2bb5sfft.mjs";
|
|
121
121
|
import {
|
|
122
122
|
dual,
|
|
123
123
|
memoize,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
compareVersions,
|
|
7
7
|
npmRuntime,
|
|
8
8
|
autoUpdateStatus
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-2bb5sfft.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-nhpkbvt2.mjs");
|
|
319
319
|
if (await runNpmUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -258,11 +258,11 @@ import {
|
|
|
258
258
|
} from "./main-gevbt7h7.mjs";
|
|
259
259
|
import {
|
|
260
260
|
opencodeBrowserVersion2
|
|
261
|
-
} from "./main-
|
|
261
|
+
} from "./main-7zgqqv4q.mjs";
|
|
262
262
|
import {
|
|
263
263
|
cliCommand,
|
|
264
264
|
autoUpdateStatus
|
|
265
|
-
} from "./main-
|
|
265
|
+
} from "./main-2bb5sfft.mjs";
|
|
266
266
|
import"./main-mrew6jy8.mjs";
|
|
267
267
|
import {
|
|
268
268
|
option,
|
|
@@ -290,12 +290,12 @@ import {
|
|
|
290
290
|
relayBuildProblem,
|
|
291
291
|
ensureRelay,
|
|
292
292
|
ensureExtensionConnected
|
|
293
|
-
} from "./main-
|
|
294
|
-
import"./main-
|
|
293
|
+
} from "./main-q5y16xa8.mjs";
|
|
294
|
+
import"./main-2d1fteqw.mjs";
|
|
295
295
|
import {
|
|
296
296
|
updateJson2,
|
|
297
297
|
createUpdateWatcher2
|
|
298
|
-
} from "./main-
|
|
298
|
+
} from "./main-qdrd6jck.mjs";
|
|
299
299
|
import {
|
|
300
300
|
makeUnsafe,
|
|
301
301
|
make,
|
|
@@ -377,7 +377,7 @@ import {
|
|
|
377
377
|
mcpErrorMessage2,
|
|
378
378
|
toolResult,
|
|
379
379
|
listSecrets
|
|
380
|
-
} from "./main-
|
|
380
|
+
} from "./main-43zcz56n.mjs";
|
|
381
381
|
import {
|
|
382
382
|
Clock,
|
|
383
383
|
type,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-7zgqqv4q.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-2bb5sfft.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-2d1fteqw.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-q5y16xa8.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-fp9pzxmb.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-43zcz56n.mjs";
|
|
152
152
|
import {
|
|
153
153
|
defaultJournalBaseDir,
|
|
154
154
|
makeJournalEntry,
|
|
155
155
|
appendJournalEntry,
|
|
156
156
|
startJournalRetention
|
|
157
|
-
} from "./main-
|
|
157
|
+
} from "./main-7dpg0mjz.mjs";
|
|
158
158
|
import {
|
|
159
159
|
createUpdateWatcher2
|
|
160
|
-
} from "./main-
|
|
160
|
+
} from "./main-qdrd6jck.mjs";
|
|
161
161
|
import {
|
|
162
162
|
isNone,
|
|
163
163
|
isSome,
|
|
@@ -15568,6 +15568,12 @@ function createExtensionEventHandler(options) {
|
|
|
15568
15568
|
import crypto8 from "node:crypto";
|
|
15569
15569
|
import fs13 from "node:fs";
|
|
15570
15570
|
import { WebSocket as WebSocket3 } from "ws";
|
|
15571
|
+
var maxPreAuthMessageBytes = 64 * 1024;
|
|
15572
|
+
var preAuthHandshakeTimeoutMs = 1e4;
|
|
15573
|
+
function rawDataByteLength(data) {
|
|
15574
|
+
return Array.isArray(data) ? data.reduce((total, chunk) => total + chunk.byteLength, 0) : data.byteLength;
|
|
15575
|
+
}
|
|
15576
|
+
|
|
15571
15577
|
class ExtensionHandshake {
|
|
15572
15578
|
options;
|
|
15573
15579
|
pairingFailures = 0;
|
|
@@ -15679,6 +15685,13 @@ class ExtensionHandshake {
|
|
|
15679
15685
|
let link;
|
|
15680
15686
|
const computer = computerName(request);
|
|
15681
15687
|
let waiting;
|
|
15688
|
+
const handshakeTimer = setTimeout(() => {
|
|
15689
|
+
if (handshaken)
|
|
15690
|
+
return;
|
|
15691
|
+
relayLog("extension.rejected", { reason: "handshake timeout", ms: preAuthHandshakeTimeoutMs });
|
|
15692
|
+
socket.close(1008, "Handshake timed out");
|
|
15693
|
+
}, preAuthHandshakeTimeoutMs);
|
|
15694
|
+
handshakeTimer.unref();
|
|
15682
15695
|
const handle = (data, isBinary) => {
|
|
15683
15696
|
if (!link || browsers.ofSocket(socket) !== link || !link.rpc.acceptsEvents)
|
|
15684
15697
|
return;
|
|
@@ -15695,6 +15708,14 @@ class ExtensionHandshake {
|
|
|
15695
15708
|
};
|
|
15696
15709
|
let challenge;
|
|
15697
15710
|
socket.on("message", (data, isBinary) => {
|
|
15711
|
+
if (!handshaken) {
|
|
15712
|
+
const bytes = rawDataByteLength(data);
|
|
15713
|
+
if (bytes > maxPreAuthMessageBytes) {
|
|
15714
|
+
relayLog("extension.rejected", { reason: "message too large before pairing", bytes });
|
|
15715
|
+
socket.close(1009, "Message too large before pairing");
|
|
15716
|
+
return;
|
|
15717
|
+
}
|
|
15718
|
+
}
|
|
15698
15719
|
try {
|
|
15699
15720
|
if (waiting) {
|
|
15700
15721
|
waiting.push({ data, isBinary });
|
|
@@ -15746,6 +15767,7 @@ class ExtensionHandshake {
|
|
|
15746
15767
|
if (challenge.issue)
|
|
15747
15768
|
issueBrowserToken(challenge.key, undefined, Date.now(), challenge.issue);
|
|
15748
15769
|
handshaken = true;
|
|
15770
|
+
clearTimeout(handshakeTimer);
|
|
15749
15771
|
this.hasPairedBrowser = true;
|
|
15750
15772
|
this.lastUnpaired = this.lastRefused = 0;
|
|
15751
15773
|
const hello = challenge.hello;
|
|
@@ -15779,6 +15801,7 @@ class ExtensionHandshake {
|
|
|
15779
15801
|
relayLog("extension.error", { error: error.message, code: error.code });
|
|
15780
15802
|
});
|
|
15781
15803
|
socket.on("close", (code, reason) => {
|
|
15804
|
+
clearTimeout(handshakeTimer);
|
|
15782
15805
|
const gone = browsers.disconnect(socket);
|
|
15783
15806
|
relayLog("extension.close", { code, reason: reason.toString() || undefined, browser: gone?.id, current: gone !== undefined });
|
|
15784
15807
|
if (gone) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-7zgqqv4q.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-2bb5sfft.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-q5y16xa8.mjs";
|
|
29
|
+
import"./main-2d1fteqw.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-7zgqqv4q.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-2bb5sfft.mjs";
|
|
30
30
|
import {
|
|
31
31
|
relayAuthorization
|
|
32
|
-
} from "./main-
|
|
32
|
+
} from "./main-2d1fteqw.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-fp9pzxmb.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-nhpkbvt2.mjs");
|
|
12151
12151
|
return runRollback(args);
|
|
12152
12152
|
}
|
|
12153
12153
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-7zgqqv4q.mjs";
|
|
2
2
|
import {
|
|
3
3
|
versionEntry,
|
|
4
4
|
readCurrent,
|
|
5
5
|
npmRuntime
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-2bb5sfft.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-a7k2dxdn.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-
|
|
7
|
+
} from "./main-qdrd6jck.mjs";
|
|
8
8
|
import"./main-mrew6jy8.mjs";
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
import"./main-2bb5sfft.mjs";
|
|
10
|
+
import"./main-7zgqqv4q.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/dist/main-wyynrqg7.mjs
DELETED