@rtrvr-ai/rover 1.1.1 → 1.1.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/rover.js CHANGED
@@ -15102,7 +15102,7 @@ var SessionCoordinator = class _SessionCoordinator {
15102
15102
  };
15103
15103
 
15104
15104
  // dist/cloudCheckpoint.js
15105
- var DEFAULT_CLOUD_FUNCTIONS_BASE = "https://us-central1-rtrvr-extension-functions.cloudfunctions.net";
15105
+ var DEFAULT_EXTENSION_ROUTER_BASE = "https://extensionrouter.rtrvr.ai";
15106
15106
  function toFiniteNumber(value, fallback) {
15107
15107
  const n = Number(value);
15108
15108
  return Number.isFinite(n) ? n : fallback;
@@ -15128,8 +15128,22 @@ function buildRevisionKey(payload) {
15128
15128
  ].join(":");
15129
15129
  }
15130
15130
  function normalizeRouterEndpoint(apiBase) {
15131
- const base = (apiBase || DEFAULT_CLOUD_FUNCTIONS_BASE).replace(/\/$/, "");
15132
- return base.endsWith("/extensionRouter") ? base : `${base}/extensionRouter`;
15131
+ const fallback = DEFAULT_EXTENSION_ROUTER_BASE;
15132
+ const base = String(apiBase || fallback).trim().replace(/\/+$/, "");
15133
+ if (!base)
15134
+ return fallback;
15135
+ if (base.endsWith("/extensionRouter"))
15136
+ return base;
15137
+ try {
15138
+ const parsed = new URL(base);
15139
+ const pathname = parsed.pathname.replace(/\/+$/, "");
15140
+ if (pathname && pathname !== "/")
15141
+ return base;
15142
+ if (parsed.hostname.toLowerCase() === "extensionrouter.rtrvr.ai")
15143
+ return base;
15144
+ } catch {
15145
+ }
15146
+ return `${base}/extensionRouter`;
15133
15147
  }
15134
15148
  function toError(message, details) {
15135
15149
  const error = new Error(message);
@@ -15834,9 +15848,27 @@ function stopTelemetry() {
15834
15848
  telemetryFlushTimer = null;
15835
15849
  }
15836
15850
  }
15851
+ var DEFAULT_EXTENSION_ROUTER_BASE2 = "https://extensionrouter.rtrvr.ai";
15852
+ function resolveExtensionRouterEndpoint(apiBase) {
15853
+ const fallback = DEFAULT_EXTENSION_ROUTER_BASE2;
15854
+ const base = String(apiBase || fallback).trim().replace(/\/+$/, "");
15855
+ if (!base)
15856
+ return fallback;
15857
+ if (base.endsWith("/extensionRouter"))
15858
+ return base;
15859
+ try {
15860
+ const parsed = new URL(base);
15861
+ const pathname = parsed.pathname.replace(/\/+$/, "");
15862
+ if (pathname && pathname !== "/")
15863
+ return base;
15864
+ if (parsed.hostname.toLowerCase() === "extensionrouter.rtrvr.ai")
15865
+ return base;
15866
+ } catch {
15867
+ }
15868
+ return `${base}/extensionRouter`;
15869
+ }
15837
15870
  function getTelemetryEndpoint(cfg) {
15838
- const base = (cfg.apiBase || "https://us-central1-rtrvr-extension-functions.cloudfunctions.net").replace(/\/$/, "");
15839
- return base.endsWith("/extensionRouter") ? base : `${base}/extensionRouter`;
15871
+ return resolveExtensionRouterEndpoint(cfg.apiBase);
15840
15872
  }
15841
15873
  async function flushTelemetry(force = false) {
15842
15874
  if (telemetryInFlight)
@@ -679,7 +679,7 @@ function isApiKeyRequiredError(err) {
679
679
  }
680
680
 
681
681
  // dist/agent/context.js
682
- var DEFAULT_CLOUD_FUNCTIONS_BASE = "https://us-central1-rtrvr-extension-functions.cloudfunctions.net";
682
+ var DEFAULT_EXTENSION_ROUTER_BASE = "https://extensionrouter.rtrvr.ai";
683
683
  var CANONICAL_ADDITIONAL_TOOLS = /* @__PURE__ */ new Set(["generate_sheets", "generate_docs", "generate_slides", "generate_websites"]);
684
684
  var LEGACY_ADDITIONAL_TOOL_ALIASES = {
685
685
  generate_pdfs: "generate_docs",
@@ -788,6 +788,24 @@ function normalizeRuntimeExternalTabs(input) {
788
788
  }
789
789
  return Array.from(deduped.values());
790
790
  }
791
+ function resolveExtensionRouterEndpoint(apiBase) {
792
+ const fallback = DEFAULT_EXTENSION_ROUTER_BASE;
793
+ const base = String(apiBase || fallback).trim().replace(/\/+$/, "");
794
+ if (!base)
795
+ return fallback;
796
+ if (base.endsWith("/extensionRouter"))
797
+ return base;
798
+ try {
799
+ const parsed = new URL(base);
800
+ const pathname = parsed.pathname.replace(/\/+$/, "");
801
+ if (pathname && pathname !== "/")
802
+ return base;
803
+ if (parsed.hostname.toLowerCase() === "extensionrouter.rtrvr.ai")
804
+ return base;
805
+ } catch {
806
+ }
807
+ return `${base}/extensionRouter`;
808
+ }
791
809
  function buildRoverRuntimeContext(config2) {
792
810
  const runtimeContext = config2.runtimeContext;
793
811
  if (!runtimeContext || runtimeContext.mode !== "rover_embed")
@@ -851,8 +869,7 @@ function createAgentContext(config2, bridgeRpc2, tabularStore2) {
851
869
  } else if (config2.llmIntegration?.enableGoogleAiStudioApiKey) {
852
870
  llmIntegration.enableGoogleAiStudioApiKey = true;
853
871
  }
854
- const base = (config2.apiBase || DEFAULT_CLOUD_FUNCTIONS_BASE).replace(/\/$/, "");
855
- const endpoint = base.endsWith("/extensionRouter") ? base : `${base}/extensionRouter`;
872
+ const endpoint = resolveExtensionRouterEndpoint(config2.apiBase);
856
873
  const runtimeContext = buildRoverRuntimeContext(config2);
857
874
  const externalWebConfig = normalizeExternalWebConfig(config2.tools?.web);
858
875
  const externalPageDataCache = /* @__PURE__ */ new Map();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rtrvr-ai/rover",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/rover.js",