@@ -74,8 +74,6 @@ import { nftGenerationPlugin } from "@elizaos/plugin-nft-generation";
7474import { createNodePlugin } from "@elizaos/plugin-node" ;
7575import { obsidianPlugin } from "@elizaos/plugin-obsidian" ;
7676import { sgxPlugin } from "@elizaos/plugin-sgx" ;
77- import { solanaPlugin } from "@elizaos/plugin-solana" ;
78- import { solanaAgentkitPlguin } from "@elizaos/plugin-solana-agentkit" ;
7977import { autonomePlugin } from "@elizaos/plugin-autonome" ;
8078import { storyPlugin } from "@elizaos/plugin-story" ;
8179import { suiPlugin } from "@elizaos/plugin-sui" ;
@@ -103,6 +101,8 @@ import path from "path";
103101import { fileURLToPath } from "url" ;
104102import yargs from "yargs" ;
105103import { dominosPlugin } from "@elizaos/plugin-dominos" ;
104+ import { movementPlugin } from "@elizaos/plugin-movement" ;
105+ import { unjeet } from "../intern"
106106
107107const __filename = fileURLToPath ( import . meta. url ) ; // get the resolved path to the file
108108const __dirname = path . dirname ( __filename ) ; // get the name of the directory
@@ -290,34 +290,18 @@ export async function loadCharacters(
290290 return loadedCharacters ;
291291}
292292
293- async function handlePluginImporting ( plugins : string [ ] ) {
294- if ( plugins . length > 0 ) {
295- elizaLogger . info ( "Plugins are: " , plugins ) ;
296- const importedPlugins = await Promise . all (
297- plugins . map ( async ( plugin ) => {
298- try {
299- const importedPlugin = await import ( plugin ) ;
300- const functionName =
301- plugin
302- . replace ( "@elizaos/plugin-" , "" )
303- . replace ( / - ./ g, ( x ) => x [ 1 ] . toUpperCase ( ) ) +
304- "Plugin" ; // Assumes plugin function is camelCased with Plugin suffix
305- return (
306- importedPlugin . default || importedPlugin [ functionName ]
307- ) ;
308- } catch ( importError ) {
309- elizaLogger . error (
310- `Failed to import plugin: ${ plugin } ` ,
311- importError
312- ) ;
313- return [ ] ; // Return null for failed imports
314- }
315- } )
316- ) ;
317- return importedPlugins ;
318- } else {
319- return [ ] ;
293+ async function handlePluginImporting ( plugins : any [ ] ) : Promise < any [ ] > {
294+ const importedPlugins = [ ] ;
295+ for ( const plugin of plugins ) {
296+ if ( typeof plugin === "string" ) {
297+ if ( plugin === "@elizaos/plugin-movement" ) {
298+ importedPlugins . push ( movementPlugin ) ;
299+ }
300+ } else {
301+ importedPlugins . push ( plugin ) ;
302+ }
320303 }
304+ return importedPlugins ;
321305}
322306
323307export function getTokenForProvider (
@@ -854,6 +838,7 @@ export async function createAgent(
854838 getSecret ( character , "QUAI_PRIVATE_KEY" )
855839 ? quaiPlugin
856840 : null ,
841+ getSecret ( character , "MOVEMENT_PRIVATE_KEY" ) ? movementPlugin : null ,
857842 ] . filter ( Boolean ) ,
858843 providers : [ ] ,
859844 actions : [ ] ,
@@ -1020,7 +1005,7 @@ const startAgents = async () => {
10201005 let serverPort = parseInt ( settings . SERVER_PORT || "3000" ) ;
10211006 const args = parseArguments ( ) ;
10221007 let charactersArg = args . characters || args . character ;
1023- let characters = [ defaultCharacter ] ;
1008+ let characters = [ unjeet ] ;
10241009
10251010 if ( charactersArg ) {
10261011 characters = await loadCharacters ( charactersArg ) ;
0 commit comments