@glassly/engine 0.3.3-beta.654 → 0.3.3-beta.661
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/facades/display.d.ts.map +1 -1
- package/build/facades/display.js +1 -2
- package/build/facades/display.js.map +1 -1
- package/build/facades/glasses.d.ts.map +1 -1
- package/build/facades/glasses.js +1 -13
- package/build/facades/glasses.js.map +1 -1
- package/build/generated/releaseMetadata.js +3 -3
- package/build/generated/releaseMetadata.js.map +1 -1
- package/build/services/DeviceEventRouter.d.ts.map +1 -1
- package/build/services/DeviceEventRouter.js +0 -7
- package/build/services/DeviceEventRouter.js.map +1 -1
- package/build/services/GlassesTouchInput.d.ts +5 -2
- package/build/services/GlassesTouchInput.d.ts.map +1 -1
- package/build/services/GlassesTouchInput.js +19 -9
- package/build/services/GlassesTouchInput.js.map +1 -1
- package/build/services/LocalMiniappRuntime.d.ts +0 -1
- package/build/services/LocalMiniappRuntime.d.ts.map +1 -1
- package/build/services/LocalMiniappRuntime.js +0 -18
- package/build/services/LocalMiniappRuntime.js.map +1 -1
- package/build/utils/audio/pcmLevel.d.ts +9 -0
- package/build/utils/audio/pcmLevel.d.ts.map +1 -0
- package/build/utils/audio/pcmLevel.js +21 -0
- package/build/utils/audio/pcmLevel.js.map +1 -0
- package/package.json +7 -7
- package/src/facades/display.ts +1 -3
- package/src/facades/glasses.ts +2 -14
- package/src/generated/releaseMetadata.ts +3 -3
- package/src/services/DeviceEventRouter.ts +0 -8
- package/src/services/GlassesTouchInput.ts +22 -9
- package/src/services/LocalMiniappRuntime.ts +0 -17
- package/src/utils/audio/pcmLevel.ts +20 -0
|
@@ -2010,21 +2010,6 @@ class LocalMiniappRuntime {
|
|
|
2010
2010
|
});
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
|
-
else if (stream === "head_position") {
|
|
2014
|
-
// The glasses store has no headUp field (same on the pre-engine host
|
|
2015
|
-
// hook), so this stays a no-emit until head state lands in the store.
|
|
2016
|
-
const headUp = gs.headUp;
|
|
2017
|
-
if (typeof headUp === "boolean") {
|
|
2018
|
-
this.sendToMiniapp(packageName, {
|
|
2019
|
-
type: MiniappResponseType.EVENT,
|
|
2020
|
-
streamType: "head_position",
|
|
2021
|
-
data: {
|
|
2022
|
-
position: headUp ? "up" : "down",
|
|
2023
|
-
timestamp: Date.now(),
|
|
2024
|
-
},
|
|
2025
|
-
});
|
|
2026
|
-
}
|
|
2027
|
-
}
|
|
2028
2013
|
}
|
|
2029
2014
|
}
|
|
2030
2015
|
/**
|
|
@@ -4764,7 +4749,6 @@ class LocalMiniappRuntime {
|
|
|
4764
4749
|
* Forward a streamed event to all miniapps subscribed to the given stream.
|
|
4765
4750
|
*
|
|
4766
4751
|
* Event name translation:
|
|
4767
|
-
* - Cloud sends "head_up" → miniapp protocol uses "head_position" (HEAD_POSITION)
|
|
4768
4752
|
* - Cloud sends "VAD" (uppercase) → miniapp protocol uses "vad" (lowercase)
|
|
4769
4753
|
*/
|
|
4770
4754
|
forwardEvent(streamType, data, transcriptionSource,
|
|
@@ -5019,8 +5003,6 @@ class LocalMiniappRuntime {
|
|
|
5019
5003
|
// Cloud / Bluetooth SDK → miniapp protocol translations.
|
|
5020
5004
|
// Bluetooth SDK event names don't always match the miniapp wire values.
|
|
5021
5005
|
switch (cloudEventName) {
|
|
5022
|
-
case "head_up":
|
|
5023
|
-
return MiniappStreamType.HEAD_POSITION; // head_up → head_position
|
|
5024
5006
|
case "accel_event":
|
|
5025
5007
|
return MiniappStreamType.ACCEL_DATA; // accel_event (native) → accel_data
|
|
5026
5008
|
case "VAD":
|