@mastra/server 0.0.0-default-storage-virtual-file-20250410035748 → 0.0.0-experimental-agent-builder-20250815195917
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/LICENSE.md +15 -0
- package/README.md +48 -135
- package/dist/chunk-4CEZIJWJ.cjs +150 -0
- package/dist/chunk-4CEZIJWJ.cjs.map +1 -0
- package/dist/chunk-4MQU6AJN.js +83 -0
- package/dist/chunk-4MQU6AJN.js.map +1 -0
- package/dist/{chunk-QN4KF3BH.cjs → chunk-4QSNRCOT.cjs} +4 -2
- package/dist/chunk-4QSNRCOT.cjs.map +1 -0
- package/dist/chunk-4US5W7PH.cjs +120 -0
- package/dist/chunk-4US5W7PH.cjs.map +1 -0
- package/dist/chunk-5AKR33BI.js +333 -0
- package/dist/chunk-5AKR33BI.js.map +1 -0
- package/dist/chunk-7FHF55WA.js +2041 -0
- package/dist/chunk-7FHF55WA.js.map +1 -0
- package/dist/{chunk-FV45V6WC.cjs → chunk-7NADHFD2.cjs} +3 -7
- package/dist/chunk-7NADHFD2.cjs.map +1 -0
- package/dist/chunk-BED2O446.cjs +88 -0
- package/dist/chunk-BED2O446.cjs.map +1 -0
- package/dist/chunk-BUOJL3MN.js +529 -0
- package/dist/chunk-BUOJL3MN.js.map +1 -0
- package/dist/chunk-CY4TP3FK.js +16 -0
- package/dist/chunk-CY4TP3FK.js.map +1 -0
- package/dist/chunk-EBNIUZRY.cjs +344 -0
- package/dist/chunk-EBNIUZRY.cjs.map +1 -0
- package/dist/{chunk-4JINXASC.js → chunk-G7NVCO5M.js} +7 -4
- package/dist/chunk-G7NVCO5M.js.map +1 -0
- package/dist/chunk-GX25CWC7.cjs +588 -0
- package/dist/chunk-GX25CWC7.cjs.map +1 -0
- package/dist/{chunk-3RVHWGWO.js → chunk-HWHKM67I.js} +38 -19
- package/dist/chunk-HWHKM67I.js.map +1 -0
- package/dist/{chunk-CWSDZEZG.cjs → chunk-ILCWPBYQ.cjs} +20 -12
- package/dist/chunk-ILCWPBYQ.cjs.map +1 -0
- package/dist/chunk-JGVY3KWV.cjs +334 -0
- package/dist/chunk-JGVY3KWV.cjs.map +1 -0
- package/dist/chunk-JNWFG7JP.js +476 -0
- package/dist/chunk-JNWFG7JP.js.map +1 -0
- package/dist/chunk-KXNFZXLG.cjs +484 -0
- package/dist/chunk-KXNFZXLG.cjs.map +1 -0
- package/dist/chunk-L7YG7WQH.js +151 -0
- package/dist/chunk-L7YG7WQH.js.map +1 -0
- package/dist/chunk-LRUH33B4.cjs +2044 -0
- package/dist/chunk-LRUH33B4.cjs.map +1 -0
- package/dist/{chunk-TRDNDNGQ.js → chunk-MMROOK5J.js} +4 -7
- package/dist/chunk-MMROOK5J.js.map +1 -0
- package/dist/{chunk-M56ECCHK.cjs → chunk-NCS2OXX6.cjs} +22 -19
- package/dist/chunk-NCS2OXX6.cjs.map +1 -0
- package/dist/{chunk-4C3EPMMF.cjs → chunk-O4I563YW.cjs} +33 -25
- package/dist/chunk-O4I563YW.cjs.map +1 -0
- package/dist/{chunk-L7XE5QTW.js → chunk-OW4FX5TS.js} +3 -1
- package/dist/chunk-OW4FX5TS.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-Q7SFCCGT.cjs +11 -0
- package/dist/chunk-Q7SFCCGT.cjs.map +1 -0
- package/dist/chunk-RE4RPXT2.cjs +18 -0
- package/dist/chunk-RE4RPXT2.cjs.map +1 -0
- package/dist/chunk-RQQNZZAI.cjs +159 -0
- package/dist/chunk-RQQNZZAI.cjs.map +1 -0
- package/dist/chunk-S37KCGOR.cjs +546 -0
- package/dist/chunk-S37KCGOR.cjs.map +1 -0
- package/dist/{chunk-DVPP5S6I.js → chunk-SQ7KKIH3.js} +16 -8
- package/dist/chunk-SQ7KKIH3.js.map +1 -0
- package/dist/{chunk-ILW7XYNJ.js → chunk-UVOSITKU.js} +92 -66
- package/dist/chunk-UVOSITKU.js.map +1 -0
- package/dist/{chunk-2YONKUWB.js → chunk-Y3J45CVZ.js} +60 -33
- package/dist/chunk-Y3J45CVZ.js.map +1 -0
- package/dist/{chunk-YNSGUC2O.js → chunk-YS66MFDY.js} +16 -8
- package/dist/chunk-YS66MFDY.js.map +1 -0
- package/dist/chunk-ZKJZQN24.js +571 -0
- package/dist/chunk-ZKJZQN24.js.map +1 -0
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/server/a2a/protocol.d.ts +8 -0
- package/dist/server/a2a/protocol.d.ts.map +1 -0
- package/dist/server/a2a/store.cjs +25 -0
- package/dist/server/a2a/store.cjs.map +1 -0
- package/dist/server/a2a/store.d.ts +14 -0
- package/dist/server/a2a/store.d.ts.map +1 -0
- package/dist/server/a2a/store.js +23 -0
- package/dist/server/a2a/store.js.map +1 -0
- package/dist/server/a2a/tasks.d.ts +20 -0
- package/dist/server/a2a/tasks.d.ts.map +1 -0
- package/dist/server/handlers/a2a.cjs +32 -0
- package/dist/server/handlers/a2a.cjs.map +1 -0
- package/dist/server/handlers/a2a.d.ts +68 -0
- package/dist/server/handlers/a2a.d.ts.map +1 -0
- package/dist/server/handlers/a2a.js +3 -0
- package/dist/server/handlers/a2a.js.map +1 -0
- package/dist/server/handlers/agents.cjs +21 -7
- package/dist/server/handlers/agents.cjs.map +1 -0
- package/dist/server/handlers/agents.d.ts +90 -6
- package/dist/server/handlers/agents.d.ts.map +1 -0
- package/dist/server/handlers/agents.js +3 -1
- package/dist/server/handlers/agents.js.map +1 -0
- package/dist/server/handlers/error.cjs +4 -2
- package/dist/server/handlers/error.cjs.map +1 -0
- package/dist/server/handlers/error.d.ts +2 -1
- package/dist/server/handlers/error.d.ts.map +1 -0
- package/dist/server/handlers/error.js +3 -1
- package/dist/server/handlers/error.js.map +1 -0
- package/dist/server/handlers/legacyWorkflows.cjs +48 -0
- package/dist/server/handlers/legacyWorkflows.cjs.map +1 -0
- package/dist/server/handlers/legacyWorkflows.d.ts +59 -0
- package/dist/server/handlers/legacyWorkflows.d.ts.map +1 -0
- package/dist/server/handlers/legacyWorkflows.js +3 -0
- package/dist/server/handlers/legacyWorkflows.js.map +1 -0
- package/dist/server/handlers/logs.cjs +6 -4
- package/dist/server/handlers/logs.cjs.map +1 -0
- package/dist/server/handlers/logs.d.ts +34 -3
- package/dist/server/handlers/logs.d.ts.map +1 -0
- package/dist/server/handlers/logs.js +3 -1
- package/dist/server/handlers/logs.js.map +1 -0
- package/dist/server/handlers/memory.cjs +39 -9
- package/dist/server/handlers/memory.cjs.map +1 -0
- package/dist/server/handlers/memory.d.ts +119 -8
- package/dist/server/handlers/memory.d.ts.map +1 -0
- package/dist/server/handlers/memory.js +3 -1
- package/dist/server/handlers/memory.js.map +1 -0
- package/dist/server/handlers/network.cjs +7 -5
- package/dist/server/handlers/network.cjs.map +1 -0
- package/dist/server/handlers/network.d.ts +50 -4
- package/dist/server/handlers/network.d.ts.map +1 -0
- package/dist/server/handlers/network.js +3 -1
- package/dist/server/handlers/network.js.map +1 -0
- package/dist/server/handlers/scores.cjs +32 -0
- package/dist/server/handlers/scores.cjs.map +1 -0
- package/dist/server/handlers/scores.d.ts +49 -0
- package/dist/server/handlers/scores.d.ts.map +1 -0
- package/dist/server/handlers/scores.js +3 -0
- package/dist/server/handlers/scores.js.map +1 -0
- package/dist/server/handlers/telemetry.cjs +5 -3
- package/dist/server/handlers/telemetry.cjs.map +1 -0
- package/dist/server/handlers/telemetry.d.ts +32 -2
- package/dist/server/handlers/telemetry.d.ts.map +1 -0
- package/dist/server/handlers/telemetry.js +3 -1
- package/dist/server/handlers/telemetry.js.map +1 -0
- package/dist/server/handlers/tools.cjs +7 -5
- package/dist/server/handlers/tools.cjs.map +1 -0
- package/dist/server/handlers/tools.d.ts +21 -4
- package/dist/server/handlers/tools.d.ts.map +1 -0
- package/dist/server/handlers/tools.js +3 -1
- package/dist/server/handlers/tools.js.map +1 -0
- package/dist/server/handlers/utils.cjs +4 -2
- package/dist/server/handlers/utils.cjs.map +1 -0
- package/dist/server/handlers/utils.d.ts +2 -1
- package/dist/server/handlers/utils.d.ts.map +1 -0
- package/dist/server/handlers/utils.js +3 -1
- package/dist/server/handlers/utils.js.map +1 -0
- package/dist/server/handlers/vNextNetwork.cjs +220 -0
- package/dist/server/handlers/vNextNetwork.cjs.map +1 -0
- package/dist/server/handlers/vNextNetwork.d.ts +179 -0
- package/dist/server/handlers/vNextNetwork.d.ts.map +1 -0
- package/dist/server/handlers/vNextNetwork.js +213 -0
- package/dist/server/handlers/vNextNetwork.js.map +1 -0
- package/dist/server/handlers/vector.cjs +9 -7
- package/dist/server/handlers/vector.cjs.map +1 -0
- package/dist/server/handlers/vector.d.ts +51 -6
- package/dist/server/handlers/vector.d.ts.map +1 -0
- package/dist/server/handlers/vector.js +3 -1
- package/dist/server/handlers/vector.js.map +1 -0
- package/dist/server/handlers/voice.cjs +10 -4
- package/dist/server/handlers/voice.cjs.map +1 -0
- package/dist/server/handlers/voice.d.ts +39 -3
- package/dist/server/handlers/voice.d.ts.map +1 -0
- package/dist/server/handlers/voice.js +3 -1
- package/dist/server/handlers/voice.js.map +1 -0
- package/dist/server/handlers/workflows.cjs +35 -13
- package/dist/server/handlers/workflows.cjs.map +1 -0
- package/dist/server/handlers/workflows.d.ts +88 -10
- package/dist/server/handlers/workflows.d.ts.map +1 -0
- package/dist/server/handlers/workflows.js +3 -1
- package/dist/server/handlers/workflows.js.map +1 -0
- package/dist/server/handlers.cjs +44 -27
- package/dist/server/handlers.cjs.map +1 -0
- package/dist/server/handlers.d.ts +13 -9
- package/dist/server/handlers.d.ts.map +1 -0
- package/dist/server/handlers.js +14 -9
- package/dist/server/handlers.js.map +1 -0
- package/dist/server/http-exception.d.ts +87 -0
- package/dist/server/http-exception.d.ts.map +1 -0
- package/dist/server/types.d.ts +10 -0
- package/dist/server/types.d.ts.map +1 -0
- package/package.json +31 -18
- package/LICENSE +0 -44
- package/dist/_tsup-dts-rollup.d.cts +0 -564
- package/dist/_tsup-dts-rollup.d.ts +0 -564
- package/dist/chunk-2FJURXCL.cjs +0 -213
- package/dist/chunk-2JQC6JWP.js +0 -46
- package/dist/chunk-3AHQ5RGN.js +0 -11
- package/dist/chunk-5JOF627H.cjs +0 -123
- package/dist/chunk-A7DF4ETD.cjs +0 -100
- package/dist/chunk-BMA2ORRT.js +0 -152
- package/dist/chunk-GV52BII2.cjs +0 -160
- package/dist/chunk-QH6XWSXP.cjs +0 -5579
- package/dist/chunk-RBQASTUP.js +0 -203
- package/dist/chunk-VB7KH62D.cjs +0 -51
- package/dist/chunk-VK6FX47H.js +0 -5576
- package/dist/chunk-X37I6GZT.cjs +0 -308
- package/dist/chunk-ZLBRQFDD.cjs +0 -13
- package/dist/index.d.cts +0 -1
- package/dist/server/handlers/agents.d.cts +0 -6
- package/dist/server/handlers/error.d.cts +0 -1
- package/dist/server/handlers/logs.d.cts +0 -3
- package/dist/server/handlers/memory.d.cts +0 -8
- package/dist/server/handlers/network.d.cts +0 -4
- package/dist/server/handlers/telemetry.d.cts +0 -2
- package/dist/server/handlers/tools.d.cts +0 -4
- package/dist/server/handlers/utils.d.cts +0 -1
- package/dist/server/handlers/vector.d.cts +0 -6
- package/dist/server/handlers/voice.d.cts +0 -3
- package/dist/server/handlers/workflows.d.cts +0 -10
- package/dist/server/handlers.d.cts +0 -9
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { cancelWorkflowRunHandler, createWorkflowRunHandler, getWorkflowByIdHandler, getWorkflowRunByIdHandler, getWorkflowRunExecutionResultHandler, getWorkflowRunsHandler, getWorkflowsHandler, resumeAsyncWorkflowHandler, resumeWorkflowHandler, sendWorkflowRunEventHandler, startAsyncWorkflowHandler, startWorkflowRunHandler, streamVNextWorkflowHandler, streamWorkflowHandler, watchWorkflowHandler } from '../../chunk-BUOJL3MN.js';
|
|
2
|
+
//# sourceMappingURL=workflows.js.map
|
|
3
|
+
//# sourceMappingURL=workflows.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"workflows.js"}
|
package/dist/server/handlers.cjs
CHANGED
|
@@ -1,50 +1,67 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
3
|
+
var chunk4US5W7PH_cjs = require('../chunk-4US5W7PH.cjs');
|
|
4
|
+
var chunkS37KCGOR_cjs = require('../chunk-S37KCGOR.cjs');
|
|
5
|
+
var chunkGX25CWC7_cjs = require('../chunk-GX25CWC7.cjs');
|
|
6
|
+
var chunk4CEZIJWJ_cjs = require('../chunk-4CEZIJWJ.cjs');
|
|
7
|
+
var chunkRQQNZZAI_cjs = require('../chunk-RQQNZZAI.cjs');
|
|
8
|
+
var chunkILCWPBYQ_cjs = require('../chunk-ILCWPBYQ.cjs');
|
|
9
|
+
var chunkO4I563YW_cjs = require('../chunk-O4I563YW.cjs');
|
|
10
|
+
var chunkNCS2OXX6_cjs = require('../chunk-NCS2OXX6.cjs');
|
|
11
|
+
var chunkKXNFZXLG_cjs = require('../chunk-KXNFZXLG.cjs');
|
|
12
|
+
var chunkEBNIUZRY_cjs = require('../chunk-EBNIUZRY.cjs');
|
|
13
|
+
var chunkJGVY3KWV_cjs = require('../chunk-JGVY3KWV.cjs');
|
|
14
|
+
var chunkBED2O446_cjs = require('../chunk-BED2O446.cjs');
|
|
12
15
|
|
|
13
16
|
|
|
14
17
|
|
|
15
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "voice", {
|
|
16
19
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk4US5W7PH_cjs.voice_exports; }
|
|
18
21
|
});
|
|
19
|
-
Object.defineProperty(exports, "
|
|
22
|
+
Object.defineProperty(exports, "workflows", {
|
|
20
23
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkS37KCGOR_cjs.workflows_exports; }
|
|
22
25
|
});
|
|
23
|
-
Object.defineProperty(exports, "
|
|
26
|
+
Object.defineProperty(exports, "memory", {
|
|
24
27
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkGX25CWC7_cjs.memory_exports; }
|
|
26
29
|
});
|
|
27
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "network", {
|
|
28
31
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk4CEZIJWJ_cjs.network_exports; }
|
|
30
33
|
});
|
|
31
|
-
Object.defineProperty(exports, "
|
|
34
|
+
Object.defineProperty(exports, "scores", {
|
|
32
35
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkRQQNZZAI_cjs.scores_exports; }
|
|
34
37
|
});
|
|
35
|
-
Object.defineProperty(exports, "
|
|
38
|
+
Object.defineProperty(exports, "telemetry", {
|
|
36
39
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkILCWPBYQ_cjs.telemetry_exports; }
|
|
38
41
|
});
|
|
39
|
-
Object.defineProperty(exports, "
|
|
42
|
+
Object.defineProperty(exports, "tools", {
|
|
40
43
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkO4I563YW_cjs.tools_exports; }
|
|
42
45
|
});
|
|
43
|
-
Object.defineProperty(exports, "
|
|
46
|
+
Object.defineProperty(exports, "vector", {
|
|
44
47
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkNCS2OXX6_cjs.vector_exports; }
|
|
46
49
|
});
|
|
47
|
-
Object.defineProperty(exports, "
|
|
50
|
+
Object.defineProperty(exports, "a2a", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkKXNFZXLG_cjs.a2a_exports; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "agents", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkEBNIUZRY_cjs.agents_exports; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "legacyWorkflows", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkJGVY3KWV_cjs.legacyWorkflows_exports; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "logs", {
|
|
48
63
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkBED2O446_cjs.logs_exports; }
|
|
50
65
|
});
|
|
66
|
+
//# sourceMappingURL=handlers.cjs.map
|
|
67
|
+
//# sourceMappingURL=handlers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"handlers.cjs"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
1
|
+
export * as agents from './handlers/agents.js';
|
|
2
|
+
export * as a2a from './handlers/a2a.js';
|
|
3
|
+
export * as legacyWorkflows from './handlers/legacyWorkflows.js';
|
|
4
|
+
export * as logs from './handlers/logs.js';
|
|
5
|
+
export * as memory from './handlers/memory.js';
|
|
6
|
+
export * as network from './handlers/network.js';
|
|
7
|
+
export * as scores from './handlers/scores.js';
|
|
8
|
+
export * as telemetry from './handlers/telemetry.js';
|
|
9
|
+
export * as tools from './handlers/tools.js';
|
|
10
|
+
export * as vector from './handlers/vector.js';
|
|
11
|
+
export * as voice from './handlers/voice.js';
|
|
12
|
+
export * as workflows from './handlers/workflows.js';
|
|
13
|
+
//# sourceMappingURL=handlers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handlers.d.ts","sourceRoot":"","sources":["../../src/server/handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,gBAAgB,CAAC;AACtC,OAAO,KAAK,eAAe,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
|
package/dist/server/handlers.js
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
1
|
+
export { voice_exports as voice } from '../chunk-HWHKM67I.js';
|
|
2
|
+
export { workflows_exports as workflows } from '../chunk-BUOJL3MN.js';
|
|
3
|
+
export { memory_exports as memory } from '../chunk-ZKJZQN24.js';
|
|
4
|
+
export { network_exports as network } from '../chunk-Y3J45CVZ.js';
|
|
5
|
+
export { scores_exports as scores } from '../chunk-L7YG7WQH.js';
|
|
6
|
+
export { telemetry_exports as telemetry } from '../chunk-SQ7KKIH3.js';
|
|
7
|
+
export { tools_exports as tools } from '../chunk-YS66MFDY.js';
|
|
8
|
+
export { vector_exports as vector } from '../chunk-G7NVCO5M.js';
|
|
9
|
+
export { a2a_exports as a2a } from '../chunk-JNWFG7JP.js';
|
|
10
|
+
export { agents_exports as agents } from '../chunk-5AKR33BI.js';
|
|
11
|
+
export { legacyWorkflows_exports as legacyWorkflows } from '../chunk-UVOSITKU.js';
|
|
12
|
+
export { logs_exports as logs } from '../chunk-4MQU6AJN.js';
|
|
13
|
+
//# sourceMappingURL=handlers.js.map
|
|
14
|
+
//# sourceMappingURL=handlers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"handlers.js"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module
|
|
3
|
+
* This module provides the `HTTPException` class.
|
|
4
|
+
*/
|
|
5
|
+
type InfoStatusCode = 100 | 101 | 102 | 103;
|
|
6
|
+
type SuccessStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
|
|
7
|
+
type DeprecatedStatusCode = 305 | 306;
|
|
8
|
+
type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | DeprecatedStatusCode | 307 | 308;
|
|
9
|
+
type ClientErrorStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451;
|
|
10
|
+
type ServerErrorStatusCode = 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511;
|
|
11
|
+
/**
|
|
12
|
+
* `UnofficialStatusCode` can be used to specify an unofficial status code.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* app.get('/unknown', (c) => {
|
|
17
|
+
* return c.text("Unknown Error", 520 as UnofficialStatusCode)
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export type UnofficialStatusCode = -1;
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated
|
|
24
|
+
* Use `UnofficialStatusCode` instead.
|
|
25
|
+
*/
|
|
26
|
+
export type UnOfficalStatusCode = UnofficialStatusCode;
|
|
27
|
+
/**
|
|
28
|
+
* If you want to use an unofficial status, use `UnofficialStatusCode`.
|
|
29
|
+
*/
|
|
30
|
+
export type StatusCode = InfoStatusCode | SuccessStatusCode | RedirectStatusCode | ClientErrorStatusCode | ServerErrorStatusCode | UnofficialStatusCode;
|
|
31
|
+
/**
|
|
32
|
+
* Options for creating an `HTTPException`.
|
|
33
|
+
* @property res - Optional response object to use.
|
|
34
|
+
* @property message - Optional custom error message.
|
|
35
|
+
* @property cause - Optional cause of the error.
|
|
36
|
+
* @property stack - Optional stack trace for the error.
|
|
37
|
+
*/
|
|
38
|
+
type HTTPExceptionOptions = {
|
|
39
|
+
res?: Response;
|
|
40
|
+
message?: string;
|
|
41
|
+
cause?: unknown;
|
|
42
|
+
stack?: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* `HTTPException` must be used when a fatal error such as authentication failure occurs.
|
|
46
|
+
*
|
|
47
|
+
* @see {@link https://hono.dev/docs/api/exception}
|
|
48
|
+
*
|
|
49
|
+
* @param {StatusCode} status - status code of HTTPException
|
|
50
|
+
* @param {HTTPExceptionOptions} options - options of HTTPException
|
|
51
|
+
* @param {HTTPExceptionOptions["res"]} options.res - response of options of HTTPException
|
|
52
|
+
* @param {HTTPExceptionOptions["message"]} options.message - message of options of HTTPException
|
|
53
|
+
* @param {HTTPExceptionOptions["cause"]} options.cause - cause of options of HTTPException
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* import { HTTPException } from 'hono/http-exception'
|
|
58
|
+
*
|
|
59
|
+
* // ...
|
|
60
|
+
*
|
|
61
|
+
* app.post('/auth', async (c, next) => {
|
|
62
|
+
* // authentication
|
|
63
|
+
* if (authorized === false) {
|
|
64
|
+
* throw new HTTPException(401, { message: 'Custom error message' })
|
|
65
|
+
* }
|
|
66
|
+
* await next()
|
|
67
|
+
* })
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
export declare class HTTPException extends Error {
|
|
71
|
+
readonly res?: Response;
|
|
72
|
+
readonly status: StatusCode;
|
|
73
|
+
/**
|
|
74
|
+
* Creates an instance of `HTTPException`.
|
|
75
|
+
* @param status - HTTP status code for the exception. Defaults to 500.
|
|
76
|
+
* @param options - Additional options for the exception.
|
|
77
|
+
*/
|
|
78
|
+
constructor(status?: StatusCode, options?: HTTPExceptionOptions);
|
|
79
|
+
/**
|
|
80
|
+
* Returns the response object associated with the exception.
|
|
81
|
+
* If a response object is not provided, a new response is created with the error message and status code.
|
|
82
|
+
* @returns The response object.
|
|
83
|
+
*/
|
|
84
|
+
getResponse(): Response;
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
87
|
+
//# sourceMappingURL=http-exception.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-exception.d.ts","sourceRoot":"","sources":["../../src/server/http-exception.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAEH,KAAK,cAAc,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAC5C,KAAK,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AACnF,KAAK,oBAAoB,GAAG,GAAG,GAAG,GAAG,CAAC;AACtC,KAAK,kBAAkB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,oBAAoB,GAAG,GAAG,GAAG,GAAG,CAAC;AACzF,KAAK,qBAAqB,GACtB,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,GACH,GAAG,CAAC;AACR,KAAK,qBAAqB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAE7F;;;;;;;;;GASG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,oBAAoB,CAAC;AAEzB;;;;;;GAMG;AACH,KAAK,oBAAoB,GAAG;IAC1B,GAAG,CAAC,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,aAAc,SAAQ,KAAK;IACtC,QAAQ,CAAC,GAAG,CAAC,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAE5B;;;;OAIG;gBACS,MAAM,GAAE,UAAgB,EAAE,OAAO,CAAC,EAAE,oBAAoB;IAOpE;;;;OAIG;IACH,WAAW,IAAI,QAAQ;CAYxB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { MastraError } from '@mastra/core/error';
|
|
2
|
+
import type { Mastra } from '@mastra/core/mastra';
|
|
3
|
+
export interface ApiError extends MastraError {
|
|
4
|
+
message: string;
|
|
5
|
+
status?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Context {
|
|
8
|
+
mastra: Mastra;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,MAAM,WAAW,QAAS,SAAQ,WAAW;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,OAAO;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-experimental-agent-builder-20250815195917",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
16
|
},
|
|
17
17
|
"require": {
|
|
18
|
-
"types": "./dist/index.d.
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
19
|
"default": "./dist/index.cjs"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"default": "./dist/server/handlers.js"
|
|
26
26
|
},
|
|
27
27
|
"require": {
|
|
28
|
-
"types": "./dist/server/handlers.d.
|
|
28
|
+
"types": "./dist/server/handlers.d.ts",
|
|
29
29
|
"default": "./dist/server/handlers.cjs"
|
|
30
30
|
}
|
|
31
31
|
},
|
|
@@ -35,34 +35,47 @@
|
|
|
35
35
|
"default": "./dist/server/handlers/*.js"
|
|
36
36
|
},
|
|
37
37
|
"require": {
|
|
38
|
-
"types": "./dist/server/handlers/*.d.
|
|
38
|
+
"types": "./dist/server/handlers/*.d.ts",
|
|
39
39
|
"default": "./dist/server/handlers/*.cjs"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
|
+
"./a2a/store": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/server/a2a/store.d.ts",
|
|
45
|
+
"default": "./dist/server/a2a/store.js"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/server/a2a/store.d.ts",
|
|
49
|
+
"default": "./dist/server/a2a/store.cjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
42
52
|
"./package.json": "./package.json"
|
|
43
53
|
},
|
|
44
54
|
"keywords": [],
|
|
45
55
|
"author": "",
|
|
46
|
-
"license": "
|
|
47
|
-
"dependencies": {},
|
|
56
|
+
"license": "Apache-2.0",
|
|
48
57
|
"peerDependencies": {
|
|
49
|
-
"
|
|
58
|
+
"zod": "^3.0.0",
|
|
59
|
+
"@mastra/core": "0.0.0-experimental-agent-builder-20250815195917"
|
|
50
60
|
},
|
|
51
61
|
"devDependencies": {
|
|
52
|
-
"@ai-sdk/openai": "^1.3.
|
|
53
|
-
"@microsoft/api-extractor": "^7.52.
|
|
54
|
-
"@types/node": "^20.
|
|
55
|
-
"eslint": "^9.
|
|
62
|
+
"@ai-sdk/openai": "^1.3.22",
|
|
63
|
+
"@microsoft/api-extractor": "^7.52.8",
|
|
64
|
+
"@types/node": "^20.19.0",
|
|
65
|
+
"eslint": "^9.30.1",
|
|
56
66
|
"superjson": "^2.2.2",
|
|
57
|
-
"tsup": "^8.
|
|
58
|
-
"typescript": "^5.8.
|
|
59
|
-
"vitest": "^2.
|
|
60
|
-
"zod
|
|
61
|
-
"
|
|
62
|
-
"@
|
|
67
|
+
"tsup": "^8.5.0",
|
|
68
|
+
"typescript": "^5.8.3",
|
|
69
|
+
"vitest": "^3.2.4",
|
|
70
|
+
"zod": "^3.25.67",
|
|
71
|
+
"zod-to-json-schema": "^3.24.5",
|
|
72
|
+
"@internal/lint": "0.0.0-experimental-agent-builder-20250815195917",
|
|
73
|
+
"@internal/storage-test-utils": "0.0.25",
|
|
74
|
+
"@internal/types-builder": "0.0.0-experimental-agent-builder-20250815195917",
|
|
75
|
+
"@mastra/core": "0.0.0-experimental-agent-builder-20250815195917"
|
|
63
76
|
},
|
|
64
77
|
"scripts": {
|
|
65
|
-
"build": "tsup
|
|
78
|
+
"build": "tsup --silent --config tsup.config.ts",
|
|
66
79
|
"build:watch": "pnpm build --watch",
|
|
67
80
|
"pull:openapispec": "node src/server/openapi.script.js",
|
|
68
81
|
"test": "vitest run",
|
package/LICENSE
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
Elastic License 2.0 (ELv2)
|
|
2
|
-
|
|
3
|
-
**Acceptance**
|
|
4
|
-
By using the software, you agree to all of the terms and conditions below.
|
|
5
|
-
|
|
6
|
-
**Copyright License**
|
|
7
|
-
The licensor grants you a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable license to use, copy, distribute, make available, and prepare derivative works of the software, in each case subject to the limitations and conditions below
|
|
8
|
-
|
|
9
|
-
**Limitations**
|
|
10
|
-
You may not provide the software to third parties as a hosted or managed service, where the service provides users with access to any substantial set of the features or functionality of the software.
|
|
11
|
-
|
|
12
|
-
You may not move, change, disable, or circumvent the license key functionality in the software, and you may not remove or obscure any functionality in the software that is protected by the license key.
|
|
13
|
-
|
|
14
|
-
You may not alter, remove, or obscure any licensing, copyright, or other notices of the licensor in the software. Any use of the licensor’s trademarks is subject to applicable law.
|
|
15
|
-
|
|
16
|
-
**Patents**
|
|
17
|
-
The licensor grants you a license, under any patent claims the licensor can license, or becomes able to license, to make, have made, use, sell, offer for sale, import and have imported the software, in each case subject to the limitations and conditions in this license. This license does not cover any patent claims that you cause to be infringed by modifications or additions to the software. If you or your company make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
18
|
-
|
|
19
|
-
**Notices**
|
|
20
|
-
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms.
|
|
21
|
-
|
|
22
|
-
If you modify the software, you must include in any modified copies of the software prominent notices stating that you have modified the software.
|
|
23
|
-
|
|
24
|
-
**No Other Rights**
|
|
25
|
-
These terms do not imply any licenses other than those expressly granted in these terms.
|
|
26
|
-
|
|
27
|
-
**Termination**
|
|
28
|
-
If you use the software in violation of these terms, such use is not licensed, and your licenses will automatically terminate. If the licensor provides you with a notice of your violation, and you cease all violation of this license no later than 30 days after you receive that notice, your licenses will be reinstated retroactively. However, if you violate these terms after such reinstatement, any additional violation of these terms will cause your licenses to terminate automatically and permanently.
|
|
29
|
-
|
|
30
|
-
**No Liability**
|
|
31
|
-
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
32
|
-
|
|
33
|
-
**Definitions**
|
|
34
|
-
The _licensor_ is the entity offering these terms, and the _software_ is the software the licensor makes available under these terms, including any portion of it.
|
|
35
|
-
|
|
36
|
-
_you_ refers to the individual or entity agreeing to these terms.
|
|
37
|
-
|
|
38
|
-
_your company_ is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. _control_ means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
39
|
-
|
|
40
|
-
_your licenses_ are all the licenses granted to you for the software under these terms.
|
|
41
|
-
|
|
42
|
-
_use_ means anything you do with the software requiring one of your licenses.
|
|
43
|
-
|
|
44
|
-
_trademark_ means trademarks, service marks, and similar rights.
|