@mmohq/layerkit-engine
v0.2.1
Published
**Pure document + layout. zod and nothing else.**
Readme
@layerkit/engine
Pure document + layout. zod and nothing else.
Arrived by git mv packages/pod-engine packages/engine (EXTRACTION-MAP §1), so
git log --follow packages/engine/src/layout.ts still reaches every commit this
code had in SaigonSt. 22 source files, 20 test suites, zero behavioural change.
The one dependency that was severed
pod-engine used to import from @chuaboc/shared. That package is not here and
must never be, so §1's table was applied:
| What | Where it went | Move or copy |
| --- | --- | --- |
| The face primitives — FACE_*, faceCropSchema, faceCropsEqual, roundFaceCrop, faceCacheKey, faceEffectivePx, the pipeline version | src/face-primitives.ts, re-exported from src/face.ts under the same public names | move — zero non-POD importers |
| localeTextSchema / LocaleTextDto / hexColorSchema | src/locale.ts | copy — they live in commerce's schemas/blocks.ts with non-POD consumers, so they cannot move. test/shared-drift.test.ts reads the SaigonSt originals and fails if the two definitions diverge |
The face job contract (POD_FACE_JOB_NAME, PodFaceJobData,
POD_FACE_CONFIG_DEFAULTS, POD_FACE_ERROR_CODES, the request/response/row
shapes) deliberately did NOT come here. It belongs to @layerkit/factory
(EXTRACTION-MAP §2) and stays in packages/shared/src/schemas/ until that
package exists.
The purity rule (SPEC §2.2)
No sharp, no canvaskit-wasm, no React, no DOM, no fs, no network.
sideEffects: false. test/package-boundary.test.ts machine-enforces it: the
only bare specifier src/ may name is zod, and node builtins are tolerated in
test/ alone.
