openclaw-overlay-plugin 0.7.61 → 0.7.64
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/dist/index.js +6 -3
- package/index.ts +8 -3
- package/openclaw.plugin.json +49 -17
- package/package.json +1 -1
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: "overlay",
|
|
312
312
|
description: "Access the BSV agent marketplace",
|
|
313
313
|
parameters: {
|
|
314
314
|
type: "object",
|
|
@@ -336,12 +336,15 @@ export default function register(api) {
|
|
|
336
336
|
});
|
|
337
337
|
// 2. Command
|
|
338
338
|
api.registerCommand({
|
|
339
|
-
name: "
|
|
339
|
+
name: "overlay",
|
|
340
340
|
description: "BSV Overlay Marketplace commands",
|
|
341
341
|
acceptsArgs: true,
|
|
342
342
|
handler: async (ctx) => {
|
|
343
343
|
try {
|
|
344
344
|
const action = ctx.args?.[0] || 'status';
|
|
345
|
+
if (action === 'help') {
|
|
346
|
+
return { text: `🛰️ **Overlay Help**\n\n**Subcommands**:\n- \`status\`: Show identity and wallet balance\n- \`balance\`: Show current satoshis\n- \`onboard\`: Start discovery setup\n- \`discover <serviceId>\`: Find providers on network\n- \`pending-requests\`: See incoming service jobs\n- \`fulfill\`: Complete a request (Agent only)` };
|
|
347
|
+
}
|
|
345
348
|
const result = await executeOverlayAction({ action }, pluginConfig, api);
|
|
346
349
|
return { text: `**Overlay ${action.toUpperCase()}**\n\n${typeof result === 'string' ? result : JSON.stringify(result, null, 2)}` };
|
|
347
350
|
}
|
|
@@ -374,7 +377,7 @@ export default function register(api) {
|
|
|
374
377
|
const result = await handleBalance(buildEnvironment(pluginConfig), getCliPath());
|
|
375
378
|
console.log(JSON.stringify(result, null, 2));
|
|
376
379
|
});
|
|
377
|
-
}, { commands: ["
|
|
380
|
+
}, { commands: ["overlay"] });
|
|
378
381
|
}
|
|
379
382
|
async function executeOverlayAction(params, config, api) {
|
|
380
383
|
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: "overlay",
|
|
324
324
|
description: "Access the BSV agent marketplace",
|
|
325
325
|
parameters: {
|
|
326
326
|
type: "object",
|
|
@@ -348,12 +348,17 @@ export default function register(api: any) {
|
|
|
348
348
|
|
|
349
349
|
// 2. Command
|
|
350
350
|
api.registerCommand({
|
|
351
|
-
name: "
|
|
351
|
+
name: "overlay",
|
|
352
352
|
description: "BSV Overlay Marketplace commands",
|
|
353
353
|
acceptsArgs: true,
|
|
354
354
|
handler: async (ctx: any) => {
|
|
355
355
|
try {
|
|
356
356
|
const action = ctx.args?.[0] || 'status';
|
|
357
|
+
|
|
358
|
+
if (action === 'help') {
|
|
359
|
+
return { text: `🛰️ **Overlay Help**\n\n**Subcommands**:\n- \`status\`: Show identity and wallet balance\n- \`balance\`: Show current satoshis\n- \`onboard\`: Start discovery setup\n- \`discover <serviceId>\`: Find providers on network\n- \`pending-requests\`: See incoming service jobs\n- \`fulfill\`: Complete a request (Agent only)` };
|
|
360
|
+
}
|
|
361
|
+
|
|
357
362
|
const result = await executeOverlayAction({ action }, pluginConfig, api);
|
|
358
363
|
return { text: `**Overlay ${action.toUpperCase()}**\n\n${typeof result === 'string' ? result : JSON.stringify(result, null, 2)}` };
|
|
359
364
|
} catch (error: any) {
|
|
@@ -387,7 +392,7 @@ export default function register(api: any) {
|
|
|
387
392
|
const result = await handleBalance(buildEnvironment(pluginConfig), getCliPath());
|
|
388
393
|
console.log(JSON.stringify(result, null, 2));
|
|
389
394
|
});
|
|
390
|
-
}, { commands: ["
|
|
395
|
+
}, { commands: ["overlay"] });
|
|
391
396
|
}
|
|
392
397
|
|
|
393
398
|
async function executeOverlayAction(params: any, config: any, api: any) {
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"id": "openclaw-overlay-plugin",
|
|
3
3
|
"name": "BSV Overlay Network",
|
|
4
4
|
"description": "OpenClaw Overlay — decentralized agent marketplace with BSV micropayments",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.62",
|
|
6
6
|
"skills": [
|
|
7
7
|
"./SKILL.md"
|
|
8
8
|
],
|
|
9
9
|
"commands": [
|
|
10
10
|
{
|
|
11
|
-
"name": "
|
|
11
|
+
"name": "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": "overlay",
|
|
20
20
|
"description": "Access the BSV agent marketplace - discover agents and exchange BSV micropayments for services"
|
|
21
21
|
}
|
|
22
22
|
]
|
|
@@ -25,23 +25,52 @@
|
|
|
25
25
|
"type": "object",
|
|
26
26
|
"additionalProperties": true,
|
|
27
27
|
"properties": {
|
|
28
|
-
"enabled": {
|
|
28
|
+
"enabled": {
|
|
29
|
+
"type": "boolean"
|
|
30
|
+
},
|
|
29
31
|
"config": {
|
|
30
32
|
"type": "object",
|
|
31
33
|
"additionalProperties": true,
|
|
32
34
|
"properties": {
|
|
33
|
-
"overlayUrl": {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
35
|
+
"overlayUrl": {
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
"network": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"chaintracksUrl": {
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"arcUrl": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"agentName": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"agentDescription": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"walletDir": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"maxAutoPaySats": {
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
"dailyBudgetSats": {
|
|
60
|
+
"type": "number"
|
|
61
|
+
},
|
|
62
|
+
"autoAcceptPayments": {
|
|
63
|
+
"type": "boolean"
|
|
64
|
+
},
|
|
65
|
+
"preferCheapest": {
|
|
66
|
+
"type": "boolean"
|
|
67
|
+
},
|
|
68
|
+
"services": {
|
|
69
|
+
"type": "array",
|
|
70
|
+
"items": {
|
|
71
|
+
"type": "string"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
45
74
|
}
|
|
46
75
|
},
|
|
47
76
|
"overlayUrl": {
|
|
@@ -51,7 +80,10 @@
|
|
|
51
80
|
},
|
|
52
81
|
"network": {
|
|
53
82
|
"type": "string",
|
|
54
|
-
"enum": [
|
|
83
|
+
"enum": [
|
|
84
|
+
"mainnet",
|
|
85
|
+
"testnet"
|
|
86
|
+
],
|
|
55
87
|
"default": "mainnet",
|
|
56
88
|
"description": "BSV network to use"
|
|
57
89
|
},
|
package/package.json
CHANGED