@ngocsangairvds/vsaf 3.2.11 → 3.2.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 +1 -1
- package/src/global.js +6 -3
package/package.json
CHANGED
package/src/global.js
CHANGED
|
@@ -140,10 +140,13 @@ async function setupVdsScriptsMcp() {
|
|
|
140
140
|
ok('Đã sao chép vds-scripts.');
|
|
141
141
|
|
|
142
142
|
info('Đang khởi tạo môi trường Python (uv sync)...');
|
|
143
|
-
|
|
144
|
-
exec(`uv sync --project "${destDir}"`, { silent: true });
|
|
143
|
+
const syncOk = exec(`uv sync --frozen --package vds-cli --project "${destDir}"`, { silent: true })
|
|
144
|
+
|| exec(`uv sync --package vds-cli --project "${destDir}"`, { silent: true });
|
|
145
|
+
if (syncOk) {
|
|
146
|
+
ok('Môi trường Python đã sẵn sàng.');
|
|
147
|
+
} else {
|
|
148
|
+
warn('uv sync thất bại — vds-cli có thể chưa sẵn sàng');
|
|
145
149
|
}
|
|
146
|
-
ok('Môi trường Python đã sẵn sàng.');
|
|
147
150
|
|
|
148
151
|
installVdsCliwrapper(destDir);
|
|
149
152
|
|