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

dsh-plugin-sub2api

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dsh-plugin-sub2api

DSH plugin: Sub2API gateway in the settings sidebar — credentials, connection status, MCP tool-profile slider (readonly/readwrite/full), logout, and automatic MCP registration. Broad DSH compatibility declared; real support self-checked at runtime.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

dsh-plugin-sub2api

DSH 插件:在设置侧边栏里填 Sub2API 网关地址 + 管理员账号密码,其余全自动 ✓

  • 依赖核心包 sub2api-mcp(所有 MCP 能力都在那里 ✓ 本插件只是 DSH 包装层 ✓)
  • 对外声明支持所有 DSH 版本(宽 peer 范围 ✓)
  • 内部运行时能力自检(src/host/capabilities.js ✓)→ 真实支持度分三档:
    full      凭据存储 + 设置页插槽 + MCP 注入点 全部可用 ✓
    degraded  缺 1~2 项 → 对应功能降级(仍可用 ✓)
    minimal   缺 3 项以上 → 仅宿主兜底 + 打印 CLI 命令 ✓
    

当前状态(如实标注 ⚠️)

部分状态
src/host/capabilities.js 能力自检✅ 已完成,三档判定双向测试通过 ✓
src/host/index.js 宿主入口✅ 已完成(apply + 降级 + 生命周期清理 ✓)
src/host/register.js MCP 注册适配✅ 已完成(API → 配置文件 → 打印命令 三级降级 ✓)
src/host/doctor.js 自检命令✅ 已完成(node src/host/doctor.js ✓)
src/client/index.js 设置页⚠️ 源码级完成,尚未在真实 DSH 里构建+联调 ✗
构建(tsdown)+ 安装验证⬜ 待做(需 DSH 重启周期 ✓)

命令

node src/host/doctor.js          # 能力自检报告(在 DSH 内外都能跑)

设计文档

见 ../../../../docs/PLUGIN-DESIGN.md(含分层、决策记录、兼容策略 ✓)

Keywords

dsh

FAQs

Package last updated on 19 Oct 2026

Related posts