Clash Blueprint Engine API
    Preparing search index...

    Type Alias EngineError

    EngineError:
        | { definitionId: string; kind: "UNKNOWN_DEFINITION" }
        | { bounds: Rect; kind: "OUT_OF_BOUNDS" }
        | { cells: ReadonlyArray<GridVec>; kind: "OVERLAP" }
        | { id: string; kind: "NOT_FOUND" }
        | { id: string; kind: "DUPLICATE_ID" }

    Recoverable domain failures returned via Result (never thrown). Every mutation on the ./village.ts aggregate reports conflicts through one of these so callers — commands, UI, importers — handle them explicitly.