@opencode/browse 0.0.16-dev.125 → 0.0.16-dev.126
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-npdtv37v.mjs → cli-rwr922f0.mjs} +10 -10
- package/dist/cli.mjs +11 -11
- package/dist/{helpers-pgddj8ta.mjs → helpers-mx768d8x.mjs} +1 -1
- package/dist/{main-84628xgn.mjs → main-7h1tv8xb.mjs} +1 -1
- package/dist/{main-xb2m5anv.mjs → main-a1c7ce5q.mjs} +1 -1
- package/dist/{main-afp559wf.mjs → main-a1xrqbaw.mjs} +3 -3
- package/dist/{main-jd1hbpxr.mjs → main-b9sg27va.mjs} +3 -3
- package/dist/{main-j2e7ym4c.mjs → main-hmpxmnfv.mjs} +2 -2
- package/dist/main-mhj2sagn.mjs +4 -0
- package/dist/{main-5mzary6w.mjs → main-qeswgk71.mjs} +2 -2
- package/dist/{main-66vszkjq.mjs → main-sy357gz6.mjs} +2 -2
- package/dist/{main-sj8dx6vs.mjs → main-tp828mqd.mjs} +1 -1
- package/dist/{main-cah8354s.mjs → main-v4tkj163.mjs} +3 -3
- package/dist/{main-0pcpsahd.mjs → main-wk1yq0pp.mjs} +2 -2
- package/dist/{mcp-sd6erjj1.mjs → mcp-mwnpefzr.mjs} +7 -7
- package/dist/{migrate-6xkzg5a2.mjs → migrate-55h1tk1s.mjs} +4 -4
- package/dist/{relay-e53vs28s.mjs → relay-rr30h4aj.mjs} +22 -13
- package/dist/{runtime-update-cvhw8kp9.mjs → runtime-update-mgpayy4q.mjs} +4 -4
- package/dist/{setup-wey2nedw.mjs → setup-hp6ka3jy.mjs} +7 -7
- package/dist/{supervisor-cz6gg10a.mjs → supervisor-2ecabdtd.mjs} +3 -3
- package/dist/{update-s2ys2dbx.mjs → update-n107p4qe.mjs} +3 -3
- package/dist/{version-w7twre9h.mjs → version-jecka5qp.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-ryb1swx2.mjs +0 -4
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
opencodeBrowserVersion2,
|
|
18
18
|
opencodeBrowserBuildId2
|
|
19
|
-
} from "./main-
|
|
19
|
+
} from "./main-mhj2sagn.mjs";
|
|
20
20
|
import {
|
|
21
21
|
configRoot2,
|
|
22
22
|
dataRoot,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
devExtension,
|
|
30
30
|
installCommand,
|
|
31
31
|
autoUpdateStatus
|
|
32
|
-
} from "./main-
|
|
32
|
+
} from "./main-b9sg27va.mjs";
|
|
33
33
|
import {
|
|
34
34
|
extensionProtocolVersion,
|
|
35
35
|
extensionProtocolAdvice
|
|
@@ -55,29 +55,29 @@ import {
|
|
|
55
55
|
ensureExtensionConnected,
|
|
56
56
|
stoppedRelayStatus,
|
|
57
57
|
statusCollections
|
|
58
|
-
} from "./main-
|
|
58
|
+
} from "./main-v4tkj163.mjs";
|
|
59
59
|
import"./main-azpzpy0x.mjs";
|
|
60
60
|
import {
|
|
61
61
|
updateJson2,
|
|
62
62
|
formatUpdateNotice2,
|
|
63
63
|
updateNotice2
|
|
64
|
-
} from "./main-
|
|
64
|
+
} from "./main-hmpxmnfv.mjs";
|
|
65
65
|
import {
|
|
66
66
|
settingKeys,
|
|
67
67
|
formatSettings,
|
|
68
68
|
ensureSessionExists
|
|
69
|
-
} from "./main-
|
|
69
|
+
} from "./main-sy357gz6.mjs";
|
|
70
70
|
import {
|
|
71
71
|
addSecret,
|
|
72
72
|
listSecrets,
|
|
73
73
|
removeSecret
|
|
74
|
-
} from "./main-
|
|
74
|
+
} from "./main-7h1tv8xb.mjs";
|
|
75
75
|
import {
|
|
76
76
|
defaultJournalBaseDir,
|
|
77
77
|
readJournalEntries,
|
|
78
78
|
formatJournalEntry
|
|
79
|
-
} from "./main-
|
|
80
|
-
import"./main-
|
|
79
|
+
} from "./main-qeswgk71.mjs";
|
|
80
|
+
import"./main-a1c7ce5q.mjs";
|
|
81
81
|
import {
|
|
82
82
|
format,
|
|
83
83
|
assignProperty,
|
|
@@ -5871,7 +5871,7 @@ var status = make("status", {
|
|
|
5871
5871
|
}
|
|
5872
5872
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5873
5873
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5874
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5874
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-mwnpefzr.mjs"));
|
|
5875
5875
|
yield* runMcpServer;
|
|
5876
5876
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5877
5877
|
registerCliCommand(400, () => tabs);
|
|
@@ -6319,7 +6319,7 @@ registerCliCommand(710, () => flightRecorder);
|
|
|
6319
6319
|
|
|
6320
6320
|
// src/cli/relay.ts
|
|
6321
6321
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
6322
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
6322
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-rr30h4aj.mjs"), import("./helpers-mx768d8x.mjs")]));
|
|
6323
6323
|
const port = yield* portConfig;
|
|
6324
6324
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
6325
6325
|
yield* scoped(gen(function* () {
|
package/dist/cli.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
// src/main.ts
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import path from "node:path";
|
|
9
|
-
var embeddedVersion = "0.0.16-dev.
|
|
9
|
+
var embeddedVersion = "0.0.16-dev.126";
|
|
10
10
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
11
11
|
var command = process.argv[2];
|
|
12
12
|
var args = process.argv.slice(3);
|
|
@@ -17,29 +17,29 @@ var askedForHelp = command === "--help" || command === "-h" || options.some((arg
|
|
|
17
17
|
var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
|
|
18
18
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !process.env.OPENCODE_BROWSER_HOME && legacyRoots().some((root) => fs.existsSync(root))) {
|
|
19
19
|
try {
|
|
20
|
-
const { migrateLegacy } = await import("./migrate-
|
|
20
|
+
const { migrateLegacy } = await import("./migrate-55h1tk1s.mjs");
|
|
21
21
|
migrateLegacy();
|
|
22
22
|
} catch {}
|
|
23
23
|
}
|
|
24
24
|
if (command === "--version" || command === "-v") {
|
|
25
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
25
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-jecka5qp.mjs")).opencodeBrowserVersion;
|
|
26
26
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
27
27
|
`);
|
|
28
|
-
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-
|
|
29
|
-
const { runBinaryMcp } = await import("./supervisor-
|
|
28
|
+
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-2ecabdtd.mjs")).supervisesMcp()) {
|
|
29
|
+
const { runBinaryMcp } = await import("./supervisor-2ecabdtd.mjs");
|
|
30
30
|
await runBinaryMcp(process.argv.slice(3));
|
|
31
31
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
32
32
|
const { NodeRuntime } = await import("./index-6gkr235e.mjs");
|
|
33
|
-
const { runMcpServer } = await import("./mcp-
|
|
33
|
+
const { runMcpServer } = await import("./mcp-mwnpefzr.mjs");
|
|
34
34
|
runMcpServer.pipe(NodeRuntime.runMain);
|
|
35
35
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
36
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
36
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-mgpayy4q.mjs");
|
|
37
37
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
38
38
|
} else if (command === "update" && !askedForHelp) {
|
|
39
|
-
const { runUpdateCommand } = await import("./update-
|
|
39
|
+
const { runUpdateCommand } = await import("./update-n107p4qe.mjs");
|
|
40
40
|
await runUpdateCommand(process.argv.slice(3));
|
|
41
41
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
42
|
-
const { runSetup } = await import("./setup-
|
|
42
|
+
const { runSetup } = await import("./setup-hp6ka3jy.mjs");
|
|
43
43
|
await runSetup(command, process.argv.slice(3));
|
|
44
44
|
} else {
|
|
45
45
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -76,9 +76,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
|
76
76
|
`);
|
|
77
77
|
}
|
|
78
78
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
79
|
-
const { printSetupStatus } = await import("./setup-
|
|
79
|
+
const { printSetupStatus } = await import("./setup-hp6ka3jy.mjs");
|
|
80
80
|
printSetupStatus();
|
|
81
81
|
}
|
|
82
|
-
const { runCli } = await import("./cli-
|
|
82
|
+
const { runCli } = await import("./cli-rwr922f0.mjs");
|
|
83
83
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
84
84
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-mhj2sagn.mjs";
|
|
4
4
|
import {
|
|
5
5
|
configRoot2,
|
|
6
6
|
dataRoot,
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
storeUrl,
|
|
21
21
|
installedVersion,
|
|
22
22
|
runCommand
|
|
23
|
-
} from "./main-
|
|
23
|
+
} from "./main-b9sg27va.mjs";
|
|
24
24
|
import {
|
|
25
25
|
formatPairingCode
|
|
26
|
-
} from "./main-
|
|
26
|
+
} from "./main-tp828mqd.mjs";
|
|
27
27
|
import {
|
|
28
28
|
unpackedExtensionId
|
|
29
29
|
} from "./main-b3jrctcx.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-mhj2sagn.mjs";
|
|
4
4
|
|
|
5
5
|
// src/paths.ts
|
|
6
6
|
import fs from "node:fs";
|
|
@@ -110,7 +110,7 @@ function cliInstall() {
|
|
|
110
110
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
111
111
|
if (fromCheckout())
|
|
112
112
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
113
|
-
return { kind: "npm", version: "0.0.16-dev.
|
|
113
|
+
return { kind: "npm", version: "0.0.16-dev.126", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
|
|
114
114
|
}
|
|
115
115
|
function cliPrefix(install = cliInstall()) {
|
|
116
116
|
if (install.kind === "binary") {
|
|
@@ -132,7 +132,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
132
132
|
return id ? { id } : {};
|
|
133
133
|
}
|
|
134
134
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
135
|
-
function devExtension(baked = { file: "browse-extension-0.0.16-dev.
|
|
135
|
+
function devExtension(baked = { file: "browse-extension-0.0.16-dev.126.zip", sha256: "f22178aeed1e1de789c8a6d2aa12a330717232ef3f21ab2ed2a90168e2d04bff", size: 183188 }) {
|
|
136
136
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
137
137
|
}
|
|
138
138
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
installedRuntime2,
|
|
7
7
|
autoUpdateStatus,
|
|
8
8
|
updateAvailable
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-b9sg27va.mjs";
|
|
10
10
|
import {
|
|
11
11
|
unpackedReloadAdvice
|
|
12
12
|
} from "./main-b3jrctcx.mjs";
|
|
@@ -315,7 +315,7 @@ function runUpdate(args, deps) {
|
|
|
315
315
|
async function runUpdateCommand2(args) {
|
|
316
316
|
const log = (line) => process.stdout.write(line + `
|
|
317
317
|
`);
|
|
318
|
-
const { runInstalledUpdate } = await import("./runtime-update-
|
|
318
|
+
const { runInstalledUpdate } = await import("./runtime-update-mgpayy4q.mjs");
|
|
319
319
|
if (await runInstalledUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./main-azpzpy0x.mjs";
|
|
4
4
|
import {
|
|
5
5
|
isValidSessionId2
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-v4tkj163.mjs";
|
|
7
7
|
import {
|
|
8
8
|
isSome,
|
|
9
9
|
decodeUnknownOption,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./main-yf5j8g79.mjs";
|
|
18
18
|
import {
|
|
19
19
|
stateRoot
|
|
20
|
-
} from "./main-
|
|
20
|
+
} from "./main-b9sg27va.mjs";
|
|
21
21
|
|
|
22
22
|
// src/session-manager/journal.ts
|
|
23
23
|
import fs from "node:fs";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
parseTargetSelection2,
|
|
13
13
|
getObject2,
|
|
14
14
|
getString2
|
|
15
|
-
} from "./main-
|
|
15
|
+
} from "./main-v4tkj163.mjs";
|
|
16
16
|
import {
|
|
17
17
|
isStream,
|
|
18
18
|
provideContext
|
|
@@ -101,7 +101,7 @@ import {
|
|
|
101
101
|
} from "./main-ken6azcs.mjs";
|
|
102
102
|
import {
|
|
103
103
|
cliCommand
|
|
104
|
-
} from "./main-
|
|
104
|
+
} from "./main-b9sg27va.mjs";
|
|
105
105
|
|
|
106
106
|
// node_modules/effect/dist/PrimaryKey.js
|
|
107
107
|
var symbol = "~effect/PrimaryKey";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./main-9t2s5ptx.mjs";
|
|
16
16
|
import {
|
|
17
17
|
opencodeBrowserBuildId2
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-mhj2sagn.mjs";
|
|
19
19
|
import {
|
|
20
20
|
compiledBinary,
|
|
21
21
|
scriptEntry,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
compareVersions,
|
|
25
25
|
installedRuntime2,
|
|
26
26
|
installedVersion
|
|
27
|
-
} from "./main-
|
|
27
|
+
} from "./main-b9sg27va.mjs";
|
|
28
28
|
import {
|
|
29
29
|
relayAuthorization
|
|
30
|
-
} from "./main-
|
|
30
|
+
} from "./main-a1c7ce5q.mjs";
|
|
31
31
|
import {
|
|
32
32
|
assignProperty,
|
|
33
33
|
PipeInspectableProto,
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-tp828mqd.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-b9sg27va.mjs";
|
|
15
15
|
|
|
16
16
|
// src/setup/dev-extension.ts
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
@@ -44,11 +44,11 @@ import {
|
|
|
44
44
|
} from "./main-9t2s5ptx.mjs";
|
|
45
45
|
import {
|
|
46
46
|
opencodeBrowserVersion2
|
|
47
|
-
} from "./main-
|
|
47
|
+
} from "./main-mhj2sagn.mjs";
|
|
48
48
|
import {
|
|
49
49
|
cliCommand,
|
|
50
50
|
autoUpdateStatus
|
|
51
|
-
} from "./main-
|
|
51
|
+
} from "./main-b9sg27va.mjs";
|
|
52
52
|
import"./main-b3jrctcx.mjs";
|
|
53
53
|
import {
|
|
54
54
|
option,
|
|
@@ -68,12 +68,12 @@ import {
|
|
|
68
68
|
relayBuildProblem,
|
|
69
69
|
ensureRelay,
|
|
70
70
|
ensureExtensionConnected
|
|
71
|
-
} from "./main-
|
|
71
|
+
} from "./main-v4tkj163.mjs";
|
|
72
72
|
import"./main-azpzpy0x.mjs";
|
|
73
73
|
import {
|
|
74
74
|
updateJson2,
|
|
75
75
|
createUpdateWatcher2
|
|
76
|
-
} from "./main-
|
|
76
|
+
} from "./main-hmpxmnfv.mjs";
|
|
77
77
|
import {
|
|
78
78
|
settingSpecs,
|
|
79
79
|
securityVariables,
|
|
@@ -154,12 +154,12 @@ import {
|
|
|
154
154
|
toolResultForValue2,
|
|
155
155
|
mcpErrorMessage2,
|
|
156
156
|
toolResult
|
|
157
|
-
} from "./main-
|
|
157
|
+
} from "./main-sy357gz6.mjs";
|
|
158
158
|
import {
|
|
159
159
|
makeUnsafe,
|
|
160
160
|
make3,
|
|
161
161
|
listSecrets
|
|
162
|
-
} from "./main-
|
|
162
|
+
} from "./main-7h1tv8xb.mjs";
|
|
163
163
|
import {
|
|
164
164
|
Clock,
|
|
165
165
|
type,
|
|
@@ -174,7 +174,7 @@ import {
|
|
|
174
174
|
orElse,
|
|
175
175
|
exhaustive
|
|
176
176
|
} from "./main-er120rjm.mjs";
|
|
177
|
-
import"./main-
|
|
177
|
+
import"./main-a1c7ce5q.mjs";
|
|
178
178
|
import {
|
|
179
179
|
hash,
|
|
180
180
|
equals,
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
browseServerCommand,
|
|
7
7
|
editAgentConfig,
|
|
8
8
|
configureMcp
|
|
9
|
-
} from "./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
} from "./main-a1xrqbaw.mjs";
|
|
10
|
+
import"./main-mhj2sagn.mjs";
|
|
11
11
|
import {
|
|
12
12
|
configRoot2,
|
|
13
13
|
dataRoot,
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
cacheRoot,
|
|
16
16
|
binRoot,
|
|
17
17
|
binaryName
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-b9sg27va.mjs";
|
|
19
19
|
import"./main-azpzpy0x.mjs";
|
|
20
|
-
import"./main-
|
|
20
|
+
import"./main-tp828mqd.mjs";
|
|
21
21
|
import"./main-b3jrctcx.mjs";
|
|
22
22
|
import {
|
|
23
23
|
legacyDataRoot,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2,
|
|
3
3
|
opencodeBrowserBuildId2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-mhj2sagn.mjs";
|
|
5
5
|
import {
|
|
6
6
|
defaultRoots,
|
|
7
7
|
configRoot2,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
setStoredMode,
|
|
26
26
|
autoUpdateStatus,
|
|
27
27
|
createAutoUpdater
|
|
28
|
-
} from "./main-
|
|
28
|
+
} from "./main-b9sg27va.mjs";
|
|
29
29
|
import {
|
|
30
30
|
extensionProtocolVersion,
|
|
31
31
|
minExtensionProtocolVersion,
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
isRestrictedTarget2,
|
|
103
103
|
isRestrictedUrl2,
|
|
104
104
|
dataUrlDocument2
|
|
105
|
-
} from "./main-
|
|
105
|
+
} from "./main-v4tkj163.mjs";
|
|
106
106
|
import {
|
|
107
107
|
context,
|
|
108
108
|
pendingPairingCodeKeys,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
pairingSessionKey,
|
|
121
121
|
sessionProof,
|
|
122
122
|
wrapToken
|
|
123
|
-
} from "./main-
|
|
123
|
+
} from "./main-tp828mqd.mjs";
|
|
124
124
|
import {
|
|
125
125
|
makeUnsafe,
|
|
126
126
|
terminateChildProcess,
|
|
@@ -142,16 +142,16 @@ import {
|
|
|
142
142
|
checkNavigationUrl,
|
|
143
143
|
readSecret,
|
|
144
144
|
secretText
|
|
145
|
-
} from "./main-
|
|
145
|
+
} from "./main-7h1tv8xb.mjs";
|
|
146
146
|
import {
|
|
147
147
|
defaultJournalBaseDir,
|
|
148
148
|
makeJournalEntry,
|
|
149
149
|
appendJournalEntry,
|
|
150
150
|
startJournalRetention
|
|
151
|
-
} from "./main-
|
|
151
|
+
} from "./main-qeswgk71.mjs";
|
|
152
152
|
import {
|
|
153
153
|
createUpdateWatcher2
|
|
154
|
-
} from "./main-
|
|
154
|
+
} from "./main-hmpxmnfv.mjs";
|
|
155
155
|
import {
|
|
156
156
|
SettingsInputError,
|
|
157
157
|
parseSettingChanges,
|
|
@@ -159,13 +159,13 @@ import {
|
|
|
159
159
|
settingsToExtension,
|
|
160
160
|
describeSettings,
|
|
161
161
|
describeChanges
|
|
162
|
-
} from "./main-
|
|
162
|
+
} from "./main-sy357gz6.mjs";
|
|
163
163
|
import {
|
|
164
164
|
relayHostname,
|
|
165
165
|
isLocalPeer,
|
|
166
166
|
installedDevExtension,
|
|
167
167
|
syncDevExtension
|
|
168
|
-
} from "./main-
|
|
168
|
+
} from "./main-wk1yq0pp.mjs";
|
|
169
169
|
import {
|
|
170
170
|
legacyRoots
|
|
171
171
|
} from "./main-ckssvk4c.mjs";
|
|
@@ -186,7 +186,7 @@ import {
|
|
|
186
186
|
relayToken,
|
|
187
187
|
secretsEqual,
|
|
188
188
|
ensurePrivateDirectory
|
|
189
|
-
} from "./main-
|
|
189
|
+
} from "./main-a1c7ce5q.mjs";
|
|
190
190
|
import {
|
|
191
191
|
isNone,
|
|
192
192
|
isSome,
|
|
@@ -17595,7 +17595,17 @@ function createRelayTransportServers(deps) {
|
|
|
17595
17595
|
handleCdpMessage,
|
|
17596
17596
|
debugLog
|
|
17597
17597
|
} = deps;
|
|
17598
|
-
const
|
|
17598
|
+
const routePath = (pathname) => pathname?.replace(/\/$/, "") || "/";
|
|
17599
|
+
const isSilentProbePath = (pathname) => {
|
|
17600
|
+
const path = routePath(pathname);
|
|
17601
|
+
return path === "/version" || path === "/json/version" || path === "/extension/status";
|
|
17602
|
+
};
|
|
17603
|
+
const isLifecycleOrStatusPath = (pathname, method) => {
|
|
17604
|
+
const path = routePath(pathname);
|
|
17605
|
+
if (isSilentProbePath(path) || path === "/shutdown")
|
|
17606
|
+
return true;
|
|
17607
|
+
return method === "GET" && (path === "/cli/sessions" || path === "/json/list" || path === "/settings");
|
|
17608
|
+
};
|
|
17599
17609
|
const httpServer = http5.createServer((request, response) => {
|
|
17600
17610
|
if (!isLocalPeer(request.socket)) {
|
|
17601
17611
|
response.writeHead(404).end();
|
|
@@ -17607,8 +17617,7 @@ function createRelayTransportServers(deps) {
|
|
|
17607
17617
|
return;
|
|
17608
17618
|
}
|
|
17609
17619
|
const started = performance.now();
|
|
17610
|
-
|
|
17611
|
-
if (!isSilentProbePath(requestPath)) {
|
|
17620
|
+
if (!isLifecycleOrStatusPath(request.url?.split("?")[0], request.method)) {
|
|
17612
17621
|
onAgentHttpActivity();
|
|
17613
17622
|
}
|
|
17614
17623
|
response.once("finish", () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-mhj2sagn.mjs";
|
|
2
2
|
import {
|
|
3
3
|
cliCommand,
|
|
4
4
|
installCommand,
|
|
@@ -15,17 +15,17 @@ import {
|
|
|
15
15
|
registryUrl,
|
|
16
16
|
fetchPublished,
|
|
17
17
|
runInstaller
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-b9sg27va.mjs";
|
|
19
19
|
import"./main-b3jrctcx.mjs";
|
|
20
20
|
import {
|
|
21
21
|
Service,
|
|
22
22
|
layerFetch,
|
|
23
23
|
restartRelay,
|
|
24
24
|
startManagedRelay
|
|
25
|
-
} from "./main-
|
|
25
|
+
} from "./main-v4tkj163.mjs";
|
|
26
26
|
import"./main-azpzpy0x.mjs";
|
|
27
27
|
import"./main-9t2s5ptx.mjs";
|
|
28
|
-
import"./main-
|
|
28
|
+
import"./main-a1c7ce5q.mjs";
|
|
29
29
|
import {
|
|
30
30
|
succeed6,
|
|
31
31
|
gen,
|
|
@@ -63,10 +63,10 @@ import {
|
|
|
63
63
|
installRuntime,
|
|
64
64
|
installedRuntime,
|
|
65
65
|
manualMcpEntry
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-a1xrqbaw.mjs";
|
|
67
67
|
import {
|
|
68
68
|
opencodeBrowserBuildId2
|
|
69
|
-
} from "./main-
|
|
69
|
+
} from "./main-mhj2sagn.mjs";
|
|
70
70
|
import {
|
|
71
71
|
installedBinaryPath,
|
|
72
72
|
installerBinaryPath,
|
|
@@ -83,7 +83,7 @@ import {
|
|
|
83
83
|
autoUpdateStatus,
|
|
84
84
|
describeAutoUpdate,
|
|
85
85
|
runCommand
|
|
86
|
-
} from "./main-
|
|
86
|
+
} from "./main-b9sg27va.mjs";
|
|
87
87
|
import"./main-azpzpy0x.mjs";
|
|
88
88
|
import {
|
|
89
89
|
pairingCodeTtlMs,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
revokeBrowserToken,
|
|
98
98
|
legacyPairingCode,
|
|
99
99
|
removeLegacyPairingCode
|
|
100
|
-
} from "./main-
|
|
100
|
+
} from "./main-tp828mqd.mjs";
|
|
101
101
|
import {
|
|
102
102
|
unpackedExtensionId,
|
|
103
103
|
extensionProtocolSkew,
|
|
@@ -105,16 +105,16 @@ import {
|
|
|
105
105
|
} from "./main-b3jrctcx.mjs";
|
|
106
106
|
import {
|
|
107
107
|
defaultSiteSecretsDir
|
|
108
|
-
} from "./main-
|
|
108
|
+
} from "./main-7h1tv8xb.mjs";
|
|
109
109
|
import {
|
|
110
110
|
parseHostname,
|
|
111
111
|
readRelayConfig,
|
|
112
112
|
writeRelayConfig,
|
|
113
113
|
syncDevExtension
|
|
114
|
-
} from "./main-
|
|
114
|
+
} from "./main-wk1yq0pp.mjs";
|
|
115
115
|
import {
|
|
116
116
|
relayAuthorization
|
|
117
|
-
} from "./main-
|
|
117
|
+
} from "./main-a1c7ce5q.mjs";
|
|
118
118
|
|
|
119
119
|
// src/setup.ts
|
|
120
120
|
import { mkdirSync as mkdirSync2, rmSync as rmSync2, writeFileSync } from "node:fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-mhj2sagn.mjs";
|
|
2
2
|
import {
|
|
3
3
|
entrySpawnCommand,
|
|
4
4
|
installedRuntime2,
|
|
5
5
|
installedVersion
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-b9sg27va.mjs";
|
|
7
7
|
|
|
8
8
|
// src/mcp/supervisor.ts
|
|
9
9
|
import { spawn } from "node:child_process";
|
|
@@ -33,7 +33,7 @@ async function runBinaryMcp(args) {
|
|
|
33
33
|
const runtime = installedRuntime2();
|
|
34
34
|
if (!runtime || runtime.kind === "npx") {
|
|
35
35
|
process.env[directEnvironmentVariable] = "1";
|
|
36
|
-
const { runCli } = await import("./cli-
|
|
36
|
+
const { runCli } = await import("./cli-rwr922f0.mjs");
|
|
37
37
|
return runCli();
|
|
38
38
|
}
|
|
39
39
|
const REPLAY = "opencode-browser-shim-initialize";
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
updateNotice2,
|
|
5
5
|
createUpdateWatcher2,
|
|
6
6
|
runUpdateCommand2
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-hmpxmnfv.mjs";
|
|
8
8
|
import"./main-b3jrctcx.mjs";
|
|
9
|
-
import"./main-
|
|
10
|
-
import"./main-
|
|
9
|
+
import"./main-b9sg27va.mjs";
|
|
10
|
+
import"./main-mhj2sagn.mjs";
|
|
11
11
|
export {
|
|
12
12
|
createUpdateWatcher2 as createUpdateWatcher,
|
|
13
13
|
formatUpdateNotice2 as formatUpdateNotice,
|
package/package.json
CHANGED
package/dist/main-ryb1swx2.mjs
DELETED