[1.10.0] - 2026-12-02
Added
- Fixed-Inode Cross-Platform Advisory File Lock Primitive (
include/ttypt/stele.h,npm/include/ttypt/stele.h,src/libstele.c,tests/test_file_lock.c): - Added
stl_file_lock_t,STL_FILE_LOCK_INIT,stl_file_lock_try(),stl_file_lock_acquire(),stl_file_lock_release(), andstl_file_lock_is_held()(plusstele_file_lock_*compatibility aliases) implementing persistent fixed-inode OS advisory locks (flock(2)withO_CREAT | O_RDWR | O_CLOEXECon POSIX,LockFileExon Win32; never unlinked, released instantaneously by the kernel onSIGKILL). - Added C test suite
tests/test_file_lock.ccovering mutual exclusion, fixed inode preservation, diagnostic PID write,stl_file_lock_is_held(), and instantSIGKILLrecovery. - Node-API File Lock Bindings (
npm/native/stele_napi.c,npm/dist/index.js,npm/dist/index.d.ts,npm/tests/stele.test.mjs): - Exported
tryLockFile(lockPath),unlockFile(handle), andisFileLocked(lockPath)backed bystl_file_lock_*with automatic GC finalizer cleanup onnapi_externalhandles.
Fixed
- Native Addon Runtime Library Path (
npm/package.json): - Updated
build:nativeLinux-Wl,-rpathto$ORIGIN/../../../lib:$ORIGIN/../../lib:../libsostele_node.noderesolves its colocatedlibstele.soregardless of working directory.
[1.9.2] - 2026-12-01
Fixed
- OpenBSD
make(1)Shim Fallback (Makefile): - Updated
install-mkshims to fall back to${PREFIX}/share/ttypt/mk(defaulting to/usr/local/share/ttypt/mk) when${.PARSEDIR}is empty (OpenBSDmake(1)), while keeping${.PARSEDIR}(NetBSD/FreeBSDbmake) andMAKEFILE_LIST(GNU Make) fully relocatable. - WASI Libc Availability Probe (
mk/include.mk): - Probed
#include <stdio.h>instead of Clang's built-in freestanding#include <stdint.h>when checking WASI toolchain availability forwasm-lib-target, preventing false positives on hosts with Clang installed withoutwasi-libc(e.g. Arch Linuxpacman).
[1.9.1] - 2026-12-01
Fixed
- Relocatable
ttypt/{include,portable}.mkShims (Makefile): - Updated
install-mkto emit relocatableinclude/ttypt/{include,portable}.mkandshare/mk/ttypt/{include,portable}.mkwrappers derivingMPATHrelative to${.PARSEDIR}(BSD/OpenBSD make) or$(dir $(lastword $(MAKEFILE_LIST)))(GNU Make), fixing relocated prefixes in Homebrew (PREFIX=""), Android NDK sysroots, and iOS XCFramework sysroots.
[1.9.0] - 2026-12-01
Added
- Runtime Capability Handler Hooks & Metadata (
htdocs/stele-client.js,npm/dist/client.js,npm/dist/index.js,npm/dist/index.d.ts): - Added
registerSteleMainHandler(type, fn)andregisterSteleWorkerHandler(type, fn)so downstream capability bridges (axilWebSockets,axil-ttyterminals, etc.) registerstele:*message handlers at runtime instead of being hardcoded inlibstele(922c6d8). - Added generic capability metadata fields (
workerOwned,slotBridge,dispatchExport) for decoupled browser bridge ownership and DOM patch delegation (922c6d8). - Generalized sibling prebuild discovery via
resolveSiblingPrebuildDirs(callerImportMetaUrl, pkgNames)(withresolveAxisPrebuildDirspreserved as a compatibility alias) (922c6d8). - Zero-Fork Portable Make Substrate & Search-Path Shims (
mk/portable-{gnu,bsd}.mk,mk/service.mk,mk/ttypt/{include,portable}.mk,mk/include.mk): - Split OS/toolchain dialect probing into zero-fork
mk/portable-gnu.mkandmk/portable-bsd.mkdispatched frommk/portable.mk, eliminating repeated$(shell)/!=subprocess forks across GNU Make, BSDbmake, and OpenBSDmake(922c6d8,d76f0fb). - Installed
ttypt/include.mkandttypt/portable.mkshims into Make system search paths so downstream repos includettypt/include.mkdirectly without relative path probing (28aa386,f3acd87). - Extracted reusable daemon/service packaging rules into
mk/service.mk(f3acd87). - Added declarative
TESTS=/test-suite/clean-testssupport, portableLDLIBS_DL/LDLIBS_PTHREADlink variables, in-memory object flag derivation, and gated tool probes (NEED_WASI_CC) (3ba2920,3271ac2).
Changed
- Layer-0 Decoupling & Data-Driven WASM Audit (
mk/include.mk,mk/scripts/wasm-audit.sh,mk/scripts/wasm-allowed-exports.lst): - Removed all downstream library/package hardcoding from
libstele: each downstream library now owns its ownWASM_GLOBAL_BASEandwasm-allowed-exports.lst, whilemk/scripts/wasm-audit.shvalidates exports dynamically and skips byte-identical aliases (922c6d8,b1110a7). - Dropped legacy
../mkfallback fromMPATHand added~/.local/share/ttypt/mkuser-space discovery (43f769f). - Set Linux SONAME/rpath in
LDFLAGS-SHARED-Linuxand ensuredwasm-lib-targetbuilds duringmake wasm(84e885a).
Fixed
- OpenBSD + GNU Make Compatibility (
Makefile,mk/{bsd,gnu}-{vars,post}.mk,mk/include.mk): - Fixed default target ordering, bmake multi-lib loop expansion, and OpenBSD
makedialect edge cases acrossmk/(f3acd87,d76f0fb).
[1.8.1] - 2026-11-30
Added
- Standalone Mobile Library Releases (
android-lib+ios-lib): - Enabled Android (
arm64-v8a,x86_64) and iOS (arm64device,sim-arm64,sim-x86_64, plus universallibstele.xcframework.zip) static sysroot packaging and publishing alongside all 7 native OS formats and multi-platform npm (https://tty.pt/npm/+ GitHub Releases).
Fixed
- iOS SDK Compatibility (
src/stele_proc.c): - Guarded POSIX
fork()/execvp()subprocess spawning under#if defined(__APPLE__) && TARGET_OS_IPHONE, returning-1witherrno = ENOSYSso iOS static archives and XCFrameworks compile cleanly without referencing iOS-prohibited symbols.
[1.8.0] - 2026-11-30
Fixed
- Portable
mk/Build System Fixes for OpenBSD, macOS & Windows (mk/include.mk,mk/portable.mk,Makefile): - Replaced
printfwith POSIXshbuiltinechoinmk/portable.mkandmk/include.mkfor minimal OpenBSD chroots, replaced bmake-only@l@/@b@modifiers with BSD/OpenBSD-compatible expansion alongside GNU$(foreach ...), passed-Wl,-install_name,$@on Darwin shared links so atomic staging never embeds.tmpin Mach-OLC_ID_DYLIB, and guardeddocs/docs-binrecipes oncommand -v doxygento avoid MSYS2 deadlocks on Windows (8d07dad). - Staged atomic link outputs in
${@D}/.tmp/${@F}so Windows PE DLLs keep their real basename inIMAGE_EXPORT_DIRECTORY.Name, lazily created${DESTDIR}${PREFIX}/share/${share-dir}ininstall-share-flatandinstall-wasm-libso empty share directories do not break winget zip staging, and replacedchmod/dirname/headin install rules withinstall -m 644, POSIXshparameter expansion, andsedquit for minimal OpenBSD chroots (37c83bb).
Added
- Integrated Portable Build System & Substrate Distribution (
mk/,Makefile,stele.pc,Doxyfile,npm/package.json): - Absorbed
tty-pt/mk(portable.mk,include.mk,cx.mk,iso.mk,glfw.mk,wasm_alloc_shim.c,Doxyfile,Doxyfile-bin,scripts/wasm-audit.sh,scripts/wasm-allowed-exports.lst) directly intolibstele/mk/with self-hostedinclude mk/include.mk(4b2cc7a). - Installed
share/ttypt/mk/*, WASI-isolated headers (share/ttypt/mk/include/ttypt/*.hfrom canonicalinclude/),lib/pkgconfig/stele.pc(exposingdatadir,mk_dir,include_mk,portable_mk,wasm_includedir), and generated backward-compatiblelib/pkgconfig/ttypt-mk.pc(4b2cc7a). - Added
npm-stage/prepackhook to shipmk/andstele.pcinside@tty-pt/stele(4b2cc7a). - Made
mk/include.mkself-locating across GNU Make, BSDbmake, and OpenBSDmake, guarded Homebrew empty-PREFIX.pcinstallation, and piped${MPATH}/Doxyfileintodoxygen -so downstreammake docsworks without../mk/Doxyfile(4b2cc7a). - Generic Multi-Core Worker Pool (
include/ttypt/stl_job.h,src/stele_job.c,htdocs/stele-client.js,tests/test_stl_job.c): - Added
stl_jobmulti-core worker pool backed by POSIXpthreadsnatively and dedicated Web Workers (STELE_JOB_WORKER_SRC) under WebAssembly (6a80fec). - Canonical Zero-Alloc JSON Tokenizer & Single-Owner JSON DOM (
include/ttypt/iso_json.h,include/ttypt/stl_json.h,src/stl_json.c,tests/test_iso_json.c,tests/test_stl_json.c): - Added canonical
<ttypt/iso_json.h>zero-alloc JSON tokenizer withhtml_safemode,iso_json_raw,iso_json_escape, BMP\uXXXXand UTF-16 surrogate pair unescape (4a762b6,18464e1,31c4295,60374eb). - Added
<ttypt/stl_json.h>single-owner JSON DOM, RFC 8259 parser, and growing writer (8eea471). - Portable Local IPC, Subprocess, Wake, Socket & Path Shims (
include/ttypt/stele.h,npm/include/ttypt/stele.h,src/stele_ipc.c,src/stele_proc.c,src/stele_port_test.c): - Added cross-platform pollable wake primitive (
stl_wake_t,stl_wake_init(),stl_wake_close(),stl_wake_fd(),stl_wake_signal(),stl_wake_drain()โ pipe on POSIX, loopback socket pair on Win32) (185a839). - Added portable local IPC listener/client API (
stl_ipc_listener_t,stl_ipc_listen(),stl_ipc_accept(),stl_ipc_close_listener(),stl_ipc_connect()) supporting named local endpoints,unix:/path, andtcp://host:port(185a839). - Added cross-platform subprocess spawning and lifecycle API (
stl_proc_t,STL_SPAWN_STDIN/STDOUT/STDERR/MERGE_STDERR/DETACHED/NEW_GROUP,stl_spawn(),stl_spawn_detached(),stl_proc_wait(),stl_proc_kill(),stl_proc_close()) (185a839). - Added socket timeout and user/path/shared-library helpers (
STL_INVALID_SOCKET,stl_sock_set_timeout(),stl_username(),stl_home_dir(),stl_temp_dir(),stl_config_dir(),stl_data_dir(),stl_exe_dir(),stl_so_ext(),stl_mkdir_p()) along withstele_*aliases (185a839). - Unified Kernel Instance Reuse & Host Workqueue Defaults (
htdocs/stele-client.js,npm/dist/client.js,npm/dist/index.js): - Updated
SteleWasmClientto preferdata-wasm-bundleand reuse a single unified kernel WASM instance across slots (588f1bd). - Added default
stl_host_cpu_count/stele_host_cpu_countandstl_host_spawn_worker/stele_host_spawn_workerhost imports togetDefaultImports()(57d7373). - Cross-Platform Lock-Free Workqueue & Worker Pool (
include/ttypt/wq.h,src/stele_wq.c,src/stele_port_test.c,wasm-allowed-imports.lst): - Added
<ttypt/wq.h>providing a zero-allocation-per-job workqueue (stl_wq_t,stl_wq_task_t) backed by POSIXpthreadworker pools on Linux/macOS/BSD, Win32 threads +SRWLOCK/CONDITION_VARIABLEon Windows, and cooperative/worker-assisted queues (stl_wq_step,stl_wq_worker_entry) on WebAssembly (4cbeb1d). - Exported
stl_cpu_count(),stl_wq_thread_count(),stl_wq_create(),stl_wq_submit(),stl_wq_step(),stl_wq_wait(),stl_wq_drain(),stl_wq_destroy(),stl_wq_worker_entry(), inline task helpers (stl_wq_task_init,stl_wq_done,stl_wq_busy),stele_wq_*/wq_*aliases, and portableSTL_THREAD_LOCALstorage macro (4cbeb1d,5d4d566).
Changed
- Browser WASI & Encoding Performance (
htdocs/stele-client.js): - Implemented WASI
clock_time_get, reused singletonTextDecoder/TextEncoderinstances, and added a worker canvas generation counter (1d78d11). - Standardized Package Metadata (
npm/package.json,npm/README.md): - Standardized author (
Paulo Quirino <quirinpa@gmail.com>),BSD-2-Clauselicense, and npm README (b795995).
Fixed
- Browser Client Canvas & Capability Bridge Fixes (
htdocs/stele-client.js,npm/dist/client.js): - Triggered
wasm_canvas_renderand flushed canvases onstele:canvas_attach(bcca881). - Preserved WebGL
OffscreenCanvasresolution on container resize (76d035a). - Skipped duplicate
budcapability bridge initialization and deferredbridge.mountuntil after workermount_slot(7e1f455). - Skipped loading redundant
*-workercapabilities on the main browser thread when a primary rendering bridge (webglorlamina) is already declared on the slot (4cbeb1d).
[1.7.1] - 2026-11-14
Fixed
- Global Symbol Visibility (
RTLD_GLOBAL) & Hoisted Axis Prebuild Validation (npm/dist/index.js,npm/package.json): - Updated
loadNativeAddon()to load.nodeaddons viaprocess.dlopen(..., RTLD_NOW | RTLD_GLOBAL)before falling back torequire(), ensuringcorm_*andstl_*symbols are globally visible whenlibcormdynamically opens axis shared libraries. - Updated
resolveAxisPrebuildDirs()to verify thatlib<axis>.{so,dylib,dll}exists in candidate directories and added hoisted../../<axis>/prebuilds/<key>lookup. - Included
"prebuilds"innpm/package.json"files".
[1.7.0] - 2026-11-14
Added
- Musl Linux Detection & Prebuild Axis Discovery (
npm/dist/index.js,npm/dist/index.d.ts): - Added
isMuslLinux()andgetPlatformPrebuildKeys()to detect Alpine/musl hosts (linux-<arch>-muslwith fallback tolinux-<arch>) during native Node-API addon loading. - Added
resolveAxisPrebuildDirs()to automatically discover sibling@tty-pt/{lemma,sepal,joint,islet}shared library directories acrossprebuilds/<platform-arch>,build/Release, and locallibpaths.
[1.6.2] - 2026-11-13
Packaging
- Built the
@tty-pt/stelenpm tarball once in CI with a self-contained native Node-API addon per platform (prebuilds/<os>-<cpu>/) alongsidestele.wasmand C headers (include/ttypt/), verified across Linux, macOS, and Windows before publishing.
[1.6.1] - 2026-11-13
Changed
- Unbounded 4 GB Shared Linear Memory & 2 MB Global Base (
Makefile,stele.wasm,client.js,npm/dist/index.js): - Removed the 256 MB (
max=4096pages) ceiling onWebAssembly.Memoryso linear memory starts at 16 MB (initial=256) and expands on demand up to the fullwasm324 GB limit for in-browser LLM weights, KV caches, and recall indices. - Placed
stele.wasmat--global-base=2097152(2 MB), reserving[0 .. 2 MB)for downstream reactor static data and stack bands whilestele'sdlmallocheap grows upward from~2.07 MBto 4 GB without colliding with guest modules. - Full Single-Allocator Exports (
calloc&realloc): - Exported
callocandreallocalongsidemallocandfreefromstele.wasmandWasmSubstrate, injecting all four intoenvinloadWasmModule/loadWasmModuleAsyncso downstream C modules linked with--wrapshare a single heap.
[1.6.0] - 2026-11-12
Added
- In-WASM & Cross-Slot Event Bus (
src/stele_event.c,<ttypt/stele_wasm.h>): - Added
stl_event_on(),stl_event_off(),stl_event_emit(), andstl_on_event()(withstele_*aliases) tolibstele.soandstele.wasmfor decoupled in-instance and cross-slot messaging. - Added
stl_host_event_emithost import andSteleWasmClientevent bus methods (on,off,emit) bridging WASM slots and JavaScript listeners. - Zero-Copy Binary State Hydration (
src/stele_wasm_kernel.c,<ttypt/stele_wasm.h>,client.js): - Added
init_binhook tostl_module_ops_t,STL_WASM_MODULE_BINregistration macro, andstl_kernel_mount_bin()/stele_kernel_mount_bin()kernel exports. - Added binary state extraction in
SteleWasmClientsupportingapplication/octet-stream,data-encoding="base64",data-state-bin, andmeta[name="state-src"]/meta[name="page-state-src"]preloads. - On-Demand Lazy WASM Slot Mounting (
client.js,stele-client.js): - Added
lazyMountSlot()and declarative[data-lazy-module]/[data-lazy-trigger]hydration supportinginteraction,visible(IntersectionObserver), andmanualtriggers. - Optimistic Form Mutations & Automatic Rollback (
client.js,stele-client.js): - Added GET filter form delegation and POST optimistic mutation handling (
stl_optimistic_update/stl_optimistic_rollback) withstl:mutate,stl:saved, andstl:rollbacklifecycle events. - Zero-Reload SPA Navigation & Batched Capability Remounting (
client.js,stele-client.js): - Updated
stl_host_set_locationto usehistory.pushState/replaceStatefor same-origin route transitions while preserving warm WASM memory. - Added active capability bridge synchronization (
window.__active_bridges) and microtask-batched remounting (_scheduleBatchRemount) across DOM patch replay boundaries and slot updates. - Exported
SlotBridgeandSlotBridgeFactoryTypeScript interfaces and./clientpackage subpath in@tty-pt/stele.
Changed
- Strict Substrate Encapsulation & Packaging Parity:
- Standardized capability script resolution in
stele-client.jsonto the unified/<thing>-cap.jsconvention (/<cap>-cap.js,/<prefix>-cap.js) withdata-capability-*/capabilityUrlsoverrides, removing hardcoded downstream library maps. - Removed project-specific addon path references from
loadNativeAddon()and restorednpm/native/stele_napi.cfor clean Node-API addon compilation. - Synchronized
include/ttypt/*.hwithnpm/include/ttypt/*.handhtdocs/stele-client.jswithnpm/dist/client.jsduringmake npm-build. - Added
wasm-allowed-imports.lstdeclaring sanctionedstele.*andclipboard.*host imports.
[1.5.2] - 2026-11-03
- Universal System Substrate & Single Shared Allocator:
@tty-pt/steleis the sole owner and exporter ofmallocandfreeacross the shared linear memory space.loadWasmModule()injectsenv.malloc,env.free, andenv.memoryinto all downstream WebAssembly modules.- Standardized
loadNativeAddonfor symmetrical native Node-API and WebAssembly dual dispatch across Node and browser runtimes. - Configured 16MB initial / 256MB max memory boundaries in
stele.wasmto accommodate multi-module guest allocations. - Added detached-buffer immune typed array views (
substrate.u8(),substrate.u32(),substrate.f32(),substrate.i32()) and RAII string marshalling helpers (withString,readString). - Parallel Streaming Hydration with Fallback (
client.js,stele-client.js): - Implemented
instantiateWasmStreamingWithFallback()prioritizingWebAssembly.instantiateStreaming(fetch(...))with automatic fallback tofetch().then(r => r.arrayBuffer()).then(b => WebAssembly.instantiate(b))on error or non-application/wasmMIME types. - Parallelized slot mounting and substrate kernel boot via
Promise.all. - Domain-Agnostic WebAssembly Substrate & Isomorphic Ergonomics (
<ttypt/iso.h>,<ttypt/stele_wasm.h>): - Decoupled
libstelecompletely from external UI libraries; standardized generic slot operations (stl_module_ops_t,stl_kernel_*). - Canonized
ISO_EXPORT,ISO_EXPORT_AS, andISO_IMPORTin<ttypt/iso.h>as the canonical isomorphic export contract across native shared objects (SSR) and WebAssembly reactors (browser). - Centralized WASM compilation in
external/mk/include.mk(make wasm) with post-linkwasm-opt -O3optimization.
[1.4.0]
- Universal Isomorphic C Contract (
<ttypt/iso.h>): - Introduced
<ttypt/iso.h>providing platform-independentISO_EXPORT,ISO_EXPORT_AS, andISO_IMPORTmacros. - Symmetrical compilation across native shared libraries (
.so/.dylib) with default symbol visibility and WebAssembly reactor bundles (.wasm) with directexport_nameattributes. - Zero preprocessor conditionals required in consuming application and component source code.
[1.3.0]
- Consolidated socket & portability shims: full cross-platform shims for
sockets (stl_sock_*), polling (stl_poll), advisory locking (stl_flock), filesystem (stl_realpath, stl_mkdir), file I/O (stl_ftruncate, stl_dprintf), timing (stl_now_ms, stl_sleep_ms), process management (stl_pid_alive, stl_self_rss_bytes), and signals (stl_stop_on_signal, stl_ignore_pipe).
- Windows / MinGW link fixes: added
LDLIBS-libstele-Windows := -lws2_32 -lpsapi
to support Win32 socket runtime (ws2_32) and process RSS queries (psapi).
- Added comprehensive unit tests in
src/stele_port_test.c.