Commit Graph

8 Commits

Author SHA1 Message Date
Simon Klee 27cdb18e8e examples: run native build script
Use the package build command when refreshing host artifacts so the examples build follows the supported native build workflow.
2026-08-20 13:29:31 +02:00
Simon Klee c79845fa68 build: require preinstalled Node.js 26.3.0
Require callers and CI jobs to select the supported Node.js version
instead of downloading a private copy on demand.
2026-06-08 12:20:40 +02:00
Simon Klee e9f451edc2 core(ffi): update Node.js 26.3 compatibility
Node.js 26.3 expects FFI signatures to use the current argument and return
field names.
2026-06-08 12:20:40 +02:00
Simon Klee a70f18026a core: port test suite and runtime to Node.js
The test suite was tightly coupled to Bun-specific APIs (bun:test,
Bun.sleep) making it impossible to validate behavior on other
runtimes. A module hook now rewrites bun:test imports for Node's
test runner, and fake clocks replace wall-clock delays so tests
run deterministically everywhere.

Fix FFI type mismatches and boolean normalization that caused
silent failures on non-Bun runtimes. Correct bundled asset
resolution so published packages load without a TypeScript loader.

Reorganize the example menu with themed sections, two-panel focus
management, and proper tree-sitter cleanup to prevent worker leaks.
2026-06-08 12:20:40 +02:00
Simon Klee 7ccd0779d3 examples: add Node.js 26 runtime support
Allow examples to run under Node 26 with --experimental-ffi in addition to
Bun. Replace some Bun-specific APIs with standard Node equivalents, lazy-load
demos that still require Bun (WebGPU, sprites, shaders), and import Rapier via
its ESM subpath.
2026-06-08 12:20:40 +02:00
Filip ebd8c99d50 feat: qr code component (#1021)
---------

Co-authored-by: Simon Klee <hello@simonklee.dk>
Co-authored-by: Sebastian Herrlinger <hasta84@gmail.com>
2026-05-20 15:16:26 +02:00
Simon Klee 63f12eb763 build: add macOS SDK discovery and host builds (#1056)
Replace hardcoded macOS SDK paths with runtime discovery that
checks -Dmacos-sdk, SDKROOT/MACOS_SDK_PATH env vars, system
SDK detection, and the default CommandLineTools path as fallback.

Add host-only build mode so non-macOS developers can build and
test native packages for their own platform without needing to
cross-compile all targets.

Use musl for native executables on Linux to work around Zig
0.15.2 failing on newer glibc startup objects that contain
.sframe relocations. I think this is basically what it did before
the audio libs linked libc.

Move the CI preview workflow to macos-latest so it can build
darwin native packages from source.
2026-05-12 20:16:13 +02:00
Simon Klee aabb8ec6a4 examples: move to @opentui/examples package (#995)
Extract examples, assets, install.sh, and the standalone build script
into a new workspace so they consume the public package surface
(@opentui/core, @opentui/three, @opentui/keymap) instead of reaching
into sibling internals. This makes examples a consumer of
the published API.

Drop the inherited browser export condition that prevented jimp from
resolving its node entry, which broke the standalone build.
2026-04-30 12:51:39 +02:00