@opengeni/config 0.7.10 → 0.7.11

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
@@ -2133,7 +2133,7 @@ function stableSandboxEnvironmentForRun(settings, workspaceEnvironment = {}, opt
2133
2133
  ...workspaceEnvironment
2134
2134
  };
2135
2135
  const descriptor = CAPABILITY_DESCRIPTORS[settings.sandboxBackend];
2136
- if (settings.sandboxBackend !== "none" && settings.sandboxBackend !== "local") {
2136
+ if (settings.sandboxBackend !== "none" && settings.sandboxBackend !== "local" && settings.sandboxBackend !== "selfhosted") {
2137
2137
  environment.HOME ??= descriptor.workspaceRoot;
2138
2138
  }
2139
2139
  const provisionedGitHelperBackend = settings.sandboxBackend !== "none" && settings.sandboxBackend !== "local" && settings.sandboxBackend !== "selfhosted";
@@ -2145,7 +2145,7 @@ function stableSandboxEnvironmentForRun(settings, workspaceEnvironment = {}, opt
2145
2145
  environment.PATH = prependPathEntry(environment.PATH, environment.OPENGENI_GIT_CLI_WRAPPER_DIR);
2146
2146
  }
2147
2147
  if (settings.toolspaceEnabled) {
2148
- environment.OPENGENI_TOOLSPACE_TOKEN_FILE ??= `${environment.HOME ?? descriptor.workspaceRoot}/.opengeni/toolspace-token`;
2148
+ environment.OPENGENI_TOOLSPACE_TOKEN_FILE ??= settings.sandboxBackend === "selfhosted" ? "$HOME/.opengeni/toolspace-token" : `${environment.HOME ?? descriptor.workspaceRoot}/.opengeni/toolspace-token`;
2149
2149
  if (settings.ogtoolPackageSpec) {
2150
2150
  environment.OPENGENI_OGTOOL_PACKAGE_SPEC ??= settings.ogtoolPackageSpec;
2151
2151
  }
@@ -2445,6 +2445,7 @@ function positiveInt(value) {
2445
2445
  function ensureBuiltInMcpServers(settings) {
2446
2446
  const existing = settings.mcpServers.filter((server) => server.id !== "opengeni");
2447
2447
  const firstPartyMcpUrl = firstPartyMcpServerUrl(settings);
2448
+ const firstPartyFilesMcpUrl = firstPartyFilesMcpServerUrl(firstPartyMcpUrl);
2448
2449
  const firstPartyDocsMcpUrl = firstPartyDocumentsMcpServerUrl(firstPartyMcpUrl);
2449
2450
  const hasFiles = existing.some((server) => server.id === "files");
2450
2451
  const hasDocs = existing.some((server) => server.id === "docs");
@@ -2470,7 +2471,7 @@ function ensureBuiltInMcpServers(settings) {
2470
2471
  {
2471
2472
  id: "files",
2472
2473
  name: "Files",
2473
- url: firstPartyMcpUrl,
2474
+ url: firstPartyFilesMcpUrl,
2474
2475
  allowedTools: ["files_get_download_url"],
2475
2476
  cacheToolsList: true
2476
2477
  }
@@ -2515,6 +2516,9 @@ function firstPartyMcpServerUrl(settings) {
2515
2516
  function firstPartyDocumentsMcpServerUrl(mcpUrl) {
2516
2517
  return `${mcpUrl.replace(/\/+$/, "")}/docs`;
2517
2518
  }
2519
+ function firstPartyFilesMcpServerUrl(mcpUrl) {
2520
+ return `${mcpUrl.replace(/\/+$/, "")}/files`;
2521
+ }
2518
2522
  function validateSettings(settings) {
2519
2523
  temporalConnectionOptions(settings);
2520
2524
  if (settings.toolspaceEnabled && !settings.delegationSecret) {