fluxy-bot 0.2.23 → 0.2.24

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/bin/cli.js +24 -1
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -284,6 +284,7 @@ async function init() {
284
284
  'Installing cloudflared',
285
285
  'Starting server',
286
286
  'Connecting tunnel',
287
+ 'Preparing dashboard',
287
288
  ];
288
289
 
289
290
  const stepper = new Stepper(steps);
@@ -310,6 +311,17 @@ async function init() {
310
311
  const { child, tunnelUrl, relayUrl } = result;
311
312
  stepper.advance();
312
313
 
314
+ // Warm up Vite by fetching pages (triggers dep pre-bundling)
315
+ const config = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8'));
316
+ const localUrl = `http://localhost:${config.port}`;
317
+ try {
318
+ await Promise.all([
319
+ fetch(localUrl + '/').then(r => r.text()),
320
+ fetch(localUrl + '/fluxy/onboard.html').then(r => r.text()),
321
+ ]);
322
+ } catch {}
323
+ stepper.advance();
324
+
313
325
  stepper.finish();
314
326
  finalMessage(tunnelUrl, relayUrl);
315
327
 
@@ -330,7 +342,7 @@ async function start() {
330
342
 
331
343
  banner();
332
344
 
333
- const steps = ['Loading config', 'Starting server', 'Connecting tunnel'];
345
+ const steps = ['Loading config', 'Starting server', 'Connecting tunnel', 'Preparing dashboard'];
334
346
  const stepper = new Stepper(steps);
335
347
  stepper.start();
336
348
 
@@ -349,6 +361,17 @@ async function start() {
349
361
  const { child, tunnelUrl, relayUrl } = result;
350
362
  stepper.advance();
351
363
 
364
+ // Warm up Vite by fetching pages (triggers dep pre-bundling)
365
+ const cfg = JSON.parse(fs.readFileSync(CONFIG_PATH, 'utf-8'));
366
+ const local = `http://localhost:${cfg.port}`;
367
+ try {
368
+ await Promise.all([
369
+ fetch(local + '/').then(r => r.text()),
370
+ fetch(local + '/fluxy/onboard.html').then(r => r.text()),
371
+ ]);
372
+ } catch {}
373
+ stepper.advance();
374
+
352
375
  stepper.finish();
353
376
  finalMessage(tunnelUrl, relayUrl);
354
377
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxy-bot",
3
- "version": "0.2.23",
3
+ "version": "0.2.24",
4
4
  "description": "Self-hosted AI bot — run your own AI assistant from anywhere",
5
5
  "type": "module",
6
6
  "license": "MIT",