Skip to content

Commit 154b43b

Browse files
author
mike dupont
committed
remove key
1 parent 318fbc3 commit 154b43b

File tree

8 files changed

+13696
-11837
lines changed

8 files changed

+13696
-11837
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11

2+
"signoz": "OTEL_EXPORTER_OTLP_HEADERS=\"signoz-ingestion-key=9085f38b-c90d-42de-9560-bb69d0ee79e1\" node -r ./tracing.js app.js"
3+
24
```
35
strace -o straces1 -f -e statx,openat,execve,newfstatat,fcntl,ioctl,readlink,access,fstat pnpm start:debug
46
```

agent/package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@
2121
"@elizaos/client-direct": "workspace:*",
2222
"@elizaos/core": "workspace:*",
2323
"@elizaos/plugin-bootstrap": "workspace:*",
24-
"@elizaos/plugin-twitter": "0.25.6-alpha.1",
24+
"@elizaos/plugin-twitter": "github:elizaos-plugins/plugin-twitter",
25+
"@hapi/shot": "^6.0.1",
26+
"@opentelemetry/api": "^1.6.0",
27+
"@opentelemetry/auto-instrumentations-node": "^0.39.4",
28+
"@opentelemetry/sdk-node": "^0.45.0",
29+
"@types/hapi": "^18.0.14",
30+
"@types/hapi__shot": "^6.0.0",
2531
"readline": "1.3.0",
2632
"ws": "8.18.0",
2733
"yargs": "17.7.2"

agent/src/index.ts

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import {} from "tracing.js";
12
import { DirectClient } from "@elizaos/client-direct";
23
import {
34
AgentRuntime,
@@ -142,9 +143,11 @@ export async function loadCharacterFromOnchain(): Promise<Character[]> {
142143
143144
// Handle plugins
144145
if (isAllStrings(character.plugins)) {
146+
console.log("character.plugins:", character.plugins);
145147
elizaLogger.info("Plugins are: ", character.plugins);
146148
const importedPlugins = await Promise.all(
147-
character.plugins.map(async (plugin) => {
149+
character.plugins.map(async (plugin) => {
150+
console.log("plugin:", plugin);
148151
const importedPlugin = await import(plugin);
149152
return importedPlugin.default;
150153
})
@@ -190,6 +193,7 @@ async function jsonToCharacter(
190193
filePath: string,
191194
character: any
192195
): Promise<Character> {
196+
console.log("jsonToCharacter:", filePath);
193197
validateCharacterConfig(character);
194198

195199
// .id isn't really valid
@@ -210,7 +214,8 @@ async function jsonToCharacter(
210214
...character.settings.secrets,
211215
};
212216
}
213-
// Handle plugins
217+
// Handle plugins
218+
console.log("plugins:", character.plugins);
214219
character.plugins = await handlePluginImporting(character.plugins);
215220
if (character.extends) {
216221
elizaLogger.info(

agent/src/tracing.ts

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
// tracing.js
2+
console.log("DEBUG SOLFUNMEME")
3+
'use strict'
4+
const process = require('process');
5+
const opentelemetry = require('@opentelemetry/sdk-node');
6+
const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node');
7+
consconst { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http');
8+
const { Resource } = require('@opentelemetry/resources');
9+
const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
10+
11+
// do not set headers in exporterOptions, the OTel spec recommends setting headers through ENV variables
12+
// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#specifying-headers-via-environment-variables
13+
14+
const exporterOptions = {
15+
url: 'https://ingest.us.signoz.cloud:443/v1/traces'
16+
}
17+
18+
const traceExporter = new OTLPTraceExporter(exporterOptions);
19+
const sdk = new opentelemetry.NodeSDK({
20+
traceExporter,
21+
instrumentations: [getNodeAutoInstrumentations()],
22+
resource: new Resource({
23+
[SemanticResourceAttributes.SERVICE_NAME]: 'eliza'
24+
})
25+
});
26+
27+
// initialize the SDK and register with the OpenTelemetry API
28+
// this enables the API to record telemetry
29+
sdk.start()
30+
31+
// gracefully shut down the SDK on process exit
32+
process.on('SIGTERM', () => {
33+
sdk.shutdown()
34+
.then(() => console.log('Tracing terminated'))
35+
.catch((error) => console.log('Error terminating tracing', error))
36+
.finally(() => process.exit(0));
37+
});

package.json

+74-65
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,78 @@
11
{
2-
"name": "eliza",
3-
"scripts": {
4-
"format": "biome format --write .",
5-
"lint": "biome lint .",
6-
"check": "biome check --apply .",
7-
"preinstall": "npx only-allow pnpm",
8-
"build": "turbo run build --filter=!eliza-docs",
9-
"build-docker": "turbo run build",
10-
"cleanstart": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && pnpm --filter \"@elizaos/agent\" start --isRoot",
11-
"cleanstart:debug": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && cross-env NODE_ENV=development VERBOSE=true DEFAULT_LOG_LEVEL=debug DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",
12-
"start": "pnpm --filter \"@elizaos/agent\" start --isRoot",
13-
"start:client": "pnpm --dir client dev",
14-
"start:debug": "cross-env NODE_ENV=development VERBOSE=true DEFAULT_LOG_LEVEL=debug DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",
15-
"dev": "bash ./scripts/dev.sh",
16-
"release": "pnpm build && pnpm format && npx lerna publish --no-private --force-publish",
17-
"clean": "bash ./scripts/clean.sh",
18-
"docker:build": "bash ./scripts/docker.sh build",
19-
"docker:run": "bash ./scripts/docker.sh run",
20-
"docker:bash": "bash ./scripts/docker.sh bash",
21-
"docker:start": "bash ./scripts/docker.sh start",
22-
"docker": "pnpm docker:build && pnpm docker:run && pnpm docker:bash",
23-
"test": "bash ./scripts/test.sh",
24-
"smokeTests": "bash ./scripts/smokeTests.sh",
25-
"integrationTests": "bash ./scripts/integrationTests.sh"
26-
},
27-
"devDependencies": {
28-
"@biomejs/biome": "^1.9.4",
29-
"@commitlint/cli": "18.6.1",
30-
"@commitlint/config-conventional": "18.6.3",
31-
"@types/jest": "^29.5.11",
32-
"cli": "workspace:*",
33-
"concurrently": "9.1.0",
34-
"cross-env": "7.0.3",
35-
"husky": "9.1.7",
36-
"jest": "^29.7.0",
37-
"lerna": "8.1.5",
38-
"only-allow": "1.2.1",
39-
"turbo": "2.3.3",
40-
"typedoc": "0.26.11",
41-
"typescript": "5.6.3",
42-
"viem": "2.21.58",
43-
"vite": "5.4.12",
44-
"vitest": "3.0.5"
45-
},
46-
"pnpm": {
47-
"overrides": {
48-
"onnxruntime-node": "1.20.1",
49-
"@solana/web3.js@1.95.5": "npm:@solana/web3.js@1.95.5",
50-
"@solana/web3.js@1.95.8": "npm:@solana/web3.js@1.95.8",
51-
"@solana/web3.js@2": "npm:@solana/web3.js@2.0.0",
52-
"viem": "2.21.58",
53-
"@polkadot/util": "12.6.2",
54-
"@polkadot/util-crypto": "12.6.2",
55-
"@polkadot/types-create": "10.13.1",
56-
"@polkadot/types-codec": "10.13.1",
57-
"@polkadot/keyring": "12.6.2",
58-
"@ai-sdk/provider": "1.0.6",
59-
"@ai-sdk/provider-utils": "2.1.6",
60-
"cookie": "0.7.0",
61-
"bs58": "5.0.0",
62-
"@coral-xyz/anchor": "0.28.0"
63-
}
64-
},
65-
"engines": {
66-
"node": "23.3.0"
2+
"name": "eliza",
3+
"config": {
4+
"NODE_ENV": "development",
5+
"VERBOSE":"true",
6+
"DEFAULT_LOG_LEVEL":"trace",
7+
"DEBUG" : "*",
8+
"NODE_OPTIONS2" : "--trace-event-categories=v8",
9+
10+
"NODE_OPTIONS": "--diagnostic-dir=\".zos\" --report-compact --report-dir=\".zos\" --report-filename=node-report --report-on-fatalerror --report-on-signal --report-signal=SIGUSR2 --report-uncaught-exception --pending-deprecation --trace-deprecation --trace-exit --trace-sigint --trace-warnings --unhandled-rejections=strict --enable-source-maps --experimental-abortcontroller --experimental-fetch --experimental-import-meta-resolve --experimental-json-modules --experimental-modules --experimental-specifier-resolution=node --experimental-top-level-await --tls-max-v1.3 --tls-min-v1.3 --use-largepages=on"
11+
},
12+
"scripts": {
13+
"format": "biome format --write .",
14+
"lint": "biome lint .",
15+
"check": "biome check --apply .",
16+
"preinstall": "npx only-allow pnpm",
17+
"build": "turbo run build --filter=!eliza-docs",
18+
"build-docker": "turbo run build",
19+
"cleanstart": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && pnpm --filter \"@elizaos/agent\" start --isRoot",
20+
"cleanstart:debug": "if [ -f agent/data/db.sqlite ]; then rm agent/data/db.sqlite; fi && cross-env NODE_ENV=development VERBOSE=true DEFAULT_LOG_LEVEL=debug DEBUG=eliza:* pnpm --filter \"@elizaos/agent\" start --isRoot",
21+
"start": "pnpm --filter \"@elizaos/agent\" start --isRoot",
22+
"start:client": "pnpm --dir client dev",
23+
"start:debug": "cross-env pnpm --filter \"@elizaos/agent\" start --isRoot",
24+
"dev": "bash ./scripts/dev.sh",
25+
"release": "pnpm build && pnpm format && npx lerna publish --no-private --force-publish",
26+
"clean": "bash ./scripts/clean.sh",
27+
"docker:build": "bash ./scripts/docker.sh build",
28+
"docker:run": "bash ./scripts/docker.sh run",
29+
"docker:bash": "bash ./scripts/docker.sh bash",
30+
"docker:start": "bash ./scripts/docker.sh start",
31+
"docker": "pnpm docker:build && pnpm docker:run && pnpm docker:bash",
32+
"test": "bash ./scripts/test.sh",
33+
"smokeTests": "bash ./scripts/smokeTests.sh",
34+
"integrationTests": "bash ./scripts/integrationTests.sh"
35+
},
36+
"devDependencies": {
37+
"@biomejs/biome": "^1.9.4",
38+
"@commitlint/cli": "18.6.1",
39+
"@commitlint/config-conventional": "18.6.3",
40+
"@types/jest": "^29.5.11",
41+
"cli": "workspace:*",
42+
"concurrently": "9.1.0",
43+
"cross-env": "7.0.3",
44+
"husky": "9.1.7",
45+
"jest": "^29.7.0",
46+
"lerna": "8.1.5",
47+
"only-allow": "1.2.1",
48+
"turbo": "2.3.3",
49+
"typedoc": "0.26.11",
50+
"typescript": "5.6.3",
51+
"viem": "2.21.58",
52+
"vite": "5.4.12",
53+
"vitest": "3.0.5"
54+
},
55+
"pnpm": {
56+
"overrides": {
57+
"onnxruntime-node": "1.20.1",
58+
"@solana/web3.js@1.95.5": "npm:@solana/web3.js@1.95.5",
59+
"@solana/web3.js@1.95.8": "npm:@solana/web3.js@1.95.8",
60+
"@solana/web3.js@2": "npm:@solana/web3.js@2.0.0",
61+
"viem": "2.21.58",
62+
"@polkadot/util": "12.6.2",
63+
"@polkadot/util-crypto": "12.6.2",
64+
"@polkadot/types-create": "10.13.1",
65+
"@polkadot/types-codec": "10.13.1",
66+
"@polkadot/keyring": "12.6.2",
67+
"@ai-sdk/provider": "1.0.6",
68+
"@ai-sdk/provider-utils": "2.1.6",
69+
"cookie": "0.7.0",
70+
"bs58": "5.0.0",
71+
"@coral-xyz/anchor": "0.28.0"
72+
}
73+
},
74+
"engines": {
75+
"node": "23.3.0"
6776
},
6877
"dependencies": {
6978
"@0glabs/0g-ts-sdk": "0.2.1",

packages/core/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,20 @@
5858
"ts-jest": "29.2.5",
5959
"ts-node": "10.9.2",
6060
"tslib": "2.8.1",
61-
"tsup": "8.3.5",
6261
"typescript": "5.6.3"
6362
},
6463
"dependencies": {
64+
"@ai-sdk/amazon-bedrock": "1.1.6",
6565
"@ai-sdk/anthropic": "1.1.6",
6666
"@ai-sdk/google": "1.1.0",
6767
"@ai-sdk/google-vertex": "2.1.11",
6868
"@ai-sdk/groq": "1.1.7",
6969
"@ai-sdk/mistral": "1.1.6",
7070
"@ai-sdk/openai": "1.1.9",
71-
"@ai-sdk/amazon-bedrock": "1.1.6",
7271
"@fal-ai/client": "1.2.0",
72+
"@hapi/shot": "^6.0.1",
7373
"@tavily/core": "^0.0.2",
74+
"@types/hapi": "^18.0.14",
7475
"@types/uuid": "10.0.0",
7576
"ai": "4.1.16",
7677
"anthropic-vertex-ai": "1.0.2",
@@ -89,6 +90,7 @@
8990
"pino-pretty": "^13.0.0",
9091
"tinyld": "1.3.4",
9192
"together-ai": "0.7.0",
93+
"tsup": "8.3.5",
9294
"unique-names-generator": "4.7.1",
9395
"uuid": "11.0.3"
9496
},

0 commit comments

Comments
 (0)