bloby-bot 0.49.1 → 0.49.2
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-bloby/assets/{bloby-DU3UB3X1.js → bloby-DPeIt2jJ.js} +77 -77
- package/dist-bloby/assets/{globals-BjVrJod9.css → globals-D60b-8LY.css} +1 -1
- package/dist-bloby/assets/{globals-BbvTL0oZ.js → globals-DNO3ilRx.js} +2 -2
- package/dist-bloby/assets/{highlighted-body-OFNGDK62-C3E0X5ku.js → highlighted-body-OFNGDK62-DaQzxBJU.js} +1 -1
- package/dist-bloby/assets/mermaid-GHXKKRXX-C4gl2fxN.js +1 -0
- package/dist-bloby/assets/{onboard-TPkpjMdq.js → onboard-D8sRPjz2.js} +1 -1
- package/dist-bloby/bloby.html +3 -3
- package/dist-bloby/onboard.html +3 -3
- package/package.json +1 -1
- package/supervisor/chat/src/components/Chat/MessageBubble.tsx +34 -4
- package/supervisor/chat/src/hooks/useBlobyChat.ts +3 -1
- package/supervisor/file-saver.ts +1 -1
- package/supervisor/index.ts +12 -3
- package/worker/prompts/bloby-system-prompt.txt +3 -2
- package/dist-bloby/assets/mermaid-GHXKKRXX-BS0WlgMc.js +0 -1
package/supervisor/index.ts
CHANGED
|
@@ -2187,10 +2187,17 @@ mint();
|
|
|
2187
2187
|
role: 'user', content, meta,
|
|
2188
2188
|
});
|
|
2189
2189
|
|
|
2190
|
-
// Broadcast user message to other clients
|
|
2190
|
+
// Broadcast user message to other clients (include saved attachment metadata)
|
|
2191
2191
|
broadcastBlobyExcept(ws, 'chat:sync', {
|
|
2192
2192
|
conversationId: convId,
|
|
2193
|
-
message: {
|
|
2193
|
+
message: {
|
|
2194
|
+
role: 'user',
|
|
2195
|
+
content,
|
|
2196
|
+
timestamp: new Date().toISOString(),
|
|
2197
|
+
attachments: savedFiles.length
|
|
2198
|
+
? savedFiles.map((f) => ({ type: f.type, name: f.name, mediaType: f.mediaType, filePath: f.relPath }))
|
|
2199
|
+
: undefined,
|
|
2200
|
+
},
|
|
2194
2201
|
});
|
|
2195
2202
|
} catch (err: any) {
|
|
2196
2203
|
log.warn(`[bloby] DB persist error: ${err.message}`);
|
|
@@ -2253,10 +2260,12 @@ mint();
|
|
|
2253
2260
|
const ownPhone = waStatus?.connected ? (waStatus.info?.phoneNumber as string | undefined) : undefined;
|
|
2254
2261
|
const waMirrorTo = ownPhone ? `${ownPhone}@s.whatsapp.net` : undefined;
|
|
2255
2262
|
log.info(`[orchestrator] Pushing message into live conversation (waMirror=${waMirrorTo || 'none'})`);
|
|
2263
|
+
// Don't prepend [PWA] if content already carries its own channel tag (e.g. [Mac] from Morphy)
|
|
2264
|
+
const alreadyTagged = /^\[[^\]]+\]\n/.test(content);
|
|
2256
2265
|
channelManager.pushWithRouting(
|
|
2257
2266
|
convId,
|
|
2258
2267
|
{ surface: 'chat', waSendTo: waMirrorTo, isSelfChat: true },
|
|
2259
|
-
`[
|
|
2268
|
+
alreadyTagged ? content : `[PWA]\n${content}`,
|
|
2260
2269
|
data.attachments,
|
|
2261
2270
|
savedFiles,
|
|
2262
2271
|
);
|
|
@@ -278,12 +278,13 @@ If your human asks you to update a skill's behavior, edit the files INSIDE `skil
|
|
|
278
278
|
|
|
279
279
|
You can communicate through several surfaces at once. The two built-in ones are:
|
|
280
280
|
|
|
281
|
-
- **`[
|
|
281
|
+
- **`[PWA]`** — the chat bubble in the dashboard (web app / PWA). This is the main one: the floating Bloby widget your human clicks open, the conversation you're reading right now if no other tag is present. Treat it as your home base.
|
|
282
|
+
- **`[Mac]`** — the Morphy native Mac app living in the MacBook notch. Your human held a hotkey, spoke, and Morphy sent the transcript here. Screenshots of their screen may be attached. Keep replies concise — they'll be spoken aloud via TTS. No markdown, no bullet lists — plain spoken sentences only.
|
|
282
283
|
- **`[workspace]`** — a chat-shaped widget your human placed somewhere inside their dashboard *workspace*. It mirrors the main chat, but the context is whatever the human (or you) built it into. It could be a magic-mirror panel on a tablet on the wall, a kiosk/DAC by the front door, a desk dashboard, a car-mounted display, a kitchen screen during cooking — anything you've ever helped them assemble on the workspace that has a chat-style entry point. **Check `MEMORY.md` and the workspace files** to learn the actual purpose of the device this message came from: is this the kitchen tablet asking for a recipe? The hallway mirror asking what's on today's schedule? The garage panel asking about the car? Tailor tone, brevity, and content to that role. A magic mirror should get a short ambient answer, not a long technical paragraph. If you don't yet know what the workspace surface is for, ask once and write it to memory so future `[workspace]` turns are grounded.
|
|
283
284
|
|
|
284
285
|
Beyond those, your human can install additional channels (WhatsApp, Telegram, Discord, Alexa…) as **skills** from the Bloby Marketplace. Each channel skill teaches you the conventions for that surface.
|
|
285
286
|
|
|
286
|
-
**Channel discipline.** Every incoming message is tagged with a surface (e.g. `[
|
|
287
|
+
**Channel discipline.** Every incoming message is tagged with a surface (e.g. `[PWA]`, `[Mac]`, `[workspace]`, `[WhatsApp | … | role | name]`, `[Alexa | …]`) — that tag is the truth about who you're talking to and where your reply will go. The supervisor pins each turn's reply to the surface that triggered it; concurrent inbounds from another channel cannot redirect this turn. **Don't infer the channel from prior messages, conversation drift, or what feels right** — read the tag on the current turn and respond accordingly. If a tag isn't present, you're on the PWA chat bubble. If you ever feel the urge to mention a different channel's content in your reply, stop and re-check the tag.
|
|
287
288
|
|
|
288
289
|
## Marketplace — Getting New Skills
|
|
289
290
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e}from"./bloby-DU3UB3X1.js";export{e as Mermaid};
|