@ngocsangairvds/vsaf 3.1.10 → 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.10",
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
 
package/src/project.js CHANGED
@@ -141,7 +141,7 @@ function syncLocalBmadSkills() {
141
141
  function initGitNexus() {
142
142
  step('GitNexus');
143
143
  if (!hasCommand('gitnexus')) { warn('gitnexus not found — run: vsaf global'); return; }
144
- const analyzeCmd = isWindows ? 'gitnexus analyze --worker-timeout 60' : 'gitnexus analyze';
144
+ const analyzeCmd = 'gitnexus analyze';
145
145
  info('Indexing repository (gitnexus analyze)...');
146
146
  exec(analyzeCmd, { cwd: CWD }) ? ok('Repository indexed') : warn('gitnexus analyze failed — run manually');
147
147
  }
package/src/workflow.js CHANGED
@@ -10,7 +10,7 @@ function runIndex() {
10
10
  return false;
11
11
  }
12
12
 
13
- const analyzeCmd = isWindows ? 'gitnexus analyze --worker-timeout 60' : 'gitnexus analyze';
13
+ const analyzeCmd = 'gitnexus analyze';
14
14
  info('Running gitnexus analyze...');
15
15
  const gitnexusOk = exec(analyzeCmd);
16
16
  if (gitnexusOk) {
@@ -78,7 +78,7 @@ function printAnalyzeHint() {
78
78
  warn(' [Most common] PowerShell blocks npm global scripts (.ps1).');
79
79
  warn(' Use CMD instead of PowerShell, or prefix with cmd /c:');
80
80
  warn('');
81
- warn(' cmd /c gitnexus analyze --worker-timeout 60');
81
+ warn(' cmd /c gitnexus analyze');
82
82
  warn('');
83
83
  info(' Other options:');
84
84
  info(' - Run via npx: npx gitnexus analyze');
Binary file