@dexterai/opendexter-plugin 1.0.0 → 1.0.1
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/index.ts +7 -8
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry";
|
|
2
1
|
import { Type } from "@sinclair/typebox";
|
|
3
2
|
import { wrapFetch, type WrapFetchOptions } from "@dexterai/x402/client";
|
|
4
3
|
|
|
@@ -151,13 +150,13 @@ function buildX402Fetch(config: PluginConfig): typeof fetch | null {
|
|
|
151
150
|
// Plugin Entry
|
|
152
151
|
// =============================================================================
|
|
153
152
|
|
|
154
|
-
export default
|
|
153
|
+
export default {
|
|
155
154
|
id: "opendexter",
|
|
156
155
|
name: "OpenDexter",
|
|
157
156
|
description:
|
|
158
157
|
"x402 marketplace access for OpenClaw agents. Search, price-check, and pay for paid APIs with USDC across Solana, Base, Polygon, Arbitrum, Optimism, and Avalanche.",
|
|
159
158
|
|
|
160
|
-
register(api) {
|
|
159
|
+
register(api: any) {
|
|
161
160
|
const raw = (api.pluginConfig || {}) as PluginConfig;
|
|
162
161
|
|
|
163
162
|
// Merge plugin config with environment variable fallbacks.
|
|
@@ -218,7 +217,7 @@ export default definePluginEntry({
|
|
|
218
217
|
),
|
|
219
218
|
}),
|
|
220
219
|
|
|
221
|
-
async execute(_id, input) {
|
|
220
|
+
async execute(_id: string, input: any) {
|
|
222
221
|
try {
|
|
223
222
|
const result = await searchMarketplace(input.query, {
|
|
224
223
|
network: input.network,
|
|
@@ -277,7 +276,7 @@ export default definePluginEntry({
|
|
|
277
276
|
),
|
|
278
277
|
}),
|
|
279
278
|
|
|
280
|
-
async execute(_id, input) {
|
|
279
|
+
async execute(_id: string, input: any) {
|
|
281
280
|
const url = input.url;
|
|
282
281
|
const method = (input.method || "GET").toUpperCase();
|
|
283
282
|
|
|
@@ -554,7 +553,7 @@ export default definePluginEntry({
|
|
|
554
553
|
description:
|
|
555
554
|
"Call any x402-protected API with automatic USDC payment. Returns the API response and payment receipt.",
|
|
556
555
|
parameters: fetchParams,
|
|
557
|
-
async execute(_id, input) {
|
|
556
|
+
async execute(_id: string, input: any) {
|
|
558
557
|
return executeFetch(input);
|
|
559
558
|
},
|
|
560
559
|
});
|
|
@@ -565,7 +564,7 @@ export default definePluginEntry({
|
|
|
565
564
|
description:
|
|
566
565
|
"Alias for x402_fetch. Call any x402 API with automatic payment.",
|
|
567
566
|
parameters: fetchParams,
|
|
568
|
-
async execute(_id, input) {
|
|
567
|
+
async execute(_id: string, input: any) {
|
|
569
568
|
return executeFetch(input);
|
|
570
569
|
},
|
|
571
570
|
});
|
|
@@ -646,4 +645,4 @@ export default definePluginEntry({
|
|
|
646
645
|
` Marketplace: ${config.marketplaceUrl || DEFAULT_MARKETPLACE_URL}`
|
|
647
646
|
);
|
|
648
647
|
},
|
|
649
|
-
}
|
|
648
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexterai/opendexter-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "OpenDexter plugin for OpenClaw — search, price-check, and pay for any x402 API with automatic USDC settlement across Solana, Base, Polygon, Arbitrum, Optimism, and Avalanche.",
|
|
6
6
|
"keywords": [
|