@opencode/browse 0.0.17-dev.186 → 0.0.17-dev.188
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-7289awyd.mjs → cli-5ezftnv2.mjs} +25 -25
- package/dist/cli.mjs +13 -16
- package/dist/{helpers-21yzw670.mjs → helpers-k5ybc61c.mjs} +1 -1
- package/dist/{index-4tw494gw.mjs → index-37ssbv86.mjs} +1 -1
- package/dist/{legacy-runtime-ytvtb4p6.mjs → legacy-runtime-j0sw664c.mjs} +7 -8
- package/dist/{main-97vjgp95.mjs → main-4qq4n32k.mjs} +2 -2
- package/dist/{main-3ymzbg04.mjs → main-66fy08h5.mjs} +28 -28
- package/dist/{main-81fht5nj.mjs → main-7h3v45ag.mjs} +13 -6
- package/dist/{main-hv8t6206.mjs → main-7v4scg8t.mjs} +3 -3
- package/dist/{main-gmhbkamn.mjs → main-9q9919e3.mjs} +2 -2
- package/dist/{main-gnfmgnwj.mjs → main-ba028a85.mjs} +32 -22
- package/dist/{main-vw7jwd0n.mjs → main-d8km89cz.mjs} +2 -2
- package/dist/{main-y3h7b6gd.mjs → main-dab23et4.mjs} +1 -1
- package/dist/{main-z3txr4wt.mjs → main-kzcrfvmh.mjs} +4 -4
- package/dist/{main-7y134fzj.mjs → main-m9n50a86.mjs} +17 -7
- package/dist/{main-ns026dfw.mjs → main-mvjg1jye.mjs} +1 -1
- package/dist/{main-czz5kqq9.mjs → main-pqxrvknr.mjs} +2 -2
- package/dist/main-qrqem3fy.mjs +4 -0
- package/dist/{main-ghh2tvn1.mjs → main-svhdexdh.mjs} +4 -4
- package/dist/{main-wq3rxzcg.mjs → main-tryp3jph.mjs} +2 -2
- package/dist/{mcp-gqnkhtt0.mjs → mcp-jh4atts2.mjs} +116 -110
- package/dist/{migrate-der69rr4.mjs → migrate-r433scvg.mjs} +7 -7
- package/dist/{relay-32ed2ae2.mjs → relay-1epy67be.mjs} +62 -49
- package/dist/{remove-stored-secrets-58r3xd1b.mjs → remove-stored-secrets-wy3pakjj.mjs} +1 -1
- package/dist/{runtime-update-3v5znrk0.mjs → runtime-update-ww2pejn2.mjs} +11 -11
- package/dist/{setup-tzttzgb4.mjs → setup-n1hpbkz2.mjs} +11 -11
- package/dist/{update-exnjhpqb.mjs → update-z7qvagkc.mjs} +3 -3
- package/dist/{version-h0n5h8j4.mjs → version-2123c138.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-xz6gd1xb.mjs +0 -4
- package/dist/supervisor-84gbxv46.mjs +0 -271
- package/dist/{main-qjr69cgp.mjs → main-3514h33n.mjs} +3 -3
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
Terminal,
|
|
15
15
|
runMain,
|
|
16
16
|
layer2
|
|
17
|
-
} from "./main-
|
|
17
|
+
} from "./main-3514h33n.mjs";
|
|
18
18
|
import {
|
|
19
19
|
ExitCode,
|
|
20
20
|
failure,
|
|
@@ -25,16 +25,16 @@ import"./main-pmfd055v.mjs";
|
|
|
25
25
|
import {
|
|
26
26
|
opencodeBrowserVersion2,
|
|
27
27
|
opencodeBrowserBuildId2
|
|
28
|
-
} from "./main-
|
|
28
|
+
} from "./main-qrqem3fy.mjs";
|
|
29
29
|
import {
|
|
30
30
|
extensionProtocolVersion,
|
|
31
31
|
extensionProtocolAdvice,
|
|
32
32
|
autoUpdateStatus
|
|
33
|
-
} from "./main-
|
|
33
|
+
} from "./main-m9n50a86.mjs";
|
|
34
34
|
import {
|
|
35
35
|
defaultPort2,
|
|
36
36
|
isValidSessionId2
|
|
37
|
-
} from "./main-
|
|
37
|
+
} from "./main-mvjg1jye.mjs";
|
|
38
38
|
import {
|
|
39
39
|
option,
|
|
40
40
|
String2,
|
|
@@ -53,26 +53,38 @@ import {
|
|
|
53
53
|
ensureExtensionConnected,
|
|
54
54
|
stoppedRelayStatus,
|
|
55
55
|
statusCollections
|
|
56
|
-
} from "./main-
|
|
56
|
+
} from "./main-ba028a85.mjs";
|
|
57
57
|
import {
|
|
58
58
|
updateJson2,
|
|
59
59
|
formatUpdateNotice2,
|
|
60
60
|
updateNotice2
|
|
61
|
-
} from "./main-
|
|
61
|
+
} from "./main-7v4scg8t.mjs";
|
|
62
62
|
import {
|
|
63
63
|
settingKeys,
|
|
64
64
|
formatSettings,
|
|
65
65
|
ensureSessionExists
|
|
66
|
-
} from "./main-
|
|
66
|
+
} from "./main-66fy08h5.mjs";
|
|
67
67
|
import {
|
|
68
68
|
defaultJournalBaseDir,
|
|
69
69
|
readJournalEntries,
|
|
70
70
|
formatJournalEntry
|
|
71
|
-
} from "./main-
|
|
72
|
-
import"./main-
|
|
71
|
+
} from "./main-kzcrfvmh.mjs";
|
|
72
|
+
import"./main-pqxrvknr.mjs";
|
|
73
73
|
import {
|
|
74
74
|
endpointForPort
|
|
75
|
-
} from "./main-
|
|
75
|
+
} from "./main-4qq4n32k.mjs";
|
|
76
|
+
import {
|
|
77
|
+
configRoot2,
|
|
78
|
+
dataRoot,
|
|
79
|
+
stateRoot,
|
|
80
|
+
cacheRoot,
|
|
81
|
+
fromCheckout,
|
|
82
|
+
compiledBinary,
|
|
83
|
+
binaryPackage,
|
|
84
|
+
cliCommand,
|
|
85
|
+
devExtension,
|
|
86
|
+
installCommand
|
|
87
|
+
} from "./main-tryp3jph.mjs";
|
|
76
88
|
import {
|
|
77
89
|
taggedEnum,
|
|
78
90
|
is2,
|
|
@@ -175,18 +187,6 @@ import {
|
|
|
175
187
|
fnUntraced,
|
|
176
188
|
fn
|
|
177
189
|
} from "./main-0h387a1q.mjs";
|
|
178
|
-
import {
|
|
179
|
-
configRoot2,
|
|
180
|
-
dataRoot,
|
|
181
|
-
stateRoot,
|
|
182
|
-
cacheRoot,
|
|
183
|
-
fromCheckout,
|
|
184
|
-
compiledBinary,
|
|
185
|
-
binaryPackage,
|
|
186
|
-
cliCommand,
|
|
187
|
-
devExtension,
|
|
188
|
-
installCommand
|
|
189
|
-
} from "./main-wq3rxzcg.mjs";
|
|
190
190
|
|
|
191
191
|
// node_modules/effect/dist/Number.js
|
|
192
192
|
var Number2 = globalThis.Number;
|
|
@@ -5833,7 +5833,7 @@ var status = make("status", {
|
|
|
5833
5833
|
}
|
|
5834
5834
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5835
5835
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5836
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5836
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-jh4atts2.mjs"));
|
|
5837
5837
|
yield* runMcpServer;
|
|
5838
5838
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5839
5839
|
registerCliCommand(400, () => tabs);
|
|
@@ -6274,12 +6274,12 @@ registerCliCommand(710, () => flightRecorder);
|
|
|
6274
6274
|
|
|
6275
6275
|
// src/cli/relay.ts
|
|
6276
6276
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
6277
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
6277
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-1epy67be.mjs"), import("./helpers-k5ybc61c.mjs")]));
|
|
6278
6278
|
const port = process.env.OPENCODE_BROWSER_PORT === undefined ? undefined : yield* portConfig;
|
|
6279
6279
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
6280
6280
|
yield* scoped(gen(function* () {
|
|
6281
6281
|
const relay = yield* startRelay({ ...port === undefined ? {} : { port }, additionalExtensionOrigins });
|
|
6282
|
-
yield* promise(() => import("./legacy-runtime-
|
|
6282
|
+
yield* promise(() => import("./legacy-runtime-j0sw664c.mjs").then((module) => module.commitLegacyTakeover()));
|
|
6283
6283
|
yield* log(`browse relay listening at ${relay.url}`);
|
|
6284
6284
|
yield* log(`browse connects automatically while the browser runs. Run \`${cliCommand("status")}\` to check.`);
|
|
6285
6285
|
yield* never;
|
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.188";
|
|
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,30 +18,27 @@ 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-j0sw664c.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) {
|
|
25
|
-
const { removeStoredSecrets } = await import("./remove-stored-secrets-
|
|
25
|
+
const { removeStoredSecrets } = await import("./remove-stored-secrets-wy3pakjj.mjs");
|
|
26
26
|
removeStoredSecrets();
|
|
27
27
|
}
|
|
28
28
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver && !process.env.OPENCODE_BROWSER_HOME && legacyRootsLeft()) {
|
|
29
29
|
try {
|
|
30
|
-
const { migrateLegacy } = await import("./migrate-
|
|
30
|
+
const { migrateLegacy } = await import("./migrate-r433scvg.mjs");
|
|
31
31
|
migrateLegacy();
|
|
32
32
|
} catch {}
|
|
33
33
|
}
|
|
34
34
|
if (command === "--version" || command === "-v") {
|
|
35
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
35
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-2123c138.mjs")).opencodeBrowserVersion;
|
|
36
36
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
37
37
|
`);
|
|
38
|
-
} else if (command === "mcp" && process.env.OPENCODE_BROWSER_MCP_DIRECT !== "1" && (await import("./supervisor-84gbxv46.mjs")).supervisesMcp()) {
|
|
39
|
-
const { runBinaryMcp } = await import("./supervisor-84gbxv46.mjs");
|
|
40
|
-
await runBinaryMcp(process.argv.slice(3));
|
|
41
38
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
42
|
-
const { NodeRuntime } = await import("./index-
|
|
39
|
+
const { NodeRuntime } = await import("./index-37ssbv86.mjs");
|
|
43
40
|
const { defaultTeardown } = await import("./Runtime-hmy7zww1.mjs");
|
|
44
|
-
const { runMcpServer } = await import("./mcp-
|
|
41
|
+
const { runMcpServer } = await import("./mcp-jh4atts2.mjs");
|
|
45
42
|
let stdinGone = false;
|
|
46
43
|
const onStdinGone = () => {
|
|
47
44
|
stdinGone = true;
|
|
@@ -58,18 +55,18 @@ if (command === "--version" || command === "-v") {
|
|
|
58
55
|
runMcpServer.pipe(NodeRuntime.runMain({
|
|
59
56
|
teardown: (exit, onExit) => defaultTeardown(exit, (code) => {
|
|
60
57
|
if (stdinGone && !signalled && code === 130)
|
|
61
|
-
return process.exit(0);
|
|
58
|
+
return void process.stdout.write("", () => process.exit(0));
|
|
62
59
|
onExit(code);
|
|
63
60
|
})
|
|
64
61
|
}));
|
|
65
62
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
66
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
63
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-ww2pejn2.mjs");
|
|
67
64
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
68
65
|
} else if (command === "update" && !askedForHelp) {
|
|
69
|
-
const { runUpdateCommand } = await import("./update-
|
|
66
|
+
const { runUpdateCommand } = await import("./update-z7qvagkc.mjs");
|
|
70
67
|
await runUpdateCommand(process.argv.slice(3));
|
|
71
68
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
72
|
-
const { runSetup } = await import("./setup-
|
|
69
|
+
const { runSetup } = await import("./setup-n1hpbkz2.mjs");
|
|
73
70
|
await runSetup(command, process.argv.slice(3));
|
|
74
71
|
} else {
|
|
75
72
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -105,9 +102,9 @@ executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
|
105
102
|
`);
|
|
106
103
|
}
|
|
107
104
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
108
|
-
const { printSetupStatus } = await import("./setup-
|
|
105
|
+
const { printSetupStatus } = await import("./setup-n1hpbkz2.mjs");
|
|
109
106
|
printSetupStatus();
|
|
110
107
|
}
|
|
111
|
-
const { runCli } = await import("./cli-
|
|
108
|
+
const { runCli } = await import("./cli-5ezftnv2.mjs");
|
|
112
109
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
113
110
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-mvjg1jye.mjs";
|
|
2
2
|
import {
|
|
3
3
|
channelOf,
|
|
4
4
|
installedRuntime2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-m9n50a86.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-qrqem3fy.mjs";
|
|
14
14
|
import {
|
|
15
15
|
relayPortPinned,
|
|
16
16
|
resolveRelayPort,
|
|
17
17
|
probeRelayPort
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-4qq4n32k.mjs";
|
|
19
19
|
import {
|
|
20
20
|
installerBinaryPath,
|
|
21
21
|
compiledBinary
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-tryp3jph.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-r433scvg.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-r433scvg.mjs");
|
|
70
70
|
migrateLegacy(home, now);
|
|
71
71
|
return true;
|
|
72
72
|
} catch {
|
|
@@ -102,7 +102,6 @@ function writeForwarder(entry, runtime) {
|
|
|
102
102
|
`child.on("exit", (code, signal) => { process.exitCode = code ?? (signal ? 1 : 0) })`
|
|
103
103
|
] : [
|
|
104
104
|
`import { pathToFileURL } from "node:url"`,
|
|
105
|
-
`if (process.env.OPENCODE_BROWSER_CLIENT_PID === String(process.ppid)) delete process.env.OPENCODE_BROWSER_CLIENT_PID`,
|
|
106
105
|
`process.argv[1] = ${target}`,
|
|
107
106
|
`await import(pathToFileURL(${target}).href)`
|
|
108
107
|
];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync,
|
|
3
3
|
defaultPort2
|
|
4
|
-
} from "./main-
|
|
4
|
+
} from "./main-mvjg1jye.mjs";
|
|
5
5
|
import {
|
|
6
6
|
stateRoot
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-tryp3jph.mjs";
|
|
8
8
|
|
|
9
9
|
// src/relay/port.ts
|
|
10
10
|
import fs from "node:fs";
|
|
@@ -11,11 +11,14 @@ import {
|
|
|
11
11
|
parseTargetSelection2,
|
|
12
12
|
getObject2,
|
|
13
13
|
getString2
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-mvjg1jye.mjs";
|
|
15
|
+
import {
|
|
16
|
+
cliCommand
|
|
17
|
+
} from "./main-tryp3jph.mjs";
|
|
15
18
|
import {
|
|
16
19
|
isStream,
|
|
17
20
|
provideContext
|
|
18
|
-
} from "./main-
|
|
21
|
+
} from "./main-3514h33n.mjs";
|
|
19
22
|
import {
|
|
20
23
|
TaggedError,
|
|
21
24
|
passthrough,
|
|
@@ -98,9 +101,6 @@ import {
|
|
|
98
101
|
provide3,
|
|
99
102
|
fnUntraced
|
|
100
103
|
} from "./main-0h387a1q.mjs";
|
|
101
|
-
import {
|
|
102
|
-
cliCommand
|
|
103
|
-
} from "./main-wq3rxzcg.mjs";
|
|
104
104
|
|
|
105
105
|
// node_modules/effect/dist/PrimaryKey.js
|
|
106
106
|
var symbol = "~effect/PrimaryKey";
|
|
@@ -236,7 +236,7 @@ var makeProto = (options) => {
|
|
|
236
236
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
237
237
|
return Rpc;
|
|
238
238
|
};
|
|
239
|
-
var
|
|
239
|
+
var make = (tag, options) => {
|
|
240
240
|
const successSchema = options?.success ?? Void;
|
|
241
241
|
const errorSchema = options?.error ?? Never;
|
|
242
242
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -419,7 +419,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
419
419
|
requests: options.requests,
|
|
420
420
|
annotations: options.annotations
|
|
421
421
|
});
|
|
422
|
-
var
|
|
422
|
+
var make2 = (...rpcs) => makeProto2({
|
|
423
423
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
424
424
|
annotations: empty4()
|
|
425
425
|
});
|
|
@@ -610,7 +610,7 @@ class InternalError extends (/* @__PURE__ */ Error3("effect/ai/McpSchema/Interna
|
|
|
610
610
|
}
|
|
611
611
|
var McpError = /* @__PURE__ */ Union([ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, McpErrorBase]);
|
|
612
612
|
|
|
613
|
-
class Ping extends (/* @__PURE__ */
|
|
613
|
+
class Ping extends (/* @__PURE__ */ make("ping", {
|
|
614
614
|
success: /* @__PURE__ */ Struct({}),
|
|
615
615
|
error: McpError,
|
|
616
616
|
payload: /* @__PURE__ */ UndefinedOr(RequestMeta)
|
|
@@ -626,7 +626,7 @@ class InitializeResult extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct(
|
|
|
626
626
|
}))) {
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
class Initialize extends (/* @__PURE__ */
|
|
629
|
+
class Initialize extends (/* @__PURE__ */ make("initialize", {
|
|
630
630
|
success: InitializeResult,
|
|
631
631
|
error: McpError,
|
|
632
632
|
payload: {
|
|
@@ -637,7 +637,7 @@ class Initialize extends (/* @__PURE__ */ make2("initialize", {
|
|
|
637
637
|
}
|
|
638
638
|
})) {
|
|
639
639
|
}
|
|
640
|
-
class CancelledNotification extends (/* @__PURE__ */
|
|
640
|
+
class CancelledNotification extends (/* @__PURE__ */ make("notifications/cancelled", {
|
|
641
641
|
payload: {
|
|
642
642
|
...NotificationMeta.fields,
|
|
643
643
|
requestId: RequestId,
|
|
@@ -646,7 +646,7 @@ class CancelledNotification extends (/* @__PURE__ */ make2("notifications/cancel
|
|
|
646
646
|
})) {
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
class ProgressNotification extends (/* @__PURE__ */
|
|
649
|
+
class ProgressNotification extends (/* @__PURE__ */ make("notifications/progress", {
|
|
650
650
|
payload: {
|
|
651
651
|
...NotificationMeta.fields,
|
|
652
652
|
progressToken: ProgressToken,
|
|
@@ -717,7 +717,7 @@ class ReadResourceResult extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struc
|
|
|
717
717
|
}))) {
|
|
718
718
|
}
|
|
719
719
|
|
|
720
|
-
class ReadResource extends (/* @__PURE__ */
|
|
720
|
+
class ReadResource extends (/* @__PURE__ */ make("resources/read", {
|
|
721
721
|
success: ReadResourceResult,
|
|
722
722
|
error: McpError,
|
|
723
723
|
payload: {
|
|
@@ -727,12 +727,12 @@ class ReadResource extends (/* @__PURE__ */ make2("resources/read", {
|
|
|
727
727
|
})) {
|
|
728
728
|
}
|
|
729
729
|
|
|
730
|
-
class ResourceListChangedNotification extends (/* @__PURE__ */
|
|
730
|
+
class ResourceListChangedNotification extends (/* @__PURE__ */ make("notifications/resources/list_changed", {
|
|
731
731
|
payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
|
|
732
732
|
})) {
|
|
733
733
|
}
|
|
734
734
|
|
|
735
|
-
class Subscribe extends (/* @__PURE__ */
|
|
735
|
+
class Subscribe extends (/* @__PURE__ */ make("resources/subscribe", {
|
|
736
736
|
success: /* @__PURE__ */ Struct({}),
|
|
737
737
|
error: McpError,
|
|
738
738
|
payload: {
|
|
@@ -742,7 +742,7 @@ class Subscribe extends (/* @__PURE__ */ make2("resources/subscribe", {
|
|
|
742
742
|
})) {
|
|
743
743
|
}
|
|
744
744
|
|
|
745
|
-
class Unsubscribe extends (/* @__PURE__ */
|
|
745
|
+
class Unsubscribe extends (/* @__PURE__ */ make("resources/unsubscribe", {
|
|
746
746
|
success: /* @__PURE__ */ Struct({}),
|
|
747
747
|
error: McpError,
|
|
748
748
|
payload: {
|
|
@@ -752,7 +752,7 @@ class Unsubscribe extends (/* @__PURE__ */ make2("resources/unsubscribe", {
|
|
|
752
752
|
})) {
|
|
753
753
|
}
|
|
754
754
|
|
|
755
|
-
class ResourceUpdatedNotification extends (/* @__PURE__ */
|
|
755
|
+
class ResourceUpdatedNotification extends (/* @__PURE__ */ make("notifications/resources/updated", {
|
|
756
756
|
payload: {
|
|
757
757
|
...NotificationMeta.fields,
|
|
758
758
|
uri: String3
|
|
@@ -837,7 +837,7 @@ class GetPromptResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/GetP
|
|
|
837
837
|
})) {
|
|
838
838
|
}
|
|
839
839
|
|
|
840
|
-
class GetPrompt extends (/* @__PURE__ */
|
|
840
|
+
class GetPrompt extends (/* @__PURE__ */ make("prompts/get", {
|
|
841
841
|
success: GetPromptResult,
|
|
842
842
|
error: McpError,
|
|
843
843
|
payload: {
|
|
@@ -849,7 +849,7 @@ class GetPrompt extends (/* @__PURE__ */ make2("prompts/get", {
|
|
|
849
849
|
})) {
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
class PromptListChangedNotification extends (/* @__PURE__ */
|
|
852
|
+
class PromptListChangedNotification extends (/* @__PURE__ */ make("notifications/prompts/list_changed", {
|
|
853
853
|
payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
|
|
854
854
|
})) {
|
|
855
855
|
}
|
|
@@ -894,7 +894,7 @@ class CallToolResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/CallT
|
|
|
894
894
|
})) {
|
|
895
895
|
}
|
|
896
896
|
|
|
897
|
-
class CallTool extends (/* @__PURE__ */
|
|
897
|
+
class CallTool extends (/* @__PURE__ */ make("tools/call", {
|
|
898
898
|
success: CallToolResult,
|
|
899
899
|
error: McpError,
|
|
900
900
|
payload: {
|
|
@@ -905,13 +905,13 @@ class CallTool extends (/* @__PURE__ */ make2("tools/call", {
|
|
|
905
905
|
})) {
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
-
class ToolListChangedNotification extends (/* @__PURE__ */
|
|
908
|
+
class ToolListChangedNotification extends (/* @__PURE__ */ make("notifications/tools/list_changed", {
|
|
909
909
|
payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
|
|
910
910
|
})) {
|
|
911
911
|
}
|
|
912
912
|
var LoggingLevel = /* @__PURE__ */ Literals(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
913
913
|
|
|
914
|
-
class SetLevel extends (/* @__PURE__ */
|
|
914
|
+
class SetLevel extends (/* @__PURE__ */ make("logging/setLevel", {
|
|
915
915
|
payload: {
|
|
916
916
|
...RequestMeta.fields,
|
|
917
917
|
level: LoggingLevel
|
|
@@ -921,7 +921,7 @@ class SetLevel extends (/* @__PURE__ */ make2("logging/setLevel", {
|
|
|
921
921
|
})) {
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
-
class LoggingMessageNotification extends (/* @__PURE__ */
|
|
924
|
+
class LoggingMessageNotification extends (/* @__PURE__ */ make("notifications/message", {
|
|
925
925
|
payload: /* @__PURE__ */ Struct({
|
|
926
926
|
...NotificationMeta.fields,
|
|
927
927
|
level: LoggingLevel,
|
|
@@ -994,7 +994,7 @@ class CreateMessageResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/
|
|
|
994
994
|
})) {
|
|
995
995
|
}
|
|
996
996
|
|
|
997
|
-
class CreateMessage extends (/* @__PURE__ */
|
|
997
|
+
class CreateMessage extends (/* @__PURE__ */ make("sampling/createMessage", {
|
|
998
998
|
success: CreateMessageResult,
|
|
999
999
|
error: McpError,
|
|
1000
1000
|
payload: {
|
|
@@ -1039,7 +1039,7 @@ class ListRootsResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/List
|
|
|
1039
1039
|
})) {
|
|
1040
1040
|
}
|
|
1041
1041
|
|
|
1042
|
-
class ListRoots extends (/* @__PURE__ */
|
|
1042
|
+
class ListRoots extends (/* @__PURE__ */ make("roots/list", {
|
|
1043
1043
|
success: ListRootsResult,
|
|
1044
1044
|
error: McpError,
|
|
1045
1045
|
payload: /* @__PURE__ */ UndefinedOr(RequestMeta)
|
|
@@ -1176,14 +1176,14 @@ class ElicitDeclineResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/
|
|
|
1176
1176
|
})) {
|
|
1177
1177
|
}
|
|
1178
1178
|
var ElicitResult = /* @__PURE__ */ Union([ElicitAcceptResult, ElicitDeclineResult]);
|
|
1179
|
-
class Elicit extends (/* @__PURE__ */
|
|
1179
|
+
class Elicit extends (/* @__PURE__ */ make("elicitation/create", {
|
|
1180
1180
|
success: ElicitResult,
|
|
1181
1181
|
error: McpError,
|
|
1182
1182
|
payload: ElicitRequestParams
|
|
1183
1183
|
})) {
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
|
-
class ElicitationCompleteNotification extends (/* @__PURE__ */
|
|
1186
|
+
class ElicitationCompleteNotification extends (/* @__PURE__ */ make("notifications/elicitation/complete", {
|
|
1187
1187
|
payload: {
|
|
1188
1188
|
elicitationId: String3
|
|
1189
1189
|
}
|
|
@@ -1211,7 +1211,7 @@ class McpServerClient extends (/* @__PURE__ */ Service2()("effect/ai/McpSchema/M
|
|
|
1211
1211
|
|
|
1212
1212
|
class McpServerClientMiddleware extends (/* @__PURE__ */ Service()("effect/ai/McpSchema/McpServerClientMiddleware")) {
|
|
1213
1213
|
}
|
|
1214
|
-
class ServerNotificationRpcs extends (/* @__PURE__ */
|
|
1214
|
+
class ServerNotificationRpcs extends (/* @__PURE__ */ make2(CancelledNotification, ProgressNotification, LoggingMessageNotification, ResourceUpdatedNotification, ResourceListChangedNotification, ToolListChangedNotification, PromptListChangedNotification, ElicitationCompleteNotification)) {
|
|
1215
1215
|
}
|
|
1216
1216
|
class EnabledWhen extends (/* @__PURE__ */ Service2()("effect/ai/McpSchema/EnabledWhen")) {
|
|
1217
1217
|
}
|
|
@@ -1751,4 +1751,4 @@ function toolResult(options) {
|
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
1753
|
|
|
1754
|
-
export {
|
|
1754
|
+
export { isStreamSchema, getStreamSchemas, ClientAbort, ServerClient, make, exitSchema, isWrapper, make2, Implementation, ClientCapabilities, INVALID_REQUEST_ERROR_CODE, METHOD_NOT_FOUND_ERROR_CODE, INVALID_PARAMS_ERROR_CODE, INTERNAL_ERROR_CODE, HEADER_MISMATCH_ERROR_CODE, ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, McpError, Ping, Initialize, CancelledNotification, ProgressNotification, ResourceListChangedNotification, ResourceUpdatedNotification, Prompt, TextContent, PromptListChangedNotification, Tool, CallToolResult, ToolListChangedNotification, LoggingLevel, LoggingMessageNotification, CreateMessage, ListRootsResult, ListRoots, Elicit, McpReverseOperationUnsupported, McpReverseOperationError, McpRequestContext, McpServerClient, McpServerClientMiddleware, ServerNotificationRpcs, EnabledWhen, settingKeys, settingSpecs, securityVariables, SettingsInputError, parseSettingChanges, settingsFromExtension, settingsToExtension, describeSettings, describeChanges, formatSettings, mcpUpdateNote2, objectSchema, valuesSchema, emptyInputSchema, sessionSchemaProperty, sessionAliasSchemaProperty, StatusToolOutput, CurrentSessionToolOutput, SessionDeleteToolOutput, NetworkToolOutput, RecordingToolOutput, FlightRecorderToolOutput, agentSettingKeys, SettingsToolOutput, toolOutputJson, executeToolResult, ensureSessionExists, parseExecuteArguments, parseAdoptArguments, requiredStringField, requiredAction, optionalStringField, optionalBooleanField, optionalPositiveIntegerField, optionalStringArrayField, requireObject, toolResultForValue2, mcpErrorMessage2, toolResult };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-qrqem3fy.mjs";
|
|
4
4
|
import {
|
|
5
5
|
unpackedExtensionId,
|
|
6
6
|
npmGlobalRoot,
|
|
7
7
|
installedVersion,
|
|
8
8
|
runCommand
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-m9n50a86.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-mvjg1jye.mjs";
|
|
16
16
|
import {
|
|
17
17
|
formatPairingCode
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-d8km89cz.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-tryp3jph.mjs";
|
|
37
37
|
import {
|
|
38
38
|
__toESM,
|
|
39
39
|
__commonJS,
|
|
@@ -11289,7 +11289,14 @@ function ownedMcp(server, entry) {
|
|
|
11289
11289
|
}
|
|
11290
11290
|
function mergedMcpServer(existing, command, runtime) {
|
|
11291
11291
|
const environment = typeof existing?.environment === "object" && existing.environment !== null && !Array.isArray(existing.environment) ? existing.environment : {};
|
|
11292
|
-
return {
|
|
11292
|
+
return {
|
|
11293
|
+
...existing,
|
|
11294
|
+
type: "local",
|
|
11295
|
+
command,
|
|
11296
|
+
cwd: "~",
|
|
11297
|
+
pool: true,
|
|
11298
|
+
environment: { ...environment, OPENCODE_BROWSER_RUNTIME: runtime }
|
|
11299
|
+
};
|
|
11293
11300
|
}
|
|
11294
11301
|
function configureMcp(file, entry, previousEntry) {
|
|
11295
11302
|
const existing = mcpServers(file)[MCP_NAME];
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
installedRuntime2,
|
|
4
4
|
autoUpdateStatus,
|
|
5
5
|
updateAvailable
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-m9n50a86.mjs";
|
|
7
7
|
import {
|
|
8
8
|
cacheRoot,
|
|
9
9
|
compiledBinary,
|
|
10
10
|
checkoutRoot,
|
|
11
11
|
cliCommand
|
|
12
|
-
} from "./main-
|
|
12
|
+
} from "./main-tryp3jph.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-ww2pejn2.mjs");
|
|
319
319
|
if (await runInstalledUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -130,7 +130,7 @@ class SemaphoreImpl {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var make3 = (permits) => sync(() => new SemaphoreImpl(permits));
|
|
134
134
|
|
|
135
135
|
// node_modules/effect/dist/internal/matcher.js
|
|
136
136
|
var TypeId = "~effect/Match/Matcher";
|
|
@@ -324,4 +324,4 @@ var boolean = isBoolean;
|
|
|
324
324
|
var orElse = orElse2;
|
|
325
325
|
var exhaustive = exhaustive2;
|
|
326
326
|
|
|
327
|
-
export { Clock, currentTimeMillis, makeUnsafe,
|
|
327
|
+
export { Clock, currentTimeMillis, makeUnsafe, make3, type, value, when, tag, tags, is, string, number, boolean, orElse, exhaustive };
|