Replace the monolithic compose_*/configure author surface with file-level
web|endpoint artifacts, split ext/{web,data,security,net}, and lock
no-degrade rules so the model cannot regress to God-object APIs.
Co-authored-by: Cursor <cursoragent@cursor.com>
1.4 KiB
1.4 KiB
title: ext/web/client description: Browser Runtime helpers (WASM bridge). Prefer lib/browser for effect tables (ADR 0007). import cap:ext/web/_capability.mq.md import table:lib/table.mq.md
embed
+ `bridge`="/static/marqdo-bridge.js"
+ `wasm`="/static/marqdo_wasm.wasm"
+ `source`=""
+ `boot`=True
HTML snippet that loads the official browser Marqdo bridge (route C/D). With boot and non-empty source, auto-mounts. No author JS.
cap.load
bootsource!= "" "<script type="module" src="" + bridge + "" data-mq-wasm="" + wasm + "" data-mq-source-url="" + source + ""></script>"-
-
text_patch
+ `sel`
+ `text`
set_text effects map. Prefer lib/browser in client .mq.md.
m = > table.put in=None at=sel value=text
> table.put in=None at="set_text" value=m
dom_patch
+ `sel`
+ `html`=""
+ `attrs`=None
+ `remove`=False
spec = > table.put in=None at="html" value=html
attrsspec= > table.put in=specat="attrs" value=attrs-
_ = 1
removespec= > table.put in=specat="remove" value=True-
_ = 1
m = > table.put in=None at=sel value=spec
> table.put in=None at="dom" value=m