@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.
@@ -13932,12 +13932,13 @@ var Memory = class extends MastraMemory {
13932
13932
  );
13933
13933
  }
13934
13934
  }
13935
- async query(args) {
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 query() with:`, {
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-KCP6I5F3.js.map
23047
- //# sourceMappingURL=chunk-KCP6I5F3.js.map
23030
+ //# sourceMappingURL=chunk-L2WUR4G2.js.map
23031
+ //# sourceMappingURL=chunk-L2WUR4G2.js.map