@opencode/browse 0.0.18-dev.192 → 0.0.18-dev.193
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/{Runtime-tvxdkp60.mjs → Runtime-r9sev1rq.mjs} +1 -1
- package/dist/{cli-54nftqxr.mjs → cli-ekwkvvmm.mjs} +33 -29
- package/dist/cli.mjs +23 -13
- package/dist/{helpers-yksnc17b.mjs → helpers-3ycvp75a.mjs} +2 -1
- package/dist/{index-kmxtpxxk.mjs → index-xsb9s479.mjs} +2 -2
- package/dist/{legacy-runtime-e6y2jnc6.mjs → legacy-runtime-v1sdjj5h.mjs} +8 -7
- package/dist/log-yek648ak.mjs +9 -0
- package/dist/{main-dyya6jpy.mjs → main-1qwrze1y.mjs} +2 -2
- package/dist/{main-p8jk5985.mjs → main-2p0v71q0.mjs} +39 -37
- package/dist/{main-hh16893t.mjs → main-3g7fdzbh.mjs} +28 -26
- package/dist/{main-de0xhbg0.mjs → main-55a4gpef.mjs} +59 -67
- package/dist/main-693wwz19.mjs +4 -0
- package/dist/main-91vhk5de.mjs +38 -0
- package/dist/{main-4wycvga6.mjs → main-9t32k44b.mjs} +4 -3
- package/dist/{main-d1th6z2h.mjs → main-bv9nawja.mjs} +21 -225
- package/dist/main-cgnkhs2x.mjs +35 -0
- package/dist/{main-w6180mxa.mjs → main-esdgpebk.mjs} +3 -3
- package/dist/{main-z4c819pg.mjs → main-fg5awggs.mjs} +29 -27
- package/dist/{main-4fw36c57.mjs → main-gt2gskrq.mjs} +2 -2
- package/dist/{main-p8q3wrpd.mjs → main-gw77et6v.mjs} +3 -3
- package/dist/{main-t8hspw29.mjs → main-kcw411ep.mjs} +11 -42
- package/dist/{main-h65pjrag.mjs → main-nnfxg7re.mjs} +7 -7
- package/dist/{main-zrjcdksk.mjs → main-pcqtqhgv.mjs} +5 -3
- package/dist/{main-jtgan144.mjs → main-pxs5m0kb.mjs} +10 -8
- package/dist/main-qazf3bhk.mjs +223 -0
- package/dist/{main-q5w61fgh.mjs → main-sf7vaxb6.mjs} +1 -1
- package/dist/{main-t8xtycpr.mjs → main-stf180y1.mjs} +7 -5
- package/dist/{main-p44hff2a.mjs → main-zedq93ez.mjs} +5 -3
- package/dist/{main-c9qxrdzn.mjs → main-zzggnpf4.mjs} +2 -2
- package/dist/{mcp-a2jkny55.mjs → mcp-xfx04fxe.mjs} +125 -121
- package/dist/{migrate-p84kbr3y.mjs → migrate-4rewxqd7.mjs} +8 -7
- package/dist/{relay-e9q9hfc3.mjs → relay-me036e19.mjs} +562 -166
- package/dist/{remove-stored-secrets-c90a5h72.mjs → remove-stored-secrets-ymhge5va.mjs} +1 -1
- package/dist/{runtime-update-jj6pa7vd.mjs → runtime-update-hd2cvy1c.mjs} +12 -10
- package/dist/{setup-p86ywb7k.mjs → setup-0hmbzam5.mjs} +12 -11
- package/dist/{update-rh24h3m1.mjs → update-vnkjbc0e.mjs} +3 -3
- package/dist/{version-1p8wpyzk.mjs → version-jn0h3rmc.mjs} +1 -1
- package/package.json +1 -1
- package/dist/main-wds0wcmt.mjs +0 -4
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
errorExitCode2,
|
|
4
4
|
errorReported2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-pcqtqhgv.mjs";
|
|
6
6
|
import {
|
|
7
7
|
make4,
|
|
8
8
|
value2,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
Terminal,
|
|
15
15
|
runMain,
|
|
16
16
|
layer2
|
|
17
|
-
} from "./main-
|
|
17
|
+
} from "./main-3g7fdzbh.mjs";
|
|
18
18
|
import {
|
|
19
19
|
ExitCode,
|
|
20
20
|
failure,
|
|
@@ -24,15 +24,16 @@ import {
|
|
|
24
24
|
import"./main-pmfd055v.mjs";
|
|
25
25
|
import {
|
|
26
26
|
opencodeBrowserVersion2
|
|
27
|
-
} from "./main-
|
|
27
|
+
} from "./main-693wwz19.mjs";
|
|
28
28
|
import {
|
|
29
29
|
extensionProtocolAdvice,
|
|
30
30
|
autoUpdateStatus
|
|
31
|
-
} from "./main-
|
|
31
|
+
} from "./main-9t32k44b.mjs";
|
|
32
32
|
import {
|
|
33
33
|
defaultPort2,
|
|
34
34
|
isValidSessionId2
|
|
35
|
-
} from "./main-
|
|
35
|
+
} from "./main-kcw411ep.mjs";
|
|
36
|
+
import"./main-91vhk5de.mjs";
|
|
36
37
|
import {
|
|
37
38
|
option,
|
|
38
39
|
String2,
|
|
@@ -51,31 +52,32 @@ import {
|
|
|
51
52
|
ensureExtensionConnected,
|
|
52
53
|
stoppedRelayStatus,
|
|
53
54
|
statusCollections
|
|
54
|
-
} from "./main-
|
|
55
|
+
} from "./main-55a4gpef.mjs";
|
|
56
|
+
import"./main-cgnkhs2x.mjs";
|
|
55
57
|
import {
|
|
56
58
|
updateJson2,
|
|
57
59
|
formatUpdateNotice2,
|
|
58
60
|
updateNotice2
|
|
59
|
-
} from "./main-
|
|
61
|
+
} from "./main-gw77et6v.mjs";
|
|
60
62
|
import {
|
|
61
63
|
settingKeys,
|
|
62
64
|
formatSettings,
|
|
63
65
|
ensureSessionExists
|
|
64
|
-
} from "./main-
|
|
66
|
+
} from "./main-2p0v71q0.mjs";
|
|
65
67
|
import {
|
|
66
68
|
defaultJournalBaseDir,
|
|
67
69
|
readJournalEntries,
|
|
68
70
|
formatJournalEntry
|
|
69
|
-
} from "./main-
|
|
70
|
-
import"./main-
|
|
71
|
+
} from "./main-stf180y1.mjs";
|
|
72
|
+
import"./main-zzggnpf4.mjs";
|
|
71
73
|
import {
|
|
72
74
|
endpointForPort
|
|
73
|
-
} from "./main-
|
|
75
|
+
} from "./main-zedq93ez.mjs";
|
|
74
76
|
import {
|
|
75
77
|
stateRoot,
|
|
76
78
|
cliCommand,
|
|
77
79
|
installCommand
|
|
78
|
-
} from "./main-
|
|
80
|
+
} from "./main-1qwrze1y.mjs";
|
|
79
81
|
import {
|
|
80
82
|
taggedEnum,
|
|
81
83
|
is2,
|
|
@@ -96,21 +98,12 @@ import {
|
|
|
96
98
|
Defect,
|
|
97
99
|
TaggedError2,
|
|
98
100
|
toCodecStringTree
|
|
99
|
-
} from "./main-
|
|
101
|
+
} from "./main-fg5awggs.mjs";
|
|
100
102
|
import {
|
|
101
|
-
pipeArguments,
|
|
102
|
-
dual,
|
|
103
|
-
identity,
|
|
104
|
-
pipe,
|
|
105
|
-
isString,
|
|
106
|
-
isNotUndefined,
|
|
107
|
-
isObject,
|
|
108
|
-
hasProperty,
|
|
109
|
-
isTagged,
|
|
110
103
|
format,
|
|
111
104
|
assignProperty,
|
|
112
105
|
withFiber,
|
|
113
|
-
|
|
106
|
+
Prototype,
|
|
114
107
|
none,
|
|
115
108
|
some,
|
|
116
109
|
isNone,
|
|
@@ -176,7 +169,18 @@ import {
|
|
|
176
169
|
interrupt3,
|
|
177
170
|
fnUntraced,
|
|
178
171
|
fn
|
|
179
|
-
} from "./main-
|
|
172
|
+
} from "./main-bv9nawja.mjs";
|
|
173
|
+
import {
|
|
174
|
+
pipeArguments,
|
|
175
|
+
dual,
|
|
176
|
+
identity,
|
|
177
|
+
pipe,
|
|
178
|
+
isString,
|
|
179
|
+
isNotUndefined,
|
|
180
|
+
isObject,
|
|
181
|
+
hasProperty,
|
|
182
|
+
isTagged
|
|
183
|
+
} from "./main-qazf3bhk.mjs";
|
|
180
184
|
|
|
181
185
|
// node_modules/effect/dist/Number.js
|
|
182
186
|
var Number2 = globalThis.Number;
|
|
@@ -694,7 +698,7 @@ var Toggle = (options) => {
|
|
|
694
698
|
});
|
|
695
699
|
};
|
|
696
700
|
var proto = {
|
|
697
|
-
.../* @__PURE__ */
|
|
701
|
+
.../* @__PURE__ */ Prototype({
|
|
698
702
|
label: "Prompt",
|
|
699
703
|
evaluate() {
|
|
700
704
|
return run(this);
|
|
@@ -3376,7 +3380,7 @@ var reconstructTree = (tree, results) => {
|
|
|
3376
3380
|
var TypeId5 = "~effect/cli/Command";
|
|
3377
3381
|
var toImpl = (self) => self;
|
|
3378
3382
|
var Proto3 = {
|
|
3379
|
-
.../* @__PURE__ */
|
|
3383
|
+
.../* @__PURE__ */ Prototype({
|
|
3380
3384
|
label: "Command",
|
|
3381
3385
|
evaluate() {
|
|
3382
3386
|
return toImpl(this).service;
|
|
@@ -5380,7 +5384,7 @@ var status = make("status", {
|
|
|
5380
5384
|
}
|
|
5381
5385
|
})).pipe(withDescription4("Show relay, extension, and target status"));
|
|
5382
5386
|
var mcp = make("mcp", {}, fn("Cli.mcp")(function* () {
|
|
5383
|
-
const { runMcpServer } = yield* promise(() => import("./mcp-
|
|
5387
|
+
const { runMcpServer } = yield* promise(() => import("./mcp-xfx04fxe.mjs"));
|
|
5384
5388
|
yield* runMcpServer;
|
|
5385
5389
|
})).pipe(withDescription4("Run the browse MCP server over stdio"));
|
|
5386
5390
|
registerCliCommand(400, () => tabs);
|
|
@@ -5692,12 +5696,12 @@ registerCliCommand(700, () => recording);
|
|
|
5692
5696
|
|
|
5693
5697
|
// src/cli/relay.ts
|
|
5694
5698
|
var serve = make("serve", {}, fn("Cli.serve")(function* () {
|
|
5695
|
-
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-
|
|
5699
|
+
const [{ startRelay }, { parseAdditionalExtensionOrigins }] = yield* promise(() => Promise.all([import("./relay-me036e19.mjs"), import("./helpers-3ycvp75a.mjs")]));
|
|
5696
5700
|
const port = process.env.OPENCODE_BROWSER_PORT === undefined ? undefined : yield* portConfig;
|
|
5697
5701
|
const additionalExtensionOrigins = parseAdditionalExtensionOrigins(yield* extensionOriginsConfig);
|
|
5698
5702
|
yield* scoped(gen(function* () {
|
|
5699
5703
|
const relay = yield* startRelay({ ...port === undefined ? {} : { port }, additionalExtensionOrigins });
|
|
5700
|
-
yield* promise(() => import("./legacy-runtime-
|
|
5704
|
+
yield* promise(() => import("./legacy-runtime-v1sdjj5h.mjs").then((module) => module.commitLegacyTakeover()));
|
|
5701
5705
|
yield* log(`browse relay listening at ${relay.url}`);
|
|
5702
5706
|
yield* log(`browse connects automatically while the browser runs. Run \`${cliCommand("status")}\` to check.`);
|
|
5703
5707
|
yield* never;
|
package/dist/cli.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
|
|
12
12
|
// src/main.ts
|
|
13
13
|
import path from "node:path";
|
|
14
|
-
var embeddedVersion = "0.0.18-dev.
|
|
14
|
+
var embeddedVersion = "0.0.18-dev.193";
|
|
15
15
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
16
16
|
var command = process.argv[2];
|
|
17
17
|
var args = process.argv.slice(3);
|
|
@@ -21,27 +21,37 @@ var options = separator === -1 ? args : args.slice(0, separator);
|
|
|
21
21
|
var askedForHelp = command === "--help" || command === "-h" || options.some((arg) => arg === "--help" || arg === "-h");
|
|
22
22
|
var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
|
|
23
23
|
var oldRuntime = legacyRuntime();
|
|
24
|
-
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-
|
|
24
|
+
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-v1sdjj5h.mjs").then((module) => module.prepareLegacyTakeover(oldRuntime)).catch(() => false);
|
|
25
25
|
if (!takingOver)
|
|
26
26
|
settleLegacyHome(process.env, oldRuntime);
|
|
27
27
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver) {
|
|
28
|
-
const { removeStoredSecrets } = await import("./remove-stored-secrets-
|
|
28
|
+
const { removeStoredSecrets } = await import("./remove-stored-secrets-ymhge5va.mjs");
|
|
29
29
|
removeStoredSecrets();
|
|
30
30
|
}
|
|
31
|
+
if (command === "serve" && !askedForHelp) {
|
|
32
|
+
const { relayLog } = await import("./log-yek648ak.mjs");
|
|
33
|
+
for (const signal of ["SIGINT", "SIGTERM"]) {
|
|
34
|
+
process.prependOnceListener(signal, () => {
|
|
35
|
+
relayLog("relay.signal", { signal, pid: process.pid });
|
|
36
|
+
if (process.listenerCount(signal) === 0)
|
|
37
|
+
process.exit(signal === "SIGINT" ? 130 : 143);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
31
41
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver && !process.env.OPENCODE_BROWSER_HOME && legacyRootsLeft()) {
|
|
32
42
|
try {
|
|
33
|
-
const { migrateLegacy } = await import("./migrate-
|
|
43
|
+
const { migrateLegacy } = await import("./migrate-4rewxqd7.mjs");
|
|
34
44
|
migrateLegacy();
|
|
35
45
|
} catch {}
|
|
36
46
|
}
|
|
37
47
|
if (command === "--version" || command === "-v") {
|
|
38
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
48
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-jn0h3rmc.mjs")).opencodeBrowserVersion;
|
|
39
49
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
40
50
|
`);
|
|
41
51
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
42
|
-
const { NodeRuntime } = await import("./index-
|
|
43
|
-
const { defaultTeardown } = await import("./Runtime-
|
|
44
|
-
const { runMcpServer } = await import("./mcp-
|
|
52
|
+
const { NodeRuntime } = await import("./index-xsb9s479.mjs");
|
|
53
|
+
const { defaultTeardown } = await import("./Runtime-r9sev1rq.mjs");
|
|
54
|
+
const { runMcpServer } = await import("./mcp-xfx04fxe.mjs");
|
|
45
55
|
let stdinGone = false;
|
|
46
56
|
const onStdinGone = () => {
|
|
47
57
|
stdinGone = true;
|
|
@@ -63,13 +73,13 @@ if (command === "--version" || command === "-v") {
|
|
|
63
73
|
})
|
|
64
74
|
}));
|
|
65
75
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
66
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
76
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-hd2cvy1c.mjs");
|
|
67
77
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
68
78
|
} else if (command === "update" && !askedForHelp) {
|
|
69
|
-
const { runUpdateCommand } = await import("./update-
|
|
79
|
+
const { runUpdateCommand } = await import("./update-vnkjbc0e.mjs");
|
|
70
80
|
await runUpdateCommand(process.argv.slice(3));
|
|
71
81
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
72
|
-
const { runSetup } = await import("./setup-
|
|
82
|
+
const { runSetup } = await import("./setup-0hmbzam5.mjs");
|
|
73
83
|
await runSetup(command, process.argv.slice(3));
|
|
74
84
|
} else {
|
|
75
85
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -107,9 +117,9 @@ ${agentHelp}
|
|
|
107
117
|
`);
|
|
108
118
|
}
|
|
109
119
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
110
|
-
const { printSetupStatus } = await import("./setup-
|
|
120
|
+
const { printSetupStatus } = await import("./setup-0hmbzam5.mjs");
|
|
111
121
|
printSetupStatus();
|
|
112
122
|
}
|
|
113
|
-
const { runCli } = await import("./cli-
|
|
123
|
+
const { runCli } = await import("./cli-ekwkvvmm.mjs");
|
|
114
124
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
115
125
|
}
|
|
@@ -32,7 +32,8 @@ import {
|
|
|
32
32
|
isRestrictedTarget2,
|
|
33
33
|
isRestrictedUrl2,
|
|
34
34
|
dataUrlDocument2
|
|
35
|
-
} from "./main-
|
|
35
|
+
} from "./main-kcw411ep.mjs";
|
|
36
|
+
import"./main-91vhk5de.mjs";
|
|
36
37
|
export {
|
|
37
38
|
HttpRouteError2 as HttpRouteError,
|
|
38
39
|
chromeExtensionOriginForPath2 as chromeExtensionOriginForPath,
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
exports_NodeRuntime,
|
|
4
4
|
exports_NodeStdio,
|
|
5
5
|
exports_NodeServices
|
|
6
|
-
} from "./main-
|
|
7
|
-
import"./main-
|
|
6
|
+
} from "./main-3g7fdzbh.mjs";
|
|
7
|
+
import"./main-pcqtqhgv.mjs";
|
|
8
8
|
export {
|
|
9
9
|
exports_NodeHttpClient as NodeHttpClient,
|
|
10
10
|
exports_NodeRuntime as NodeRuntime,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-91vhk5de.mjs";
|
|
2
2
|
import {
|
|
3
3
|
channelOf,
|
|
4
4
|
installedRuntime2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-9t32k44b.mjs";
|
|
6
|
+
import"./main-kcw411ep.mjs";
|
|
6
7
|
import {
|
|
7
8
|
legacyRuntimeActive,
|
|
8
9
|
insidePath,
|
|
@@ -10,16 +11,16 @@ import {
|
|
|
10
11
|
} from "./main-pmfd055v.mjs";
|
|
11
12
|
import {
|
|
12
13
|
opencodeBrowserVersion2
|
|
13
|
-
} from "./main-
|
|
14
|
+
} from "./main-693wwz19.mjs";
|
|
14
15
|
import {
|
|
15
16
|
relayPortPinned,
|
|
16
17
|
resolveRelayPort,
|
|
17
18
|
probeRelayPort
|
|
18
|
-
} from "./main-
|
|
19
|
+
} from "./main-zedq93ez.mjs";
|
|
19
20
|
import {
|
|
20
21
|
installerBinaryPath,
|
|
21
22
|
compiledBinary
|
|
22
|
-
} from "./main-
|
|
23
|
+
} from "./main-1qwrze1y.mjs";
|
|
23
24
|
|
|
24
25
|
// src/setup/legacy-runtime.ts
|
|
25
26
|
import fs from "node:fs";
|
|
@@ -52,7 +53,7 @@ async function prepareLegacyTakeover(legacy, options = {}) {
|
|
|
52
53
|
return false;
|
|
53
54
|
}
|
|
54
55
|
const home = options.home ?? os.homedir();
|
|
55
|
-
const { copyLegacyData } = await import("./migrate-
|
|
56
|
+
const { copyLegacyData } = await import("./migrate-4rewxqd7.mjs");
|
|
56
57
|
delete env.OPENCODE_BROWSER_HOME;
|
|
57
58
|
copyLegacyData(home);
|
|
58
59
|
pending = { legacy, install, home };
|
|
@@ -66,7 +67,7 @@ async function commitLegacyTakeover(now = Date.now()) {
|
|
|
66
67
|
try {
|
|
67
68
|
if (!adoptLegacyRuntime(legacy, install, now))
|
|
68
69
|
return false;
|
|
69
|
-
const { migrateLegacy } = await import("./migrate-
|
|
70
|
+
const { migrateLegacy } = await import("./migrate-4rewxqd7.mjs");
|
|
70
71
|
migrateLegacy(home, now);
|
|
71
72
|
return true;
|
|
72
73
|
} catch {
|
|
@@ -105,7 +105,7 @@ function cliInstall() {
|
|
|
105
105
|
return { kind: "binary", binary: installedBinary() ?? process.execPath, pathEnv: process.env.PATH };
|
|
106
106
|
if (fromCheckout())
|
|
107
107
|
return { kind: "checkout", bundle: path.join(packageRoot(), "dist", "cli.mjs") };
|
|
108
|
-
return { kind: "npm", version: "0.0.18-dev.
|
|
108
|
+
return { kind: "npm", version: "0.0.18-dev.193", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
|
|
109
109
|
}
|
|
110
110
|
function cliPrefix(install = cliInstall()) {
|
|
111
111
|
if (install.kind === "binary") {
|
|
@@ -127,7 +127,7 @@ function storeConfig(env = process.env, baked = { id: "mfnicocicmmlkpjnaffgihfjh
|
|
|
127
127
|
return id ? { id } : {};
|
|
128
128
|
}
|
|
129
129
|
var RELEASE_SERVICE = "https://anoma.ly/release";
|
|
130
|
-
function devExtension(baked = { file: "browse-extension-0.0.18-dev.
|
|
130
|
+
function devExtension(baked = { file: "browse-extension-0.0.18-dev.193.zip", sha256: "60a78f7e99d0e0368890acc1bb9d2e2a57b14b06ff8a9b48a20ed73f403b3b17", size: 184498 }) {
|
|
131
131
|
return baked && /^[0-9a-f]{64}$/.test(baked.sha256) && /^[\w.-]+\.zip$/.test(baked.file) ? baked : undefined;
|
|
132
132
|
}
|
|
133
133
|
var devExtensionUrl = (extension, env = process.env) => `${(env.OPENCODE_BROWSER_RELEASE_SERVICE || RELEASE_SERVICE).replace(/\/+$/, "")}/browse/files/${extension.sha256}/${extension.file}`;
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
parseTargetSelection2,
|
|
12
12
|
getObject2,
|
|
13
13
|
getString2
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-kcw411ep.mjs";
|
|
15
15
|
import {
|
|
16
16
|
cliCommand
|
|
17
|
-
} from "./main-
|
|
17
|
+
} from "./main-1qwrze1y.mjs";
|
|
18
18
|
import {
|
|
19
19
|
isStream,
|
|
20
20
|
provideContext
|
|
21
|
-
} from "./main-
|
|
21
|
+
} from "./main-3g7fdzbh.mjs";
|
|
22
22
|
import {
|
|
23
23
|
TaggedError,
|
|
24
24
|
passthrough,
|
|
@@ -64,17 +64,8 @@ import {
|
|
|
64
64
|
toJsonSchemaDocument,
|
|
65
65
|
Json,
|
|
66
66
|
JsonObject
|
|
67
|
-
} from "./main-
|
|
67
|
+
} from "./main-fg5awggs.mjs";
|
|
68
68
|
import {
|
|
69
|
-
pipeArguments,
|
|
70
|
-
identity,
|
|
71
|
-
constTrue,
|
|
72
|
-
constFalse,
|
|
73
|
-
constUndefined,
|
|
74
|
-
isString,
|
|
75
|
-
isNumber,
|
|
76
|
-
isBoolean,
|
|
77
|
-
hasProperty,
|
|
78
69
|
getStackTraceLimit,
|
|
79
70
|
setStackTraceLimit,
|
|
80
71
|
none,
|
|
@@ -100,7 +91,18 @@ import {
|
|
|
100
91
|
contextWith,
|
|
101
92
|
provide3,
|
|
102
93
|
fnUntraced
|
|
103
|
-
} from "./main-
|
|
94
|
+
} from "./main-bv9nawja.mjs";
|
|
95
|
+
import {
|
|
96
|
+
pipeArguments,
|
|
97
|
+
identity,
|
|
98
|
+
constTrue,
|
|
99
|
+
constFalse,
|
|
100
|
+
constUndefined,
|
|
101
|
+
isString,
|
|
102
|
+
isNumber,
|
|
103
|
+
isBoolean,
|
|
104
|
+
hasProperty
|
|
105
|
+
} from "./main-qazf3bhk.mjs";
|
|
104
106
|
|
|
105
107
|
// node_modules/effect/dist/PrimaryKey.js
|
|
106
108
|
var symbol = "~effect/PrimaryKey";
|
|
@@ -236,7 +238,7 @@ var makeProto = (options) => {
|
|
|
236
238
|
Rpc.key = `effect/rpc/Rpc/${options._tag}`;
|
|
237
239
|
return Rpc;
|
|
238
240
|
};
|
|
239
|
-
var
|
|
241
|
+
var make = (tag, options) => {
|
|
240
242
|
const successSchema = options?.success ?? Void;
|
|
241
243
|
const errorSchema = options?.error ?? Never;
|
|
242
244
|
const defectSchema = options?.defect ?? Defect();
|
|
@@ -419,7 +421,7 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
|
|
|
419
421
|
requests: options.requests,
|
|
420
422
|
annotations: options.annotations
|
|
421
423
|
});
|
|
422
|
-
var
|
|
424
|
+
var make2 = (...rpcs) => makeProto2({
|
|
423
425
|
requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
|
|
424
426
|
annotations: empty4()
|
|
425
427
|
});
|
|
@@ -610,7 +612,7 @@ class InternalError extends (/* @__PURE__ */ Error3("effect/ai/McpSchema/Interna
|
|
|
610
612
|
}
|
|
611
613
|
var McpError = /* @__PURE__ */ Union([ParseError, InvalidRequest, MethodNotFound, InvalidParams, InternalError, McpErrorBase]);
|
|
612
614
|
|
|
613
|
-
class Ping extends (/* @__PURE__ */
|
|
615
|
+
class Ping extends (/* @__PURE__ */ make("ping", {
|
|
614
616
|
success: /* @__PURE__ */ Struct({}),
|
|
615
617
|
error: McpError,
|
|
616
618
|
payload: /* @__PURE__ */ UndefinedOr(RequestMeta)
|
|
@@ -626,7 +628,7 @@ class InitializeResult extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struct(
|
|
|
626
628
|
}))) {
|
|
627
629
|
}
|
|
628
630
|
|
|
629
|
-
class Initialize extends (/* @__PURE__ */
|
|
631
|
+
class Initialize extends (/* @__PURE__ */ make("initialize", {
|
|
630
632
|
success: InitializeResult,
|
|
631
633
|
error: McpError,
|
|
632
634
|
payload: {
|
|
@@ -637,7 +639,7 @@ class Initialize extends (/* @__PURE__ */ make2("initialize", {
|
|
|
637
639
|
}
|
|
638
640
|
})) {
|
|
639
641
|
}
|
|
640
|
-
class CancelledNotification extends (/* @__PURE__ */
|
|
642
|
+
class CancelledNotification extends (/* @__PURE__ */ make("notifications/cancelled", {
|
|
641
643
|
payload: {
|
|
642
644
|
...NotificationMeta.fields,
|
|
643
645
|
requestId: RequestId,
|
|
@@ -646,7 +648,7 @@ class CancelledNotification extends (/* @__PURE__ */ make2("notifications/cancel
|
|
|
646
648
|
})) {
|
|
647
649
|
}
|
|
648
650
|
|
|
649
|
-
class ProgressNotification extends (/* @__PURE__ */
|
|
651
|
+
class ProgressNotification extends (/* @__PURE__ */ make("notifications/progress", {
|
|
650
652
|
payload: {
|
|
651
653
|
...NotificationMeta.fields,
|
|
652
654
|
progressToken: ProgressToken,
|
|
@@ -717,7 +719,7 @@ class ReadResourceResult extends (/* @__PURE__ */ Opaque()(/* @__PURE__ */ Struc
|
|
|
717
719
|
}))) {
|
|
718
720
|
}
|
|
719
721
|
|
|
720
|
-
class ReadResource extends (/* @__PURE__ */
|
|
722
|
+
class ReadResource extends (/* @__PURE__ */ make("resources/read", {
|
|
721
723
|
success: ReadResourceResult,
|
|
722
724
|
error: McpError,
|
|
723
725
|
payload: {
|
|
@@ -727,12 +729,12 @@ class ReadResource extends (/* @__PURE__ */ make2("resources/read", {
|
|
|
727
729
|
})) {
|
|
728
730
|
}
|
|
729
731
|
|
|
730
|
-
class ResourceListChangedNotification extends (/* @__PURE__ */
|
|
732
|
+
class ResourceListChangedNotification extends (/* @__PURE__ */ make("notifications/resources/list_changed", {
|
|
731
733
|
payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
|
|
732
734
|
})) {
|
|
733
735
|
}
|
|
734
736
|
|
|
735
|
-
class Subscribe extends (/* @__PURE__ */
|
|
737
|
+
class Subscribe extends (/* @__PURE__ */ make("resources/subscribe", {
|
|
736
738
|
success: /* @__PURE__ */ Struct({}),
|
|
737
739
|
error: McpError,
|
|
738
740
|
payload: {
|
|
@@ -742,7 +744,7 @@ class Subscribe extends (/* @__PURE__ */ make2("resources/subscribe", {
|
|
|
742
744
|
})) {
|
|
743
745
|
}
|
|
744
746
|
|
|
745
|
-
class Unsubscribe extends (/* @__PURE__ */
|
|
747
|
+
class Unsubscribe extends (/* @__PURE__ */ make("resources/unsubscribe", {
|
|
746
748
|
success: /* @__PURE__ */ Struct({}),
|
|
747
749
|
error: McpError,
|
|
748
750
|
payload: {
|
|
@@ -752,7 +754,7 @@ class Unsubscribe extends (/* @__PURE__ */ make2("resources/unsubscribe", {
|
|
|
752
754
|
})) {
|
|
753
755
|
}
|
|
754
756
|
|
|
755
|
-
class ResourceUpdatedNotification extends (/* @__PURE__ */
|
|
757
|
+
class ResourceUpdatedNotification extends (/* @__PURE__ */ make("notifications/resources/updated", {
|
|
756
758
|
payload: {
|
|
757
759
|
...NotificationMeta.fields,
|
|
758
760
|
uri: String3
|
|
@@ -837,7 +839,7 @@ class GetPromptResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/GetP
|
|
|
837
839
|
})) {
|
|
838
840
|
}
|
|
839
841
|
|
|
840
|
-
class GetPrompt extends (/* @__PURE__ */
|
|
842
|
+
class GetPrompt extends (/* @__PURE__ */ make("prompts/get", {
|
|
841
843
|
success: GetPromptResult,
|
|
842
844
|
error: McpError,
|
|
843
845
|
payload: {
|
|
@@ -849,7 +851,7 @@ class GetPrompt extends (/* @__PURE__ */ make2("prompts/get", {
|
|
|
849
851
|
})) {
|
|
850
852
|
}
|
|
851
853
|
|
|
852
|
-
class PromptListChangedNotification extends (/* @__PURE__ */
|
|
854
|
+
class PromptListChangedNotification extends (/* @__PURE__ */ make("notifications/prompts/list_changed", {
|
|
853
855
|
payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
|
|
854
856
|
})) {
|
|
855
857
|
}
|
|
@@ -894,7 +896,7 @@ class CallToolResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/CallT
|
|
|
894
896
|
})) {
|
|
895
897
|
}
|
|
896
898
|
|
|
897
|
-
class CallTool extends (/* @__PURE__ */
|
|
899
|
+
class CallTool extends (/* @__PURE__ */ make("tools/call", {
|
|
898
900
|
success: CallToolResult,
|
|
899
901
|
error: McpError,
|
|
900
902
|
payload: {
|
|
@@ -905,13 +907,13 @@ class CallTool extends (/* @__PURE__ */ make2("tools/call", {
|
|
|
905
907
|
})) {
|
|
906
908
|
}
|
|
907
909
|
|
|
908
|
-
class ToolListChangedNotification extends (/* @__PURE__ */
|
|
910
|
+
class ToolListChangedNotification extends (/* @__PURE__ */ make("notifications/tools/list_changed", {
|
|
909
911
|
payload: /* @__PURE__ */ UndefinedOr(NotificationMeta)
|
|
910
912
|
})) {
|
|
911
913
|
}
|
|
912
914
|
var LoggingLevel = /* @__PURE__ */ Literals(["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"]);
|
|
913
915
|
|
|
914
|
-
class SetLevel extends (/* @__PURE__ */
|
|
916
|
+
class SetLevel extends (/* @__PURE__ */ make("logging/setLevel", {
|
|
915
917
|
payload: {
|
|
916
918
|
...RequestMeta.fields,
|
|
917
919
|
level: LoggingLevel
|
|
@@ -921,7 +923,7 @@ class SetLevel extends (/* @__PURE__ */ make2("logging/setLevel", {
|
|
|
921
923
|
})) {
|
|
922
924
|
}
|
|
923
925
|
|
|
924
|
-
class LoggingMessageNotification extends (/* @__PURE__ */
|
|
926
|
+
class LoggingMessageNotification extends (/* @__PURE__ */ make("notifications/message", {
|
|
925
927
|
payload: /* @__PURE__ */ Struct({
|
|
926
928
|
...NotificationMeta.fields,
|
|
927
929
|
level: LoggingLevel,
|
|
@@ -994,7 +996,7 @@ class CreateMessageResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/
|
|
|
994
996
|
})) {
|
|
995
997
|
}
|
|
996
998
|
|
|
997
|
-
class CreateMessage extends (/* @__PURE__ */
|
|
999
|
+
class CreateMessage extends (/* @__PURE__ */ make("sampling/createMessage", {
|
|
998
1000
|
success: CreateMessageResult,
|
|
999
1001
|
error: McpError,
|
|
1000
1002
|
payload: {
|
|
@@ -1039,7 +1041,7 @@ class ListRootsResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/List
|
|
|
1039
1041
|
})) {
|
|
1040
1042
|
}
|
|
1041
1043
|
|
|
1042
|
-
class ListRoots extends (/* @__PURE__ */
|
|
1044
|
+
class ListRoots extends (/* @__PURE__ */ make("roots/list", {
|
|
1043
1045
|
success: ListRootsResult,
|
|
1044
1046
|
error: McpError,
|
|
1045
1047
|
payload: /* @__PURE__ */ UndefinedOr(RequestMeta)
|
|
@@ -1176,14 +1178,14 @@ class ElicitDeclineResult extends (/* @__PURE__ */ Class2("@effect/ai/McpSchema/
|
|
|
1176
1178
|
})) {
|
|
1177
1179
|
}
|
|
1178
1180
|
var ElicitResult = /* @__PURE__ */ Union([ElicitAcceptResult, ElicitDeclineResult]);
|
|
1179
|
-
class Elicit extends (/* @__PURE__ */
|
|
1181
|
+
class Elicit extends (/* @__PURE__ */ make("elicitation/create", {
|
|
1180
1182
|
success: ElicitResult,
|
|
1181
1183
|
error: McpError,
|
|
1182
1184
|
payload: ElicitRequestParams
|
|
1183
1185
|
})) {
|
|
1184
1186
|
}
|
|
1185
1187
|
|
|
1186
|
-
class ElicitationCompleteNotification extends (/* @__PURE__ */
|
|
1188
|
+
class ElicitationCompleteNotification extends (/* @__PURE__ */ make("notifications/elicitation/complete", {
|
|
1187
1189
|
payload: {
|
|
1188
1190
|
elicitationId: String3
|
|
1189
1191
|
}
|
|
@@ -1211,7 +1213,7 @@ class McpServerClient extends (/* @__PURE__ */ Service2()("effect/ai/McpSchema/M
|
|
|
1211
1213
|
|
|
1212
1214
|
class McpServerClientMiddleware extends (/* @__PURE__ */ Service()("effect/ai/McpSchema/McpServerClientMiddleware")) {
|
|
1213
1215
|
}
|
|
1214
|
-
class ServerNotificationRpcs extends (/* @__PURE__ */
|
|
1216
|
+
class ServerNotificationRpcs extends (/* @__PURE__ */ make2(CancelledNotification, ProgressNotification, LoggingMessageNotification, ResourceUpdatedNotification, ResourceListChangedNotification, ToolListChangedNotification, PromptListChangedNotification, ElicitationCompleteNotification)) {
|
|
1215
1217
|
}
|
|
1216
1218
|
class EnabledWhen extends (/* @__PURE__ */ Service2()("effect/ai/McpSchema/EnabledWhen")) {
|
|
1217
1219
|
}
|
|
@@ -1747,4 +1749,4 @@ function toolResult(options) {
|
|
|
1747
1749
|
});
|
|
1748
1750
|
}
|
|
1749
1751
|
|
|
1750
|
-
export { isStreamSchema, getStreamSchemas, ClientAbort, ServerClient,
|
|
1752
|
+
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, agentSettingKeys, SettingsToolOutput, toolOutputJson, executeToolResult, ensureSessionExists, parseExecuteArguments, parseAdoptArguments, requiredStringField, requiredAction, optionalStringField, optionalBooleanField, optionalPositiveIntegerField, optionalStringArrayField, requireObject, toolResultForValue2, mcpErrorMessage2, toolResult };
|