holomime 1.4.1 → 1.5.0
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/cli.js +575 -25
- package/dist/neuralspace/brain-data.json +1 -0
- package/dist/neuralspace/index.html +83 -0
- package/dist/neuralspace/neuralspace.js +839 -0
- package/dist/neuralspace/styles.css +486 -0
- package/package.json +6 -1
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
/* HoloMime Live — NeuralSpace Dark Theme */
|
|
2
|
+
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--bg: #110d1f;
|
|
6
|
+
--bg-panel: rgba(17, 13, 31, 0.92);
|
|
7
|
+
--border: rgba(255,255,255,0.08);
|
|
8
|
+
--text: #e8e4f0;
|
|
9
|
+
--text-muted: #8a84a0;
|
|
10
|
+
--accent: #8b5cf6;
|
|
11
|
+
--coral: #f97066;
|
|
12
|
+
--sage: #22c55e;
|
|
13
|
+
--gold: #f59e0b;
|
|
14
|
+
--teal: #14b8a6;
|
|
15
|
+
--font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
|
|
16
|
+
--mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
body {
|
|
20
|
+
background: var(--bg);
|
|
21
|
+
color: var(--text);
|
|
22
|
+
font-family: var(--font);
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
height: 100vh;
|
|
25
|
+
width: 100vw;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#app {
|
|
29
|
+
display: flex;
|
|
30
|
+
height: 100vh;
|
|
31
|
+
width: 100vw;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* ─── Canvas Area ─── */
|
|
35
|
+
#canvas-area {
|
|
36
|
+
flex: 1;
|
|
37
|
+
position: relative;
|
|
38
|
+
min-width: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
#canvas-area canvas {
|
|
42
|
+
display: block;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* ─── Top Bar ─── */
|
|
48
|
+
#top-bar {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 0; left: 0; right: 0;
|
|
51
|
+
height: 48px;
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
padding: 0 20px;
|
|
56
|
+
z-index: 10;
|
|
57
|
+
background: linear-gradient(180deg, rgba(17,13,31,0.9) 0%, transparent 100%);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.brand {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
gap: 8px;
|
|
64
|
+
font-size: 15px;
|
|
65
|
+
font-weight: 700;
|
|
66
|
+
color: var(--text);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.brand span { font-weight: 400; color: var(--text-muted); }
|
|
70
|
+
|
|
71
|
+
.status-badge {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 6px;
|
|
75
|
+
padding: 4px 12px;
|
|
76
|
+
border-radius: 20px;
|
|
77
|
+
background: rgba(34,197,94,0.12);
|
|
78
|
+
border: 1px solid rgba(34,197,94,0.25);
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
color: var(--sage);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.status-dot {
|
|
84
|
+
width: 6px; height: 6px;
|
|
85
|
+
border-radius: 50%;
|
|
86
|
+
background: var(--sage);
|
|
87
|
+
box-shadow: 0 0 8px var(--sage);
|
|
88
|
+
animation: pulse 2s ease-in-out infinite;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.status-badge.disconnected {
|
|
92
|
+
background: rgba(249,112,102,0.12);
|
|
93
|
+
border-color: rgba(249,112,102,0.25);
|
|
94
|
+
color: var(--coral);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.status-badge.disconnected .status-dot {
|
|
98
|
+
background: var(--coral);
|
|
99
|
+
box-shadow: 0 0 8px var(--coral);
|
|
100
|
+
animation: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@keyframes pulse {
|
|
104
|
+
0%, 100% { opacity: 1; }
|
|
105
|
+
50% { opacity: 0.4; }
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* ─── Health Display ─── */
|
|
109
|
+
#health-display {
|
|
110
|
+
position: absolute;
|
|
111
|
+
bottom: 20px; left: 20px;
|
|
112
|
+
z-index: 10;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.health-ring {
|
|
116
|
+
width: 90px; height: 90px;
|
|
117
|
+
position: relative;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.health-ring svg {
|
|
121
|
+
transform: rotate(-90deg);
|
|
122
|
+
width: 90px; height: 90px;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.health-ring .bg-ring {
|
|
126
|
+
fill: none;
|
|
127
|
+
stroke: rgba(255,255,255,0.06);
|
|
128
|
+
stroke-width: 4;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.health-ring .fg-ring {
|
|
132
|
+
fill: none;
|
|
133
|
+
stroke-width: 4;
|
|
134
|
+
stroke-linecap: round;
|
|
135
|
+
transition: stroke-dashoffset 0.8s ease, stroke 0.5s ease;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.health-value {
|
|
139
|
+
position: absolute;
|
|
140
|
+
top: 50%; left: 50%;
|
|
141
|
+
transform: translate(-50%, -50%);
|
|
142
|
+
text-align: center;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.health-value .number {
|
|
146
|
+
font-size: 24px;
|
|
147
|
+
font-weight: 700;
|
|
148
|
+
line-height: 1;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.health-value .grade {
|
|
152
|
+
font-size: 11px;
|
|
153
|
+
color: var(--text-muted);
|
|
154
|
+
margin-top: 2px;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* ─── Sidebar ─── */
|
|
158
|
+
#sidebar {
|
|
159
|
+
width: 340px;
|
|
160
|
+
flex-shrink: 0;
|
|
161
|
+
background: var(--bg-panel);
|
|
162
|
+
border-left: 1px solid var(--border);
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-direction: column;
|
|
165
|
+
overflow: hidden;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sidebar-header {
|
|
169
|
+
padding: 16px 20px;
|
|
170
|
+
border-bottom: 1px solid var(--border);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.sidebar-header h2 {
|
|
174
|
+
font-size: 13px;
|
|
175
|
+
font-weight: 600;
|
|
176
|
+
text-transform: uppercase;
|
|
177
|
+
letter-spacing: 0.05em;
|
|
178
|
+
color: var(--text-muted);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.sidebar-header .agent-info {
|
|
182
|
+
margin-top: 6px;
|
|
183
|
+
font-size: 12px;
|
|
184
|
+
color: var(--text-muted);
|
|
185
|
+
font-family: var(--mono);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* ─── Pattern List ─── */
|
|
189
|
+
#pattern-list {
|
|
190
|
+
flex: 1;
|
|
191
|
+
overflow-y: auto;
|
|
192
|
+
padding: 12px 0;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.pattern-item {
|
|
196
|
+
padding: 10px 20px;
|
|
197
|
+
border-bottom: 1px solid var(--border);
|
|
198
|
+
animation: fadeIn 0.3s ease;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
@keyframes fadeIn {
|
|
202
|
+
from { opacity: 0; transform: translateY(4px); }
|
|
203
|
+
to { opacity: 1; transform: translateY(0); }
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.pattern-header {
|
|
207
|
+
display: flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
justify-content: space-between;
|
|
210
|
+
gap: 8px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.pattern-name {
|
|
214
|
+
font-size: 13px;
|
|
215
|
+
font-weight: 600;
|
|
216
|
+
color: var(--text);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.severity-badge {
|
|
220
|
+
font-size: 10px;
|
|
221
|
+
font-weight: 600;
|
|
222
|
+
text-transform: uppercase;
|
|
223
|
+
padding: 2px 8px;
|
|
224
|
+
border-radius: 10px;
|
|
225
|
+
letter-spacing: 0.04em;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.severity-badge.concern {
|
|
229
|
+
background: rgba(249,112,102,0.15);
|
|
230
|
+
color: var(--coral);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.severity-badge.warning {
|
|
234
|
+
background: rgba(245,158,11,0.15);
|
|
235
|
+
color: var(--gold);
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.severity-badge.info {
|
|
239
|
+
background: rgba(139,92,246,0.15);
|
|
240
|
+
color: var(--accent);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.pattern-desc {
|
|
244
|
+
margin-top: 4px;
|
|
245
|
+
font-size: 11px;
|
|
246
|
+
color: var(--text-muted);
|
|
247
|
+
line-height: 1.4;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.pattern-pct {
|
|
251
|
+
margin-top: 6px;
|
|
252
|
+
height: 3px;
|
|
253
|
+
background: rgba(255,255,255,0.06);
|
|
254
|
+
border-radius: 2px;
|
|
255
|
+
overflow: hidden;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.pattern-pct-fill {
|
|
259
|
+
height: 100%;
|
|
260
|
+
border-radius: 2px;
|
|
261
|
+
transition: width 0.5s ease;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* ─── Activity Feed ─── */
|
|
265
|
+
#activity-feed {
|
|
266
|
+
border-top: 1px solid var(--border);
|
|
267
|
+
max-height: 200px;
|
|
268
|
+
overflow-y: auto;
|
|
269
|
+
padding: 12px 0;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.feed-header {
|
|
273
|
+
padding: 0 20px 8px;
|
|
274
|
+
font-size: 11px;
|
|
275
|
+
font-weight: 600;
|
|
276
|
+
text-transform: uppercase;
|
|
277
|
+
letter-spacing: 0.05em;
|
|
278
|
+
color: var(--text-muted);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.feed-item {
|
|
282
|
+
padding: 6px 20px;
|
|
283
|
+
font-size: 12px;
|
|
284
|
+
display: flex;
|
|
285
|
+
gap: 8px;
|
|
286
|
+
animation: fadeIn 0.2s ease;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.feed-role {
|
|
290
|
+
font-weight: 600;
|
|
291
|
+
flex-shrink: 0;
|
|
292
|
+
font-size: 10px;
|
|
293
|
+
text-transform: uppercase;
|
|
294
|
+
padding: 1px 6px;
|
|
295
|
+
border-radius: 3px;
|
|
296
|
+
line-height: 1.6;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
.feed-role.user {
|
|
300
|
+
background: rgba(59,130,246,0.15);
|
|
301
|
+
color: #60a5fa;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.feed-role.assistant {
|
|
305
|
+
background: rgba(139,92,246,0.15);
|
|
306
|
+
color: #a78bfa;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.feed-preview {
|
|
310
|
+
color: var(--text-muted);
|
|
311
|
+
overflow: hidden;
|
|
312
|
+
text-overflow: ellipsis;
|
|
313
|
+
white-space: nowrap;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/* ─── Empty State ─── */
|
|
317
|
+
.empty-state {
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-direction: column;
|
|
320
|
+
align-items: center;
|
|
321
|
+
justify-content: center;
|
|
322
|
+
height: 100%;
|
|
323
|
+
text-align: center;
|
|
324
|
+
padding: 40px;
|
|
325
|
+
color: var(--text-muted);
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.empty-state .icon {
|
|
329
|
+
font-size: 48px;
|
|
330
|
+
margin-bottom: 16px;
|
|
331
|
+
opacity: 0.3;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.empty-state h3 {
|
|
335
|
+
font-size: 16px;
|
|
336
|
+
font-weight: 600;
|
|
337
|
+
color: var(--text);
|
|
338
|
+
margin-bottom: 8px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.empty-state p {
|
|
342
|
+
font-size: 13px;
|
|
343
|
+
line-height: 1.5;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* ─── Watermark ─── */
|
|
347
|
+
#watermark {
|
|
348
|
+
position: absolute;
|
|
349
|
+
bottom: 12px; right: 12px;
|
|
350
|
+
font-size: 10px;
|
|
351
|
+
color: rgba(255,255,255,0.15);
|
|
352
|
+
font-family: var(--mono);
|
|
353
|
+
z-index: 10;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* ─── Message Count ─── */
|
|
357
|
+
#msg-count {
|
|
358
|
+
position: absolute;
|
|
359
|
+
bottom: 20px; left: 120px;
|
|
360
|
+
font-size: 12px;
|
|
361
|
+
color: var(--text-muted);
|
|
362
|
+
z-index: 10;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
#msg-count .number {
|
|
366
|
+
font-size: 18px;
|
|
367
|
+
font-weight: 700;
|
|
368
|
+
color: var(--text);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* ─── Region Info Card ─── */
|
|
372
|
+
#region-card {
|
|
373
|
+
position: absolute;
|
|
374
|
+
z-index: 20;
|
|
375
|
+
pointer-events: none;
|
|
376
|
+
background: var(--bg-panel);
|
|
377
|
+
border: 1px solid var(--border);
|
|
378
|
+
border-radius: 10px;
|
|
379
|
+
padding: 14px 18px;
|
|
380
|
+
min-width: 200px;
|
|
381
|
+
-webkit-backdrop-filter: blur(12px);
|
|
382
|
+
backdrop-filter: blur(12px);
|
|
383
|
+
opacity: 0;
|
|
384
|
+
transform: translateY(4px);
|
|
385
|
+
transition: opacity 0.2s ease, transform 0.2s ease;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
#region-card.visible {
|
|
389
|
+
opacity: 1;
|
|
390
|
+
transform: translateY(0);
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
#region-card .rc-name {
|
|
394
|
+
font-size: 14px;
|
|
395
|
+
font-weight: 700;
|
|
396
|
+
color: var(--text);
|
|
397
|
+
margin-bottom: 2px;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
#region-card .rc-function {
|
|
401
|
+
font-size: 11px;
|
|
402
|
+
color: var(--text-muted);
|
|
403
|
+
margin-bottom: 8px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
#region-card .rc-intensity {
|
|
407
|
+
display: flex;
|
|
408
|
+
align-items: center;
|
|
409
|
+
gap: 8px;
|
|
410
|
+
margin-bottom: 6px;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
#region-card .rc-bar {
|
|
414
|
+
flex: 1;
|
|
415
|
+
height: 4px;
|
|
416
|
+
background: rgba(255,255,255,0.06);
|
|
417
|
+
border-radius: 2px;
|
|
418
|
+
overflow: hidden;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
#region-card .rc-bar-fill {
|
|
422
|
+
height: 100%;
|
|
423
|
+
border-radius: 2px;
|
|
424
|
+
transition: width 0.3s ease;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
#region-card .rc-label {
|
|
428
|
+
font-size: 10px;
|
|
429
|
+
color: var(--text-muted);
|
|
430
|
+
text-transform: uppercase;
|
|
431
|
+
letter-spacing: 0.04em;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
#region-card .rc-patterns {
|
|
435
|
+
margin-top: 6px;
|
|
436
|
+
font-size: 11px;
|
|
437
|
+
color: var(--text-muted);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
#region-card .rc-patterns span {
|
|
441
|
+
display: inline-block;
|
|
442
|
+
background: rgba(139,92,246,0.12);
|
|
443
|
+
color: var(--accent);
|
|
444
|
+
padding: 1px 6px;
|
|
445
|
+
border-radius: 3px;
|
|
446
|
+
margin: 2px 2px 0 0;
|
|
447
|
+
font-size: 10px;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/* ─── Reconnection Banner ─── */
|
|
451
|
+
#reconnect-banner {
|
|
452
|
+
position: absolute;
|
|
453
|
+
top: 56px; left: 50%;
|
|
454
|
+
transform: translateX(-50%);
|
|
455
|
+
z-index: 20;
|
|
456
|
+
background: rgba(249,112,102,0.15);
|
|
457
|
+
border: 1px solid rgba(249,112,102,0.3);
|
|
458
|
+
border-radius: 8px;
|
|
459
|
+
padding: 8px 20px;
|
|
460
|
+
font-size: 12px;
|
|
461
|
+
color: var(--coral);
|
|
462
|
+
display: none;
|
|
463
|
+
align-items: center;
|
|
464
|
+
gap: 8px;
|
|
465
|
+
animation: fadeIn 0.3s ease;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
#reconnect-banner.visible { display: flex; }
|
|
469
|
+
|
|
470
|
+
#reconnect-banner .spinner {
|
|
471
|
+
width: 12px; height: 12px;
|
|
472
|
+
border: 2px solid rgba(249,112,102,0.3);
|
|
473
|
+
border-top-color: var(--coral);
|
|
474
|
+
border-radius: 50%;
|
|
475
|
+
animation: spin 0.8s linear infinite;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
@keyframes spin {
|
|
479
|
+
to { transform: rotate(360deg); }
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
/* ─── Scrollbar ─── */
|
|
483
|
+
::-webkit-scrollbar { width: 4px; }
|
|
484
|
+
::-webkit-scrollbar-track { background: transparent; }
|
|
485
|
+
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
|
|
486
|
+
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "holomime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Behavioral therapy infrastructure for AI agents — Big Five psychology, structured treatment, DPO training data",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -70,16 +70,21 @@
|
|
|
70
70
|
"@modelcontextprotocol/sdk": "^1.27.0",
|
|
71
71
|
"boxen": "^8.0.1",
|
|
72
72
|
"chalk": "^5.3.0",
|
|
73
|
+
"chokidar": "^5.0.0",
|
|
73
74
|
"commander": "^13.0.0",
|
|
74
75
|
"figures": "^6.1.0",
|
|
75
76
|
"gradient-string": "^3.0.0",
|
|
76
77
|
"log-update": "^7.1.0",
|
|
78
|
+
"open": "^11.0.0",
|
|
77
79
|
"ora": "^9.3.0",
|
|
78
80
|
"posthog-node": "^5.25.0",
|
|
81
|
+
"ws": "^8.19.0",
|
|
79
82
|
"zod": "^3.24.0"
|
|
80
83
|
},
|
|
81
84
|
"devDependencies": {
|
|
85
|
+
"@playwright/test": "^1.58.2",
|
|
82
86
|
"@types/node": "^25.3.0",
|
|
87
|
+
"@types/ws": "^8.18.1",
|
|
83
88
|
"tsup": "^8.3.0",
|
|
84
89
|
"typescript": "^5.7.0",
|
|
85
90
|
"vitest": "^2.1.0"
|