@mastra/server 1.13.3-alpha.1 → 1.14.0-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.
Files changed (65) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/_types/@internal_core/dist/index.d.ts +1333 -0
  3. package/dist/chunk-2UVJD67W.cjs +136 -0
  4. package/dist/chunk-2UVJD67W.cjs.map +1 -0
  5. package/dist/chunk-4VGZOVOI.js +656 -0
  6. package/dist/chunk-4VGZOVOI.js.map +1 -0
  7. package/dist/{chunk-A2443FGH.js → chunk-55AD3MAT.js} +24 -18
  8. package/dist/chunk-55AD3MAT.js.map +1 -0
  9. package/dist/{observational-memory-XXD6E2SO-RTIRYSYO.cjs → chunk-A6HL3JRC.cjs} +306 -130
  10. package/dist/chunk-A6HL3JRC.cjs.map +1 -0
  11. package/dist/{observational-memory-XXD6E2SO-TGAG7QCA.js → chunk-KZAB4IB3.js} +305 -131
  12. package/dist/chunk-KZAB4IB3.js.map +1 -0
  13. package/dist/{chunk-4AR4SH3H.cjs → chunk-L6ANZUEK.cjs} +7 -7
  14. package/dist/{chunk-4AR4SH3H.cjs.map → chunk-L6ANZUEK.cjs.map} +1 -1
  15. package/dist/{chunk-SFC2UJ2C.js → chunk-LE6IX2DD.js} +6 -6
  16. package/dist/{chunk-SFC2UJ2C.js.map → chunk-LE6IX2DD.js.map} +1 -1
  17. package/dist/chunk-LUHJDABR.cjs +675 -0
  18. package/dist/chunk-LUHJDABR.cjs.map +1 -0
  19. package/dist/{chunk-7P6XT5WB.cjs → chunk-OXZCCCIJ.cjs} +28 -22
  20. package/dist/chunk-OXZCCCIJ.cjs.map +1 -0
  21. package/dist/chunk-RSIZIEPW.js +131 -0
  22. package/dist/chunk-RSIZIEPW.js.map +1 -0
  23. package/dist/docs/SKILL.md +1 -1
  24. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  25. package/dist/observational-memory-UEDVTWS2-COV6JJZK.js +3 -0
  26. package/dist/observational-memory-UEDVTWS2-COV6JJZK.js.map +1 -0
  27. package/dist/observational-memory-UEDVTWS2-TU3KK4ZG.cjs +68 -0
  28. package/dist/observational-memory-UEDVTWS2-TU3KK4ZG.cjs.map +1 -0
  29. package/dist/server/handlers/agent-builder.cjs +16 -16
  30. package/dist/server/handlers/agent-builder.js +1 -1
  31. package/dist/server/handlers/observability-new-endpoints.cjs +80 -0
  32. package/dist/server/handlers/observability-new-endpoints.cjs.map +1 -0
  33. package/dist/server/handlers/observability-new-endpoints.d.ts +1212 -0
  34. package/dist/server/handlers/observability-new-endpoints.d.ts.map +1 -0
  35. package/dist/server/handlers/observability-new-endpoints.js +3 -0
  36. package/dist/server/handlers/observability-new-endpoints.js.map +1 -0
  37. package/dist/server/handlers/observability-shared.cjs +24 -0
  38. package/dist/server/handlers/observability-shared.cjs.map +1 -0
  39. package/dist/server/handlers/observability-shared.d.ts +126 -0
  40. package/dist/server/handlers/observability-shared.d.ts.map +1 -0
  41. package/dist/server/handlers/observability-shared.js +3 -0
  42. package/dist/server/handlers/observability-shared.js.map +1 -0
  43. package/dist/server/handlers/observability.cjs +78 -5
  44. package/dist/server/handlers/observability.d.ts +22 -20
  45. package/dist/server/handlers/observability.d.ts.map +1 -1
  46. package/dist/server/handlers/observability.js +2 -1
  47. package/dist/server/handlers.cjs +10 -10
  48. package/dist/server/handlers.js +3 -3
  49. package/dist/server/schemas/index.cjs +82 -82
  50. package/dist/server/schemas/index.js +2 -2
  51. package/dist/server/server-adapter/index.cjs +43 -24
  52. package/dist/server/server-adapter/index.cjs.map +1 -1
  53. package/dist/server/server-adapter/index.js +25 -6
  54. package/dist/server/server-adapter/index.js.map +1 -1
  55. package/dist/server/server-adapter/routes/observability.d.ts +531 -21
  56. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -1
  57. package/package.json +6 -5
  58. package/dist/chunk-3NG2FRSI.js +0 -41
  59. package/dist/chunk-3NG2FRSI.js.map +0 -1
  60. package/dist/chunk-5ZBS3CWT.cjs +0 -43
  61. package/dist/chunk-5ZBS3CWT.cjs.map +0 -1
  62. package/dist/chunk-7P6XT5WB.cjs.map +0 -1
  63. package/dist/chunk-A2443FGH.js.map +0 -1
  64. package/dist/observational-memory-XXD6E2SO-RTIRYSYO.cjs.map +0 -1
  65. package/dist/observational-memory-XXD6E2SO-TGAG7QCA.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observability-new-endpoints.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/observability-new-endpoints.ts"],"names":[],"mappings":"AA2CA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsD7B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAapB,CAAC;AAMH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAatB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQvB,CAAC;AAMH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAaxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQ1B,CAAC;AAMH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQ/B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQ/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAQjC,CAAC;AAMH,eAAO,MAAM,gBAAgB;;;;;;yCAQ3B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;yCAQhC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;yCAQlC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;yCAM3B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;yCAQ3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;yCAM5B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;yCAM3B,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;yCAQnB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBtB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CREATE_FEEDBACK, CREATE_SCORE, GET_ENTITY_NAMES, GET_ENTITY_TYPES, GET_ENVIRONMENTS, GET_METRIC_AGGREGATE, GET_METRIC_BREAKDOWN, GET_METRIC_LABEL_KEYS, GET_METRIC_LABEL_VALUES, GET_METRIC_NAMES, GET_METRIC_PERCENTILES, GET_METRIC_TIME_SERIES, GET_SERVICE_NAMES, GET_TAGS, LIST_FEEDBACK, LIST_LOGS, LIST_SCORES, NEW_ROUTES } from '../../chunk-4VGZOVOI.js';
2
+ //# sourceMappingURL=observability-new-endpoints.js.map
3
+ //# sourceMappingURL=observability-new-endpoints.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"observability-new-endpoints.js"}
@@ -0,0 +1,24 @@
1
+ 'use strict';
2
+
3
+ var chunk2UVJD67W_cjs = require('../../chunk-2UVJD67W.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "NEW_OBSERVABILITY_UPGRADE_MESSAGE", {
8
+ enumerable: true,
9
+ get: function () { return chunk2UVJD67W_cjs.NEW_OBSERVABILITY_UPGRADE_MESSAGE; }
10
+ });
11
+ Object.defineProperty(exports, "NEW_ROUTE_DEFS", {
12
+ enumerable: true,
13
+ get: function () { return chunk2UVJD67W_cjs.NEW_ROUTE_DEFS; }
14
+ });
15
+ Object.defineProperty(exports, "getObservabilityStore", {
16
+ enumerable: true,
17
+ get: function () { return chunk2UVJD67W_cjs.getObservabilityStore; }
18
+ });
19
+ Object.defineProperty(exports, "getStorage", {
20
+ enumerable: true,
21
+ get: function () { return chunk2UVJD67W_cjs.getStorage; }
22
+ });
23
+ //# sourceMappingURL=observability-shared.cjs.map
24
+ //# sourceMappingURL=observability-shared.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"observability-shared.cjs"}
@@ -0,0 +1,126 @@
1
+ import type { Mastra } from '@mastra/core';
2
+ import type { MastraCompositeStore, ObservabilityStorage } from '@mastra/core/storage';
3
+ import type { ServerRoute } from '../server-adapter/routes/index.js';
4
+ export declare const NEW_OBSERVABILITY_UPGRADE_MESSAGE = "New observability endpoints require a newer @mastra/core. Please upgrade.";
5
+ /** Retrieves MastraCompositeStore or throws 500 if unavailable. */
6
+ export declare function getStorage(mastra: Mastra): MastraCompositeStore;
7
+ /** Retrieves the observability storage domain or throws 500 if unavailable. */
8
+ export declare function getObservabilityStore(mastra: Mastra): Promise<ObservabilityStorage>;
9
+ export interface RouteDetails {
10
+ method: ServerRoute['method'];
11
+ path: `/${string}`;
12
+ summary: string;
13
+ description: string;
14
+ requiresPermission?: ServerRoute['requiresPermission'];
15
+ }
16
+ export declare const NEW_ROUTE_DEFS: {
17
+ readonly LIST_LOGS: {
18
+ readonly method: "GET";
19
+ readonly path: "/observability/logs";
20
+ readonly summary: "List logs";
21
+ readonly description: "Returns a paginated list of logs with optional filtering and sorting";
22
+ };
23
+ readonly LIST_SCORES: {
24
+ readonly method: "GET";
25
+ readonly path: "/observability/scores";
26
+ readonly summary: "List scores";
27
+ readonly description: "Returns a paginated list of scores with optional filtering and sorting";
28
+ };
29
+ readonly CREATE_SCORE: {
30
+ readonly method: "POST";
31
+ readonly path: "/observability/scores";
32
+ readonly summary: "Create a score";
33
+ readonly description: "Creates a single score record in the observability store";
34
+ };
35
+ readonly LIST_FEEDBACK: {
36
+ readonly method: "GET";
37
+ readonly path: "/observability/feedback";
38
+ readonly summary: "List feedback";
39
+ readonly description: "Returns a paginated list of feedback with optional filtering and sorting";
40
+ };
41
+ readonly CREATE_FEEDBACK: {
42
+ readonly method: "POST";
43
+ readonly path: "/observability/feedback";
44
+ readonly summary: "Create feedback";
45
+ readonly description: "Creates a single feedback record in the observability store";
46
+ };
47
+ readonly GET_METRIC_AGGREGATE: {
48
+ readonly method: "POST";
49
+ readonly path: "/observability/metrics/aggregate";
50
+ readonly summary: "Get metric aggregate";
51
+ readonly description: "Returns an aggregated metric value with optional period-over-period comparison";
52
+ readonly requiresPermission: "observability:read";
53
+ };
54
+ readonly GET_METRIC_BREAKDOWN: {
55
+ readonly method: "POST";
56
+ readonly path: "/observability/metrics/breakdown";
57
+ readonly summary: "Get metric breakdown";
58
+ readonly description: "Returns metric values grouped by specified dimensions";
59
+ readonly requiresPermission: "observability:read";
60
+ };
61
+ readonly GET_METRIC_TIME_SERIES: {
62
+ readonly method: "POST";
63
+ readonly path: "/observability/metrics/timeseries";
64
+ readonly summary: "Get metric time series";
65
+ readonly description: "Returns metric values bucketed by time interval with optional grouping";
66
+ readonly requiresPermission: "observability:read";
67
+ };
68
+ readonly GET_METRIC_PERCENTILES: {
69
+ readonly method: "POST";
70
+ readonly path: "/observability/metrics/percentiles";
71
+ readonly summary: "Get metric percentiles";
72
+ readonly description: "Returns percentile values for a metric bucketed by time interval";
73
+ readonly requiresPermission: "observability:read";
74
+ };
75
+ readonly GET_METRIC_NAMES: {
76
+ readonly method: "GET";
77
+ readonly path: "/observability/discovery/metric-names";
78
+ readonly summary: "Get metric names";
79
+ readonly description: "Returns distinct metric names with optional prefix filtering";
80
+ };
81
+ readonly GET_METRIC_LABEL_KEYS: {
82
+ readonly method: "GET";
83
+ readonly path: "/observability/discovery/metric-label-keys";
84
+ readonly summary: "Get metric label keys";
85
+ readonly description: "Returns distinct label keys for a given metric";
86
+ };
87
+ readonly GET_METRIC_LABEL_VALUES: {
88
+ readonly method: "GET";
89
+ readonly path: "/observability/discovery/metric-label-values";
90
+ readonly summary: "Get label values";
91
+ readonly description: "Returns distinct values for a given metric label key";
92
+ };
93
+ readonly GET_ENTITY_TYPES: {
94
+ readonly method: "GET";
95
+ readonly path: "/observability/discovery/entity-types";
96
+ readonly summary: "Get entity types";
97
+ readonly description: "Returns distinct entity types from observability data";
98
+ };
99
+ readonly GET_ENTITY_NAMES: {
100
+ readonly method: "GET";
101
+ readonly path: "/observability/discovery/entity-names";
102
+ readonly summary: "Get entity names";
103
+ readonly description: "Returns distinct entity names with optional type filtering";
104
+ };
105
+ readonly GET_SERVICE_NAMES: {
106
+ readonly method: "GET";
107
+ readonly path: "/observability/discovery/service-names";
108
+ readonly summary: "Get service names";
109
+ readonly description: "Returns distinct service names from observability data";
110
+ };
111
+ readonly GET_ENVIRONMENTS: {
112
+ readonly method: "GET";
113
+ readonly path: "/observability/discovery/environments";
114
+ readonly summary: "Get environments";
115
+ readonly description: "Returns distinct environments from observability data";
116
+ };
117
+ readonly GET_TAGS: {
118
+ readonly method: "GET";
119
+ readonly path: "/observability/discovery/tags";
120
+ readonly summary: "Get tags";
121
+ readonly description: "Returns distinct tags with optional entity type filtering";
122
+ };
123
+ };
124
+ export type NewRoutesKey = keyof typeof NEW_ROUTE_DEFS;
125
+ export type NewRoutesDefinitions = (typeof NEW_ROUTE_DEFS)[NewRoutesKey];
126
+ //# sourceMappingURL=observability-shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observability-shared.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/observability-shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEvF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,eAAO,MAAM,iCAAiC,8EAC+B,CAAC;AAE9E,mEAAmE;AACnE,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,oBAAoB,CAM/D;AAED,+EAA+E;AAC/E,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAOzF;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC9B,IAAI,EAAE,IAAI,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC;CACxD;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HsB,CAAC;AAElD,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,cAAc,CAAC;AACvD,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,YAAY,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { NEW_OBSERVABILITY_UPGRADE_MESSAGE, NEW_ROUTE_DEFS, getObservabilityStore, getStorage } from '../../chunk-RSIZIEPW.js';
2
+ //# sourceMappingURL=observability-shared.js.map
3
+ //# sourceMappingURL=observability-shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"observability-shared.js"}
@@ -1,24 +1,97 @@
1
1
  'use strict';
2
2
 
3
- var chunk7P6XT5WB_cjs = require('../../chunk-7P6XT5WB.cjs');
3
+ var chunkOXZCCCIJ_cjs = require('../../chunk-OXZCCCIJ.cjs');
4
+ var chunkLUHJDABR_cjs = require('../../chunk-LUHJDABR.cjs');
4
5
 
5
6
 
6
7
 
7
8
  Object.defineProperty(exports, "GET_TRACE_ROUTE", {
8
9
  enumerable: true,
9
- get: function () { return chunk7P6XT5WB_cjs.GET_TRACE_ROUTE; }
10
+ get: function () { return chunkOXZCCCIJ_cjs.GET_TRACE_ROUTE; }
10
11
  });
11
12
  Object.defineProperty(exports, "LIST_SCORES_BY_SPAN_ROUTE", {
12
13
  enumerable: true,
13
- get: function () { return chunk7P6XT5WB_cjs.LIST_SCORES_BY_SPAN_ROUTE; }
14
+ get: function () { return chunkOXZCCCIJ_cjs.LIST_SCORES_BY_SPAN_ROUTE; }
14
15
  });
15
16
  Object.defineProperty(exports, "LIST_TRACES_ROUTE", {
16
17
  enumerable: true,
17
- get: function () { return chunk7P6XT5WB_cjs.LIST_TRACES_ROUTE; }
18
+ get: function () { return chunkOXZCCCIJ_cjs.LIST_TRACES_ROUTE; }
18
19
  });
19
20
  Object.defineProperty(exports, "SCORE_TRACES_ROUTE", {
20
21
  enumerable: true,
21
- get: function () { return chunk7P6XT5WB_cjs.SCORE_TRACES_ROUTE; }
22
+ get: function () { return chunkOXZCCCIJ_cjs.SCORE_TRACES_ROUTE; }
23
+ });
24
+ Object.defineProperty(exports, "CREATE_FEEDBACK", {
25
+ enumerable: true,
26
+ get: function () { return chunkLUHJDABR_cjs.CREATE_FEEDBACK; }
27
+ });
28
+ Object.defineProperty(exports, "CREATE_SCORE", {
29
+ enumerable: true,
30
+ get: function () { return chunkLUHJDABR_cjs.CREATE_SCORE; }
31
+ });
32
+ Object.defineProperty(exports, "GET_ENTITY_NAMES", {
33
+ enumerable: true,
34
+ get: function () { return chunkLUHJDABR_cjs.GET_ENTITY_NAMES; }
35
+ });
36
+ Object.defineProperty(exports, "GET_ENTITY_TYPES", {
37
+ enumerable: true,
38
+ get: function () { return chunkLUHJDABR_cjs.GET_ENTITY_TYPES; }
39
+ });
40
+ Object.defineProperty(exports, "GET_ENVIRONMENTS", {
41
+ enumerable: true,
42
+ get: function () { return chunkLUHJDABR_cjs.GET_ENVIRONMENTS; }
43
+ });
44
+ Object.defineProperty(exports, "GET_METRIC_AGGREGATE", {
45
+ enumerable: true,
46
+ get: function () { return chunkLUHJDABR_cjs.GET_METRIC_AGGREGATE; }
47
+ });
48
+ Object.defineProperty(exports, "GET_METRIC_BREAKDOWN", {
49
+ enumerable: true,
50
+ get: function () { return chunkLUHJDABR_cjs.GET_METRIC_BREAKDOWN; }
51
+ });
52
+ Object.defineProperty(exports, "GET_METRIC_LABEL_KEYS", {
53
+ enumerable: true,
54
+ get: function () { return chunkLUHJDABR_cjs.GET_METRIC_LABEL_KEYS; }
55
+ });
56
+ Object.defineProperty(exports, "GET_METRIC_LABEL_VALUES", {
57
+ enumerable: true,
58
+ get: function () { return chunkLUHJDABR_cjs.GET_METRIC_LABEL_VALUES; }
59
+ });
60
+ Object.defineProperty(exports, "GET_METRIC_NAMES", {
61
+ enumerable: true,
62
+ get: function () { return chunkLUHJDABR_cjs.GET_METRIC_NAMES; }
63
+ });
64
+ Object.defineProperty(exports, "GET_METRIC_PERCENTILES", {
65
+ enumerable: true,
66
+ get: function () { return chunkLUHJDABR_cjs.GET_METRIC_PERCENTILES; }
67
+ });
68
+ Object.defineProperty(exports, "GET_METRIC_TIME_SERIES", {
69
+ enumerable: true,
70
+ get: function () { return chunkLUHJDABR_cjs.GET_METRIC_TIME_SERIES; }
71
+ });
72
+ Object.defineProperty(exports, "GET_SERVICE_NAMES", {
73
+ enumerable: true,
74
+ get: function () { return chunkLUHJDABR_cjs.GET_SERVICE_NAMES; }
75
+ });
76
+ Object.defineProperty(exports, "GET_TAGS", {
77
+ enumerable: true,
78
+ get: function () { return chunkLUHJDABR_cjs.GET_TAGS; }
79
+ });
80
+ Object.defineProperty(exports, "LIST_FEEDBACK", {
81
+ enumerable: true,
82
+ get: function () { return chunkLUHJDABR_cjs.LIST_FEEDBACK; }
83
+ });
84
+ Object.defineProperty(exports, "LIST_LOGS", {
85
+ enumerable: true,
86
+ get: function () { return chunkLUHJDABR_cjs.LIST_LOGS; }
87
+ });
88
+ Object.defineProperty(exports, "LIST_SCORES", {
89
+ enumerable: true,
90
+ get: function () { return chunkLUHJDABR_cjs.LIST_SCORES; }
91
+ });
92
+ Object.defineProperty(exports, "NEW_ROUTES", {
93
+ enumerable: true,
94
+ get: function () { return chunkLUHJDABR_cjs.NEW_ROUTES; }
22
95
  });
23
96
  //# sourceMappingURL=observability.cjs.map
24
97
  //# sourceMappingURL=observability.cjs.map
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ export * from './observability-new-endpoints.js';
3
+ /** Route: GET /observability/traces - paginated trace listing with filtering and sorting. */
2
4
  export declare const LIST_TRACES_ROUTE: import("../server-adapter").ServerRoute<Record<string, unknown>, {
3
5
  pagination: {
4
6
  total: number;
@@ -26,13 +28,13 @@ export declare const LIST_TRACES_ROUTE: import("../server-adapter").ServerRoute<
26
28
  requestContext?: Record<string, unknown> | null | undefined;
27
29
  metadata?: Record<string, unknown> | null | undefined;
28
30
  tags?: string[] | null | undefined;
29
- entityType?: import("@mastra/core/observability").EntityType | null | undefined;
31
+ entityType?: import("@mastra/core/storage").EntityType | null | undefined;
30
32
  entityId?: string | null | undefined;
31
33
  entityName?: string | null | undefined;
32
- parentEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
34
+ parentEntityType?: import("@mastra/core/storage").EntityType | null | undefined;
33
35
  parentEntityId?: string | null | undefined;
34
36
  parentEntityName?: string | null | undefined;
35
- rootEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
37
+ rootEntityType?: import("@mastra/core/storage").EntityType | null | undefined;
36
38
  rootEntityId?: string | null | undefined;
37
39
  rootEntityName?: string | null | undefined;
38
40
  userId?: string | null | undefined;
@@ -70,13 +72,13 @@ export declare const LIST_TRACES_ROUTE: import("../server-adapter").ServerRoute<
70
72
  requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
71
73
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
72
74
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
73
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
75
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>>;
74
76
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
77
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
78
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>>;
77
79
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
80
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
81
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>>;
80
82
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
83
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
84
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -100,6 +102,7 @@ export declare const LIST_TRACES_ROUTE: import("../server-adapter").ServerRoute<
100
102
  status: z.ZodEnum<typeof import("@mastra/core/storage").TraceStatus>;
101
103
  }, z.core.$strip>>;
102
104
  }, z.core.$strip>>, "GET", "/observability/traces">;
105
+ /** Route: GET /observability/traces/:traceId - retrieve a single trace with all spans. */
103
106
  export declare const GET_TRACE_ROUTE: import("../server-adapter").ServerRoute<{
104
107
  traceId: string;
105
108
  }, {
@@ -123,13 +126,13 @@ export declare const GET_TRACE_ROUTE: import("../server-adapter").ServerRoute<{
123
126
  requestContext?: Record<string, unknown> | null | undefined;
124
127
  metadata?: Record<string, unknown> | null | undefined;
125
128
  tags?: string[] | null | undefined;
126
- entityType?: import("@mastra/core/observability").EntityType | null | undefined;
129
+ entityType?: import("@mastra/core/storage").EntityType | null | undefined;
127
130
  entityId?: string | null | undefined;
128
131
  entityName?: string | null | undefined;
129
- parentEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
132
+ parentEntityType?: import("@mastra/core/storage").EntityType | null | undefined;
130
133
  parentEntityId?: string | null | undefined;
131
134
  parentEntityName?: string | null | undefined;
132
- rootEntityType?: import("@mastra/core/observability").EntityType | null | undefined;
135
+ rootEntityType?: import("@mastra/core/storage").EntityType | null | undefined;
133
136
  rootEntityId?: string | null | undefined;
134
137
  rootEntityName?: string | null | undefined;
135
138
  userId?: string | null | undefined;
@@ -162,13 +165,13 @@ export declare const GET_TRACE_ROUTE: import("../server-adapter").ServerRoute<{
162
165
  requestContext: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
163
166
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
164
167
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
165
- entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
168
+ entityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>>;
166
169
  entityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
170
  entityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
168
- parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
171
+ parentEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>>;
169
172
  parentEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
173
  parentEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
- rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/observability").EntityType>>>;
174
+ rootEntityType: z.ZodOptional<z.ZodNullable<z.ZodEnum<typeof import("@mastra/core/storage").EntityType>>>;
172
175
  rootEntityId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
176
  rootEntityName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
177
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -191,6 +194,7 @@ export declare const GET_TRACE_ROUTE: import("../server-adapter").ServerRoute<{
191
194
  spanId: z.ZodString;
192
195
  }, z.core.$strip>>;
193
196
  }, z.core.$strip>>, "GET", "/observability/traces/:traceId">;
197
+ /** Route: POST /observability/traces/score - score traces using a specified scorer (fire-and-forget). */
194
198
  export declare const SCORE_TRACES_ROUTE: import("../server-adapter").ServerRoute<{
195
199
  scorerName: string;
196
200
  targets: {
@@ -215,10 +219,9 @@ export declare const SCORE_TRACES_ROUTE: import("../server-adapter").ServerRoute
215
219
  export declare const LIST_SCORES_BY_SPAN_ROUTE: import("../server-adapter").ServerRoute<import("../server-adapter").InferParams<z.ZodObject<{
216
220
  traceId: z.ZodString;
217
221
  spanId: z.ZodString;
218
- }, z.core.$strip>, z.ZodObject<{
219
- page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
220
- perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
221
- }, z.core.$strip>, undefined>, {
222
+ }, z.core.$strip>, z.ZodObject<Readonly<{
223
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
224
+ }>, z.core.$strip>, undefined>, {
222
225
  pagination: {
223
226
  total: number;
224
227
  page: number;
@@ -261,10 +264,9 @@ export declare const LIST_SCORES_BY_SPAN_ROUTE: import("../server-adapter").Serv
261
264
  }, "json", import("../server-adapter").RouteSchemas<z.ZodObject<{
262
265
  traceId: z.ZodString;
263
266
  spanId: z.ZodString;
264
- }, z.core.$strip>, z.ZodObject<{
265
- page: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
266
- perPage: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
267
- }, z.core.$strip>, undefined, z.ZodObject<{
267
+ }, z.core.$strip>, z.ZodObject<Readonly<{
268
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
269
+ }>, z.core.$strip>, undefined, z.ZodObject<{
268
270
  pagination: z.ZodObject<{
269
271
  total: z.ZodNumber;
270
272
  page: z.ZodNumber;
@@ -1 +1 @@
1
- {"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/observability.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA4FxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDA+B5B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAwB1B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;0DAwC7B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EA0BpC,CAAC"}
1
+ {"version":3,"file":"observability.d.ts","sourceRoot":"","sources":["../../../src/server/handlers/observability.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,cAAc,+BAA+B,CAAC;AAwE9C,6FAA6F;AAC7F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mDA+B5B,CAAC;AAEH,0FAA0F;AAC1F,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4DAwB1B,CAAC;AAEH,yGAAyG;AACzG,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;0DAwC7B,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2EA2BpC,CAAC"}
@@ -1,3 +1,4 @@
1
- export { GET_TRACE_ROUTE, LIST_SCORES_BY_SPAN_ROUTE, LIST_TRACES_ROUTE, SCORE_TRACES_ROUTE } from '../../chunk-A2443FGH.js';
1
+ export { GET_TRACE_ROUTE, LIST_SCORES_BY_SPAN_ROUTE, LIST_TRACES_ROUTE, SCORE_TRACES_ROUTE } from '../../chunk-55AD3MAT.js';
2
+ export { CREATE_FEEDBACK, CREATE_SCORE, GET_ENTITY_NAMES, GET_ENTITY_TYPES, GET_ENVIRONMENTS, GET_METRIC_AGGREGATE, GET_METRIC_BREAKDOWN, GET_METRIC_LABEL_KEYS, GET_METRIC_LABEL_VALUES, GET_METRIC_NAMES, GET_METRIC_PERCENTILES, GET_METRIC_TIME_SERIES, GET_SERVICE_NAMES, GET_TAGS, LIST_FEEDBACK, LIST_LOGS, LIST_SCORES, NEW_ROUTES } from '../../chunk-4VGZOVOI.js';
2
3
  //# sourceMappingURL=observability.js.map
3
4
  //# sourceMappingURL=observability.js.map
@@ -1,22 +1,26 @@
1
1
  'use strict';
2
2
 
3
+ var chunkMSIV5GWW_cjs = require('../chunk-MSIV5GWW.cjs');
3
4
  var chunkCTQ3HPQI_cjs = require('../chunk-CTQ3HPQI.cjs');
4
5
  var chunkQSWHYCQJ_cjs = require('../chunk-QSWHYCQJ.cjs');
5
6
  var chunkLCDFOAST_cjs = require('../chunk-LCDFOAST.cjs');
6
- var chunkMSIV5GWW_cjs = require('../chunk-MSIV5GWW.cjs');
7
+ var chunkOXZCCCIJ_cjs = require('../chunk-OXZCCCIJ.cjs');
7
8
  var chunkGEHJZKDB_cjs = require('../chunk-GEHJZKDB.cjs');
8
9
  var chunkS5GP7MGR_cjs = require('../chunk-S5GP7MGR.cjs');
9
10
  var chunkTNLKHEQX_cjs = require('../chunk-TNLKHEQX.cjs');
10
11
  var chunkB4SQM6HA_cjs = require('../chunk-B4SQM6HA.cjs');
11
- var chunk7P6XT5WB_cjs = require('../chunk-7P6XT5WB.cjs');
12
12
  var chunkVEKRLGNI_cjs = require('../chunk-VEKRLGNI.cjs');
13
- var chunk4AR4SH3H_cjs = require('../chunk-4AR4SH3H.cjs');
13
+ var chunkL6ANZUEK_cjs = require('../chunk-L6ANZUEK.cjs');
14
14
  var chunkUHDWOTND_cjs = require('../chunk-UHDWOTND.cjs');
15
15
  var chunk7BO2VOGB_cjs = require('../chunk-7BO2VOGB.cjs');
16
16
  var chunkY2BKW5ND_cjs = require('../chunk-Y2BKW5ND.cjs');
17
17
 
18
18
 
19
19
 
20
+ Object.defineProperty(exports, "tools", {
21
+ enumerable: true,
22
+ get: function () { return chunkMSIV5GWW_cjs.tools_exports; }
23
+ });
20
24
  Object.defineProperty(exports, "vector", {
21
25
  enumerable: true,
22
26
  get: function () { return chunkCTQ3HPQI_cjs.vector_exports; }
@@ -29,9 +33,9 @@ Object.defineProperty(exports, "workspace", {
29
33
  enumerable: true,
30
34
  get: function () { return chunkLCDFOAST_cjs.workspace_exports; }
31
35
  });
32
- Object.defineProperty(exports, "tools", {
36
+ Object.defineProperty(exports, "observability", {
33
37
  enumerable: true,
34
- get: function () { return chunkMSIV5GWW_cjs.tools_exports; }
38
+ get: function () { return chunkOXZCCCIJ_cjs.observability_exports; }
35
39
  });
36
40
  Object.defineProperty(exports, "scores", {
37
41
  enumerable: true,
@@ -49,17 +53,13 @@ Object.defineProperty(exports, "memory", {
49
53
  enumerable: true,
50
54
  get: function () { return chunkB4SQM6HA_cjs.memory_exports; }
51
55
  });
52
- Object.defineProperty(exports, "observability", {
53
- enumerable: true,
54
- get: function () { return chunk7P6XT5WB_cjs.observability_exports; }
55
- });
56
56
  Object.defineProperty(exports, "a2a", {
57
57
  enumerable: true,
58
58
  get: function () { return chunkVEKRLGNI_cjs.a2a_exports; }
59
59
  });
60
60
  Object.defineProperty(exports, "agentBuilder", {
61
61
  enumerable: true,
62
- get: function () { return chunk4AR4SH3H_cjs.agent_builder_exports; }
62
+ get: function () { return chunkL6ANZUEK_cjs.agent_builder_exports; }
63
63
  });
64
64
  Object.defineProperty(exports, "workflows", {
65
65
  enumerable: true,
@@ -1,14 +1,14 @@
1
+ export { tools_exports as tools } from '../chunk-OWWZB5LT.js';
1
2
  export { vector_exports as vector } from '../chunk-OJXRWVPG.js';
2
3
  export { voice_exports as voice } from '../chunk-U7WRAFPO.js';
3
4
  export { workspace_exports as workspace } from '../chunk-CLCXQYFC.js';
4
- export { tools_exports as tools } from '../chunk-OWWZB5LT.js';
5
+ export { observability_exports as observability } from '../chunk-55AD3MAT.js';
5
6
  export { scores_exports as scores } from '../chunk-MI6FWWJD.js';
6
7
  export { logs_exports as logs } from '../chunk-SE7KHXNQ.js';
7
8
  export { mcp_exports as mcp } from '../chunk-SJMWOGHQ.js';
8
9
  export { memory_exports as memory } from '../chunk-FEV3JR2X.js';
9
- export { observability_exports as observability } from '../chunk-A2443FGH.js';
10
10
  export { a2a_exports as a2a } from '../chunk-6VXSEVDC.js';
11
- export { agent_builder_exports as agentBuilder } from '../chunk-SFC2UJ2C.js';
11
+ export { agent_builder_exports as agentBuilder } from '../chunk-LE6IX2DD.js';
12
12
  export { workflows_exports as workflows } from '../chunk-C5T7WB4Y.js';
13
13
  export { agents_exports as agents } from '../chunk-4XVFN4EB.js';
14
14
  export { formatZodError } from '../chunk-NA7LKQPZ.js';