@blockrun/clawrouter 0.12.28 → 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.
- package/README.md +11 -11
- package/dist/cli.js +14 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/openclaw.plugin.json +1 -0
- package/package.json +1 -1
- package/skills/imagegen/SKILL.md +1 -1
- package/skills/release/SKILL.md +11 -8
- package/skills/x-api/SKILL.md +86 -0
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/skills/imagegen/SKILL.md
CHANGED
|
@@ -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 `
|
|
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
|
package/skills/release/SKILL.md
CHANGED
|
@@ -37,6 +37,7 @@ Open `CHANGELOG.md`. Add a new section at the top (after the header) in this for
|
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
Rules:
|
|
40
|
+
|
|
40
41
|
- Date format: `Mar 8, 2026`
|
|
41
42
|
- One bullet per logical change
|
|
42
43
|
- Every bullet must be present — no "see git log"
|
|
@@ -51,11 +52,13 @@ Rules:
|
|
|
51
52
|
File: `/Users/vickyfu/Documents/blockrun-web/blockrun/src/app/api/v1/chat/completions/route.ts`
|
|
52
53
|
|
|
53
54
|
Find this line:
|
|
55
|
+
|
|
54
56
|
```typescript
|
|
55
57
|
const CURRENT_CLAWROUTER_VERSION = "x.y.z";
|
|
56
58
|
```
|
|
57
59
|
|
|
58
60
|
Update it to match the new version. Verify with:
|
|
61
|
+
|
|
59
62
|
```bash
|
|
60
63
|
grep CURRENT_CLAWROUTER_VERSION /Users/vickyfu/Documents/blockrun-web/blockrun/src/app/api/v1/chat/completions/route.ts
|
|
61
64
|
```
|
|
@@ -172,11 +175,11 @@ All 6 must match the new version. If any mismatch, fix before declaring the rele
|
|
|
172
175
|
|
|
173
176
|
## Common Mistakes (Never Repeat These)
|
|
174
177
|
|
|
175
|
-
| Mistake
|
|
176
|
-
|
|
177
|
-
| Forgot to update `CURRENT_CLAWROUTER_VERSION` in blockrun | Step 4 — always check
|
|
178
|
-
| CHANGELOG entry missing or incomplete
|
|
179
|
-
| npm publish before tests pass
|
|
180
|
-
| GitHub release notes empty
|
|
181
|
-
| Git tag not pushed
|
|
182
|
-
| docs not reflecting new features
|
|
178
|
+
| Mistake | Prevention |
|
|
179
|
+
| --------------------------------------------------------- | ------------------------------------- |
|
|
180
|
+
| Forgot to update `CURRENT_CLAWROUTER_VERSION` in blockrun | Step 4 — always check |
|
|
181
|
+
| CHANGELOG entry missing or incomplete | Step 3 — write it before building |
|
|
182
|
+
| npm publish before tests pass | Steps 5-6 must precede Step 11 |
|
|
183
|
+
| GitHub release notes empty | Step 10 — extract from CHANGELOG |
|
|
184
|
+
| Git tag not pushed | Step 9 — push tag separately |
|
|
185
|
+
| docs not reflecting new features | Update docs in same PR as the feature |
|
|
@@ -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)
|