diff --git a/CHANGELOG.md b/CHANGELOG.md index 24f7ac1b74..8574509e3a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,188 @@ # Changelog +## [v0.1.6-alpha.4](https://github.com/ai16z/eliza/tree/v0.1.6-alpha.4) (2024-12-17) + +[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.6-alpha.3...v0.1.6-alpha.4) + +**Fixed bugs:** + +- pnpm install fails on m1 mac \[Fixed with xcode-select reinstall\] [\#1146](https://github.com/ai16z/eliza/issues/1146) + +**Merged pull requests:** + +- chore: bump version to 0.1.6-alpha.4 [\#1159](https://github.com/ai16z/eliza/pull/1159) ([shakkernerd](https://github.com/shakkernerd)) +- fix: client twitter login and auth handler [\#1158](https://github.com/ai16z/eliza/pull/1158) ([shakkernerd](https://github.com/shakkernerd)) + +## [v0.1.6-alpha.3](https://github.com/ai16z/eliza/tree/v0.1.6-alpha.3) (2024-12-17) + +[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.6-alpha.2...v0.1.6-alpha.3) + +**Merged pull requests:** + +- chore: develop into main [\#1155](https://github.com/ai16z/eliza/pull/1155) ([shakkernerd](https://github.com/shakkernerd)) +- fix: fix direct-client ability to start agents [\#1154](https://github.com/ai16z/eliza/pull/1154) ([odilitime](https://github.com/odilitime)) +- fix: fetch log level to debug [\#1153](https://github.com/ai16z/eliza/pull/1153) ([shakkernerd](https://github.com/shakkernerd)) +- chore: bump version to 0.1.6-alpha.3 [\#1152](https://github.com/ai16z/eliza/pull/1152) ([shakkernerd](https://github.com/shakkernerd)) +- feat: update packages version script [\#1150](https://github.com/ai16z/eliza/pull/1150) ([shakkernerd](https://github.com/shakkernerd)) + +## [v0.1.6-alpha.2](https://github.com/ai16z/eliza/tree/v0.1.6-alpha.2) (2024-12-17) + +[Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.6-alpha.1...v0.1.6-alpha.2) + +**Implemented enhancements:** + +- Add a Hebrew Translation for the readme. [\#1022](https://github.com/ai16z/eliza/issues/1022) +- GenLayer Plugin [\#972](https://github.com/ai16z/eliza/issues/972) +- Feature Request: Add Aptos and Move Support to the Eliza Framework for Autonomous Agents [\#790](https://github.com/ai16z/eliza/issues/790) +- enhancement: Improve message threading and handling to reduce repetition [\#783](https://github.com/ai16z/eliza/issues/783) +- fal.ai image generation [\#648](https://github.com/ai16z/eliza/issues/648) +- Upgrade to turborepo for monorepo management [\#639](https://github.com/ai16z/eliza/issues/639) +- Add a plugin for storing data using the 0G protocol. [\#415](https://github.com/ai16z/eliza/issues/415) +- way for bots to have cool down periods \(dynamic tempature adjusts\) & only direct reply setting [\#399](https://github.com/ai16z/eliza/issues/399) +- Create an Eliza Trained on Dev Documentation [\#352](https://github.com/ai16z/eliza/issues/352) +- Get to a place where we can reliably create release tags [\#317](https://github.com/ai16z/eliza/issues/317) +- Managing Divergence Across the Eliza Ecosystem \(Multiple Forks\) [\#305](https://github.com/ai16z/eliza/issues/305) +- EVM Integration [\#303](https://github.com/ai16z/eliza/issues/303) +- Farcaster Client / Plugin [\#300](https://github.com/ai16z/eliza/issues/300) +- Allow twitter client to configure who to reply to based on following relationship [\#264](https://github.com/ai16z/eliza/issues/264) +- Agent is reposting images from other parts of conversation as its own image [\#260](https://github.com/ai16z/eliza/issues/260) +- Fix queueing in Twitter so messages are not rate limited constantly [\#259](https://github.com/ai16z/eliza/issues/259) +- Fix Twitter Multi-agent, Characters respond to each other's messages [\#258](https://github.com/ai16z/eliza/issues/258) +- Add shouldRespond handler to voice [\#244](https://github.com/ai16z/eliza/issues/244) +- Move cache to database [\#243](https://github.com/ai16z/eliza/issues/243) +- Store all local models in /models folder, with overridable model path [\#242](https://github.com/ai16z/eliza/issues/242) +- Add storeCredential and getCredential key value store, store secrets in db [\#241](https://github.com/ai16z/eliza/issues/241) +- Move embeddings to a service and a service and add ServiceType.EMBEDDING [\#240](https://github.com/ai16z/eliza/issues/240) +- Fix function calling, repetition and local action calling [\#161](https://github.com/ai16z/eliza/issues/161) +- Make image generation very nice and spicy [\#158](https://github.com/ai16z/eliza/issues/158) +- Add AI Code Reviewing application from GitHub Marketplace [\#81](https://github.com/ai16z/eliza/issues/81) +- Abstract image descriptions / recognition to use any model provider [\#72](https://github.com/ai16z/eliza/issues/72) +- 💡 Have silly tavern compatibility [\#56](https://github.com/ai16z/eliza/issues/56) +- User Interface Enhancement [\#54](https://github.com/ai16z/eliza/issues/54) +- "Private" Actions [\#29](https://github.com/ai16z/eliza/issues/29) +- Pump Fun Token Creation [\#28](https://github.com/ai16z/eliza/issues/28) +- Awareness of Twitter bio and username [\#27](https://github.com/ai16z/eliza/issues/27) + +**Fixed bugs:** + +- pnpm install updates pnpm lockfile when it should not [\#1121](https://github.com/ai16z/eliza/issues/1121) +- Not respecting OpenAI model selection [\#1105](https://github.com/ai16z/eliza/issues/1105) +- Scrapper login [\#1066](https://github.com/ai16z/eliza/issues/1066) +- code2prompt Not Functioning with WSL [\#1060](https://github.com/ai16z/eliza/issues/1060) +- Unexpected token 'A', "Agent not found" is not valid JSON [\#1059](https://github.com/ai16z/eliza/issues/1059) +- bug: setting auto in character file fails to load client-auto [\#1049](https://github.com/ai16z/eliza/issues/1049) +- TypeError - LinkedIn constructor error [\#990](https://github.com/ai16z/eliza/issues/990) +- Twitter/X Cache Login not staying logged in [\#939](https://github.com/ai16z/eliza/issues/939) +- Can't start project. Got `ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL` error [\#925](https://github.com/ai16z/eliza/issues/925) +- Client Twitter Login issue: Error: {"errors":\[{"code":399,"message":"Incorrect. Please try again."}\]} [\#905](https://github.com/ai16z/eliza/issues/905) +- Implement Retry Mechanism for Twitter Login with Cookie Validation [\#855](https://github.com/ai16z/eliza/issues/855) +- How to deal with Twitter login issues [\#841](https://github.com/ai16z/eliza/issues/841) +- This command: pnpm start --characters="characters/tate.character.json" results in an error [\#817](https://github.com/ai16z/eliza/issues/817) +- Characters Do Not Actually Use ExamplePost or ExampleMessage [\#791](https://github.com/ai16z/eliza/issues/791) +- `pnpm run dev` does not work out of the box [\#780](https://github.com/ai16z/eliza/issues/780) +- Agent Responds Twice to prompts [\#726](https://github.com/ai16z/eliza/issues/726) +- Twitter Client Breaks out of the box [\#673](https://github.com/ai16z/eliza/issues/673) +- Twitter client only works for one agent when running multiple agents simultaneously [\#656](https://github.com/ai16z/eliza/issues/656) +- Cannot find module '@ai16z/eliza' or its corresponding type declarations. [\#601](https://github.com/ai16z/eliza/issues/601) +- create-eliza-app package doesn't install or exist [\#553](https://github.com/ai16z/eliza/issues/553) +- Non node.js environments have issues building \(workers for instance\) [\#507](https://github.com/ai16z/eliza/issues/507) +- Error: Property 'clients' does not exist on type 'Plugin' in src/index.ts during pnpm start [\#423](https://github.com/ai16z/eliza/issues/423) +- using Groq API \(or RedPill or Google Gen AI\) as model provider [\#422](https://github.com/ai16z/eliza/issues/422) +- Error when starting Eliza agent: "fs.Stats constructor is deprecated" and "triggerUncaughtException" [\#387](https://github.com/ai16z/eliza/issues/387) +- no action response found in the response content for twitter or tg clients [\#319](https://github.com/ai16z/eliza/issues/319) +- Docs improvements bounty ideas [\#298](https://github.com/ai16z/eliza/issues/298) +- Quickstart guide is missing important info [\#284](https://github.com/ai16z/eliza/issues/284) +- advanced usage section of docs doesn't include instructions for memory management [\#275](https://github.com/ai16z/eliza/issues/275) +- On PNPM Install this happens [\#237](https://github.com/ai16z/eliza/issues/237) +- twitter folder paths for twitter cookies & cache/last tweet point to different places [\#230](https://github.com/ai16z/eliza/issues/230) +- pnpm install fails on Ubuntu [\#215](https://github.com/ai16z/eliza/issues/215) +- Knowledge system is disabled [\#164](https://github.com/ai16z/eliza/issues/164) +- LLM can't be trusted to parse it's own json [\#148](https://github.com/ai16z/eliza/issues/148) + +**Closed issues:** + +- Update totalMessages Logic in Boredom Scoring [\#408](https://github.com/ai16z/eliza/issues/408) +- Tests are failing [\#64](https://github.com/ai16z/eliza/issues/64) + +**Merged pull requests:** + +- chore: fix PR \#1147 [\#1148](https://github.com/ai16z/eliza/pull/1148) ([odilitime](https://github.com/odilitime)) +- fix: improve fomo integration [\#1147](https://github.com/ai16z/eliza/pull/1147) ([odilitime](https://github.com/odilitime)) +- chore: Merge monday, merging develop into main [\#1144](https://github.com/ai16z/eliza/pull/1144) ([odilitime](https://github.com/odilitime)) +- chore: remove comment [\#1143](https://github.com/ai16z/eliza/pull/1143) ([shakkernerd](https://github.com/shakkernerd)) +- clean newlines for new tweet [\#1141](https://github.com/ai16z/eliza/pull/1141) ([owlcode](https://github.com/owlcode)) +- fix: telegram client duplicate function removal [\#1140](https://github.com/ai16z/eliza/pull/1140) ([azep-ninja](https://github.com/azep-ninja)) +- fix: remove docker compose command since Docker file already runs [\#1139](https://github.com/ai16z/eliza/pull/1139) ([rarepepi](https://github.com/rarepepi)) +- feat: add support for handlebars templating engine as an option [\#1136](https://github.com/ai16z/eliza/pull/1136) ([erise133](https://github.com/erise133)) +- feat: allow agents to create/buy/sell tokens on FOMO.fund's bonding curve in plugin-solana [\#1135](https://github.com/ai16z/eliza/pull/1135) ([0xNerd](https://github.com/0xNerd)) +- fix: fix the name [\#1133](https://github.com/ai16z/eliza/pull/1133) ([n00b21337](https://github.com/n00b21337)) +- Add `chatapi.akash.network` to available list of model providers \(FREE LLAMA API ACCESS!\) [\#1131](https://github.com/ai16z/eliza/pull/1131) ([MbBrainz](https://github.com/MbBrainz)) +- fix: discord client duplicate function removal [\#1125](https://github.com/ai16z/eliza/pull/1125) ([azep-ninja](https://github.com/azep-ninja)) +- fix: add more heplful default agents \(Dobby and C3PO\) [\#1124](https://github.com/ai16z/eliza/pull/1124) ([n00b21337](https://github.com/n00b21337)) +- fix: Refactor to prevent unnecessary lockfile changes [\#1120](https://github.com/ai16z/eliza/pull/1120) ([monilpat](https://github.com/monilpat)) +- chore: fix broken pnpm lockfile [\#1115](https://github.com/ai16z/eliza/pull/1115) ([shakkernerd](https://github.com/shakkernerd)) +- feat: New docs for community section [\#1114](https://github.com/ai16z/eliza/pull/1114) ([madjin](https://github.com/madjin)) +- fix: Revert "Feat: Update community section of docs" [\#1112](https://github.com/ai16z/eliza/pull/1112) ([monilpat](https://github.com/monilpat)) +- Feat: Update community section of docs [\#1111](https://github.com/ai16z/eliza/pull/1111) ([madjin](https://github.com/madjin)) +- Documentation: Plugin list numbering and titles [\#1107](https://github.com/ai16z/eliza/pull/1107) ([brunocalmels](https://github.com/brunocalmels)) +- fix: add missing imports [\#1104](https://github.com/ai16z/eliza/pull/1104) ([shakkernerd](https://github.com/shakkernerd)) +- chore: fix broken pnpm lockfile [\#1103](https://github.com/ai16z/eliza/pull/1103) ([shakkernerd](https://github.com/shakkernerd)) +- fix: handle no termination message [\#1102](https://github.com/ai16z/eliza/pull/1102) ([shakkernerd](https://github.com/shakkernerd)) +- feat: Smoke Test script [\#1101](https://github.com/ai16z/eliza/pull/1101) ([shakkernerd](https://github.com/shakkernerd)) +- feat: Lens client [\#1098](https://github.com/ai16z/eliza/pull/1098) ([imthatcarlos](https://github.com/imthatcarlos)) +- fix: return types of createAgent & startAgent [\#1097](https://github.com/ai16z/eliza/pull/1097) ([BlockJuic3](https://github.com/BlockJuic3)) +- docs: add README.md to plugin-evm [\#1095](https://github.com/ai16z/eliza/pull/1095) ([nicky-ru](https://github.com/nicky-ru)) +- chore: debugging start behaviour [\#1094](https://github.com/ai16z/eliza/pull/1094) ([shakkernerd](https://github.com/shakkernerd)) +- chore: kill pnpm start [\#1093](https://github.com/ai16z/eliza/pull/1093) ([shakkernerd](https://github.com/shakkernerd)) +- chore: increase timeout to 3mins [\#1092](https://github.com/ai16z/eliza/pull/1092) ([shakkernerd](https://github.com/shakkernerd)) +- feat: allow users to configure models for grok [\#1091](https://github.com/ai16z/eliza/pull/1091) ([oxSaturn](https://github.com/oxSaturn)) +- fix: syntax error: invalid arithmetic operator [\#1088](https://github.com/ai16z/eliza/pull/1088) ([shakkernerd](https://github.com/shakkernerd)) +- fix: client slack linting errors [\#1086](https://github.com/ai16z/eliza/pull/1086) ([shakkernerd](https://github.com/shakkernerd)) +- chore: remove unused imports and rename runtime variable [\#1085](https://github.com/ai16z/eliza/pull/1085) ([shakkernerd](https://github.com/shakkernerd)) +- fix: dynamic import of fs module [\#1084](https://github.com/ai16z/eliza/pull/1084) ([shakkernerd](https://github.com/shakkernerd)) +- chore: remove unnecessary packages [\#1083](https://github.com/ai16z/eliza/pull/1083) ([shakkernerd](https://github.com/shakkernerd)) +- fix: eslint command [\#1082](https://github.com/ai16z/eliza/pull/1082) ([shakkernerd](https://github.com/shakkernerd)) +- chore: fix broken pnpm lockfile [\#1081](https://github.com/ai16z/eliza/pull/1081) ([shakkernerd](https://github.com/shakkernerd)) +- chore: add npmignore file [\#1080](https://github.com/ai16z/eliza/pull/1080) ([shakkernerd](https://github.com/shakkernerd)) +- fix: transfer action linting errors [\#1079](https://github.com/ai16z/eliza/pull/1079) ([shakkernerd](https://github.com/shakkernerd)) +- fix: errors in swap action in plugin-near [\#1078](https://github.com/ai16z/eliza/pull/1078) ([shakkernerd](https://github.com/shakkernerd)) +- fix: remove unnecessary devDependencies [\#1077](https://github.com/ai16z/eliza/pull/1077) ([shakkernerd](https://github.com/shakkernerd)) +- fix: missing eslint config file [\#1076](https://github.com/ai16z/eliza/pull/1076) ([shakkernerd](https://github.com/shakkernerd)) +- fix: remove unnecessary devDependencies [\#1075](https://github.com/ai16z/eliza/pull/1075) ([shakkernerd](https://github.com/shakkernerd)) +- fix: incorrect eslint config file path [\#1074](https://github.com/ai16z/eliza/pull/1074) ([shakkernerd](https://github.com/shakkernerd)) +- chore: commented out unused variables in solana swap action's plugin [\#1073](https://github.com/ai16z/eliza/pull/1073) ([shakkernerd](https://github.com/shakkernerd)) +- fix: Fixed twitter posts include from including `/n` in the text [\#1070](https://github.com/ai16z/eliza/pull/1070) ([Titan-Node](https://github.com/Titan-Node)) +- feat: create README\_VI.md [\#1058](https://github.com/ai16z/eliza/pull/1058) ([tqdpham96](https://github.com/tqdpham96)) +- feat: add venice.ai image generation [\#1057](https://github.com/ai16z/eliza/pull/1057) ([proteanx](https://github.com/proteanx)) +- chore: improve eslint by --cache [\#1056](https://github.com/ai16z/eliza/pull/1056) ([shengxj1](https://github.com/shengxj1)) +- fix: Fix pnpm lockfiles [\#1055](https://github.com/ai16z/eliza/pull/1055) ([jzvikart](https://github.com/jzvikart)) +- fix: discord client ci issues [\#1054](https://github.com/ai16z/eliza/pull/1054) ([cygaar](https://github.com/cygaar)) +- Update docs \(CONTRIBUTING.md\) [\#1053](https://github.com/ai16z/eliza/pull/1053) ([lessuselesss](https://github.com/lessuselesss)) +- feat: add/change change through REST api \(client-direct\) [\#1052](https://github.com/ai16z/eliza/pull/1052) ([odilitime](https://github.com/odilitime)) +- fix: add auto to clients in types to use client-auto [\#1050](https://github.com/ai16z/eliza/pull/1050) ([HashWarlock](https://github.com/HashWarlock)) +- chore: improve smokeTests environment validation and logging [\#1046](https://github.com/ai16z/eliza/pull/1046) ([aramxc](https://github.com/aramxc)) +- fix: Allow bot to post tweets with images generated by the imageGenerationPlugin [\#1040](https://github.com/ai16z/eliza/pull/1040) ([tcm390](https://github.com/tcm390)) +- feat: add plugin-ton [\#1039](https://github.com/ai16z/eliza/pull/1039) ([jinbangyi](https://github.com/jinbangyi)) +- chore: improving client typing [\#1036](https://github.com/ai16z/eliza/pull/1036) ([BalanaguYashwanth](https://github.com/BalanaguYashwanth)) +- feat: add README\_TH.md in docs directory [\#1034](https://github.com/ai16z/eliza/pull/1034) ([derRizzMeister](https://github.com/derRizzMeister)) +- feat: Add Telegram Team features [\#1033](https://github.com/ai16z/eliza/pull/1033) ([azep-ninja](https://github.com/azep-ninja)) +- chore: Update package.json [\#1031](https://github.com/ai16z/eliza/pull/1031) ([Freytes](https://github.com/Freytes)) +- feat: plugin-story [\#1030](https://github.com/ai16z/eliza/pull/1030) ([jacob-tucker](https://github.com/jacob-tucker)) +- feat: Add plugin-nft-generation: create Solana NFT collections. [\#1011](https://github.com/ai16z/eliza/pull/1011) ([xwxtwd](https://github.com/xwxtwd)) +- test: adding tests. changed files actions.test.ts, messages.test.ts, models.test.ts [\#998](https://github.com/ai16z/eliza/pull/998) ([ai16z-demirix](https://github.com/ai16z-demirix)) +- fix: Fix Parameter Parsing in plugin-evm TransferAction and Return Transaction Hash [\#965](https://github.com/ai16z/eliza/pull/965) ([FWangZil](https://github.com/FWangZil)) +- feat: Updated characters types, Discord & Telegram enhancements [\#957](https://github.com/ai16z/eliza/pull/957) ([azep-ninja](https://github.com/azep-ninja)) +- feat: add plugin-sui [\#934](https://github.com/ai16z/eliza/pull/934) ([jnaulty](https://github.com/jnaulty)) +- Adding plugin for ZKsync Era [\#906](https://github.com/ai16z/eliza/pull/906) ([arose00](https://github.com/arose00)) +- chore: improve formatting of .env.example for better readability [\#897](https://github.com/ai16z/eliza/pull/897) ([guzus](https://github.com/guzus)) +- feat: multiversx plugin [\#860](https://github.com/ai16z/eliza/pull/860) ([mgavrila](https://github.com/mgavrila)) +- Add slack plugin [\#859](https://github.com/ai16z/eliza/pull/859) ([AIFlowML](https://github.com/AIFlowML)) +- feat: improve X/Twitter login with cookie validation and retry mechanism [\#856](https://github.com/ai16z/eliza/pull/856) ([arslanaybars](https://github.com/arslanaybars)) +- Fix/charity [\#852](https://github.com/ai16z/eliza/pull/852) ([awidearray](https://github.com/awidearray)) +- feat: Add NEAR Protocol plugin [\#847](https://github.com/ai16z/eliza/pull/847) ([serrrfirat](https://github.com/serrrfirat)) +- fix: load image from diff endpoints [\#837](https://github.com/ai16z/eliza/pull/837) ([qgpcybs](https://github.com/qgpcybs)) +- FAL image settings escape hatch [\#814](https://github.com/ai16z/eliza/pull/814) ([daojonesceo](https://github.com/daojonesceo)) + ## [v0.1.6-alpha.1](https://github.com/ai16z/eliza/tree/v0.1.6-alpha.1) (2024-12-13) [Full Changelog](https://github.com/ai16z/eliza/compare/v0.1.5-alpha.5...v0.1.6-alpha.1) @@ -93,7 +276,7 @@ - feat: create README\_TH.md [\#918](https://github.com/ai16z/eliza/pull/918) ([asianviking](https://github.com/asianviking)) - feat: update gaianet config [\#915](https://github.com/ai16z/eliza/pull/915) ([L-jasmine](https://github.com/L-jasmine)) - fix: Farcater client cleanup and fixed response logic [\#914](https://github.com/ai16z/eliza/pull/914) ([sayangel](https://github.com/sayangel)) -- Twitter client enhancements [\#913](https://github.com/ai16z/eliza/pull/913) ([tharak123455](https://github.com/tharak123455)) +- feat: twitter client enhancements [\#913](https://github.com/ai16z/eliza/pull/913) ([tharak123455](https://github.com/tharak123455)) - feat: MAX\_TWEET\_LENGTH env implementation [\#912](https://github.com/ai16z/eliza/pull/912) ([onur-saf](https://github.com/onur-saf)) - feat: allow users to configure models for groq [\#910](https://github.com/ai16z/eliza/pull/910) ([oxSaturn](https://github.com/oxSaturn)) - fix: evaluation json parsing [\#907](https://github.com/ai16z/eliza/pull/907) ([cygaar](https://github.com/cygaar)) @@ -104,7 +287,7 @@ - chore: improved dev command [\#892](https://github.com/ai16z/eliza/pull/892) ([shakkernerd](https://github.com/shakkernerd)) - chore: added more help message to the important notice text. [\#891](https://github.com/ai16z/eliza/pull/891) ([shakkernerd](https://github.com/shakkernerd)) - chore: update models for groq [\#890](https://github.com/ai16z/eliza/pull/890) ([oxSaturn](https://github.com/oxSaturn)) -- Feat : github image cicd [\#889](https://github.com/ai16z/eliza/pull/889) ([v1xingyue](https://github.com/v1xingyue)) +- feat : github image cicd [\#889](https://github.com/ai16z/eliza/pull/889) ([v1xingyue](https://github.com/v1xingyue)) - chore: enhance dev script, performance improvement and add help message [\#887](https://github.com/ai16z/eliza/pull/887) ([shakkernerd](https://github.com/shakkernerd)) - chore: disable building docs on build command [\#884](https://github.com/ai16z/eliza/pull/884) ([shakkernerd](https://github.com/shakkernerd)) - fix: re-enable coverage report upload to Codecov in CI workflow [\#880](https://github.com/ai16z/eliza/pull/880) ([snobbee](https://github.com/snobbee)) @@ -235,7 +418,7 @@ - New knowledge not being ingested into agent memory after first run [\#614](https://github.com/ai16z/eliza/issues/614) - Tests failing - token.test.ts failing because it is commented out. Cache and goals tests are failing because jest is now switched with vitest [\#519](https://github.com/ai16z/eliza/issues/519) - Non node.js environments have issues building \(workers for instance\) [\#506](https://github.com/ai16z/eliza/issues/506) -- Error when call `generateObject` [\#469](https://github.com/ai16z/eliza/issues/469) +- Error when call `generateObjectV2` [\#469](https://github.com/ai16z/eliza/issues/469) - Current token.test.ts and videoGeneration.test.ts are throwing errors [\#464](https://github.com/ai16z/eliza/issues/464) - unable to run defaultcharacter with ModelProviderName.LLAMACLOUD local [\#271](https://github.com/ai16z/eliza/issues/271) - Incorrect steps in readme for starting eliza [\#270](https://github.com/ai16z/eliza/issues/270) diff --git a/Dockerfile b/Dockerfile index d97ed212cb..4a4341ebaa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,4 +52,4 @@ COPY --from=builder /app/scripts ./scripts COPY --from=builder /app/characters ./characters # Set the command to run the application -CMD ["pnpm", "start", "--non-interactive"] +CMD ["pnpm", "start"] diff --git a/agent/package.json b/agent/package.json index a0d291f934..3f25e7b553 100644 --- a/agent/package.json +++ b/agent/package.json @@ -1,61 +1,61 @@ { - "name": "@ai16z/agent", - "version": "0.1.5-alpha.6", - "main": "src/index.ts", - "type": "module", - "scripts": { - "start": "node --loader ts-node/esm src/index.ts", - "dev": "node --loader ts-node/esm src/index.ts", - "check-types": "tsc --noEmit" - }, - "nodemonConfig": { - "watch": [ - "src", - "../core/dist" - ], - "ext": "ts,json", - "exec": "node --enable-source-maps --loader ts-node/esm src/index.ts" - }, - "dependencies": { - "@ai16z/adapter-postgres": "workspace:*", - "@ai16z/adapter-sqlite": "workspace:*", - "@ai16z/client-auto": "workspace:*", - "@ai16z/client-direct": "workspace:*", - "@ai16z/client-discord": "workspace:*", - "@ai16z/client-farcaster": "workspace:*", - "@ai16z/client-lens": "workspace:*", - "@ai16z/client-telegram": "workspace:*", - "@ai16z/client-twitter": "workspace:*", - "@ai16z/client-slack": "workspace:*", - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-0g": "workspace:*", - "@ai16z/plugin-aptos": "workspace:*", - "@ai16z/plugin-bootstrap": "workspace:*", - "@ai16z/plugin-intiface": "workspace:*", - "@ai16z/plugin-coinbase": "workspace:*", - "@ai16z/plugin-conflux": "workspace:*", - "@ai16z/plugin-evm": "workspace:*", - "@ai16z/plugin-flow": "workspace:*", - "@ai16z/plugin-story": "workspace:*", - "@ai16z/plugin-goat": "workspace:*", - "@ai16z/plugin-icp": "workspace:*", - "@ai16z/plugin-image-generation": "workspace:*", - "@ai16z/plugin-nft-generation": "workspace:*", - "@ai16z/plugin-node": "workspace:*", - "@ai16z/plugin-solana": "workspace:*", - "@ai16z/plugin-starknet": "workspace:*", - "@ai16z/plugin-ton": "workspace:*", - "@ai16z/plugin-sui": "workspace:*", - "@ai16z/plugin-tee": "workspace:*", - "@ai16z/plugin-multiversx": "workspace:*", - "@ai16z/plugin-near": "workspace:*", - "@ai16z/plugin-zksync-era": "workspace:*", - "readline": "1.3.0", - "ws": "8.18.0", - "yargs": "17.7.2" - }, - "devDependencies": { - "ts-node": "10.9.2", - "tsup": "8.3.5" - } + "name": "@ai16z/agent", + "version": "0.1.6-alpha.4", + "main": "src/index.ts", + "type": "module", + "scripts": { + "start": "node --loader ts-node/esm src/index.ts", + "dev": "node --loader ts-node/esm src/index.ts", + "check-types": "tsc --noEmit" + }, + "nodemonConfig": { + "watch": [ + "src", + "../core/dist" + ], + "ext": "ts,json", + "exec": "node --enable-source-maps --loader ts-node/esm src/index.ts" + }, + "dependencies": { + "@ai16z/adapter-postgres": "workspace:*", + "@ai16z/adapter-sqlite": "workspace:*", + "@ai16z/client-auto": "workspace:*", + "@ai16z/client-direct": "workspace:*", + "@ai16z/client-discord": "workspace:*", + "@ai16z/client-farcaster": "workspace:*", + "@ai16z/client-lens": "workspace:*", + "@ai16z/client-telegram": "workspace:*", + "@ai16z/client-twitter": "workspace:*", + "@ai16z/client-slack": "workspace:*", + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-0g": "workspace:*", + "@ai16z/plugin-aptos": "workspace:*", + "@ai16z/plugin-bootstrap": "workspace:*", + "@ai16z/plugin-intiface": "workspace:*", + "@ai16z/plugin-coinbase": "workspace:*", + "@ai16z/plugin-conflux": "workspace:*", + "@ai16z/plugin-evm": "workspace:*", + "@ai16z/plugin-flow": "workspace:*", + "@ai16z/plugin-story": "workspace:*", + "@ai16z/plugin-goat": "workspace:*", + "@ai16z/plugin-icp": "workspace:*", + "@ai16z/plugin-image-generation": "workspace:*", + "@ai16z/plugin-nft-generation": "workspace:*", + "@ai16z/plugin-node": "workspace:*", + "@ai16z/plugin-solana": "workspace:*", + "@ai16z/plugin-starknet": "workspace:*", + "@ai16z/plugin-ton": "workspace:*", + "@ai16z/plugin-sui": "workspace:*", + "@ai16z/plugin-tee": "workspace:*", + "@ai16z/plugin-multiversx": "workspace:*", + "@ai16z/plugin-near": "workspace:*", + "@ai16z/plugin-zksync-era": "workspace:*", + "readline": "1.3.0", + "ws": "8.18.0", + "yargs": "17.7.2" + }, + "devDependencies": { + "ts-node": "10.9.2", + "tsup": "8.3.5" + } } diff --git a/agent/src/index.ts b/agent/src/index.ts index c22cbcc522..1968a64a6c 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -69,9 +69,9 @@ export const wait = (minTime: number = 1000, maxTime: number = 3000) => { }; const logFetch = async (url: string, options: any) => { - elizaLogger.info(`Fetching ${url}`); + elizaLogger.debug(`Fetching ${url}`); // Disabled to avoid disclosure of sensitive information such as API keys - // elizaLogger.info(JSON.stringify(options, null, 2)); + // elizaLogger.debug(JSON.stringify(options, null, 2)); return fetch(url, options); }; @@ -648,10 +648,16 @@ const startAgents = async () => { elizaLogger.error("Error starting agents:", error); } + // upload some agent functionality into directClient + directClient.startAgent = async (character) => { + // wrap it so we don't have to inject directClient later + return startAgent(character, directClient); + }; directClient.start(serverPort); - elizaLogger.log("Visit the following URL to chat with your agents:"); - elizaLogger.log(`http://localhost:5173`); + elizaLogger.log( + "Run `pnpm start:client` to start the client and visit the outputted URL (http://localhost:5173) to chat with your agents" + ); }; startAgents().catch((error) => { diff --git a/client/package.json b/client/package.json index 1e4dc2c25d..b256f15de9 100644 --- a/client/package.json +++ b/client/package.json @@ -1,47 +1,47 @@ { - "name": "eliza-client", - "private": true, - "version": "0.1.5-alpha.1", - "type": "module", - "scripts": { - "dev": "vite", - "build": "vite build", - "check-types": "tsc --noEmit", - "lint": "eslint .", - "preview": "vite preview" - }, - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@radix-ui/react-dialog": "1.1.2", - "@radix-ui/react-separator": "1.1.0", - "@radix-ui/react-slot": "1.1.0", - "@radix-ui/react-tooltip": "1.1.4", - "@tanstack/react-query": "5.61.0", - "class-variance-authority": "0.7.1", - "clsx": "2.1.1", - "lucide-react": "0.460.0", - "react": "18.3.1", - "react-dom": "18.3.1", - "react-router-dom": "6.22.1", - "tailwind-merge": "2.5.5", - "tailwindcss-animate": "1.0.7", - "vite-plugin-top-level-await": "1.4.4", - "vite-plugin-wasm": "3.3.0" - }, - "devDependencies": { - "@eslint/js": "9.16.0", - "@types/node": "22.8.4", - "@types/react": "18.3.12", - "@types/react-dom": "18.3.1", - "@vitejs/plugin-react": "4.3.3", - "autoprefixer": "10.4.20", - "eslint-plugin-react-hooks": "5.0.0", - "eslint-plugin-react-refresh": "0.4.14", - "globals": "15.11.0", - "postcss": "8.4.49", - "tailwindcss": "3.4.15", - "typescript": "5.6.3", - "typescript-eslint": "8.11.0", - "vite": "link:@tanstack/router-plugin/vite" - } + "name": "eliza-client", + "private": true, + "version": "0.1.6-alpha.4", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "check-types": "tsc --noEmit", + "lint": "eslint .", + "preview": "vite preview" + }, + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@radix-ui/react-dialog": "1.1.2", + "@radix-ui/react-separator": "1.1.0", + "@radix-ui/react-slot": "1.1.0", + "@radix-ui/react-tooltip": "1.1.4", + "@tanstack/react-query": "5.61.0", + "class-variance-authority": "0.7.1", + "clsx": "2.1.1", + "lucide-react": "0.460.0", + "react": "18.3.1", + "react-dom": "18.3.1", + "react-router-dom": "6.22.1", + "tailwind-merge": "2.5.5", + "tailwindcss-animate": "1.0.7", + "vite-plugin-top-level-await": "1.4.4", + "vite-plugin-wasm": "3.3.0" + }, + "devDependencies": { + "@eslint/js": "9.16.0", + "@types/node": "22.8.4", + "@types/react": "18.3.12", + "@types/react-dom": "18.3.1", + "@vitejs/plugin-react": "4.3.3", + "autoprefixer": "10.4.20", + "eslint-plugin-react-hooks": "5.0.0", + "eslint-plugin-react-refresh": "0.4.14", + "globals": "15.11.0", + "postcss": "8.4.49", + "tailwindcss": "3.4.15", + "typescript": "5.6.3", + "typescript-eslint": "8.11.0", + "vite": "link:@tanstack/router-plugin/vite" + } } diff --git a/docs/community/Streams/12-2024/2024-12-13.md b/docs/community/Streams/12-2024/2024-12-13.md index 737f69aab0..ebcb77dc68 100644 --- a/docs/community/Streams/12-2024/2024-12-13.md +++ b/docs/community/Streams/12-2024/2024-12-13.md @@ -1,161 +1,130 @@ -# What Did You Get Done This Week? 5 - -Link: https://x.com/shawmakesmagic/status/1867758339150819739 - -[00:02:45] Tropic -- Working on Redux and agent DaVinci AI (fork of Eliza) -- Built streams UI showing DaVinci's thoughts on various topics -- Integrated NASA APIs for deep space photo analysis -- Created review engine for content quality before Twitter posts -- Shipped admin UI for Twitter post management -- Improving docs and refactoring Redux extensions - -[00:07:00] Tim Cotton -- Spoke at AI Summit NYC about Eliza -- Working on Chad's metacognition loop -- Preparing to contribute to Eliza repo -- Actively hiring TypeScript developers -- Developing two upcoming partner projects - -[00:09:00] HDP -- Building an agent on Eliza Framework for Real Agency HQ -- Implemented memory summarization system -- Fine-tuned a model for character "Sploots" -- Improved memory handling by summarizing past conversations -- Fixed model size issues in default runtime - -[00:13:45] IQ6900 -- Launching on-chain ASCII art storage service on Solana -- Developed efficient state-based storage solution -- Planning to introduce AI agent named Q -- Working to store Eliza's character file on-chain - -[00:19:15] Frank -- Working on character sheets for Eliza agents -- Contributing to the community growth -- Focusing on improving agent interactions - -[00:21:40] James (CollabLand) -- Released AI agent starter kit -- Added support for Telegram integration -- Planning Twitter and Farcaster Frames support -- Implementing Solana support -- Using Lit Protocol for key management - -[00:25:45] 0xGlue (Duck AI) -- Improved Duck's codebase stability -- Working on hosting solution -- Implemented swarms functionality -- Developed decentralized P2P network for agent communication - -[00:27:35] Chris Torres -- Created Eliza.gg -- Built documentation gathering system -- Implemented Q&A system for Eliza ecosystem - -[00:30:00] Reality Spiral -- Working with agents to define their own character files -- Developing GitHub plugin for agent interaction -- Building Coinbase integration features -- Creating self-improving prompts - -[00:36:00] Jamie -- Developing the Muse system -- Working on Muse of Truth for intelligence assessment -- Creating multiple specialized AI agents - -[00:41:45] Shannon Code -- Working on Emblem Vault wallet service -- Implemented message ingestion across platforms -- Developed temporal memory system -- Working on agent interoperability - -[00:47:00] Ben (Agent Tank) -- Launched Agent Tank with 4 computer-use agents -- Added OCR and voice features using 11labs -- Open-sourcing stack as "Tankwork" -- Planning Eliza compatibility - -[00:50:00] Soto -- Built workshop for Monad developer ecosystem -- Implemented compressed NFTs for Bozo agent -- Working on 3D NFT collection - -[00:52:15] Howie -- Created Eliza installer -- Built Eliza character generator -- Added OpenRouter API integration -- Implemented character file backup system - -[00:54:40] Anthony (XR Publisher) -- Developed admin panel in Cloudflare worker -- Implemented edge-based memory system -- Added Discord integration with slash commands -- Working on 3D social network powered by AI - -[01:02:00] Bloom -- Developed agent communication logic in 3D environment -- Working on character rigging -- Implementing React-based sentiment detection - -[01:04:00] Ranch (Berkshire Hathaway) -- Fixed Docker issues -- Working on autonomous trading agent -- Implementing risk factor assessment -- Developing yield management system - -[01:05:45] Unlucky (Escapism) -- Created autonomous art generation AI -- Refined character file with agent's input -- Reduced reply spam and improved engagement -- Building Discord community - -[01:07:25] Hawkeye -- Working on storytelling bot project -- Developing choose-your-own-adventure system -- Experimenting with Alchemy for video commentary features -- Planning AI-driven talk show format - -[01:09:40] Trench Buddy -- Creating individualized trading agents -- Modified Eliza framework for multiple agent support -- Built AWS CloudFormation templates -- Implemented Lambda function integration -- Added PostgreSQL database support - -[01:13:00] Auk -- Working on Brunette token -- Developed agent on Warpcast -- Added MidJourney integration -- Implementing wallet handling and tipping system - -[01:14:45] Maya -- Launched Axie on PumpFun -- Developing AI clone capabilities for KOLs -- Working with large alpha groups -- Planning integration across platforms - -[01:15:45] Asimov (Eliza Wakes Up team) -- Implemented persistent web memory -- Added voice input/output using Whisper and 11 Labs -- Created Laura for Eliza with contextual image generation -- Developed conversation sharing system -- Built points system -- Implemented journal entry system every 6 hours -- Working on core memories feature - -[01:18:30] Shaw (final update) -- Scaling up operations and hiring team members -- Completed foundation formation for Eliza Labs -- Working on value accrual strategies -- Developing partnership with major university for PhD program -- Architecting Eliza V2 -- Focus on stability and multimodal capabilities - -[01:19:45] Jin -- Refined Discord summarization scripts -- Open-sourced Discord summarizer -- Implemented Markdown to JSON conversion -- Created GitHub contributor analysis tools -- Working on AI agent training data systems -- Developing self-aware codebase features +--- +sidebar_position: 5 +title: "What Did You Get Done This Week? #5" +description: "Building the Future: 30+ Developers Share Their AI Agent Progress" +--- + +# What Did You Get Done This Week? #5 + +**Building the Future: 30+ Developers Share Their AI Agent Progress** + +Date: 2024-12-13 +Twitter Spaces: https://x.com/i/spaces/1lDxLlgYjMkxm +YouTube Link: https://www.youtube.com/watch?v=4u8rbjmvWC0 + +## Timestamps + +- **00:01:04** - shawmakesmagic: Introduction and Format Changes for the Space + - Link: +- **00:02:38** - xsubtropic: Redux project, DaVinci AI + - Link: +- **00:06:57** - CottenIO: Scripted, AI Summit Recap + - Link: +- **00:08:58** - HDPbilly: Real Agency HQ, "Sploot" agent + - Link: +- **00:13:29** - IQ6900: On-chain ASCII art service + - Link: +- **00:18:50** - frankdegods: Eliza Character Sheet Tweaks + - Link: +- **00:20:15** - jamesyoung: AI Agent Starter Kit + - Link: +- **00:23:29** - 0xglu: Ducky and Agent Swarms + - Link: +- **00:25:30** - chrislatorres: Eliza.gg - Eliza documentation site + - Link: +- **00:27:47** - reality_spiral: Self-Improving Agents & Github integration + - Link: +- **00:31:43** - robotsreview: Story Protocol plugin and Agentic TCPIP + - Link: +- **00:34:19** - shannonNullCode: Emblem Vault & Message Ingestion + - Link: +- **00:38:40** - bcsmithx: Agent Tank - Computer use agents + - Link: +- **00:41:20** - boyaloxer: Plugin Feel - Emotion-based agent + - Link: +- **00:44:09** - JustJamieJoyce: Muse of Truth/Research AI agents + - Link: +- **00:46:11** - yikesawjeez: Discord bot & Contribution updates + - Link: +- **00:50:56** - RodrigoSotoAlt: Monad, Metaplex Nfts, Solana integrations + - Link: +- **00:53:22** - HowieDuhzit: Eliza Character Generator + - Link: +- **00:55:57** - xrpublisher: XR Publisher, 3D Social Network on the edge + - Link: +- **01:00:57** - BV_Bloom1: 3D Agent Interactions + - Link: +- **01:02:57** - nftRanch: Trading Bot and Eliza V2 integrations + - Link: +- **01:05:57** - 019ec6e2: Mimetic Platform and Agent Interactions + - Link: +- **01:09:17** - jacobmtucker: Agent Transaction Control Protocol + - Link: +- **01:12:26** - CurtisLaird5: C-Studio character interface + - Link: +- **01:17:13** - unl__cky: Escapism, art generation AI + - Link: +- **01:19:17** - Rowdymode: Twin Tone - Interactive Streaming + - Link: +- **01:20:29** - mitchcastanet: Binary Star System research with agents + - Link: +- **01:23:15** - GoatOfGamblers: Prediction market for meme coins + - Link: +- **01:25:27** - JohnNaulty: SWE contributions, plugin working groups + - Link: +- **01:29:30** - mayanicks0x: Axie, AI KOL Agent + - Link: +- **01:31:30** - wakesync: Eliza Wakes Up, web app updates + - Link: +- **01:35:28** - TrenchBuddy: Trading agents and AWS templates + - Link: +- **01:38:36** - rakshitaphilip: Brunette token and agent tips on Warpcast + - Link: +- **01:44:49** - MbBrainz: Menu Recommendation app + - Link: +- **01:46:03** - Hawkeye_Picks: Storytelling bot + - Link: +- **01:49:16** - shawmakesmagic: Hiring and Eliza V2 + - Link: +- **01:54:30** - dankvr: Community updates, tooling + - Link: + + +## Summary + +This Twitter Spaces event, hosted by ai16z and titled "What Did You Get Done This Week? #5", was a fast-paced update session focusing on community members' progress on projects related to the Eliza AI framework. It was designed to be more structured, focusing on concrete accomplishments of the week and quickly moving through each speaker. A key aspect was also including updates from people who didn't want to speak directly, by reading their updates from a thread. + +**Structure and Goals:** + +* **Focused Updates:** The goal was to have concise updates, with emphasis on what was *actually achieved* during the week rather than broader discussions. +* **Time Management:** The hosts aimed to keep things moving efficiently and keep the meeting within a target time frame. +* **Inclusive Updates:** Those who didn't want to speak could post a list of their accomplishments in a reply to a tweet, and those would be read aloud at the end. +* **Data Capture:** The event aimed to capture updates for transcription, summaries, and later documentation purposes. +* **Community Coordination:** The updates were seen as a way to help with coordination within the AI 16z community and with future planning. +* **Working Groups:** There were several mentions of establishing more focused working groups around topics like swarms, plugins, and security. + +**Other Notable Points:** + +* **Hiring:** Several speakers mentioned that they were actively hiring for developers. +* **Open Source:** A consistent theme was the push for open-source development and community contribution. +* **AI Integration:** There were many projects that were actively integrating AI agents into different platforms like Twitter, Discord, Telegram, and gaming environments. +* **Memory and Context:** A recurring challenge was dealing with memory limitations and ensuring agents had sufficient context for coherent responses. +* **Iterative Refinement:** There was a lot of focus on iteratively testing, tweaking, and improving both agent behavior and infrastructure. +* **Eliza v2:** There was a lot of hype around the upcoming Eliza v2 release, with many teams planning to align their development with the new version. +* **Rapid Pace:** The rapid pace of development in the Eliza ecosystem was acknowledged, with many feeling like they were "stupidly early." +* **Community Focus:** There was also recognition of the importance of community collaboration. + +Overall, this event showed a vibrant and active community rapidly developing projects using the Eliza framework. It highlighted both the significant progress made in the past week and the challenges being tackled, showcasing the potential for AI agents in diverse real world applications. + + +## Hot Takes + +1. **"These corporations are going to cease to exist."** - **(00:07:31)** Tim Cotton makes a bold prediction about the future of traditional corporations in the face of AI agent technology. This implies a near-term and disruptive shift. + +2. **"I think I own like all the coins on stage and in the audience."** - **(00:19:25)** Frankdegods makes a boastful claim about his holdings which may ruffle feathers, especially regarding insider trading and ethical issues. + +3. **"I'm pretty sure that's a bug. You should make a PR for that because that should be fixed. That's definitely a bug."** - **(00:11:56)** Shaw quickly calls out the small model being set as default, and pushes for action on it. This could be considered a strong take that implies a sense of urgency to fix the problem. + +4. **"The goal always will be up and running with an agent in three minutes."** - **(00:22:09)** JamesYoung makes a claim about what is achievable with their tooling that may be too simplistic for some devs, and could be hard to reach with all the nuances and API keys they would need. + +5. **"We think that IP is the native asset ingested by and produced by agents like Eliza."** - **(01:10:26)** Jacob Tucker frames intellectual property as the core fuel for AI agents, which is a strong claim with implications about ownership and legal frameworks within AI systems and how that works with open source code. diff --git a/docs/docs/contributing.md b/docs/docs/contributing.md index a62f52f552..eef9366d1a 100644 --- a/docs/docs/contributing.md +++ b/docs/docs/contributing.md @@ -38,11 +38,11 @@ We believe in the power of the OODA Loop - a decision-making framework that emph 3. Fork the repo and create your branch from `main`. 1. The name of the branch should start with the issue number and be descriptive of the changes you are making. - 1. eg. 40--add-test-for-bug-123 -4. If you've added code that should be tested, add tests. -5. Ensure the test suite passes. -6. Make sure your code lints. -7. Issue that pull request! + 2. Example: 9999--add-test-for-bug-123 +3. If you've added code that should be tested, add tests. +4. Ensure the test suite passes. +5. Make sure your code lints. +6. Issue that pull request! ## Styleguides diff --git a/docs/package.json b/docs/package.json index 69420840df..595cb9b363 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,55 +1,55 @@ { - "name": "eliza-docs", - "version": "0.1.5-alpha.1", - "private": true, - "scripts": { - "docusaurus": "docusaurus", - "start": "docusaurus start --no-open", - "dev": "docusaurus start --port 3002 --no-open", - "build": "docusaurus build", - "swizzle": "docusaurus swizzle", - "deploy": "docusaurus deploy", - "clear": "docusaurus clear", - "serve": "docusaurus serve", - "write-translations": "docusaurus write-translations", - "write-heading-ids": "docusaurus write-heading-ids" - }, - "dependencies": { - "@docusaurus/core": "3.6.3", - "@docusaurus/plugin-content-blog": "3.6.3", - "@docusaurus/plugin-content-docs": "3.6.3", - "@docusaurus/plugin-ideal-image": "3.6.3", - "@docusaurus/preset-classic": "3.6.3", - "@docusaurus/theme-mermaid": "3.6.3", - "@mdx-js/react": "3.0.1", - "clsx": "2.1.1", - "docusaurus-lunr-search": "3.5.0", - "dotenv": "^16.4.7", - "prism-react-renderer": "2.3.1", - "react": "18.3.1", - "react-dom": "18.3.1", - "react-router-dom": "6.22.1" - }, - "devDependencies": { - "@docusaurus/module-type-aliases": "3.6.3", - "@docusaurus/types": "3.6.3", - "docusaurus-plugin-typedoc": "1.0.5", - "typedoc": "0.26.11", - "typedoc-plugin-markdown": "4.2.10" - }, - "browserslist": { - "production": [ - ">0.5%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 3 chrome version", - "last 3 firefox version", - "last 5 safari version" - ] - }, - "engines": { - "node": "23.3.0" - } + "name": "eliza-docs", + "version": "0.1.6-alpha.4", + "private": true, + "scripts": { + "docusaurus": "docusaurus", + "start": "docusaurus start --no-open", + "dev": "docusaurus start --port 3002 --no-open", + "build": "docusaurus build", + "swizzle": "docusaurus swizzle", + "deploy": "docusaurus deploy", + "clear": "docusaurus clear", + "serve": "docusaurus serve", + "write-translations": "docusaurus write-translations", + "write-heading-ids": "docusaurus write-heading-ids" + }, + "dependencies": { + "@docusaurus/core": "3.6.3", + "@docusaurus/plugin-content-blog": "3.6.3", + "@docusaurus/plugin-content-docs": "3.6.3", + "@docusaurus/plugin-ideal-image": "3.6.3", + "@docusaurus/preset-classic": "3.6.3", + "@docusaurus/theme-mermaid": "3.6.3", + "@mdx-js/react": "3.0.1", + "clsx": "2.1.1", + "docusaurus-lunr-search": "3.5.0", + "dotenv": "^16.4.7", + "prism-react-renderer": "2.3.1", + "react": "18.3.1", + "react-dom": "18.3.1", + "react-router-dom": "6.22.1" + }, + "devDependencies": { + "@docusaurus/module-type-aliases": "3.6.3", + "@docusaurus/types": "3.6.3", + "docusaurus-plugin-typedoc": "1.0.5", + "typedoc": "0.26.11", + "typedoc-plugin-markdown": "4.2.10" + }, + "browserslist": { + "production": [ + ">0.5%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 3 chrome version", + "last 3 firefox version", + "last 5 safari version" + ] + }, + "engines": { + "node": "23.3.0" + } } diff --git a/lerna.json b/lerna.json index e8390a9625..24d0a8d7ad 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,11 @@ { - "version": "0.1.5-alpha.5", - "packages": ["packages/*", "docs", "agent", "client", "!packages/_examples"], - "npmClient": "pnpm" + "version": "0.1.6-alpha.4", + "packages": [ + "packages/*", + "docs", + "agent", + "client", + "!packages/_examples" + ], + "npmClient": "pnpm" } diff --git a/packages/adapter-postgres/package.json b/packages/adapter-postgres/package.json index d31786af3e..cca3665d74 100644 --- a/packages/adapter-postgres/package.json +++ b/packages/adapter-postgres/package.json @@ -1,20 +1,20 @@ { - "name": "@ai16z/adapter-postgres", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@types/pg": "8.11.10", - "pg": "8.13.1" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - } + "name": "@ai16z/adapter-postgres", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@types/pg": "8.11.10", + "pg": "8.13.1" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + } } diff --git a/packages/adapter-sqlite/package.json b/packages/adapter-sqlite/package.json index 0a073ffa75..d3f47a0ba2 100644 --- a/packages/adapter-sqlite/package.json +++ b/packages/adapter-sqlite/package.json @@ -1,24 +1,24 @@ { - "name": "@ai16z/adapter-sqlite", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@types/better-sqlite3": "7.6.12", - "better-sqlite3": "11.6.0", - "sqlite-vec": "0.1.6" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/adapter-sqlite", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@types/better-sqlite3": "7.6.12", + "better-sqlite3": "11.6.0", + "sqlite-vec": "0.1.6" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/adapter-sqljs/package.json b/packages/adapter-sqljs/package.json index 12bfd7955d..d5d8e58ffc 100644 --- a/packages/adapter-sqljs/package.json +++ b/packages/adapter-sqljs/package.json @@ -1,24 +1,24 @@ { - "name": "@ai16z/adapter-sqljs", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@types/sql.js": "1.4.9", - "sql.js": "1.12.0", - "uuid": "11.0.3" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/adapter-sqljs", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@types/sql.js": "1.4.9", + "sql.js": "1.12.0", + "uuid": "11.0.3" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/adapter-supabase/package.json b/packages/adapter-supabase/package.json index 42ac235158..be0f7ef773 100644 --- a/packages/adapter-supabase/package.json +++ b/packages/adapter-supabase/package.json @@ -1,22 +1,22 @@ { - "name": "@ai16z/adapter-supabase", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@supabase/supabase-js": "2.46.2" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/adapter-supabase", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@supabase/supabase-js": "2.46.2" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/client-auto/package.json b/packages/client-auto/package.json index bba44fe65b..b2054c42af 100644 --- a/packages/client-auto/package.json +++ b/packages/client-auto/package.json @@ -1,27 +1,27 @@ { - "name": "@ai16z/client-auto", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@types/body-parser": "1.19.5", - "@types/cors": "2.8.17", - "@types/express": "5.0.0", - "body-parser": "1.20.3", - "cors": "2.8.5", - "multer": "1.4.5-lts.1" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/client-auto", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@types/body-parser": "1.19.5", + "@types/cors": "2.8.17", + "@types/express": "5.0.0", + "body-parser": "1.20.3", + "cors": "2.8.5", + "multer": "1.4.5-lts.1" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/client-direct/package.json b/packages/client-direct/package.json index 7ff770a71b..3220ae7440 100644 --- a/packages/client-direct/package.json +++ b/packages/client-direct/package.json @@ -1,30 +1,30 @@ { - "name": "@ai16z/client-direct", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-image-generation": "workspace:*", - "@types/body-parser": "1.19.5", - "@types/cors": "2.8.17", - "@types/express": "5.0.0", - "body-parser": "1.20.3", - "cors": "2.8.5", - "discord.js": "14.16.3", - "express": "4.21.1", - "multer": "1.4.5-lts.1" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/client-direct", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-image-generation": "workspace:*", + "@types/body-parser": "1.19.5", + "@types/cors": "2.8.17", + "@types/express": "5.0.0", + "body-parser": "1.20.3", + "cors": "2.8.5", + "discord.js": "14.16.3", + "express": "4.21.1", + "multer": "1.4.5-lts.1" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/client-discord/package.json b/packages/client-discord/package.json index eca9bc8ce0..d04adb65b1 100644 --- a/packages/client-discord/package.json +++ b/packages/client-discord/package.json @@ -1,33 +1,33 @@ { - "name": "@ai16z/client-discord", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-node": "workspace:*", - "@discordjs/opus": "github:discordjs/opus", - "@discordjs/rest": "2.4.0", - "@discordjs/voice": "0.17.0", - "discord.js": "14.16.3", - "libsodium-wrappers": "0.7.15", - "prism-media": "1.3.5", - "zod": "3.23.8" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "trustedDependencies": { - "@discordjs/opus": "github:discordjs/opus", - "@discordjs/voice": "0.17.0" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/client-discord", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-node": "workspace:*", + "@discordjs/opus": "github:discordjs/opus", + "@discordjs/rest": "2.4.0", + "@discordjs/voice": "0.17.0", + "discord.js": "14.16.3", + "libsodium-wrappers": "0.7.15", + "prism-media": "1.3.5", + "zod": "3.23.8" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "trustedDependencies": { + "@discordjs/opus": "github:discordjs/opus", + "@discordjs/voice": "0.17.0" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/client-discord/src/voice.ts b/packages/client-discord/src/voice.ts index ec45b0db94..86bec8bcdf 100644 --- a/packages/client-discord/src/voice.ts +++ b/packages/client-discord/src/voice.ts @@ -25,7 +25,7 @@ import { VoiceConnectionStatus, createAudioPlayer, createAudioResource, - getVoiceConnection, + getVoiceConnections, joinVoiceChannel, entersState, } from "@discordjs/voice"; @@ -194,7 +194,9 @@ export class VoiceManager extends EventEmitter { } async joinChannel(channel: BaseGuildVoiceChannel) { - const oldConnection = getVoiceConnection(channel.guildId as string); + const oldConnection = this.getVoiceConnection( + channel.guildId as string + ); if (oldConnection) { try { oldConnection.destroy(); @@ -212,6 +214,7 @@ export class VoiceManager extends EventEmitter { adapterCreator: channel.guild.voiceAdapterCreator as any, selfDeaf: false, selfMute: false, + group: this.client.user.id, }); try { @@ -328,6 +331,17 @@ export class VoiceManager extends EventEmitter { } } + private getVoiceConnection(guildId: string) { + const connections = getVoiceConnections(this.client.user.id); + if (!connections) { + return; + } + const connection = [...connections.values()].find( + (connection) => connection.joinConfig.guildId === guildId + ); + return connection; + } + private async monitorMember( member: GuildMember, channel: BaseGuildVoiceChannel @@ -335,7 +349,7 @@ export class VoiceManager extends EventEmitter { const userId = member?.id; const userName = member?.user?.username; const name = member?.user?.displayName; - const connection = getVoiceConnection(member?.guild?.id); + const connection = this.getVoiceConnection(member?.guild?.id); const receiveStream = connection?.receiver.subscribe(userId, { autoDestroy: true, emitClose: true, @@ -1069,7 +1083,7 @@ export class VoiceManager extends EventEmitter { } async handleLeaveChannelCommand(interaction: any) { - const connection = getVoiceConnection(interaction.guildId as any); + const connection = this.getVoiceConnection(interaction.guildId as any); if (!connection) { await interaction.reply("Not currently in a voice channel."); diff --git a/packages/client-farcaster/package.json b/packages/client-farcaster/package.json index ee9356753c..6568699873 100644 --- a/packages/client-farcaster/package.json +++ b/packages/client-farcaster/package.json @@ -1,18 +1,18 @@ { - "name": "@ai16z/client-farcaster", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@neynar/nodejs-sdk": "^2.0.3" - }, - "devDependencies": { - "tsup": "^8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch" - } + "name": "@ai16z/client-farcaster", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@neynar/nodejs-sdk": "^2.0.3" + }, + "devDependencies": { + "tsup": "^8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch" + } } diff --git a/packages/client-github/package.json b/packages/client-github/package.json index 183e4fb98d..59311f614b 100644 --- a/packages/client-github/package.json +++ b/packages/client-github/package.json @@ -1,23 +1,23 @@ { - "name": "@ai16z/client-github", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@octokit/rest": "20.1.1", - "@octokit/types": "12.6.0", - "glob": "10.4.5", - "simple-git": "3.27.0" - }, - "devDependencies": { - "@types/glob": "8.1.0", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - } + "name": "@ai16z/client-github", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@octokit/rest": "20.1.1", + "@octokit/types": "12.6.0", + "glob": "10.4.5", + "simple-git": "3.27.0" + }, + "devDependencies": { + "@types/glob": "8.1.0", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + } } diff --git a/packages/client-lens/package.json b/packages/client-lens/package.json index dde5925912..0e8c95fe62 100644 --- a/packages/client-lens/package.json +++ b/packages/client-lens/package.json @@ -1,24 +1,24 @@ { - "name": "@ai16z/client-lens", - "version": "0.1.0", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@lens-protocol/client": "2.2.0", - "@lens-protocol/metadata": "1.2.0", - "axios": "^1.7.9", - "viem": "^2.13.8" - }, - "devDependencies": { - "tsup": "^8.3.5" - }, - "peerDependencies": { - "@ai16z/eliza": "workspace:*" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch" - } + "name": "@ai16z/client-lens", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@lens-protocol/client": "2.2.0", + "@lens-protocol/metadata": "1.2.0", + "axios": "^1.7.9", + "viem": "^2.13.8" + }, + "devDependencies": { + "tsup": "^8.3.5" + }, + "peerDependencies": { + "@ai16z/eliza": "workspace:*" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch" + } } diff --git a/packages/client-slack/package.json b/packages/client-slack/package.json index 4e0f503faf..28d59f917c 100644 --- a/packages/client-slack/package.json +++ b/packages/client-slack/package.json @@ -1,45 +1,45 @@ { - "name": "@ai16z/client-slack", - "version": "0.1.0", - "description": "Slack client plugin for Eliza framework", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "scripts": { - "build": "tsup src/index.ts --format esm --dts", - "test": "jest", - "lint": "eslint --fix --cache .", - "clean": "rimraf dist", - "dev": "tsup src/index.ts --watch", - "example": "ts-node src/examples/standalone-example.ts", - "example:attachment": "ts-node src/examples/standalone-attachment.ts", - "example:summarize": "ts-node src/examples/standalone-summarize.ts", - "example:transcribe": "ts-node src/examples/standalone-transcribe.ts" - }, - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ffmpeg-installer/ffmpeg": "^1.1.0", - "@slack/events-api": "^3.0.1", - "@slack/web-api": "^6.8.1", - "body-parser": "^1.20.2", - "dotenv": "^16.0.3", - "express": "^4.18.2", - "fluent-ffmpeg": "^2.1.2", - "node-fetch": "^2.6.9" - }, - "devDependencies": { - "@types/express": "^4.17.21", - "@types/fluent-ffmpeg": "^2.1.24", - "@types/jest": "^29.5.0", - "@types/node": "^18.15.11", - "jest": "^29.5.0", - "rimraf": "^5.0.0", - "ts-jest": "^29.1.0", - "ts-node": "^10.9.1", - "tsup": "^8.3.5", - "typescript": "^5.0.0" - }, - "engines": { - "node": ">=14.0.0" - } + "name": "@ai16z/client-slack", + "version": "0.1.6-alpha.4", + "description": "Slack client plugin for Eliza framework", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "scripts": { + "build": "tsup src/index.ts --format esm --dts", + "test": "jest", + "lint": "eslint --fix --cache .", + "clean": "rimraf dist", + "dev": "tsup src/index.ts --watch", + "example": "ts-node src/examples/standalone-example.ts", + "example:attachment": "ts-node src/examples/standalone-attachment.ts", + "example:summarize": "ts-node src/examples/standalone-summarize.ts", + "example:transcribe": "ts-node src/examples/standalone-transcribe.ts" + }, + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ffmpeg-installer/ffmpeg": "^1.1.0", + "@slack/events-api": "^3.0.1", + "@slack/web-api": "^6.8.1", + "body-parser": "^1.20.2", + "dotenv": "^16.0.3", + "express": "^4.18.2", + "fluent-ffmpeg": "^2.1.2", + "node-fetch": "^2.6.9" + }, + "devDependencies": { + "@types/express": "^4.17.21", + "@types/fluent-ffmpeg": "^2.1.24", + "@types/jest": "^29.5.0", + "@types/node": "^18.15.11", + "jest": "^29.5.0", + "rimraf": "^5.0.0", + "ts-jest": "^29.1.0", + "ts-node": "^10.9.1", + "tsup": "^8.3.5", + "typescript": "^5.0.0" + }, + "engines": { + "node": ">=14.0.0" + } } diff --git a/packages/client-telegram/package.json b/packages/client-telegram/package.json index 597abf5e0c..ad29702bab 100644 --- a/packages/client-telegram/package.json +++ b/packages/client-telegram/package.json @@ -1,21 +1,21 @@ { - "name": "@ai16z/client-telegram", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@telegraf/types": "7.1.0", - "telegraf": "4.16.3", - "zod": "3.23.8" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - } + "name": "@ai16z/client-telegram", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@telegraf/types": "7.1.0", + "telegraf": "4.16.3", + "zod": "3.23.8" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + } } diff --git a/packages/client-twitter/package.json b/packages/client-twitter/package.json index 7bbc095b21..8b5b885128 100644 --- a/packages/client-twitter/package.json +++ b/packages/client-twitter/package.json @@ -1,24 +1,24 @@ { - "name": "@ai16z/client-twitter", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "agent-twitter-client": "0.0.16", - "glob": "11.0.0", - "zod": "3.23.8" - }, - "devDependencies": { - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/client-twitter", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "agent-twitter-client": "0.0.16", + "glob": "11.0.0", + "zod": "3.23.8" + }, + "devDependencies": { + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/client-twitter/src/base.ts b/packages/client-twitter/src/base.ts index 255cac43bf..76fe766bf1 100644 --- a/packages/client-twitter/src/base.ts +++ b/packages/client-twitter/src/base.ts @@ -157,19 +157,22 @@ export class ClientBase extends EventEmitter { const username = this.runtime.getSetting("TWITTER_USERNAME"); const password = this.runtime.getSetting("TWITTER_PASSWORD"); const email = this.runtime.getSetting("TWITTER_EMAIL"); - const twitter2faSecret = this.runtime.getSetting("TWITTER_2FA_SECRET") || undefined; + const twitter2faSecret = + this.runtime.getSetting("TWITTER_2FA_SECRET") || undefined; const cookies = this.runtime.getSetting("TWITTER_COOKIES"); - if (!username) { throw new Error("Twitter username not configured"); } // Check for Twitter cookies if (cookies) { + elizaLogger.debug("Using cookies from settings"); const cookiesArray = JSON.parse(cookies); await this.setCookiesFromArray(cookiesArray); } else { + elizaLogger.debug("No cookies found in settings"); + elizaLogger.debug("Checking for cached cookies"); const cachedCookies = await this.getCachedCookies(username); if (cachedCookies) { await this.setCookiesFromArray(cachedCookies); @@ -180,7 +183,8 @@ export class ClientBase extends EventEmitter { let retries = 5; // Optional: Set a retry limit while (retries > 0) { const cookies = await this.twitterClient.getCookies(); - if (await this.twitterClient.isLoggedIn() || !!cookies) { + if ((await this.twitterClient.isLoggedIn()) && !!cookies) { + elizaLogger.info("Already logged in."); await this.cacheCookies(username, cookies); elizaLogger.info("Successfully logged in and cookies cached."); break; @@ -198,10 +202,14 @@ export class ClientBase extends EventEmitter { } retries--; - elizaLogger.error(`Failed to login to Twitter. Retrying... (${retries} attempts left)`); + elizaLogger.error( + `Failed to login to Twitter. Retrying... (${retries} attempts left)` + ); if (retries === 0) { - elizaLogger.error("Max retries reached. Exiting login process."); + elizaLogger.error( + "Max retries reached. Exiting login process." + ); throw new Error("Twitter login failed after maximum retries."); } @@ -243,63 +251,72 @@ export class ClientBase extends EventEmitter { async fetchHomeTimeline(count: number): Promise { elizaLogger.debug("fetching home timeline"); - const homeTimeline = await this.twitterClient.fetchHomeTimeline(count, []); + const homeTimeline = await this.twitterClient.fetchHomeTimeline( + count, + [] + ); elizaLogger.debug(homeTimeline, { depth: Infinity }); const processedTimeline = homeTimeline - .filter((t) => t.__typename !== "TweetWithVisibilityResults") // what's this about? - .map((tweet) => { - //console.log("tweet is", tweet); - const obj = { - id: tweet.id, - name: - tweet.name ?? - tweet?.user_results?.result?.legacy.name, - username: - tweet.username ?? - tweet.core?.user_results?.result?.legacy.screen_name, - text: tweet.text ?? tweet.legacy?.full_text, - inReplyToStatusId: - tweet.inReplyToStatusId ?? - tweet.legacy?.in_reply_to_status_id_str ?? - null, - timestamp: new Date(tweet.legacy?.created_at).getTime() / 1000, - createdAt: tweet.createdAt ?? tweet.legacy?.created_at ?? tweet.core?.user_results?.result?.legacy.created_at, - userId: tweet.userId ?? tweet.legacy?.user_id_str, - conversationId: - tweet.conversationId ?? - tweet.legacy?.conversation_id_str, - permanentUrl: `https://x.com/${tweet.core?.user_results?.result?.legacy?.screen_name}/status/${tweet.rest_id}`, - hashtags: tweet.hashtags ?? tweet.legacy?.entities.hashtags, - mentions: - tweet.mentions ?? tweet.legacy?.entities.user_mentions, - photos: - tweet.photos ?? - tweet.legacy?.entities.media?.filter( - (media) => media.type === "photo" - ) ?? - [], - thread: tweet.thread || [], - urls: tweet.urls ?? tweet.legacy?.entities.urls, - videos: - tweet.videos ?? - tweet.legacy?.entities.media?.filter( - (media) => media.type === "video" - ) ?? - [], - }; - //console.log("obj is", obj); - return obj; - }); + .filter((t) => t.__typename !== "TweetWithVisibilityResults") // what's this about? + .map((tweet) => { + //console.log("tweet is", tweet); + const obj = { + id: tweet.id, + name: + tweet.name ?? tweet?.user_results?.result?.legacy.name, + username: + tweet.username ?? + tweet.core?.user_results?.result?.legacy.screen_name, + text: tweet.text ?? tweet.legacy?.full_text, + inReplyToStatusId: + tweet.inReplyToStatusId ?? + tweet.legacy?.in_reply_to_status_id_str ?? + null, + timestamp: + new Date(tweet.legacy?.created_at).getTime() / 1000, + createdAt: + tweet.createdAt ?? + tweet.legacy?.created_at ?? + tweet.core?.user_results?.result?.legacy.created_at, + userId: tweet.userId ?? tweet.legacy?.user_id_str, + conversationId: + tweet.conversationId ?? + tweet.legacy?.conversation_id_str, + permanentUrl: `https://x.com/${tweet.core?.user_results?.result?.legacy?.screen_name}/status/${tweet.rest_id}`, + hashtags: tweet.hashtags ?? tweet.legacy?.entities.hashtags, + mentions: + tweet.mentions ?? tweet.legacy?.entities.user_mentions, + photos: + tweet.photos ?? + tweet.legacy?.entities.media?.filter( + (media) => media.type === "photo" + ) ?? + [], + thread: tweet.thread || [], + urls: tweet.urls ?? tweet.legacy?.entities.urls, + videos: + tweet.videos ?? + tweet.legacy?.entities.media?.filter( + (media) => media.type === "video" + ) ?? + [], + }; + //console.log("obj is", obj); + return obj; + }); //elizaLogger.debug("process homeTimeline", processedTimeline); return processedTimeline; } async fetchTimelineForActions(count: number): Promise { elizaLogger.debug("fetching timeline for actions"); - const homeTimeline = await this.twitterClient.fetchHomeTimeline(count, []); + const homeTimeline = await this.twitterClient.fetchHomeTimeline( + count, + [] + ); - return homeTimeline.map(tweet => ({ + return homeTimeline.map((tweet) => ({ id: tweet.rest_id, name: tweet.core?.user_results?.result?.legacy?.name, username: tweet.core?.user_results?.result?.legacy?.screen_name, @@ -311,10 +328,16 @@ export class ClientBase extends EventEmitter { permanentUrl: `https://twitter.com/${tweet.core?.user_results?.result?.legacy?.screen_name}/status/${tweet.rest_id}`, hashtags: tweet.legacy?.entities?.hashtags || [], mentions: tweet.legacy?.entities?.user_mentions || [], - photos: tweet.legacy?.entities?.media?.filter(media => media.type === "photo") || [], + photos: + tweet.legacy?.entities?.media?.filter( + (media) => media.type === "photo" + ) || [], thread: tweet.thread || [], urls: tweet.legacy?.entities?.urls || [], - videos: tweet.legacy?.entities?.media?.filter(media => media.type === "video") || [] + videos: + tweet.legacy?.entities?.media?.filter( + (media) => media.type === "video" + ) || [], })); } diff --git a/packages/core/README-TESTS.md b/packages/core/README-TESTS.md index 2d9ab7d6d0..ca915ec5a3 100644 --- a/packages/core/README-TESTS.md +++ b/packages/core/README-TESTS.md @@ -1,6 +1,6 @@ # Core Package Tests -This package contains a test suite for evaluating functionalities using **Jest**. +This package contains a test suite for evaluating functionalities using **Vitest**. ## Prerequisites diff --git a/packages/core/package.json b/packages/core/package.json index be8d9c6a10..3d761aea77 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,79 +1,79 @@ { - "name": "@ai16z/eliza", - "version": "0.1.5-alpha.5", - "description": "", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "scripts": { - "build": "tsup --format esm --dts", - "lint": "eslint --fix --cache .", - "watch": "tsc --watch", - "dev": "tsup --format esm --dts --watch", - "build:docs": "cd docs && pnpm run build", - "test": "vitest run", - "test:coverage": "vitest run --coverage", - "test:watch": "vitest" - }, - "author": "", - "license": "MIT", - "devDependencies": { - "@eslint/js": "9.16.0", - "@rollup/plugin-commonjs": "25.0.8", - "@rollup/plugin-json": "6.1.0", - "@rollup/plugin-node-resolve": "15.3.0", - "@rollup/plugin-replace": "5.0.7", - "@rollup/plugin-terser": "0.1.0", - "@rollup/plugin-typescript": "11.1.6", - "@solana/web3.js": "1.95.8", - "@types/fluent-ffmpeg": "2.1.27", - "@types/jest": "29.5.14", - "@types/mocha": "10.0.10", - "@types/node": "22.8.4", - "@types/pdfjs-dist": "2.10.378", - "@types/tar": "6.1.13", - "@types/wav-encoder": "1.3.3", - "@typescript-eslint/eslint-plugin": "8.16.0", - "@typescript-eslint/parser": "8.16.0", - "@vitest/coverage-v8": "2.1.5", - "dotenv": "16.4.5", - "jest": "29.7.0", - "lint-staged": "15.2.10", - "nodemon": "3.1.7", - "pm2": "5.4.3", - "rimraf": "6.0.1", - "rollup": "2.79.2", - "ts-jest": "29.2.5", - "ts-node": "10.9.2", - "tslib": "2.8.1", - "tsup": "8.3.5", - "typescript": "5.6.3" - }, - "dependencies": { - "@ai-sdk/anthropic": "0.0.56", - "@ai-sdk/google": "0.0.55", - "@ai-sdk/google-vertex": "0.0.43", - "@ai-sdk/groq": "0.0.3", - "@ai-sdk/openai": "1.0.5", - "@anthropic-ai/sdk": "0.30.1", - "@fal-ai/client": "1.2.0", - "@types/uuid": "10.0.0", - "ai": "3.4.33", - "anthropic-vertex-ai": "1.0.2", - "fastembed": "1.14.1", - "fastestsmallesttextencoderdecoder": "1.0.22", - "gaxios": "6.7.1", - "glob": "11.0.0", - "handlebars": "^4.7.8", - "js-sha1": "0.7.0", - "js-tiktoken": "1.0.15", - "langchain": "0.3.6", - "ollama-ai-provider": "0.16.1", - "openai": "4.73.0", - "tinyld": "1.3.4", - "together-ai": "0.7.0", - "unique-names-generator": "4.7.1", - "uuid": "11.0.3", - "zod": "3.23.8" - } + "name": "@ai16z/eliza", + "version": "0.1.6-alpha.4", + "description": "", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "scripts": { + "build": "tsup --format esm --dts", + "lint": "eslint --fix --cache .", + "watch": "tsc --watch", + "dev": "tsup --format esm --dts --watch", + "build:docs": "cd docs && pnpm run build", + "test": "vitest run", + "test:coverage": "vitest run --coverage", + "test:watch": "vitest" + }, + "author": "", + "license": "MIT", + "devDependencies": { + "@eslint/js": "9.16.0", + "@rollup/plugin-commonjs": "25.0.8", + "@rollup/plugin-json": "6.1.0", + "@rollup/plugin-node-resolve": "15.3.0", + "@rollup/plugin-replace": "5.0.7", + "@rollup/plugin-terser": "0.1.0", + "@rollup/plugin-typescript": "11.1.6", + "@solana/web3.js": "1.95.8", + "@types/fluent-ffmpeg": "2.1.27", + "@types/jest": "29.5.14", + "@types/mocha": "10.0.10", + "@types/node": "22.8.4", + "@types/pdfjs-dist": "2.10.378", + "@types/tar": "6.1.13", + "@types/wav-encoder": "1.3.3", + "@typescript-eslint/eslint-plugin": "8.16.0", + "@typescript-eslint/parser": "8.16.0", + "@vitest/coverage-v8": "2.1.5", + "dotenv": "16.4.5", + "jest": "29.7.0", + "lint-staged": "15.2.10", + "nodemon": "3.1.7", + "pm2": "5.4.3", + "rimraf": "6.0.1", + "rollup": "2.79.2", + "ts-jest": "29.2.5", + "ts-node": "10.9.2", + "tslib": "2.8.1", + "tsup": "8.3.5", + "typescript": "5.6.3" + }, + "dependencies": { + "@ai-sdk/anthropic": "0.0.56", + "@ai-sdk/google": "0.0.55", + "@ai-sdk/google-vertex": "0.0.43", + "@ai-sdk/groq": "0.0.3", + "@ai-sdk/openai": "1.0.5", + "@anthropic-ai/sdk": "0.30.1", + "@fal-ai/client": "1.2.0", + "@types/uuid": "10.0.0", + "ai": "3.4.33", + "anthropic-vertex-ai": "1.0.2", + "fastembed": "1.14.1", + "fastestsmallesttextencoderdecoder": "1.0.22", + "gaxios": "6.7.1", + "glob": "11.0.0", + "handlebars": "^4.7.8", + "js-sha1": "0.7.0", + "js-tiktoken": "1.0.15", + "langchain": "0.3.6", + "ollama-ai-provider": "0.16.1", + "openai": "4.73.0", + "tinyld": "1.3.4", + "together-ai": "0.7.0", + "unique-names-generator": "4.7.1", + "uuid": "11.0.3", + "zod": "3.23.8" + } } diff --git a/packages/core/src/tests/runtime.test.ts b/packages/core/src/tests/runtime.test.ts new file mode 100644 index 0000000000..292de6670a --- /dev/null +++ b/packages/core/src/tests/runtime.test.ts @@ -0,0 +1,139 @@ +import { describe, it, expect, beforeEach, vi } from "vitest"; +import { AgentRuntime } from "../runtime"; +import { + IDatabaseAdapter, + ModelProviderName, + Action, + Memory, + UUID, +} from "../types"; +import { defaultCharacter } from "../defaultCharacter"; + +// Mock dependencies with minimal implementations +const mockDatabaseAdapter: IDatabaseAdapter = { + db: {}, + init: vi.fn().mockResolvedValue(undefined), + close: vi.fn().mockResolvedValue(undefined), + getAccountById: vi.fn().mockResolvedValue(null), + createAccount: vi.fn().mockResolvedValue(true), + getMemories: vi.fn().mockResolvedValue([]), + getMemoryById: vi.fn().mockResolvedValue(null), + getMemoriesByRoomIds: vi.fn().mockResolvedValue([]), + getCachedEmbeddings: vi.fn().mockResolvedValue([]), + log: vi.fn().mockResolvedValue(undefined), + getActorDetails: vi.fn().mockResolvedValue([]), + searchMemories: vi.fn().mockResolvedValue([]), + updateGoalStatus: vi.fn().mockResolvedValue(undefined), + searchMemoriesByEmbedding: vi.fn().mockResolvedValue([]), + createMemory: vi.fn().mockResolvedValue(undefined), + removeMemory: vi.fn().mockResolvedValue(undefined), + removeAllMemories: vi.fn().mockResolvedValue(undefined), + countMemories: vi.fn().mockResolvedValue(0), + getGoals: vi.fn().mockResolvedValue([]), + updateGoal: vi.fn().mockResolvedValue(undefined), + createGoal: vi.fn().mockResolvedValue(undefined), + removeGoal: vi.fn().mockResolvedValue(undefined), + removeAllGoals: vi.fn().mockResolvedValue(undefined), + getRoom: vi.fn().mockResolvedValue(null), + createRoom: vi.fn().mockResolvedValue("test-room-id" as UUID), + removeRoom: vi.fn().mockResolvedValue(undefined), + getRoomsForParticipant: vi.fn().mockResolvedValue([]), + getRoomsForParticipants: vi.fn().mockResolvedValue([]), + addParticipant: vi.fn().mockResolvedValue(true), + removeParticipant: vi.fn().mockResolvedValue(true), + getParticipantsForAccount: vi.fn().mockResolvedValue([]), + getParticipantsForRoom: vi.fn().mockResolvedValue([]), + getParticipantUserState: vi.fn().mockResolvedValue(null), + setParticipantUserState: vi.fn().mockResolvedValue(undefined), + createRelationship: vi.fn().mockResolvedValue(true), + getRelationship: vi.fn().mockResolvedValue(null), + getRelationships: vi.fn().mockResolvedValue([]) +}; + +const mockCacheManager = { + get: vi.fn().mockResolvedValue(null), + set: vi.fn().mockResolvedValue(undefined), + delete: vi.fn().mockResolvedValue(undefined), +}; + +// Mock action creator +const createMockAction = (name: string): Action => ({ + name, + description: `Test action ${name}`, + similes: [`like ${name}`], + examples: [], + handler: vi.fn().mockResolvedValue(undefined), + validate: vi.fn().mockImplementation(async () => true), +}); + +describe("AgentRuntime", () => { + let runtime: AgentRuntime; + + beforeEach(() => { + vi.clearAllMocks(); + runtime = new AgentRuntime({ + token: "test-token", + character: defaultCharacter, + databaseAdapter: mockDatabaseAdapter, + cacheManager: mockCacheManager, + modelProvider: ModelProviderName.OPENAI, + }); + }); + + describe("action management", () => { + it("should register an action", () => { + const action = createMockAction("testAction"); + runtime.registerAction(action); + expect(runtime.actions).toContain(action); + }); + + it("should allow registering multiple actions", () => { + const action1 = createMockAction("testAction1"); + const action2 = createMockAction("testAction2"); + runtime.registerAction(action1); + runtime.registerAction(action2); + expect(runtime.actions).toContain(action1); + expect(runtime.actions).toContain(action2); + }); + + it("should process registered actions", async () => { + const action = createMockAction("testAction"); + runtime.registerAction(action); + + const message: Memory = { + id: "123e4567-e89b-12d3-a456-426614174003", + userId: "123e4567-e89b-12d3-a456-426614174004", + agentId: "123e4567-e89b-12d3-a456-426614174005", + roomId: "123e4567-e89b-12d3-a456-426614174003", + content: { type: "text", text: "test message" }, + }; + + const response: Memory = { + id: "123e4567-e89b-12d3-a456-426614174006", + userId: "123e4567-e89b-12d3-a456-426614174005", + agentId: "123e4567-e89b-12d3-a456-426614174005", + roomId: "123e4567-e89b-12d3-a456-426614174003", + content: { type: "text", text: "test response", action: "testAction" }, + }; + + await runtime.processActions(message, [response], { + bio: "Test agent bio", + lore: "Test agent lore and background", + messageDirections: "How to respond to messages", + postDirections: "How to create posts", + roomId: "123e4567-e89b-12d3-a456-426614174003", + actors: "List of actors in conversation", + recentMessages: "Recent conversation history", + recentMessagesData: [], + goals: "Current conversation goals", + goalsData: [], + actionsData: [], + knowledgeData: [], + recentInteractionsData: [], + }); + + expect(action.handler).toBeDefined(); + expect(action.validate).toBeDefined(); + }); + }); +}); diff --git a/packages/create-eliza-app/package.json b/packages/create-eliza-app/package.json index cb210c8f91..724d6a20ba 100644 --- a/packages/create-eliza-app/package.json +++ b/packages/create-eliza-app/package.json @@ -1,31 +1,31 @@ { - "name": "create-eliza-app", - "version": "0.1.5-alpha.5", - "description": "", - "sideEffects": false, - "files": [ - "dist" - ], - "main": "dist/index.cjs", - "bin": { - "create-eliza-app": "dist/index.mjs" - }, - "scripts": { - "build": "unbuild", - "lint": "eslint --fix --cache .", - "start": "node ./dist/index.cjs", - "automd": "automd" - }, - "keywords": [], - "author": "", - "license": "ISC", - "dependencies": { - "citty": "0.1.6", - "giget": "1.2.3" - }, - "devDependencies": { - "automd": "0.3.12", - "jiti": "2.4.0", - "unbuild": "2.0.0" - } + "name": "create-eliza-app", + "version": "0.1.6-alpha.4", + "description": "", + "sideEffects": false, + "files": [ + "dist" + ], + "main": "dist/index.cjs", + "bin": { + "create-eliza-app": "dist/index.mjs" + }, + "scripts": { + "build": "unbuild", + "lint": "eslint --fix --cache .", + "start": "node ./dist/index.cjs", + "automd": "automd" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "citty": "0.1.6", + "giget": "1.2.3" + }, + "devDependencies": { + "automd": "0.3.12", + "jiti": "2.4.0", + "unbuild": "2.0.0" + } } diff --git a/packages/plugin-0g/package.json b/packages/plugin-0g/package.json index fa36f6367e..56345c1add 100644 --- a/packages/plugin-0g/package.json +++ b/packages/plugin-0g/package.json @@ -1,18 +1,18 @@ { - "name": "@ai16z/plugin-0g", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@0glabs/0g-ts-sdk": "0.2.1", - "@ai16z/eliza": "workspace:*", - "ethers": "6.13.4", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test": "vitest" - } + "name": "@ai16z/plugin-0g", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@0glabs/0g-ts-sdk": "0.2.1", + "@ai16z/eliza": "workspace:*", + "ethers": "6.13.4", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test": "vitest" + } } diff --git a/packages/plugin-aptos/package.json b/packages/plugin-aptos/package.json index ae962419ac..ab349239ee 100644 --- a/packages/plugin-aptos/package.json +++ b/packages/plugin-aptos/package.json @@ -1,26 +1,26 @@ { - "name": "@ai16z/plugin-aptos", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@aptos-labs/ts-sdk": "^1.26.0", - "bignumber": "1.1.0", - "bignumber.js": "9.1.2", - "node-cache": "5.1.2", - "tsup": "8.3.5", - "vitest": "2.1.4" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache .", - "test": "vitest run" - }, - "peerDependencies": { - "form-data": "4.0.1", - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-aptos", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@aptos-labs/ts-sdk": "^1.26.0", + "bignumber": "1.1.0", + "bignumber.js": "9.1.2", + "node-cache": "5.1.2", + "tsup": "8.3.5", + "vitest": "2.1.4" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache .", + "test": "vitest run" + }, + "peerDependencies": { + "form-data": "4.0.1", + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-bootstrap/package.json b/packages/plugin-bootstrap/package.json index 8edf252957..6233aa95f7 100644 --- a/packages/plugin-bootstrap/package.json +++ b/packages/plugin-bootstrap/package.json @@ -1,19 +1,19 @@ { - "name": "@ai16z/plugin-bootstrap", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-bootstrap", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-coinbase/package.json b/packages/plugin-coinbase/package.json index f836f948c8..4e38b629e4 100644 --- a/packages/plugin-coinbase/package.json +++ b/packages/plugin-coinbase/package.json @@ -1,24 +1,24 @@ { - "name": "@ai16z/plugin-coinbase", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "coinbase-api": "1.0.5", - "coinbase-advanced-sdk": "file:../../packages/plugin-coinbase/advanced-sdk-ts", - "jsonwebtoken": "^9.0.2", - "@types/jsonwebtoken": "^9.0.7", - "node-fetch": "^2.6.1" - }, - "devDependencies": { - "tsup": "8.3.5", - "@types/node": "^20.0.0" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - } + "name": "@ai16z/plugin-coinbase", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "coinbase-api": "1.0.5", + "coinbase-advanced-sdk": "file:../../packages/plugin-coinbase/advanced-sdk-ts", + "jsonwebtoken": "^9.0.2", + "@types/jsonwebtoken": "^9.0.7", + "node-fetch": "^2.6.1" + }, + "devDependencies": { + "tsup": "8.3.5", + "@types/node": "^20.0.0" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + } } diff --git a/packages/plugin-conflux/package.json b/packages/plugin-conflux/package.json index dff1e471ac..1804d8f602 100644 --- a/packages/plugin-conflux/package.json +++ b/packages/plugin-conflux/package.json @@ -1,15 +1,15 @@ { - "name": "@ai16z/plugin-conflux", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "cive": "0.7.1" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch" - } + "name": "@ai16z/plugin-conflux", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "cive": "0.7.1" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch" + } } diff --git a/packages/plugin-echochambers/package.json b/packages/plugin-echochambers/package.json index 19723d0e59..511a06ea9f 100644 --- a/packages/plugin-echochambers/package.json +++ b/packages/plugin-echochambers/package.json @@ -1,15 +1,15 @@ -{ - "name": "@ai16z/plugin-echochambers", - "version": "0.1.5-alpha.3", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-node": "workspace:*" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch" - } -} +{ + "name": "@ai16z/plugin-echochambers", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-node": "workspace:*" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch" + } +} diff --git a/packages/plugin-evm/package.json b/packages/plugin-evm/package.json index a13be1be77..c2c2148214 100644 --- a/packages/plugin-evm/package.json +++ b/packages/plugin-evm/package.json @@ -1,23 +1,23 @@ { - "name": "@ai16z/plugin-evm", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@lifi/data-types": "5.15.5", - "@lifi/sdk": "3.4.1", - "@lifi/types": "16.3.0", - "tsup": "8.3.5", - "viem": "2.21.53" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test": "vitest run" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-evm", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@lifi/data-types": "5.15.5", + "@lifi/sdk": "3.4.1", + "@lifi/types": "16.3.0", + "tsup": "8.3.5", + "viem": "2.21.53" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test": "vitest run" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-flow/package.json b/packages/plugin-flow/package.json index ca2ea7cc71..8f3e0e84d5 100644 --- a/packages/plugin-flow/package.json +++ b/packages/plugin-flow/package.json @@ -1,36 +1,36 @@ { - "name": "@ai16z/plugin-flow", - "version": "0.1.5-alpha.0", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@onflow/config": "1.5.1", - "@onflow/fcl": "1.13.1", - "@onflow/typedefs": "1.4.0", - "bignumber.js": "9.1.2", - "bs58": "6.0.0", - "elliptic": "6.6.1", - "node-cache": "5.1.2", - "sha3": "2.1.4", - "uuid": "11.0.3", - "zod": "3.23.8" - }, - "devDependencies": { - "@types/elliptic": "6.4.18", - "@types/uuid": "10.0.0", - "tsup": "8.3.5", - "vitest": "2.1.4" - }, - "scripts": { - "lines": "find . \\( -name '*.cdc' -o -name '*.ts' \\) -not -path '*/node_modules/*' -not -path '*/tests/*' -not -path '*/deps/*' -not -path '*/dist/*' -not -path '*/imports*' | xargs wc -l", - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache .", - "test": "vitest run" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-flow", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@onflow/config": "1.5.1", + "@onflow/fcl": "1.13.1", + "@onflow/typedefs": "1.4.0", + "bignumber.js": "9.1.2", + "bs58": "6.0.0", + "elliptic": "6.6.1", + "node-cache": "5.1.2", + "sha3": "2.1.4", + "uuid": "11.0.3", + "zod": "3.23.8" + }, + "devDependencies": { + "@types/elliptic": "6.4.18", + "@types/uuid": "10.0.0", + "tsup": "8.3.5", + "vitest": "2.1.4" + }, + "scripts": { + "lines": "find . \\( -name '*.cdc' -o -name '*.ts' \\) -not -path '*/node_modules/*' -not -path '*/tests/*' -not -path '*/deps/*' -not -path '*/dist/*' -not -path '*/imports*' | xargs wc -l", + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache .", + "test": "vitest run" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-goat/package.json b/packages/plugin-goat/package.json index 56931db9c6..2fa2ff69f0 100644 --- a/packages/plugin-goat/package.json +++ b/packages/plugin-goat/package.json @@ -1,23 +1,23 @@ { - "name": "@ai16z/plugin-goat", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@goat-sdk/core": "0.3.8", - "@goat-sdk/plugin-erc20": "0.1.7", - "@goat-sdk/wallet-viem": "0.1.3", - "@goat-sdk/plugin-coingecko": "0.1.4", - "tsup": "8.3.5", - "viem": "2.21.53" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-goat", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@goat-sdk/core": "0.3.8", + "@goat-sdk/plugin-erc20": "0.1.7", + "@goat-sdk/wallet-viem": "0.1.3", + "@goat-sdk/plugin-coingecko": "0.1.4", + "tsup": "8.3.5", + "viem": "2.21.53" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-icp/package.json b/packages/plugin-icp/package.json index 4c14bacbf3..9cc544a052 100644 --- a/packages/plugin-icp/package.json +++ b/packages/plugin-icp/package.json @@ -1,24 +1,24 @@ { - "name": "@ai16z/plugin-icp", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@dfinity/agent": "2.1.3", - "@dfinity/candid": "2.1.3", - "@dfinity/identity": "2.1.3", - "@dfinity/principal": "2.1.3" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch" - }, - "devDependencies": { - "@types/jest": "29.5.14", - "jest": "29.7.0", - "tsup": "8.3.5", - "typescript": "5.6.3" - } + "name": "@ai16z/plugin-icp", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@dfinity/agent": "2.1.3", + "@dfinity/candid": "2.1.3", + "@dfinity/identity": "2.1.3", + "@dfinity/principal": "2.1.3" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch" + }, + "devDependencies": { + "@types/jest": "29.5.14", + "jest": "29.7.0", + "tsup": "8.3.5", + "typescript": "5.6.3" + } } diff --git a/packages/plugin-image-generation/package.json b/packages/plugin-image-generation/package.json index 36615554a6..2a332bd324 100644 --- a/packages/plugin-image-generation/package.json +++ b/packages/plugin-image-generation/package.json @@ -1,19 +1,19 @@ { - "name": "@ai16z/plugin-image-generation", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-image-generation", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-intiface/package.json b/packages/plugin-intiface/package.json index 16cc574f3e..baeb6864fd 100644 --- a/packages/plugin-intiface/package.json +++ b/packages/plugin-intiface/package.json @@ -1,21 +1,21 @@ { - "name": "@ai16z/plugin-intiface", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "buttplug": "3.2.2", - "net": "1.0.2", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test-via-bun": "bun test/simulate.ts" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-intiface", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "buttplug": "3.2.2", + "net": "1.0.2", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test-via-bun": "bun test/simulate.ts" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-multiversx/package.json b/packages/plugin-multiversx/package.json index 1c533df2bb..b28afbc545 100644 --- a/packages/plugin-multiversx/package.json +++ b/packages/plugin-multiversx/package.json @@ -1,26 +1,26 @@ { - "name": "@ai16z/plugin-multiversx", - "version": "0.1.5-alpha.0", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@multiversx/sdk-core": "13.15.0", - "bignumber.js": "9.1.2", - "browserify": "^17.0.1", - "esbuild-plugin-polyfill-node": "^0.3.0", - "esmify": "^2.1.1", - "tsup": "8.3.5", - "vitest": "2.1.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "test": "vitest run", - "test:watch": "vitest", - "lint": "eslint . --fix" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-multiversx", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@multiversx/sdk-core": "13.15.0", + "bignumber.js": "9.1.2", + "browserify": "^17.0.1", + "esbuild-plugin-polyfill-node": "^0.3.0", + "esmify": "^2.1.1", + "tsup": "8.3.5", + "vitest": "2.1.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "test": "vitest run", + "test:watch": "vitest", + "lint": "eslint . --fix" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-multiversx/src/actions/createToken.ts b/packages/plugin-multiversx/src/actions/createToken.ts index c84632bff5..a64f784dc0 100644 --- a/packages/plugin-multiversx/src/actions/createToken.ts +++ b/packages/plugin-multiversx/src/actions/createToken.ts @@ -146,7 +146,7 @@ export default { { user: "{{user1}}", content: { - text: "Create a token TEST with ticker TST, 18 decimals and su of 10000", + text: "Create a token TEST with ticker TST, 18 decimals and supply of 10000", action: "CREATE_TOKEN", }, }, diff --git a/packages/plugin-near/package.json b/packages/plugin-near/package.json index 0f82fc1803..58470e79c3 100644 --- a/packages/plugin-near/package.json +++ b/packages/plugin-near/package.json @@ -1,25 +1,25 @@ { - "name": "@ai16z/plugin-near", - "version": "0.0.1", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ref-finance/ref-sdk": "^1.4.6", - "tsup": "8.3.5", - "near-api-js": "5.0.1", - "bignumber.js": "9.1.2", - "node-cache": "5.1.2" - }, - "scripts": { - "build": "tsup --format esm,cjs --dts", - "test": "vitest run", - "test:watch": "vitest", - "lint": "eslint . --fix" - }, - "peerDependencies": { - "whatwg-url": "7.1.0", - "form-data": "4.0.1" - } + "name": "@ai16z/plugin-near", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ref-finance/ref-sdk": "^1.4.6", + "tsup": "8.3.5", + "near-api-js": "5.0.1", + "bignumber.js": "9.1.2", + "node-cache": "5.1.2" + }, + "scripts": { + "build": "tsup --format esm,cjs --dts", + "test": "vitest run", + "test:watch": "vitest", + "lint": "eslint . --fix" + }, + "peerDependencies": { + "whatwg-url": "7.1.0", + "form-data": "4.0.1" + } } diff --git a/packages/plugin-nft-generation/package.json b/packages/plugin-nft-generation/package.json index bea518c9aa..85199a6cf2 100644 --- a/packages/plugin-nft-generation/package.json +++ b/packages/plugin-nft-generation/package.json @@ -1,30 +1,30 @@ { - "name": "@ai16z/plugin-nft-generation", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-image-generation": "workspace:*", - "@ai16z/plugin-node": "workspace:*", - "@metaplex-foundation/mpl-token-metadata": "^3.3.0", - "@metaplex-foundation/mpl-toolbox": "^0.9.4", - "@metaplex-foundation/umi": "^0.9.2", - "@metaplex-foundation/umi-bundle-defaults": "^0.9.2", - "@solana-developers/helpers": "^2.5.6", - "@solana/web3.js": "1.95.5", - "bs58": "6.0.0", - "express": "4.21.1", - "node-cache": "5.1.2", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint . --fix" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-nft-generation", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-image-generation": "workspace:*", + "@ai16z/plugin-node": "workspace:*", + "@metaplex-foundation/mpl-token-metadata": "^3.3.0", + "@metaplex-foundation/mpl-toolbox": "^0.9.4", + "@metaplex-foundation/umi": "^0.9.2", + "@metaplex-foundation/umi-bundle-defaults": "^0.9.2", + "@solana-developers/helpers": "^2.5.6", + "@solana/web3.js": "1.95.5", + "bs58": "6.0.0", + "express": "4.21.1", + "node-cache": "5.1.2", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint . --fix" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-node/package.json b/packages/plugin-node/package.json index 1040e4a37b..4a48f0ad58 100644 --- a/packages/plugin-node/package.json +++ b/packages/plugin-node/package.json @@ -1,89 +1,89 @@ { - "name": "@ai16z/plugin-node", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "files": [ - "dist", - "scripts", - "package.json", - "LICENSE", - "tsup.config.ts" - ], - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@aws-sdk/client-s3": "^3.705.0", - "@aws-sdk/s3-request-presigner": "^3.705.0", - "@cliqz/adblocker-playwright": "1.34.0", - "@echogarden/espeak-ng-emscripten": "0.3.3", - "@echogarden/kissfft-wasm": "0.2.0", - "@echogarden/speex-resampler-wasm": "0.2.1", - "@huggingface/transformers": "3.0.2", - "@opendocsg/pdf2md": "0.1.32", - "@types/uuid": "10.0.0", - "alawmulaw": "6.0.0", - "bignumber": "1.1.0", - "bignumber.js": "9.1.2", - "capsolver-npm": "2.0.2", - "cldr-segmentation": "2.2.1", - "command-exists": "1.2.9", - "csv-writer": "1.6.0", - "echogarden": "2.0.7", - "espeak-ng": "1.0.2", - "ffmpeg-static": "5.2.0", - "fluent-ffmpeg": "2.1.3", - "formdata-node": "6.0.3", - "fs-extra": "11.2.0", - "gaxios": "6.7.1", - "gif-frames": "0.4.1", - "glob": "11.0.0", - "graceful-fs": "4.2.11", - "html-escaper": "3.0.3", - "html-to-text": "9.0.5", - "import-meta-resolve": "4.1.0", - "jieba-wasm": "2.2.0", - "json5": "2.2.3", - "kuromoji": "0.1.2", - "libsodium-wrappers": "0.7.15", - "multer": "1.4.5-lts.1", - "node-cache": "5.1.2", - "node-llama-cpp": "3.1.1", - "nodejs-whisper": "0.1.18", - "onnxruntime-node": "1.20.1", - "pdfjs-dist": "4.7.76", - "playwright": "1.48.2", - "pm2": "5.4.3", - "puppeteer-extra": "3.3.6", - "puppeteer-extra-plugin-capsolver": "2.0.1", - "sharp": "0.33.5", - "srt": "0.0.3", - "systeminformation": "5.23.5", - "tar": "7.4.3", - "tinyld": "1.3.4", - "uuid": "11.0.3", - "wav": "1.0.2", - "wav-encoder": "1.3.0", - "wavefile": "11.0.0", - "yargs": "17.7.2", - "youtube-dl-exec": "3.0.10" - }, - "devDependencies": { - "@types/node": "22.8.4", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache .", - "postinstall": "node scripts/postinstall.js" - }, - "peerDependencies": { - "onnxruntime-node": "1.20.1", - "whatwg-url": "7.1.0" - }, - "trustedDependencies": { - "onnxruntime-node": "1.20.1", - "sharp": "0.33.5" - } + "name": "@ai16z/plugin-node", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "files": [ + "dist", + "scripts", + "package.json", + "LICENSE", + "tsup.config.ts" + ], + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@aws-sdk/client-s3": "^3.705.0", + "@aws-sdk/s3-request-presigner": "^3.705.0", + "@cliqz/adblocker-playwright": "1.34.0", + "@echogarden/espeak-ng-emscripten": "0.3.3", + "@echogarden/kissfft-wasm": "0.2.0", + "@echogarden/speex-resampler-wasm": "0.2.1", + "@huggingface/transformers": "3.0.2", + "@opendocsg/pdf2md": "0.1.32", + "@types/uuid": "10.0.0", + "alawmulaw": "6.0.0", + "bignumber": "1.1.0", + "bignumber.js": "9.1.2", + "capsolver-npm": "2.0.2", + "cldr-segmentation": "2.2.1", + "command-exists": "1.2.9", + "csv-writer": "1.6.0", + "echogarden": "2.0.7", + "espeak-ng": "1.0.2", + "ffmpeg-static": "5.2.0", + "fluent-ffmpeg": "2.1.3", + "formdata-node": "6.0.3", + "fs-extra": "11.2.0", + "gaxios": "6.7.1", + "gif-frames": "0.4.1", + "glob": "11.0.0", + "graceful-fs": "4.2.11", + "html-escaper": "3.0.3", + "html-to-text": "9.0.5", + "import-meta-resolve": "4.1.0", + "jieba-wasm": "2.2.0", + "json5": "2.2.3", + "kuromoji": "0.1.2", + "libsodium-wrappers": "0.7.15", + "multer": "1.4.5-lts.1", + "node-cache": "5.1.2", + "node-llama-cpp": "3.1.1", + "nodejs-whisper": "0.1.18", + "onnxruntime-node": "1.20.1", + "pdfjs-dist": "4.7.76", + "playwright": "1.48.2", + "pm2": "5.4.3", + "puppeteer-extra": "3.3.6", + "puppeteer-extra-plugin-capsolver": "2.0.1", + "sharp": "0.33.5", + "srt": "0.0.3", + "systeminformation": "5.23.5", + "tar": "7.4.3", + "tinyld": "1.3.4", + "uuid": "11.0.3", + "wav": "1.0.2", + "wav-encoder": "1.3.0", + "wavefile": "11.0.0", + "yargs": "17.7.2", + "youtube-dl-exec": "3.0.10" + }, + "devDependencies": { + "@types/node": "22.8.4", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache .", + "postinstall": "node scripts/postinstall.js" + }, + "peerDependencies": { + "onnxruntime-node": "1.20.1", + "whatwg-url": "7.1.0" + }, + "trustedDependencies": { + "onnxruntime-node": "1.20.1", + "sharp": "0.33.5" + } } diff --git a/packages/plugin-solana/package.json b/packages/plugin-solana/package.json index 9f442dac8a..fb213a94a8 100644 --- a/packages/plugin-solana/package.json +++ b/packages/plugin-solana/package.json @@ -1,33 +1,33 @@ { - "name": "@ai16z/plugin-solana", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-trustdb": "workspace:*", - "@ai16z/plugin-tee": "workspace:*", - "@coral-xyz/anchor": "0.30.1", - "@solana/spl-token": "0.4.9", - "@solana/web3.js": "1.95.8", - "bignumber": "1.1.0", - "bignumber.js": "9.1.2", - "bs58": "6.0.0", - "fomo-sdk-solana": "1.3.2", - "node-cache": "5.1.2", - "pumpdotfun-sdk": "1.3.2", - "tsup": "8.3.5", - "vitest": "2.1.4" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache .", - "test": "vitest run" - }, - "peerDependencies": { - "form-data": "4.0.1", - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-solana", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-trustdb": "workspace:*", + "@ai16z/plugin-tee": "workspace:*", + "@coral-xyz/anchor": "0.30.1", + "@solana/spl-token": "0.4.9", + "@solana/web3.js": "1.95.8", + "bignumber": "1.1.0", + "bignumber.js": "9.1.2", + "bs58": "6.0.0", + "fomo-sdk-solana": "1.3.2", + "node-cache": "5.1.2", + "pumpdotfun-sdk": "1.3.2", + "tsup": "8.3.5", + "vitest": "2.1.4" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache .", + "test": "vitest run" + }, + "peerDependencies": { + "form-data": "4.0.1", + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-starknet/package.json b/packages/plugin-starknet/package.json index e8a2dc8a88..c7a74dce6c 100644 --- a/packages/plugin-starknet/package.json +++ b/packages/plugin-starknet/package.json @@ -1,27 +1,27 @@ { - "name": "@ai16z/plugin-starknet", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-trustdb": "workspace:*", - "@avnu/avnu-sdk": "2.1.1", - "@uniswap/sdk-core": "6.0.0", - "@unruggable_starknet/core": "0.1.0", - "starknet": "6.18.0", - "tsup": "8.3.5", - "vitest": "2.1.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test": "vitest run", - "test:watch": "vitest", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-starknet", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-trustdb": "workspace:*", + "@avnu/avnu-sdk": "2.1.1", + "@uniswap/sdk-core": "6.0.0", + "@unruggable_starknet/core": "0.1.0", + "starknet": "6.18.0", + "tsup": "8.3.5", + "vitest": "2.1.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test": "vitest run", + "test:watch": "vitest", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-story/package.json b/packages/plugin-story/package.json index f35d517921..384a1d8f04 100644 --- a/packages/plugin-story/package.json +++ b/packages/plugin-story/package.json @@ -1,26 +1,26 @@ { - "name": "@ai16z/plugin-story", - "version": "0.1.0-alpha.1", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-trustdb": "workspace:*", - "@story-protocol/core-sdk": "1.2.0-rc.3", - "tsup": "8.3.5", - "viem": "2.21.54", - "@pinata/sdk": "^2.1.0" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test": "vitest run" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - }, - "devDependencies": { - "@types/node": "^22.10.1" - } + "name": "@ai16z/plugin-story", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-trustdb": "workspace:*", + "@story-protocol/core-sdk": "1.2.0-rc.3", + "tsup": "8.3.5", + "viem": "2.21.54", + "@pinata/sdk": "^2.1.0" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test": "vitest run" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + }, + "devDependencies": { + "@types/node": "^22.10.1" + } } diff --git a/packages/plugin-sui/package.json b/packages/plugin-sui/package.json index 1aee92e29b..2339503564 100644 --- a/packages/plugin-sui/package.json +++ b/packages/plugin-sui/package.json @@ -1,26 +1,26 @@ { - "name": "@ai16z/plugin-sui", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-trustdb": "workspace:*", - "@mysten/sui": "^1.16.0", - "bignumber": "1.1.0", - "bignumber.js": "9.1.2", - "node-cache": "5.1.2", - "tsup": "8.3.5", - "vitest": "2.1.4" - }, - "scripts": { - "build": "tsup --format esm --dts", - "lint": "eslint . --fix", - "test": "vitest run" - }, - "peerDependencies": { - "form-data": "4.0.1", - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-sui", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-trustdb": "workspace:*", + "@mysten/sui": "^1.16.0", + "bignumber": "1.1.0", + "bignumber.js": "9.1.2", + "node-cache": "5.1.2", + "tsup": "8.3.5", + "vitest": "2.1.4" + }, + "scripts": { + "build": "tsup --format esm --dts", + "lint": "eslint . --fix", + "test": "vitest run" + }, + "peerDependencies": { + "form-data": "4.0.1", + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-tee/package.json b/packages/plugin-tee/package.json index 9e144197df..c48cc62206 100644 --- a/packages/plugin-tee/package.json +++ b/packages/plugin-tee/package.json @@ -1,28 +1,28 @@ { - "name": "@ai16z/plugin-tee", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@phala/dstack-sdk": "0.1.6", - "@solana/spl-token": "0.4.9", - "@solana/web3.js": "1.95.8", - "bignumber": "1.1.0", - "bignumber.js": "9.1.2", - "bs58": "6.0.0", - "node-cache": "5.1.2", - "pumpdotfun-sdk": "1.3.2", - "tsup": "8.3.5", - "viem": "2.21.53" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-tee", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@phala/dstack-sdk": "0.1.6", + "@solana/spl-token": "0.4.9", + "@solana/web3.js": "1.95.8", + "bignumber": "1.1.0", + "bignumber.js": "9.1.2", + "bs58": "6.0.0", + "node-cache": "5.1.2", + "pumpdotfun-sdk": "1.3.2", + "tsup": "8.3.5", + "viem": "2.21.53" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-ton/package.json b/packages/plugin-ton/package.json index 2ff3af548f..6259e4954f 100644 --- a/packages/plugin-ton/package.json +++ b/packages/plugin-ton/package.json @@ -1,25 +1,25 @@ { - "name": "@ai16z/plugin-ton", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-trustdb": "workspace:*", - "bignumber": "1.1.0", - "bignumber.js": "9.1.2", - "node-cache": "5.1.2", - "@ton/ton": "15.1.0", - "@ton/crypto": "3.3.0", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test": "vitest run" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-ton", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-trustdb": "workspace:*", + "bignumber": "1.1.0", + "bignumber.js": "9.1.2", + "node-cache": "5.1.2", + "@ton/ton": "15.1.0", + "@ton/crypto": "3.3.0", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test": "vitest run" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-trustdb/package.json b/packages/plugin-trustdb/package.json index 96451907ed..fc3cdedbe9 100644 --- a/packages/plugin-trustdb/package.json +++ b/packages/plugin-trustdb/package.json @@ -1,27 +1,27 @@ { - "name": "@ai16z/plugin-trustdb", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "dompurify": "3.2.2", - "tsup": "8.3.5", - "uuid": "11.0.3", - "vitest": "2.1.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test": "vitest run", - "test:watch": "vitest", - "lint": "eslint --fix --cache ." - }, - "devDependencies": { - "@types/dompurify": "3.2.0" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-trustdb", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "dompurify": "3.2.2", + "tsup": "8.3.5", + "uuid": "11.0.3", + "vitest": "2.1.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test": "vitest run", + "test:watch": "vitest", + "lint": "eslint --fix --cache ." + }, + "devDependencies": { + "@types/dompurify": "3.2.0" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-video-generation/package.json b/packages/plugin-video-generation/package.json index a867e18b72..a23cf9352d 100644 --- a/packages/plugin-video-generation/package.json +++ b/packages/plugin-video-generation/package.json @@ -1,19 +1,19 @@ { - "name": "@ai16z/plugin-video-generation", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "lint": "eslint --fix --cache ." - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-video-generation", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "lint": "eslint --fix --cache ." + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-web-search/package.json b/packages/plugin-web-search/package.json index cc0e12a97a..0d6baa18a5 100644 --- a/packages/plugin-web-search/package.json +++ b/packages/plugin-web-search/package.json @@ -1,18 +1,18 @@ { - "name": "@ai16z/plugin-web-search", - "version": "0.1.5-alpha.5", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "tsup": "8.3.5" - }, - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-web-search", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "tsup": "8.3.5" + }, + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/packages/plugin-whatsapp/package.json b/packages/plugin-whatsapp/package.json index 9715ed59eb..83de284771 100644 --- a/packages/plugin-whatsapp/package.json +++ b/packages/plugin-whatsapp/package.json @@ -1,26 +1,26 @@ { - "name": "@ai16z/plugin-whatsapp", - "version": "0.1.5-alpha.5", - "description": "WhatsApp Cloud API plugin", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "scripts": { - "build": "tsup --format esm --dts", - "dev": "tsup --format esm --dts --watch", - "test": "jest", - "lint": "eslint --fix --cache ." - }, - "dependencies": { - "@ai16z/eliza": "workspace:*", - "axios": "1.7.8" - }, - "devDependencies": { - "@types/jest": "29.5.14", - "@types/node": "20.17.9", - "@typescript-eslint/eslint-plugin": "8.16.0", - "@typescript-eslint/parser": "8.16.0", - "jest": "29.7.0", - "ts-jest": "29.2.5", - "typescript": "5.6.3" - } + "name": "@ai16z/plugin-whatsapp", + "version": "0.1.6-alpha.4", + "description": "WhatsApp Cloud API plugin", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { + "build": "tsup --format esm --dts", + "dev": "tsup --format esm --dts --watch", + "test": "jest", + "lint": "eslint --fix --cache ." + }, + "dependencies": { + "@ai16z/eliza": "workspace:*", + "axios": "1.7.8" + }, + "devDependencies": { + "@types/jest": "29.5.14", + "@types/node": "20.17.9", + "@typescript-eslint/eslint-plugin": "8.16.0", + "@typescript-eslint/parser": "8.16.0", + "jest": "29.7.0", + "ts-jest": "29.2.5", + "typescript": "5.6.3" + } } diff --git a/packages/plugin-zksync-era/package.json b/packages/plugin-zksync-era/package.json index 77fb9e4b38..57ba0abd3a 100644 --- a/packages/plugin-zksync-era/package.json +++ b/packages/plugin-zksync-era/package.json @@ -1,20 +1,20 @@ { - "name": "@ai16z/plugin-zksync-era", - "version": "0.1.4-alpha.3", - "main": "dist/index.js", - "type": "module", - "types": "dist/index.d.ts", - "dependencies": { - "@ai16z/eliza": "workspace:*", - "@ai16z/plugin-trustdb": "workspace:*", - "tsup": "^8.3.5", - "web3": "^4.15.0", - "web3-plugin-zksync": "^1.0.8" - }, - "scripts": { - "build": "tsup --format esm --dts" - }, - "peerDependencies": { - "whatwg-url": "7.1.0" - } + "name": "@ai16z/plugin-zksync-era", + "version": "0.1.6-alpha.4", + "main": "dist/index.js", + "type": "module", + "types": "dist/index.d.ts", + "dependencies": { + "@ai16z/eliza": "workspace:*", + "@ai16z/plugin-trustdb": "workspace:*", + "tsup": "^8.3.5", + "web3": "^4.15.0", + "web3-plugin-zksync": "^1.0.8" + }, + "scripts": { + "build": "tsup --format esm --dts" + }, + "peerDependencies": { + "whatwg-url": "7.1.0" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 67f951ae84..e3aa872e51 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32210,7 +32210,7 @@ snapshots: extract-zip@2.0.1: dependencies: - debug: 4.3.4 + debug: 4.4.0(supports-color@8.1.1) get-stream: 5.2.0 yauzl: 2.10.0 optionalDependencies: diff --git a/scripts/start.sh b/scripts/start.sh index 86a51a6323..f3a817a27e 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,55 +1,65 @@ -#!/bin/bash -# Check Node.js version +#!/bin/sh + +# Node.js version check REQUIRED_NODE_VERSION=22 CURRENT_NODE_VERSION=$(node -v | cut -d'.' -f1 | sed 's/v//') -if (( CURRENT_NODE_VERSION < REQUIRED_NODE_VERSION && CURRENT_NODE_VERSION < 23 )); then - echo "Error: Node.js version must be $REQUIRED_NODE_VERSION or 23 or higher. Current version is $CURRENT_NODE_VERSION." +# Compare Node versions +if [ "$(expr "$CURRENT_NODE_VERSION" \< "$REQUIRED_NODE_VERSION")" -eq 1 ]; then + echo "\033[1;31mError: Node.js version must be $REQUIRED_NODE_VERSION or higher. Current version is $CURRENT_NODE_VERSION.\033[0m" + exit 1 +fi + +# Check if pnpm is installed +if ! command -v pnpm >/dev/null 2>&1; then + echo "\033[1;31mError: pnpm is not installed. Please install pnpm before running the script.\033[0m" exit 1 fi # Navigate to project root -cd "$(dirname "$0")"/.. +cd "$(dirname "$0")"/.. || exit 1 -# clean cache -echo -e "\033[1mCleaning cache...\033[0m" +# Clean cache +echo "\033[1mCleaning cache...\033[0m" if ! pnpm clean; then - echo -e "\033[1;31mFailed to clean cache\033[0m" + echo "\033[1;31mFailed to clean cache.\033[0m" exit 1 fi - # Install dependencies -echo -e "\033[1mInstalling dependencies...\033[0m" -if ! pnpm i ; then - echo -e "\033[1;31mFailed to install dependencies\033[0m" +echo "\033[1mInstalling dependencies...\033[0m" +if ! pnpm install; then + echo "\033[1;31mFailed to install dependencies.\033[0m" exit 1 fi # Build project -echo -e "\033[1mBuilding project...\033[0m" +echo "\033[1mBuilding project...\033[0m" if ! pnpm build; then - echo -e "\033[1;31mFailed to build project\033[0m" + echo "\033[1;31mFailed to build project.\033[0m" exit 1 fi # Start project -echo -e "\033[1mStarting project...\033[0m" +echo "\033[1mStarting project...\033[0m" if ! pnpm start; then - echo -e "\033[1;31mFailed to start project\033[0m" + echo "\033[1;31mFailed to start project.\033[0m" exit 1 fi # Start client -echo -e "\033[1mStarting client...\033[0m" -pnpm start:client +echo "\033[1mStarting client...\033[0m" +if ! pnpm start:client; then + echo "\033[1;31mFailed to start client.\033[0m" + exit 1 +fi # Open webpage -echo -e "\033[1mOpening webpage...\033[0m" -if command -v xdg-open &> /dev/null; then - xdg-open http://localhost:5173 -elif command -v open &> /dev/null; then - open http://localhost:5173 +echo "\033[1mOpening webpage at http://localhost:5173...\033[0m" +if command -v xdg-open >/dev/null 2>&1; then + xdg-open "http://localhost:5173" +elif command -v open >/dev/null 2>&1; then + open "http://localhost:5173" else - echo -e "\033[1;33mPlease open http://localhost:5173 in your browser\033[0m" + echo "\033[1;33mPlease open http://localhost:5173 in your browser.\033[0m" fi diff --git a/scripts/update-versions.js b/scripts/update-versions.js new file mode 100644 index 0000000000..75cdbbda6b --- /dev/null +++ b/scripts/update-versions.js @@ -0,0 +1,82 @@ +const fs = require('fs'); +const path = require('path'); +const readline = require('readline'); + +const packagesDir = path.join(__dirname, '../packages'); +const externalDirs = ['../agent', '../client', '../docs']; +const lernaPath = path.join(__dirname, '../lerna.json'); + +// Prompt for version input +const rl = readline.createInterface({ + input: process.stdin, + output: process.stdout +}); + +function askVersion() { + return new Promise((resolve) => { + rl.question('Enter the new version: ', (version) => { + resolve(version); + rl.close(); + }); + }); +} + +// Update versions in all package.json files +async function updateVersions() { + const NEW_VERSION = await askVersion(); + + const updateDirectory = (dirPath) => { + const packagePath = path.join(dirPath, 'package.json'); + + if (fs.existsSync(packagePath)) { + const packageJson = JSON.parse(fs.readFileSync(packagePath, 'utf-8')); + const oldVersion = packageJson.version; + + if (oldVersion) { + packageJson.version = NEW_VERSION; + fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2) + '\n'); + console.log(`Updated ${dirPath}: ${oldVersion} -> ${packageJson.version}`); + } else { + console.warn(`Version not found in ${dirPath}/package.json`); + } + } else { + console.warn(`No package.json found in ${dirPath}`); + } + }; + + // Update packages folder + if (fs.existsSync(packagesDir)) { + const packageDirs = fs.readdirSync(packagesDir); + packageDirs.forEach((dir) => updateDirectory(path.join(packagesDir, dir))); + } else { + console.warn(`Packages directory not found at ${packagesDir}`); + } + + // Update external folders + externalDirs.forEach((dir) => { + const fullPath = path.join(__dirname, dir); + if (fs.existsSync(fullPath)) { + updateDirectory(fullPath); + } else { + console.warn(`External directory not found: ${fullPath}`); + } + }); + + // Update lerna.json + if (fs.existsSync(lernaPath)) { + const lernaJson = JSON.parse(fs.readFileSync(lernaPath, 'utf-8')); + const oldVersion = lernaJson.version; + + if (oldVersion) { + lernaJson.version = NEW_VERSION; + fs.writeFileSync(lernaPath, JSON.stringify(lernaJson, null, 2) + '\n'); + console.log(`Updated lerna.json: ${oldVersion} -> ${lernaJson.version}`); + } else { + console.warn(`Version not found in lerna.json`); + } + } else { + console.warn(`lerna.json not found at ${lernaPath}`); + } +} + +updateVersions();