@glassly/miniapp-cli 0.1.15-dev.0 → 0.1.15

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.
@@ -0,0 +1,599 @@
1
+ {
2
+ "Simulated Glasses": {
3
+ "modelName": "Simulated Glasses",
4
+ "hasCamera": false,
5
+ "camera": null,
6
+ "hasDisplay": true,
7
+ "display": {
8
+ "count": 1,
9
+ "isColor": false,
10
+ "color": "green",
11
+ "canDisplayBitmap": true,
12
+ "resolution": {
13
+ "width": 640,
14
+ "height": 480
15
+ },
16
+ "fieldOfView": {
17
+ "horizontal": 30
18
+ },
19
+ "maxTextLines": 7,
20
+ "adjustBrightness": true,
21
+ "width": 576,
22
+ "height": 288,
23
+ "canPosition": true,
24
+ "maxTextElements": 120,
25
+ "maxImageElements": 120,
26
+ "shapes": [
27
+ "rect",
28
+ "circle",
29
+ "arc",
30
+ "pie",
31
+ "line",
32
+ "triangle",
33
+ "quad",
34
+ "bezier",
35
+ "svg"
36
+ ],
37
+ "animation": true,
38
+ "rotation": true,
39
+ "depth": true,
40
+ "intensityLevels": 16,
41
+ "partialUpdate": true
42
+ },
43
+ "hasMicrophone": true,
44
+ "microphone": {
45
+ "count": 1,
46
+ "hasVAD": false
47
+ },
48
+ "hasSpeaker": true,
49
+ "speaker": {
50
+ "count": 1,
51
+ "isPrivate": false
52
+ },
53
+ "hasIMU": false,
54
+ "imu": null,
55
+ "hasButton": true,
56
+ "button": {
57
+ "count": 1,
58
+ "buttons": [
59
+ {
60
+ "type": "press",
61
+ "events": [
62
+ "press"
63
+ ],
64
+ "isCapacitive": false
65
+ }
66
+ ]
67
+ },
68
+ "hasLight": false,
69
+ "light": null,
70
+ "power": {
71
+ "hasExternalBattery": false
72
+ },
73
+ "hasWifi": false,
74
+ "hasOta": false
75
+ },
76
+ "Even Realities G1": {
77
+ "modelName": "Even Realities G1",
78
+ "hasCamera": false,
79
+ "camera": null,
80
+ "hasDisplay": true,
81
+ "display": {
82
+ "count": 2,
83
+ "isColor": false,
84
+ "color": "green",
85
+ "canDisplayBitmap": false,
86
+ "resolution": {
87
+ "width": 640,
88
+ "height": 200
89
+ },
90
+ "fieldOfView": {
91
+ "horizontal": 25
92
+ },
93
+ "maxTextLines": 5,
94
+ "adjustBrightness": true,
95
+ "positionRange": {
96
+ "height": {
97
+ "min": 0,
98
+ "max": 8
99
+ },
100
+ "depth": {
101
+ "min": 1,
102
+ "max": 9
103
+ }
104
+ },
105
+ "canPosition": false,
106
+ "maxImageElements": 0
107
+ },
108
+ "hasMicrophone": true,
109
+ "microphone": {
110
+ "count": 1,
111
+ "hasVAD": false
112
+ },
113
+ "hasSpeaker": false,
114
+ "speaker": null,
115
+ "hasIMU": true,
116
+ "imu": null,
117
+ "hasButton": false,
118
+ "button": null,
119
+ "hasLight": false,
120
+ "light": null,
121
+ "power": {
122
+ "hasExternalBattery": false
123
+ },
124
+ "hasWifi": false,
125
+ "hasOta": false,
126
+ "hasCustomFirmware": true,
127
+ "hasNativeNotifications": false,
128
+ "hasNotificationRelay": true
129
+ },
130
+ "Even Realities G2": {
131
+ "modelName": "Even Realities G2",
132
+ "hasCamera": false,
133
+ "camera": null,
134
+ "hasDisplay": true,
135
+ "display": {
136
+ "count": 2,
137
+ "isColor": false,
138
+ "color": "green",
139
+ "canDisplayBitmap": true,
140
+ "resolution": {
141
+ "width": 640,
142
+ "height": 480
143
+ },
144
+ "fieldOfView": {
145
+ "horizontal": 25
146
+ },
147
+ "maxTextLines": 8,
148
+ "adjustBrightness": true,
149
+ "positionRange": {
150
+ "height": {
151
+ "min": 0,
152
+ "max": 12
153
+ },
154
+ "depth": {
155
+ "min": 1,
156
+ "max": 3
157
+ }
158
+ },
159
+ "width": 576,
160
+ "height": 288,
161
+ "canPosition": true,
162
+ "maxTextElements": 6,
163
+ "maxImageElements": 4,
164
+ "shapes": [
165
+ "rect"
166
+ ],
167
+ "intensityLevels": 16,
168
+ "partialUpdate": true
169
+ },
170
+ "hasMicrophone": true,
171
+ "microphone": {
172
+ "count": 1,
173
+ "hasVAD": false
174
+ },
175
+ "hasSpeaker": false,
176
+ "speaker": null,
177
+ "hasIMU": true,
178
+ "imu": null,
179
+ "hasButton": true,
180
+ "button": {
181
+ "count": 1,
182
+ "buttons": [
183
+ {
184
+ "type": "swipe1d",
185
+ "events": [
186
+ "TAP",
187
+ "DOUBLE_TAP",
188
+ "TRIPLE_TAP",
189
+ "PRESS_HOLD",
190
+ "SWIPE_UP",
191
+ "SWIPE_DOWN"
192
+ ],
193
+ "isCapacitive": true
194
+ }
195
+ ]
196
+ },
197
+ "hasLight": false,
198
+ "light": null,
199
+ "power": {
200
+ "hasExternalBattery": false
201
+ },
202
+ "hasWifi": false,
203
+ "hasOta": false,
204
+ "hasCustomFirmware": true,
205
+ "hasNativeDashboard": true,
206
+ "hasNativeNavigation": true,
207
+ "hasNativeNotifications": true,
208
+ "nativeNotificationPopupSeconds": [
209
+ 0,
210
+ 5,
211
+ 7,
212
+ 10
213
+ ]
214
+ },
215
+ "Mentra Display": {
216
+ "modelName": "Mentra Display",
217
+ "hasCamera": false,
218
+ "camera": null,
219
+ "hasDisplay": true,
220
+ "display": {
221
+ "count": 2,
222
+ "isColor": false,
223
+ "color": "green",
224
+ "canDisplayBitmap": true,
225
+ "resolution": {
226
+ "width": 640,
227
+ "height": 480
228
+ },
229
+ "fieldOfView": {
230
+ "horizontal": 25
231
+ },
232
+ "maxTextLines": 5,
233
+ "adjustBrightness": true,
234
+ "positionRange": {
235
+ "height": {
236
+ "min": 0,
237
+ "max": 8
238
+ },
239
+ "depth": {
240
+ "min": 1,
241
+ "max": 4
242
+ }
243
+ },
244
+ "width": 500,
245
+ "height": 220,
246
+ "canPosition": true,
247
+ "maxTextElements": 6,
248
+ "maxImageElements": 4,
249
+ "maxImagePx": {
250
+ "width": 200,
251
+ "height": 200
252
+ },
253
+ "shapes": [
254
+ "rect"
255
+ ],
256
+ "intensityLevels": 16,
257
+ "partialUpdate": true
258
+ },
259
+ "hasMicrophone": true,
260
+ "microphone": {
261
+ "count": 1,
262
+ "hasVAD": false
263
+ },
264
+ "hasSpeaker": false,
265
+ "speaker": null,
266
+ "hasIMU": true,
267
+ "imu": null,
268
+ "hasButton": false,
269
+ "button": null,
270
+ "hasLight": false,
271
+ "light": null,
272
+ "power": {
273
+ "hasExternalBattery": false
274
+ },
275
+ "hasWifi": false,
276
+ "hasOta": false
277
+ },
278
+ "Mentra Live": {
279
+ "modelName": "Mentra Live",
280
+ "hasCamera": true,
281
+ "camera": {
282
+ "resolution": {
283
+ "width": 1920,
284
+ "height": 1080
285
+ },
286
+ "hasHDR": false,
287
+ "hasFocus": true,
288
+ "video": {
289
+ "canRecord": true,
290
+ "canStream": true,
291
+ "supportedStreamTypes": [
292
+ "rtmp"
293
+ ],
294
+ "supportedResolutions": [
295
+ {
296
+ "width": 1920,
297
+ "height": 1080
298
+ },
299
+ {
300
+ "width": 1280,
301
+ "height": 720
302
+ },
303
+ {
304
+ "width": 640,
305
+ "height": 480
306
+ }
307
+ ]
308
+ }
309
+ },
310
+ "hasDisplay": false,
311
+ "display": null,
312
+ "hasMicrophone": true,
313
+ "microphone": {
314
+ "count": 1,
315
+ "hasVAD": true
316
+ },
317
+ "hasSpeaker": true,
318
+ "speaker": {
319
+ "count": 1,
320
+ "isPrivate": false
321
+ },
322
+ "hasIMU": true,
323
+ "imu": {
324
+ "axisCount": 6,
325
+ "hasAccelerometer": true,
326
+ "hasCompass": false,
327
+ "hasGyroscope": true
328
+ },
329
+ "hasButton": true,
330
+ "button": {
331
+ "count": 1,
332
+ "buttons": [
333
+ {
334
+ "type": "press",
335
+ "events": [
336
+ "press",
337
+ "double_press",
338
+ "long_press"
339
+ ],
340
+ "isCapacitive": false
341
+ }
342
+ ]
343
+ },
344
+ "hasLight": true,
345
+ "light": {
346
+ "count": 2,
347
+ "lights": [
348
+ {
349
+ "id": "privacy",
350
+ "purpose": "privacy",
351
+ "isFullColor": false,
352
+ "color": "white",
353
+ "position": "front_facing"
354
+ },
355
+ {
356
+ "id": "user_feedback",
357
+ "purpose": "user_feedback",
358
+ "isFullColor": true,
359
+ "color": "rgb",
360
+ "position": "user_facing"
361
+ }
362
+ ]
363
+ },
364
+ "power": {
365
+ "hasExternalBattery": false
366
+ },
367
+ "hasWifi": true,
368
+ "hasOta": true
369
+ },
370
+ "NIMO": {
371
+ "modelName": "NIMO",
372
+ "hasCamera": false,
373
+ "camera": null,
374
+ "hasDisplay": true,
375
+ "display": {
376
+ "count": 2,
377
+ "isColor": false,
378
+ "color": "green",
379
+ "canDisplayBitmap": true,
380
+ "resolution": {
381
+ "width": 540,
382
+ "height": 280
383
+ },
384
+ "maxTextLines": 10,
385
+ "adjustBrightness": true,
386
+ "positionRange": {
387
+ "height": {
388
+ "min": 0,
389
+ "max": 10
390
+ },
391
+ "depth": {
392
+ "min": 0,
393
+ "max": 10
394
+ }
395
+ },
396
+ "width": 500,
397
+ "height": 220,
398
+ "canPosition": true,
399
+ "maxTextElements": 32,
400
+ "maxImageElements": 4,
401
+ "maxImagePx": {
402
+ "width": 500,
403
+ "height": 220
404
+ },
405
+ "shapes": [
406
+ "rect",
407
+ "circle",
408
+ "line"
409
+ ],
410
+ "intensityLevels": 16,
411
+ "partialUpdate": false
412
+ },
413
+ "hasMicrophone": true,
414
+ "microphone": {
415
+ "count": 2,
416
+ "hasVAD": false
417
+ },
418
+ "hasSpeaker": false,
419
+ "speaker": null,
420
+ "hasIMU": true,
421
+ "imu": null,
422
+ "hasButton": true,
423
+ "button": {
424
+ "count": 2,
425
+ "buttons": [
426
+ {
427
+ "type": "press",
428
+ "events": [
429
+ "press",
430
+ "double_press",
431
+ "long_press"
432
+ ],
433
+ "isCapacitive": true
434
+ },
435
+ {
436
+ "type": "press",
437
+ "events": [
438
+ "press",
439
+ "double_press",
440
+ "long_press"
441
+ ],
442
+ "isCapacitive": true
443
+ }
444
+ ]
445
+ },
446
+ "hasLight": false,
447
+ "light": null,
448
+ "power": {
449
+ "hasExternalBattery": false
450
+ },
451
+ "hasWifi": false,
452
+ "hasOta": false,
453
+ "hasCustomFirmware": true,
454
+ "hasNotificationRelay": true
455
+ },
456
+ "RayNeo iO": {
457
+ "modelName": "RayNeo iO",
458
+ "hasCamera": false,
459
+ "camera": null,
460
+ "hasDisplay": true,
461
+ "display": {
462
+ "count": 2,
463
+ "isColor": false,
464
+ "color": "green",
465
+ "canDisplayBitmap": true,
466
+ "resolution": {
467
+ "width": 540,
468
+ "height": 180
469
+ },
470
+ "fieldOfView": {
471
+ "horizontal": 30
472
+ },
473
+ "maxTextLines": 5,
474
+ "adjustBrightness": true,
475
+ "positionRange": {
476
+ "height": {
477
+ "min": 0,
478
+ "max": 8
479
+ },
480
+ "depth": {
481
+ "min": 1,
482
+ "max": 3
483
+ }
484
+ },
485
+ "width": 540,
486
+ "height": 180,
487
+ "canPosition": true,
488
+ "maxTextElements": 6,
489
+ "maxImageElements": 4,
490
+ "intensityLevels": 16,
491
+ "partialUpdate": true
492
+ },
493
+ "hasMicrophone": true,
494
+ "microphone": {
495
+ "count": 1,
496
+ "hasVAD": false
497
+ },
498
+ "hasSpeaker": false,
499
+ "speaker": null,
500
+ "hasIMU": false,
501
+ "imu": null,
502
+ "hasButton": true,
503
+ "button": {
504
+ "count": 1,
505
+ "buttons": [
506
+ {
507
+ "type": "swipe1d",
508
+ "events": [
509
+ "TAP",
510
+ "DOUBLE_TAP",
511
+ "PRESS_HOLD",
512
+ "SWIPE_UP",
513
+ "SWIPE_DOWN"
514
+ ],
515
+ "isCapacitive": true
516
+ }
517
+ ]
518
+ },
519
+ "hasLight": false,
520
+ "light": null,
521
+ "power": {
522
+ "hasExternalBattery": false
523
+ },
524
+ "hasWifi": false,
525
+ "hasOta": false,
526
+ "hasCustomFirmware": true,
527
+ "hasNativeDashboard": true,
528
+ "hasNativeNavigation": false,
529
+ "hasNativeNotifications": true
530
+ },
531
+ "MemoMind One": {
532
+ "modelName": "MemoMind One",
533
+ "hasCamera": false,
534
+ "camera": null,
535
+ "hasDisplay": true,
536
+ "display": {
537
+ "count": 1,
538
+ "isColor": false,
539
+ "canDisplayBitmap": true,
540
+ "resolution": {
541
+ "width": 600,
542
+ "height": 350
543
+ },
544
+ "width": 600,
545
+ "height": 350,
546
+ "canPosition": true,
547
+ "intensityLevels": 16,
548
+ "partialUpdate": true,
549
+ "adjustBrightness": true,
550
+ "positionRange": {
551
+ "height": {
552
+ "min": 0,
553
+ "max": 8
554
+ },
555
+ "depth": {
556
+ "min": 0,
557
+ "max": 8
558
+ }
559
+ }
560
+ },
561
+ "hasMicrophone": true,
562
+ "microphone": {
563
+ "count": 1,
564
+ "hasVAD": false
565
+ },
566
+ "hasSpeaker": false,
567
+ "speaker": null,
568
+ "hasIMU": false,
569
+ "imu": null,
570
+ "hasButton": true,
571
+ "button": {
572
+ "count": 1,
573
+ "buttons": [
574
+ {
575
+ "type": "press",
576
+ "events": [
577
+ "TAP",
578
+ "DOUBLE_TAP",
579
+ "PRESS_HOLD",
580
+ "RELEASE"
581
+ ],
582
+ "isCapacitive": false
583
+ }
584
+ ]
585
+ },
586
+ "hasLight": false,
587
+ "light": null,
588
+ "power": {
589
+ "hasExternalBattery": false
590
+ },
591
+ "hasWifi": false,
592
+ "hasOta": false,
593
+ "hasCustomFirmware": true,
594
+ "hasNativeDashboard": false,
595
+ "hasNativeNavigation": false,
596
+ "hasNativeNotifications": false,
597
+ "hasNotificationRelay": true
598
+ }
599
+ }
@@ -0,0 +1,34 @@
1
+ // Copies the Glassly App's per-model capability files into models.json.
2
+ // Run from the monorepo after a capability file changes: bun src/sim/regenerate-models.ts
3
+ import {writeFileSync} from "fs"
4
+ import {fileURLToPath} from "url"
5
+
6
+ export const ENGINE_MODEL_FILES: Record<string, [file: string, exportName: string]> = {
7
+ "Simulated Glasses": ["simulated-glasses", "simulatedGlasses"],
8
+ "Even Realities G1": ["even-realities-g1", "evenRealitiesG1"],
9
+ "Even Realities G2": ["even-realities-g2", "evenRealitiesG2"],
10
+ "Mentra Display": ["mentra-display", "mentraDisplay"],
11
+ "Mentra Live": ["mentra-live", "mentraLive"],
12
+ NIMO: ["nimo", "nimo"],
13
+ "RayNeo iO": ["rayneo-io", "rayneoIO"],
14
+ "MemoMind One": ["memomind-one", "memoMindOne"],
15
+ }
16
+
17
+ export function engineModelPath(file: string): string {
18
+ return fileURLToPath(new URL(`../../../../mobile/modules/engine/src/types/capabilities/${file}.ts`, import.meta.url))
19
+ }
20
+
21
+ export async function loadEngineModels(): Promise<Record<string, unknown>> {
22
+ const models: Record<string, unknown> = {}
23
+ for (const [model, [file, exportName]] of Object.entries(ENGINE_MODEL_FILES)) {
24
+ const module = (await import(engineModelPath(file))) as Record<string, unknown>
25
+ models[model] = JSON.parse(JSON.stringify(module[exportName]))
26
+ }
27
+ return models
28
+ }
29
+
30
+ if (import.meta.main) {
31
+ const path = fileURLToPath(new URL("./models.json", import.meta.url))
32
+ writeFileSync(path, `${JSON.stringify(await loadEngineModels(), null, 2)}\n`)
33
+ console.log(`Wrote ${path}`)
34
+ }