dsh-livebench-panel 0.1.15 → 0.1.16

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.
Files changed (2) hide show
  1. package/lib/client.js +14 -6
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -51,6 +51,10 @@ window.__ModuleLoader__.load({
51
51
  .dlb_chip{appearance:none;font:inherit;cursor:pointer;color:var(--dsw-alias-label-secondary);background:transparent;border:1px solid var(--dsw-alias-border-l2);border-radius:999px;padding:3px 12px;font-size:12px;line-height:18px}
52
52
  .dlb_chip:disabled{opacity:.4;cursor:not-allowed}
53
53
  .dlb_chipOn{color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-state-business-primary);background:color-mix(in srgb,var(--dsw-alias-state-business-primary) 14%,transparent)}
54
+ .dlb_actionWrap{display:flex;gap:12px;align-items:stretch}
55
+ .dlb_actionCol{display:flex;flex-direction:column;gap:8px;width:130px;flex-shrink:0}
56
+ .dlb_btnBar{flex:1;min-height:44px;font-weight:600;white-space:normal}
57
+ @media (max-width:760px){.dlb_actionWrap{flex-direction:column}.dlb_actionCol{flex-direction:row;width:100%}.dlb_btnBar{min-height:40px;flex:1}}
54
58
  .dlb_drag{cursor:grab;color:var(--dsw-alias-label-tertiary);text-align:center;user-select:none}`;
55
59
  const tagId = "dsh-livebench-panel/panel.css";
56
60
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
@@ -387,7 +391,8 @@ window.__ModuleLoader__.load({
387
391
  ),
388
392
  configError !== null && h("p", { className: c("error") }, `加载配置失败:${configError}`),
389
393
  h("div", { className: c("card") },
390
- h("div", { className: c("grid") },
394
+ h("div", { className: c("actionWrap") },
395
+ h("div", { className: c("grid"), style: { flex: 1, minWidth: 0 } },
391
396
  h("div", { className: c("field"), ref: modelDdRef, style: { gridColumn: "span 6" } },
392
397
  h("label", { className: c("label") }, "模型(harness 全部模型,可多选;勾选后可在行内单独设定推理强度)"),
393
398
  h("button", {
@@ -483,11 +488,14 @@ window.__ModuleLoader__.load({
483
488
  })),
484
489
  ),
485
490
  ),
486
- h("div", { className: c("row") },
487
- h("button", { className: c("btn"), onClick: onStart, disabled: busy || running || !config?.available || sel.models.length === 0 },
488
- running ? `评测运行中(可另起)…` : busy ? "启动中…" : `开始评测(${sel.models.length} 个模型并发)`),
489
- running && h("button", { className: c("btn") + " " + c("btnDanger"), onClick: onStop }, "停止全部"),
490
- h("button", { className: c("btnGhost") + " " + c("btn"), onClick: () => { loadConfig(); loadResults(); } }, "刷新"),
491
+ h("div", { className: c("actionCol") },
492
+ h("button", {
493
+ className: c("btn") + " " + c("btnBar"), onClick: onStart,
494
+ disabled: busy || !config?.available || sel.models.length === 0,
495
+ }, `开始评测(${sel.models.length})`),
496
+ running && h("button", { className: c("btn") + " " + c("btnDanger") + " " + c("btnBar"), onClick: onStop }, "停止全部"),
497
+ h("button", { className: c("btnGhost") + " " + c("btn") + " " + c("btnBar"), onClick: () => { loadConfig(); loadResults(); } }, "刷新"),
498
+ ),
491
499
  ),
492
500
  startError !== null && h("p", { className: c("error") }, startError),
493
501
  ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-livebench-panel",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "DSH web plugin: a LiveBench tab in the Trajectory view (right of 对话/轨迹). Run LiveBench evaluations against every model configured in the DeepSeek Harness — pick provider/model, category, task, release and question range from dropdowns, watch progress, and read scores in place.",
5
5
  "license": "MIT",
6
6
  "type": "module",