@goplausible/openclaw-algorand-plugin 1.8.2 → 1.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/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 = {};
@@ -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.3",
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.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },