agentgui 1.0.361 → 1.0.363
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/build-portable.js +3 -3
- package/package.json +1 -1
package/build-portable.js
CHANGED
|
@@ -149,11 +149,11 @@ if (process.env.NO_BUNDLE_MODELS === 'true') {
|
|
|
149
149
|
console.error('[BUILD] Failed to clone models from GitHub:', e.message);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
-
if (fs.existsSync(
|
|
153
|
-
copyDir(
|
|
152
|
+
if (fs.existsSync(modelsDir)) {
|
|
153
|
+
copyDir(modelsDir, path.join(out, 'models'));
|
|
154
154
|
log(`Models bundled: ${Math.round(sizeOf(path.join(out, 'models')) / 1024 / 1024)}MB`);
|
|
155
155
|
} else {
|
|
156
|
-
log(`WARNING: No models found at ${
|
|
156
|
+
log(`WARNING: No models found at ${modelsDir} - portable build will download on first use`);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|