Files
fivenode_go/hbrtl_ext/nodebridge
CharlesKWON 1e80c89414 feat(rtl): nodebridge object dispatch — oMod:method() like Node/TFNModule
FN_REQUIRE now returns a module OBJECT; PRG calls npm methods directly
(oQR:toString(args), oQR:__end__()) exactly like Node and the C++ fivenode
TFNModule. At require, the bridge enumerates the module's method names and
registers each as a class method whose closure proxies the call to the
persistent node sidecar (Promise auto-awaited). Native PRG args → JS;
results string/number/boolean/buffer/json. Pure Go glue, no C/CGO.
Replaces the FN_CALL(handle,...) functional API.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-15 21:31:29 +09:00
..