* docs(swagger): add shared response envelope types * docs(swagger): type knowledge base responses * docs(swagger): add concrete response body types * docs(swagger): type chunk list responses * docs(swagger): type knowledge mutation responses * docs(swagger): type wiki search and autofix responses * docs(swagger): type FAQ responses * docs(swagger): type tag responses * docs(swagger): type message responses and SSE schemas * docs(swagger): type agent responses * docs(swagger): type remaining handler responses * docs(swagger): regenerate OpenAPI spec * docs(swagger): type knowledge, activity and wiki maintenance endpoints Covers the endpoints left out of the earlier passes: knowledge base detail, document list/detail/spans/reparse/cancel/delete, knowledge base activity and the Wiki stats, issues, lint and rebuild-links endpoints. The spans handler now writes the documented structs instead of gin.H, so the schema cannot drift from the body; the JSON is unchanged. List filters gain their real enums and bounds, including the finalizing, cancelled and deleting parse states. * docs(swagger): document JSON-valued fields as JSON, not byte arrays types.JSON and json.RawMessage are byte slices, so swag rendered every metadata, details and config field as an array of integers. A swag overrides file documents them as objects; the four fields that hold arrays (relation chunk ids, allowed origins, image refs) say so with a swaggertype tag. * chore(lint): exempt swag annotation lines from the line-length limit swag reads each @Param, @Success and @Failure as a single line, so an enum list or a composed response type cannot be wrapped to fit. * chore(lint): exempt struct tags carrying swag attributes from the line limit Struct tags cannot wrap either; a field documented with swaggertype or extensions keeps its tags on the declaration line. |
||
|---|---|---|
| .. | ||
| assets | ||
| design | ||
| images | ||
| poc/docker-sandbox | ||
| LITE.md | ||
| README.md | ||
| docs.go | ||
| release-v0.8.3-audit.md | ||
| swag.overrides | ||
| swagger.json | ||
| swagger.yaml | ||
| swagger_contract_test.go | ||
README.md
文档已迁至 website-docs
产品、部署、API 和开发文档统一维护在 website-docs。已迁移、重复和过时的旧手写文档已删除;历史内容可从 Git 历史查看。
本目录仅保留以下工程资源及本入口说明:
docs.go、swagger.json、swagger.yaml与契约测试:参与后端编译和测试,生成物仍由make docs更新。LITE.md:Lite 发布包复制为离线 README。images/、assets/:README、Helm 等仍使用的图片资源。poc/docker-sandbox/:独立 Go 实验模块,保留源码和运行说明,不作为当前产品指南。
这些资源尚有编译、发布或历史实验用途,不能直接整目录删除。新的产品说明不要再放入此处。