civaapple-alt/mini-dsh--packages-plugins-greeter ↗★ 7

@mini-dsh/plugin-greeter

🚀 Educational & minimalist DeepSeek Harness (DSH) architecture implementation powered by Cordis microkernel. 极简版 DeepSeek Harness 架构实现与学习指南。 适合学习前后端组合插件的开发者,演示路由挂载与插槽卡片交互。

パッケージ
@mini-dsh/plugin-greeter
互換性
未検証
バージョン
0.1.0
ライセンス
MIT
最終更新
2026/08/18

インストール

検証済み bundle がないか、互換性チェックに失敗しています。先にリポジトリの説明を読んでください。 README 全文を読む ↗

ドキュメント

README 全文を読む ↗

@mini-dsh/plugin-greeter

English | 中文

问候服务全栈演示插件(Full-Stack Greeter Plugin)。


插件架构与 Cordis 契约

  1. Host 后端 (src/index.ts):
    • 提供 ctx.greeter(GreeterService);
    • 依赖注入 ctx.inject(['server', 'greeter']),挂载 GET /api/greet?name=... 路由;
    • 依赖注入 ctx.inject(['clientModules']),向 Host 注册自己的前端 Bundle 路径。
  2. Client 前端 (src/client.ts):
    • 依赖注入 ctx.inject(['slots']);
    • 向 main.cards 插槽注册问候交互卡片,点击时异步调用 Host 端的 /api/greet。

对应 DeepSeek Harness (dsh) 模块

  • 对应 dsh 仓库的典型前后端组合包,如 packages/goal/goal-local(后端 Goal 服务)+ packages/client/ui-goal(前端 Goal 卡片)。
  • 异同对比:
    • 架构模式完全一致:后端自治维护能力并声明依赖,前端通过插槽解耦挂载交互卡片。