fluxy-bot 0.5.18 → 0.5.19
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/package.json
CHANGED
package/supervisor/index.ts
CHANGED
|
@@ -60,7 +60,7 @@ self.addEventListener('push', (event) => {
|
|
|
60
60
|
self.registration.showNotification(data.title || 'Fluxy', {
|
|
61
61
|
body: data.body || '',
|
|
62
62
|
icon: '/fluxy-icon-192.png',
|
|
63
|
-
badge: '/fluxy
|
|
63
|
+
badge: '/fluxy.png',
|
|
64
64
|
vibrate: [100, 50, 100],
|
|
65
65
|
tag: data.tag || 'fluxy-default',
|
|
66
66
|
data: { url: data.url || '/' },
|
package/supervisor/scheduler.ts
CHANGED
|
@@ -145,6 +145,13 @@ function triggerAgent(prompt: string, label: string, onComplete?: () => void) {
|
|
|
145
145
|
log.warn(`[scheduler] Failed to get/create conversation for ${label}: ${err.message}`);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
+
// Fetch bot name for push notification title
|
|
149
|
+
let botName = 'Fluxy';
|
|
150
|
+
try {
|
|
151
|
+
const status = await workerApi('/api/onboard/status');
|
|
152
|
+
if (status.agentName) botName = status.agentName;
|
|
153
|
+
} catch {}
|
|
154
|
+
|
|
148
155
|
let fullResponse = '';
|
|
149
156
|
|
|
150
157
|
startFluxyAgentQuery(convId, prompt, model, (type, eventData) => {
|
|
@@ -185,7 +192,7 @@ function triggerAgent(prompt: string, label: string, onComplete?: () => void) {
|
|
|
185
192
|
|
|
186
193
|
// Send push notification for closed tabs / locked devices
|
|
187
194
|
workerApi('/api/push/send', 'POST', {
|
|
188
|
-
title: titleMatch?.[1] ||
|
|
195
|
+
title: titleMatch?.[1] || botName,
|
|
189
196
|
body: messageContent.slice(0, 200),
|
|
190
197
|
tag: `fluxy-${label}`,
|
|
191
198
|
url: '/',
|
|
@@ -14,7 +14,7 @@ self.addEventListener('push', (event) => {
|
|
|
14
14
|
self.registration.showNotification(data.title || 'Fluxy', {
|
|
15
15
|
body: data.body || '',
|
|
16
16
|
icon: '/fluxy-icon-192.png',
|
|
17
|
-
badge: '/fluxy
|
|
17
|
+
badge: '/fluxy.png',
|
|
18
18
|
vibrate: [100, 50, 100],
|
|
19
19
|
tag: data.tag || 'fluxy-default',
|
|
20
20
|
data: { url: data.url || '/' },
|