@mastra/deployer 0.10.2-alpha.0 → 0.10.2-alpha.2
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/bundler/index.cjs +2 -2
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-DGNRILK6.js → chunk-HNAN6FSJ.js} +3 -2
- package/dist/{chunk-PJB6TDF7.cjs → chunk-Z2JXT2NK.cjs} +4 -3
- package/dist/index.cjs +2 -2
- package/dist/index.js +1 -1
- package/dist/server/index.cjs +144 -3
- package/dist/server/index.js +144 -3
- package/package.json +5 -5
package/dist/bundler/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZ2JXT2NK_cjs = require('../chunk-Z2JXT2NK.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 chunkZ2JXT2NK_cjs.Bundler; }
|
|
10
10
|
});
|
package/dist/bundler/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Bundler } from '../chunk-
|
|
1
|
+
export { Bundler } from '../chunk-HNAN6FSJ.js';
|
|
@@ -133,9 +133,10 @@ var Bundler = class extends MastraBundler {
|
|
|
133
133
|
if (key.startsWith("@")) {
|
|
134
134
|
const pkgChunks = key.split("/");
|
|
135
135
|
dependenciesMap.set(`${pkgChunks[0]}/${pkgChunks[1]}`, value);
|
|
136
|
-
|
|
136
|
+
} else {
|
|
137
|
+
const pkgName = key.split("/")[0] || key;
|
|
138
|
+
dependenciesMap.set(pkgName, value);
|
|
137
139
|
}
|
|
138
|
-
dependenciesMap.set(key, value);
|
|
139
140
|
}
|
|
140
141
|
dependenciesMap.set("@opentelemetry/instrumentation", "latest");
|
|
141
142
|
await writeFile(
|
|
@@ -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-Z2JXT2NK.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) {
|
|
@@ -143,9 +143,10 @@ var Bundler = class extends bundler.MastraBundler {
|
|
|
143
143
|
if (key.startsWith("@")) {
|
|
144
144
|
const pkgChunks = key.split("/");
|
|
145
145
|
dependenciesMap.set(`${pkgChunks[0]}/${pkgChunks[1]}`, value);
|
|
146
|
-
|
|
146
|
+
} else {
|
|
147
|
+
const pkgName = key.split("/")[0] || key;
|
|
148
|
+
dependenciesMap.set(pkgName, value);
|
|
147
149
|
}
|
|
148
|
-
dependenciesMap.set(key, value);
|
|
149
150
|
}
|
|
150
151
|
dependenciesMap.set("@opentelemetry/instrumentation", "latest");
|
|
151
152
|
await promises.writeFile(
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZ2JXT2NK_cjs = require('./chunk-Z2JXT2NK.cjs');
|
|
4
4
|
var chunkOJY5LJPT_cjs = require('./chunk-OJY5LJPT.cjs');
|
|
5
5
|
var chunk4VC5Z4YR_cjs = require('./chunk-4VC5Z4YR.cjs');
|
|
6
6
|
var babel = require('@babel/core');
|
|
@@ -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 chunkZ2JXT2NK_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,4 +1,4 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
1
|
+
import { Bundler } from './chunk-HNAN6FSJ.js';
|
|
2
2
|
import { recursiveRemoveNonReferencedNodes } from './chunk-W46BY5GT.js';
|
|
3
3
|
import { DepsService, FileService } from './chunk-UV4RQQ3R.js';
|
|
4
4
|
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-UV4RQQ3R.js';
|
package/dist/server/index.cjs
CHANGED
|
@@ -5656,7 +5656,43 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5656
5656
|
schema: {
|
|
5657
5657
|
type: "object",
|
|
5658
5658
|
properties: {
|
|
5659
|
-
servers: {
|
|
5659
|
+
servers: {
|
|
5660
|
+
type: "array",
|
|
5661
|
+
items: {
|
|
5662
|
+
type: "object",
|
|
5663
|
+
properties: {
|
|
5664
|
+
id: { type: "string" },
|
|
5665
|
+
name: { type: "string" },
|
|
5666
|
+
description: { type: "string" },
|
|
5667
|
+
repository: {
|
|
5668
|
+
type: "object",
|
|
5669
|
+
properties: {
|
|
5670
|
+
url: { type: "string", description: "The URL of the repository (e.g., a GitHub URL)" },
|
|
5671
|
+
source: {
|
|
5672
|
+
type: "string",
|
|
5673
|
+
description: "The source control platform (e.g., 'github', 'gitlab')",
|
|
5674
|
+
enum: ["github", "gitlab"]
|
|
5675
|
+
},
|
|
5676
|
+
id: { type: "string", description: "A unique identifier for the repository at the source" }
|
|
5677
|
+
}
|
|
5678
|
+
},
|
|
5679
|
+
version_detail: {
|
|
5680
|
+
type: "object",
|
|
5681
|
+
properties: {
|
|
5682
|
+
version: { type: "string", description: 'The semantic version string (e.g., "1.0.2")' },
|
|
5683
|
+
release_date: {
|
|
5684
|
+
type: "string",
|
|
5685
|
+
description: "The ISO 8601 date-time string when this version was released or registered"
|
|
5686
|
+
},
|
|
5687
|
+
is_latest: {
|
|
5688
|
+
type: "boolean",
|
|
5689
|
+
description: "Indicates if this version is the latest available"
|
|
5690
|
+
}
|
|
5691
|
+
}
|
|
5692
|
+
}
|
|
5693
|
+
}
|
|
5694
|
+
}
|
|
5695
|
+
},
|
|
5660
5696
|
next: { type: "string", format: "uri", nullable: true },
|
|
5661
5697
|
total_count: { type: "integer" }
|
|
5662
5698
|
}
|
|
@@ -5693,12 +5729,117 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5693
5729
|
200: {
|
|
5694
5730
|
description: "Detailed information about the MCP server instance.",
|
|
5695
5731
|
content: {
|
|
5696
|
-
"application/json": {
|
|
5732
|
+
"application/json": {
|
|
5733
|
+
schema: {
|
|
5734
|
+
type: "object",
|
|
5735
|
+
properties: {
|
|
5736
|
+
id: { type: "string" },
|
|
5737
|
+
name: { type: "string" },
|
|
5738
|
+
description: { type: "string" },
|
|
5739
|
+
repository: {
|
|
5740
|
+
type: "object",
|
|
5741
|
+
properties: {
|
|
5742
|
+
url: { type: "string" },
|
|
5743
|
+
source: { type: "string" },
|
|
5744
|
+
id: { type: "string" }
|
|
5745
|
+
}
|
|
5746
|
+
},
|
|
5747
|
+
version_detail: {
|
|
5748
|
+
type: "object",
|
|
5749
|
+
properties: {
|
|
5750
|
+
version: { type: "string" },
|
|
5751
|
+
release_date: { type: "string" },
|
|
5752
|
+
is_latest: { type: "boolean" }
|
|
5753
|
+
}
|
|
5754
|
+
},
|
|
5755
|
+
package_canonical: { type: "string" },
|
|
5756
|
+
packages: {
|
|
5757
|
+
type: "array",
|
|
5758
|
+
items: {
|
|
5759
|
+
type: "object",
|
|
5760
|
+
properties: {
|
|
5761
|
+
registry_name: { type: "string" },
|
|
5762
|
+
name: { type: "string" },
|
|
5763
|
+
version: { type: "string" },
|
|
5764
|
+
command: {
|
|
5765
|
+
type: "object",
|
|
5766
|
+
properties: {
|
|
5767
|
+
name: { type: "string" },
|
|
5768
|
+
subcommands: {
|
|
5769
|
+
type: "array",
|
|
5770
|
+
items: {
|
|
5771
|
+
type: "object",
|
|
5772
|
+
properties: {
|
|
5773
|
+
name: { type: "string" },
|
|
5774
|
+
description: { type: "string" },
|
|
5775
|
+
is_required: { type: "boolean" },
|
|
5776
|
+
subcommands: {
|
|
5777
|
+
type: "array",
|
|
5778
|
+
items: { type: "object" }
|
|
5779
|
+
},
|
|
5780
|
+
positional_arguments: {
|
|
5781
|
+
type: "array",
|
|
5782
|
+
items: { type: "object" }
|
|
5783
|
+
},
|
|
5784
|
+
named_arguments: {
|
|
5785
|
+
type: "array",
|
|
5786
|
+
items: { type: "object" }
|
|
5787
|
+
}
|
|
5788
|
+
}
|
|
5789
|
+
}
|
|
5790
|
+
},
|
|
5791
|
+
positional_arguments: {
|
|
5792
|
+
type: "array",
|
|
5793
|
+
items: { type: "object" }
|
|
5794
|
+
},
|
|
5795
|
+
named_arguments: {
|
|
5796
|
+
type: "array",
|
|
5797
|
+
items: { type: "object" }
|
|
5798
|
+
}
|
|
5799
|
+
}
|
|
5800
|
+
},
|
|
5801
|
+
environment_variables: {
|
|
5802
|
+
type: "array",
|
|
5803
|
+
items: {
|
|
5804
|
+
type: "object",
|
|
5805
|
+
properties: {
|
|
5806
|
+
name: { type: "string" },
|
|
5807
|
+
description: { type: "string" },
|
|
5808
|
+
required: { type: "boolean" },
|
|
5809
|
+
default_value: { type: "string" }
|
|
5810
|
+
}
|
|
5811
|
+
}
|
|
5812
|
+
}
|
|
5813
|
+
}
|
|
5814
|
+
}
|
|
5815
|
+
},
|
|
5816
|
+
remotes: {
|
|
5817
|
+
type: "array",
|
|
5818
|
+
items: {
|
|
5819
|
+
type: "object",
|
|
5820
|
+
properties: {
|
|
5821
|
+
transport_type: { type: "string" },
|
|
5822
|
+
url: { type: "string" }
|
|
5823
|
+
}
|
|
5824
|
+
}
|
|
5825
|
+
}
|
|
5826
|
+
}
|
|
5827
|
+
}
|
|
5828
|
+
}
|
|
5697
5829
|
}
|
|
5698
5830
|
},
|
|
5699
5831
|
404: {
|
|
5700
5832
|
description: "MCP server instance not found.",
|
|
5701
|
-
content: {
|
|
5833
|
+
content: {
|
|
5834
|
+
"application/json": {
|
|
5835
|
+
schema: {
|
|
5836
|
+
type: "object",
|
|
5837
|
+
properties: {
|
|
5838
|
+
error: { type: "string" }
|
|
5839
|
+
}
|
|
5840
|
+
}
|
|
5841
|
+
}
|
|
5842
|
+
}
|
|
5702
5843
|
}
|
|
5703
5844
|
}
|
|
5704
5845
|
}),
|
package/dist/server/index.js
CHANGED
|
@@ -5650,7 +5650,43 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5650
5650
|
schema: {
|
|
5651
5651
|
type: "object",
|
|
5652
5652
|
properties: {
|
|
5653
|
-
servers: {
|
|
5653
|
+
servers: {
|
|
5654
|
+
type: "array",
|
|
5655
|
+
items: {
|
|
5656
|
+
type: "object",
|
|
5657
|
+
properties: {
|
|
5658
|
+
id: { type: "string" },
|
|
5659
|
+
name: { type: "string" },
|
|
5660
|
+
description: { type: "string" },
|
|
5661
|
+
repository: {
|
|
5662
|
+
type: "object",
|
|
5663
|
+
properties: {
|
|
5664
|
+
url: { type: "string", description: "The URL of the repository (e.g., a GitHub URL)" },
|
|
5665
|
+
source: {
|
|
5666
|
+
type: "string",
|
|
5667
|
+
description: "The source control platform (e.g., 'github', 'gitlab')",
|
|
5668
|
+
enum: ["github", "gitlab"]
|
|
5669
|
+
},
|
|
5670
|
+
id: { type: "string", description: "A unique identifier for the repository at the source" }
|
|
5671
|
+
}
|
|
5672
|
+
},
|
|
5673
|
+
version_detail: {
|
|
5674
|
+
type: "object",
|
|
5675
|
+
properties: {
|
|
5676
|
+
version: { type: "string", description: 'The semantic version string (e.g., "1.0.2")' },
|
|
5677
|
+
release_date: {
|
|
5678
|
+
type: "string",
|
|
5679
|
+
description: "The ISO 8601 date-time string when this version was released or registered"
|
|
5680
|
+
},
|
|
5681
|
+
is_latest: {
|
|
5682
|
+
type: "boolean",
|
|
5683
|
+
description: "Indicates if this version is the latest available"
|
|
5684
|
+
}
|
|
5685
|
+
}
|
|
5686
|
+
}
|
|
5687
|
+
}
|
|
5688
|
+
}
|
|
5689
|
+
},
|
|
5654
5690
|
next: { type: "string", format: "uri", nullable: true },
|
|
5655
5691
|
total_count: { type: "integer" }
|
|
5656
5692
|
}
|
|
@@ -5687,12 +5723,117 @@ async function createHonoServer(mastra, options = {}) {
|
|
|
5687
5723
|
200: {
|
|
5688
5724
|
description: "Detailed information about the MCP server instance.",
|
|
5689
5725
|
content: {
|
|
5690
|
-
"application/json": {
|
|
5726
|
+
"application/json": {
|
|
5727
|
+
schema: {
|
|
5728
|
+
type: "object",
|
|
5729
|
+
properties: {
|
|
5730
|
+
id: { type: "string" },
|
|
5731
|
+
name: { type: "string" },
|
|
5732
|
+
description: { type: "string" },
|
|
5733
|
+
repository: {
|
|
5734
|
+
type: "object",
|
|
5735
|
+
properties: {
|
|
5736
|
+
url: { type: "string" },
|
|
5737
|
+
source: { type: "string" },
|
|
5738
|
+
id: { type: "string" }
|
|
5739
|
+
}
|
|
5740
|
+
},
|
|
5741
|
+
version_detail: {
|
|
5742
|
+
type: "object",
|
|
5743
|
+
properties: {
|
|
5744
|
+
version: { type: "string" },
|
|
5745
|
+
release_date: { type: "string" },
|
|
5746
|
+
is_latest: { type: "boolean" }
|
|
5747
|
+
}
|
|
5748
|
+
},
|
|
5749
|
+
package_canonical: { type: "string" },
|
|
5750
|
+
packages: {
|
|
5751
|
+
type: "array",
|
|
5752
|
+
items: {
|
|
5753
|
+
type: "object",
|
|
5754
|
+
properties: {
|
|
5755
|
+
registry_name: { type: "string" },
|
|
5756
|
+
name: { type: "string" },
|
|
5757
|
+
version: { type: "string" },
|
|
5758
|
+
command: {
|
|
5759
|
+
type: "object",
|
|
5760
|
+
properties: {
|
|
5761
|
+
name: { type: "string" },
|
|
5762
|
+
subcommands: {
|
|
5763
|
+
type: "array",
|
|
5764
|
+
items: {
|
|
5765
|
+
type: "object",
|
|
5766
|
+
properties: {
|
|
5767
|
+
name: { type: "string" },
|
|
5768
|
+
description: { type: "string" },
|
|
5769
|
+
is_required: { type: "boolean" },
|
|
5770
|
+
subcommands: {
|
|
5771
|
+
type: "array",
|
|
5772
|
+
items: { type: "object" }
|
|
5773
|
+
},
|
|
5774
|
+
positional_arguments: {
|
|
5775
|
+
type: "array",
|
|
5776
|
+
items: { type: "object" }
|
|
5777
|
+
},
|
|
5778
|
+
named_arguments: {
|
|
5779
|
+
type: "array",
|
|
5780
|
+
items: { type: "object" }
|
|
5781
|
+
}
|
|
5782
|
+
}
|
|
5783
|
+
}
|
|
5784
|
+
},
|
|
5785
|
+
positional_arguments: {
|
|
5786
|
+
type: "array",
|
|
5787
|
+
items: { type: "object" }
|
|
5788
|
+
},
|
|
5789
|
+
named_arguments: {
|
|
5790
|
+
type: "array",
|
|
5791
|
+
items: { type: "object" }
|
|
5792
|
+
}
|
|
5793
|
+
}
|
|
5794
|
+
},
|
|
5795
|
+
environment_variables: {
|
|
5796
|
+
type: "array",
|
|
5797
|
+
items: {
|
|
5798
|
+
type: "object",
|
|
5799
|
+
properties: {
|
|
5800
|
+
name: { type: "string" },
|
|
5801
|
+
description: { type: "string" },
|
|
5802
|
+
required: { type: "boolean" },
|
|
5803
|
+
default_value: { type: "string" }
|
|
5804
|
+
}
|
|
5805
|
+
}
|
|
5806
|
+
}
|
|
5807
|
+
}
|
|
5808
|
+
}
|
|
5809
|
+
},
|
|
5810
|
+
remotes: {
|
|
5811
|
+
type: "array",
|
|
5812
|
+
items: {
|
|
5813
|
+
type: "object",
|
|
5814
|
+
properties: {
|
|
5815
|
+
transport_type: { type: "string" },
|
|
5816
|
+
url: { type: "string" }
|
|
5817
|
+
}
|
|
5818
|
+
}
|
|
5819
|
+
}
|
|
5820
|
+
}
|
|
5821
|
+
}
|
|
5822
|
+
}
|
|
5691
5823
|
}
|
|
5692
5824
|
},
|
|
5693
5825
|
404: {
|
|
5694
5826
|
description: "MCP server instance not found.",
|
|
5695
|
-
content: {
|
|
5827
|
+
content: {
|
|
5828
|
+
"application/json": {
|
|
5829
|
+
schema: {
|
|
5830
|
+
type: "object",
|
|
5831
|
+
properties: {
|
|
5832
|
+
error: { type: "string" }
|
|
5833
|
+
}
|
|
5834
|
+
}
|
|
5835
|
+
}
|
|
5836
|
+
}
|
|
5696
5837
|
}
|
|
5697
5838
|
}
|
|
5698
5839
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/deployer",
|
|
3
|
-
"version": "0.10.2-alpha.
|
|
3
|
+
"version": "0.10.2-alpha.2",
|
|
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.2-alpha.
|
|
111
|
+
"@mastra/server": "^0.10.2-alpha.2"
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
114
|
"@hono/node-server": "^1.13.8",
|
|
@@ -128,11 +128,11 @@
|
|
|
128
128
|
"typescript": "^5.8.2",
|
|
129
129
|
"vitest": "^2.1.9",
|
|
130
130
|
"@internal/lint": "0.0.7",
|
|
131
|
-
"@mastra/
|
|
132
|
-
"@mastra/
|
|
131
|
+
"@mastra/mcp": "^0.10.2-alpha.1",
|
|
132
|
+
"@mastra/core": "0.10.2-alpha.2"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
|
-
"@mastra/core": "^0.10.0"
|
|
135
|
+
"@mastra/core": "^0.10.2-alpha.0"
|
|
136
136
|
},
|
|
137
137
|
"scripts": {
|
|
138
138
|
"build": "tsup src/index.ts src/build/index.ts src/server/index.ts src/build/bundler.ts src/build/analyze.ts src/bundler/index.ts src/services/index.ts src/validator/loader.ts src/validator/custom-resolver.ts --format esm,cjs --clean --experimental-dts --treeshake=smallest --splitting --publicDir",
|