dshbox/cordis-rs

dshbox★ 0Rust最后同步: 2026-08-16

在 GitHub 打开

Runtime-agnostic Rust port of Cordis, the plugin framework at the core of DeepSeek Harness — scoped dependency injection, lifecycle-owned effects, events, structured logging. Zero dependencies.

README 摘要

cordis-rs English 简体中文 A runtime-agnostic Rust port of Cordis 4.x — the plugin framework at the core of DeepSeek Harness, vendored there as @deepseek-ai/cordis . This implementation is based on Cordis 4.0.1 from DeepSeek Harness. Its core structure mirrors the original Context / Events / Fiber / Logger / Reflect / Registry / Service modules and preserves automatic activation when dependencies arrive, automatic unloading when dependencies disappear, scoped isolation, effect cleanup, and all five event dispatch modes as closely as Rust allows. Cordis is a context-based plugin framework for applications that need explicit dependency injection, scoped services, lifecycle-managed cleanup, structured events, and configuration-driven plugins. cordis-rs preserves that model while replacing JavaScript-only mechanisms (Proxy, prototype inheritance, callable objects, decorators, and any ) with explicit Rust APIs, Arc , and checked downcasts. Status The crate currently ports the complete core runtime : TypeScript Cordis Rust API Status new Context() / extend() Context::new() / extend() ✅ isolate() and shared labels isolate() / isolate with() ✅ intercept() intercept() / intercepts() ✅ Proxy-bac…

在 GitHub 查看完整 README →
工具/开发cordisdeepseek-harnessdependency-injectiondsh-plugineventsplugin-frameworkportrust

分类