@mastra/deployer 0.10.1-alpha.1 → 0.10.1-alpha.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/dist/_tsup-dts-rollup.d.cts +2 -0
- package/dist/_tsup-dts-rollup.d.ts +2 -0
- package/dist/build/index.cjs +9 -9
- package/dist/build/index.js +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-PJB6TDF7.cjs → chunk-UJIBCTVU.cjs} +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.js +2 -2
- package/dist/server/index.cjs +5 -5
- package/dist/server/index.js +5 -5
- package/package.json +4 -4
- package/dist/{chunk-DGNRILK6.js → chunk-GIF6UX5W.js} +1 -1
|
@@ -291,6 +291,8 @@ tools: any;
|
|
|
291
291
|
workflows: {};
|
|
292
292
|
provider: string;
|
|
293
293
|
modelId: string;
|
|
294
|
+
defaultGenerateOptions: any;
|
|
295
|
+
defaultStreamOptions: any;
|
|
294
296
|
}, ContentfulStatusCode, "json">>;
|
|
295
297
|
|
|
296
298
|
export declare function getAgentCardByIdHandler(c: Context): Promise<Response & TypedResponse< {
|
|
@@ -291,6 +291,8 @@ tools: any;
|
|
|
291
291
|
workflows: {};
|
|
292
292
|
provider: string;
|
|
293
293
|
modelId: string;
|
|
294
|
+
defaultGenerateOptions: any;
|
|
295
|
+
defaultStreamOptions: any;
|
|
294
296
|
}, ContentfulStatusCode, "json">>;
|
|
295
297
|
|
|
296
298
|
export declare function getAgentCardByIdHandler(c: Context): Promise<Response & TypedResponse< {
|
package/dist/build/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkYHCVXGZM_cjs = require('../chunk-YHCVXGZM.cjs');
|
|
4
4
|
var chunkWK63QOD5_cjs = require('../chunk-WK63QOD5.cjs');
|
|
5
|
+
var chunk4VC5Z4YR_cjs = require('../chunk-4VC5Z4YR.cjs');
|
|
5
6
|
var chunkOJY5LJPT_cjs = require('../chunk-OJY5LJPT.cjs');
|
|
6
7
|
var chunkIMGVLBV7_cjs = require('../chunk-IMGVLBV7.cjs');
|
|
7
|
-
var chunk4VC5Z4YR_cjs = require('../chunk-4VC5Z4YR.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -24,6 +24,14 @@ Object.defineProperty(exports, "writeTelemetryConfig", {
|
|
|
24
24
|
enumerable: true,
|
|
25
25
|
get: function () { return chunkWK63QOD5_cjs.writeTelemetryConfig; }
|
|
26
26
|
});
|
|
27
|
+
Object.defineProperty(exports, "Deps", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunk4VC5Z4YR_cjs.Deps; }
|
|
30
|
+
});
|
|
31
|
+
Object.defineProperty(exports, "FileService", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
get: function () { return chunk4VC5Z4YR_cjs.FileService; }
|
|
34
|
+
});
|
|
27
35
|
Object.defineProperty(exports, "analyzeBundle", {
|
|
28
36
|
enumerable: true,
|
|
29
37
|
get: function () { return chunkOJY5LJPT_cjs.analyzeBundle; }
|
|
@@ -40,11 +48,3 @@ Object.defineProperty(exports, "getBundlerInputOptions", {
|
|
|
40
48
|
enumerable: true,
|
|
41
49
|
get: function () { return chunkIMGVLBV7_cjs.getInputOptions; }
|
|
42
50
|
});
|
|
43
|
-
Object.defineProperty(exports, "Deps", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () { return chunk4VC5Z4YR_cjs.Deps; }
|
|
46
|
-
});
|
|
47
|
-
Object.defineProperty(exports, "FileService", {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () { return chunk4VC5Z4YR_cjs.FileService; }
|
|
50
|
-
});
|
package/dist/build/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { createWatcher, getServerOptions, getInputOptions as getWatcherInputOptions } from '../chunk-5ZQI6XPC.js';
|
|
2
2
|
export { writeTelemetryConfig } from '../chunk-O3VM5GJZ.js';
|
|
3
|
+
export { Deps, FileService } from '../chunk-UV4RQQ3R.js';
|
|
3
4
|
export { analyzeBundle, getBundlerOptions } from '../chunk-W46BY5GT.js';
|
|
4
5
|
export { createBundler, getInputOptions as getBundlerInputOptions } from '../chunk-AOSWYZKN.js';
|
|
5
|
-
export { Deps, FileService } from '../chunk-UV4RQQ3R.js';
|
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkUJIBCTVU_cjs = require('../chunk-UJIBCTVU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "Bundler", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkUJIBCTVU_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-GIF6UX5W.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkWK63QOD5_cjs = require('./chunk-WK63QOD5.cjs');
|
|
4
|
+
var chunk4VC5Z4YR_cjs = require('./chunk-4VC5Z4YR.cjs');
|
|
4
5
|
var chunkOJY5LJPT_cjs = require('./chunk-OJY5LJPT.cjs');
|
|
5
6
|
var chunkIMGVLBV7_cjs = require('./chunk-IMGVLBV7.cjs');
|
|
6
|
-
var chunk4VC5Z4YR_cjs = require('./chunk-4VC5Z4YR.cjs');
|
|
7
7
|
var fs = require('fs');
|
|
8
8
|
var promises = require('fs/promises');
|
|
9
9
|
var path = require('path');
|
|
@@ -131,7 +131,7 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
131
131
|
}
|
|
132
132
|
async writeInstrumentationFile(outputDirectory) {
|
|
133
133
|
const instrumentationFile = path.join(outputDirectory, "instrumentation.mjs");
|
|
134
|
-
const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
134
|
+
const __dirname = path.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-UJIBCTVU.cjs', document.baseURI).href))));
|
|
135
135
|
await fsExtra.copy(path.join(__dirname, "templates", "instrumentation-template.js"), instrumentationFile);
|
|
136
136
|
}
|
|
137
137
|
async writePackageJson(outputDirectory, dependencies, resolutions) {
|
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var chunkOJY5LJPT_cjs = require('./chunk-OJY5LJPT.cjs');
|
|
3
|
+
var chunkUJIBCTVU_cjs = require('./chunk-UJIBCTVU.cjs');
|
|
5
4
|
var chunk4VC5Z4YR_cjs = require('./chunk-4VC5Z4YR.cjs');
|
|
5
|
+
var chunkOJY5LJPT_cjs = require('./chunk-OJY5LJPT.cjs');
|
|
6
6
|
var babel = require('@babel/core');
|
|
7
7
|
var rollup = require('rollup');
|
|
8
8
|
var esbuild = require('rollup-plugin-esbuild');
|
|
@@ -33,7 +33,7 @@ var esbuild__default = /*#__PURE__*/_interopDefault(esbuild);
|
|
|
33
33
|
var commonjs__default = /*#__PURE__*/_interopDefault(commonjs);
|
|
34
34
|
|
|
35
35
|
// src/deploy/base.ts
|
|
36
|
-
var Deployer = class extends
|
|
36
|
+
var Deployer = class extends chunkUJIBCTVU_cjs.Bundler {
|
|
37
37
|
deps = new chunk4VC5Z4YR_cjs.DepsService();
|
|
38
38
|
constructor(args) {
|
|
39
39
|
super(args.name, "DEPLOYER");
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
2
|
-
import { recursiveRemoveNonReferencedNodes } from './chunk-W46BY5GT.js';
|
|
1
|
+
import { Bundler } from './chunk-GIF6UX5W.js';
|
|
3
2
|
import { DepsService, FileService } from './chunk-UV4RQQ3R.js';
|
|
4
3
|
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-UV4RQQ3R.js';
|
|
4
|
+
import { recursiveRemoveNonReferencedNodes } from './chunk-W46BY5GT.js';
|
|
5
5
|
import * as babel from '@babel/core';
|
|
6
6
|
import babel__default from '@babel/core';
|
|
7
7
|
import { rollup } from 'rollup';
|
package/dist/server/index.cjs
CHANGED
|
@@ -5541,7 +5541,7 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5541
5541
|
executeAgentToolHandler
|
|
5542
5542
|
);
|
|
5543
5543
|
app.post(
|
|
5544
|
-
"/api/
|
|
5544
|
+
"/api/mcp/:serverId/mcp",
|
|
5545
5545
|
bodyLimit.bodyLimit(bodyLimitOptions),
|
|
5546
5546
|
h({
|
|
5547
5547
|
description: "Send a message to an MCP server using Streamable HTTP",
|
|
@@ -5568,8 +5568,8 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5568
5568
|
}),
|
|
5569
5569
|
getMcpServerMessageHandler
|
|
5570
5570
|
);
|
|
5571
|
-
const mcpSseBasePath = "/api/
|
|
5572
|
-
const mcpSseMessagePath = "/api/
|
|
5571
|
+
const mcpSseBasePath = "/api/mcp/:serverId/sse";
|
|
5572
|
+
const mcpSseMessagePath = "/api/mcp/:serverId/messages";
|
|
5573
5573
|
app.get(
|
|
5574
5574
|
mcpSseBasePath,
|
|
5575
5575
|
h({
|
|
@@ -6326,7 +6326,7 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
6326
6326
|
{
|
|
6327
6327
|
name: "runId",
|
|
6328
6328
|
in: "query",
|
|
6329
|
-
required:
|
|
6329
|
+
required: false,
|
|
6330
6330
|
schema: { type: "string" }
|
|
6331
6331
|
}
|
|
6332
6332
|
],
|
|
@@ -7098,7 +7098,7 @@ async function createNodeServer(mastra, options = {}) {
|
|
|
7098
7098
|
{
|
|
7099
7099
|
fetch: app.fetch,
|
|
7100
7100
|
port,
|
|
7101
|
-
hostname: serverOptions?.host
|
|
7101
|
+
hostname: serverOptions?.host
|
|
7102
7102
|
},
|
|
7103
7103
|
() => {
|
|
7104
7104
|
const logger2 = mastra.getLogger();
|
package/dist/server/index.js
CHANGED
|
@@ -5535,7 +5535,7 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5535
5535
|
executeAgentToolHandler
|
|
5536
5536
|
);
|
|
5537
5537
|
app.post(
|
|
5538
|
-
"/api/
|
|
5538
|
+
"/api/mcp/:serverId/mcp",
|
|
5539
5539
|
bodyLimit(bodyLimitOptions),
|
|
5540
5540
|
h({
|
|
5541
5541
|
description: "Send a message to an MCP server using Streamable HTTP",
|
|
@@ -5562,8 +5562,8 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5562
5562
|
}),
|
|
5563
5563
|
getMcpServerMessageHandler
|
|
5564
5564
|
);
|
|
5565
|
-
const mcpSseBasePath = "/api/
|
|
5566
|
-
const mcpSseMessagePath = "/api/
|
|
5565
|
+
const mcpSseBasePath = "/api/mcp/:serverId/sse";
|
|
5566
|
+
const mcpSseMessagePath = "/api/mcp/:serverId/messages";
|
|
5567
5567
|
app.get(
|
|
5568
5568
|
mcpSseBasePath,
|
|
5569
5569
|
h({
|
|
@@ -6320,7 +6320,7 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
6320
6320
|
{
|
|
6321
6321
|
name: "runId",
|
|
6322
6322
|
in: "query",
|
|
6323
|
-
required:
|
|
6323
|
+
required: false,
|
|
6324
6324
|
schema: { type: "string" }
|
|
6325
6325
|
}
|
|
6326
6326
|
],
|
|
@@ -7092,7 +7092,7 @@ async function createNodeServer(mastra, options = {}) {
|
|
|
7092
7092
|
{
|
|
7093
7093
|
fetch: app.fetch,
|
|
7094
7094
|
port,
|
|
7095
|
-
hostname: serverOptions?.host
|
|
7095
|
+
hostname: serverOptions?.host
|
|
7096
7096
|
},
|
|
7097
7097
|
() => {
|
|
7098
7098
|
const logger2 = mastra.getLogger();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.10.1-alpha.
|
|
3
|
+
"version": "0.10.1-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
109
109
|
"typescript-paths": "^1.5.1",
|
|
110
110
|
"zod": "^3.24.3",
|
|
111
|
-
"@mastra/server": "^0.10.1-alpha.
|
|
111
|
+
"@mastra/server": "^0.10.1-alpha.3"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hono/node-server": "^1.13.8",
|
|
@@ -128,8 +128,8 @@
|
|
|
128
128
|
"typescript": "^5.8.2",
|
|
129
129
|
"vitest": "^2.1.9",
|
|
130
130
|
"@internal/lint": "0.0.6",
|
|
131
|
-
"@mastra/
|
|
132
|
-
"@mastra/
|
|
131
|
+
"@mastra/core": "0.10.1-alpha.3",
|
|
132
|
+
"@mastra/mcp": "^0.10.1-alpha.0"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
135
|
"@mastra/core": "^0.10.0"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { writeTelemetryConfig } from './chunk-O3VM5GJZ.js';
|
|
2
|
+
import { DepsService, FileService } from './chunk-UV4RQQ3R.js';
|
|
2
3
|
import { analyzeBundle } from './chunk-W46BY5GT.js';
|
|
3
4
|
import { createBundler, getInputOptions } from './chunk-AOSWYZKN.js';
|
|
4
|
-
import { DepsService, FileService } from './chunk-UV4RQQ3R.js';
|
|
5
5
|
import { existsSync } from 'node:fs';
|
|
6
6
|
import { writeFile, stat } from 'node:fs/promises';
|
|
7
7
|
import { join, dirname } from 'node:path';
|