@mohitkumawat/warmup-cli 1.2.5 → 1.2.7

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.5",
3
+ "version": "1.2.7",
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": {
@@ -9,6 +9,7 @@
9
9
  "scripts": {
10
10
  "build": "tsc",
11
11
  "dev": "ts-node src/index.ts",
12
+ "postinstall": "node scripts/postinstall.js",
12
13
  "start": "node dist/index.js",
13
14
  "test": "ts-node test/run.ts"
14
15
  },
@@ -51,7 +52,8 @@
51
52
  "node": ">=16.0.0"
52
53
  },
53
54
  "files": [
54
- "dist/**/*"
55
+ "dist/**/*",
56
+ "scripts/postinstall.js"
55
57
  ],
56
58
  "directories": {
57
59
  "test": "test"
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ const isGlobal = process.env.npm_config_global === 'true';
4
+
5
+ if (!isGlobal) {
6
+ process.exit(0);
7
+ }
8
+
9
+ // Simple color codes to avoid dependency issues during postinstall
10
+ const reset = '\x1b[0m';
11
+ const bright = '\x1b[1m';
12
+ const green = '\x1b[32m';
13
+ const yellow = '\x1b[33m';
14
+ const cyan = '\x1b[36m';
15
+
16
+ const message = `
17
+ ${bright}${green}WarmUp CLI has been installed successfully!${reset}
18
+
19
+ To finish the setup and start pre-warming Claude, please run:
20
+ ${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
+ `;
30
+
31
+ process.stdout.write(message);