2026-09-23 19:29:57 +08:00
|
|
|
|
/**
|
|
|
|
|
|
* 客户端与服务端共享的契约(架构设计第 2 节)。
|
|
|
|
|
|
*
|
|
|
|
|
|
* 只放类型与模式定义,不引入运行时依赖:这一层被所有包依赖,任何依赖都会变成全局耦合。
|
2026-09-23 20:00:47 +08:00
|
|
|
|
* JSON Schema 在 contracts/schemas/ 是规范本体,本包里的 TS 是镜像;两者由
|
|
|
|
|
|
* scripts/check-contracts.test.mjs 卡漂移。
|
2026-09-23 19:29:57 +08:00
|
|
|
|
*/
|
2026-09-23 20:00:47 +08:00
|
|
|
|
export * from './events.js';
|
|
|
|
|
|
export * from './protocol.js';
|
2026-09-23 19:29:57 +08:00
|
|
|
|
|
2026-09-23 20:00:47 +08:00
|
|
|
|
export const CONTRACTS_PACKAGE = '@aps/contracts';
|