@mastra/server 0.0.0-fix-9244-clickhouse-metadata-20251104223105 → 0.0.0-fix-9244-clickhouse-metadata-20251105010900
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 +26 -3
- package/dist/{chunk-JIIVA4BA.cjs → chunk-DEVUDJQ3.cjs} +6 -22
- package/dist/chunk-DEVUDJQ3.cjs.map +1 -0
- package/dist/{chunk-KCP6I5F3.js → chunk-L2WUR4G2.js} +6 -22
- package/dist/chunk-L2WUR4G2.js.map +1 -0
- package/dist/{chunk-QFGNUBOA.cjs → chunk-THGSOQFE.cjs} +13 -8
- package/dist/chunk-THGSOQFE.cjs.map +1 -0
- package/dist/{chunk-FKZVCLOY.js → chunk-YWH4QY56.js} +13 -8
- package/dist/chunk-YWH4QY56.js.map +1 -0
- package/dist/server/handlers/agent-builder.cjs +20 -20
- package/dist/server/handlers/agent-builder.js +1 -1
- package/dist/server/handlers/memory.cjs +15 -15
- package/dist/server/handlers/memory.d.ts.map +1 -1
- package/dist/server/handlers/memory.js +1 -1
- package/dist/server/handlers.cjs +4 -4
- package/dist/server/handlers.js +2 -2
- package/package.json +10 -7
- package/dist/chunk-FKZVCLOY.js.map +0 -1
- package/dist/chunk-JIIVA4BA.cjs.map +0 -1
- package/dist/chunk-KCP6I5F3.js.map +0 -1
- package/dist/chunk-QFGNUBOA.cjs.map +0 -1
|
@@ -13932,12 +13932,13 @@ var Memory = class extends MastraMemory {
|
|
|
13932
13932
|
);
|
|
13933
13933
|
}
|
|
13934
13934
|
}
|
|
13935
|
-
async
|
|
13936
|
-
const { threadId, resourceId, perPage, page, orderBy, threadConfig, vectorSearchString, filter: filter3 } = args;
|
|
13935
|
+
async recall(args) {
|
|
13936
|
+
const { threadId, resourceId, perPage: perPageArg, page, orderBy, threadConfig, vectorSearchString, filter: filter3 } = args;
|
|
13937
13937
|
const config = this.getMergedThreadConfig(threadConfig || {});
|
|
13938
13938
|
if (resourceId) await this.validateThreadIsOwnedByResource(threadId, resourceId, config);
|
|
13939
|
+
const perPage = perPageArg !== void 0 ? perPageArg : config.lastMessages;
|
|
13939
13940
|
const vectorResults = [];
|
|
13940
|
-
this.logger.debug(`Memory
|
|
13941
|
+
this.logger.debug(`Memory recall() with:`, {
|
|
13941
13942
|
threadId,
|
|
13942
13943
|
perPage,
|
|
13943
13944
|
page,
|
|
@@ -14006,23 +14007,6 @@ var Memory = class extends MastraMemory {
|
|
|
14006
14007
|
const messages = list.get.all.db();
|
|
14007
14008
|
return { messages };
|
|
14008
14009
|
}
|
|
14009
|
-
async rememberMessages(args) {
|
|
14010
|
-
const { threadId, resourceId, vectorMessageSearch, config } = args;
|
|
14011
|
-
const threadConfig = this.getMergedThreadConfig(config || {});
|
|
14012
|
-
if (resourceId) await this.validateThreadIsOwnedByResource(threadId, resourceId, threadConfig);
|
|
14013
|
-
if (!threadConfig.lastMessages && !threadConfig.semanticRecall) {
|
|
14014
|
-
return { messages: [] };
|
|
14015
|
-
}
|
|
14016
|
-
const messagesResult = await this.query({
|
|
14017
|
-
resourceId,
|
|
14018
|
-
threadId,
|
|
14019
|
-
perPage: threadConfig.lastMessages,
|
|
14020
|
-
vectorSearchString: threadConfig.semanticRecall && vectorMessageSearch ? vectorMessageSearch : void 0,
|
|
14021
|
-
threadConfig: config
|
|
14022
|
-
});
|
|
14023
|
-
this.logger.debug(`Remembered message history includes ${messagesResult.messages.length} messages.`);
|
|
14024
|
-
return messagesResult;
|
|
14025
|
-
}
|
|
14026
14010
|
async getThreadById({ threadId }) {
|
|
14027
14011
|
return this.storage.getThreadById({ threadId });
|
|
14028
14012
|
}
|
|
@@ -23043,5 +23027,5 @@ var sendAgentBuilderActionRunEventHandler = createAgentBuilderWorkflowHandler(
|
|
|
23043
23027
|
);
|
|
23044
23028
|
|
|
23045
23029
|
export { agent_builder_exports, cancelAgentBuilderActionRunHandler, createAgentBuilderActionRunHandler, getAgentBuilderActionByIdHandler, getAgentBuilderActionRunByIdHandler, getAgentBuilderActionRunExecutionResultHandler, getAgentBuilderActionRunsHandler, getAgentBuilderActionsHandler, observeStreamAgentBuilderActionHandler, observeStreamLegacyAgentBuilderActionHandler, observeStreamVNextAgentBuilderActionHandler, resumeAgentBuilderActionHandler, resumeAsyncAgentBuilderActionHandler, resumeStreamAgentBuilderActionHandler, sendAgentBuilderActionRunEventHandler, startAgentBuilderActionRunHandler, startAsyncAgentBuilderActionHandler, streamAgentBuilderActionHandler, streamLegacyAgentBuilderActionHandler, streamVNextAgentBuilderActionHandler };
|
|
23046
|
-
//# sourceMappingURL=chunk-
|
|
23047
|
-
//# sourceMappingURL=chunk-
|
|
23030
|
+
//# sourceMappingURL=chunk-L2WUR4G2.js.map
|
|
23031
|
+
//# sourceMappingURL=chunk-L2WUR4G2.js.map
|