@elizaos/plugin-x 2.0.0-beta.1 → 2.0.3-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -499
- package/package.json +22 -4
- package/registry-entry.json +232 -0
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -12756
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "x",
|
|
3
|
+
"name": "X (Twitter)",
|
|
4
|
+
"description": "X (formerly Twitter) connector for posts, mentions, replies, DMs, and timeline interactions through the elizaOS plugin-x runtime.",
|
|
5
|
+
"npmName": "@elizaos/plugin-x",
|
|
6
|
+
"version": "2.0.0-beta.0",
|
|
7
|
+
"source": "bundled",
|
|
8
|
+
"tags": ["connector", "social", "social-chat", "twitter", "x", "dm"],
|
|
9
|
+
"config": {
|
|
10
|
+
"TWITTER_AUTH_MODE": {
|
|
11
|
+
"type": "select",
|
|
12
|
+
"required": false,
|
|
13
|
+
"sensitive": false,
|
|
14
|
+
"default": "broker",
|
|
15
|
+
"label": "Auth Mode",
|
|
16
|
+
"help": "How the connector authenticates with X. Use 'broker' to log in via Eliza Cloud OAuth, 'oauth' to do OAuth2 PKCE locally, or 'env' to provide developer API keys directly.",
|
|
17
|
+
"advanced": false,
|
|
18
|
+
"options": [
|
|
19
|
+
{
|
|
20
|
+
"value": "broker",
|
|
21
|
+
"label": "Eliza Cloud (recommended)"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"value": "oauth",
|
|
25
|
+
"label": "OAuth2 PKCE (self-hosted)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"value": "env",
|
|
29
|
+
"label": "Developer tokens"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"TWITTER_CLIENT_ID": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"sensitive": false,
|
|
37
|
+
"label": "OAuth Client ID",
|
|
38
|
+
"help": "X/Twitter OAuth2 client ID for TWITTER_AUTH_MODE=oauth.",
|
|
39
|
+
"advanced": false,
|
|
40
|
+
"visible": {
|
|
41
|
+
"key": "TWITTER_AUTH_MODE",
|
|
42
|
+
"equals": "oauth"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"TWITTER_REDIRECT_URI": {
|
|
46
|
+
"type": "url",
|
|
47
|
+
"required": false,
|
|
48
|
+
"sensitive": false,
|
|
49
|
+
"label": "Redirect URI",
|
|
50
|
+
"help": "OAuth2 redirect URI for TWITTER_AUTH_MODE=oauth. A loopback URL is recommended for local auth.",
|
|
51
|
+
"advanced": false,
|
|
52
|
+
"visible": {
|
|
53
|
+
"key": "TWITTER_AUTH_MODE",
|
|
54
|
+
"equals": "oauth"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"TWITTER_SCOPES": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"required": false,
|
|
60
|
+
"sensitive": false,
|
|
61
|
+
"default": "tweet.read tweet.write users.read offline.access",
|
|
62
|
+
"label": "OAuth Scopes",
|
|
63
|
+
"help": "Space-separated OAuth2 scopes requested by plugin-twitter.",
|
|
64
|
+
"advanced": true,
|
|
65
|
+
"visible": {
|
|
66
|
+
"key": "TWITTER_AUTH_MODE",
|
|
67
|
+
"equals": "oauth"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"TWITTER_API_KEY": {
|
|
71
|
+
"type": "secret",
|
|
72
|
+
"required": false,
|
|
73
|
+
"sensitive": true,
|
|
74
|
+
"label": "API Key",
|
|
75
|
+
"help": "X/Twitter API key for TWITTER_AUTH_MODE=env.",
|
|
76
|
+
"advanced": false,
|
|
77
|
+
"visible": {
|
|
78
|
+
"key": "TWITTER_AUTH_MODE",
|
|
79
|
+
"equals": "env"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"TWITTER_API_SECRET_KEY": {
|
|
83
|
+
"type": "secret",
|
|
84
|
+
"required": false,
|
|
85
|
+
"sensitive": true,
|
|
86
|
+
"label": "API Secret",
|
|
87
|
+
"help": "X/Twitter API secret key for TWITTER_AUTH_MODE=env.",
|
|
88
|
+
"advanced": false,
|
|
89
|
+
"visible": {
|
|
90
|
+
"key": "TWITTER_AUTH_MODE",
|
|
91
|
+
"equals": "env"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"TWITTER_ACCESS_TOKEN": {
|
|
95
|
+
"type": "secret",
|
|
96
|
+
"required": false,
|
|
97
|
+
"sensitive": true,
|
|
98
|
+
"label": "Access Token",
|
|
99
|
+
"help": "OAuth 1.0a access token for TWITTER_AUTH_MODE=env.",
|
|
100
|
+
"advanced": false,
|
|
101
|
+
"visible": {
|
|
102
|
+
"key": "TWITTER_AUTH_MODE",
|
|
103
|
+
"equals": "env"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"TWITTER_ACCESS_TOKEN_SECRET": {
|
|
107
|
+
"type": "secret",
|
|
108
|
+
"required": false,
|
|
109
|
+
"sensitive": true,
|
|
110
|
+
"label": "Access Token Secret",
|
|
111
|
+
"help": "OAuth 1.0a access token secret for TWITTER_AUTH_MODE=env.",
|
|
112
|
+
"advanced": false,
|
|
113
|
+
"visible": {
|
|
114
|
+
"key": "TWITTER_AUTH_MODE",
|
|
115
|
+
"equals": "env"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"TWITTER_BROKER_URL": {
|
|
119
|
+
"type": "url",
|
|
120
|
+
"required": false,
|
|
121
|
+
"sensitive": false,
|
|
122
|
+
"default": "https://www.elizacloud.ai/api/v1/twitter",
|
|
123
|
+
"label": "Broker URL",
|
|
124
|
+
"help": "Eliza Cloud X (Twitter) broker base URL. Override only to point at a self-hosted broker; otherwise leave the default.",
|
|
125
|
+
"advanced": true,
|
|
126
|
+
"visible": {
|
|
127
|
+
"key": "TWITTER_AUTH_MODE",
|
|
128
|
+
"equals": "broker"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"TWITTER_BROKER_TOKEN": {
|
|
132
|
+
"type": "secret",
|
|
133
|
+
"required": false,
|
|
134
|
+
"sensitive": true,
|
|
135
|
+
"label": "Broker Token (optional)",
|
|
136
|
+
"help": "Cloud auth token used to identify this agent to the broker. Defaults to ELIZAOS_CLOUD_API_KEY when unset, so most users can leave this blank.",
|
|
137
|
+
"advanced": true,
|
|
138
|
+
"visible": {
|
|
139
|
+
"key": "TWITTER_AUTH_MODE",
|
|
140
|
+
"equals": "broker"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"TWITTER_ENABLE_POST": {
|
|
144
|
+
"type": "boolean",
|
|
145
|
+
"required": false,
|
|
146
|
+
"sensitive": false,
|
|
147
|
+
"default": false,
|
|
148
|
+
"label": "Enable Posting",
|
|
149
|
+
"help": "Allow the connector to publish posts.",
|
|
150
|
+
"advanced": false
|
|
151
|
+
},
|
|
152
|
+
"TWITTER_ENABLE_REPLIES": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"required": false,
|
|
155
|
+
"sensitive": false,
|
|
156
|
+
"default": true,
|
|
157
|
+
"label": "Enable Replies",
|
|
158
|
+
"help": "Allow the connector to reply to mentions and conversations.",
|
|
159
|
+
"advanced": false
|
|
160
|
+
},
|
|
161
|
+
"TWITTER_ENABLE_ACTIONS": {
|
|
162
|
+
"type": "boolean",
|
|
163
|
+
"required": false,
|
|
164
|
+
"sensitive": false,
|
|
165
|
+
"default": false,
|
|
166
|
+
"label": "Enable Likes/Reposts",
|
|
167
|
+
"help": "Allow engagement actions such as likes, reposts, and quote posts.",
|
|
168
|
+
"advanced": false
|
|
169
|
+
},
|
|
170
|
+
"TWITTER_TARGET_USERS": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"required": false,
|
|
173
|
+
"sensitive": false,
|
|
174
|
+
"label": "Target Users",
|
|
175
|
+
"help": "Comma-separated usernames to interact with. Leave empty to use the plugin defaults.",
|
|
176
|
+
"advanced": true
|
|
177
|
+
},
|
|
178
|
+
"TWITTER_DRY_RUN": {
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"required": false,
|
|
181
|
+
"sensitive": false,
|
|
182
|
+
"default": false,
|
|
183
|
+
"label": "Dry Run",
|
|
184
|
+
"help": "Log intended X/Twitter actions without publishing them.",
|
|
185
|
+
"advanced": true
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"render": {
|
|
189
|
+
"visible": true,
|
|
190
|
+
"pinTo": [],
|
|
191
|
+
"style": "setup-panel",
|
|
192
|
+
"icon": "Twitter",
|
|
193
|
+
"group": "connector",
|
|
194
|
+
"groupOrder": 1,
|
|
195
|
+
"actions": ["enable", "configure", "setup-guide"]
|
|
196
|
+
},
|
|
197
|
+
"resources": {
|
|
198
|
+
"homepage": "https://github.com/elizaos-plugins/plugin-x#readme",
|
|
199
|
+
"repository": "https://github.com/elizaos-plugins/plugin-x",
|
|
200
|
+
"setupGuideUrl": "https://github.com/elizaos-plugins/plugin-x#readme"
|
|
201
|
+
},
|
|
202
|
+
"dependsOn": [],
|
|
203
|
+
"kind": "connector",
|
|
204
|
+
"subtype": "social",
|
|
205
|
+
"auth": {
|
|
206
|
+
"kind": "oauth",
|
|
207
|
+
"credentialKeys": [
|
|
208
|
+
"TWITTER_AUTH_MODE",
|
|
209
|
+
"TWITTER_CLIENT_ID",
|
|
210
|
+
"TWITTER_REDIRECT_URI",
|
|
211
|
+
"TWITTER_API_KEY",
|
|
212
|
+
"TWITTER_ACCESS_TOKEN",
|
|
213
|
+
"TWITTER_BROKER_URL",
|
|
214
|
+
"TWITTER_BROKER_TOKEN"
|
|
215
|
+
]
|
|
216
|
+
},
|
|
217
|
+
"accounts": {
|
|
218
|
+
"owner": {
|
|
219
|
+
"supported": true,
|
|
220
|
+
"authKind": "oauth-cloud",
|
|
221
|
+
"credentialKeys": ["TWITTER_BROKER_URL", "TWITTER_BROKER_TOKEN"],
|
|
222
|
+
"notes": "The user's own X account, connected via Eliza Cloud OAuth so the agent can post / reply / DM on the user's behalf."
|
|
223
|
+
},
|
|
224
|
+
"agent": {
|
|
225
|
+
"supported": true,
|
|
226
|
+
"authKind": "oauth-cloud",
|
|
227
|
+
"credentialKeys": ["TWITTER_BROKER_URL", "TWITTER_BROKER_TOKEN"],
|
|
228
|
+
"notes": "A separate X account that represents the agent's own identity. Same OAuth flow, different X account at the OAuth screen."
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
"channels": ["x", "twitter"]
|
|
232
|
+
}
|