diff --git a/en.html b/en.html index 82c899c..d322303 100644 --- a/en.html +++ b/en.html @@ -3,10 +3,10 @@ - + - + @@ -213,7 +213,7 @@
dstalk.top is the official website for the dstalk project

dstalk

-

An AI coding CLI compatible with OpenAI-style APIs and Anthropic APIs. The core is written in C11 / C++20 and ships dstalk_core.dll as a plugin host that exposes a stable C ABI. Nine functional plugins (AI, networking, LSP, sessions, files, tools, and more) compile to standalone DLLs and plug into the CLI, the SDL3 GUI, and any third-party host.

+

An AI coding CLI compatible with OpenAI-style APIs and Anthropic APIs. The core is written in C11 / C++20 and ships dstalk_core.dll as a plugin host that exposes a stable C ABI. Ten functional plugins (AI, endpoint management, networking, LSP, sessions, files, tools, and more) compile to standalone DLLs and plug into the CLI, the SDL3 GUI, the Boost.Beast Web frontend, and any third-party host.

Get Started View Source @@ -222,13 +222,13 @@ v0.1.0 C11 / C++20 Plugin host + C ABI - 9 plugins + 10 plugins GPL v3.0
Coredstalk_core.dll (plugin host) - FrontendsCLI + SDL3 GUI - Pluginsopenai · anthropic · network · lsp · session · context · config · file-io · tools + FrontendsCLI + SDL3 GUI + Web + Pluginsopenai · anthropic · endpoint_mgr · network · lsp · session · context · config · file-io · tools
@@ -258,10 +258,10 @@ AI: dstalk-core is the plugin host. It handles plugin
C

No Node.js runtime

The core is built with C11 / C++20 for fast startup and lower memory usage in long-lived terminal sessions.

-
ABI

Stable C ABI

Public host functions such as dstalk_init and dstalk_service_query, plus 8 service vtables (AI, session, HTTP, file I/O, LSP, and more) make it easy to embed from C/C++, Python, Rust, C#, and Go.

-
AI

Compatible AI APIs

Two AI plugins ship in the box: OpenAI-compatible and Anthropic. Switch between OpenAI-style APIs and Anthropic APIs via ai.provider in config.toml.

-
CLI

CLI and GUI frontends

dstalk-cli is an ANSI terminal UI; dstalk-gui is a cross-platform SDL3 window. Both share the same plugin host and core capabilities.

-
PLG

Plugin host

The core only handles plugin loading, service registry, event bus, and configuration. AI, networking, LSP, and sessions are independent DLLs you can replace or extend.

+
ABI

Stable C ABI

Public host functions such as dstalk_init and dstalk_service_query, plus 9 service vtables (AI, endpoint management, session, HTTP, file I/O, LSP, and more) make it easy to embed from C/C++, Python, Rust, C#, and Go.

+
AI

Multi-endpoint routing

OpenAI-compatible and Anthropic AI plugins ship in the box, while ai_endpoint_mgr manages multiple named endpoints. Frontends route through the active endpoint first, and /status shows sanitized endpoint state.

+
CLI

CLI, GUI, and Web frontends

dstalk-cli is an ANSI terminal UI, dstalk-gui is a cross-platform SDL3 window, and dstalk-web is powered by Boost.Beast + SSE. All three share the same core capabilities.

+
PLG

Plugin host

The core only handles plugin loading, service registry, event bus, and configuration. AI, endpoint management, networking, LSP, and sessions are independent DLLs you can replace or extend.

OSS

Open source and hackable

Released under GNU GPL v3.0, with example plugins, unit tests, and tutorial docs. Suitable for learning, customization, and local workflow extensions.

@@ -287,12 +287,22 @@ setup.bat cd .. build.bat -# Create config.toml +# Legacy single-provider mode ai.provider = "ai_openai" api.base_url = "https://api.openai.com/v1" api.api_key = "sk-xxxxxxxx" api.model = "gpt-4o" +# Multi-endpoint mode +endpoints.names = "openai_main, anthropic_alt" +endpoints.active = "openai_main" +endpoint.openai_main.provider = "ai_openai" +endpoint.openai_main.api_key = "sk-xxxxxxxx" +endpoint.openai_main.model = "gpt-4o" +endpoint.anthropic_alt.provider = "ai_anthropic" +endpoint.anthropic_alt.api_key = "sk-ant-xxxx" +endpoint.anthropic_alt.model = "claude-sonnet" + # Run CLI build/bin/dstalk_cli.exe config.toml @@ -302,13 +312,13 @@ build/bin/dstalk_cli.exe config.toml

Plugin host + decoupled multi-frontend architecture

-

dstalk_core.dll acts as a plugin host responsible for plugin loading, service registry, event bus, and configuration. Nine functional plugins — AI, networking, LSP, sessions, files, tools, and more — compile to standalone DLLs, while frontends reach the core only through the C ABI. The GUI is opt-in via the CMake option DSTALK_BUILD_GUI.

+

dstalk_core.dll acts as a plugin host responsible for plugin loading, service registry, event bus, and configuration. Ten functional plugins — AI, endpoint management, networking, LSP, sessions, files, tools, and more — compile to standalone DLLs, while frontends reach the core only through the C ABI. The GUI and Web frontends are opt-in via DSTALK_BUILD_GUI / DSTALK_BUILD_WEB.

architecture
┌─────────────────────────────────────────────────────┐
 │ Frontends                                            │
-│  dstalk-cli (ANSI UI)        dstalk-gui (SDL3)       │
+│  dstalk-cli (ANSI)   dstalk-gui (SDL3)   dstalk-web (SSE) │
 └───────────────────────┬─────────────────────────────┘
                         │ C ABI
 ┌───────────────────────▼─────────────────────────────┐
@@ -316,9 +326,9 @@ build/bin/dstalk_cli.exe config.toml
│ Plugin Loader · Service Registry · Event Bus · │ │ Config Manager │ ├───────────────┬───────────────┬─────────────────────┤ -│ openai (ai) │ anthropic (ai)│ network (http) │ -│ lsp (client) │ session │ context │ -│ config │ file-io │ tools │ +│ openai (ai) │ anthropic (ai)│ endpoint_mgr │ +│ network(http)│ lsp (client) │ session │ +│ context │ config │ file-io · tools │ └───────────────┴───────────────┴─────────────────────┘ Boost.JSON · Boost.Asio / Beast · OpenSSL TLS
@@ -335,9 +345,11 @@ build/bin/dstalk_cli.exe config.toml Core libraryC11 / C++20, dstalk_core.dll, plugin host, public C ABIEnabled CLI frontendANSI terminal UI using dstalk/dstalk_host.hEnabled GUI frontendSDL3 graphical frontend, enabled via CMake option DSTALK_BUILD_GUIOptional build - Plugins9 functional plugins (openai · anthropic · network · lsp · session · context · config · file-io · tools), standalone DLLsEnabled - Tests10 test targets covering plugin host, event bus, service registry, plugin loader, and AI plugins, integrated with CTestEnabled - Docsdocs/tutorial, docs/reference (commands, plugin-abi), docs/explanation (architecture, plugin-lifecycle, security-logging)Published + Web frontendBoost.Beast HTTP + SSE streaming frontend, enabled via CMake option DSTALK_BUILD_WEBOptional build + Frontend commondstalk_frontend_common reuses config discovery, initialization, and service-query logicEnabled + Plugins10 functional plugins (openai · anthropic · endpoint_mgr · network · lsp · session · context · config · file-io · tools), standalone DLLsEnabled + Tests11 test targets covering plugin host, event bus, service registry, plugin loader, endpoint manager, and AI plugins, integrated with CTestEnabled + Docsdocs/tutorial, docs/reference (commands, config, plugin-abi), docs/explanation (architecture, plugin-lifecycle, security-logging)Published Examplesexamples/example_plugin shows a plugin templateAvailable DependenciesConan2, boost/1.86.0, openssl/3.4.1Configured Build systemCMake 3.21+, Ninja, LLVM/Clang, CMakePresetsConfigured @@ -354,10 +366,15 @@ build/bin/dstalk_cli.exe config.toml
- + + - - + + + + + +
CommandsDescriptionExample
/helpShow help/help
/help / /hShow the command list/help
/quit / /qQuit the program/quit
/clearClear the current conversation context/clear
/model <name>Switch the current model/model gpt-4o
/file read <path>Read file content and print it to the terminal/file read README.md
/contextShow the current token count and message count/context
/statusShow sanitized runtime status without printing the full API key/status
/model <name>Switch the current model; in multi-endpoint mode it updates the active endpoint/model gpt-4o
/file list [path]List directory contents; omit path to list the current directory/file list src/
/file show <path>Show file content/file show README.md
/file read <path>Read file content (same as /file show)/file read config.toml
/file write <path> <content>Write content to a file/file write note.txt hello
/save <path> / /load <path>Save or restore a session/save session.json
@@ -367,7 +384,7 @@ build/bin/dstalk_cli.exe config.toml

Public C API

-

dstalk exposes its capabilities through four public headers: dstalk_host.h manages the host lifecycle and plugins, dstalk_services.h defines 8 service vtables, dstalk_lsp.h provides a standalone LSP client, and dstalk_types.h shares message and event types. Frontends call dstalk_service_query() to obtain a service pointer, then invoke capabilities through function pointers.

+

dstalk exposes its capabilities through four public headers: dstalk_host.h manages the host lifecycle and plugins, dstalk_services.h defines 9 service vtables including ai_endpoint_mgr, dstalk_lsp.h provides a standalone LSP client, and dstalk_types.h shares message and event types. Frontends call dstalk_service_query() to obtain a service pointer, then invoke capabilities through function pointers.

dstalk_host.h — host API
@@ -396,7 +413,7 @@ void dstalk_set_diag_callback(dstalk_diag_cb cb);
dstalk_services.h — service vtable example
-
// AI service: dstalk_service_query("ai.openai", 0)
+
// AI service: dstalk_service_query("ai_openai", 1)
 typedef struct {
     int  (*configure)(const char* provider, const char* base_url,
                       const char* api_key, const char* model,
@@ -407,24 +424,26 @@ typedef struct {
     void (*free_result)(dstalk_chat_result_t* result);
 } dstalk_ai_service_t;
 
-// Same pattern: dstalk_session_service_t, dstalk_http_service_t,
-//   dstalk_file_io_service_t, dstalk_config_service_t,
-//   dstalk_tools_service_t, dstalk_lsp_service_t
+// endpoint manager: dstalk_service_query("ai_endpoint_mgr", 1) +// Same pattern: dstalk_ai_endpoint_mgr_t, dstalk_session_service_t, +// dstalk_http_service_t, dstalk_file_io_service_t, +// dstalk_config_service_t, dstalk_tools_service_t, dstalk_lsp_service_t

Roadmap

-

The plugin host, CLI, SDL3 GUI, nine core plugins, tests, and documentation are already in place. Future work focuses on deeper capabilities and ecosystem expansion.

+

The plugin host, CLI, SDL3 GUI, Boost.Beast Web frontend, ten core plugins, tests, and documentation are already in place. Future work focuses on deeper capabilities and ecosystem expansion.

- - - + + + +
PhaseScopeStatus
SkeletonProject skeleton, CMake/Ninja build, Conan dependencies, DLL exports, frontend main loopDone
Plugin hostPlugin loader, service registry, event bus, configuration; 9 core plugins (openai · anthropic · network · lsp · session · context · config · file-io · tools)Done
Chat capabilityHTTPS networking, OpenAI-compatible / Anthropic API adapters, streaming output, multi-turn sessions, file I/O toolsAvailable
GUI frontendSDL3 graphical window (DSTALK_BUILD_GUI), an optional frontend sharing the same plugin host as the CLIOptional build
Plugin hostPlugin loader, service registry, event bus, configuration; 10 core plugins (openai · anthropic · endpoint_mgr · network · lsp · session · context · config · file-io · tools)Done
Chat capabilityHTTPS networking, OpenAI-compatible / Anthropic API adapters, streaming output, multi-turn sessions, tool calling, and file I/OAvailable
Multi-endpointai_endpoint_mgr manages multiple named AI endpoints; frontends route through the active endpoint first and /status returns sanitized stateAvailable
GUI / Web frontendsSDL3 graphical window and Boost.Beast Web + SSE, optional frontends sharing the same plugin host as the CLIOptional build
Next phaseDeeper LSP integration, third-party plugin SDK, cross-platform distribution, ongoing documentationPlanned
@@ -436,7 +455,7 @@ typedef struct {

dstalk is an open project. Developers interested in C/C++, terminal UX, AI API adapters, GUI, documentation, and testing are welcome to participate.

-
PR

Improve the codebase

The core, CLI, SDL3 GUI, and nine plugins (AI, networking, LSP, sessions, files, tools, and more) all welcome patches; build scripts and cross-platform compatibility have headroom too.

+
PR

Improve the codebase

The core, CLI, SDL3 GUI, Web frontend, and 10 plugins (AI, endpoint management, networking, LSP, sessions, files, tools, and more) all welcome patches; build scripts and cross-platform compatibility have headroom too.

PLG

Build new plugins

Use examples/example_plugin and docs/reference/plugin-abi.md as a starting point — register new services through the C ABI to bring your own models, tools, or data sources into dstalk.

DOC

Improve docs and tests

docs/tutorial and docs/reference are taking shape; help expand tutorials, command references, plugin-ABI notes, and the coverage of host_api_test / smoke_test.

diff --git a/index.html b/index.html index 7d38f92..5fe49de 100644 --- a/index.html +++ b/index.html @@ -3,10 +3,10 @@ - + - + @@ -213,7 +213,7 @@
dstalk.top 是 dstalk 项目的官方网站

dstalk

-

兼容 OpenAI 风格接口与 Anthropic API 的 AI 编程 CLI。核心采用 C11 / C++20 编写,以 dstalk_core.dll 作为插件宿主暴露稳定 C ABI,9 个功能插件 (AI、网络、LSP、会话、文件、工具等) 编译为独立 DLL,通过统一接口接入 CLI、SDL3 GUI 与第三方宿主。

+

兼容 OpenAI 风格接口与 Anthropic API 的 AI 编程 CLI。核心采用 C11 / C++20 编写,以 dstalk_core.dll 作为插件宿主暴露稳定 C ABI,10 个功能插件(AI、endpoint 管理、网络、LSP、会话、文件、工具等)编译为独立 DLL,通过统一接口接入 CLI、SDL3 GUI、Boost.Beast Web 前端与第三方宿主。

开始使用 查看源代码 @@ -222,13 +222,13 @@ v0.1.0 C11 / C++20 插件宿主 + C ABI - 9 个插件 + 10 个插件 GPL v3.0
核心dstalk_core.dll (插件宿主) - 前端CLI + SDL3 GUI - 插件openai · anthropic · network · lsp · session · context · config · file-io · tools + 前端CLI + SDL3 GUI + Web + 插件openai · anthropic · endpoint_mgr · network · lsp · session · context · config · file-io · tools
@@ -256,10 +256,10 @@ AI: dstalk-core 是插件宿主,负责插件加载、服务注册、
C

零 Node.js 运行时

核心以 C11 / C++20 构建,目标是毫秒级启动和更低内存占用,适合终端长期交互。

-
ABI

稳定 C ABI

公开 dstalk_init、dstalk_service_query 等宿主函数和 8 种服务 vtable (AI、会话、HTTP、文件、LSP 等),方便 C/C++、Python、Rust、C#、Go 嵌入。

-
AI

多 API 兼容

内置 OpenAI-compatible 与 Anthropic 两个 AI 插件;通过 config.toml 中的 ai.provider 在 OpenAI 风格接口与 Anthropic API 之间切换。

-
CLI

CLI 与 GUI 双前端

dstalk-cli 提供 ANSI 终端 UI,dstalk-gui 基于 SDL3 跨平台窗口,共享同一组核心能力。

-
PLG

插件化宿主

核心仅做插件加载、服务注册、事件总线和配置管理;AI、网络、LSP、会话等能力均为独立 DLL,可以替换或扩展。

+
ABI

稳定 C ABI

公开 dstalk_init、dstalk_service_query 等宿主函数和 9 种服务 vtable(AI、endpoint 管理、会话、HTTP、文件、LSP 等),方便 C/C++、Python、Rust、C#、Go 嵌入。

+
AI

多 endpoint 路由

内置 OpenAI-compatible 与 Anthropic 两个 AI 插件,并通过 ai_endpoint_mgr 管理多个命名 endpoint;前端优先按 active endpoint 路由,/status 可查看脱敏状态。

+
CLI

CLI、GUI 与 Web 三前端

dstalk-cli 提供 ANSI 终端 UI,dstalk-gui 基于 SDL3 跨平台窗口,dstalk-web 基于 Boost.Beast + SSE;三者共享同一组核心能力。

+
PLG

插件化宿主

核心仅做插件加载、服务注册、事件总线和配置管理;AI、endpoint 管理、网络、LSP、会话等能力均为独立 DLL,可以替换或扩展。

OSS

开源可改造

项目采用 GNU GPL v3.0,附带示例插件、单元测试与教程文档,适合学习、二次开发和本地工作流定制。

@@ -285,12 +285,22 @@ setup.bat cd .. build.bat -# 创建 config.toml +# 单 Provider 模式 / legacy single provider ai.provider = "ai_openai" api.base_url = "https://api.openai.com/v1" api.api_key = "sk-xxxxxxxx" api.model = "gpt-4o" +# 多 Endpoint 模式 / multi-endpoint +endpoints.names = "openai_main, anthropic_alt" +endpoints.active = "openai_main" +endpoint.openai_main.provider = "ai_openai" +endpoint.openai_main.api_key = "sk-xxxxxxxx" +endpoint.openai_main.model = "gpt-4o" +endpoint.anthropic_alt.provider = "ai_anthropic" +endpoint.anthropic_alt.api_key = "sk-ant-xxxx" +endpoint.anthropic_alt.model = "claude-sonnet" + # 运行 CLI build/bin/dstalk_cli.exe config.toml @@ -300,22 +310,22 @@ build/bin/dstalk_cli.exe config.toml

插件宿主 + 多前端解耦架构

-

dstalk_core.dll 作为插件宿主,负责插件加载、服务注册、事件总线和配置管理;AI、网络、LSP、会话、文件 IO、工具等 9 个功能插件编译为独立 DLL,前端只通过 C ABI 触达核心能力。GUI 通过 CMake 选项 DSTALK_BUILD_GUI 启用。

+

dstalk_core.dll 作为插件宿主,负责插件加载、服务注册、事件总线和配置管理;AI、endpoint 管理、网络、LSP、会话、文件 IO、工具等 10 个功能插件编译为独立 DLL,前端只通过 C ABI 触达核心能力。GUI 与 Web 分别通过 CMake 选项 DSTALK_BUILD_GUI / DSTALK_BUILD_WEB 启用。

architecture
┌─────────────────────────────────────────────────────┐
 │ Frontends                                            │
-│  dstalk-cli (ANSI UI)        dstalk-gui (SDL3)       │
+│  dstalk-cli (ANSI)   dstalk-gui (SDL3)   dstalk-web (SSE) │
 └───────────────────────┬─────────────────────────────┘
                         │ C ABI
 ┌───────────────────────▼─────────────────────────────┐
 │ dstalk_core.dll — 插件宿主                        │
 │  插件加载 · 服务注册 · 事件总线 · 配置管理           │
 ├───────────────┬───────────────┬─────────────────────┤
-│ openai  (ai) │ anthropic (ai)│ network (http)       │
-│ lsp (client)  │ session       │ context              │
-│ config        │ file-io       │ tools                │
+│ openai  (ai) │ anthropic (ai)│ endpoint_mgr       │
+│ network(http)│ lsp (client)  │ session            │
+│ context       │ config        │ file-io · tools    │
 └───────────────┴───────────────┴─────────────────────┘
    Boost.JSON · Boost.Asio / Beast · OpenSSL TLS
@@ -332,9 +342,11 @@ build/bin/dstalk_cli.exe config.toml 核心库C11 / C++20,dstalk_core.dll,插件宿主,公开 C ABI已启用 CLI 前端ANSI 终端 UI,调用 dstalk/dstalk_host.h已启用 GUI 前端SDL3 图形化前端,CMake 选项 DSTALK_BUILD_GUI 启用可选构建 - 插件9 个功能插件 (openai · anthropic · network · lsp · session · context · config · file-io · tools),独立 DLL已启用 - 测试10 个测试目标覆盖插件宿主、事件总线、服务注册、插件加载及各 AI 插件,CTest 集成已启用 - 文档docs/tutorial、docs/reference (commands、plugin-abi)、docs/explanation (architecture、plugin-lifecycle、security-logging)已发布 + Web 前端Boost.Beast HTTP + SSE 流式前端,CMake 选项 DSTALK_BUILD_WEB 启用可选构建 + 前端公共库dstalk_frontend_common 复用配置发现、初始化和服务查询逻辑已启用 + 插件10 个功能插件(openai · anthropic · endpoint_mgr · network · lsp · session · context · config · file-io · tools),独立 DLL已启用 + 测试11 个测试目标覆盖插件宿主、事件总线、服务注册、插件加载、endpoint manager 及各 AI 插件,CTest 集成已启用 + 文档docs/tutorial、docs/reference(commands、config、plugin-abi)、docs/explanation(architecture、plugin-lifecycle、security-logging)已发布 示例examples/example_plugin 展示插件开发模板已提供 依赖管理Conan2,boost/1.86.0,openssl/3.4.1已配置 构建系统CMake 3.21+,Ninja,LLVM/Clang,CMakePresets已配置 @@ -351,10 +363,15 @@ build/bin/dstalk_cli.exe config.toml
- + + - - + + + + + +
命令说明示例
/help显示帮助/help
/help / /h显示命令列表/help
/quit / /q退出程序/quit
/clear清空当前会话上下文/clear
/model <name>切换当前模型/model gpt-4o
/file read <path>读取文件内容并输出到终端/file read README.md
/context显示当前 Token 数和消息条数/context
/status显示当前运行状态(脱敏,不打印完整 API Key)/status
/model <name>切换当前模型;多 endpoint 模式下作用于 active endpoint/model gpt-4o
/file list [path]列出目录内容,不填 path 列出当前目录/file list src/
/file show <path>查看文件内容/file show README.md
/file read <path>读取文件内容(同 /file show)/file read config.toml
/file write <path> <content>写入文件内容/file write note.txt hello
/save <path> / /load <path>保存或恢复会话/save session.json
@@ -364,7 +381,7 @@ build/bin/dstalk_cli.exe config.toml

公开 C API

-

dstalk 通过 4 个公开头文件暴露能力:dstalk_host.h 管理宿主生命周期与插件,dstalk_services.h 定义 8 种服务 vtable,dstalk_lsp.h 提供独立 LSP 客户端,dstalk_types.h 共享消息与事件类型。前端通过 dstalk_service_query() 获取服务指针,再经函数指针调用具体能力。

+

dstalk 通过 4 个公开头文件暴露能力:dstalk_host.h 管理宿主生命周期与插件,dstalk_services.h 定义 9 种服务 vtable(含 ai_endpoint_mgr),dstalk_lsp.h 提供独立 LSP 客户端,dstalk_types.h 共享消息与事件类型。前端通过 dstalk_service_query() 获取服务指针,再经函数指针调用具体能力。

dstalk_host.h — 宿主 API
@@ -393,7 +410,7 @@ void dstalk_set_diag_callback(dstalk_diag_cb cb);
dstalk_services.h — 服务 vtable 示例
-
// AI 服务: dstalk_service_query("ai.openai", 0)
+
// AI 服务: dstalk_service_query("ai_openai", 1)
 typedef struct {
     int  (*configure)(const char* provider, const char* base_url,
                       const char* api_key, const char* model,
@@ -404,24 +421,26 @@ typedef struct {
     void (*free_result)(dstalk_chat_result_t* result);
 } dstalk_ai_service_t;
 
-// 同模式: dstalk_session_service_t, dstalk_http_service_t,
-//   dstalk_file_io_service_t, dstalk_config_service_t,
-//   dstalk_tools_service_t, dstalk_lsp_service_t
+// endpoint manager: dstalk_service_query("ai_endpoint_mgr", 1) +// 同模式: dstalk_ai_endpoint_mgr_t, dstalk_session_service_t, +// dstalk_http_service_t, dstalk_file_io_service_t, +// dstalk_config_service_t, dstalk_tools_service_t, dstalk_lsp_service_t

路线图

-

插件宿主、CLI、SDL3 GUI、9 个核心插件、测试与文档已经就位;后续聚焦在能力深化与生态扩展。

+

插件宿主、CLI、SDL3 GUI、Boost.Beast Web、10 个核心插件、测试与文档已经就位;后续聚焦在能力深化与生态扩展。

- - - + + + +
阶段内容状态
骨架项目骨架、CMake/Ninja 构建、Conan 依赖、DLL 导出、前端主循环已完成
插件宿主插件加载、服务注册、事件总线、配置管理;9 个核心插件 (openai · anthropic · network · lsp · session · context · config · file-io · tools)已完成
对话能力HTTPS 网络层、OpenAI-compatible / Anthropic API 适配、流式输出、多轮会话、文件读写工具已可用
GUI 前端SDL3 图形化窗口 (DSTALK_BUILD_GUI),作为可选前端与 CLI 共享插件宿主可选构建
插件宿主插件加载、服务注册、事件总线、配置管理;10 个核心插件(openai · anthropic · endpoint_mgr · network · lsp · session · context · config · file-io · tools)已完成
对话能力HTTPS 网络层、OpenAI-compatible / Anthropic API 适配、流式输出、多轮会话、工具调用与文件读写已可用
多 endpointai_endpoint_mgr 管理多个命名 AI endpoint,前端优先按 active endpoint 路由,/status 输出脱敏状态已可用
GUI / Web 前端SDL3 图形化窗口与 Boost.Beast Web + SSE,作为可选前端与 CLI 共享插件宿主可选构建
下一阶段LSP 集成深化、第三方插件 SDK、跨平台分发与文档持续完善计划中
@@ -433,7 +452,7 @@ typedef struct {

dstalk 是开放项目,欢迎对 C/C++、命令行体验、AI API 适配、GUI、文档和测试感兴趣的开发者一起参与。

-
PR

提交代码改进

核心、CLI、SDL3 GUI 与 9 个插件 (AI、网络、LSP、会话、文件、工具等) 都欢迎补丁,跨平台兼容与构建脚本也有空间。

+
PR

提交代码改进

核心、CLI、SDL3 GUI、Web 前端与 10 个插件(AI、endpoint 管理、网络、LSP、会话、文件、工具等)都欢迎补丁,跨平台兼容与构建脚本也有空间。

PLG

开发新插件

参考 examples/example_plugin 和 docs/reference/plugin-abi.md,通过 C ABI 注册新服务,把自己的模型、工具或数据源接入 dstalk。

DOC

完善文档与测试

docs/tutorial、docs/reference 已经成形,欢迎补充教程、命令速查、插件 ABI 说明,以及 host_api_test / smoke_test 的覆盖面。