30 lines
956 B
Handlebars
30 lines
956 B
Handlebars
import { defineFeature } from "@repo/core-shared/conformance";
|
|
|
|
/**
|
|
* The {{camelCase name}} feature's conformance manifest. Drives binding-slot
|
|
* types in `di/bind-production.ts` and is read by ESLint, the boot
|
|
* assertion, and the CI drift gate.
|
|
*
|
|
* Conventions:
|
|
* - `mutates: true` for any use case that creates, updates, or deletes state
|
|
* - `audits` lists every audit event the use case emits (must match calls
|
|
* to `auditLog.record(...)` in the factory body — ESLint enforces this)
|
|
* - `publishes` / `consumes` cover cross-feature events through `IEventBus`
|
|
*/
|
|
export const {{camelCase name}}Manifest = defineFeature({
|
|
name: "{{kebabCase name}}",
|
|
requiredCores: [],
|
|
useCases: {
|
|
get{{pascalCase entity}}: {
|
|
mutates: false,
|
|
audits: [],
|
|
publishes: [],
|
|
consumes: [],
|
|
},
|
|
},
|
|
realtimeChannels: [],
|
|
jobs: [],
|
|
} as const);
|
|
|
|
export type {{pascalCase name}}Manifest = typeof {{camelCase name}}Manifest;
|