@web-git-graph/protocol
v1.0.7
Published
Transport-neutral Git history protocol (DTOs, JSON Schema, OpenAPI, errors) for Web Git Graph and coding-agent backends.
Maintainers
Readme
@web-git-graph/protocol
与传输无关的 Git 图 DTO、JSON Schema、版本常量与错误语义,由浏览器、Node、 VS Code 以及非 JavaScript 后端共享。
Transport-neutral Git graph DTOs, JSON Schemas, version constants, and error semantics shared by browser, Node, VS Code, and non-JavaScript backends.
中文
HTTP 专属的请求体、内容类型与 OpenAPI 元数据在 @web-git-graph/protocol/http
(OPENAPI_DOCUMENT、GIT_GRAPH_CONTENT_TYPE)。协议版本固定为 "1"
(GIT_GRAPH_PROTOCOL_VERSION)。
本包不包含 DOM、Node、HTTP 状态码或 VS Code 类型——任何语言实现六个只读端点
即可被 <web-git-graph> 渲染。端点与错误模型的完整说明见
HTTP v1 协议参考。
Agent / 后端作者:从 AGENTS.md 与 自定义 Provider 教程 开始。
English
HTTP-specific request bodies, content type, and OpenAPI metadata are available
from @web-git-graph/protocol/http (OPENAPI_DOCUMENT, GIT_GRAPH_CONTENT_TYPE).
The protocol version is "1" (GIT_GRAPH_PROTOCOL_VERSION).
The package carries no DOM, Node, HTTP-status, or VS Code types — implement the
six read-only endpoints in any language and <web-git-graph> can render the
result. Endpoints and the error model are documented in the
HTTP v1 protocol reference.
Agent / backend authors: start with AGENTS.md and the custom provider recipe.
