@glassly/engine 0.3.7-dev.974 → 0.3.8-beta.1013

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.
Files changed (100) hide show
  1. package/build/engine.d.ts +10 -0
  2. package/build/engine.d.ts.map +1 -1
  3. package/build/facades/ai.d.ts +3 -0
  4. package/build/facades/ai.d.ts.map +1 -1
  5. package/build/facades/ai.js +3 -0
  6. package/build/facades/ai.js.map +1 -1
  7. package/build/facades/glasses.d.ts +9 -1
  8. package/build/facades/glasses.d.ts.map +1 -1
  9. package/build/facades/glasses.js +13 -0
  10. package/build/facades/glasses.js.map +1 -1
  11. package/build/generated/releaseMetadata.js +4 -4
  12. package/build/generated/releaseMetadata.js.map +1 -1
  13. package/build/index.d.ts +2 -1
  14. package/build/index.d.ts.map +1 -1
  15. package/build/index.js.map +1 -1
  16. package/build/services/CloudClientService.d.ts +2 -1
  17. package/build/services/CloudClientService.d.ts.map +1 -1
  18. package/build/services/CloudClientService.js +8 -0
  19. package/build/services/CloudClientService.js.map +1 -1
  20. package/build/services/DeviceEventRouter.d.ts.map +1 -1
  21. package/build/services/DeviceEventRouter.js +1 -0
  22. package/build/services/DeviceEventRouter.js.map +1 -1
  23. package/build/services/DisplayDiagnostics.d.ts.map +1 -1
  24. package/build/services/DisplayDiagnostics.js +4 -2
  25. package/build/services/DisplayDiagnostics.js.map +1 -1
  26. package/build/services/LocalDisplayManager.d.ts.map +1 -1
  27. package/build/services/LocalDisplayManager.js +5 -2
  28. package/build/services/LocalDisplayManager.js.map +1 -1
  29. package/build/services/LocalMiniappRuntime.d.ts.map +1 -1
  30. package/build/services/LocalMiniappRuntime.js +7 -2
  31. package/build/services/LocalMiniappRuntime.js.map +1 -1
  32. package/build/services/LocalSttFallbackCoordinator.d.ts.map +1 -1
  33. package/build/services/LocalSttFallbackCoordinator.js +2 -0
  34. package/build/services/LocalSttFallbackCoordinator.js.map +1 -1
  35. package/build/services/LocalTranslationService.d.ts +2 -0
  36. package/build/services/LocalTranslationService.d.ts.map +1 -1
  37. package/build/services/LocalTranslationService.js +22 -0
  38. package/build/services/LocalTranslationService.js.map +1 -1
  39. package/build/services/OfflineActivity.d.ts +54 -0
  40. package/build/services/OfflineActivity.d.ts.map +1 -0
  41. package/build/services/OfflineActivity.js +86 -0
  42. package/build/services/OfflineActivity.js.map +1 -0
  43. package/build/services/STTModelManager.d.ts +1 -0
  44. package/build/services/STTModelManager.d.ts.map +1 -1
  45. package/build/services/STTModelManager.js +6 -0
  46. package/build/services/STTModelManager.js.map +1 -1
  47. package/build/services/controllers.d.ts.map +1 -1
  48. package/build/services/controllers.js +2 -0
  49. package/build/services/controllers.js.map +1 -1
  50. package/build/services/effectiveCapabilities.js +3 -1
  51. package/build/services/effectiveCapabilities.js.map +1 -1
  52. package/build/services/neuralBand/NeuralBandInput.d.ts +12 -1
  53. package/build/services/neuralBand/NeuralBandInput.d.ts.map +1 -1
  54. package/build/services/neuralBand/NeuralBandInput.js +27 -0
  55. package/build/services/neuralBand/NeuralBandInput.js.map +1 -1
  56. package/build/services/neuralBand/NeuralBandSettingsSync.d.ts.map +1 -1
  57. package/build/services/neuralBand/NeuralBandSettingsSync.js +6 -0
  58. package/build/services/neuralBand/NeuralBandSettingsSync.js.map +1 -1
  59. package/build/stores/appVisibility.d.ts.map +1 -1
  60. package/build/stores/appVisibility.js +0 -1
  61. package/build/stores/appVisibility.js.map +1 -1
  62. package/build/stores/apps.js +9 -9
  63. package/build/stores/apps.js.map +1 -1
  64. package/build/stores/settings.d.ts.map +1 -1
  65. package/build/stores/settings.js +26 -3
  66. package/build/stores/settings.js.map +1 -1
  67. package/build/types/capabilities/memomind-one.d.ts.map +1 -1
  68. package/build/types/capabilities/memomind-one.js +1 -0
  69. package/build/types/capabilities/memomind-one.js.map +1 -1
  70. package/build/types/capabilities/rayneo-io.d.ts.map +1 -1
  71. package/build/types/capabilities/rayneo-io.js +3 -2
  72. package/build/types/capabilities/rayneo-io.js.map +1 -1
  73. package/build/types/enums.d.ts +3 -1
  74. package/build/types/enums.d.ts.map +1 -1
  75. package/build/types/enums.js +2 -0
  76. package/build/types/enums.js.map +1 -1
  77. package/package.json +7 -7
  78. package/src/facades/ai.ts +4 -0
  79. package/src/facades/glasses.ts +17 -0
  80. package/src/generated/releaseMetadata.ts +4 -4
  81. package/src/index.ts +9 -0
  82. package/src/services/CloudClientService.ts +8 -0
  83. package/src/services/DeviceEventRouter.ts +1 -0
  84. package/src/services/DisplayDiagnostics.ts +4 -2
  85. package/src/services/LocalDisplayManager.ts +5 -2
  86. package/src/services/LocalMiniappRuntime.ts +6 -2
  87. package/src/services/LocalSttFallbackCoordinator.ts +4 -0
  88. package/src/services/LocalTranslationService.ts +20 -0
  89. package/src/services/OfflineActivity.ts +131 -0
  90. package/src/services/STTModelManager.ts +6 -0
  91. package/src/services/controllers.ts +2 -0
  92. package/src/services/effectiveCapabilities.ts +3 -1
  93. package/src/services/neuralBand/NeuralBandInput.ts +37 -1
  94. package/src/services/neuralBand/NeuralBandSettingsSync.ts +12 -0
  95. package/src/stores/appVisibility.ts +0 -1
  96. package/src/stores/apps.ts +11 -11
  97. package/src/stores/settings.ts +26 -3
  98. package/src/types/capabilities/memomind-one.ts +1 -0
  99. package/src/types/capabilities/rayneo-io.ts +3 -2
  100. package/src/types/enums.ts +2 -0
@@ -388,17 +388,6 @@ export const useAppStatusStore = create<AppStatusState>((set, get) => ({
388
388
  // owns the settings store).
389
389
  useSettingsStore.getState().setSetting(SETTINGS.has_ever_activated_app.key, true)
390
390
 
391
- // If the tapped app is already running, this is a re-open: the nav/foreground
392
- // above already drove the animation, and there's nothing to spawn. Short-
393
- // circuit before the spawn pipeline. A promoted app keeps its context but
394
- // still takes the foreground below.
395
- if (app.running && !app.widgetOnly) {
396
- saveLastOpenTime(packageName)
397
- // The running background only knows the source of its spawn.
398
- if (app.local) miniappLauncher.notifyLaunch(packageName, opts?.launchSource ?? "phone")
399
- return true
400
- }
401
-
402
391
  // Only-one rules: one standard app in the foreground, one dashboard
403
392
  // drawing the overlay. Starting another stops the one running. Widget-only
404
393
  // peers hold no foreground, so they stay.
@@ -411,6 +400,17 @@ export const useAppStatusStore = create<AppStatusState>((set, get) => ({
411
400
  }
412
401
  }
413
402
 
403
+ // If the tapped app is already running, this is a re-open: the nav/foreground
404
+ // above already drove the animation, and there's nothing to spawn. Short-
405
+ // circuit before the spawn pipeline. A promoted app keeps its context but
406
+ // still takes the foreground below.
407
+ if (app.running && !app.widgetOnly) {
408
+ saveLastOpenTime(packageName)
409
+ // The running background only knows the source of its spawn.
410
+ if (app.local) miniappLauncher.notifyLaunch(packageName, opts?.launchSource ?? "phone")
411
+ return true
412
+ }
413
+
414
414
  set((s) => ({
415
415
  apps: s.apps.map((a) => (a.packageName === packageName ? {...a, running: true, loading: false} : a)),
416
416
  }))
@@ -132,6 +132,13 @@ export const SETTINGS: Record<string, Setting> = {
132
132
  saveOnServer: true,
133
133
  persist: true,
134
134
  },
135
+ memomind_accessory_picker: {
136
+ key: "memomind_accessory_picker",
137
+ defaultValue: () => false,
138
+ writable: true,
139
+ saveOnServer: false,
140
+ persist: true,
141
+ },
135
142
  debug_console: {
136
143
  key: "debug_console",
137
144
  defaultValue: () => false,
@@ -803,8 +810,8 @@ export const SETTINGS: Record<string, Setting> = {
803
810
  // OFF by default: they crowd out everything else in the ten-minute buffer.
804
811
  // Synced to the Bluetooth SDK, which keeps counting either way and only
805
812
  // logs while this is on. Device-local debug knob, so not saved on the server.
806
- g2_perf_logs: {
807
- key: "g2_perf_logs",
813
+ perf_logs: {
814
+ key: "perf_logs",
808
815
  defaultValue: () => false,
809
816
  writable: true,
810
817
  saveOnServer: false,
@@ -841,6 +848,14 @@ export const SETTINGS: Record<string, Setting> = {
841
848
  saveOnServer: false,
842
849
  persist: true,
843
850
  },
851
+ // The band's own buzz on each gesture (its haptics pattern 1; pattern 2 is silent).
852
+ neural_band_vibration: {
853
+ key: "neural_band_vibration",
854
+ defaultValue: () => true,
855
+ writable: true,
856
+ saveOnServer: false,
857
+ persist: true,
858
+ },
844
859
  // Watch (Apple Watch, Wear OS): draw the glasses' current frame behind the watch
845
860
  // trackpad. Frames cross the watch link while the watch app is up, so it stays off
846
861
  // unless asked for.
@@ -923,6 +938,13 @@ export const SETTINGS: Record<string, Setting> = {
923
938
  saveOnServer: false,
924
939
  persist: true,
925
940
  },
941
+ home_offline_card: {
942
+ key: "home_offline_card",
943
+ defaultValue: () => true,
944
+ writable: true,
945
+ saveOnServer: false,
946
+ persist: true,
947
+ },
926
948
  // Gesture-dots debug indicator: flash a glyph on the glasses when a touch
927
949
  // gesture is received while the display is empty. Works on any
928
950
  // scene-capable device, not only CFW. Device-local debug knob, default off.
@@ -1231,7 +1253,8 @@ export const BLUETOOTH_SETTING_KEYS: string[] = [
1231
1253
  SETTINGS.calendar_events.key,
1232
1254
  SETTINGS.cfw_scene_renderer.key,
1233
1255
  SETTINGS.cfw_fast_ble.key,
1234
- SETTINGS.g2_perf_logs.key,
1256
+ SETTINGS.perf_logs.key,
1257
+ SETTINGS.memomind_accessory_picker.key,
1235
1258
  SETTINGS.ring_via_glasses.key,
1236
1259
  SETTINGS.display_max_fps.key,
1237
1260
  SETTINGS.twelve_hour_time.key,
@@ -6,6 +6,7 @@ export const memoMindOne: Capabilities = {
6
6
  camera: null,
7
7
  hasDisplay: true,
8
8
  display: {
9
+ // One panel: the vector canvas offers no depth on it.
9
10
  count: 1,
10
11
  isColor: false,
11
12
  canDisplayBitmap: true,
@@ -19,10 +19,11 @@ export const rayneoIO: Capabilities = {
19
19
  hasCamera: false,
20
20
  camera: null,
21
21
 
22
- // Display capabilities - single monochrome (1-bit) panel
22
+ // Display capabilities - a monochrome panel per eye; the Glassly CFW keeps
23
+ // a scene per lens, so element depth is a real disparity here
23
24
  hasDisplay: true,
24
25
  display: {
25
- count: 1,
26
+ count: 2,
26
27
  isColor: false,
27
28
  color: "green",
28
29
  // Bitmaps and positioned elements need the Glassly CFW; stock firmware
@@ -23,4 +23,6 @@ export enum ControllerTypes {
23
23
  WEAR_OS = "Wear OS Watch",
24
24
  GAMEBRICK = "IINE Gamebrick",
25
25
  IINE_ANANKE = "IINE Ananke Gen 2",
26
+ ZERO2 = "8BitDo Zero 2",
27
+ MICRO = "8BitDo Micro",
26
28
  }