beartackler/dsh-bridge--packages-dsh-bridge ↗★ 0
dsh-bridge
Familiar-face commands, connectors flow, and the trust layer for DeepSeek Harness, delivered as one DSH plugin.
AI 분석
核心用途是为 DSH 提供统一的命令交互界面、连接器管理和信任安全层。适合需要标准化斜杠指令和连接器流控制的系统集成任务。
설치
검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗
dsh-bridge plugin package
The DSH plugin behind the dsh-bridge project: familiar-face slash commands
(/bridge-help, /bridge-connect, ...), the connectors flow, and the trust-layer
integration, delivered as one Cordis plugin for DeepSeek Harness.
See CHARTER.md at the repo root for mission and non-negotiables,
docs/research/dsh-capability-seams.md for every DSH API this package touches,
and docs/specs/commands/*.md for per-command behavior.
Layout
| Path | Role |
|---|---|
src/index.ts | Plugin entry (name, inject, Config, apply). Registers the command surface; each command module mounts at a marked slot. |
src/lib/types.ts | Shared interfaces: BridgeCommand, CommandResult, BridgeContext. No global state; the context is injected. |
src/lib/output.ts | Markdown helpers: tables, key-value cards, text severity badges. ASCII only, no emoji. |
src/lib/paths.ts | Credential/config path constants from the /connect detection matrix. Existence and shape checks return metadata only, never secret contents. |
src/lib/scan-client.ts | Typed wrapper that spawns tools/scan (Node subprocess) and parses its JSON verdict into typed findings. |
src/lib/registry.ts | Phase-1 command descriptor table with typed stubs. |
test/self-test.ts | node:test suite covering each module's basic contracts. |
Build
npm install # devDependencies only: typescript, @types/node, peer packages
npm run build # tsc -> dist/
Peer dependencies @deepseek-ai/cordis and @deepseek-ai/schemastery are also
declared as devDependencies so type-checking works in-repo while staying
peer-only for consumers.
Test
npm test # builds, then runs node --test dist/test/self-test.js
The scan-client tests spawn the compiled scanner at tools/scan/dist/index.js.
Build it first if it is missing:
cd ../../tools/scan && npm install && npm run build && cd ../../packages/dsh-bridge
Without the scanner build, those tests skip; everything else still runs.
Run inside DSH (dev loop)
pnpm dsh web --patch ./cordis.yml # overlay mounting this package by path
The overlay snippet ships with phase 2 when the first command goes live.
Until then the package is exercised through npm test.
Conventions this package enforces
- Command names are
[a-z][a-z0-9_-]*: the namespace is/bridge-*./bridge:installis not parseable by the DSH slash-command grammar and is never registered. - Every unverified DSH API touchpoint carries a
// VERIFY()comment and a typed stub instead of a guess. - No function in
src/lib/paths.tsreturns file contents; probes return existence, size, mode, and shape verdicts only. Secrets never enter this package (connect spec invariants S1/S3/S12/S13). - No emoji anywhere in source, tests, or output.