From 3fb18aa566d369a62c52086f202144cd8f667d64 Mon Sep 17 00:00:00 2001 From: mike dupont Date: Fri, 14 Mar 2025 08:18:22 -0400 Subject: [PATCH 1/5] minimal patch more --- .gitignore | 51 ++++++++++- .gitmodules | 21 +++++ .nvmrc | 2 +- CHANGELOG.md | 4 +- Dockerfile | 15 +++- buildspec.yml | 32 +++++++ call_update.sh | 10 +++ codebuild.sh | 8 ++ docker-entrypoint-none.sh | 19 ++++ docker-entrypoint-strace.sh | 11 +++ docker-entrypoint-strace2.sh | 19 ++++ docker-entrypoint.sh | 11 +++ doit.sh | 21 +++++ get_secrets.sh | 30 +++++++ push_twitter.sh | 6 ++ run_with_groq.sh | 28 ++++++ run_with_groq_docker.sh | 30 +++++++ rundocker.sh | 56 ++++++++++++ scripts/clean.sh | 18 ++++ scripts/dev.sh | 134 ++++++++++++++++++++++++++++ set_secrets.sh | 28 ++++++ set_systemd.sh | 2 + ssh-ssm.py | 45 ++++++++++ systemd/agent-docker-it.sh | 14 +++ systemd/agent-docker-local-it.sh | 13 +++ systemd/agent-docker-local.sh | 14 +++ systemd/agent-docker.service | 39 ++++++++ systemd/agent-docker.sh | 13 +++ transfer.sh | 4 + update.sh | 5 ++ vendor/elizaos/agent-twitter-client | 1 + vendor/elizaos/client-telegram | 1 + vendor/elizaos/client-twitter | 1 + vendor/elizaos/plugin-speech-tts | 1 + vendor/elizaos/plugin-twitter | 1 + 35 files changed, 701 insertions(+), 7 deletions(-) create mode 100644 .gitmodules create mode 100644 buildspec.yml create mode 100755 call_update.sh create mode 100755 codebuild.sh create mode 100755 docker-entrypoint-none.sh create mode 100755 docker-entrypoint-strace.sh create mode 100755 docker-entrypoint-strace2.sh create mode 100755 docker-entrypoint.sh create mode 100644 doit.sh create mode 100755 get_secrets.sh create mode 100755 push_twitter.sh create mode 100755 run_with_groq.sh create mode 100755 run_with_groq_docker.sh create mode 100755 rundocker.sh create mode 100644 scripts/clean.sh create mode 100644 scripts/dev.sh create mode 100755 set_secrets.sh create mode 100755 set_systemd.sh create mode 100755 ssh-ssm.py create mode 100644 systemd/agent-docker-it.sh create mode 100644 systemd/agent-docker-local-it.sh create mode 100644 systemd/agent-docker-local.sh create mode 100644 systemd/agent-docker.service create mode 100644 systemd/agent-docker.sh create mode 100755 transfer.sh create mode 100755 update.sh create mode 160000 vendor/elizaos/agent-twitter-client create mode 160000 vendor/elizaos/client-telegram create mode 160000 vendor/elizaos/client-twitter create mode 160000 vendor/elizaos/plugin-speech-tts create mode 160000 vendor/elizaos/plugin-twitter diff --git a/.gitignore b/.gitignore index e0237f28b6e4..10eb2db65dc1 100644 --- a/.gitignore +++ b/.gitignore @@ -65,4 +65,53 @@ lerna-debug.log tsdoc_cache/ tsdoc_comments/ -**/elizaDb/** \ No newline at end of file +**/elizaDb/**# -*- mode: gitignore; -*- +*~ +\#*\# +/.emacs.desktop +/.emacs.desktop.lock +*.elc +auto-save-list +tramp +.\#* + +# Org-mode +.org-id-locations +*_archive + +# flymake-mode +*_flymake.* + +# eshell files +/eshell/history +/eshell/lastdir + +# elpa packages +/elpa/ + +# reftex files +*.rel + +# AUCTeX auto folder +/auto/ + +# cask packages +.cask/ +dist/ + +# Flycheck +flycheck_*.el + +# server auth directory +/server/ + +# projectiles files +.projectile + +# directory configuration +.dir-locals.el + +# network security +/network-security.data + +packages/autodoc/text_objects/* diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000000..1bc755f0da9c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,21 @@ +[submodule "vendor/elizaos/plugin-twitter"] + path = vendor/elizaos/plugin-twitter + url = https://github.com/meta-introspector/plugin-twitter +[submodule "vendor/elizaos/agent-twitter-client"] + path = vendor/elizaos/agent-twitter-client + url = https://github.com/meta-introspector/agent-twitter-client.git +[submodule "vendor/elizaos/client-twitter"] + path = vendor/elizaos/client-twitter + url = https://github.com/meta-introspector/client-twitter-eliza-zos +[submodule "vendor/elizaos/client-discord-eliza"] + path = vendor/elizaos/client-discord-eliza + url = https://github.com/meta-introspector/client-discord-eliza-zos +[submodule "vendor/elizaos/plugin-speech-tts"] + path = vendor/elizaos/plugin-speech-tts + url = https://github.com/meta-introspector/plugin-speech-tts-eliza-zos +[submodule "vendor/elizaos/client-telegram"] + path = vendor/elizaos/client-telegram + url = https://github.com/meta-introspector/client-telegram-eliza-zos +[submodule "characters"] + path = characters + url = https://github.com/meta-introspector/characters-eliza-zos diff --git a/.nvmrc b/.nvmrc index fa12cf298e4d..c62509057139 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v23.3.0 \ No newline at end of file +v23.9.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9eb72d5a8638..431070d7a947 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,7 +101,7 @@ - feat: add docs for story plugin [\#1672](https://github.com/elizaOS/eliza/pull/1672) ([chandiniv1](https://github.com/chandiniv1)) - fix: 1668 fix twitter image link [\#1671](https://github.com/elizaOS/eliza/pull/1671) ([nusk0](https://github.com/nusk0)) - fix: 1634 fix image description service [\#1667](https://github.com/elizaOS/eliza/pull/1667) ([nusk0](https://github.com/nusk0)) -- fix: Seperated imageModelProvider and imageVisionModelProvider for ImageDescriptioServices [\#1664](https://github.com/elizaOS/eliza/pull/1664) ([denizekiz](https://github.com/denizekiz)) +- fix: Separated imageModelProvider and imageVisionModelProvider for ImageDescriptionServices [\#1664](https://github.com/elizaOS/eliza/pull/1664) ([denizekiz](https://github.com/denizekiz)) - fix: Update Supabase schema.sql [\#1660](https://github.com/elizaOS/eliza/pull/1660) ([0xRider](https://github.com/0xRider)) - fix: Fix bug in plugin-bootstrap/src/evaluators/facts.ts [\#1648](https://github.com/elizaOS/eliza/pull/1648) ([metakai1](https://github.com/metakai1)) - Added Hungarian README [\#1645](https://github.com/elizaOS/eliza/pull/1645) ([mdominikd](https://github.com/mdominikd)) @@ -188,7 +188,7 @@ - bun install shows errors [\#1234](https://github.com/elizaOS/eliza/issues/1234) - Long tweets fail with error Tweet needs to be a bit shorter \(Code 186\) [\#1178](https://github.com/elizaOS/eliza/issues/1178) - Unable to Perform Transfer with plugin-evm Due to Parameter Parsing Error [\#964](https://github.com/elizaOS/eliza/issues/964) -- I have a twitter premium subscription and MAX\_TWEET\_LENGTH to 2500 but I can't to post a tweet with more than 280 characteres [\#883](https://github.com/elizaOS/eliza/issues/883) +- I have a twitter premium subscription and MAX\_TWEET\_LENGTH to 2500 but I can't to post a tweet with more than 280 characters [\#883](https://github.com/elizaOS/eliza/issues/883) - Twitter cookies do not match the docs [\#558](https://github.com/elizaOS/eliza/issues/558) **Closed issues:** diff --git a/Dockerfile b/Dockerfile index 500dec5543ed..9c0bb3aeb0a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,13 @@ RUN apt-get update && \ # Install bun using npm (more reliable across architectures) RUN npm install -g bun turbo@2.3.3 +# Clone the repository +COPY . /app/eliza + +WORKDIR /app/eliza + +# List files to ensure package.json is present +RUN echo "Listing files in /app/eliza:" && ls -la # Set Python 3 as the default python RUN ln -s /usr/bin/python3 /usr/bin/python @@ -27,8 +34,6 @@ COPY scripts ./scripts # Copy source code COPY packages ./packages - - # Install dependencies RUN bun install RUN bun add better-sqlite3 @@ -52,6 +57,7 @@ RUN apt-get update && \ RUN npm install -g bun turbo@2.3.3 # Copy built artifacts and production dependencies from the builder stage + COPY --from=builder /app/package.json ./ COPY --from=builder /app/tsconfig.json ./ COPY --from=builder /app/turbo.json ./ @@ -62,11 +68,14 @@ COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/packages ./packages COPY --from=builder /app/scripts ./scripts + + # Set environment variables ENV NODE_ENV=production # Expose any necessary ports (if needed) EXPOSE 3000 5173 + # Start the application -CMD ["bun", "run", "start"] \ No newline at end of file +CMD ["bun", "run", "start"] diff --git a/buildspec.yml b/buildspec.yml new file mode 100644 index 000000000000..f9af140dd212 --- /dev/null +++ b/buildspec.yml @@ -0,0 +1,32 @@ +version: 0.2 + +env: + parameter-store: + DOCKER_USERNAME : "tine_agent_4_docker_username" + DOCKER_PASSWORD : "tine_agent_4_docker_password" + #DOCKER_IMAGE : "tine_agent_7_agent_image" + variables: + DOCKER_IMAGE : "h4ckermike/elizaos-eliza:telegram" + + +phases: + pre_build: + commands: + - apt update + - apt-get install -y ec2-instance-connect git wget unzip systemd ca-certificates curl cloud-utils apt-transport-https ca-certificates software-properties-common + - curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh + - echo $DOCKER_PASSWORD | md5sum + - echo $DOCKER_PASSWORD | wc + - echo $DOCKER_PASSWORD | docker login -u $DOCKER_USERNAME --password-stdin + - aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin 767503528736.dkr.ecr.us-east-2.amazonaws.com + build: + commands: + - docker build -t agent/eliza:feb10 . + - docker tag agent/eliza:feb10 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10 + post_build: + commands: + - docker push 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10 + - docker tag 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10 $DOCKER_IMAGE + - docker push $DOCKER_IMAGE + # h4ckermike/elizaos-eliza:feb10 + diff --git a/call_update.sh b/call_update.sh new file mode 100755 index 000000000000..5eaf492b8d7a --- /dev/null +++ b/call_update.sh @@ -0,0 +1,10 @@ +aws ssm send-command \ + --profile solfunmeme_dev \ + --region us-east-2 \ + --document-name "UpdateEliza" \ + --document-version "\$LATEST" \ + --targets '[{"Key":"InstanceIds","Values":["i-0b0e822632e0bef20"]}]' \ + --parameters '{"ImageParameterName":["tine_agent_4_agent_image"],"CharacterParameterName":["tine-agent-config-1"],"ContainerMemory":["1512"]}' \ + --timeout-seconds 600 \ + --max-concurrency "50" \ + --max-errors "0" diff --git a/codebuild.sh b/codebuild.sh new file mode 100755 index 000000000000..f3c682b405b8 --- /dev/null +++ b/codebuild.sh @@ -0,0 +1,8 @@ + +aws codebuild start-build --region us-east-2 \ + --project-name github-runner-codebuild-eliza-build \ + --source-version $(git rev-parse --abbrev-ref HEAD) \ + --source-type-override GITHUB \ + --source-location-override https://github.com/meta-introspector/cloud-deployment-eliza.git \ + --git-clone-depth 1 \ + --git-submodules-config fetchSubmodules=true diff --git a/docker-entrypoint-none.sh b/docker-entrypoint-none.sh new file mode 100755 index 000000000000..4e3a994629df --- /dev/null +++ b/docker-entrypoint-none.sh @@ -0,0 +1,19 @@ +#!/bin/sh +set -e + +# Run command with node if the first argument contains a "-" or is not a system command. The last +# part inside the "{}" is a workaround for the following bug in ash/dash: +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 +set -x +#if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then +#apt update +#apt install -y strace + +export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 +corepack enable && corepack install --global pnpm@9.8.0 + +#strace -f -o /opt/agent/strace.log -s99999 node CMD ["pnpm", "start", "--characters=characters/eliza.character.json"] +#pnpm start --characters=characters/tine-test.character.json +pnpm start --characters=$(ls -1p characters/*.json | paste -sd,) +#fi +#exec "$@" diff --git a/docker-entrypoint-strace.sh b/docker-entrypoint-strace.sh new file mode 100755 index 000000000000..1c32ee7177ab --- /dev/null +++ b/docker-entrypoint-strace.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +# Run command with node if the first argument contains a "-" or is not a system command. The last +# part inside the "{}" is a workaround for the following bug in ash/dash: +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 +set -x +#if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then +strace -f -o /opt/agent/strace.log -s99999 node "$@" +#fi +#exec "$@" diff --git a/docker-entrypoint-strace2.sh b/docker-entrypoint-strace2.sh new file mode 100755 index 000000000000..c01fde32f92a --- /dev/null +++ b/docker-entrypoint-strace2.sh @@ -0,0 +1,19 @@ +#!/bin/sh +set -e + +# Run command with node if the first argument contains a "-" or is not a system command. The last +# part inside the "{}" is a workaround for the following bug in ash/dash: +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 +set -x +#if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then +apt update +apt install -y strace + +export COREPACK_ENABLE_DOWNLOAD_PROMPT=0 +corepack enable && corepack install --global pnpm@9.8.0 + + +#strace -f -o /opt/agent/strace.log -s99999 node CMD ["pnpm", "start", "--characters=characters/eliza.character.json"] +strace -f -o /opt/agent/strace.log -s99999 pnpm start:debug --characters=$(ls -1p characters/*.json | paste -sd,) +#fi +#exec "$@" diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100755 index 000000000000..1b3116e53ba3 --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +# Run command with node if the first argument contains a "-" or is not a system command. The last +# part inside the "{}" is a workaround for the following bug in ash/dash: +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874264 +if [ "${1#-}" != "${1}" ] || [ -z "$(command -v "${1}")" ] || { [ -f "${1}" ] && ! [ -x "${1}" ]; }; then + set -- node "$@" +fi + +exec "$@" diff --git a/doit.sh b/doit.sh new file mode 100644 index 000000000000..d2b204f6f47e --- /dev/null +++ b/doit.sh @@ -0,0 +1,21 @@ + +nvm use 23 +pnpm clean +pnpm install --no-frozen-lockfile +pnpm build + + +pushd packages/adapter-sqlite +pnpm rebuild +popd + + +pushd scripts/jsdoc-automation +pnpm install --no-frozen-lockfile +pnpm build + +pushd node_modules/.pnpm/better-sqlite3@11.8.1/node_modules/better-sqlite3/ +pnpm rebuild + +popd +popd diff --git a/get_secrets.sh b/get_secrets.sh new file mode 100755 index 000000000000..1e6ecaa51981 --- /dev/null +++ b/get_secrets.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# we are using parameters prefixed by ${AGENT_NAME}_, eg. "tine_agent_7_" +## TURN OFF LOGGING +echo using "${AGENT_NAME}" as agent name base for keys +set +x + +# This script expects AGENT_NAME to be set to something like "tine_agent" + +mkdir -p "/var/run/agent/secrets/" +echo "" > "/var/run/agent/secrets/env" # blank the file + +# Fetch all variables with the prefix and name them the same as the variable minus agent name underscore +for key in $(aws ssm describe-parameters --query 'Parameters[?starts_with(Name, `'"${AGENT_NAME}"'_`)].Name' --output text); do + value=$(aws ssm get-parameter --name "$key" | jq .Parameter.Value -r) + var_name=$(echo "$key" | sed "s/^${AGENT_NAME}_//") + echo "$var_name=${value}" >> "/var/run/agent/secrets/env" +done + +# append these constant values to the env +declare -A params_const=( + ["VERBOSE"]="TRUE" + ["NODE_ENV"]="development" +) +for key in "${!params_const[@]}"; do + value="${params_const[$key]}" + echo "$key=$value" >> "/var/run/agent/secrets/env" +done + +set -x +## TURN ON LOGGING diff --git a/push_twitter.sh b/push_twitter.sh new file mode 100755 index 000000000000..b62e6d60df71 --- /dev/null +++ b/push_twitter.sh @@ -0,0 +1,6 @@ + +export TWITTER_EMAIL TWITTER_PASSWORD TWITTER_USER + +aws ssm put-parameter --name "tine_agent_twitter_password" --value "${TWITTER_PASSWORD}" --type String +aws ssm put-parameter --name "tine_agent_twitter_email" --value "${TWITTER_EMAIL}" --type String +aws ssm put-parameter --name "tine_agent_twitter_username" --value "${TWITTER_USERNAME}" --type String diff --git a/run_with_groq.sh b/run_with_groq.sh new file mode 100755 index 000000000000..ec20ab1f7a60 --- /dev/null +++ b/run_with_groq.sh @@ -0,0 +1,28 @@ + +# +bash ./get_secrets.sh + +docker kill agent-docker.service || echo skip +docker rm --force agent-docker.service || echo skip + +/usr/bin/bash -c 'docker login -u AWS -p $(aws ecr get-login-password --region us-east-2) 767503528736.dkr.ecr.us-east-2.amazonaws.com' + +/usr/bin/docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed + +#/usr/bin/docker run -p 3000:3000 --mount type=bind,source=/opt/agent,target=/opt/agent --env-file /var/run/agent/secrets/env --rm --name "agent-docker.service" --entry-point docker-entrypoint-strace.sh 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed pnpm start:debug --characters=characters/eliza.character.json + +#~/cloud-deployment-eliza/runlocaldocker-install-script.sh +# install strace (fixme : update docker) +#/usr/bin/docker run -p 3000:3000 --mount type=bind,source=/opt/agent,target=/opt/agent --env-file /var/run/agent/secrets/env --rm --name "agent-docker.service" --entrypoint /opt/agent/docker-entrypoint-none.sh 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feature-arm64_fastembed /opt/agent/runlocaldocker-install-script.sh +#/usr/bin/docker commit "agent-docker.service" "agent-docker-strace" +# second step we debug with strace entrypoint +# first we create a volumee +#mount /node_modules/tokenizers/ from 767503528736.dkr.ecr.us-east-2.amazonaws.com/nodemodules/tokenizer:latest into +#"/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/" + +docker run -v tokenizer:/node_modules/tokenizers/ 767503528736.dkr.ecr.us-east-2.amazonaws.com/nodemodules/tokenizer:latest + +# now bind it in +/usr/bin/docker run -d -p 3000:3000 -v tokenizer:/app/node_modules/@anush008/tokenizers/ -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ --mount type=bind,source=/opt/agent,target=/opt/agent --mount type=bind,source=/opt/agent/characters/,target=/app/characters/ --env-file /var/run/agent/secrets/env --rm --name "agent-docker.service" --entrypoint /opt/agent/docker-entrypoint-strace2.sh groq +#100755 > + diff --git a/run_with_groq_docker.sh b/run_with_groq_docker.sh new file mode 100755 index 000000000000..ee3145759e42 --- /dev/null +++ b/run_with_groq_docker.sh @@ -0,0 +1,30 @@ + +# +bash ./get_secrets.sh + +docker kill agent-docker.service || echo skip +docker rm --force agent-docker.service || echo skip + +export CORE_AGENT_IMAGE=h4ckermike/elizaos-eliza:feature-arm64_fastembed +export TOKENIZERS_IMAGE=h4ckermike/arm64-tokenizers:feature-arm64 +# AUDIO +# video +# more +/usr/bin/docker pull $TOKENIZERS_IMAGE +/usr/bin/docker pull $CORE_AGENT_IMAGE + +# intialize the volume as side effect +docker run -v tokenizer:/node_modules/tokenizers/ $TOKENIZERS_IMAGE +#docker cp characters/eliza.character.json agent-docker.service:/app/agent/characters/eliza.character.json +#docker commit agent-docker.service groq + +# now bind it in +/usr/bin/docker run -d -p 3000:3000 \ + -v tokenizer:/app/node_modules/@anush008/tokenizers/ -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ \ + --mount type=bind,source=/opt/agent,target=/opt/agent \ + --mount type=bind,source=/opt/agent/characters/,target=/app/characters/ \ + --env-file /var/run/agent/secrets/env \ + --rm \ + --name "agent-docker.service" \ + --entrypoint /opt/agent/docker-entrypoint-strace2.sh $DOCKERIMAGE + diff --git a/rundocker.sh b/rundocker.sh new file mode 100755 index 000000000000..ce8dca3a07d1 --- /dev/null +++ b/rundocker.sh @@ -0,0 +1,56 @@ +#!/bin/bash +# FIXME move this and related files into the user data via templates and compression +# this is the install script +# install_script = "/opt/agent/rundocker.sh" +# called on boot. +echo using "${AGENT_NAME}" as agent name base for keys +export AGENT_NAME +#pwd +#ls -latr +#. ./.env # for secrets +set -e # stop on any error +export WORKSOURCE="/opt/agent" + +echo for now install helper tools +snap install aws-cli --classic +apt install -y jq +apt install -y lsof strace nmap +#apt install -y emacs-nox + +if ! id -u agent > /dev/null 2>&1; then + adduser --disabled-password --gecos "" agent --home "/home/agent" || echo ignore +else + echo "User agent already exists, ignoring..." +fi + +git config --global --add safe.directory "/opt/agent" +cd "/opt/agent/" || exit 1 # "we need agent" +#git log -1 +mkdir -p "/home/agent" +mkdir -p "/var/agent/logs" +chown -R agent:agent "/var/agent/" "/home/agent" "/opt/agent" +mkdir -p "/var/run/agent/secrets/" + +bash ./get_secrets.sh + +if ! grep -q "^HOME" "/var/run/agent/secrets/env"; then + echo "HOME=/home/agent" >> "/var/run/agent/secrets/env" +fi +if ! grep -q "^HOME" "/var/run/agent/secrets/env"; then + echo "WORKSPACE_DIR=\${STATE_DIRECTORY}" >> "/var/run/agent/secrets/env" +fi +cp "${WORKSOURCE}/systemd/agent-docker.service" /etc/systemd/system/agent-docker.service +grep . -h -n /etc/systemd/system/agent-docker.service +chown -R agent:agent /var/run/agent/ +chown -R agent:agent /opt/agent/ +systemctl daemon-reload + +# now we can kill any existing +docker stop agent-docker.service || echo oops +docker kill agent-docker.service || echo oops +docker rm agent-docker.service || echo oops + + +systemctl start agent-docker || echo failed +systemctl enable agent-docker || echo failed +#systemctl status agent-docker || echo oops2 diff --git a/scripts/clean.sh b/scripts/clean.sh new file mode 100644 index 000000000000..9c687aa40cb5 --- /dev/null +++ b/scripts/clean.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +# Navigate to the script's directory +cd "$(dirname "$0")"/.. +echo "Cleanup started." +# Find and remove node_modules directories, dist directories. +find . -type d -name "node_modules" -print0 | xargs -0 rm -rf +find . -type d -name "dist" -exec rm -rf {} + +find . -type d -name ".turbo" -exec rm -rf {} + + +# Remove core cache +rm -rf ./packages/core/cache + +# Remove pnpm lockfile +rm -f ./pnpm-lock.yaml + +echo "Cleanup completed." +exit 0 diff --git a/scripts/dev.sh b/scripts/dev.sh new file mode 100644 index 000000000000..77885acc0292 --- /dev/null +++ b/scripts/dev.sh @@ -0,0 +1,134 @@ +#!/bin/bash + +echo "Passing arguments: $*" + +# Base packages directory +PACKAGES_DIR="./packages" + +# Display help message to users +cat << "EOF" + +*********************************************************************** +* * +* IMPORTANT NOTICE: * +* * +* To add your plugin to the development workflow: * +* * +* 1. Navigate to the 'scripts' directory in your project. * +* * +* cd scripts * +* * +* 2. Edit the 'dev.sh' script file. * +* * +* nano dev.sh * +* * +* 3. Add the following changes: * +* * +* a. Ensure your plugin's package.json contains a 'dev' command * +* under the "scripts" section. Example: * +* * +* "scripts": { * +* "dev": "your-dev-command-here" * +* } * +* * +* b. Add your plugin's folder name to the WORKING_FOLDERS list * +* (relative to ./packages). * +* * +* Example: WORKING_FOLDERS=("client-direct" "your-plugin-folder") * +* * +* 4. Update the 'agent/package.json' file: * +* * +* Add your plugin to the "dependencies" section like so: * +* * +* "@elizaos/your-plugin-name": "workspace:*" * +* * +* 5. Edit the 'index.ts' file in 'agent/src': * +* * +* a. Import your plugin: * +* * +* import yourPlugin from '@elizaos/your-plugin-name'; * +* * +* b. Add your plugin to the `plugins` array: * +* * +* const plugins = [ * +* existingPlugin, * +* yourPlugin, * +* ]; * +* * +* This will ensure that your plugin's development server runs * +* alongside others when you execute this script. * +*********************************************************************** + +EOF + +# 2 seconds delay to read the message above +for i in {1..5}; do + echo -n "." + sleep 0.4 +done + +# Check if the packages directory exists +if [ ! -d "$PACKAGES_DIR" ]; then + echo "Error: Directory $PACKAGES_DIR does not exist." + exit 1 +fi + +# List of working folders to watch (relative to $PACKAGES_DIR) +WORKING_FOLDERS=() # Core is handled separately + +# Initialize an array to hold package-specific commands +COMMANDS=() + +# Ensure "core" package runs first +CORE_PACKAGE="$PACKAGES_DIR/core" +if [ -d "$CORE_PACKAGE" ]; then + COMMANDS+=("pnpm --dir $CORE_PACKAGE dev -- $*") +else + echo "Warning: 'core' package not found in $PACKAGES_DIR." +fi + +# Process remaining working folders +for FOLDER in "${WORKING_FOLDERS[@]}"; do + PACKAGE="$PACKAGES_DIR/$FOLDER" + + # Check if the folder exists and add the command + if [ -d "$PACKAGE" ]; then + COMMANDS+=("pnpm --dir $PACKAGE dev -- $*") + else + echo "Warning: '$FOLDER' folder not found in $PACKAGES_DIR." + fi +done + +# Add specific commands for other directories or cases +if [ -d "./client" ]; then + COMMANDS+=("pnpm --dir client dev -- $*") +else + echo "Warning: 'client' directory not found." +fi + +if [ -d "./agent" ]; then + # Build the watch paths dynamically from WORKING_FOLDERS + WATCH_PATHS=() + for FOLDER in "${WORKING_FOLDERS[@]}"; do + WATCH_PATHS+=("--watch './packages/$FOLDER/dist'") + done + # the initial sleep helps newer machines (ryzen 7xxx+) cycle faster + # older machine won't need it but they will be delayed 1 sec + # favoring newer machine for development + COMMANDS+=("echo 'boot elizaOS' && sleep 1 && echo 'starting nodemon' && nodemon --verbose ${WATCH_PATHS[@]} -e js,json,map --delay 2 --exec 'pnpm --dir agent dev -- $*'") +else + echo "Warning: 'agent' directory not found." +fi + +# Run build command first +if ! pnpm build; then + echo "Build failed. Exiting." + exit 1 +fi + +# Run all commands concurrently +if [ ${#COMMANDS[@]} -gt 0 ]; then + npx concurrently --raw "${COMMANDS[@]}" +else + echo "No valid packages to run." +fi diff --git a/set_secrets.sh b/set_secrets.sh new file mode 100755 index 000000000000..1e3f28c24fdd --- /dev/null +++ b/set_secrets.sh @@ -0,0 +1,28 @@ +#set +x # turn off logging +export AGENT_IMAGE=h4ckermike/elizaos-eliza:feature-arm64_fastembed +export TOKENIZER_IMAGE=h4ckermike/arm64-tokenizers:feature-arm64 + +# sets the parameter +#aws ssm put-parameter --name "agent_openai_key" --value "${OPENAI_API_KEY}" --type String +aws ssm put-parameter --overwrite --name "tine_agent_twitter_password" --value "${TWITTER_PASSWORD}" --type String +aws ssm put-parameter --overwrite --name "tine_agent_twitter_email" --value "${TWITTER_EMAIL}" --type String +aws ssm put-parameter --overwrite --name "tine_agent_twitter_username" --value "${TWITTER_USERNAME}" --type String +#aws ssm put-parameter --name "tine_agent_openai_key" --value "${OPENAI_API_KEY}" --type String +#aws ssm put-parameter --name "tine_agent_openai_endpoint" --value "${OPENAI_API_BASE}" --type String +#aws ssm put-parameter --name "tine_agent_openai_model" --value "${LLMMODEL}" --type String +aws ssm put-parameter --name "tine_agent_groq_key" --value "${GROQ_API_KEY}" --type String + +aws ssm put-parameter --name "tine_agent_agent_image" --value "${AGENT_IMAGE}" --type String +# aws ssm put-parameter --name "tine_agent_agent_image" --value "${AGENT_IMAGE}" --type String --region us-east-1 --overwrite +aws ssm put-parameter --name "tine_agent_tokenizer_image" --value "${TOKENIZER_IMAGE}" --type String +#aws ssm put-parameter --name "tine_agent_tokenizer_image" --value "${TOKENIZER_IMAGE}" --type String --region us-east-1 --overwrite + + + + +aws ssm put-parameter --name "tine_agent_2_agent_image" --value "h4ckermike/elizaos-eliza:feb10" --type String +aws ssm put-parameter --name "tine_agent_2_docker_username" --value "${DOCKER_USERNAME}" --type String +aws ssm put-parameter --name "tine_agent_2_docker_password" --value "${DOCKER_PASSWORD}" --type String + + +# aws ssm put-parameter --name "tine_agent_2_docker_username" --value "${DOCKER_USERNAME}" --type String --profile solfunmeme_dev diff --git a/set_systemd.sh b/set_systemd.sh new file mode 100755 index 000000000000..e35953ad173e --- /dev/null +++ b/set_systemd.sh @@ -0,0 +1,2 @@ +#!/bin/bash +source /var/run/agent/secrets/env diff --git a/ssh-ssm.py b/ssh-ssm.py new file mode 100755 index 000000000000..a94cb76ae146 --- /dev/null +++ b/ssh-ssm.py @@ -0,0 +1,45 @@ +#!/usr/bin/python +import time +import json +import boto3 +#from dateutil import tz + + +def parse_command_id(send_command_output): + return send_command_output['Command']['CommandId'] + +def fwd(instance): + # https://aws.amazon.com/blogs/aws/new-port-forwarding-using-aws-system-manager-sessions-manager/ + #INSTANCE_ID=$(aws ec2 describe-instances --filter "Name=tag:Name,Values=CodeStack/NewsBlogInstance" --query "Reservations[].Instances[?State.Name == 'running'].InstanceId[]" --output text) +# create the port forwarding tunnel + prms = { + "portNumber":["22"], + "localPortNumber":["2222"] + } + prms_jsn = json.dumps(prms) + print(f"""aws ssm start-session --target {instance} --document-name AWS-StartPortForwardingSession --parameters '{prms_jsn}'""") + +def main(): + ec2_client = boto3.client('ec2') + ssm_client = boto3.client('ssm') + + # Get the list of instance IDs and their states + instances_response = ec2_client.describe_instances() + + instances = [ + (instance['InstanceId'], instance['State']['Name']) + for reservation in instances_response['Reservations'] + for instance in reservation['Instances'] + ] + for reservation in instances_response['Reservations']: + for instance in reservation['Instances']: + print(instance) + instance_id = instance['InstanceId'] + state = instance['State']['Name'] + if state == 'running': + #print(f"Starting command for instance: {instance_id}") + #print(f"aws ssm start-session --target {instance_id}") + fwd(instance_id) + +if __name__ == "__main__": + main() diff --git a/systemd/agent-docker-it.sh b/systemd/agent-docker-it.sh new file mode 100644 index 000000000000..e9d2464b4d19 --- /dev/null +++ b/systemd/agent-docker-it.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +source /var/run/agent/secrets/env + +/usr/bin/docker run -p 3000:3000 \ + -v tokenizer:/app/node_modules/@anush008/tokenizers/ \ + -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ \ + --mount type=bind,source=/opt/agent,target=/opt/agent \ + --mount type=bind,source=/opt/agent/characters/,target=/app/characters/ \ + --env-file /var/run/agent/secrets/env \ + --name "agent-docker.service" --entrypoint "" -it ${AGENT_IMAGE} bash + + + diff --git a/systemd/agent-docker-local-it.sh b/systemd/agent-docker-local-it.sh new file mode 100644 index 000000000000..358837b65601 --- /dev/null +++ b/systemd/agent-docker-local-it.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +source ./env +/usr/bin/docker remove agent-docker.service + +/usr/bin/docker run -p 3000:3000 \ + -v tokenizer:/app/node_modules/@anush008/tokenizers/ \ + -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ \ + --mount type=bind,source=/opt/agent,target=/opt/agent \ + --mount type=bind,source=/opt/agent/characters/,target=/app/characters/ \ + --env-file env \ + --name "agent-docker.service" \ + --name "agent-docker.service" --entrypoint "" -it ${AGENT_IMAGE} bash diff --git a/systemd/agent-docker-local.sh b/systemd/agent-docker-local.sh new file mode 100644 index 000000000000..31a2ab52efbc --- /dev/null +++ b/systemd/agent-docker-local.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +source ./env +/usr/bin/docker remove agent-docker.service + +/usr/bin/docker run -p 3000:3000 \ + -v tokenizer:/app/node_modules/@anush008/tokenizers/ \ + -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ \ + --mount type=bind,source=/opt/agent,target=/opt/agent \ + --mount type=bind,source=/opt/agent/characters/,target=/app/characters/ \ + --env-file env \ + --name "agent-docker.service" \ + --entrypoint /opt/agent/docker-entrypoint-strace2.sh ${AGENT_IMAGE} + diff --git a/systemd/agent-docker.service b/systemd/agent-docker.service new file mode 100644 index 000000000000..95760a28fac2 --- /dev/null +++ b/systemd/agent-docker.service @@ -0,0 +1,39 @@ +# derived from https://phil.lavin.me.uk/2021/12/running-docker-containers-from-aws-ecr-with-systemd/ +# derived from https://github.com/encode/uvicorn/issues/678 +# derived from https://blog.container-solutions.com/running-docker-containers-with-systemd + +[Unit] +Description=agent +After=docker.service +Requires=docker.service +StartLimitInterval=200 +StartLimitBurst=10 + +[Service] +EnvironmentFile=/var/run/agent/secrets/env +RestartSec=10 +TimeoutStartSec=0 +ExecStartPre=-/usr/bin/docker exec %n stop || echo cannot prestop +ExecStartPre=-/usr/bin/docker rm %n || echo cannot preremove +ExecStartPre=/usr/bin/docker pull ${AGENT_IMAGE} +ExecStartPre=/usr/bin/docker pull ${TOKENIZER_IMAGE} +ExecStartPre=-/usr/bin/docker run --name copytoken \ + -v tokenizer:/node_modules/tokenizers/ \ + ${TOKENIZER_IMAGE} +ExecStart=/usr/bin/docker run \ + -p 3000:3000 \ + -v tokenizer:/app/node_modules/@anush008/tokenizers/ \ + -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ \ + --mount type=bind,source=/opt/agent,target=/opt/agent \ + --mount type=bind,source=/opt/agent/characters/,target=/app/characters/ \ + --env-file /var/run/agent/secrets/env \ + --name "agent-docker.service" \ + --entrypoint /opt/agent/docker-entrypoint-none.sh \ + ${AGENT_IMAGE} +StandardOutput=file:/var/log/agent_systemd.log +StandardError=file:/var/log/agent_systemd.log +ExecReload=/bin/kill -HUP ${MAINPID} +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/systemd/agent-docker.sh b/systemd/agent-docker.sh new file mode 100644 index 000000000000..4cb8c71b9243 --- /dev/null +++ b/systemd/agent-docker.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +source /var/run/agent/secrets/env + +/usr/bin/docker run -p 3000:3000 \ + -v tokenizer:/app/node_modules/@anush008/tokenizers/ \ + -v tokenizer:/app/node_modules/fastembed/node_modules/.pnpm/@anush008+tokenizers@https+++codeload.github.com+meta-introspector+arm64-tokenizers+tar.gz+98_s2457qj3pe4ojcbckddasgzfvu/node_modules/@anush008/ \ + --mount type=bind,source=/opt/agent,target=/opt/agent \ + --mount type=bind,source=/opt/agent/characters/,target=/app/characters/ \ + --env-file /var/run/agent/secrets/env \ + --name "agent-docker.service" \ + --entrypoint /opt/agent/docker-entrypoint-strace2.sh ${AGENT_IMAGE} + diff --git a/transfer.sh b/transfer.sh new file mode 100755 index 000000000000..37f4d0729174 --- /dev/null +++ b/transfer.sh @@ -0,0 +1,4 @@ +aws ecr get-login-password --region region | docker login --username AWS --password-stdin 767503528736.dkr.ecr.us-east-2.amazonaws.com +docker pull 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10 +docker tag 767503528736.dkr.ecr.us-east-2.amazonaws.com/agent/eliza:feb10 h4ckermike/elizaos-eliza:feb10 +docker push h4ckermike/elizaos-eliza:feb10 diff --git a/update.sh b/update.sh new file mode 100755 index 000000000000..1b0d2e237685 --- /dev/null +++ b/update.sh @@ -0,0 +1,5 @@ +aws ssm update-document \ + + --name "UpdateEliza" \ + --content "file://UpdateEliza.yaml" \ + --document-version '$LATEST' diff --git a/vendor/elizaos/agent-twitter-client b/vendor/elizaos/agent-twitter-client new file mode 160000 index 000000000000..e4a4984c789d --- /dev/null +++ b/vendor/elizaos/agent-twitter-client @@ -0,0 +1 @@ +Subproject commit e4a4984c789db487916f3666f8bb9b316182d87d diff --git a/vendor/elizaos/client-telegram b/vendor/elizaos/client-telegram new file mode 160000 index 000000000000..443526dad825 --- /dev/null +++ b/vendor/elizaos/client-telegram @@ -0,0 +1 @@ +Subproject commit 443526dad82507ddebb1255014f57ada73a824b5 diff --git a/vendor/elizaos/client-twitter b/vendor/elizaos/client-twitter new file mode 160000 index 000000000000..fffa53893878 --- /dev/null +++ b/vendor/elizaos/client-twitter @@ -0,0 +1 @@ +Subproject commit fffa5389387834e8b340f37fc440b2275a07eabf diff --git a/vendor/elizaos/plugin-speech-tts b/vendor/elizaos/plugin-speech-tts new file mode 160000 index 000000000000..28fde3cf1d33 --- /dev/null +++ b/vendor/elizaos/plugin-speech-tts @@ -0,0 +1 @@ +Subproject commit 28fde3cf1d3331269751706b1e95af8e158d1390 diff --git a/vendor/elizaos/plugin-twitter b/vendor/elizaos/plugin-twitter new file mode 160000 index 000000000000..a92d94b46bcf --- /dev/null +++ b/vendor/elizaos/plugin-twitter @@ -0,0 +1 @@ +Subproject commit a92d94b46bcf26a39620749d0bc67f192588b3c8 From a9e166132ae500abc4c57f79742f4af9e01ee563 Mon Sep 17 00:00:00 2001 From: mike dupont Date: Fri, 14 Mar 2025 09:41:40 -0400 Subject: [PATCH 2/5] update --- packages/registry | 1 - 1 file changed, 1 deletion(-) delete mode 160000 packages/registry diff --git a/packages/registry b/packages/registry deleted file mode 160000 index 16bf207b4027..000000000000 --- a/packages/registry +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 16bf207b4027c6547c3a6ba402e66d736b516c29 From 6861c6188236f81e762a3e870709f315eaedff7c Mon Sep 17 00:00:00 2001 From: mike dupont Date: Fri, 14 Mar 2025 09:35:17 -0400 Subject: [PATCH 3/5] update --- buildspec.yml | 2 +- bun.lock | 70 +++++++++++++++++++++++++-------------------------- package.json | 2 +- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/buildspec.yml b/buildspec.yml index f9af140dd212..6fc6324575ff 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -6,7 +6,7 @@ env: DOCKER_PASSWORD : "tine_agent_4_docker_password" #DOCKER_IMAGE : "tine_agent_7_agent_image" variables: - DOCKER_IMAGE : "h4ckermike/elizaos-eliza:telegram" + DOCKER_IMAGE : "h4ckermike/elizaos-eliza:v2" phases: diff --git a/bun.lock b/bun.lock index 87ffe85bf700..d40b6d0ea1eb 100644 --- a/bun.lock +++ b/bun.lock @@ -5,7 +5,7 @@ "name": "eliza", "dependencies": { "@anthropic-ai/sdk": "^0.39.0", - "@babel/generator": "^7.26.9", + "@babel/generator": "^7.26.10", "vittest": "^1.0.2", "zod": "3.24.1", }, @@ -72,7 +72,7 @@ }, "packages/cli": { "name": "@elizaos/cli", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "bin": { "elizaos": "./dist/index.js", }, @@ -83,10 +83,10 @@ "devDependencies": { "@babel/core": "^7.22.1", "@babel/parser": "^7.22.6", - "@elizaos/core": "^1.0.0-alpha.55", - "@elizaos/plugin-anthropic": "^1.0.0-alpha.55", - "@elizaos/plugin-openai": "^1.0.0-alpha.55", - "@elizaos/plugin-sql": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", + "@elizaos/plugin-anthropic": "^1.0.0-alpha.58", + "@elizaos/plugin-openai": "^1.0.0-alpha.58", + "@elizaos/plugin-sql": "^1.0.0-alpha.58", "@types/babel__core": "^7.20.1", "@types/diff": "^5.0.3", "@types/fs-extra": "^11.0.1", @@ -176,7 +176,7 @@ }, "packages/core": { "name": "@elizaos/core", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "dotenv": "16.4.5", "events": "^3.3.0", @@ -215,12 +215,12 @@ }, "packages/create-eliza": { "name": "create-eliza", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "bin": { "create-eliza": "index.mjs", }, "dependencies": { - "@elizaos/cli": "workspace:*", + "@elizaos/cli": "^1.0.0-alpha.58", }, }, "packages/docs": { @@ -253,21 +253,21 @@ }, "packages/plugin-anthropic": { "name": "@elizaos/plugin-anthropic", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@ai-sdk/anthropic": "^1.1.6", - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "fastembed": "^1.0.0", "tsup": "8.4.0", }, }, "packages/plugin-browser": { "name": "@elizaos/plugin-browser", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@aws-sdk/client-s3": "^3.705.0", "@aws-sdk/s3-request-presigner": "^3.705.0", - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@types/uuid": "10.0.0", "capsolver-npm": "2.0.2", "fluent-ffmpeg": "2.1.3", @@ -286,7 +286,7 @@ }, "packages/plugin-discord": { "name": "@elizaos/plugin-discord", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@discordjs/rest": "2.4.0", "@discordjs/voice": "0.18.0", @@ -305,17 +305,17 @@ }, "packages/plugin-elevenlabs": { "name": "@elizaos/plugin-elevenlabs", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "tsup": "8.4.0", }, }, "packages/plugin-local-ai": { "name": "@elizaos/plugin-local-ai", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@huggingface/hub": "^1.0.1", "@huggingface/inference": "^3.3.4", "@huggingface/transformers": "^3.3.3", @@ -340,11 +340,11 @@ }, "packages/plugin-openai": { "name": "@elizaos/plugin-openai", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@ai-sdk/openai": "^1.1.9", "@ai-sdk/ui-utils": "1.1.9", - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "ai": "^4.1.25", "js-tiktoken": "^1.0.18", "tsup": "8.4.0", @@ -352,11 +352,11 @@ }, "packages/plugin-pdf": { "name": "@elizaos/plugin-pdf", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@aws-sdk/client-s3": "^3.705.0", "@aws-sdk/s3-request-presigner": "^3.705.0", - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@types/uuid": "10.0.0", "capsolver-npm": "2.0.2", "fluent-ffmpeg": "2.1.3", @@ -376,9 +376,9 @@ }, "packages/plugin-solana": { "name": "@elizaos/plugin-solana", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@solana/spl-token": "0.4.9", "@solana/web3.js": "^1.98.0", "bignumber.js": "9.1.2", @@ -397,10 +397,10 @@ }, "packages/plugin-sql": { "name": "@elizaos/plugin-sql", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@electric-sql/pglite": "^0.2.17", - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@types/pg": "8.11.10", "drizzle-kit": "^0.30.4", "drizzle-orm": "^0.39.1", @@ -428,11 +428,11 @@ }, "packages/plugin-storage-s3": { "name": "@elizaos/plugin-storage-s3", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@aws-sdk/client-s3": "^3.705.0", "@aws-sdk/s3-request-presigner": "^3.705.0", - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@types/uuid": "10.0.0", "capsolver-npm": "2.0.2", "fluent-ffmpeg": "2.1.3", @@ -449,9 +449,9 @@ }, "packages/plugin-tee": { "name": "@elizaos/plugin-tee", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@phala/dstack-sdk": "^0.1.7", "@solana/web3.js": "^1.98.0", "better-sqlite3": "11.8.1", @@ -464,7 +464,7 @@ }, "packages/plugin-telegram": { "name": "@elizaos/plugin-telegram", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@telegraf/types": "7.1.0", "strip-literal": "^3.0.0", @@ -478,9 +478,9 @@ }, "packages/plugin-twitter": { "name": "@elizaos/plugin-twitter", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@roamhq/wrtc": "^0.8.0", "@sinclair/typebox": "^0.32.20", "glob": "11.0.0", @@ -505,11 +505,11 @@ }, "packages/plugin-video-understanding": { "name": "@elizaos/plugin-video-understanding", - "version": "1.0.0-alpha.55", + "version": "1.0.0-alpha.58", "dependencies": { "@aws-sdk/client-s3": "^3.705.0", "@aws-sdk/s3-request-presigner": "^3.705.0", - "@elizaos/core": "^1.0.0-alpha.55", + "@elizaos/core": "^1.0.0-alpha.58", "@types/uuid": "10.0.0", "capsolver-npm": "2.0.2", "fluent-ffmpeg": "2.1.3", diff --git a/package.json b/package.json index bf000d6c80b1..e143ed9f7e82 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,7 @@ }, "dependencies": { "@anthropic-ai/sdk": "^0.39.0", - "@babel/generator": "^7.26.9", + "@babel/generator": "^7.26.10", "vittest": "^1.0.2", "zod": "3.24.1" }, From 09062f5185ed30782ad9287c417c9dec505b1baf Mon Sep 17 00:00:00 2001 From: mike dupont Date: Fri, 14 Mar 2025 10:29:13 -0400 Subject: [PATCH 4/5] reset github actions --- .github/pull_request_template.md | 2 +- .github/workflows/fetch-news.yml | 27 +++++ .github/workflows/generate-changelog.yml | 50 +++++++++ .github/workflows/integrationTests.yaml | 38 +++---- .github/workflows/smoke-tests.yml | 39 +++++++ .github/workflows/tauri-ci.yml | 24 ++-- .github/workflows/tauri-release.yml | 42 ++----- scripts/dev.sh | 134 ----------------------- transfer.sh | 4 - 9 files changed, 155 insertions(+), 205 deletions(-) create mode 100644 .github/workflows/fetch-news.yml create mode 100644 .github/workflows/generate-changelog.yml create mode 100644 .github/workflows/smoke-tests.yml delete mode 100644 scripts/dev.sh delete mode 100755 transfer.sh diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 71701239963f..ea99cc31aeff 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -78,7 +78,7 @@ None: Automated tests are acceptable. ## Deployment instructions --> - +