@ngocsangairvds/vsaf 3.1.11 → 3.1.12

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": "@ngocsangairvds/vsaf",
3
- "version": "3.1.11",
3
+ "version": "3.1.12",
4
4
  "description": "VSAF — Agentic AI SDLC Framework. 3 integrated tools: BMAD, GitNexus, Superpowers. 2-layer review.",
5
5
  "keywords": ["claude", "claude-code", "ai", "sdlc", "framework", "bmad", "gitnexus", "superpowers"],
6
6
  "bin": {
package/src/global.js CHANGED
@@ -1,7 +1,6 @@
1
1
  'use strict';
2
2
  const path = require('path');
3
3
  const fs = require('fs');
4
- const os = require('os');
5
4
  const { ok, info, warn, step, hasCommand, exec, copyDir, copyFile, CLAUDE_HOME, isWindows } = require('./utils');
6
5
 
7
6
  const PKG_ROOT = path.join(__dirname, '..');
@@ -64,47 +63,29 @@ function installBinary(name, installFn) {
64
63
  }
65
64
 
66
65
  function ensureLadybugDbWindows() {
67
- step('LadybugDB native binary (Windows)');
66
+ step('LadybugDB native binding (Windows)');
68
67
 
69
- // 1. Check if npm optional dep is present
70
68
  try {
71
69
  const npmRoot = require('child_process')
72
70
  .execSync('npm root -g', { encoding: 'utf8', shell: true }).trim();
73
- const ladybugPath = path.join(npmRoot, 'gitnexus', 'node_modules', '@ladybugdb', 'core-win32-x64');
74
- if (fs.existsSync(ladybugPath)) {
75
- ok('LadybugDB Windows binary present');
71
+ const nativePath = path.join(npmRoot, 'gitnexus', 'node_modules', '@ladybugdb', 'core', 'lbugjs.node');
72
+ if (fs.existsSync(nativePath)) {
73
+ ok('LadybugDB native binding present (lbugjs.node)');
76
74
  return;
77
75
  }
78
- warn('LadybugDB Windows binary missing — installing via npm...');
76
+ warn('LadybugDB native binding missing — installing @ladybugdb/core-win32-x64...');
79
77
  const gitnexusDir = path.join(npmRoot, 'gitnexus');
80
78
  if (exec('npm install @ladybugdb/core-win32-x64 --no-save', { cwd: gitnexusDir })) {
81
- ok('LadybugDB Windows binary installed');
82
- return;
79
+ ok('LadybugDB native binding installed');
80
+ } else {
81
+ warn('Could not install LadybugDB binding. Run manually:');
82
+ warn(' cd "' + gitnexusDir + '"');
83
+ warn(' npm install @ladybugdb/core-win32-x64 --no-save');
83
84
  }
84
- } catch { /* fall through to bundled binary */ }
85
-
86
- // 2. Fallback: extract bundled lbug.exe
87
- const lbugZip = path.join(PKG_ROOT, 'assets', 'lbug_cli-windows-x86_64.zip');
88
- const lbugDest = path.join(os.homedir(), '.vsaf', 'bin');
89
- const lbugExe = path.join(lbugDest, 'lbug.exe');
90
-
91
- if (fs.existsSync(lbugExe)) {
92
- ok('lbug.exe already installed at ' + lbugDest);
93
- return;
94
- }
95
-
96
- if (!fs.existsSync(lbugZip)) {
97
- warn('Could not install LadybugDB binary — bundled zip not found');
98
- return;
99
- }
100
-
101
- info('Extracting bundled lbug.exe...');
102
- fs.mkdirSync(lbugDest, { recursive: true });
103
- if (exec(`powershell -Command "Expand-Archive -Path '${lbugZip}' -DestinationPath '${lbugDest}' -Force"`)) {
104
- ok('lbug.exe extracted to ' + lbugDest);
105
- info('Add to PATH: ' + lbugDest);
106
- } else {
107
- warn('Failed to extract lbug.exe');
85
+ } catch {
86
+ warn('Could not verify LadybugDB binding — if gitnexus analyze fails at 60%, run:');
87
+ info(' npm root -g (find global node_modules path)');
88
+ info(' cd <path>\\gitnexus && npm install @ladybugdb/core-win32-x64 --no-save');
108
89
  }
109
90
  }
110
91
 
Binary file