@glassly/bluetooth-sdk 0.1.0-dev.118 → 0.1.0-dev.120
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/android/src/main/java/com/glassly/bluetoothsdk/BluetoothSdkModule.kt +1 -0
- package/android/src/main/java/com/glassly/bluetoothsdk/Bridge.kt +12 -0
- package/android/src/main/java/com/glassly/bluetoothsdk/DeviceManager.kt +12 -2
- package/android/src/main/java/com/glassly/bluetoothsdk/DisplayPacer.kt +2 -1
- package/android/src/main/java/com/glassly/bluetoothsdk/GeneratedReleaseMetadata.kt +3 -3
- package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/G2.kt +38 -7
- package/android/src/main/java/com/glassly/bluetoothsdk/sgcs/SGCManager.kt +22 -0
- package/build/BluetoothSdk.types.d.ts +14 -0
- package/build/BluetoothSdk.types.d.ts.map +1 -1
- package/build/BluetoothSdk.types.js.map +1 -1
- package/build/generated/releaseMetadata.js +3 -3
- package/build/generated/releaseMetadata.js.map +1 -1
- package/ios/BluetoothSdkModule.swift +1 -0
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/Bridge.swift +8 -0
- package/ios/Source/DeviceManager.swift +8 -1
- package/ios/Source/DisplayPacer.swift +3 -2
- package/ios/Source/GeneratedReleaseMetadata.swift +3 -3
- package/ios/Source/sgcs/G2.swift +33 -5
- package/ios/Source/sgcs/SGCManager.swift +28 -2
- package/package.json +1 -1
- package/src/BluetoothSdk.types.ts +15 -0
- package/src/generated/releaseMetadata.ts +3 -3
|
@@ -172,6 +172,18 @@ public class Bridge private constructor() {
|
|
|
172
172
|
sendTypedMessage("speaker_enroll_result", body as Map<String, Any>)
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
/** display.render() frame outcome; seq 0 frames are native-originated and never reported. */
|
|
176
|
+
@JvmStatic
|
|
177
|
+
fun sendSceneFramePresented(seq: Int, appId: String, presented: Boolean, reason: String?) {
|
|
178
|
+
if (seq <= 0) return
|
|
179
|
+
val body = HashMap<String, Any>()
|
|
180
|
+
body["seq"] = seq
|
|
181
|
+
body["appId"] = appId
|
|
182
|
+
body["presented"] = presented
|
|
183
|
+
if (reason != null) body["reason"] = reason
|
|
184
|
+
sendTypedMessage("scene_frame_presented", body as Map<String, Any>)
|
|
185
|
+
}
|
|
186
|
+
|
|
175
187
|
/** Send head position event */
|
|
176
188
|
@JvmStatic
|
|
177
189
|
fun sendHeadUp(isUp: Boolean) {
|
|
@@ -1708,10 +1708,19 @@ class DeviceManager {
|
|
|
1708
1708
|
|
|
1709
1709
|
/** Guarded scene dispatch — mirrors sendCurrentState's send conditions. */
|
|
1710
1710
|
private fun dispatchSceneFrame(frame: SceneFrame) {
|
|
1711
|
-
|
|
1712
|
-
|
|
1711
|
+
// Each early-out tells the host the frame won't show now; the SGC
|
|
1712
|
+
// reports the rest once the device has it.
|
|
1713
|
+
if (screenDisabled) {
|
|
1714
|
+
frame.reportPresented(false, "screen off")
|
|
1715
|
+
return
|
|
1716
|
+
}
|
|
1717
|
+
if (sgc?.type?.contains(DeviceTypes.SIMULATED) == true) {
|
|
1718
|
+
frame.reportPresented(false, "simulated glasses")
|
|
1719
|
+
return
|
|
1720
|
+
}
|
|
1713
1721
|
if (sgc?.fullyBooted != true) {
|
|
1714
1722
|
Bridge.log("MAN: dispatchSceneFrame(): sgc not ready")
|
|
1723
|
+
frame.reportPresented(false, if (sgc == null) "no glasses" else "glasses not ready")
|
|
1715
1724
|
return
|
|
1716
1725
|
}
|
|
1717
1726
|
sgc?.applySceneFrame(frame)
|
|
@@ -1768,6 +1777,7 @@ class DeviceManager {
|
|
|
1768
1777
|
?: SceneFrame.DEFAULT_CANVAS_WIDTH,
|
|
1769
1778
|
canvasHeight = (canvas?.get("height") as? Number)?.toInt()?.takeIf { it > 0 }
|
|
1770
1779
|
?: SceneFrame.DEFAULT_CANVAS_HEIGHT,
|
|
1780
|
+
seq = (sceneMap["seq"] as? Number)?.toInt() ?: 0,
|
|
1771
1781
|
)
|
|
1772
1782
|
}
|
|
1773
1783
|
|
|
@@ -148,9 +148,10 @@ class DisplayPacer(
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
/** Drop pending work without sending (disconnect, screen off, clearDisplay). */
|
|
151
|
-
fun cancel() {
|
|
151
|
+
fun cancel(reason: String = "cancelled") {
|
|
152
152
|
synchronized(lock) {
|
|
153
153
|
stopTimer()
|
|
154
|
+
pendingScene?.reportPresented(false, reason)
|
|
154
155
|
pendingScene = null
|
|
155
156
|
pendingLegacy = false
|
|
156
157
|
}
|
|
@@ -3,9 +3,9 @@ package com.glassly.bluetoothsdk
|
|
|
3
3
|
/** Generated by release CI. Do not edit in a release checkout. */
|
|
4
4
|
internal object GeneratedReleaseMetadata {
|
|
5
5
|
const val FAMILY_BASE_VERSION: String = "0.1.0"
|
|
6
|
-
const val RELEASE_IDENTITY: String = "0.1.0-dev.
|
|
7
|
-
const val RELEASE_SET_ID: String = "glassly-0.1.0-dev.
|
|
8
|
-
const val SOURCE_COMMIT: String = "
|
|
6
|
+
const val RELEASE_IDENTITY: String = "0.1.0-dev.120"
|
|
7
|
+
const val RELEASE_SET_ID: String = "glassly-0.1.0-dev.120"
|
|
8
|
+
const val SOURCE_COMMIT: String = "0714706f0cfc7fb712af7819f67ca1f34d2e58e4"
|
|
9
9
|
const val OTA_MANIFEST_URL: String = ""
|
|
10
10
|
const val OTA_MANIFEST_SHA256: String = ""
|
|
11
11
|
}
|
|
@@ -1478,7 +1478,12 @@ class G2 : SGCManager() {
|
|
|
1478
1478
|
*/
|
|
1479
1479
|
private enum class CfwPayloadKind { SEED, FULL, DELTA, MOVE_BUNDLE, UPLOAD, SCENE }
|
|
1480
1480
|
|
|
1481
|
-
private class CfwPayload(
|
|
1481
|
+
private class CfwPayload(
|
|
1482
|
+
val kind: CfwPayloadKind,
|
|
1483
|
+
val data: ByteArray,
|
|
1484
|
+
/** Host frame this payload puts on the glasses — reported once acked. */
|
|
1485
|
+
var presents: SceneFrame.PresentTag? = null,
|
|
1486
|
+
)
|
|
1482
1487
|
|
|
1483
1488
|
private val cfwPendingPayloads = ArrayDeque<CfwPayload>()
|
|
1484
1489
|
private var cfwShadowSeeded = false
|
|
@@ -2849,6 +2854,8 @@ class G2 : SGCManager() {
|
|
|
2849
2854
|
coalescedPageRebuild()
|
|
2850
2855
|
}
|
|
2851
2856
|
}
|
|
2857
|
+
// Stock firmware: text sends are unacked; the verbs above are the best signal there is.
|
|
2858
|
+
frame.reportPresented(true)
|
|
2852
2859
|
}
|
|
2853
2860
|
}
|
|
2854
2861
|
|
|
@@ -2909,6 +2916,7 @@ class G2 : SGCManager() {
|
|
|
2909
2916
|
startFbLease()
|
|
2910
2917
|
if (!enqueueCfwFrame(frame)) {
|
|
2911
2918
|
Bridge.log("G2: CFW scene encode failed; retaining the previous frame")
|
|
2919
|
+
frame.reportPresented(false, "scene encode failed")
|
|
2912
2920
|
return
|
|
2913
2921
|
}
|
|
2914
2922
|
cfwSceneActive = true
|
|
@@ -3120,7 +3128,7 @@ class G2 : SGCManager() {
|
|
|
3120
3128
|
for (upload in encoded.uploads) {
|
|
3121
3129
|
cfwPendingPayloads.addLast(CfwPayload(CfwPayloadKind.UPLOAD, upload))
|
|
3122
3130
|
}
|
|
3123
|
-
cfwPendingPayloads.addLast(CfwPayload(CfwPayloadKind.SCENE, encoded.payload))
|
|
3131
|
+
cfwPendingPayloads.addLast(CfwPayload(CfwPayloadKind.SCENE, encoded.payload, frame.presentTag))
|
|
3124
3132
|
cfwLastPayloadQueuedAt = System.currentTimeMillis()
|
|
3125
3133
|
return true
|
|
3126
3134
|
}
|
|
@@ -3203,7 +3211,12 @@ class G2 : SGCManager() {
|
|
|
3203
3211
|
for (upload in update.uploads) {
|
|
3204
3212
|
cfwPendingPayloads.addLast(CfwPayload(CfwPayloadKind.UPLOAD, upload))
|
|
3205
3213
|
}
|
|
3206
|
-
val payload = update.payload
|
|
3214
|
+
val payload = update.payload
|
|
3215
|
+
if (payload == null) {
|
|
3216
|
+
// Visually identical frame — the shadow already shows it, or a queued payload is about to.
|
|
3217
|
+
cfwAttachPresentTag(frame)
|
|
3218
|
+
return true
|
|
3219
|
+
}
|
|
3207
3220
|
if (update.usedFullFrame) cfwDeltasSinceFull = 0 else cfwDeltasSinceFull += 1
|
|
3208
3221
|
if (!cfwShadowSeeded) {
|
|
3209
3222
|
// Seed with the frame itself composited on black when the window
|
|
@@ -3228,6 +3241,7 @@ class G2 : SGCManager() {
|
|
|
3228
3241
|
it.kind == CfwPayloadKind.FULL || it.kind == CfwPayloadKind.DELTA ||
|
|
3229
3242
|
it.kind == CfwPayloadKind.SCENE
|
|
3230
3243
|
}
|
|
3244
|
+
cfwPendingPayloads.last().presents = frame.presentTag
|
|
3231
3245
|
cfwLastPayloadQueuedAt = System.currentTimeMillis()
|
|
3232
3246
|
return true
|
|
3233
3247
|
}
|
|
@@ -3244,14 +3258,25 @@ class G2 : SGCManager() {
|
|
|
3244
3258
|
it.kind == CfwPayloadKind.FULL || it.kind == CfwPayloadKind.DELTA || it.kind == CfwPayloadKind.SCENE
|
|
3245
3259
|
}
|
|
3246
3260
|
val kind = if (movedBoxes) CfwPayloadKind.MOVE_BUNDLE else CfwPayloadKind.FULL
|
|
3247
|
-
cfwPendingPayloads.addLast(CfwPayload(kind, payload))
|
|
3261
|
+
cfwPendingPayloads.addLast(CfwPayload(kind, payload, frame.presentTag))
|
|
3248
3262
|
} else {
|
|
3249
|
-
cfwPendingPayloads.addLast(CfwPayload(CfwPayloadKind.DELTA, payload))
|
|
3263
|
+
cfwPendingPayloads.addLast(CfwPayload(CfwPayloadKind.DELTA, payload, frame.presentTag))
|
|
3250
3264
|
}
|
|
3251
3265
|
cfwLastPayloadQueuedAt = System.currentTimeMillis()
|
|
3252
3266
|
return true
|
|
3253
3267
|
}
|
|
3254
3268
|
|
|
3269
|
+
/**
|
|
3270
|
+
* A frame that needs no payload of its own is on the glasses once the
|
|
3271
|
+
* last queued frame-carrying payload is acked; with nothing queued it is
|
|
3272
|
+
* there already. Frame numbers only go up, so the tag can be overwritten.
|
|
3273
|
+
*/
|
|
3274
|
+
private fun cfwAttachPresentTag(frame: SceneFrame) {
|
|
3275
|
+
val tag = frame.presentTag ?: return
|
|
3276
|
+
val last = cfwPendingPayloads.lastOrNull { it.kind != CfwPayloadKind.UPLOAD }
|
|
3277
|
+
if (last != null) last.presents = tag else frame.reportPresented(true)
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3255
3280
|
/**
|
|
3256
3281
|
* Blank the panel (mode-6 black also seeds the shadow) and drop retained scene state.
|
|
3257
3282
|
*
|
|
@@ -3264,6 +3289,9 @@ class G2 : SGCManager() {
|
|
|
3264
3289
|
private fun cfwClear() {
|
|
3265
3290
|
cfwLastFrame = null
|
|
3266
3291
|
cfwSceneActive = false
|
|
3292
|
+
for (payload in cfwPendingPayloads) {
|
|
3293
|
+
if (payload.kind != CfwPayloadKind.SEED) payload.presents?.report(false, "cleared")
|
|
3294
|
+
}
|
|
3267
3295
|
cfwPendingPayloads.removeAll { it.kind != CfwPayloadKind.SEED }
|
|
3268
3296
|
G2CfwRenderer.blackPayload()?.let {
|
|
3269
3297
|
cfwPendingPayloads.addLast(CfwPayload(CfwPayloadKind.SEED, it))
|
|
@@ -3918,7 +3946,7 @@ class G2 : SGCManager() {
|
|
|
3918
3946
|
if (ok) {
|
|
3919
3947
|
Bridge.log("G2: page-down probe acked — phantom exit, page alive (no rebuild)")
|
|
3920
3948
|
pageCreated = true
|
|
3921
|
-
if (cfwPendingPayloads.isNotEmpty()) cfwPendingPayloads.removeFirst()
|
|
3949
|
+
if (cfwPendingPayloads.isNotEmpty()) cfwPendingPayloads.removeFirst().presents?.report(true)
|
|
3922
3950
|
signalDisplayDirty() // drain the rest normally
|
|
3923
3951
|
return
|
|
3924
3952
|
}
|
|
@@ -3950,7 +3978,10 @@ class G2 : SGCManager() {
|
|
|
3950
3978
|
var drained = 0
|
|
3951
3979
|
while (pageCreated && drained < 4 && cfwPendingPayloads.isNotEmpty()) {
|
|
3952
3980
|
drained += 1
|
|
3953
|
-
val
|
|
3981
|
+
val payload = cfwPendingPayloads.removeFirst()
|
|
3982
|
+
val ok = sendImageData(carrier.id, carrier.name, payload.data)
|
|
3983
|
+
// Fragment acks mean the firmware has the whole payload; it presents on its next frame tick.
|
|
3984
|
+
if (ok) payload.presents?.report(true)
|
|
3954
3985
|
if (!ok) {
|
|
3955
3986
|
// A lost payload leaves the on-glass shadow stale; further
|
|
3956
3987
|
// deltas would composite onto it and corrupt the panel.
|
|
@@ -56,11 +56,31 @@ data class SceneFrame(
|
|
|
56
56
|
val removed: List<String>,
|
|
57
57
|
val canvasWidth: Int = DEFAULT_CANVAS_WIDTH,
|
|
58
58
|
val canvasHeight: Int = DEFAULT_CANVAS_HEIGHT,
|
|
59
|
+
/**
|
|
60
|
+
* Host frame number, reported back in `scene_frame_presented` once the
|
|
61
|
+
* device has the frame. 0 = native-originated (legacy sugar), never reported.
|
|
62
|
+
*/
|
|
63
|
+
val seq: Int = 0,
|
|
59
64
|
) {
|
|
60
65
|
companion object {
|
|
61
66
|
const val DEFAULT_CANVAS_WIDTH = 576
|
|
62
67
|
const val DEFAULT_CANVAS_HEIGHT = 288
|
|
63
68
|
}
|
|
69
|
+
|
|
70
|
+
/** What a queued transfer must report once it lands; null for native-originated frames. */
|
|
71
|
+
val presentTag: PresentTag?
|
|
72
|
+
get() = if (seq > 0) PresentTag(seq, appId) else null
|
|
73
|
+
|
|
74
|
+
/** Tell the host this frame's content is on the glasses (or why it isn't). */
|
|
75
|
+
fun reportPresented(presented: Boolean, reason: String? = null) {
|
|
76
|
+
presentTag?.report(presented, reason)
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
data class PresentTag(val seq: Int, val appId: String) {
|
|
80
|
+
fun report(presented: Boolean, reason: String? = null) {
|
|
81
|
+
Bridge.sendSceneFramePresented(seq, appId, presented, reason)
|
|
82
|
+
}
|
|
83
|
+
}
|
|
64
84
|
}
|
|
65
85
|
|
|
66
86
|
abstract class SGCManager {
|
|
@@ -244,6 +264,8 @@ abstract class SGCManager {
|
|
|
244
264
|
for (id in frame.removed) {
|
|
245
265
|
if (id !in paintedIds) removeLayoutElement(id, frame.appId)
|
|
246
266
|
}
|
|
267
|
+
// No device ack on this path: the verbs above are the best signal there is.
|
|
268
|
+
frame.reportPresented(true)
|
|
247
269
|
}
|
|
248
270
|
|
|
249
271
|
/**
|
|
@@ -73,6 +73,19 @@ export type NavigationViewEvent = {
|
|
|
73
73
|
type: "navigation_view_change";
|
|
74
74
|
viewIndex: number;
|
|
75
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* A scene frame (display.render()) reached — or can no longer reach — the
|
|
78
|
+
* glasses. `seq` is the host's frame number; a report covers every earlier
|
|
79
|
+
* frame too, since unsent frames fold into the next one. `presented: false`
|
|
80
|
+
* carries the `reason` (screen off, nav UI up, page rebuilding, …).
|
|
81
|
+
*/
|
|
82
|
+
export type SceneFramePresentedEvent = {
|
|
83
|
+
type: "scene_frame_presented";
|
|
84
|
+
seq: number;
|
|
85
|
+
appId: string;
|
|
86
|
+
presented: boolean;
|
|
87
|
+
reason?: string;
|
|
88
|
+
};
|
|
76
89
|
export type VoiceActivityDetectionStatusEvent = {
|
|
77
90
|
type: "voice_activity_detection_status";
|
|
78
91
|
voiceActivityDetectionEnabled: boolean;
|
|
@@ -845,6 +858,7 @@ export type BluetoothSdkModuleEvents = {
|
|
|
845
858
|
compass_calibration: (event: CompassCalibrationEvent) => void;
|
|
846
859
|
navigation_mode_change: (event: NavigationModeEvent) => void;
|
|
847
860
|
navigation_view_change: (event: NavigationViewEvent) => void;
|
|
861
|
+
scene_frame_presented: (event: SceneFramePresentedEvent) => void;
|
|
848
862
|
head_up: (event: HeadUpEvent) => void;
|
|
849
863
|
voice_activity_detection_status: (event: VoiceActivityDetectionStatusEvent) => void;
|
|
850
864
|
speaking_status: (event: SpeakingStatusEvent) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{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AU,qBAAqB,CAAC,MAAkB;IACtD,OAAO,MAAM,CAAC,KAAK,KAAK,WAAW,CAAA;AACrC,CAAC;AAoBD,MAAM,UAAU,sBAAsB,CAAC,MAAqB;IAC1D,OAAO,MAAM,CAAC,KAAK,KAAK,SAAS,CAAA;AACnC,CAAC;AAmXD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,EAAE,EAAE,mBAAmB;IACvB,EAAE,EAAE,mBAAmB;IACvB,UAAU,EAAE,aAAa;IACzB,SAAS,EAAE,gBAAgB;IAC3B,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,iBAAiB;IACxB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,EAAE,EAAE,mBAAmB;CACf,CAAA;AAWV,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAA;AAChC,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,CAAA;AACjC,MAAM,CAAC,MAAM,kBAAkB,GAAG,cAAc,CAAA","sourcesContent":["// Bluetooth SDK Event Types\nexport type GlassesNotReadyEvent = {\n type: \"glasses_not_ready\"\n message: string\n}\n\nexport type G2FirmwareTarget = \"stock\" | \"glassly-cfw\"\n\nexport type G2FirmwareArtifact = {\n id: G2FirmwareTarget\n displayName: string\n version: string\n fileName: string\n sha256: string\n size: number\n}\n\nexport type G2FirmwareFlashProgressEvent = {\n type: \"g2_firmware_flash_progress\"\n message: string\n progress: number\n done: boolean\n ok: boolean\n}\n\nexport type G2FirmwareFlashResult = {\n ok: boolean\n target: G2FirmwareTarget\n version: string\n sha256: string\n}\n\n// NOTE: unlike most events below, the native module does NOT include a `type`\n// field on the button_press payload 闂?it sends only {buttonId, pressType,\n// timestamp} (see BluetoothSdkModule on both iOS and Android). Consumers must\n// filter on `pressType` / the \"button_press\" listener name, never `event.type`.\nexport type ButtonPressEvent = {\n buttonId: string\n pressType: \"long\" | \"short\"\n timestamp: number\n}\n\nexport type TouchEvent = {\n type: \"touch_event\"\n deviceModel: DeviceModel\n gestureName: string\n timestamp: number\n}\n\nexport type AccelEvent = {\n type: \"accel_event\"\n x: number\n y: number\n z: number\n timestamp: number\n}\n\nexport type HeadUpEvent = {\n up: boolean\n}\n\n/**\n * Glasses magnetometer heading, streamed while the native navigation mode is\n * active (G2 service 0x08). Degrees 0…359, 0 = magnetic north.\n */\nexport type CompassHeadingEvent = {\n type: \"compass_heading\"\n heading: number\n timestamp: number\n}\n\n/** Magnetometer calibration prompts — the wearer should look around / figure-8. */\nexport type CompassCalibrationEvent = {\n type: \"compass_calibration\"\n status: \"start\" | \"complete\"\n}\n\n/**\n * Native navigation mode lifecycle. `source: \"glasses\"` means the wearer (or\n * firmware) exited the nav UI on the device itself, not the phone.\n */\nexport type NavigationModeEvent = {\n type: \"navigation_mode_change\"\n status: \"entered\" | \"exited\"\n source?: string\n}\n\n/** Wearer toggled the mini-map / overview review view on the glasses. */\nexport type NavigationViewEvent = {\n type: \"navigation_view_change\"\n viewIndex: number\n}\n\nexport type VoiceActivityDetectionStatusEvent = {\n type: \"voice_activity_detection_status\"\n voiceActivityDetectionEnabled: boolean\n}\n\nexport const DEFAULT_VOICE_ACTIVITY_DETECTION_ENABLED = false\n\nexport type SpeakingStatusEvent = {\n type: \"speaking_status\"\n speaking: boolean\n timestamp: number\n}\n\nexport type BatteryStatusEvent = {\n type: \"battery_status\"\n level: number\n charging: boolean\n timestamp: number\n}\n\nexport type GlassesConnectionStatus =\n | {state: \"disconnected\"}\n | {state: \"scanning\"}\n | {state: \"connecting\"}\n | {state: \"bonding\"}\n | {state: \"connected\"; fullyBooted: boolean}\n\nexport type ConnectedGlassesConnectionStatus = Extract<GlassesConnectionStatus, {state: \"connected\"}>\n\nexport function isConnectedGlassesConnectionStatus(\n status: GlassesConnectionStatus,\n): status is ConnectedGlassesConnectionStatus {\n return status.state === \"connected\"\n}\n\nexport function isReadyGlassesConnectionStatus(status: GlassesConnectionStatus): boolean {\n return status.state === \"connected\" && status.fullyBooted\n}\n\nexport function isBusyGlassesConnectionStatus(status: GlassesConnectionStatus): boolean {\n return status.state === \"scanning\" || status.state === \"connecting\" || status.state === \"bonding\"\n}\n\nexport function createDisconnectedGlassesStatus(): Partial<GlassesStatus> {\n return {\n connection: {state: \"disconnected\"},\n hotspot: {state: \"disabled\"},\n voiceActivityDetectionEnabled: DEFAULT_VOICE_ACTIVITY_DETECTION_ENABLED,\n wifi: {state: \"disconnected\"},\n }\n}\n\n/** K900 `sr_getvol` response (Mentra Live glasses media step volume 0闂?5). */\nexport type GlassesMediaVolumeGetResult = {\n level: number\n statusCode: number\n}\n\n/** K900 `sr_vol` acknowledgment. */\nexport type GlassesMediaVolumeSetResult = {\n statusCode: number\n}\n\nexport type LocalTranscriptionEvent = {\n text: string\n isFinal?: boolean\n transcribeLanguage?: string\n /** Enrolled profile id when the on-device speaker engine matched, else 0. */\n speakerId?: number | string\n /** Additive speaker resolution — present only when a profile matched. */\n resolvedSpeakerId?: string\n resolvedSpeakerName?: string\n startTime?: number\n endTime?: number\n provider?: string\n}\n\n/** One on-device speaker-identification window (SpeakerIdEngine).\n * `speakerId`/`name` are absent for an unknown (unenrolled) voice. */\nexport type SpeakerDetectedEvent = {\n speakerId?: string\n name?: string\n similarity: number\n /** Epoch ms window bounds (native clock, same epoch as Date.now()). */\n startMs: number\n endMs: number\n}\n\nexport type SpeakerEnrollProgressEvent = {\n voicedSeconds: number\n targetSeconds: number\n /** RMS level of the latest chunk, 0..1 — drives the recording meter. */\n level: number\n}\n\nexport type SpeakerEnrollResultEvent = {\n ok: boolean\n /** Failure reason when !ok: \"inconsistent\" | \"too_short\" | \"model_unavailable\" | \"unsupported\". */\n reason?: string\n /** base64 Float32Array chunk embeddings (raw audio is already discarded). */\n embeddings?: string[]\n dim?: number\n /** Which mic captured the enrollment audio. */\n source: \"glasses\" | \"phone\"\n}\n\nexport type SpeakerProfilePush = {\n id: string\n name: string\n /** base64 Float32Array centroid. */\n embedding: string\n}\n\nexport type LogEvent = {\n message: string\n}\n\nexport type WifiStatus = {state: \"disconnected\"} | {state: \"connected\"; ssid: string; localIp?: string}\n\nexport type ConnectedWifiStatus = Extract<WifiStatus, {state: \"connected\"}>\n\nexport function isConnectedWifiStatus(status: WifiStatus): status is ConnectedWifiStatus {\n return status.state === \"connected\"\n}\n\nexport type WifiStatusChangeEvent = WifiStatus & {\n type: \"wifi_status_change\"\n /**\n * Glasses-reported provisioning failure reason when THIS event is the verdict of a\n * failed connect attempt; absent on routine link-state updates. An attempt property,\n * not a link property 闂?which is why it lives on the event, not on WifiStatus:\n * \"connect_timeout\" arrives on a disconnected status (never associated), while\n * \"connected_to_other_network\" arrives on a *connected* status (the attempt failed\n * and the glasses ended up on / fell back to a different SSID than requested).\n * Requires ASG client v40+ 闂?older glasses never send it.\n */\n error?: string\n}\n\nexport type HotspotStatus = {state: \"disabled\"} | {state: \"enabled\"; ssid: string; password: string; localIp: string}\n\nexport type EnabledHotspotStatus = Extract<HotspotStatus, {state: \"enabled\"}>\n\nexport function isEnabledHotspotStatus(status: HotspotStatus): status is EnabledHotspotStatus {\n return status.state === \"enabled\"\n}\n\nexport type HotspotStatusChangeEvent = HotspotStatus & {\n type: \"hotspot_status_change\"\n}\n\nexport type HotspotErrorEvent = {\n type: \"hotspot_error\"\n errorMessage: string\n timestamp: number\n}\n\nexport type VersionInfoResult = {\n androidVersion: string\n firmwareVersion: string\n besFirmwareVersion: string\n mtkFirmwareVersion: string\n buildNumber: string\n systemTimeMs?: number\n otaVersionUrl: string\n appVersion: string\n /** Phone-served hotspot OTA protocol version; 0 means unsupported/legacy glasses. */\n hotspotOtaVersion: number\n}\n\nexport type VersionInfoEvent = VersionInfoResult & {\n type: \"version_info\"\n}\n\nexport type WifiScanResultEvent = {\n type: \"wifi_scan_result\"\n networks: WifiSearchResult[]\n scanComplete?: boolean\n}\n\nexport type PhotoResponseEvent =\n | {\n type: \"photo_response\"\n state: \"success\"\n requestId: string\n uploadUrl: string\n photoUrl?: string\n statusUrl?: string\n contentType?: string\n fileSizeBytes?: number\n timestamp: number\n }\n | {\n type: \"photo_response\"\n state: \"error\"\n requestId: string\n timestamp: number\n errorCode?: string\n errorMessage: string\n }\n\nexport type PhotoSuccessResponseEvent = Extract<PhotoResponseEvent, {state: \"success\"}>\n\nexport type PhotoStatusState =\n | \"accepted\"\n | \"queued\"\n | \"configuring\"\n | \"capturing\"\n | \"captured\"\n | \"compressing\"\n | \"ble_fallback_compression\"\n | \"uploading\"\n | \"uploaded\"\n | \"ready_for_transfer\"\n | \"transferring\"\n | \"failed\"\n\nexport type PhotoResolvedConfig = {\n format?: \"jpeg\" | string\n width?: number\n height?: number\n quality?: number\n requestedSize?: PhotoSize | string\n source?: \"sdk\" | \"button\" | string\n transferMethod?: \"webhook\" | \"ble\" | \"local\" | string\n compression?: PhotoCompression | string\n saveToGallery?: boolean\n exposureTimeNs?: number\n iso?: number\n}\n\nexport type PhotoFpsRange = {\n min?: number\n max?: number\n}\n\nexport type PhotoRequestedCaptureConfig = {\n manual?: boolean\n exposureTimeNs?: number\n iso?: number\n frameDurationNs?: number\n aeMode?: number\n aeLock?: boolean\n aeExposureCompensation?: number\n aeTargetFpsRange?: PhotoFpsRange\n noiseReductionMode?: number\n edgeMode?: number\n afMode?: number\n zsl?: boolean\n}\n\nexport type PhotoMeteredPreview = {\n exposureTimeNs?: number\n iso?: number\n totalLightProxy?: number\n}\n\nexport type PhotoCaptureMetadata = {\n manual?: boolean\n exposureTimeNs?: number\n iso?: number\n frameDurationNs?: number\n aeMode?: number\n aeState?: number\n aeStateName?: string\n noiseReductionMode?: number\n edgeMode?: number\n zsl?: boolean\n sensorTimestampNs?: number\n totalLightProxy?: number\n mfnrLikely?: boolean\n mfnrApplied?: boolean\n width?: number\n height?: number\n noiseReductionWarning?: \"not_implemented\" | string\n ispDigitalGainWarning?: \"not_implemented\" | string\n ispAnalogGainWarning?: \"not_implemented\" | string\n [key: string]: unknown\n}\n\nexport type PhotoStatusEvent = {\n type: \"photo_status\"\n requestId: string\n status: PhotoStatusState | string\n timestamp: number\n resolvedConfig?: PhotoResolvedConfig\n requestedCaptureConfig?: PhotoRequestedCaptureConfig\n meteredPreview?: PhotoMeteredPreview\n captureMetadata?: PhotoCaptureMetadata\n errorCode?: string\n errorMessage?: string\n}\n\nexport type CameraStatusEvent = {\n type: \"camera_status\"\n requestId: string\n state: \"warming\" | \"ready\" | \"stopped\" | \"error\" | string\n timestamp: number\n errorCode?: string\n errorMessage?: string\n}\n\nexport type VideoRecordingStatusEvent = {\n type: \"video_recording_status\"\n requestId?: string\n success: boolean\n status: VideoRecordingStatusState\n details?: string | null\n timestamp: number\n data?: {\n recording?: boolean\n duration_ms?: number\n duration_formatted?: string\n [key: string]: unknown\n }\n}\n\nexport type VideoRecordingStatusState =\n | \"recording_started\"\n | \"recording_status\"\n | \"already_recording\"\n | \"recording_stopped\"\n | \"not_recording\"\n | \"request_id_mismatch\"\n | \"service_unavailable\"\n | \"json_error\"\n | \"battery_low\"\n | \"camera_busy\"\n | \"storage_unavailable\"\n | \"integrity_failed\"\n | \"error\"\n\nexport type VideoRecordingStartedStatusEvent = Omit<VideoRecordingStatusEvent, \"success\" | \"status\"> & {\n success: true\n status: \"recording_started\"\n}\n\nexport type VideoRecordingStoppedStatusEvent = Omit<VideoRecordingStatusEvent, \"success\" | \"status\"> & {\n success: true\n status: \"recording_stopped\"\n}\n\nexport type VideoRecordingSuccessStatusEvent = VideoRecordingStartedStatusEvent | VideoRecordingStoppedStatusEvent\n\nexport type MediaUploadSuccessEvent = {\n type: \"media_success\"\n requestId: string\n mediaUrl: string\n mediaType: number\n timestamp: number\n}\n\nexport type MediaUploadErrorEvent = {\n type: \"media_error\"\n requestId: string\n errorMessage: string\n mediaType: number\n timestamp: number\n}\n\nexport type MediaUploadEvent = MediaUploadSuccessEvent | MediaUploadErrorEvent\n\nexport type GalleryStatusEvent = {\n type: \"gallery_status\"\n photos: number\n videos: number\n total: number\n totalSize?: number\n hasContent: boolean\n cameraBusy: boolean\n cameraBusyReason?: \"video\" | \"stream\" | (string & {})\n}\n\nexport type CompatibleGlassesSearchStopEvent = {\n type: \"compatible_glasses_search_stop\"\n deviceModel: DeviceModel\n}\n\nexport type HeartbeatSentEvent = {\n type: \"heartbeat_sent\"\n heartbeat_sent: {\n timestamp: number\n }\n}\n\nexport type HeartbeatReceivedEvent = {\n type: \"heartbeat_received\"\n heartbeat_received: {\n timestamp: number\n }\n}\n\nexport type SwipeVolumeStatusEvent = {\n type: \"swipe_volume_status\"\n enabled: boolean\n timestamp: number\n}\n\nexport type SwitchStatusEvent = {\n type: \"switch_status\"\n switchType?: number\n switchValue?: number\n timestamp: number\n}\n\nexport type RgbLedControlResponseEvent =\n | {\n type: \"rgb_led_control_response\"\n state: \"success\"\n requestId: string\n }\n | {\n type: \"rgb_led_control_response\"\n state: \"error\"\n requestId: string\n errorCode: string\n }\n\nexport type RgbLedControlSuccessResponseEvent = Extract<RgbLedControlResponseEvent, {state: \"success\"}>\n\nexport type SettingsAckStatus = \"applied\" | \"ready\" | \"error\" | \"failed\" | \"failure\" | \"rejected\"\n\nexport type SettingsAckSetting =\n | \"gallery_mode\"\n | \"button_photo\"\n | \"button_video_recording\"\n | \"button_max_recording_time\"\n | \"camera_fov\"\n | \"camera_fov_override\"\n | \"camera_tuning\"\n\nexport type SettingsAckEvent = {\n type: \"settings_ack\"\n requestId: string\n setting: SettingsAckSetting\n status: SettingsAckStatus\n timestamp: number\n fov?: number\n roiPosition?: CameraRoiPositionValue\n hardwareApplied?: boolean\n leaseId?: string\n active?: boolean\n size?: ButtonPhotoSize | string\n width?: number\n height?: number\n fps?: number\n enabled?: boolean\n minutes?: number\n /** ANR enabled flag; present when setting === \"camera_tuning\" */\n anr?: boolean\n /** Stock-gain flag; present when setting === \"camera_tuning\" */\n gain?: boolean\n errorCode?: string\n errorMessage?: string\n}\n\nexport type SettingsAckSuccessStatus = Exclude<SettingsAckStatus, \"error\" | \"failed\" | \"failure\" | \"rejected\">\n\nexport type SettingsAckSuccessEvent = Omit<SettingsAckEvent, \"status\"> & {\n status: SettingsAckSuccessStatus\n}\n\nexport type RgbLedAction = \"on\" | \"off\"\nexport type RgbLedColor = \"red\" | \"green\" | \"blue\" | \"orange\" | \"white\"\nexport type PhotoSize = \"low\" | \"medium\" | \"high\" | \"max\"\nexport type PhotoMode = \"photo\" | \"text\"\nexport type PhotoTransferMethod = \"auto\" | \"direct\" | \"ble\"\nexport type ButtonPhotoSize = \"low\" | \"medium\" | \"high\" | \"max\"\n\n/**\n * @deprecated Sticky action-button photo presets via {@link BluetoothSdkPublicModule.setPhotoCaptureDefaults}\n * are deprecated. Prefer per-request {@link BluetoothSdkPublicModule.requestPhoto} options\n * (e.g. `mode: \"text\"` for text sensor size/crop, or explicit `aeExposureDivisor`) instead of\n * persisting button-photo tuning on the glasses.\n */\nexport type PhotoCaptureDefaults = {\n size?: PhotoSize\n /** ZSL preview buffering for physical camera-button photos. */\n zsl?: boolean\n /** MFNR still capture for physical camera-button photos. */\n mfnr?: boolean\n noiseReduction?: boolean\n edgeEnhancement?: boolean\n ispDigitalGain?: number\n ispAnalogGain?: string\n aeExposureDivisor?: number\n isoCap?: number\n compress?: PhotoCompression\n sound?: boolean\n /** When true, clears stored NR/edge/ISP presets on the glasses before applying other fields. */\n resetCaptureTuning?: boolean\n}\nexport type PhotoCompression = \"none\" | \"medium\" | \"heavy\"\n\nexport type VideoRecordingDefaults = {\n width: number\n height: number\n fps: number\n}\n\n/**\n * Optional per-recording video settings for {@link startVideoRecording}. When\n * omitted, the glasses fall back to their saved video recording defaults. Any\n * field left undefined is omitted from the BLE command (glasses default applies).\n */\nexport interface VideoRecordingSettings {\n width?: number\n height?: number\n fps?: number\n /**\n * Optional auto-stop timer in minutes, sent on `start_video_recording`.\n * `0` (the default) means record until stopped or interrupted\n * (battery/storage/thermal/error).\n */\n maxRecordingTimeMinutes?: number\n}\nexport const DeviceModels = {\n Simulated: \"Simulated Glasses\",\n G1: \"Even Realities G1\",\n G2: \"Even Realities G2\",\n MentraLive: \"Mentra Live\",\n MentraNex: \"Mentra Display\",\n Mach1: \"Mentra Mach1\",\n Z100: \"Vuzix Z100\",\n Frame: \"Brilliant Frame\",\n Nimo: \"NIMO\",\n Ar99: \"AR99\",\n R1: \"Even Realities R1\",\n} as const\n\nexport type DeviceModel = (typeof DeviceModels)[keyof typeof DeviceModels]\nexport type ObservableStoreCategory = \"glasses\" | \"bluetooth\" | \"core\"\n\nexport type DashboardMenuItem = {\n title: string\n packageName: string\n values?: Record<string, unknown>\n}\n\nexport const CAMERA_FOV_MIN = 62\nexport const CAMERA_FOV_MAX = 118\nexport const CAMERA_FOV_DEFAULT = CAMERA_FOV_MAX\n\nexport type CameraRoiPosition = \"center\" | \"bottom\" | \"top\"\nexport type CameraRoiPositionValue = 0 | 1 | 2\nexport type CameraFovPreset = \"narrow\" | \"standard\" | \"wide\"\n\nexport type CameraFovRequest =\n | {\n fov: number\n roiPosition?: CameraRoiPosition\n }\n | {\n preset: CameraFovPreset\n }\n\nexport type CameraFovResult = {\n requestId: string\n fov: number\n roiPosition: CameraRoiPosition\n timestamp: number\n}\n\nexport type CameraFovOverrideRequest = CameraFovRequest & {\n /** Phone-owned lease used to make delayed releases safe. */\n leaseId: string\n /** Safety TTL; refresh the same lease/configuration to extend without a HAL restart. */\n ttlMs?: number\n}\n\nexport type CameraFovSetting = {\n fov: number\n roiPosition: CameraRoiPositionValue\n}\n\ntype NativeCameraFovSetting = {\n fov: number\n roi_position: CameraRoiPositionValue\n}\n\nexport type MicPreference = \"auto\" | \"phone\" | \"glasses\" | \"bluetooth\"\nexport type MicMode = \"phone\" | \"glasses\" | \"bluetoothClassic\" | \"bluetooth\"\n\nexport type PhotoRequestParams = {\n requestId?: string\n appId?: string\n size: PhotoSize\n mode?: PhotoMode\n /** `direct` disables BLE fallback; `ble` skips direct upload and forces phone-relayed transfer. */\n transferMethod?: PhotoTransferMethod\n webhookUrl: string | null\n authToken: string | null\n compress: PhotoCompression\n save?: boolean\n sound: boolean\n exposureTimeNs?: number | null\n /** Sensor ISO for this capture only. Only used when exposureTimeNs enables manual exposure. */\n iso?: number | null\n /** After AE convergence, divide metered exposure by this factor (scan mode). */\n aeExposureDivisor?: number\n /** Cap ISO after AE metering (scan mode). */\n isoCap?: number\n /** Requested on wire; glasses may log not_implemented. */\n noiseReduction?: boolean\n edgeEnhancement?: boolean\n /** ZSL buffering. Forced off for manual/scan stills because fixed sensor controls take priority. */\n zsl?: boolean\n /** MFNR still capture. Forced off for manual/scan stills because fixed sensor controls take priority. */\n mfnr?: boolean\n ispDigitalGain?: number\n ispAnalogGain?: string\n}\n\nexport type WarmUpCameraParams = {\n /** Supply this when the owner needs to call stopCameraWarmUp during teardown. */\n requestId?: string\n size: PhotoSize\n mode?: PhotoMode\n exposureTimeNs?: number | null\n /** Ready-state hold; defaults to 15 seconds and is capped at 60 seconds by ASG. */\n durationMs?: number\n /** ZSL preview buffering for the warm-up session. */\n zsl?: boolean\n /** MFNR still capture for the warm-up session. */\n mfnr?: boolean\n}\n\nexport type StreamVideoConfig = {\n width?: number\n height?: number\n bitrate?: number\n fps?: number\n}\n\nexport type StreamAudioConfig = {\n bitrate?: number\n sampleRate?: number\n echoCancellation?: boolean\n noiseSuppression?: boolean\n}\n\nexport type StreamStartRequest = {\n type?: \"start_stream\"\n streamUrl: string\n streamId?: string\n sound?: boolean\n video?: StreamVideoConfig\n audio?: StreamAudioConfig\n}\n\nexport type StreamKeepAliveRequest = {\n type?: \"keep_stream_alive\"\n streamId: string\n ackId: string\n}\n\nexport type PairFailureEvent = {\n type: \"pair_failure\"\n error: string\n}\n\nexport type PairingInfoEvent = {\n had_previous_bond: boolean\n pairing_code?: string\n classic_bond_ready?: boolean\n secure_pairing_capable?: boolean\n protocol_version?: number\n}\n\nexport type EnteringPairingModeEvent = {\n window_ms: number\n reason?: string\n}\n\nexport type OwnerReplacedEvent = {\n reason: string\n}\n\nexport type AudioPairingNeededEvent = {\n type: \"audio_pairing_needed\"\n deviceName: string\n}\n\nexport type AudioConnectedEvent = {\n type: \"audio_connected\"\n deviceName: string\n}\n\nexport type AudioDisconnectedEvent = {\n type: \"audio_disconnected\"\n}\n\nexport type SaveSettingEvent = {\n type: \"save_setting\"\n key: string\n value: any\n}\n\nexport type WsTextEvent = {\n type: \"ws_text\"\n text: string\n}\n\nexport type WsBinEvent = {\n type: \"ws_bin\"\n base64: string\n}\n\nexport type MicPcmEvent = {\n type: \"mic_pcm\"\n pcm: ArrayBuffer\n sampleRate: 16000\n bitsPerSample: 16\n channels: 1\n encoding: \"pcm_s16le\"\n voiceActivityDetectionEnabled: boolean\n}\n\nexport type MicLc3Event = {\n type: \"mic_lc3\"\n lc3: ArrayBuffer\n sampleRate: 16000\n channels: 1\n encoding: \"lc3\"\n frameDurationMs: 10\n frameSizeBytes: number\n bitrate: number\n packetizedFromGlasses: boolean\n voiceActivityDetectionEnabled: boolean\n}\n\n/** Native glasses-microphone diagnostics emitted when the SDK detects a transport or decode issue. */\nexport type MicHealthEvent = {\n type: \"mic_health\"\n reason: \"sequence_gap\" | \"decode_failure\"\n sequenceGapEvents: number\n decodeFailures: number\n lastLc3ReceivedAt?: number\n lastPcmProducedAt?: number\n timestamp: number\n}\n\nexport type StreamStatusLifecycleState = \"initializing\" | \"streaming\" | \"stopping\" | \"stopped\"\nexport type StreamStatusReconnectState = \"reconnecting\" | \"reconnected\" | \"reconnect_failed\"\nexport type StreamStatusState = StreamStatusLifecycleState | StreamStatusReconnectState | \"error\"\n\n/** Effective stream settings reported by the glasses after defaults and clamps. */\nexport type StreamResolvedConfig = {\n transport?: \"rtmp\" | \"srt\" | \"whip\"\n video?: {\n /** Encoded output width sent to the stream endpoint. */\n width: number\n /** Encoded output height sent to the stream endpoint. */\n height: number\n /** Native camera buffer width selected before crop/downscale. */\n captureWidth?: number\n /** Native camera buffer height selected before crop/downscale. */\n captureHeight?: number\n /** Encoded video bitrate in bits per second. */\n bitrate: number\n /** Resolved capture/encode frame rate. */\n fps: number\n }\n audio?: {\n /** Encoded audio bitrate in bits per second. */\n bitrate?: number\n /** Audio sample rate in Hz. */\n sampleRate?: number\n echoCancellation?: boolean\n noiseSuppression?: boolean\n }\n}\n\n/** Live encoder and device telemetry emitted periodically by supported glasses firmware. */\nexport type StreamLiveStats = {\n /** Current encoded video bitrate in bits per second. */\n bitrate?: number\n /** Current encode frame rate. */\n fps?: number\n droppedFrames?: number\n /** Seconds since the stream started. */\n duration?: number\n /** Device temperature in 闂佺娅i悡? if the hardware reports it. */\n temperatureC?: number\n}\n\ntype StreamStatusCommon = {\n type: \"stream_status\"\n streamId?: string\n timestamp?: number\n resolvedConfig?: StreamResolvedConfig\n stats?: StreamLiveStats\n}\n\nexport type StreamStatusEvent =\n | (StreamStatusCommon & {\n kind: \"lifecycle\"\n status: StreamStatusLifecycleState\n })\n | (StreamStatusCommon & {\n kind: \"reconnect\"\n status: \"reconnecting\"\n attempt: number\n maxAttempts: number\n reason: string\n })\n | (StreamStatusCommon & {\n kind: \"reconnect\"\n status: \"reconnected\"\n attempt: number\n })\n | (StreamStatusCommon & {\n kind: \"reconnect\"\n status: \"reconnect_failed\"\n maxAttempts: number\n })\n | (StreamStatusCommon & {\n kind: \"error\"\n status: \"error\"\n errorDetails: string\n })\n | (StreamStatusCommon & {\n kind: \"snapshot\"\n status: \"streaming\" | \"reconnecting\" | \"stopped\"\n streaming: boolean\n reconnecting: boolean\n attempt?: number\n })\n\nexport type KeepAliveAckEvent = {\n type: \"keep_alive_ack\"\n streamId: string\n ackId: string\n timestamp?: number\n}\n\nexport type MtkUpdateCompleteEvent = {\n type: \"mtk_update_complete\"\n message: string\n timestamp: number\n}\n\n/**\n * The glasses process restarted while the BES kept the BLE link alive (its `sid`\n * changed, or first appeared after an update from a pre-sid build). There is no\n * physical disconnect for this — treat it as the logical reconnect edge.\n */\nexport type GlassesSessionChangedEvent = {\n type: \"glasses_session_changed\"\n previous_sid: string\n sid: string\n}\n\n/** @deprecated Glasses no longer emit ota_progress; use {@link OtaStatusEvent} and status-store mapping. */\nexport type OtaProgressEvent = {\n type: \"ota_progress\"\n stage?: OtaStage\n status?: OtaProgressStatus\n progress?: number\n bytes_downloaded?: number\n total_bytes?: number\n current_update?: string\n error_message?: string\n}\n\nexport type OtaStartAckEvent = {\n type: \"ota_start_ack\"\n timestamp: number\n}\nexport type OtaStatusEvent = {\n type: \"ota_status\"\n session_id: string\n total_steps: number\n current_step: number\n step_type: \"apk\" | \"mtk\" | \"bes\"\n phase: \"download\" | \"install\"\n step_percent: number\n overall_percent: number\n status: \"in_progress\" | \"step_complete\" | \"complete\" | \"failed\" | \"idle\"\n error_message?: string\n}\n\nexport type OtaQueryResult = OtaStatusEvent\n\n/** Nex BLE protobuf trace (NexEventUtils); payload matches native Map keys. */\nexport type BleCommandTraceEvent = {\n command: string\n commandText: string\n timestamp: number\n}\n\nexport type MiniappSelectedEvent = {\n type: \"miniapp_selected\"\n packageName: string\n}\n\n// Union type of all native/internal Bluetooth SDK events.\nexport type BluetoothSdkInternalEvent = Parameters<BluetoothSdkModuleEvents[keyof BluetoothSdkModuleEvents]>[0]\n\nexport type BluetoothSdkModuleEvents = {\n glasses_status: (changed: Partial<GlassesStatus>) => void\n bluetooth_status: (changed: Partial<BluetoothStatus>) => void\n log: (event: LogEvent) => void\n device_discovered: (device: Device) => void\n default_device_changed: (event: {device?: Device}) => void\n // Individual event handlers\n glasses_not_ready: (event: GlassesNotReadyEvent) => void\n button_press: (event: ButtonPressEvent) => void\n touch_event: (event: TouchEvent) => void\n accel_event: (event: AccelEvent) => void\n compass_heading: (event: CompassHeadingEvent) => void\n compass_calibration: (event: CompassCalibrationEvent) => void\n navigation_mode_change: (event: NavigationModeEvent) => void\n navigation_view_change: (event: NavigationViewEvent) => void\n head_up: (event: HeadUpEvent) => void\n voice_activity_detection_status: (event: VoiceActivityDetectionStatusEvent) => void\n speaking_status: (event: SpeakingStatusEvent) => void\n battery_status: (event: BatteryStatusEvent) => void\n local_transcription: (event: LocalTranscriptionEvent) => void\n speaker_detected: (event: SpeakerDetectedEvent) => void\n speaker_enroll_progress: (event: SpeakerEnrollProgressEvent) => void\n speaker_enroll_result: (event: SpeakerEnrollResultEvent) => void\n phone_notification: (event: PhoneNotificationEvent) => void\n phone_notification_dismissed: (event: PhoneNotificationDismissedEvent) => void\n notification_app_seen: (event: NotificationAppSeenEvent) => void\n wifi_status_change: (event: WifiStatusChangeEvent) => void\n wifi_scan_result: (event: WifiScanResultEvent) => void\n hotspot_status_change: (event: HotspotStatusChangeEvent) => void\n hotspot_error: (event: HotspotErrorEvent) => void\n photo_response: (event: PhotoResponseEvent) => void\n photo_status: (event: PhotoStatusEvent) => void\n camera_status: (event: CameraStatusEvent) => void\n video_recording_status: (event: VideoRecordingStatusEvent) => void\n media_success: (event: MediaUploadSuccessEvent) => void\n media_error: (event: MediaUploadErrorEvent) => void\n gallery_status: (event: GalleryStatusEvent) => void\n compatible_glasses_search_stop: (event: CompatibleGlassesSearchStopEvent) => void\n heartbeat_sent: (event: HeartbeatSentEvent) => void\n heartbeat_received: (event: HeartbeatReceivedEvent) => void\n swipe_volume_status: (event: SwipeVolumeStatusEvent) => void\n switch_status: (event: SwitchStatusEvent) => void\n rgb_led_control_response: (event: RgbLedControlResponseEvent) => void\n settings_ack: (event: SettingsAckEvent) => void\n pair_failure: (event: PairFailureEvent) => void\n pairing_info: (event: PairingInfoEvent) => void\n entering_pairing_mode: (event: EnteringPairingModeEvent) => void\n owner_replaced: (event: OwnerReplacedEvent) => void\n audio_pairing_needed: (event: AudioPairingNeededEvent) => void\n audio_connected: (event: AudioConnectedEvent) => void\n audio_disconnected: (event: AudioDisconnectedEvent) => void\n save_setting: (event: SaveSettingEvent) => void\n ws_text: (event: WsTextEvent) => void\n ws_bin: (event: WsBinEvent) => void\n mic_pcm: (event: MicPcmEvent) => void\n mic_lc3: (event: MicLc3Event) => void\n mic_health: (event: MicHealthEvent) => void\n stream_status: (event: StreamStatusEvent) => void\n keep_alive_ack: (event: KeepAliveAckEvent) => void\n mtk_update_complete: (event: MtkUpdateCompleteEvent) => void\n glasses_session_changed: (event: GlassesSessionChangedEvent) => void\n ota_start_ack: (event: OtaStartAckEvent) => void\n ota_status: (event: OtaStatusEvent) => void\n ar99_ota_status: (event: Ar99OtaStatusEvent) => void\n g2_firmware_flash_progress: (event: G2FirmwareFlashProgressEvent) => void\n version_info: (event: VersionInfoEvent) => void\n send_command_to_ble: (event: BleCommandTraceEvent) => void\n receive_command_from_ble: (event: BleCommandTraceEvent) => void\n miniapp_selected: (event: MiniappSelectedEvent) => void\n extraction_progress: (event: ExtractionProgressEvent) => void\n}\n\nexport interface ExtractionProgressEvent {\n percentage: number\n bytesRead: number\n totalBytes: number\n}\n\nexport interface Ar99OtaStatusEvent {\n type: \"ar99_ota_status\"\n phase: string\n progress: number\n offset: number\n total: number\n errorMessage?: string\n error_message?: string\n}\n\nexport interface PhoneNotificationEvent {\n notificationId: string\n app: string\n title: string\n content: string\n priority: string\n timestamp: number\n packageName: string\n}\n\nexport interface PhoneNotificationDismissedEvent {\n notificationId: string\n notificationKey: string\n packageName: string\n timestamp: number\n}\n\n/**\n * iOS G2: the glasses' on-firmware ANCS client reported the source app of a\n * notification (bundle id + display name — never the content). Feeds the\n * seen-apps list backing the ANCS filter UI.\n */\nexport interface NotificationAppSeenEvent {\n appId: string\n displayName: string\n timestamp: number\n}\n\nexport type PublicGlassesStatus = Omit<\n GlassesStatus,\n \"otaUpdateAvailable\" | \"otaProgress\" | \"otaInProgress\" | \"otaVersionUrl\"\n>\n\nexport type PublicBluetoothStatus = Pick<\n BluetoothStatus,\n | \"searching\"\n | \"searchingController\"\n | \"systemMicUnavailable\"\n | \"micRanking\"\n | \"currentMic\"\n | \"searchResults\"\n | \"wifiScanResults\"\n | \"lastLog\"\n | \"otherBtConnected\"\n | \"galleryModeEnabled\"\n>\n\nexport type BluetoothSdkEventMap = {\n log: LogEvent\n device_discovered: Device\n default_device_changed: {device?: Device}\n glasses_not_ready: GlassesNotReadyEvent\n button_press: ButtonPressEvent\n touch_event: TouchEvent\n accel_event: AccelEvent\n head_up: HeadUpEvent\n voice_activity_detection_status: VoiceActivityDetectionStatusEvent\n speaking_status: SpeakingStatusEvent\n battery_status: BatteryStatusEvent\n local_transcription: LocalTranscriptionEvent\n wifi_status_change: WifiStatusChangeEvent\n wifi_scan_result: WifiScanResultEvent\n hotspot_status_change: HotspotStatusChangeEvent\n hotspot_error: HotspotErrorEvent\n photo_response: PhotoResponseEvent\n photo_status: PhotoStatusEvent\n camera_status: CameraStatusEvent\n video_recording_status: VideoRecordingStatusEvent\n media_success: MediaUploadSuccessEvent\n media_error: MediaUploadErrorEvent\n gallery_status: GalleryStatusEvent\n compatible_glasses_search_stop: CompatibleGlassesSearchStopEvent\n swipe_volume_status: SwipeVolumeStatusEvent\n switch_status: SwitchStatusEvent\n rgb_led_control_response: RgbLedControlResponseEvent\n settings_ack: SettingsAckEvent\n pair_failure: PairFailureEvent\n pairing_info: PairingInfoEvent\n entering_pairing_mode: EnteringPairingModeEvent\n owner_replaced: OwnerReplacedEvent\n audio_pairing_needed: AudioPairingNeededEvent\n audio_connected: AudioConnectedEvent\n audio_disconnected: AudioDisconnectedEvent\n mic_pcm: MicPcmEvent\n mic_lc3: MicLc3Event\n mic_health: MicHealthEvent\n stream_status: StreamStatusEvent\n /** Mentra Live MTK updater completed and the glasses are about to restart. */\n mtk_update_complete: MtkUpdateCompleteEvent\n /** The ASG process restarted while the BES kept the BLE connection alive. */\n glasses_session_changed: GlassesSessionChangedEvent\n ota_start_ack: OtaStartAckEvent\n ota_status: OtaStatusEvent\n ar99_ota_status: Ar99OtaStatusEvent\n g2_firmware_flash_progress: G2FirmwareFlashProgressEvent\n version_info: VersionInfoEvent\n extraction_progress: ExtractionProgressEvent\n}\n\nexport type BluetoothSdkEventName = keyof BluetoothSdkEventMap\n\nexport type BluetoothSdkEventListener<EventName extends BluetoothSdkEventName> = (\n event: BluetoothSdkEventMap[EventName],\n) => void\n\nexport type BluetoothSdkSubscription = {\n remove(): void\n}\n\nexport type BluetoothSdkEvent = BluetoothSdkEventMap[BluetoothSdkEventName]\n\nexport interface BluetoothSdkPublicModule {\n addListener<EventName extends BluetoothSdkEventName>(\n eventName: EventName,\n listener: BluetoothSdkEventListener<EventName>,\n ): BluetoothSdkSubscription\n\n /** Read an immutable snapshot of the current glasses state. */\n getGlassesStatus(): Promise<PublicGlassesStatus>\n /** Read an immutable snapshot of the phone Bluetooth adapter state. */\n getBluetoothStatus(): Promise<PublicBluetoothStatus>\n /** Observe immutable glasses-state patches. Returns an unsubscribe function. */\n subscribeGlassesStatus(listener: (changed: Partial<PublicGlassesStatus>) => void): () => void\n /** Observe immutable Bluetooth-state patches. Returns an unsubscribe function. */\n subscribeBluetoothStatus(listener: (changed: Partial<PublicBluetoothStatus>) => void): () => void\n\n getDefaultDevice(): Promise<Device | null>\n setDefaultDevice(device: Device | null): Promise<void>\n clearDefaultDevice(): Promise<void>\n\n startScan(model: DeviceModel): Promise<void>\n stopScan(): Promise<void>\n scan(options: ScanOptions): Promise<Device[]>\n scan(model: DeviceModel, options?: ScanModelOptions): Promise<Device[]>\n connect(device: Device, options?: ConnectOptions): Promise<void>\n connectDefault(options?: ConnectOptions): Promise<void>\n cancelConnectionAttempt(): Promise<void>\n disconnect(): Promise<void>\n forget(): Promise<void>\n\n displayText(text: string, x?: number, y?: number, size?: number): Promise<void>\n clearDisplay(): Promise<void>\n showDashboard(): Promise<void>\n /**\n * Open the glasses' built-in notification panel (same effect as the user\n * saying \"Hey Even, show notifications\"). G2 only; a no-op elsewhere.\n */\n showNativeNotificationPanel(): Promise<void>\n setDashboardPosition(height: number, depth: number): Promise<void>\n setHeadUpAngle(angleDegrees: number): Promise<void>\n setImuEnabled(enabled: boolean): Promise<void>\n setScreenDisabled(disabled: boolean): Promise<void>\n /** Keep legacy Mentra Live OTA sessions awake. Modern sessions normally do not require this. */\n ping(): Promise<void>\n\n requestWifiScan(): Promise<WifiSearchResult[]>\n sendWifiCredentials(ssid: string, password: string): Promise<WifiStatusChangeEvent>\n forgetWifiNetwork(ssid: string): Promise<WifiStatusChangeEvent>\n setHotspotState(enabled: boolean): Promise<HotspotStatusChangeEvent>\n /** Set the glasses clock from the phone after an OTA clock-skew failure. */\n setSystemTime(timestampMs: number): Promise<void>\n /** Enable or disable Wi-Fi ADB on Mentra Live (no-op on other devices). */\n setWifiAdbState(enabled: boolean): Promise<void>\n\n setGalleryModeEnabled(enabled: boolean): Promise<SettingsAckSuccessEvent>\n setVoiceActivityDetectionEnabled(enabled: boolean): Promise<void>\n setLoudnessGateEnabled(enabled: boolean): Promise<void>\n /**\n * @deprecated Sticky action-button photo presets are deprecated. Prefer per-request\n * `requestPhoto(...)` options (e.g. `mode: \"text\"` for text sensor size/crop, or explicit per-shot\n * fields). Still functional until removed in a future release.\n */\n setPhotoCaptureDefaults(settings: PhotoCaptureDefaults): Promise<SettingsAckSuccessEvent>\n setVideoRecordingDefaults(settings: VideoRecordingDefaults): Promise<SettingsAckSuccessEvent>\n setMaxVideoRecordingDuration(minutes: number): Promise<SettingsAckSuccessEvent>\n setCameraFov(request: CameraFovRequest): Promise<CameraFovResult>\n /** One-way FOV command for legacy ASG clients that do not send settings acknowledgements. */\n setLegacyCameraFov(request: CameraFovRequest): Promise<CameraFovResult>\n setCameraFovOverride(request: CameraFovOverrideRequest): Promise<CameraFovResult>\n releaseCameraFovOverride(leaseId: string): Promise<SettingsAckSuccessEvent>\n /**\n * Configure camera HAL tuning (ANR / gain) on Mentra Live glasses.\n *\n * The phone sends a {@code camera_tuning_config} BLE command; the glasses relay it as a\n * {@code camconfig} broadcast to the camera HAL so parameters take effect without a reboot.\n *\n * **Scan-mode convention**: call with `(false, false)` when activating scan mode to disable ANR\n * and pixsmart gain for sharper text/barcode captures. Call with `(true, true)` to restore\n * defaults when exiting scan mode.\n *\n * @param anrOn `true` = ANR enabled (default), `false` = ANR disabled\n * @param gainOn `true` = stock gain params (default), `false` = pixsmart gain-off params\n */\n setCameraTuningConfig(anrOn: boolean, gainOn: boolean): Promise<SettingsAckSuccessEvent>\n queryGalleryStatus(): Promise<GalleryStatusEvent>\n requestPhoto(params: PhotoRequestParams): Promise<PhotoSuccessResponseEvent>\n warmUpCamera(params: WarmUpCameraParams): Promise<CameraStatusEvent>\n /** Release one request-owned warm-up. Opening requests reject with camera_warm_up_cancelled. */\n stopCameraWarmUp(requestId: string): Promise<void>\n startVideoRecording(\n requestId: string,\n save: boolean,\n sound: boolean,\n settings?: VideoRecordingSettings,\n ): Promise<VideoRecordingStartedStatusEvent>\n /**\n * Stop the active recording. When {@link webhookUrl} is provided, the glasses\n * upload the recorded video to it (multipart) using {@link authToken}. These\n * are supplied at stop time (not start) so the token is fresh when the upload\n * runs 闂?a recording can last arbitrarily long. An empty/omitted webhook keeps\n * the video on device (no upload).\n */\n stopVideoRecording(\n requestId: string,\n webhookUrl?: string,\n authToken?: string,\n ): Promise<VideoRecordingStoppedStatusEvent>\n /** Query the glasses for the current recording state and elapsed duration. */\n queryVideoRecordingStatus(requestId: string): Promise<VideoRecordingStatusEvent>\n\n startStream(params: StreamStartRequest): Promise<StreamStatusEvent>\n stopStream(): Promise<StreamStatusEvent>\n\n setMicState(enabled: boolean, useGlassesMic?: boolean, sendTranscript?: boolean, sendLc3Data?: boolean): Promise<void>\n setPreferredMic(preferredMic: MicPreference): Promise<void>\n setOwnAppAudioPlaying(playing: boolean): Promise<void>\n getGlassesMediaVolume(): Promise<GlassesMediaVolumeGetResult>\n setGlassesMediaVolume(level: number): Promise<GlassesMediaVolumeSetResult>\n\n rgbLedControl(\n requestId: string,\n packageName: string | null,\n action: RgbLedAction,\n color: RgbLedColor | null,\n onDurationMs: number,\n offDurationMs: number,\n count: number,\n ): Promise<RgbLedControlSuccessResponseEvent>\n\n requestVersionInfo(): Promise<VersionInfoResult>\n availableG2FirmwareArtifacts(): Promise<G2FirmwareArtifact[]>\n startG2FirmwareFlash(target: G2FirmwareTarget): Promise<G2FirmwareFlashResult>\n /**\n * Select the OTA manifest used by subsequent update checks and installs.\n * The URL may point at Glassly's hosted manifest or any customer-controlled HTTP(S) server.\n */\n setOtaVersionUrl(otaVersionUrl: string): void\n /** Return the configured or release-embedded OTA manifest URL. Rejects when a source build is unconfigured. */\n getOtaVersionUrl(): string\n /** Fetch the configured OTA manifest and return whether any ASG/BES/MTK update is available. */\n checkForOtaUpdate(): Promise<boolean>\n /** Return bundled release changelogs crossed between two coordinated product versions, newest first. */\n getReleaseChangelogs(fromVersion?: string | null, toVersion?: string | null): ReleaseChangelog[]\n /** Start OTA from the configured or explicitly supplied manifest URL. */\n startOtaUpdate(otaVersionUrl?: string | null): Promise<OtaStartAckEvent>\n /** Query the active OTA session and return the correlated status response. */\n queryOtaStatus(): Promise<OtaQueryResult>\n startAr99OtaFromFile(path: string): Promise<boolean>\n cancelAr99Ota(): Promise<void>\n sendAr99FactoryReset(): Promise<void>\n buildAr99OtaSignature(\n secret: string,\n appName: string,\n currentVersion: string,\n serialNumber: string,\n nonce: string,\n ): string\n\n // // stt commands (MOVE TO CRUST)\n // setSttModelDetails(path: string, languageCode: string): Promise<void>\n // getSttModelPath(): Promise<string>\n // checkSttModelAvailable(): Promise<boolean>\n // validateSttModel(path: string): Promise<boolean>\n // extractTarBz2(sourcePath: string, destinationPath: string): Promise<boolean>\n\n // // tts commands (MOVE TO CRUST)\n // setTtsModelDetails(path: string, languageCode: string): Promise<void>\n // getTtsModelPath(): Promise<string>\n // getTtsModelLanguage(): Promise<string>\n // checkTtsModelAvailable(): Promise<boolean>\n // validateTtsModel(path: string): Promise<boolean>\n // generateTtsAudio(text: string, path: string, outputPath: string, speakerId: number, speed: number): Promise<boolean>\n\n // STT Commands (TODO: MOVE TO CRUST)\n setSttModelDetails(path: string, languageCode: string): Promise<void>\n getSttModelPath(): Promise<string>\n checkSttModelAvailable(): Promise<boolean>\n validateSttModel(path: string): Promise<boolean>\n extractTarBz2(sourcePath: string, destinationPath: string): Promise<boolean>\n restartTranscriber(): Promise<void>\n\n // TTS Commands (TODO: MOVE TO CRUST)\n setTtsModelDetails(path: string, languageCode: string): Promise<void>\n getTtsModelPath(): Promise<string>\n getTtsModelLanguage(): Promise<string>\n checkTtsModelAvailable(): Promise<boolean>\n validateTtsModel(path: string): Promise<boolean>\n generateTtsAudio(\n text: string,\n modelPath: string,\n outputPath: string,\n speakerId: number,\n speed: number,\n ): Promise<boolean>\n}\n\n// OTA update status types\nexport type OtaStage = \"download\" | \"install\"\nexport type OtaProgressStatus = \"STARTED\" | \"PROGRESS\" | \"FINISHED\" | \"FAILED\"\n\nexport interface OtaStatus {\n sessionId: string\n totalSteps: number\n currentStep: number\n stepType: \"apk\" | \"mtk\" | \"bes\"\n phase: \"download\" | \"install\"\n stepPercent: number\n overallPercent: number\n status: \"in_progress\" | \"step_complete\" | \"complete\" | \"failed\" | \"idle\"\n error?: string\n}\n\nexport interface OtaUpdateInfo {\n available: boolean\n versionCode: number\n versionName: string\n updates: string[] // [\"apk\", \"mtk\", \"bes\"]\n totalSize: number\n cacheReady?: boolean\n /** Exact BES target selected from the OTA manifest, when a BES step is pending. */\n besVersion?: string\n /** True when the APK step installs an older build than the glasses currently run (exact-pin manifests only). */\n isDowngrade?: boolean\n}\n\nexport interface ReleaseChangelog {\n /** Base production version, for example `3.1.0`. */\n version: string\n /** Markdown body authored in `/changelogs/<version>.md`. */\n markdown: string\n}\n\nexport interface OtaProgress {\n stage: OtaStage\n status: OtaProgressStatus\n progress: number\n bytesDownloaded: number\n totalBytes: number\n currentUpdate: string\n errorMessage?: string\n}\n\nexport interface GlassesStatus {\n // state:\n connection: GlassesConnectionStatus\n micEnabled: boolean\n voiceActivityDetectionEnabled: boolean\n bluetoothClassicConnected: boolean\n signalStrength: number\n /** Milliseconds since epoch when signalStrength was last refreshed by the phone BLE stack. */\n signalStrengthUpdatedAt: number\n // device info\n deviceModel: string\n androidVersion: string\n firmwareVersion: string\n besFirmwareVersion: string\n mtkFirmwareVersion: string\n bluetoothMacAddress: string\n wifiMacAddress: string\n leftMacAddress: string\n rightMacAddress: string\n buildNumber: string\n /** Glasses System.currentTimeMillis() from last version_info (clock skew detection). */\n systemTimeMs?: number\n otaVersionUrl: string\n appVersion: string\n /** Phone-served hotspot OTA protocol version; 0 means unsupported/legacy glasses. */\n hotspotOtaVersion: number\n bluetoothName: string\n serialNumber: string\n style: string\n color: string\n /**\n * Scene canvas the connected firmware renders, when it differs from the\n * model profile (G2 Glassly CFW: 640×480 direct framebuffer). 0/absent ⇒\n * use the model's canvas.\n */\n sceneCanvasWidth?: number\n sceneCanvasHeight?: number\n /** Connected firmware draws vector shapes and animates transitions on the glasses (G2 Glassly CFW). */\n sceneVector?: boolean\n // wifi info\n wifi: WifiStatus\n // battery info\n batteryLevel: number\n charging: boolean\n caseBatteryLevel: number\n caseCharging: boolean\n caseOpen: boolean\n caseRemoved: boolean\n // hotspot info\n hotspot: HotspotStatus\n // OTA update info\n otaUpdateAvailable: OtaUpdateInfo | null\n otaProgress: OtaProgress | null\n otaInProgress: boolean\n // ring info\n controllerConnected: boolean\n controllerFullyBooted: boolean\n controllerMacAddress: string\n controllerBatteryLevel: number\n controllerSignalStrength: number\n /**\n * iOS: a connected lens is authorized to read the phone's ANCS notification\n * stream (the \"Share System Notifications\" Bluetooth consent). Always false\n * on Android and for models that don't consume ANCS on-firmware.\n */\n ancsAuthorized?: boolean\n}\n\nexport interface CoreDashboardMenuItem {\n name: string\n packageName: string\n running: boolean\n}\n\nexport interface CalendarEvent {\n title: string\n location?: string\n time: string\n endDate: number\n}\n\nexport interface CoreSettings {\n menu_apps: CoreDashboardMenuItem[]\n calendar_events: CalendarEvent[]\n}\n\n/** G2 on-glass notification display behavior (NotificationControl protobuf). */\nexport interface G2NotificationCtrlSetting {\n enabled: boolean\n auto_display: boolean\n /** On-screen popup duration in seconds: 0 (firmware default), 5, 7, or 10. */\n disp_time: number\n avoid_disturb: boolean\n}\n\n/** G2 on-glass ANCS app filter (user/notify_whitelist.json push). */\nexport interface G2NotificationFilterSetting {\n /** false = whitelisting off on-glass (fail-open, every app shows). */\n enabled: boolean\n /** Allowlist entries; identifiers are iOS bundle ids. */\n apps: Array<{id: string; name: string}>\n}\n\nexport interface Device {\n /**\n * Stable app-facing key for this scan result, within the limits of the\n * platform identifier available to the SDK. Do not parse this value; use the\n * typed model, name, address, projectName, and rssi fields instead.\n */\n id: string\n model: DeviceModel\n name: string\n /** Platform address/identifier when available: Android Bluetooth address, iOS CoreBluetooth identifier. */\n address?: string\n /** Optional AR99 project discriminator. Supported value: AR99. */\n projectName?: string\n /**\n * Optional scan signal strength. It may be undefined at first discovery and\n * appear in a later scan update when the platform reports RSSI metadata.\n */\n rssi?: number\n /** Mentra Live: unit is currently in pairing mode (adv flag). */\n pairingMode?: boolean\n /** Mentra Live: four-character hex spoken pairing code when available. */\n pairingCode?: string\n /** Mentra Live: advertisement carries the secure-pairing capability trailer. */\n securePairingCapable?: boolean\n}\n\nexport interface ConnectOptions {\n saveAsDefault?: boolean\n cancelExistingConnectionAttempt?: boolean\n}\n\nexport type ScanResultsCallback = (devices: Device[]) => void\n\nexport interface ScanOptions {\n model: DeviceModel\n /** Defaults to 15000. */\n timeoutMs?: number\n /** Alias for `timeoutMs`, useful when mirroring native examples. */\n timeout?: number\n /** Called every time the discovered device list changes during the scan. */\n onResults?: ScanResultsCallback\n}\n\nexport type ScanModelOptions = Omit<ScanOptions, \"model\">\n\nexport interface WifiSearchResult {\n ssid: string\n requiresPassword: boolean\n signalStrength: number\n /** Frequency in MHz (from glasses scan). 5 GHz band is typically 5170闂?825. Omitted if unknown. */\n frequency?: number\n}\n\nexport interface BluetoothStatus {\n // state:\n searching: boolean\n searchingController: boolean\n default_wearable?: DeviceModel | \"\"\n pending_wearable?: DeviceModel | \"\"\n device_name?: string\n device_address?: string\n default_controller?: DeviceModel | \"\"\n pending_controller?: DeviceModel | \"\"\n controller_device_name?: string\n controller_address?: string\n systemMicUnavailable: boolean\n micRanking: MicMode[]\n currentMic: MicMode | \"\" | null\n /**\n * Nearby glasses in stable discovery order.\n * Existing entries keep their array position as details refresh; new glasses append at the end,\n * and removals should not reorder remaining entries.\n */\n searchResults: Device[]\n wifiScanResults: WifiSearchResult[]\n lastLog: string[]\n otherBtConnected: boolean\n // desired settings the SDK sends to compatible connected glasses:\n galleryModeEnabled: boolean\n}\n\nexport type BluetoothSettingsUpdate = Partial<{\n auth_email: string\n core_token: string\n sensing_enabled: boolean\n power_saving_mode: boolean\n lc3_frame_size: number\n preferred_mic: MicPreference\n screen_disabled: boolean\n contextual_dashboard: boolean\n head_up_angle: number\n imu_enabled: boolean\n brightness: number\n auto_brightness: boolean\n dashboard_height: number\n dashboard_depth: number\n menu_apps: DashboardMenuItem[] | CoreDashboardMenuItem[] | Array<Record<string, unknown>> | null\n calendar_events: CalendarEvent[]\n notification_ctrl: G2NotificationCtrlSetting\n notification_filter: G2NotificationFilterSetting\n metric_system: boolean\n twelve_hour_time: boolean\n gallery_mode: boolean\n voice_activity_detection_enabled: boolean\n loudness_gate_enabled: boolean\n button_photo_size: ButtonPhotoSize\n button_video_settings: {width: number; height: number; fps: number}\n button_video_width: number\n button_video_height: number\n button_video_fps: number\n button_max_recording_time: number\n camera_fov: NativeCameraFovSetting\n should_send_pcm: boolean\n should_send_lc3: boolean\n should_send_transcript: boolean\n offline_mode: boolean\n local_stt_fallback_active: boolean\n pending_wearable: DeviceModel | \"\"\n default_wearable: DeviceModel | \"\"\n device_name: string\n device_address: string\n default_controller: DeviceModel | \"\"\n pending_controller: DeviceModel | \"\"\n controller_device_name: string\n controller_address: string\n}>\n"]}
|
|
1
|
+
{"version":3,"file":"BluetoothSdk.types.js","sourceRoot":"","sources":["../src/BluetoothSdk.types.ts"],"names":[],"mappings":"AAgHA,MAAM,CAAC,MAAM,wCAAwC,GAAG,KAAK,CAAA;AAwB7D,MAAM,UAAU,kCAAkC,CAChD,MAA+B;IAE/B,OAAO,MAAM,CAAC,KAAK,KAAK,WAAW,CAAA;AACrC,CAAC;AAED,MAAM,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port type GlassesNotReadyEvent = {\n type: \"glasses_not_ready\"\n message: string\n}\n\nexport type G2FirmwareTarget = \"stock\" | \"glassly-cfw\"\n\nexport type G2FirmwareArtifact = {\n id: G2FirmwareTarget\n displayName: string\n version: string\n fileName: string\n sha256: string\n size: number\n}\n\nexport type G2FirmwareFlashProgressEvent = {\n type: \"g2_firmware_flash_progress\"\n message: string\n progress: number\n done: boolean\n ok: boolean\n}\n\nexport type G2FirmwareFlashResult = {\n ok: boolean\n target: G2FirmwareTarget\n version: string\n sha256: string\n}\n\n// NOTE: unlike most events below, the native module does NOT include a `type`\n// field on the button_press payload 闂?it sends only {buttonId, pressType,\n// timestamp} (see BluetoothSdkModule on both iOS and Android). Consumers must\n// filter on `pressType` / the \"button_press\" listener name, never `event.type`.\nexport type ButtonPressEvent = {\n buttonId: string\n pressType: \"long\" | \"short\"\n timestamp: number\n}\n\nexport type TouchEvent = {\n type: \"touch_event\"\n deviceModel: DeviceModel\n gestureName: string\n timestamp: number\n}\n\nexport type AccelEvent = {\n type: \"accel_event\"\n x: number\n y: number\n z: number\n timestamp: number\n}\n\nexport type HeadUpEvent = {\n up: boolean\n}\n\n/**\n * Glasses magnetometer heading, streamed while the native navigation mode is\n * active (G2 service 0x08). Degrees 0…359, 0 = magnetic north.\n */\nexport type CompassHeadingEvent = {\n type: \"compass_heading\"\n heading: number\n timestamp: number\n}\n\n/** Magnetometer calibration prompts — the wearer should look around / figure-8. */\nexport type CompassCalibrationEvent = {\n type: \"compass_calibration\"\n status: \"start\" | \"complete\"\n}\n\n/**\n * Native navigation mode lifecycle. `source: \"glasses\"` means the wearer (or\n * firmware) exited the nav UI on the device itself, not the phone.\n */\nexport type NavigationModeEvent = {\n type: \"navigation_mode_change\"\n status: \"entered\" | \"exited\"\n source?: string\n}\n\n/** Wearer toggled the mini-map / overview review view on the glasses. */\nexport type NavigationViewEvent = {\n type: \"navigation_view_change\"\n viewIndex: number\n}\n\n/**\n * A scene frame (display.render()) reached — or can no longer reach — the\n * glasses. `seq` is the host's frame number; a report covers every earlier\n * frame too, since unsent frames fold into the next one. `presented: false`\n * carries the `reason` (screen off, nav UI up, page rebuilding, …).\n */\nexport type SceneFramePresentedEvent = {\n type: \"scene_frame_presented\"\n seq: number\n appId: string\n presented: boolean\n reason?: string\n}\n\nexport type VoiceActivityDetectionStatusEvent = {\n type: \"voice_activity_detection_status\"\n voiceActivityDetectionEnabled: boolean\n}\n\nexport const DEFAULT_VOICE_ACTIVITY_DETECTION_ENABLED = false\n\nexport type SpeakingStatusEvent = {\n type: \"speaking_status\"\n speaking: boolean\n timestamp: number\n}\n\nexport type BatteryStatusEvent = {\n type: \"battery_status\"\n level: number\n charging: boolean\n timestamp: number\n}\n\nexport type GlassesConnectionStatus =\n | {state: \"disconnected\"}\n | {state: \"scanning\"}\n | {state: \"connecting\"}\n | {state: \"bonding\"}\n | {state: \"connected\"; fullyBooted: boolean}\n\nexport type ConnectedGlassesConnectionStatus = Extract<GlassesConnectionStatus, {state: \"connected\"}>\n\nexport function isConnectedGlassesConnectionStatus(\n status: GlassesConnectionStatus,\n): status is ConnectedGlassesConnectionStatus {\n return status.state === \"connected\"\n}\n\nexport function isReadyGlassesConnectionStatus(status: GlassesConnectionStatus): boolean {\n return status.state === \"connected\" && status.fullyBooted\n}\n\nexport function isBusyGlassesConnectionStatus(status: GlassesConnectionStatus): boolean {\n return status.state === \"scanning\" || status.state === \"connecting\" || status.state === \"bonding\"\n}\n\nexport function createDisconnectedGlassesStatus(): Partial<GlassesStatus> {\n return {\n connection: {state: \"disconnected\"},\n hotspot: {state: \"disabled\"},\n voiceActivityDetectionEnabled: DEFAULT_VOICE_ACTIVITY_DETECTION_ENABLED,\n wifi: {state: \"disconnected\"},\n }\n}\n\n/** K900 `sr_getvol` response (Mentra Live glasses media step volume 0闂?5). */\nexport type GlassesMediaVolumeGetResult = {\n level: number\n statusCode: number\n}\n\n/** K900 `sr_vol` acknowledgment. */\nexport type GlassesMediaVolumeSetResult = {\n statusCode: number\n}\n\nexport type LocalTranscriptionEvent = {\n text: string\n isFinal?: boolean\n transcribeLanguage?: string\n /** Enrolled profile id when the on-device speaker engine matched, else 0. */\n speakerId?: number | string\n /** Additive speaker resolution — present only when a profile matched. */\n resolvedSpeakerId?: string\n resolvedSpeakerName?: string\n startTime?: number\n endTime?: number\n provider?: string\n}\n\n/** One on-device speaker-identification window (SpeakerIdEngine).\n * `speakerId`/`name` are absent for an unknown (unenrolled) voice. */\nexport type SpeakerDetectedEvent = {\n speakerId?: string\n name?: string\n similarity: number\n /** Epoch ms window bounds (native clock, same epoch as Date.now()). */\n startMs: number\n endMs: number\n}\n\nexport type SpeakerEnrollProgressEvent = {\n voicedSeconds: number\n targetSeconds: number\n /** RMS level of the latest chunk, 0..1 — drives the recording meter. */\n level: number\n}\n\nexport type SpeakerEnrollResultEvent = {\n ok: boolean\n /** Failure reason when !ok: \"inconsistent\" | \"too_short\" | \"model_unavailable\" | \"unsupported\". */\n reason?: string\n /** base64 Float32Array chunk embeddings (raw audio is already discarded). */\n embeddings?: string[]\n dim?: number\n /** Which mic captured the enrollment audio. */\n source: \"glasses\" | \"phone\"\n}\n\nexport type SpeakerProfilePush = {\n id: string\n name: string\n /** base64 Float32Array centroid. */\n embedding: string\n}\n\nexport type LogEvent = {\n message: string\n}\n\nexport type WifiStatus = {state: \"disconnected\"} | {state: \"connected\"; ssid: string; localIp?: string}\n\nexport type ConnectedWifiStatus = Extract<WifiStatus, {state: \"connected\"}>\n\nexport function isConnectedWifiStatus(status: WifiStatus): status is ConnectedWifiStatus {\n return status.state === \"connected\"\n}\n\nexport type WifiStatusChangeEvent = WifiStatus & {\n type: \"wifi_status_change\"\n /**\n * Glasses-reported provisioning failure reason when THIS event is the verdict of a\n * failed connect attempt; absent on routine link-state updates. An attempt property,\n * not a link property 闂?which is why it lives on the event, not on WifiStatus:\n * \"connect_timeout\" arrives on a disconnected status (never associated), while\n * \"connected_to_other_network\" arrives on a *connected* status (the attempt failed\n * and the glasses ended up on / fell back to a different SSID than requested).\n * Requires ASG client v40+ 闂?older glasses never send it.\n */\n error?: string\n}\n\nexport type HotspotStatus = {state: \"disabled\"} | {state: \"enabled\"; ssid: string; password: string; localIp: string}\n\nexport type EnabledHotspotStatus = Extract<HotspotStatus, {state: \"enabled\"}>\n\nexport function isEnabledHotspotStatus(status: HotspotStatus): status is EnabledHotspotStatus {\n return status.state === \"enabled\"\n}\n\nexport type HotspotStatusChangeEvent = HotspotStatus & {\n type: \"hotspot_status_change\"\n}\n\nexport type HotspotErrorEvent = {\n type: \"hotspot_error\"\n errorMessage: string\n timestamp: number\n}\n\nexport type VersionInfoResult = {\n androidVersion: string\n firmwareVersion: string\n besFirmwareVersion: string\n mtkFirmwareVersion: string\n buildNumber: string\n systemTimeMs?: number\n otaVersionUrl: string\n appVersion: string\n /** Phone-served hotspot OTA protocol version; 0 means unsupported/legacy glasses. */\n hotspotOtaVersion: number\n}\n\nexport type VersionInfoEvent = VersionInfoResult & {\n type: \"version_info\"\n}\n\nexport type WifiScanResultEvent = {\n type: \"wifi_scan_result\"\n networks: WifiSearchResult[]\n scanComplete?: boolean\n}\n\nexport type PhotoResponseEvent =\n | {\n type: \"photo_response\"\n state: \"success\"\n requestId: string\n uploadUrl: string\n photoUrl?: string\n statusUrl?: string\n contentType?: string\n fileSizeBytes?: number\n timestamp: number\n }\n | {\n type: \"photo_response\"\n state: \"error\"\n requestId: string\n timestamp: number\n errorCode?: string\n errorMessage: string\n }\n\nexport type PhotoSuccessResponseEvent = Extract<PhotoResponseEvent, {state: \"success\"}>\n\nexport type PhotoStatusState =\n | \"accepted\"\n | \"queued\"\n | \"configuring\"\n | \"capturing\"\n | \"captured\"\n | \"compressing\"\n | \"ble_fallback_compression\"\n | \"uploading\"\n | \"uploaded\"\n | \"ready_for_transfer\"\n | \"transferring\"\n | \"failed\"\n\nexport type PhotoResolvedConfig = {\n format?: \"jpeg\" | string\n width?: number\n height?: number\n quality?: number\n requestedSize?: PhotoSize | string\n source?: \"sdk\" | \"button\" | string\n transferMethod?: \"webhook\" | \"ble\" | \"local\" | string\n compression?: PhotoCompression | string\n saveToGallery?: boolean\n exposureTimeNs?: number\n iso?: number\n}\n\nexport type PhotoFpsRange = {\n min?: number\n max?: number\n}\n\nexport type PhotoRequestedCaptureConfig = {\n manual?: boolean\n exposureTimeNs?: number\n iso?: number\n frameDurationNs?: number\n aeMode?: number\n aeLock?: boolean\n aeExposureCompensation?: number\n aeTargetFpsRange?: PhotoFpsRange\n noiseReductionMode?: number\n edgeMode?: number\n afMode?: number\n zsl?: boolean\n}\n\nexport type PhotoMeteredPreview = {\n exposureTimeNs?: number\n iso?: number\n totalLightProxy?: number\n}\n\nexport type PhotoCaptureMetadata = {\n manual?: boolean\n exposureTimeNs?: number\n iso?: number\n frameDurationNs?: number\n aeMode?: number\n aeState?: number\n aeStateName?: string\n noiseReductionMode?: number\n edgeMode?: number\n zsl?: boolean\n sensorTimestampNs?: number\n totalLightProxy?: number\n mfnrLikely?: boolean\n mfnrApplied?: boolean\n width?: number\n height?: number\n noiseReductionWarning?: \"not_implemented\" | string\n ispDigitalGainWarning?: \"not_implemented\" | string\n ispAnalogGainWarning?: \"not_implemented\" | string\n [key: string]: unknown\n}\n\nexport type PhotoStatusEvent = {\n type: \"photo_status\"\n requestId: string\n status: PhotoStatusState | string\n timestamp: number\n resolvedConfig?: PhotoResolvedConfig\n requestedCaptureConfig?: PhotoRequestedCaptureConfig\n meteredPreview?: PhotoMeteredPreview\n captureMetadata?: PhotoCaptureMetadata\n errorCode?: string\n errorMessage?: string\n}\n\nexport type CameraStatusEvent = {\n type: \"camera_status\"\n requestId: string\n state: \"warming\" | \"ready\" | \"stopped\" | \"error\" | string\n timestamp: number\n errorCode?: string\n errorMessage?: string\n}\n\nexport type VideoRecordingStatusEvent = {\n type: \"video_recording_status\"\n requestId?: string\n success: boolean\n status: VideoRecordingStatusState\n details?: string | null\n timestamp: number\n data?: {\n recording?: boolean\n duration_ms?: number\n duration_formatted?: string\n [key: string]: unknown\n }\n}\n\nexport type VideoRecordingStatusState =\n | \"recording_started\"\n | \"recording_status\"\n | \"already_recording\"\n | \"recording_stopped\"\n | \"not_recording\"\n | \"request_id_mismatch\"\n | \"service_unavailable\"\n | \"json_error\"\n | \"battery_low\"\n | \"camera_busy\"\n | \"storage_unavailable\"\n | \"integrity_failed\"\n | \"error\"\n\nexport type VideoRecordingStartedStatusEvent = Omit<VideoRecordingStatusEvent, \"success\" | \"status\"> & {\n success: true\n status: \"recording_started\"\n}\n\nexport type VideoRecordingStoppedStatusEvent = Omit<VideoRecordingStatusEvent, \"success\" | \"status\"> & {\n success: true\n status: \"recording_stopped\"\n}\n\nexport type VideoRecordingSuccessStatusEvent = VideoRecordingStartedStatusEvent | VideoRecordingStoppedStatusEvent\n\nexport type MediaUploadSuccessEvent = {\n type: \"media_success\"\n requestId: string\n mediaUrl: string\n mediaType: number\n timestamp: number\n}\n\nexport type MediaUploadErrorEvent = {\n type: \"media_error\"\n requestId: string\n errorMessage: string\n mediaType: number\n timestamp: number\n}\n\nexport type MediaUploadEvent = MediaUploadSuccessEvent | MediaUploadErrorEvent\n\nexport type GalleryStatusEvent = {\n type: \"gallery_status\"\n photos: number\n videos: number\n total: number\n totalSize?: number\n hasContent: boolean\n cameraBusy: boolean\n cameraBusyReason?: \"video\" | \"stream\" | (string & {})\n}\n\nexport type CompatibleGlassesSearchStopEvent = {\n type: \"compatible_glasses_search_stop\"\n deviceModel: DeviceModel\n}\n\nexport type HeartbeatSentEvent = {\n type: \"heartbeat_sent\"\n heartbeat_sent: {\n timestamp: number\n }\n}\n\nexport type HeartbeatReceivedEvent = {\n type: \"heartbeat_received\"\n heartbeat_received: {\n timestamp: number\n }\n}\n\nexport type SwipeVolumeStatusEvent = {\n type: \"swipe_volume_status\"\n enabled: boolean\n timestamp: number\n}\n\nexport type SwitchStatusEvent = {\n type: \"switch_status\"\n switchType?: number\n switchValue?: number\n timestamp: number\n}\n\nexport type RgbLedControlResponseEvent =\n | {\n type: \"rgb_led_control_response\"\n state: \"success\"\n requestId: string\n }\n | {\n type: \"rgb_led_control_response\"\n state: \"error\"\n requestId: string\n errorCode: string\n }\n\nexport type RgbLedControlSuccessResponseEvent = Extract<RgbLedControlResponseEvent, {state: \"success\"}>\n\nexport type SettingsAckStatus = \"applied\" | \"ready\" | \"error\" | \"failed\" | \"failure\" | \"rejected\"\n\nexport type SettingsAckSetting =\n | \"gallery_mode\"\n | \"button_photo\"\n | \"button_video_recording\"\n | \"button_max_recording_time\"\n | \"camera_fov\"\n | \"camera_fov_override\"\n | \"camera_tuning\"\n\nexport type SettingsAckEvent = {\n type: \"settings_ack\"\n requestId: string\n setting: SettingsAckSetting\n status: SettingsAckStatus\n timestamp: number\n fov?: number\n roiPosition?: CameraRoiPositionValue\n hardwareApplied?: boolean\n leaseId?: string\n active?: boolean\n size?: ButtonPhotoSize | string\n width?: number\n height?: number\n fps?: number\n enabled?: boolean\n minutes?: number\n /** ANR enabled flag; present when setting === \"camera_tuning\" */\n anr?: boolean\n /** Stock-gain flag; present when setting === \"camera_tuning\" */\n gain?: boolean\n errorCode?: string\n errorMessage?: string\n}\n\nexport type SettingsAckSuccessStatus = Exclude<SettingsAckStatus, \"error\" | \"failed\" | \"failure\" | \"rejected\">\n\nexport type SettingsAckSuccessEvent = Omit<SettingsAckEvent, \"status\"> & {\n status: SettingsAckSuccessStatus\n}\n\nexport type RgbLedAction = \"on\" | \"off\"\nexport type RgbLedColor = \"red\" | \"green\" | \"blue\" | \"orange\" | \"white\"\nexport type PhotoSize = \"low\" | \"medium\" | \"high\" | \"max\"\nexport type PhotoMode = \"photo\" | \"text\"\nexport type PhotoTransferMethod = \"auto\" | \"direct\" | \"ble\"\nexport type ButtonPhotoSize = \"low\" | \"medium\" | \"high\" | \"max\"\n\n/**\n * @deprecated Sticky action-button photo presets via {@link BluetoothSdkPublicModule.setPhotoCaptureDefaults}\n * are deprecated. Prefer per-request {@link BluetoothSdkPublicModule.requestPhoto} options\n * (e.g. `mode: \"text\"` for text sensor size/crop, or explicit `aeExposureDivisor`) instead of\n * persisting button-photo tuning on the glasses.\n */\nexport type PhotoCaptureDefaults = {\n size?: PhotoSize\n /** ZSL preview buffering for physical camera-button photos. */\n zsl?: boolean\n /** MFNR still capture for physical camera-button photos. */\n mfnr?: boolean\n noiseReduction?: boolean\n edgeEnhancement?: boolean\n ispDigitalGain?: number\n ispAnalogGain?: string\n aeExposureDivisor?: number\n isoCap?: number\n compress?: PhotoCompression\n sound?: boolean\n /** When true, clears stored NR/edge/ISP presets on the glasses before applying other fields. */\n resetCaptureTuning?: boolean\n}\nexport type PhotoCompression = \"none\" | \"medium\" | \"heavy\"\n\nexport type VideoRecordingDefaults = {\n width: number\n height: number\n fps: number\n}\n\n/**\n * Optional per-recording video settings for {@link startVideoRecording}. When\n * omitted, the glasses fall back to their saved video recording defaults. Any\n * field left undefined is omitted from the BLE command (glasses default applies).\n */\nexport interface VideoRecordingSettings {\n width?: number\n height?: number\n fps?: number\n /**\n * Optional auto-stop timer in minutes, sent on `start_video_recording`.\n * `0` (the default) means record until stopped or interrupted\n * (battery/storage/thermal/error).\n */\n maxRecordingTimeMinutes?: number\n}\nexport const DeviceModels = {\n Simulated: \"Simulated Glasses\",\n G1: \"Even Realities G1\",\n G2: \"Even Realities G2\",\n MentraLive: \"Mentra Live\",\n MentraNex: \"Mentra Display\",\n Mach1: \"Mentra Mach1\",\n Z100: \"Vuzix Z100\",\n Frame: \"Brilliant Frame\",\n Nimo: \"NIMO\",\n Ar99: \"AR99\",\n R1: \"Even Realities R1\",\n} as const\n\nexport type DeviceModel = (typeof DeviceModels)[keyof typeof DeviceModels]\nexport type ObservableStoreCategory = \"glasses\" | \"bluetooth\" | \"core\"\n\nexport type DashboardMenuItem = {\n title: string\n packageName: string\n values?: Record<string, unknown>\n}\n\nexport const CAMERA_FOV_MIN = 62\nexport const CAMERA_FOV_MAX = 118\nexport const CAMERA_FOV_DEFAULT = CAMERA_FOV_MAX\n\nexport type CameraRoiPosition = \"center\" | \"bottom\" | \"top\"\nexport type CameraRoiPositionValue = 0 | 1 | 2\nexport type CameraFovPreset = \"narrow\" | \"standard\" | \"wide\"\n\nexport type CameraFovRequest =\n | {\n fov: number\n roiPosition?: CameraRoiPosition\n }\n | {\n preset: CameraFovPreset\n }\n\nexport type CameraFovResult = {\n requestId: string\n fov: number\n roiPosition: CameraRoiPosition\n timestamp: number\n}\n\nexport type CameraFovOverrideRequest = CameraFovRequest & {\n /** Phone-owned lease used to make delayed releases safe. */\n leaseId: string\n /** Safety TTL; refresh the same lease/configuration to extend without a HAL restart. */\n ttlMs?: number\n}\n\nexport type CameraFovSetting = {\n fov: number\n roiPosition: CameraRoiPositionValue\n}\n\ntype NativeCameraFovSetting = {\n fov: number\n roi_position: CameraRoiPositionValue\n}\n\nexport type MicPreference = \"auto\" | \"phone\" | \"glasses\" | \"bluetooth\"\nexport type MicMode = \"phone\" | \"glasses\" | \"bluetoothClassic\" | \"bluetooth\"\n\nexport type PhotoRequestParams = {\n requestId?: string\n appId?: string\n size: PhotoSize\n mode?: PhotoMode\n /** `direct` disables BLE fallback; `ble` skips direct upload and forces phone-relayed transfer. */\n transferMethod?: PhotoTransferMethod\n webhookUrl: string | null\n authToken: string | null\n compress: PhotoCompression\n save?: boolean\n sound: boolean\n exposureTimeNs?: number | null\n /** Sensor ISO for this capture only. Only used when exposureTimeNs enables manual exposure. */\n iso?: number | null\n /** After AE convergence, divide metered exposure by this factor (scan mode). */\n aeExposureDivisor?: number\n /** Cap ISO after AE metering (scan mode). */\n isoCap?: number\n /** Requested on wire; glasses may log not_implemented. */\n noiseReduction?: boolean\n edgeEnhancement?: boolean\n /** ZSL buffering. Forced off for manual/scan stills because fixed sensor controls take priority. */\n zsl?: boolean\n /** MFNR still capture. Forced off for manual/scan stills because fixed sensor controls take priority. */\n mfnr?: boolean\n ispDigitalGain?: number\n ispAnalogGain?: string\n}\n\nexport type WarmUpCameraParams = {\n /** Supply this when the owner needs to call stopCameraWarmUp during teardown. */\n requestId?: string\n size: PhotoSize\n mode?: PhotoMode\n exposureTimeNs?: number | null\n /** Ready-state hold; defaults to 15 seconds and is capped at 60 seconds by ASG. */\n durationMs?: number\n /** ZSL preview buffering for the warm-up session. */\n zsl?: boolean\n /** MFNR still capture for the warm-up session. */\n mfnr?: boolean\n}\n\nexport type StreamVideoConfig = {\n width?: number\n height?: number\n bitrate?: number\n fps?: number\n}\n\nexport type StreamAudioConfig = {\n bitrate?: number\n sampleRate?: number\n echoCancellation?: boolean\n noiseSuppression?: boolean\n}\n\nexport type StreamStartRequest = {\n type?: \"start_stream\"\n streamUrl: string\n streamId?: string\n sound?: boolean\n video?: StreamVideoConfig\n audio?: StreamAudioConfig\n}\n\nexport type StreamKeepAliveRequest = {\n type?: \"keep_stream_alive\"\n streamId: string\n ackId: string\n}\n\nexport type PairFailureEvent = {\n type: \"pair_failure\"\n error: string\n}\n\nexport type PairingInfoEvent = {\n had_previous_bond: boolean\n pairing_code?: string\n classic_bond_ready?: boolean\n secure_pairing_capable?: boolean\n protocol_version?: number\n}\n\nexport type EnteringPairingModeEvent = {\n window_ms: number\n reason?: string\n}\n\nexport type OwnerReplacedEvent = {\n reason: string\n}\n\nexport type AudioPairingNeededEvent = {\n type: \"audio_pairing_needed\"\n deviceName: string\n}\n\nexport type AudioConnectedEvent = {\n type: \"audio_connected\"\n deviceName: string\n}\n\nexport type AudioDisconnectedEvent = {\n type: \"audio_disconnected\"\n}\n\nexport type SaveSettingEvent = {\n type: \"save_setting\"\n key: string\n value: any\n}\n\nexport type WsTextEvent = {\n type: \"ws_text\"\n text: string\n}\n\nexport type WsBinEvent = {\n type: \"ws_bin\"\n base64: string\n}\n\nexport type MicPcmEvent = {\n type: \"mic_pcm\"\n pcm: ArrayBuffer\n sampleRate: 16000\n bitsPerSample: 16\n channels: 1\n encoding: \"pcm_s16le\"\n voiceActivityDetectionEnabled: boolean\n}\n\nexport type MicLc3Event = {\n type: \"mic_lc3\"\n lc3: ArrayBuffer\n sampleRate: 16000\n channels: 1\n encoding: \"lc3\"\n frameDurationMs: 10\n frameSizeBytes: number\n bitrate: number\n packetizedFromGlasses: boolean\n voiceActivityDetectionEnabled: boolean\n}\n\n/** Native glasses-microphone diagnostics emitted when the SDK detects a transport or decode issue. */\nexport type MicHealthEvent = {\n type: \"mic_health\"\n reason: \"sequence_gap\" | \"decode_failure\"\n sequenceGapEvents: number\n decodeFailures: number\n lastLc3ReceivedAt?: number\n lastPcmProducedAt?: number\n timestamp: number\n}\n\nexport type StreamStatusLifecycleState = \"initializing\" | \"streaming\" | \"stopping\" | \"stopped\"\nexport type StreamStatusReconnectState = \"reconnecting\" | \"reconnected\" | \"reconnect_failed\"\nexport type StreamStatusState = StreamStatusLifecycleState | StreamStatusReconnectState | \"error\"\n\n/** Effective stream settings reported by the glasses after defaults and clamps. */\nexport type StreamResolvedConfig = {\n transport?: \"rtmp\" | \"srt\" | \"whip\"\n video?: {\n /** Encoded output width sent to the stream endpoint. */\n width: number\n /** Encoded output height sent to the stream endpoint. */\n height: number\n /** Native camera buffer width selected before crop/downscale. */\n captureWidth?: number\n /** Native camera buffer height selected before crop/downscale. */\n captureHeight?: number\n /** Encoded video bitrate in bits per second. */\n bitrate: number\n /** Resolved capture/encode frame rate. */\n fps: number\n }\n audio?: {\n /** Encoded audio bitrate in bits per second. */\n bitrate?: number\n /** Audio sample rate in Hz. */\n sampleRate?: number\n echoCancellation?: boolean\n noiseSuppression?: boolean\n }\n}\n\n/** Live encoder and device telemetry emitted periodically by supported glasses firmware. */\nexport type StreamLiveStats = {\n /** Current encoded video bitrate in bits per second. */\n bitrate?: number\n /** Current encode frame rate. */\n fps?: number\n droppedFrames?: number\n /** Seconds since the stream started. */\n duration?: number\n /** Device temperature in 闂佺娅i悡? if the hardware reports it. */\n temperatureC?: number\n}\n\ntype StreamStatusCommon = {\n type: \"stream_status\"\n streamId?: string\n timestamp?: number\n resolvedConfig?: StreamResolvedConfig\n stats?: StreamLiveStats\n}\n\nexport type StreamStatusEvent =\n | (StreamStatusCommon & {\n kind: \"lifecycle\"\n status: StreamStatusLifecycleState\n })\n | (StreamStatusCommon & {\n kind: \"reconnect\"\n status: \"reconnecting\"\n attempt: number\n maxAttempts: number\n reason: string\n })\n | (StreamStatusCommon & {\n kind: \"reconnect\"\n status: \"reconnected\"\n attempt: number\n })\n | (StreamStatusCommon & {\n kind: \"reconnect\"\n status: \"reconnect_failed\"\n maxAttempts: number\n })\n | (StreamStatusCommon & {\n kind: \"error\"\n status: \"error\"\n errorDetails: string\n })\n | (StreamStatusCommon & {\n kind: \"snapshot\"\n status: \"streaming\" | \"reconnecting\" | \"stopped\"\n streaming: boolean\n reconnecting: boolean\n attempt?: number\n })\n\nexport type KeepAliveAckEvent = {\n type: \"keep_alive_ack\"\n streamId: string\n ackId: string\n timestamp?: number\n}\n\nexport type MtkUpdateCompleteEvent = {\n type: \"mtk_update_complete\"\n message: string\n timestamp: number\n}\n\n/**\n * The glasses process restarted while the BES kept the BLE link alive (its `sid`\n * changed, or first appeared after an update from a pre-sid build). There is no\n * physical disconnect for this — treat it as the logical reconnect edge.\n */\nexport type GlassesSessionChangedEvent = {\n type: \"glasses_session_changed\"\n previous_sid: string\n sid: string\n}\n\n/** @deprecated Glasses no longer emit ota_progress; use {@link OtaStatusEvent} and status-store mapping. */\nexport type OtaProgressEvent = {\n type: \"ota_progress\"\n stage?: OtaStage\n status?: OtaProgressStatus\n progress?: number\n bytes_downloaded?: number\n total_bytes?: number\n current_update?: string\n error_message?: string\n}\n\nexport type OtaStartAckEvent = {\n type: \"ota_start_ack\"\n timestamp: number\n}\nexport type OtaStatusEvent = {\n type: \"ota_status\"\n session_id: string\n total_steps: number\n current_step: number\n step_type: \"apk\" | \"mtk\" | \"bes\"\n phase: \"download\" | \"install\"\n step_percent: number\n overall_percent: number\n status: \"in_progress\" | \"step_complete\" | \"complete\" | \"failed\" | \"idle\"\n error_message?: string\n}\n\nexport type OtaQueryResult = OtaStatusEvent\n\n/** Nex BLE protobuf trace (NexEventUtils); payload matches native Map keys. */\nexport type BleCommandTraceEvent = {\n command: string\n commandText: string\n timestamp: number\n}\n\nexport type MiniappSelectedEvent = {\n type: \"miniapp_selected\"\n packageName: string\n}\n\n// Union type of all native/internal Bluetooth SDK events.\nexport type BluetoothSdkInternalEvent = Parameters<BluetoothSdkModuleEvents[keyof BluetoothSdkModuleEvents]>[0]\n\nexport type BluetoothSdkModuleEvents = {\n glasses_status: (changed: Partial<GlassesStatus>) => void\n bluetooth_status: (changed: Partial<BluetoothStatus>) => void\n log: (event: LogEvent) => void\n device_discovered: (device: Device) => void\n default_device_changed: (event: {device?: Device}) => void\n // Individual event handlers\n glasses_not_ready: (event: GlassesNotReadyEvent) => void\n button_press: (event: ButtonPressEvent) => void\n touch_event: (event: TouchEvent) => void\n accel_event: (event: AccelEvent) => void\n compass_heading: (event: CompassHeadingEvent) => void\n compass_calibration: (event: CompassCalibrationEvent) => void\n navigation_mode_change: (event: NavigationModeEvent) => void\n navigation_view_change: (event: NavigationViewEvent) => void\n scene_frame_presented: (event: SceneFramePresentedEvent) => void\n head_up: (event: HeadUpEvent) => void\n voice_activity_detection_status: (event: VoiceActivityDetectionStatusEvent) => void\n speaking_status: (event: SpeakingStatusEvent) => void\n battery_status: (event: BatteryStatusEvent) => void\n local_transcription: (event: LocalTranscriptionEvent) => void\n speaker_detected: (event: SpeakerDetectedEvent) => void\n speaker_enroll_progress: (event: SpeakerEnrollProgressEvent) => void\n speaker_enroll_result: (event: SpeakerEnrollResultEvent) => void\n phone_notification: (event: PhoneNotificationEvent) => void\n phone_notification_dismissed: (event: PhoneNotificationDismissedEvent) => void\n notification_app_seen: (event: NotificationAppSeenEvent) => void\n wifi_status_change: (event: WifiStatusChangeEvent) => void\n wifi_scan_result: (event: WifiScanResultEvent) => void\n hotspot_status_change: (event: HotspotStatusChangeEvent) => void\n hotspot_error: (event: HotspotErrorEvent) => void\n photo_response: (event: PhotoResponseEvent) => void\n photo_status: (event: PhotoStatusEvent) => void\n camera_status: (event: CameraStatusEvent) => void\n video_recording_status: (event: VideoRecordingStatusEvent) => void\n media_success: (event: MediaUploadSuccessEvent) => void\n media_error: (event: MediaUploadErrorEvent) => void\n gallery_status: (event: GalleryStatusEvent) => void\n compatible_glasses_search_stop: (event: CompatibleGlassesSearchStopEvent) => void\n heartbeat_sent: (event: HeartbeatSentEvent) => void\n heartbeat_received: (event: HeartbeatReceivedEvent) => void\n swipe_volume_status: (event: SwipeVolumeStatusEvent) => void\n switch_status: (event: SwitchStatusEvent) => void\n rgb_led_control_response: (event: RgbLedControlResponseEvent) => void\n settings_ack: (event: SettingsAckEvent) => void\n pair_failure: (event: PairFailureEvent) => void\n pairing_info: (event: PairingInfoEvent) => void\n entering_pairing_mode: (event: EnteringPairingModeEvent) => void\n owner_replaced: (event: OwnerReplacedEvent) => void\n audio_pairing_needed: (event: AudioPairingNeededEvent) => void\n audio_connected: (event: AudioConnectedEvent) => void\n audio_disconnected: (event: AudioDisconnectedEvent) => void\n save_setting: (event: SaveSettingEvent) => void\n ws_text: (event: WsTextEvent) => void\n ws_bin: (event: WsBinEvent) => void\n mic_pcm: (event: MicPcmEvent) => void\n mic_lc3: (event: MicLc3Event) => void\n mic_health: (event: MicHealthEvent) => void\n stream_status: (event: StreamStatusEvent) => void\n keep_alive_ack: (event: KeepAliveAckEvent) => void\n mtk_update_complete: (event: MtkUpdateCompleteEvent) => void\n glasses_session_changed: (event: GlassesSessionChangedEvent) => void\n ota_start_ack: (event: OtaStartAckEvent) => void\n ota_status: (event: OtaStatusEvent) => void\n ar99_ota_status: (event: Ar99OtaStatusEvent) => void\n g2_firmware_flash_progress: (event: G2FirmwareFlashProgressEvent) => void\n version_info: (event: VersionInfoEvent) => void\n send_command_to_ble: (event: BleCommandTraceEvent) => void\n receive_command_from_ble: (event: BleCommandTraceEvent) => void\n miniapp_selected: (event: MiniappSelectedEvent) => void\n extraction_progress: (event: ExtractionProgressEvent) => void\n}\n\nexport interface ExtractionProgressEvent {\n percentage: number\n bytesRead: number\n totalBytes: number\n}\n\nexport interface Ar99OtaStatusEvent {\n type: \"ar99_ota_status\"\n phase: string\n progress: number\n offset: number\n total: number\n errorMessage?: string\n error_message?: string\n}\n\nexport interface PhoneNotificationEvent {\n notificationId: string\n app: string\n title: string\n content: string\n priority: string\n timestamp: number\n packageName: string\n}\n\nexport interface PhoneNotificationDismissedEvent {\n notificationId: string\n notificationKey: string\n packageName: string\n timestamp: number\n}\n\n/**\n * iOS G2: the glasses' on-firmware ANCS client reported the source app of a\n * notification (bundle id + display name — never the content). Feeds the\n * seen-apps list backing the ANCS filter UI.\n */\nexport interface NotificationAppSeenEvent {\n appId: string\n displayName: string\n timestamp: number\n}\n\nexport type PublicGlassesStatus = Omit<\n GlassesStatus,\n \"otaUpdateAvailable\" | \"otaProgress\" | \"otaInProgress\" | \"otaVersionUrl\"\n>\n\nexport type PublicBluetoothStatus = Pick<\n BluetoothStatus,\n | \"searching\"\n | \"searchingController\"\n | \"systemMicUnavailable\"\n | \"micRanking\"\n | \"currentMic\"\n | \"searchResults\"\n | \"wifiScanResults\"\n | \"lastLog\"\n | \"otherBtConnected\"\n | \"galleryModeEnabled\"\n>\n\nexport type BluetoothSdkEventMap = {\n log: LogEvent\n device_discovered: Device\n default_device_changed: {device?: Device}\n glasses_not_ready: GlassesNotReadyEvent\n button_press: ButtonPressEvent\n touch_event: TouchEvent\n accel_event: AccelEvent\n head_up: HeadUpEvent\n voice_activity_detection_status: VoiceActivityDetectionStatusEvent\n speaking_status: SpeakingStatusEvent\n battery_status: BatteryStatusEvent\n local_transcription: LocalTranscriptionEvent\n wifi_status_change: WifiStatusChangeEvent\n wifi_scan_result: WifiScanResultEvent\n hotspot_status_change: HotspotStatusChangeEvent\n hotspot_error: HotspotErrorEvent\n photo_response: PhotoResponseEvent\n photo_status: PhotoStatusEvent\n camera_status: CameraStatusEvent\n video_recording_status: VideoRecordingStatusEvent\n media_success: MediaUploadSuccessEvent\n media_error: MediaUploadErrorEvent\n gallery_status: GalleryStatusEvent\n compatible_glasses_search_stop: CompatibleGlassesSearchStopEvent\n swipe_volume_status: SwipeVolumeStatusEvent\n switch_status: SwitchStatusEvent\n rgb_led_control_response: RgbLedControlResponseEvent\n settings_ack: SettingsAckEvent\n pair_failure: PairFailureEvent\n pairing_info: PairingInfoEvent\n entering_pairing_mode: EnteringPairingModeEvent\n owner_replaced: OwnerReplacedEvent\n audio_pairing_needed: AudioPairingNeededEvent\n audio_connected: AudioConnectedEvent\n audio_disconnected: AudioDisconnectedEvent\n mic_pcm: MicPcmEvent\n mic_lc3: MicLc3Event\n mic_health: MicHealthEvent\n stream_status: StreamStatusEvent\n /** Mentra Live MTK updater completed and the glasses are about to restart. */\n mtk_update_complete: MtkUpdateCompleteEvent\n /** The ASG process restarted while the BES kept the BLE connection alive. */\n glasses_session_changed: GlassesSessionChangedEvent\n ota_start_ack: OtaStartAckEvent\n ota_status: OtaStatusEvent\n ar99_ota_status: Ar99OtaStatusEvent\n g2_firmware_flash_progress: G2FirmwareFlashProgressEvent\n version_info: VersionInfoEvent\n extraction_progress: ExtractionProgressEvent\n}\n\nexport type BluetoothSdkEventName = keyof BluetoothSdkEventMap\n\nexport type BluetoothSdkEventListener<EventName extends BluetoothSdkEventName> = (\n event: BluetoothSdkEventMap[EventName],\n) => void\n\nexport type BluetoothSdkSubscription = {\n remove(): void\n}\n\nexport type BluetoothSdkEvent = BluetoothSdkEventMap[BluetoothSdkEventName]\n\nexport interface BluetoothSdkPublicModule {\n addListener<EventName extends BluetoothSdkEventName>(\n eventName: EventName,\n listener: BluetoothSdkEventListener<EventName>,\n ): BluetoothSdkSubscription\n\n /** Read an immutable snapshot of the current glasses state. */\n getGlassesStatus(): Promise<PublicGlassesStatus>\n /** Read an immutable snapshot of the phone Bluetooth adapter state. */\n getBluetoothStatus(): Promise<PublicBluetoothStatus>\n /** Observe immutable glasses-state patches. Returns an unsubscribe function. */\n subscribeGlassesStatus(listener: (changed: Partial<PublicGlassesStatus>) => void): () => void\n /** Observe immutable Bluetooth-state patches. Returns an unsubscribe function. */\n subscribeBluetoothStatus(listener: (changed: Partial<PublicBluetoothStatus>) => void): () => void\n\n getDefaultDevice(): Promise<Device | null>\n setDefaultDevice(device: Device | null): Promise<void>\n clearDefaultDevice(): Promise<void>\n\n startScan(model: DeviceModel): Promise<void>\n stopScan(): Promise<void>\n scan(options: ScanOptions): Promise<Device[]>\n scan(model: DeviceModel, options?: ScanModelOptions): Promise<Device[]>\n connect(device: Device, options?: ConnectOptions): Promise<void>\n connectDefault(options?: ConnectOptions): Promise<void>\n cancelConnectionAttempt(): Promise<void>\n disconnect(): Promise<void>\n forget(): Promise<void>\n\n displayText(text: string, x?: number, y?: number, size?: number): Promise<void>\n clearDisplay(): Promise<void>\n showDashboard(): Promise<void>\n /**\n * Open the glasses' built-in notification panel (same effect as the user\n * saying \"Hey Even, show notifications\"). G2 only; a no-op elsewhere.\n */\n showNativeNotificationPanel(): Promise<void>\n setDashboardPosition(height: number, depth: number): Promise<void>\n setHeadUpAngle(angleDegrees: number): Promise<void>\n setImuEnabled(enabled: boolean): Promise<void>\n setScreenDisabled(disabled: boolean): Promise<void>\n /** Keep legacy Mentra Live OTA sessions awake. Modern sessions normally do not require this. */\n ping(): Promise<void>\n\n requestWifiScan(): Promise<WifiSearchResult[]>\n sendWifiCredentials(ssid: string, password: string): Promise<WifiStatusChangeEvent>\n forgetWifiNetwork(ssid: string): Promise<WifiStatusChangeEvent>\n setHotspotState(enabled: boolean): Promise<HotspotStatusChangeEvent>\n /** Set the glasses clock from the phone after an OTA clock-skew failure. */\n setSystemTime(timestampMs: number): Promise<void>\n /** Enable or disable Wi-Fi ADB on Mentra Live (no-op on other devices). */\n setWifiAdbState(enabled: boolean): Promise<void>\n\n setGalleryModeEnabled(enabled: boolean): Promise<SettingsAckSuccessEvent>\n setVoiceActivityDetectionEnabled(enabled: boolean): Promise<void>\n setLoudnessGateEnabled(enabled: boolean): Promise<void>\n /**\n * @deprecated Sticky action-button photo presets are deprecated. Prefer per-request\n * `requestPhoto(...)` options (e.g. `mode: \"text\"` for text sensor size/crop, or explicit per-shot\n * fields). Still functional until removed in a future release.\n */\n setPhotoCaptureDefaults(settings: PhotoCaptureDefaults): Promise<SettingsAckSuccessEvent>\n setVideoRecordingDefaults(settings: VideoRecordingDefaults): Promise<SettingsAckSuccessEvent>\n setMaxVideoRecordingDuration(minutes: number): Promise<SettingsAckSuccessEvent>\n setCameraFov(request: CameraFovRequest): Promise<CameraFovResult>\n /** One-way FOV command for legacy ASG clients that do not send settings acknowledgements. */\n setLegacyCameraFov(request: CameraFovRequest): Promise<CameraFovResult>\n setCameraFovOverride(request: CameraFovOverrideRequest): Promise<CameraFovResult>\n releaseCameraFovOverride(leaseId: string): Promise<SettingsAckSuccessEvent>\n /**\n * Configure camera HAL tuning (ANR / gain) on Mentra Live glasses.\n *\n * The phone sends a {@code camera_tuning_config} BLE command; the glasses relay it as a\n * {@code camconfig} broadcast to the camera HAL so parameters take effect without a reboot.\n *\n * **Scan-mode convention**: call with `(false, false)` when activating scan mode to disable ANR\n * and pixsmart gain for sharper text/barcode captures. Call with `(true, true)` to restore\n * defaults when exiting scan mode.\n *\n * @param anrOn `true` = ANR enabled (default), `false` = ANR disabled\n * @param gainOn `true` = stock gain params (default), `false` = pixsmart gain-off params\n */\n setCameraTuningConfig(anrOn: boolean, gainOn: boolean): Promise<SettingsAckSuccessEvent>\n queryGalleryStatus(): Promise<GalleryStatusEvent>\n requestPhoto(params: PhotoRequestParams): Promise<PhotoSuccessResponseEvent>\n warmUpCamera(params: WarmUpCameraParams): Promise<CameraStatusEvent>\n /** Release one request-owned warm-up. Opening requests reject with camera_warm_up_cancelled. */\n stopCameraWarmUp(requestId: string): Promise<void>\n startVideoRecording(\n requestId: string,\n save: boolean,\n sound: boolean,\n settings?: VideoRecordingSettings,\n ): Promise<VideoRecordingStartedStatusEvent>\n /**\n * Stop the active recording. When {@link webhookUrl} is provided, the glasses\n * upload the recorded video to it (multipart) using {@link authToken}. These\n * are supplied at stop time (not start) so the token is fresh when the upload\n * runs 闂?a recording can last arbitrarily long. An empty/omitted webhook keeps\n * the video on device (no upload).\n */\n stopVideoRecording(\n requestId: string,\n webhookUrl?: string,\n authToken?: string,\n ): Promise<VideoRecordingStoppedStatusEvent>\n /** Query the glasses for the current recording state and elapsed duration. */\n queryVideoRecordingStatus(requestId: string): Promise<VideoRecordingStatusEvent>\n\n startStream(params: StreamStartRequest): Promise<StreamStatusEvent>\n stopStream(): Promise<StreamStatusEvent>\n\n setMicState(enabled: boolean, useGlassesMic?: boolean, sendTranscript?: boolean, sendLc3Data?: boolean): Promise<void>\n setPreferredMic(preferredMic: MicPreference): Promise<void>\n setOwnAppAudioPlaying(playing: boolean): Promise<void>\n getGlassesMediaVolume(): Promise<GlassesMediaVolumeGetResult>\n setGlassesMediaVolume(level: number): Promise<GlassesMediaVolumeSetResult>\n\n rgbLedControl(\n requestId: string,\n packageName: string | null,\n action: RgbLedAction,\n color: RgbLedColor | null,\n onDurationMs: number,\n offDurationMs: number,\n count: number,\n ): Promise<RgbLedControlSuccessResponseEvent>\n\n requestVersionInfo(): Promise<VersionInfoResult>\n availableG2FirmwareArtifacts(): Promise<G2FirmwareArtifact[]>\n startG2FirmwareFlash(target: G2FirmwareTarget): Promise<G2FirmwareFlashResult>\n /**\n * Select the OTA manifest used by subsequent update checks and installs.\n * The URL may point at Glassly's hosted manifest or any customer-controlled HTTP(S) server.\n */\n setOtaVersionUrl(otaVersionUrl: string): void\n /** Return the configured or release-embedded OTA manifest URL. Rejects when a source build is unconfigured. */\n getOtaVersionUrl(): string\n /** Fetch the configured OTA manifest and return whether any ASG/BES/MTK update is available. */\n checkForOtaUpdate(): Promise<boolean>\n /** Return bundled release changelogs crossed between two coordinated product versions, newest first. */\n getReleaseChangelogs(fromVersion?: string | null, toVersion?: string | null): ReleaseChangelog[]\n /** Start OTA from the configured or explicitly supplied manifest URL. */\n startOtaUpdate(otaVersionUrl?: string | null): Promise<OtaStartAckEvent>\n /** Query the active OTA session and return the correlated status response. */\n queryOtaStatus(): Promise<OtaQueryResult>\n startAr99OtaFromFile(path: string): Promise<boolean>\n cancelAr99Ota(): Promise<void>\n sendAr99FactoryReset(): Promise<void>\n buildAr99OtaSignature(\n secret: string,\n appName: string,\n currentVersion: string,\n serialNumber: string,\n nonce: string,\n ): string\n\n // // stt commands (MOVE TO CRUST)\n // setSttModelDetails(path: string, languageCode: string): Promise<void>\n // getSttModelPath(): Promise<string>\n // checkSttModelAvailable(): Promise<boolean>\n // validateSttModel(path: string): Promise<boolean>\n // extractTarBz2(sourcePath: string, destinationPath: string): Promise<boolean>\n\n // // tts commands (MOVE TO CRUST)\n // setTtsModelDetails(path: string, languageCode: string): Promise<void>\n // getTtsModelPath(): Promise<string>\n // getTtsModelLanguage(): Promise<string>\n // checkTtsModelAvailable(): Promise<boolean>\n // validateTtsModel(path: string): Promise<boolean>\n // generateTtsAudio(text: string, path: string, outputPath: string, speakerId: number, speed: number): Promise<boolean>\n\n // STT Commands (TODO: MOVE TO CRUST)\n setSttModelDetails(path: string, languageCode: string): Promise<void>\n getSttModelPath(): Promise<string>\n checkSttModelAvailable(): Promise<boolean>\n validateSttModel(path: string): Promise<boolean>\n extractTarBz2(sourcePath: string, destinationPath: string): Promise<boolean>\n restartTranscriber(): Promise<void>\n\n // TTS Commands (TODO: MOVE TO CRUST)\n setTtsModelDetails(path: string, languageCode: string): Promise<void>\n getTtsModelPath(): Promise<string>\n getTtsModelLanguage(): Promise<string>\n checkTtsModelAvailable(): Promise<boolean>\n validateTtsModel(path: string): Promise<boolean>\n generateTtsAudio(\n text: string,\n modelPath: string,\n outputPath: string,\n speakerId: number,\n speed: number,\n ): Promise<boolean>\n}\n\n// OTA update status types\nexport type OtaStage = \"download\" | \"install\"\nexport type OtaProgressStatus = \"STARTED\" | \"PROGRESS\" | \"FINISHED\" | \"FAILED\"\n\nexport interface OtaStatus {\n sessionId: string\n totalSteps: number\n currentStep: number\n stepType: \"apk\" | \"mtk\" | \"bes\"\n phase: \"download\" | \"install\"\n stepPercent: number\n overallPercent: number\n status: \"in_progress\" | \"step_complete\" | \"complete\" | \"failed\" | \"idle\"\n error?: string\n}\n\nexport interface OtaUpdateInfo {\n available: boolean\n versionCode: number\n versionName: string\n updates: string[] // [\"apk\", \"mtk\", \"bes\"]\n totalSize: number\n cacheReady?: boolean\n /** Exact BES target selected from the OTA manifest, when a BES step is pending. */\n besVersion?: string\n /** True when the APK step installs an older build than the glasses currently run (exact-pin manifests only). */\n isDowngrade?: boolean\n}\n\nexport interface ReleaseChangelog {\n /** Base production version, for example `3.1.0`. */\n version: string\n /** Markdown body authored in `/changelogs/<version>.md`. */\n markdown: string\n}\n\nexport interface OtaProgress {\n stage: OtaStage\n status: OtaProgressStatus\n progress: number\n bytesDownloaded: number\n totalBytes: number\n currentUpdate: string\n errorMessage?: string\n}\n\nexport interface GlassesStatus {\n // state:\n connection: GlassesConnectionStatus\n micEnabled: boolean\n voiceActivityDetectionEnabled: boolean\n bluetoothClassicConnected: boolean\n signalStrength: number\n /** Milliseconds since epoch when signalStrength was last refreshed by the phone BLE stack. */\n signalStrengthUpdatedAt: number\n // device info\n deviceModel: string\n androidVersion: string\n firmwareVersion: string\n besFirmwareVersion: string\n mtkFirmwareVersion: string\n bluetoothMacAddress: string\n wifiMacAddress: string\n leftMacAddress: string\n rightMacAddress: string\n buildNumber: string\n /** Glasses System.currentTimeMillis() from last version_info (clock skew detection). */\n systemTimeMs?: number\n otaVersionUrl: string\n appVersion: string\n /** Phone-served hotspot OTA protocol version; 0 means unsupported/legacy glasses. */\n hotspotOtaVersion: number\n bluetoothName: string\n serialNumber: string\n style: string\n color: string\n /**\n * Scene canvas the connected firmware renders, when it differs from the\n * model profile (G2 Glassly CFW: 640×480 direct framebuffer). 0/absent ⇒\n * use the model's canvas.\n */\n sceneCanvasWidth?: number\n sceneCanvasHeight?: number\n /** Connected firmware draws vector shapes and animates transitions on the glasses (G2 Glassly CFW). */\n sceneVector?: boolean\n // wifi info\n wifi: WifiStatus\n // battery info\n batteryLevel: number\n charging: boolean\n caseBatteryLevel: number\n caseCharging: boolean\n caseOpen: boolean\n caseRemoved: boolean\n // hotspot info\n hotspot: HotspotStatus\n // OTA update info\n otaUpdateAvailable: OtaUpdateInfo | null\n otaProgress: OtaProgress | null\n otaInProgress: boolean\n // ring info\n controllerConnected: boolean\n controllerFullyBooted: boolean\n controllerMacAddress: string\n controllerBatteryLevel: number\n controllerSignalStrength: number\n /**\n * iOS: a connected lens is authorized to read the phone's ANCS notification\n * stream (the \"Share System Notifications\" Bluetooth consent). Always false\n * on Android and for models that don't consume ANCS on-firmware.\n */\n ancsAuthorized?: boolean\n}\n\nexport interface CoreDashboardMenuItem {\n name: string\n packageName: string\n running: boolean\n}\n\nexport interface CalendarEvent {\n title: string\n location?: string\n time: string\n endDate: number\n}\n\nexport interface CoreSettings {\n menu_apps: CoreDashboardMenuItem[]\n calendar_events: CalendarEvent[]\n}\n\n/** G2 on-glass notification display behavior (NotificationControl protobuf). */\nexport interface G2NotificationCtrlSetting {\n enabled: boolean\n auto_display: boolean\n /** On-screen popup duration in seconds: 0 (firmware default), 5, 7, or 10. */\n disp_time: number\n avoid_disturb: boolean\n}\n\n/** G2 on-glass ANCS app filter (user/notify_whitelist.json push). */\nexport interface G2NotificationFilterSetting {\n /** false = whitelisting off on-glass (fail-open, every app shows). */\n enabled: boolean\n /** Allowlist entries; identifiers are iOS bundle ids. */\n apps: Array<{id: string; name: string}>\n}\n\nexport interface Device {\n /**\n * Stable app-facing key for this scan result, within the limits of the\n * platform identifier available to the SDK. Do not parse this value; use the\n * typed model, name, address, projectName, and rssi fields instead.\n */\n id: string\n model: DeviceModel\n name: string\n /** Platform address/identifier when available: Android Bluetooth address, iOS CoreBluetooth identifier. */\n address?: string\n /** Optional AR99 project discriminator. Supported value: AR99. */\n projectName?: string\n /**\n * Optional scan signal strength. It may be undefined at first discovery and\n * appear in a later scan update when the platform reports RSSI metadata.\n */\n rssi?: number\n /** Mentra Live: unit is currently in pairing mode (adv flag). */\n pairingMode?: boolean\n /** Mentra Live: four-character hex spoken pairing code when available. */\n pairingCode?: string\n /** Mentra Live: advertisement carries the secure-pairing capability trailer. */\n securePairingCapable?: boolean\n}\n\nexport interface ConnectOptions {\n saveAsDefault?: boolean\n cancelExistingConnectionAttempt?: boolean\n}\n\nexport type ScanResultsCallback = (devices: Device[]) => void\n\nexport interface ScanOptions {\n model: DeviceModel\n /** Defaults to 15000. */\n timeoutMs?: number\n /** Alias for `timeoutMs`, useful when mirroring native examples. */\n timeout?: number\n /** Called every time the discovered device list changes during the scan. */\n onResults?: ScanResultsCallback\n}\n\nexport type ScanModelOptions = Omit<ScanOptions, \"model\">\n\nexport interface WifiSearchResult {\n ssid: string\n requiresPassword: boolean\n signalStrength: number\n /** Frequency in MHz (from glasses scan). 5 GHz band is typically 5170闂?825. Omitted if unknown. */\n frequency?: number\n}\n\nexport interface BluetoothStatus {\n // state:\n searching: boolean\n searchingController: boolean\n default_wearable?: DeviceModel | \"\"\n pending_wearable?: DeviceModel | \"\"\n device_name?: string\n device_address?: string\n default_controller?: DeviceModel | \"\"\n pending_controller?: DeviceModel | \"\"\n controller_device_name?: string\n controller_address?: string\n systemMicUnavailable: boolean\n micRanking: MicMode[]\n currentMic: MicMode | \"\" | null\n /**\n * Nearby glasses in stable discovery order.\n * Existing entries keep their array position as details refresh; new glasses append at the end,\n * and removals should not reorder remaining entries.\n */\n searchResults: Device[]\n wifiScanResults: WifiSearchResult[]\n lastLog: string[]\n otherBtConnected: boolean\n // desired settings the SDK sends to compatible connected glasses:\n galleryModeEnabled: boolean\n}\n\nexport type BluetoothSettingsUpdate = Partial<{\n auth_email: string\n core_token: string\n sensing_enabled: boolean\n power_saving_mode: boolean\n lc3_frame_size: number\n preferred_mic: MicPreference\n screen_disabled: boolean\n contextual_dashboard: boolean\n head_up_angle: number\n imu_enabled: boolean\n brightness: number\n auto_brightness: boolean\n dashboard_height: number\n dashboard_depth: number\n menu_apps: DashboardMenuItem[] | CoreDashboardMenuItem[] | Array<Record<string, unknown>> | null\n calendar_events: CalendarEvent[]\n notification_ctrl: G2NotificationCtrlSetting\n notification_filter: G2NotificationFilterSetting\n metric_system: boolean\n twelve_hour_time: boolean\n gallery_mode: boolean\n voice_activity_detection_enabled: boolean\n loudness_gate_enabled: boolean\n button_photo_size: ButtonPhotoSize\n button_video_settings: {width: number; height: number; fps: number}\n button_video_width: number\n button_video_height: number\n button_video_fps: number\n button_max_recording_time: number\n camera_fov: NativeCameraFovSetting\n should_send_pcm: boolean\n should_send_lc3: boolean\n should_send_transcript: boolean\n offline_mode: boolean\n local_stt_fallback_active: boolean\n pending_wearable: DeviceModel | \"\"\n default_wearable: DeviceModel | \"\"\n device_name: string\n device_address: string\n default_controller: DeviceModel | \"\"\n pending_controller: DeviceModel | \"\"\n controller_device_name: string\n controller_address: string\n}>\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export const BLUETOOTH_SDK_RELEASE_METADATA = Object.freeze({
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"familyBaseVersion": "0.1.0",
|
|
4
|
-
"releaseIdentity": "0.1.0-dev.
|
|
5
|
-
"releaseSetId": "glassly-0.1.0-dev.
|
|
6
|
-
"sourceCommit": "
|
|
4
|
+
"releaseIdentity": "0.1.0-dev.120",
|
|
5
|
+
"releaseSetId": "glassly-0.1.0-dev.120",
|
|
6
|
+
"sourceCommit": "0714706f0cfc7fb712af7819f67ca1f34d2e58e4",
|
|
7
7
|
"otaManifestUrl": null,
|
|
8
8
|
"otaManifestSha256": null
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,eAAe;IAClC,cAAc,EAAE,uBAAuB;IACvC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;CAC1B,CAAC,CAAA","sourcesContent":["/** Generated by release CI. Do not edit in a release checkout. */\nexport interface BluetoothSdkReleaseMetadata {\n schemaVersion: 1\n familyBaseVersion: string | null\n releaseIdentity: string | null\n releaseSetId: string | null\n sourceCommit: string | null\n otaManifestUrl: string | null\n otaManifestSha256: string | null\n}\n\nexport const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({\n \"schemaVersion\": 1,\n \"familyBaseVersion\": \"0.1.0\",\n \"releaseIdentity\": \"0.1.0-dev.
|
|
1
|
+
{"version":3,"file":"releaseMetadata.js","sourceRoot":"","sources":["../../src/generated/releaseMetadata.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,8BAA8B,GAA0C,MAAM,CAAC,MAAM,CAAC;IACjG,eAAe,EAAE,CAAC;IAClB,mBAAmB,EAAE,OAAO;IAC5B,iBAAiB,EAAE,eAAe;IAClC,cAAc,EAAE,uBAAuB;IACvC,cAAc,EAAE,0CAA0C;IAC1D,gBAAgB,EAAE,IAAI;IACtB,mBAAmB,EAAE,IAAI;CAC1B,CAAC,CAAA","sourcesContent":["/** Generated by release CI. Do not edit in a release checkout. */\nexport interface BluetoothSdkReleaseMetadata {\n schemaVersion: 1\n familyBaseVersion: string | null\n releaseIdentity: string | null\n releaseSetId: string | null\n sourceCommit: string | null\n otaManifestUrl: string | null\n otaManifestSha256: string | null\n}\n\nexport const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({\n \"schemaVersion\": 1,\n \"familyBaseVersion\": \"0.1.0\",\n \"releaseIdentity\": \"0.1.0-dev.120\",\n \"releaseSetId\": \"glassly-0.1.0-dev.120\",\n \"sourceCommit\": \"0714706f0cfc7fb712af7819f67ca1f34d2e58e4\",\n \"otaManifestUrl\": null,\n \"otaManifestSha256\": null\n})\n"]}
|
|
@@ -11,7 +11,7 @@ enum BluetoothSdkDefaults {
|
|
|
11
11
|
static let voiceActivityDetectionEnabled = false
|
|
12
12
|
static let loudnessGateEnabled = true
|
|
13
13
|
private static let infoSdkVersionKey = "BluetoothSdkVersion"
|
|
14
|
-
private static let swiftPackageSdkVersion = "0.1.0-dev.
|
|
14
|
+
private static let swiftPackageSdkVersion = "0.1.0-dev.120"
|
|
15
15
|
private static let swiftPackageSdkVersionPlaceholder = "__GLASSLY" + "_BLUETOOTH_SDK_VERSION__"
|
|
16
16
|
|
|
17
17
|
private static func normalizedSdkVersion(_ value: String?) -> String? {
|
package/ios/Source/Bridge.swift
CHANGED
|
@@ -88,6 +88,14 @@ class Bridge {
|
|
|
88
88
|
Bridge.sendTypedMessage("extraction_progress", body: body)
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
/// display.render() frame outcome; seq 0 frames are native-originated and never reported.
|
|
92
|
+
static func sendSceneFramePresented(seq: Int, appId: String, presented: Bool, reason: String?) {
|
|
93
|
+
guard seq > 0 else { return }
|
|
94
|
+
var body: [String: Any] = ["seq": seq, "appId": appId, "presented": presented]
|
|
95
|
+
if let reason { body["reason"] = reason }
|
|
96
|
+
sendTypedMessage("scene_frame_presented", body: body)
|
|
97
|
+
}
|
|
98
|
+
|
|
91
99
|
static func sendHeadUp(_ isUp: Bool) {
|
|
92
100
|
let data = ["up": isUp]
|
|
93
101
|
Bridge.sendTypedMessage("head_up", body: data)
|
|
@@ -1378,19 +1378,25 @@ struct ViewState {
|
|
|
1378
1378
|
|
|
1379
1379
|
/// Guarded scene dispatch - mirrors sendCurrentState's send conditions.
|
|
1380
1380
|
private func dispatchSceneFrame(_ frame: SceneFrame) {
|
|
1381
|
+
// Each early-out tells the host the frame won't show now; the SGC
|
|
1382
|
+
// reports the rest once the device has it.
|
|
1381
1383
|
if screenDisabled {
|
|
1384
|
+
frame.reportPresented(false, reason: "screen off")
|
|
1382
1385
|
return
|
|
1383
1386
|
}
|
|
1384
1387
|
// Native nav UI owns the display; the retained scene state (stored as
|
|
1385
1388
|
// a replay frame above) repaints when navigation mode exits.
|
|
1386
1389
|
if sgc?.navigationModeActive == true {
|
|
1390
|
+
frame.reportPresented(false, reason: "navigation UI active")
|
|
1387
1391
|
return
|
|
1388
1392
|
}
|
|
1389
1393
|
if sgc?.type.contains(DeviceTypes.SIMULATED) ?? true {
|
|
1394
|
+
frame.reportPresented(false, reason: sgc == nil ? "no glasses" : "simulated glasses")
|
|
1390
1395
|
return
|
|
1391
1396
|
}
|
|
1392
1397
|
guard sgc?.fullyBooted == true else {
|
|
1393
1398
|
Bridge.log("MAN: dispatchSceneFrame(): sgc not ready")
|
|
1399
|
+
frame.reportPresented(false, reason: "glasses not ready")
|
|
1394
1400
|
return
|
|
1395
1401
|
}
|
|
1396
1402
|
Task { [weak self] in
|
|
@@ -1445,7 +1451,8 @@ struct ViewState {
|
|
|
1445
1451
|
elements: elements,
|
|
1446
1452
|
removed: (sceneMap["removed"] as? [String]) ?? [],
|
|
1447
1453
|
canvasWidth: (canvas?["width"] as? NSNumber)?.int32Value ?? 0,
|
|
1448
|
-
canvasHeight: (canvas?["height"] as? NSNumber)?.int32Value ?? 0
|
|
1454
|
+
canvasHeight: (canvas?["height"] as? NSNumber)?.int32Value ?? 0,
|
|
1455
|
+
seq: (sceneMap["seq"] as? NSNumber)?.intValue ?? 0
|
|
1449
1456
|
)
|
|
1450
1457
|
}
|
|
1451
1458
|
|
|
@@ -58,7 +58,7 @@ final class DisplayPacer {
|
|
|
58
58
|
return SceneFrame(
|
|
59
59
|
appId: next.appId, epoch: next.epoch, replay: previous.replay || next.replay,
|
|
60
60
|
elements: elements, removed: removed,
|
|
61
|
-
canvasWidth: next.canvasWidth, canvasHeight: next.canvasHeight
|
|
61
|
+
canvasWidth: next.canvasWidth, canvasHeight: next.canvasHeight, seq: next.seq
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
64
|
|
|
@@ -133,8 +133,9 @@ final class DisplayPacer {
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
/// Drop pending work without sending (disconnect, screen off, clearDisplay).
|
|
136
|
-
func cancel() {
|
|
136
|
+
func cancel(reason: String = "cancelled") {
|
|
137
137
|
stopTimer()
|
|
138
|
+
pendingScene?.reportPresented(false, reason: reason)
|
|
138
139
|
pendingScene = nil
|
|
139
140
|
pendingLegacy = false
|
|
140
141
|
}
|
|
@@ -3,9 +3,9 @@ import Foundation
|
|
|
3
3
|
/// Generated by release CI. Do not edit in a release checkout.
|
|
4
4
|
enum GeneratedReleaseMetadata {
|
|
5
5
|
static let familyBaseVersion = "0.1.0"
|
|
6
|
-
static let releaseIdentity = "0.1.0-dev.
|
|
7
|
-
static let releaseSetId = "glassly-0.1.0-dev.
|
|
8
|
-
static let sourceCommit = "
|
|
6
|
+
static let releaseIdentity = "0.1.0-dev.120"
|
|
7
|
+
static let releaseSetId = "glassly-0.1.0-dev.120"
|
|
8
|
+
static let sourceCommit = "0714706f0cfc7fb712af7819f67ca1f34d2e58e4"
|
|
9
9
|
static let otaManifestUrl = ""
|
|
10
10
|
static let otaManifestSha256 = ""
|
|
11
11
|
}
|
package/ios/Source/sgcs/G2.swift
CHANGED
|
@@ -1730,6 +1730,8 @@ final class G2: NSObject, SGCManager {
|
|
|
1730
1730
|
private struct CfwPayload {
|
|
1731
1731
|
let kind: CfwPayloadKind
|
|
1732
1732
|
let data: Data
|
|
1733
|
+
/// Host frame this payload puts on the glasses — reported once acked.
|
|
1734
|
+
var presents: SceneFrame.PresentTag? = nil
|
|
1733
1735
|
}
|
|
1734
1736
|
|
|
1735
1737
|
private var cfwPendingPayloads: [CfwPayload] = []
|
|
@@ -2941,6 +2943,8 @@ final class G2: NSObject, SGCManager {
|
|
|
2941
2943
|
Bridge.log("G2: applySceneFrame — structural changes, ONE coalesced rebuild for the whole frame")
|
|
2942
2944
|
await coalescedPageRebuild()
|
|
2943
2945
|
}
|
|
2946
|
+
// Stock firmware: text sends are unacked; the awaited verbs above are the best signal there is.
|
|
2947
|
+
frame.reportPresented(true)
|
|
2944
2948
|
}
|
|
2945
2949
|
|
|
2946
2950
|
/// Render `frame` phone-side and queue it for the CFW carrier. Installs the
|
|
@@ -2960,6 +2964,7 @@ final class G2: NSObject, SGCManager {
|
|
|
2960
2964
|
startFbLease()
|
|
2961
2965
|
guard await enqueueCfwFrame(frame) else {
|
|
2962
2966
|
Bridge.log("G2: CFW scene encode failed; retaining the previous frame")
|
|
2967
|
+
frame.reportPresented(false, reason: "scene encode failed")
|
|
2963
2968
|
return
|
|
2964
2969
|
}
|
|
2965
2970
|
cfwSceneActive = true
|
|
@@ -3140,7 +3145,7 @@ final class G2: NSObject, SGCManager {
|
|
|
3140
3145
|
for upload in encoded.uploads {
|
|
3141
3146
|
cfwPendingPayloads.append(CfwPayload(kind: .upload, data: upload))
|
|
3142
3147
|
}
|
|
3143
|
-
cfwPendingPayloads.append(CfwPayload(kind: .scene, data: encoded.payload))
|
|
3148
|
+
cfwPendingPayloads.append(CfwPayload(kind: .scene, data: encoded.payload, presents: frame.presentTag))
|
|
3144
3149
|
cfwLastPayloadQueuedAt = Date().timeIntervalSince1970
|
|
3145
3150
|
return true
|
|
3146
3151
|
}
|
|
@@ -3223,7 +3228,9 @@ final class G2: NSObject, SGCManager {
|
|
|
3223
3228
|
cfwPendingPayloads.append(CfwPayload(kind: .upload, data: upload))
|
|
3224
3229
|
}
|
|
3225
3230
|
guard let payload = update.payload else {
|
|
3226
|
-
// Visually identical frame — the shadow already shows it
|
|
3231
|
+
// Visually identical frame — the shadow already shows it, or a
|
|
3232
|
+
// queued payload is about to.
|
|
3233
|
+
cfwAttachPresentTag(frame)
|
|
3227
3234
|
return true
|
|
3228
3235
|
}
|
|
3229
3236
|
if update.usedFullFrame {
|
|
@@ -3247,6 +3254,7 @@ final class G2: NSObject, SGCManager {
|
|
|
3247
3254
|
cfwShadowSeeded = true
|
|
3248
3255
|
if textDraws.isEmpty {
|
|
3249
3256
|
cfwPendingPayloads.removeAll { $0.kind == .full || $0.kind == .delta || $0.kind == .scene }
|
|
3257
|
+
cfwPendingPayloads[cfwPendingPayloads.count - 1].presents = frame.presentTag
|
|
3250
3258
|
cfwLastPayloadQueuedAt = Date().timeIntervalSince1970
|
|
3251
3259
|
return true
|
|
3252
3260
|
}
|
|
@@ -3259,14 +3267,26 @@ final class G2: NSObject, SGCManager {
|
|
|
3259
3267
|
// A full overwrites the window; seeds, uploads, and move-blanks must still survive.
|
|
3260
3268
|
cfwPendingPayloads.removeAll { $0.kind == .full || $0.kind == .delta || $0.kind == .scene }
|
|
3261
3269
|
let kind: CfwPayloadKind = movedBoxes ? .moveBundle : .full
|
|
3262
|
-
cfwPendingPayloads.append(CfwPayload(kind: kind, data: payload))
|
|
3270
|
+
cfwPendingPayloads.append(CfwPayload(kind: kind, data: payload, presents: frame.presentTag))
|
|
3263
3271
|
} else {
|
|
3264
|
-
cfwPendingPayloads.append(CfwPayload(kind: .delta, data: payload))
|
|
3272
|
+
cfwPendingPayloads.append(CfwPayload(kind: .delta, data: payload, presents: frame.presentTag))
|
|
3265
3273
|
}
|
|
3266
3274
|
cfwLastPayloadQueuedAt = Date().timeIntervalSince1970
|
|
3267
3275
|
return true
|
|
3268
3276
|
}
|
|
3269
3277
|
|
|
3278
|
+
/// A frame that needs no payload of its own is on the glasses once the
|
|
3279
|
+
/// last queued frame-carrying payload is acked; with nothing queued it is
|
|
3280
|
+
/// there already. Frame numbers only go up, so the tag can be overwritten.
|
|
3281
|
+
private func cfwAttachPresentTag(_ frame: SceneFrame) {
|
|
3282
|
+
guard let tag = frame.presentTag else { return }
|
|
3283
|
+
if let i = cfwPendingPayloads.lastIndex(where: { $0.kind != .upload }) {
|
|
3284
|
+
cfwPendingPayloads[i].presents = tag
|
|
3285
|
+
} else {
|
|
3286
|
+
frame.reportPresented(true)
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3270
3290
|
/// Make the container set the CFW carrier shape (one 576×288 image container,
|
|
3271
3291
|
/// no text) — the shape `createPageWithContainers` recognises as the carrier
|
|
3272
3292
|
/// page. Returns true if it was ALREADY configured, so callers can tell
|
|
@@ -3314,6 +3334,9 @@ final class G2: NSObject, SGCManager {
|
|
|
3314
3334
|
private func cfwClear() {
|
|
3315
3335
|
cfwLastFrame = nil
|
|
3316
3336
|
cfwSceneActive = false
|
|
3337
|
+
for payload in cfwPendingPayloads where payload.kind != .seed {
|
|
3338
|
+
payload.presents?.report(false, reason: "cleared")
|
|
3339
|
+
}
|
|
3317
3340
|
cfwPendingPayloads.removeAll { $0.kind != .seed }
|
|
3318
3341
|
if let seed = G2CfwRenderer.blackPayload() {
|
|
3319
3342
|
cfwPendingPayloads.append(CfwPayload(kind: .seed, data: seed))
|
|
@@ -3978,7 +4001,7 @@ final class G2: NSObject, SGCManager {
|
|
|
3978
4001
|
Bridge.log("G2: page-down probe acked — phantom exit, page alive (no rebuild)")
|
|
3979
4002
|
pageCreated = true
|
|
3980
4003
|
if !cfwPendingPayloads.isEmpty {
|
|
3981
|
-
cfwPendingPayloads.removeFirst()
|
|
4004
|
+
cfwPendingPayloads.removeFirst().presents?.report(true)
|
|
3982
4005
|
}
|
|
3983
4006
|
signalDisplayDirty() // drain the rest normally
|
|
3984
4007
|
return
|
|
@@ -4019,6 +4042,11 @@ final class G2: NSObject, SGCManager {
|
|
|
4019
4042
|
let ok = await sendImageData(
|
|
4020
4043
|
containerID: carrier.id, containerName: carrier.name, bmpData: payload.data
|
|
4021
4044
|
)
|
|
4045
|
+
if ok {
|
|
4046
|
+
// Fragment acks mean the firmware has the whole payload; it
|
|
4047
|
+
// presents on its next frame tick.
|
|
4048
|
+
payload.presents?.report(true)
|
|
4049
|
+
}
|
|
4022
4050
|
if !ok {
|
|
4023
4051
|
// A lost payload leaves the on-glass shadow stale; further
|
|
4024
4052
|
// deltas would composite onto it and corrupt the panel.
|
|
@@ -98,11 +98,15 @@ struct SceneFrame: Sendable {
|
|
|
98
98
|
let removed: [String]
|
|
99
99
|
let canvasWidth: Int32
|
|
100
100
|
let canvasHeight: Int32
|
|
101
|
+
/// Host frame number, reported back in `scene_frame_presented` once the
|
|
102
|
+
/// device has the frame. 0 = native-originated (legacy sugar), never reported.
|
|
103
|
+
let seq: Int
|
|
101
104
|
|
|
102
105
|
init(
|
|
103
106
|
appId: String, epoch: Int, replay: Bool, elements: [SceneElement], removed: [String],
|
|
104
107
|
canvasWidth: Int32 = SceneFrame.defaultCanvasWidth,
|
|
105
|
-
canvasHeight: Int32 = SceneFrame.defaultCanvasHeight
|
|
108
|
+
canvasHeight: Int32 = SceneFrame.defaultCanvasHeight,
|
|
109
|
+
seq: Int = 0
|
|
106
110
|
) {
|
|
107
111
|
self.appId = appId
|
|
108
112
|
self.epoch = epoch
|
|
@@ -111,15 +115,35 @@ struct SceneFrame: Sendable {
|
|
|
111
115
|
self.removed = removed
|
|
112
116
|
self.canvasWidth = canvasWidth > 0 ? canvasWidth : SceneFrame.defaultCanvasWidth
|
|
113
117
|
self.canvasHeight = canvasHeight > 0 ? canvasHeight : SceneFrame.defaultCanvasHeight
|
|
118
|
+
self.seq = seq
|
|
114
119
|
}
|
|
115
120
|
|
|
116
121
|
func asReplay() -> SceneFrame {
|
|
117
122
|
SceneFrame(
|
|
118
123
|
appId: appId, epoch: epoch, replay: true,
|
|
119
124
|
elements: elements.map { $0.with(change: "created") }, removed: removed,
|
|
120
|
-
canvasWidth: canvasWidth, canvasHeight: canvasHeight
|
|
125
|
+
canvasWidth: canvasWidth, canvasHeight: canvasHeight, seq: seq
|
|
121
126
|
)
|
|
122
127
|
}
|
|
128
|
+
|
|
129
|
+
/// Tell the host this frame's content is on the glasses (or why it isn't).
|
|
130
|
+
func reportPresented(_ presented: Bool, reason: String? = nil) {
|
|
131
|
+
presentTag?.report(presented, reason: reason)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/// What a queued transfer must report once it lands; nil for native-originated frames.
|
|
135
|
+
var presentTag: PresentTag? {
|
|
136
|
+
seq > 0 ? PresentTag(seq: seq, appId: appId) : nil
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
struct PresentTag: Sendable {
|
|
140
|
+
let seq: Int
|
|
141
|
+
let appId: String
|
|
142
|
+
|
|
143
|
+
func report(_ presented: Bool, reason: String? = nil) {
|
|
144
|
+
Bridge.sendSceneFramePresented(seq: seq, appId: appId, presented: presented, reason: reason)
|
|
145
|
+
}
|
|
146
|
+
}
|
|
123
147
|
}
|
|
124
148
|
|
|
125
149
|
@MainActor
|
|
@@ -441,6 +465,8 @@ extension SGCManager {
|
|
|
441
465
|
for id in frame.removed where !paintedIds.contains(id) {
|
|
442
466
|
await removeLayoutElement(id, layoutId: frame.appId)
|
|
443
467
|
}
|
|
468
|
+
// No device ack on this path: the awaited verbs above cover the sends.
|
|
469
|
+
frame.reportPresented(true)
|
|
444
470
|
}
|
|
445
471
|
|
|
446
472
|
// MARK: - Video recording (default: ignore custom settings, use saved defaults)
|
package/package.json
CHANGED
|
@@ -91,6 +91,20 @@ export type NavigationViewEvent = {
|
|
|
91
91
|
viewIndex: number
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
+
/**
|
|
95
|
+
* A scene frame (display.render()) reached — or can no longer reach — the
|
|
96
|
+
* glasses. `seq` is the host's frame number; a report covers every earlier
|
|
97
|
+
* frame too, since unsent frames fold into the next one. `presented: false`
|
|
98
|
+
* carries the `reason` (screen off, nav UI up, page rebuilding, …).
|
|
99
|
+
*/
|
|
100
|
+
export type SceneFramePresentedEvent = {
|
|
101
|
+
type: "scene_frame_presented"
|
|
102
|
+
seq: number
|
|
103
|
+
appId: string
|
|
104
|
+
presented: boolean
|
|
105
|
+
reason?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
94
108
|
export type VoiceActivityDetectionStatusEvent = {
|
|
95
109
|
type: "voice_activity_detection_status"
|
|
96
110
|
voiceActivityDetectionEnabled: boolean
|
|
@@ -1005,6 +1019,7 @@ export type BluetoothSdkModuleEvents = {
|
|
|
1005
1019
|
compass_calibration: (event: CompassCalibrationEvent) => void
|
|
1006
1020
|
navigation_mode_change: (event: NavigationModeEvent) => void
|
|
1007
1021
|
navigation_view_change: (event: NavigationViewEvent) => void
|
|
1022
|
+
scene_frame_presented: (event: SceneFramePresentedEvent) => void
|
|
1008
1023
|
head_up: (event: HeadUpEvent) => void
|
|
1009
1024
|
voice_activity_detection_status: (event: VoiceActivityDetectionStatusEvent) => void
|
|
1010
1025
|
speaking_status: (event: SpeakingStatusEvent) => void
|
|
@@ -12,9 +12,9 @@ export interface BluetoothSdkReleaseMetadata {
|
|
|
12
12
|
export const BLUETOOTH_SDK_RELEASE_METADATA: Readonly<BluetoothSdkReleaseMetadata> = Object.freeze({
|
|
13
13
|
"schemaVersion": 1,
|
|
14
14
|
"familyBaseVersion": "0.1.0",
|
|
15
|
-
"releaseIdentity": "0.1.0-dev.
|
|
16
|
-
"releaseSetId": "glassly-0.1.0-dev.
|
|
17
|
-
"sourceCommit": "
|
|
15
|
+
"releaseIdentity": "0.1.0-dev.120",
|
|
16
|
+
"releaseSetId": "glassly-0.1.0-dev.120",
|
|
17
|
+
"sourceCommit": "0714706f0cfc7fb712af7819f67ca1f34d2e58e4",
|
|
18
18
|
"otaManifestUrl": null,
|
|
19
19
|
"otaManifestSha256": null
|
|
20
20
|
})
|