Add unit tests for OpenAI plugin and establish coding standards

- Introduced comprehensive unit tests for the OpenAI plugin, covering SSE parsing, sentinel matching, delta extraction, request building, and more.
- Created a new markdown file detailing coding and naming conventions for the dstalk project, including guidelines for comments, naming rules, code organization, and memory management practices.
This commit is contained in:
2026-05-31 00:51:59 +08:00
parent f2da0f2ed4
commit f6cb51b40a
21 changed files with 343 additions and 131 deletions

View File

@@ -1,18 +1,18 @@
# ============================================================
# 插件目录 — 所有功能插件
# 插件目录 — 所有功能插件 / Plugin directory — all functional plugins
# ============================================================
# 基础插件(无外部服务依赖)
# 基础插件(无依赖) / Base plugins (no dependencies)
add_subdirectory(config)
add_subdirectory(file-io)
add_subdirectory(network)
# 中间插件(依赖基础插件)
add_subdirectory(session)
add_subdirectory(context)
# 上层插件(依赖中间插件)
add_subdirectory(deepseek)
add_subdirectory(anthropic)
add_subdirectory(tools)
add_subdirectory(lsp)
# 依赖基础插件的插件 / Plugins depending on base plugins only
add_subdirectory(network) # 依赖 config / depends on config
add_subdirectory(session) # 依赖 file_io / depends on file_io
add_subdirectory(tools) # 依赖 file_io / depends on file_io
# 依赖其他插件的插件 / Plugins depending on non-base plugins
add_subdirectory(context) # 依赖 session / depends on session
add_subdirectory(openai) # 依赖 http, config / depends on http, config
add_subdirectory(anthropic) # 依赖 http, config / depends on http, config