@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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
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,
|