TokenLedger
zh667
Relay-site attributed token usage for DeepSeek Harness — zero config, no credentials
zoahdev/dsh-firstrun
First-run health check for DeepSeek Harness (dsh): verifies Node/pnpm/dsh toolchain, profile, API key (names only), workspace and registry, then prints actionable next steps. Zero runtime deps, read-only. CLI + agent-callable quickstart tool.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:zoahdev/dsh-firstrun
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
First-run health check for DeepSeek Harness (dsh): one command that tells a new user what's missing and what to run next.
It verifies the pieces that trip up every first-hour user — Node.js, pnpm, dsh CLI, home directory, dsh profile, API key (names only, never values), workspace writability, npm registry — and prints actionable next steps. Zero runtime dependencies, read-only.
dsh plugin add dsh-firstrun
Or run standalone:
npx dsh-firstrun
dsh-firstrun [--json]
→ next steps.0 ready, 1 needs attention, 2 usage error.npx dsh-firstrun
npx dsh-firstrun --json
Ask your dsh agent:
帮我体检一下环境,看看还缺什么。 Run a first-run health check:
quickstart.
The tool returns a dsh-firstrun/v1 report:
{
"schema": "dsh-firstrun/v1",
"ok": false,
"summary": { "total": 8, "pass": 5, "warn": 1, "fail": 2 },
"checks": [
{ "id": "node", "name": "Node.js installed", "status": "pass", "detail": "v24.19.0", "nextStep": null },
{ "id": "api-key", "name": "API key configured", "status": "fail", "detail": "None of DEEPSEEK_API_KEY, OPENAI_API_KEY is set", "nextStep": "Store an API key: export DEEPSEEK_API_KEY=... or use the Web Models page" }
],
"generatedAt": "2026-08-18T00:00:00Z"
}
| Check | Verifies | Status when missing |
|---|---|---|
node |
Node.js on PATH | fail |
pnpm |
pnpm on PATH | fail |
dsh |
dsh CLI on PATH | fail |
home |
HOME / USERPROFILE set | fail |
profile |
DSH_HOME or ~/.dsh exists | warn |
api-key |
one of the API key env vars is set (values never shown) | fail |
workspace |
current directory is writable | warn |
registry |
npm registry config resolves | warn |
pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm test:integration
CI runs the dsh-plugin-doctor preflight, unit tests, packed-artifact integration (real quickstart invocation), and a fresh-profile dsh web boot smoke on Windows.
MIT © 2026 zoahdev
DeepSeek Harness(dsh)的首次运行体检:一条命令告诉新用户“缺什么、下一步跑什么”。
它检查每个新手第一小时都会踩的点——Node.js、pnpm、dsh CLI、home 目录、dsh profile、API Key(只显示变量名,绝不显示值)、工作区可写性、npm 注册表——并给出可执行的下一步。零运行时依赖、只读。
dsh plugin add dsh-firstrun
独立使用:
npx dsh-firstrun
dsh-firstrun [--json]
→ 下一步建议。0 就绪,1 需要处理,2 用法错误。npx dsh-firstrun
npx dsh-firstrun --json
对 agent 说:
帮我体检一下环境,看看还缺什么。
工具返回 dsh-firstrun/v1 报告(结构见英文版 JSON 示例)。
| 检查 | 验证内容 | 缺失时状态 |
|---|---|---|
node |
Node.js 在 PATH | fail |
pnpm |
pnpm 在 PATH | fail |
dsh |
dsh CLI 在 PATH | fail |
home |
HOME / USERPROFILE 已设置 | fail |
profile |
DSH_HOME 或 ~/.dsh 存在 | warn |
api-key |
任一 API Key 环境变量已设置(绝不显示值) | fail |
workspace |
当前目录可写 | warn |
registry |
npm 注册表配置可解析 | warn |
pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm test:integration
CI 跑 dsh-plugin-doctor 预检、单元测试、打包集成(真实 quickstart 调用)、Windows 全新 profile 的 dsh web 启动冒烟。
MIT © 2026 zoahdev
dsh-dep-audit - dependency supply-chain hygiene
dsh-quality-score - plugin quality scorecard + full-registry leaderboard
dsh-ecosystem - health scan, impact, trend, live dashboard
dsh-tutorials - bilingual plugin pipeline tutorials
How do I install? dsh plugin add dsh-firstrun or run the CLI directly (see README).
Does it need an API key? No.
Is it read-only? Yes by default; any write/apply is an explicit flag.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: diagnostics。