跳到主内容

dsh-cordis-client-runner 使用指南

动态双半插件包的浏览器端运行时,监听host事件请求并将插件定义转为浏览器可执行的闭包,通过守卫代理注入服务后挂载到模块加载器

本文为派生内容(基于 wiki / faq / compatibility_json 自动组装),非 AI 即时创作。

本文由本站基于该插件已收录的字段自动派生(wiki / faq / compatibility_json / readme),非 AI 即时创作。每节末尾标源字段。

快速上手

动态双半插件包的浏览器端运行时,监听host事件请求并将插件定义转为浏览器可执行的闭包,通过守卫代理注入服务后挂载到模块加载器

— 源: plugins.ai_summary

安装与验证

dsh plugin --profile web add npm:@deepseek-ai/dsh-cordis-client-runner

复制以上命令在 DSH Web Profile 内运行。安装完成后在「插件列表」启用即可。

— 源: plugins.install

关键要点

  • subscribe() / getSnapshot() / isLoaded(id) — what this page has loaded. isLoaded is page-local truth, never the host's "it is running".
  • The plugin declares remote.dynamic, so it stays parked until the host-side namespace exists rather than loading packages whose host half it could never reach.
  • Slot admission (allow/deny lists per deployment) has no carrier: the dispatched row declares services, not target slots.
  • Guard whitelists are hand-mirrored twins of the host-side sandbox facade; sharing one specification is deferred.

— 源: plugin_wiki.readme_zh (fallback readme_raw)

踩坑提醒

安装前请审阅上游仓库;本指南基于已收录字段自动派生,可能滞后于最新版本。如发现与官方文档冲突,请以上游为准。

— 来源:通用规则