repowise 0.1.14 → 0.1.15

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,20 +1,22 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {
7
7
  "repowise": "dist/bin/repowise.js"
8
8
  },
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "scripts/postinstall.js"
11
12
  ],
12
13
  "scripts": {
13
14
  "build": "tsc",
14
15
  "build:bundle": "tsup",
15
16
  "lint": "eslint src/ bin/",
16
17
  "test": "vitest run",
17
- "type-check": "tsc --noEmit"
18
+ "type-check": "tsc --noEmit",
19
+ "postinstall": "node scripts/postinstall.js"
18
20
  },
19
21
  "dependencies": {
20
22
  "chalk": "^5.4.0",
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+
3
+ // Lightweight postinstall banner — no dependencies, plain ANSI codes
4
+ const version = process.env.npm_package_version || '';
5
+
6
+ const cyan = (s) => `\x1b[36m${s}\x1b[0m`;
7
+ const bold = (s) => `\x1b[1m${s}\x1b[0m`;
8
+ const dim = (s) => `\x1b[2m${s}\x1b[0m`;
9
+ const green = (s) => `\x1b[32m${s}\x1b[0m`;
10
+
11
+ const v = version ? ` v${version}` : '';
12
+
13
+ try {
14
+ console.log('');
15
+ console.log(cyan(' ╭─────────────────────────────────────────╮'));
16
+ console.log(cyan(' │ │'));
17
+ console.log(cyan(' │ ') + bold(`RepoWise${v} installed`) + green(' ✓') + cyan(' │'));
18
+ console.log(cyan(' │ │'));
19
+ console.log(cyan(' │ ') + dim('Get started:') + cyan(' │'));
20
+ console.log(cyan(' │ $ ') + bold('repowise create') + cyan(' │'));
21
+ console.log(cyan(' │ │'));
22
+ console.log(cyan(' │ ') + dim('Thank you for using RepoWise!') + cyan(' │'));
23
+ console.log(cyan(' │ ') + dim('https://repowise.ai') + cyan(' │'));
24
+ console.log(cyan(' │ │'));
25
+ console.log(cyan(' ╰─────────────────────────────────────────╯'));
26
+ console.log('');
27
+ } catch {
28
+ // Never fail installation on a cosmetic banner
29
+ }