@opencode/browse 0.0.17-dev.189 → 0.0.17
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-29hdwt7a.mjs → cli-ktqhzcbw.mjs} +13 -13
- package/dist/cli.mjs +11 -11
- package/dist/{helpers-00s350tq.mjs → helpers-nsfj0mfw.mjs} +1 -1
- package/dist/{legacy-runtime-egp6zww2.mjs → legacy-runtime-fgpmhx47.mjs} +7 -7
- package/dist/{main-e5r3f1g8.mjs → main-5d9jn9px.mjs} +2 -2
- package/dist/{main-kd8f1nq2.mjs → main-83z4fc6b.mjs} +2 -2
- package/dist/{main-2jd6x6jq.mjs → main-98dnkvn3.mjs} +2 -2
- package/dist/{main-1h2rczbb.mjs → main-9fwqh5k7.mjs} +3 -3
- package/dist/{main-0mv7rpmv.mjs → main-bbn1ah9d.mjs} +2 -2
- package/dist/main-ca2rymwh.mjs +4 -0
- package/dist/{main-7wq2brry.mjs → main-gqr4pk9f.mjs} +2 -2
- package/dist/{main-00ka28er.mjs → main-j4n6hkxm.mjs} +5 -5
- package/dist/{main-v1r263fc.mjs → main-k4ys0swh.mjs} +1 -1
- package/dist/{main-ckyb9v7n.mjs → main-mq9bc0zb.mjs} +3 -3
- package/dist/{main-f1jjkpm9.mjs → main-n7w5a79r.mjs} +80 -36
- package/dist/{main-ky3vj3mx.mjs → main-sx14bt3y.mjs} +2 -2
- package/dist/{main-dvy4da2g.mjs → main-t9na9ekd.mjs} +2 -2
- package/dist/{main-g82bc5x3.mjs → main-xzx6aepf.mjs} +1 -1
- package/dist/{mcp-rzn35bxy.mjs → mcp-pxad1yrf.mjs} +8 -8
- package/dist/{migrate-hz3a51xg.mjs → migrate-haeckv81.mjs} +7 -7
- package/dist/{relay-n5jwr402.mjs → relay-53zb68pj.mjs} +12 -12
- package/dist/{remove-stored-secrets-r8dk5eqc.mjs → remove-stored-secrets-036hkbd6.mjs} +1 -1
- package/dist/{runtime-update-avxgfgwm.mjs → runtime-update-5jvb2g53.mjs} +7 -7
- package/dist/{setup-cnp75dsm.mjs → setup-5j4kxeyp.mjs} +9 -9
- package/dist/{update-bmgjhjd0.mjs → update-ssnpp5hp.mjs} +3 -3
- package/dist/{version-74q9xrcd.mjs → version-yvaafhes.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-e575zjpk.mjs +0 -4
|
@@ -24,15 +24,15 @@ import {
|
|
|
24
24
|
import"./main-pmfd055v.mjs";
|
|
25
25
|
import {
|
|
26
26
|
opencodeBrowserVersion2
|
|
27
|
-
} from "./main-
|
|
27
|
+
} from "./main-ca2rymwh.mjs";
|
|
28
28
|
import {
|
|
29
29
|
extensionProtocolAdvice,
|
|
30
30
|
autoUpdateStatus
|
|
31
|
-
} from "./main-
|
|
31
|
+
} from "./main-t9na9ekd.mjs";
|
|
32
32
|
import {
|
|
33
33
|
defaultPort2,
|
|
34
34
|
isValidSessionId2
|
|
35
|
-
} from "./main-
|
|
35
|
+
} from "./main-xzx6aepf.mjs";
|
|
36
36
|
import {
|
|
37
37
|
option,
|
|
38
38
|
String2,
|
|
@@ -51,31 +51,31 @@ import {
|
|
|
51
51
|
ensureExtensionConnected,
|
|
52
52
|
stoppedRelayStatus,
|
|
53
53
|
statusCollections
|
|
54
|
-
} from "./main-
|
|
54
|
+
} from "./main-n7w5a79r.mjs";
|
|
55
55
|
import {
|
|
56
56
|
updateJson2,
|
|
57
57
|
formatUpdateNotice2,
|
|
58
58
|
updateNotice2
|
|
59
|
-
} from "./main-
|
|
59
|
+
} from "./main-mq9bc0zb.mjs";
|
|
60
60
|
import {
|
|
61
61
|
settingKeys,
|
|
62
62
|
formatSettings,
|
|
63
63
|
ensureSessionExists
|
|
64
|
-
} from "./main-
|
|
64
|
+
} from "./main-gqr4pk9f.mjs";
|
|
65
65
|
import {
|
|
66
66
|
defaultJournalBaseDir,
|
|
67
67
|
readJournalEntries,
|
|
68
68
|
formatJournalEntry
|
|
69
|
-
} from "./main-
|
|
70
|
-
import"./main-
|
|
69
|
+
} from "./main-5d9jn9px.mjs";
|
|
70
|
+
import"./main-bbn1ah9d.mjs";
|
|
71
71
|
import {
|
|
72
72
|
endpointForPort
|
|
73
|
-
} from "./main-
|
|
73
|
+
} from "./main-sx14bt3y.mjs";
|
|
74
74
|
import {
|
|
75
75
|
stateRoot,
|
|
76
76
|
cliCommand,
|
|
77
77
|
installCommand
|
|
78
|
-
} from "./main-
|
|
78
|
+
} from "./main-83z4fc6b.mjs";
|
|
79
79
|
import {
|
|
80
80
|
taggedEnum,
|
|
81
81
|
is2,
|
|
@@ -5380,7 +5380,7 @@ var status = make("status", {
|
|
|
5380
5380
|
}
|
|
5381
5381
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5382
5382
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5383
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5383
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-pxad1yrf.mjs"));
|
|
5384
5384
|
yield* runMcpServer;
|
|
5385
5385
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5386
5386
|
registerCliCommand(400, () => tabs);
|
|
@@ -5692,12 +5692,12 @@ registerCliCommand(700, () => recording);
|
|
|
5692
5692
|
|
|
5693
5693
|
// src/cli/relay.ts
|
|
5694
5694
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
5695
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
5695
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-53zb68pj.mjs"), import("./helpers-nsfj0mfw.mjs")]));
|
|
5696
5696
|
const port = process.env.OPENCODE_BROWSER_PORT === undefined ? undefined : yield* portConfig;
|
|
5697
5697
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
5698
5698
|
yield* scoped(gen(function* () {
|
|
5699
5699
|
const relay = yield* startRelay({ ...port === undefined ? {} : { port }, additionalExtensionOrigins });
|
|
5700
|
-
yield* promise(() => import("./legacy-runtime-
|
|
5700
|
+
yield* promise(() => import("./legacy-runtime-fgpmhx47.mjs").then((module) => module.commitLegacyTakeover()));
|
|
5701
5701
|
yield* log(`browse relay listening at ${relay.url}`);
|
|
5702
5702
|
yield* log(`browse connects automatically while the browser runs. Run \`${cliCommand("status")}\` to check.`);
|
|
5703
5703
|
yield* never;
|
package/dist/cli.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
// src/main.ts
|
|
13
13
|
import path from "node:path";
|
|
14
|
-
var embeddedVersion = "0.0.17
|
|
14
|
+
var embeddedVersion = "0.0.17";
|
|
15
15
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
16
16
|
var command = process.argv[2];
|
|
17
17
|
var args = process.argv.slice(3);
|
|
@@ -21,27 +21,27 @@ var options = separator === -1 ? args : args.slice(0, separator);
|
|
|
21
21
|
var askedForHelp = command === "--help" || command === "-h" || options.some((arg) => arg === "--help" || arg === "-h");
|
|
22
22
|
var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
|
|
23
23
|
var oldRuntime = legacyRuntime();
|
|
24
|
-
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-
|
|
24
|
+
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-fgpmhx47.mjs").then((module) => module.prepareLegacyTakeover(oldRuntime)).catch(() => false);
|
|
25
25
|
if (!takingOver)
|
|
26
26
|
settleLegacyHome(process.env, oldRuntime);
|
|
27
27
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver) {
|
|
28
|
-
const { removeStoredSecrets } = await import("./remove-stored-secrets-
|
|
28
|
+
const { removeStoredSecrets } = await import("./remove-stored-secrets-036hkbd6.mjs");
|
|
29
29
|
removeStoredSecrets();
|
|
30
30
|
}
|
|
31
31
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver && !process.env.OPENCODE_BROWSER_HOME && legacyRootsLeft()) {
|
|
32
32
|
try {
|
|
33
|
-
const { migrateLegacy } = await import("./migrate-
|
|
33
|
+
const { migrateLegacy } = await import("./migrate-haeckv81.mjs");
|
|
34
34
|
migrateLegacy();
|
|
35
35
|
} catch {}
|
|
36
36
|
}
|
|
37
37
|
if (command === "--version" || command === "-v") {
|
|
38
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
38
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-yvaafhes.mjs")).opencodeBrowserVersion;
|
|
39
39
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
40
40
|
`);
|
|
41
41
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
42
42
|
const { NodeRuntime } = await import("./index-kmxtpxxk.mjs");
|
|
43
43
|
const { defaultTeardown } = await import("./Runtime-tvxdkp60.mjs");
|
|
44
|
-
const { runMcpServer } = await import("./mcp-
|
|
44
|
+
const { runMcpServer } = await import("./mcp-pxad1yrf.mjs");
|
|
45
45
|
let stdinGone = false;
|
|
46
46
|
const onStdinGone = () => {
|
|
47
47
|
stdinGone = true;
|
|
@@ -63,13 +63,13 @@ if (command === "--version" || command === "-v") {
|
|
|
63
63
|
})
|
|
64
64
|
}));
|
|
65
65
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
66
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
66
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-5jvb2g53.mjs");
|
|
67
67
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
68
68
|
} else if (command === "update" && !askedForHelp) {
|
|
69
|
-
const { runUpdateCommand } = await import("./update-
|
|
69
|
+
const { runUpdateCommand } = await import("./update-ssnpp5hp.mjs");
|
|
70
70
|
await runUpdateCommand(process.argv.slice(3));
|
|
71
71
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
72
|
-
const { runSetup } = await import("./setup-
|
|
72
|
+
const { runSetup } = await import("./setup-5j4kxeyp.mjs");
|
|
73
73
|
await runSetup(command, process.argv.slice(3));
|
|
74
74
|
} else {
|
|
75
75
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -107,9 +107,9 @@ ${agentHelp}
|
|
|
107
107
|
`);
|
|
108
108
|
}
|
|
109
109
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
110
|
-
const { printSetupStatus } = await import("./setup-
|
|
110
|
+
const { printSetupStatus } = await import("./setup-5j4kxeyp.mjs");
|
|
111
111
|
printSetupStatus();
|
|
112
112
|
}
|
|
113
|
-
const { runCli } = await import("./cli-
|
|
113
|
+
const { runCli } = await import("./cli-ktqhzcbw.mjs");
|
|
114
114
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
115
115
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-xzx6aepf.mjs";
|
|
2
2
|
import {
|
|
3
3
|
channelOf,
|
|
4
4
|
installedRuntime2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-t9na9ekd.mjs";
|
|
6
6
|
import {
|
|
7
7
|
legacyRuntimeActive,
|
|
8
8
|
insidePath,
|
|
@@ -10,16 +10,16 @@ import {
|
|
|
10
10
|
} from "./main-pmfd055v.mjs";
|
|
11
11
|
import {
|
|
12
12
|
opencodeBrowserVersion2
|
|
13
|
-
} from "./main-
|
|
13
|
+
} from "./main-ca2rymwh.mjs";
|
|
14
14
|
import {
|
|
15
15
|
relayPortPinned,
|
|
16
16
|
resolveRelayPort,
|
|
17
17
|
probeRelayPort
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-sx14bt3y.mjs";
|
|
19
19
|
import {
|
|
20
20
|
installerBinaryPath,
|
|
21
21
|
compiledBinary
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-83z4fc6b.mjs";
|
|
23
23
|
|
|
24
24
|
// src/setup/legacy-runtime.ts
|
|
25
25
|
import fs from "node:fs";
|
|
@@ -52,7 +52,7 @@ async function prepareLegacyTakeover(legacy, options = {}) {
|
|
|
52
52
|
return false;
|
|
53
53
|
}
|
|
54
54
|
const home = options.home ?? os.homedir();
|
|
55
|
-
const { copyLegacyData } = await import("./migrate-
|
|
55
|
+
const { copyLegacyData } = await import("./migrate-haeckv81.mjs");
|
|
56
56
|
delete env.OPENCODE_BROWSER_HOME;
|
|
57
57
|
copyLegacyData(home);
|
|
58
58
|
pending = { legacy, install, home };
|
|
@@ -66,7 +66,7 @@ async function commitLegacyTakeover(now = Date.now()) {
|
|
|
66
66
|
try {
|
|
67
67
|
if (!adoptLegacyRuntime(legacy, install, now))
|
|
68
68
|
return false;
|
|
69
|
-
const { migrateLegacy } = await import("./migrate-
|
|
69
|
+
const { migrateLegacy } = await import("./migrate-haeckv81.mjs");
|
|
70
70
|
migrateLegacy(home, now);
|
|
71
71
|
return true;
|
|
72
72
|
} catch {
|
|
@@ -105,7 +105,7 @@ function cliInstall() {
|
|
|
105
105
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
106
106
|
if (fromCheckout())
|
|
107
107
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
108
|
-
return { kind: "npm", version: "0.0.17
|
|
108
|
+
return { kind: "npm", version: "0.0.17", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
|
|
109
109
|
}
|
|
110
110
|
function cliPrefix(install = cliInstall()) {
|
|
111
111
|
if (install.kind === "binary") {
|
|
@@ -127,7 +127,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
127
127
|
return id ? { id } : {};
|
|
128
128
|
}
|
|
129
129
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
130
|
-
function devExtension(baked =
|
|
130
|
+
function devExtension(baked = undefined) {
|
|
131
131
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
132
132
|
}
|
|
133
133
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-xzx6aepf.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
stateRoot
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-83z4fc6b.mjs";
|
|
8
8
|
|
|
9
9
|
// src/relay/browser-pairing.ts
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-xzx6aepf.mjs";
|
|
4
4
|
import {
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-98dnkvn3.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-83z4fc6b.mjs";
|
|
15
15
|
|
|
16
16
|
// src/setup/dev-extension.ts
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
parseTargetSelection2,
|
|
12
12
|
getObject2,
|
|
13
13
|
getString2
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-xzx6aepf.mjs";
|
|
15
15
|
import {
|
|
16
16
|
cliCommand
|
|
17
|
-
} from "./main-
|
|
17
|
+
} from "./main-83z4fc6b.mjs";
|
|
18
18
|
import {
|
|
19
19
|
isStream,
|
|
20
20
|
provideContext
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-ca2rymwh.mjs";
|
|
4
4
|
import {
|
|
5
5
|
unpackedExtensionId,
|
|
6
6
|
npmGlobalRoot,
|
|
7
7
|
installedVersion,
|
|
8
8
|
runCommand
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-t9na9ekd.mjs";
|
|
10
10
|
import {
|
|
11
11
|
writeStdout
|
|
12
12
|
} from "./main-tk4axre7.mjs";
|
|
13
13
|
import {
|
|
14
14
|
defaultPort2
|
|
15
|
-
} from "./main-
|
|
15
|
+
} from "./main-xzx6aepf.mjs";
|
|
16
16
|
import {
|
|
17
17
|
formatPairingCode
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-98dnkvn3.mjs";
|
|
19
19
|
import {
|
|
20
20
|
configRoot2,
|
|
21
21
|
dataRoot,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
devExtension,
|
|
34
34
|
devExtensionFolder,
|
|
35
35
|
storeUrl
|
|
36
|
-
} from "./main-
|
|
36
|
+
} from "./main-83z4fc6b.mjs";
|
|
37
37
|
import {
|
|
38
38
|
__toESM,
|
|
39
39
|
__commonJS,
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
installedRuntime2,
|
|
4
4
|
autoUpdateStatus,
|
|
5
5
|
updateAvailable
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-t9na9ekd.mjs";
|
|
7
7
|
import {
|
|
8
8
|
cacheRoot,
|
|
9
9
|
compiledBinary,
|
|
10
10
|
checkoutRoot,
|
|
11
11
|
cliCommand
|
|
12
|
-
} from "./main-
|
|
12
|
+
} from "./main-83z4fc6b.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 { runInstalledUpdate } = await import("./runtime-update-
|
|
318
|
+
const { runInstalledUpdate } = await import("./runtime-update-5jvb2g53.mjs");
|
|
319
319
|
if (await runInstalledUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
compareVersions,
|
|
6
6
|
installedRuntime2,
|
|
7
7
|
installedVersion
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-t9na9ekd.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ensurePrivateDirectorySync,
|
|
11
11
|
SessionContainer,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
RelayErrorCode,
|
|
34
34
|
ErrorEnvelope,
|
|
35
35
|
defaultPort2
|
|
36
|
-
} from "./main-
|
|
36
|
+
} from "./main-xzx6aepf.mjs";
|
|
37
37
|
import {
|
|
38
38
|
get,
|
|
39
39
|
post,
|
|
@@ -44,10 +44,10 @@ import {
|
|
|
44
44
|
} from "./main-hh16893t.mjs";
|
|
45
45
|
import {
|
|
46
46
|
opencodeBrowserBuildId2
|
|
47
|
-
} from "./main-
|
|
47
|
+
} from "./main-ca2rymwh.mjs";
|
|
48
48
|
import {
|
|
49
49
|
relayAuthorization
|
|
50
|
-
} from "./main-
|
|
50
|
+
} from "./main-bbn1ah9d.mjs";
|
|
51
51
|
import {
|
|
52
52
|
endpointForPort,
|
|
53
53
|
configuredRelayPort,
|
|
@@ -55,14 +55,14 @@ import {
|
|
|
55
55
|
readRelayState,
|
|
56
56
|
processAlive,
|
|
57
57
|
resolveRelayPort
|
|
58
|
-
} from "./main-
|
|
58
|
+
} from "./main-sx14bt3y.mjs";
|
|
59
59
|
import {
|
|
60
60
|
stateRoot,
|
|
61
61
|
compiledBinary,
|
|
62
62
|
scriptEntry,
|
|
63
63
|
cliCommand,
|
|
64
64
|
installCommand
|
|
65
|
-
} from "./main-
|
|
65
|
+
} from "./main-83z4fc6b.mjs";
|
|
66
66
|
import {
|
|
67
67
|
Pointer,
|
|
68
68
|
passthrough,
|
|
@@ -507,8 +507,8 @@ var make3 = fn("RelayClient.make")(function* (options) {
|
|
|
507
507
|
cause
|
|
508
508
|
})));
|
|
509
509
|
}));
|
|
510
|
-
const transportError = (path) => (cause) => {
|
|
511
|
-
const endpoint = currentEndpoint();
|
|
510
|
+
const transportError = (path, at) => (cause) => {
|
|
511
|
+
const endpoint = at ?? currentEndpoint();
|
|
512
512
|
return new RelayUnreachable({
|
|
513
513
|
message: `browse relay is not reachable at ${endpoint}. Relay-backed CLI commands start it automatically; use \`${cliCommand("serve")}\` only for foreground debugging.`,
|
|
514
514
|
endpoint,
|
|
@@ -528,7 +528,7 @@ var make3 = fn("RelayClient.make")(function* (options) {
|
|
|
528
528
|
return options?.clientPid === undefined ? authorized : setHeader(authorized, "opencode-browser-client-pid", String(options.clientPid));
|
|
529
529
|
};
|
|
530
530
|
let relayAnswered = false;
|
|
531
|
-
const executeUnauthorized = (path, request) => httpClient.execute(request).pipe(mapError2(transportError(path)), tap(() => sync2(() => {
|
|
531
|
+
const executeUnauthorized = (path, request, at) => httpClient.execute(request).pipe(mapError2(transportError(path, at)), tap(() => sync2(() => {
|
|
532
532
|
relayAnswered = true;
|
|
533
533
|
})));
|
|
534
534
|
let verified;
|
|
@@ -548,7 +548,7 @@ var make3 = fn("RelayClient.make")(function* (options) {
|
|
|
548
548
|
const sameLiveState = (left, right) => left === undefined ? right === undefined : right !== undefined && left.port === right.port && left.instanceId === right.instanceId;
|
|
549
549
|
const verifyEndpoint = (endpoint, state = liveRelayState()) => suspend2(() => {
|
|
550
550
|
const seconds = relayAnswered ? busyRelayReadSeconds : unknownRelayReadSeconds;
|
|
551
|
-
return executeUnauthorized("/version", get(new URL("/version", endpoint))).pipe(flatMap3((response) => readBody(response, "/version").pipe(map6((body) => ({ response, body })))), flatMap3(({ response, body }) => {
|
|
551
|
+
return executeUnauthorized("/version", get(new URL("/version", endpoint)), endpoint).pipe(flatMap3((response) => readBody(response, "/version").pipe(mapError2((error) => state !== undefined && liveRelayState() === undefined ? transportError("/version", endpoint)(error) : error), map6((body) => ({ response, body })))), flatMap3(({ response, body }) => {
|
|
552
552
|
const reply = typeof body === "object" && body !== null ? body : undefined;
|
|
553
553
|
if (response.status === 503 && reply?.code === "relay-starting") {
|
|
554
554
|
const envelope = decodeErrorEnvelope(body);
|
|
@@ -562,6 +562,8 @@ var make3 = fn("RelayClient.make")(function* (options) {
|
|
|
562
562
|
if (response.status !== 200 || typeof reply?.version !== "string" || typeof reply.instanceId !== "string")
|
|
563
563
|
return fail6(notBrowse(endpoint, body));
|
|
564
564
|
const after = liveRelayState();
|
|
565
|
+
if (state !== undefined && after === undefined)
|
|
566
|
+
return fail6(transportError("/version", endpoint)(body));
|
|
565
567
|
if (state !== undefined && !sameLiveState(state, after))
|
|
566
568
|
return fail6(notBrowse(endpoint, body));
|
|
567
569
|
if (after !== undefined && (after.port !== Number(new URL(endpoint).port) || after.instanceId !== reply.instanceId))
|
|
@@ -641,11 +643,19 @@ var make3 = fn("RelayClient.make")(function* (options) {
|
|
|
641
643
|
},
|
|
642
644
|
version: suspend2(() => {
|
|
643
645
|
const state = liveRelayState();
|
|
644
|
-
|
|
646
|
+
const probed = currentEndpoint();
|
|
647
|
+
const probe = requestJson("/version", RelayVersion).pipe(mapError2((error) => {
|
|
648
|
+
if (!(error instanceof RelayDecodeFailed || error instanceof RelayRejected && !error.code && error.status === 404))
|
|
649
|
+
return error;
|
|
650
|
+
return state !== undefined && liveRelayState() === undefined ? transportError("/version", probed)(error) : notBrowse(probed, error);
|
|
651
|
+
}));
|
|
652
|
+
return probe.pipe(flatMap3(({ value: version, endpoint }) => {
|
|
645
653
|
const instanceId = version.instanceId;
|
|
646
654
|
if (typeof instanceId !== "string")
|
|
647
655
|
return fail6(notBrowse(endpoint, version));
|
|
648
656
|
const after = liveRelayState();
|
|
657
|
+
if (state !== undefined && after === undefined)
|
|
658
|
+
return fail6(transportError("/version", endpoint)(version));
|
|
649
659
|
if (state !== undefined && !sameLiveState(state, after))
|
|
650
660
|
return fail6(notBrowse(endpoint, version));
|
|
651
661
|
if (after !== undefined && (after.port !== Number(new URL(endpoint).port) || after.instanceId !== instanceId))
|
|
@@ -654,7 +664,7 @@ var make3 = fn("RelayClient.make")(function* (options) {
|
|
|
654
664
|
verified = { endpoint, instanceId, recorded: after?.instanceId };
|
|
655
665
|
return version;
|
|
656
666
|
});
|
|
657
|
-
})
|
|
667
|
+
}));
|
|
658
668
|
}),
|
|
659
669
|
shutdown: (request) => postJson("/shutdown", { ...request }, RelayShutdownResponse),
|
|
660
670
|
extensionStatus: getJson("/extension/status", ExtensionStatus),
|
|
@@ -881,6 +891,11 @@ function shouldWaitForExtensionReconnect(readiness) {
|
|
|
881
891
|
}
|
|
882
892
|
|
|
883
893
|
class RelayStillRunning extends Error {
|
|
894
|
+
cutProbe;
|
|
895
|
+
constructor(message, cutProbe) {
|
|
896
|
+
super(message);
|
|
897
|
+
this.cutProbe = cutProbe;
|
|
898
|
+
}
|
|
884
899
|
}
|
|
885
900
|
|
|
886
901
|
class RelayStartFailed extends TaggedError2()("RelayLifecycle.RelayStartFailed", {
|
|
@@ -933,20 +948,25 @@ function olderMcpClientAdvice(version, error, buildId = opencodeBrowserBuildId2)
|
|
|
933
948
|
}
|
|
934
949
|
var ensureRelay = fn("RelayLifecycle.ensureRelay")(function* (options) {
|
|
935
950
|
const buildId = options.buildId ?? opencodeBrowserBuildId2;
|
|
936
|
-
const
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
const relayWasAbsent = isRelayUnreachable(initial.failure) || isForeignListener(initial.failure, options.pinned);
|
|
947
|
-
if (!relayWasAbsent && !isRelayStarting(initial.failure)) {
|
|
951
|
+
const found = (version, started) => {
|
|
952
|
+
const buildProblem = relayBuildProblem(version, buildId);
|
|
953
|
+
return { version, started, ...buildProblem ? { buildProblem } : {} };
|
|
954
|
+
};
|
|
955
|
+
const initial = yield* result(options.relay.version);
|
|
956
|
+
if (isSuccess(initial))
|
|
957
|
+
return found(initial.success, false);
|
|
958
|
+
const draining = relayDraining(initial.failure);
|
|
959
|
+
let relayWasAbsent = isRelayUnreachable(initial.failure) || isForeignListener(initial.failure, options.pinned);
|
|
960
|
+
if (!relayWasAbsent && !isRelayStarting(initial.failure) && !draining) {
|
|
948
961
|
return yield* initial.failure;
|
|
949
962
|
}
|
|
963
|
+
if (draining) {
|
|
964
|
+
const recorded = liveRelayInstanceId();
|
|
965
|
+
const replacement = recorded === undefined ? undefined : yield* startPastDrain(waitForRelayExitOrReplacement({ ...options, instanceId: recorded }), options.pinned);
|
|
966
|
+
if (replacement !== undefined)
|
|
967
|
+
return found(replacement, false);
|
|
968
|
+
relayWasAbsent = true;
|
|
969
|
+
}
|
|
950
970
|
if (relayWasAbsent) {
|
|
951
971
|
const autoStart = yield* Boolean2("OPENCODE_BROWSER_AUTOSTART").pipe(withDefault(true), mapError2((cause) => new Error("Invalid OPENCODE_BROWSER_AUTOSTART configuration", { cause })));
|
|
952
972
|
if (!autoStart) {
|
|
@@ -956,8 +976,7 @@ var ensureRelay = fn("RelayLifecycle.ensureRelay")(function* (options) {
|
|
|
956
976
|
yield* options.start ?? startManagedRelay();
|
|
957
977
|
}
|
|
958
978
|
const version = yield* waitForRelayReady(options);
|
|
959
|
-
|
|
960
|
-
return { version, started: relayWasAbsent, ...buildProblem ? { buildProblem } : {} };
|
|
979
|
+
return found(version, relayWasAbsent);
|
|
961
980
|
});
|
|
962
981
|
function waitForRelayReady(options) {
|
|
963
982
|
const retry2 = (error) => isRelayStartingOrUnreachable(error) || isForeignListener(error, options.pinned);
|
|
@@ -982,8 +1001,12 @@ var restartRelay = fn("RelayLifecycle.restartRelay")(function* (options) {
|
|
|
982
1001
|
original = initial.success;
|
|
983
1002
|
} else if (isRelayStarting(initial.failure)) {
|
|
984
1003
|
original = yield* waitForRelayReady(options);
|
|
985
|
-
} else
|
|
986
|
-
|
|
1004
|
+
} else {
|
|
1005
|
+
const recorded = relayDraining(initial.failure) ? liveRelayInstanceId() : undefined;
|
|
1006
|
+
if (recorded !== undefined) {
|
|
1007
|
+
replacement = yield* startPastDrain(waitForRelayExitOrReplacement({ ...options, instanceId: recorded }), options.pinned);
|
|
1008
|
+
} else if (!absent(initial.failure))
|
|
1009
|
+
return yield* initial.failure;
|
|
987
1010
|
}
|
|
988
1011
|
if (original) {
|
|
989
1012
|
if (original.managed !== true || !original.instanceId) {
|
|
@@ -1000,7 +1023,10 @@ var restartRelay = fn("RelayLifecycle.restartRelay")(function* (options) {
|
|
|
1000
1023
|
}
|
|
1001
1024
|
const confirmed = yield* result(options.relay.version);
|
|
1002
1025
|
if (isFailure(confirmed)) {
|
|
1003
|
-
|
|
1026
|
+
const recorded = relayDraining(confirmed.failure) ? liveRelayInstanceId() : undefined;
|
|
1027
|
+
if (recorded !== undefined) {
|
|
1028
|
+
replacement = yield* startPastDrain(waitForRelayExitOrReplacement({ ...options, instanceId: recorded }), options.pinned);
|
|
1029
|
+
} else if (!absent(confirmed.failure))
|
|
1004
1030
|
return yield* confirmed.failure;
|
|
1005
1031
|
} else if (!isSameRelayInstance(original, confirmed.success)) {
|
|
1006
1032
|
replacement = confirmed.success;
|
|
@@ -1023,7 +1049,7 @@ var restartRelay = fn("RelayLifecycle.restartRelay")(function* (options) {
|
|
|
1023
1049
|
} else if (!isRelayUnreachable(shutdown.failure) && !isRelayInstanceChanged(shutdown.failure)) {
|
|
1024
1050
|
return yield* shutdown.failure;
|
|
1025
1051
|
}
|
|
1026
|
-
replacement = yield* waitForRelayExitOrReplacement({ ...options,
|
|
1052
|
+
replacement = yield* waitForRelayExitOrReplacement({ ...options, instanceId: original.instanceId });
|
|
1027
1053
|
}
|
|
1028
1054
|
}
|
|
1029
1055
|
const started = replacement === undefined;
|
|
@@ -1040,15 +1066,22 @@ var restartRelay = fn("RelayLifecycle.restartRelay")(function* (options) {
|
|
|
1040
1066
|
return { version: replacement, started, waitForReconnect: true };
|
|
1041
1067
|
});
|
|
1042
1068
|
function waitForRelayExitOrReplacement(options) {
|
|
1043
|
-
const stillRecorded = () =>
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1069
|
+
const stillRecorded = () => relayRecorded(options.instanceId);
|
|
1070
|
+
return options.relay.version.pipe(flatMap3((version) => version.instanceId !== undefined && version.instanceId === options.instanceId ? fail6(new RelayStillRunning("browse relay is still draining; no replacement was started")) : succeed6(version)), catch_((error) => {
|
|
1071
|
+
if (isRelayUnreachable(error))
|
|
1072
|
+
return succeed6(undefined);
|
|
1073
|
+
if (error instanceof RelayDecodeFailed && stillRecorded()) {
|
|
1074
|
+
return fail6(new RelayStillRunning("browse relay is still draining; no replacement was started", error));
|
|
1075
|
+
}
|
|
1076
|
+
return isForeignListener(error, options.pinned) ? succeed6(undefined) : fail6(error);
|
|
1077
|
+
}), retry({
|
|
1048
1078
|
times: options.retryTimes ?? 200,
|
|
1049
1079
|
schedule: spaced(options.retryDelayMs ?? 50),
|
|
1050
1080
|
while: (error) => error instanceof RelayStillRunning || isRelayStarting(error)
|
|
1051
|
-
}));
|
|
1081
|
+
}), mapError2((error) => error instanceof RelayStillRunning ? error.cutProbe ?? error : error));
|
|
1082
|
+
}
|
|
1083
|
+
function startPastDrain(drain, pinned) {
|
|
1084
|
+
return drain.pipe(catch_((error) => isForeignListener(error, pinned) ? succeed6(undefined) : fail6(error)));
|
|
1052
1085
|
}
|
|
1053
1086
|
function isSameRelayInstance(left, right) {
|
|
1054
1087
|
return left.instanceId !== undefined && left.instanceId === right.instanceId;
|
|
@@ -1216,6 +1249,17 @@ function isRelayStarting(error) {
|
|
|
1216
1249
|
function isRelayStartingOrUnreachable(error) {
|
|
1217
1250
|
return isRelayStarting(error) || isRelayUnreachable(error);
|
|
1218
1251
|
}
|
|
1252
|
+
function liveRelayInstanceId() {
|
|
1253
|
+
const state = readRelayState();
|
|
1254
|
+
return state !== undefined && state.configuredPort === configuredRelayPort() && processAlive(state.pid) ? state.instanceId : undefined;
|
|
1255
|
+
}
|
|
1256
|
+
function relayRecorded(instanceId) {
|
|
1257
|
+
const live = liveRelayInstanceId();
|
|
1258
|
+
return live !== undefined && (instanceId === undefined || live === instanceId);
|
|
1259
|
+
}
|
|
1260
|
+
function relayDraining(error) {
|
|
1261
|
+
return error instanceof RelayDecodeFailed && relayRecorded();
|
|
1262
|
+
}
|
|
1219
1263
|
function isForeignListener(error, pinned) {
|
|
1220
1264
|
if (pinned ?? relayPortPinned())
|
|
1221
1265
|
return false;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync,
|
|
3
3
|
defaultPort2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-xzx6aepf.mjs";
|
|
5
5
|
import {
|
|
6
6
|
stateRoot
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-83z4fc6b.mjs";
|
|
8
8
|
|
|
9
9
|
// src/relay/port.ts
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./main-pmfd055v.mjs";
|
|
5
5
|
import {
|
|
6
6
|
opencodeBrowserVersion2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-ca2rymwh.mjs";
|
|
8
8
|
import {
|
|
9
9
|
stateRoot,
|
|
10
10
|
fromCheckout,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
installedBinary,
|
|
14
14
|
cliPrefix,
|
|
15
15
|
RELEASE_SERVICE
|
|
16
|
-
} from "./main-
|
|
16
|
+
} from "./main-83z4fc6b.mjs";
|
|
17
17
|
|
|
18
18
|
// src/protocol.ts
|
|
19
19
|
var extensionProtocolVersion = 3;
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
import"./main-pmfd055v.mjs";
|
|
47
47
|
import {
|
|
48
48
|
opencodeBrowserVersion2
|
|
49
|
-
} from "./main-
|
|
49
|
+
} from "./main-ca2rymwh.mjs";
|
|
50
50
|
import {
|
|
51
51
|
autoUpdateStatus
|
|
52
|
-
} from "./main-
|
|
52
|
+
} from "./main-t9na9ekd.mjs";
|
|
53
53
|
import {
|
|
54
54
|
SessionContainer,
|
|
55
55
|
SessionsContainer,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
SessionAdoptResponse,
|
|
58
58
|
TabsCleanupResponse,
|
|
59
59
|
getObject2
|
|
60
|
-
} from "./main-
|
|
60
|
+
} from "./main-xzx6aepf.mjs";
|
|
61
61
|
import {
|
|
62
62
|
option,
|
|
63
63
|
String2,
|
|
@@ -68,11 +68,11 @@ import {
|
|
|
68
68
|
olderMcpClientAdvice,
|
|
69
69
|
ensureRelay,
|
|
70
70
|
ensureExtensionConnected
|
|
71
|
-
} from "./main-
|
|
71
|
+
} from "./main-n7w5a79r.mjs";
|
|
72
72
|
import {
|
|
73
73
|
updateJson2,
|
|
74
74
|
createUpdateWatcher2
|
|
75
|
-
} from "./main-
|
|
75
|
+
} from "./main-mq9bc0zb.mjs";
|
|
76
76
|
import {
|
|
77
77
|
isStreamSchema,
|
|
78
78
|
getStreamSchemas,
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
toolResultForValue2,
|
|
151
151
|
mcpErrorMessage2,
|
|
152
152
|
toolResult
|
|
153
|
-
} from "./main-
|
|
153
|
+
} from "./main-gqr4pk9f.mjs";
|
|
154
154
|
import {
|
|
155
155
|
Clock,
|
|
156
156
|
makeUnsafe,
|
|
@@ -167,14 +167,14 @@ import {
|
|
|
167
167
|
orElse,
|
|
168
168
|
exhaustive
|
|
169
169
|
} from "./main-jtgan144.mjs";
|
|
170
|
-
import"./main-
|
|
170
|
+
import"./main-bbn1ah9d.mjs";
|
|
171
171
|
import {
|
|
172
172
|
whatBrowseIs,
|
|
173
173
|
inspectActVerify,
|
|
174
174
|
handoffAdvice,
|
|
175
175
|
sessionAdvice
|
|
176
176
|
} from "./main-gexpjhk5.mjs";
|
|
177
|
-
import"./main-
|
|
177
|
+
import"./main-sx14bt3y.mjs";
|
|
178
178
|
import {
|
|
179
179
|
Class,
|
|
180
180
|
taggedEnum,
|
|
@@ -7,21 +7,21 @@ import {
|
|
|
7
7
|
editAgentConfig,
|
|
8
8
|
OPENCODE_CONFIG_NAMES,
|
|
9
9
|
configureMcp
|
|
10
|
-
} from "./main-
|
|
10
|
+
} from "./main-j4n6hkxm.mjs";
|
|
11
11
|
import {
|
|
12
12
|
legacyDataRoot,
|
|
13
13
|
legacyRoots,
|
|
14
14
|
legacyRuntime,
|
|
15
15
|
LEGACY_HANDOVER_GRACE_MS
|
|
16
16
|
} from "./main-pmfd055v.mjs";
|
|
17
|
-
import"./main-
|
|
18
|
-
import"./main-
|
|
17
|
+
import"./main-ca2rymwh.mjs";
|
|
18
|
+
import"./main-t9na9ekd.mjs";
|
|
19
19
|
import"./main-tk4axre7.mjs";
|
|
20
|
-
import"./main-
|
|
21
|
-
import"./main-
|
|
20
|
+
import"./main-xzx6aepf.mjs";
|
|
21
|
+
import"./main-98dnkvn3.mjs";
|
|
22
22
|
import {
|
|
23
23
|
removeStoredSecrets2
|
|
24
|
-
} from "./main-
|
|
24
|
+
} from "./main-k4ys0swh.mjs";
|
|
25
25
|
import {
|
|
26
26
|
configRoot2,
|
|
27
27
|
dataRoot,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
binRoot,
|
|
31
31
|
binaryName,
|
|
32
32
|
devExtensionFolder
|
|
33
|
-
} from "./main-
|
|
33
|
+
} from "./main-83z4fc6b.mjs";
|
|
34
34
|
|
|
35
35
|
// src/setup/migrate.ts
|
|
36
36
|
import fs from "node:fs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
opencodeBrowserVersion2,
|
|
6
6
|
opencodeBrowserBuildId2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-ca2rymwh.mjs";
|
|
8
8
|
import {
|
|
9
9
|
extensionProtocolVersion,
|
|
10
10
|
minExtensionProtocolVersion,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
setStoredMode,
|
|
27
27
|
autoUpdateStatus,
|
|
28
28
|
createAutoUpdater
|
|
29
|
-
} from "./main-
|
|
29
|
+
} from "./main-t9na9ekd.mjs";
|
|
30
30
|
import {
|
|
31
31
|
isNodeError,
|
|
32
32
|
isUnsupportedDirectorySyncError,
|
|
@@ -74,7 +74,7 @@ import {
|
|
|
74
74
|
isRestrictedTarget2,
|
|
75
75
|
isRestrictedUrl2,
|
|
76
76
|
dataUrlDocument2
|
|
77
|
-
} from "./main-
|
|
77
|
+
} from "./main-xzx6aepf.mjs";
|
|
78
78
|
import {
|
|
79
79
|
context,
|
|
80
80
|
pendingPairingCodeKeys,
|
|
@@ -92,16 +92,16 @@ import {
|
|
|
92
92
|
pairingSessionKey,
|
|
93
93
|
sessionProof,
|
|
94
94
|
wrapToken
|
|
95
|
-
} from "./main-
|
|
95
|
+
} from "./main-98dnkvn3.mjs";
|
|
96
96
|
import {
|
|
97
97
|
defaultJournalBaseDir,
|
|
98
98
|
makeJournalEntry,
|
|
99
99
|
appendJournalEntry,
|
|
100
100
|
startJournalRetention
|
|
101
|
-
} from "./main-
|
|
101
|
+
} from "./main-5d9jn9px.mjs";
|
|
102
102
|
import {
|
|
103
103
|
createUpdateWatcher2
|
|
104
|
-
} from "./main-
|
|
104
|
+
} from "./main-mq9bc0zb.mjs";
|
|
105
105
|
import {
|
|
106
106
|
SettingsInputError,
|
|
107
107
|
parseSettingChanges,
|
|
@@ -109,7 +109,7 @@ import {
|
|
|
109
109
|
settingsToExtension,
|
|
110
110
|
describeSettings,
|
|
111
111
|
describeChanges
|
|
112
|
-
} from "./main-
|
|
112
|
+
} from "./main-gqr4pk9f.mjs";
|
|
113
113
|
import {
|
|
114
114
|
currentTimeMillis,
|
|
115
115
|
makeUnsafe,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
syncDevExtension,
|
|
124
124
|
relayHostname,
|
|
125
125
|
isLocalPeer
|
|
126
|
-
} from "./main-
|
|
126
|
+
} from "./main-9fwqh5k7.mjs";
|
|
127
127
|
import {
|
|
128
128
|
map,
|
|
129
129
|
withDefault,
|
|
@@ -133,13 +133,13 @@ import {
|
|
|
133
133
|
Boolean2,
|
|
134
134
|
appendManagedRelayProcessLog,
|
|
135
135
|
relayLog
|
|
136
|
-
} from "./main-
|
|
136
|
+
} from "./main-n7w5a79r.mjs";
|
|
137
137
|
import {
|
|
138
138
|
relayTokenQueryParam,
|
|
139
139
|
relayToken,
|
|
140
140
|
secretsEqual,
|
|
141
141
|
ensurePrivateDirectory
|
|
142
|
-
} from "./main-
|
|
142
|
+
} from "./main-bbn1ah9d.mjs";
|
|
143
143
|
import {
|
|
144
144
|
configuredRelayPort,
|
|
145
145
|
relayPortPinned,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
writeRelayState,
|
|
148
148
|
removeRelayState,
|
|
149
149
|
chooseRelayPort
|
|
150
|
-
} from "./main-
|
|
150
|
+
} from "./main-sx14bt3y.mjs";
|
|
151
151
|
import {
|
|
152
152
|
defaultRoots,
|
|
153
153
|
configRoot2,
|
|
@@ -164,7 +164,7 @@ import {
|
|
|
164
164
|
devExtension,
|
|
165
165
|
storeUrl,
|
|
166
166
|
installCommand
|
|
167
|
-
} from "./main-
|
|
167
|
+
} from "./main-83z4fc6b.mjs";
|
|
168
168
|
import {
|
|
169
169
|
join,
|
|
170
170
|
interrupt,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import"./main-zrjcdksk.mjs";
|
|
2
2
|
import"./main-pmfd055v.mjs";
|
|
3
|
-
import"./main-
|
|
3
|
+
import"./main-ca2rymwh.mjs";
|
|
4
4
|
import {
|
|
5
5
|
runningServiceTarget,
|
|
6
6
|
releaseChannel,
|
|
@@ -16,21 +16,21 @@ import {
|
|
|
16
16
|
registryUrl,
|
|
17
17
|
fetchPublished,
|
|
18
18
|
runInstaller
|
|
19
|
-
} from "./main-
|
|
20
|
-
import"./main-
|
|
19
|
+
} from "./main-t9na9ekd.mjs";
|
|
20
|
+
import"./main-xzx6aepf.mjs";
|
|
21
21
|
import"./main-hh16893t.mjs";
|
|
22
22
|
import {
|
|
23
23
|
Service,
|
|
24
24
|
layerFetch,
|
|
25
25
|
restartRelay,
|
|
26
26
|
startManagedRelay
|
|
27
|
-
} from "./main-
|
|
28
|
-
import"./main-
|
|
29
|
-
import"./main-
|
|
27
|
+
} from "./main-n7w5a79r.mjs";
|
|
28
|
+
import"./main-bbn1ah9d.mjs";
|
|
29
|
+
import"./main-sx14bt3y.mjs";
|
|
30
30
|
import {
|
|
31
31
|
cliCommand,
|
|
32
32
|
installCommand
|
|
33
|
-
} from "./main-
|
|
33
|
+
} from "./main-83z4fc6b.mjs";
|
|
34
34
|
import {
|
|
35
35
|
succeed6,
|
|
36
36
|
gen,
|
|
@@ -63,11 +63,11 @@ import {
|
|
|
63
63
|
installRuntime,
|
|
64
64
|
installedRuntime,
|
|
65
65
|
manualMcpEntry
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-j4n6hkxm.mjs";
|
|
67
67
|
import"./main-pmfd055v.mjs";
|
|
68
68
|
import {
|
|
69
69
|
opencodeBrowserBuildId2
|
|
70
|
-
} from "./main-
|
|
70
|
+
} from "./main-ca2rymwh.mjs";
|
|
71
71
|
import {
|
|
72
72
|
unpackedExtensionId,
|
|
73
73
|
extensionProtocolSkew,
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
autoUpdateStatus,
|
|
76
76
|
describeAutoUpdate,
|
|
77
77
|
runCommand
|
|
78
|
-
} from "./main-
|
|
78
|
+
} from "./main-t9na9ekd.mjs";
|
|
79
79
|
import {
|
|
80
80
|
defaultPort2
|
|
81
|
-
} from "./main-
|
|
81
|
+
} from "./main-xzx6aepf.mjs";
|
|
82
82
|
import {
|
|
83
83
|
pairingCodeTtlMs,
|
|
84
84
|
bundledPairingCodeTtlMs,
|
|
@@ -91,17 +91,17 @@ import {
|
|
|
91
91
|
revokeBrowserToken,
|
|
92
92
|
legacyPairingCode,
|
|
93
93
|
removeLegacyPairingCode
|
|
94
|
-
} from "./main-
|
|
94
|
+
} from "./main-98dnkvn3.mjs";
|
|
95
95
|
import"./main-tk4axre7.mjs";
|
|
96
96
|
import {
|
|
97
97
|
syncDevExtension,
|
|
98
98
|
parseHostname,
|
|
99
99
|
readRelayConfig,
|
|
100
100
|
writeRelayConfig
|
|
101
|
-
} from "./main-
|
|
101
|
+
} from "./main-9fwqh5k7.mjs";
|
|
102
102
|
import {
|
|
103
103
|
relayAuthorization
|
|
104
|
-
} from "./main-
|
|
104
|
+
} from "./main-bbn1ah9d.mjs";
|
|
105
105
|
import {
|
|
106
106
|
endpointForPort,
|
|
107
107
|
configuredRelayPort,
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
verifiedRelay,
|
|
111
111
|
verifiedRelayEndpoint,
|
|
112
112
|
liveRelayPort
|
|
113
|
-
} from "./main-
|
|
113
|
+
} from "./main-sx14bt3y.mjs";
|
|
114
114
|
import {
|
|
115
115
|
installedBinaryPath,
|
|
116
116
|
installerBinaryPath,
|
|
@@ -124,7 +124,7 @@ import {
|
|
|
124
124
|
cliCommand,
|
|
125
125
|
devExtensionFolder,
|
|
126
126
|
installCommand
|
|
127
|
-
} from "./main-
|
|
127
|
+
} from "./main-83z4fc6b.mjs";
|
|
128
128
|
|
|
129
129
|
// src/setup.ts
|
|
130
130
|
import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
8
|
-
import"./main-
|
|
7
|
+
} from "./main-mq9bc0zb.mjs";
|
|
8
|
+
import"./main-t9na9ekd.mjs";
|
|
9
9
|
import"./main-pmfd055v.mjs";
|
|
10
|
-
import"./main-
|
|
10
|
+
import"./main-ca2rymwh.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/dist/main-e575zjpk.mjs
DELETED