Home
About
Blog
Products
Forum
Support
Contact
Sunbelt Computer Software
PL/B Language Development and Support
Home
About
Blog
Products
Forum
Support
Contact
dsplugins/install-first-batch.sh at main · LosEcher/dsplugins · GitHub
Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
LosEcher
dsplugins
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
main
Breadcrumbs
dsplugins
/
install-first-batch.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
executable file
·
147 lines (132 loc) · 5.72 KB
main
Breadcrumbs
dsplugins
/
install-first-batch.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
·
147 lines (132 loc) · 5.72 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#!
/usr/bin/env bash
#
============================================================================
#
install-first-batch.sh — 第一批 DSH 插件安装脚本
#
#
对应分析报告「第一批:必装」7 个插件。已验证仓库存在性与 manifest 声明:
#
#
✅ 标准 bundle 插件(dsh.bundle.patch 声明,dsh plugin add 直接生效):
#
- dsh-context-doctor (Zhenyu98) bundle.patch ✅
#
- dsh-llm-fallbacks (omdsh-dev) bundle.patch ✅ (bundle/cordis.patch.yml)
#
- dsh-subagent-tools (lynx-gt) bundle.patch ✅ (默认分支 master!)
#
- dsh-revive (omdsh-dev) bundle.patch ✅
#
- dsh-undo (LingLambda) bundle.patch ✅ (默认分支 master!)
#
⚠️ 客户端注入型插件(无 bundle.patch,add 后需手动注册 insert 行):
#
- dsh-memory-evolve (csyangwen) client.inject 型,需 patch 注册
#
- dsh-session-search (Tieboyh) 无 dsh 声明,用 dshx 或手动 mount
#
#
用法:
#
bash install-first-batch.sh # 安装全部
#
bash install-first-batch.sh --dry-run # 只打印将执行的命令,不执行
#
bash install-first-batch.sh --only memory # 只装 memory-evolve
#
bash install-first-batch.sh --skip session # 跳过 session-search
#
#
依赖:dsh CLI 可用(PATH 中或已 npm 全局安装),git、node、pnpm。
#
装完必须重启:dsh --profile web
#
============================================================================
set
-euo pipefail
#
── 可配置:DSH 命令 ------------------------------------------------------
#
默认取 PATH 中的 dsh;若不在 PATH,可改为:
#
DSH="node /Users/echerlos/.dsh/profiles/node_modules/@deepseek-ai/dsh/lib/bin.js"
DSH=
"
${DSH
:-
dsh}
"
PROFILE=
"
${PROFILE
:-
web}
"
DRY_RUN=0
ONLY=
"
"
SKIP=
"
"
#
── 参数解析 --------------------------------------------------------------
while
[[
$#
-gt
0 ]]
;
do
case
"
$1
"
in
--dry-run) DRY_RUN=1 ;;
--only) ONLY=
"
$2
"
;
shift
;;
--skip) SKIP=
"
$2
"
;
shift
;;
*
)
echo
"
未知参数:
$1
"
;
exit
1 ;;
esac
shift
done
run
() {
if
[[
$DRY_RUN
-eq
1 ]]
;
then
echo
"
[dry-run]
$*
"
else
echo
"
[run]
$*
"
"
$@
"
fi
}
want
() {
#
want <key> — 是否安装此插件
if
[[
-n
"
$ONLY
"
&&
"
$ONLY
"
!=
"
$1
"
]]
;
then
return
1
;
fi
if
[[
-n
"
$SKIP
"
&&
"
$SKIP
"
==
"
$1
"
]]
;
then
return
1
;
fi
return
0
}
echo
"
==> DSH:
$DSH
profile:
$PROFILE
(dry-run=
$DRY_RUN
)
"
echo
#
── 0. 环境自检 -----------------------------------------------------------
if
[[
$DRY_RUN
-eq
0 ]]
;
then
if
!
command
-v
"
$DSH
"
>
/dev/null
2>&1
;
then
echo
"
!! 未找到 dsh 命令。请先安装:npm i -g @deepseek-ai/dsh
"
echo
"
或设置 DSH='node /path/to/dsh/lib/bin.js'
"
exit
1
fi
"
$DSH
"
plugin --profile
"
$PROFILE
"
ls
>
/dev/null
2>&1
||
{
echo
"
!! dsh plugin 子命令不可用,请确认 DSH 版本 >= 0.1.0-rc.5
"
exit
1
}
fi
#
── 1. 标准 bundle 插件 ---------------------------------------------------
#
这些包声明了 dsh.bundle.patch,dsh plugin add 后即成为激活的 profile 层。
if
want context-doctor
;
then
run
"
$DSH
"
plugin --profile
"
$PROFILE
"
add
"
github:Zhenyu98/dsh-context-doctor#main
"
fi
if
want llm-fallbacks
;
then
run
"
$DSH
"
plugin --profile
"
$PROFILE
"
add
"
github:omdsh-dev/dsh-llm-fallbacks#main
"
fi
if
want subagent-tools
;
then
#
注意:默认分支是 master,不是 main!
run
"
$DSH
"
plugin --profile
"
$PROFILE
"
add
"
github:lynx-gt/dsh-subagent-tools#master
"
fi
if
want revive
;
then
run
"
$DSH
"
plugin --profile
"
$PROFILE
"
add
"
github:omdsh-dev/dsh-revive#main
"
fi
if
want undo
;
then
#
注意:默认分支是 master,不是 main!
run
"
$DSH
"
plugin --profile
"
$PROFILE
"
add
"
github:LingLambda/dsh-undo#master
"
fi
#
── 2. 客户端注入型插件 ---------------------------------------------------
#
dsh-memory-evolve:纯客户端插件(dsh.client.inject),无 bundle.patch。
#
安装包后还需在 profile 的 cordis.patch.yml 手动注册 insert 行(见下)。
if
want memory
;
then
run
"
$DSH
"
plugin --profile
"
$PROFILE
"
add
"
github:csyangwen/dsh-memory-evolve#main
"
echo
echo
"
!! dsh-memory-evolve 需要手动注册 patch 行:
"
echo
"
编辑 ~/.dsh/profiles/
${PROFILE}
/cordis.patch.yml,追加:
"
echo
"
------------------------------------------------------------
"
echo
"
- insert:
"
echo
"
- id: dsh-memory-evolve
"
echo
"
name: dsh-memory-evolve
"
echo
"
config:
"
echo
"
reviewEnabled: true
"
echo
"
reviewInterval: 10
"
echo
"
------------------------------------------------------------
"
fi
#
dsh-session-search:无标准 bundle 声明(dsh: null),用 dshx 或手动 mount。
if
want session
;
then
echo
echo
"
!! dsh-session-search 不是标准 profile bundle,两种安装方式:
"
echo
"
方式 A(dshx):
"
echo
"
git clone https://github.com/Tieboyh/dsh-session-search.git
"
echo
"
dshx install dsh-session-search ./dsh-session-search
"
echo
"
方式 B(手动 mount 到 ~/.dsh/config.yaml):
"
echo
"
- insert:
"
echo
"
- id: dsh-session-search
"
echo
"
name: '/absolute/path/to/dsh-session-search/lib/index.js'
"
echo
"
config:
"
echo
"
sources: { dsh: true, codex: true, claude: true, pi: true, opencode: true }
"
echo
"
maxResults: 10
"
echo
"
readWindow: 10
"
fi
#
── 3. 收尾 ---------------------------------------------------------------
echo
if
[[
$DRY_RUN
-eq
1 ]]
;
then
echo
"
==> dry-run 结束。实际安装后请重启:
$DSH
--profile
$PROFILE
"
else
echo
"
==> 安装完成。请重启 DSH:
$DSH
--profile
$PROFILE
"
echo
"
管理面板:Settings → Plugins 查看已装插件
"
fi
You can’t perform that action at this time.