nairon-bench 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/dist/index.js +42 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -11587,11 +11587,19 @@ function installSkill(opt) {
11587
11587
  };
11588
11588
  }
11589
11589
  try {
11590
- const result = spawnSync("npx", ["skills", "add", opt.installCommand.replace("npx skills add ", "")], {
11590
+ const skillPath = opt.installCommand.replace(/^npx\s+/, "").replace(/^bunx\s+/, "").replace(/^skills\s+add\s+/, "").trim();
11591
+ let result = spawnSync("bunx", ["--bun", "skills", "add", skillPath], {
11591
11592
  encoding: "utf-8",
11592
11593
  stdio: "pipe",
11593
11594
  timeout: 120000
11594
11595
  });
11596
+ if (result.status !== 0) {
11597
+ result = spawnSync("npx", ["-y", "skills", "add", skillPath], {
11598
+ encoding: "utf-8",
11599
+ stdio: "pipe",
11600
+ timeout: 120000
11601
+ });
11602
+ }
11595
11603
  if (result.status === 0) {
11596
11604
  return {
11597
11605
  id: opt.id,
@@ -11600,12 +11608,21 @@ function installSkill(opt) {
11600
11608
  message: `Skill installed successfully`
11601
11609
  };
11602
11610
  } else {
11611
+ const output = (result.stderr || result.stdout || "").toLowerCase();
11612
+ if (output.includes("already exists") || output.includes("already installed")) {
11613
+ return {
11614
+ id: opt.id,
11615
+ name: opt.name,
11616
+ success: true,
11617
+ message: `Skill already installed`
11618
+ };
11619
+ }
11603
11620
  return {
11604
11621
  id: opt.id,
11605
11622
  name: opt.name,
11606
11623
  success: false,
11607
11624
  message: "Skill installation failed",
11608
- error: result.stderr || result.stdout
11625
+ error: result.stderr || result.stdout || "Unknown error"
11609
11626
  };
11610
11627
  }
11611
11628
  } catch (err) {
@@ -21996,6 +22013,28 @@ var BOLD = "\x1B[1m";
21996
22013
  var RESET = "\x1B[0m";
21997
22014
  var MAGENTA = "\x1B[35m";
21998
22015
  var CHANGELOG = [
22016
+ {
22017
+ version: "0.3.1",
22018
+ date: "2026-02-14",
22019
+ title: "Skills Installation Fix",
22020
+ highlights: [
22021
+ "Fixed skills installation (bunx/npx fallback)",
22022
+ "Better error handling for skill installs",
22023
+ "Detects already-installed skills"
22024
+ ]
22025
+ },
22026
+ {
22027
+ version: "0.3.0",
22028
+ date: "2026-02-14",
22029
+ title: "Personalized Recommendations",
22030
+ highlights: [
22031
+ "nb onboard - Set up project context for tailored recommendations",
22032
+ "Context-aware recommendations based on YOUR tech stack",
22033
+ "Auto-detect framework, database, testing tools, AI/ML libs",
22034
+ "Pain point boosting - relevant tools get prioritized",
22035
+ "Supermemory integration for cross-session memory"
22036
+ ]
22037
+ },
21999
22038
  {
22000
22039
  version: "0.2.2",
22001
22040
  date: "2026-02-14",
@@ -24734,7 +24773,7 @@ function formatBytes(bytes) {
24734
24773
  // package.json
24735
24774
  var package_default = {
24736
24775
  name: "nairon-bench",
24737
- version: "0.3.0",
24776
+ version: "0.3.1",
24738
24777
  description: "AI workflow benchmarking CLI",
24739
24778
  type: "module",
24740
24779
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nairon-bench",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "AI workflow benchmarking CLI",
5
5
  "type": "module",
6
6
  "bin": {