dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
面向 Agent 的 DeepSeek Harness 插件升级与排障工具:分析版本差异、迁移代码、验证构建与运行,并诊断 profile、依赖和配置问题。
中文 | English
DSH Doctor is an upgrade and troubleshooting tool for DSH plugin developers and agents. It finds what needs to change during an upgrade, handles changes that are known to be safe, and then checks dependencies, build output, installation, and activation.
When a change depends on the plugin's business logic, Doctor calls it out for the agent or developer instead of guessing. Every edit is previewed and backed up first, and runtime checks use a temporary DSH environment rather than the developer's everyday profile.
This is a community-maintained third-party project, not an official DeepSeek project. The current migration scope is DSH 0.1.1 / 0.1.2 / 0.1.5 → 0.1.7. The default catalog exactly covers
dsh-v0.1.1-rc.2→dsh-v0.1.7-rc.2(cumulatively including every earlier rule), alternate catalogs start fromdsh-v0.1.2-rc.1anddsh-v0.1.5-rc.2, and the 0.1.2 and 0.1.5 catalogs remain as history. Differences outside those catalogs still require a separate investigation and are not proven compatible by the catalog.
| Scenario | What DSH Doctor provides |
|---|---|
| Upgrade a plugin | Scans source, dependencies, manifest, client graph, patches, and build output; applies exact catalog-confirmed migrations and leaves semantic work to the agent |
| Verify a migration | Runs static reanalysis, dependency synchronization, build/test scripts, real tarball packaging, and temporary-profile installation and activation checks |
| Diagnose a DSH environment | Checks profile layers, plugin versions and peers, lockfile, bundles, patches, client contracts, duplicate mounts, and DSH CLI/Harness version drift |
| Recover safely | Compares before/after baselines, checks compatible updates, generates and verifies quarantine overlays, and records dependency and configuration impact before removal |
Agents can orchestrate these capabilities through the skill, while other tools can integrate the same structured CLI workflows.
Send this prompt to your agent:
Install this skill: https://github.com/bruc3van/dsh-doctor, and tell me how to use it.
You can also install the repository's dsh-plugin-upgrade skill manually:
npx skills add bruc3van/dsh-doctor
After installation, ask the agent from inside the plugin repository that needs migration:
Adjust and verify this plugin so that it is compatible with DSH 0.1.7.
The skill guides the agent to:
npx skills add installs agent instructions only; it does not install DSH Doctor globally. The skill checks the local CLI and npm registry first. If the local version is unsuitable, it runs a pinned version through npm exec without changing the global installation.
An upgrade request does not itself authorize dropping the old runtime. When compatibility intent is missing, the skill may perform read-only analysis but asks before migration writes, dependency installation, build, or runtime commands. Dual-version mode requires separate evidence for the legacy version and 0.1.7; one 0.1.7 smoke test is not dual-version proof.
DSH Doctor has three parts that constrain one another:
The plugin migration workflow is:
investigate the actual environment
→ catalog-driven analysis
→ reviewed-plan exact changes
→ agent handles semantic changes
→ build and artifact verification
→ temporary-profile installation and activation
→ plugin business-behavior verification
Moving from 0.1.1 to 0.1.7 changes more than package versions. 0.1.2 split legacy owners such as dsh-client-runtime and dsh-host-apiproxy, moving Session, Workspace, Conversation, and pending-interaction capabilities to new controllers, UI packages, or Services. 0.1.7 then moved plugin settings into .volatile() fields of the plugin's own Config (both settingsNamespace and ctx.settings.register are gone), renamed the code-runtime family to ptc-runtime, replaced dsh-agent-presets with declarative presets, and retired the E2B providers. The CLI only auto-edits relationships marked exact; ownership, lifecycle, and business-call changes are reported as MIG_SEMANTIC_API_CHANGE.
With an exact Harness checkout, Doctor also verifies the commits behind the two catalog tags and compares entry ids in the target web profile. The default cumulative catalog works for 0.1.1, 0.1.2, and 0.1.5 plugins; use --from dsh-v0.1.2-rc.1 or --from dsh-v0.1.5-rc.2 only when the plugin is already fully on that version and you want exact source-version evidence. After the additional source interval has been investigated, --target-version can bind dependencies and runtime checks to a newer 0.1.7 target, but it does not extend the catalog's API claims.
| Area | How it is handled |
|---|---|
| JS/TS imports and named re-exports | Uses the TypeScript AST for type-only, aliased, and mixed imports; rewrites only known equivalent symbols |
| Removed packages and retained-package API changes | Checks source and manifest, preserves exports that still exist, and reports symbols that need semantic migration |
| DSH/Cordis version ranges | Checks dependencies, devDependencies, peerDependencies, and resolved versions; existing peer ranges are not widened automatically |
dsh.client and client exports | Checks inject, external, platform, immediately, and exports["./client"] |
| Harness patch targets | Compares old and new bundle entries when an exact Harness checkout is available |
| Build output | Scans lib, dist, build, and out for source/artifact drift |
| Plugin build | Runs existing typecheck, build, test, and pack:check scripts; test/typecheck alone cannot establish artifact verification |
| Installation and activation | Packs the real tarball and installs it into a fresh web profile under a temporary DSH_HOME |
| Profile diagnosis | Composes bundle, profile, home, and CLI overlays in DSH order while preserving field provenance |
| Update, quarantine, and removal | Verifies versions, dependencies, configuration layers, and dependents before producing an explicit operation plan; updates, persistent quarantine, and removal need explicit confirmation |
No legacy string in source, a successful compile, an installable tarball, and correct business behavior are different evidence levels. Doctor does not present one as proof of another.
diagnose, migrate analyze, and static verification are read-only and do not load or execute the inspected plugin;exact by the catalog can be changed automatically; semantic changes are not guessed mechanically;migrate apply uses a reviewed plan outside the plugin root and binds the full analysis, actual target version, and every input-file hash;DSH_HOME instead of installing into the developer's normal ~/.dsh;runtime-verified proves packaging, installation, and basic activation, not UI, Service lifecycle, or business-flow correctness;Requires Node.js ^22.19.0 or >=24.0.0.
# Global installation
npm install --global @bruc3van/dsh-doctor
# Or run one pinned version without changing the global installation
npm exec --yes --package=@bruc3van/dsh-doctor@<version> -- dsh-doctor --help
| Command | Purpose |
|---|---|
dsh-doctor diagnose [--json] [--check-updates] | Diagnose the current profile and installed plugins; normal diagnosis does not use the network |
dsh-doctor migrations list | List the exact migration catalogs bundled with the current CLI |
dsh-doctor migrate analyze / apply / verify | Analyze a migration, apply a reviewed plan, or run static/build/runtime verification |
dsh-doctor baseline create / compare | Save or compare a redacted before/after diagnostic baseline |
dsh-doctor recover <package> --action <action> | Check updates, generate/persist/roll back quarantine, or enter the separate removal workflow |
Use dsh-doctor --help for full options and confirmation requirements. Migration orchestration and semantic-investigation rules live in dsh-plugin-upgrade and its references.
Text output supports Chinese and English. --json uses stable English codes and preserves redacted structured evidence.
| Exit code | Meaning |
|---|---|
0 | No blocking error, or the operation completed and passed its verification level |
1 | Compatibility issues, semantic migration work, or incomplete verification remains |
2 | Argument, environment, or operation failure |
npm install
npm run check
npm pack --dry-run
Tests cover the CLI, configuration composition, diagnosis, redaction, backups and write protection, AST migration, build gates, isolated runtime verification, and recovery. CI runs on macOS, Ubuntu, and Windows with Node.js 22.19 and 24.
Local development, the skill, and the CLI never commit, tag, or publish automatically.