packages/dsh-plugin-manager
zhu1090093659/dsh-web设置 → 插件 分区里的插件管理 Tab:从 npm/git 安装带进度、下次启动生效的启停开关、安装冲突对账可撤销、失败一键转交修复会话。
任务感知的 DSH 插件导航:聚合 GitHub topic 与社区清单建立本地索引,按 28 类中英能力检索;提供 commit 级静态风险审计、用户确认后的锁定版本安装、组合验证与恢复流程。
DeepAtlas helps DeepSeek Harness (DSH) users decide whether a plugin capability change is worth making, with a reviewable record of discovery, verification, and installation. Describe a goal such as cross-session memory, messaging, or browser automation, and the DSH host model can call DeepAtlas on demand to compare the active profile with suitable candidates, match evidence, and risk signals.
After you select a candidate, DeepAtlas reviews a full commit, checks compatibility, and enters a pinned installation and recovery flow only after explicit approval. The current release works on demand within the conversation. Plugin discovery requires one user-confirmed complete scan before first use, while indexes, audit records, and installation state remain local.
中文 · Architecture · Security · Compatibility · Changelog
DeepAtlas exposes six tools to the active DSH conversation. After you ask to find a plugin, compare candidates, or check a capability gap, the host model can select deepatlas_find or deepatlas_advise from the visible tool schemas. An explicit request such as “use DeepAtlas to find a plugin” provides more predictable invocation. Continuous task awareness and controlled proactive suggestions are planned for v0.2.4.
| Stage | Trigger | Runtime behavior |
|---|---|---|
| Ecosystem scan | The user confirms deepatlas_scan | The active DSH process reads GitHub and community sources, then builds or refreshes the local index |
| Task retrieval | The user raises a plugin-discovery need and the host model selects a DeepAtlas tool | DeepAtlas interprets this request and canonical capabilities, then searches the existing local index |
| Capability advice | The host model calls deepatlas_advise | The tool compares the active profile, returning a silent result when coverage is sufficient and suggestions for a clear gap |
| Audit and install | The user selects a repository and full commit, then confirms each stage | DeepAtlas performs static audit, compatibility checks, snapshotting, pinned installation, and recovery |
Natural-language tool selection is performed by the active DSH model and can vary with the model, prompt, and visible tool set. Initial indexing and later refreshes run through the confirmed scan tool; routine retrieval reads the local index.
The current compatibility envelope is:
^22.19.0 || >=24.0.00.1.1-rc.1 / 0.1.1-rc.2pnpm available on PATH because DSH forwards plugin-management commands to pnpmnode --version
pnpm --version
dsh --version
For a first DSH run, start the shipped Web profile:
npx -y @deepseek-ai/dsh@0.1.1-rc.2 web
This example installs the pinned public release into web:
dsh plugin --profile web add https://codeload.github.com/Oscar-Williams/dsh-deepatlas/tar.gz/refs/tags/v0.2.3
This HTTPS address fetches the pinned release consistently across Windows, WSL, and common restricted networks. Replace both web occurrences with headless or another profile name when appropriate.
dsh --profile web --dump-config
The output should contain a dsh-deepatlas / deepatlas layer. Restart the selected profile afterward:
dsh web
Send this request inside DSH:
Call
deepatlas_status. If no index exists yet, run one complete scan.
The local index is the plugin candidate catalog used by DeepAtlas retrieval. After you confirm and start a complete scan, DeepAtlas reads GitHub and community sources, merges duplicate repositories, collects candidate evidence, and writes that catalog locally. The result includes the candidate count, source health, and index location. Maintainer verification results live in Evaluation status.
With a stable network and a GitHub token, a complete scan typically finishes within several minutes. The anonymous validation run on 2026-08-23 took 15 minutes 46 seconds, mostly while waiting for GitHub Search quota. Actual duration varies with quota, network conditions, and ecosystem size. The scan runs in the active DSH process, so keep the process and network available until it completes.
For consistently fast scans:
api.github.com, github.com, and codeload.github.com reachable.DEEPATLAS_GITHUB_TOKEN in the environment that starts DSH, then confirm githubAuth: authenticated with deepatlas_status. See GitHub's REST API rate-limit documentation.incremental=true for routine refreshes after the first index.npm run scan to view partition pages and live fetch progress.Example requests:
GitHub / community sources
│
▼
local ecosystem index ───────→ deepatlas_status
│
task text + canonical capabilities
│
├─────────────────────→ deepatlas_find
│ candidates / evidence / overlap
│
└─────────────────────→ deepatlas_advise
silent when covered / suggest on gap
│
selected full commit SHA ─→ deepatlas_audit ────────┤
▼
user reviews and approves
│
▼
deepatlas_install
snapshot → install → compose check → recovery
The host model interprets the task and supplies canonical capabilities. Deterministic code owns indexing, ranking, audit rules, and installation gates.
| Tool | Trigger and purpose | Main output |
|---|---|---|
deepatlas_scan | Complete or incrementally refresh the ecosystem index after user confirmation | Item count, source health, index location |
deepatlas_status | Inspect index age, TTL, source state, and Top 10 on request | Current state, auth mode, metadata coverage |
deepatlas_find | Called by the host model for the current need; retrieve by task and capabilities | Match evidence, quality score, overlap notes |
deepatlas_advise | Called by the host model when needed; compare task needs with installed plugins | Silent result or 1–3 suggestions |
deepatlas_audit | Audit after the user selects a repository and full 40-character SHA | Risk level, evidence, compatibility, auditedRef |
deepatlas_install | Plan or execute from the audit record after explicit user approval | State trace, command, execution/composition/activation flags |
Recommended order: status → scan → find → audit → explicit approval → install.
| Option | Default | Description |
|---|---|---|
dataDir | empty | Uses the active DSH_HOME/deepatlas, then ~/.dsh/deepatlas when DSH_HOME is unset |
installProfile | web | Profile used for duplicate detection, installation, and composition checks |
indexTtlHours | 24 | Age at which status recommends a refresh |
minStars | 0 | Minimum star threshold for candidates |
githubTokenEnv | DEEPATLAS_GITHUB_TOKEN | Environment variable that contains an optional GitHub token |
dryRun | true | Produces the complete plan and command while preserving the profile |
To enable real installation, override the deepatlas row in $DSH_HOME/profiles/<profile>/cordis.patch.yml. A DSH row patch replaces the full config, so retain every field:
- id: deepatlas
config:
dataDir: ''
installProfile: web
indexTtlHours: 24
minStars: 0
githubTokenEnv: DEEPATLAS_GITHUB_TOKEN
dryRun: false
Run dsh --profile web --dump-config to inspect the effective value. DEEPATLAS_HOME can explicitly share one data directory across profiles; dataDir has the highest priority.
DeepAtlas enforces these conditions in the tool layer:
owner/repo and a full 40-character commit SHA.target + commit + audit-v3 content-addressed cache entry, then recalculates compatibility for the current runtime.dryRun=true enters PLANNED and returns the exact pinned command for review.Green and yellow results summarize signals observed by the current rules. Repository provenance, dependencies, and runtime behavior remain part of the overall review.
| Gate / dataset | Current result | Coverage |
|---|---|---|
| RetrievalDev (frozen dev-30) | Recall@20 96.7%; Top3-SA 93.3%; mustNot@3 0 | Deterministic regression on known development intents |
| Independent holdout-15 | Top3-SA 26.7% | Static retrieval baseline on colloquial tasks |
| NormalizedIntentRetrieval (120 paraphrases) | 50.8% static → 85.0% with canonical capabilities | Retrieval gain from the capability channel |
| AdvisorSafety fixture | recommend 5/5; silence 5/5; false positives 0 | Deterministic quiet-advisor regression |
| EvidenceGold v1 | accepted precision 100%; recall 100%; must-not false accepts 0 | Publisher provenance, word boundaries, and conflict regression |
| EvidenceFullScan (2026-08-24) | schema v2; structural/release Gate PASS | Same-run full scan of both sources and a pinned publisher cohort; sanitized receipt |
HostIntentGate will independently measure the live path from natural language through the DSH host model to a capability array. The current 85.0% result measures retrieval after canonical capabilities have entered the tool parameters; EvidenceGold calibrates provenance, accepted claims, and false-accept boundaries. Both evaluations use frozen datasets, replayable records, and independent gates. Scale figures are dated release snapshots; the user's latest local scan represents the current ecosystem view.
0.1.1-rc.1 / 0.1.1-rc.2 and Node 22.19 / 24.lib/ artifacts.dryRun=true provides the safe default; users enable real installation per profile.Every new DSH RC enters a compatibility canary covering dependency contracts, Windows/Linux distribution, composition, tool calls, and real startup before the compatibility matrix changes.
Update to another pinned release:
dsh plugin --profile web remove dsh-deepatlas
dsh plugin --profile web add https://codeload.github.com/Oscar-Williams/dsh-deepatlas/tar.gz/refs/tags/v0.2.3
Uninstall:
dsh plugin --profile web remove dsh-deepatlas
Local indexes and audit records remain in dataDir after package removal.
npm ci
npm test
npm run typecheck
npm run typecheck:tests
npm run build
The v0.2.3 stable baseline is 26 test files and 131 tests. CI covers Node 22/24, Windows, Evidence release and precision gates, distribution integrity, tarball installation and boot verification, plus nightly install-by-commit E2E. GitHub installation ships the committed lib/, so source changes must include matching build output.
See the v0.2.x roadmap for milestones, acceptance criteria, and the DSH coordination policy, the Capability Change Transaction design for the transaction model, and the Resolved Environment Preflight specification for the environment evidence layer.
| Context | Name |
|---|---|
| Product | DeepAtlas |
| Full name | DeepAtlas for DeepSeek Harness |
| GitHub repository / DSH package | dsh-deepatlas |
| Chinese description | DSH 本地能力保障与插件导航 |
MIT © 2026 DeepAtlas contributors