@mastra/deployer 1.0.0-beta.1 → 1.0.0-beta.3
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 +33 -0
- package/dist/server/handlers/restart-active-runs.d.ts +3 -0
- package/dist/server/handlers/restart-active-runs.d.ts.map +1 -0
- package/dist/server/handlers/routes/scores/handlers.d.ts +52 -2
- package/dist/server/handlers/routes/scores/handlers.d.ts.map +1 -1
- package/dist/server/index.cjs +21 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +21 -1
- package/dist/server/index.js.map +1 -1
- package/package.json +13 -20
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAsB5B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAGnD,KAAK,QAAQ,GAAG,EAAE,CAAC;AAEnB,KAAK,SAAS,GAAG;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,cAAc,CAAC;IAC/B,OAAO,EAAE,GAAG,CAAC;QAAE,UAAU,EAAE,+BAA+B,CAAA;KAAE,CAAC,CAAC;IAC9D,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAC5B,SAAS,EAAE,iBAAiB,CAAC;IAC7B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,qBAAqB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9C,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,wCAmB/D;AAED,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,mBAER;cAGgC,QAAQ;eAAa,SAAS;2CAifhE;AAED,wBAAsB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,mBAAmC,mDAoDlG"}
|
package/dist/server/index.js
CHANGED
|
@@ -827,7 +827,7 @@ var middleware = (options) => async (c2) => {
|
|
|
827
827
|
);
|
|
828
828
|
};
|
|
829
829
|
|
|
830
|
-
// ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.10.
|
|
830
|
+
// ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.10.6_openapi-types@12.1.3_zod@3.25.76/node_modules/hono-openapi/utils.js
|
|
831
831
|
var e = Symbol("openapi");
|
|
832
832
|
var n = ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"];
|
|
833
833
|
var s2 = (e2) => e2.charAt(0).toUpperCase() + e2.slice(1);
|
|
@@ -1316,6 +1316,17 @@ async function healthHandler(c2) {
|
|
|
1316
1316
|
return c2.json({ success: true }, 200);
|
|
1317
1317
|
}
|
|
1318
1318
|
|
|
1319
|
+
// src/server/handlers/restart-active-runs.ts
|
|
1320
|
+
async function restartAllActiveWorkflowRunsHandler(c2) {
|
|
1321
|
+
try {
|
|
1322
|
+
const mastra = c2.get("mastra");
|
|
1323
|
+
void mastra.restartAllActiveWorkflowRuns();
|
|
1324
|
+
return c2.json({ message: "Restarting all active workflow runs..." });
|
|
1325
|
+
} catch (error) {
|
|
1326
|
+
return handleError(error, "Error restarting active workflow runs");
|
|
1327
|
+
}
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1319
1330
|
// src/server/handlers/root.ts
|
|
1320
1331
|
async function rootHandler(c2) {
|
|
1321
1332
|
const baseUrl = new URL(c2.req.url).origin;
|
|
@@ -11691,6 +11702,15 @@ async function createHonoServer(mastra, options = {
|
|
|
11691
11702
|
middleware({ url: "/openapi.json" })
|
|
11692
11703
|
);
|
|
11693
11704
|
}
|
|
11705
|
+
if (options?.isDev) {
|
|
11706
|
+
app.post(
|
|
11707
|
+
"/__restart-active-workflow-runs",
|
|
11708
|
+
w({
|
|
11709
|
+
hide: true
|
|
11710
|
+
}),
|
|
11711
|
+
restartAllActiveWorkflowRunsHandler
|
|
11712
|
+
);
|
|
11713
|
+
}
|
|
11694
11714
|
if (options?.playground) {
|
|
11695
11715
|
app.get(
|
|
11696
11716
|
"/refresh-events",
|