Commit Graph
542 Commits
Author SHA1 Message Date
James Babcock 2e1501772f Add lint.sh 2026-09-29 14:33:35 -07:00
James Babcock 6267afaff7 Improve connection stability, I hope 2026-09-29 14:33:23 -07:00
James Babcock 48f7f3d01f Fix Kotlin warnings 2026-09-29 12:44:26 -07:00
James Babcock 06146c2b08 Introduce oxlint, and fix lint warnings 2026-09-29 11:54:22 -07:00
James Babcock cb6dddd120 Add a video player, launched by selecting a video file from the Files app 2026-09-28 14:11:04 -07:00
James Babcock deaa93fead Wake the screen on wear faster after charging 2026-09-28 12:04:15 -07:00
James Babcock 2052e268b0 Add touch-down event to simulated and watch inputs 2026-09-28 02:34:08 -07:00
James Babcock 45d2ece0d2 Optimize phone CPU usage 2026-09-27 23:16:41 -07:00
James Babcock 449cb0bf73 Update changelog 2026-09-27 21:40:07 -07:00
James Babcock e879c58d9c EvenHub phone UI: add top bar, add open icon 2026-09-27 21:38:04 -07:00
James Babcock c6949fde3b Reorder Done and Follow-up options in voice input dialog 2026-09-27 18:50:43 -07:00
James Babcock 48a2bd1757 Putting on the glasses auto-wakes the screen 2026-09-27 18:27:38 -07:00
James Babcock 77bda86ede Fix line-wrapping on EvenHub permissions dialog 2026-09-27 18:22:49 -07:00
James Babcock 8798198f4d Fix crash on install of larger EvenHub apps 2026-09-27 18:22:44 -07:00
James Babcock 275f3709a3 Remove a broken/incorrect test 2026-09-27 16:53:58 -07:00
James Babcock 3601a998a3 CPU usage optimizations 2026-09-27 16:33:43 -07:00
James Babcock 95b2ca8afa Update changelog 2026-09-26 22:53:29 -07:00
James Babcock aeeea5ead3 Animations in EvenHub menus; closer style matching 2026-09-26 22:46:30 -07:00
James Babcock 0217d4b1ea Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-26 21:34:53 -07:00
James Babcock 530a867da4 Merge pull request #36 from jmomakesstuff/fix-shell-render-loop
Stop the shell render loop spinning when there is no display target
2026-09-26 21:34:41 -07:00
James Babcock f473855710 Add animation preferences menu 2026-09-26 20:42:08 -07:00
JMO fb2a6a3759 Merge remote-tracking branch 'upstream/main' into pr36-revive 2026-09-26 19:29:19 -07:00
James Babcock e6ec542f56 Version 0.8.0 2026-09-26 14:57:24 -07:00
James Babcock 51edaee883 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-25 23:53:23 -07:00
James Babcock c9447a1056 Tweak the layout of the voice input dialog 2026-09-25 23:53:10 -07:00
James Babcock 1dd86cd0cf Merge pull request #35 from jmomakesstuff/fix-flash-upgrade-unreachable
Refuse the flash prompt with a reason when the glasses are in silent mode
2026-09-25 22:37:26 -07:00
James BabcockandClaude Opus 5.5 1812818ae2 Stop leaking the remaining JS ArrayBuffers passed to Java
The same NativeScript conversion leak as the frame path (see
java-direct-buffer.ts) applied to every other ArrayBuffer handed to a
Java ByteBuffer parameter:

- Shell scenes (submitShellScene on the bridge and the preview display),
  submitted on every shell render, which the frame-path fix predates.
  These now go through a reused JavaDirectBuffer like frames do.
- Glyph, firmware-glyph and image atlas registration, Mapbox image
  decode, the preview placeholder bitmap, firmware hash/write, binary
  file writes and the EvenHub privacy-policy download, plus the Kotlin
  protocol smoke test. These are rare or large, so they cross through a
  new copyToJavaByteBuffer: a fresh Java direct buffer per call that is
  freed normally, rather than one pinned for the life of the isolate.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 22:28:45 -07:00
Chris LeeandClaude Opus 5 8cdee83ff4 Windows: decide a surface's visibility when the call is queued, not before
connect() registers window surfaces in a loop that reads the foreground
window once, before the loop, then awaits each surface's configure call
before queuing its visibility. On a fresh process restoreOpenApps runs at
the same time and focuses windows as it relaunches them. The bridge runs
Java calls in order, so a visibility decided before the await lands after
the focus change's own calls and undoes them: the old foreground can stay
visible and cover the new one, and a later window switch doesn't clear
it, because a switch only hides the window being left.

configureWindowSurface now also accepts visibility as a function, asked
after the configure call, when the visibility call is queued. The display-
attach loops (glasses and preview), the display-mode, per-app layout and
vertical-position changes, and an in-process window's height-mode change
pass one. Launch paths that pass a literal false are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-25 22:24:22 -07:00
Chris LeeandClaude Opus 5 54eae0c6b9 Stop leaking every submitted frame's pixel buffer in native memory
Passing a JS ArrayBuffer to a Java ByteBuffer parameter leaks it in
@nativescript/android 9.0.4 through 9.1.1: JsArgConverter wraps the backing store with
NewDirectByteBuffer and takes a JNI global ref that it never deletes. The
ref keeps the ByteBuffer reachable, so makeInstanceWeakAndCheckIfAlive
always answers "alive", the JS finalizer re-arms, and V8 never frees the
ArrayBuffer. submitSurfaceFrame passed a fresh copy of each frame this way,
so every frame leaked a full surface (576x260, 640x452 or 640x480 bytes)
plus one global ref, including frames that Java then discards as unchanged.
The draw-list buffer and buzzer payloads leaked the same way.

Each payload now goes through a reused Java direct ByteBuffer
(app/native/java-direct-buffer.ts): JS writes into it through an
ArrayBuffer.from view, and the Java object itself is passed, which takes
NativeScript's ordinary object path. Every consumer (SurfaceCompositor
applyAndComposite, playBuzzerSequence) copies before returning, so one
buffer per JS context is safe.

Covered: the communicator bridge (frames, draw lists, buzzer, which also
carries EvenHub tones), the preview-only display, and all eight worker
apps. Workers submit through the Android getActiveDisplay() (frames) and
worker-buzzer (tones), so the reused buffers live there rather than in
each worker; the worker sources are shared with iOS, whose active display
takes the ArrayBuffer itself. The
smaller one-off crossings (glyph and image atlas registration, the gray
preview helper, firmware and file writes) are left as they are.

tests/java-direct-buffer.test.cjs covers the helper against a fake
ByteBuffer, and the Android worker-buzzer test stubs it.

(Rebased onto main by James Babcock: worker changes moved into
active-display.ts and worker-buzzer.ts.)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 22:24:22 -07:00
James Babcock 833f9d97f0 Merge pull request #33 from jmomakesstuff/add-secret-scanning
Add a secret-scanning workflow
2026-09-25 22:15:08 -07:00
James Babcock f8bed915aa Merge pull request #37 from jmomakesstuff/fix-silent-mode-dead-end
Say how to leave silent mode
2026-09-25 22:14:24 -07:00
James Babcock efafcb0f0c Fix unit tests 2026-09-25 22:13:02 -07:00
James Babcock 2f88b108a8 Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-25 22:08:18 -07:00
James Babcock 419eef7cca Merge pull request #39 from jmomakesstuff/fix-test-build-events
Compile events.ts for the tests, and run the Kotlin tests in CI
2026-09-25 22:07:53 -07:00
James Babcock 459560cd72 Fix a frozen menu in the notification modal 2026-09-25 22:06:44 -07:00
James Babcock cc1ae93fde Merge branch 'main' of https://github.com/jimrandomh/faceclaw 2026-09-25 14:55:58 -07:00
James Babcock 6ec050cc39 Compass calibration readiness visible by default 2026-09-25 14:40:11 -07:00
James Babcock 668e454fbb Terminal app: Tap host to launch a shell (alternative to app context menu) 2026-09-25 14:11:20 -07:00
James Babcock b0a98f5942 Add animations to launcher and Files app 2026-09-25 13:25:51 -07:00
James Babcock 7ad9fe10ad Calendar: Fix a timezone issue that could cause all-day events to appear on the preceding day 2026-09-25 11:56:29 -07:00
JMO 9de46878b0 Run the Kotlin tests in CI
npm run test:kotlin covers the shared Kotlin (protocol, flash prompt, OTA, compositor) and was not run by any workflow.
2026-09-25 08:22:25 -07:00
JMO 727a3c0378 Refuse the flash prompt with a reason when the glasses are in silent mode
Ported to the shared Kotlin FlashPromptFlow after the Java was converted. The settings ack the battery read already parses carries silentMode; read it before writing the prompt page, and refuse only on a positive report. An arm that does not answer, or an ack without the field, falls through to the prompt as before.
2026-09-25 08:16:55 -07:00
JMO fde0e8b53c Merge remote-tracking branch 'upstream/main' into pr35-merge
# Conflicts:
#	App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawFirmwareFlasher.java
#	App_Resources/Android/src/main/java/com/faceclaw/app/FaceclawFlashPromptCommunicator.java
2026-09-25 08:13:43 -07:00
JMO 0459f34e5b Drop the silent-mode clearing, keep only the exit instruction
The native session already clears silent mode on touchpad input and re-reads it on every battery poll, so the TypeScript-side clearing duplicated that. The display-target trigger was also wrong: the communicator stays up in silent mode, so it cleared the flag on the next shell render.
2026-09-25 08:11:31 -07:00
JMO a61897813d Merge remote-tracking branch 'upstream/main' into pr37-merge
# Conflicts:
#	app/g2/dashboard-controller.ts
2026-09-25 08:10:57 -07:00
JMO cd32aed849 Compile events.ts for the tests
tests/ios-glanceboard.test.cjs requires .test-build/app/g2/events.js, but events.ts was not in tests/tsconfig.json, so a clean build never produced it.
2026-09-25 08:09:56 -07:00
JMO 6a3f5640d5 Merge remote-tracking branch 'upstream/main' into pr36-merge
# Conflicts:
#	app/g2/dashboard-controller.ts
2026-09-25 08:08:31 -07:00
James Babcock a6291cf937 Fix missing rerender when EvenHub apps finish downloading 2026-09-25 02:02:16 -07:00
James Babcock d6ce2f4194 Fix an issue where brightness updates caused a 1 second flicker 2026-09-25 02:01:50 -07:00
James Babcock 09a59b9821 Fix the EvenHub login form sizing and missing cancel button 2026-09-25 01:56:52 -07:00