@mastra/server 1.48.0-alpha.9 → 1.48.0
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/CHANGELOG.md +132 -0
- package/dist/{api-schema-manifest-OSFSFYKI.cjs → api-schema-manifest-4VQSWI7S.cjs} +4 -4
- package/dist/{api-schema-manifest-OSFSFYKI.cjs.map → api-schema-manifest-4VQSWI7S.cjs.map} +1 -1
- package/dist/{api-schema-manifest-YKMSPSZR.js → api-schema-manifest-RP35YQV7.js} +3 -3
- package/dist/{api-schema-manifest-YKMSPSZR.js.map → api-schema-manifest-RP35YQV7.js.map} +1 -1
- package/dist/chunk-2WUMO4RN.cjs +32677 -0
- package/dist/chunk-2WUMO4RN.cjs.map +1 -0
- package/dist/{chunk-LFZO2LHV.cjs → chunk-3QVZXWIE.cjs} +7 -3
- package/dist/chunk-3QVZXWIE.cjs.map +1 -0
- package/dist/{chunk-5SZOGYYO.cjs → chunk-FKM644Z6.cjs} +52 -52
- package/dist/{chunk-5SZOGYYO.cjs.map → chunk-FKM644Z6.cjs.map} +1 -1
- package/dist/{chunk-UXVICGWD.cjs → chunk-H7NWUAHC.cjs} +3 -3
- package/dist/{chunk-UXVICGWD.cjs.map → chunk-H7NWUAHC.cjs.map} +1 -1
- package/dist/{chunk-BVMR64B7.cjs → chunk-I4COPLOY.cjs} +3 -3
- package/dist/{chunk-BVMR64B7.cjs.map → chunk-I4COPLOY.cjs.map} +1 -1
- package/dist/{chunk-UTRP4B2Q.js → chunk-JEFGF2F5.js} +7 -3
- package/dist/chunk-JEFGF2F5.js.map +1 -0
- package/dist/{chunk-PXY4G3SN.cjs → chunk-KN22ZEKU.cjs} +11 -11
- package/dist/{chunk-PXY4G3SN.cjs.map → chunk-KN22ZEKU.cjs.map} +1 -1
- package/dist/{chunk-WOE6XG6B.js → chunk-LEKVIHSE.js} +3 -3
- package/dist/{chunk-WOE6XG6B.js.map → chunk-LEKVIHSE.js.map} +1 -1
- package/dist/{chunk-PJXH5A23.cjs → chunk-LVGS5ADS.cjs} +110 -110
- package/dist/{chunk-PJXH5A23.cjs.map → chunk-LVGS5ADS.cjs.map} +1 -1
- package/dist/{chunk-LZMQLV2S.js → chunk-MDXMBAYV.js} +4 -4
- package/dist/{chunk-LZMQLV2S.js.map → chunk-MDXMBAYV.js.map} +1 -1
- package/dist/{chunk-HTBC6CVX.cjs → chunk-NI2DJ2VW.cjs} +4 -4
- package/dist/{chunk-HTBC6CVX.cjs.map → chunk-NI2DJ2VW.cjs.map} +1 -1
- package/dist/{chunk-UZKVYNYR.js → chunk-Q6FMYSXG.js} +18 -2
- package/dist/chunk-Q6FMYSXG.js.map +1 -0
- package/dist/{chunk-NOXRQV2G.cjs → chunk-QQF22Q32.cjs} +18 -2
- package/dist/chunk-QQF22Q32.cjs.map +1 -0
- package/dist/{chunk-XDR5CTSX.js → chunk-USYLK73B.js} +3 -3
- package/dist/{chunk-XDR5CTSX.js.map → chunk-USYLK73B.js.map} +1 -1
- package/dist/{chunk-YAEG3FIX.js → chunk-V23YWHBT.js} +3 -3
- package/dist/{chunk-YAEG3FIX.js.map → chunk-V23YWHBT.js.map} +1 -1
- package/dist/{chunk-XJLHTR7T.js → chunk-V4X6NCFW.js} +6 -6
- package/dist/{chunk-XJLHTR7T.js.map → chunk-V4X6NCFW.js.map} +1 -1
- package/dist/chunk-WWPJKPP2.js +32631 -0
- package/dist/chunk-WWPJKPP2.js.map +1 -0
- package/dist/{chunk-NZBVBHKY.js → chunk-YPYXJKWJ.js} +3 -3
- package/dist/{chunk-NZBVBHKY.js.map → chunk-YPYXJKWJ.js.map} +1 -1
- package/dist/{constants-DVRTNEGY-A5OAGF3M.js → constants-RMCTOZE3-3LAM6TBM.js} +2 -2
- package/dist/{constants-DVRTNEGY-A5OAGF3M.js.map → constants-RMCTOZE3-3LAM6TBM.js.map} +1 -1
- package/dist/{constants-DVRTNEGY-ZGCNETZ3.cjs → constants-RMCTOZE3-JL6U6KRC.cjs} +2 -2
- package/dist/{constants-DVRTNEGY-ZGCNETZ3.cjs.map → constants-RMCTOZE3-JL6U6KRC.cjs.map} +1 -1
- package/dist/dist-6VCCDFCW.cjs +11402 -0
- package/dist/dist-6VCCDFCW.cjs.map +1 -0
- package/dist/dist-7DYUIL2E.js +11375 -0
- package/dist/dist-7DYUIL2E.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/observational-memory-PBLNZABH-2OUE5VEX.js +4 -0
- package/dist/{observational-memory-VZDCB747-I6PAZ4T6.js.map → observational-memory-PBLNZABH-2OUE5VEX.js.map} +1 -1
- package/dist/{observational-memory-VZDCB747-HGIBYINL.cjs → observational-memory-PBLNZABH-MQEKJOVA.cjs} +34 -26
- package/dist/{observational-memory-VZDCB747-HGIBYINL.cjs.map → observational-memory-PBLNZABH-MQEKJOVA.cjs.map} +1 -1
- package/dist/server/handlers/agent-builder.cjs +17 -17
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/conversations.cjs +5 -5
- package/dist/server/handlers/conversations.js +1 -1
- package/dist/server/handlers/gateway-memory-client.cjs +8 -8
- package/dist/server/handlers/gateway-memory-client.d.ts +37 -2
- package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
- package/dist/server/handlers/gateway-memory-client.js +1 -1
- package/dist/server/handlers/memory.cjs +27 -27
- package/dist/server/handlers/memory.d.ts +108 -0
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers/system.cjs +3 -3
- package/dist/server/handlers/system.js +1 -1
- package/dist/server/handlers.cjs +6 -6
- package/dist/server/handlers.js +3 -3
- package/dist/server/schemas/index.cjs +50 -50
- package/dist/server/schemas/index.js +2 -2
- package/dist/server/schemas/memory.d.ts +54 -0
- package/dist/server/schemas/memory.d.ts.map +1 -1
- package/dist/server/server-adapter/index.cjs +13 -13
- package/dist/server/server-adapter/index.js +2 -2
- package/dist/server/server-adapter/routes/memory.d.ts +108 -0
- package/dist/server/server-adapter/routes/memory.d.ts.map +1 -1
- package/dist/{working-memory-state-J7ASTNXX-WEIO7C67.cjs → working-memory-state-OMSMSYAW-4THWAGFK.cjs} +2 -2
- package/dist/{working-memory-state-J7ASTNXX-WEIO7C67.cjs.map → working-memory-state-OMSMSYAW-4THWAGFK.cjs.map} +1 -1
- package/dist/{working-memory-state-J7ASTNXX-JNDYMEET.js → working-memory-state-OMSMSYAW-NEULPFZX.js} +2 -2
- package/dist/{working-memory-state-J7ASTNXX-JNDYMEET.js.map → working-memory-state-OMSMSYAW-NEULPFZX.js.map} +1 -1
- package/package.json +9 -9
- package/dist/chunk-3SSXARFU.cjs +0 -11543
- package/dist/chunk-3SSXARFU.cjs.map +0 -1
- package/dist/chunk-LFZO2LHV.cjs.map +0 -1
- package/dist/chunk-NOXRQV2G.cjs.map +0 -1
- package/dist/chunk-S2RXZQ4K.js +0 -11514
- package/dist/chunk-S2RXZQ4K.js.map +0 -1
- package/dist/chunk-UTRP4B2Q.js.map +0 -1
- package/dist/chunk-UZKVYNYR.js.map +0 -1
- package/dist/dist-66SHYWFH.cjs +0 -60958
- package/dist/dist-66SHYWFH.cjs.map +0 -1
- package/dist/dist-Q3RF3I36.js +0 -60931
- package/dist/dist-Q3RF3I36.js.map +0 -1
- package/dist/observational-memory-VZDCB747-I6PAZ4T6.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFKM644Z6_cjs = require('../../chunk-FKM644Z6.cjs');
|
|
4
4
|
var chunk4PQR3D5Y_cjs = require('../../chunk-4PQR3D5Y.cjs');
|
|
5
5
|
var chunkYWUVDFQZ_cjs = require('../../chunk-YWUVDFQZ.cjs');
|
|
6
6
|
var chunkSXKQ7CSX_cjs = require('../../chunk-SXKQ7CSX.cjs');
|
|
@@ -63,7 +63,7 @@ function getBuiltInRouteFGAConfig(route) {
|
|
|
63
63
|
if (!isProtectedFGARoute(route) || !route.path || !route.method) {
|
|
64
64
|
return null;
|
|
65
65
|
}
|
|
66
|
-
const permission =
|
|
66
|
+
const permission = chunkFKM644Z6_cjs.getEffectivePermission(route);
|
|
67
67
|
if (!permission) {
|
|
68
68
|
return null;
|
|
69
69
|
}
|
|
@@ -277,7 +277,7 @@ function getFGARouteInfo(route) {
|
|
|
277
277
|
};
|
|
278
278
|
}
|
|
279
279
|
function getRoutePermissions(route) {
|
|
280
|
-
return [
|
|
280
|
+
return [chunkFKM644Z6_cjs.getEffectivePermission(route), route.fga?.permission].flatMap((value) => Array.isArray(value) ? value : [value]).filter((permission) => Boolean(permission));
|
|
281
281
|
}
|
|
282
282
|
async function resolveRouteFGAConfig(fgaProvider, route, requestContext, params) {
|
|
283
283
|
if (route.fga) {
|
|
@@ -611,7 +611,7 @@ var MastraServer = class _MastraServer extends server.MastraServerBase {
|
|
|
611
611
|
if (!rbacProvider) {
|
|
612
612
|
return null;
|
|
613
613
|
}
|
|
614
|
-
const requiredPermission =
|
|
614
|
+
const requiredPermission = chunkFKM644Z6_cjs.getEffectivePermission(route);
|
|
615
615
|
if (!requiredPermission) {
|
|
616
616
|
return null;
|
|
617
617
|
}
|
|
@@ -704,7 +704,7 @@ Ensure @mastra/core is updated to a version that includes EE support.`
|
|
|
704
704
|
const customRoutes = (this.customApiRoutes ?? serverConfig?.apiRoutes ?? []).filter(
|
|
705
705
|
(route) => !route._mastraInternal
|
|
706
706
|
);
|
|
707
|
-
const routes = [...
|
|
707
|
+
const routes = [...chunkFKM644Z6_cjs.SERVER_ROUTES, ...customRoutes];
|
|
708
708
|
if (fgaProvider.validatePermissions) {
|
|
709
709
|
const permissions = [...new Set(routes.flatMap((route) => getRoutePermissions(route)))];
|
|
710
710
|
await fgaProvider.validatePermissions(permissions);
|
|
@@ -876,7 +876,7 @@ Ensure @mastra/core is updated to a version that includes EE support.`
|
|
|
876
876
|
* Builds the OpenAPI spec object with servers field and custom route paths.
|
|
877
877
|
*/
|
|
878
878
|
buildOpenAPISpec(config, prefix) {
|
|
879
|
-
const openApiSpec = chunkDN2NUSL2_cjs.generateOpenAPIDocument(
|
|
879
|
+
const openApiSpec = chunkDN2NUSL2_cjs.generateOpenAPIDocument(chunkFKM644Z6_cjs.SERVER_ROUTES, config);
|
|
880
880
|
if (prefix) {
|
|
881
881
|
openApiSpec.servers = [{ url: prefix }];
|
|
882
882
|
}
|
|
@@ -911,7 +911,7 @@ Ensure @mastra/core is updated to a version that includes EE support.`
|
|
|
911
911
|
await this.registerRoute(app, openApiRoute, { prefix });
|
|
912
912
|
}
|
|
913
913
|
async registerRoutes() {
|
|
914
|
-
for (const route of
|
|
914
|
+
for (const route of chunkFKM644Z6_cjs.SERVER_ROUTES) {
|
|
915
915
|
await this.registerRoute(this.app, route, { prefix: this.prefix });
|
|
916
916
|
}
|
|
917
917
|
if (this.openapiPath) {
|
|
@@ -1000,7 +1000,7 @@ async function checkRouteFGA(mastra, route, requestContext, params) {
|
|
|
1000
1000
|
message: "FGA authorization denied: route FGA metadata is incomplete"
|
|
1001
1001
|
};
|
|
1002
1002
|
}
|
|
1003
|
-
const effectivePermission = route.path ?
|
|
1003
|
+
const effectivePermission = route.path ? chunkFKM644Z6_cjs.getEffectivePermission(route) : null;
|
|
1004
1004
|
const permission = fgaConfig.permission || effectivePermission || `${getFGAResourcePermissionSlug(fgaConfig.resourceType)}:${deriveFGAAction(route.method)}`;
|
|
1005
1005
|
const authorized = await fgaProvider.check(user, {
|
|
1006
1006
|
resource: { type: fgaConfig.resourceType, id: resourceId },
|
|
@@ -1042,23 +1042,23 @@ function getFGAResourcePermissionSlug(resourceType) {
|
|
|
1042
1042
|
|
|
1043
1043
|
Object.defineProperty(exports, "SERVER_ROUTES", {
|
|
1044
1044
|
enumerable: true,
|
|
1045
|
-
get: function () { return
|
|
1045
|
+
get: function () { return chunkFKM644Z6_cjs.SERVER_ROUTES; }
|
|
1046
1046
|
});
|
|
1047
1047
|
Object.defineProperty(exports, "deriveAction", {
|
|
1048
1048
|
enumerable: true,
|
|
1049
|
-
get: function () { return
|
|
1049
|
+
get: function () { return chunkFKM644Z6_cjs.deriveAction; }
|
|
1050
1050
|
});
|
|
1051
1051
|
Object.defineProperty(exports, "derivePermission", {
|
|
1052
1052
|
enumerable: true,
|
|
1053
|
-
get: function () { return
|
|
1053
|
+
get: function () { return chunkFKM644Z6_cjs.derivePermission; }
|
|
1054
1054
|
});
|
|
1055
1055
|
Object.defineProperty(exports, "extractResource", {
|
|
1056
1056
|
enumerable: true,
|
|
1057
|
-
get: function () { return
|
|
1057
|
+
get: function () { return chunkFKM644Z6_cjs.extractResource; }
|
|
1058
1058
|
});
|
|
1059
1059
|
Object.defineProperty(exports, "getEffectivePermission", {
|
|
1060
1060
|
enumerable: true,
|
|
1061
|
-
get: function () { return
|
|
1061
|
+
get: function () { return chunkFKM644Z6_cjs.getEffectivePermission; }
|
|
1062
1062
|
});
|
|
1063
1063
|
Object.defineProperty(exports, "WorkflowRegistry", {
|
|
1064
1064
|
enumerable: true,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getEffectivePermission, SERVER_ROUTES } from '../../chunk-
|
|
2
|
-
export { SERVER_ROUTES, deriveAction, derivePermission, extractResource, getEffectivePermission } from '../../chunk-
|
|
1
|
+
import { getEffectivePermission, SERVER_ROUTES } from '../../chunk-V4X6NCFW.js';
|
|
2
|
+
export { SERVER_ROUTES, deriveAction, derivePermission, extractResource, getEffectivePermission } from '../../chunk-V4X6NCFW.js';
|
|
3
3
|
import { coreAuthMiddleware } from '../../chunk-HATXNJ4V.js';
|
|
4
4
|
import { normalizeRoutePath } from '../../chunk-EOGTJIPF.js';
|
|
5
5
|
export { WorkflowRegistry, normalizeRoutePath } from '../../chunk-EOGTJIPF.js';
|
|
@@ -131,6 +131,24 @@ export declare const MEMORY_ROUTES: readonly [import(".").ServerRoute<{
|
|
|
131
131
|
createdAt: Date;
|
|
132
132
|
updatedAt: Date;
|
|
133
133
|
bufferedObservations?: string | undefined;
|
|
134
|
+
bufferedObservationChunks?: {
|
|
135
|
+
cycleId: string;
|
|
136
|
+
observations: string;
|
|
137
|
+
tokenCount: number;
|
|
138
|
+
messageTokens: number;
|
|
139
|
+
id?: string | undefined;
|
|
140
|
+
messageIds?: string[] | undefined;
|
|
141
|
+
lastObservedAt?: Date | undefined;
|
|
142
|
+
createdAt?: Date | undefined;
|
|
143
|
+
suggestedContinuation?: string | undefined;
|
|
144
|
+
currentTask?: string | undefined;
|
|
145
|
+
threadTitle?: string | undefined;
|
|
146
|
+
extractedValues?: Record<string, unknown> | undefined;
|
|
147
|
+
extractionFailures?: {
|
|
148
|
+
slug: string;
|
|
149
|
+
error: string;
|
|
150
|
+
}[] | undefined;
|
|
151
|
+
}[] | undefined;
|
|
134
152
|
bufferedReflection?: string | undefined;
|
|
135
153
|
lastObservedAt?: Date | undefined;
|
|
136
154
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -152,6 +170,24 @@ export declare const MEMORY_ROUTES: readonly [import(".").ServerRoute<{
|
|
|
152
170
|
createdAt: Date;
|
|
153
171
|
updatedAt: Date;
|
|
154
172
|
bufferedObservations?: string | undefined;
|
|
173
|
+
bufferedObservationChunks?: {
|
|
174
|
+
cycleId: string;
|
|
175
|
+
observations: string;
|
|
176
|
+
tokenCount: number;
|
|
177
|
+
messageTokens: number;
|
|
178
|
+
id?: string | undefined;
|
|
179
|
+
messageIds?: string[] | undefined;
|
|
180
|
+
lastObservedAt?: Date | undefined;
|
|
181
|
+
createdAt?: Date | undefined;
|
|
182
|
+
suggestedContinuation?: string | undefined;
|
|
183
|
+
currentTask?: string | undefined;
|
|
184
|
+
threadTitle?: string | undefined;
|
|
185
|
+
extractedValues?: Record<string, unknown> | undefined;
|
|
186
|
+
extractionFailures?: {
|
|
187
|
+
slug: string;
|
|
188
|
+
error: string;
|
|
189
|
+
}[] | undefined;
|
|
190
|
+
}[] | undefined;
|
|
155
191
|
bufferedReflection?: string | undefined;
|
|
156
192
|
lastObservedAt?: Date | undefined;
|
|
157
193
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -175,6 +211,24 @@ export declare const MEMORY_ROUTES: readonly [import(".").ServerRoute<{
|
|
|
175
211
|
threadId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
176
212
|
activeObservations: import("zod").ZodString;
|
|
177
213
|
bufferedObservations: import("zod").ZodOptional<import("zod").ZodString>;
|
|
214
|
+
bufferedObservationChunks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
215
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
216
|
+
cycleId: import("zod").ZodString;
|
|
217
|
+
observations: import("zod").ZodString;
|
|
218
|
+
tokenCount: import("zod").ZodNumber;
|
|
219
|
+
messageIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
220
|
+
messageTokens: import("zod").ZodNumber;
|
|
221
|
+
lastObservedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
222
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
223
|
+
suggestedContinuation: import("zod").ZodOptional<import("zod").ZodString>;
|
|
224
|
+
currentTask: import("zod").ZodOptional<import("zod").ZodString>;
|
|
225
|
+
threadTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
|
+
extractedValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
227
|
+
extractionFailures: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
228
|
+
slug: import("zod").ZodString;
|
|
229
|
+
error: import("zod").ZodString;
|
|
230
|
+
}, import("zod/v4/core").$strip>>>;
|
|
231
|
+
}, import("zod/v4/core").$strip>>>;
|
|
178
232
|
bufferedReflection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
179
233
|
originType: import("zod").ZodEnum<{
|
|
180
234
|
observation: "observation";
|
|
@@ -203,6 +257,24 @@ export declare const MEMORY_ROUTES: readonly [import(".").ServerRoute<{
|
|
|
203
257
|
threadId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
204
258
|
activeObservations: import("zod").ZodString;
|
|
205
259
|
bufferedObservations: import("zod").ZodOptional<import("zod").ZodString>;
|
|
260
|
+
bufferedObservationChunks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
261
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
262
|
+
cycleId: import("zod").ZodString;
|
|
263
|
+
observations: import("zod").ZodString;
|
|
264
|
+
tokenCount: import("zod").ZodNumber;
|
|
265
|
+
messageIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
266
|
+
messageTokens: import("zod").ZodNumber;
|
|
267
|
+
lastObservedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
268
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
269
|
+
suggestedContinuation: import("zod").ZodOptional<import("zod").ZodString>;
|
|
270
|
+
currentTask: import("zod").ZodOptional<import("zod").ZodString>;
|
|
271
|
+
threadTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
272
|
+
extractedValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
273
|
+
extractionFailures: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
274
|
+
slug: import("zod").ZodString;
|
|
275
|
+
error: import("zod").ZodString;
|
|
276
|
+
}, import("zod/v4/core").$strip>>>;
|
|
277
|
+
}, import("zod/v4/core").$strip>>>;
|
|
206
278
|
bufferedReflection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
207
279
|
originType: import("zod").ZodEnum<{
|
|
208
280
|
observation: "observation";
|
|
@@ -243,6 +315,24 @@ export declare const MEMORY_ROUTES: readonly [import(".").ServerRoute<{
|
|
|
243
315
|
createdAt: Date;
|
|
244
316
|
updatedAt: Date;
|
|
245
317
|
bufferedObservations?: string | undefined;
|
|
318
|
+
bufferedObservationChunks?: {
|
|
319
|
+
cycleId: string;
|
|
320
|
+
observations: string;
|
|
321
|
+
tokenCount: number;
|
|
322
|
+
messageTokens: number;
|
|
323
|
+
id?: string | undefined;
|
|
324
|
+
messageIds?: string[] | undefined;
|
|
325
|
+
lastObservedAt?: Date | undefined;
|
|
326
|
+
createdAt?: Date | undefined;
|
|
327
|
+
suggestedContinuation?: string | undefined;
|
|
328
|
+
currentTask?: string | undefined;
|
|
329
|
+
threadTitle?: string | undefined;
|
|
330
|
+
extractedValues?: Record<string, unknown> | undefined;
|
|
331
|
+
extractionFailures?: {
|
|
332
|
+
slug: string;
|
|
333
|
+
error: string;
|
|
334
|
+
}[] | undefined;
|
|
335
|
+
}[] | undefined;
|
|
246
336
|
bufferedReflection?: string | undefined;
|
|
247
337
|
lastObservedAt?: Date | undefined;
|
|
248
338
|
metadata?: Record<string, unknown> | undefined;
|
|
@@ -262,6 +352,24 @@ export declare const MEMORY_ROUTES: readonly [import(".").ServerRoute<{
|
|
|
262
352
|
threadId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
263
353
|
activeObservations: import("zod").ZodString;
|
|
264
354
|
bufferedObservations: import("zod").ZodOptional<import("zod").ZodString>;
|
|
355
|
+
bufferedObservationChunks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
356
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
357
|
+
cycleId: import("zod").ZodString;
|
|
358
|
+
observations: import("zod").ZodString;
|
|
359
|
+
tokenCount: import("zod").ZodNumber;
|
|
360
|
+
messageIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
361
|
+
messageTokens: import("zod").ZodNumber;
|
|
362
|
+
lastObservedAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
363
|
+
createdAt: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
364
|
+
suggestedContinuation: import("zod").ZodOptional<import("zod").ZodString>;
|
|
365
|
+
currentTask: import("zod").ZodOptional<import("zod").ZodString>;
|
|
366
|
+
threadTitle: import("zod").ZodOptional<import("zod").ZodString>;
|
|
367
|
+
extractedValues: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
368
|
+
extractionFailures: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
369
|
+
slug: import("zod").ZodString;
|
|
370
|
+
error: import("zod").ZodString;
|
|
371
|
+
}, import("zod/v4/core").$strip>>>;
|
|
372
|
+
}, import("zod/v4/core").$strip>>>;
|
|
265
373
|
bufferedReflection: import("zod").ZodOptional<import("zod").ZodString>;
|
|
266
374
|
originType: import("zod").ZodEnum<{
|
|
267
375
|
observation: "observation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../src/server/server-adapter/routes/memory.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../../src/server/server-adapter/routes/memory.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8EA0BhB,CAAC"}
|
|
@@ -20,5 +20,5 @@ Object.defineProperty(exports, "stableWorkingMemoryCacheKey", {
|
|
|
20
20
|
enumerable: true,
|
|
21
21
|
get: function () { return chunk2ONW75MN_cjs.stableWorkingMemoryCacheKey; }
|
|
22
22
|
});
|
|
23
|
-
//# sourceMappingURL=working-memory-state-
|
|
24
|
-
//# sourceMappingURL=working-memory-state-
|
|
23
|
+
//# sourceMappingURL=working-memory-state-OMSMSYAW-4THWAGFK.cjs.map
|
|
24
|
+
//# sourceMappingURL=working-memory-state-OMSMSYAW-4THWAGFK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"working-memory-state-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"working-memory-state-OMSMSYAW-4THWAGFK.cjs"}
|
package/dist/{working-memory-state-J7ASTNXX-JNDYMEET.js → working-memory-state-OMSMSYAW-NEULPFZX.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { WORKING_MEMORY_STATE_ID, WORKING_MEMORY_STATE_PROCESSOR_ID, WorkingMemoryStateProcessor, stableWorkingMemoryCacheKey } from './chunk-NQLS4Z3W.js';
|
|
2
|
-
//# sourceMappingURL=working-memory-state-
|
|
3
|
-
//# sourceMappingURL=working-memory-state-
|
|
2
|
+
//# sourceMappingURL=working-memory-state-OMSMSYAW-NEULPFZX.js.map
|
|
3
|
+
//# sourceMappingURL=working-memory-state-OMSMSYAW-NEULPFZX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"working-memory-state-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"working-memory-state-OMSMSYAW-NEULPFZX.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/server",
|
|
3
|
-
"version": "1.48.0
|
|
3
|
+
"version": "1.48.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -115,15 +115,15 @@
|
|
|
115
115
|
"vitest": "4.1.8",
|
|
116
116
|
"zod": "^4.4.3",
|
|
117
117
|
"zod-to-ts": "^2.1.0",
|
|
118
|
-
"@internal/lint": "0.0.109",
|
|
119
118
|
"@internal/core": "0.1.0",
|
|
120
|
-
"@internal/storage-test-utils": "0.0.
|
|
121
|
-
"@internal/
|
|
122
|
-
"@internal/
|
|
123
|
-
"@
|
|
124
|
-
"@internal/
|
|
125
|
-
"@mastra/
|
|
126
|
-
"@mastra/core": "1.48.0
|
|
119
|
+
"@internal/storage-test-utils": "0.0.106",
|
|
120
|
+
"@internal/lint": "0.0.110",
|
|
121
|
+
"@internal/test-utils": "0.0.46",
|
|
122
|
+
"@internal/voice": "0.0.10",
|
|
123
|
+
"@internal/types-builder": "0.0.85",
|
|
124
|
+
"@mastra/agent-builder": "1.1.3",
|
|
125
|
+
"@mastra/core": "1.48.0",
|
|
126
|
+
"@mastra/schema-compat": "1.3.2"
|
|
127
127
|
},
|
|
128
128
|
"homepage": "https://mastra.ai",
|
|
129
129
|
"repository": {
|