@opencode/browse 0.0.17-dev.188 → 0.0.17-dev.189
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-hmy7zww1.mjs → Runtime-tvxdkp60.mjs} +1 -1
- package/dist/{cli-5ezftnv2.mjs → cli-29hdwt7a.mjs} +58 -640
- package/dist/cli.mjs +18 -13
- package/dist/{helpers-k5ybc61c.mjs → helpers-00s350tq.mjs} +1 -1
- package/dist/{index-37ssbv86.mjs → index-kmxtpxxk.mjs} +2 -2
- package/dist/{legacy-runtime-j0sw664c.mjs → legacy-runtime-egp6zww2.mjs} +7 -7
- package/dist/{main-7h3v45ag.mjs → main-00ka28er.mjs} +5 -5
- package/dist/{main-pqxrvknr.mjs → main-0mv7rpmv.mjs} +2 -2
- package/dist/{main-svhdexdh.mjs → main-1h2rczbb.mjs} +3 -3
- package/dist/{main-d8km89cz.mjs → main-2jd6x6jq.mjs} +2 -2
- package/dist/{main-66fy08h5.mjs → main-7wq2brry.mjs} +58 -62
- package/dist/{main-7v4scg8t.mjs → main-ckyb9v7n.mjs} +3 -3
- package/dist/{main-0h387a1q.mjs → main-d1th6z2h.mjs} +3 -3
- package/dist/{main-m9n50a86.mjs → main-dvy4da2g.mjs} +2 -7
- package/dist/main-e575zjpk.mjs +4 -0
- package/dist/{main-kzcrfvmh.mjs → main-e5r3f1g8.mjs} +4 -4
- package/dist/{main-ba028a85.mjs → main-f1jjkpm9.mjs} +10 -17
- package/dist/{main-mvjg1jye.mjs → main-g82bc5x3.mjs} +37 -94
- package/dist/main-gexpjhk5.mjs +32 -0
- package/dist/{main-3514h33n.mjs → main-hh16893t.mjs} +3 -3
- package/dist/{main-9q9919e3.mjs → main-jtgan144.mjs} +3 -3
- package/dist/{main-tryp3jph.mjs → main-kd8f1nq2.mjs} +3 -4
- package/dist/{main-4qq4n32k.mjs → main-ky3vj3mx.mjs} +2 -2
- package/dist/{main-dab23et4.mjs → main-v1r263fc.mjs} +1 -1
- package/dist/{main-8xd753k5.mjs → main-z4c819pg.mjs} +4 -37
- package/dist/{main-j4kq90pw.mjs → main-zrjcdksk.mjs} +1 -1
- package/dist/{mcp-jh4atts2.mjs → mcp-rzn35bxy.mjs} +132 -293
- package/dist/{migrate-r433scvg.mjs → migrate-hz3a51xg.mjs} +7 -7
- package/dist/{relay-1epy67be.mjs → relay-n5jwr402.mjs} +2082 -4323
- package/dist/{remove-stored-secrets-wy3pakjj.mjs → remove-stored-secrets-r8dk5eqc.mjs} +1 -1
- package/dist/{runtime-update-ww2pejn2.mjs → runtime-update-avxgfgwm.mjs} +10 -10
- package/dist/{setup-n1hpbkz2.mjs → setup-cnp75dsm.mjs} +10 -10
- package/dist/{update-z7qvagkc.mjs → update-bmgjhjd0.mjs} +3 -3
- package/dist/{version-2123c138.mjs → version-74q9xrcd.mjs} +1 -1
- package/package.json +2 -3
- package/dist/main-qrqem3fy.mjs +0 -4
- package/dist/skill-text-0ndr12dz.mjs +0 -492
- package/skills/browse/SKILL.md +0 -484
package/dist/cli.mjs
CHANGED
|
@@ -5,10 +5,13 @@ import {
|
|
|
5
5
|
legacyRuntimeActive,
|
|
6
6
|
settleLegacyHome
|
|
7
7
|
} from "./main-pmfd055v.mjs";
|
|
8
|
+
import {
|
|
9
|
+
agentHelp
|
|
10
|
+
} from "./main-gexpjhk5.mjs";
|
|
8
11
|
|
|
9
12
|
// src/main.ts
|
|
10
13
|
import path from "node:path";
|
|
11
|
-
var embeddedVersion = "0.0.17-dev.
|
|
14
|
+
var embeddedVersion = "0.0.17-dev.189";
|
|
12
15
|
var setupCommands = new Set(["install", "uninstall", "extension", "pair", "set"]);
|
|
13
16
|
var command = process.argv[2];
|
|
14
17
|
var args = process.argv.slice(3);
|
|
@@ -18,27 +21,27 @@ var options = separator === -1 ? args : args.slice(0, separator);
|
|
|
18
21
|
var askedForHelp = command === "--help" || command === "-h" || options.some((arg) => arg === "--help" || arg === "-h");
|
|
19
22
|
var preCliHelp = askedForHelp && (command === "update" || command !== undefined && setupCommands.has(command));
|
|
20
23
|
var oldRuntime = legacyRuntime();
|
|
21
|
-
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-
|
|
24
|
+
var takingOver = command === "serve" && !askedForHelp && legacyRuntimeActive(oldRuntime) && await import("./legacy-runtime-egp6zww2.mjs").then((module) => module.prepareLegacyTakeover(oldRuntime)).catch(() => false);
|
|
22
25
|
if (!takingOver)
|
|
23
26
|
settleLegacyHome(process.env, oldRuntime);
|
|
24
27
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver) {
|
|
25
|
-
const { removeStoredSecrets } = await import("./remove-stored-secrets-
|
|
28
|
+
const { removeStoredSecrets } = await import("./remove-stored-secrets-r8dk5eqc.mjs");
|
|
26
29
|
removeStoredSecrets();
|
|
27
30
|
}
|
|
28
31
|
if (command !== "--version" && command !== "-v" && !askedForHelp && !takingOver && !process.env.OPENCODE_BROWSER_HOME && legacyRootsLeft()) {
|
|
29
32
|
try {
|
|
30
|
-
const { migrateLegacy } = await import("./migrate-
|
|
33
|
+
const { migrateLegacy } = await import("./migrate-hz3a51xg.mjs");
|
|
31
34
|
migrateLegacy();
|
|
32
35
|
} catch {}
|
|
33
36
|
}
|
|
34
37
|
if (command === "--version" || command === "-v") {
|
|
35
|
-
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-
|
|
38
|
+
const opencodeBrowserVersion = embeddedVersion ?? (await import("./version-74q9xrcd.mjs")).opencodeBrowserVersion;
|
|
36
39
|
process.stdout.write(`${opencodeBrowserVersion}
|
|
37
40
|
`);
|
|
38
41
|
} else if (invokedAs === "opencode-browser-mcp" || command === "mcp" && process.argv.length === 3) {
|
|
39
|
-
const { NodeRuntime } = await import("./index-
|
|
40
|
-
const { defaultTeardown } = await import("./Runtime-
|
|
41
|
-
const { runMcpServer } = await import("./mcp-
|
|
42
|
+
const { NodeRuntime } = await import("./index-kmxtpxxk.mjs");
|
|
43
|
+
const { defaultTeardown } = await import("./Runtime-tvxdkp60.mjs");
|
|
44
|
+
const { runMcpServer } = await import("./mcp-rzn35bxy.mjs");
|
|
42
45
|
let stdinGone = false;
|
|
43
46
|
const onStdinGone = () => {
|
|
44
47
|
stdinGone = true;
|
|
@@ -60,13 +63,13 @@ if (command === "--version" || command === "-v") {
|
|
|
60
63
|
})
|
|
61
64
|
}));
|
|
62
65
|
} else if (command === "self-update" || command === "runtime-switch") {
|
|
63
|
-
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-
|
|
66
|
+
const { runSelfUpdate, runRuntimeSwitch } = await import("./runtime-update-avxgfgwm.mjs");
|
|
64
67
|
await (command === "self-update" ? runSelfUpdate : runRuntimeSwitch)(process.argv.slice(3));
|
|
65
68
|
} else if (command === "update" && !askedForHelp) {
|
|
66
|
-
const { runUpdateCommand } = await import("./update-
|
|
69
|
+
const { runUpdateCommand } = await import("./update-bmgjhjd0.mjs");
|
|
67
70
|
await runUpdateCommand(process.argv.slice(3));
|
|
68
71
|
} else if (command && setupCommands.has(command) && !askedForHelp) {
|
|
69
|
-
const { runSetup } = await import("./setup-
|
|
72
|
+
const { runSetup } = await import("./setup-cnp75dsm.mjs");
|
|
70
73
|
await runSetup(command, process.argv.slice(3));
|
|
71
74
|
} else {
|
|
72
75
|
if (preCliHelp || !command || command === "--help" || command === "-h") {
|
|
@@ -99,12 +102,14 @@ browse keeps its files in $XDG_CONFIG_HOME/browse, $XDG_DATA_HOME/browse, $XDG_S
|
|
|
99
102
|
$XDG_CACHE_HOME/browse (defaults under ~/.config, ~/.local/share, ~/.local/state and ~/.cache), and the
|
|
100
103
|
executable in ~/.local/bin (or $XDG_BIN_HOME).
|
|
101
104
|
|
|
105
|
+
${agentHelp}
|
|
106
|
+
|
|
102
107
|
`);
|
|
103
108
|
}
|
|
104
109
|
if (command === "status" && !askedForHelp && !process.argv.includes("--json")) {
|
|
105
|
-
const { printSetupStatus } = await import("./setup-
|
|
110
|
+
const { printSetupStatus } = await import("./setup-cnp75dsm.mjs");
|
|
106
111
|
printSetupStatus();
|
|
107
112
|
}
|
|
108
|
-
const { runCli } = await import("./cli-
|
|
113
|
+
const { runCli } = await import("./cli-29hdwt7a.mjs");
|
|
109
114
|
runCli(preCliHelp ? ["--help"] : undefined);
|
|
110
115
|
}
|
|
@@ -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-hh16893t.mjs";
|
|
7
|
+
import"./main-zrjcdksk.mjs";
|
|
8
8
|
export {
|
|
9
9
|
exports_NodeHttpClient as NodeHttpClient,
|
|
10
10
|
exports_NodeRuntime as NodeRuntime,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import"./main-
|
|
1
|
+
import"./main-g82bc5x3.mjs";
|
|
2
2
|
import {
|
|
3
3
|
channelOf,
|
|
4
4
|
installedRuntime2
|
|
5
|
-
} from "./main-
|
|
5
|
+
} from "./main-dvy4da2g.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-e575zjpk.mjs";
|
|
14
14
|
import {
|
|
15
15
|
relayPortPinned,
|
|
16
16
|
resolveRelayPort,
|
|
17
17
|
probeRelayPort
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-ky3vj3mx.mjs";
|
|
19
19
|
import {
|
|
20
20
|
installerBinaryPath,
|
|
21
21
|
compiledBinary
|
|
22
|
-
} from "./main-
|
|
22
|
+
} from "./main-kd8f1nq2.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-hz3a51xg.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-hz3a51xg.mjs");
|
|
70
70
|
migrateLegacy(home, now);
|
|
71
71
|
return true;
|
|
72
72
|
} catch {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeBrowserVersion2
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-e575zjpk.mjs";
|
|
4
4
|
import {
|
|
5
5
|
unpackedExtensionId,
|
|
6
6
|
npmGlobalRoot,
|
|
7
7
|
installedVersion,
|
|
8
8
|
runCommand
|
|
9
|
-
} from "./main-
|
|
9
|
+
} from "./main-dvy4da2g.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-g82bc5x3.mjs";
|
|
16
16
|
import {
|
|
17
17
|
formatPairingCode
|
|
18
|
-
} from "./main-
|
|
18
|
+
} from "./main-2jd6x6jq.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-kd8f1nq2.mjs";
|
|
37
37
|
import {
|
|
38
38
|
__toESM,
|
|
39
39
|
__commonJS,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-g82bc5x3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
bundledPairingCodeTtlMs,
|
|
6
6
|
mintPairingCode,
|
|
7
7
|
writeExtensionPairing
|
|
8
|
-
} from "./main-
|
|
8
|
+
} from "./main-2jd6x6jq.mjs";
|
|
9
9
|
import {
|
|
10
10
|
configRoot2,
|
|
11
11
|
cacheRoot,
|
|
12
12
|
devExtensionUrl,
|
|
13
13
|
devExtensionFolder
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-kd8f1nq2.mjs";
|
|
15
15
|
|
|
16
16
|
// src/setup/dev-extension.ts
|
|
17
17
|
import { createHash } from "node:crypto";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
writePrivateJsonFileSync
|
|
3
|
-
} from "./main-
|
|
3
|
+
} from "./main-g82bc5x3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
dataRoot,
|
|
6
6
|
stateRoot
|
|
7
|
-
} from "./main-
|
|
7
|
+
} from "./main-kd8f1nq2.mjs";
|
|
8
8
|
|
|
9
9
|
// src/relay/browser-pairing.ts
|
|
10
10
|
import crypto from "node:crypto";
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
parseTargetSelection2,
|
|
12
12
|
getObject2,
|
|
13
13
|
getString2
|
|
14
|
-
} from "./main-
|
|
14
|
+
} from "./main-g82bc5x3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
cliCommand
|
|
17
|
-
} from "./main-
|
|
17
|
+
} from "./main-kd8f1nq2.mjs";
|
|
18
18
|
import {
|
|
19
19
|
isStream,
|
|
20
20
|
provideContext
|
|
21
|
-
} from "./main-
|
|
21
|
+
} from "./main-hh16893t.mjs";
|
|
22
22
|
import {
|
|
23
23
|
TaggedError,
|
|
24
24
|
passthrough,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
toJsonSchemaDocument,
|
|
65
65
|
Json,
|
|
66
66
|
JsonObject
|
|
67
|
-
} from "./main-
|
|
67
|
+
} from "./main-z4c819pg.mjs";
|
|
68
68
|
import {
|
|
69
69
|
pipeArguments,
|
|
70
70
|
identity,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
contextWith,
|
|
101
101
|
provide3,
|
|
102
102
|
fnUntraced
|
|
103
|
-
} from "./main-
|
|
103
|
+
} from "./main-d1th6z2h.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 make2 = (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 make3 = (...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__ */ make2("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__ */ make2("initialize", {
|
|
630
630
|
success: InitializeResult,
|
|
631
631
|
error: McpError,
|
|
632
632
|
payload: {
|
|
@@ -637,7 +637,7 @@ class Initialize extends (/* @__PURE__ */ make("initialize", {
|
|
|
637
637
|
}
|
|
638
638
|
})) {
|
|
639
639
|
}
|
|
640
|
-
class CancelledNotification extends (/* @__PURE__ */
|
|
640
|
+
class CancelledNotification extends (/* @__PURE__ */ make2("notifications/cancelled", {
|
|
641
641
|
payload: {
|
|
642
642
|
...NotificationMeta.fields,
|
|
643
643
|
requestId: RequestId,
|
|
@@ -646,7 +646,7 @@ class CancelledNotification extends (/* @__PURE__ */ make("notifications/cancell
|
|
|
646
646
|
})) {
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
class ProgressNotification extends (/* @__PURE__ */
|
|
649
|
+
class ProgressNotification extends (/* @__PURE__ */ make2("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__ */ make2("resources/read", {
|
|
721
721
|
success: ReadResourceResult,
|
|
722
722
|
error: McpError,
|
|
723
723
|
payload: {
|
|
@@ -727,12 +727,12 @@ class ReadResource extends (/* @__PURE__ */ make("resources/read", {
|
|
|
727
727
|
})) {
|
|
728
728
|
}
|
|
729
729
|
|
|
730
|
-
class ResourceListChangedNotification extends (/* @__PURE__ */
|
|
730
|
+
class ResourceListChangedNotification extends (/* @__PURE__ */ make2("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__ */ make2("resources/subscribe", {
|
|
736
736
|
success: /* @__PURE__ */ Struct({}),
|
|
737
737
|
error: McpError,
|
|
738
738
|
payload: {
|
|
@@ -742,7 +742,7 @@ class Subscribe extends (/* @__PURE__ */ make("resources/subscribe", {
|
|
|
742
742
|
})) {
|
|
743
743
|
}
|
|
744
744
|
|
|
745
|
-
class Unsubscribe extends (/* @__PURE__ */
|
|
745
|
+
class Unsubscribe extends (/* @__PURE__ */ make2("resources/unsubscribe", {
|
|
746
746
|
success: /* @__PURE__ */ Struct({}),
|
|
747
747
|
error: McpError,
|
|
748
748
|
payload: {
|
|
@@ -752,7 +752,7 @@ class Unsubscribe extends (/* @__PURE__ */ make("resources/unsubscribe", {
|
|
|
752
752
|
})) {
|
|
753
753
|
}
|
|
754
754
|
|
|
755
|
-
class ResourceUpdatedNotification extends (/* @__PURE__ */
|
|
755
|
+
class ResourceUpdatedNotification extends (/* @__PURE__ */ make2("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__ */ make2("prompts/get", {
|
|
841
841
|
success: GetPromptResult,
|
|
842
842
|
error: McpError,
|
|
843
843
|
payload: {
|
|
@@ -849,7 +849,7 @@ class GetPrompt extends (/* @__PURE__ */ make("prompts/get", {
|
|
|
849
849
|
})) {
|
|
850
850
|
}
|
|
851
851
|
|
|
852
|
-
class PromptListChangedNotification extends (/* @__PURE__ */
|
|
852
|
+
class PromptListChangedNotification extends (/* @__PURE__ */ make2("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__ */ make2("tools/call", {
|
|
898
898
|
success: CallToolResult,
|
|
899
899
|
error: McpError,
|
|
900
900
|
payload: {
|
|
@@ -905,13 +905,13 @@ class CallTool extends (/* @__PURE__ */ make("tools/call", {
|
|
|
905
905
|
})) {
|
|
906
906
|
}
|
|
907
907
|
|
|
908
|
-
class ToolListChangedNotification extends (/* @__PURE__ */
|
|
908
|
+
class ToolListChangedNotification extends (/* @__PURE__ */ make2("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__ */ make2("logging/setLevel", {
|
|
915
915
|
payload: {
|
|
916
916
|
...RequestMeta.fields,
|
|
917
917
|
level: LoggingLevel
|
|
@@ -921,7 +921,7 @@ class SetLevel extends (/* @__PURE__ */ make("logging/setLevel", {
|
|
|
921
921
|
})) {
|
|
922
922
|
}
|
|
923
923
|
|
|
924
|
-
class LoggingMessageNotification extends (/* @__PURE__ */
|
|
924
|
+
class LoggingMessageNotification extends (/* @__PURE__ */ make2("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__ */ make2("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__ */ make2("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__ */ make2("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__ */ make2("notifications/elicitation/complete", {
|
|
1187
1187
|
payload: {
|
|
1188
1188
|
elicitationId: String3
|
|
1189
1189
|
}
|
|
@@ -1211,18 +1211,17 @@ 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__ */ make3(CancelledNotification, ProgressNotification, LoggingMessageNotification, ResourceUpdatedNotification, ResourceListChangedNotification, ToolListChangedNotification, PromptListChangedNotification, ElicitationCompleteNotification)) {
|
|
1215
1215
|
}
|
|
1216
1216
|
class EnabledWhen extends (/* @__PURE__ */ Service2()("effect/ai/McpSchema/EnabledWhen")) {
|
|
1217
1217
|
}
|
|
1218
1218
|
// src/relay/user-settings.ts
|
|
1219
|
-
var settingKeys = ["window", "grouping", "idleMinutes", "
|
|
1219
|
+
var settingKeys = ["window", "grouping", "idleMinutes", "humanInput", "handoffNotifications", "autoUpdate"];
|
|
1220
1220
|
var relaySettingKeys = ["autoUpdate"];
|
|
1221
1221
|
var settingSpecs = {
|
|
1222
1222
|
window: { label: "Where agents open their tabs (current: the user's window; separate: an unfocused window of their own)", values: ["current", "separate"], variable: "OPENCODE_BROWSER_AGENT_WINDOW" },
|
|
1223
1223
|
grouping: { label: "How agent tabs are grouped (one shared group, one group per session, or none)", values: ["shared", "session", "none"] },
|
|
1224
1224
|
idleMinutes: { label: "Close agent tabs untouched for this many minutes", values: [10, 30, 60, "never"] },
|
|
1225
|
-
cursor: { label: "Agent cursor on agent tabs outside recordings (pages can detect it)", values: ["off", "always"], variable: "OPENCODE_BROWSER_GHOST_CURSOR" },
|
|
1226
1225
|
humanInput: { label: "Human-like input (off is faster, but easier for sites to flag)", values: ["on", "off"], variable: "OPENCODE_BROWSER_HUMAN_INPUT" },
|
|
1227
1226
|
handoffNotifications: { label: "System notification on a handoff (only while recorded, or every handoff)", values: ["recording", "always"] },
|
|
1228
1227
|
autoUpdate: { label: "installs: install updates automatically when idle, only notify, or never check", values: ["on", "notify", "off"], variable: "OPENCODE_BROWSER_AUTO_UPDATE" }
|
|
@@ -1403,20 +1402,38 @@ var NetworkToolOutput = Struct({
|
|
|
1403
1402
|
truncatedBodyCount: optionalKey(Number2),
|
|
1404
1403
|
droppedEntryCount: optionalKey(Number2),
|
|
1405
1404
|
urlFilter: optionalKey(String3),
|
|
1406
|
-
resourceTypes: optionalKey(ArraySchema(String3)),
|
|
1407
|
-
content: optionalKey(Literals(["omit", "embed"])),
|
|
1408
1405
|
endsAt: optionalKey(String3),
|
|
1409
1406
|
ended: optionalKey(String3),
|
|
1410
1407
|
stoppedAt: optionalKey(String3),
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1408
|
+
exchanges: optionalKey(ArraySchema(Struct({
|
|
1409
|
+
id: String3,
|
|
1410
|
+
startedDateTime: String3,
|
|
1411
|
+
durationMs: Number2,
|
|
1412
|
+
request: Struct({
|
|
1413
|
+
method: String3,
|
|
1414
|
+
url: String3,
|
|
1415
|
+
headers: ArraySchema(Struct({ name: String3, value: String3 })),
|
|
1416
|
+
resourceType: String3,
|
|
1417
|
+
body: optionalKey(Struct({
|
|
1418
|
+
size: Number2,
|
|
1419
|
+
mimeType: String3,
|
|
1420
|
+
text: optionalKey(String3),
|
|
1421
|
+
truncated: Boolean3
|
|
1422
|
+
})),
|
|
1423
|
+
redirectedFrom: optionalKey(String3)
|
|
1424
|
+
}),
|
|
1425
|
+
response: optionalKey(Struct({
|
|
1426
|
+
status: Number2,
|
|
1427
|
+
statusText: String3,
|
|
1428
|
+
headers: ArraySchema(Struct({ name: String3, value: String3 })),
|
|
1429
|
+
body: optionalKey(Struct({
|
|
1430
|
+
size: Number2,
|
|
1431
|
+
mimeType: String3,
|
|
1432
|
+
text: optionalKey(String3),
|
|
1433
|
+
truncated: Boolean3
|
|
1434
|
+
}))
|
|
1435
|
+
})),
|
|
1436
|
+
failure: optionalKey(String3)
|
|
1420
1437
|
}))),
|
|
1421
1438
|
cancelled: optionalKey(Boolean3)
|
|
1422
1439
|
});
|
|
@@ -1428,7 +1445,6 @@ var RecordingToolOutput = Struct({
|
|
|
1428
1445
|
startedAt: optionalKey(Number2),
|
|
1429
1446
|
path: optionalKey(String3),
|
|
1430
1447
|
mimeType: optionalKey(String3),
|
|
1431
|
-
mode: optionalKey(Literals(["tab-capture", "cdp"])),
|
|
1432
1448
|
artifactType: optionalKey(Literals(["webm", "mp4"])),
|
|
1433
1449
|
frameRate: optionalKey(Number2),
|
|
1434
1450
|
duration: optionalKey(Number2),
|
|
@@ -1438,26 +1454,6 @@ var RecordingToolOutput = Struct({
|
|
|
1438
1454
|
isRecording: optionalKey(Boolean3),
|
|
1439
1455
|
error: optionalKey(String3)
|
|
1440
1456
|
});
|
|
1441
|
-
var FlightRecorderToolOutput = Struct({
|
|
1442
|
-
action: Literals(["start", "status", "save_last", "cancel"]),
|
|
1443
|
-
session: String3,
|
|
1444
|
-
active: optionalKey(Boolean3),
|
|
1445
|
-
tabId: optionalKey(Number2),
|
|
1446
|
-
sessionId: optionalKey(String3),
|
|
1447
|
-
startedAt: optionalKey(Number2),
|
|
1448
|
-
retentionMs: optionalKey(Number2),
|
|
1449
|
-
retainedDurationMs: optionalKey(Number2),
|
|
1450
|
-
frameRate: optionalKey(Number2),
|
|
1451
|
-
bufferedFrames: optionalKey(Number2),
|
|
1452
|
-
bufferedBytes: optionalKey(Number2),
|
|
1453
|
-
sourceFrameCount: optionalKey(Number2),
|
|
1454
|
-
droppedFrameCount: optionalKey(Number2),
|
|
1455
|
-
saving: optionalKey(Boolean3),
|
|
1456
|
-
path: optionalKey(String3),
|
|
1457
|
-
durationMs: optionalKey(Number2),
|
|
1458
|
-
frameCount: optionalKey(Number2),
|
|
1459
|
-
cancelled: optionalKey(Boolean3)
|
|
1460
|
-
});
|
|
1461
1457
|
var agentSettingKeys = settingKeys.filter((key) => key !== "autoUpdate");
|
|
1462
1458
|
var AgentSettingValue = Union([String3, Number2]);
|
|
1463
1459
|
var AgentSettingReport = Struct({
|
|
@@ -1751,4 +1747,4 @@ function toolResult(options) {
|
|
|
1751
1747
|
});
|
|
1752
1748
|
}
|
|
1753
1749
|
|
|
1754
|
-
export { isStreamSchema, getStreamSchemas, ClientAbort, ServerClient,
|
|
1750
|
+
export { isStreamSchema, getStreamSchemas, ClientAbort, ServerClient, make2, exitSchema, isWrapper, make3, 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 };
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
installedRuntime2,
|
|
4
4
|
autoUpdateStatus,
|
|
5
5
|
updateAvailable
|
|
6
|
-
} from "./main-
|
|
6
|
+
} from "./main-dvy4da2g.mjs";
|
|
7
7
|
import {
|
|
8
8
|
cacheRoot,
|
|
9
9
|
compiledBinary,
|
|
10
10
|
checkoutRoot,
|
|
11
11
|
cliCommand
|
|
12
|
-
} from "./main-
|
|
12
|
+
} from "./main-kd8f1nq2.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-avxgfgwm.mjs");
|
|
319
319
|
if (await runInstalledUpdate(args))
|
|
320
320
|
return;
|
|
321
321
|
if (compiledBinary()) {
|
|
@@ -1404,7 +1404,7 @@ var Number3 = /* @__PURE__ */ make((self, that) => {
|
|
|
1404
1404
|
});
|
|
1405
1405
|
var mapInput = /* @__PURE__ */ dual(2, (self, f) => make((b1, b2) => self(f(b1), f(b2))));
|
|
1406
1406
|
var isLessThan = (O) => dual(2, (self, that) => O(self, that) === -1);
|
|
1407
|
-
var
|
|
1407
|
+
var isGreaterThan = (O) => dual(2, (self, that) => O(self, that) === 1);
|
|
1408
1408
|
var isLessThanOrEqualTo = (O) => dual(2, (self, that) => O(self, that) !== 1);
|
|
1409
1409
|
var isGreaterThanOrEqualTo2 = (O) => dual(2, (self, that) => O(self, that) !== -1);
|
|
1410
1410
|
|
|
@@ -4676,7 +4676,7 @@ var logLevelToOrder = (level) => {
|
|
|
4676
4676
|
}
|
|
4677
4677
|
};
|
|
4678
4678
|
var LogLevelOrder = /* @__PURE__ */ mapInput(Number3, logLevelToOrder);
|
|
4679
|
-
var isLogLevelGreaterThan = /* @__PURE__ */
|
|
4679
|
+
var isLogLevelGreaterThan = /* @__PURE__ */ isGreaterThan(LogLevelOrder);
|
|
4680
4680
|
var CurrentLoggers = /* @__PURE__ */ Reference("effect/Logger/CurrentLoggers", {
|
|
4681
4681
|
defaultValue: () => new Set([defaultLogger, tracerLogger])
|
|
4682
4682
|
});
|
|
@@ -5392,4 +5392,4 @@ var flatMapEager = flatMapEager2;
|
|
|
5392
5392
|
var catchEager = catchEager2;
|
|
5393
5393
|
var fnUntracedEager = fnUntracedEager2;
|
|
5394
5394
|
|
|
5395
|
-
export { pipeArguments, Prototype, Class3, dual, identity, constant, constTrue, constFalse, constUndefined, constVoid, pipe, flow, memoize, memoizeIdempotent, isString, isNumber, isBoolean, isBigInt, isSymbol, isPropertyKey, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isNever, isUnknown, isObjectOrArray, isObject, isReadonlyObject, isObjectKeyword, hasProperty, isTagged, isError, symbol2, hash, structure, array, symbol3, equals, symbolRedactable, redact, format, formatPropertyKey, formatPath, formatJson, NodeInspectSymbol, toJson, BaseProto, Class4, getStackTraceLimit, setStackTraceLimit, assignProperty, assignProperties, args, PipeInspectableProto, causeFail, exitSucceed, exitFailCause, exitFail, withFiber, Error4, TaggedError3, Done, Prototype2, make9, strictEqual, Tuple2, Number3, isLessThan,
|
|
5395
|
+
export { pipeArguments, Prototype, Class3, dual, identity, constant, constTrue, constFalse, constUndefined, constVoid, pipe, flow, memoize, memoizeIdempotent, isString, isNumber, isBoolean, isBigInt, isSymbol, isPropertyKey, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isNotNullish, isNever, isUnknown, isObjectOrArray, isObject, isReadonlyObject, isObjectKeyword, hasProperty, isTagged, isError, symbol2, hash, structure, array, symbol3, equals, symbolRedactable, redact, format, formatPropertyKey, formatPath, formatJson, NodeInspectSymbol, toJson, BaseProto, Class4, getStackTraceLimit, setStackTraceLimit, assignProperty, assignProperties, args, PipeInspectableProto, causeFail, exitSucceed, exitFailCause, exitFail, withFiber, Error4, TaggedError3, Done, Prototype2, make9, strictEqual, Tuple2, Number3, isLessThan, isGreaterThan, isLessThanOrEqualTo, isGreaterThanOrEqualTo2, none, some, isNone, isSome, match, getOrElse, fromNullishOr, fromUndefinedOr, getOrUndefined, map2, flatMap, filter2, exists, Service2, makeUnsafe3, empty4, make10, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get2, merge2, Reference, normalize, succeed, fail2, try_, isResult, isFailure, isSuccess, mapError, map3, match2, fromIterable, match3, append2, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, take3, findFirstIndex, findFirst, findLast, empty5, of, map4, reduce, makeEquivalence, fromInputUnsafe, isFinite2, isZero, zero, millis, seconds, toMillis, Scheduler, ParentSpan, externalSpan, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend, succeedNone, void_, callback, asSome, andThen, flatMap2, effectIsExit, exitInterrupt, exitVoid, exitZipRight, onExitPrimitive, uninterruptibleMask, resolveConcurrency, iterateEager, iterateConcurrent, fiberRunIn, makeLatchUnsafe, ClockRef, currentTimeMillis2, ConsoleRef, LogLevelOrder, reportCauseUnsafe, isCause, isReason, isFailReason, fromReasons, fail3, die, makeFailReason, makeDieReason, makeInterruptReason, hasInterruptsOnly, map5, squash, findError, hasDies, hasInterrupts, interruptors, Done2, done, IllegalArgumentError, ExceededCapacityError, UnknownError, StackTrace, isExit, succeed3, failCause2, fail4, die2, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts2, asVoid, isDeferred, makeUnsafe4, make11, _await, done2, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, CurrentLogLevel, MinimumLogLevel, Scope, make12, makeUnsafe5, provide, addFinalizerExit, addFinalizer, fork, forkUnsafe, close, closeUnsafe, use, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, launch, catchDone, isDoneCause, doneExitFromCause, matchEffect, modifyDelay, spaced, setInputType, isEffect, all, forEach, whileLoop, promise, tryPromise, succeed6, succeedNone2, suspend2, sync2, void_3, callback2, never, gen, fail6, failCause3, failCauseSync, die3, try_2, withFiber2, fromResult, flatMap3, andThen2, tap, result, exit, map6, as, asVoid2, zipWith, catch_, catchTag, catchTags, catchCause, catchDefect, catchIf, catchFilter, catchCauseIf, mapError2, orDie, tapError, tapCause, retry, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, sleep, race, raceFirst, when2, match4, matchCauseEffect, matchEffect2, context2, contextWith, provide3, provideContext2, serviceOption, updateContext, provideService, scope, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring, onError, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runSync, runSyncExit, fnUntraced, fn, clockWith, logFatal, logError, logDebug, annotateLogs, effectify, mapEager, mapErrorEager, mapBothEager, flatMapEager, catchEager, fnUntracedEager };
|