docs: add a protocol reference page for custom clients
Maintainer thường phản hồi trong vòng 1 ngày
@kachamsiddarth đang làm issue này rồi.
Từ ngày 21/10/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The server speaks protocol v1 now (#285), but the only description of it is a section of server/setup.mdx. Anyone writing their own client (a mobile app, a CLI, a different widget) needs one page that lists every part, every error code and a request they can paste into a terminal. This issue is that page.
What to do
- New page
website/src/content/docs/server/protocol.mdx, titleProtocol, added to the Server sidebar inwebsite/astro.config.mjs(lines 121 to 128), after Setup. Cover:- How to ask for v1:
"protocol": 1in the body, or thex-chatcops-protocol: 1header. The response then hasx-chatcops-protocol: 1. Without either, the server answers in the 0.5 format, which goes away in 1.0. - The request body: the fields in
chatRequestSchema(packages/server/src/config.ts, lines 101 to 123) with their limits, plusprotocol. - Every part in
WirePart(packages/core/src/protocol/v1.ts, lines 50 to 99), one short paragraph or table row each, with an example line. Say which ones the server sends today (start,text-start,text-delta,text-end,tool-call,tool-result,lead-captured,error,finish) and that the others (source,handoff,agent-message,suggestions) are reserved for later features. - Framing: one
data: <json>line per part,data: [DONE]once at the end,: pingcomments after 10 s of silence, clients ignore unknown part types, and a stream withoutfinishwas cut off. - Errors before the stream: every status and code from
packages/core/src/protocol/errors.ts, with the JSON body shape andRetry-After. - Errors during the stream: the
errorpart's codes,retryable, andscopeforbudget_exceeded. - A
curlexample:curl -N -X POST http://localhost:3001/chat -H 'Content-Type: application/json' -d '{"protocol":1,"conversationId":"test-1","message":"Hi"}', followed by what it prints. import type { WirePart } from '@chatcops/core/protocol'for TypeScript clients.
- How to ask for v1:
- In
website/src/content/docs/server/setup.mdx, keep the "Response format" section short: the two formats in one paragraph, and a link to the new page for the details. Move the parts list and the status table there.
Where to look
packages/server/src/http.ts, which does negotiation, statuses, pings and[DONE]packages/server/tests/http.test.tsfor real request and response examplespackages/core/src/protocol/for the types and the status map
Acceptance criteria
- New
server/protocol.mdxin the sidebar, covering the points above - Every part and error code in
v1.tsanderrors.tsis on the page, and nothing that isn't - The curl example's output on the page is real. You don't need an API key: run the Express example (
packages/server/src/examples/express-server.ts) withprovider: scriptedProvider([textStep('Hello!')])from@chatcops/core/testing/provider, and don't commit that change -
pnpm --filter @chatcops/website buildsucceeds - Changeset:
pnpm changeset --empty(docs only)
Please get this merged by Dec 8, since the v0.6 release notes link to it.
Want to work on this? Comment below and I'll assign it to you. Please take one issue at a time, branch off dev, and open your PR against dev with Closes #<this issue number>. Setup notes (pnpm, build before test) are in CONTRIBUTING.md.
- Ngôn ngữ chính
- TypeScript
- Star
- 13
- Fork
- 7
- Merge trung bình
- 3 giờ 41 phút
- Pull request đã merge (30 ngày)
- 155
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của codercops/chatcops
-
Document the pre-chat formCó thể đã có người làm @masyarakatai đã nhận 5 ngày trước. Đang mởdocumentation good first issue hacktoberfest widget
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
codercops/chatcops#70 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs: update the providers page for openai-compatible, registerProvider and provider importsCó thể đã có người làm @prakashNalla đã nhận hôm nay. Đang mởdocumentation good first issue hacktoberfest website
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
codercops/chatcops#291 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create @chatcops/store-cloudflare (D1, KV and a Durable Object counter)Có thể đã có người làm @bhushan4work đã nhận hôm nay. Đang mởenhancement hacktoberfest help wanted server
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
codercops/chatcops#249 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create @chatcops/store-sqlite, a store for single-server setupsCó thể đã có người làm @srikar-naidu đã nhận hôm nay. Đang mởenhancement hacktoberfest help wanted server
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
codercops/chatcops#247 · 3 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Batch analytics events into an EventSink and compute stats from itCó thể đã có người làm @srujankaleru2007 đã nhận 1 ngày trước. Đang mởcore enhancement hacktoberfest help wanted
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 78/100
codercops/chatcops#246 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của codercops/chatcops
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
chaitin/MonkeyCode#1437 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
rtdb-info-connected-order test: unhandled 'connection is closed' rejection fails the CLI suiteĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
carbon-design-system/carbon-ai-chat#2615 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
e2e-failure ready-to-code
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
redhat-developer/rhdh-plugin-export-overlays#4486 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: fileUploadMatrix.test.ts URL case does a real DNS lookup and fails offlineCó thể đã có người làm @r2jaff đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ComposioHQ/composio#5054 ·
Maintainer thường phản hồi trong vòng 1 ngày