agentgui 1.0.298 → 1.0.299
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 +10 -6
- package/package.json +1 -1
package/build-portable.js
CHANGED
|
@@ -120,13 +120,17 @@ copyDir(path.join(claudeSrc, 'vendor', 'ripgrep', 'x64-win32'), path.join(claude
|
|
|
120
120
|
log('Creating data directory...');
|
|
121
121
|
fs.mkdirSync(path.join(out, 'data'), { recursive: true });
|
|
122
122
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
if (fs.existsSync(userModels)) {
|
|
126
|
-
copyDir(userModels, path.join(out, 'models'));
|
|
127
|
-
log(`Models bundled: ${Math.round(sizeOf(path.join(out, 'models')) / 1024 / 1024)}MB`);
|
|
123
|
+
if (process.env.NO_BUNDLE_MODELS === 'true') {
|
|
124
|
+
log('Skipping model bundling (NO_BUNDLE_MODELS=true) - models will download on first use');
|
|
128
125
|
} else {
|
|
129
|
-
log('
|
|
126
|
+
log('Bundling AI models...');
|
|
127
|
+
const userModels = path.join(os.homedir(), '.gmgui', 'models');
|
|
128
|
+
if (fs.existsSync(userModels)) {
|
|
129
|
+
copyDir(userModels, path.join(out, 'models'));
|
|
130
|
+
log(`Models bundled: ${Math.round(sizeOf(path.join(out, 'models')) / 1024 / 1024)}MB`);
|
|
131
|
+
} else {
|
|
132
|
+
log('WARNING: No models found at ~/.gmgui/models - portable build will download on first use');
|
|
133
|
+
}
|
|
130
134
|
}
|
|
131
135
|
|
|
132
136
|
fs.writeFileSync(path.join(out, 'README.txt'), [
|