billion-context 0.1.83-pr.516.339 → 0.1.83

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/index.js CHANGED
@@ -56964,7 +56964,7 @@ Content-Length: ${Buffer.byteLength(body)}\r
56964
56964
  );
56965
56965
  }
56966
56966
  if (opts.debug) {
56967
- log2("info", `[debug] build features: raw-HTTP-capture(${bodyDumpEnabled() ? "on" : "off"}) | remote_compaction_v2-strip(on) | cert-MITM-launcher(on) | strip-acp-summary(on) \u2014 seeing this line confirms the launcher build (not registry 0.1.34)`);
56967
+ log2("info", `[debug] build features: raw-HTTP-capture(on) | remote_compaction_v2-strip(on) | cert-MITM-launcher(on) | strip-acp-summary(on) \u2014 seeing this line confirms the launcher build (not registry 0.1.34)`);
56968
56968
  }
56969
56969
  };
56970
56970
  const attemptListen = (port) => {
@@ -62154,29 +62154,11 @@ var VERSION2 = (() => {
62154
62154
  }
62155
62155
  })();
62156
62156
  var DEFAULT_PROXY_ORIGIN = "http://127.0.0.1:8787";
62157
- var staleOriginNoted = false;
62158
- function noteStaleOrigin(rec) {
62159
- if (staleOriginNoted) return;
62160
- staleOriginNoted = true;
62161
- try {
62162
- process.stderr.write(
62163
- `[bili-mcp] proxy-origin record is stale (instance ${rec.instanceId.slice(0, 8)} pid ${rec.pid} not running) \u2014 falling back to ${DEFAULT_PROXY_ORIGIN}; if your proxy runs elsewhere, set BILI_MCP_PROXY (#405)
62164
- `
62165
- );
62166
- } catch {
62167
- }
62168
- }
62169
62157
  function resolveProxyOrigin() {
62170
62158
  const fromEnv = process.env.BILI_MCP_PROXY?.trim();
62171
62159
  if (fromEnv && fromEnv.length > 0) return fromEnv;
62172
62160
  const discovered = readProxyInstanceFile();
62173
- if (discovered && /^https?:\/\/\S+$/.test(discovered.origin)) {
62174
- if (isProxyInstanceFile(discovered) && discovered.pid > 0 && !isPidAlive(discovered.pid)) {
62175
- noteStaleOrigin(discovered);
62176
- return DEFAULT_PROXY_ORIGIN;
62177
- }
62178
- return discovered.origin;
62179
- }
62161
+ if (discovered && /^https?:\/\/\S+$/.test(discovered.origin)) return discovered.origin;
62180
62162
  return DEFAULT_PROXY_ORIGIN;
62181
62163
  }
62182
62164
  var TOOL_TIMEOUT_MS = 6e4;