sx-tools: WASM kernel updates, TW/CSSX rework, content refresh, new debugging tools

Build tooling: updated OCaml bootstrapper, compile-modules, bundle.sh, sx-build-all.
WASM browser: rebuilt sx_browser.bc.js/wasm, sx-platform-2.js, .sxbc bytecode files.
CSSX/Tailwind: reworked cssx.sx templates and tw-layout, added tw-type support.
Content: refreshed essays, plans, geography, reactive islands, docs, demos, handlers.
New tools: bisect_sxbc.sh, test-spa.js, render-trace.sx, morph playwright spec.
Tests: added test-match.sx, test-examples.sx, updated test-tw.sx and web tests.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-02 11:31:57 +00:00
parent 9ed1100ef6
commit d40a9c6796
178 changed files with 13591 additions and 9110 deletions

View File

@@ -106,12 +106,12 @@
(run-tool)
(div :class "space-y-3"
(div :class "space-y-2"
(label :class "text-sm font-medium text-stone-700" "Source")
(textarea :class "w-full font-mono text-xs bg-stone-50 border border-stone-300 rounded p-2"
(div (~tw :tokens "space-y-3")
(div (~tw :tokens "space-y-2")
(label (~tw :tokens "text-sm font-medium text-stone-700") "Source")
(textarea (~tw :tokens "w-full font-mono text-xs bg-stone-50 border border-stone-300 rounded p-2")
:rows 6 :bind source))
(div :class "flex gap-2 flex-wrap items-center"
(div (~tw :tokens "flex gap-2 flex-wrap items-center")
(for-each (fn (t)
(button
:class (str "px-3 py-1 text-xs rounded border transition "
@@ -121,8 +121,8 @@
:on-click (fn (e) (reset! tool t) (run-tool))
t))
(list "summarise" "read-tree" "find-all" "validate" "get-context" "serialize" "hypersx"))
(button :class "px-3 py-1 text-xs rounded bg-stone-700 text-white"
(button (~tw :tokens "px-3 py-1 text-xs rounded bg-stone-700 text-white")
:on-click (fn (e) (run-tool))
"Run"))
(pre :class "font-mono text-xs text-stone-700 bg-stone-50 border border-stone-200 rounded p-3 whitespace-pre-wrap overflow-x-auto max-h-64 overflow-y-auto"
(pre (~tw :tokens "font-mono text-xs text-stone-700 bg-stone-50 border border-stone-200 rounded p-3 whitespace-pre-wrap overflow-x-auto max-h-64 overflow-y-auto")
(deref output))))))