nairon-bench 0.0.4 → 0.0.5

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": "nairon-bench",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "AI workflow benchmarking CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,7 +8,8 @@
8
8
  "nb": "./dist/index.js"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "scripts"
12
13
  ],
13
14
  "repository": {
14
15
  "type": "git",
@@ -22,6 +23,7 @@
22
23
  ],
23
24
  "license": "MIT",
24
25
  "scripts": {
26
+ "postinstall": "node scripts/postinstall.js",
25
27
  "dev": "bun run src/index.ts",
26
28
  "build": "bun build --outdir=dist --target=node src/index.ts && sed -i.bak '1s|#!/usr/bin/env bun|#!/usr/bin/env node|' dist/index.js && rm -f dist/index.js.bak",
27
29
  "build:binary": "bun build --compile --outfile=dist/nb src/index.ts",
@@ -0,0 +1,35 @@
1
+ #!/usr/bin/env node
2
+
3
+ const CYAN = '\x1b[36m';
4
+ const GREEN = '\x1b[32m';
5
+ const YELLOW = '\x1b[33m';
6
+ const DIM = '\x1b[2m';
7
+ const BOLD = '\x1b[1m';
8
+ const RESET = '\x1b[0m';
9
+
10
+ const logo = `
11
+ ${CYAN}${BOLD}
12
+ _ ______ __
13
+ / | / / __ )___ ____ ____/ /_
14
+ / |/ / __ / _ \\/ __ \\/ __ / __ \\
15
+ / /| / /_/ / __/ / / / /_/ / / / /
16
+ /_/ |_/_____/\\___/_/ /_/\\__,_/_/ /_/
17
+ ${RESET}
18
+ ${DIM}Benchmark your AI-augmented engineering workflow${RESET}
19
+ `;
20
+
21
+ const getStarted = `
22
+ ${GREEN}${BOLD}Installation complete!${RESET}
23
+
24
+ ${YELLOW}Get started:${RESET}
25
+
26
+ ${BOLD}nb init${RESET} Set up your profile & detect AI tools
27
+ ${BOLD}nb scan${RESET} Run your first benchmark
28
+ ${BOLD}nb dashboard${RESET} View your scores & percentile
29
+
30
+ ${DIM}Documentation: https://docs.nairon.ai${RESET}
31
+ ${DIM}Join us: https://discord.gg/naironai${RESET}
32
+ `;
33
+
34
+ console.log(logo);
35
+ console.log(getStarted);