create-mastra 1.32.2-alpha.3 → 1.33.0-alpha.5
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-B-oBgHZK-DBWhxXnX.js +2 -0
- package/dist/{api-CVjIOyAz-D4vD-OC_.js → api-DtWqdbfc-CcBd-aTg.js} +2 -2
- package/dist/{client-BzuP6FOB-C6hwDwJW.js → client-AynAmeED-Ch8TO6_R.js} +2 -2
- package/dist/{credentials-CWNvAR_H-CFn0Jiq0.js → credentials-B1OFICch-DYVepl2B.js} +1 -1
- package/dist/{credentials-6AY2wEWQ-DCCCg72E.js → credentials-CK0wp32m-CJMPAZxG.js} +2 -2
- package/dist/index.js +6 -6
- package/package.json +2 -2
- package/dist/api-DbUBKdi7-BEk9ll7L.js +0 -2
|
@@ -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-AynAmeED-Ch8TO6_R.js";
|
|
2
|
+
//#region ../cli/dist/api-DtWqdbfc.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-AynAmeED.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-B1OFICch-DYVepl2B.js");
|
|
447
447
|
const creds = await loadCredentials();
|
|
448
448
|
if (!creds) throw new Error("No credentials");
|
|
449
449
|
const newToken = await tryRefreshToken(creds);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as loadCredentials, o as tryRefreshToken } from "./credentials-
|
|
1
|
+
import { i as loadCredentials, o as tryRefreshToken } from "./credentials-CK0wp32m-CJMPAZxG.js";
|
|
2
2
|
export { loadCredentials, tryRefreshToken };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as MASTRA_PLATFORM_API_URL } from "./client-
|
|
1
|
+
import { t as MASTRA_PLATFORM_API_URL } from "./client-AynAmeED-Ch8TO6_R.js";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import "node:path";
|
|
4
4
|
import process$1, { stdin, stdout } from "node:process";
|
|
@@ -1130,7 +1130,7 @@ ${i ? styleText("cyan", S_BAR_END) : ""}
|
|
|
1130
1130
|
}
|
|
1131
1131
|
}).prompt();
|
|
1132
1132
|
//#endregion
|
|
1133
|
-
//#region ../cli/dist/credentials-
|
|
1133
|
+
//#region ../cli/dist/credentials-CK0wp32m.js
|
|
1134
1134
|
const CREDENTIALS_DIR = join(homedir(), ".mastra");
|
|
1135
1135
|
const CREDENTIALS_FILE = join(CREDENTIALS_DIR, "credentials.json");
|
|
1136
1136
|
var LoginCancelledError = class extends Error {
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
import { _ as __require, a as setCurrentOrgId, c as log, d as password, f as select, g as __commonJSMin, h as isCancel, l as note, m as text, n as getCurrentOrgId, p as spinner, r as getToken, s as cancel, t as LoginCancelledError, u as outro, v as __toESM } from "./credentials-
|
|
3
|
-
import { i as platformFetch, n as authHeaders, t as MASTRA_PLATFORM_API_URL } from "./client-
|
|
4
|
-
import { t as fetchOrgs } from "./api-
|
|
2
|
+
import { _ as __require, a as setCurrentOrgId, c as log, d as password, f as select, g as __commonJSMin, h as isCancel, l as note, m as text, n as getCurrentOrgId, p as spinner, r as getToken, s as cancel, t as LoginCancelledError, u as outro, v as __toESM } from "./credentials-CK0wp32m-CJMPAZxG.js";
|
|
3
|
+
import { i as platformFetch, n as authHeaders, t as MASTRA_PLATFORM_API_URL } from "./client-AynAmeED-Ch8TO6_R.js";
|
|
4
|
+
import { t as fetchOrgs } from "./api-DtWqdbfc-CcBd-aTg.js";
|
|
5
5
|
import { EventEmitter, addAbortListener, on, once, setMaxListeners } from "node:events";
|
|
6
6
|
import { ChildProcess, execFile, spawn, spawnSync } from "node:child_process";
|
|
7
7
|
import path, { basename, delimiter, dirname, isAbsolute, normalize, resolve } from "node:path";
|
|
@@ -3038,7 +3038,7 @@ const { program: program$1, createCommand, createArgument, createOption, Command
|
|
|
3038
3038
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
3039
3039
|
})))(), 1)).default;
|
|
3040
3040
|
//#endregion
|
|
3041
|
-
//#region ../cli/dist/orgs-
|
|
3041
|
+
//#region ../cli/dist/orgs-D7Y6tQrs.js
|
|
3042
3042
|
var OrgSelectionCancelledError = class extends Error {
|
|
3043
3043
|
constructor() {
|
|
3044
3044
|
super("Organization selection cancelled");
|
|
@@ -15141,7 +15141,7 @@ var require_yocto_spinner = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
15141
15141
|
};
|
|
15142
15142
|
}));
|
|
15143
15143
|
//#endregion
|
|
15144
|
-
//#region ../cli/dist/analytics-
|
|
15144
|
+
//#region ../cli/dist/analytics-DsUWnEPx.js
|
|
15145
15145
|
const CREATE_LLM_PROVIDERS = [
|
|
15146
15146
|
{
|
|
15147
15147
|
value: "openai",
|
|
@@ -16905,7 +16905,7 @@ var require_semver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16905
16905
|
};
|
|
16906
16906
|
}));
|
|
16907
16907
|
//#endregion
|
|
16908
|
-
//#region ../cli/dist/create-
|
|
16908
|
+
//#region ../cli/dist/create-I7u1bKpQ.js
|
|
16909
16909
|
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
16910
16910
|
var import_yocto_spinner = /* @__PURE__ */ __toESM(require_yocto_spinner(), 1);
|
|
16911
16911
|
var import_semver = /* @__PURE__ */ __toESM(require_semver(), 1);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-mastra",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.33.0-alpha.5",
|
|
4
4
|
"description": "Create Mastra apps with one command",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"typescript": "^7.0.2",
|
|
39
39
|
"vitest": "4.1.11",
|
|
40
40
|
"@internal/lint": "0.0.140",
|
|
41
|
-
"mastra": "^1.
|
|
41
|
+
"mastra": "^1.33.0-alpha.5"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=22.13.0"
|