-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
251 lines (251 loc) · 7.83 KB
/
package.json
File metadata and controls
251 lines (251 loc) · 7.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
"name": "@gnomonprime/plugin-twitter-dot16",
"version": "1.0.1",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"files": [
"dist"
],
"dependencies": {
"@elizaos/core": "^1.2.5",
"headers-polyfill": "^4.0.3",
"json-stable-stringify": "^1.3.0",
"playwright": "^1.54.1",
"playwright-extra": "^4.3.6",
"puppeteer-extra-plugin-stealth": "^2.11.2",
"twitter-api-v2": "^1.23.2"
},
"devDependencies": {
"@playwright/test": "^1.54.1",
"@vitest/coverage-v8": "3.2.4",
"prettier": "3.6.1",
"tsup": "8.5.0",
"typescript": "^5.8.3",
"vitest": "3.2.4"
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"test": "tsup && elizaos test",
"test:coverage": "vitest run --coverage",
"lint": "prettier --write ./src",
"clean": "rm -rf dist .turbo node_modules .turbo-tsconfig.json tsconfig.tsbuildinfo",
"format": "prettier --write ./src",
"format:check": "prettier --check ./src"
},
"publishConfig": {
"access": "restricted"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gnomonprime/plugin-twitter-dot16.git"
},
"agentConfig": {
"pluginType": "elizaos:plugin:1.0.0",
"pluginParameters": {
"TWITTER_API_KEY": {
"type": "string",
"description": "Twitter API v2 key for authentication.",
"required": true,
"sensitive": true
},
"TWITTER_API_SECRET_KEY": {
"type": "string",
"description": "Twitter API v2 secret key paired with the API key for authentication.",
"required": true,
"sensitive": true
},
"TWITTER_ACCESS_TOKEN": {
"type": "string",
"description": "OAuth access token for Twitter API v2 requests.",
"required": true,
"sensitive": true
},
"TWITTER_ACCESS_TOKEN_SECRET": {
"type": "string",
"description": "OAuth access token secret used with the access token for authentication.",
"required": true,
"sensitive": true
},
"TWITTER_TARGET_USERS": {
"type": "string",
"description": "Comma-separated list of Twitter usernames the bot should interact with. Use '*' for all users.",
"required": false,
"default": "",
"sensitive": false
},
"TWITTER_RETRY_LIMIT": {
"type": "number",
"description": "Maximum number of retry attempts when a Twitter operation fails.",
"required": false,
"default": 5,
"sensitive": false
},
"TWITTER_POLL_INTERVAL": {
"type": "number",
"description": "Timeline polling interval in seconds.",
"required": false,
"default": 120,
"sensitive": false
},
"TWITTER_SEARCH_ENABLE": {
"type": "boolean",
"description": "Enable timeline monitoring and interaction processing.",
"required": false,
"default": true,
"sensitive": false
},
"TWITTER_DRY_RUN": {
"type": "boolean",
"description": "When true, all Twitter actions are simulated and nothing is actually posted.",
"required": false,
"default": false,
"sensitive": false
},
"TWITTER_POST_ENABLE": {
"type": "boolean",
"description": "Enable autonomous tweet posting.",
"required": false,
"default": false,
"sensitive": false
},
"TWITTER_POST_INTERVAL_MIN": {
"type": "number",
"description": "Minimum interval in minutes between automatically generated posts.",
"required": false,
"default": 90,
"sensitive": false
},
"TWITTER_POST_INTERVAL_MAX": {
"type": "number",
"description": "Maximum interval in minutes between automatically generated posts.",
"required": false,
"default": 180,
"sensitive": false
},
"TWITTER_POST_IMMEDIATELY": {
"type": "boolean",
"description": "Skip intervals and post immediately after generation.",
"required": false,
"default": false,
"sensitive": false
},
"TWITTER_POST_INTERVAL_VARIANCE": {
"type": "number",
"description": "Random variance factor (0.0-1.0) applied to posting intervals for natural behavior.",
"required": false,
"default": 0.2,
"sensitive": false
},
"TWITTER_INTERACTION_INTERVAL_MIN": {
"type": "number",
"description": "Minimum interval in minutes between interactions.",
"required": false,
"default": 15,
"sensitive": false
},
"TWITTER_INTERACTION_INTERVAL_MAX": {
"type": "number",
"description": "Maximum interval in minutes between interactions.",
"required": false,
"default": 30,
"sensitive": false
},
"TWITTER_INTERACTION_INTERVAL_VARIANCE": {
"type": "number",
"description": "Random variance factor (0.0-1.0) applied to interaction intervals for natural behavior.",
"required": false,
"default": 0.3,
"sensitive": false
},
"TWITTER_TIMELINE_ALGORITHM": {
"type": "string",
"description": "Timeline processing algorithm: 'weighted' (default) or 'latest'.",
"required": false,
"default": "weighted",
"sensitive": false
},
"TWITTER_TIMELINE_USER_BASED_WEIGHT": {
"type": "number",
"description": "Weight for user-based scoring in weighted timeline algorithm.",
"required": false,
"default": 3,
"sensitive": false
},
"TWITTER_TIMELINE_TIME_BASED_WEIGHT": {
"type": "number",
"description": "Weight for time-based scoring in weighted timeline algorithm.",
"required": false,
"default": 2,
"sensitive": false
},
"TWITTER_TIMELINE_RELEVANCE_WEIGHT": {
"type": "number",
"description": "Weight for relevance-based scoring in weighted timeline algorithm.",
"required": false,
"default": 5,
"sensitive": false
},
"TWITTER_MAX_TWEET_LENGTH": {
"type": "number",
"description": "Maximum tweet length (supports long-form tweets up to 4000 characters).",
"required": false,
"default": 4000,
"sensitive": false
},
"TWITTER_MAX_INTERACTIONS_PER_RUN": {
"type": "number",
"description": "Maximum number of interactions processed per cycle.",
"required": false,
"default": 10,
"sensitive": false
},
"TWITTER_DM_ONLY": {
"type": "boolean",
"description": "Only process direct messages, ignore public interactions.",
"required": false,
"default": false,
"sensitive": false
},
"TWITTER_ENABLE_ACTION_PROCESSING": {
"type": "boolean",
"description": "Enable timeline action processing and automated responses.",
"required": false,
"default": false,
"sensitive": false
},
"TWITTER_ACTION_INTERVAL": {
"type": "number",
"description": "Interval in minutes between timeline action processing cycles.",
"required": false,
"default": 240,
"sensitive": false
},
"TWITTER_AUTO_RESPOND_MENTIONS": {
"type": "boolean",
"description": "Automatically respond to mentions.",
"required": false,
"default": true,
"sensitive": false
},
"TWITTER_AUTO_RESPOND_REPLIES": {
"type": "boolean",
"description": "Automatically respond to replies.",
"required": false,
"default": true,
"sensitive": false
}
}
}
}