callme-openclaw-plugin 1.0.2 → 1.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/setup.js +40 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "callme-openclaw-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
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
@@ -111,17 +111,46 @@ plugins:
111
111
 
112
112
  // Done!
113
113
  console.log('\n✨ \x1b[1;32mSetup complete!\x1b[0m\n');
114
- console.log('šŸ“‹ Next steps:');
115
- console.log(' 1. Reload OpenClaw: \x1b[36mopenclaw reload\x1b[0m');
116
- console.log(' 2. Start calling: \x1b[36m/call\x1b[0m');
117
- console.log('');
118
- console.log('šŸ“š Commands:');
119
- console.log(' /call - Start voice call');
120
- console.log(' /voice-usage - Check usage stats');
121
- console.log(' /voice-keys - Manage API keys');
122
- console.log('');
123
- console.log('Need help? https://docs.callme.ai/openclaw');
124
- console.log('');
114
+
115
+ // Step 5: Offer to reload OpenClaw
116
+ const shouldReload = await question('šŸ”„ Reload OpenClaw now? (y/n): ');
117
+
118
+ if (shouldReload.toLowerCase() === 'y' || shouldReload.toLowerCase() === 'yes') {
119
+ console.log('\nšŸ”„ Reloading OpenClaw...');
120
+ try {
121
+ const { stdout } = await execAsync('openclaw reload');
122
+ console.log('āœ… OpenClaw reloaded successfully!\n');
123
+
124
+ // Step 6: Offer to start a call
125
+ const shouldCall = await question('šŸ“ž Start your first voice call now? (y/n): ');
126
+
127
+ if (shouldCall.toLowerCase() === 'y' || shouldCall.toLowerCase() === 'yes') {
128
+ console.log('\nšŸ“ž Starting voice call...');
129
+ console.log(' Type /call in your OpenClaw session to begin!\n');
130
+ console.log('šŸ’” Tip: You can also run:');
131
+ console.log(' - /voice-usage (Check your usage stats)');
132
+ console.log(' - /voice-keys (Manage API keys)\n');
133
+ } else {
134
+ console.log('\nšŸ“š When ready, use these commands:');
135
+ console.log(' /call - Start voice call');
136
+ console.log(' /voice-usage - Check usage stats');
137
+ console.log(' /voice-keys - Manage API keys\n');
138
+ }
139
+
140
+ } catch (error) {
141
+ console.log('āš ļø Could not reload automatically. Please run manually:');
142
+ console.log(' \x1b[36mopenclaw reload\x1b[0m\n');
143
+ }
144
+ } else {
145
+ console.log('\nšŸ“‹ Remember to reload OpenClaw:');
146
+ console.log(' \x1b[36mopenclaw reload\x1b[0m');
147
+ console.log('\nšŸ“š Then use these commands:');
148
+ console.log(' /call - Start voice call');
149
+ console.log(' /voice-usage - Check usage stats');
150
+ console.log(' /voice-keys - Manage API keys\n');
151
+ }
152
+
153
+ console.log('Need help? https://docs.callme.ai/openclaw\n');
125
154
 
126
155
  rl.close();
127
156
  }