DSH Plugins Marketplace

DSH Plugins

Plugins

/

Development & Infrastructure

/

dsh-typelens

f

dsh-typelens

Manifest valid

Automatic bounded type context and edit diagnostics for DeepSeek Harness

UI (client)hasBundlePatch

DSH TypeLens

Local-first type context and edit diagnostics for DeepSeek Harness.

TypeLens watches successful DSH file reads and edits. After a read, it appends only the complete type declarations needed to understand the visible code. After an edit, it appends bounded TypeScript diagnostics with new errors first. The original tool result always remains intact, and an analysis failure never turns a successful file operation into a failure.

Why TypeLens

  • Automatic context: agents do not have to remember to call an LSP tool.
  • Full declarations: output is ranked, deduplicated, cycle-safe, and never cut mid-signature.
  • Immediate feedback: TS/JS diagnostics arrive directly after writes and edits.
  • Local analysis: TypeLens makes no outbound requests and never persists source-bearing analysis state.
  • Bounded and fail-open: workspace, file-size, timeout, depth, result, cache, and token limits are enforced.
  • Native DSH integration: four explicit tools, lifecycle hooks, health API, and a Web settings section.

Compatibility

Version 0.1.2 is acceptance-tested with DSH 0.1.1-rc.2 on macOS arm64. GitHub CI covers Linux with Node.js 22 and 24. TypeScript, TSX, JavaScript, and JSX are supported. Vue and Svelte script blocks use their optional compiler when available and retain a bounded first-instance-script fallback when it is absent. Template semantics are outside the current analysis boundary. Windows is a compatibility target but is not a 0.1.2 release gate.

Install

DSH delegates profile dependency management to pnpm. Confirm that both commands are available before installing a plugin:

dsh --version
pnpm --version

If pnpm is missing, install it using the official pnpm installation guide, then run:

dsh plugin --profile web add dsh-typelens
dsh plugin --profile headless add dsh-typelens

The npm package is the canonical install source. Use dsh-typelens@0.1.2 to pin this release, or use the verified GitHub release tarball when an explicit archive URL is required.

Restart the affected DSH profile, then verify the composed row:

dsh --profile web --dump-config

The package bundle inserts a typelens row automatically. In DSH Web, open Settings → TypeLens to inspect health, change automatic behavior and limits, or reset in-memory caches and counters.

Upgrade

Update each profile where TypeLens is installed, then restart that profile so the running Host and client load the new package bytes:

dsh plugin --profile web update dsh-typelens --latest
dsh plugin --profile headless update dsh-typelens --latest

Use dsh --profile web --dump-config after restart to confirm the composed typelens row. To remain on an approved release, keep the pinned dependency instead of using --latest.

To remove it:

dsh plugin --profile web remove dsh-typelens

Model-facing tools

  • typelens_lookup_type: find a named declaration relevant to a file.
  • typelens_list_types: list bounded declarations relevant to a file.
  • typelens_check: run bounded file and project diagnostics.
  • typelens_explain: inspect effective configuration, health, circuit state, and source-free counters.

All returned paths are workspace-relative. Explicit file tools require an active DSH session workspace.

Safe defaults

Automatic context is limited to 800 estimated tokens, depth 4, 1.5 seconds, and 2 MiB files. Explicit checks receive 5 seconds. A circuit breaker pauses automatic analysis for 30 seconds after five operational failures in 60 seconds; explicit tools and health remain available. Dependency trees, build output, VCS metadata, coverage, and environment files are denied by default.

See configuration, troubleshooting, and the Chinese guide. The current release gate is recorded in v0.1.2 acceptance.

Installation feedback

After trying TypeLens in a real DSH profile, use the short verified install report to record whether installation and the first context or diagnostic result worked. Include versions and bounded source-free evidence only.

Development

corepack enable
pnpm install --frozen-lockfile
pnpm verify

pnpm verify type-checks, runs the complete test suite, builds both Host and DSH client artifacts, scans for secrets, audits package contents, and creates the tarball under artifacts/.

Agent Reliability Toolkit

TypeLens is one independent part of a small, local-first reliability toolkit:

  • Agent Runtime Proof verifies that a live Agent or MCP runtime matches the artifact you approved.
  • Agent Residue Evidence records task-scoped files, processes, and listening ports left by tests and builds.
  • DSH TypeLens adds bounded type context and edit diagnostics to DeepSeek Harness.

Each project remains separately installable and keeps its own trust boundary.

Security and privacy

TypeLens persists only validated settings under $DSH_HOME/typelens/settings.json with owner-only permissions. Analysis state and counters live in memory. Type context and diagnostics appended to an agent step become part of the next DSH model request, so they follow the privacy policy of your configured model provider. See SECURITY.md for reporting and the full trust boundary.

License

MIT

Comments

Loading…

From the same category

awesome-dsh-plugin

by awesome-dsh-plugin

A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表

Development & Infrastructure

★ 17.7k

CC0-1.0

Python

Oct 1, 2026

Index only — not installable

by 0xsline

DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.

Development & Infrastructure

★ 1.1k

CC0-1.0

Python

Sep 30, 2026

Index only — not installable

by pax-beehive

Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub

Development & Infrastructure

★ 458

MIT

TypeScript

Sep 22, 2026

Index only — not installable

by yjh051108

推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。

Development & InfrastructureManifest valid

★ 167

TypeScript

Sep 18, 2026

dsh plugin --profile web add @dsh-external/dsh-super-injector

by xiajiajun516

DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.

Development & InfrastructureManifest valid

★ 149

MIT

TypeScript

Sep 30, 2026

dsh plugin --profile web add dsh-config-manager

by jigjoy-ai

A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.

Development & Infrastructure

★ 124

MIT

TypeScript

Oct 2, 2026

Index only — not installable