@blockrun/clawrouter 0.12.29 → 0.12.30

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.
@@ -2,6 +2,7 @@
2
2
  "id": "clawrouter",
3
3
  "name": "ClawRouter",
4
4
  "description": "Smart LLM router — 41+ models, x402 micropayments, 92% cost savings",
5
+ "skills": ["./skills"],
5
6
  "configSchema": {
6
7
  "type": "object",
7
8
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockrun/clawrouter",
3
- "version": "0.12.29",
3
+ "version": "0.12.30",
4
4
  "description": "Smart LLM router — save 92% on inference costs. 41+ models, one wallet, x402 micropayments.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -55,7 +55,7 @@ If the user mentions "high res" or "large", use `banana-pro`. If they want "phot
55
55
  Default is `1024x1024`. Adjust based on user request:
56
56
 
57
57
  - Portrait: `1024x1792`
58
- - Landscape: `1792x1024` (dall-e-3) or `1024x1024` (others)
58
+ - Landscape: `1792x1024` (dall-e-3) or `1216x832` (nano-banana / flux)
59
59
  - High-res: up to `4096x4096` with `banana-pro` only
60
60
 
61
61
  ## Example Interactions
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: x-api
3
+ description: Look up X/Twitter user profiles via BlockRun's API. Trigger when the user asks to look up, find, or get info about X/Twitter users or handles.
4
+ metadata: { "openclaw": { "emoji": "𝕏", "requires": { "config": ["models.providers.blockrun"] } } }
5
+ ---
6
+
7
+ # X/Twitter User Lookup
8
+
9
+ Look up X/Twitter user profiles — follower counts, bio, verified status — in one call. Payment is automatic via x402.
10
+
11
+ ## How to Look Up Users
12
+
13
+ POST to `http://localhost:8402/v1/x/users/lookup`:
14
+
15
+ ```json
16
+ {
17
+ "usernames": ["elonmusk", "sama", "vitalikbuterin"]
18
+ }
19
+ ```
20
+
21
+ Also accepts a comma-separated string:
22
+
23
+ ```json
24
+ {
25
+ "usernames": "elonmusk, sama, vitalikbuterin"
26
+ }
27
+ ```
28
+
29
+ - `@` prefix is stripped automatically
30
+ - Duplicates removed, normalized to lowercase
31
+ - Max **100 users** per request
32
+
33
+ ## Response
34
+
35
+ ```json
36
+ {
37
+ "users": [
38
+ {
39
+ "id": "44196397",
40
+ "userName": "elonmusk",
41
+ "name": "Elon Musk",
42
+ "profilePicture": "https://pbs.twimg.com/...",
43
+ "description": "Bio text here",
44
+ "followers": 219000000,
45
+ "following": 1234,
46
+ "isBlueVerified": true,
47
+ "verifiedType": "blue",
48
+ "location": "Texas, USA",
49
+ "joined": "2009-06-02T20:12:29.000Z"
50
+ }
51
+ ],
52
+ "not_found": ["unknownuser123"],
53
+ "total_requested": 3,
54
+ "total_found": 2
55
+ }
56
+ ```
57
+
58
+ ## Pricing
59
+
60
+ | Batch size | Cost |
61
+ |---|---|
62
+ | 1–10 users | $0.01 (minimum) |
63
+ | 11–100 users | $0.001 per user |
64
+ | 100+ users | $0.10 (capped at first 100) |
65
+
66
+ ## Example Interactions
67
+
68
+ **User:** What are the follower counts for elonmusk and naval?
69
+
70
+ → POST with `["elonmusk", "naval"]`, show follower counts from response.
71
+
72
+ **User:** Look up these crypto influencers: vitalikbuterin, sassal0x, jessepollak
73
+
74
+ → POST with the array, display a table with name, followers, verified status, bio.
75
+
76
+ **User:** Find info about @pmarca
77
+
78
+ → POST with `["pmarca"]` (strip @ automatically), display profile.
79
+
80
+ ## Notes
81
+
82
+ - Payment is automatic via x402 — deducted from the user's BlockRun wallet
83
+ - If the call fails with a payment error, tell the user to fund their wallet at [blockrun.ai](https://blockrun.ai)
84
+ - Rate limit: **20 requests per hour**
85
+ - Users in `not_found` were not charged — only found users count toward the bill
86
+ - Data is real-time from X/Twitter via [AttentionVC](https://api.attentionvc.ai/docs)