Skip to content

Commit

Permalink
fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
timolegros committed Jan 3, 2025
1 parent e33b6c5 commit fc7e541
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"@elizaos/adapter-redis": "workspace:*",
"@elizaos/adapter-sqlite": "workspace:*",
"@elizaos/client-auto": "workspace:*",
"@elizaos/client-common": "workspace:*",
"@elizaos/client-direct": "workspace:*",
"@elizaos/client-discord": "workspace:*",
"@elizaos/client-farcaster": "workspace:*",
Expand Down
5 changes: 3 additions & 2 deletions packages/client-common/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Character, elizaLogger, IAgentRuntime, Client } from "@elizaos/core";
import { validateCommonConfig } from "./environment.ts";
import express, { Request, Response, NextFunction } from "express";
import { CommonApiClient } from "@commonxyz/api-client";
import {CommonApiClient, CommonApiEnvironment} from "@commonxyz/api-client";
import { z } from "zod";
import type { Server } from "http";
import {AgentMentionedSchema, AugmentedAgentMentionedSchema, CommonEnvSchema} from "./schemas.ts";
Expand All @@ -28,6 +28,7 @@ export class CommonClient {
this.config = validateCommonConfig(this.runtime);

this.commonApiClient = new CommonApiClient({
environment: this.config.COMMON_API_URL || CommonApiEnvironment.Default,
apiKey: this.config.COMMON_API_KEY,
address: this.config.COMMON_WALLET_ADDRESS,
});
Expand All @@ -40,7 +41,7 @@ export class CommonClient {

// TODO: fetch user once Common Api Client is published with the new route
// const user = await this.commonApiClient.User.getUser();
const user = { id: 121273, profile: { name: "temp" } };
const user = { id: 161400, profile: { name: "Eliza Dev 1" } };
this.commonUserId = user.id;
this.messageManager = new MessageManager(this.commonApiClient, this.runtime, this.commonUserId);

Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fc7e541

Please sign in to comment.