@standardagents/builder 0.24.1 → 0.24.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.
@@ -70188,6 +70188,11 @@ var callback_get_default = defineController2(async ({ req, env: env2 }) => {
70188
70188
  }
70189
70189
  });
70190
70190
  }
70191
+ const landingRaw = env2.STANDARD_AGENTS_API_ROLE_LANDING_URL;
70192
+ const landing = typeof landingRaw === "string" ? landingRaw.trim() : "";
70193
+ if (landing && /^https:\/\//.test(landing)) {
70194
+ return new Response(null, { status: 302, headers: { Location: landing } });
70195
+ }
70191
70196
  return failRedirect(req, env2, "api_only_account");
70192
70197
  }
70193
70198
  const session = await mintLocalSessionForPlatformUser(env2, {