@dsh-workbench/core 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dsh-workbench +25 -1
- package/client.js +153 -141
- package/dist/client/client.body.js +153 -141
- package/dist/client/index.js +153 -141
- package/dist/host/index.js +76 -31
- package/dist/types/app/client.d.ts +23 -39
- package/dist/types/app/layouts/market/add-module-mock.d.ts +0 -1
- package/dist/types/app/layouts/market/use-add-module.d.ts +0 -1
- package/dist/types/app/layouts/rightbar/market-rows.d.ts +8 -2
- package/dist/types/modules/panels/model/market-dependency.d.ts +1 -0
- package/dist/types/shared/api/host/bundle-routes.d.ts +2 -2
- package/dist/types/shared/api/host/installed-module.d.ts +2 -0
- package/dist/types/shared/components/Tip.d.ts +4 -0
- package/dist/types/shared/hooks/bundle-queries.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/app/layouts/rightbar/MarketFreshLines.d.ts +0 -5
package/bin/dsh-workbench
CHANGED
|
@@ -146,10 +146,34 @@ fi
|
|
|
146
146
|
# 副作用(刻意的):被这一层覆盖的行,在工作台的 Settings 页里会显示
|
|
147
147
|
# `overridden by a home patch or command-line overlay` —— 那正是"这行由 web 管"的提示。
|
|
148
148
|
# 反向不成立:工作台里配的只落在自己的 profile patch(差异层),web 看不到。
|
|
149
|
+
# ⚠️ 叠之前先剥掉「每个界面自己的偏好」那一类。
|
|
150
|
+
#
|
|
151
|
+
# `--patch` 是最高层,被它覆盖的行在工作台的 Settings 页里会显示
|
|
152
|
+
# "overridden by a home patch or command-line overlay"、**改了也会跳回去**。
|
|
153
|
+
# 供应商 / 搜索源 / MCP 那类机器级设置这样管是对的;但 `ui-theme.preference`
|
|
154
|
+
# 是**每个界面自己的**偏好(有人要 web 深色、工作台浅色),叠上来等于把工作台的
|
|
155
|
+
# 主题锁成 web 的 —— 实测就是"切到浅色自动跳回深色"。
|
|
156
|
+
#
|
|
157
|
+
# 剥的方式:按顶层列表项过滤,命中 id 的那一项整块不要(缩进到下一个 `- ` 为止)。
|
|
149
158
|
WEB_PATCH="$DSH_HOME/profiles/web/cordis.patch.yml"
|
|
159
|
+
WORKBENCH_PATCH_STRIP="${DSH_WORKBENCH_PATCH_STRIP:-ui-theme}"
|
|
150
160
|
PATCH_ARGS=()
|
|
161
|
+
WEB_PATCH_LAYER="$WEB_PATCH"
|
|
151
162
|
if [ -f "$WEB_PATCH" ]; then
|
|
152
|
-
|
|
163
|
+
if [ -n "$WORKBENCH_PATCH_STRIP" ]; then
|
|
164
|
+
WEB_PATCH_LAYER="$(mktemp -t dsh-workbench-web-patch)"
|
|
165
|
+
trap 'rm -f "$WEB_PATCH_LAYER"' EXIT INT TERM
|
|
166
|
+
awk -v strip="$WORKBENCH_PATCH_STRIP" '
|
|
167
|
+
/^- / {
|
|
168
|
+
id = $0
|
|
169
|
+
sub(/^- id:[[:space:]]*/, "", id)
|
|
170
|
+
sub(/[[:space:]]*$/, "", id)
|
|
171
|
+
skip = (id == strip)
|
|
172
|
+
}
|
|
173
|
+
!skip { print }
|
|
174
|
+
' "$WEB_PATCH" > "$WEB_PATCH_LAYER"
|
|
175
|
+
fi
|
|
176
|
+
PATCH_ARGS=(--patch "$WEB_PATCH_LAYER")
|
|
153
177
|
else
|
|
154
178
|
echo "dsh-workbench: 提醒 —— 找不到 ${WEB_PATCH},这次不叠加 web 的设置(供应商等可能不全)。" >&2
|
|
155
179
|
fi
|