@mastra/deployer 1.78.1-alpha.0 → 1.79.0-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/dist/docs/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: mastra-deployer
|
|
|
3
3
|
description: Documentation for @mastra/deployer. Use when working with @mastra/deployer APIs, configuration, or implementation.
|
|
4
4
|
metadata:
|
|
5
5
|
package: "@mastra/deployer"
|
|
6
|
-
version: "1.
|
|
6
|
+
version: "1.79.0-alpha.1"
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
## When to use
|
package/dist/server/index.cjs
CHANGED
|
@@ -4895,6 +4895,7 @@ async function createNodeServer(mastra, options = { tools: {} }) {
|
|
|
4895
4895
|
const studioHost = serverOptions?.studioHost ?? host;
|
|
4896
4896
|
const studioProtocol = serverOptions?.studioProtocol ?? protocol;
|
|
4897
4897
|
const studioPort = serverOptions?.studioPort ?? port;
|
|
4898
|
+
await import("@mastra/core/telemetry").then(({ startModelUsageTelemetry }) => startModelUsageTelemetry?.(mastra)).catch(() => {});
|
|
4898
4899
|
const server = serve({
|
|
4899
4900
|
fetch: app.fetch,
|
|
4900
4901
|
port,
|
|
@@ -4940,13 +4941,14 @@ async function createNodeServer(mastra, options = { tools: {} }) {
|
|
|
4940
4941
|
clearTimeout(timeout);
|
|
4941
4942
|
}
|
|
4942
4943
|
};
|
|
4943
|
-
|
|
4944
|
+
const DUPLICATE_SIGNAL_WINDOW_MS = 250;
|
|
4945
|
+
let shutdownStartedAt;
|
|
4944
4946
|
const shutdown = async (signal) => {
|
|
4945
|
-
if (
|
|
4946
|
-
process.exit(1);
|
|
4947
|
+
if (shutdownStartedAt !== void 0) {
|
|
4948
|
+
if (Date.now() - shutdownStartedAt >= DUPLICATE_SIGNAL_WINDOW_MS) process.exit(1);
|
|
4947
4949
|
return;
|
|
4948
4950
|
}
|
|
4949
|
-
|
|
4951
|
+
shutdownStartedAt = Date.now();
|
|
4950
4952
|
const logger = mastra.getLogger();
|
|
4951
4953
|
logger.info("Shutting down Mastra server", { signal });
|
|
4952
4954
|
try {
|