DeepSHPlugins
dsh-firstrun 專案預覽
GITHUB / COMMUNITY PROJECT

dsh-firstrun

生態與開發TypeScriptMIT

DeepSeek Harness 首次執行體檢:檢查 Node/pnpm/dsh 工具鏈、home、profile、API Key(只顯示名稱、絕不顯示值)、工作區可寫性與 npm 登錄檔,並給出可執行下一步——CLI + agent 可呼叫 quickstart 工具,dsh-firstrun/v1 報告,零執行時依賴。

1 Starszoahdev 更新時間 2026-08-18
訪問 GitHub 倉庫
dsh-firstrun 專案預覽

專案介紹

中文

DeepSeek Harness 首次執行體檢:檢查 Node/pnpm/dsh 工具鏈、home、profile、API Key(只顯示名稱、絕不顯示值)、工作區可寫性與 npm 登錄檔,並給出可執行下一步——CLI + agent 可呼叫 quickstart 工具,dsh-firstrun/v1 報告,零執行時依賴。

English

First-run health check for DeepSeek Harness: verifies Node/pnpm/dsh toolchain, home, profile, API key (names only, never values), workspace writability and npm registry, then prints actionable next steps — CLI plus an agent-callable quickstart tool, dsh-firstrun/v1 reports, zero runtime deps.

專案資訊與收錄訊號

快照 2026-09-11
作者 / 組織
zoahdev
倉庫
zoahdev/dsh-firstrun
GitHub Stars
1
Forks
0
開發語言
TypeScript
許可證
MIT
最近推送
2026-08-18
Manifest
資料中檢測到宣告

公開倉庫不自動等於可商用;許可證與當前相容性以原專案文件為準。Manifest 和資料評分不構成安裝安全認證。

資料評分

51/ 100
維護活躍
84
文件與實用資訊
85
生態關注度
9
安裝便捷訊號
80
專案宣告訊號
100

README 含完整安裝與使用說明;關注度尚低(1)。

評分來自已有資料快照的五維模型,僅作瀏覽參考,不是實際使用評測或安全檢測結論。

安裝與使用

所有專案資料與許可均以對應 GitHub 倉庫為準。

dsh plugin --profile web add github:zoahdev/dsh-firstrun

複製命令不會自動執行。請先閱讀倉庫文件,確認環境要求與許可證。

專案截圖

倉庫 README

GitHub 原文

已儲存的倉庫文件快照;文件抓取時間未記錄,可能與上方目錄介紹處於不同版本。安裝前請核對當前倉庫說明。

儲存庫檔案保留原文,指令與授權文字不作自動改寫。

dsh-firstrun

npm

CI License: MIT dsh-plugin

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.

Install

dsh plugin add dsh-firstrun

Or run standalone:

npx dsh-firstrun

CLI

dsh-firstrun [--json]
  • Prints a check-by-check report with → next steps.
  • Exit codes: 0 ready, 1 needs attention, 2 usage error.
npx dsh-firstrun
npx dsh-firstrun --json

In-harness usage (agent-callable)

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"
}

Checks

CheckVerifiesStatus when missing
nodeNode.js on PATHfail
pnpmpnpm on PATHfail
dshdsh CLI on PATHfail
homeHOME / USERPROFILE setfail
profileDSH_HOME or ~/.dsh existswarn
api-keyone of the API key env vars is set (values never shown)fail
workspacecurrent directory is writablewarn
registrynpm registry config resolveswarn

Why it exists

  • The official repo's first-hour failures are overwhelmingly setup friction (missing toolchain, missing key, network); most users don't know what to check first.
  • Existing tools diagnose plugin health (dsh-plugin-doctor) and network (dsh-cn-boot); this one closes the loop with a single user-facing checklist + next steps.
  • Zero runtime dependencies, read-only, values never printed.

Development

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.

License

MIT © 2026 zoahdev


dsh-firstrun(中文)

DeepSeek Harness(dsh)的首次运行体检:一条命令告诉新用户“缺什么、下一步跑什么”。

它检查每个新手第一小时都会踩的点——Node.js、pnpm、dsh CLI、home 目录、dsh profile、API Key(只显示变量名,绝不显示值)、工作区可写性、npm 注册表——并给出可执行的下一步。零运行时依赖、只读。

安装

dsh plugin add dsh-firstrun

独立使用:

npx dsh-firstrun

CLI

dsh-firstrun [--json]
  • 输出逐项检查报告,带 → 下一步建议。
  • 退出码:0 就绪,1 需要处理,2 用法错误。
npx dsh-firstrun
npx dsh-firstrun --json

在 harness 内使用(agent 可调用)

对 agent 说:

帮我体检一下环境,看看还缺什么。

工具返回 dsh-firstrun/v1 报告(结构见英文版 JSON 示例)。

检查项

检查验证内容缺失时状态
nodeNode.js 在 PATHfail
pnpmpnpm 在 PATHfail
dshdsh CLI 在 PATHfail
homeHOME / USERPROFILE 已设置fail
profileDSH_HOME 或 ~/.dsh 存在warn
api-key任一 API Key 环境变量已设置(绝不显示值)fail
workspace当前目录可写warn
registrynpm 注册表配置可解析warn

为什么需要它

  • 官方仓库第一小时的失败绝大多数是环境摩擦(缺工具链、缺 Key、网络问题),多数用户不知道先查什么。
  • 现有工具管插件健康(dsh-plugin-doctor)和网络(dsh-cn-boot);本插件用一份面向用户的清单 + 下一步建议闭环。
  • 零运行时依赖、只读、绝不输出值。

开发

pnpm install
pnpm typecheck
pnpm build
pnpm test
pnpm test:integration

CI 跑 dsh-plugin-doctor 预检、单元测试、打包集成(真实 quickstart 调用)、Windows 全新 profile 的 dsh web 启动冒烟。

许可证

MIT © 2026 zoahdev

Related ecosystem tools

FAQ

  • 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.

使用前核對

安裝步驟、相容版本與授權範圍以原專案當前文件為準。Stars 和評分是快照中的導航訊號。

安裝與排錯 · 專案問題反饋

同類專案