henryZhouLikeStudy/dsh-lattice-protocol ↗★ 0
dsh-lattice-protocol
Versioned canonical schemas, types, validators, and contract-test fixtures for DSH Lattice V1.
安装
此插件尚未提供可验证的 bundle,或兼容性检查未通过。请先阅读仓库说明。 阅读完整 README ↗
说明文档
阅读完整 README ↗dsh-lattice-protocol
Versioned canonical schemas, types, validators, and contract-test fixtures for DSH Lattice V1.
Scope
This package defines the normative data contract for DSH Lattice:
- Canonical types for
Project,Run,Room,Agent,Task,Assignment,Message,Result,Artifact, andSessionLink. - Events, deterministic result/error envelopes, adapter manifests, capabilities, and session modes.
- JSON Schema export and runtime validators.
- RFC 2119 invariants and reusable contract-test fixtures.
Usage
import {
projectSchema,
runSchema,
DEFAULT_RUN_TIMEOUT_MS,
makeIdempotencyKey,
} from "dsh-lattice-protocol";
const parsed = projectSchema.safeParse(rawProject);