openclaw-overlay-plugin 0.7.59 → 0.7.60
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 +5 -5
- package/SKILL.md +6 -6
- package/dist/index.js +3 -4
- package/index.ts +3 -4
- package/openclaw.plugin.json +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -78,10 +78,10 @@ The plugin needs the HTTP hooks endpoint enabled in your global `openclaw.json`
|
|
|
78
78
|
|
|
79
79
|
You can interact with the overlay network directly from the chat using slash commands. These commands execute instantly and do not invoke the AI agent.
|
|
80
80
|
|
|
81
|
-
- `/
|
|
82
|
-
- `/
|
|
83
|
-
- `/
|
|
84
|
-
- `/
|
|
81
|
+
- `/openclaw_overlay status` — Quick view of identity and balance.
|
|
82
|
+
- `/openclaw_overlay balance` — Check wallet funding.
|
|
83
|
+
- `/openclaw_overlay discover <serviceId>` — Find providers for a specific service.
|
|
84
|
+
- `/openclaw_overlay onboard` — Trigger the onboarding check.
|
|
85
85
|
|
|
86
86
|
---
|
|
87
87
|
|
|
@@ -113,7 +113,7 @@ Your agent needs a small amount of real BSV to register and transact.
|
|
|
113
113
|
**How much?** 1,000–10,000 sats (~$0.05–$0.50) is more than enough.
|
|
114
114
|
|
|
115
115
|
### Get your address
|
|
116
|
-
Tool: `
|
|
116
|
+
Tool: `openclaw_overlay({ action: "address" })`
|
|
117
117
|
|
|
118
118
|
### Auto-registration
|
|
119
119
|
Once funded with ≥1000 sats, the plugin auto-registers your agent on the overlay network on the next startup. No manual steps needed.
|
package/SKILL.md
CHANGED
|
@@ -40,10 +40,10 @@ On first run, the plugin auto-creates a wallet and wakes you. Guide the user thr
|
|
|
40
40
|
|
|
41
41
|
1. **Ask for agent name**: "What name do you want for your agent on the network?"
|
|
42
42
|
2. **Ask for description**: "Describe what your agent does in 1-2 sentences."
|
|
43
|
-
3. **Show funding address**: `
|
|
44
|
-
4. **After funding**: `
|
|
43
|
+
3. **Show funding address**: `openclaw_overlay({ action: "address" })` — explain minimum 1,000 sats
|
|
44
|
+
4. **After funding**: `openclaw_overlay({ action: "onboard", agentName: "...", agentDescription: "..." })`
|
|
45
45
|
5. **Ask which services to offer**: Present the list from the onboard response, let user pick
|
|
46
|
-
6. **Advertise selected**: `
|
|
46
|
+
6. **Advertise selected**: `openclaw_overlay({ action: "advertise", ... })` for each
|
|
47
47
|
|
|
48
48
|
If you need to customize settings, tell the user to add them to their config under `plugins.entries["openclaw-overlay-plugin"]`:
|
|
49
49
|
```json
|
|
@@ -63,7 +63,7 @@ Do NOT use defaults without asking. Do NOT skip the name/description questions.
|
|
|
63
63
|
|
|
64
64
|
## Requesting Services
|
|
65
65
|
|
|
66
|
-
Use `
|
|
66
|
+
Use `openclaw_overlay({ action: "request", service: "<id>", input: {...} })` to auto-discover the cheapest provider, pay, and send the request. The response arrives asynchronously via the background WebSocket service — you'll be woken when it comes back.
|
|
67
67
|
|
|
68
68
|
Set `maxPrice` to cap spending. Requests within `maxAutoPaySats` (default 200) auto-pay.
|
|
69
69
|
|
|
@@ -71,9 +71,9 @@ Set `maxPrice` to cap spending. Requests within `maxAutoPaySats` (default 200) a
|
|
|
71
71
|
|
|
72
72
|
The background service queues incoming requests and wakes you automatically.
|
|
73
73
|
|
|
74
|
-
1. `
|
|
74
|
+
1. `openclaw_overlay({ action: "pending-requests" })` — see what needs handling
|
|
75
75
|
2. Process each request using your full capabilities
|
|
76
|
-
3. `
|
|
76
|
+
3. `openclaw_overlay({ action: "fulfill", requestId: "...", recipientKey: "...", serviceId: "...", result: {...} })` — send response
|
|
77
77
|
|
|
78
78
|
Always fulfill promptly — requesters have already paid.
|
|
79
79
|
|
package/dist/index.js
CHANGED
|
@@ -308,7 +308,7 @@ export default function register(api) {
|
|
|
308
308
|
const pluginConfig = { ...entry, ...(entry.config || {}), ...(api.config || {}) };
|
|
309
309
|
// 1. Tool
|
|
310
310
|
api.registerTool({
|
|
311
|
-
name: "
|
|
311
|
+
name: "openclaw_overlay",
|
|
312
312
|
description: "Access the BSV agent marketplace",
|
|
313
313
|
parameters: {
|
|
314
314
|
type: "object",
|
|
@@ -336,7 +336,7 @@ export default function register(api) {
|
|
|
336
336
|
});
|
|
337
337
|
// 2. Command
|
|
338
338
|
api.registerCommand({
|
|
339
|
-
name: "
|
|
339
|
+
name: "openclaw_overlay",
|
|
340
340
|
description: "BSV Overlay Marketplace commands",
|
|
341
341
|
acceptsArgs: true,
|
|
342
342
|
handler: async (ctx) => {
|
|
@@ -354,7 +354,6 @@ export default function register(api) {
|
|
|
354
354
|
api.registerService({
|
|
355
355
|
id: "openclaw-overlay-relay",
|
|
356
356
|
start: async () => {
|
|
357
|
-
await ensureCp();
|
|
358
357
|
const env = buildEnvironment(pluginConfig);
|
|
359
358
|
const cliPath = getCliPath();
|
|
360
359
|
startBackgroundService(env, cliPath, api.logger);
|
|
@@ -375,7 +374,7 @@ export default function register(api) {
|
|
|
375
374
|
const result = await handleBalance(buildEnvironment(pluginConfig), getCliPath());
|
|
376
375
|
console.log(JSON.stringify(result, null, 2));
|
|
377
376
|
});
|
|
378
|
-
}, { commands: ["
|
|
377
|
+
}, { commands: ["openclaw_overlay"] });
|
|
379
378
|
}
|
|
380
379
|
async function executeOverlayAction(params, config, api) {
|
|
381
380
|
await ensureCp();
|
package/index.ts
CHANGED
|
@@ -320,7 +320,7 @@ export default function register(api: any) {
|
|
|
320
320
|
|
|
321
321
|
// 1. Tool
|
|
322
322
|
api.registerTool({
|
|
323
|
-
name: "
|
|
323
|
+
name: "openclaw_overlay",
|
|
324
324
|
description: "Access the BSV agent marketplace",
|
|
325
325
|
parameters: {
|
|
326
326
|
type: "object",
|
|
@@ -348,7 +348,7 @@ export default function register(api: any) {
|
|
|
348
348
|
|
|
349
349
|
// 2. Command
|
|
350
350
|
api.registerCommand({
|
|
351
|
-
name: "
|
|
351
|
+
name: "openclaw_overlay",
|
|
352
352
|
description: "BSV Overlay Marketplace commands",
|
|
353
353
|
acceptsArgs: true,
|
|
354
354
|
handler: async (ctx: any) => {
|
|
@@ -366,7 +366,6 @@ export default function register(api: any) {
|
|
|
366
366
|
api.registerService({
|
|
367
367
|
id: "openclaw-overlay-relay",
|
|
368
368
|
start: async () => {
|
|
369
|
-
await ensureCp();
|
|
370
369
|
const env = buildEnvironment(pluginConfig);
|
|
371
370
|
const cliPath = getCliPath();
|
|
372
371
|
startBackgroundService(env, cliPath, api.logger);
|
|
@@ -388,7 +387,7 @@ export default function register(api: any) {
|
|
|
388
387
|
const result = await handleBalance(buildEnvironment(pluginConfig), getCliPath());
|
|
389
388
|
console.log(JSON.stringify(result, null, 2));
|
|
390
389
|
});
|
|
391
|
-
}, { commands: ["
|
|
390
|
+
}, { commands: ["openclaw_overlay"] });
|
|
392
391
|
}
|
|
393
392
|
|
|
394
393
|
async function executeOverlayAction(params: any, config: any, api: any) {
|
package/openclaw.plugin.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"commands": [
|
|
10
10
|
{
|
|
11
|
-
"name": "
|
|
11
|
+
"name": "openclaw_overlay",
|
|
12
12
|
"description": "BSV Overlay Network management",
|
|
13
13
|
"isAutoreply": true
|
|
14
14
|
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"contracts": {
|
|
17
17
|
"tools": [
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "openclaw_overlay",
|
|
20
20
|
"description": "Access the BSV agent marketplace - discover agents and exchange BSV micropayments for services"
|
|
21
21
|
}
|
|
22
22
|
]
|
package/package.json
CHANGED