forked from elizaos-plugins/client-twitter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
156 lines (156 loc) · 4.24 KB
/
package.json
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
{
"name": "@elizaos-plugins/client-twitter",
"version": "0.25.6-alpha.1",
"type": "module",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"@elizaos/source": "./src/index.ts",
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"files": [
"dist"
],
"dependencies": {
"@elizaos/core": "workspace:0.25.6-alpha.1",
"@types/hapi__shot": "^6.0.0",
"agent-twitter-client": "0.0.18",
"discord.js": "14.16.3",
"glob": "11.0.0"
},
"devDependencies": {
"@vitest/coverage-v8": "1.1.3",
"tsup": "8.3.5",
"vitest": "1.6.1"
},
"scripts": {
"build": "tsup --format esm --dts",
"dev": "tsup --format esm --dts --watch",
"test": "vitest run",
"test:coverage": "vitest run --coverage"
},
"peerDependencies": {
"whatwg-url": "7.1.0"
},
"publishConfig": {
"access": "public"
},
"agentConfig": {
"pluginType": "elizaos:client:1.0.0",
"pluginParameters": {
"TWITTER_DRY_RUN": {
"type": "boolean",
"default": false,
"description": "Enable dry run mode for Twitter operations"
},
"TWITTER_USERNAME": {
"type": "string",
"minLength": 1,
"description": "X/Twitter username is required"
},
"TWITTER_PASSWORD": {
"type": "string",
"minLength": 1,
"description": "X/Twitter password is required"
},
"TWITTER_EMAIL": {
"type": "string",
"format": "email",
"description": "Valid X/Twitter email is required"
},
"MAX_TWEET_LENGTH": {
"type": "integer",
"default": 280,
"description": "Maximum length of tweets"
},
"TWITTER_SEARCH_ENABLE": {
"type": "boolean",
"default": false,
"description": "Enable Twitter search functionality"
},
"TWITTER_2FA_SECRET": {
"optional": true,
"type": "string",
"description": "Twitter 2FA secret for authentication"
},
"TWITTER_RETRY_LIMIT": {
"type": "integer",
"default": 5,
"description": "Number of retry attempts for Twitter operations"
},
"TWITTER_POLL_INTERVAL": {
"type": "integer",
"default": 120,
"description": "Interval for polling Twitter updates (in seconds)"
},
"TWITTER_TARGET_USERS": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9_]*[A-Za-z0-9]$|^[A-Za-z]$",
"minLength": 1,
"maxLength": 15
},
"default": [],
"optional": true,
"description": "List of Twitter usernames to target"
},
"ENABLE_TWITTER_POST_GENERATION": {
"type": "boolean",
"default": true,
"description": "Enable automatic Twitter post generation"
},
"POST_INTERVAL_MIN": {
"type": "integer",
"default": 90,
"description": "Minimum interval between posts (in minutes)"
},
"POST_INTERVAL_MAX": {
"type": "integer",
"default": 180,
"description": "Maximum interval between posts (in minutes)"
},
"ENABLE_ACTION_PROCESSING": {
"type": "boolean",
"default": false,
"description": "Enable processing of Twitter actions"
},
"ACTION_INTERVAL": {
"type": "integer",
"default": 5,
"description": "Interval for processing actions (in minutes)"
},
"POST_IMMEDIATELY": {
"type": "boolean",
"default": false,
"description": "Post content immediately without delay"
},
"TWITTER_SPACES_ENABLE": {
"type": "boolean",
"default": false,
"description": "Enable Twitter Spaces functionality"
},
"MAX_ACTIONS_PROCESSING": {
"type": "integer",
"default": 1,
"description": "Maximum number of actions to process at once"
},
"ACTION_TIMELINE_TYPE": {
"type": "string",
"enum": [
"foryou",
"following"
],
"default": "foryou",
"description": "Type of timeline to process actions from"
}
}
}
}