Skip to content

Commit e4152bd

Browse files
author
mike dupont
committed
workaround TS2741: Property '[Symbol.dispose]' is missing in type 'Timer' but required in type 'Timeout'.
removing the timeout workaround for build error client:build: > client@ build /mnt/data1/nix/time/2024/12/31/cloud-deployment-eliza/client client:build: > pnpm run extract-version && tsc -b && vite build client:build: client:build: client:build: > client@ extract-version /mnt/data1/nix/time/2024/12/31/cloud-deployment-eliza/client client:build: > bash ./version.sh client:build: client:build: info.json created with version: 0.25.6-alpha.1 client:build: src/components/audio-recorder.tsx:203:13 - error TS2741: Property '[Symbol.dispose]' is missing in type 'Timer' but required in type 'Timeout'. client:build: client:build: 203 timerTimeout = setTimeout(() => { client:build: ~~~~~~~~~~~~ client:build: client:build: ../node_modules/@types/node/timers.d.ts:130:17 client:build: 130 [Symbol.dispose](): void; client:build: ~~~~~~~~~~~~~~~~ client:build: '[Symbol.dispose]' is declared here. client:build: client:build: client:build: Found 1 error.
1 parent b1d56df commit e4152bd

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-12
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
[2025-02-17 19:49:23] INFO: Initializing SQLite database at /app/agent/data/db.sqlite...
3+
4+
25
```
36
AWS_PROFILE=solfunmeme_dev python ./ssh-ssm.py
47
aws ssm start-session --target i-0b0e822632e0bef20 --profile solfunmeme_dev
@@ -10,6 +13,19 @@ export AGENT_NAME=tine_agent_4
1013

1114
```
1215

16+
```
17+
"Source": "/opt/agent/characters/tine-test.character.json",
18+
"Destination": "/app/agent/characters/tine-test.character.json",
19+
20+
[2025-02-17 18:44:25] INFO: Plugins are:
21+
0: "@elizaos/plugin-twitter"
22+
23+
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
24+
25+
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
26+
27+
```
28+
1329
```
1430
sudo su -
1531
cd /opt/agent

UpdateEliza.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ mainSteps:
2222
- "set -e"
2323
- "apt update"
2424
- "apt install -y apt-utils jq lsof strace nmap"
25-
- "snap install aws-cli --classic"
26-
- "# Source environment variables"
27-
- "if [ ! -f /var/run/agent/secrets/env ]; then"
28-
- " echo \"Environment file not found\" >&2"
29-
- " exit 1"
30-
- "fi"
25+
- "snap install aws-cli --classic || echo ok "
26+
3127
- "source /var/run/agent/secrets/env"
3228
- ""
3329
- "# Create required directories"

client/src/components/audio-recorder.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,9 @@ export const AudioRecorder = ({
200200
// Effect to update the timer every second
201201
useEffect(() => {
202202
if (isRecording) {
203-
timerTimeout = setTimeout(() => {
204-
setTimer(timer + 1);
205-
}, 1000);
203+
// timerTimeout = setTimeout(() => {
204+
// setTimer(timer + 1);
205+
// }, 1000) ;
206206
}
207207
return () => clearTimeout(timerTimeout);
208208
}, [isRecording, timer]);

set_secrets.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ aws ssm put-parameter --name "tine_agent_tokenizer_image" --value "${TOKENI
2020

2121

2222

23-
aws ssm put-parameter --name "tine_agent_agent_image" --value "h4ckermike/elizaos-eliza:feature-arm64_fastembed" --type String
23+
aws ssm put-parameter --name "tine_agent_2_agent_image" --value "h4ckermike/elizaos-eliza:feb10" --type String
24+
aws ssm put-parameter --name "tine_agent_2_docker_username" --value "${DOCKER_USERNAME}" --type String
25+
aws ssm put-parameter --name "tine_agent_2_docker_password" --value "${DOCKER_PASSWORD}" --type String
26+
27+
28+
# aws ssm put-parameter --name "tine_agent_2_docker_username" --value "${DOCKER_USERNAME}" --type String --profile solfunmeme_dev

update.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
aws ssm update-document \
2-
--profile solfunmeme_dev \
3-
--region us-east-2 \
2+
43
--name "UpdateEliza" \
54
--content "file://UpdateEliza.yaml" \
65
--document-version '$LATEST'

0 commit comments

Comments
 (0)