@goplausible/openclaw-algorand-plugin 0.8.2 → 0.8.3
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/package.json +1 -1
- package/setup.ts +27 -27
package/package.json
CHANGED
package/setup.ts
CHANGED
|
@@ -11,34 +11,34 @@ export async function runSetup(
|
|
|
11
11
|
): Promise<AlgorandPluginConfig | null> {
|
|
12
12
|
p.intro("🔷 Algorand Plugin Setup — powered by GoPlausible");
|
|
13
13
|
|
|
14
|
-
// Step 1: Verify algorand-mcp binary is available
|
|
15
|
-
let mcpAvailable = false;
|
|
16
|
-
let mcpPath = "";
|
|
17
|
-
try {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} catch {
|
|
21
|
-
|
|
22
|
-
}
|
|
14
|
+
// // Step 1: Verify algorand-mcp binary is available
|
|
15
|
+
// let mcpAvailable = false;
|
|
16
|
+
// let mcpPath = "";
|
|
17
|
+
// try {
|
|
18
|
+
// mcpPath = execSync("npm list @goplausible/algorand-mcp", { encoding: "utf-8" }).trim();
|
|
19
|
+
// mcpAvailable = true;
|
|
20
|
+
// } catch {
|
|
21
|
+
// // Binary not found in PATH
|
|
22
|
+
// }
|
|
23
23
|
|
|
24
|
-
if (mcpAvailable) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} else {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
24
|
+
// if (mcpAvailable) {
|
|
25
|
+
// p.note(
|
|
26
|
+
// `MCP Server: ${ALGORAND_MCP.name}\n` +
|
|
27
|
+
// `Type: ${ALGORAND_MCP.type} (local)\n` +
|
|
28
|
+
// `Command: ${ALGORAND_MCP.command}\n` +
|
|
29
|
+
// `Path: ${mcpPath}\n` +
|
|
30
|
+
// `Status: ✅ Available`,
|
|
31
|
+
// "Algorand MCP"
|
|
32
|
+
// );
|
|
33
|
+
// } else {
|
|
34
|
+
// p.log.warn(
|
|
35
|
+
// `algorand-mcp binary not found in PATH.\n\n` +
|
|
36
|
+
// `Options:\n` +
|
|
37
|
+
// ` • Run with npx: npx algorand-mcp\n` +
|
|
38
|
+
// ` • Install globally: npm install -g algorand-mcp\n` +
|
|
39
|
+
// ` • Add node_modules/.bin to PATH`
|
|
40
|
+
// );
|
|
41
|
+
// }
|
|
42
42
|
|
|
43
43
|
// Step 2: x402 integration
|
|
44
44
|
const enableX402 = await p.confirm({
|