aps-agent/contracts/index.ts

11 lines
465 B
TypeScript
Raw Permalink Normal View History

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