Recompile all 26 .sxbc with define-library wrappers + fix eval/JIT

All 26 browser modules recompiled with define-library/import forms.
Compilation works without vm-compile-adapter (JIT pre-compilation
hangs with library wrappers in some JIT paths — skipped for now,
CEK compilation is ~34s total).

Key fixes:
- eval command: import-aware loop that handles define-library/import
  locally without touching the Python bridge pipe (avoids deadlock)
- compile-modules.js: skip vm-compile-adapter, bump timeout

2621/2621 OCaml tests passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 00:08:00 +00:00
parent ac772ac357
commit 7b4c918773
48 changed files with 8884 additions and 5899 deletions

View File

@@ -1,3 +1,68 @@
(define-library (web orchestration)
(export
_preload-cache
dispatch-trigger-events
execute-request
do-fetch
handle-fetch-success
flush-collected-styles
handle-sx-response
handle-html-response
handle-retry
bind-triggers
bind-event
post-swap
process-settle-hooks
activate-scripts
process-oob-swaps
hoist-head-elements
process-boosted
boost-descendants
_page-data-cache
_page-data-cache-ttl
page-data-cache-key
page-data-cache-get
page-data-cache-set
invalidate-page-cache
invalidate-all-page-cache
update-page-cache
process-cache-directives
_optimistic-snapshots
optimistic-cache-update
optimistic-cache-revert
optimistic-cache-confirm
submit-mutation
_is-online
_offline-queue
offline-is-online?
offline-set-online!
offline-queue-mutation
offline-sync
offline-pending-count
offline-aware-mutation
current-page-layout
swap-rendered-content
resolve-route-target
deps-satisfied?
try-client-route
bind-client-route-link
process-sse
bind-sse
bind-sse-swap
bind-inline-handlers
bind-preload-for
do-preload
VERB_SELECTOR
process-elements
process-one
process-emit-elements
save-scroll-position
handle-popstate
engine-init)
(begin
(define _preload-cache (dict))
(define
@@ -1566,3 +1631,9 @@
(fn
()
(do (sx-process-scripts nil) (sx-hydrate nil) (process-elements nil))))
)) ;; end define-library
;; Re-export to global namespace for backward compatibility
(import (web orchestration))