@elizaos/plugin-farcaster 1.0.0-beta.49 → 1.0.0-beta.50
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.js +10 -24
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4537,40 +4537,26 @@ var FarcasterInteractionManager = class {
|
|
|
4537
4537
|
const worldId = createUniqueUuid(this.runtime, cast.authorFid.toString());
|
|
4538
4538
|
const serverId = cast.authorFid.toString();
|
|
4539
4539
|
const roomId = createUniqueUuid(this.runtime, conversationId);
|
|
4540
|
-
await this.runtime.ensureWorldExists({
|
|
4541
|
-
id: worldId,
|
|
4542
|
-
name: `${cast.profile.username}'s Farcaster`,
|
|
4543
|
-
agentId: this.runtime.agentId,
|
|
4544
|
-
serverId,
|
|
4545
|
-
metadata: {
|
|
4546
|
-
ownership: { ownerId: cast.authorFid.toString() },
|
|
4547
|
-
farcaster: {
|
|
4548
|
-
username: cast.profile.username,
|
|
4549
|
-
id: cast.authorFid.toString(),
|
|
4550
|
-
name: cast.profile.name
|
|
4551
|
-
}
|
|
4552
|
-
}
|
|
4553
|
-
});
|
|
4554
|
-
await this.runtime.ensureRoomExists({
|
|
4555
|
-
id: roomId,
|
|
4556
|
-
name: `Thread with ${cast.profile.name ?? cast.profile.username}`,
|
|
4557
|
-
source: FARCASTER_SOURCE,
|
|
4558
|
-
type: ChannelType.THREAD,
|
|
4559
|
-
channelId: conversationId,
|
|
4560
|
-
serverId,
|
|
4561
|
-
worldId
|
|
4562
|
-
});
|
|
4563
4540
|
if (entityId !== this.runtime.agentId) {
|
|
4564
4541
|
await this.runtime.ensureConnection({
|
|
4565
4542
|
entityId,
|
|
4566
4543
|
roomId,
|
|
4544
|
+
worldName: `${cast.profile.username}'s Farcaster`,
|
|
4567
4545
|
userName: cast.profile.username,
|
|
4568
4546
|
name: cast.profile.name,
|
|
4569
4547
|
source: FARCASTER_SOURCE,
|
|
4570
4548
|
type: ChannelType.THREAD,
|
|
4571
4549
|
channelId: conversationId,
|
|
4572
4550
|
serverId,
|
|
4573
|
-
worldId
|
|
4551
|
+
worldId,
|
|
4552
|
+
metadata: {
|
|
4553
|
+
ownership: { ownerId: cast.authorFid.toString() },
|
|
4554
|
+
farcaster: {
|
|
4555
|
+
username: cast.profile.username,
|
|
4556
|
+
id: cast.authorFid.toString(),
|
|
4557
|
+
name: cast.profile.name
|
|
4558
|
+
}
|
|
4559
|
+
}
|
|
4574
4560
|
});
|
|
4575
4561
|
}
|
|
4576
4562
|
const memory = {
|