@dudousxd/nestjs-agent-store-drizzle 0.33.0 → 0.34.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/dist/index.cjs CHANGED
@@ -2499,7 +2499,7 @@ var DrizzleAgentStore = class {
2499
2499
  deletedAt: /* @__PURE__ */ new Date()
2500
2500
  }).where((0, import_drizzle_orm4.eq)(this.t.agentThread.id, threadId));
2501
2501
  }
2502
- async forkThread(threadId, fromMessageId) {
2502
+ async forkThread(threadId, fromMessageId, options = {}) {
2503
2503
  const [source] = await this.db.select().from(this.t.agentThread).where((0, import_drizzle_orm4.eq)(this.t.agentThread.id, threadId));
2504
2504
  if (source === void 0) {
2505
2505
  throw new Error(`thread ${threadId} not found`);
@@ -2510,8 +2510,8 @@ var DrizzleAgentStore = class {
2510
2510
  const now = /* @__PURE__ */ new Date();
2511
2511
  const fork = {
2512
2512
  id: crypto.randomUUID(),
2513
- actorRef: source.actorRef,
2514
- tenantRef: source.tenantRef,
2513
+ actorRef: options.actorRef ?? source.actorRef,
2514
+ tenantRef: options.tenantRef !== void 0 ? options.tenantRef : source.tenantRef,
2515
2515
  title: source.title,
2516
2516
  transient: false,
2517
2517
  activeStreamId: null,