create-mastra 1.18.3-alpha.3 → 1.19.0-alpha.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/CHANGELOG.md +16 -0
- package/dist/{api-C4LNCE5C-C6a7ZtxG.js → api-FT5GISRU-C6a7ZtxG.js} +1 -1
- package/dist/api-FT5GISRU-C6a7ZtxG.js.map +1 -0
- package/dist/{credentials-EGXLGJFI-AePRvo2y.js → credentials-N4SAI3J3-AePRvo2y.js} +1 -1
- package/dist/credentials-N4SAI3J3-AePRvo2y.js.map +1 -0
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/api-C4LNCE5C-C6a7ZtxG.js.map +0 -1
- package/dist/credentials-EGXLGJFI-AePRvo2y.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# create-mastra
|
|
2
2
|
|
|
3
|
+
## 1.19.0-alpha.11
|
|
4
|
+
|
|
5
|
+
## 1.19.0-alpha.10
|
|
6
|
+
|
|
7
|
+
## 1.19.0-alpha.9
|
|
8
|
+
|
|
9
|
+
## 1.19.0-alpha.8
|
|
10
|
+
|
|
11
|
+
## 1.19.0-alpha.7
|
|
12
|
+
|
|
13
|
+
## 1.19.0-alpha.6
|
|
14
|
+
|
|
15
|
+
## 1.19.0-alpha.5
|
|
16
|
+
|
|
17
|
+
## 1.19.0-alpha.4
|
|
18
|
+
|
|
3
19
|
## 1.18.3-alpha.3
|
|
4
20
|
|
|
5
21
|
## 1.18.3-alpha.2
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-FT5GISRU-C6a7ZtxG.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials-N4SAI3J3-AePRvo2y.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -546,7 +546,7 @@ async function authenticatedFetch(input, init) {
|
|
|
546
546
|
if (!_refreshInFlight) {
|
|
547
547
|
_refreshInFlight = (async () => {
|
|
548
548
|
try {
|
|
549
|
-
const { tryRefreshToken, loadCredentials } = await import('./credentials-
|
|
549
|
+
const { tryRefreshToken, loadCredentials } = await import('./credentials-N4SAI3J3-AePRvo2y.js');
|
|
550
550
|
const creds = await loadCredentials();
|
|
551
551
|
if (!creds) throw new Error("No credentials");
|
|
552
552
|
const newToken2 = await tryRefreshToken(creds);
|
|
@@ -830,7 +830,7 @@ async function getToken() {
|
|
|
830
830
|
return newCreds.token;
|
|
831
831
|
}
|
|
832
832
|
async function validateOrgAccess(token, orgId) {
|
|
833
|
-
const { fetchOrgs } = await import('./api-
|
|
833
|
+
const { fetchOrgs } = await import('./api-FT5GISRU-C6a7ZtxG.js');
|
|
834
834
|
const orgs = await fetchOrgs(token);
|
|
835
835
|
const hasAccess = orgs.some((o) => o.id === orgId);
|
|
836
836
|
if (!hasAccess) {
|
|
@@ -15999,7 +15999,10 @@ export const mastra = new Mastra({
|
|
|
15999
15999
|
id: 'composite-storage',
|
|
16000
16000
|
default: new LibSQLStore({
|
|
16001
16001
|
id: "mastra-storage",
|
|
16002
|
-
|
|
16002
|
+
// Uses a hosted database when deployed (mastra env db create --kind turso),
|
|
16003
|
+
// and a local file during development.
|
|
16004
|
+
url: process.env.TURSO_DATABASE_URL ?? "file:./mastra.db",
|
|
16005
|
+
authToken: process.env.TURSO_AUTH_TOKEN,
|
|
16003
16006
|
}),
|
|
16004
16007
|
domains: {
|
|
16005
16008
|
observability: await new DuckDBStore().getStore('observability'),
|
|
@@ -16779,7 +16782,7 @@ var PinoLogger = class _PinoLogger extends MastraLogger {
|
|
|
16779
16782
|
};
|
|
16780
16783
|
|
|
16781
16784
|
var package_default = {
|
|
16782
|
-
version: "1.
|
|
16785
|
+
version: "1.19.0-alpha.11"};
|
|
16783
16786
|
var logger = createLogger(false);
|
|
16784
16787
|
function createLogger(debug = false) {
|
|
16785
16788
|
return new PinoLogger({
|