Skip to content

Commit

Permalink
Merge pull request elizaOS#3332 from elizaOS/develop
Browse files Browse the repository at this point in the history
chore: develop => main
  • Loading branch information
odilitime authored Feb 6, 2025
2 parents cbc782c + 2dbf2cc commit 81a3528
Show file tree
Hide file tree
Showing 163 changed files with 522 additions and 317 deletions.
2 changes: 1 addition & 1 deletion docs/docs/advanced/eliza-in-tee.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ Finally, click on the `Submit` button to deploy your Eliza agent.

This will take a few minutes to complete. Once the deployment is complete, you can click on the `View` button to view your Eliza agent.

Here is an example of a deployed agent named `vitailik2077`:
Here is an example of a deployed agent named `vitalik2077`:

![Deployed Agent](https://i.imgur.com/ie8gpg9.png)

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/core/evaluators.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Evaluators enable agents to:
1. Import the necessary evaluator types:

```typescript
import { Evaluator, IAgentRuntime, Memory, State } from "@elizaos/core-core";
import { Evaluator, IAgentRuntime, Memory, State } from "@elizaos/core";
```

2. Choose or create an evaluator:
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/packages/agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sidebar_position: 1

# 🤖 Agent Package

The Agent Package (`@eliza/agent`) provides the high-level orchestration layer for Eliza, managing agent lifecycles, character loading, client initialization, and runtime coordination.
The Agent Package (`@elizaos/agent`) provides the high-level orchestration layer for Eliza, managing agent lifecycles, character loading, client initialization, and runtime coordination.

## Architecture Overview

Expand Down
22 changes: 11 additions & 11 deletions docs/docs/packages/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ The Form chain plugin enables interaction with Form blockchain's unique SocialFi
- **Inputs**:
- `subject`: Address to buy curves for
- `amount`: Number of curves tokens to buy (defaults to 1)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
- **Example**:
```json
{
Expand All @@ -799,48 +799,48 @@ The Form chain plugin enables interaction with Form blockchain's unique SocialFi
- **Inputs**:
- `subject`: Address whose curves to sell
- `amount`: Number of curves tokens to sell (defaults to 1)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
3. `WITHDRAW_CURVES_TOKEN` - Convert curves tokens to their ERC20 equivalent
- **Inputs**:
- `subject`: Address whose curves to withdraw
- `amount`: Number of curves tokens to withdraw (integer values only)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
4. `DEPOSIT_CURVES_TOKEN` - Convert ERC20 tokens back to curves tokens
- **Inputs**:
- `subject`: Address whose ERC20 to convert
- `amount`: Amount in ERC20 decimals (18 decimals precision)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
5. `MINT_CURVES_ERC20` - Mint new ERC20 token for curves holdings
- **Inputs**:
- `name`: Token name (1-32 characters)
- `symbol`: Token symbol (1-8 characters, uppercase)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
6. `GET_CURVES_BALANCE` - Check curves token balance
- **Inputs**:
- `subject`: Address to check balance for
- `owner`: Optional owner address (defaults to connected wallet)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
7. `GET_CURVES_BUY_PRICE` - Get price quote for buying curves
- **Inputs**:
- `subject`: Address to check price for
- `amount`: Number of curves tokens (defaults to 1)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
8. `GET_CURVES_SELL_PRICE` - Get price quote for selling curves
- **Inputs**:
- `subject`: Address to check price for
- `amount`: Number of curves tokens (defaults to 1)
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
8. `GET_CURVES_ERC20_DETAILS` - Get curves token respective ERC20 details
- **Inputs**:
- `subject`: Address to check ERC20 token for
- `formula`: Curves formula type ("QUADRATIC" or "LOGRITHMIC")
- `formula`: Curves formula type ("QUADRATIC" or "LOGARITHMIC")
**Providers:**
- `curvesFormulaProvider` - Provides context about available curves formulas and their use cases
Expand All @@ -866,13 +866,13 @@ The Form chain plugin enables interaction with Form blockchain's unique SocialFi
**Formula Types:**

- `QUADRATIC`: Standard bonding curve for regular use cases
- `LOGRITHMIC`: Optimized for high-volume trading and price stability
- `LOGARITHMIC`: Optimized for high-volume trading and price stability

**Best Practices:**

- Always check token balances before selling or withdrawing
- Use price quotes before executing trades
- For large-scale operations, use the LOGRITHMIC formula
- For large-scale operations, use the LOGARITHMIC formula
- Keep track of ERC20 token addresses after minting
- Validate token names and symbols before minting
- Consider gas costs when executing transactions
Expand Down
3 changes: 3 additions & 0 deletions packages/adapter-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@
"testMatch": [
"<rootDir>/src/__tests__/**/*.test.ts"
]
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/adapter-pglite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/adapter-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,8 @@
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/adapter-qdrant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,8 @@
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint --fix --cache ."
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/adapter-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/adapter-sqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/adapter-sqljs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/adapter-supabase/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-alexa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@
"format": "biome format src/",
"format:fix": "biome format --write src/",
"test": "vitest run"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-auto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-deva/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-direct/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-discord/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-eliza-home/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-farcaster/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,8 @@
"test": "vitest run",
"test:watch": "vitest watch",
"test:coverage": "vitest run --coverage"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@
"dev": "tsup --format esm --dts --watch",
"test": "vitest run",
"test:watch": "vitest"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-instagram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,8 @@
"dev": "tsup --format esm --dts --watch",
"test": "vitest run",
"test:watch": "vitest"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-lens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,8 @@
},
"peerDependencies": {
"@elizaos/core": "workspace:*"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-simsai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint --fix"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-slack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,8 @@
},
"engines": {
"node": ">=14.0.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-telegram-account/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-telegram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"dev": "tsup --format esm --dts --watch",
"test": "vitest run",
"test:watch": "vitest"
},
"publishConfig": {
"access": "public"
}
}
2 changes: 1 addition & 1 deletion packages/client-telegram/src/telegramClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getOrCreateRecommenderInBe } from "./getOrCreateRecommenderInBe.ts";
export class TelegramClient {
private bot: Telegraf<Context>;
private runtime: IAgentRuntime;
private messageManager: MessageManager;
public messageManager: MessageManager;
private backend;
private backendToken;
private tgTrader;
Expand Down
3 changes: 3 additions & 0 deletions packages/client-twitter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,8 @@
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
}
}
3 changes: 3 additions & 0 deletions packages/client-twitter/src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,9 @@ export class TwitterPostClient {
const parsedResponse = parseJSONObjectFromText(rawTweetContent);
if (parsedResponse?.text) {
tweetTextForPosting = parsedResponse.text;
} else {
// If not JSON, use the raw text directly
tweetTextForPosting = rawTweetContent.trim();
}

if (
Expand Down
3 changes: 3 additions & 0 deletions packages/client-xmtp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,8 @@
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"lint": "eslint --fix --cache ."
},
"publishConfig": {
"access": "public"
}
}
Loading

0 comments on commit 81a3528

Please sign in to comment.