dshmarket 1.16.4 → 1.16.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/client/client.js CHANGED
@@ -104,6 +104,7 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
104
104
  agentBusyUpdate: "有 agent 正在运行,请等待其完成或将其取消后再更新——更新会直接替换插件文件,运行中的 agent 可能中途报错或新旧版本混用。",
105
105
  agentBusyInstall: "有 agent 正在运行,请等待其完成或将其取消后再安装——安装会修改插件文件,运行中的 agent 可能中途报错。",
106
106
  compatRiskBanner: "检测到兼容性风险,建议重启前到诊断页处理,或一键回滚本次操作。",
107
+ shadowNameBanner: "本次操作让同一个插件名在两个层里同时存在,重启后只有一个会生效:",
107
108
  goDiagnose: "去诊断页修复",
108
109
  rollbackNow: "一键回滚",
109
110
  rollingBack: "回滚中…",
@@ -461,6 +462,7 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
461
462
  agentBusyUpdate: "An agent is currently working — wait for it to finish (or cancel it) before updating. Updates replace plugin files in place, so a working agent can fail or mix versions mid-turn.",
462
463
  agentBusyInstall: "An agent is currently working — wait for it to finish (or cancel it) before installing. Installing changes plugin files, so a working agent can fail mid-turn.",
463
464
  compatRiskBanner: "Compatibility risk detected — open Diagnostics before restarting, or roll this operation back.",
465
+ shadowNameBanner: "This operation left one plugin name defined in two layers; only one will load after a restart:",
464
466
  goDiagnose: "Open Diagnostics",
465
467
  rollbackNow: "Roll back",
466
468
  rollingBack: "Rolling back…",
@@ -4181,6 +4183,13 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
4181
4183
  const first = risks[0];
4182
4184
  return `${first.plugin}: ${first.peer} ${first.range} vs ${first.resolved}`;
4183
4185
  };
4186
+ /** Which name now resolves from two layers, and which layers those are. */
4187
+ const shadowSummary = (entries) => {
4188
+ if (entries.length === 0) return "";
4189
+ const first = entries[0];
4190
+ const rest = entries.length > 1 ? ` (+${entries.length - 1})` : "";
4191
+ return `${first.name} — ${first.layers.join(" / ")}${rest}`;
4192
+ };
4184
4193
  const doInstall = (0, react.useCallback)((plugin) => {
4185
4194
  setBuildsSkipped(null);
4186
4195
  setConfirming(null);
@@ -5651,11 +5660,16 @@ window.__ModuleLoader__.load({ id: "dshmarket", factory: (require) => {
5651
5660
  children: [
5652
5661
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
5653
5662
  className: Market_module_css_default.grow,
5654
- children: [
5663
+ children: [compatibilityNotice.risks.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
5655
5664
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: t("compatRiskBanner") }),
5656
5665
  " ",
5657
5666
  compatibilitySummary(compatibilityNotice.risks)
5658
- ]
5667
+ ] }), compatibilityNotice.shadowedNames !== void 0 && compatibilityNotice.shadowedNames.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
5668
+ compatibilityNotice.risks.length > 0 && " · ",
5669
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("b", { children: t("shadowNameBanner") }),
5670
+ " ",
5671
+ shadowSummary(compatibilityNotice.shadowedNames)
5672
+ ] })]
5659
5673
  }),
5660
5674
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
5661
5675
  variant: "outline",