deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:a1141171521/dsh-plugin-conflict-guard
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
🛡️ DSH (DeepSeek Harness) 动态插件:安装前检测插件间功能冲突,由用户决定是否继续安装。
在 DSH 中安装新插件(cordis_define)或激活插件(cordis_run)之前,本插件会静态分析新插件声明的能力,与已安装插件登记表及当前实时运行时对比,发现重复占用时弹出询问窗口,点名冲突双方,由你决定"继续安装"或"取消安装"。
DSH 插件(Cordis 动态插件)可以提供服务、注册工具、注入槽位、注册命令/技能/设置命名空间等能力。当多个插件修改同一个功能时,会导致功能冲突甚至不可用。本插件把"冲突检测"提前到安装动作发生之前,而不是装完才发现问题。
tools/pre-execute 瀑布流中拦截 cordis_define / cordis_run,在任何插件被创建或激活之前介入。ctx.provide)、工具(harness.registerTool 等)、槽位(slots.inject / slots.register)settings.register)、命令(commands.register)、技能(skills.register)locale.register)、主题(theme.overrideTokens / theme.register)cordis/dynamic-package / cordis/dynamic-retract 事件跟踪已安装插件及其声明,冲突来源显示为 插件「名字」;tools.schemas()、commands.list()、settings.describe()、skills.list() 等实时快照,冲突来源显示为 现有运行时/其他插件。userQuestions.ask() 弹出询问(普通问答 UI,不经过审批服务),列出每处冲突及占用方;选"取消安装"则拒绝该次安装(deny),选"继续安装"才放行。设置 → 插件 → 插件冲突检测 页签,列出已安装插件的能力声明 chips,并可"立即扫描全部插件冲突"。在 DSH Web GUI 会话中,作为动态插件加载:
cordis_define:plugin: { kind: 'new', idPrefix: 'conf' },code.host 填 src/host.js 的内容,code.client 填 src/client.js 的内容(均为纯 JS 函数体,无 import/JSX/TS)。cordis_run:激活返回的 pluginId / packageId,在 Run 卡片上允许授权。设置 → 插件 → 插件冲突检测 即可使用。demo-feature)→ 无冲突,静默放行。插件「A」;选"取消安装"则定义被拒绝。service already registered)——正是本守卫要拦截的冲突类型。MIT
DSH plugins (Cordis dynamic plugins) can provide services, register tools, inject slots, register commands/skills/settings namespaces, and more. When multiple plugins touch the same capability, features can conflict or silently break. This plugin moves conflict detection before the install action happens, instead of discovering problems after installation.
cordis_define / cordis_run in the tools/pre-execute waterfall, before any plugin is created or activated.cordis/dynamic-package / cordis/dynamic-retract) plus live runtime snapshots (tools.schemas(), commands.list(), settings.describe(), skills.list()).userQuestions.ask() (plain question UI, independent of the approval service), listing each conflict and its owner; "cancel" denies the install, "continue" allows it.Settings → Plugins → Plugin Conflict Detection tab with installed-plugin claims and a one-click full scan.Load as a dynamic plugin in a DSH Web session:
cordis_define with plugin: { kind: 'new', idPrefix: 'conf' }; code.host = contents of src/host.js, code.client = contents of src/client.js.cordis_run the returned pluginId / packageId and approve on the Run card.Settings → Plugins → Plugin Conflict Detection.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。