@opencode/browse 0.0.17-dev.183 → 0.0.17-dev.184
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-n67t50qs.mjs → cli-c7zk5z3d.mjs} +15 -14
- package/dist/cli.mjs +12 -12
- package/dist/{helpers-jj42z7rm.mjs → helpers-2z6753nv.mjs} +1 -1
- package/dist/{legacy-runtime-tne3461e.mjs → legacy-runtime-ywz3g2n8.mjs} +6 -6
- package/dist/{main-1nnqhn1v.mjs → main-4y0ebwtf.mjs} +2 -2
- package/dist/{main-h3sgxdjn.mjs → main-5p5ccmye.mjs} +2 -2
- package/dist/{main-254jbd9y.mjs → main-62n1hcda.mjs} +3 -3
- package/dist/{main-ans6rqv0.mjs → main-8sn293dr.mjs} +4 -4
- package/dist/{main-jt4h0g8x.mjs → main-a65k2jvs.mjs} +8 -2
- package/dist/{main-f1fdks8n.mjs → main-ayhsjnxa.mjs} +2 -2
- package/dist/{main-b830e27p.mjs → main-b3n584bp.mjs} +2 -2
- package/dist/{main-xnp01wxw.mjs → main-bprn8bde.mjs} +2 -2
- package/dist/{main-zgawp964.mjs → main-jy92xsx2.mjs} +5 -5
- package/dist/{main-k39ype39.mjs → main-pweq8vqv.mjs} +3 -3
- package/dist/{main-aj4grz5c.mjs → main-t29t4z9q.mjs} +2 -2
- package/dist/{main-650pqeq5.mjs → main-wk9g7869.mjs} +2 -2
- package/dist/main-yp8nt4dh.mjs +4 -0
- package/dist/{mcp-9sch561m.mjs → mcp-qhe69x59.mjs} +9 -9
- package/dist/{migrate-dwpc3854.mjs → migrate-8b015c1q.mjs} +5 -5
- package/dist/{relay-q62xjvg0.mjs → relay-x5bbrs68.mjs} +35 -26
- package/dist/{runtime-update-797qc0w9.mjs → runtime-update-07b127we.mjs} +6 -6
- package/dist/{setup-31sys1aq.mjs → setup-7a2dr5pd.mjs} +9 -9
- package/dist/{supervisor-ratepwa5.mjs → supervisor-sjxe3hda.mjs} +5 -5
- package/dist/{update-7mb87vfx.mjs → update-ya63f9v3.mjs} +3 -3
- package/dist/{version-144ecn73.mjs → version-p0229yf3.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-70nwvs6t.mjs +0 -4
|
@@ -25,7 +25,7 @@ import"./main-pmfd055v.mjs";
|
|
|
25
25
|
import {
|
|
26
26
|
opencodeBrowserVersion2,
|
|
27
27
|
opencodeBrowserBuildId2
|
|
28
|
-
} from "./main-
|
|
28
|
+
} from "./main-yp8nt4dh.mjs";
|
|
29
29
|
import {
|
|
30
30
|
configRoot2,
|
|
31
31
|
dataRoot,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
extensionProtocolVersion,
|
|
41
41
|
extensionProtocolAdvice,
|
|
42
42
|
autoUpdateStatus
|
|
43
|
-
} from "./main-
|
|
43
|
+
} from "./main-pweq8vqv.mjs";
|
|
44
44
|
import {
|
|
45
45
|
defaultPort2,
|
|
46
46
|
isValidSessionId2
|
|
47
|
-
} from "./main-
|
|
47
|
+
} from "./main-a65k2jvs.mjs";
|
|
48
48
|
import {
|
|
49
49
|
option,
|
|
50
50
|
String2,
|
|
@@ -63,31 +63,31 @@ import {
|
|
|
63
63
|
ensureExtensionConnected,
|
|
64
64
|
stoppedRelayStatus,
|
|
65
65
|
statusCollections
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-jy92xsx2.mjs";
|
|
67
67
|
import {
|
|
68
68
|
updateJson2,
|
|
69
69
|
formatUpdateNotice2,
|
|
70
70
|
updateNotice2
|
|
71
|
-
} from "./main-
|
|
71
|
+
} from "./main-4y0ebwtf.mjs";
|
|
72
72
|
import {
|
|
73
73
|
settingKeys,
|
|
74
74
|
formatSettings,
|
|
75
75
|
ensureSessionExists
|
|
76
|
-
} from "./main-
|
|
76
|
+
} from "./main-b3n584bp.mjs";
|
|
77
77
|
import {
|
|
78
78
|
addSecret,
|
|
79
79
|
listSecrets,
|
|
80
80
|
removeSecret
|
|
81
|
-
} from "./main-
|
|
81
|
+
} from "./main-ayhsjnxa.mjs";
|
|
82
82
|
import {
|
|
83
83
|
defaultJournalBaseDir,
|
|
84
84
|
readJournalEntries,
|
|
85
85
|
formatJournalEntry
|
|
86
|
-
} from "./main-
|
|
87
|
-
import"./main-
|
|
86
|
+
} from "./main-bprn8bde.mjs";
|
|
87
|
+
import"./main-5p5ccmye.mjs";
|
|
88
88
|
import {
|
|
89
89
|
endpointForPort
|
|
90
|
-
} from "./main-
|
|
90
|
+
} from "./main-t29t4z9q.mjs";
|
|
91
91
|
import {
|
|
92
92
|
taggedEnum,
|
|
93
93
|
is2,
|
|
@@ -5858,7 +5858,7 @@ var status = make("status", {
|
|
|
5858
5858
|
}
|
|
5859
5859
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5860
5860
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5861
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5861
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-qhe69x59.mjs"));
|
|
5862
5862
|
yield* runMcpServer;
|
|
5863
5863
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5864
5864
|
registerCliCommand(400, () => tabs);
|
|
@@ -6306,12 +6306,12 @@ registerCliCommand(710, () => flightRecorder);
|
|
|
6306
6306
|
|
|
6307
6307
|
// src/cli/relay.ts
|
|
6308
6308
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
6309
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
6309
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-x5bbrs68.mjs"), import("./helpers-2z6753nv.mjs")]));
|
|
6310
6310
|
const port = process.env.OPENCODE_BROWSER_PORT === undefined ? undefined : yield* portConfig;
|
|
6311
6311
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
6312
6312
|
yield* scoped(gen(function* () {
|
|
6313
6313
|
const relay = yield* startRelay({ ...port === undefined ? {} : { port }, additionalExtensionOrigins });
|
|
6314
|
-
yield* promise(() => import("./legacy-runtime-
|
|
6314
|
+
yield* promise(() => import("./legacy-runtime-ywz3g2n8.mjs").then((module) => module.commitLegacyTakeover()));
|
|
6315
6315
|
yield* log(`browse relay listening at ${relay.url}`);
|
|
6316
6316
|
yield* log(`browse connects automatically while the browser runs. Run \`${cliCommand("status")}\` to check.`);
|
|
6317
6317
|
yield* never;
|
|
@@ -6526,7 +6526,8 @@ var sessionList = make("list", {
|
|
|
6526
6526
|
const keys = item.stateKeys.length ? ` state=${item.stateKeys.join(",")}` : "";
|
|
6527
6527
|
const readOnly = item.readOnly ? " read-only" : "";
|
|
6528
6528
|
const allowed = item.allowedOrigins ? ` allow=${item.allowedOrigins.join(",")}` : "";
|
|
6529
|
-
|
|
6529
|
+
const handoff = item.handoff ? ` waiting on you: ${JSON.stringify(item.handoff.message)}` : "";
|
|
6530
|
+
return log(`${marker} ${item.id} ${page}${keys}${readOnly}${allowed}${handoff}`);
|
|
6530
6531
|
});
|
|
6531
6532
|
})).pipe(withDescription4("List browse sessions"));
|
|
6532
6533
|
var sessionCurrent = make("current", {}, fn("Cli.sessionCurrent")(function* () {
|
package/dist/cli.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
|
|
9
9
|
// src/main.ts
|
|
10
10
|
import path from "node:path";
|
|
11
|
-
var embeddedVersion = "0.0.17-dev.
|
|
11
|
+
var embeddedVersion = "0.0.17-dev.184";
|
|
12
12
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
13
13
|
var command = process.argv[2];
|
|
14
14
|
var args = process.argv.slice(3);
|
|
@@ -18,26 +18,26 @@ var options = separator === -1 ? args : args.slice(0, separator);
|
|
|
18
18
|
var askedForHelp = command === "--help" || command === "-h" || options.some((arg) => arg === "--help" || arg === "-h");
|
|
19
19
|
var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
|
|
20
20
|
var oldRuntime = legacyRuntime();
|
|
21
|
-
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-
|
|
21
|
+
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-ywz3g2n8.mjs").then((module) => module.prepareLegacyTakeover(oldRuntime)).catch(() => false);
|
|
22
22
|
if (!takingOver)
|
|
23
23
|
settleLegacyHome(process.env, oldRuntime);
|
|
24
24
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver && !process.env.OPENCODE_BROWSER_HOME && legacyRootsLeft()) {
|
|
25
25
|
try {
|
|
26
|
-
const { migrateLegacy } = await import("./migrate-
|
|
26
|
+
const { migrateLegacy } = await import("./migrate-8b015c1q.mjs");
|
|
27
27
|
migrateLegacy();
|
|
28
28
|
} catch {}
|
|
29
29
|
}
|
|
30
30
|
if (command === "--version" || command === "-v") {
|
|
31
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
31
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-p0229yf3.mjs")).opencodeBrowserVersion;
|
|
32
32
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
33
33
|
`);
|
|
34
|
-
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-
|
|
35
|
-
const { runBinaryMcp } = await import("./supervisor-
|
|
34
|
+
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-sjxe3hda.mjs")).supervisesMcp()) {
|
|
35
|
+
const { runBinaryMcp } = await import("./supervisor-sjxe3hda.mjs");
|
|
36
36
|
await runBinaryMcp(process.argv.slice(3));
|
|
37
37
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
38
38
|
const { NodeRuntime } = await import("./index-gjq7chrk.mjs");
|
|
39
39
|
const { defaultTeardown } = await import("./Runtime-xss8qan1.mjs");
|
|
40
|
-
const { runMcpServer } = await import("./mcp-
|
|
40
|
+
const { runMcpServer } = await import("./mcp-qhe69x59.mjs");
|
|
41
41
|
let stdinGone = false;
|
|
42
42
|
const onStdinGone = () => {
|
|
43
43
|
stdinGone = true;
|
|
@@ -59,13 +59,13 @@ if (command === "--version" || command === "-v") {
|
|
|
59
59
|
})
|
|
60
60
|
}));
|
|
61
61
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
62
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
62
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-07b127we.mjs");
|
|
63
63
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
64
64
|
} else if (command === "update" && !askedForHelp) {
|
|
65
|
-
const { runUpdateCommand } = await import("./update-
|
|
65
|
+
const { runUpdateCommand } = await import("./update-ya63f9v3.mjs");
|
|
66
66
|
await runUpdateCommand(process.argv.slice(3));
|
|
67
67
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
68
|
-
const { runSetup } = await import("./setup-
|
|
68
|
+
const { runSetup } = await import("./setup-7a2dr5pd.mjs");
|
|
69
69
|
await runSetup(command, process.argv.slice(3));
|
|
70
70
|
} else {
|
|
71
71
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -102,9 +102,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
|
102
102
|
`);
|
|
103
103
|
}
|
|
104
104
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
105
|
-
const { printSetupStatus } = await import("./setup-
|
|
105
|
+
const { printSetupStatus } = await import("./setup-7a2dr5pd.mjs");
|
|
106
106
|
printSetupStatus();
|
|
107
107
|
}
|
|
108
|
-
const { runCli } = await import("./cli-
|
|
108
|
+
const { runCli } = await import("./cli-c7zk5z3d.mjs");
|
|
109
109
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
110
110
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-a65k2jvs.mjs";
|
|
2
2
|
import {
|
|
3
3
|
installerBinaryPath,
|
|
4
4
|
compiledBinary,
|
|
5
5
|
channelOf,
|
|
6
6
|
installedRuntime2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-pweq8vqv.mjs";
|
|
8
8
|
import {
|
|
9
9
|
legacyRuntimeActive,
|
|
10
10
|
insidePath,
|
|
@@ -12,12 +12,12 @@ import {
|
|
|
12
12
|
} from "./main-pmfd055v.mjs";
|
|
13
13
|
import {
|
|
14
14
|
opencodeBrowserVersion2
|
|
15
|
-
} from "./main-
|
|
15
|
+
} from "./main-yp8nt4dh.mjs";
|
|
16
16
|
import {
|
|
17
17
|
relayPortPinned,
|
|
18
18
|
resolveRelayPort,
|
|
19
19
|
probeRelayPort
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-t29t4z9q.mjs";
|
|
21
21
|
|
|
22
22
|
// src/setup/legacy-runtime.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -50,7 +50,7 @@ async function prepareLegacyTakeover(legacy, options = {}) {
|
|
|
50
50
|
return false;
|
|
51
51
|
}
|
|
52
52
|
const home = options.home ?? os.homedir();
|
|
53
|
-
const { copyLegacyData } = await import("./migrate-
|
|
53
|
+
const { copyLegacyData } = await import("./migrate-8b015c1q.mjs");
|
|
54
54
|
delete env.OPENCODE_BROWSER_HOME;
|
|
55
55
|
copyLegacyData(home);
|
|
56
56
|
pending = { legacy, install, home };
|
|
@@ -64,7 +64,7 @@ async function commitLegacyTakeover(now = Date.now()) {
|
|
|
64
64
|
try {
|
|
65
65
|
if (!adoptLegacyRuntime(legacy, install, now))
|
|
66
66
|
return false;
|
|
67
|
-
const { migrateLegacy } = await import("./migrate-
|
|
67
|
+
const { migrateLegacy } = await import("./migrate-8b015c1q.mjs");
|
|
68
68
|
migrateLegacy(home, now);
|
|
69
69
|
return true;
|
|
70
70
|
} catch {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
installedRuntime2,
|
|
8
8
|
autoUpdateStatus,
|
|
9
9
|
updateAvailable
|
|
10
|
-
} from "./main-
|
|
10
|
+
} from "./main-pweq8vqv.mjs";
|
|
11
11
|
|
|
12
12
|
// src/update.ts
|
|
13
13
|
import { execFile, spawnSync } from "node:child_process";
|
|
@@ -313,7 +313,7 @@ function runUpdate(args, deps) {
|
|
|
313
313
|
async function runUpdateCommand2(args) {
|
|
314
314
|
const log = (line) => process.stdout.write(line + `
|
|
315
315
|
`);
|
|
316
|
-
const { runInstalledUpdate } = await import("./runtime-update-
|
|
316
|
+
const { runInstalledUpdate } = await import("./runtime-update-07b127we.mjs");
|
|
317
317
|
if (await runInstalledUpdate(args))
|
|
318
318
|
return;
|
|
319
319
|
if (compiledBinary()) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-a65k2jvs.mjs";
|
|
4
4
|
import {
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-wk9g7869.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-pweq8vqv.mjs";
|
|
15
15
|
|
|
16
16
|
// src/setup/dev-extension.ts
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-yp8nt4dh.mjs";
|
|
4
4
|
import {
|
|
5
5
|
configRoot2,
|
|
6
6
|
dataRoot,
|
|
@@ -22,16 +22,16 @@ import {
|
|
|
22
22
|
npmGlobalRoot,
|
|
23
23
|
installedVersion,
|
|
24
24
|
runCommand
|
|
25
|
-
} from "./main-
|
|
25
|
+
} from "./main-pweq8vqv.mjs";
|
|
26
26
|
import {
|
|
27
27
|
writeStdout
|
|
28
28
|
} from "./main-tk4axre7.mjs";
|
|
29
29
|
import {
|
|
30
30
|
defaultPort2
|
|
31
|
-
} from "./main-
|
|
31
|
+
} from "./main-a65k2jvs.mjs";
|
|
32
32
|
import {
|
|
33
33
|
formatPairingCode
|
|
34
|
-
} from "./main-
|
|
34
|
+
} from "./main-wk9g7869.mjs";
|
|
35
35
|
import {
|
|
36
36
|
__toESM,
|
|
37
37
|
__commonJS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
unpackedExtensionId,
|
|
3
3
|
parseJsonObject
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-pweq8vqv.mjs";
|
|
5
5
|
import {
|
|
6
6
|
decodeUnknownOption,
|
|
7
7
|
optionalKey,
|
|
@@ -101,6 +101,11 @@ function writePrivateJsonFileSync(filePath, value, options = {}) {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
// src/relay/schema.ts
|
|
104
|
+
var SessionHandoff = Struct({
|
|
105
|
+
message: String3,
|
|
106
|
+
tabId: Number2,
|
|
107
|
+
startedAt: String3
|
|
108
|
+
});
|
|
104
109
|
var SessionSummary = Struct({
|
|
105
110
|
id: String3,
|
|
106
111
|
createdAt: String3,
|
|
@@ -111,7 +116,8 @@ var SessionSummary = Struct({
|
|
|
111
116
|
readOnly: optionalKey(Boolean3),
|
|
112
117
|
allowedOrigins: optionalKey(ArraySchema(String3)),
|
|
113
118
|
keepVisible: optionalKey(Boolean3),
|
|
114
|
-
browser: optionalKey(String3)
|
|
119
|
+
browser: optionalKey(String3),
|
|
120
|
+
handoff: optionalKey(SessionHandoff)
|
|
115
121
|
});
|
|
116
122
|
var ExecuteSessionSummary = SessionSummary.pipe(fieldsAssign({
|
|
117
123
|
created: optionalKey(Boolean3)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isNodeError,
|
|
3
3
|
writeJsonFileAtomically
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-a65k2jvs.mjs";
|
|
5
5
|
import {
|
|
6
6
|
decodeUnknownEffect2,
|
|
7
7
|
decodeUnknownSync,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
dataRoot,
|
|
52
52
|
cliCommand
|
|
53
|
-
} from "./main-
|
|
53
|
+
} from "./main-pweq8vqv.mjs";
|
|
54
54
|
|
|
55
55
|
// node_modules/effect/dist/Semaphore.js
|
|
56
56
|
var makeUnsafe = (permits) => new SemaphoreImpl(permits);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cliCommand
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-pweq8vqv.mjs";
|
|
4
4
|
import {
|
|
5
5
|
SessionDeleted,
|
|
6
6
|
ExecuteLogEntry,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseTargetSelection2,
|
|
16
16
|
getObject2,
|
|
17
17
|
getString2
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-a65k2jvs.mjs";
|
|
19
19
|
import {
|
|
20
20
|
isStream,
|
|
21
21
|
provideContext
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
compareVersions,
|
|
11
11
|
installedRuntime2,
|
|
12
12
|
installedVersion
|
|
13
|
-
} from "./main-
|
|
13
|
+
} from "./main-pweq8vqv.mjs";
|
|
14
14
|
import {
|
|
15
15
|
ensurePrivateDirectorySync,
|
|
16
16
|
SessionContainer,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
RelayErrorCode,
|
|
44
44
|
ErrorEnvelope,
|
|
45
45
|
defaultPort2
|
|
46
|
-
} from "./main-
|
|
46
|
+
} from "./main-a65k2jvs.mjs";
|
|
47
47
|
import {
|
|
48
48
|
get,
|
|
49
49
|
post,
|
|
@@ -54,10 +54,10 @@ import {
|
|
|
54
54
|
} from "./main-jeta10c6.mjs";
|
|
55
55
|
import {
|
|
56
56
|
opencodeBrowserBuildId2
|
|
57
|
-
} from "./main-
|
|
57
|
+
} from "./main-yp8nt4dh.mjs";
|
|
58
58
|
import {
|
|
59
59
|
relayAuthorization
|
|
60
|
-
} from "./main-
|
|
60
|
+
} from "./main-5p5ccmye.mjs";
|
|
61
61
|
import {
|
|
62
62
|
endpointForPort,
|
|
63
63
|
configuredRelayPort,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
readRelayState,
|
|
66
66
|
processAlive,
|
|
67
67
|
resolveRelayPort
|
|
68
|
-
} from "./main-
|
|
68
|
+
} from "./main-t29t4z9q.mjs";
|
|
69
69
|
import {
|
|
70
70
|
Pointer,
|
|
71
71
|
passthrough,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./main-pmfd055v.mjs";
|
|
5
5
|
import {
|
|
6
6
|
opencodeBrowserVersion2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-yp8nt4dh.mjs";
|
|
8
8
|
|
|
9
9
|
// src/paths.ts
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -114,7 +114,7 @@ function cliInstall() {
|
|
|
114
114
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
115
115
|
if (fromCheckout())
|
|
116
116
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
117
|
-
return { kind: "npm", version: "0.0.17-dev.
|
|
117
|
+
return { kind: "npm", version: "0.0.17-dev.184", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
|
|
118
118
|
}
|
|
119
119
|
function cliPrefix(install = cliInstall()) {
|
|
120
120
|
if (install.kind === "binary") {
|
|
@@ -136,7 +136,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
136
136
|
return id ? { id } : {};
|
|
137
137
|
}
|
|
138
138
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
139
|
-
function devExtension(baked = { file: "browse-extension-0.0.17-dev.
|
|
139
|
+
function devExtension(baked = { file: "browse-extension-0.0.17-dev.184.zip", sha256: "2c4433c8516f1f8025e3f01d312ae8d2126ec6909708b8a2d79d84f4cd1c01c6", size: 187301 }) {
|
|
140
140
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
141
141
|
}
|
|
142
142
|
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
3
|
defaultPort2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-a65k2jvs.mjs";
|
|
5
5
|
import {
|
|
6
6
|
stateRoot
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-pweq8vqv.mjs";
|
|
8
8
|
|
|
9
9
|
// src/relay/port.ts
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-a65k2jvs.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
stateRoot
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-pweq8vqv.mjs";
|
|
8
8
|
|
|
9
9
|
// src/relay/browser-pairing.ts
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
import"./main-pmfd055v.mjs";
|
|
47
47
|
import {
|
|
48
48
|
opencodeBrowserVersion2
|
|
49
|
-
} from "./main-
|
|
49
|
+
} from "./main-yp8nt4dh.mjs";
|
|
50
50
|
import {
|
|
51
51
|
cliCommand,
|
|
52
52
|
autoUpdateStatus
|
|
53
|
-
} from "./main-
|
|
53
|
+
} from "./main-pweq8vqv.mjs";
|
|
54
54
|
import {
|
|
55
55
|
SessionContainer,
|
|
56
56
|
SessionsContainer,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
AuthRunResponse,
|
|
62
62
|
TabsCleanupResponse,
|
|
63
63
|
getObject2
|
|
64
|
-
} from "./main-
|
|
64
|
+
} from "./main-a65k2jvs.mjs";
|
|
65
65
|
import {
|
|
66
66
|
option,
|
|
67
67
|
String2,
|
|
@@ -71,11 +71,11 @@ import {
|
|
|
71
71
|
relayBuildProblem,
|
|
72
72
|
ensureRelay,
|
|
73
73
|
ensureExtensionConnected
|
|
74
|
-
} from "./main-
|
|
74
|
+
} from "./main-jy92xsx2.mjs";
|
|
75
75
|
import {
|
|
76
76
|
updateJson2,
|
|
77
77
|
createUpdateWatcher2
|
|
78
|
-
} from "./main-
|
|
78
|
+
} from "./main-4y0ebwtf.mjs";
|
|
79
79
|
import {
|
|
80
80
|
settingSpecs,
|
|
81
81
|
securityVariables,
|
|
@@ -156,12 +156,12 @@ import {
|
|
|
156
156
|
toolResultForValue2,
|
|
157
157
|
mcpErrorMessage2,
|
|
158
158
|
toolResult
|
|
159
|
-
} from "./main-
|
|
159
|
+
} from "./main-b3n584bp.mjs";
|
|
160
160
|
import {
|
|
161
161
|
makeUnsafe,
|
|
162
162
|
make3,
|
|
163
163
|
listSecrets
|
|
164
|
-
} from "./main-
|
|
164
|
+
} from "./main-ayhsjnxa.mjs";
|
|
165
165
|
import {
|
|
166
166
|
Clock,
|
|
167
167
|
type,
|
|
@@ -176,8 +176,8 @@ import {
|
|
|
176
176
|
orElse,
|
|
177
177
|
exhaustive
|
|
178
178
|
} from "./main-akpa411k.mjs";
|
|
179
|
-
import"./main-
|
|
180
|
-
import"./main-
|
|
179
|
+
import"./main-5p5ccmye.mjs";
|
|
180
|
+
import"./main-t29t4z9q.mjs";
|
|
181
181
|
import {
|
|
182
182
|
Class,
|
|
183
183
|
taggedEnum,
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
editAgentConfig,
|
|
8
8
|
OPENCODE_CONFIG_NAMES,
|
|
9
9
|
configureMcp
|
|
10
|
-
} from "./main-
|
|
10
|
+
} from "./main-8sn293dr.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-
|
|
17
|
+
import"./main-yp8nt4dh.mjs";
|
|
18
18
|
import {
|
|
19
19
|
configRoot2,
|
|
20
20
|
dataRoot,
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
binRoot,
|
|
24
24
|
binaryName,
|
|
25
25
|
devExtensionFolder
|
|
26
|
-
} from "./main-
|
|
26
|
+
} from "./main-pweq8vqv.mjs";
|
|
27
27
|
import"./main-tk4axre7.mjs";
|
|
28
|
-
import"./main-
|
|
29
|
-
import"./main-
|
|
28
|
+
import"./main-a65k2jvs.mjs";
|
|
29
|
+
import"./main-wk9g7869.mjs";
|
|
30
30
|
|
|
31
31
|
// src/setup/migrate.ts
|
|
32
32
|
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-yp8nt4dh.mjs";
|
|
8
8
|
import {
|
|
9
9
|
defaultRoots,
|
|
10
10
|
configRoot2,
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
setStoredMode,
|
|
42
42
|
autoUpdateStatus,
|
|
43
43
|
createAutoUpdater
|
|
44
|
-
} from "./main-
|
|
44
|
+
} from "./main-pweq8vqv.mjs";
|
|
45
45
|
import {
|
|
46
46
|
isNodeError,
|
|
47
47
|
isUnsupportedDirectorySyncError,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
isRestrictedTarget2,
|
|
96
96
|
isRestrictedUrl2,
|
|
97
97
|
dataUrlDocument2
|
|
98
|
-
} from "./main-
|
|
98
|
+
} from "./main-a65k2jvs.mjs";
|
|
99
99
|
import {
|
|
100
100
|
context,
|
|
101
101
|
pendingPairingCodeKeys,
|
|
@@ -113,7 +113,7 @@ import {
|
|
|
113
113
|
pairingSessionKey,
|
|
114
114
|
sessionProof,
|
|
115
115
|
wrapToken
|
|
116
|
-
} from "./main-
|
|
116
|
+
} from "./main-wk9g7869.mjs";
|
|
117
117
|
import {
|
|
118
118
|
makeUnsafe,
|
|
119
119
|
terminateChildProcess,
|
|
@@ -136,16 +136,16 @@ import {
|
|
|
136
136
|
checkNavigationUrl,
|
|
137
137
|
readSecret,
|
|
138
138
|
secretText
|
|
139
|
-
} from "./main-
|
|
139
|
+
} from "./main-ayhsjnxa.mjs";
|
|
140
140
|
import {
|
|
141
141
|
defaultJournalBaseDir,
|
|
142
142
|
makeJournalEntry,
|
|
143
143
|
appendJournalEntry,
|
|
144
144
|
startJournalRetention
|
|
145
|
-
} from "./main-
|
|
145
|
+
} from "./main-bprn8bde.mjs";
|
|
146
146
|
import {
|
|
147
147
|
createUpdateWatcher2
|
|
148
|
-
} from "./main-
|
|
148
|
+
} from "./main-4y0ebwtf.mjs";
|
|
149
149
|
import {
|
|
150
150
|
SettingsInputError,
|
|
151
151
|
parseSettingChanges,
|
|
@@ -153,13 +153,13 @@ import {
|
|
|
153
153
|
settingsToExtension,
|
|
154
154
|
describeSettings,
|
|
155
155
|
describeChanges
|
|
156
|
-
} from "./main-
|
|
156
|
+
} from "./main-b3n584bp.mjs";
|
|
157
157
|
import {
|
|
158
158
|
relayHostname,
|
|
159
159
|
isLocalPeer,
|
|
160
160
|
installedDevExtension,
|
|
161
161
|
syncDevExtension
|
|
162
|
-
} from "./main-
|
|
162
|
+
} from "./main-62n1hcda.mjs";
|
|
163
163
|
import {
|
|
164
164
|
currentTimeMillis,
|
|
165
165
|
value,
|
|
@@ -176,13 +176,13 @@ import {
|
|
|
176
176
|
Boolean2,
|
|
177
177
|
appendManagedRelayProcessLog,
|
|
178
178
|
relayLog
|
|
179
|
-
} from "./main-
|
|
179
|
+
} from "./main-jy92xsx2.mjs";
|
|
180
180
|
import {
|
|
181
181
|
relayTokenQueryParam,
|
|
182
182
|
relayToken,
|
|
183
183
|
secretsEqual,
|
|
184
184
|
ensurePrivateDirectory
|
|
185
|
-
} from "./main-
|
|
185
|
+
} from "./main-5p5ccmye.mjs";
|
|
186
186
|
import {
|
|
187
187
|
join,
|
|
188
188
|
interrupt,
|
|
@@ -195,7 +195,7 @@ import {
|
|
|
195
195
|
writeRelayState,
|
|
196
196
|
removeRelayState,
|
|
197
197
|
chooseRelayPort
|
|
198
|
-
} from "./main-
|
|
198
|
+
} from "./main-t29t4z9q.mjs";
|
|
199
199
|
import {
|
|
200
200
|
taggedEnum,
|
|
201
201
|
is2,
|
|
@@ -13011,6 +13011,7 @@ class HandoffRegistry {
|
|
|
13011
13011
|
existing.resolve("timeout");
|
|
13012
13012
|
}
|
|
13013
13013
|
const id = this.createId();
|
|
13014
|
+
const startedAt = new Date().toISOString();
|
|
13014
13015
|
let held = false;
|
|
13015
13016
|
let humanCompleted = false;
|
|
13016
13017
|
let finish;
|
|
@@ -13031,6 +13032,7 @@ class HandoffRegistry {
|
|
|
13031
13032
|
targetId: options.targetId,
|
|
13032
13033
|
targetSessionId: options.targetSessionId,
|
|
13033
13034
|
message: options.message,
|
|
13035
|
+
startedAt,
|
|
13034
13036
|
resolve: (outcome) => {
|
|
13035
13037
|
if (outcome === "resolved" && held) {
|
|
13036
13038
|
humanCompleted = true;
|
|
@@ -13127,7 +13129,8 @@ class HandoffRegistry {
|
|
|
13127
13129
|
tabId: pending.tabId,
|
|
13128
13130
|
targetId: pending.targetId,
|
|
13129
13131
|
targetSessionId: pending.targetSessionId,
|
|
13130
|
-
message: pending.message
|
|
13132
|
+
message: pending.message,
|
|
13133
|
+
startedAt: pending.startedAt
|
|
13131
13134
|
};
|
|
13132
13135
|
}
|
|
13133
13136
|
}
|
|
@@ -13404,8 +13407,9 @@ function stoppedExecuteResult(message, diagnostic) {
|
|
|
13404
13407
|
diagnostic
|
|
13405
13408
|
};
|
|
13406
13409
|
}
|
|
13407
|
-
function sessionSummary(session) {
|
|
13410
|
+
function sessionSummary(session, hooks) {
|
|
13408
13411
|
const status = session.sandbox.getStatus();
|
|
13412
|
+
const handoff = hooks?.pendingHandoff?.(session.id);
|
|
13409
13413
|
return {
|
|
13410
13414
|
id: session.id,
|
|
13411
13415
|
createdAt: session.createdAt,
|
|
@@ -13416,12 +13420,13 @@ function sessionSummary(session) {
|
|
|
13416
13420
|
...session.readOnly ? { readOnly: true } : {},
|
|
13417
13421
|
...session.allowedOrigins ? { allowedOrigins: [...session.allowedOrigins] } : {},
|
|
13418
13422
|
...session.keepVisible ? { keepVisible: true } : {},
|
|
13419
|
-
...session.browser ? { browser: session.browser.id } : {}
|
|
13423
|
+
...session.browser ? { browser: session.browser.id } : {},
|
|
13424
|
+
...handoff ? { handoff } : {}
|
|
13420
13425
|
};
|
|
13421
13426
|
}
|
|
13422
|
-
function createdSummary(session, created) {
|
|
13427
|
+
function createdSummary(session, created, hooks) {
|
|
13423
13428
|
return {
|
|
13424
|
-
...sessionSummary(session),
|
|
13429
|
+
...sessionSummary(session, hooks),
|
|
13425
13430
|
...created ? { created: true } : {}
|
|
13426
13431
|
};
|
|
13427
13432
|
}
|
|
@@ -13668,7 +13673,7 @@ function adoptTargetForSession(context, options) {
|
|
|
13668
13673
|
catch: (cause) => cause instanceof Error ? cause : new Error("Commit target ownership", { cause })
|
|
13669
13674
|
});
|
|
13670
13675
|
const releasedTargetIds = previousTargetId && previousTargetId !== options.targetId ? [previousTargetId] : [];
|
|
13671
|
-
const value = { adoptedUrl: options.targetUrl, releasedTargetIds, session: createdSummary(session, resolved.created) };
|
|
13676
|
+
const value = { adoptedUrl: options.targetUrl, releasedTargetIds, session: createdSummary(session, resolved.created, context.hooks) };
|
|
13672
13677
|
yield* succeed4(result2, value);
|
|
13673
13678
|
return value;
|
|
13674
13679
|
});
|
|
@@ -13766,7 +13771,7 @@ function executeInSession(ctx, options) {
|
|
|
13766
13771
|
let stopped;
|
|
13767
13772
|
const stoppedExecution = (stop) => ({
|
|
13768
13773
|
result: stoppedExecuteResult(stop.message, stop.diagnostic),
|
|
13769
|
-
session: createdSummary(session, resolved.created)
|
|
13774
|
+
session: createdSummary(session, resolved.created, ctx.hooks)
|
|
13770
13775
|
});
|
|
13771
13776
|
const chosenTimeoutMs = options.timeoutMs ?? ctx.hooks.executeTimeoutMs;
|
|
13772
13777
|
const effectiveTimeoutMs = chosenTimeoutMs ?? defaultExecuteTimeoutMs;
|
|
@@ -13859,7 +13864,7 @@ function executeInSession(ctx, options) {
|
|
|
13859
13864
|
result: resultWithHint
|
|
13860
13865
|
});
|
|
13861
13866
|
yield* ctx.admission.commitPersistence();
|
|
13862
|
-
return { result: resultWithHint, session: createdSummary(session, resolved.created) };
|
|
13867
|
+
return { result: resultWithHint, session: createdSummary(session, resolved.created, ctx.hooks) };
|
|
13863
13868
|
});
|
|
13864
13869
|
const worker = session.executeSemaphore.withPermit(operation.pipe(matchEffect2({
|
|
13865
13870
|
onFailure: (error) => sync2(() => deadline?.cancel()).pipe(andThen2(resolved.created ? ctx.cleanupCreatedSession(session) : void_3), andThen2(fail5(response, error))),
|
|
@@ -13937,7 +13942,7 @@ class OpenCodeBrowserSessions {
|
|
|
13937
13942
|
};
|
|
13938
13943
|
}
|
|
13939
13944
|
listSummaries() {
|
|
13940
|
-
return Array.from(this.sessions.values()).map((session) => sessionSummary(session));
|
|
13945
|
+
return Array.from(this.sessions.values()).map((session) => sessionSummary(session, this.hooks));
|
|
13941
13946
|
}
|
|
13942
13947
|
restore(entries) {
|
|
13943
13948
|
this.admission.assertAdmission();
|
|
@@ -14029,10 +14034,10 @@ class OpenCodeBrowserSessions {
|
|
|
14029
14034
|
if (options?.readOnly === true && !existing.readOnly) {
|
|
14030
14035
|
return yield* sessionError("invalid-request", `Session ${id} already exists with write access and cannot be ensured as read-only`, id);
|
|
14031
14036
|
}
|
|
14032
|
-
return sessionSummary(existing);
|
|
14037
|
+
return sessionSummary(existing, manager.hooks);
|
|
14033
14038
|
}
|
|
14034
14039
|
const session = yield* manager.createPersistedSession(id, options);
|
|
14035
|
-
return sessionSummary(session);
|
|
14040
|
+
return sessionSummary(session, manager.hooks);
|
|
14036
14041
|
}).pipe(uninterruptible));
|
|
14037
14042
|
}
|
|
14038
14043
|
createPersistedSession = fnUntraced(function* (id, options) {
|
|
@@ -14075,7 +14080,7 @@ class OpenCodeBrowserSessions {
|
|
|
14075
14080
|
delete session.allowedOrigins;
|
|
14076
14081
|
session.updatedAt = new Date().toISOString();
|
|
14077
14082
|
manager.admission.schedulePersistence();
|
|
14078
|
-
return sessionSummary(session);
|
|
14083
|
+
return sessionSummary(session, manager.hooks);
|
|
14079
14084
|
});
|
|
14080
14085
|
}
|
|
14081
14086
|
keepsTabsVisible(id) {
|
|
@@ -14247,7 +14252,7 @@ class OpenCodeBrowserSessions {
|
|
|
14247
14252
|
console.error("Session reset hook failed", error);
|
|
14248
14253
|
}
|
|
14249
14254
|
});
|
|
14250
|
-
return sessionSummary(session);
|
|
14255
|
+
return sessionSummary(session, manager.hooks);
|
|
14251
14256
|
})));
|
|
14252
14257
|
return { session, ...stopped ? { stopped } : {} };
|
|
14253
14258
|
}));
|
|
@@ -14346,7 +14351,7 @@ class OpenCodeBrowserSessions {
|
|
|
14346
14351
|
}
|
|
14347
14352
|
summary(id) {
|
|
14348
14353
|
const session = this.sessions.get(id);
|
|
14349
|
-
return session ? sessionSummary(session) : undefined;
|
|
14354
|
+
return session ? sessionSummary(session, this.hooks) : undefined;
|
|
14350
14355
|
}
|
|
14351
14356
|
reapIdleSessions(options) {
|
|
14352
14357
|
const manager = this;
|
|
@@ -19711,6 +19716,10 @@ var makeRelay = fnUntraced(function* (options = {}) {
|
|
|
19711
19716
|
...Array.from(ownersAcrossReconnect).filter(([targetId, known]) => known.owner === "relay" && known.sessionId === sessionId && !registry.targetsByTargetId.has(targetId)).map(([targetId]) => targetId)
|
|
19712
19717
|
],
|
|
19713
19718
|
onCancelSessionHandoff: (sessionId) => handoffs.cancelForSession(sessionId) !== undefined,
|
|
19719
|
+
pendingHandoff: (sessionId) => {
|
|
19720
|
+
const pending = handoffs.pendingForSession(sessionId);
|
|
19721
|
+
return pending ? { message: pending.message, tabId: pending.tabId, startedAt: pending.startedAt } : undefined;
|
|
19722
|
+
},
|
|
19714
19723
|
onSessionsChanged: async (entries) => {
|
|
19715
19724
|
if (catalogWritesEnabled)
|
|
19716
19725
|
await sessionCatalog?.save(entries);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import"./main-9frwnsnf.mjs";
|
|
2
2
|
import"./main-pmfd055v.mjs";
|
|
3
|
-
import"./main-
|
|
3
|
+
import"./main-yp8nt4dh.mjs";
|
|
4
4
|
import {
|
|
5
5
|
cliCommand,
|
|
6
6
|
installCommand,
|
|
@@ -18,17 +18,17 @@ import {
|
|
|
18
18
|
registryUrl,
|
|
19
19
|
fetchPublished,
|
|
20
20
|
runInstaller
|
|
21
|
-
} from "./main-
|
|
22
|
-
import"./main-
|
|
21
|
+
} from "./main-pweq8vqv.mjs";
|
|
22
|
+
import"./main-a65k2jvs.mjs";
|
|
23
23
|
import"./main-jeta10c6.mjs";
|
|
24
24
|
import {
|
|
25
25
|
Service,
|
|
26
26
|
layerFetch,
|
|
27
27
|
restartRelay,
|
|
28
28
|
startManagedRelay
|
|
29
|
-
} from "./main-
|
|
30
|
-
import"./main-
|
|
31
|
-
import"./main-
|
|
29
|
+
} from "./main-jy92xsx2.mjs";
|
|
30
|
+
import"./main-5p5ccmye.mjs";
|
|
31
|
+
import"./main-t29t4z9q.mjs";
|
|
32
32
|
import {
|
|
33
33
|
succeed6,
|
|
34
34
|
gen,
|
|
@@ -63,11 +63,11 @@ import {
|
|
|
63
63
|
installRuntime,
|
|
64
64
|
installedRuntime,
|
|
65
65
|
manualMcpEntry
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-8sn293dr.mjs";
|
|
67
67
|
import"./main-pmfd055v.mjs";
|
|
68
68
|
import {
|
|
69
69
|
opencodeBrowserBuildId2
|
|
70
|
-
} from "./main-
|
|
70
|
+
} from "./main-yp8nt4dh.mjs";
|
|
71
71
|
import {
|
|
72
72
|
installedBinaryPath,
|
|
73
73
|
installerBinaryPath,
|
|
@@ -87,10 +87,10 @@ import {
|
|
|
87
87
|
autoUpdateStatus,
|
|
88
88
|
describeAutoUpdate,
|
|
89
89
|
runCommand
|
|
90
|
-
} from "./main-
|
|
90
|
+
} from "./main-pweq8vqv.mjs";
|
|
91
91
|
import {
|
|
92
92
|
defaultPort2
|
|
93
|
-
} from "./main-
|
|
93
|
+
} from "./main-a65k2jvs.mjs";
|
|
94
94
|
import {
|
|
95
95
|
pairingCodeTtlMs,
|
|
96
96
|
bundledPairingCodeTtlMs,
|
|
@@ -103,20 +103,20 @@ import {
|
|
|
103
103
|
revokeBrowserToken,
|
|
104
104
|
legacyPairingCode,
|
|
105
105
|
removeLegacyPairingCode
|
|
106
|
-
} from "./main-
|
|
106
|
+
} from "./main-wk9g7869.mjs";
|
|
107
107
|
import"./main-tk4axre7.mjs";
|
|
108
108
|
import {
|
|
109
109
|
defaultSiteSecretsDir
|
|
110
|
-
} from "./main-
|
|
110
|
+
} from "./main-ayhsjnxa.mjs";
|
|
111
111
|
import {
|
|
112
112
|
parseHostname,
|
|
113
113
|
readRelayConfig,
|
|
114
114
|
writeRelayConfig,
|
|
115
115
|
syncDevExtension
|
|
116
|
-
} from "./main-
|
|
116
|
+
} from "./main-62n1hcda.mjs";
|
|
117
117
|
import {
|
|
118
118
|
relayAuthorization
|
|
119
|
-
} from "./main-
|
|
119
|
+
} from "./main-5p5ccmye.mjs";
|
|
120
120
|
import {
|
|
121
121
|
endpointForPort,
|
|
122
122
|
configuredRelayPort,
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
verifiedRelay,
|
|
126
126
|
verifiedRelayEndpoint,
|
|
127
127
|
liveRelayPort
|
|
128
|
-
} from "./main-
|
|
128
|
+
} from "./main-t29t4z9q.mjs";
|
|
129
129
|
|
|
130
130
|
// src/setup.ts
|
|
131
131
|
import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-a65k2jvs.mjs";
|
|
2
2
|
import {
|
|
3
3
|
entrySpawnCommand,
|
|
4
4
|
installedRuntime2,
|
|
5
5
|
installedVersion
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-pweq8vqv.mjs";
|
|
7
7
|
import"./main-pmfd055v.mjs";
|
|
8
|
-
import"./main-
|
|
8
|
+
import"./main-yp8nt4dh.mjs";
|
|
9
9
|
import {
|
|
10
10
|
endpointForPort,
|
|
11
11
|
resolveRelayPort
|
|
12
|
-
} from "./main-
|
|
12
|
+
} from "./main-t29t4z9q.mjs";
|
|
13
13
|
|
|
14
14
|
// src/mcp/supervisor.ts
|
|
15
15
|
import { spawn } from "node:child_process";
|
|
@@ -40,7 +40,7 @@ async function runBinaryMcp(args) {
|
|
|
40
40
|
const runtime = installedRuntime2();
|
|
41
41
|
if (!runtime || runtime.kind === "npx") {
|
|
42
42
|
process.env[directEnvironmentVariable] = "1";
|
|
43
|
-
const { runCli } = await import("./cli-
|
|
43
|
+
const { runCli } = await import("./cli-c7zk5z3d.mjs");
|
|
44
44
|
return runCli();
|
|
45
45
|
}
|
|
46
46
|
const REPLAY = `opencode-browser-shim-initialize-${randomUUID()}`;
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
8
|
-
import"./main-
|
|
7
|
+
} from "./main-4y0ebwtf.mjs";
|
|
8
|
+
import"./main-pweq8vqv.mjs";
|
|
9
9
|
import"./main-pmfd055v.mjs";
|
|
10
|
-
import"./main-
|
|
10
|
+
import"./main-yp8nt4dh.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/dist/main-70nwvs6t.mjs
DELETED