create-mastra 1.19.0-alpha.8 → 1.19.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # create-mastra
2
2
 
3
+ ## 1.19.0
4
+
5
+ ## 1.19.0-alpha.14
6
+
7
+ ## 1.19.0-alpha.13
8
+
9
+ ## 1.19.0-alpha.12
10
+
11
+ ## 1.19.0-alpha.11
12
+
13
+ ## 1.19.0-alpha.10
14
+
15
+ ## 1.19.0-alpha.9
16
+
3
17
  ## 1.19.0-alpha.8
4
18
 
5
19
  ## 1.19.0-alpha.7
@@ -29,4 +29,4 @@ import 'tinyexec';
29
29
 
30
30
 
31
31
  export { fetchOrgs };
32
- //# sourceMappingURL=api-C4LNCE5C-C6a7ZtxG.js.map
32
+ //# sourceMappingURL=api-FT5GISRU-C6a7ZtxG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-FT5GISRU-C6a7ZtxG.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -30,4 +30,4 @@ import 'tinyexec';
30
30
 
31
31
 
32
32
  export { loadCredentials, tryRefreshToken };
33
- //# sourceMappingURL=credentials-EGXLGJFI-AePRvo2y.js.map
33
+ //# sourceMappingURL=credentials-N4SAI3J3-AePRvo2y.js.map
@@ -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-EGXLGJFI-AePRvo2y.js');
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-C4LNCE5C-C6a7ZtxG.js');
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
- url: "file:./mastra.db",
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.19.0-alpha.8"};
16785
+ version: "1.19.0"};
16783
16786
  var logger = createLogger(false);
16784
16787
  function createLogger(debug = false) {
16785
16788
  return new PinoLogger({