@ngocsangairvds/vsaf 4.0.15 → 4.0.16

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": "4.0.15",
3
+ "version": "4.0.16",
4
4
  "description": "is it ready to use ?",
5
5
  "main": "packages/core/dist/index.js",
6
6
  "types": "packages/core/dist/index.d.ts",
@@ -179,7 +179,7 @@ let vdsCliFound = false;
179
179
 
180
180
  // Check if vds-cli is already on PATH
181
181
  try {
182
- const version = execSync('vds-cli --version', { stdio: 'pipe', encoding: 'utf-8' }).trim();
182
+ const version = execSync('vds-cli version', { stdio: 'pipe', encoding: 'utf-8' }).trim();
183
183
  log('✅', `vds-cli ${version} (on PATH)`);
184
184
  vdsCliFound = true;
185
185
  } catch {
@@ -224,7 +224,7 @@ if (!vdsCliFound) {
224
224
  log('⚠️', 'vds-cli not found — required for non-dry-run execution');
225
225
  log(' ', 'Option 1: Clone vds-scripts into .claude/vds-scripts/ then re-run install');
226
226
  log(' ', 'Option 2: Install vds-cli globally (pip install / Viettel internal)');
227
- log(' ', 'Verify: vds-cli --version');
227
+ log(' ', 'Verify: vds-cli version');
228
228
  }
229
229
 
230
230
  // ── Step 5: Sync all vds-scripts packages (ensures subcommand binaries exist) ──
@@ -279,7 +279,7 @@ let verified = false;
279
279
 
280
280
  // First pass: try vds-cli on PATH
281
281
  try {
282
- const ver = execSync('vds-cli --version', { stdio: 'pipe', encoding: 'utf-8', timeout: 15000 }).trim();
282
+ const ver = execSync('vds-cli version', { stdio: 'pipe', encoding: 'utf-8', timeout: 15000 }).trim();
283
283
  log('✅', `vds-cli ${ver} — working`);
284
284
  verified = true;
285
285
  } catch {
@@ -311,7 +311,7 @@ try {
311
311
  if (!verified) {
312
312
  try {
313
313
  const wrapperPath = join(projectPath, '.claude', 'bin');
314
- const ver = execSync('vds-cli --version', {
314
+ const ver = execSync('vds-cli version', {
315
315
  stdio: 'pipe', encoding: 'utf-8', timeout: 15000,
316
316
  env: { ...process.env, PATH: `${wrapperPath}${delimiter}${process.env.PATH}` },
317
317
  }).trim();
@@ -319,7 +319,21 @@ if (!verified) {
319
319
  verified = true;
320
320
  } catch (e) {
321
321
  log('❌', 'vds-cli not working — skills will be BLOCKED at runtime');
322
- log(' ', `Error: ${e.message || e}`);
322
+ if (e.stderr) log(' ', `stderr: ${e.stderr.toString().trim().split('\n').slice(0, 3).join('\n ')}`);
323
+ else log(' ', `Error: ${e.message || e}`);
324
+
325
+ // Diagnostic: test uv run directly to isolate the issue
326
+ if (vdsScriptsDir) {
327
+ try {
328
+ const uvVer = execSync(`uv run --directory ${JSON.stringify(vdsScriptsDir)} --package vds-cli vds-cli version`, {
329
+ stdio: 'pipe', encoding: 'utf-8', timeout: 15000,
330
+ }).trim();
331
+ log(' ', `Direct uv run works: ${uvVer}`);
332
+ log(' ', 'Issue is with the wrapper script, not uv/vds-cli');
333
+ } catch (uvErr) {
334
+ log(' ', `Direct uv run also fails: ${uvErr.stderr ? uvErr.stderr.toString().trim().split('\n')[0] : uvErr.message}`);
335
+ }
336
+ }
323
337
  }
324
338
  }
325
339
 
@@ -329,7 +343,7 @@ console.log('');
329
343
  console.log(' ┌──────────────────────────────────────────────────────┐');
330
344
  console.log(' │ Verify commands (run these to confirm setup): │');
331
345
  console.log(' ├──────────────────────────────────────────────────────┤');
332
- console.log(' │ vds-cli --version # CLI is executable │');
346
+ console.log(' │ vds-cli version # CLI is executable │');
333
347
  console.log(' │ vds-cli confluence --help # Confluence subcommand │');
334
348
  console.log(' │ vds-cli jira --help # Jira subcommand │');
335
349
  console.log(' │ vds-cli bitbucket --help # Bitbucket subcommand │');