/** * @factory/shared — the shared domain layer for AI Software Factory. * * Source-first package: `main`/`types` point at `src/index.ts` so apps can * import without a build step (a build is added at Phase 0 completion). * * Contents: * - {@link ./errors} — canonical ApiError model + error codes * - {@link ./env} — zod env schemas + loader (no dotenv dependency) * - {@link ./positions} — fractional (LexoRank-style) position engine * - {@link ./dto} — FE/BE shared zod schemas (auth, page, block, database, …) * - {@link ./events} — domain event catalog + envelope + id generator * - {@link ./constants} — limits, token lifetimes, rate limits, color palette * - {@link ./mentions} — TASK-0094 mention-token parsing (shared wire format) * - {@link ./automation} — Phase-11 automation contracts (schemas, metadata, * cron, status machine, loop guard, webhook signature, interpolation) * - {@link ./realtime/notification-policy} — notification types + policy * - {@link ./realtime/notification-prefs} — per-user notification prefs * * Node10 consumers (the API): the API resolves `@factory/shared` under `node10` * module resolution, which ignores the package.json `exports` map and can only * reach the package ROOT (`main` → `src/index.ts`). The TASK-0094 contracts * below are therefore re-exported at the root so the API can import them; * NodeNext/bundler consumers (realtime, web, worker) may import the same * modules either via the root or their canonical `./realtime/…` subpaths. */ export * from "./errors.js"; export * from "./env.js"; export * from "./forms.js"; export * from "./positions.js"; export * from "./presence.js"; export * from "./events.js"; export * from "./events/catalog.js"; // TASK-0133: the org audit surface — the catalog (20 canonical events), the // org-scope where-builder (shared by the API viewer AND the worker), and the // RFC-4180 CSV renderer. Node10 consumers (the API) resolve only the root // barrel, so these are re-exported here (subpath exports stay canonical for // NodeNext consumers — the worker). export * from "./events/audit-catalog.js"; export * from "./events/audit-scope.js"; export * from "./events/audit-csv.js"; export * from "./crypto.js"; export * from "./webhook-delivery.js"; export * from "./constants.js"; export * from "./dto/index.js"; export * from "./mentions.js"; export * from "./automation.js"; export * from "./net.js"; export * from "./markdown.js"; export * from "./template-vars.js"; export * from "./builtin-templates.js"; export * from "./version-diff.js"; export * from "./version-retention.js"; export * from "./security-headers.js"; export * from "./realtime/notification-policy.js"; export * from "./realtime/notification-prefs.js";