Module: Platform Adapters & Self-Hosted State
Chinese Source Guide
Full source-anchored notes are maintained in Chinese at repo-docs/modules/platform-adapters.md.
- Platform Entrypoints:
src/platforms/cloudflare.mjs,edgeone.mjs,esa.mjsdelegate viarunPlatformRequestinsrc/platforms/shared.mjs, injectingPLATFORM_LIMITS(16 MiBCF,1 MiBMakers,4fetches /9000msfirst byte /115000mstotal ESA). - Packaging & Self-Hosted Service:
tools/build-platforms.mjsoutputs sixdist/directories;src/self-hosted/server.mjsexposes/_modelbridge/stateon127.0.0.1:8788by default behind TLS reverse proxies (deploy/self-hosted-state/Caddyfilewithprotocols h1andlb_retries 0).