fluxy-bot 0.3.14 → 0.3.17

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.
@@ -1 +1 @@
1
- import{b as o,j as e,R as n,O as r}from"./globals-7ZJqaJKH.js";function a(){const t=()=>{window.parent?.postMessage({type:"fluxy:onboard-complete"},"*")};return e.jsx(r,{onComplete:t,isInitialSetup:!0})}o.createRoot(document.getElementById("root")).render(e.jsx(n.StrictMode,{children:e.jsx(a,{})}));
1
+ import{b as o,j as e,R as n,O as r}from"./globals-CYritkLr.js";function a(){const t=()=>{window.parent?.postMessage({type:"fluxy:onboard-complete"},"*")};return e.jsx(r,{onComplete:t,isInitialSetup:!0})}o.createRoot(document.getElementById("root")).render(e.jsx(n.StrictMode,{children:e.jsx(a,{})}));
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content" />
6
6
  <title>Fluxy Chat</title>
7
- <script type="module" crossorigin src="/fluxy/assets/fluxy-DQBwFjxX.js"></script>
8
- <link rel="modulepreload" crossorigin href="/fluxy/assets/globals-7ZJqaJKH.js">
7
+ <script type="module" crossorigin src="/fluxy/assets/fluxy-DDgCW8m4.js"></script>
8
+ <link rel="modulepreload" crossorigin href="/fluxy/assets/globals-CYritkLr.js">
9
9
  <link rel="stylesheet" crossorigin href="/fluxy/assets/globals-BdY9BJIP.css">
10
10
  </head>
11
11
  <body class="bg-background text-foreground">
@@ -4,8 +4,8 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0, interactive-widget=resizes-content" />
6
6
  <title>Fluxy Setup</title>
7
- <script type="module" crossorigin src="/fluxy/assets/onboard-BSm5GQ03.js"></script>
8
- <link rel="modulepreload" crossorigin href="/fluxy/assets/globals-7ZJqaJKH.js">
7
+ <script type="module" crossorigin src="/fluxy/assets/onboard-BnNwYTId.js"></script>
8
+ <link rel="modulepreload" crossorigin href="/fluxy/assets/globals-CYritkLr.js">
9
9
  <link rel="stylesheet" crossorigin href="/fluxy/assets/globals-BdY9BJIP.css">
10
10
  </head>
11
11
  <body class="bg-background text-foreground">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluxy-bot",
3
- "version": "0.3.14",
3
+ "version": "0.3.17",
4
4
  "description": "Self-hosted AI bot — run your own AI assistant from anywhere",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -461,22 +461,27 @@ export default function OnboardWizard({ onComplete, isInitialSetup = false }: Pr
461
461
 
462
462
  const handleComplete = async () => {
463
463
  setSaving(true);
464
+ const payload = {
465
+ userName: userName.trim(),
466
+ agentName: botName.trim() || 'Fluxy',
467
+ provider,
468
+ model,
469
+ apiKey: '',
470
+ whisperEnabled,
471
+ whisperKey: whisperEnabled ? whisperKey : '',
472
+ portalUser: portalUser.trim(),
473
+ portalPass,
474
+ };
475
+ console.log('[OnboardWizard] handleComplete called, payload:', JSON.stringify(payload, null, 2));
464
476
  try {
465
- await fetch('/api/onboard', {
477
+ const res = await fetch('/api/onboard', {
466
478
  method: 'POST',
467
479
  headers: { 'Content-Type': 'application/json' },
468
- body: JSON.stringify({
469
- userName: userName.trim(),
470
- agentName: botName.trim() || 'Fluxy',
471
- provider,
472
- model,
473
- apiKey: '',
474
- whisperEnabled,
475
- whisperKey: whisperEnabled ? whisperKey : '',
476
- portalUser: portalUser.trim(),
477
- portalPass,
478
- }),
480
+ body: JSON.stringify(payload),
479
481
  });
482
+ console.log('[OnboardWizard] POST /api/onboard response:', res.status, res.statusText);
483
+ const data = await res.json().catch(() => null);
484
+ console.log('[OnboardWizard] response body:', data);
480
485
  if (isInitialSetup) {
481
486
  setSaving(false);
482
487
  setStep(6);
@@ -484,7 +489,7 @@ export default function OnboardWizard({ onComplete, isInitialSetup = false }: Pr
484
489
  onComplete();
485
490
  }
486
491
  } catch (err) {
487
- console.error('Onboard failed:', err);
492
+ console.error('[OnboardWizard] Onboard failed:', err);
488
493
  setSaving(false);
489
494
  }
490
495
  };
@@ -150,6 +150,7 @@ export async function startSupervisor() {
150
150
 
151
151
  // HTTP server — proxies to Vite dev servers + worker API
152
152
  const server = http.createServer(async (req, res) => {
153
+ if (req.method === 'POST') console.log(`[supervisor] POST received: ${req.url}`);
153
154
  // Fluxy widget — served directly (not part of Vite build)
154
155
  if (req.url === '/fluxy/widget.js') {
155
156
  console.log('[supervisor] Serving /fluxy/widget.js directly');
package/worker/index.ts CHANGED
@@ -297,6 +297,7 @@ app.get('/api/portal/validate-token', (req, res) => {
297
297
  });
298
298
 
299
299
  app.post('/api/onboard', (req, res) => {
300
+ console.log('[worker] POST /api/onboard body:', JSON.stringify(req.body));
300
301
  const { userName, agentName, provider, model, apiKey, baseUrl, portalUser, portalPass, whisperEnabled, whisperKey } = req.body;
301
302
  setSetting('user_name', userName || '');
302
303
  setSetting('agent_name', agentName || 'Fluxy');