feat(mapping): centralize domain <-> contracts mappings (B5)
New @umt/mapping (depends on domain + contracts only): download status + pause reason, evidence level / media kind, identity resolution status, slot status / spec columns / evaluation, ParsedRelease <-> source_release.parsed, SiteRelease <-> source_release, PathBinding, OrganizePlan -> organization_record / file results / organize.plan output. Tables are Record<union, ...> so adding a value on either side fails typecheck or tests. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
da8e53bbca
commit
42ecc93fa5
16 files changed
+1282
-1
No files matched your search
@@ -0,0 +1,13 @@
|
||||
// @umt/mapping 公开入口:domain ↔ contracts 的集中映射(W1 审查 B5)。
|
||||
// 只依赖 @umt/domain 与 @umt/contracts;不依赖 db / adapters(adapters 的 SiteRelease 以结构类型 SiteReleaseLike 接入)。
|
||||
// db 行(snake_case)↔ contracts(camelCase)的转换不在这里。
|
||||
export const PACKAGE_NAME = "@umt/mapping";
|
||||
|
||||
export * from "./download.ts";
|
||||
export * from "./evidence.ts";
|
||||
export * from "./identity.ts";
|
||||
export * from "./organize.ts";
|
||||
export * from "./path-binding.ts";
|
||||
export * from "./release.ts";
|
||||
export * from "./site-release.ts";
|
||||
export * from "./slot.ts";
|
||||
Reference in new issue
Block a user