dsh-dpharness 0.6.1 → 0.6.2
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/lib/changelog.js +11 -0
- package/lib/client.js +55 -9
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/changelog.js
CHANGED
|
@@ -37,6 +37,17 @@ export function npmLatestUrl(pkg) {
|
|
|
37
37
|
* (用户要看的是行为变化,不是我们的 commit 分类)。
|
|
38
38
|
*/
|
|
39
39
|
export const CHANGELOG = [
|
|
40
|
+
{
|
|
41
|
+
version: "0.6.2",
|
|
42
|
+
date: "2026-10-19",
|
|
43
|
+
title: "卡片标签全部中文化",
|
|
44
|
+
items: [
|
|
45
|
+
"插件卡片上的标签改成中文:核心 / 相关、实装验证通过 / 未通过、人工实测通过、风险:中 / 高,不再出现 core、verify: pass 这类英文标记。",
|
|
46
|
+
"兼容范围写成「适配 DSH v0.20+」,一眼看出这条说的是 dsh 版本要求。",
|
|
47
|
+
"风险未评估的插件不再挂标记(此前几乎每张卡都有一条「未知」,等于噪声);只保留中等、高风险两种提示。",
|
|
48
|
+
"修复「对比」表把未实测、未验证、验证未通过都显示成「通过」的问题。",
|
|
49
|
+
],
|
|
50
|
+
},
|
|
40
51
|
{
|
|
41
52
|
version: "0.6.1",
|
|
42
53
|
date: "2026-10-17",
|
package/lib/client.js
CHANGED
|
@@ -289,7 +289,10 @@ window.__ModuleLoader__.load({
|
|
|
289
289
|
"compare.stars": "星标",
|
|
290
290
|
"compare.verify": "实装验证",
|
|
291
291
|
"compare.tested": "人工实测通过",
|
|
292
|
-
|
|
292
|
+
/* 与卡片标签同一口径(tag.verify.*):verifyStatus 是**实装验证**的结果,
|
|
293
|
+
不是 installCheck(装得上吗)—— 旧文案「通过安装校验」把两件事混成了一件。 */
|
|
294
|
+
"compare.verified": "实装验证通过",
|
|
295
|
+
"compare.failed": "实装验证未通过",
|
|
293
296
|
"compare.unverified": "未验证",
|
|
294
297
|
"compare.installed": "本机",
|
|
295
298
|
"compare.notInstalled": "未安装",
|
|
@@ -398,6 +401,17 @@ window.__ModuleLoader__.load({
|
|
|
398
401
|
"label.untranslated": "未汉化",
|
|
399
402
|
"label.repoSource": "GitHub 源",
|
|
400
403
|
"hint.repoSource": "该插件未发布到 npm,走 GitHub 源安装(与站点详情页同口径)。",
|
|
404
|
+
/* 卡片标签(站点英文枚举的中文名,见 makeUi 的 TAG_LABEL)
|
|
405
|
+
⚠️ tier 与 usage.core 是**两套语义**:这里是生态分层(核心 / 相关),
|
|
406
|
+
那里的「核心在用」是使用频次,别合并。 */
|
|
407
|
+
"tag.tier.core": "核心",
|
|
408
|
+
"tag.tier.related": "相关",
|
|
409
|
+
"tag.verify.pass": "实装验证通过",
|
|
410
|
+
"tag.verify.fail": "实装验证未通过",
|
|
411
|
+
"tag.tested.passed": "人工实测通过",
|
|
412
|
+
"tag.risk.medium": "风险:中",
|
|
413
|
+
"tag.risk.high": "风险:高",
|
|
414
|
+
"tag.compat": "适配 DSH {v}",
|
|
401
415
|
"best.recommend": "严选推荐",
|
|
402
416
|
"best.picks": "分类精选",
|
|
403
417
|
"best.catCount": "{subs} 个小类 · {n} 个",
|
|
@@ -535,7 +549,8 @@ window.__ModuleLoader__.load({
|
|
|
535
549
|
"compare.stars": "Stars",
|
|
536
550
|
"compare.verify": "Verified",
|
|
537
551
|
"compare.tested": "Hands-on tested",
|
|
538
|
-
"compare.verified": "Install
|
|
552
|
+
"compare.verified": "Install verified",
|
|
553
|
+
"compare.failed": "Install verification failed",
|
|
539
554
|
"compare.unverified": "Unverified",
|
|
540
555
|
"compare.installed": "On this machine",
|
|
541
556
|
"compare.notInstalled": "Not installed",
|
|
@@ -644,6 +659,14 @@ window.__ModuleLoader__.load({
|
|
|
644
659
|
"label.untranslated": "Not translated",
|
|
645
660
|
"label.repoSource": "GitHub source",
|
|
646
661
|
"hint.repoSource": "Not published to npm — installs from the GitHub source (same rule as the site's detail page).",
|
|
662
|
+
"tag.tier.core": "Core",
|
|
663
|
+
"tag.tier.related": "Related",
|
|
664
|
+
"tag.verify.pass": "Install verified",
|
|
665
|
+
"tag.verify.fail": "Install verification failed",
|
|
666
|
+
"tag.tested.passed": "Hands-on tested",
|
|
667
|
+
"tag.risk.medium": "Risk: medium",
|
|
668
|
+
"tag.risk.high": "Risk: high",
|
|
669
|
+
"tag.compat": "DSH {v}",
|
|
647
670
|
"best.recommend": "Curated",
|
|
648
671
|
"best.picks": "By category",
|
|
649
672
|
"best.catCount": "{subs} groups · {n}",
|
|
@@ -2269,16 +2292,39 @@ window.__ModuleLoader__.load({
|
|
|
2269
2292
|
return h("span", { className: cls, key: label }, label);
|
|
2270
2293
|
}
|
|
2271
2294
|
|
|
2295
|
+
/* 标签文案表:站点 API 给的是**英文枚举**(tier / verifyStatus / testedStatus / riskLevel),
|
|
2296
|
+
原先直接渲染,中文界面里因此露出 `core`、`verify: pass`、`risk: unknown`
|
|
2297
|
+
(2026-10-19 用户截图指出)。这里把枚举翻成中文,与本文件 tierLabel 同一约定:
|
|
2298
|
+
**字典里没有的值返回空串** —— 不显示、不猜,也不把内部标识当文案丢给用户。
|
|
2299
|
+
新增枚举值只改这张表 + 两份字典,勿在 tagsOf 里现拼字符串。 */
|
|
2300
|
+
const TAG_LABEL = {
|
|
2301
|
+
tier: { core: "tag.tier.core", related: "tag.tier.related" },
|
|
2302
|
+
verify: { pass: "tag.verify.pass", fail: "tag.verify.fail" },
|
|
2303
|
+
tested: { passed: "tag.tested.passed" },
|
|
2304
|
+
/* low / unknown 有意**不给文案**:unknown 占当前样本 97%(194/200),
|
|
2305
|
+
挂一个「风险未知」等于每张卡都贴一条零信息量徽标;low 无风险可报(与站点
|
|
2306
|
+
「站点给的是结论,没结论就没有这条」同口径)。 */
|
|
2307
|
+
risk: { medium: "tag.risk.medium", high: "tag.risk.high" },
|
|
2308
|
+
};
|
|
2309
|
+
function tagLabel(group, value) {
|
|
2310
|
+
const key = TAG_LABEL[group] && TAG_LABEL[group][value];
|
|
2311
|
+
return key ? t(key) : "";
|
|
2312
|
+
}
|
|
2313
|
+
|
|
2272
2314
|
function tagsOf(item) {
|
|
2273
2315
|
const tags = [];
|
|
2274
2316
|
// 中文分类放最前 —— 它是"这东西是干什么的"的第一眼信息
|
|
2275
2317
|
if (item.cat) tags.push(badge(item.cat, null));
|
|
2276
|
-
|
|
2277
|
-
if (
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
if (
|
|
2318
|
+
const tier = item.tier ? tagLabel("tier", item.tier) : "";
|
|
2319
|
+
if (tier) tags.push(badge(tier, item.tier === "core" ? "ok" : null));
|
|
2320
|
+
// 兼容范围是版本号,不翻译本体,只补中文前缀(站点原样是「DSH v0.20+」)
|
|
2321
|
+
if (item.compat) tags.push(badge(format(t("tag.compat"), { v: item.compat }), null));
|
|
2322
|
+
const verify = item.verify ? tagLabel("verify", item.verify) : "";
|
|
2323
|
+
if (verify) tags.push(badge(verify, item.verify === "pass" ? "ok" : "bad"));
|
|
2324
|
+
const tested = item.tested ? tagLabel("tested", item.tested) : "";
|
|
2325
|
+
if (tested) tags.push(badge(tested, "ok"));
|
|
2326
|
+
const risk = item.risk ? tagLabel("risk", item.risk) : "";
|
|
2327
|
+
if (risk) tags.push(badge(risk, item.risk === "high" ? "bad" : null));
|
|
2282
2328
|
return tags;
|
|
2283
2329
|
}
|
|
2284
2330
|
|
|
@@ -2637,7 +2683,7 @@ window.__ModuleLoader__.load({
|
|
|
2637
2683
|
if (list.length < 2) return null;
|
|
2638
2684
|
const rows = [
|
|
2639
2685
|
{ key: "stars", label: t("compare.stars"), value: (item) => format(t("badge.stars"), { n: item.stars }) },
|
|
2640
|
-
{ key: "verify", label: t("compare.verify"), value: (item) => (item.tested ? t("compare.tested") : item.verify ? t("compare.verified") : t("compare.unverified")) },
|
|
2686
|
+
{ key: "verify", label: t("compare.verify"), value: (item) => (item.tested === "passed" ? t("compare.tested") : item.verify === "pass" ? t("compare.verified") : item.verify === "fail" ? t("compare.failed") : t("compare.unverified")) },
|
|
2641
2687
|
{ key: "installed", label: t("compare.installed"), value: (item) => (item.installed ? format(t("card.installed"), { v: item.installed }) : t("compare.notInstalled")) },
|
|
2642
2688
|
{ key: "cat", label: t("compare.cat"), value: (item) => item.cat || "—" },
|
|
2643
2689
|
{ key: "sell", label: t("compare.sell"), value: (item) => item.sell || "—" },
|
package/lib/index.js
CHANGED
|
@@ -47,7 +47,7 @@ export const name = "dpharness";
|
|
|
47
47
|
/** The dsh web server service used to register HTTP routes. */
|
|
48
48
|
export const inject = ["webServer"];
|
|
49
49
|
|
|
50
|
-
export const VERSION = "0.6.
|
|
50
|
+
export const VERSION = "0.6.2";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* 本插件在 npm 上的包名 —— 与 dsh 的插件 id(上面的 `name = "dpharness"`)**不是一回事**,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-dpharness",
|
|
3
3
|
"icon": "./icon.svg",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.2",
|
|
5
5
|
"description": "Curated dpharness.com plugin catalog inside the DeepSeek Harness Web GUI: a conversation-view tab, a sidebar entry and a dismissible site-wide floating panel, offering a searchable full catalog, a monthly by-category shortlist, a daily pick and an update check (this plugin plus every installed plugin) with a red-dot reminder, with one-click install via dshmarket or the dsh CLI. Includes a settings page (General row + Plugins tab) for the widget visibility, the daily pick, the update check and the opt-out telemetry relay covering the full install funnel.",
|
|
6
6
|
"author": "zhanghao3693 <zhanghao3693@qq.com>",
|
|
7
7
|
"repository": {
|