fluxy-bot 0.2.3 → 0.2.4

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/dist/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),u={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map(e=>u[e]||l(e))).then(e=>(r(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"de4171236598f5a00a8a0f04f195a3b6"},{url:"assets/index-D2PQx64r.css",revision:null},{url:"assets/index-BxQ8et35.js",revision:null},{url:"manifest.webmanifest",revision:"f73683d89ca6b3b7b63451130e165f71"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
1
+ if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(n,t)=>{const r=e||("document"in self?document.currentScript.src:"")||location.href;if(s[r])return;let o={};const l=e=>i(e,r),u={module:{uri:r},exports:o,require:l};s[r]=Promise.all(n.map(e=>u[e]||l(e))).then(e=>(t(...e),o))}}define(["./workbox-8c29f6e4"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"index.html",revision:"de4171236598f5a00a8a0f04f195a3b6"},{url:"assets/index-D2PQx64r.css",revision:null},{url:"assets/index-BxQ8et35.js",revision:null},{url:"manifest.webmanifest",revision:"f73683d89ca6b3b7b63451130e165f71"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html"),{denylist:[/^\/fluxy/]}))});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxy-bot",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "Self-hosted AI bot — run your own AI assistant from anywhere",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -65,11 +65,11 @@ export async function startSupervisor() {
65
65
  if (req.url === '/fluxy' || req.url === '/fluxy/') {
66
66
  const indexPath = path.join(paths.distFluxy, 'fluxy.html');
67
67
  if (fs.existsSync(indexPath)) {
68
- res.writeHead(200, { 'Content-Type': 'text/html' });
68
+ res.writeHead(200, { 'Content-Type': 'text/html', 'Cache-Control': 'no-cache, no-store, must-revalidate' });
69
69
  res.end(fs.readFileSync(indexPath));
70
70
  } else {
71
71
  // Fallback: dev mode or build not yet done
72
- res.writeHead(200, { 'Content-Type': 'text/html' });
72
+ res.writeHead(200, { 'Content-Type': 'text/html', 'Cache-Control': 'no-cache' });
73
73
  res.end('<html><body style="background:#212121;color:#f5f5f5;display:flex;align-items:center;justify-content:center;height:100vh;font-family:system-ui"><p>Fluxy chat not built yet. Run <code>npm run build</code></p></body></html>');
74
74
  }
75
75
  return;
package/vite.config.ts CHANGED
@@ -22,6 +22,9 @@ export default defineConfig({
22
22
  react(),
23
23
  VitePWA({
24
24
  registerType: 'autoUpdate',
25
+ workbox: {
26
+ navigateFallbackDenylist: [/^\/fluxy/],
27
+ },
25
28
  manifest: {
26
29
  name: 'Fluxy',
27
30
  short_name: 'Fluxy',