dsh-workbench-tasks 5.2.41 → 5.2.45

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/cordis.patch.yml CHANGED
@@ -1,7 +1,12 @@
1
+ # 任务插件:插入宿主行和本插件自己的插件行。
2
+ #
3
+ # 宿主行必须由子插件插入:宿主是传递依赖,DSH 只把 profile 的直接依赖选进
4
+ # dsh.profile.bundles,所以单独装一个子插件时宿主不会被自动选入,只能靠这行加载。
5
+ # 但宿主行用块式写法时,插件市场会把它算进本插件的 insertedIds,任何第二个
6
+ # dsh-workbench 系插件都会被判「和已安装的插件冲突」并整次回滚;写成流式(flow style)
7
+ # 既能被 js-yaml 和 DSH 正常解析、插入同一行,又不会被市场那套逐行正则数到。
8
+ # 详见 docs/AGENTS规范/03-安装与交付.md。
1
9
  - insert:
2
- - id: workbench
3
- name: 'dsh-workbench-host'
4
- config:
5
- enabled: true
10
+ - { id: workbench, name: 'dsh-workbench-host', config: { enabled: true } }
6
11
  - id: workbench-tasks
7
12
  name: 'dsh-workbench-tasks'
package/lib/client.js CHANGED
@@ -2068,6 +2068,8 @@ var require_charts = __commonJS({
2068
2068
  ".@-tlegend-item:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}",
2069
2069
  ".@-dot-off{width:8px;height:8px;border-radius:50%;border:1px solid;flex:0 0 auto}",
2070
2070
  ".@-table-scroll{max-width:100%;overflow-x:auto}.@-table{width:100%;border-collapse:collapse;font-size:12px}",
2071
+ // 窄屏按列裁剪:统计页的两张排行/明细表在 390px 只保留主列与关键数值列。
2072
+ "@media (max-width:600px){.@-table .wbt-c-total,.@-table .wbt-c-open,.@-table .wbt-c-difficulty,.@-table .wbt-c-tabletitle{display:none}.@-table th,.@-table td{padding-left:6px;padding-right:6px}.@-table .wbt-table-link{white-space:normal;text-align:left}}",
2071
2073
  ".@-table th{text-align:left;font-weight:500;color:var(--dsw-alias-label-tertiary,#8f959e);padding:6px 8px;border-bottom:1px solid var(--dsw-alias-border-l2,#e5e6eb);white-space:nowrap}",
2072
2074
  ".@-table td{padding:7px 8px;border-bottom:1px solid var(--dsw-alias-border-l1,#f2f3f5);color:var(--dsw-alias-label-secondary,#646a73);vertical-align:top}",
2073
2075
  ".@-table tr:last-child td{border-bottom:0}",
@@ -2356,11 +2358,13 @@ var require_charts = __commonJS({
2356
2358
  "table",
2357
2359
  { className: prefix + "-table" },
2358
2360
  h("thead", null, h("tr", null, cols.map(function(c) {
2359
- return h("th", { key: c.key, className: c.num ? prefix + "-num" : "" }, c.label);
2361
+ var cls = [c.num ? prefix + "-num" : "", c.className || ""].filter(Boolean).join(" ");
2362
+ return h("th", { key: c.key, className: cls || void 0 }, c.label);
2360
2363
  }))),
2361
2364
  h("tbody", null, rows.map(function(row, ri) {
2362
2365
  return h("tr", { key: row.id || row.key || ri }, cols.map(function(c) {
2363
- return h("td", { key: c.key, className: c.num ? prefix + "-num" : "" }, c.render ? c.render(row) : row[c.key]);
2366
+ var cls = [c.num ? prefix + "-num" : "", c.className || ""].filter(Boolean).join(" ");
2367
+ return h("td", { key: c.key, className: cls || void 0 }, c.render ? c.render(row) : row[c.key]);
2364
2368
  }));
2365
2369
  }))
2366
2370
  ));
@@ -3255,7 +3259,7 @@ var require_recent_columns = __commonJS({
3255
3259
  var en = lang === "en";
3256
3260
  return [
3257
3261
  { key: "title", label: t.colTitle, render: taskTitle(lang, onNavigate) },
3258
- { key: "difficulty", label: en ? "Difficulty" : "\u96BE\u5EA6", render: function(row) {
3262
+ { key: "difficulty", label: en ? "Difficulty" : "\u96BE\u5EA6", className: "wbt-c-difficulty", render: function(row) {
3259
3263
  var n = Number(row.difficulty);
3260
3264
  if (!(n > 0)) return "\u2014";
3261
3265
  var bounded = Math.min(5, n), full = Math.floor(bounded), half = bounded - full >= 0.5;
@@ -3266,7 +3270,7 @@ var require_recent_columns = __commonJS({
3266
3270
  " " + n
3267
3271
  );
3268
3272
  } },
3269
- { key: "tableTitle", label: t.colTable, render: function(row) {
3273
+ { key: "tableTitle", label: t.colTable, className: "wbt-c-tabletitle", render: function(row) {
3270
3274
  if (row.tableDeleted || !row.tableId) return h("span", { title: en ? "Task table deleted; cannot open" : "\u4EFB\u52A1\u8868\u5DF2\u5220\u9664\uFF0C\u65E0\u6CD5\u6253\u5F00" }, row.tableTitle || (en ? "Deleted task table" : "\u5DF2\u5220\u9664\u4EFB\u52A1\u8868"));
3271
3275
  if (typeof onNavigate !== "function") return row.tableTitle;
3272
3276
  return h("button", {
@@ -4552,8 +4556,8 @@ var require_stats = __commonJS({
4552
4556
  lang,
4553
4557
  columns: [
4554
4558
  rankingName(t, lang, props.onNavigate, "table"),
4555
- { key: "total", label: t.colTotal, num: true },
4556
- { key: "open", label: t.colOpen, num: true },
4559
+ { key: "total", label: t.colTotal, num: true, className: "wbt-c-total" },
4560
+ { key: "open", label: t.colOpen, num: true, className: "wbt-c-open" },
4557
4561
  { key: "overdue", label: t.colOverdue, num: true },
4558
4562
  { key: "completion", label: t.colRate, num: true, render: function(r) {
4559
4563
  return ch.pct(r.completion);
@@ -4571,8 +4575,8 @@ var require_stats = __commonJS({
4571
4575
  lang,
4572
4576
  columns: [
4573
4577
  rankingName(t, lang, props.onNavigate, "group"),
4574
- { key: "total", label: t.colTotal, num: true },
4575
- { key: "open", label: t.colOpen, num: true },
4578
+ { key: "total", label: t.colTotal, num: true, className: "wbt-c-total" },
4579
+ { key: "open", label: t.colOpen, num: true, className: "wbt-c-open" },
4576
4580
  { key: "overdue", label: t.colOverdue, num: true },
4577
4581
  { key: "completion", label: t.colRate, num: true, render: function(r) {
4578
4582
  return ch.pct(r.completion);
@@ -4596,8 +4600,9 @@ var require_stats = __commonJS({
4596
4600
  empty: t.noWorkspacesEmpty,
4597
4601
  columns: [
4598
4602
  rankingName(t, lang, props.onNavigate, "workspace"),
4599
- { key: "total", label: t.colTotal, num: true },
4600
- { key: "open", label: t.colOpen, num: true },
4603
+ // 窄屏按列裁剪:≤600px 只留「名称 / 逾期 / 完成率」,总数与已开启收进 逾期 的语义里。
4604
+ { key: "total", label: t.colTotal, num: true, className: "wbt-c-total" },
4605
+ { key: "open", label: t.colOpen, num: true, className: "wbt-c-open" },
4601
4606
  { key: "overdue", label: t.colOverdue, num: true },
4602
4607
  { key: "completion", label: t.colRate, num: true, render: function(r) {
4603
4608
  return ch.pct(r.completion);
@@ -5779,18 +5784,19 @@ var require_action_schema_style = __commonJS({
5779
5784
  "use strict";
5780
5785
  module2.exports = function(PREFIX, DOMAIN) {
5781
5786
  var P = PREFIX + "-as";
5787
+ var hairline = "1px solid color-mix(in oklab,currentColor 8%,transparent)";
5782
5788
  var CSS = [
5783
5789
  "." + P + "{display:flex;flex-direction:column;gap:12px;width:100%;min-width:0;font-size:13px;color:inherit}",
5784
5790
  "." + P + "-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
5785
5791
  "." + P + "-title{font-size:15px;font-weight:660;margin:0}",
5786
- "." + P + "-badge{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--wb-border,#e3e5e9);border-radius:999px;padding:1px 8px;font-size:11px;color:var(--dsw-alias-label-secondary,currentColor);font-variant-numeric:tabular-nums}",
5792
+ "." + P + "-badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:999px;padding:1px 8px;font-size:11px;color:var(--dsw-alias-label-secondary,currentColor);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}",
5787
5793
  "." + P + "-mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px}",
5788
5794
  "." + P + "-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}",
5789
5795
  "." + P + "-search{position:relative;flex:1 1 220px;min-width:0;display:flex;align-items:center}",
5790
5796
  "." + P + "-search input{width:100%;border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 10px 6px 30px}",
5791
5797
  "." + P + "-search input:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
5792
5798
  "." + P + "-search .wbi-svg{position:absolute;left:10px;top:50%;transform:translateY(-50%);color:var(--dsw-alias-label-tertiary,inherit)}",
5793
- "." + P + " select{border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 8px}",
5799
+ "." + P + " select{border:1px solid var(--wb-border,#e3e5e9);border-radius:8px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));color:inherit;font:inherit;padding:6px 8px;max-width:100%}",
5794
5800
  "." + P + " select:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:1px}",
5795
5801
  "." + P + "-list{display:flex;flex-direction:column;gap:8px}",
5796
5802
  "." + P + "-card{border:1px solid var(--wb-border,#e3e5e9);border-radius:10px;padding:10px 12px;background:var(--wb-surface,var(--dsw-alias-bg-layer-1,transparent));display:flex;flex-direction:column;gap:8px;min-width:0}",
@@ -5798,7 +5804,7 @@ var require_action_schema_style = __commonJS({
5798
5804
  "." + P + "-cardmeta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0;min-height:24px}",
5799
5805
  "." + P + "-cardhead code{font-weight:640;overflow-wrap:anywhere;min-width:0}",
5800
5806
  "." + P + "-hintline{margin:0;color:var(--dsw-alias-label-tertiary,inherit);font-size:11.5px;line-height:1.5}",
5801
- "." + P + "-origins{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}",
5807
+ "." + P + "-origins{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;min-width:0}",
5802
5808
  "." + P + "-origins-label{font-size:11px;color:var(--wb-muted);white-space:nowrap}",
5803
5809
  "." + P + "-origin{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;color:var(--wb-muted);cursor:pointer;user-select:none}",
5804
5810
  // 该 action 本身不支持的来源:整项置灰、不可点,示意「不是没开,是开不了」。
@@ -5806,17 +5812,17 @@ var require_action_schema_style = __commonJS({
5806
5812
  "." + P + "-origin input[type=checkbox]{width:13px;height:13px;margin:0;accent-color:var(--wb-accent);cursor:inherit}",
5807
5813
  "." + P + "-origin input[type=checkbox]:focus-visible{outline:2px solid var(--wb-accent);outline-offset:2px}",
5808
5814
  "." + P + "-locked{border-color:var(--wb-warn,#b7791f);color:var(--wb-warn,#b7791f)}",
5809
- "." + P + "-desc{margin:0;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55;font-size:12.5px}",
5815
+ "." + P + "-desc{margin:0;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55;font-size:12.5px;overflow-wrap:anywhere}",
5810
5816
  // 搜索命中:用品牌色透明度叠加而不是写死浅色,深浅主题都可读;继承文字颜色、不覆盖 ::selection。
5811
5817
  "." + P + " mark." + P + "-hit{background:color-mix(in oklab,var(--dsw-alias-brand-primary,#4f6ef7) 22%,transparent);color:inherit;border-radius:2px;padding:0;font:inherit;box-decoration-break:clone;-webkit-box-decoration-break:clone}",
5812
5818
  "." + P + "-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:auto}",
5813
5819
  "." + P + "-table th{text-align:left;font-weight:620;font-size:11px;letter-spacing:.4px;text-transform:uppercase;color:var(--dsw-alias-label-tertiary,inherit);padding:4px 8px 4px 0;white-space:nowrap}",
5814
- "." + P + "-table td{padding:4px 8px 4px 0;vertical-align:top;border-top:1px solid color-mix(in oklab,currentColor 8%,transparent);line-height:1.5}",
5820
+ "." + P + "-table td{padding:4px 8px 4px 0;vertical-align:top;border-top:" + hairline + ";line-height:1.5;overflow-wrap:anywhere}",
5815
5821
  "." + P + "-req{color:var(--dsw-alias-state-error-primary,#d9534f);font-weight:620}",
5816
5822
  "." + P + "-opt{color:var(--dsw-alias-label-tertiary,inherit)}",
5817
5823
  "." + P + "-none{color:var(--dsw-alias-label-tertiary,inherit);font-size:12px}",
5818
- "." + P + "-example{position:relative;display:flex;flex-direction:column;gap:4px}",
5819
- "." + P + "-examplehead{display:flex;align-items:center;justify-content:space-between;gap:8px}",
5824
+ "." + P + "-example{position:relative;display:flex;flex-direction:column;gap:4px;min-width:0}",
5825
+ "." + P + "-examplehead{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}",
5820
5826
  "." + P + "-pre{margin:0;padding:8px 10px;border-radius:8px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);color:inherit;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.5;overflow:auto;max-height:280px;white-space:pre-wrap;word-break:break-word}",
5821
5827
  "." + P + "-copy{border:1px solid var(--wb-border,#e3e5e9);border-radius:7px;background:transparent;color:inherit;font:inherit;font-size:11.5px;padding:2px 8px;cursor:pointer}",
5822
5828
  "." + P + "-copy:hover{background:var(--dsw-alias-interactive-bg-hover,color-mix(in oklab,currentColor 5%,transparent))}",
@@ -5824,9 +5830,14 @@ var require_action_schema_style = __commonJS({
5824
5830
  "." + P + " details>summary{cursor:pointer;font-size:11.5px;color:var(--dsw-alias-label-secondary,inherit);width:max-content}",
5825
5831
  "." + P + " details>summary:focus-visible{outline:2px solid var(--dsw-alias-brand-primary,#4f6ef7);outline-offset:2px}",
5826
5832
  "." + P + "-empty{padding:24px;text-align:center;border:1px dashed var(--wb-border,#e3e5e9);border-radius:10px;color:var(--dsw-alias-label-tertiary,inherit)}",
5827
- "." + P + "-error{padding:12px;border:1px solid var(--dsw-alias-state-error-primary,#d9534f);border-radius:10px;color:var(--dsw-alias-state-error-primary,#d9534f);display:flex;gap:10px;align-items:center}",
5828
- "." + P + "-toast{position:sticky;bottom:8px;align-self:flex-start;border-radius:999px;padding:3px 10px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);font-size:11.5px}",
5829
- "@media(max-width:600px){." + P + "-table thead{display:none}." + P + "-table td{display:block;border-top:0;padding:2px 0}." + P + "-table tr{display:block;border-top:1px solid color-mix(in oklab,currentColor 8%,transparent);padding:4px 0}}"
5833
+ "." + P + "-error{padding:12px;border:1px solid var(--dsw-alias-state-error-primary,#d9534f);border-radius:10px;color:var(--dsw-alias-state-error-primary,#d9534f);display:flex;gap:10px;align-items:center;flex-wrap:wrap;overflow-wrap:anywhere}",
5834
+ "." + P + "-toast{position:sticky;bottom:8px;align-self:flex-start;border-radius:999px;padding:3px 10px;background:var(--dsw-alias-bg-skeleton,#f2f3f5);font-size:11.5px;max-width:100%}",
5835
+ // 窄屏:五列参数表压成一列会丢失列名、且 table 布局按最小内容宽度撑破容器,
5836
+ // 这里整体改成块级网格:每行 = 名称 / 类型 / 必填 + 约束行 + 说明行,行间用细线分隔。
5837
+ "@media(max-width:760px){." + P + "-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:end}." + P + "-search{grid-column:1/-1}." + P + "-toolbar>label{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0}." + P + "-toolbar select{width:100%;min-width:0}." + P + "-cardhead{grid-template-columns:minmax(0,1fr);row-gap:6px}." + P + "-origins{justify-content:flex-start}." + P + "-table{display:block}." + P + "-table thead{display:none}." + P + "-table tbody{display:block}." + P + '-table tr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"name type need" "extra extra extra" "desc desc desc";column-gap:8px;padding:9px 0;border-top:' + hairline + "}." + P + "-table tr:first-child{border-top:0;padding-top:2px}." + P + "-table tr:last-child{padding-bottom:2px}." + P + "-table td{display:block;border:0;padding:0;min-width:0}." + P + "-table td:empty{display:none}." + P + "-pname{grid-area:name;font-weight:640}." + P + "-ptype{grid-area:type;justify-self:start;align-self:center;color:var(--dsw-alias-label-tertiary,inherit)}." + P + "-pneed{grid-area:need;justify-self:end;align-self:center;font-size:11px;line-height:1.6;white-space:nowrap}." + P + "-pextra{grid-area:extra;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}." + P + "-pdesc{grid-area:desc;margin-top:3px;color:var(--dsw-alias-label-secondary,inherit);line-height:1.55}}",
5838
+ // 中等宽度(521–760px)三个筛选项正好排成一行,避免第三项独占一行显得参差。
5839
+ "@media(min-width:521px) and (max-width:760px){." + P + "-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}}",
5840
+ "@media(max-width:420px){." + P + "-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}." + P + "-card{padding:10px}." + P + "-table tr{padding:8px 0}}"
5830
5841
  ].join("\n");
5831
5842
  return function injectCss() {
5832
5843
  if (typeof document === "undefined") return;
@@ -6238,12 +6249,16 @@ var require_action_schema_view = __commonJS({
6238
6249
  return h(
6239
6250
  "tr",
6240
6251
  { key: row.name },
6241
- h("td", { className: P + "-mono" }, Highlight.hit(row.name, kw)),
6242
- h("td", { className: P + "-mono" }, Highlight.hit(row.type, kw)),
6243
- h("td", { className: row.required ? P + "-req" : P + "-opt" }, row.required ? t.required : t.optional),
6252
+ h("td", { className: P + "-mono " + P + "-pname" }, Highlight.hit(row.name, kw)),
6253
+ h("td", { className: P + "-mono " + P + "-ptype" }, Highlight.hit(row.type, kw)),
6254
+ h(
6255
+ "td",
6256
+ { className: row.required ? P + "-req " + P + "-pneed" : P + "-opt " + P + "-pneed" },
6257
+ row.required ? t.required : t.optional
6258
+ ),
6244
6259
  // extra(默认 / 枚举 / 约束)不在过滤 haystack 里,因此也不高亮,保持「显示即命中」口径。
6245
- h("td", { className: P + "-mono" }, extra),
6246
- h("td", null, Highlight.hit(row.description, kw))
6260
+ h("td", { className: P + "-mono " + P + "-pextra" }, extra),
6261
+ h("td", { className: P + "-pdesc" }, Highlight.hit(row.description, kw))
6247
6262
  );
6248
6263
  }
6249
6264
  function originsChips(action) {
@@ -9873,6 +9888,8 @@ var require_timeline_styles = __commonJS({
9873
9888
  ".wbt-timeline-member-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--wbt-line);padding-top:8px}.wbt-timeline-member-footer>span{font-size:11.5px;opacity:.65}.wbt-timeline-member-footer .wbt-timeline-pager{margin:0}",
9874
9889
  ".wbt-modal.wide.wbt-timeline-modal{display:flex;flex-direction:column;max-height:90vh;overflow:hidden}.wbt-timeline-modal-body{min-height:0;overflow:auto;flex:1;padding:12px}.wbt-timeline-member-section{min-width:0;margin-top:12px}.wbt-timeline-member-scroll{max-height:40vh;overflow:auto;overscroll-behavior:contain}.wbt-timeline-pick{border-top:1px solid var(--wbt-line);padding-top:12px;margin-top:12px}.wbt-timeline-empty{padding:12px 0}.wbt-picker-selected{font-size:12px;margin:6px 0;min-height:16px}.wbt-picker-list{max-height:220px;overflow:auto;overscroll-behavior:contain;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-sm,6px);padding:4px;background:var(--wbt-surface)}.wbt-picker-note{margin:6px;font-size:12px;opacity:.7}.wbt-picker-opt{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;padding:6px 8px;border:0;border-radius:var(--wb-radius-sm,6px);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.wbt-picker-opt:hover,.wbt-picker-opt:focus-visible{background:color-mix(in oklab,var(--wbt-accent) 12%,transparent)}.wbt-picker-opt:focus-visible{outline:2px solid var(--wbt-accent);outline-offset:-2px}.wbt-picker-opt.selected{background:color-mix(in oklab,var(--wbt-accent) 16%,transparent);font-weight:600}.wbt-picker-opt-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.wbt-picker-opt-count{font-size:11px;opacity:.6;white-space:nowrap}.wbt-timeline-confirm{padding:12px;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);margin:8px 0;line-height:1.6;background:var(--wbt-surface)}.wbt-timeline-confirm .wbt-btn{margin:8px 8px 0 0}",
9875
9890
  ".wbt-timeline-desc.expanded{max-height:none}.wbt-timeline-selected{min-width:0;overflow-wrap:anywhere;flex:1}.wbt-modal-foot.wbt-timeline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:none}.wbt-timeline-modal .wbt-empty{padding:12px;margin:8px 0;border:1px solid var(--wbt-line);border-radius:var(--wb-radius-card,10px);background:var(--wbt-surface);line-height:1.6}",
9891
+ // 窄屏:搜索独占一行,操作按钮靠左并允许换行,避免「刷新」被推出屏幕。
9892
+ "@media(max-width:600px){.wbt-timeline-toolbar{flex-direction:column;align-items:stretch}.wbt-timeline-toolbar-main{flex:1 1 100%}.wbt-timeline-toolbar-main .wbt-timeline-search{flex:1 1 100%}.wbt-timeline-toolbar-actions{margin-left:0;justify-content:flex-start;gap:6px}.wbt-timeline-toolbar-actions .wbt-btn{padding-left:10px;padding-right:10px}}",
9876
9893
  "@media(max-width:720px){.wbt-timeline-selected{flex:1 1 100%}.wbt-picker-list{max-height:180px}.wbt-timeline-columns{grid-template-columns:1fr}.wbt-timeline-toolbar-main{flex:1 1 100%}.wbt-timeline-toolbar-actions{flex:1 1 100%;justify-content:flex-end;margin-left:0}.wbt-timeline-list{max-height:320px}.wbt-timeline-toolbar{flex-wrap:wrap}.wbt-timeline-member-row{grid-template-columns:76px 8px minmax(0,1fr) auto 28px;gap:4px}.wbt-timeline-left,.wbt-timeline-right{padding:12px}.wbt-timeline-date{font-size:10.5px}.wbt-timeline-member-row>.wbt-badge{font-size:10.5px;padding:2px 4px}.wbt-timeline-actions>.wbt-act-del{margin-left:0}.wbt-timeline-id{max-width:140px}}"
9877
9894
  ].join("\n");
9878
9895
  }
@@ -14870,7 +14887,7 @@ var require_timeline_view = __commonJS({
14870
14887
  var TimelineView = require_timeline_view()({ React, COPY, injectCss, statusInfo, configView, CFG_FALLBACK, TaskItem, EditModal, DoneModal, TimelineModal, CreateModal });
14871
14888
  host.registerAddon({
14872
14889
  id: "wb-addon-tasks",
14873
- version: "5.2.40",
14890
+ version: "5.2.45",
14874
14891
  icon: ICONS["list-checks"],
14875
14892
  // 贡献声明写在 registerAddon 里:卸载任务插件时宿主按 addonId 一起撤销,
14876
14893
  // 不会在邮件里留一个渲染即报错的孤儿按钮。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workbench-tasks",
3
- "version": "5.2.41",
3
+ "version": "5.2.45",
4
4
  "description": "个人工作台任务插件:任务树、优先级、截止日、时间线与重启",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -17,7 +17,7 @@
17
17
  "id": "wb-addon-tasks",
18
18
  "title": "任务",
19
19
  "description": "任务树 + 统计/记录/时间线/工作区/配置/数据/命令/Action 八个视图:紧急/已关闭/已开启/已完成/总览,可按标签筛选,附统计报表与表数据浏览",
20
- "version": "5.2.41",
20
+ "version": "5.2.45",
21
21
  "minShell": "0.8.4",
22
22
  "tables": [
23
23
  "task",
@@ -101,7 +101,7 @@
101
101
  "./package.json": "./package.json"
102
102
  },
103
103
  "dependencies": {
104
- "dsh-workbench-host": "^0.9.1"
104
+ "dsh-workbench-host": "^0.10.2"
105
105
  },
106
106
  "dsh": {
107
107
  "bundle": {