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.
- package/dist/{api-Vd0HHWaC-BDpYSpW6.js → api-BGKH9pvf-LDY6JwG1.js} +2 -2
- package/dist/api-CrE_4oCE-SjPzk-JC.js +2 -0
- package/dist/{client-BvPBTBfU-iDnfdt1u.js → client-CdJ_HgDO-BKCiJhNz.js} +2 -2
- package/dist/credentials-Cgc5DcYQ-Cfe8N7V8.js +1435 -0
- package/dist/{credentials-buGMq-RX-B10rWZbQ.js → credentials-eVrTJpX5-B_ojx3gd.js} +1 -1
- package/dist/index.js +22 -1143
- package/package.json +3 -3
- package/dist/api-DaQ6y1ga-BCgh5atD.js +0 -2
- package/dist/credentials-DwRjV-mn-CZpuCZh4.js +0 -279
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as throwApiError, r as createApiClient } from "./client-
|
|
2
|
-
//#region ../cli/dist/api-
|
|
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);
|
|
@@ -385,7 +385,7 @@ function removeTrailingSlash(url) {
|
|
|
385
385
|
return url;
|
|
386
386
|
}
|
|
387
387
|
//#endregion
|
|
388
|
-
//#region ../cli/dist/client-
|
|
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-
|
|
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);
|