@mastra/deployer 0.12.2-alpha.0 → 0.13.0-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/build/analyze.cjs +6 -2
- package/dist/build/analyze.d.ts +19 -0
- package/dist/build/analyze.d.ts.map +1 -1
- package/dist/build/analyze.js +1 -1
- package/dist/build/bundler.cjs +3 -3
- package/dist/build/bundler.d.ts +1 -1
- package/dist/build/bundler.js +1 -1
- package/dist/build/index.cjs +12 -12
- package/dist/build/index.d.ts +8 -8
- package/dist/build/index.js +4 -4
- package/dist/build/watcher.d.ts +2 -1
- package/dist/build/watcher.d.ts.map +1 -1
- package/dist/bundler/index.cjs +2 -2
- package/dist/bundler/index.d.ts +1 -1
- package/dist/bundler/index.js +1 -1
- package/dist/{chunk-EWJ3FDOS.cjs → chunk-7NJFPO2I.cjs} +12 -12
- package/dist/{chunk-EWJ3FDOS.cjs.map → chunk-7NJFPO2I.cjs.map} +1 -1
- package/dist/{chunk-5UEOU5YD.js → chunk-E742PKW3.js} +43 -11
- package/dist/chunk-E742PKW3.js.map +1 -0
- package/dist/{chunk-AWFI2QWQ.js → chunk-ED4BWYPJ.js} +5 -5
- package/dist/{chunk-AWFI2QWQ.js.map → chunk-ED4BWYPJ.js.map} +1 -1
- package/dist/{chunk-XLUPLTKJ.js → chunk-FQIQKPRH.js} +3 -3
- package/dist/{chunk-XLUPLTKJ.js.map → chunk-FQIQKPRH.js.map} +1 -1
- package/dist/{chunk-IM3WF3CT.cjs → chunk-GA3I2SUH.cjs} +43 -9
- package/dist/chunk-GA3I2SUH.cjs.map +1 -0
- package/dist/{chunk-SDSHAM43.cjs → chunk-J42QUFVB.cjs} +3 -3
- package/dist/{chunk-SDSHAM43.cjs.map → chunk-J42QUFVB.cjs.map} +1 -1
- package/dist/{chunk-QNC5YVHW.cjs → chunk-MJK4QE4U.cjs} +47 -21
- package/dist/chunk-MJK4QE4U.cjs.map +1 -0
- package/dist/{chunk-RIDLRMTB.js → chunk-N66CXJKO.js} +3 -3
- package/dist/{chunk-RIDLRMTB.js.map → chunk-N66CXJKO.js.map} +1 -1
- package/dist/{chunk-YUYVH35F.cjs → chunk-PKWWUDUT.cjs} +5 -5
- package/dist/{chunk-YUYVH35F.cjs.map → chunk-PKWWUDUT.cjs.map} +1 -1
- package/dist/{chunk-PWJYB7ER.js → chunk-T454CVHE.js} +43 -17
- package/dist/chunk-T454CVHE.js.map +1 -0
- package/dist/deploy/base.d.ts +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/server/handlers/routes/agents/router.d.ts +1 -1
- package/dist/server/handlers/routes/mcp/router.d.ts +1 -1
- package/dist/server/handlers/routes/memory/router.d.ts +1 -1
- package/dist/server/handlers/routes/networks/router.d.ts +1 -1
- package/dist/server/handlers/routes/scores/handlers.d.ts +37 -8
- package/dist/server/handlers/routes/scores/handlers.d.ts.map +1 -1
- package/dist/server/handlers/routes/scores/router.d.ts +1 -1
- package/dist/server/handlers/routes/tools/router.d.ts +1 -1
- package/dist/server/handlers/routes/vector/router.d.ts +1 -1
- package/dist/server/handlers/routes/workflows/router.d.ts +1 -1
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.cjs.map +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/services/index.d.ts +3 -3
- package/package.json +16 -14
- package/dist/chunk-5UEOU5YD.js.map +0 -1
- package/dist/chunk-IM3WF3CT.cjs.map +0 -1
- package/dist/chunk-PWJYB7ER.js.map +0 -1
- package/dist/chunk-QNC5YVHW.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk7NJFPO2I_cjs = require('./chunk-7NJFPO2I.cjs');
|
|
4
|
+
var chunkGA3I2SUH_cjs = require('./chunk-GA3I2SUH.cjs');
|
|
5
5
|
var chunkJ4SL7224_cjs = require('./chunk-J4SL7224.cjs');
|
|
6
6
|
var babel = require('@babel/core');
|
|
7
7
|
var rollup = require('rollup');
|
|
@@ -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 chunk7NJFPO2I_cjs.Bundler {
|
|
37
37
|
deps = new chunkJ4SL7224_cjs.DepsService();
|
|
38
38
|
constructor(args) {
|
|
39
39
|
super(args.name, "DEPLOYER");
|
|
@@ -148,7 +148,7 @@ function getDeployerBundler(entryFile, result) {
|
|
|
148
148
|
if (id !== entryFile) {
|
|
149
149
|
return;
|
|
150
150
|
}
|
|
151
|
-
return
|
|
151
|
+
return chunkGA3I2SUH_cjs.recursiveRemoveNonReferencedNodes(code);
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
// let esbuild remove all unused imports
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './deploy';
|
|
2
|
-
export * from './server/types';
|
|
3
|
-
export { Deps, FileService } from './build';
|
|
4
|
-
export { getDeployer } from './build/deployer';
|
|
1
|
+
export * from './deploy/index.js';
|
|
2
|
+
export * from './server/types.js';
|
|
3
|
+
export { Deps, FileService } from './build/index.js';
|
|
4
|
+
export { getDeployer } from './build/deployer.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bundler } from './chunk-
|
|
2
|
-
import { recursiveRemoveNonReferencedNodes } from './chunk-
|
|
1
|
+
import { Bundler } from './chunk-ED4BWYPJ.js';
|
|
2
|
+
import { recursiveRemoveNonReferencedNodes } from './chunk-E742PKW3.js';
|
|
3
3
|
import { DepsService, FileService } from './chunk-37Q52RJU.js';
|
|
4
4
|
export { Deps, FileService, createChildProcessLogger, createPinoStream } from './chunk-37Q52RJU.js';
|
|
5
5
|
import * as babel from '@babel/core';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function agentsRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
export declare function agentsRouterDev(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
5
5
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function mcpRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function memoryRoutes(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function vNextNetworksRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
export declare function networksRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
5
5
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -2,15 +2,44 @@ import type { Context } from 'hono';
|
|
|
2
2
|
export declare function getScorersHandler(c: Context): Promise<Response>;
|
|
3
3
|
export declare function getScorerHandler(c: Context): Promise<Response & import("hono").TypedResponse<{
|
|
4
4
|
scorer: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
config: {
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
judge?: {
|
|
9
|
+
model: {
|
|
10
|
+
readonly specificationVersion: "v1";
|
|
11
|
+
readonly provider: string;
|
|
12
|
+
readonly modelId: string;
|
|
13
|
+
readonly defaultObjectGenerationMode: "tool" | "json" | undefined;
|
|
14
|
+
readonly supportsImageUrls?: boolean | undefined;
|
|
15
|
+
readonly supportsStructuredOutputs?: boolean | undefined;
|
|
16
|
+
supportsUrl?: {} | undefined;
|
|
17
|
+
doGenerate: {};
|
|
18
|
+
doStream: {};
|
|
19
|
+
};
|
|
20
|
+
instructions: string;
|
|
21
|
+
} | undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly name: string;
|
|
24
|
+
readonly description: string;
|
|
25
|
+
readonly judge: {
|
|
26
|
+
model: {
|
|
27
|
+
readonly specificationVersion: "v1";
|
|
28
|
+
readonly provider: string;
|
|
29
|
+
readonly modelId: string;
|
|
30
|
+
readonly defaultObjectGenerationMode: "tool" | "json" | undefined;
|
|
31
|
+
readonly supportsImageUrls?: boolean | undefined;
|
|
32
|
+
readonly supportsStructuredOutputs?: boolean | undefined;
|
|
33
|
+
supportsUrl?: {} | undefined;
|
|
34
|
+
doGenerate: {};
|
|
35
|
+
doStream: {};
|
|
36
|
+
};
|
|
37
|
+
instructions: string;
|
|
12
38
|
} | undefined;
|
|
13
|
-
|
|
39
|
+
preprocess: {};
|
|
40
|
+
analyze: {};
|
|
41
|
+
generateScore: {};
|
|
42
|
+
generateReason: {};
|
|
14
43
|
run: {};
|
|
15
44
|
};
|
|
16
45
|
sampling?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,OAAO,qBAUjD;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../../../../src/server/handlers/routes/scores/handlers.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAGpC,wBAAsB,iBAAiB,CAAC,CAAC,EAAE,OAAO,qBAUjD;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0EAYhD;AAED,wBAAsB,uBAAuB,CAAC,CAAC,EAAE,OAAO,qBAkBvD;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBAsB1D;AAED,wBAAsB,0BAA0B,CAAC,CAAC,EAAE,OAAO,qBAqB1D;AAED,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,OAAO,qBAchD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function scoresRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function toolsRouter(bodyLimitOptions: BodyLimitOptions, tools: Record<string, any>): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function vectorRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
//# sourceMappingURL=router.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Hono } from 'hono';
|
|
2
|
-
import type { BodyLimitOptions } from '../../../types';
|
|
2
|
+
import type { BodyLimitOptions } from '../../../types.js';
|
|
3
3
|
export declare function workflowsRouter(bodyLimitOptions: BodyLimitOptions): Hono<import("hono/types").BlankEnv, import("hono/types").BlankSchema, "/">;
|
|
4
4
|
//# sourceMappingURL=router.d.ts.map
|
package/dist/server/index.cjs
CHANGED
|
@@ -781,7 +781,7 @@ var middleware = (options) => async (c2) => {
|
|
|
781
781
|
);
|
|
782
782
|
};
|
|
783
783
|
|
|
784
|
-
// ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.8.
|
|
784
|
+
// ../../node_modules/.pnpm/hono-openapi@0.4.8_hono@4.8.12_openapi-types@12.1.3_zod@3.25.76/node_modules/hono-openapi/utils.js
|
|
785
785
|
var e = Symbol("openapi");
|
|
786
786
|
var n = ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"];
|
|
787
787
|
var s2 = (e2) => e2.charAt(0).toUpperCase() + e2.slice(1);
|