create-mastra 1.9.0 → 1.9.1-alpha.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 +4 -0
- package/dist/index.js +24 -17
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
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
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
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.
|
|
15781
|
+
version: "1.9.1-alpha.1"};
|
|
15775
15782
|
var logger = createLogger(false);
|
|
15776
15783
|
function createLogger(debug = false) {
|
|
15777
15784
|
return new PinoLogger({
|