DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-api-contract

u

dsh-api-contract

Manifest valid1

接口契约助手:解析 OpenAPI 3.x,生成 TypeScript/Python 类型化客户端并检测破坏性变更

hasBundlePatch

dsh-api-contract · 接口契约助手

解析 OpenAPI 3.x(JSON 或 YAML),生成 TypeScript / Python 类型化客户端,并检测两个规范版本之间的破坏性变更。纯 Node 实现,无网络、无外部服务。

提供的工具

工具作用
gen_client解析规范,生成类型化客户端(TS 基于 fetch / Python 基于 requests)
diff_spec对比旧版/新版规范,列出破坏性变更与非破坏性变更

安装

dsh plugin add dsh-api-contract

安装后在 profile 的 package.jsondsh.profile.bundles 中加入 "dsh-api-contract"

用法示例

根据 openapi.yaml 生成一个 TypeScript 客户端
→ 调用 gen_client(spec="openapi.yaml", lang="typescript", outDir="./src/api")

升级接口前看看有没有破坏性变更
→ 调用 diff_spec(oldSpec="openapi.v1.json", newSpec="openapi.v2.json")

破坏性变更检测项

  • 删除接口路径、删除方法
  • 删除必填参数、参数类型变化
  • 移除 2xx 响应、响应结构变化

说明

  • 支持 JSON 与常见块结构 YAML(嵌套映射、序列、$ref、内联 []/{}、字面量块 |)。
  • Python 客户端依赖 requestspip install requests)。

安装

dsh plugin add github:uckkk/dsh-api-contract

安装即在本机运行第三方代码,请自行审阅源码。

安装

dsh plugin add github:uckkk/dsh-api-contract

使用

安装后在会话中调用该插件注册的工具即可。

许可

MIT

安装即在本机运行第三方代码,请自行审阅源码。

Versions

Latest versionPublishedSize
0.1.0

Comments

Loading…

From the same category

archify

by tt-a1i

Agent skill for beautiful, verifiable architecture, workflow, sequence, data-flow, and lifecycle diagrams—self-contained HTML with motion and crisp export.

Workflow & AutomationTools & CapabilitiesManifest valid

69.9k

3.5k/wk

MIT

JavaScript

Sep 22, 2026

dsh plugin --profile web add @tt-a1i/archify-dsh

DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.

Tools & CapabilitiesManifest valid

41.7k

251/wk

MIT

Aug 24, 2026

dsh plugin --profile web add dsh-plugin-reactive-resume

by Tencent

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

Development & InfrastructureTools & CapabilitiesManifest valid

28.9k

831/wk

NOASSERTION

Go

Sep 22, 2026

dsh plugin --profile web add @wxg-prc-cpg/dsh-weknora

by anywhere-labs

为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。

Tools & CapabilitiesManifest valid

28.5k

170/wk

MIT

TypeScript

Sep 23, 2026

dsh plugin --profile web add dsh-plugin-desktop

by titanwings

Distilly — Distill how they think into reusable Skills for any Agent or Bot. Formerly Colleague Skill(原同事 Skill).

Tools & Capabilities

25k

MIT

TypeScript

Sep 22, 2026

Index only — not installable

by Nagi-ovo

Enhancement suite for Gemini, AI Studio, Claude & ChatGPT — plus a prompt manager for any websites, DeepSeek Harness included. / 面向 Gemini、AI Studio、Claude 与 ChatGPT 的增强套件;其中的提示词管理器可用于任意网站,如 DeepSeek

Tools & Capabilities

20.1k

GPL-3.0

TypeScript

Sep 21, 2026

Index only — not installable