@opencode/browse 0.0.17 → 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.
Files changed (39) hide show
  1. package/dist/{Runtime-tvxdkp60.mjs → Runtime-r9sev1rq.mjs} +1 -1
  2. package/dist/{cli-ktqhzcbw.mjs → cli-ekwkvvmm.mjs} +33 -29
  3. package/dist/cli.mjs +23 -13
  4. package/dist/{helpers-nsfj0mfw.mjs → helpers-3ycvp75a.mjs} +2 -1
  5. package/dist/{index-kmxtpxxk.mjs → index-xsb9s479.mjs} +2 -2
  6. package/dist/{legacy-runtime-fgpmhx47.mjs → legacy-runtime-v1sdjj5h.mjs} +8 -7
  7. package/dist/log-yek648ak.mjs +9 -0
  8. package/dist/{main-83z4fc6b.mjs → main-1qwrze1y.mjs} +2 -2
  9. package/dist/{main-gqr4pk9f.mjs → main-2p0v71q0.mjs} +39 -37
  10. package/dist/{main-hh16893t.mjs → main-3g7fdzbh.mjs} +28 -26
  11. package/dist/{main-n7w5a79r.mjs → main-55a4gpef.mjs} +59 -67
  12. package/dist/main-693wwz19.mjs +4 -0
  13. package/dist/main-91vhk5de.mjs +38 -0
  14. package/dist/{main-t9na9ekd.mjs → main-9t32k44b.mjs} +4 -3
  15. package/dist/{main-d1th6z2h.mjs → main-bv9nawja.mjs} +21 -225
  16. package/dist/main-cgnkhs2x.mjs +35 -0
  17. package/dist/{main-9fwqh5k7.mjs → main-esdgpebk.mjs} +3 -3
  18. package/dist/{main-z4c819pg.mjs → main-fg5awggs.mjs} +29 -27
  19. package/dist/{main-98dnkvn3.mjs → main-gt2gskrq.mjs} +2 -2
  20. package/dist/{main-mq9bc0zb.mjs → main-gw77et6v.mjs} +3 -3
  21. package/dist/{main-xzx6aepf.mjs → main-kcw411ep.mjs} +11 -42
  22. package/dist/{main-j4n6hkxm.mjs → main-nnfxg7re.mjs} +7 -7
  23. package/dist/{main-zrjcdksk.mjs → main-pcqtqhgv.mjs} +5 -3
  24. package/dist/{main-jtgan144.mjs → main-pxs5m0kb.mjs} +10 -8
  25. package/dist/main-qazf3bhk.mjs +223 -0
  26. package/dist/{main-k4ys0swh.mjs → main-sf7vaxb6.mjs} +1 -1
  27. package/dist/{main-5d9jn9px.mjs → main-stf180y1.mjs} +7 -5
  28. package/dist/{main-sx14bt3y.mjs → main-zedq93ez.mjs} +5 -3
  29. package/dist/{main-bbn1ah9d.mjs → main-zzggnpf4.mjs} +2 -2
  30. package/dist/{mcp-pxad1yrf.mjs → mcp-xfx04fxe.mjs} +125 -121
  31. package/dist/{migrate-haeckv81.mjs → migrate-4rewxqd7.mjs} +8 -7
  32. package/dist/{relay-53zb68pj.mjs → relay-me036e19.mjs} +562 -166
  33. package/dist/{remove-stored-secrets-036hkbd6.mjs → remove-stored-secrets-ymhge5va.mjs} +1 -1
  34. package/dist/{runtime-update-5jvb2g53.mjs → runtime-update-hd2cvy1c.mjs} +12 -10
  35. package/dist/{setup-5j4kxeyp.mjs → setup-0hmbzam5.mjs} +12 -11
  36. package/dist/{update-ssnpp5hp.mjs → update-vnkjbc0e.mjs} +3 -3
  37. package/dist/{version-yvaafhes.mjs → version-jn0h3rmc.mjs} +1 -1
  38. package/package.json +1 -1
  39. package/dist/main-ca2rymwh.mjs +0 -4
@@ -5,7 +5,7 @@ import {
5
5
  getErrorExitCode2,
6
6
  errorReported2,
7
7
  getErrorReported2
8
- } from "./main-zrjcdksk.mjs";
8
+ } from "./main-pcqtqhgv.mjs";
9
9
  export {
10
10
  defaultTeardown2 as defaultTeardown,
11
11
  errorExitCode2 as errorExitCode,
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  errorExitCode2,
4
4
  errorReported2
5
- } from "./main-zrjcdksk.mjs";
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-hh16893t.mjs";
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-ca2rymwh.mjs";
27
+ } from "./main-693wwz19.mjs";
28
28
  import {
29
29
  extensionProtocolAdvice,
30
30
  autoUpdateStatus
31
- } from "./main-t9na9ekd.mjs";
31
+ } from "./main-9t32k44b.mjs";
32
32
  import {
33
33
  defaultPort2,
34
34
  isValidSessionId2
35
- } from "./main-xzx6aepf.mjs";
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-n7w5a79r.mjs";
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-mq9bc0zb.mjs";
61
+ } from "./main-gw77et6v.mjs";
60
62
  import {
61
63
  settingKeys,
62
64
  formatSettings,
63
65
  ensureSessionExists
64
- } from "./main-gqr4pk9f.mjs";
66
+ } from "./main-2p0v71q0.mjs";
65
67
  import {
66
68
  defaultJournalBaseDir,
67
69
  readJournalEntries,
68
70
  formatJournalEntry
69
- } from "./main-5d9jn9px.mjs";
70
- import"./main-bbn1ah9d.mjs";
71
+ } from "./main-stf180y1.mjs";
72
+ import"./main-zzggnpf4.mjs";
71
73
  import {
72
74
  endpointForPort
73
- } from "./main-sx14bt3y.mjs";
75
+ } from "./main-zedq93ez.mjs";
74
76
  import {
75
77
  stateRoot,
76
78
  cliCommand,
77
79
  installCommand
78
- } from "./main-83z4fc6b.mjs";
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-z4c819pg.mjs";
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
- Prototype2,
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-d1th6z2h.mjs";
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__ */ Prototype2({
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__ */ Prototype2({
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-pxad1yrf.mjs"));
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-53zb68pj.mjs"), import("./helpers-nsfj0mfw.mjs")]));
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-fgpmhx47.mjs").then((module) => module.commitLegacyTakeover()));
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.17";
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-fgpmhx47.mjs").then((module) => module.prepareLegacyTakeover(oldRuntime)).catch(() => false);
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-036hkbd6.mjs");
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-haeckv81.mjs");
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-yvaafhes.mjs")).opencodeBrowserVersion;
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-kmxtpxxk.mjs");
43
- const { defaultTeardown } = await import("./Runtime-tvxdkp60.mjs");
44
- const { runMcpServer } = await import("./mcp-pxad1yrf.mjs");
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-5jvb2g53.mjs");
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-ssnpp5hp.mjs");
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-5j4kxeyp.mjs");
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-5j4kxeyp.mjs");
120
+ const { printSetupStatus } = await import("./setup-0hmbzam5.mjs");
111
121
  printSetupStatus();
112
122
  }
113
- const { runCli } = await import("./cli-ktqhzcbw.mjs");
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-xzx6aepf.mjs";
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-hh16893t.mjs";
7
- import"./main-zrjcdksk.mjs";
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-xzx6aepf.mjs";
1
+ import"./main-91vhk5de.mjs";
2
2
  import {
3
3
  channelOf,
4
4
  installedRuntime2
5
- } from "./main-t9na9ekd.mjs";
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-ca2rymwh.mjs";
14
+ } from "./main-693wwz19.mjs";
14
15
  import {
15
16
  relayPortPinned,
16
17
  resolveRelayPort,
17
18
  probeRelayPort
18
- } from "./main-sx14bt3y.mjs";
19
+ } from "./main-zedq93ez.mjs";
19
20
  import {
20
21
  installerBinaryPath,
21
22
  compiledBinary
22
- } from "./main-83z4fc6b.mjs";
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-haeckv81.mjs");
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-haeckv81.mjs");
70
+ const { migrateLegacy } = await import("./migrate-4rewxqd7.mjs");
70
71
  migrateLegacy(home, now);
71
72
  return true;
72
73
  } catch {
@@ -0,0 +1,9 @@
1
+ import {
2
+ appendManagedRelayProcessLog2,
3
+ relayLog2
4
+ } from "./main-cgnkhs2x.mjs";
5
+ import"./main-91vhk5de.mjs";
6
+ export {
7
+ appendManagedRelayProcessLog2 as appendManagedRelayProcessLog,
8
+ relayLog2 as relayLog
9
+ };
@@ -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.17", npx: /[/\\]_npx[/\\]/.test(process.argv[1] ?? "") };
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 = undefined) {
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-xzx6aepf.mjs";
14
+ } from "./main-kcw411ep.mjs";
15
15
  import {
16
16
  cliCommand
17
- } from "./main-83z4fc6b.mjs";
17
+ } from "./main-1qwrze1y.mjs";
18
18
  import {
19
19
  isStream,
20
20
  provideContext
21
- } from "./main-hh16893t.mjs";
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-z4c819pg.mjs";
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-d1th6z2h.mjs";
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 make2 = (tag, options) => {
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 make3 = (...rpcs) => makeProto2({
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__ */ make2("ping", {
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__ */ make2("initialize", {
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__ */ make2("notifications/cancelled", {
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__ */ make2("notifications/progress", {
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__ */ make2("resources/read", {
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__ */ make2("notifications/resources/list_changed", {
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__ */ make2("resources/subscribe", {
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__ */ make2("resources/unsubscribe", {
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__ */ make2("notifications/resources/updated", {
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__ */ make2("prompts/get", {
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__ */ make2("notifications/prompts/list_changed", {
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__ */ make2("tools/call", {
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__ */ make2("notifications/tools/list_changed", {
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__ */ make2("logging/setLevel", {
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__ */ make2("notifications/message", {
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__ */ make2("sampling/createMessage", {
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__ */ make2("roots/list", {
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__ */ make2("elicitation/create", {
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__ */ make2("notifications/elicitation/complete", {
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__ */ make3(CancelledNotification, ProgressNotification, LoggingMessageNotification, ResourceUpdatedNotification, ResourceListChangedNotification, ToolListChangedNotification, PromptListChangedNotification, ElicitationCompleteNotification)) {
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, 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 };
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 };