@ngocsangairvds/vsaf 4.0.4 → 4.0.5
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
|
@@ -193,8 +193,38 @@ if (!vdsCliFound) {
|
|
|
193
193
|
log(' ', 'Verify: command -v vds-cli && vds-cli --version');
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
// ── Step 5: Sync all vds-scripts packages (ensures subcommand binaries exist) ──
|
|
197
|
+
|
|
196
198
|
if (vdsScriptsDir) {
|
|
197
199
|
log('📂', `vds-scripts: ${vdsScriptsDir}`);
|
|
200
|
+
const uvRunner = join(vdsScriptsDir, 'scripts', 'worktree_uv.sh');
|
|
201
|
+
if (existsSync(uvRunner)) {
|
|
202
|
+
console.log('');
|
|
203
|
+
log('🔄', 'Syncing vds-scripts packages (uv sync --all-packages)...');
|
|
204
|
+
try {
|
|
205
|
+
execSync(`"${uvRunner}" sync --directory "${vdsScriptsDir}" --all-packages`, {
|
|
206
|
+
stdio: 'pipe',
|
|
207
|
+
encoding: 'utf-8',
|
|
208
|
+
timeout: 120000,
|
|
209
|
+
cwd: vdsScriptsDir,
|
|
210
|
+
});
|
|
211
|
+
log('✅', 'All vds-scripts packages synced');
|
|
212
|
+
} catch (e) {
|
|
213
|
+
// Fallback: try direct uv sync
|
|
214
|
+
try {
|
|
215
|
+
execSync('uv sync --all-packages', {
|
|
216
|
+
stdio: 'pipe',
|
|
217
|
+
encoding: 'utf-8',
|
|
218
|
+
timeout: 120000,
|
|
219
|
+
cwd: vdsScriptsDir,
|
|
220
|
+
});
|
|
221
|
+
log('✅', 'All vds-scripts packages synced (direct uv)');
|
|
222
|
+
} catch {
|
|
223
|
+
log('⚠️', 'Failed to sync vds-scripts packages — subcommands like confluence/jira may not work');
|
|
224
|
+
log(' ', `Fix: cd ${vdsScriptsDir} && uv sync --all-packages`);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
198
228
|
} else {
|
|
199
229
|
log('⚠️', 'vds-scripts not found at .claude/vds-scripts/ or ~/.claude/vds-scripts/');
|
|
200
230
|
}
|