gopherhole_openclaw_a2a 0.3.1 → 0.3.2
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 +7 -2
- package/index.ts +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -55,8 +55,13 @@ const plugin = {
|
|
|
55
55
|
return { content: [{ type: 'text', text: JSON.stringify({ status: 'error', error: 'A2A channel not running' }) }] };
|
|
56
56
|
}
|
|
57
57
|
if (action === 'list') {
|
|
58
|
-
const
|
|
59
|
-
|
|
58
|
+
const hubStatus = manager.listAgents();
|
|
59
|
+
const availableAgents = await manager.listAvailableAgents();
|
|
60
|
+
return { content: [{ type: 'text', text: JSON.stringify({
|
|
61
|
+
status: 'ok',
|
|
62
|
+
connected: hubStatus.some(h => h.connected),
|
|
63
|
+
agents: availableAgents
|
|
64
|
+
}) }] };
|
|
60
65
|
}
|
|
61
66
|
if (action === 'send') {
|
|
62
67
|
if (!agentId || (!message && !imagePath && !filePath)) {
|
package/index.ts
CHANGED
|
@@ -72,8 +72,13 @@ const plugin = {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
if (action === 'list') {
|
|
75
|
-
const
|
|
76
|
-
|
|
75
|
+
const hubStatus = manager.listAgents();
|
|
76
|
+
const availableAgents = await manager.listAvailableAgents();
|
|
77
|
+
return { content: [{ type: 'text', text: JSON.stringify({
|
|
78
|
+
status: 'ok',
|
|
79
|
+
connected: hubStatus.some(h => h.connected),
|
|
80
|
+
agents: availableAgents
|
|
81
|
+
}) }] };
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
if (action === 'send') {
|