Files
marqdo/tests/ext/isolated-execute-site/serve.mq.md
cflmyandCursor 5c6c612edd fix(test): coerce MARQDO_SITE_PORT for MR-01 isolated execute
Env port strings must be json.parsed to int; pin main site to 18220 so
inherited MARQDO_SITE_PORT cannot steal the fixture bind.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-27 16:05:24 +08:00

889 B

markup, title, description, import
markup title description import
occlusion isolated execute MR-01 site Dual-stream execute + short models for ADR 0009 gold sample.
web site sys json
ext/web/web.mq.md ./site.mq.md lib/sys.mq.md lib/json.mq.md

main

port_s = > sys.env_get name="MARQDO_SITE_PORT" port = 18220

  1. port_s port = > json.parse text=port_s

_ = 1

pg = > web.page title="isolated-execute" app = > web.app page=pg host="127.0.0.1" port=port app = > web.route app=app path="/v1/chat/completions" method="POST" fn="site.chat" request="json" response="sse-live" class="execute" app = > web.route app=app path="/v1/models" method="GET" fn="site.models" request="query" response="json" class="short" app = > web.route app=app path="/v1/ping" method="GET" fn="site.ping" request="query" response="json" class="control"

app.listen