agentgui 1.0.297 → 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.
Files changed (2) hide show
  1. package/build-portable.js +10 -6
  2. 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
- log('Bundling AI models...');
124
- const userModels = path.join(os.homedir(), '.gmgui', 'models');
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('WARNING: No models found at ~/.gmgui/models - portable build will download on first use');
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'), [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentgui",
3
- "version": "1.0.297",
3
+ "version": "1.0.299",
4
4
  "description": "Multi-agent ACP client with real-time communication",
5
5
  "type": "module",
6
6
  "main": "server.js",