No Node.js runtime
The core is built with C11 / C++20 for fast startup and lower memory usage in long-lived terminal sessions.
diff --git a/en.html b/en.html index 0b09de9..9434bcf 100644 --- a/en.html +++ b/en.html @@ -3,10 +3,10 @@
- + - + @@ -213,7 +213,7 @@An AI coding CLI powered by DeepSeek V4 and compatible with OpenAI / Anthropic APIs. The core is written in C11 / C++20 and exposes a stable C ABI through dstalk-core.dll, so the CLI, GUI, and third-party tools can share the same local AI coding engine.
+An AI coding CLI powered by DeepSeek V4 and compatible with OpenAI / 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.
dstalk is positioned alongside tools like Claude Code, OpenCode, and KiloCode, but uses a systems-language implementation and a CDLL architecture to optimize startup time, runtime footprint, embeddability, and long-running terminal workflows.
+dstalk is positioned alongside tools like Claude Code, OpenCode, and KiloCode, but uses a systems-language implementation and a plugin-host architecture to optimize startup time, runtime footprint, embeddability, and long-running terminal workflows.
The core is built with C11 / C++20 for fast startup and lower memory usage in long-lived terminal sessions.
Public functions such as dstalk_init, dstalk_chat, and dstalk_file_read make it easy to embed from C/C++, Python, Rust, C#, and Go.
DeepSeek V4 is the primary target, with OpenAI / Anthropic-style APIs configurable through base_url, api_key, and model settings.
The current CLI uses ANSI terminal UI and supports natural-language chat, model switching, file I/O, and session save/load.
The CLI and GUI do not own business logic. They call the same dstalk-core.dll, allowing additional hosts to be added later.
dstalk is released under GNU GPL v3.0 and welcomes learning, customization, and workflow-specific extensions.
Two AI plugins ship in the box: DeepSeek and Anthropic, with OpenAI-style compatibility. Switch providers via ai.provider in config.toml.
dstalk-cli is an ANSI terminal UI; dstalk-gui is a cross-platform SDL3 window. Both share the same plugin host and core capabilities.
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.
Released under GNU GPL v3.0, with example plugins, unit tests, and tutorial docs. Suitable for learning, customization, and local workflow extensions.
dstalk-core.dll provides networking, AI API adaptation, file I/O, and session management. Frontends focus on interaction. The GUI directory is reserved, while the root CMake currently enables the CLI and core library first.
+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.
┌─────────────────────────────────────────────┐
-│ Frontends │
-│ dstalk-cli (ANSI UI) dstalk-gui (SDL3) │
-│ enabled today roadmap │
-└───────────────┬─────────────────────────────┘
- │ C ABI
-┌───────────────▼─────────────────────────────┐
-│ dstalk-core.dll │
-│ API / Session / File I/O / AI Adapter │
-└───────┬──────────────┬──────────────┬────────┘
- │ │ │
- Boost.JSON HTTP Client OpenSSL TLS
- Boost.Asio / Beast
+┌─────────────────────────────────────────────────────┐
+│ Frontends │
+│ dstalk-cli (ANSI UI) dstalk-gui (SDL3) │
+└───────────────────────┬─────────────────────────────┘
+ │ C ABI
+┌───────────────────────▼─────────────────────────────┐
+│ dstalk-core.dll — Plugin Host │
+│ Plugin Loader · Service Registry · Event Bus · │
+│ Config Manager │
+└──┬───────┬───────┬───────┬───────┬───────┬──────────┘
+ ▼ ▼ ▼ ▼ ▼ ▼
+ deepseek anthropic network lsp session context
+ (ai) (ai) (http) client
+ ▼ ▼ ▼
+ config file-io tools
+ │ │ │
+ └── Boost.JSON / Boost.Asio / Beast / OpenSSL TLS ──┘
| Module | Current technology | Status |
|---|---|---|
| Core library | C11 / C++20, dstalk-core.dll, public C ABI | Enabled |
| Core library | C11 / C++20, dstalk-core.dll, plugin host, public C ABI | Enabled |
| CLI frontend | ANSI terminal UI using dstalk/dstalk_api.h | Enabled |
| GUI frontend | SDL3 graphical frontend | Roadmap |
| GUI frontend | SDL3 graphical frontend, enabled via CMake option DSTALK_BUILD_GUI | In place |
| Plugins | 9 functional plugins (deepseek · anthropic · network · lsp · session · context · config · file-io · tools), standalone DLLs | Enabled |
| Tests | tests/ ships host_api_test and smoke_test, integrated with CTest | Enabled |
| Docs | docs/tutorial, docs/reference (commands, plugin-abi) | Published |
| Examples | examples/example_plugin shows a plugin template | Available |
| Dependencies | Conan2, boost/1.86.0, openssl/3.4.1 | Configured |
| Build system | CMake 3.21+, Ninja, LLVM/Clang | Configured |
| Build system | CMake 3.21+, Ninja, LLVM/Clang, CMakePresets | Configured |
| License | GNU GPL v3.0 | Confirmed |
The website reflects dstalk's current README roadmap and avoids presenting planned capabilities as already complete.
+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.
| Phase | Scope | Status |
|---|---|---|
| Phase 1 | Project skeleton, CMake build, DLL exports, frontend main loop | Current |
| Phase 2 | HTTPS networking, DeepSeek API integration, basic chat | In progress |
| Phase 3 | Streaming output, multi-turn sessions, file tools, CLI experience polish | Planned |
| Phase 4 | SDL3 GUI, plugin system, LSP integration | Planned |
| Skeleton | Project skeleton, CMake/Ninja build, Conan dependencies, DLL exports, frontend main loop | Done |
| Plugin host | Plugin loader, service registry, event bus, configuration; 9 core plugins (deepseek · anthropic · network · lsp · session · context · config · file-io · tools) | Done |
| Chat capability | HTTPS networking, DeepSeek / Anthropic API adapters, streaming output, multi-turn sessions, file I/O tools | Available |
| GUI frontend | SDL3 graphical window (DSTALK_BUILD_GUI), sharing the same plugin host as the CLI | In progress |
| Next phase | Deeper LSP integration, third-party plugin SDK, cross-platform distribution, ongoing documentation | Planned |
dstalk is an open project. Developers interested in C/C++, terminal UX, AI API adapters, GUI, documentation, and testing are welcome to participate.
Good starting points include build scripts, error handling, CLI interaction, streaming output, file tools, and cross-platform compatibility.
Installation notes, config templates, API examples, and real usage scenarios all help new users get started faster.
If you care about the SDL3 GUI, plugin system, LSP integration, or multi-model adapters, issues and design suggestions are welcome.
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.
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.
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.
基于 DeepSeek V4 大模型、兼容 OpenAI / Anthropic API 的 AI 编程 CLI。核心采用 C11 / C++20 编写,以 dstalk-core.dll 暴露稳定 C ABI,让 CLI、GUI 和第三方工具共享同一套 AI 编程能力。
+基于 DeepSeek V4 大模型、兼容 OpenAI / Anthropic API 的 AI 编程 CLI。核心采用 C11 / C++20 编写,以 dstalk-core.dll 作为插件宿主暴露稳定 C ABI,9 个功能插件 (AI、网络、LSP、会话、文件、工具等) 编译为独立 DLL,通过统一接口接入 CLI、SDL3 GUI 与第三方宿主。
dstalk 对标 Claude Code、OpenCode、KiloCode,但选择系统级实现和 CDLL 架构,重点优化启动速度、运行时依赖、可嵌入能力和长期驻留体验。
+dstalk 对标 Claude Code、OpenCode、KiloCode,但选择系统级实现和插件宿主架构,重点优化启动速度、运行时依赖、可嵌入能力和长期驻留体验。
核心以 C11 / C++20 构建,目标是毫秒级启动和更低内存占用,适合终端长期交互。
公开 dstalk_init、dstalk_chat、dstalk_file_read 等 C 函数,方便 C/C++、Python、Rust、C#、Go 嵌入。
以 DeepSeek V4 为核心,同时兼容 OpenAI / Anthropic 风格接口,通过配置切换 base_url、api_key 与模型。
当前 CLI 使用 ANSI 终端 UI,支持自然语言对话、模型切换、文件读写、会话保存与恢复。
CLI 和 GUI 不持有业务逻辑,统一调用 dstalk-core.dll,后续可以扩展更多宿主。
项目采用 GNU GPL v3.0,适合学习、二次开发和围绕本地工作流做深度定制。
内置 DeepSeek 与 Anthropic 两个 AI 插件,兼容 OpenAI 风格接口;通过 config.toml 中的 ai.provider 一键切换。
dstalk-cli 提供 ANSI 终端 UI,dstalk-gui 基于 SDL3 跨平台窗口,共享同一组核心能力。
核心仅做插件加载、服务注册、事件总线和配置管理;AI、网络、LSP、会话等能力均为独立 DLL,可以替换或扩展。
项目采用 GNU GPL v3.0,附带示例插件、单元测试与教程文档,适合学习、二次开发和本地工作流定制。
dstalk-core.dll 提供网络通讯、AI 接口适配、文件读写和会话管理;前端层只负责交互体验。GUI 目录已预留,根 CMake 当前先启用 CLI 与核心库。
+dstalk-core.dll 作为插件宿主,负责插件加载、服务注册、事件总线和配置管理;AI、网络、LSP、会话、文件 IO、工具等 9 个功能插件编译为独立 DLL,前端只通过 C ABI 触达核心能力。GUI 通过 CMake 选项 DSTALK_BUILD_GUI 启用。
┌─────────────────────────────────────────────┐
-│ Frontends │
-│ dstalk-cli (ANSI UI) dstalk-gui (SDL3) │
-│ 当前构建启用 路线图推进 │
-└───────────────┬─────────────────────────────┘
- │ C ABI
-┌───────────────▼─────────────────────────────┐
-│ dstalk-core.dll │
-│ API / Session / File I/O / AI Adapter │
-└───────┬──────────────┬──────────────┬────────┘
- │ │ │
- Boost.JSON HTTP Client OpenSSL TLS
- Boost.Asio / Beast
+┌─────────────────────────────────────────────────────┐
+│ Frontends │
+│ dstalk-cli (ANSI UI) dstalk-gui (SDL3) │
+└───────────────────────┬─────────────────────────────┘
+ │ C ABI
+┌───────────────────────▼─────────────────────────────┐
+│ dstalk-core.dll — Plugin Host │
+│ Plugin Loader · Service Registry · Event Bus · │
+│ Config Manager │
+└──┬───────┬───────┬───────┬───────┬───────┬──────────┘
+ ▼ ▼ ▼ ▼ ▼ ▼
+ deepseek anthropic network lsp session context
+ (ai) (ai) (http) client
+ ▼ ▼ ▼
+ config file-io tools
+ │ │ │
+ └── Boost.JSON / Boost.Asio / Beast / OpenSSL TLS ──┘
| 模块 | 当前技术 | 状态 |
|---|---|---|
| 核心库 | C11 / C++20,dstalk-core.dll,公开 C ABI | 已启用 |
| 核心库 | C11 / C++20,dstalk-core.dll,插件宿主,公开 C ABI | 已启用 |
| CLI 前端 | ANSI 终端 UI,调用 dstalk/dstalk_api.h | 已启用 |
| GUI 前端 | SDL3 图形化前端 | 路线图 |
| GUI 前端 | SDL3 图形化前端,CMake 选项 DSTALK_BUILD_GUI 启用 | 已就位 |
| 插件 | 9 个功能插件 (deepseek · anthropic · network · lsp · session · context · config · file-io · tools),独立 DLL | 已启用 |
| 测试 | tests/ 提供 host_api_test 与 smoke_test,CTest 集成 | 已启用 |
| 文档 | docs/tutorial、docs/reference (commands、plugin-abi) | 已发布 |
| 示例 | examples/example_plugin 展示插件开发模板 | 已提供 |
| 依赖管理 | Conan2,boost/1.86.0,openssl/3.4.1 | 已配置 |
| 构建系统 | CMake 3.21+,Ninja,LLVM/Clang | 已配置 |
| 构建系统 | CMake 3.21+,Ninja,LLVM/Clang,CMakePresets | 已配置 |
| 许可证 | GNU GPL v3.0 | 已确认 |
官网按 dstalk 当前 README 的阶段说明呈现,避免把规划功能误写成已完成能力。
+插件宿主、CLI、SDL3 GUI、9 个核心插件、测试与文档已经就位;后续聚焦在能力深化与生态扩展。
| 阶段 | 内容 | 状态 |
|---|---|---|
| Phase 1 | 项目骨架、CMake 构建、DLL 导出、前端主循环 | 当前阶段 |
| Phase 2 | HTTPS 网络层、DeepSeek API 对接、基本对话 | 推进中 |
| Phase 3 | 流式输出、多轮会话、文件读写工具、CLI 体验对齐 | 计划中 |
| Phase 4 | SDL3 GUI 完善、插件系统、LSP 集成 | 计划中 |
| 骨架 | 项目骨架、CMake/Ninja 构建、Conan 依赖、DLL 导出、前端主循环 | 已完成 |
| 插件宿主 | 插件加载、服务注册、事件总线、配置管理;9 个核心插件 (deepseek · anthropic · network · lsp · session · context · config · file-io · tools) | 已完成 |
| 对话能力 | HTTPS 网络层、DeepSeek / Anthropic API 适配、流式输出、多轮会话、文件读写工具 | 已可用 |
| GUI 前端 | SDL3 图形化窗口 (DSTALK_BUILD_GUI),与 CLI 共享插件宿主 | 推进中 |
| 下一阶段 | LSP 集成深化、第三方插件 SDK、跨平台分发与文档持续完善 | 计划中 |
dstalk 是开放项目,欢迎对 C/C++、命令行体验、AI API 适配、GUI、文档和测试感兴趣的开发者一起参与。
可以从构建脚本、错误处理、CLI 交互、流式输出、文件工具和跨平台兼容性开始。
欢迎补充安装说明、配置模板、API 调用示例和真实使用场景,降低新用户上手成本。
如果你关注 SDL3 GUI、插件系统、LSP 集成或多模型适配,欢迎提出设计建议和 issue。
核心、CLI、SDL3 GUI 与 9 个插件 (AI、网络、LSP、会话、文件、工具等) 都欢迎补丁,跨平台兼容与构建脚本也有空间。
参考 examples/example_plugin 和 docs/reference/plugin-abi.md,通过 C ABI 注册新服务,把自己的模型、工具或数据源接入 dstalk。
docs/tutorial、docs/reference 已经成形,欢迎补充教程、命令速查、插件 ABI 说明,以及 host_api_test / smoke_test 的覆盖面。