Commit Graph

25 Commits

Author SHA1 Message Date
8585d7e87f play with LEDs 2026-04-18 19:39:11 -07:00
f434137f11 get it working on linux 2026-04-16 22:17:58 -07:00
e680c10941 Bump version to 0.0.18 2026-03-12 15:53:37 -07:00
01d72a31e6 Fix bundled CLI to explicitly call Bun.serve()
The bundle doesn't use export default, so the server
needs to be started explicitly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 15:53:14 -07:00
839f4fa4fd Bump version to 0.0.17 2026-03-12 15:49:35 -07:00
b03c997508 Bump version to 0.0.16 2026-03-12 15:49:05 -07:00
3fe98654f2 Bump version to 0.0.15 2026-03-12 15:49:04 -07:00
3dcf90e2b6 Bump version to 0.0.14 2026-03-12 15:49:01 -07:00
087e53daf4 Bump version to 0.0.13 2026-03-12 15:48:59 -07:00
f401bf3fdd Bump version to 0.0.12 2026-03-12 15:48:58 -07:00
fc5fa73ad5 Bump version to 0.0.11 2026-03-12 15:48:56 -07:00
156d435588 Show version number at startup
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 15:39:01 -07:00
d397b32ab5 Bump version to 0.0.9
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:44:36 -07:00
4ce9471a8e Auto-generate self-signed TLS certs on startup
getUserMedia requires HTTPS, so generate certs if missing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:44:36 -07:00
3dc377f9e6 Bump version to 0.0.8
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:39:31 -07:00
4b8ca04f25 Make TLS optional when certs don't exist
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:39:21 -07:00
789825614e Bump version to 0.0.7
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:35:17 -07:00
7cce1f6bbd Merge probablycorey/refactor-server-split
Resolve conflicts: accept server split, apply hint reorder
to terminal.ts, add JSX pragma to phone.tsx

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:34:28 -07:00
11366d62b2 Add bunx support for easy sharing
- Add bin entry and CLI shim for `bunx baudy`
- Add JSX pragmas so hono/jsx resolves without tsconfig
- Add bunfig.toml, .npmignore for publishing
- Reorder error hints to prioritize headphone disconnect

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:33:34 -07:00
cfdffa685f Document response timing, sample rate, and secure context gotchas
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 13:06:53 -07:00
37dd74c30d Refactor server monolith into focused modules with sound-only communication
Split 783-line src/server/index.tsx into:
- src/server/audio.ts: ggwave init, playback, mic listener
- src/server/game.ts: pure game logic, returns GuessResult
- src/server/terminal.ts: console output, startup, handshake routing
- src/pages/phone.tsx: Forge components + serialized client JS

Phone page is fully standalone after load — all communication via ggwave
audio (HELLO/HEY BUDDY handshake, guess responses). Added sendAndWait()
for clean half-duplex request/response flow with configurable timeout.
Server waits 500ms before replying to give phone time to switch to listening.
Added TLS support for getUserMedia on mobile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 12:57:18 -07:00
5ac02af171 Add ggwave guessing game demo
Phone UI sends number guesses via ggwave audio chirps through the air,
server decodes from mic, responds with Higher/Lower via SSE + audio.
Includes loopback audio test on startup, QR code for phone, stepped
terminal UX, chunked victory message, and timeout error handling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 09:57:48 -07:00
9c20ce7d9c Add README with project context and link from CLAUDE.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 19:16:56 -07:00
8e3179f7d3 Add ggwave audio calculator POC and documentation
Includes a working Bun server and iOS Safari calculator UI that uses data-over-sound
encoding/decoding via the ggwave library. Phone encodes expressions as audible chirps,
Mac server decodes via microphone, evaluates, and sends result back via SSE. Tested
reliably with ambient noise using Studio Display microphone.

Includes gotchas documentation covering iOS audio, macOS mic permissions, WASM heap,
and sample rate requirements.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-11 19:08:51 -07:00
18b08aeba2 init 2026-03-11 14:06:19 -07:00