packages/v2/core/src/ARCHITECTURE.md
Declaration: If the folder I belong to changes, please update me, especially core domain concepts. Add examples or example file paths for abstract concepts when needed.
index.ts.commands/ - Application commands and handlers (write side).queries/ - Application queries and handlers (read side).application/ - Application services that orchestrate domain behavior and ports.domain/ - Domain model (aggregates, value objects, specs, events).ports/ - Ports plus default/memory implementations and mappers.ICommandBus.application/services/ and is reused by handlers.create/update/delete
method. Application flows may only consume the returned aggregate and its domain events.ARCHITECTURE.md - Role: folder architecture note; Purpose: navigation and boundaries.index.ts - Role: package entry export; Purpose: public exports for domain/commands/queries/ports.index.spec.ts - Role: export regression test; Purpose: assert key exports exist.