@spotpatch/shared

v1.15.0

Published

Shared immutable models and protocol definitions for SpotPatch.

Downloads

1,405

Readme

English

The shared contract package for SpotPatch. It provides immutable data models, bounded protocol schemas, endpoint constants, error codes, runtime bootstrap types, Agent events, and AI configuration types used across Node and browser packages.

Applications should install a framework adapter such as @spotpatch/vite instead of depending on this package for UI integration. Changes to this package are versioned because they define compatibility between independently built SpotPatch packages.

Requires Node.js >=20.19.0 when used in Node environments.

简体中文

这是 SpotPatch 的共享契约包,提供不可变数据模型、有界协议 Schema、端点常量、错误码、Runtime bootstrap 类型、Agent 事件和 AI 配置类型,供 Node 与浏览器包共同使用。

业务应用应安装 @spotpatch/vite 等框架适配器,而不是把本包当作 UI 接入。该包独立版本化,是因为它定义了不同 SpotPatch 构建产物之间的兼容契约。

在 Node 环境中使用时要求 Node.js >=20.19.0。

Links / 链接