create-mastra 1.31.0-alpha.9 → 1.31.0

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.
@@ -1,5 +1,5 @@
1
- import { a as throwApiError, r as createApiClient } from "./client-BvPBTBfU-iDnfdt1u.js";
2
- //#region ../cli/dist/api-Vd0HHWaC.js
1
+ import { a as throwApiError, r as createApiClient } from "./client-CdJ_HgDO-BKCiJhNz.js";
2
+ //#region ../cli/dist/api-BGKH9pvf.js
3
3
  async function fetchOrgs(token) {
4
4
  const { data, error, response } = await createApiClient(token).GET("/v1/auth/orgs");
5
5
  if (error) throwApiError("Failed to fetch orgs", response.status, error.detail);
@@ -0,0 +1,2 @@
1
+ import { t as fetchOrgs } from "./api-BGKH9pvf-LDY6JwG1.js";
2
+ export { fetchOrgs };
@@ -385,7 +385,7 @@ function removeTrailingSlash(url) {
385
385
  return url;
386
386
  }
387
387
  //#endregion
388
- //#region ../cli/dist/client-BvPBTBfU.js
388
+ //#region ../cli/dist/client-CdJ_HgDO.js
389
389
  const MASTRA_PLATFORM_API_URL = process.env.MASTRA_PLATFORM_API_URL || "https://platform.mastra.ai";
390
390
  process.env.MASTRA_PROJECTS_URL;
391
391
  /**
@@ -443,7 +443,7 @@ async function authenticatedFetch(input, init) {
443
443
  if (response.status !== 401 || !_currentToken) return response;
444
444
  if (!_refreshInFlight) _refreshInFlight = (async () => {
445
445
  try {
446
- const { tryRefreshToken, loadCredentials } = await import("./credentials-buGMq-RX-B10rWZbQ.js");
446
+ const { tryRefreshToken, loadCredentials } = await import("./credentials-eVrTJpX5-B_ojx3gd.js");
447
447
  const creds = await loadCredentials();
448
448
  if (!creds) throw new Error("No credentials");
449
449
  const newToken = await tryRefreshToken(creds);