@mohitkumawat/warmup-cli 1.2.7 → 1.2.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mohitkumawat/warmup-cli",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "description": "Pre-warm your Claude rate limits while you sleep. One command, zero daily effort.",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -15,17 +15,32 @@ const cyan = '\x1b[36m';
15
15
 
16
16
  const message = `
17
17
  ${bright}${green}WarmUp CLI has been installed successfully!${reset}
18
+ Starting initial setup...
19
+ `;
20
+
21
+ process.stdout.write(message);
18
22
 
23
+ // Automatically trigger "warmup setup" if we are in an interactive terminal
24
+ if (process.stdout.isTTY) {
25
+ try {
26
+ const { execSync } = require('child_process');
27
+
28
+ // We run it synchronously so the user is immediately dropped into the setup prompt
29
+ execSync('warmup setup', { stdio: 'inherit' });
30
+ } catch (err) {
31
+ // If the warmup command isn't immediately available or fails, fallback to instructions
32
+ const fallbackMessage = `
33
+ ${bright}${yellow}Could not automatically start setup.${reset}
34
+ To finish the setup and start pre-warming Claude, please run:
35
+ ${bright}${cyan} warmup setup${reset}
36
+ `;
37
+ process.stdout.write(fallbackMessage);
38
+ }
39
+ } else {
40
+ // CI/CD or non-interactive environments
41
+ const fallbackMessage = `
19
42
  To finish the setup and start pre-warming Claude, please run:
20
43
  ${bright}${yellow} warmup setup${reset}
21
-
22
- ${bright}${cyan}Why run setup?${reset}
23
- - It configures your daily work schedule.
24
- - It calculates the optimal 5-hour window.
25
- - It installs the background scheduler for your OS.
26
-
27
- ${bright}Note:${reset} Ensure Claude Code is already installed and authenticated.
28
- Check the docs at: ${cyan}https://github.com/mohit-kumawat/warmup${reset}
29
44
  `;
30
-
31
- process.stdout.write(message);
45
+ process.stdout.write(fallbackMessage);
46
+ }