New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@sofagent/dsh-plugin-kit

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sofagent/dsh-plugin-kit

DSH 适配层基座——把 cordis-plugin-sofagent-* 的 98 行样板收敛成 createSofagentPlugin() 一次调用(正常 npm 发布物:六款原子插件以包名 @sofagent/dsh-plugin-kit 依赖它)

latest
npmnpm
Version
1.6.0
Version published
Weekly downloads
76
-90.07%
Maintainers
1
Weekly downloads
 
Created
Source

@sofagent/dsh-plugin-kit

DSH 适配层基座——把 7 个 cordis-plugin-sofagent-* 的样板(pluginMeta / 懒加载 invoke / apply 三段式)收成一次 createSofagentPlugin() 调用。适配层红线(不 import 宿主类型 / 缺席降级不抛 / 桥接懒加载)见 src/index.ts 头注,seam 契约见 ../SEAMS.md。

invoke 签名:位置参数透传

invoke(...args) 把位置参数逐位原样透传给桥接包的 @public API——不重组、不命名、不包装。第 n 个入参落在目标函数第 n 个形参:

// 桥接 @sofagent/audit.runRules 时(位置签名逐位对齐)
await invoke(diffFiles, logEntries, task, strict, silent, commitMsg, config, ...)
//   ≡ runRules(diffFiles, logEntries, task, strict, silent, commitMsg, config, ...)

多包桥接(bridges)按声明序解析,调用第一个可用包(同款位置透传);全部不可用才 throw(错误含逐包原因),部分可用即部分成功(仅降级日志)。

FAQs

Package last updated on 15 Oct 2026

Related posts