dsh-m 0.2.4 → 0.2.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/README.en.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![npm](https://img.shields.io/npm/v/dsh-m?label=npm)](https://www.npmjs.com/package/dsh-m)
5
5
  [![Registry Check](https://img.shields.io/github/actions/workflow/status/iasiv5/dsh-m/registry.yml?branch=main&label=Registry%20Check)](../../actions/workflows/registry.yml)
6
6
  [![License](https://img.shields.io/github/license/iasiv5/dsh-m?label=License)](./LICENSE)
7
- [![DSH Web](https://img.shields.io/badge/DSH%20Web-0.1.1--rc.2%20verified-2563eb)](#faq)
7
+ [![DSH Web](https://img.shields.io/badge/DSH%20Web-0.1.2--rc.1%20verified-2563eb)](#faq)
8
8
 
9
9
  English · [中文](./README.md)
10
10
 
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![npm](https://img.shields.io/npm/v/dsh-m?label=npm)](https://www.npmjs.com/package/dsh-m)
5
5
  [![Registry Check](https://img.shields.io/github/actions/workflow/status/iasiv5/dsh-m/registry.yml?branch=main&label=Registry%20Check)](../../actions/workflows/registry.yml)
6
6
  [![License](https://img.shields.io/github/license/iasiv5/dsh-m?label=License)](./LICENSE)
7
- [![DSH Web](https://img.shields.io/badge/DSH%20Web-0.1.1--rc.2%20verified-2563eb)](#faq)
7
+ [![DSH Web](https://img.shields.io/badge/DSH%20Web-0.1.2--rc.1%20verified-2563eb)](#faq)
8
8
 
9
9
  [English](./README.en.md) · 中文
10
10
 
package/lib/client.js CHANGED
@@ -512,6 +512,7 @@ var CSS = `
512
512
  .dshm-detail{margin-top:8px;border-top:1px dashed var(--dsw-alias-border-l2,#e5e7eb);padding-top:8px;display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--dsw-alias-label-secondary,#4b5563)}
513
513
  .dshm-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
514
514
  .dshm-banner{display:flex;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid var(--dsw-alias-border-l2,#e5e7eb);background:var(--dsw-alias-state-warn-tertiary,#fffbeb);color:var(--dsw-alias-state-warn-primary,#b45309);font-size:12px}
515
+ .dshm-banner.err{background:rgba(239,68,68,.13);color:var(--dsw-alias-state-error-primary,#b91c1c)}
515
516
  .dshm-banner .dshm-banner-text{flex:1;max-height:140px;overflow:auto;overscroll-behavior:contain;white-space:pre-wrap;word-break:break-word;line-height:18px}
516
517
  .dshm-row{display:flex;align-items:center;gap:8px}
517
518
  .dshm-kv{display:grid;grid-template-columns:96px 1fr;gap:6px 10px;font-size:12px;align-items:baseline}
@@ -1526,7 +1527,7 @@ function MarketPanel({ onClose }) {
1526
1527
  }, [onClose]);
1527
1528
  useEffect(() => {
1528
1529
  if (!toast) return;
1529
- const t = setTimeout(() => setToast(null), 6e3);
1530
+ const t = setTimeout(() => setToast(null), toast.kind === "err" ? 15e3 : 6e3);
1530
1531
  return () => clearTimeout(t);
1531
1532
  }, [toast]);
1532
1533
  const notify = useCallback(({ kind, text, needsRestart }) => {
@@ -1574,7 +1575,7 @@ function MarketPanel({ onClose }) {
1574
1575
  ),
1575
1576
  toast ? h(
1576
1577
  "div",
1577
- { className: `dshm-banner`, style: toast.kind === "err" ? { background: "var(--dsw-alias-state-error-secondary,#fee2e2)", color: "var(--dsw-alias-state-error-primary,#b91c1c)" } : null },
1578
+ { className: toast.kind === "err" ? "dshm-banner err" : "dshm-banner" },
1578
1579
  h("span", { className: "dshm-banner-text" }, toast.text)
1579
1580
  ) : null,
1580
1581
  banner ? h(RestartBanner, { note: banner.text, onDone: () => setBanner(null) }) : null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-m",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "DSH Marketplace — 个人自用的 DeepSeek Harness 插件市场:收录、安装、卸载、升级 DSH 插件",
5
5
  "license": "MIT",
6
6
  "type": "module",