viberoom 0.5.8 โ 0.5.9
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/README.md +18 -0
- package/dist/context.js +6 -0
- package/dist/hub.js +4 -2
- package/dist/mcp-skills-server.js +119 -0
- package/dist/persona.js +98 -32
- package/dist/room-design.js +205 -0
- package/dist/room.js +253 -118
- package/dist/server.js +53 -0
- package/dist/skills.js +28 -2
- package/dist/templates.js +17 -0
- package/package.json +1 -1
- package/ui/app.css +13 -1
- package/ui/app.js +164 -92
- package/ui/avatars.js +125 -26
- package/ui/icons.js +2 -0
- package/ui/theme.css +12 -2
package/ui/avatars.js
CHANGED
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
? `<span class="avatar-badge" title="${title}"><img src="${escapeAttr(recipe.icon)}" alt="" onerror="this.replaceWith(document.createTextNode('${letter}'))"></span>`
|
|
68
68
|
: `<span class="avatar-badge" title="${title}">${letter}</span>`;
|
|
69
69
|
}
|
|
70
|
+
if (opts.muted && participant.kind === "agent" && window.Icons) badge = `<span class="avatar-badge muted" title="muted: receives no prompts">${window.Icons.svg("mute")}</span>`;
|
|
70
71
|
return `<span class="avatar" style="width:${size}px;height:${size}px">${svg}${badge}${status}</span>`;
|
|
71
72
|
}
|
|
72
73
|
|
|
@@ -77,37 +78,135 @@
|
|
|
77
78
|
"๐", "โญ", "๐ฅ", "๐", "๐ต", "๐", "๐ง", "๐ธ", "๐", "๐ธ", "๐ง ", "๐ฏ", "๐งฉ", "๐", "๐", "โ",
|
|
78
79
|
];
|
|
79
80
|
|
|
80
|
-
|
|
81
|
+
const EMOJI_NAMES = {
|
|
82
|
+
"๐ญ": "theatre masks drama roles", "๐": "rocket launch ship", "๐งช": "test tube experiment lab", "๐ ๏ธ": "hammer and wrench tools",
|
|
83
|
+
"๐จ": "palette art design paint", "๐": "books library docs", "๐ง ": "brain mind thinking", "๐ฌ": "speech bubble chat talk",
|
|
84
|
+
"๐ฌ": "microscope science research", "๐ฏ": "target goal focus aim", "๐": "octopus github", "โ": "coffee cup break cafe",
|
|
85
|
+
"๐": "rainbow colors", "๐๏ธ": "construction crane building site", "๐ฎ": "game controller gaming play", "๐ฅ": "fire hot flame",
|
|
86
|
+
"๐งฉ": "puzzle piece", "๐": "chart up growth trending", "๐บ๏ธ": "world map", "๐ง": "headphones audio music",
|
|
87
|
+
"๐ฑ": "seedling plant grow sprout", "๐ ": "house home", "๐ธ": "flying saucer ufo", "๐งญ": "compass navigate direction",
|
|
88
|
+
"๐งโ๐ป": "technologist developer coder programmer laptop", "โ๏ธ": "hammer and pick tools forge", "๐จ": "hammer build", "๐ง": "wrench fix repair",
|
|
89
|
+
"๐ฉ": "nut and bolt hardware", "โ๏ธ": "gear settings cog", "๐งฐ": "toolbox tools kit", "๐ช": "screwdriver",
|
|
90
|
+
"๐งฑ": "brick wall", "๐ญ": "factory plant", "๐": "electric plug power", "๐ฅ๏ธ": "desktop computer monitor screen",
|
|
91
|
+
"๐ป": "laptop computer", "โจ๏ธ": "keyboard typing", "๐ค": "robot bot ai", "๐": "bug insect caterpillar",
|
|
92
|
+
"๐": "lady beetle ladybug bug", "โก": "lightning bolt zap fast electric", "๐": "battery energy charge", "๐": "bar chart data statistics",
|
|
93
|
+
"๐": "chart down decline", "๐งฎ": "abacus math calculate", "๐": "magnifying glass search find zoom", "๐ญ": "telescope explore astronomy",
|
|
94
|
+
"๐งฌ": "dna genetics biology", "โ๏ธ": "alembic chemistry", "๐งฒ": "magnet attract", "๐ก": "satellite antenna signal radar",
|
|
95
|
+
"๐ฐ๏ธ": "satellite space orbit", "๐๏ธ": "file cabinet archive storage", "๐พ": "floppy disk save storage", "๐๏ธ": "card file box archive",
|
|
96
|
+
"๐": "globe web internet network", "๐": "link chain url", "โ๏ธ": "cloud weather sky", "โ๏ธ": "writing hand write author",
|
|
97
|
+
"๐": "memo note pencil notes", "๐": "open book read", "๐ฐ": "newspaper news", "๐": "scroll document parchment",
|
|
98
|
+
"๐": "paperclip attach", "๐": "pushpin pin", "๐๏ธ": "card index dividers files folders", "๐ท๏ธ": "label tag price",
|
|
99
|
+
"โ๏ธ": "envelope mail email letter", "๐ฃ": "megaphone announce loud", "๐ฃ๏ธ": "speaking head talk speech", "๐ค": "handshake deal agreement",
|
|
100
|
+
"๐ฅ": "busts silhouette people team group", "๐๏ธ": "paintbrush paint brush", "๐ผ๏ธ": "framed picture image painting", "๐ท": "camera photo",
|
|
101
|
+
"๐ฌ": "clapper board movie film", "๐ฅ": "movie camera video", "๐ต": "musical note music", "๐น": "piano keys music",
|
|
102
|
+
"๐ธ": "guitar music rock", "๐ค": "microphone sing karaoke", "๐ฒ": "game die dice random", "โ๏ธ": "chess pawn strategy",
|
|
103
|
+
"๐งธ": "teddy bear toy", "๐ช": "circus tent", "๐": "gift present wrapped", "๐
": "calendar date schedule",
|
|
104
|
+
"โฐ": "alarm clock time", "โณ": "hourglass waiting time sand", "๐ณ๏ธ": "ballot box vote election", "โ๏ธ": "balance scale justice law",
|
|
105
|
+
"๐งพ": "receipt invoice bill", "๐ฐ": "money bag budget cash", "๐ฆ": "package box parcel delivery", "๐": "delivery truck shipping",
|
|
106
|
+
"๐": "shopping cart", "๐ฆ": "bank finance", "๐ข": "office building company", "๐": "graduation cap learn study",
|
|
107
|
+
"๐ซ": "school", "๐": "chequered flag finish race", "๐": "trophy win award cup", "๐": "gem stone diamond",
|
|
108
|
+
"๐": "locked with key security", "๐": "key access password", "๐ก๏ธ": "shield protect security defense", "๐จ": "police light alarm alert siren",
|
|
109
|
+
"๐ฆ": "traffic light", "๐งฏ": "fire extinguisher", "๐ฉบ": "stethoscope health doctor medical", "๐งน": "broom clean sweep",
|
|
110
|
+
"โป๏ธ": "recycle recycling", "๐งโ๐ณ": "cook chef kitchen", "๐งโ๐ฌ": "scientist lab", "๐งโ๐จ": "artist painter",
|
|
111
|
+
"๐งโ๐ซ": "teacher", "๐งโ๐": "astronaut space", "๐ต๏ธ": "detective spy investigate", "๐ง": "mage wizard magic",
|
|
112
|
+
"๐ฆ": "owl wise night bird", "๐ฆ": "fox", "๐ผ": "panda", "๐": "honeybee bee",
|
|
113
|
+
"๐ข": "turtle slow tortoise", "๐ฌ": "dolphin", "๐ฆ": "unicorn", "๐ฒ": "dragon face",
|
|
114
|
+
"๐": "earth globe world europe africa", "๐": "crescent moon night", "โญ": "star", "๐": "water wave ocean sea",
|
|
115
|
+
"๐๏ธ": "snow capped mountain", "๐๏ธ": "desert island beach", "๐ฒ": "evergreen tree forest pine", "๐": "four leaf clover luck",
|
|
116
|
+
"๐ธ": "cherry blossom flower spring", "๐": "pizza", "๐": "red apple fruit", "โจ": "sparkles magic shiny",
|
|
117
|
+
"๐ก": "light bulb idea", "๐ฎ": "crystal ball fortune", "๐ช": "magic wand", "โค๏ธ": "red heart love",
|
|
118
|
+
"๐ฏ": "tiger face", "๐ธ": "frog face", "๐ฉโ๐ป": "woman technologist developer coder", "๐บ": "wolf face",
|
|
119
|
+
"๐ง": "penguin", "๐ฆ": "lion face", "๐จ": "koala", "๐พ": "alien monster space invader pixel",
|
|
120
|
+
"๐ฑ": "cat face", "๐ถ": "dog face", "๐ฆ": "raccoon", "๐ฆ": "butterfly",
|
|
121
|
+
"๐ฆฉ": "flamingo", "๐ฆ": "t-rex dinosaur", "๐ณ": "spouting whale", "๐ฆญ": "seal",
|
|
122
|
+
"๐น": "hamster", "๐ฆ": "hedgehog", "๐ป": "bear face", "๐ฎ": "cow face",
|
|
123
|
+
"๐ต": "monkey face", "๐งโ๐": "firefighter", "๐งโโ๏ธ": "health worker doctor nurse", "๐งโโ๏ธ": "pilot",
|
|
124
|
+
"๐ง": "vampire", "๐ง": "merperson mermaid", "๐ง": "genie", "๐ฆธ": "superhero",
|
|
125
|
+
"๐ฅท": "ninja", "๐ค ": "cowboy hat face", "๐ฝ": "alien", "๐ป": "ghost",
|
|
126
|
+
"๐": "jack-o-lantern pumpkin halloween", "๐ต": "cactus",
|
|
127
|
+
"๐": "grinning face smile happy", "๐": "grinning face smiling eyes happy", "๐": "face with tears of joy laugh lol", "๐": "slightly smiling face",
|
|
128
|
+
"๐": "winking face wink", "๐": "smiling face heart eyes love", "๐ค": "thinking face hmm", "๐": "smiling face sunglasses cool",
|
|
129
|
+
"๐ฅณ": "partying face party celebrate", "๐
": "grinning face sweat nervous", "๐ข": "crying face sad tear", "๐ก": "pouting face angry mad",
|
|
130
|
+
"๐": "thumbs up yes like ok", "๐": "thumbs down no dislike", "๐": "waving hand hello bye", "๐": "folded hands thanks please pray",
|
|
131
|
+
"๐": "clapping hands applause bravo", "๐ช": "flexed biceps strong muscle", "๐": "party popper celebrate tada", "๐": "purple heart",
|
|
132
|
+
"โ
": "check mark button done yes", "โ": "cross mark no wrong", "โ ๏ธ": "warning caution", "๐คซ": "shushing face quiet hush",
|
|
133
|
+
};
|
|
134
|
+
function emojiName(emoji) {
|
|
135
|
+
return EMOJI_NAMES[emoji] || "";
|
|
136
|
+
}
|
|
137
|
+
function emojiMatches(emoji, query) {
|
|
138
|
+
return emoji === query || emojiName(emoji).includes(query);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function searchableGrid(list, current, onPick, none) {
|
|
81
142
|
const wrap = document.createElement("div");
|
|
82
|
-
wrap.className = "
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
143
|
+
wrap.className = "emoji-pick";
|
|
144
|
+
const search = document.createElement("input");
|
|
145
|
+
search.type = "search";
|
|
146
|
+
search.className = "emoji-search";
|
|
147
|
+
search.placeholder = "Search by nameโฆ";
|
|
148
|
+
search.autocomplete = "off";
|
|
149
|
+
search.spellcheck = false;
|
|
150
|
+
search.setAttribute("aria-label", "Search emoji by name");
|
|
151
|
+
const grid = document.createElement("div");
|
|
152
|
+
grid.className = "avatar-picker";
|
|
153
|
+
let value = current || "";
|
|
154
|
+
const button = (text, title, cls, onClick) => {
|
|
155
|
+
const b = document.createElement("button");
|
|
156
|
+
b.type = "button";
|
|
157
|
+
b.textContent = text;
|
|
158
|
+
if (title) b.title = title;
|
|
159
|
+
b.className = cls;
|
|
160
|
+
b.addEventListener("click", onClick);
|
|
161
|
+
return b;
|
|
162
|
+
};
|
|
163
|
+
const render = () => {
|
|
164
|
+
grid.innerHTML = "";
|
|
165
|
+
const q = search.value.trim().toLowerCase();
|
|
166
|
+
if (none && !q) {
|
|
167
|
+
grid.appendChild(button(none.label, none.title, "none" + (!value ? " selected" : ""), () => {
|
|
168
|
+
value = "";
|
|
169
|
+
onPick("");
|
|
170
|
+
render();
|
|
171
|
+
}));
|
|
172
|
+
}
|
|
173
|
+
const shown = q ? list.filter((e) => emojiMatches(e, q)) : list;
|
|
174
|
+
for (const e of shown) {
|
|
175
|
+
grid.appendChild(button(e, emojiName(e), e === value ? "selected" : "", () => {
|
|
176
|
+
value = e;
|
|
101
177
|
onPick(e);
|
|
102
|
-
render(
|
|
103
|
-
});
|
|
104
|
-
wrap.appendChild(b);
|
|
178
|
+
render();
|
|
179
|
+
}));
|
|
105
180
|
}
|
|
181
|
+
if (!shown.length) {
|
|
182
|
+
const empty = document.createElement("div");
|
|
183
|
+
empty.className = "emoji-none";
|
|
184
|
+
empty.textContent = `No emoji called "${q}" here.`;
|
|
185
|
+
grid.appendChild(empty);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
for (const type of ["input", "change"]) {
|
|
189
|
+
search.addEventListener(type, (e) => {
|
|
190
|
+
e.stopPropagation();
|
|
191
|
+
if (type === "input") render();
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
search.addEventListener("keydown", (e) => {
|
|
195
|
+
e.stopPropagation();
|
|
196
|
+
if (e.key === "Enter") e.preventDefault();
|
|
197
|
+
});
|
|
198
|
+
wrap.append(search, grid);
|
|
199
|
+
render();
|
|
200
|
+
wrap.setValue = (v) => {
|
|
201
|
+
value = v || "";
|
|
202
|
+
render();
|
|
106
203
|
};
|
|
107
|
-
render(current || "");
|
|
108
|
-
wrap.setValue = render;
|
|
109
204
|
return wrap;
|
|
110
205
|
}
|
|
111
206
|
|
|
112
|
-
|
|
207
|
+
function pickerElement(current, onPick) {
|
|
208
|
+
return searchableGrid(GALLERY, current, onPick, { label: "Aa", title: "Initials" });
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
window.Avatars = { avatarSvg, avatarHtml, initials, pickerElement, searchableGrid, emojiName, GALLERY };
|
|
113
212
|
})();
|
package/ui/icons.js
CHANGED
|
@@ -26,6 +26,8 @@
|
|
|
26
26
|
bell: `<path d="M6 8a6 6 0 1 1 12 0v5l2 3H4l2-3V8z"/><path d="M10 20a2 2 0 0 0 4 0"/>`,
|
|
27
27
|
"bell-off": BELL_OFF,
|
|
28
28
|
hush: BELL_OFF,
|
|
29
|
+
unmute: `<path d="M19 5H5a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h7.5l3.5 3.5V17h3a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2z"/>`,
|
|
30
|
+
mute: `<path d="M5.5 17H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h8.2"/><path d="M16.4 5H19a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-3v3.5L12.5 17H9"/><path d="M5 20.5L16 3"/>`,
|
|
29
31
|
at: `<circle cx="12" cy="12" r="4"/><path d="M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.1"/>`,
|
|
30
32
|
trash: `<path d="M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3"/>`,
|
|
31
33
|
pencil: `<path d="M17 3a2.8 2.8 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"/>`,
|
package/ui/theme.css
CHANGED
|
@@ -276,8 +276,10 @@ pre { background: var(--code-bg); color: #f4f2ff; padding: 10px 12px; border-rad
|
|
|
276
276
|
.section.danger > h4 { color: var(--rose-ink); }
|
|
277
277
|
.save-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 2px; }
|
|
278
278
|
.save-row .hint { flex: 1; margin: 0; }
|
|
279
|
-
.
|
|
280
|
-
.
|
|
279
|
+
.field > .label .fsaved { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: var(--mint-ink); font-size: 11px; font-weight: 800; animation: fade-in var(--t-base) var(--ease-out); }
|
|
280
|
+
.field > .label .fsaved .i { width: 13px; height: 13px; }
|
|
281
|
+
.switch > .label .fsaved { float: right; display: inline-flex; align-items: center; gap: 3px; color: var(--mint-ink); font-size: 11px; font-weight: 800; animation: fade-in var(--t-base) var(--ease-out); }
|
|
282
|
+
.switch > .label .fsaved .i { width: 13px; height: 13px; }
|
|
281
283
|
.section .row-btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin: 2px 0 6px; flex-wrap: wrap; }
|
|
282
284
|
.row-btns { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
|
|
283
285
|
.row-btns.start { justify-content: flex-start; }
|
|
@@ -342,6 +344,8 @@ p .geek-tip, .hint > .geek-tip, .switch .label > .geek-tip { margin-left: 8px; }
|
|
|
342
344
|
.avatar .av-tile { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 800; line-height: 1; font-family: var(--font); user-select: none; }
|
|
343
345
|
.avatar-badge { position: absolute; right: -4px; bottom: -4px; width: 44%; height: 44%; min-width: 15px; min-height: 15px; border-radius: 6px; background: #fff; border: 2px solid #fff; box-shadow: var(--shadow-tile); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--primary); overflow: hidden; }
|
|
344
346
|
.avatar-badge img { width: 72%; height: 72%; object-fit: contain; }
|
|
347
|
+
.avatar-badge.muted { color: var(--warm-ink); background: var(--warm); border-color: #fff; }
|
|
348
|
+
.avatar-badge.muted .i { width: 78%; height: 78%; }
|
|
345
349
|
.avatar-status { position: absolute; left: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: var(--faint); }
|
|
346
350
|
.avatar-status.status-idle { background: var(--st-ready-dot); }
|
|
347
351
|
.avatar-status.status-thinking { background: var(--st-thinking-dot); animation: pulse 1.2s ease-in-out infinite; }
|
|
@@ -355,6 +359,11 @@ p .geek-tip, .hint > .geek-tip, .switch .label > .geek-tip { margin-left: 8px; }
|
|
|
355
359
|
.avatar-picker button:hover { transform: translateY(-1px); background: var(--lav); }
|
|
356
360
|
.avatar-picker button.selected { border-color: var(--primary); background: var(--lav); }
|
|
357
361
|
.avatar-picker button.none { font-size: 12px; font-weight: 800; color: var(--muted); }
|
|
362
|
+
.emoji-pick { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; min-width: 0; }
|
|
363
|
+
.emoji-pick .avatar-picker { margin: 0; }
|
|
364
|
+
.emoji-pick .emoji-search, .field .emoji-pick .emoji-search { width: 100%; box-sizing: border-box; height: 32px; min-height: 0; padding: 0 12px; border-radius: var(--r-sm); border: 2px solid var(--lav); background: var(--soft); font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); }
|
|
365
|
+
.emoji-pick .emoji-search:focus, .field .emoji-pick .emoji-search:focus { outline: none; border-color: var(--primary); }
|
|
366
|
+
.emoji-none { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 700; padding: 8px 4px; }
|
|
358
367
|
.avatar-stack { display: flex; }
|
|
359
368
|
.avatar-stack .avatar { margin-left: -8px; }
|
|
360
369
|
.avatar-stack .avatar .av-tile { box-shadow: 0 0 0 2px #fff; }
|
|
@@ -406,6 +415,7 @@ code .open-link { color: inherit; }
|
|
|
406
415
|
.mention-menu.inline { left: 0; top: 100%; bottom: auto; margin-top: 4px; }
|
|
407
416
|
.emoji-menu { min-width: 0; width: 352px; padding: 8px; }
|
|
408
417
|
.emoji-menu .avatar-picker { margin: 0; grid-template-columns: repeat(8, 1fr); }
|
|
418
|
+
#rp-emoji-picker .avatar-picker { max-height: 236px; }
|
|
409
419
|
.dialog { border: 0; border-radius: 22px; padding: 24px 26px; width: 580px; max-width: 94vw; max-height: 90vh; box-shadow: var(--shadow-dialog); overflow: auto; overflow-x: hidden; background: var(--card); color: var(--ink); }
|
|
410
420
|
.dialog::backdrop { background: rgba(28, 27, 51, 0.4); backdrop-filter: blur(4px); }
|
|
411
421
|
.dialog[open] { animation: pop var(--t-slow) var(--ease-pop); }
|