dsh-lattice-protocol
其他 活跃维护

dsh-lattice-protocol

henryZhouLikeStudy/dsh-lattice-protocol

涵盖模式定义、类型约束、校验规则与JSON Schema映射的标准化晶格协议规范,为系统开发提供统一接口契约与数据校验能力,兼容主流JSON Schema工具链。

1
Stars 标星
0
Forks 分支
1
Watchers 关注
0
Open Issues
TypeScript
主要语言
Apache-2.0
开源协议
22 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:henryZhouLikeStudy/dsh-lattice-protocol
git clone https://github.com/henryZhouLikeStudy/dsh-lattice-protocol.git
git clone git@github.com:henryZhouLikeStudy/dsh-lattice-protocol.git
README.md main

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, and SessionLink.
  • 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);

License

Apache-2.0. See LICENSE and NOTICE.