ReviewOS

also looking at this

craft-native/craft

feat(ios): the speech pair closes the last deferral — ratchet 28 -> 26

#101
Merged glennmichael123 wants to merge feat/ios-speech-pair into main
10 files +1287 -573
packages/zig/src/bridge_mobile_haptics.zigmodified+8-1
Changes to packages/zig/src/bridge_mobile_haptics.zig
@@ -259,7 +259,14 @@ fn schedulePattern(items: []const std.json.Value) !usize {
259259/// "returned without error" means "UIKit accepted the call", never "the device
260260/// buzzed", which is the other half of why `haptic` has no success reply to
261261/// fabricate.
262fn triggerHapticChecked(haptic_type: HapticType) !void {
262///
263/// `pub` for one caller outside this file. `bridge_mobile_speech.zig` fires a
264/// light impact on start and on stop because `CraftApp.swift:2544` and `:2558`
265/// do — directly, bypassing the `config.enableHaptics` check the dispatcher
266/// applies to `case "haptic"` at `:537`. That bypass is the spec's, not a
267/// choice this module makes, and routing the speech path through the gated
268/// entry point would be the divergence rather than the fix.
269pub fn triggerHapticChecked(haptic_type: HapticType) !void {
263270 if (!builtin.target.os.tag.isDarwin()) return error.UnsupportedPlatform;
264271
265272 switch (haptic_type) {