@elizaos/plugin-twitter 1.2.21 → 1.2.23-alpha.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/plugin-twitter",
3
- "version": "1.2.21",
3
+ "version": "1.2.23-alpha.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -18,12 +18,13 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@elizaos/core": "^1.2.5",
21
+ "@elizaos/core": "^1.6.3",
22
22
  "headers-polyfill": "^4.0.3",
23
23
  "json-stable-stringify": "^1.3.0",
24
24
  "twitter-api-v2": "^1.23.2"
25
25
  },
26
26
  "devDependencies": {
27
+ "@types/node": "^22.10.2",
27
28
  "@vitest/coverage-v8": "3.2.4",
28
29
  "prettier": "3.6.1",
29
30
  "tsup": "8.5.0",
@@ -51,30 +52,62 @@
51
52
  "agentConfig": {
52
53
  "pluginType": "elizaos:plugin:1.0.0",
53
54
  "pluginParameters": {
55
+ "TWITTER_AUTH_MODE": {
56
+ "type": "string",
57
+ "description": "Auth mode: 'env' (legacy keys/tokens), 'oauth' (3-legged OAuth2 PKCE), or 'broker' (stub).",
58
+ "required": false,
59
+ "default": "env",
60
+ "sensitive": false
61
+ },
54
62
  "TWITTER_API_KEY": {
55
63
  "type": "string",
56
- "description": "Twitter API v2 key for authentication.",
57
- "required": true,
64
+ "description": "Twitter API key (required for TWITTER_AUTH_MODE=env).",
65
+ "required": false,
58
66
  "sensitive": true
59
67
  },
60
68
  "TWITTER_API_SECRET_KEY": {
61
69
  "type": "string",
62
- "description": "Twitter API v2 secret key paired with the API key for authentication.",
63
- "required": true,
70
+ "description": "Twitter API secret key (required for TWITTER_AUTH_MODE=env).",
71
+ "required": false,
64
72
  "sensitive": true
65
73
  },
66
74
  "TWITTER_ACCESS_TOKEN": {
67
75
  "type": "string",
68
- "description": "OAuth access token for Twitter API v2 requests.",
69
- "required": true,
76
+ "description": "OAuth1.0a access token (required for TWITTER_AUTH_MODE=env).",
77
+ "required": false,
70
78
  "sensitive": true
71
79
  },
72
80
  "TWITTER_ACCESS_TOKEN_SECRET": {
73
81
  "type": "string",
74
- "description": "OAuth access token secret used with the access token for authentication.",
75
- "required": true,
82
+ "description": "OAuth1.0a access token secret (required for TWITTER_AUTH_MODE=env).",
83
+ "required": false,
76
84
  "sensitive": true
77
85
  },
86
+ "TWITTER_CLIENT_ID": {
87
+ "type": "string",
88
+ "description": "Twitter OAuth2 client ID (required for TWITTER_AUTH_MODE=oauth).",
89
+ "required": false,
90
+ "sensitive": false
91
+ },
92
+ "TWITTER_REDIRECT_URI": {
93
+ "type": "string",
94
+ "description": "OAuth2 redirect URI (loopback recommended) (required for TWITTER_AUTH_MODE=oauth).",
95
+ "required": false,
96
+ "sensitive": false
97
+ },
98
+ "TWITTER_SCOPES": {
99
+ "type": "string",
100
+ "description": "OAuth2 scopes (space-separated).",
101
+ "required": false,
102
+ "default": "tweet.read tweet.write users.read offline.access",
103
+ "sensitive": false
104
+ },
105
+ "TWITTER_BROKER_URL": {
106
+ "type": "string",
107
+ "description": "Broker URL (required for TWITTER_AUTH_MODE=broker; stub only).",
108
+ "required": false,
109
+ "sensitive": false
110
+ },
78
111
  "TWITTER_TARGET_USERS": {
79
112
  "type": "string",
80
113
  "description": "Comma-separated list of Twitter usernames the bot should interact with. Use '*' for all users.",