Renames project content from Lumina to Nemera

This commit is contained in:
BinaryAlley committed 2026-11-27 15:37:44 +02:00
1 parent 0f659a4877
commit c583c9327c
6127 files changed
+41884 -41884

No files matched your search

+4 -4
View File
@@ -13,7 +13,7 @@ These rules apply to every agent, on every task, in this repository. For C# code
- Request flow: FastEndpoints endpoint -> mapping -> validator -> handler -> domain -> repository/UoW -> EF Core SQLite. Domain events fire via `EventualConsistencyMiddleware` (excluded for the `/scanProgressHub` SignalR hub).
- Handlers and domain event handlers are resolved directly from the DI container; commands/queries/validators/handlers are registered by assembly scan in `ApplicationLayerServices`.
- API contracts should be as much as possible records. Database entities should have as many properties as `required` and `init`. Domain properties should all be `private set`.
- DataAccess persistence: repositories persist aggregate graphs only through the closed toolkit in `Lumina.DataAccess\Common\Persistence` (`EditableValuesCopier`, `CollectionReconciler`, `SharedReferenceResolver`). Those primitives must stay generic and entity-agnostic. Never add a per-entity helper to that folder, and never hand-roll an equivalent in a repository: generalize the primitive (generics plus a marker interface such as `ISharedReferenceEntity`) or keep the logic in the repository.
- DataAccess persistence: repositories persist aggregate graphs only through the closed toolkit in `Nemera.DataAccess\Common\Persistence` (`EditableValuesCopier`, `CollectionReconciler`, `SharedReferenceResolver`). Those primitives must stay generic and entity-agnostic. Never add a per-entity helper to that folder, and never hand-roll an equivalent in a repository: generalize the primitive (generics plus a marker interface such as `ISharedReferenceEntity`) or keep the logic in the repository.
- Presentation layer: immediately decouples API contracts with manual mapping: ToQuery or ToCommand. FastEndpoints adds authentication by default, only `AllowAnonymous` is free access. Errors are always `ProblemDetails`.
- Application layer: mapping classes are extension methods in `Common\Mapping`, and each mapping file should *only* extend the type the name of the mapping file uses, ex: `UserEntityMapping` contains *only* `UserEntity` extension methods to map to other types. The used names are: `ToQuery`, `ToCommand`, `ToRepositoryEntity`, `ToRequest`, `ToResponse`, `ToDto`, `ToDomainEntity`, `ToDomainValueObject`. Any deviation needed is confirmed with the user. Validators validate application concerns: null or empty strings, negative numbers, correct emails, etc, they do not do async work and they do not do business rules validation. They are the first thing invoked in handlers. The next check should be for authentication/authorization. Validation error ownership is decided by the domain-expert test, not by the shape of the check: when a domain expert of that bounded context would state the rule in their own words, it is a business rule and its error belongs in `Domain/Common/Errors`; otherwise its error belongs in `Application/Common/Errors`.
@@ -22,12 +22,12 @@ These rules apply to every agent, on every task, in this repository. For C# code
## Documentation
- `docs/technical/requests` mirrors the folder tree of `src/Lumina.Presentation.Api/Core/Endpoints` down to the operation groups, in kebab-case, collapsing the per-operation leaf folders, and holds one `<Verb><Entity>.http` file per endpoint.
- `docs/technical/requests` mirrors the folder tree of `src/Nemera.Presentation.Api/Core/Endpoints` down to the operation groups, in kebab-case, collapsing the per-operation leaf folders, and holds one `<Verb><Entity>.http` file per endpoint.
- `docs/technical/api` holds one `Api.<Resource>.md` file per `ApiRoutes.<Resource>` class, grouped in the endpoint sub-area folder rather than in a folder per resource, so a sub-area folder holds all the API docs of that sub-area.
- ADRs under `docs/technical/architecture/architecture-knowledge-management/architecture-decision-log` are append only. An existing ADR is never rewritten: its headings, paragraphs, tables and amendments stay exactly as they are. A new decision is recorded by appending a `## Amendment: <Title> (<date>)` section at the very end of the relevant ADR, after every existing amendment and in chronological order. Amendments are never written in the middle of an ADR, and an amendment is never removed, merged, relocated or reordered. A genuinely new decision gets a new ADR file.
- Every ADR uses ADR-0001 as the template for its structure and sections: a `# Architecture Decision Record (ADR): <number> - <title>` heading, `## Status`, `## Context`, `## Decision`, `## Consequences` with `### Positive Outcomes` and `### Risks and Tradeoffs`, `## Alternatives Considered`, and then the amendments. New ADRs must be created in that shape.
- Add every new documentation file to `src/Lumina.slnx` as a solution item under the matching solution folder, in the same change.
- The user facing manual lives in `docs/manual`. It describes Lumina as it is, not as it is planned. Whenever a change makes the manual drift from reality (features added or removed, defaults, ports, supported media types, bundled plugins or themes, configuration options, or wording that no longer matches the product), update the manual in the same change.
- Add every new documentation file to `src/Nemera.slnx` as a solution item under the matching solution folder, in the same change.
- The user facing manual lives in `docs/manual`. It describes Nemera as it is, not as it is planned. Whenever a change makes the manual drift from reality (features added or removed, defaults, ports, supported media types, bundled plugins or themes, configuration options, or wording that no longer matches the product), update the manual in the same change.
- Every manual page opens with a `## Contents` list of all manual sections, in reading order, with the current page marked in bold and every other page linked by relative path. When a section is added, renamed, reordered or removed, update the `## Contents` list on every manual page in the same change.
## Completing the work