api/ contains server/API application runtime implementation for the browser-visible Local API, seeded product data, provider stubs, storage adapters, database adapters, and support services used by repository validation.
It is intentionally not dev/tests/dev-runtime:
api/serves runtime behavior that browser pages and local API routes can exercise through the API/service contract during development and targeted validation.dev/tests/dev-runtimecontains test files that validate that behavior.- Moving the implementation into
dev/tests/dev-runtimewould make development pages depend on test-only code and would blur the Browser -> Server API -> Data Source boundary.
Deployment boundary:
- DEV validation may execute
api/through local server commands. - Browser pages, Theme V2 scripts, toolbox pages, and
src/engineruntime code must use declared API/service contracts instead of importingapi/directly. - If a dev-only adapter is needed by a browser page, expose it through the Local API contract while keeping the implementation under
api/. - Developer-only local bootstrap/orchestration remains outside
api/until the scopeddev/local-runtime/migration PR.