Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/signoz #20

Open
wants to merge 31 commits into
base: feature/skinny_eliza/feb10
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[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
18 changes: 18 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [


{
"name": "Generic Remote Debugger",
"type": "node",
"request": "attach",
"address" :"192.168.1.90",
"localSourceRoot": "${workspaceRoot}",
"port": 9229
}
]
}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ COPY --from=builder /app/pnpm-workspace.yaml ./
COPY --from=builder /app/.npmrc ./
COPY --from=builder /app/turbo.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/vendor ./vendor
# /app/vendor/elizaos/plugin-twitter
COPY --from=builder /app/agent ./agent
COPY --from=builder /app/client ./client
COPY --from=builder /app/lerna.json ./
Expand Down
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@

```
docker build . -t testlocal
```

or
`docker build . `
noting the hash `sha256:66c7d1cd1ce6925e2fcad963ecfc2c97e62dad34217a0b2644143b50838aa081 ` and tagging it like this
followed by
`docker tag sha256:66c7d1cd1ce6925e2fcad963ecfc2c97e62dad34217a0b2644143b50838aa081 testlocal`

now add to the env file
`AGENT_IMAGE=testlocal`
or export it
`export AGENT_IMAGE=testlocal`

Run locally
`bash systemd/agent-docker-local.sh`




`docker exec -it agent-docker.service bash`



```
strace -o straces1 -f -e statx,openat,execve,newfstatat,fcntl,ioctl,readlink,access,fstat pnpm start:debug
```

`[2025-02-17 19:49:23] INFO: Initializing SQLite database at /app/agent/data/db.sqlite...`


```
AWS_PROFILE=solfunmeme_dev python ./ssh-ssm.py
aws ssm start-session --target i-0b0e822632e0bef20 --profile solfunmeme_dev
Expand All @@ -10,6 +42,19 @@ export AGENT_NAME=tine_agent_4

```

```
"Source": "/opt/agent/characters/tine-test.character.json",
"Destination": "/app/agent/characters/tine-test.character.json",

[2025-02-17 18:44:25] INFO: Plugins are:
0: "@elizaos/plugin-twitter"

178 statx(AT_FDCWD, "/app/node_modules/twitter-api-v2/dist/cjs/ads-sandbox/client.ads-sandbox.read.js", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFREG|0644, stx_size=627, ...}) = 0

185 statx(AT_FDCWD, "/app/node_modules/@elizaos/plugin-twitter/node_modules", AT_STATX_SYNC_AS_STAT|AT_SYMLINK_NOFOLLOW, STATX_ALL, {stx_mask=STATX_ALL|STATX_MNT_ID, stx_attributes=0, stx_mode=S_IFDIR|0755, stx_size=4096, ...}) = 0

```

```
sudo su -
cd /opt/agent
Expand Down
8 changes: 2 additions & 6 deletions UpdateEliza.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,8 @@ mainSteps:
- "set -e"
- "apt update"
- "apt install -y apt-utils jq lsof strace nmap"
- "snap install aws-cli --classic"
- "# Source environment variables"
- "if [ ! -f /var/run/agent/secrets/env ]; then"
- " echo \"Environment file not found\" >&2"
- " exit 1"
- "fi"
- "snap install aws-cli --classic || echo ok "

- "source /var/run/agent/secrets/env"
- ""
- "# Create required directories"
Expand Down
14 changes: 12 additions & 2 deletions agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"main": "src/index.ts",
"type": "module",
"scripts": {
"start": "node --loader ts-node/esm src/index.ts",
"start_prof": "node --heap-prof --cpu-prof --prof --inspect-brk=0.0.0.0:9229 --require mytracing.js --loader ts-node/esm src/index.ts",
"start_debug": "node --inspect-brk=0.0.0.0:9229 --require mytracing.js --loader ts-node/esm src/index.ts",
"start": "node --loader ts-node/esm src/index.ts",
"dev": "node --loader ts-node/esm src/index.ts",
"check-types": "tsc --noEmit",
"test": "jest"
Expand All @@ -19,9 +21,17 @@
},
"dependencies": {
"@elizaos/client-direct": "workspace:*",
"@elizaos-plugins/client-twitter" : "workspace:*",
"@elizaos/core": "workspace:*",
"@elizaos/plugin-bootstrap": "workspace:*",
"@elizaos/plugin-twitter": "0.25.6-alpha.1",
"@elizaos-plugins/plugin-twitter": "workspace:*",
"agent-twitter-client": "workspace:*",
"@hapi/shot": "^6.0.1",
"@opentelemetry/api": "^1.6.0",
"@opentelemetry/auto-instrumentations-node": "^0.39.4",
"@opentelemetry/sdk-node": "^0.45.0",
"@types/hapi": "^18.0.14",
"@types/hapi__shot": "^6.0.0",
"readline": "1.3.0",
"ws": "8.18.0",
"yargs": "17.7.2"
Expand Down
Loading