@opencode/browse 0.0.9-dev.53 → 0.0.9-dev.59
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-2s0kbpd0.mjs → cli-7wctcbpy.mjs} +10 -10
- package/dist/cli.mjs +9 -9
- package/dist/{helpers-k6ssr91j.mjs → helpers-9xkfe3xa.mjs} +3 -3
- package/dist/main-0q7y0ymc.mjs +4 -0
- package/dist/{main-dvpyp93v.mjs → main-16egrzjs.mjs} +3 -3
- package/dist/{main-b1w24bkh.mjs → main-1gtx0r41.mjs} +3 -3
- package/dist/{main-mka4cjme.mjs → main-2rvzmckc.mjs} +2 -2
- package/dist/{main-verf0stx.mjs → main-7m9y7jra.mjs} +1 -1
- package/dist/{main-4enbz1sk.mjs → main-hjn72apj.mjs} +26 -9
- package/dist/{main-3gthmkzw.mjs → main-mrew6jy8.mjs} +2 -1
- package/dist/{main-18562erp.mjs → main-v9b6bkze.mjs} +3 -3
- package/dist/{main-5e282683.mjs → main-z7px5nh4.mjs} +12 -5
- package/dist/{mcp-veqqzr8c.mjs → mcp-1bqjs504.mjs} +14 -9
- package/dist/{relay-5vygepa3.mjs → relay-xb8rvpzg.mjs} +54 -13
- package/dist/{runtime-update-cwthq9r4.mjs → runtime-update-qva146wy.mjs} +5 -5
- package/dist/{setup-5ecdk44a.mjs → setup-txtrw3qh.mjs} +6 -6
- package/dist/{supervisor-ervana3e.mjs → supervisor-tsb6dh3f.mjs} +3 -3
- package/dist/{update-jzteb8ea.mjs → update-a5cyqst6.mjs} +4 -4
- package/dist/{version-1wnzkqza.mjs → version-8nftn371.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-4k77gxd5.mjs +0 -4
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
opencodeBrowserVersion2,
|
|
107
107
|
opencodeBrowserBuildId2
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-0q7y0ymc.mjs";
|
|
109
109
|
import {
|
|
110
110
|
dataRoot,
|
|
111
111
|
fromCheckout,
|
|
@@ -115,11 +115,11 @@ import {
|
|
|
115
115
|
devExtension,
|
|
116
116
|
installCommand,
|
|
117
117
|
autoUpdateStatus
|
|
118
|
-
} from "./main-
|
|
118
|
+
} from "./main-z7px5nh4.mjs";
|
|
119
119
|
import {
|
|
120
120
|
extensionProtocolVersion,
|
|
121
121
|
extensionProtocolAdvice
|
|
122
|
-
} from "./main-
|
|
122
|
+
} from "./main-mrew6jy8.mjs";
|
|
123
123
|
import {
|
|
124
124
|
option,
|
|
125
125
|
String2,
|
|
@@ -141,13 +141,13 @@ import {
|
|
|
141
141
|
ensureExtensionConnected,
|
|
142
142
|
stoppedRelayStatus,
|
|
143
143
|
statusCollections
|
|
144
|
-
} from "./main-
|
|
145
|
-
import"./main-
|
|
144
|
+
} from "./main-hjn72apj.mjs";
|
|
145
|
+
import"./main-7m9y7jra.mjs";
|
|
146
146
|
import {
|
|
147
147
|
updateJson2,
|
|
148
148
|
formatUpdateNotice2,
|
|
149
149
|
updateNotice2
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-v9b6bkze.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-16egrzjs.mjs";
|
|
159
159
|
import {
|
|
160
160
|
defaultJournalBaseDir,
|
|
161
161
|
readJournalEntries,
|
|
162
162
|
formatJournalEntry
|
|
163
|
-
} from "./main-
|
|
163
|
+
} from "./main-1gtx0r41.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-1bqjs504.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-xb8rvpzg.mjs"), import("./helpers-9xkfe3xa.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.9-dev.
|
|
5
|
+
var embeddedVersion = "0.0.9-dev.59";
|
|
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-8nftn371.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-tsb6dh3f.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-1bqjs504.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-qva146wy.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-a5cyqst6.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-txtrw3qh.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-txtrw3qh.mjs");
|
|
63
63
|
printSetupStatus();
|
|
64
64
|
}
|
|
65
|
-
const { runCli } = await import("./cli-
|
|
65
|
+
const { runCli } = await import("./cli-7wctcbpy.mjs");
|
|
66
66
|
runCli();
|
|
67
67
|
}
|
|
@@ -31,9 +31,9 @@ import {
|
|
|
31
31
|
isRestrictedTarget2,
|
|
32
32
|
isRestrictedUrl2,
|
|
33
33
|
dataUrlDocument2
|
|
34
|
-
} from "./main-
|
|
35
|
-
import"./main-
|
|
36
|
-
import"./main-
|
|
34
|
+
} from "./main-hjn72apj.mjs";
|
|
35
|
+
import"./main-7m9y7jra.mjs";
|
|
36
|
+
import"./main-mrew6jy8.mjs";
|
|
37
37
|
export {
|
|
38
38
|
HttpRouteError2 as HttpRouteError,
|
|
39
39
|
chromeExtensionOriginForPath2 as chromeExtensionOriginForPath,
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
parseTargetSelection2,
|
|
3
3
|
getObject2,
|
|
4
4
|
getString2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-hjn72apj.mjs";
|
|
6
6
|
import {
|
|
7
7
|
isNodeError,
|
|
8
8
|
writeJsonFileAtomically
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-7m9y7jra.mjs";
|
|
10
10
|
import {
|
|
11
11
|
getStackTraceLimit,
|
|
12
12
|
setStackTraceLimit,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
import {
|
|
106
106
|
dataRoot,
|
|
107
107
|
cliCommand
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-z7px5nh4.mjs";
|
|
109
109
|
import {
|
|
110
110
|
pipeArguments,
|
|
111
111
|
identity,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isNodeError
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-7m9y7jra.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-hjn72apj.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-z7px5nh4.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-7m9y7jra.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
devExtensionUrl,
|
|
7
7
|
devExtensionFolder
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-z7px5nh4.mjs";
|
|
9
9
|
|
|
10
10
|
// src/relay/browser-pairing.ts
|
|
11
11
|
import crypto from "node:crypto";
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unpackedExtensionId,
|
|
3
|
+
browserUnresponsive,
|
|
3
4
|
extensionReconnectAlarmPeriodMs,
|
|
4
5
|
extensionProtocolAdvice,
|
|
5
6
|
parseJsonObject
|
|
6
|
-
} from "./main-
|
|
7
|
+
} from "./main-mrew6jy8.mjs";
|
|
7
8
|
import {
|
|
8
9
|
relayAuthorization
|
|
9
|
-
} from "./main-
|
|
10
|
+
} from "./main-7m9y7jra.mjs";
|
|
10
11
|
import {
|
|
11
12
|
assignProperty,
|
|
12
13
|
PipeInspectableProto,
|
|
@@ -40,6 +41,7 @@ import {
|
|
|
40
41
|
fromResult,
|
|
41
42
|
flatMap3,
|
|
42
43
|
andThen,
|
|
44
|
+
tap,
|
|
43
45
|
result,
|
|
44
46
|
map5,
|
|
45
47
|
catch_,
|
|
@@ -108,14 +110,14 @@ import {
|
|
|
108
110
|
} from "./main-ta3yc4kx.mjs";
|
|
109
111
|
import {
|
|
110
112
|
opencodeBrowserBuildId2
|
|
111
|
-
} from "./main-
|
|
113
|
+
} from "./main-0q7y0ymc.mjs";
|
|
112
114
|
import {
|
|
113
115
|
compiledBinary,
|
|
114
116
|
scriptEntry,
|
|
115
117
|
cliCommand,
|
|
116
118
|
installCommand,
|
|
117
119
|
npmRuntime
|
|
118
|
-
} from "./main-
|
|
120
|
+
} from "./main-z7px5nh4.mjs";
|
|
119
121
|
import {
|
|
120
122
|
dual,
|
|
121
123
|
memoize,
|
|
@@ -590,6 +592,7 @@ var ConnectedBrowser = Struct({
|
|
|
590
592
|
name: String3,
|
|
591
593
|
default: Boolean3,
|
|
592
594
|
connected: Boolean3,
|
|
595
|
+
unresponsive: optionalKey(Boolean3),
|
|
593
596
|
version: NullOr(String3),
|
|
594
597
|
tabs: Int2.check(isGreaterThanOrEqualTo2(0))
|
|
595
598
|
});
|
|
@@ -1501,7 +1504,7 @@ class RelayStartFailed extends TaggedError2()("RelayLifecycle.RelayStartFailed",
|
|
|
1501
1504
|
}) {
|
|
1502
1505
|
}
|
|
1503
1506
|
|
|
1504
|
-
class ExtensionDisconnected extends TaggedError2()("RelayLifecycle.ExtensionDisconnected", { message: String3, needsPairing: optionalKey(Boolean3) }) {
|
|
1507
|
+
class ExtensionDisconnected extends TaggedError2()("RelayLifecycle.ExtensionDisconnected", { message: String3, needsPairing: optionalKey(Boolean3), unresponsive: optionalKey(Boolean3) }) {
|
|
1505
1508
|
}
|
|
1506
1509
|
|
|
1507
1510
|
class ExtensionProtocolIncompatible extends TaggedError2()("RelayLifecycle.ExtensionProtocolIncompatible", {
|
|
@@ -1658,9 +1661,23 @@ function isRelayInstanceChanged(error) {
|
|
|
1658
1661
|
var extensionReconnectWaitMs = extensionReconnectAlarmPeriodMs + 5000;
|
|
1659
1662
|
var extensionReconnectProbeMs = 200;
|
|
1660
1663
|
var ensureExtensionConnected = fn("RelayLifecycle.ensureExtensionConnected")(function* (options) {
|
|
1661
|
-
const
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
+
const responsiveStatus = options.relay.extensionStatus.pipe(tap((status) => {
|
|
1665
|
+
const profile = status.sessions?.find((s) => s.id === options.sessionId)?.browser;
|
|
1666
|
+
if (status.browsers?.some((b) => b.unresponsive && (profile ? b.id === profile : !status.connected))) {
|
|
1667
|
+
return fail4(new ExtensionDisconnected({ message: browserUnresponsive, unresponsive: true }));
|
|
1668
|
+
}
|
|
1669
|
+
return void_3;
|
|
1670
|
+
}));
|
|
1671
|
+
const check = responsiveStatus.pipe(flatMap3((status) => {
|
|
1672
|
+
const bound = options.sessionId ? status.sessions?.find((session) => session.id === options.sessionId && session.browser) : undefined;
|
|
1673
|
+
if (bound) {
|
|
1674
|
+
const browser = status.browsers?.find((candidate) => candidate.id === bound.browser);
|
|
1675
|
+
if (!options.waitForReconnect || browser?.connected || status.protocolCompatible === false)
|
|
1676
|
+
return succeed6(status);
|
|
1677
|
+
return fail4(new ExtensionDisconnected({
|
|
1678
|
+
message: `Session ${bound.id} belongs to browser '${bound.browser}', which isn't connected. Reconnect it or start a new session.`,
|
|
1679
|
+
needsPairing: status.pairingState === "refused" || status.pairingState === "unpaired"
|
|
1680
|
+
}));
|
|
1664
1681
|
}
|
|
1665
1682
|
if (status.protocolCompatible === false) {
|
|
1666
1683
|
return fail4(new ExtensionProtocolIncompatible({
|
|
@@ -1685,7 +1702,7 @@ var ensureExtensionConnected = fn("RelayLifecycle.ensureExtensionConnected")(fun
|
|
|
1685
1702
|
}), retry({
|
|
1686
1703
|
times: options.retryTimes ?? Math.ceil(extensionReconnectWaitMs / extensionReconnectProbeMs),
|
|
1687
1704
|
schedule: spaced(options.retryDelayMs ?? extensionReconnectProbeMs),
|
|
1688
|
-
while: (error) => error instanceof ExtensionDisconnected && !error.needsPairing || isRelayStartingOrUnreachable(error)
|
|
1705
|
+
while: (error) => error instanceof ExtensionDisconnected && !error.needsPairing && !error.unresponsive || isRelayStartingOrUnreachable(error)
|
|
1689
1706
|
}));
|
|
1690
1707
|
});
|
|
1691
1708
|
function stoppedRelayStatus(endpoint) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var extensionProtocolVersion = 3;
|
|
3
3
|
var minExtensionProtocolVersion = 3;
|
|
4
4
|
var unpackedExtensionId = "afeafocngkodbmaipcngoamamfmekgfo";
|
|
5
|
+
var browserUnresponsive = "The browser isn't responding (asleep or frozen?). Wake it and try again.";
|
|
5
6
|
var unpackedReloadAdvice = "Reload browse on your browser's extensions page (↻).";
|
|
6
7
|
var checkoutReloadPrefix = "Extension protocol incompatible: extension-older; reload ";
|
|
7
8
|
var extensionReconnectAlarmPeriodMs = 30000;
|
|
@@ -109,4 +110,4 @@ function isJsonObject(value) {
|
|
|
109
110
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
110
111
|
}
|
|
111
112
|
|
|
112
|
-
export { extensionProtocolVersion, minExtensionProtocolVersion, unpackedExtensionId, unpackedReloadAdvice, checkoutReloadPrefix, extensionReconnectAlarmPeriodMs, extensionProtocolCompatibility, extensionProtocolSkew, extensionProtocolAdvice, makePageStatus, parseJsonObject, isCdpRequest, isExtensionResponse, isExtensionEvent, isJsonObject };
|
|
113
|
+
export { extensionProtocolVersion, minExtensionProtocolVersion, unpackedExtensionId, browserUnresponsive, unpackedReloadAdvice, checkoutReloadPrefix, extensionReconnectAlarmPeriodMs, extensionProtocolCompatibility, extensionProtocolSkew, extensionProtocolAdvice, makePageStatus, parseJsonObject, isCdpRequest, isExtensionResponse, isExtensionEvent, isJsonObject };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
compareVersions,
|
|
7
7
|
npmRuntime,
|
|
8
8
|
autoUpdateStatus
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-z7px5nh4.mjs";
|
|
10
10
|
import {
|
|
11
11
|
unpackedReloadAdvice
|
|
12
|
-
} from "./main-
|
|
12
|
+
} from "./main-mrew6jy8.mjs";
|
|
13
13
|
|
|
14
14
|
// src/update.ts
|
|
15
15
|
import { execFile, spawnSync } from "node:child_process";
|
|
@@ -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-qva146wy.mjs");
|
|
319
319
|
if (await runNpmUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-0q7y0ymc.mjs";
|
|
4
4
|
|
|
5
5
|
// src/update/auto-update.ts
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
@@ -70,7 +70,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
70
70
|
return id ? { id } : {};
|
|
71
71
|
}
|
|
72
72
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
73
|
-
function devExtension(baked = { file: "browse-extension-0.0.9-dev.
|
|
73
|
+
function devExtension(baked = { file: "browse-extension-0.0.9-dev.59.zip", sha256: "8ca7eabcd23b1c91f0f59b86b99b9c5a769ef74eb7b49a6f92e8ef81a1a0d3dd", size: 184277 }) {
|
|
74
74
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
75
75
|
}
|
|
76
76
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -502,7 +502,7 @@ function switchVersion(layout, version, previous, binary = compiledBinary() ? re
|
|
|
502
502
|
if (binary && !(version === opencodeBrowserVersion2 && realpath(binary) === realpath(process.execPath)))
|
|
503
503
|
placeBinary(entry, binary);
|
|
504
504
|
writeCurrent(layout, { version, ...previous && previous !== version ? { previous } : {}, channel: channelOf(version), ...binary ? { binary } : {} });
|
|
505
|
-
if (!binary)
|
|
505
|
+
if (!binary || existsSync(layout.shim))
|
|
506
506
|
writeShim(layout);
|
|
507
507
|
}
|
|
508
508
|
function shimSource() {
|
|
@@ -517,12 +517,19 @@ import { fileURLToPath, pathToFileURL } from "node:url"
|
|
|
517
517
|
|
|
518
518
|
const root = path.dirname(path.dirname(fileURLToPath(import.meta.url)))
|
|
519
519
|
const runtime = path.join(root, "runtime")
|
|
520
|
-
const
|
|
520
|
+
const installed = () => JSON.parse(readFileSync(path.join(runtime, "current.json"), "utf8"))
|
|
521
|
+
const current = () => installed().version
|
|
521
522
|
const entry = (version) => path.join(runtime, "versions", version, "node_modules", "@opencode", "browse", "dist", "cli.mjs")
|
|
522
523
|
process.env.OPENCODE_BROWSER_HOME ??= root
|
|
523
524
|
const relayPort = Number(process.env.OPENCODE_BROWSER_PORT) || 19988
|
|
524
525
|
|
|
525
|
-
|
|
526
|
+
const binary = installed().binary
|
|
527
|
+
if (binary) {
|
|
528
|
+
// An agent still runs the npm entry after a binary install. The executable supplies its own MCP supervisor.
|
|
529
|
+
const child = spawn(binary, process.argv.slice(2), { stdio: "inherit" })
|
|
530
|
+
for (const signal of ["SIGTERM", "SIGINT"]) process.on(signal, () => child.kill(signal))
|
|
531
|
+
child.on("exit", (code, signal) => { process.exitCode = code ?? (signal ? 1 : 0) })
|
|
532
|
+
} else if (process.argv[2] !== "mcp") {
|
|
526
533
|
process.argv[1] = entry(current())
|
|
527
534
|
await import(pathToFileURL(entry(current())).href)
|
|
528
535
|
} else {
|
|
@@ -120,6 +120,7 @@ import {
|
|
|
120
120
|
catchTags,
|
|
121
121
|
catchCause,
|
|
122
122
|
catchDefect,
|
|
123
|
+
catchIf,
|
|
123
124
|
catchCauseIf,
|
|
124
125
|
mapError,
|
|
125
126
|
orDie,
|
|
@@ -258,26 +259,27 @@ import {
|
|
|
258
259
|
} from "./main-ta3yc4kx.mjs";
|
|
259
260
|
import {
|
|
260
261
|
opencodeBrowserVersion2
|
|
261
|
-
} from "./main-
|
|
262
|
+
} from "./main-0q7y0ymc.mjs";
|
|
262
263
|
import {
|
|
263
264
|
autoUpdateStatus
|
|
264
|
-
} from "./main-
|
|
265
|
-
import"./main-
|
|
265
|
+
} from "./main-z7px5nh4.mjs";
|
|
266
|
+
import"./main-mrew6jy8.mjs";
|
|
266
267
|
import {
|
|
267
268
|
option,
|
|
268
269
|
String2,
|
|
269
270
|
getObject2,
|
|
271
|
+
RelayRejected,
|
|
270
272
|
Service,
|
|
271
273
|
layerFetchMcp,
|
|
272
274
|
relayBuildProblem,
|
|
273
275
|
ensureRelay,
|
|
274
276
|
ensureExtensionConnected
|
|
275
|
-
} from "./main-
|
|
276
|
-
import"./main-
|
|
277
|
+
} from "./main-hjn72apj.mjs";
|
|
278
|
+
import"./main-7m9y7jra.mjs";
|
|
277
279
|
import {
|
|
278
280
|
updateJson2,
|
|
279
281
|
createUpdateWatcher2
|
|
280
|
-
} from "./main-
|
|
282
|
+
} from "./main-v9b6bkze.mjs";
|
|
281
283
|
import {
|
|
282
284
|
makeUnsafe,
|
|
283
285
|
make,
|
|
@@ -350,7 +352,7 @@ import {
|
|
|
350
352
|
mcpErrorMessage2,
|
|
351
353
|
toolResult,
|
|
352
354
|
listSecrets
|
|
353
|
-
} from "./main-
|
|
355
|
+
} from "./main-16egrzjs.mjs";
|
|
354
356
|
import {
|
|
355
357
|
Clock,
|
|
356
358
|
type,
|
|
@@ -8911,8 +8913,9 @@ registerMcpTools({
|
|
|
8911
8913
|
handle: (input) => gen(function* () {
|
|
8912
8914
|
const args = yield* try_(() => parseExecuteArguments(input));
|
|
8913
8915
|
const sessionId = args.session ?? ctx.currentSession.id;
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
+
const connected = ensureExtensionConnected({ relay: ctx.relay, sessionId, waitForReconnect: true });
|
|
8917
|
+
yield* connected;
|
|
8918
|
+
const run = ctx.relay.execute({
|
|
8916
8919
|
sessionId,
|
|
8917
8920
|
code: args.code,
|
|
8918
8921
|
createIfMissing: !args.session,
|
|
@@ -8920,6 +8923,7 @@ registerMcpTools({
|
|
|
8920
8923
|
...args.targetSelection ? { targetSelection: args.targetSelection } : {},
|
|
8921
8924
|
...args.browser ? { browser: args.browser } : {}
|
|
8922
8925
|
});
|
|
8926
|
+
const result = yield* run.pipe(catchIf((error) => error instanceof RelayRejected && error.code === "browser-unavailable", () => connected.pipe(andThen(run))));
|
|
8923
8927
|
const recreated = !args.session && ctx.currentSession.established && result.session.created === true;
|
|
8924
8928
|
ctx.establishCurrentSession(sessionId);
|
|
8925
8929
|
return {
|
|
@@ -9349,6 +9353,7 @@ registerMcpTools({
|
|
|
9349
9353
|
const readOnly = optionalBooleanField(input, "readOnly");
|
|
9350
9354
|
const allowedOrigins = optionalStringArrayField(input, "allowedOrigins");
|
|
9351
9355
|
const browser = optionalStringField(input, "browser");
|
|
9356
|
+
yield* ensureExtensionConnected({ relay: ctx.relay, waitForReconnect: true });
|
|
9352
9357
|
const session = yield* ctx.relay.sessionNew(requestedId, {
|
|
9353
9358
|
...readOnly ? { readOnly: true } : {},
|
|
9354
9359
|
...allowedOrigins ? { allowedOrigins } : {},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-0q7y0ymc.mjs";
|
|
5
5
|
import {
|
|
6
6
|
dataRoot,
|
|
7
7
|
oldStoreMarker,
|
|
@@ -19,10 +19,11 @@ import {
|
|
|
19
19
|
setStoredMode,
|
|
20
20
|
autoUpdateStatus,
|
|
21
21
|
createAutoUpdater
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-z7px5nh4.mjs";
|
|
23
23
|
import {
|
|
24
24
|
extensionProtocolVersion,
|
|
25
25
|
minExtensionProtocolVersion,
|
|
26
|
+
browserUnresponsive,
|
|
26
27
|
checkoutReloadPrefix,
|
|
27
28
|
extensionProtocolCompatibility,
|
|
28
29
|
extensionProtocolAdvice,
|
|
@@ -32,7 +33,7 @@ import {
|
|
|
32
33
|
isExtensionResponse,
|
|
33
34
|
isExtensionEvent,
|
|
34
35
|
isJsonObject
|
|
35
|
-
} from "./main-
|
|
36
|
+
} from "./main-mrew6jy8.mjs";
|
|
36
37
|
import {
|
|
37
38
|
isNodeError,
|
|
38
39
|
isUnsupportedDirectorySyncError,
|
|
@@ -43,7 +44,7 @@ import {
|
|
|
43
44
|
relayToken,
|
|
44
45
|
secretsEqual,
|
|
45
46
|
ensurePrivateDirectory
|
|
46
|
-
} from "./main-
|
|
47
|
+
} from "./main-7m9y7jra.mjs";
|
|
47
48
|
import {
|
|
48
49
|
withDefault,
|
|
49
50
|
option,
|
|
@@ -97,7 +98,7 @@ import {
|
|
|
97
98
|
isRestrictedTarget2,
|
|
98
99
|
isRestrictedUrl2,
|
|
99
100
|
dataUrlDocument2
|
|
100
|
-
} from "./main-
|
|
101
|
+
} from "./main-hjn72apj.mjs";
|
|
101
102
|
import {
|
|
102
103
|
relayHostname,
|
|
103
104
|
isLocalPeer,
|
|
@@ -119,7 +120,7 @@ import {
|
|
|
119
120
|
wrapToken,
|
|
120
121
|
installedDevExtension,
|
|
121
122
|
syncDevExtension
|
|
122
|
-
} from "./main-
|
|
123
|
+
} from "./main-2rvzmckc.mjs";
|
|
123
124
|
import {
|
|
124
125
|
makeUnsafe,
|
|
125
126
|
SettingsInputError,
|
|
@@ -147,16 +148,16 @@ import {
|
|
|
147
148
|
checkNavigationUrl,
|
|
148
149
|
readSecret,
|
|
149
150
|
secretText
|
|
150
|
-
} from "./main-
|
|
151
|
+
} from "./main-16egrzjs.mjs";
|
|
151
152
|
import {
|
|
152
153
|
defaultJournalBaseDir,
|
|
153
154
|
makeJournalEntry,
|
|
154
155
|
appendJournalEntry,
|
|
155
156
|
startJournalRetention
|
|
156
|
-
} from "./main-
|
|
157
|
+
} from "./main-1gtx0r41.mjs";
|
|
157
158
|
import {
|
|
158
159
|
createUpdateWatcher2
|
|
159
|
-
} from "./main-
|
|
160
|
+
} from "./main-v9b6bkze.mjs";
|
|
160
161
|
import {
|
|
161
162
|
isNone,
|
|
162
163
|
isSome,
|
|
@@ -290,6 +291,8 @@ class ExtensionRpc {
|
|
|
290
291
|
timeouts;
|
|
291
292
|
socket;
|
|
292
293
|
ready = false;
|
|
294
|
+
unresponsive = false;
|
|
295
|
+
replies = 0;
|
|
293
296
|
nextRequestId = 1;
|
|
294
297
|
pendingRequests = new Map;
|
|
295
298
|
livenessProbe;
|
|
@@ -301,7 +304,7 @@ class ExtensionRpc {
|
|
|
301
304
|
this.timeouts = timeouts;
|
|
302
305
|
}
|
|
303
306
|
get connected() {
|
|
304
|
-
return this.socket?.readyState === WebSocket.OPEN && this.ready && this.protocolCompatible !== false;
|
|
307
|
+
return this.socket?.readyState === WebSocket.OPEN && this.ready && !this.unresponsive && this.protocolCompatible !== false;
|
|
305
308
|
}
|
|
306
309
|
get acceptsEvents() {
|
|
307
310
|
return this.socket?.readyState === WebSocket.OPEN && this.protocolCompatible === true;
|
|
@@ -339,6 +342,7 @@ class ExtensionRpc {
|
|
|
339
342
|
this.cancelLivenessProbe();
|
|
340
343
|
this.socket = socket;
|
|
341
344
|
this.ready = false;
|
|
345
|
+
this.unresponsive = false;
|
|
342
346
|
this.version = undefined;
|
|
343
347
|
this.protocolVersion = undefined;
|
|
344
348
|
this.protocolCompatible = undefined;
|
|
@@ -361,7 +365,12 @@ class ExtensionRpc {
|
|
|
361
365
|
pending.reject(error);
|
|
362
366
|
}
|
|
363
367
|
}
|
|
368
|
+
noteResponse() {
|
|
369
|
+
this.replies++;
|
|
370
|
+
this.unresponsive = false;
|
|
371
|
+
}
|
|
364
372
|
handleResponse(response) {
|
|
373
|
+
this.noteResponse();
|
|
365
374
|
const pending = this.pendingRequests.get(response.id);
|
|
366
375
|
if (!pending) {
|
|
367
376
|
return false;
|
|
@@ -385,9 +394,10 @@ class ExtensionRpc {
|
|
|
385
394
|
return void_3;
|
|
386
395
|
}
|
|
387
396
|
const id = this.nextRequestId++;
|
|
397
|
+
const replies = this.replies;
|
|
388
398
|
const message = { ...command, id };
|
|
389
399
|
let completed = false;
|
|
390
|
-
const timeoutMs = awaitsPagePromise(command) ? undefined : command.method === "debugger.sendCommand" ? this.timeouts.debuggerCommandTimeoutMs ?? 60000 : this.timeouts.commandTimeoutMs ?? 15000;
|
|
400
|
+
const timeoutMs = awaitsPagePromise(command) ? undefined : command.method === "ping" ? 4000 : command.method === "debugger.sendCommand" ? this.timeouts.debuggerCommandTimeoutMs ?? 60000 : this.timeouts.commandTimeoutMs ?? 15000;
|
|
391
401
|
const finish = (effect) => {
|
|
392
402
|
if (completed) {
|
|
393
403
|
return;
|
|
@@ -398,6 +408,12 @@ class ExtensionRpc {
|
|
|
398
408
|
resume(effect);
|
|
399
409
|
};
|
|
400
410
|
const timeout = timeoutMs === undefined ? undefined : setTimeout(() => {
|
|
411
|
+
if (command.method === "ping") {
|
|
412
|
+
if (this.replies !== replies)
|
|
413
|
+
return finish(succeed6({}));
|
|
414
|
+
this.unresponsive = true;
|
|
415
|
+
return finish(fail4(new Error(browserUnresponsive)));
|
|
416
|
+
}
|
|
401
417
|
this.probeLiveness(socket);
|
|
402
418
|
finish(fail4(new Error(`Extension command timed out after ${timeoutMs}ms: ${command.method}`)));
|
|
403
419
|
}, timeoutMs);
|
|
@@ -11805,6 +11821,8 @@ function executeInSession(ctx, options) {
|
|
|
11805
11821
|
return yield* sessionError("inactive", `Session is no longer active: ${session.id}`, session.id);
|
|
11806
11822
|
}
|
|
11807
11823
|
yield* trySession(() => ctx.resolveBrowser(options.browser, session));
|
|
11824
|
+
if (session.browser?.key && ctx.hooks.checkBrowserResponsive)
|
|
11825
|
+
yield* ctx.hooks.checkBrowserResponsive(session.browser.key).pipe(mapError((error) => sessionError("browser-unavailable", error.message, session.id)));
|
|
11808
11826
|
started = true;
|
|
11809
11827
|
session.updatedAt = new Date().toISOString();
|
|
11810
11828
|
yield* ctx.setExecuting(session.id, true);
|
|
@@ -15162,6 +15180,7 @@ function createExtensionEventHandler(options) {
|
|
|
15162
15180
|
if (!isExtensionEvent(parsed)) {
|
|
15163
15181
|
return;
|
|
15164
15182
|
}
|
|
15183
|
+
link.rpc.noteResponse();
|
|
15165
15184
|
const message = relayTabIds(link, parsed);
|
|
15166
15185
|
const { socket, generation, announcedRootTabIds, announcedAgentTabIds } = link;
|
|
15167
15186
|
const mine = (tabId) => browsers.ownerKey(tabId) === link.key;
|
|
@@ -15580,6 +15599,8 @@ class ExtensionHandshake {
|
|
|
15580
15599
|
return { error: `Session ${session.id} has no identifiable browser in its saved catalog. Start a new session and select its browser.` };
|
|
15581
15600
|
const bound = browsers.byKey(key);
|
|
15582
15601
|
const belongs = `Session ${session.id} belongs to browser '${bound?.id ?? session.browser?.id ?? key}'`;
|
|
15602
|
+
if (bound?.rpc.unresponsive)
|
|
15603
|
+
return { error: `${belongs}. ${browserUnresponsive}`, unavailable: true };
|
|
15583
15604
|
if (bound?.rpc.protocolCompatible === false)
|
|
15584
15605
|
return { error: `${belongs}. ${extensionProtocolAdvice(bound.rpc.protocolVersion, { install: installCommand() })}` };
|
|
15585
15606
|
if (!bound?.rpc.connected) {
|
|
@@ -15594,6 +15615,8 @@ class ExtensionHandshake {
|
|
|
15594
15615
|
return bound;
|
|
15595
15616
|
}
|
|
15596
15617
|
const link = requested ? browsers.byId(requested) : browsers.defaultLink();
|
|
15618
|
+
if (link?.rpc.unresponsive)
|
|
15619
|
+
return { error: browserUnresponsive, unavailable: true };
|
|
15597
15620
|
if (link)
|
|
15598
15621
|
return link;
|
|
15599
15622
|
const rejected = !browsers.connected && this.rejectedProtocol();
|
|
@@ -15610,7 +15633,7 @@ class ExtensionHandshake {
|
|
|
15610
15633
|
const rejected = link ? undefined : this.rejectedProtocol();
|
|
15611
15634
|
const recent = Date.now() - 65000;
|
|
15612
15635
|
const pairingState = browsers.connected ? "connected" : rejected ? "incompatible" : this.lastRefused > recent ? "refused" : this.lastUnpaired > recent ? "unpaired" : this.hasPairedBrowser ? "paired-offline" : "not-seen";
|
|
15613
|
-
const nextStep = pairingState === "connected" ? undefined : pairingState === "incompatible" ? this.mismatchAdvice(rejected?.version) : pairingState === "refused" || pairingState === "unpaired" ? `${pairingState === "refused" ? "browse refused the pairing attempt" : "browse is installed but not paired"}. Run \`${cliCommand("install")}\` again to pair it, or run \`${cliCommand("pair")}\` and enter the new code in browse's Options.` : pairingState === "paired-offline" ? "Open the browser profile already paired with browse and enable the extension; it reconnects automatically." : `No browser has contacted this relay yet. If browse is installed, open that browser and run \`${cliCommand("install")}\` to pair it. Otherwise ${storeId ? `add browse from ${storeUrl(storeId)}` : `follow the extension steps in \`${installCommand()}\``}.`;
|
|
15636
|
+
const nextStep = pairingState === "connected" ? undefined : link?.rpc.unresponsive ? browserUnresponsive : pairingState === "incompatible" ? this.mismatchAdvice(rejected?.version) : pairingState === "refused" || pairingState === "unpaired" ? `${pairingState === "refused" ? "browse refused the pairing attempt" : "browse is installed but not paired"}. Run \`${cliCommand("install")}\` again to pair it, or run \`${cliCommand("pair")}\` and enter the new code in browse's Options.` : pairingState === "paired-offline" ? "Open the browser profile already paired with browse and enable the extension; it reconnects automatically." : `No browser has contacted this relay yet. If browse is installed, open that browser and run \`${cliCommand("install")}\` to pair it. Otherwise ${storeId ? `add browse from ${storeUrl(storeId)}` : `follow the extension steps in \`${installCommand()}\``}.`;
|
|
15614
15637
|
return {
|
|
15615
15638
|
connected: browsers.connected,
|
|
15616
15639
|
pairingState,
|
|
@@ -15626,6 +15649,7 @@ class ExtensionHandshake {
|
|
|
15626
15649
|
name: browser.name,
|
|
15627
15650
|
default: browser === link,
|
|
15628
15651
|
connected: browser.rpc.connected,
|
|
15652
|
+
...browser.rpc.unresponsive ? { unresponsive: true } : {},
|
|
15629
15653
|
version: browser.rpc.version ?? null,
|
|
15630
15654
|
tabs: registry.listRootTargets().filter((target) => browsers.ownerKey(target.tabId) === browser.key).length
|
|
15631
15655
|
})),
|
|
@@ -16043,7 +16067,20 @@ function createRelayHousekeeping(options) {
|
|
|
16043
16067
|
orphanTimer = setInterval(collectOrphans, Math.max(1000, Math.min(30000, Math.floor(clientGoneGraceMs / 2))));
|
|
16044
16068
|
orphanTimer.unref();
|
|
16045
16069
|
if (keepaliveIntervalMs > 0) {
|
|
16046
|
-
keepaliveTimer = setInterval(() =>
|
|
16070
|
+
keepaliveTimer = setInterval(() => {
|
|
16071
|
+
for (const link of browsers.list()) {
|
|
16072
|
+
if (!link.rpc.connected && !link.rpc.unresponsive)
|
|
16073
|
+
continue;
|
|
16074
|
+
runPromise(link.rpc.send({ method: "ping" })).catch(() => {
|
|
16075
|
+
if (!link.rpc.unresponsive || browsers.byKey(link.key) !== link)
|
|
16076
|
+
return;
|
|
16077
|
+
for (const session of sessions.sessions.values()) {
|
|
16078
|
+
if (session.browser?.key === link.key)
|
|
16079
|
+
sessions.stopExecution(session.id, browserUnresponsive, "browser-unresponsive");
|
|
16080
|
+
}
|
|
16081
|
+
});
|
|
16082
|
+
}
|
|
16083
|
+
}, keepaliveIntervalMs);
|
|
16047
16084
|
keepaliveTimer.unref();
|
|
16048
16085
|
}
|
|
16049
16086
|
if (idleTabTtlMs > 0) {
|
|
@@ -17316,6 +17353,10 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
17316
17353
|
const link = handshake.resolveSessionBrowser(requested, session);
|
|
17317
17354
|
return "error" in link ? link : { id: link.id, key: link.key };
|
|
17318
17355
|
},
|
|
17356
|
+
checkBrowserResponsive: (key) => {
|
|
17357
|
+
const link = browsers.byKey(key);
|
|
17358
|
+
return link ? link.rpc.send({ method: "ping" }).pipe(asVoid2) : fail4(new Error("The browser disconnected before execution."));
|
|
17359
|
+
},
|
|
17319
17360
|
targetBrowserKey: (tabId) => browsers.ownerKey(tabId),
|
|
17320
17361
|
getUserAttachedPageUrls: (session) => registry.listRootTargets().filter((target) => target.owner === "user" && browsers.ownerKey(target.tabId) === session.browser?.key).map((target) => target.targetInfo.url || "about:blank"),
|
|
17321
17362
|
executeTimeoutMs,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-0q7y0ymc.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-
|
|
22
|
-
import"./main-
|
|
21
|
+
} from "./main-z7px5nh4.mjs";
|
|
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-hjn72apj.mjs";
|
|
29
|
+
import"./main-7m9y7jra.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-0q7y0ymc.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-z7px5nh4.mjs";
|
|
30
30
|
import {
|
|
31
31
|
relayAuthorization
|
|
32
|
-
} from "./main-
|
|
32
|
+
} from "./main-7m9y7jra.mjs";
|
|
33
33
|
import {
|
|
34
34
|
parseHostname,
|
|
35
35
|
readRelayConfig,
|
|
@@ -46,12 +46,12 @@ import {
|
|
|
46
46
|
legacyPairingCode,
|
|
47
47
|
removeLegacyPairingCode,
|
|
48
48
|
syncDevExtension
|
|
49
|
-
} from "./main-
|
|
49
|
+
} from "./main-2rvzmckc.mjs";
|
|
50
50
|
import {
|
|
51
51
|
unpackedExtensionId,
|
|
52
52
|
extensionProtocolSkew,
|
|
53
53
|
extensionProtocolAdvice
|
|
54
|
-
} from "./main-
|
|
54
|
+
} from "./main-mrew6jy8.mjs";
|
|
55
55
|
import {
|
|
56
56
|
__toESM,
|
|
57
57
|
__commonJS,
|
|
@@ -12162,7 +12162,7 @@ async function runSetup(command, args) {
|
|
|
12162
12162
|
if (command === "set")
|
|
12163
12163
|
return set(args);
|
|
12164
12164
|
if (command === "rollback") {
|
|
12165
|
-
const { runRollback } = await import("./runtime-update-
|
|
12165
|
+
const { runRollback } = await import("./runtime-update-qva146wy.mjs");
|
|
12166
12166
|
return runRollback(args);
|
|
12167
12167
|
}
|
|
12168
12168
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-0q7y0ymc.mjs";
|
|
2
2
|
import {
|
|
3
3
|
versionEntry,
|
|
4
4
|
readCurrent,
|
|
5
5
|
npmRuntime
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-z7px5nh4.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-7wctcbpy.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-
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
7
|
+
} from "./main-v9b6bkze.mjs";
|
|
8
|
+
import"./main-z7px5nh4.mjs";
|
|
9
|
+
import"./main-0q7y0ymc.mjs";
|
|
10
|
+
import"./main-mrew6jy8.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/dist/main-4k77gxd5.mjs
DELETED