@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/README.md
CHANGED
|
@@ -330,17 +330,17 @@ npm test
|
|
|
330
330
|
|
|
331
331
|
## 📚 More Resources
|
|
332
332
|
|
|
333
|
-
| Resource
|
|
334
|
-
|
|
|
335
|
-
| [Documentation](https://blockrun.ai/docs)
|
|
336
|
-
| [Model Pricing](https://blockrun.ai/models)
|
|
337
|
-
| [Image Generation](docs/image-generation.md)
|
|
338
|
-
| [Routing Profiles](docs/routing-profiles.md)
|
|
339
|
-
| [Architecture](docs/architecture.md)
|
|
340
|
-
| [Configuration](docs/configuration.md)
|
|
341
|
-
| [vs OpenRouter](docs/vs-openrouter.md)
|
|
342
|
-
| [Features](docs/features.md)
|
|
343
|
-
| [Troubleshooting](docs/troubleshooting.md)
|
|
333
|
+
| Resource | Description |
|
|
334
|
+
| -------------------------------------------- | ------------------------ |
|
|
335
|
+
| [Documentation](https://blockrun.ai/docs) | Full docs |
|
|
336
|
+
| [Model Pricing](https://blockrun.ai/models) | All models & prices |
|
|
337
|
+
| [Image Generation](docs/image-generation.md) | API examples, 5 models |
|
|
338
|
+
| [Routing Profiles](docs/routing-profiles.md) | ECO/AUTO/PREMIUM details |
|
|
339
|
+
| [Architecture](docs/architecture.md) | Technical deep dive |
|
|
340
|
+
| [Configuration](docs/configuration.md) | Environment variables |
|
|
341
|
+
| [vs OpenRouter](docs/vs-openrouter.md) | Why ClawRouter wins |
|
|
342
|
+
| [Features](docs/features.md) | All features |
|
|
343
|
+
| [Troubleshooting](docs/troubleshooting.md) | Common issues |
|
|
344
344
|
|
|
345
345
|
---
|
|
346
346
|
|
package/dist/cli.js
CHANGED
|
@@ -5132,7 +5132,9 @@ function transformPaymentError(errorBody) {
|
|
|
5132
5132
|
}
|
|
5133
5133
|
});
|
|
5134
5134
|
}
|
|
5135
|
-
console.error(
|
|
5135
|
+
console.error(
|
|
5136
|
+
`[ClawRouter] Solana payment verification failed: ${parsed.debug} payer=${wallet}`
|
|
5137
|
+
);
|
|
5136
5138
|
return JSON.stringify({
|
|
5137
5139
|
error: {
|
|
5138
5140
|
message: `Solana payment verification failed: ${parsed.debug}`,
|
|
@@ -5836,9 +5838,18 @@ async function startProxy(options) {
|
|
|
5836
5838
|
const s = await fsStat(filePath);
|
|
5837
5839
|
if (!s.isFile()) throw new Error("not a file");
|
|
5838
5840
|
const ext = filename.split(".").pop()?.toLowerCase() ?? "png";
|
|
5839
|
-
const mime = {
|
|
5841
|
+
const mime = {
|
|
5842
|
+
png: "image/png",
|
|
5843
|
+
jpg: "image/jpeg",
|
|
5844
|
+
jpeg: "image/jpeg",
|
|
5845
|
+
webp: "image/webp",
|
|
5846
|
+
gif: "image/gif"
|
|
5847
|
+
};
|
|
5840
5848
|
const data = await readFile(filePath);
|
|
5841
|
-
res.writeHead(200, {
|
|
5849
|
+
res.writeHead(200, {
|
|
5850
|
+
"Content-Type": mime[ext] ?? "application/octet-stream",
|
|
5851
|
+
"Content-Length": data.length
|
|
5852
|
+
});
|
|
5842
5853
|
res.end(data);
|
|
5843
5854
|
} catch {
|
|
5844
5855
|
res.writeHead(404, { "Content-Type": "application/json" });
|