kingkont 0.10.4 → 0.10.5

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kingkont",
3
- "version": "0.10.4",
3
+ "version": "0.10.5",
4
4
  "description": "KingKont · Chatium — нод-редактор сцен с AI-генерацией (картинки/видео/голос/SFX/музыка/текст)",
5
5
  "main": "main.js",
6
6
  "bin": {
package/renderer/board.js CHANGED
@@ -213,10 +213,16 @@ async function renderWelcomeIdentity() {
213
213
  let status = null;
214
214
  try { status = await window.appChatium?.status?.(); } catch {}
215
215
  if (status?.connected) {
216
- // Приоритет имени: displayName (то что показывает Chatium в UI)
216
+ // Приоритет имени: displayName (UI Chatium) confirmedEmail
217
217
  // email → login → fullName → name → userId.
218
- const name = status.displayName || status.email || status.login || status.fullName || status.name || status.userId || 'KingKont';
218
+ const name = status.displayName || status.confirmedEmail || status.email
219
+ || status.login || status.fullName || status.name
220
+ || status.userId || 'KingKont';
219
221
  const sub = status.userId && status.userId !== name ? `· ${status.userId.slice(0, 8)}` : '';
222
+ // Диагностика: если ничего кроме userId не пришло — лог в консоль.
223
+ if (!status.displayName && !status.confirmedEmail && !status.email) {
224
+ console.log('[chat-identity] available fields:', status, 'allKeys:', status._allKeys);
225
+ }
220
226
  wrap.innerHTML = `
221
227
  <span style="color:#5c5; font-size:13px; line-height:1;">●</span>
222
228
  <span class="who">${escapeHtml(name)}</span>