create-mastra 1.9.1-alpha.0 → 1.9.1

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,9 @@
1
1
  # create-mastra
2
2
 
3
+ ## 1.9.1
4
+
5
+ ## 1.9.1-alpha.1
6
+
3
7
  ## 1.9.1-alpha.0
4
8
 
5
9
  ## 1.9.0
package/dist/index.js CHANGED
@@ -14509,23 +14509,30 @@ var FileService = class {
14509
14509
  };
14510
14510
  var exec$1 = util.promisify(child_process.exec);
14511
14511
  async function promptForObservability() {
14512
- const choice = await Ee({
14513
- message: "Enable Mastra Observability? (will open auth flow)",
14514
- options: [
14515
- { value: "yes", label: "Yes" },
14516
- { value: "no", label: "No" }
14517
- ],
14518
- initialValue: "yes"
14519
- });
14520
- if (q(choice)) return {};
14521
- if (choice !== "yes") return { enabled: false };
14522
- const hadCachedCreds = await loadCredentials() !== null;
14523
- const token = await getToken();
14524
- if (hadCachedCreds) {
14525
- const creds = await loadCredentials();
14526
- if (creds) R.info(`Logged in as ${creds.user.email}`);
14512
+ while (true) {
14513
+ const choice = await Ee({
14514
+ message: "Enable Mastra Observability? (will open auth flow)",
14515
+ options: [
14516
+ { value: "yes", label: "Yes" },
14517
+ { value: "no", label: "No" }
14518
+ ],
14519
+ initialValue: "yes"
14520
+ });
14521
+ if (q(choice)) return {};
14522
+ if (choice !== "yes") return { enabled: false };
14523
+ const hadCachedCreds = await loadCredentials() !== null;
14524
+ try {
14525
+ const token = await getToken();
14526
+ if (hadCachedCreds) {
14527
+ const creds = await loadCredentials();
14528
+ if (creds) R.info(`Logged in as ${creds.user.email}`);
14529
+ }
14530
+ return { enabled: true, token };
14531
+ } catch (err) {
14532
+ const message = err instanceof Error ? err.message : String(err);
14533
+ R.warn(`Could not sign in to Mastra: ${message}`);
14534
+ }
14527
14535
  }
14528
- return { enabled: true, token };
14529
14536
  }
14530
14537
  var getModelIdentifier = (llmProvider) => {
14531
14538
  let model = "openai/gpt-5-mini";
@@ -15771,7 +15778,7 @@ var PinoLogger = class _PinoLogger extends MastraLogger {
15771
15778
  };
15772
15779
 
15773
15780
  var package_default = {
15774
- version: "1.9.1-alpha.0"};
15781
+ version: "1.9.1"};
15775
15782
  var logger = createLogger(false);
15776
15783
  function createLogger(debug = false) {
15777
15784
  return new PinoLogger({