@goplausible/openclaw-algorand-plugin 1.8.2 → 1.8.4

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 CHANGED
@@ -60,12 +60,19 @@ function getMcpBinaryPath(): string {
60
60
  function updatePluginConfig(newConfig: AlgorandPluginConfig): { success: boolean; error?: string } {
61
61
  try {
62
62
  const configPath = getConfigPath();
63
- if (!existsSync(configPath)) {
64
- return { success: false, error: `Config file not found: ${configPath}` };
63
+ const configDir = dirname(configPath);
64
+
65
+ // Create ~/.openclaw directory if it doesn't exist
66
+ if (!existsSync(configDir)) {
67
+ mkdirSync(configDir, { recursive: true });
65
68
  }
66
69
 
67
- const rawConfig = readFileSync(configPath, "utf-8");
68
- const config = JSON.parse(rawConfig);
70
+ // Create config file with empty object if it doesn't exist
71
+ let config: Record<string, any> = {};
72
+ if (existsSync(configPath)) {
73
+ const rawConfig = readFileSync(configPath, "utf-8");
74
+ config = JSON.parse(rawConfig);
75
+ }
69
76
 
70
77
  // Ensure plugins structure exists
71
78
  if (!config.plugins) config.plugins = {};
@@ -62,7 +62,12 @@ When generating QR codes with `generate_algorand_qrcode`, the tool returns:
62
62
  - URI string
63
63
 
64
64
  **Important:** MCP tool output may not render properly through mcporter → exec pipeline.
65
- After calling the tool, **extract and paste the QR code directly in your response**:
65
+ After calling the tool, **extract and paste the QR code directly in your response**.
66
+ **Always include ALL THREE in your reply:**
67
+
68
+ 1. UTF-8 QR block (Unicode block characters)
69
+ 2. PNG as markdown image: `![QR](data:image/png;base64,...)`
70
+ 3. **URI string** — always show this, users need it for wallet deep links
66
71
 
67
72
  1. Call the tool and capture output
68
73
  2. Extract the UTF-8 QR block (Unicode block characters)
@@ -2,7 +2,7 @@
2
2
  "id": "openclaw-algorand-plugin",
3
3
  "name": "Algorand Integration",
4
4
  "description": "Algorand blockchain integration with MCP and skills — by GoPlausible",
5
- "version": "1.8.2",
5
+ "version": "1.8.4",
6
6
  "skills": [
7
7
  "skills/algorand-development",
8
8
  "skills/algorand-typescript",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goplausible/openclaw-algorand-plugin",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -217,7 +217,12 @@ When generating QR codes with `generate_algorand_qrcode`, the tool returns:
217
217
  - URI string
218
218
 
219
219
  **Important:** MCP tool output may not render properly through mcporter → exec pipeline.
220
- After calling the tool, **extract and paste the QR code directly in your response**:
220
+ After calling the tool, **extract and paste the QR code directly in your response**.
221
+ **Always include ALL THREE in your reply:**
222
+
223
+ 1. UTF-8 QR block (Unicode block characters)
224
+ 2. PNG as markdown image: `![QR](data:image/png;base64,...)`
225
+ 3. **URI string** — always show this, users need it for wallet deep links
221
226
 
222
227
  1. Call the tool and capture output
223
228
  2. Extract the UTF-8 QR block (Unicode block characters)
@@ -800,7 +800,12 @@ Mainnet asset verification via Pera Wallet API. Use to check if assets are legit
800
800
  ### QR Code Display
801
801
 
802
802
  **Important:** MCP tool output may not render properly through mcporter → exec pipeline.
803
- After calling the tool, **extract and paste the QR code directly in your response**:
803
+ After calling the tool, **extract and paste the QR code directly in your response**.
804
+ **Always include ALL THREE in your reply:**
805
+
806
+ 1. UTF-8 QR block (Unicode block characters)
807
+ 2. PNG as markdown image: `![QR](data:image/png;base64,...)`
808
+ 3. **URI string** — always show this, users need it for wallet deep links
804
809
 
805
810
  1. Call the tool and capture output
806
811
  2. Extract the UTF-8 QR block (Unicode block characters)