@sjawhar/opencode-legion-envoy 0.22.0 → 0.22.1

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.
@@ -14140,9 +14140,6 @@ var DEFAULT_SERVER_URL = "http://localhost:8766";
14140
14140
  function normalizeDispatchUrl(url2) {
14141
14141
  return url2.replace(/\/+$/, "");
14142
14142
  }
14143
- function deprecatedMcpUrl(url2) {
14144
- return normalizeDispatchUrl(url2).replace(/\/mcp$/, "");
14145
- }
14146
14143
  function parsedDispatchUrl(value, source) {
14147
14144
  const url2 = normalizeDispatchUrl(value);
14148
14145
  try {
@@ -14192,7 +14189,6 @@ function readEnvoyFile(filePath) {
14192
14189
  }
14193
14190
  function resolveDispatchConfig(env, options = {}) {
14194
14191
  const explicitUrl = env.DISPATCH_URL;
14195
- const deprecatedUrl = explicitUrl ? undefined : env.DISPATCH_MCP_URL;
14196
14192
  const home = options.home ?? env.HOME ?? homedir();
14197
14193
  const cwd = options.cwd ?? process.cwd();
14198
14194
  const userFile = readEnvoyFile(path.join(home, ".config", "opencode", "envoy.json"));
@@ -14206,7 +14202,7 @@ function resolveDispatchConfig(env, options = {}) {
14206
14202
  ...userFile.kind === "valid" ? userFile.settings : null,
14207
14203
  ...repoFile.kind === "valid" ? repoFile.settings : null
14208
14204
  };
14209
- const rawUrl = explicitUrl !== undefined ? { value: explicitUrl, source: "DISPATCH_URL" } : deprecatedUrl !== undefined ? { value: deprecatedMcpUrl(deprecatedUrl), source: "DISPATCH_MCP_URL" } : merged.enabled === true ? { value: merged.serverUrl ?? DEFAULT_SERVER_URL, source: "dispatch.serverUrl" } : null;
14205
+ const rawUrl = explicitUrl !== undefined ? { value: explicitUrl, source: "DISPATCH_URL" } : merged.enabled === true ? { value: merged.serverUrl ?? DEFAULT_SERVER_URL, source: "dispatch.serverUrl" } : null;
14210
14206
  const url2 = rawUrl ? parsedDispatchUrl(rawUrl.value, rawUrl.source) : { url: null, error: null };
14211
14207
  const token = env.DISPATCH_TOKEN ?? merged.token ?? null;
14212
14208
  const tokenSource = env.DISPATCH_TOKEN === undefined ? "dispatch.token" : "DISPATCH_TOKEN";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {