maque2333/dsh-profile-manager--packages-cli ↗★ 0
dsh-profile-manager
dshm — manage DeepSeek Harness profiles as instances: CLI (dshm) + Cordis bundle (ctx.profileManager, profile_* tools, /profile command, /profile-manager panel)
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:maque2333/dsh-profile-manager#fb4ab66eb32a1393e06f0f367a84e21ffe715bb5&path:packages/cli说明文档
阅读完整 README ↗dsh-profile-manager (dshm)
Profiles as instances —— 管理 DeepSeek Harness 的 profile(定义)和它们的运行实例。
dshm 是一个开源的 CLI + Cordis 插件,把 DSH 的 profile 当一等对象管理:list、show、import/export、start、stop、restart、status、delete——还带一个 Web 面板和一组模型工具,供可视化管理或 agent 直接调用。
为什么需要它
官方 dsh CLI 只提供底层原语:
dsh plugin --profile add
# 创建 + 装插件
dsh --profile web --port N # 启动
……但它没有 import/export 格式、没有注册表视图、没有进程(实例)管理。dshm 补上这块,引入了 Instance(实例) 概念:
profiles/writing/ # profile(定义)—— 永远只有一份
├─ writing-1 (:3082) # 运行实例(0~N 个)
└─ writing-2 (:3083) # 同一份菜谱,开第二桌
安装
npm install -g dsh-profile-manager
依赖:
- Node.js ≥ 20
- 可用的
dsh(0.1.0-rc.x)在PATH上 pnpm在PATH上(仅import/bootstrap需要)
快速开始
dshm list # 列出所有 profile + 它们的实例
dshm import writing.yaml # 从定义文件安装一个 profile
dshm start writing # 启动实例(web 形态自动分配端口)
dshm status # 实时状态
dshm stop writing # 优雅停止
dshm bootstrap # 创建并启动 manager(Web 面板)profile
命令
| 命令 | 说明 |
|---|---|
dshm list | 列出全部 profile:形态、bundles、依赖、实例状态 |
dshm show | 单个 profile 的 manifest + patch 层 + 依赖 |
dshm import [--name N] [--force] [--allow-builds] | 从 dshm-profile.yaml 安装 profile 及其全部包 |
dshm export [-o 文件] |