@sjawhar/pi-legion-envoy 0.20.0 → 0.20.2

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/envoy.js CHANGED
@@ -30966,9 +30966,6 @@ var DEFAULT_SERVER_URL = "http://localhost:8766";
30966
30966
  function normalizeDispatchUrl(url2) {
30967
30967
  return url2.replace(/\/+$/, "");
30968
30968
  }
30969
- function deprecatedMcpUrl(url2) {
30970
- return normalizeDispatchUrl(url2).replace(/\/mcp$/, "");
30971
- }
30972
30969
  function parsedDispatchUrl(value, source) {
30973
30970
  const url2 = normalizeDispatchUrl(value);
30974
30971
  try {
@@ -31018,7 +31015,6 @@ function readEnvoyFile(filePath) {
31018
31015
  }
31019
31016
  function resolveDispatchConfig(env, options = {}) {
31020
31017
  const explicitUrl = env.DISPATCH_URL;
31021
- const deprecatedUrl = explicitUrl ? undefined : env.DISPATCH_MCP_URL;
31022
31018
  const home = options.home ?? env.HOME ?? homedir();
31023
31019
  const cwd = options.cwd ?? process.cwd();
31024
31020
  const userFile = readEnvoyFile(path.join(home, ".config", "opencode", "envoy.json"));
@@ -31032,7 +31028,7 @@ function resolveDispatchConfig(env, options = {}) {
31032
31028
  ...userFile.kind === "valid" ? userFile.settings : null,
31033
31029
  ...repoFile.kind === "valid" ? repoFile.settings : null
31034
31030
  };
31035
- 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;
31031
+ const rawUrl = explicitUrl !== undefined ? { value: explicitUrl, source: "DISPATCH_URL" } : merged.enabled === true ? { value: merged.serverUrl ?? DEFAULT_SERVER_URL, source: "dispatch.serverUrl" } : null;
31036
31032
  const url2 = rawUrl ? parsedDispatchUrl(rawUrl.value, rawUrl.source) : { url: null, error: null };
31037
31033
  const token = env.DISPATCH_TOKEN ?? merged.token ?? null;
31038
31034
  const tokenSource = env.DISPATCH_TOKEN === undefined ? "dispatch.token" : "DISPATCH_TOKEN";
package/dist/legion.js CHANGED
@@ -31451,9 +31451,6 @@ var DEFAULT_SERVER_URL = "http://localhost:8766";
31451
31451
  function normalizeDispatchUrl(url2) {
31452
31452
  return url2.replace(/\/+$/, "");
31453
31453
  }
31454
- function deprecatedMcpUrl(url2) {
31455
- return normalizeDispatchUrl(url2).replace(/\/mcp$/, "");
31456
- }
31457
31454
  function parsedDispatchUrl(value, source) {
31458
31455
  const url2 = normalizeDispatchUrl(value);
31459
31456
  try {
@@ -31503,7 +31500,6 @@ function readEnvoyFile(filePath) {
31503
31500
  }
31504
31501
  function resolveDispatchConfig(env, options = {}) {
31505
31502
  const explicitUrl = env.DISPATCH_URL;
31506
- const deprecatedUrl = explicitUrl ? undefined : env.DISPATCH_MCP_URL;
31507
31503
  const home = options.home ?? env.HOME ?? homedir();
31508
31504
  const cwd = options.cwd ?? process.cwd();
31509
31505
  const userFile = readEnvoyFile(path3.join(home, ".config", "opencode", "envoy.json"));
@@ -31517,7 +31513,7 @@ function resolveDispatchConfig(env, options = {}) {
31517
31513
  ...userFile.kind === "valid" ? userFile.settings : null,
31518
31514
  ...repoFile.kind === "valid" ? repoFile.settings : null
31519
31515
  };
31520
- 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;
31516
+ const rawUrl = explicitUrl !== undefined ? { value: explicitUrl, source: "DISPATCH_URL" } : merged.enabled === true ? { value: merged.serverUrl ?? DEFAULT_SERVER_URL, source: "dispatch.serverUrl" } : null;
31521
31517
  const url2 = rawUrl ? parsedDispatchUrl(rawUrl.value, rawUrl.source) : { url: null, error: null };
31522
31518
  const token = env.DISPATCH_TOKEN ?? merged.token ?? null;
31523
31519
  const tokenSource = env.DISPATCH_TOKEN === undefined ? "dispatch.token" : "DISPATCH_TOKEN";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-legion-envoy",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "type": "module",
5
5
  "omp": {
6
6
  "extensions": [