spora 0.2.33 → 0.2.34
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/web-chat/chat.html +16 -19
- package/package.json +1 -1
package/dist/web-chat/chat.html
CHANGED
|
@@ -408,35 +408,32 @@
|
|
|
408
408
|
flex: 1;
|
|
409
409
|
margin: 0 12px;
|
|
410
410
|
display: flex;
|
|
411
|
-
|
|
412
|
-
gap:
|
|
411
|
+
flex-direction: column;
|
|
412
|
+
gap: 3px;
|
|
413
|
+
max-width: 140px;
|
|
413
414
|
}
|
|
414
415
|
|
|
415
416
|
.intelligence-label {
|
|
416
|
-
font-size: 0.
|
|
417
|
-
color: rgba(255, 255, 255, 0.
|
|
418
|
-
|
|
419
|
-
letter-spacing: 0.08em;
|
|
417
|
+
font-size: 0.5rem;
|
|
418
|
+
color: rgba(255, 255, 255, 0.2);
|
|
419
|
+
letter-spacing: 0.03em;
|
|
420
420
|
white-space: nowrap;
|
|
421
|
-
font-weight: 600;
|
|
422
421
|
}
|
|
423
422
|
|
|
424
423
|
.intelligence-track {
|
|
425
|
-
|
|
426
|
-
height:
|
|
424
|
+
width: 100%;
|
|
425
|
+
height: 2px;
|
|
427
426
|
background: rgba(255, 255, 255, 0.06);
|
|
428
|
-
border-radius:
|
|
427
|
+
border-radius: 1px;
|
|
429
428
|
overflow: hidden;
|
|
430
|
-
min-width: 60px;
|
|
431
429
|
}
|
|
432
430
|
|
|
433
431
|
.intelligence-fill {
|
|
434
432
|
height: 100%;
|
|
435
433
|
width: 0%;
|
|
436
|
-
border-radius:
|
|
434
|
+
border-radius: 1px;
|
|
437
435
|
background: linear-gradient(90deg, #389e77 0%, #4fc3a0 50%, #7ee8c7 100%);
|
|
438
436
|
transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
439
|
-
box-shadow: 0 0 6px rgba(56, 158, 119, 0.4);
|
|
440
437
|
}
|
|
441
438
|
|
|
442
439
|
/* Heartbeat config button */
|
|
@@ -613,7 +610,7 @@
|
|
|
613
610
|
<div class="top-bar">
|
|
614
611
|
<img class="logo-img" src="/logo.png" alt="Spora" />
|
|
615
612
|
<div class="intelligence-bar" id="intelligenceBar">
|
|
616
|
-
<span class="intelligence-label">
|
|
613
|
+
<span class="intelligence-label">intelligence</span>
|
|
617
614
|
<div class="intelligence-track">
|
|
618
615
|
<div class="intelligence-fill" id="intelligenceFill"></div>
|
|
619
616
|
</div>
|
|
@@ -1180,12 +1177,12 @@
|
|
|
1180
1177
|
const intelligenceFill = document.getElementById('intelligenceFill');
|
|
1181
1178
|
|
|
1182
1179
|
function calculateIntelligence(stats) {
|
|
1183
|
-
//
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
//
|
|
1180
|
+
// Weighted raw score — learnings matter most, relationships next, interactions least
|
|
1181
|
+
const raw = (stats.learnings * 3) + (stats.relationships * 2) + (stats.interactions * 0.2);
|
|
1182
|
+
// Much slower curve: needs ~50 learnings + relationships to hit ~20%, hundreds to hit 50%
|
|
1183
|
+
// A 1-hour bot with ~10 interactions should be around 3-8%
|
|
1187
1184
|
if (raw === 0) return 0;
|
|
1188
|
-
const pct = Math.min(
|
|
1185
|
+
const pct = Math.min(95, (Math.log(raw + 1) / Math.log(50000)) * 100);
|
|
1189
1186
|
return Math.round(pct * 10) / 10;
|
|
1190
1187
|
}
|
|
1191
1188
|
|