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:
@@ -1,3 +1,42 @@
|
||||
|
||||
|
||||
(define-library (web engine)
|
||||
(export
|
||||
ENGINE_VERBS
|
||||
DEFAULT_SWAP
|
||||
parse-time
|
||||
parse-trigger-spec
|
||||
default-trigger
|
||||
get-verb-info
|
||||
build-request-headers
|
||||
process-response-headers
|
||||
parse-swap-spec
|
||||
parse-retry-spec
|
||||
next-retry-ms
|
||||
filter-params
|
||||
resolve-target
|
||||
apply-optimistic
|
||||
revert-optimistic
|
||||
find-oob-swaps
|
||||
morph-node
|
||||
sync-attrs
|
||||
morph-children
|
||||
morph-island-children
|
||||
morph-marsh
|
||||
process-signal-updates
|
||||
swap-dom-nodes
|
||||
insert-remaining-siblings
|
||||
swap-html-string
|
||||
handle-history
|
||||
PRELOAD_TTL
|
||||
preload-cache-get
|
||||
preload-cache-set
|
||||
classify-trigger
|
||||
should-boost-link?
|
||||
should-boost-form?
|
||||
parse-sse-swap)
|
||||
(begin
|
||||
|
||||
(define ENGINE_VERBS (list "get" "post" "put" "delete" "patch"))
|
||||
|
||||
(define DEFAULT_SWAP "outerHTML")
|
||||
@@ -806,3 +845,9 @@
|
||||
parse-sse-swap
|
||||
:effects (io)
|
||||
(fn (el) (or (dom-get-attr el "sx-sse-swap") "message")))
|
||||
|
||||
|
||||
)) ;; end define-library
|
||||
|
||||
;; Re-export to global namespace for backward compatibility
|
||||
(import (web engine))
|
||||
|
||||
Reference in New Issue
Block a user