From 47227d33c2d2bc48f5811fd4a74a26929feb4e08 Mon Sep 17 00:00:00 2001 From: qyh15 Date: Wed, 28 Oct 2026 21:12:09 +0800 Subject: [PATCH] docs: install from this fork instead of the upstream repository The published fork now carries the bundle, so the installation and uninstallation snippets point at newbieQQ/dsh-better-workspace-group and the dependency name it installs as (workspace-groups-local). --- README.md | 10 +++++----- README_ZH.md | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 7adf9d8..f73dabc 100644 --- a/README.md +++ b/README.md @@ -162,14 +162,14 @@ > installed (`dsh` available) with a target profile initialized (e.g. the built-in `web`). ```sh -dsh plugin --profile web add github:z-col/dsh-workspace-groups +dsh plugin --profile web add github:newbieQQ/dsh-better-workspace-group ``` This automatically: -1. Adds `"dsh-workspace-groups": "github:z-col/dsh-workspace-groups"` (pinned to +1. Adds `"workspace-groups-local": "github:newbieQQ/dsh-better-workspace-group"` (pinned to version/commit) to `dependencies` in `~/.dsh/profiles/web/package.json` -2. Appends `"dsh-workspace-groups"` to `dsh.profile.bundles` +2. Appends `"workspace-groups-local"` to `dsh.profile.bundles` 3. Runs pnpm install and validates the bundle layer **Restart the web profile after installing** (both the bundle and the host half only load @@ -184,7 +184,7 @@ Verify the install: ```sh dsh --profile web --dump-config | grep -A3 workspace-groups -# expect: - id: workspace-groups / name: dsh-workspace-groups / config: {} +# expect: - id: workspace-groups / name: workspace-groups-local / config: {} curl http://127.0.0.1:3080/workspace-groups/config # expect: the sidecar YAML parsed as JSON ``` @@ -192,7 +192,7 @@ curl http://127.0.0.1:3080/workspace-groups/config ## Uninstall ```sh -dsh plugin --profile web remove dsh-workspace-groups +dsh plugin --profile web remove workspace-groups-local ``` This removes the dependency from `dependencies` and the matching line from diff --git a/README_ZH.md b/README_ZH.md index 3ee9928..3e33e5a 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -134,14 +134,14 @@ DeepSeek峰谷小组件 等)归入一个「DSH 插件」分类文件夹,点 > (`dsh` 命令可用),并已初始化好目标 profile(如内置 `web`)。 ```sh -dsh plugin --profile web add github:z-col/dsh-workspace-groups +dsh plugin --profile web add github:newbieQQ/dsh-better-workspace-group ``` 这会自动: 1. 在 `~/.dsh/profiles/web/package.json` 的 `dependencies` 加入 - `"dsh-workspace-groups": "github:z-col/dsh-workspace-groups"`(含版本/commit) -2. 在 `dsh.profile.bundles` 末尾追加 `"dsh-workspace-groups"` + `"workspace-groups-local": "github:newbieQQ/dsh-better-workspace-group"`(含版本/commit) +2. 在 `dsh.profile.bundles` 末尾追加 `"workspace-groups-local"` 3. 运行 pnpm 安装并校验 bundle 层 **安装后重启 web profile**(bundle 与 host 半只有在重启后才会被加载): @@ -155,7 +155,7 @@ dsh web ```sh dsh --profile web --dump-config | grep -A3 workspace-groups -# 应出现 - id: workspace-groups / name: dsh-workspace-groups / config: {} +# 应出现 - id: workspace-groups / name: workspace-groups-local / config: {} curl http://127.0.0.1:3080/workspace-groups/config # 应返回 sidecar YAML 解析后的 JSON ``` @@ -163,15 +163,15 @@ curl http://127.0.0.1:3080/workspace-groups/config ## 卸载 ```sh -dsh plugin --profile web remove dsh-workspace-groups +dsh plugin --profile web remove workspace-groups-local ``` 这会自动从 `dependencies` 删除该依赖并从 `dsh.profile.bundles` 移除对应行。 同样需要**重启 web profile** 后生效。 > 手动等价做法(任选其一,不要重复):编辑 `~/.dsh/profiles/web/package.json`, -> 从 `dependencies` 删除 `dsh-workspace-groups` 行、从 `dsh.profile.bundles` -> 删除 `"dsh-workspace-groups"`,然后在该目录 `pnpm install`。 +> 从 `dependencies` 删除 `workspace-groups-local` 行、从 `dsh.profile.bundles` +> 删除 `"workspace-groups-local"`,然后在该目录 `pnpm install`。 ## 分类配置(sidecar)