@mentra/engine 3.4.0-dev.1182 → 3.4.0-dev.1184
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/build/generated/releaseMetadata.js +5 -5
- package/build/generated/releaseMetadata.js.map +1 -1
- package/build/services/DeviceEventRouter.js +2 -2
- package/build/services/DeviceEventRouter.js.map +1 -1
- package/build/services/LocalMiniappRuntime.d.ts +55 -5
- package/build/services/LocalMiniappRuntime.d.ts.map +1 -1
- package/build/services/LocalMiniappRuntime.js +293 -171
- package/build/services/LocalMiniappRuntime.js.map +1 -1
- package/build/services/LocalSttFallbackCoordinator.d.ts +10 -32
- package/build/services/LocalSttFallbackCoordinator.d.ts.map +1 -1
- package/build/services/LocalSttFallbackCoordinator.js +16 -58
- package/build/services/LocalSttFallbackCoordinator.js.map +1 -1
- package/build/services/TranscriptionRouting.d.ts +112 -9
- package/build/services/TranscriptionRouting.d.ts.map +1 -1
- package/build/services/TranscriptionRouting.js +159 -21
- package/build/services/TranscriptionRouting.js.map +1 -1
- package/build/services/TranscriptionSubscriptions.d.ts +87 -6
- package/build/services/TranscriptionSubscriptions.d.ts.map +1 -1
- package/build/services/TranscriptionSubscriptions.js +174 -26
- package/build/services/TranscriptionSubscriptions.js.map +1 -1
- package/build/stores/settings.d.ts.map +1 -1
- package/build/stores/settings.js +3 -17
- package/build/stores/settings.js.map +1 -1
- package/package.json +8 -8
- package/src/generated/releaseMetadata.ts +5 -5
- package/src/services/DeviceEventRouter.ts +2 -2
- package/src/services/LocalMiniappRuntime.ts +325 -213
- package/src/services/LocalSttFallbackCoordinator.ts +15 -62
- package/src/services/TranscriptionRouting.ts +200 -30
- package/src/services/TranscriptionSubscriptions.ts +245 -25
- package/src/stores/settings.ts +3 -17
package/src/stores/settings.ts
CHANGED
|
@@ -497,14 +497,13 @@ export const SETTINGS: Record<string, Setting> = {
|
|
|
497
497
|
},
|
|
498
498
|
/*
|
|
499
499
|
* Mentra Live wear detection, audio/media policy, and ~20-minute unworn shutdown
|
|
500
|
-
* (cs_swit type 11).
|
|
500
|
+
* (cs_swit type 11). Off by default, matching the firmware. Re-pushed on
|
|
501
501
|
* connect, so this default is what a new install sends to the glasses, and
|
|
502
|
-
* it overwrites a value saved on the glasses.
|
|
503
|
-
* off after pairing.
|
|
502
|
+
* it overwrites a value saved on the glasses.
|
|
504
503
|
*/
|
|
505
504
|
auto_power_off_enabled: {
|
|
506
505
|
key: "auto_power_off_enabled",
|
|
507
|
-
defaultValue: () =>
|
|
506
|
+
defaultValue: () => false,
|
|
508
507
|
writable: true,
|
|
509
508
|
saveOnServer: true,
|
|
510
509
|
persist: true,
|
|
@@ -1185,19 +1184,6 @@ export const useSettingsStore = create<SettingsState>()(
|
|
|
1185
1184
|
}
|
|
1186
1185
|
}
|
|
1187
1186
|
|
|
1188
|
-
// Roll out all wear behavior once, including installs that previously saved false.
|
|
1189
|
-
// A later explicit opt-out (including automated test lanes) remains authoritative.
|
|
1190
|
-
const WEAR_ROLLOUT_KEY = "migration:wear_detection_enabled_v1"
|
|
1191
|
-
const wearRolloutDone = storage.load<boolean>(WEAR_ROLLOUT_KEY)
|
|
1192
|
-
if (wearRolloutDone.is_error() || !wearRolloutDone.value) {
|
|
1193
|
-
const result = await get().setSetting(SETTINGS.auto_power_off_enabled.key, true, true)
|
|
1194
|
-
if (result.is_error()) {
|
|
1195
|
-
console.log("SETTINGS: wear detection rollout failed:", result.error)
|
|
1196
|
-
} else {
|
|
1197
|
-
storage.save(WEAR_ROLLOUT_KEY, true)
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
1187
|
// migration:loudness_gate_default_off_v1 reset every install it ran on to off. Turn those
|
|
1202
1188
|
// installs back on once. Installs that never ran it keep whatever they saved, so an opt-out
|
|
1203
1189
|
// from before that reset survives, and a later opt-out remains in force.
|