nairon-bench 0.0.4 → 0.0.6

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/dist/index.js CHANGED
@@ -9826,10 +9826,38 @@ function renderBar3(value, width) {
9826
9826
  }
9827
9827
 
9828
9828
  // src/index.ts
9829
+ var VERSION = "0.0.6";
9830
+ var CYAN = "\x1B[36m";
9831
+ var YELLOW = "\x1B[33m";
9832
+ var DIM = "\x1B[2m";
9833
+ var BOLD = "\x1B[1m";
9834
+ var RESET = "\x1B[0m";
9835
+ var LOGO = `${CYAN}${BOLD}
9836
+ _ ______ __
9837
+ / | / / __ )___ ____ ____/ /_
9838
+ / |/ / __ / _ \\/ __ \\/ __ / __ \\
9839
+ / /| / /_/ / __/ / / / /_/ / / / /
9840
+ /_/ |_/_____/\\___/_/ /_/\\__,_/_/ /_/
9841
+ ${RESET}`;
9842
+ function showBanner() {
9843
+ const log = (msg) => process.stdout.write(msg + `
9844
+ `);
9845
+ log(LOGO);
9846
+ log(`${DIM}Benchmark your AI-augmented engineering workflow${RESET} ${DIM}v${VERSION}${RESET}`);
9847
+ log("");
9848
+ log(`${YELLOW}Quick start:${RESET}`);
9849
+ log("");
9850
+ log(` ${BOLD}nb init${RESET} Set up your profile & detect AI tools`);
9851
+ log(` ${BOLD}nb scan${RESET} Run your first benchmark`);
9852
+ log(` ${BOLD}nb dashboard${RESET} View your scores & percentile`);
9853
+ log("");
9854
+ log(`${DIM}Run ${BOLD}nb --help${RESET}${DIM} for all commands${RESET}`);
9855
+ log("");
9856
+ }
9829
9857
  var main = defineCommand({
9830
9858
  meta: {
9831
9859
  name: "nairon-bench",
9832
- version: "0.0.1",
9860
+ version: VERSION,
9833
9861
  description: "Benchmark your AI-native engineering workflow across the full SDLC"
9834
9862
  },
9835
9863
  subCommands: {
@@ -9840,6 +9868,9 @@ var main = defineCommand({
9840
9868
  insights: insightsCommand,
9841
9869
  tools: toolsCommand,
9842
9870
  doctor: doctorCommand
9871
+ },
9872
+ run() {
9873
+ showBanner();
9843
9874
  }
9844
9875
  });
9845
9876
  runMain(main);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nairon-bench",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
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);