@linxin666/dsh-client-ui-task-board 0.4.7 → 0.4.9

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 (75) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +29 -22
  3. package/README.zh.md +29 -22
  4. package/lib/client.js +1553 -670
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +757 -419
  7. package/lib/types/client/PluginSettingsCard.d.ts +60 -0
  8. package/lib/types/client/TaskBoardSettingsCard.d.ts +14 -0
  9. package/lib/types/client/board/ExecutionLog.d.ts +16 -0
  10. package/lib/types/client/board/TaskForm.d.ts +4 -0
  11. package/lib/types/client/board/VerificationReport.d.ts +2 -15
  12. package/lib/types/client/body-mutations.d.ts +45 -0
  13. package/lib/types/client/locales.d.ts +44 -6
  14. package/lib/types/client/suppress-schedule-row.d.ts +86 -0
  15. package/lib/types/client/telemetry.d.ts +14 -2
  16. package/lib/types/core/controller.d.ts +1 -1
  17. package/lib/types/core/execution-summary.d.ts +52 -0
  18. package/lib/types/core/extension.d.ts +34 -0
  19. package/lib/types/core/spend-budget.d.ts +28 -0
  20. package/lib/types/core/subtask.d.ts +59 -49
  21. package/lib/types/core/tasks.d.ts +37 -9
  22. package/lib/types/core/use-cases/task-update.d.ts +1 -1
  23. package/lib/types/core/workspace-target.d.ts +23 -3
  24. package/lib/types/host/launch-admission.d.ts +8 -9
  25. package/lib/types/host-ledger.d.ts +96 -50
  26. package/lib/types/host-routes.d.ts +49 -0
  27. package/lib/types/host-runner.d.ts +24 -11
  28. package/lib/types/host-service.d.ts +38 -50
  29. package/lib/types/host-spend.d.ts +52 -0
  30. package/lib/types/index.d.ts +70 -61
  31. package/lib/types/loopback.d.ts +41 -1
  32. package/lib/types/protocol.d.ts +0 -5
  33. package/lib/types/tool-surface.d.ts +1 -0
  34. package/package.json +25 -25
  35. package/src/client/CardDefaultPresetField.tsx +1 -1
  36. package/src/client/PluginSettingsCard.tsx +140 -20
  37. package/src/client/TaskBoardSettingsCard.tsx +104 -24
  38. package/src/client/board/ExecutionLog.tsx +140 -0
  39. package/src/client/board/LinkSubtaskModal.tsx +1 -9
  40. package/src/client/board/NewTaskModal.tsx +2 -11
  41. package/src/client/board/TaskCard.tsx +45 -23
  42. package/src/client/board/TaskDetail.tsx +407 -261
  43. package/src/client/board/TaskForm.tsx +19 -4
  44. package/src/client/board/VerificationReport.tsx +143 -104
  45. package/src/client/board/task-markdown.module.css +11 -8
  46. package/src/client/board-settings.module.css +35 -7
  47. package/src/client/board.module.css +855 -115
  48. package/src/client/body-mutations.ts +133 -0
  49. package/src/client/index.ts +10 -0
  50. package/src/client/locales.ts +101 -24
  51. package/src/client/settings-card.module.css +141 -11
  52. package/src/client/suppress-schedule-row.ts +198 -0
  53. package/src/client/telemetry.ts +47 -2
  54. package/src/core/controller.ts +1 -3
  55. package/src/core/execution-summary.ts +96 -0
  56. package/src/core/extension.ts +34 -0
  57. package/src/core/spend-budget.ts +35 -0
  58. package/src/core/store.ts +4 -0
  59. package/src/core/subtask.ts +81 -76
  60. package/src/core/tasks.ts +48 -10
  61. package/src/core/use-cases/task-update.ts +1 -3
  62. package/src/core/workspace-target.ts +27 -3
  63. package/src/host/agent-tools.ts +14 -15
  64. package/src/host/launch-admission.ts +8 -9
  65. package/src/host-ledger.ts +218 -127
  66. package/src/host-routes.ts +65 -2
  67. package/src/host-runner.ts +68 -35
  68. package/src/host-service.ts +136 -132
  69. package/src/host-spend.ts +105 -0
  70. package/src/index.ts +115 -104
  71. package/src/loopback.ts +57 -1
  72. package/src/protocol.ts +2 -9
  73. package/src/tool-surface.ts +1 -0
  74. package/lib/types/client/board/team-run-promotion.d.ts +0 -26
  75. package/src/client/board/team-run-promotion.ts +0 -39
package/lib/client.js CHANGED
@@ -6,6 +6,7 @@ window.__ModuleLoader__.load({
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
7
  let react = require("react");
8
8
  let react_jsx_runtime = require("react/jsx-runtime");
9
+ let _deepseek_ai_dsh_client_ui_slots = require("@deepseek-ai/dsh-client-ui-slots");
9
10
  let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
10
11
  //#region src/core/extension.ts
11
12
  /** Cordis service name the host and browser halves each publish. */
@@ -81,6 +82,12 @@ window.__ModuleLoader__.load({
81
82
  }
82
83
  //#endregion
83
84
  //#region src/core/tasks.ts
85
+ /**
86
+ * Upper bound of one recorded summary, in characters. The ledger stores a
87
+ * conclusion, not a transcript: a reader that needs the whole message follows
88
+ * {@link ExecutionSummary.seq} into the session history.
89
+ */
90
+ const EXECUTION_SUMMARY_LIMIT = 4e3;
84
91
  /** Every stop reason this build understands; the repair and wire gates share it. */
85
92
  const SCHEDULE_STOP_REASONS = [
86
93
  "fired",
@@ -297,7 +304,6 @@ window.__ModuleLoader__.load({
297
304
  model: normalizeTargetId(input.model),
298
305
  reasoningEffort: normalizeTargetId(input.reasoningEffort),
299
306
  reuseSession: input.reuseSession === true ? true : void 0,
300
- teamRun: input.teamRun === true ? true : void 0,
301
307
  goalRun: input.goalRun === true ? true : void 0,
302
308
  skipVerification: input.skipVerification === true ? true : void 0,
303
309
  ...input.freeze === void 0 ? {} : { freeze: freezeOf(input.freeze, now) },
@@ -510,24 +516,24 @@ window.__ModuleLoader__.load({
510
516
  return { ok: true };
511
517
  }
512
518
  /**
513
- * Whether a cascade member takes part in a new run.
514
- *
515
- * The task the user ran is always a member: the request names that card, and
516
- * the operator asked for it to run whatever its column says. A descendant does
517
- * not join once it sits in the `done` column — its work is finished, so running
518
- * the parent again is a run of the parent, never a second execution of work
519
- * that is already done. The rule keys on the column alone, so it covers both a
520
- * subtask that ran and one an operator moved to done by hand, and it holds for
521
- * every trigger: a manual run, a re-run, and a due occurrence of a schedule.
522
- * A card whose own schedule is enabled settles back into `todo`, so a scheduled
523
- * subtask stays a participant; to make a finished one run again, move it back
524
- * to `todo` or run it on its own.
525
- * @param task - the candidate member.
519
+ * Whether a card still has work outstanding: anything outside the `done`
520
+ * column. It keys on the column alone, so it covers both a subtask that ran
521
+ * and one an operator moved to done by hand.
522
+ */
523
+ function isOutstanding(task) {
524
+ return task.status !== "done";
525
+ }
526
+ /**
527
+ * Whether a card belongs to a run's dispatch set: the card the request named,
528
+ * or a card whose work is still outstanding. Kept for the browser's subtask
529
+ * preview; the Host run itself opens the clicked card alone
530
+ * ({@link cascadeTargets}).
531
+ * @param task - the candidate card.
526
532
  * @param rootId - the task the run request named.
527
- * @returns false when this member is left alone by the run.
533
+ * @returns false when this card is finished and left alone.
528
534
  */
529
535
  function joinsCascadeRun(task, rootId) {
530
- return task.id === rootId || task.status !== "done";
536
+ return task.id === rootId || isOutstanding(task);
531
537
  }
532
538
  /**
533
539
  * The permission a task would actually run under: its handover bundle's pin
@@ -1485,7 +1491,6 @@ window.__ModuleLoader__.load({
1485
1491
  if ("tags" in patch) next.tags = tagsPatch == null ? void 0 : normalizeTags(tagsPatch);
1486
1492
  if ("permission" in patch && patch.permission !== void 0 && patch.permission !== task.permission || "handover" in patch) next.permissionConfirmedAt = void 0;
1487
1493
  if ("reuseSession" in patch) next.reuseSession = patch.reuseSession === true ? true : void 0;
1488
- if ("teamRun" in patch) next.teamRun = patch.teamRun === true ? true : void 0;
1489
1494
  if ("goalRun" in patch) next.goalRun = patch.goalRun === true ? true : void 0;
1490
1495
  if ("skipVerification" in patch) next.skipVerification = patch.skipVerification === true ? true : void 0;
1491
1496
  if (workspaceId !== void 0 || "workspaceId" in patch) next.workspaceId = workspaceId;
@@ -2125,7 +2130,6 @@ window.__ModuleLoader__.load({
2125
2130
  mirrorOf(snapshot) {
2126
2131
  const sessionDefaultPermission = snapshot.sessionDefaultPermission ?? this.hostState?.sessionDefaultPermission;
2127
2132
  const maxSubtaskDepth = snapshot.maxSubtaskDepth ?? this.hostState?.maxSubtaskDepth;
2128
- const teamRunAvailable = snapshot.teamRunAvailable ?? this.hostState?.teamRunAvailable;
2129
2133
  const goalRunEnabled = snapshot.goalRunEnabled ?? this.hostState?.goalRunEnabled;
2130
2134
  const cardDefaults = snapshot.cardDefaults;
2131
2135
  const extensions = snapshot.extensions ?? this.hostState?.extensions;
@@ -2135,7 +2139,6 @@ window.__ModuleLoader__.load({
2135
2139
  power: snapshot.power,
2136
2140
  ...sessionDefaultPermission === void 0 ? {} : { sessionDefaultPermission },
2137
2141
  ...maxSubtaskDepth === void 0 ? {} : { maxSubtaskDepth },
2138
- ...teamRunAvailable === void 0 ? {} : { teamRunAvailable },
2139
2142
  ...goalRunEnabled === void 0 ? {} : { goalRunEnabled },
2140
2143
  ...cardDefaults === void 0 ? {} : { cardDefaults },
2141
2144
  ...extensions === void 0 ? {} : { extensions }
@@ -2369,6 +2372,52 @@ window.__ModuleLoader__.load({
2369
2372
  if (byId === void 0 || byId === null) return void 0;
2370
2373
  for (const row of Object.values(byId)) if (row !== void 0 && (row.retainedBy?.mainView ?? 0) > 0) return row.id;
2371
2374
  }
2375
+ //#endregion
2376
+ //#region src/core/execution-summary.ts
2377
+ /**
2378
+ * What one execution left behind: the text of its last assistant message,
2379
+ * recorded on the execution record next to the verdict it belongs to.
2380
+ *
2381
+ * A settled execution used to carry only a verdict, so a parent card could see
2382
+ * that a subtask succeeded without ever seeing what it produced, and had to
2383
+ * guess or redo the work. The card's own content cannot answer that: card
2384
+ * content is the plan and freezes at the first execution
2385
+ * (`canEditTaskContent`), so the closing words of a run are recorded on the
2386
+ * execution record instead.
2387
+ *
2388
+ * Pure (no cordis, no runtime imports) so the settlement path is unit-testable
2389
+ * without a session, and so a text-less run degrades to "no field" rather than
2390
+ * to an empty string.
2391
+ */
2392
+ /**
2393
+ * Bound one summary, keeping its tail: the closing paragraphs carry the
2394
+ * conclusion a reader is after, and the omitted opening is announced instead of
2395
+ * silently dropped. Mirrors the evidence reader's tail bound.
2396
+ */
2397
+ function truncateExecutionSummary(text, limit = EXECUTION_SUMMARY_LIMIT) {
2398
+ if (text.length <= limit) return text;
2399
+ const notice = "[truncated " + String(text.length - limit) + " chars] ";
2400
+ return notice.length >= limit ? text.slice(-limit) : notice + text.slice(-(limit - notice.length));
2401
+ }
2402
+ /**
2403
+ * Repair one persisted or reported summary.
2404
+ *
2405
+ * A summary is informational, so an unreadable one is dropped on its own rather
2406
+ * than costing the execution (or the task row) it hangs on. A hand-edited
2407
+ * overlong text is bounded on the way in, so no reader ever holds more than the
2408
+ * limit.
2409
+ */
2410
+ function normalizeExecutionSummary(value) {
2411
+ if (typeof value !== "object" || value === null) return void 0;
2412
+ const row = value;
2413
+ if (typeof row.text !== "string" || typeof row.seq !== "number" || !Number.isFinite(row.seq)) return void 0;
2414
+ const text = row.text.trim();
2415
+ if (text === "") return void 0;
2416
+ return {
2417
+ text: truncateExecutionSummary(text),
2418
+ seq: row.seq
2419
+ };
2420
+ }
2372
2421
  /** Marker replacing every sensitive match. */
2373
2422
  const REDACTED_MARKER = "[REDACTED]";
2374
2423
  const BEGIN = "<<<FREEZE";
@@ -3265,6 +3314,7 @@ window.__ModuleLoader__.load({
3265
3314
  runGroupId: normalizeTargetId(execution.runGroupId),
3266
3315
  ownResult: isExecutionOutcome(execution.ownResult) ? execution.ownResult : void 0,
3267
3316
  ownError: typeof execution.ownError === "string" ? execution.ownError : void 0,
3317
+ summary: normalizeExecutionSummary(execution.summary),
3268
3318
  verification: normalizeVerification(execution.verification),
3269
3319
  external: execution.external === true ? true : void 0
3270
3320
  }));
@@ -3496,6 +3546,8 @@ window.__ModuleLoader__.load({
3496
3546
  "detail.editTags": "编辑标签",
3497
3547
  "detail.duplicate": "复制为新任务",
3498
3548
  "detail.duplicateAndEdit": "修改并新建副本",
3549
+ "detail.more": "更多操作",
3550
+ "detail.moveTo": "移动到…",
3499
3551
  "detail.close": "关闭",
3500
3552
  "edit.title": "编辑任务",
3501
3553
  "edit.save": "保存",
@@ -3506,6 +3558,8 @@ window.__ModuleLoader__.load({
3506
3558
  "detail.expand": "展开全文",
3507
3559
  "detail.collapse": "收起",
3508
3560
  "detail.execution": "执行记录",
3561
+ "detail.execution.showAll": "显示全部 {count} 条",
3562
+ "detail.execution.summary": "{count} 次 · 最近 {time} · {result}",
3509
3563
  "detail.noExecution": "尚未执行",
3510
3564
  "detail.run": "执行",
3511
3565
  "detail.rerun": "重新执行",
@@ -3532,7 +3586,7 @@ window.__ModuleLoader__.load({
3532
3586
  "status.move.running": "移到进行中",
3533
3587
  "status.move.done": "移到已完成",
3534
3588
  "status.move.failed": "移到已失败",
3535
- "exec.error.noWorkspace": "没有可用工作区,无法执行任务",
3589
+ "exec.error.noWorkspace": "这张卡没有指定工作区,请先在卡片上选择工作区",
3536
3590
  "exec.error.promptRejected": "Prompt 被拒绝",
3537
3591
  "run.failed": "执行失败:{error}",
3538
3592
  "time.justNow": "刚刚",
@@ -3577,6 +3631,11 @@ window.__ModuleLoader__.load({
3577
3631
  "detail.schedule.runsUnlimited": "已执行 {done} 次",
3578
3632
  "detail.schedule.remaining": "剩余 {count} 次",
3579
3633
  "detail.schedule.cancel": "关闭调度",
3634
+ "detail.schedule.summary.off": "未启用",
3635
+ "detail.schedule.summary.on": "已启用 · 下次 {next}",
3636
+ "detail.schedule.summary.onFull": "已启用 · {plan} · 下次 {next}",
3637
+ "detail.schedule.summary.planOnce": "单次 {time}",
3638
+ "detail.schedule.summary.planCron": "循环 {cron}",
3580
3639
  "detail.schedule.ended": "调度已结束:{reason}",
3581
3640
  "detail.schedule.skipped": "上次跳过:{reason}",
3582
3641
  "detail.schedule.stop.fired": "单次计划已执行",
@@ -3618,31 +3677,46 @@ window.__ModuleLoader__.load({
3618
3677
  "exec.reasoning.hint.unknownModel": "无法从当前名册确认该模型的可选档位;已保存的值原样保留。",
3619
3678
  "exec.reasoning.hint.noEfforts": "该模型没有可选的思考档位,始终沿用模型/宿主的默认值。",
3620
3679
  "exec.reasoning.hint.inherit": "留空即沿用该模型/宿主的默认档位。",
3621
- "exec.teamRunAutoHint": "创建或关联子任务成功后,父任务会自动开启 Agent Team 执行(可随时手动关闭)。",
3622
3680
  "exec.reuseSession": "在同一对话继续",
3623
- "exec.teamRun": "用 Agent Team 执行(Leader/teammate)",
3624
- "exec.teamRunHint": "开启后:执行本任务只启动一个 Leader 会话,每个子任务由它派生为 teammate 并在该会话内并行工作(子任务自身的权限钉住不适用)。关闭则每个成员各开独立会话。",
3625
- "exec.teamRunUnavailable": "当前部署未提供 Agent Teams 服务,无法启用。",
3626
3681
  "exec.reuseSessionHint": "开启后,本任务的后续执行在上一次会话里继续(该会话空闲且仍存在时),不再每次新建对话;每次复用时都会重新应用上面钉住的权限与模型。",
3682
+ "exec.reuseSessionHint.short": "后续执行复用上一次的空闲会话",
3627
3683
  "exec.goalRun": "以 dsh 内置的 /goal 开始执行任务",
3628
3684
  "exec.goalRunHint": "默认关闭:勾选后执行时把任务目标作为持久目标交给 dsh 内置的 /goal,会话会自动续跑多轮,直到 agent 标记目标完成;看板在该目标真正结束后才结算本次执行。不勾选则只执行一轮普通对话。",
3685
+ "exec.goalRunHint.short": "多轮续跑,目标结束后才结算本次执行",
3686
+ "exec.goalRunGlobalOff": "全局总开关已关闭,勾选暂不生效",
3629
3687
  "exec.skipVerification": "跳过本任务的验收",
3630
3688
  "exec.skipVerificationHint": "默认关闭:勾选后本任务以 goal 形式执行时不再拦截 update_goal 标记完成,也不要求通过验收;执行记录会标注「该卡片跳过验收」。仅对之后新开的执行生效,验收总开关关闭时本项无意义。",
3689
+ "exec.skipVerificationHint.short": "本卡执行不做验收判定",
3631
3690
  "detail.executionSettings": "执行设置",
3691
+ "detail.settings.advanced": "高级设置",
3692
+ "detail.settings.summary.none": "全部关闭",
3693
+ "detail.settings.summary.reuseSession": "同一对话继续",
3694
+ "detail.settings.summary.goal": "/goal 执行",
3695
+ "detail.settings.summary.skipVerification": "跳过验收",
3632
3696
  "exec.hint": "执行时生效:工作区决定执行会话落在哪个工作区;Agent 预设决定会话的组合(工具面与提示词段);权限经 /permission 命令应用到会话。留空则继承部署默认。",
3697
+ "exec.hint.short": "留空继承部署默认,执行时生效",
3633
3698
  "settings.title": "任务看板",
3634
3699
  "settings.description": "任务编排、agent 播报与目标验收。",
3635
3700
  "settings.enabled": "启用任务看板",
3636
3701
  "settings.enabledCardHint": "总开关、播报、睡眠保护与子任务层级。",
3637
3702
  "settings.enabledHint": "关闭后隐藏侧边栏入口与看板视图,并注销 task_board_* agent 工具;开启时任何会话都可以通过这些工具读写看板、子任务与定时计划。",
3703
+ "settings.enabledHintBrief": "默认开启。关闭后隐藏入口与看板视图,并注销 task_board_* 工具。",
3638
3704
  "settings.announceToAgent": "向 agent 播报任务看板",
3639
3705
  "settings.announceToAgentHint": "开启:每条 agent 系统提示都会包含本看板的说明;关闭:不播报,agent 仅在用户主动提及时了解看板。",
3706
+ "settings.announceToAgentHintBrief": "默认关闭。开启后每条 agent 系统提示都会带上本看板说明。",
3640
3707
  "settings.preventIdleSleep": "阻止系统空闲睡眠",
3641
3708
  "settings.preventIdleSleepHint": "默认关闭。开启后,只要存在运行中的 DSH 会话、已启用的定时任务或会话状态尚未确认,Host 就阻止整机因空闲睡眠;屏幕仍可自动关闭。",
3642
- "settings.powerStatus": "平台:{platform};保护状态:{phase};运行会话:{running};已启用计划:{schedules}",
3709
+ "settings.preventIdleSleepHintBrief": "默认关闭。开启后只要有会话在跑或计划已启用,就阻止整机空闲睡眠。",
3710
+ "settings.trustForwardedProxy": "信任自己反代或隧道转发的请求",
3711
+ "settings.trustForwardedProxyHint": "默认关闭。关闭时行为与没有这项设置完全一致:带 CF-Connecting-IP 或 X-Forwarded-For 的请求一律不当作本机请求。只有反代或隧道由你自己(运维)运行、并且它拨的是本机回环上游(127.0.0.1:<端口>)时才打开:此时这类请求仍必须带浏览器同源标记,显式跨站请求照旧拒绝。第三方托管的反向代理不要打开——它可以替你伪造这些标记。",
3712
+ "settings.trustForwardedProxyHintBrief": "默认关闭。仅在自己的反代或隧道指向本机回环时才开启。",
3643
3713
  "settings.powerBoundary": "这可能增加电池消耗。合盖、手动睡眠、休眠、关机、低电量或企业策略不在保证范围内,也不会唤醒已经睡眠的机器。",
3644
- "settings.powerUnknown": "未知",
3645
3714
  "settings.powerError": "最近一次电源保护错误:{error}",
3715
+ "settings.powerPhase": "保护状态",
3716
+ "settings.powerPlatform": "平台",
3717
+ "settings.powerRunning": "运行会话",
3718
+ "settings.powerSchedules": "已启用计划",
3719
+ "settings.powerUnknown": "未知",
3646
3720
  "settings.inherit": "继承",
3647
3721
  "settings.on": "开",
3648
3722
  "settings.off": "关",
@@ -3660,26 +3734,36 @@ window.__ModuleLoader__.load({
3660
3734
  "settings.invalidNumber": "请输入数字,留空则使用默认值。",
3661
3735
  "settings.sessionPollSeconds": "会话轮询间隔(秒)",
3662
3736
  "settings.sessionPollSecondsHint": "默认 5 秒。仅在看板有需要核对的事情——运行中的卡片或未结算的执行——时才读取会话名册;两者都没有时不再轮询,Host 不会持续扫描持久化会话目录。取值 1–300 秒:间隔越短结算越快、Host 负载越高。",
3737
+ "settings.sessionPollSecondsHintBrief": "默认 5 秒,可设 1 到 300:间隔越短结算越快,Host 负载越高。",
3663
3738
  "settings.maxSubtaskDepth": "子任务深度上限",
3664
- "settings.maxSubtaskDepthHint": "默认 1:一个任务只允许一层子任务,子任务不能再创建或关联子任务。最大 3。执行父任务会并发执行它的整棵子任务树,层级越深,一次执行开启的会话越多。",
3739
+ "settings.maxSubtaskDepthHint": "默认 1:一个任务只允许一层子任务,子任务不能再创建或关联子任务。最大 3。它只决定一张卡下面能挂多深的子任务:执行一张卡始终只开它自己的一个会话,子任务由它自己按依赖顺序派发,所以层级深浅不改变一次执行开几个会话。",
3740
+ "settings.maxSubtaskDepthHintBrief": "默认 1 层,最多 3:只限制子任务能挂多深,不改变一次执行开几个会话。",
3665
3741
  "settings.maxSubtaskDepthOption": "{depth} 层",
3666
3742
  "settings.runLaunchWidth": "并发启动上限",
3667
- "settings.runLaunchWidthHint": "默认 3。一次执行会开启整棵子任务树,但同一刻最多只有这么多个成员在创建会话并入队 Prompt,其余成员排队等待——全部都会启动,只是分批进入运行列。默认值取自本仓「重型实施子代理并发 ≤ 3」的实测纪律。取值 1–16:越大启动越快,Host 的内存与 swap 压力越高。执行中修改只影响尚未入列的启动。",
3743
+ "settings.runLaunchWidthHint": "默认 3。多张卡片同时要执行时(手动执行、重新执行与到点定时一样),同一刻最多有这么多个执行被准入、创建会话并入队 Prompt,其余排队等待;每张卡的一次执行只开它自己一个会话,所以这个值不改变单卡的执行形态。默认值取自本仓「重型实施子代理并发 ≤ 3」的实测纪律。取值 1–16:越大启动越快,Host 的内存与 swap 压力越高。执行中修改只影响尚未入列的启动。",
3744
+ "settings.runLaunchWidthHintBrief": "默认 3,可设 1 到 16:多张卡同时要执行时,同一刻最多这么多个开始建会话,其余排队;单卡执行仍只开一个会话。",
3745
+ "settings.spendBudgetTokens": "每日 token 上限",
3746
+ "settings.spendBudgetTokensHint": "默认 0,表示不设闸,行为与没有这项设置时完全一致(不读账本、不计数)。设为正整数后,今日已用 token 达到该值时:手动执行与重新执行被拒绝,调用方看到的拒绝文本就是原因;到点的定时执行把原因写进调度错误并跳过本次触发,不消耗计划次数,因此调高上限或跨过本地零点后下一次触发照常执行。计量单位是 token 而不是金额:使用账本只对 DeepSeek 官方路由计价,其他路由恒为 0。今日已用取自该账本按本地日期分桶的输入、缓存读写与输出之和,与「使用统计」面板的口径一致。",
3747
+ "settings.spendBudgetTokensHintBrief": "默认 0 不设闸。设成正值后今日用量到顶,手动执行被拒绝,定时触发跳过。",
3668
3748
  "settings.runBehaviorTitle": "运行行为",
3669
3749
  "settings.runBehaviorCardHint": "全局原生 /goal 执行开关(总开关,默认关闭)。",
3670
3750
  "settings.goalRunGlobal": "全局启用 DSH 原生 /goal 执行",
3671
3751
  "settings.goalRunGlobalHint": "默认关闭。关闭时所有任务都按普通单回合执行,不调用 dsh 内置的 /goal;只有这里开启、且任务级「以 /goal 开始执行」被勾选时,才执行原生 /goal。任务级勾选始终可操作、也不会被这里的开关改写,总开关只决定它是否生效。开关按执行启动时冻结,只影响之后新开的执行。",
3752
+ "settings.goalRunGlobalHintBrief": "默认关闭。只有它与卡片级选项都开启,执行才使用原生 /goal。",
3672
3753
  "settings.goalRunGlobalDisabledTaskOption": "全局「原生 /goal 执行」总开关已关闭:任务级选项仍可随时勾选或取消,但暂不生效,你保存的偏好也不会被改写;开启总开关后即按该偏好执行。本次执行按普通单回合进行,未执行 goal 验收。",
3673
3754
  "settings.goalVerificationTitle": "任务验收",
3674
3755
  "settings.goalVerification": "启用任务验收",
3675
3756
  "settings.goalVerificationCardHint": "验收开关、裁判模型与判据阈值。",
3676
3757
  "settings.goalVerificationHint": "默认打开:以 goal 形式执行的任务在 update_goal 标记完成前必须先通过一次验收(三项 coding 判据(本分区面向工程任务)、阈值 0.65、每项两轮且交换 A/B 位置,实际工作须胜过空工作基线)。首次不通过会把总分、逐项分数与可定位问题反馈给 agent 修复,同一执行最多两次验收;第二次仍不通过则本次执行判失败。仅作用于本插件以 goal 形式执行的任务,不影响普通聊天,也不影响显式 goalRun:false 的单回合任务。每次验收都会真实调用裁判模型并消耗额度。",
3758
+ "settings.goalVerificationHintBrief": "默认开启。每项判据两轮,阈值 0.65,每次验收都会调用裁判模型。",
3677
3759
  "settings.goalVerificationModel": "验收模型",
3678
3760
  "settings.goalVerificationModelHint": "留空即继承宿主:使用宿主模型目录的默认路由,而不是任务卡钉住的执行模型。",
3761
+ "settings.goalVerificationModelHintBrief": "留空继承宿主默认路由,不跟随卡片钉住的执行模型。",
3679
3762
  "settings.goalVerificationModelInherit": "继承宿主({model})",
3680
3763
  "settings.goalVerificationModelInheritUnknown": "继承宿主(宿主未提供模型目录)",
3681
3764
  "settings.goalVerificationEffort": "推理强度",
3682
3765
  "settings.goalVerificationEffortHint": "留空即继承宿主默认档位。目标模型不支持所选档位时不会盲传:验收改用该模型自己的默认档位,并在下方标注回退。",
3766
+ "settings.goalVerificationEffortHintBrief": "留空继承宿主默认档位。目标模型不支持的档位会自动回退。",
3683
3767
  "settings.goalVerificationEffortInherit": "继承宿主({effort})",
3684
3768
  "settings.goalVerificationEffortInheritUnknown": "继承宿主(模型默认档位)",
3685
3769
  "settings.goalVerificationResolved": "实际解析后的验收配置",
@@ -3696,9 +3780,13 @@ window.__ModuleLoader__.load({
3696
3780
  "settings.goalVerificationModelInvalid": "配置的验收模型不是 provider/model 形式,已回退宿主默认。",
3697
3781
  "settings.cardDefaultsTitle": "新建卡片默认值",
3698
3782
  "settings.cardDefaultsCardHint": "新建对话框打开时预填的 Agent 预设、权限、模型与思考档位;留空即不设置,创建卡片的行为与未配置时完全一致。它们只是预填,不改变任何既有语义,新建的卡片仍可随时修改;思考档位默认值只在卡片最终钉住的模型就是这里的默认模型时才生效。",
3783
+ "settings.cardDefaultsCardBrief": "新建卡片预填的预设、权限、模型与思考档位。",
3699
3784
  "settings.cardDefaultModeHint": "留空不钉住任何值,新建卡片照旧继承部署默认预设。取值优先级为:新建对话框里的显式选择 > 复制源卡或父任务已钉住的值 > 这里的默认值;子任务沿用父卡已钉住的值。",
3785
+ "settings.cardDefaultModeHintBrief": "留空不预填,新建卡片照旧跟随部署默认预设。",
3700
3786
  "settings.cardDefaultPermissionHint": "留空为不设置(用会话默认)。高于会话默认权限基线的默认值仍只是预填:卡片执行前照旧需要人工确认。子任务从不沿用父卡的权限,只在父卡未钉住、且这里设置了默认值时才预填。",
3787
+ "settings.cardDefaultPermissionHintBrief": "留空为不设置。高于会话基线的默认值执行前仍需人工确认。",
3701
3788
  "settings.cardDefaultModelHint": "留空为宿主默认(agent-default-model)。对话框里的显式选择优先于源卡/父卡已钉住的值,后者优先于这里的默认值;自己选了模型的调用方不借用任何默认档位。",
3789
+ "settings.cardDefaultModelHintBrief": "留空即宿主默认模型,对话框里的显式选择始终优先。",
3702
3790
  "running.executing": "执行中",
3703
3791
  "running.verifying": "验收中",
3704
3792
  "running.repairing": "验收未通过修复中",
@@ -3772,8 +3860,8 @@ window.__ModuleLoader__.load({
3772
3860
  "detail.subtasks.link": "关联现有任务",
3773
3861
  "detail.subtasks.detach": "解除关联",
3774
3862
  "detail.subtasks.runningLock": "子任务正在执行,结算后才能解除关联或改挂父任务",
3775
- "detail.subtasks.runHint": "执行本任务会同时并发执行它 {count} 个未完成的子任务;已在完成列的子任务不会重复执行,子任务失败不影响其它子任务继续执行。",
3776
- "detail.subtasks.runHintSettled": "这个任务的子任务都已在完成列;执行本任务不会重复执行它们,要让某个子任务再跑一次,把它移回待办列或单独执行它。",
3863
+ "detail.subtasks.runHint": "执行本卡只会开本卡一个会话:它自己读取下面 {count} 个还没做完的子任务,按依赖顺序派发,完工后把子卡结论回填。还有未完成子任务时,执行会用梁神模式(liangshen);预设缺失会直接拒绝执行。",
3864
+ "detail.subtasks.runHintSettled": "子任务都已做完,本次执行只会开本卡一个会话,不会再跑它们;想让哪张子卡再跑一次,把它移回待办列或单独执行。",
3777
3865
  "detail.subtasks.waiting": "等待子任务结算",
3778
3866
  "detail.subtasks.depthLimit": "当前子任务深度上限为 {depth} 层,子任务不能再创建或关联子任务。",
3779
3867
  "detail.subtasks.hostOnly": "连接 Host 后才能创建或关联子任务。",
@@ -3936,6 +4024,8 @@ window.__ModuleLoader__.load({
3936
4024
  "detail.editTags": "Edit tags",
3937
4025
  "detail.duplicate": "Duplicate Task",
3938
4026
  "detail.duplicateAndEdit": "Edit as New Copy",
4027
+ "detail.more": "More actions",
4028
+ "detail.moveTo": "Move to…",
3939
4029
  "detail.close": "Close",
3940
4030
  "edit.title": "Edit Task",
3941
4031
  "edit.save": "Save",
@@ -3946,6 +4036,8 @@ window.__ModuleLoader__.load({
3946
4036
  "detail.expand": "Show more",
3947
4037
  "detail.collapse": "Show less",
3948
4038
  "detail.execution": "Execution History",
4039
+ "detail.execution.showAll": "Show all {count}",
4040
+ "detail.execution.summary": "{count} runs · latest {time} · {result}",
3949
4041
  "detail.noExecution": "Not executed yet",
3950
4042
  "detail.run": "Run",
3951
4043
  "detail.rerun": "Run Again",
@@ -3972,7 +4064,7 @@ window.__ModuleLoader__.load({
3972
4064
  "status.move.running": "Move to Running",
3973
4065
  "status.move.done": "Move to Done",
3974
4066
  "status.move.failed": "Move to Failed",
3975
- "exec.error.noWorkspace": "No workspace is available to run the task",
4067
+ "exec.error.noWorkspace": "This card has no workspace pinned; choose one on the card before it can run",
3976
4068
  "exec.error.promptRejected": "Prompt rejected",
3977
4069
  "run.failed": "Run failed: {error}",
3978
4070
  "time.justNow": "just now",
@@ -4017,6 +4109,11 @@ window.__ModuleLoader__.load({
4017
4109
  "detail.schedule.runsUnlimited": "Ran {done}",
4018
4110
  "detail.schedule.remaining": "{count} left",
4019
4111
  "detail.schedule.cancel": "Cancel schedule",
4112
+ "detail.schedule.summary.off": "Off",
4113
+ "detail.schedule.summary.on": "On · next {next}",
4114
+ "detail.schedule.summary.onFull": "On · {plan} · next {next}",
4115
+ "detail.schedule.summary.planOnce": "once at {time}",
4116
+ "detail.schedule.summary.planCron": "recurring {cron}",
4020
4117
  "detail.schedule.ended": "Schedule ended: {reason}",
4021
4118
  "detail.schedule.skipped": "Last skip: {reason}",
4022
4119
  "detail.schedule.stop.fired": "the one-shot ran",
@@ -4058,31 +4155,46 @@ window.__ModuleLoader__.load({
4058
4155
  "exec.reasoning.hint.unknownModel": "The current roster cannot confirm this model's effort levels; the stored value is kept as it is.",
4059
4156
  "exec.reasoning.hint.noEfforts": "This model offers no selectable reasoning effort, so the model or Host default always applies.",
4060
4157
  "exec.reasoning.hint.inherit": "Leave it empty to follow the model or Host default.",
4061
- "exec.teamRunAutoHint": "Once a subtask is created or linked, the parent task turns on Agent Team execution automatically (you can switch it off at any time).",
4062
4158
  "exec.reuseSession": "Continue in the same conversation",
4063
- "exec.teamRun": "Run with an Agent Team (Lead + teammates)",
4064
- "exec.teamRunHint": "On: running this task starts one Lead session and spawns a teammate per subtask inside it, working in parallel (a subtask permission pin does not apply). Off: every member gets its own independent session.",
4065
- "exec.teamRunUnavailable": "This deployment serves no Agent Teams service, so team runs cannot be enabled.",
4066
4159
  "exec.reuseSessionHint": "When on, later runs continue in the previous session (when that session is idle and still exists) instead of starting a new conversation each time; the pinned permission and model above are re-applied on every reuse.",
4160
+ "exec.reuseSessionHint.short": "Later runs reuse the previous idle session",
4067
4161
  "exec.goalRun": "Start the run with dsh's built-in /goal",
4068
4162
  "exec.goalRunHint": "Off by default: when checked, the run arms dsh built-in /goal with the task objective, so the session keeps working automatic continuation rounds until the agent marks the goal complete, and the board settles the execution only when that goal really ends. Unchecked: one plain turn.",
4163
+ "exec.goalRunHint.short": "Automatic rounds; the execution settles when the goal ends",
4164
+ "exec.goalRunGlobalOff": "The global switch is off, so checking it has no effect yet",
4069
4165
  "exec.skipVerification": "Skip acceptance for this task",
4070
4166
  "exec.skipVerificationHint": "Off by default: when checked, a goal-form run of this task no longer gates update_goal on a passing acceptance, and the execution record is marked as skipped. It applies only to executions started afterwards, and means nothing while the board-wide acceptance switch is off.",
4167
+ "exec.skipVerificationHint.short": "This card runs without an acceptance verdict",
4071
4168
  "detail.executionSettings": "Execution Settings",
4169
+ "detail.settings.advanced": "Advanced settings",
4170
+ "detail.settings.summary.none": "All off",
4171
+ "detail.settings.summary.reuseSession": "Same conversation",
4172
+ "detail.settings.summary.goal": "/goal run",
4173
+ "detail.settings.summary.skipVerification": "Acceptance skipped",
4072
4174
  "exec.hint": "Applied when the task runs: the workspace decides where the execution session lands; the agent preset composes the session (tool face and prompt sections); the permission is applied through the /permission command. Blank inherits the deployment default.",
4175
+ "exec.hint.short": "Blank inherits the deployment default; applied at run time",
4073
4176
  "settings.title": "Task Board",
4074
4177
  "settings.description": "Task orchestration, agent announcement and goal acceptance.",
4075
4178
  "settings.enabled": "Enable the task board",
4076
4179
  "settings.enabledCardHint": "Master switch, announcement, sleep protection and subtask depth.",
4077
4180
  "settings.enabledHint": "When off, the sidebar entry and board view are hidden and the task_board_* agent tools are unregistered; while on, any session can read and drive the board, its subtasks and its schedules through those tools.",
4181
+ "settings.enabledHintBrief": "On by default. Off hides the entry and board view and unregisters the task_board_* tools.",
4078
4182
  "settings.announceToAgent": "Announce the task board to agents",
4079
4183
  "settings.announceToAgentHint": "On: every agent system prompt includes a note about this board. Off: no announcement; agents learn about the board only when you mention it.",
4184
+ "settings.announceToAgentHintBrief": "Off by default. On adds a note about this board to every agent system prompt.",
4080
4185
  "settings.preventIdleSleep": "Prevent idle system sleep",
4081
4186
  "settings.preventIdleSleepHint": "Off by default. When enabled, the Host prevents idle system sleep while any DSH session runs, any schedule is enabled, or session state is not yet known. The display may still turn off.",
4082
- "settings.powerStatus": "Platform: {platform}; protection: {phase}; running sessions: {running}; enabled schedules: {schedules}",
4187
+ "settings.preventIdleSleepHintBrief": "Off by default. On blocks idle system sleep while a session runs or a schedule is enabled.",
4188
+ "settings.trustForwardedProxy": "Trust requests forwarded by my own proxy or tunnel",
4189
+ "settings.trustForwardedProxyHint": "Off by default. While it is off the fence behaves exactly as if the setting did not exist: a request carrying CF-Connecting-IP or X-Forwarded-For is never treated as local. Turn it on only when the reverse proxy or tunnel is one you (the operator) run yourself and it dials this machine loopback upstream (127.0.0.1:<port>): even then such a request must still carry a browser same-origin marker, and an explicit cross-site request stays refused. Do not enable it for a reverse proxy hosted by a third party, which can forge those markers on your behalf.",
4190
+ "settings.trustForwardedProxyHintBrief": "Off by default. Turn on only for a proxy or tunnel you run that dials this machine loopback.",
4083
4191
  "settings.powerBoundary": "This may use more battery. Lid close, manual sleep, hibernation, shutdown, low-battery actions, and enterprise policy are outside the guarantee; an already sleeping computer is not woken.",
4084
- "settings.powerUnknown": "unknown",
4085
4192
  "settings.powerError": "Latest power-protection error: {error}",
4193
+ "settings.powerPhase": "Protection",
4194
+ "settings.powerPlatform": "Platform",
4195
+ "settings.powerRunning": "Running sessions",
4196
+ "settings.powerSchedules": "Enabled schedules",
4197
+ "settings.powerUnknown": "unknown",
4086
4198
  "settings.inherit": "Inherit",
4087
4199
  "settings.on": "On",
4088
4200
  "settings.off": "Off",
@@ -4100,26 +4212,36 @@ window.__ModuleLoader__.load({
4100
4212
  "settings.invalidNumber": "Enter a number, or leave blank to use the default.",
4101
4213
  "settings.sessionPollSeconds": "Session poll interval (seconds)",
4102
4214
  "settings.sessionPollSecondsHint": "Default 5. The Host reads the DSH session roster only while the board has something to reconcile: a running card or an open execution. With neither it stops polling and never re-scans the persisted session directory. Range 1 to 300 seconds: a shorter interval settles runs sooner and costs the Host more.",
4215
+ "settings.sessionPollSecondsHintBrief": "Default 5 seconds, range 1 to 300: a shorter interval settles runs sooner and costs the Host more.",
4103
4216
  "settings.maxSubtaskDepth": "Subtask depth limit",
4104
- "settings.maxSubtaskDepthHint": "Default 1: a task may carry one level of subtasks, and a subtask cannot create or link further subtasks. Maximum 3. Running a task also runs its whole subtask tree concurrently, and every extra level opens more sessions per run.",
4217
+ "settings.maxSubtaskDepthHint": "Default 1: a task may carry one level of subtasks, and a subtask cannot create or link further subtasks. Maximum 3. The limit only decides how deep the tree under one card can go: a run still opens that card's own single session and dispatches its subtasks itself, so the depth never changes how many sessions a run opens.",
4218
+ "settings.maxSubtaskDepthHintBrief": "Default 1, maximum 3: it caps only how deep subtasks can go, not how many sessions a run opens.",
4105
4219
  "settings.maxSubtaskDepthOption": "{depth} levels",
4106
4220
  "settings.runLaunchWidth": "Concurrent run launches",
4107
- "settings.runLaunchWidthHint": "Default 3. A run opens its whole subtree, but only this many members create their session and queue their prompt at the same time; the rest wait their turn. Every member still starts, entering the running column in batches. The default comes from this repository's measured guidance for heavy implementation subagents (at most three). Range 1 to 16: a larger width starts runs sooner and costs the Host more memory and swap. Edited during a run, it bounds the launches that have not been admitted yet.",
4221
+ "settings.runLaunchWidthHint": "Default 3. When several cards want to run at the same time, a manual run, a re-run and a due schedule alike, only this many runs are admitted at once: each creates its session and queues its prompt, and the rest wait their turn. Running one card always opens just that card's own session, so this value never changes the shape of a single-card run. The default comes from this repository's measured guidance for heavy implementation subagents (at most three). Range 1 to 16: a larger width starts runs sooner and costs the Host more memory and swap. Edited during a run, it bounds the launches that have not been admitted yet.",
4222
+ "settings.runLaunchWidthHintBrief": "Default 3, range 1 to 16: when several cards want to run, this many are admitted at once and the rest wait; a single card still opens one session.",
4223
+ "settings.spendBudgetTokens": "Daily token cap",
4224
+ "settings.spendBudgetTokensHint": "Default 0 means no gate: behavior is exactly what it was before this setting existed, with no ledger read and no counting. With a positive cap, once today's measured spend reaches it a manual run or re-run is refused and the caller sees that message as the refusal, while a due schedule writes the reason to the scheduler error and skips that occurrence without spending a planned run — raising the cap, or the local day rolling over, lets the next trigger run as usual. The unit is tokens rather than money: the usage ledger prices only DeepSeek's own routes and stays 0 on every other route. Today's spend is that ledger's local-date bucket summed over input, cache read/write and output, the same measure the usage panel shows.",
4225
+ "settings.spendBudgetTokensHintBrief": "Default 0 gates nothing. Past a positive cap, manual runs are refused and due schedules skip.",
4108
4226
  "settings.runBehaviorTitle": "Run behavior",
4109
4227
  "settings.runBehaviorCardHint": "The global native /goal switch (master control, off by default).",
4110
4228
  "settings.goalRunGlobal": "Global: run tasks with dsh native /goal",
4111
4229
  "settings.goalRunGlobalHint": "Off by default. While off, every task runs one plain turn and never calls dsh built-in /goal; a run uses native /goal only when this is on AND the task-level option is checked (see the task option below). The task-level checkbox always stays operable and this switch never rewrites it: the master switch only decides whether that choice takes effect. The switch is frozen when an execution starts, so it only affects runs opened afterwards.",
4230
+ "settings.goalRunGlobalHintBrief": "Off by default. A run uses native /goal only when this and the card option are both on.",
4112
4231
  "settings.goalRunGlobalDisabledTaskOption": "The global native /goal switch is off: the task-level option can still be checked or cleared, but it has no effect right now and the preference you save is never rewritten; turning the global switch back on applies it. This execution runs one plain turn and performs no goal acceptance.",
4113
4232
  "settings.goalVerificationTitle": "Task acceptance",
4114
4233
  "settings.goalVerification": "Enable task acceptance",
4115
4234
  "settings.goalVerificationCardHint": "The switch, the judge model and the criteria threshold.",
4116
4235
  "settings.goalVerificationHint": "On by default: a task executed in goal form must pass one acceptance before update_goal may mark it complete (the three coding criteria, aimed at engineering tasks, a 0.65 threshold, two rounds per criterion with the A/B slots swapped, and the work must beat the empty-work baseline). A first failure returns the total, the per-criterion scores and the located findings to the fixing agent, and one execution may accept at most twice; a second failure fails that execution. It affects only this board goal-form executions, never plain chat and never a task pinned to goalRun: false. Every acceptance really calls the judge model and spends quota.",
4236
+ "settings.goalVerificationHintBrief": "On by default. Two rounds per criterion at 0.65, and each acceptance calls the judge model.",
4117
4237
  "settings.goalVerificationModel": "Judge model",
4118
4238
  "settings.goalVerificationModelHint": "Blank inherits the host: the default route of the host model catalog, never the card pinned execution model.",
4239
+ "settings.goalVerificationModelHintBrief": "Blank inherits the host default route, never the model pinned on the card.",
4119
4240
  "settings.goalVerificationModelInherit": "Inherit host ({model})",
4120
4241
  "settings.goalVerificationModelInheritUnknown": "Inherit host (no model catalog)",
4121
4242
  "settings.goalVerificationEffort": "Reasoning effort",
4122
4243
  "settings.goalVerificationEffortHint": "Blank inherits the host default level. A level the target model does not declare is never sent blindly: the acceptance falls back to that model own default level, and the fallback is reported below.",
4244
+ "settings.goalVerificationEffortHintBrief": "Blank inherits the host default level. A level the model lacks falls back automatically.",
4123
4245
  "settings.goalVerificationEffortInherit": "Inherit host ({effort})",
4124
4246
  "settings.goalVerificationEffortInheritUnknown": "Inherit host (model default level)",
4125
4247
  "settings.goalVerificationResolved": "Resolved acceptance configuration",
@@ -4135,9 +4257,13 @@ window.__ModuleLoader__.load({
4135
4257
  "settings.goalVerificationEffortFallbackNone": "The selected reasoning effort {requested} is not supported by the target model; it falls back to that model default level (not sent explicitly).",
4136
4258
  "settings.cardDefaultsTitle": "New-card defaults",
4137
4259
  "settings.cardDefaultsCardHint": "What the new-task dialog opens with: agent preset, permission, model and reasoning effort. Blank sets nothing, so creating a card behaves exactly as it does unconfigured. They are only prefills and change no existing meaning, and every new card stays editable; the default reasoning effort applies only while a card ends up on the configured default model.",
4260
+ "settings.cardDefaultsCardBrief": "What a new card opens with: preset, permission, model and effort.",
4138
4261
  "settings.cardDefaultModeHint": "Blank pins nothing: a new card keeps following the deployment default preset. A target resolves as the explicit choice in the new-task dialog, then the value carried over from the source card or parent, then this default; a subtask keeps what its parent already pinned.",
4262
+ "settings.cardDefaultModeHintBrief": "Blank prefills nothing, so a new card keeps the deployment default preset.",
4139
4263
  "settings.cardDefaultPermissionHint": "Blank sets nothing (the session default applies). A default above the session permission baseline is still only a prefill: the card still needs a human confirmation before it may run. A subtask never carries its parent permission; this default fills in only where the parent pinned none.",
4264
+ "settings.cardDefaultPermissionHintBrief": "Blank sets nothing. A default above the session baseline still needs a human confirmation.",
4140
4265
  "settings.cardDefaultModelHint": "Blank is the host default (agent-default-model). An explicit choice in the dialog wins over the value carried over from the source card or parent, which wins over this default; a caller that pins a model of its own borrows no default reasoning level.",
4266
+ "settings.cardDefaultModelHintBrief": "Blank is the host default model, and an explicit dialog choice always wins over it.",
4141
4267
  "settings.goalVerificationModelInvalid": "The configured judge model is not a provider/model route; the host default is used instead.",
4142
4268
  "running.executing": "Executing",
4143
4269
  "running.verifying": "Verifying",
@@ -4212,8 +4338,8 @@ window.__ModuleLoader__.load({
4212
4338
  "detail.subtasks.link": "Link existing task",
4213
4339
  "detail.subtasks.detach": "Detach",
4214
4340
  "detail.subtasks.runningLock": "This subtask is running; it can be detached or re-linked once it settles",
4215
- "detail.subtasks.runHint": "Running this task also runs its {count} unfinished subtasks concurrently; a subtask already in the done column is not run again, and one subtask failing does not stop the others.",
4216
- "detail.subtasks.runHintSettled": "Every subtask of this task is already in the done column; running this task does not repeat them. To run one again, move it back to the todo column or run it on its own.",
4341
+ "detail.subtasks.runHint": "Running this card opens one session, this card's own: it reads the {count} unfinished subtasks below, dispatches them in dependency order, and writes each subtask conclusion back once they finish. While any subtask is still unfinished, the run uses the liangshen preset; if that preset is missing, the run is refused outright.",
4342
+ "detail.subtasks.runHintSettled": "Every subtask already sits in the done column, so this run opens only this card's own session and leaves them alone. To run one again, move it back to the todo column or run it on its own.",
4217
4343
  "detail.subtasks.waiting": "Waiting for subtasks",
4218
4344
  "detail.subtasks.depthLimit": "The subtask depth limit is {depth}; a subtask cannot create or link further subtasks.",
4219
4345
  "detail.subtasks.hostOnly": "Connect to the Host to create or link subtasks.",
@@ -4276,7 +4402,7 @@ window.__ModuleLoader__.load({
4276
4402
  }
4277
4403
  //#endregion
4278
4404
  //#region \0dsh-css:packages/dsh-task-board/src/client/board.module.css.mjs
4279
- const css$3 = "[data-dsh-taskboard-view]{box-sizing:border-box;background:var(--dsw-alias-bg-base);flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;container:_7D6uKa_task-board-view/inline-size}._7D6uKa_board{--dsh-tb-control-h:30px;--dsh-tb-control-radius:8px;--dsh-tb-control-gap:8px;--dsh-tb-icon-size:30px;--dsh-tb-hit-size:44px;--dsh-tb-motion-enter:.16s;--dsh-tb-motion-close:.14s;--dsh-tb-ease:cubic-bezier(.2, 0, 0, 1);box-sizing:border-box;background:var(--dsw-alias-bg-base);min-width:0;height:100%;min-height:0;color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family);flex-direction:column;gap:12px;padding:14px 16px 16px;display:flex}._7D6uKa_boardHeader{flex:none;align-items:center;gap:10px;display:flex}._7D6uKa_boardTools{align-items:center;gap:var(--dsh-tb-control-gap);flex:auto;justify-content:flex-end;min-width:0;margin-left:auto;display:flex}._7D6uKa_boardTitle{color:var(--dsw-alias-label-primary);white-space:nowrap;margin:0;font-size:16px;font-weight:700}._7D6uKa_backButton{align-items:center;gap:4px;display:inline-flex}._7D6uKa_search{box-sizing:border-box;min-width:120px;height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);outline:none;flex:0 260px;padding:0 10px;font-size:13px}._7D6uKa_search::placeholder{color:var(--dsw-alias-label-tertiary)}._7D6uKa_columns{overscroll-behavior-inline:contain;scrollbar-color:var(--dsw-alias-border-l3) var(--dsw-alias-interactive-bg-hover);scrollbar-width:thin;flex:1;grid-auto-columns:minmax(220px,1fr);grid-auto-flow:column;gap:12px;min-height:0;padding-bottom:6px;display:grid;overflow:auto hidden}._7D6uKa_columns::-webkit-scrollbar{height:10px}._7D6uKa_columns::-webkit-scrollbar-track{background:var(--dsw-alias-interactive-bg-hover);border-radius:999px}._7D6uKa_columns::-webkit-scrollbar-thumb{background:var(--dsw-alias-border-l3);background-clip:content-box;border:2px solid #0000;border-radius:999px}._7D6uKa_columns::-webkit-scrollbar-thumb:hover{background:var(--dsw-alias-border-l4);background-clip:content-box}._7D6uKa_column{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l1);border-radius:12px;flex-direction:column;min-height:0;display:flex;overflow:hidden}._7D6uKa_columnHeader{flex:none;align-items:center;gap:6px;padding:10px 12px;display:flex}._7D6uKa_columnTitle{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:13px;font-weight:700;overflow:hidden}._7D6uKa_columnCount{min-width:0;color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-interactive-bg-hover);border-radius:999px;flex:none;padding:1px 8px;font-size:12px}._7D6uKa_statusDot{border-radius:50%;flex:none;width:8px;height:8px}._7D6uKa_statusDot[data-status=backlog]{background:var(--dsw-alias-label-tertiary)}._7D6uKa_statusDot[data-status=todo]{background:var(--dsw-alias-state-business-primary)}._7D6uKa_statusDot[data-status=running]{background:var(--dsw-alias-state-warn-primary)}._7D6uKa_statusDot[data-status=done]{background:var(--dsw-alias-state-success-primary)}._7D6uKa_statusDot[data-status=failed]{background:var(--dsw-alias-state-error-primary)}._7D6uKa_cards{flex-direction:column;flex:1;gap:8px;min-height:0;padding:2px 8px 10px;display:flex;overflow-y:auto}._7D6uKa_columnEmpty{text-align:center;color:var(--dsw-alias-label-tertiary);padding:24px 8px;font-size:12px}._7D6uKa_card{text-align:left;background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);cursor:pointer;color:var(--dsw-alias-label-primary);border-radius:10px;flex-direction:column;flex:none;gap:6px;padding:10px 12px 10px 14px;font-family:inherit;transition:box-shadow .12s,border-color .12s,transform .12s;display:flex;position:relative;overflow:hidden}._7D6uKa_card>:not(._7D6uKa_cardOpen){z-index:1;position:relative}._7D6uKa_card:before{content:\"\";pointer-events:none;background:0 0;width:3px;position:absolute;inset:0 auto 0 0}._7D6uKa_card[data-tone=running]:before{background:var(--dsw-alias-state-warn-primary)}._7D6uKa_card[data-tone=succeeded]:before{background:var(--dsw-alias-state-success-primary)}._7D6uKa_card[data-tone=failed]:before{background:var(--dsw-alias-state-error-primary)}._7D6uKa_card[data-tone=cancelled]:before{background:var(--dsw-alias-label-tertiary)}._7D6uKa_card:hover{box-shadow:var(--dsw-shadow-lv2);border-color:var(--dsw-alias-border-l3);transform:translateY(-1px)}._7D6uKa_card[data-compact]:hover{box-shadow:none;transform:none}._7D6uKa_card[data-status=running]{border-color:var(--dsw-alias-state-warn-primary)}._7D6uKa_cardOpen{z-index:0;border-radius:inherit;cursor:pointer;background:0 0;border:0;margin:0;padding:0;position:absolute;inset:0}._7D6uKa_cardOpen:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-2px}._7D6uKa_cardTitleRow{align-items:flex-start;gap:6px;min-width:0;display:flex}._7D6uKa_cardKind{white-space:nowrap;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);border-radius:4px;flex:none;margin-top:1px;padding:0 6px;font-size:10px;font-weight:600;line-height:16px}._7D6uKa_cardTitle{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-width:0;font-size:13px;font-weight:600;line-height:1.35;display:-webkit-box;overflow:hidden}._7D6uKa_card[data-compact]{gap:2px;padding-top:6px;padding-bottom:6px}._7D6uKa_card[data-compact] ._7D6uKa_cardTitle{-webkit-line-clamp:1;font-size:12px;font-weight:500}._7D6uKa_cardDecoration{flex:none;align-items:center;gap:4px;display:inline-flex}._7D6uKa_cardDecoration:empty{display:none}._7D6uKa_cardExcerpt{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}._7D6uKa_cardMeta{color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:11px;display:flex}._7D6uKa_cardTime{text-overflow:ellipsis;white-space:nowrap;flex:auto;min-width:max-content;overflow:hidden}._7D6uKa_cardSchedule{white-space:nowrap;min-width:0;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);border-radius:999px;flex:none;align-items:center;gap:4px;padding:2px 6px;font-size:12px;line-height:1;display:inline-flex}._7D6uKa_cardRun{flex:none}._7D6uKa_cardRun[data-declared]{text-underline-offset:2px;text-decoration:underline dotted}._7D6uKa_cardRun[data-result=failed]{color:var(--dsw-alias-state-error-primary)}._7D6uKa_cardRun[data-result=succeeded]{color:var(--dsw-alias-state-success-primary)}._7D6uKa_cardSession{color:var(--dsw-alias-state-business-primary);flex:none;align-items:center;display:inline-flex}._7D6uKa_cardAction{cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;width:22px;height:22px;margin:-4px -4px -4px 0;padding:0;font-family:inherit}._7D6uKa_cardAction:hover{background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_cardAction:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}._7D6uKa_cardGroup{flex-direction:column;gap:6px;display:flex}._7D6uKa_cardGroupHeader{color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;padding:4px 2px 0;font-size:11px;font-weight:600;display:flex}._7D6uKa_cardGroupCount{font-weight:400}._7D6uKa_cardGroupHeader ._7D6uKa_linkButton{margin-left:auto;font-size:11px}._7D6uKa_densityToggle{width:22px;height:22px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}._7D6uKa_densityToggle:hover,._7D6uKa_densityToggle[data-active=true]{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_densityToggle:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}._7D6uKa_cardRunningLabel{color:var(--dsw-alias-state-warn-primary);font-size:11px}._7D6uKa_cardSpinner{border:2px solid var(--dsw-alias-state-warn-primary);border-top-color:#0000;border-radius:50%;flex:none;width:10px;height:10px;animation:.8s linear infinite _7D6uKa_dshTbSpin}@keyframes _7D6uKa_dshTbSpin{to{transform:rotate(360deg)}}._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton{box-sizing:border-box;height:var(--dsh-tb-control-h);border-radius:var(--dsh-tb-control-radius);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:6px;font-family:inherit;display:inline-flex}._7D6uKa_primaryButton,._7D6uKa_dangerButton{padding:0 14px;font-size:13px;font-weight:600}._7D6uKa_primaryButton{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-button-primary-fill);border:1px solid #0000}._7D6uKa_dangerButton{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-state-error-primary);border:1px solid #0000}._7D6uKa_ghostButton{color:var(--dsw-alias-label-primary);border:1px solid var(--dsw-alias-border-l2);background:0 0;padding:0 12px;font-size:13px}._7D6uKa_ghostButton[data-active=true]{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-button-primary-fill);border-color:#0000}._7D6uKa_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}._7D6uKa_ghostButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_ghostButton[data-active=true]:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}._7D6uKa_dangerButton:hover:not(:disabled){filter:brightness(1.08)}._7D6uKa_dangerButton:active:not(:disabled){filter:brightness(.94)}._7D6uKa_primaryButton:disabled,._7D6uKa_dangerButton:disabled{opacity:.5;cursor:default}._7D6uKa_ghostButton:disabled{opacity:.45;cursor:default}._7D6uKa_iconButton{width:var(--dsh-tb-icon-size);color:var(--dsw-alias-label-secondary);background:0 0;border:1px solid #0000;padding:0;position:relative}._7D6uKa_iconButton:after{content:\"\";width:var(--dsh-tb-hit-size);height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_iconButton:disabled{opacity:.45;cursor:default}._7D6uKa_linkButton{color:var(--dsw-alias-state-business-primary);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:0;font-size:12px}._7D6uKa_linkButton:hover{text-decoration:underline}._7D6uKa_modalBackdrop{z-index:1300;background:var(--dsw-alias-bg-mask-1);animation:_7D6uKa_dshTbBackdropIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}._7D6uKa_modalBackdrop[data-state=closing]{animation:_7D6uKa_dshTbBackdropOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both}._7D6uKa_modal,._7D6uKa_detail{animation:_7D6uKa_dshTbSurfaceIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both}._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_modal,._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_detail{animation:_7D6uKa_dshTbSurfaceOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both}@keyframes _7D6uKa_dshTbBackdropIn{0%{opacity:0}to{opacity:1}}@keyframes _7D6uKa_dshTbBackdropOut{0%{opacity:1}to{opacity:0}}@keyframes _7D6uKa_dshTbSurfaceIn{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:none}}@keyframes _7D6uKa_dshTbSurfaceOut{0%{opacity:1;transform:none}to{opacity:0;transform:translateY(8px)scale(.98)}}._7D6uKa_modal{background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);width:min(520px,100vw - 48px);max-height:calc(100vh - 96px);box-shadow:var(--dsw-shadow-lv3);color:var(--dsw-alias-label-primary);border-radius:14px;flex-direction:column;gap:10px;padding:18px;display:flex;overflow:hidden}._7D6uKa_modalTitle{margin:0;font-size:15px;font-weight:700}._7D6uKa_confirmMessage{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.5}._7D6uKa_modalFooter{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}._7D6uKa_modalHeader{align-items:center;gap:10px;display:flex}._7D6uKa_modalHeader>._7D6uKa_modalTitle{flex:1;min-width:0}._7D6uKa_tagManageList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}._7D6uKa_tagManageRow{border:1px solid var(--dsw-alias-border-l1);border-radius:var(--dsh-tb-control-radius);flex-wrap:wrap;align-items:center;gap:8px;padding:6px 8px;display:flex}._7D6uKa_tagManageName{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-primary);flex:auto;font-size:13px;overflow:hidden}._7D6uKa_tagManageCount{color:var(--dsw-alias-label-tertiary);flex:none;font-size:11px}._7D6uKa_tagManageInput{flex:auto;min-width:0}._7D6uKa_tagManageMerge{color:var(--dsw-alias-label-tertiary);flex:1 0 100%;font-size:11px}._7D6uKa_modalBody{flex-direction:column;gap:8px;min-height:0;display:flex;overflow-y:auto}._7D6uKa_modalBody>*{flex:none}._7D6uKa_formSection{border:1px solid var(--dsw-alias-separator-primary);border-radius:10px;flex-direction:column;display:flex;overflow:hidden}._7D6uKa_formSectionHeader{width:100%;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:7px 10px;font-family:inherit;font-size:12.5px;font-weight:600;display:flex}._7D6uKa_formSectionHeader:hover{background:var(--dsw-alias-bg-mask-1)}._7D6uKa_formSectionChevron{border-top:4px solid #0000;border-bottom:4px solid #0000;border-left:5px solid var(--dsw-alias-label-tertiary);flex:none;width:0;height:0;margin-left:1px;transition:transform .12s}._7D6uKa_formSection[data-open=true] ._7D6uKa_formSectionChevron{transform:rotate(90deg)}._7D6uKa_formSectionTitle{flex:none}._7D6uKa_formSectionSummary{min-width:0;color:var(--dsw-alias-label-tertiary);text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:auto;font-weight:400;overflow:hidden}._7D6uKa_formSectionBody{border-top:1px solid var(--dsw-alias-separator-primary);flex-direction:column;gap:8px;padding:8px 10px 10px;display:flex}._7D6uKa_field{flex-direction:column;gap:5px;display:flex}._7D6uKa_fieldLabel{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:600}._7D6uKa_input{box-sizing:border-box;min-height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);resize:vertical;outline:none;padding:6px 10px;font-family:inherit;font-size:13px}._7D6uKa_input:focus{border-color:var(--dsw-alias-state-business-primary)}._7D6uKa_select{box-sizing:border-box;height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);outline:none;max-width:100%;padding:0 10px;font-family:inherit;font-size:13px}._7D6uKa_input::placeholder{color:var(--dsw-alias-label-tertiary)}._7D6uKa_formError{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}._7D6uKa_detail{background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);width:min(640px,100vw - 48px);max-height:calc(100vh - 80px);box-shadow:var(--dsw-shadow-lv3);color:var(--dsw-alias-label-primary);border-radius:14px;flex-direction:column;display:flex;overflow:hidden}._7D6uKa_detailHeader{border-bottom:1px solid var(--dsw-alias-separator-primary);flex:none;align-items:center;gap:10px;padding:14px 18px;display:flex}._7D6uKa_detailTitle{overflow-wrap:anywhere;flex:1;margin:0;font-size:15px;font-weight:700}._7D6uKa_statusBadge{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:2px 10px;font-size:12px}._7D6uKa_statusBadge[data-status=running]{color:var(--dsw-alias-state-warn-primary);border-color:var(--dsw-alias-state-warn-primary)}._7D6uKa_statusBadge[data-status=done]{color:var(--dsw-alias-state-success-primary);border-color:var(--dsw-alias-state-success-primary)}._7D6uKa_statusBadge[data-status=failed]{color:var(--dsw-alias-state-error-primary);border-color:var(--dsw-alias-state-error-primary)}._7D6uKa_detailBody{flex-direction:column;flex:1;gap:16px;padding:14px 18px;display:flex;overflow-y:auto}._7D6uKa_detailSection{flex-direction:column;gap:6px;display:flex}._7D6uKa_detailSection h4{color:var(--dsw-alias-label-tertiary);text-transform:none;margin:0;font-size:12px;font-weight:700}._7D6uKa_detailText{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.55}._7D6uKa_scheduleToggle{color:var(--dsw-alias-label-primary);cursor:pointer;user-select:none;align-items:center;gap:8px;font-size:13px;display:flex}._7D6uKa_scheduleToggle input{accent-color:var(--dsw-alias-state-business-primary)}._7D6uKa_scheduleRow{align-items:center;gap:8px;display:flex}._7D6uKa_scheduleInput{min-width:0;font-family:var(--dsw-font-markdown-code-block-small);flex:1;font-size:12.5px}._7D6uKa_scheduleInputInvalid,._7D6uKa_scheduleInputInvalid:focus{border-color:var(--dsw-alias-state-error-primary)}._7D6uKa_schedulePreset{box-sizing:border-box;height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);outline:none;flex:none;padding:0 8px;font-size:12.5px}._7D6uKa_scheduleZone{color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;font-size:12.5px;display:flex}._7D6uKa_scheduleZone select{flex:1;min-width:0}._7D6uKa_scheduleMeta{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0;font-size:12px}._7D6uKa_promptBlock{font-size:12.5px;line-height:1.5;font-family:var(--dsw-font-markdown-code-block-small);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block);border:1px solid var(--dsw-alias-border-l1);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;max-height:240px;margin:0;padding:10px 12px;overflow-y:auto}._7D6uKa_clampBody{position:relative}._7D6uKa_clampBody[data-clamped=true]{max-height:160px;overflow:hidden}._7D6uKa_clampBody[data-clamped=true]:after{content:\"\";pointer-events:none;background:linear-gradient(to bottom, transparent, var(--dsw-alias-bg-base));height:44px;position:absolute;bottom:0;left:0;right:0}._7D6uKa_clampToggle{align-self:flex-start}._7D6uKa_executionList{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}._7D6uKa_executionRow{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 10px;display:flex}._7D6uKa_executionBadge{color:var(--dsw-alias-state-warn-primary);background:var(--dsw-alias-state-warn-secondary);border-radius:999px;flex:none;padding:1px 8px;font-size:11px;font-weight:600}._7D6uKa_executionBadge[data-result=succeeded]{color:var(--dsw-alias-state-success-primary);background:0 0}._7D6uKa_executionBadge[data-result=failed]{color:var(--dsw-alias-state-error-primary);background:0 0}._7D6uKa_executionBadge[data-result=cancelled]{color:var(--dsw-alias-label-tertiary);background:0 0}._7D6uKa_executionTimes{color:var(--dsw-alias-label-secondary);font-size:12px}._7D6uKa_executionError{width:100%;color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;font-size:12px}._7D6uKa_moveRow{flex-wrap:wrap;gap:8px;display:flex}._7D6uKa_detailFooter{border-top:1px solid var(--dsw-alias-separator-primary);flex:none;align-items:center;gap:10px;padding:12px 18px;display:flex}._7D6uKa_detailMeta{color:var(--dsw-alias-label-tertiary);margin-left:auto;font-size:11px}@container _7D6uKa_task-board-view (width<=768px){._7D6uKa_board{gap:10px;padding:10px}._7D6uKa_boardHeader{flex-wrap:wrap;align-items:center;gap:8px}._7D6uKa_backButton{flex:none}._7D6uKa_boardTitle{flex:auto}._7D6uKa_boardHeader>._7D6uKa_detailMeta{flex:1 0 100%;margin-left:0}._7D6uKa_boardTools{flex-wrap:wrap;flex:1 0 100%;justify-content:flex-start;margin-left:0}._7D6uKa_boardTools>._7D6uKa_search{flex:1 0 100%;min-width:0}._7D6uKa_boardTools>._7D6uKa_projectFilter{flex:auto;min-width:0}._7D6uKa_boardTools>button{flex:1 1 0;min-width:0}._7D6uKa_columns{scroll-snap-type:inline mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;grid-auto-columns:86cqw;gap:10px;padding-inline:2px 14cqw;scroll-padding-inline:2px}._7D6uKa_columns::-webkit-scrollbar{display:none}._7D6uKa_column{scroll-snap-align:start;scroll-snap-stop:always}}@container _7D6uKa_task-board-view (width<=720px){._7D6uKa_boardHeader>._7D6uKa_detailMeta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}}@container _7D6uKa_task-board-view (width<=600px){._7D6uKa_board{padding-inline:8px}}@media (width<=768px){[data-dsh-taskboard-view]{height:100dvh}._7D6uKa_card,._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton,._7D6uKa_linkButton,._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset,._7D6uKa_scheduleToggle{min-height:44px}._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset{box-sizing:border-box;font-size:16px}._7D6uKa_modalBackdrop{justify-content:stretch;align-items:stretch;width:100vw;height:100dvh}._7D6uKa_modal,._7D6uKa_detail{box-sizing:border-box;border:0;border-radius:0;width:100vw;height:100dvh;max-height:none}._7D6uKa_modal{padding-top:max(16px, env(safe-area-inset-top));padding-right:max(16px, env(safe-area-inset-right));padding-bottom:max(16px, env(safe-area-inset-bottom));padding-left:max(16px, env(safe-area-inset-left))}._7D6uKa_modalFooter{z-index:1;background:var(--dsw-alias-bg-base);flex-wrap:wrap;padding-top:8px;position:sticky;bottom:0}._7D6uKa_modalFooter>button{flex:120px}._7D6uKa_detailHeader{padding-top:max(12px, env(safe-area-inset-top));padding-right:max(14px, env(safe-area-inset-right));padding-left:max(14px, env(safe-area-inset-left));flex-wrap:wrap}._7D6uKa_detailTitle{min-width:0}._7D6uKa_detailBody{overscroll-behavior-y:contain;padding-right:max(14px, env(safe-area-inset-right));padding-left:max(14px, env(safe-area-inset-left))}._7D6uKa_detailFooter{padding-right:max(14px, env(safe-area-inset-right));padding-bottom:max(12px, env(safe-area-inset-bottom));padding-left:max(14px, env(safe-area-inset-left));flex-wrap:wrap}._7D6uKa_detailFooter>button{flex:96px}._7D6uKa_detailFooter>._7D6uKa_detailMeta{text-align:end;flex:1 0 100%;margin-left:0}._7D6uKa_scheduleRow{flex-direction:column;align-items:stretch}._7D6uKa_schedulePreset{width:100%}}._7D6uKa_primaryButton:focus-visible,._7D6uKa_ghostButton:focus-visible,._7D6uKa_dangerButton:focus-visible,._7D6uKa_iconButton:focus-visible,._7D6uKa_linkButton:focus-visible,._7D6uKa_search:focus-visible,._7D6uKa_input:focus-visible,._7D6uKa_select:focus-visible,._7D6uKa_schedulePreset:focus-visible,._7D6uKa_scheduleToggle input:focus-visible,._7D6uKa_formSectionHeader:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton,._7D6uKa_linkButton,._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset,._7D6uKa_scheduleToggle input,._7D6uKa_formSectionHeader,._7D6uKa_formSectionChevron{transition:background-color .12s,color .12s,border-color .12s,outline-color .12s,box-shadow .12s,transform .12s}._7D6uKa_card:active{box-shadow:var(--dsw-shadow-lv1);transform:translateY(0)}._7D6uKa_primaryButton:active:not(:disabled),._7D6uKa_ghostButton:active:not(:disabled),._7D6uKa_dangerButton:active:not(:disabled),._7D6uKa_iconButton:active:not(:disabled),._7D6uKa_linkButton:active:not(:disabled){transform:translateY(1px)}._7D6uKa_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}._7D6uKa_linkButton:hover:not(:disabled){text-decoration:underline}._7D6uKa_iconButton:disabled,._7D6uKa_linkButton:disabled{opacity:.45;cursor:default}._7D6uKa_search:focus,._7D6uKa_select:focus,._7D6uKa_schedulePreset:focus{border-color:var(--dsw-alias-state-business-primary)}._7D6uKa_scheduleToggle input{margin:0}@media (prefers-reduced-motion:reduce){._7D6uKa_card,._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton,._7D6uKa_linkButton,._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset,._7D6uKa_scheduleToggle input,._7D6uKa_formSectionHeader,._7D6uKa_formSectionChevron{transition:none}._7D6uKa_cardSpinner{animation:none}._7D6uKa_modalBackdrop,._7D6uKa_modal,._7D6uKa_detail{animation:_7D6uKa_dshTbBackdropIn var(--dsh-tb-motion-close) linear both}._7D6uKa_modalBackdrop[data-state=closing],._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_modal,._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_detail{animation:_7D6uKa_dshTbBackdropOut var(--dsh-tb-motion-close) linear both}}._7D6uKa_cardTags{flex-wrap:wrap;gap:4px;display:flex}._7D6uKa_cardTag{border:1px solid var(--dsh-task-tag-border);background:var(--dsh-task-tag-fill);max-width:100%;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:0 7px;font-size:10px;line-height:16px;overflow:hidden}._7D6uKa_tagFilter{flex-wrap:wrap;flex:none;align-items:center;gap:6px;margin:0;display:flex}._7D6uKa_tagFilterLabel{color:var(--dsw-alias-label-tertiary);font-size:11px}._7D6uKa_tagChip{border:1px solid var(--dsh-task-tag-border);color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border-radius:999px;padding:1px 9px;font-family:inherit;font-size:11px;line-height:18px}._7D6uKa_tagChip[data-active=true]{background:var(--dsh-task-tag-fill);color:var(--dsw-alias-label-primary)}._7D6uKa_cardTag[data-tag-tone=\"0\"],._7D6uKa_tagChip[data-tag-tone=\"0\"]{--dsh-task-tag-fill:#4e93e82e;--dsh-task-tag-border:#4e93e866}._7D6uKa_cardTag[data-tag-tone=\"1\"],._7D6uKa_tagChip[data-tag-tone=\"1\"]{--dsh-task-tag-fill:#2ea36a2e;--dsh-task-tag-border:#2ea36a66}._7D6uKa_cardTag[data-tag-tone=\"2\"],._7D6uKa_tagChip[data-tag-tone=\"2\"]{--dsh-task-tag-fill:#d08a2a2e;--dsh-task-tag-border:#d08a2a66}._7D6uKa_cardTag[data-tag-tone=\"3\"],._7D6uKa_tagChip[data-tag-tone=\"3\"]{--dsh-task-tag-fill:#b456c82e;--dsh-task-tag-border:#b456c866}._7D6uKa_cardTag[data-tag-tone=\"4\"],._7D6uKa_tagChip[data-tag-tone=\"4\"]{--dsh-task-tag-fill:#cf5f7a2e;--dsh-task-tag-border:#cf5f7a66}._7D6uKa_cardTag[data-tag-tone=\"5\"],._7D6uKa_tagChip[data-tag-tone=\"5\"]{--dsh-task-tag-fill:#4a9fb52e;--dsh-task-tag-border:#4a9fb566}._7D6uKa_fieldHint{color:var(--dsw-alias-label-tertiary);font-size:11px;line-height:1.4}._7D6uKa_tagRow{align-items:center;gap:6px;display:flex}._7D6uKa_tagRow ._7D6uKa_input{flex:1 1 0;min-width:0}._7D6uKa_tagRow ._7D6uKa_ghostButton{flex:none}._7D6uKa_tagAddButton{align-self:flex-start}._7D6uKa_projectFilter{flex:none;align-items:center;gap:6px;display:flex}._7D6uKa_projectFilterLabel{color:var(--dsw-alias-label-secondary);white-space:nowrap;font-size:12px}._7D6uKa_projectDialog{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);border-radius:10px;flex-direction:column;flex:none;gap:8px;margin-bottom:8px;padding:10px 12px;display:flex}._7D6uKa_projectDialogActions{justify-content:flex-end;gap:8px;display:flex}._7D6uKa_aiParse{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);border-radius:10px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}._7D6uKa_aiParseRow{align-items:center;gap:8px;display:flex}._7D6uKa_aiParseRow ._7D6uKa_select{flex:1 1 0;min-width:0}._7D6uKa_aiParseRow ._7D6uKa_ghostButton,._7D6uKa_aiParseRow ._7D6uKa_primaryButton{flex:none}._7D6uKa_cardSubtask{border:1px solid var(--dsw-alias-border-l2);max-width:100%;color:var(--dsw-alias-label-secondary);text-overflow:ellipsis;white-space:nowrap;background:0 0;border-radius:999px;padding:0 7px;font-size:10px;line-height:16px;overflow:hidden}._7D6uKa_cardSubtask[data-tone=failed]{color:var(--dsw-alias-state-error-primary);border-color:var(--dsw-alias-state-error-primary)}._7D6uKa_cardSubtask[data-tone=running]{color:var(--dsw-alias-state-warn-primary);border-color:var(--dsw-alias-state-warn-primary)}._7D6uKa_cardSubtask[data-tone=done]{color:var(--dsw-alias-state-success-primary);border-color:var(--dsw-alias-state-success-primary)}._7D6uKa_subtaskList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}._7D6uKa_subtaskRow{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 10px;display:flex}._7D6uKa_subtaskRow ._7D6uKa_linkButton:first-child{text-align:left;overflow-wrap:anywhere;flex:auto;min-width:0}._7D6uKa_subtaskAddRow{flex-wrap:wrap;gap:8px;display:flex}._7D6uKa_pickList{flex-direction:column;gap:6px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}._7D6uKa_pickRow{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;align-items:center;gap:10px;padding:6px 10px;display:flex}._7D6uKa_pickTitle{min-width:0;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;flex:auto;font-size:13px}";
4405
+ const css$3 = "[data-dsh-taskboard-view]{box-sizing:border-box;background:var(--dsw-alias-bg-base);flex-direction:column;width:100%;min-width:0;height:100%;min-height:0;display:flex;container:_7D6uKa_task-board-view/inline-size}._7D6uKa_board{--dsh-tb-control-h:30px;--dsh-tb-control-radius:8px;--dsh-tb-control-gap:8px;--dsh-tb-icon-size:30px;--dsh-tb-hit-size:44px;--dsh-tb-motion-enter:.16s;--dsh-tb-motion-close:.14s;--dsh-tb-ease:cubic-bezier(.2, 0, 0, 1);--dsh-tb-rail:12px;--dsh-tb-card-stripe:3px;--dsh-tb-card-inset:8px;--dsh-tb-card-row:18px;--dsh-tb-card-gap:6px;box-sizing:border-box;background:var(--dsw-alias-bg-base);min-width:0;height:100%;min-height:0;color:var(--dsw-alias-label-primary);font-family:var(--dsw-font-family);flex-direction:column;gap:12px;padding:14px 16px 16px;display:flex}._7D6uKa_boardHeader{flex:none;align-items:center;gap:10px;display:flex}._7D6uKa_boardTools{align-items:center;gap:var(--dsh-tb-control-gap);flex:auto;justify-content:flex-end;min-width:0;margin-left:auto;display:flex}._7D6uKa_boardTitle{color:var(--dsw-alias-label-primary);white-space:nowrap;margin:0;font-size:15px;font-weight:700}._7D6uKa_backButton{align-items:center;gap:4px;display:inline-flex}._7D6uKa_search{box-sizing:border-box;min-width:120px;height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);outline:none;flex:0 260px;padding:0 10px;font-size:13px}._7D6uKa_search::placeholder{color:var(--dsw-alias-label-tertiary)}._7D6uKa_columns{overscroll-behavior-inline:contain;scrollbar-color:var(--dsw-alias-border-l3) var(--dsw-alias-interactive-bg-hover);scrollbar-width:thin;flex:1;grid-auto-columns:minmax(220px,1fr);grid-auto-flow:column;gap:12px;min-height:0;padding-bottom:6px;display:grid;overflow:auto hidden}._7D6uKa_columns::-webkit-scrollbar{height:10px}._7D6uKa_columns::-webkit-scrollbar-track{background:var(--dsw-alias-interactive-bg-hover);border-radius:999px}._7D6uKa_columns::-webkit-scrollbar-thumb{background:var(--dsw-alias-border-l3);background-clip:content-box;border:2px solid #0000;border-radius:999px}._7D6uKa_columns::-webkit-scrollbar-thumb:hover{background:var(--dsw-alias-border-l4);background-clip:content-box}._7D6uKa_column{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l1);border-radius:12px;flex-direction:column;min-height:0;display:flex;overflow:hidden}._7D6uKa_columnHeader{padding:8px var(--dsh-tb-rail);min-height:calc(var(--dsh-tb-card-row) + 18px);flex:none;align-items:center;gap:8px;display:flex}._7D6uKa_columnTitle{color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:13px;font-weight:700;overflow:hidden}._7D6uKa_columnCount{min-width:0;font-size:12px;line-height:var(--dsh-tb-card-row);color:var(--dsw-alias-label-tertiary);background:var(--dsw-alias-interactive-bg-hover);border-radius:999px;flex:none;padding:0 8px}._7D6uKa_statusDot{border-radius:50%;flex:none;width:8px;height:8px}._7D6uKa_statusDot[data-status=backlog]{background:var(--dsw-alias-label-tertiary)}._7D6uKa_statusDot[data-status=todo]{background:var(--dsw-alias-state-business-primary)}._7D6uKa_statusDot[data-status=running]{background:var(--dsw-alias-state-warn-primary)}._7D6uKa_statusDot[data-status=done]{background:var(--dsw-alias-state-success-primary)}._7D6uKa_statusDot[data-status=failed]{background:var(--dsw-alias-state-error-primary)}._7D6uKa_cards{padding:2px var(--dsh-tb-rail) 10px;flex-direction:column;flex:1;gap:8px;min-height:0;display:flex;overflow-y:auto}._7D6uKa_columnEmpty{text-align:center;color:var(--dsw-alias-label-tertiary);padding:24px 0;font-size:12px}._7D6uKa_card{grid-template-columns:var(--dsh-tb-card-stripe) minmax(0, 1fr);column-gap:var(--dsh-tb-card-inset);row-gap:var(--dsh-tb-card-gap);padding:10px calc(var(--dsh-tb-card-stripe) + var(--dsh-tb-card-inset)) 10px 0;text-align:left;background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);cursor:pointer;color:var(--dsw-alias-label-primary);border-radius:10px;flex:none;align-content:start;font-family:inherit;transition:box-shadow .12s,border-color .12s,transform .12s;display:grid;position:relative;overflow:hidden}._7D6uKa_card>:not(._7D6uKa_cardOpen){z-index:1;grid-column:2;min-width:0;position:relative}._7D6uKa_card:before{content:\"\";width:var(--dsh-tb-card-stripe);pointer-events:none;background:0 0;position:absolute;top:0;bottom:0;left:0}._7D6uKa_card[data-tone=running]:before{background:var(--dsw-alias-state-warn-primary)}._7D6uKa_card[data-tone=succeeded]:before{background:var(--dsw-alias-state-success-primary)}._7D6uKa_card[data-tone=failed]:before{background:var(--dsw-alias-state-error-primary)}._7D6uKa_card[data-tone=cancelled]:before{background:var(--dsw-alias-label-tertiary)}._7D6uKa_card:hover{box-shadow:var(--dsw-shadow-lv2);border-color:var(--dsw-alias-border-l3);transform:translateY(-1px)}._7D6uKa_card[data-compact]:hover{box-shadow:none;transform:none}._7D6uKa_card[data-status=running]{border-color:var(--dsw-alias-state-warn-primary)}._7D6uKa_cardOpen{z-index:0;border-radius:inherit;cursor:pointer;background:0 0;border:0;margin:0;padding:0;position:absolute;inset:0}._7D6uKa_cardOpen:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-2px}._7D6uKa_cardTitleRow{align-items:flex-start;gap:6px;min-width:0;display:flex}._7D6uKa_cardKind{font-size:12px;font-weight:600;line-height:var(--dsh-tb-card-row);white-space:nowrap;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);border-radius:999px;flex:none;padding:0 8px}._7D6uKa_cardTitle{-webkit-line-clamp:2;-webkit-box-orient:vertical;min-width:0;font-size:13px;font-weight:600;line-height:1.4;display:-webkit-box;overflow:hidden}._7D6uKa_card[data-compact]{row-gap:2px;padding-top:6px;padding-bottom:6px}._7D6uKa_card[data-compact] ._7D6uKa_cardTitle{-webkit-line-clamp:1;font-size:12px;font-weight:500}._7D6uKa_cardDecoration{flex:none;align-items:center;gap:4px;display:inline-flex}._7D6uKa_cardDecoration:empty{display:none}._7D6uKa_cardExcerpt{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:12px;line-height:1.4;display:-webkit-box;overflow:hidden}._7D6uKa_cardMeta{min-height:var(--dsh-tb-card-row);font-size:12px;line-height:var(--dsh-tb-card-row);color:var(--dsw-alias-label-tertiary);flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}._7D6uKa_cardTime{text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums;flex:auto;min-width:max-content;overflow:hidden}._7D6uKa_cardSchedule{min-width:0;height:var(--dsh-tb-card-row);white-space:nowrap;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);border-radius:999px;flex:none;align-items:center;gap:4px;padding:0 8px;font-size:12px;line-height:1;display:inline-flex}._7D6uKa_cardRun{height:var(--dsh-tb-card-row);font-size:12px;line-height:var(--dsh-tb-card-row);color:var(--dsw-alias-label-tertiary);flex:none;align-items:center;gap:6px;display:inline-flex}._7D6uKa_cardRun[data-declared]{text-underline-offset:2px;text-decoration:underline dotted}._7D6uKa_cardResult{font-size:12px;font-weight:600;line-height:var(--dsh-tb-card-row);color:var(--dsw-alias-state-warn-primary);background:var(--dsw-alias-state-warn-secondary);border-radius:999px;flex:none;padding:0 8px}._7D6uKa_cardResult[data-result=succeeded]{color:var(--dsw-alias-state-success-primary);background:var(--dsw-alias-state-success-secondary)}._7D6uKa_cardResult[data-result=failed]{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-state-error-secondary)}._7D6uKa_cardResult[data-result=cancelled]{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_cardSession{width:var(--dsh-tb-card-row);height:var(--dsh-tb-card-row);color:var(--dsw-alias-state-business-primary);flex:none;justify-content:center;align-items:center;display:inline-flex}._7D6uKa_cardAction{cursor:pointer;background:0 0;border:0;border-radius:6px;padding:0;font-family:inherit;position:relative}._7D6uKa_cardAction:after{content:\"\";width:var(--dsh-tb-hit-size);height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_cardAction:hover{background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_cardAction:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}._7D6uKa_cardGroup{flex-direction:column;gap:6px;display:flex}._7D6uKa_cardGroupHeader{min-height:var(--dsh-tb-card-row);color:var(--dsw-alias-label-tertiary);align-items:center;gap:6px;padding:4px 0 0;font-size:12px;font-weight:600;display:flex}._7D6uKa_cardGroupCount{font-weight:400}._7D6uKa_cardGroupHeader ._7D6uKa_linkButton{margin-left:auto;font-size:12px}._7D6uKa_densityToggle{width:var(--dsh-tb-card-row);height:var(--dsh-tb-card-row);color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex;position:relative}._7D6uKa_densityToggle:after{content:\"\";width:var(--dsh-tb-hit-size);height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_densityToggle:hover,._7D6uKa_densityToggle[data-active=true]{color:var(--dsw-alias-label-primary);background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_densityToggle:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}._7D6uKa_cardStatus{min-height:var(--dsh-tb-card-row);font-size:12px;line-height:var(--dsh-tb-card-row);color:var(--dsw-alias-label-tertiary);align-items:center;gap:8px;display:flex}._7D6uKa_cardStatusText{flex:0 auto;align-items:center;gap:8px;min-width:0;display:flex}._7D6uKa_cardStatusTrail{flex:none;align-items:center;gap:8px;display:flex}._7D6uKa_cardRuns{font-variant-numeric:tabular-nums;white-space:nowrap}._7D6uKa_cardRunningLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-state-warn-primary);flex:0 auto;font-size:12px;overflow:hidden}._7D6uKa_cardSpinnerSlot{width:var(--dsh-tb-card-row);height:var(--dsh-tb-card-row);flex:none;justify-content:center;align-items:center;display:inline-flex}._7D6uKa_cardSpinner{border:2px solid var(--dsw-alias-state-warn-primary);border-top-color:#0000;border-radius:50%;flex:none;width:12px;height:12px;animation:.8s linear infinite _7D6uKa_dshTbSpin}@keyframes _7D6uKa_dshTbSpin{to{transform:rotate(360deg)}}._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton{box-sizing:border-box;height:var(--dsh-tb-control-h);border-radius:var(--dsh-tb-control-radius);cursor:pointer;white-space:nowrap;justify-content:center;align-items:center;gap:6px;font-family:inherit;display:inline-flex}._7D6uKa_primaryButton,._7D6uKa_dangerButton{padding:0 14px;font-size:13px;font-weight:600}._7D6uKa_primaryButton{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-button-primary-fill);border:1px solid #0000}._7D6uKa_dangerButton{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-state-error-primary);border:1px solid #0000}._7D6uKa_ghostButton{color:var(--dsw-alias-label-primary);border:1px solid var(--dsw-alias-border-l2);background:0 0;padding:0 12px;font-size:13px}._7D6uKa_ghostButton[data-active=true]{color:var(--dsw-alias-label-primary-foreground);background:var(--dsw-alias-button-primary-fill);border-color:#0000}._7D6uKa_primaryButton:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}._7D6uKa_ghostButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_ghostButton[data-active=true]:hover:not(:disabled){background:var(--dsw-alias-button-primary-hover)}._7D6uKa_dangerButton:hover:not(:disabled){filter:brightness(1.08)}._7D6uKa_dangerButton:active:not(:disabled){filter:brightness(.94)}._7D6uKa_primaryButton:disabled,._7D6uKa_dangerButton:disabled{opacity:.5;cursor:default}._7D6uKa_ghostButton:disabled{opacity:.45;cursor:default}._7D6uKa_iconButton{width:var(--dsh-tb-icon-size);color:var(--dsw-alias-label-secondary);background:0 0;border:1px solid #0000;padding:0;position:relative}._7D6uKa_iconButton:after{content:\"\";width:var(--dsh-tb-hit-size);height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_iconButton:disabled{opacity:.45;cursor:default}._7D6uKa_linkButton{color:var(--dsw-alias-state-business-primary);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:0;font-size:12px}._7D6uKa_linkButton:hover{text-decoration:underline}._7D6uKa_modalBackdrop{z-index:1300;background:var(--dsw-alias-bg-mask-1);animation:_7D6uKa_dshTbBackdropIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}._7D6uKa_modalBackdrop[data-state=closing]{animation:_7D6uKa_dshTbBackdropOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both}._7D6uKa_modal,._7D6uKa_detail{animation:_7D6uKa_dshTbSurfaceIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both}._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_modal,._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_detail{animation:_7D6uKa_dshTbSurfaceOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both}@keyframes _7D6uKa_dshTbBackdropIn{0%{opacity:0}to{opacity:1}}@keyframes _7D6uKa_dshTbBackdropOut{0%{opacity:1}to{opacity:0}}@keyframes _7D6uKa_dshTbSurfaceIn{0%{opacity:0;transform:translateY(8px)scale(.98)}to{opacity:1;transform:none}}@keyframes _7D6uKa_dshTbSurfaceOut{0%{opacity:1;transform:none}to{opacity:0;transform:translateY(8px)scale(.98)}}._7D6uKa_modal{background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);width:min(520px,100vw - 48px);max-height:calc(100vh - 96px);box-shadow:var(--dsw-shadow-lv3);color:var(--dsw-alias-label-primary);border-radius:14px;flex-direction:column;gap:10px;padding:18px;display:flex;overflow:hidden}._7D6uKa_modalTitle{margin:0;font-size:16px;font-weight:700}._7D6uKa_confirmMessage{color:var(--dsw-alias-label-secondary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.5}._7D6uKa_modalFooter{justify-content:flex-end;gap:10px;margin-top:4px;display:flex}._7D6uKa_modalHeader{align-items:center;gap:10px;display:flex}._7D6uKa_modalHeader>._7D6uKa_modalTitle{flex:1;min-width:0}._7D6uKa_tagManageList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}._7D6uKa_tagManageRow{border:1px solid var(--dsw-alias-border-l1);border-radius:var(--dsh-tb-control-radius);flex-wrap:wrap;align-items:center;gap:8px;padding:6px 8px;display:flex}._7D6uKa_tagManageName{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--dsw-alias-label-primary);flex:auto;font-size:13px;overflow:hidden}._7D6uKa_tagManageCount{color:var(--dsw-alias-label-tertiary);flex:none;font-size:12px}._7D6uKa_tagManageInput{flex:auto;min-width:0}._7D6uKa_tagManageMerge{color:var(--dsw-alias-label-tertiary);flex:1 0 100%;font-size:12px}._7D6uKa_modalBody{flex-direction:column;gap:8px;min-height:0;display:flex;overflow-y:auto}._7D6uKa_modalBody>*{flex:none}._7D6uKa_formSection{border:1px solid var(--dsw-alias-separator-primary);border-radius:10px;flex-direction:column;display:flex;overflow:visible}._7D6uKa_formSectionHeader{box-sizing:border-box;width:100%;min-height:28px;color:var(--dsw-alias-label-primary);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;align-items:center;gap:8px;padding:6px 10px;font-family:inherit;font-size:12px;font-weight:600;line-height:16px;display:flex;position:relative}._7D6uKa_formSectionHeader:hover{background:var(--dsw-alias-bg-mask-1)}._7D6uKa_formSection[data-open=true] ._7D6uKa_formSectionHeader{border-radius:9px 9px 0 0}._7D6uKa_formSectionHeader:after{content:\"\";width:var(--dsh-tb-hit-size);height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_formSectionChevron{border-top:4px solid #0000;border-bottom:4px solid #0000;border-left:5px solid var(--dsw-alias-label-tertiary);flex:none;width:0;height:0;margin-left:1px;transition:transform .12s}._7D6uKa_formSection[data-open=true] ._7D6uKa_formSectionChevron{transform:rotate(90deg)}._7D6uKa_formSectionTitle{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}._7D6uKa_formSectionSummary{min-width:0;color:var(--dsw-alias-label-tertiary);text-align:right;text-overflow:ellipsis;white-space:nowrap;flex:0 auto;margin-left:auto;font-weight:400;overflow:hidden}._7D6uKa_formSectionBody{border-top:1px solid var(--dsw-alias-separator-primary);flex-direction:column;gap:8px;padding:8px 10px 10px;display:flex}._7D6uKa_field{flex-direction:column;gap:5px;display:flex}._7D6uKa_fieldLabel{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:600}._7D6uKa_input{box-sizing:border-box;min-height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);resize:vertical;outline:none;padding:6px 10px;font-family:inherit;font-size:13px}._7D6uKa_input:focus{border-color:var(--dsw-alias-state-business-primary)}._7D6uKa_select{box-sizing:border-box;height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);outline:none;max-width:100%;padding:0 10px;font-family:inherit;font-size:13px}._7D6uKa_input::placeholder{color:var(--dsw-alias-label-tertiary)}._7D6uKa_formError{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}._7D6uKa_detail{background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);width:min(960px,100vw - 48px);max-height:calc(100vh - 80px);box-shadow:var(--dsw-shadow-lv3);color:var(--dsw-alias-label-primary);border-radius:14px;flex-direction:column;display:flex;overflow:hidden}._7D6uKa_detailHeader{z-index:1;border-bottom:1px solid var(--dsw-alias-separator-primary);flex:none;align-items:center;gap:8px;padding:16px 24px;display:flex;position:relative}._7D6uKa_detailTitle{overflow-wrap:anywhere;flex:1;min-width:0;margin:0;font-size:15px;font-weight:700;line-height:1.4}._7D6uKa_statusBadge{border:1px solid var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:2px 10px;font-size:12px}._7D6uKa_statusBadge[data-status=running]{color:var(--dsw-alias-state-warn-primary);border-color:var(--dsw-alias-state-warn-primary)}._7D6uKa_statusBadge[data-status=done]{color:var(--dsw-alias-state-success-primary);border-color:var(--dsw-alias-state-success-primary)}._7D6uKa_statusBadge[data-status=failed]{color:var(--dsw-alias-state-error-primary);border-color:var(--dsw-alias-state-error-primary)}._7D6uKa_detailBody{flex-direction:column;flex:1;gap:16px;min-height:0;padding:16px 24px 24px;display:flex;overflow-y:auto}._7D6uKa_detailColumns{grid-template-columns:minmax(0,1fr);align-items:start;gap:24px;display:grid}._7D6uKa_detailColumn{flex-direction:column;gap:16px;min-width:0;display:flex}._7D6uKa_detailFolds{flex-direction:column;gap:8px;min-width:0;display:flex}@media (width>=1024px){._7D6uKa_detailColumns{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}}._7D6uKa_detailSection{flex-direction:column;gap:8px;min-width:0;display:flex}._7D6uKa_detailSection h4{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;font-weight:700}._7D6uKa_detailText{color:var(--dsw-alias-label-primary);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;font-size:13px;line-height:1.55}._7D6uKa_detailBody ._7D6uKa_scheduleInput,._7D6uKa_detailBody ._7D6uKa_schedulePreset,._7D6uKa_detailBody ._7D6uKa_promptBlock{font-size:13px}._7D6uKa_detailBody ._7D6uKa_scheduleZone,._7D6uKa_detailBody ._7D6uKa_scheduleMeta,._7D6uKa_detailBody ._7D6uKa_cardTag{font-size:12px}._7D6uKa_scheduleToggle{color:var(--dsw-alias-label-primary);cursor:pointer;user-select:none;align-items:center;gap:8px;font-size:13px;display:flex}._7D6uKa_scheduleToggle input{accent-color:var(--dsw-alias-state-business-primary)}._7D6uKa_scheduleRow{align-items:center;gap:8px;display:flex}._7D6uKa_scheduleInput{min-width:0;font-family:var(--dsw-font-markdown-code-block-small);flex:1}._7D6uKa_scheduleInputInvalid,._7D6uKa_scheduleInputInvalid:focus{border-color:var(--dsw-alias-state-error-primary)}._7D6uKa_schedulePreset{box-sizing:border-box;height:var(--dsh-tb-control-h);color:var(--dsw-alias-label-primary);background:var(--dsw-specific-input-major);border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsh-tb-control-radius);outline:none;flex:none;padding:0 8px}._7D6uKa_scheduleZone{color:var(--dsw-alias-label-secondary);align-items:center;gap:8px;display:flex}._7D6uKa_scheduleZone select{flex:1;min-width:0}._7D6uKa_scheduleMeta{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0}._7D6uKa_promptBlock{line-height:1.5;font-family:var(--dsw-font-markdown-code-block-small);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block);border:1px solid var(--dsw-alias-border-l1);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:8px;max-height:240px;margin:0;padding:10px 12px;overflow-y:auto}._7D6uKa_clampBody{position:relative}._7D6uKa_clampBody[data-clamped=true]{max-height:160px;overflow:hidden}._7D6uKa_clampBody[data-clamped=true]:after{content:\"\";pointer-events:none;background:linear-gradient(to bottom, transparent, var(--dsw-alias-bg-base));height:44px;position:absolute;bottom:0;left:0;right:0}._7D6uKa_clampToggle{align-self:flex-start}._7D6uKa_executionLog{flex-direction:column;gap:8px;min-width:0;display:flex}._7D6uKa_executionList{flex-direction:column;gap:8px;min-width:0;margin:0;padding:0;list-style:none;display:flex}._7D6uKa_executionExtra{flex-direction:column;gap:8px;min-width:0;display:flex}._7D6uKa_executionRow{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-direction:column;gap:8px;min-width:0;padding:10px 12px;display:flex}._7D6uKa_executionRowHead{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}._7D6uKa_executionRowEvidence{flex-direction:column;gap:6px;min-width:0;display:flex}._7D6uKa_executionBadge{color:var(--dsw-alias-state-warn-primary);background:var(--dsw-alias-state-warn-secondary);border-radius:999px;flex:none;padding:1px 8px;font-size:12px;font-weight:600;line-height:18px}._7D6uKa_executionBadge[data-result=succeeded]{color:var(--dsw-alias-state-success-primary);background:var(--dsw-alias-state-success-secondary)}._7D6uKa_executionBadge[data-result=failed]{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-state-error-secondary)}._7D6uKa_executionBadge[data-result=cancelled]{color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_executionTimes{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;font-size:12px;line-height:1.5}._7D6uKa_executionError{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;font-size:12px;line-height:1.5}._7D6uKa_executionSession{color:var(--dsw-alias-state-business-primary);cursor:pointer;white-space:nowrap;background:0 0;border:none;align-items:center;gap:4px;margin-left:auto;padding:0 2px;font-family:inherit;font-size:12px;display:inline-flex;position:relative}._7D6uKa_executionSession:after{content:\"\";width:100%;height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_executionSession:hover{text-decoration:underline}._7D6uKa_executionDisclosure{align-self:flex-start;align-items:center;gap:6px;display:inline-flex}._7D6uKa_disclosureChevron{width:5px;height:5px;transition:transform .12s var(--dsh-tb-ease);border-bottom:1.5px solid;border-right:1.5px solid;flex:none;transform:rotate(45deg)}._7D6uKa_disclosureChevron[data-open=true]{transform:rotate(225deg)}._7D6uKa_verifyReport{flex-direction:column;gap:8px;min-width:0;display:flex}._7D6uKa_verifyBadge{max-width:100%;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);border:1px solid var(--dsw-alias-border-l2);cursor:pointer;border-radius:999px;align-self:flex-start;align-items:center;gap:6px;padding:2px 10px;font-family:inherit;font-size:12px;font-weight:600;line-height:18px;display:inline-flex;position:relative}._7D6uKa_verifyBadge:after{content:\"\";height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}._7D6uKa_verifyBadge[data-tone=warn]{color:var(--dsw-alias-state-warn-primary);background:var(--dsw-alias-state-warn-secondary);border-color:#0000}._7D6uKa_verifyBadge[data-tone=success]{color:var(--dsw-alias-state-success-primary);background:var(--dsw-alias-state-success-secondary);border-color:#0000}._7D6uKa_verifyBadge[data-tone=error]{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-state-error-secondary);border-color:#0000}._7D6uKa_verifyVerdict{overflow-wrap:anywhere;font-weight:700}._7D6uKa_verifyPanel{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-direction:column;gap:8px;min-width:0;padding:10px 12px;display:flex}._7D6uKa_attemptRow{background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-direction:column;gap:6px;min-width:0;padding:8px 10px;display:flex}._7D6uKa_attemptHead{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}._7D6uKa_referenceList{flex-direction:column;gap:6px;min-width:0;margin:0;padding:0;list-style:none;display:flex}._7D6uKa_referenceRow{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;font-size:12px}._7D6uKa_menuRoot{flex:none;display:inline-flex;position:relative}._7D6uKa_menuChevron{width:5px;height:5px;transition:transform .12s var(--dsh-tb-ease);border-bottom:1.5px solid;border-right:1.5px solid;flex:none;margin-top:-3px;transform:rotate(45deg)}._7D6uKa_menuChevron[data-open=true]{margin-top:0;transform:rotate(225deg)}._7D6uKa_menuPanel{z-index:20;background:var(--dsw-alias-bg-base);border:1px solid var(--dsw-alias-border-l2);min-width:180px;box-shadow:var(--dsw-shadow-lv2);border-radius:10px;flex-direction:column;padding:4px;display:flex;position:absolute;top:calc(100% + 4px);left:0}._7D6uKa_detailHeader ._7D6uKa_menuPanel{left:auto;right:0}._7D6uKa_menuItem{min-height:var(--dsh-tb-hit-size);color:var(--dsw-alias-label-primary);cursor:pointer;text-align:left;white-space:nowrap;background:0 0;border:none;border-radius:8px;align-items:center;padding:0 10px;font-family:inherit;font-size:13px;display:flex}._7D6uKa_menuItem:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}._7D6uKa_menuItem:disabled{opacity:.45;cursor:default}._7D6uKa_detailFooter{border-top:1px solid var(--dsw-alias-separator-primary);flex:none;align-items:center;gap:8px;padding:16px 24px;display:flex}._7D6uKa_detailMeta{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:12px}._7D6uKa_detailFooter>._7D6uKa_detailMeta{margin-left:0}._7D6uKa_detailStamp{text-align:end;margin-left:auto}._7D6uKa_executionExtra,._7D6uKa_verifyPanel,._7D6uKa_detailBody ._7D6uKa_formSectionBody{animation:_7D6uKa_dshTbRowsIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both}._7D6uKa_executionExtra[data-execution-fold=closing],._7D6uKa_verifyPanel[data-state=closing],._7D6uKa_detailBody ._7D6uKa_formSectionBody[data-state=closing]{animation:_7D6uKa_dshTbRowsOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both}._7D6uKa_formSectionBody{animation:_7D6uKa_dshTbRowsIn var(--dsh-tb-motion-enter) var(--dsh-tb-ease) both}._7D6uKa_formSectionBody[data-state=closing]{animation:_7D6uKa_dshTbRowsOut var(--dsh-tb-motion-close) var(--dsh-tb-ease) both}@keyframes _7D6uKa_dshTbRowsIn{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}@keyframes _7D6uKa_dshTbRowsOut{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-6px)}}@keyframes _7D6uKa_dshTbFadeIn{0%{opacity:0}to{opacity:1}}@keyframes _7D6uKa_dshTbFadeOut{0%{opacity:1}to{opacity:0}}@media (prefers-reduced-motion:reduce){._7D6uKa_executionExtra,._7D6uKa_verifyPanel,._7D6uKa_detailBody ._7D6uKa_formSectionBody{animation:_7D6uKa_dshTbFadeIn var(--dsh-tb-motion-close) linear both}._7D6uKa_executionExtra[data-execution-fold=closing],._7D6uKa_verifyPanel[data-state=closing],._7D6uKa_detailBody ._7D6uKa_formSectionBody[data-state=closing]{animation:_7D6uKa_dshTbFadeOut var(--dsh-tb-motion-close) linear both}._7D6uKa_formSectionBody{animation:_7D6uKa_dshTbFadeIn var(--dsh-tb-motion-close) linear both}._7D6uKa_formSectionBody[data-state=closing]{animation:_7D6uKa_dshTbFadeOut var(--dsh-tb-motion-close) linear both}}._7D6uKa_detailBody ._7D6uKa_formSection{min-width:0;overflow:visible}._7D6uKa_detailBody ._7D6uKa_formSectionHeader{box-sizing:border-box;border-radius:9px;min-height:28px;padding:4px 10px;font-size:12px;line-height:16px;position:relative}._7D6uKa_detailBody ._7D6uKa_formSection[data-open=true] ._7D6uKa_formSectionHeader{border-radius:9px 9px 0 0}._7D6uKa_detailBody ._7D6uKa_formSectionHeader:after{content:\"\";width:var(--dsh-tb-hit-size);height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_detailBody ._7D6uKa_formSectionTitle{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;overflow:hidden}._7D6uKa_detailBody ._7D6uKa_formSectionSummary{flex:0 auto;min-width:0;margin-left:auto}._7D6uKa_detailBody ._7D6uKa_formSectionBody{gap:8px}@container _7D6uKa_task-board-view (width<=768px){._7D6uKa_board{gap:10px;padding:10px}._7D6uKa_boardHeader{flex-wrap:wrap;align-items:center;gap:8px}._7D6uKa_backButton{flex:none}._7D6uKa_boardTitle{flex:auto}._7D6uKa_boardHeader>._7D6uKa_detailMeta{flex:1 0 100%;margin-left:0}._7D6uKa_boardTools{flex-wrap:wrap;flex:1 0 100%;justify-content:flex-start;margin-left:0}._7D6uKa_boardTools>._7D6uKa_search{flex:1 0 100%;min-width:0}._7D6uKa_boardTools>._7D6uKa_projectFilter{flex:auto;min-width:0}._7D6uKa_boardTools>button{flex:1 1 0;min-width:0}._7D6uKa_columns{scroll-snap-type:inline mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;grid-auto-columns:86cqw;gap:10px;padding-inline:2px 14cqw;scroll-padding-inline:2px}._7D6uKa_columns::-webkit-scrollbar{display:none}._7D6uKa_column{scroll-snap-align:start;scroll-snap-stop:always}}@container _7D6uKa_task-board-view (width<=720px){._7D6uKa_boardHeader>._7D6uKa_detailMeta{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}}@container _7D6uKa_task-board-view (width<=600px){._7D6uKa_board{padding-inline:8px}}@media (width<=768px){[data-dsh-taskboard-view]{height:100dvh}._7D6uKa_card,._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton,._7D6uKa_linkButton,._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset,._7D6uKa_scheduleToggle{min-height:44px}._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset{box-sizing:border-box;font-size:16px}._7D6uKa_modalBackdrop{justify-content:stretch;align-items:stretch;width:100vw;height:100dvh}._7D6uKa_modal,._7D6uKa_detail{box-sizing:border-box;border:0;border-radius:0;width:100vw;height:100dvh;max-height:none}._7D6uKa_modal{padding-top:max(16px, env(safe-area-inset-top));padding-right:max(16px, env(safe-area-inset-right));padding-bottom:max(16px, env(safe-area-inset-bottom));padding-left:max(16px, env(safe-area-inset-left))}._7D6uKa_modalFooter{z-index:1;background:var(--dsw-alias-bg-base);flex-wrap:wrap;padding-top:8px;position:sticky;bottom:0}._7D6uKa_modalFooter>button{flex:120px}._7D6uKa_detailHeader{padding-top:max(16px, env(safe-area-inset-top));padding-right:max(16px, env(safe-area-inset-right));padding-left:max(16px, env(safe-area-inset-left));flex-wrap:wrap}._7D6uKa_detailTitle{min-width:0}._7D6uKa_detailColumns{grid-template-columns:minmax(0,1fr);gap:16px}._7D6uKa_detailColumn{gap:16px}._7D6uKa_detailBody{overscroll-behavior-y:contain;padding-right:max(16px, env(safe-area-inset-right));padding-left:max(16px, env(safe-area-inset-left))}._7D6uKa_detailFooter{padding-right:max(16px, env(safe-area-inset-right));padding-bottom:max(16px, env(safe-area-inset-bottom));padding-left:max(16px, env(safe-area-inset-left));flex-wrap:wrap}._7D6uKa_menuPanel{min-width:200px}._7D6uKa_detailFooter>button{flex:96px}._7D6uKa_detailFooter>._7D6uKa_detailMeta{text-align:end;flex:1 0 100%;margin-left:0}._7D6uKa_scheduleRow{flex-direction:column;align-items:stretch}._7D6uKa_schedulePreset{width:100%}}._7D6uKa_primaryButton:focus-visible,._7D6uKa_ghostButton:focus-visible,._7D6uKa_dangerButton:focus-visible,._7D6uKa_iconButton:focus-visible,._7D6uKa_linkButton:focus-visible,._7D6uKa_menuItem:focus-visible,._7D6uKa_verifyBadge:focus-visible,._7D6uKa_executionSession:focus-visible,._7D6uKa_search:focus-visible,._7D6uKa_input:focus-visible,._7D6uKa_select:focus-visible,._7D6uKa_schedulePreset:focus-visible,._7D6uKa_scheduleToggle input:focus-visible,._7D6uKa_formSectionHeader:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton,._7D6uKa_linkButton,._7D6uKa_menuItem,._7D6uKa_verifyBadge,._7D6uKa_executionSession,._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset,._7D6uKa_scheduleToggle input,._7D6uKa_formSectionHeader,._7D6uKa_formSectionChevron{transition:background-color .12s,color .12s,border-color .12s,outline-color .12s,box-shadow .12s,transform .12s}._7D6uKa_card:active{box-shadow:var(--dsw-shadow-lv1);transform:translateY(0)}._7D6uKa_primaryButton:active:not(:disabled),._7D6uKa_ghostButton:active:not(:disabled),._7D6uKa_dangerButton:active:not(:disabled),._7D6uKa_iconButton:active:not(:disabled),._7D6uKa_linkButton:active:not(:disabled){transform:translateY(1px)}._7D6uKa_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}._7D6uKa_linkButton:hover:not(:disabled){text-decoration:underline}._7D6uKa_iconButton:disabled,._7D6uKa_linkButton:disabled{opacity:.45;cursor:default}._7D6uKa_search:focus,._7D6uKa_select:focus,._7D6uKa_schedulePreset:focus{border-color:var(--dsw-alias-state-business-primary)}._7D6uKa_scheduleToggle input{margin:0}@media (prefers-reduced-motion:reduce){._7D6uKa_card,._7D6uKa_primaryButton,._7D6uKa_ghostButton,._7D6uKa_dangerButton,._7D6uKa_iconButton,._7D6uKa_linkButton,._7D6uKa_menuItem,._7D6uKa_verifyBadge,._7D6uKa_executionSession,._7D6uKa_disclosureChevron,._7D6uKa_menuChevron,._7D6uKa_search,._7D6uKa_input,._7D6uKa_select,._7D6uKa_schedulePreset,._7D6uKa_scheduleToggle input,._7D6uKa_formSectionHeader,._7D6uKa_formSectionChevron{transition:none}._7D6uKa_cardSpinner{animation:none}._7D6uKa_modalBackdrop,._7D6uKa_modal,._7D6uKa_detail{animation:_7D6uKa_dshTbBackdropIn var(--dsh-tb-motion-close) linear both}._7D6uKa_modalBackdrop[data-state=closing],._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_modal,._7D6uKa_modalBackdrop[data-state=closing] ._7D6uKa_detail{animation:_7D6uKa_dshTbBackdropOut var(--dsh-tb-motion-close) linear both}}._7D6uKa_cardTags{flex-wrap:wrap;gap:4px;display:flex}._7D6uKa_cardTags:empty{display:none}._7D6uKa_cardTag{border:1px solid var(--dsh-task-tag-border);background:var(--dsh-task-tag-fill);max-width:100%;color:var(--dsw-alias-label-primary);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:0 8px;font-size:12px;line-height:1.5;overflow:hidden}._7D6uKa_tagFilter{flex-wrap:wrap;flex:none;align-items:center;gap:8px;margin:0;display:flex}._7D6uKa_tagFilterLabel{color:var(--dsw-alias-label-tertiary);font-size:12px}._7D6uKa_tagChip{border:1px solid var(--dsh-task-tag-border);color:var(--dsw-alias-label-secondary);cursor:pointer;font-family:inherit;font-size:12px;line-height:var(--dsh-tb-card-row);background:0 0;border-radius:999px;padding:1px 9px;position:relative}._7D6uKa_tagChip:after{content:\"\";width:var(--dsh-tb-hit-size);height:var(--dsh-tb-hit-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}._7D6uKa_tagChip:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px}._7D6uKa_tagChip[data-active=true]{background:var(--dsh-task-tag-fill);color:var(--dsw-alias-label-primary)}._7D6uKa_cardTag[data-tag-tone=\"0\"],._7D6uKa_tagChip[data-tag-tone=\"0\"]{--dsh-task-tag-fill:#4e93e82e;--dsh-task-tag-border:#4e93e866}._7D6uKa_cardTag[data-tag-tone=\"1\"],._7D6uKa_tagChip[data-tag-tone=\"1\"]{--dsh-task-tag-fill:#2ea36a2e;--dsh-task-tag-border:#2ea36a66}._7D6uKa_cardTag[data-tag-tone=\"2\"],._7D6uKa_tagChip[data-tag-tone=\"2\"]{--dsh-task-tag-fill:#d08a2a2e;--dsh-task-tag-border:#d08a2a66}._7D6uKa_cardTag[data-tag-tone=\"3\"],._7D6uKa_tagChip[data-tag-tone=\"3\"]{--dsh-task-tag-fill:#b456c82e;--dsh-task-tag-border:#b456c866}._7D6uKa_cardTag[data-tag-tone=\"4\"],._7D6uKa_tagChip[data-tag-tone=\"4\"]{--dsh-task-tag-fill:#cf5f7a2e;--dsh-task-tag-border:#cf5f7a66}._7D6uKa_cardTag[data-tag-tone=\"5\"],._7D6uKa_tagChip[data-tag-tone=\"5\"]{--dsh-task-tag-fill:#4a9fb52e;--dsh-task-tag-border:#4a9fb566}._7D6uKa_fieldHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.4}._7D6uKa_tagRow{align-items:center;gap:6px;display:flex}._7D6uKa_tagRow ._7D6uKa_input{flex:1 1 0;min-width:0}._7D6uKa_tagRow ._7D6uKa_ghostButton{flex:none}._7D6uKa_tagAddButton{align-self:flex-start}._7D6uKa_projectFilter{flex:none;align-items:center;gap:6px;display:flex}._7D6uKa_projectFilterLabel{color:var(--dsw-alias-label-secondary);white-space:nowrap;font-size:12px}._7D6uKa_projectDialog{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);border-radius:10px;flex-direction:column;flex:none;gap:8px;margin-bottom:8px;padding:10px 12px;display:flex}._7D6uKa_projectDialogActions{justify-content:flex-end;gap:8px;display:flex}._7D6uKa_aiParse{background:var(--dsw-alias-bg-layer-2);border:1px solid var(--dsw-alias-border-l2);border-radius:10px;flex-direction:column;gap:6px;padding:10px 12px;display:flex}._7D6uKa_aiParseRow{align-items:center;gap:8px;display:flex}._7D6uKa_aiParseRow ._7D6uKa_select{flex:1 1 0;min-width:0}._7D6uKa_aiParseRow ._7D6uKa_ghostButton,._7D6uKa_aiParseRow ._7D6uKa_primaryButton{flex:none}._7D6uKa_cardSubtask{background:var(--dsw-alias-interactive-bg-hover);max-width:100%;color:var(--dsw-alias-label-secondary);font-size:12px;line-height:var(--dsh-tb-card-row);text-overflow:ellipsis;white-space:nowrap;border-radius:999px;padding:0 8px;overflow:hidden}._7D6uKa_cardSubtask[data-tone=failed]{color:var(--dsw-alias-state-error-primary);background:var(--dsw-alias-state-error-secondary)}._7D6uKa_cardSubtask[data-tone=running]{color:var(--dsw-alias-state-warn-primary);background:var(--dsw-alias-state-warn-secondary)}._7D6uKa_cardSubtask[data-tone=done]{color:var(--dsw-alias-state-success-primary);background:var(--dsw-alias-state-success-secondary)}._7D6uKa_subtaskList{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}._7D6uKa_subtaskRow{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 10px;display:flex}._7D6uKa_subtaskRow ._7D6uKa_linkButton:first-child{text-align:left;overflow-wrap:anywhere;flex:auto;min-width:0}._7D6uKa_subtaskAddRow{flex-wrap:wrap;gap:8px;display:flex}._7D6uKa_pickList{flex-direction:column;gap:6px;max-height:320px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}._7D6uKa_pickRow{border:1px solid var(--dsw-alias-border-l1);border-radius:8px;align-items:center;gap:10px;padding:6px 10px;display:flex}._7D6uKa_pickTitle{min-width:0;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;flex:auto;font-size:13px}";
4280
4406
  const tagId$3 = "@linxin666/dsh-client-ui-task-board/packages/dsh-task-board/src/client/board.module.css";
4281
4407
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
4282
4408
  const tag = document.createElement("style");
@@ -4288,6 +4414,8 @@ window.__ModuleLoader__.load({
4288
4414
  var board_module_css_default = {
4289
4415
  "aiParse": "_7D6uKa_aiParse",
4290
4416
  "aiParseRow": "_7D6uKa_aiParseRow",
4417
+ "attemptHead": "_7D6uKa_attemptHead",
4418
+ "attemptRow": "_7D6uKa_attemptRow",
4291
4419
  "backButton": "_7D6uKa_backButton",
4292
4420
  "board": "_7D6uKa_board",
4293
4421
  "boardHeader": "_7D6uKa_boardHeader",
@@ -4303,11 +4431,17 @@ window.__ModuleLoader__.load({
4303
4431
  "cardKind": "_7D6uKa_cardKind",
4304
4432
  "cardMeta": "_7D6uKa_cardMeta",
4305
4433
  "cardOpen": "_7D6uKa_cardOpen",
4434
+ "cardResult": "_7D6uKa_cardResult",
4306
4435
  "cardRun": "_7D6uKa_cardRun",
4307
4436
  "cardRunningLabel": "_7D6uKa_cardRunningLabel",
4437
+ "cardRuns": "_7D6uKa_cardRuns",
4308
4438
  "cardSchedule": "_7D6uKa_cardSchedule",
4309
4439
  "cardSession": "_7D6uKa_cardSession",
4310
4440
  "cardSpinner": "_7D6uKa_cardSpinner",
4441
+ "cardSpinnerSlot": "_7D6uKa_cardSpinnerSlot",
4442
+ "cardStatus": "_7D6uKa_cardStatus",
4443
+ "cardStatusText": "_7D6uKa_cardStatusText",
4444
+ "cardStatusTrail": "_7D6uKa_cardStatusTrail",
4311
4445
  "cardSubtask": "_7D6uKa_cardSubtask",
4312
4446
  "cardTag": "_7D6uKa_cardTag",
4313
4447
  "cardTags": "_7D6uKa_cardTags",
@@ -4328,21 +4462,36 @@ window.__ModuleLoader__.load({
4328
4462
  "densityToggle": "_7D6uKa_densityToggle",
4329
4463
  "detail": "_7D6uKa_detail",
4330
4464
  "detailBody": "_7D6uKa_detailBody",
4465
+ "detailColumn": "_7D6uKa_detailColumn",
4466
+ "detailColumns": "_7D6uKa_detailColumns",
4467
+ "detailFolds": "_7D6uKa_detailFolds",
4331
4468
  "detailFooter": "_7D6uKa_detailFooter",
4332
4469
  "detailHeader": "_7D6uKa_detailHeader",
4333
4470
  "detailMeta": "_7D6uKa_detailMeta",
4334
4471
  "detailSection": "_7D6uKa_detailSection",
4472
+ "detailStamp": "_7D6uKa_detailStamp",
4335
4473
  "detailText": "_7D6uKa_detailText",
4336
4474
  "detailTitle": "_7D6uKa_detailTitle",
4475
+ "disclosureChevron": "_7D6uKa_disclosureChevron",
4337
4476
  "dshTbBackdropIn": "_7D6uKa_dshTbBackdropIn",
4338
4477
  "dshTbBackdropOut": "_7D6uKa_dshTbBackdropOut",
4478
+ "dshTbFadeIn": "_7D6uKa_dshTbFadeIn",
4479
+ "dshTbFadeOut": "_7D6uKa_dshTbFadeOut",
4480
+ "dshTbRowsIn": "_7D6uKa_dshTbRowsIn",
4481
+ "dshTbRowsOut": "_7D6uKa_dshTbRowsOut",
4339
4482
  "dshTbSpin": "_7D6uKa_dshTbSpin",
4340
4483
  "dshTbSurfaceIn": "_7D6uKa_dshTbSurfaceIn",
4341
4484
  "dshTbSurfaceOut": "_7D6uKa_dshTbSurfaceOut",
4342
4485
  "executionBadge": "_7D6uKa_executionBadge",
4486
+ "executionDisclosure": "_7D6uKa_executionDisclosure",
4343
4487
  "executionError": "_7D6uKa_executionError",
4488
+ "executionExtra": "_7D6uKa_executionExtra",
4344
4489
  "executionList": "_7D6uKa_executionList",
4490
+ "executionLog": "_7D6uKa_executionLog",
4345
4491
  "executionRow": "_7D6uKa_executionRow",
4492
+ "executionRowEvidence": "_7D6uKa_executionRowEvidence",
4493
+ "executionRowHead": "_7D6uKa_executionRowHead",
4494
+ "executionSession": "_7D6uKa_executionSession",
4346
4495
  "executionTimes": "_7D6uKa_executionTimes",
4347
4496
  "field": "_7D6uKa_field",
4348
4497
  "fieldHint": "_7D6uKa_fieldHint",
@@ -4358,13 +4507,16 @@ window.__ModuleLoader__.load({
4358
4507
  "iconButton": "_7D6uKa_iconButton",
4359
4508
  "input": "_7D6uKa_input",
4360
4509
  "linkButton": "_7D6uKa_linkButton",
4510
+ "menuChevron": "_7D6uKa_menuChevron",
4511
+ "menuItem": "_7D6uKa_menuItem",
4512
+ "menuPanel": "_7D6uKa_menuPanel",
4513
+ "menuRoot": "_7D6uKa_menuRoot",
4361
4514
  "modal": "_7D6uKa_modal",
4362
4515
  "modalBackdrop": "_7D6uKa_modalBackdrop",
4363
4516
  "modalBody": "_7D6uKa_modalBody",
4364
4517
  "modalFooter": "_7D6uKa_modalFooter",
4365
4518
  "modalHeader": "_7D6uKa_modalHeader",
4366
4519
  "modalTitle": "_7D6uKa_modalTitle",
4367
- "moveRow": "_7D6uKa_moveRow",
4368
4520
  "pickList": "_7D6uKa_pickList",
4369
4521
  "pickRow": "_7D6uKa_pickRow",
4370
4522
  "pickTitle": "_7D6uKa_pickTitle",
@@ -4374,6 +4526,8 @@ window.__ModuleLoader__.load({
4374
4526
  "projectFilter": "_7D6uKa_projectFilter",
4375
4527
  "projectFilterLabel": "_7D6uKa_projectFilterLabel",
4376
4528
  "promptBlock": "_7D6uKa_promptBlock",
4529
+ "referenceList": "_7D6uKa_referenceList",
4530
+ "referenceRow": "_7D6uKa_referenceRow",
4377
4531
  "scheduleInput": "_7D6uKa_scheduleInput",
4378
4532
  "scheduleInputInvalid": "_7D6uKa_scheduleInputInvalid",
4379
4533
  "scheduleMeta": "_7D6uKa_scheduleMeta",
@@ -4399,7 +4553,11 @@ window.__ModuleLoader__.load({
4399
4553
  "tagManageName": "_7D6uKa_tagManageName",
4400
4554
  "tagManageRow": "_7D6uKa_tagManageRow",
4401
4555
  "tagRow": "_7D6uKa_tagRow",
4402
- "task-board-view": "_7D6uKa_task-board-view"
4556
+ "task-board-view": "_7D6uKa_task-board-view",
4557
+ "verifyBadge": "_7D6uKa_verifyBadge",
4558
+ "verifyPanel": "_7D6uKa_verifyPanel",
4559
+ "verifyReport": "_7D6uKa_verifyReport",
4560
+ "verifyVerdict": "_7D6uKa_verifyVerdict"
4403
4561
  };
4404
4562
  //#endregion
4405
4563
  //#region src/client/board/icons.tsx
@@ -4929,10 +5087,17 @@ window.__ModuleLoader__.load({
4929
5087
  * region keeps a one-line summary of the values it holds, so nothing is hidden
4930
5088
  * without a trace; a region holding a blocking error is forced open by its
4931
5089
  * owner (forceOpen) rather than reporting the error out of sight.
5090
+ *
5091
+ * The body is the panel fold's body under another name: it enters and leaves on
5092
+ * the same animation pair, and `usePresence` keeps it mounted through the exit
5093
+ * leg so collapsing never snaps.
4932
5094
  */
4933
5095
  function CollapsibleSection({ title, summary, defaultOpen = false, forceOpen = false, children }) {
4934
5096
  const [open, setOpen] = (0, react.useState)(defaultOpen);
5097
+ const panelId = (0, react.useId)();
4935
5098
  const expanded = forceOpen || open;
5099
+ const presence = usePresence(expanded);
5100
+ const fullLine = summary ?? "";
4936
5101
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
4937
5102
  className: board_module_css_default.formSection,
4938
5103
  "data-dsh-part": "form-section",
@@ -4941,6 +5106,8 @@ window.__ModuleLoader__.load({
4941
5106
  type: "button",
4942
5107
  className: board_module_css_default.formSectionHeader,
4943
5108
  "aria-expanded": expanded,
5109
+ "aria-controls": panelId,
5110
+ title: fullLine === "" ? void 0 : fullLine,
4944
5111
  onClick: () => {
4945
5112
  setOpen((value) => !value);
4946
5113
  },
@@ -4958,8 +5125,10 @@ window.__ModuleLoader__.load({
4958
5125
  children: summary
4959
5126
  })
4960
5127
  ]
4961
- }), expanded && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
5128
+ }), presence.mounted && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
4962
5129
  className: board_module_css_default.formSectionBody,
5130
+ id: panelId,
5131
+ "data-state": presence.phase,
4963
5132
  children
4964
5133
  })]
4965
5134
  });
@@ -5064,7 +5233,7 @@ window.__ModuleLoader__.load({
5064
5233
  }),
5065
5234
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
5066
5235
  type: "button",
5067
- className: board_module_css_default.ghostButton,
5236
+ className: board_module_css_default.iconButton,
5068
5237
  "aria-label": t("new.tagRemove", { name: tag.name }),
5069
5238
  onClick: () => {
5070
5239
  onChange(tags.filter((_, position) => position !== index));
@@ -5191,7 +5360,7 @@ window.__ModuleLoader__.load({
5191
5360
  };
5192
5361
  }
5193
5362
  /** Locale key of the latest settled result shown before the run count. */
5194
- const RESULT_KEY$1 = {
5363
+ const RESULT_KEY = {
5195
5364
  succeeded: "card.result.succeeded",
5196
5365
  failed: "card.result.failed",
5197
5366
  cancelled: "card.result.cancelled"
@@ -7116,7 +7285,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
7116
7285
  const HEADING_COLON = /[:\uFF1A]\s*$/;
7117
7286
  //#endregion
7118
7287
  //#region \0dsh-css:packages/dsh-task-board/src/client/board/task-markdown.module.css.mjs
7119
- const css$2 = ".o4zLLq_markdownRoot{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;font-size:13px;line-height:1.55}.o4zLLq_markdownRoot>:first-child{margin-top:0}.o4zLLq_markdownRoot>:last-child{margin-bottom:0}.o4zLLq_paragraph{margin:0 0 8px;line-height:1.55}.o4zLLq_heading1,.o4zLLq_heading2,.o4zLLq_heading3,.o4zLLq_heading4,.o4zLLq_heading5,.o4zLLq_heading6{color:var(--dsw-alias-label-primary);margin:12px 0 6px;font-weight:600;line-height:1.35}.o4zLLq_heading1{font-size:16px}.o4zLLq_heading2{font-size:15px}.o4zLLq_heading3{font-size:14px}.o4zLLq_heading4{font-size:13px}.o4zLLq_heading5{font-size:12.5px}.o4zLLq_heading6{font-size:12px}.o4zLLq_list{margin:0 0 8px;padding-left:20px}.o4zLLq_listItem{margin:2px 0}.o4zLLq_taskItem{align-items:baseline;gap:6px;margin-left:-18px;list-style-type:none;display:flex}.o4zLLq_taskCheckbox{cursor:default;vertical-align:middle;margin:0}.o4zLLq_codeBlock{font-size:12px;line-height:1.45;font-family:var(--dsw-font-markdown-code-block-small,monospace);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block,#0000000d);border:1px solid var(--dsw-alias-border-l1,#0000001a);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:6px;margin:8px 0;padding:8px 10px;overflow-x:auto}.o4zLLq_inlineCode{font-size:12px;font-family:var(--dsw-font-markdown-code-block-small,monospace);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block,#0000000d);border:1px solid var(--dsw-alias-border-l1,#0000001a);border-radius:4px;padding:1px 4px}.o4zLLq_link{color:var(--dsw-alias-brand-primary,#3b82f6);text-underline-offset:2px;text-decoration:underline}.o4zLLq_link:hover{opacity:.85}.o4zLLq_imagePlaceholder{color:var(--dsw-alias-label-secondary,#666);background:var(--dsw-alias-bg-subtle,#0000000a);border:1px dashed var(--dsw-alias-border-l1,#00000026);border-radius:4px;padding:2px 6px;font-size:11px;display:inline-block}.o4zLLq_blockquote{border-left:3px solid var(--dsw-alias-border-l1,#ccc);color:var(--dsw-alias-label-secondary,#666);margin:8px 0;padding-left:10px}.o4zLLq_table{border-collapse:collapse;width:100%;margin:8px 0;font-size:12.5px}.o4zLLq_table th,.o4zLLq_table td{border:1px solid var(--dsw-alias-border-l1,#0000001a);text-align:left;padding:6px 8px}.o4zLLq_table th{background:var(--dsw-alias-bg-subtle,#00000008);font-weight:600}";
7288
+ const css$2 = ".o4zLLq_markdownRoot{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;font-size:13px;line-height:1.55}.o4zLLq_markdownRoot>:first-child{margin-top:0}.o4zLLq_markdownRoot>:last-child{margin-bottom:0}.o4zLLq_paragraph{margin:0 0 8px;line-height:1.55}.o4zLLq_heading1,.o4zLLq_heading2,.o4zLLq_heading3,.o4zLLq_heading4,.o4zLLq_heading5,.o4zLLq_heading6{color:var(--dsw-alias-label-primary);margin:12px 0 6px;font-weight:600;line-height:1.35}.o4zLLq_heading1{font-size:16px;font-weight:700}.o4zLLq_heading2{font-size:16px;font-weight:600}.o4zLLq_heading3{font-size:13px;font-weight:600}.o4zLLq_heading4{color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:600}.o4zLLq_heading5{color:var(--dsw-alias-label-secondary);font-size:13px;font-weight:500}.o4zLLq_heading6{color:var(--dsw-alias-label-tertiary);font-size:13px;font-weight:500}.o4zLLq_list{margin:0 0 8px;padding-left:20px}.o4zLLq_listItem{margin:2px 0}.o4zLLq_taskItem{align-items:baseline;gap:6px;margin-left:-18px;list-style-type:none;display:flex}.o4zLLq_taskCheckbox{cursor:default;vertical-align:middle;margin:0}.o4zLLq_codeBlock{font-size:12px;line-height:1.45;font-family:var(--dsw-font-markdown-code-block-small,monospace);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block,#0000000d);border:1px solid var(--dsw-alias-border-l1,#0000001a);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:6px;margin:8px 0;padding:8px 10px;overflow-x:auto}.o4zLLq_inlineCode{font-size:12px;font-family:var(--dsw-font-markdown-code-block-small,monospace);color:var(--dsw-alias-label-primary);background:var(--dsw-alias-markdown-code-block,#0000000d);border:1px solid var(--dsw-alias-border-l1,#0000001a);border-radius:4px;padding:1px 4px}.o4zLLq_link{color:var(--dsw-alias-brand-primary,#3b82f6);text-underline-offset:2px;text-decoration:underline}.o4zLLq_link:hover{opacity:.85}.o4zLLq_imagePlaceholder{color:var(--dsw-alias-label-secondary,#666);background:var(--dsw-alias-bg-subtle,#0000000a);border:1px dashed var(--dsw-alias-border-l1,#00000026);border-radius:4px;padding:2px 6px;font-size:12px;display:inline-block}.o4zLLq_blockquote{border-left:3px solid var(--dsw-alias-border-l1,#ccc);color:var(--dsw-alias-label-secondary,#666);margin:8px 0;padding-left:10px}.o4zLLq_table{border-collapse:collapse;width:100%;margin:8px 0;font-size:12px}.o4zLLq_table th,.o4zLLq_table td{border:1px solid var(--dsw-alias-border-l1,#0000001a);text-align:left;padding:6px 8px}.o4zLLq_table th{background:var(--dsw-alias-bg-subtle,#00000008);font-weight:600}";
7120
7289
  const tagId$2 = "@linxin666/dsh-client-ui-task-board/packages/dsh-task-board/src/client/board/task-markdown.module.css";
7121
7290
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
7122
7291
  const tag = document.createElement("style");
@@ -7421,7 +7590,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
7421
7590
  const latest = outcome.latest;
7422
7591
  const runningKey = verificationRunningKey(latest?.verification);
7423
7592
  const timeline = cardTimeline(task, archived);
7424
- const resultText = latest?.result !== void 0 ? t(RESULT_KEY$1[latest.result]) : "";
7593
+ const resultText = latest?.result !== void 0 ? t(RESULT_KEY[latest.result]) : "";
7425
7594
  const sessionId = latest?.sessionId;
7426
7595
  const tagNames = (task.tags ?? []).map((tag) => tag.name);
7427
7596
  const ariaLabel = [
@@ -7438,6 +7607,30 @@ Please report this to https://github.com/markedjs/marked.`, e) {
7438
7607
  t(timeline.key, { time: formatHostTimestamp(timeline.at, timeZone) }),
7439
7608
  outcome.declared ? t("card.declaredHint") : ""
7440
7609
  ].filter(Boolean).join("\n");
7610
+ const runningLabel = !archived && latest !== void 0 && executionLabel(latest) === "running" ? runningKey !== void 0 ? t(runningKey) : latest.ownResult === void 0 ? t("detail.result.running") : t("detail.subtasks.waiting") : "";
7611
+ const settledResult = archived ? void 0 : latest?.result;
7612
+ const resultPrefix = settledResult === void 0 && !busy && resultText !== "" ? `${resultText} · ` : "";
7613
+ const runLine = latest === void 0 ? void 0 : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7614
+ className: board_module_css_default.cardRun,
7615
+ "data-dsh-part": "card-run",
7616
+ "data-result": settledResult,
7617
+ "data-declared": outcome.declared || void 0,
7618
+ title: outcome.declared ? t("card.declaredHint") : void 0,
7619
+ children: [settledResult !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7620
+ className: board_module_css_default.cardResult,
7621
+ "data-result": settledResult,
7622
+ children: resultText
7623
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7624
+ className: board_module_css_default.cardRuns,
7625
+ children: [
7626
+ resultPrefix,
7627
+ runs,
7628
+ " ",
7629
+ t("board.runs"),
7630
+ outcome.declared ? ` · ${t("card.declared")}` : ""
7631
+ ]
7632
+ })]
7633
+ });
7441
7634
  const sessionMark = sessionId !== void 0 && (onOpenSession !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
7442
7635
  type: "button",
7443
7636
  className: `${board_module_css_default.cardSession} ${board_module_css_default.cardAction}`,
@@ -7504,9 +7697,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
7504
7697
  children: [
7505
7698
  decoration,
7506
7699
  timeLabel,
7507
- !archived && (busy || pending) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7508
- className: board_module_css_default.cardSpinner,
7509
- "aria-hidden": "true"
7700
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7701
+ className: board_module_css_default.cardSpinnerSlot,
7702
+ "aria-hidden": "true",
7703
+ children: !archived && (busy || pending) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: board_module_css_default.cardSpinner })
7510
7704
  })
7511
7705
  ]
7512
7706
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
@@ -7561,35 +7755,32 @@ Please report this to https://github.com/markedjs/marked.`, e) {
7561
7755
  className: board_module_css_default.cardSchedule,
7562
7756
  title: task.schedule.nextRunAt !== void 0 ? `${t(task.schedule.mode === "once" ? "card.scheduledOnce" : "card.scheduled")} · ${formatHostTimestamp(task.schedule.nextRunAt, timeZone)}` : t(task.schedule.mode === "once" ? "card.scheduledOnce" : "card.scheduled"),
7563
7757
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconClock, { size: 12 }), t(task.schedule.mode === "once" ? "card.scheduledOnce" : "card.scheduled")]
7564
- }),
7565
- latest !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7566
- className: board_module_css_default.cardRun,
7567
- "data-dsh-part": "card-run",
7568
- "data-result": archived || latest.result === void 0 ? void 0 : latest.result,
7569
- "data-declared": outcome.declared || void 0,
7570
- title: outcome.declared ? t("card.declaredHint") : void 0,
7571
- children: [
7572
- !busy && resultText !== "" ? `${resultText} · ` : "",
7573
- runs,
7574
- " ",
7575
- t("board.runs"),
7576
- outcome.declared ? ` · ${t("card.declared")}` : ""
7577
- ]
7578
- }),
7579
- sessionMark,
7580
- !archived && (busy || pending) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7581
- className: board_module_css_default.cardSpinner,
7582
- "aria-hidden": "true"
7583
7758
  })
7584
7759
  ]
7585
7760
  }),
7586
- !archived && pending && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7587
- className: board_module_css_default.cardRunningLabel,
7588
- children: [t("board.pending"), "…"]
7589
- }),
7590
- !archived && latest !== void 0 && executionLabel(latest) === "running" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7591
- className: board_module_css_default.cardRunningLabel,
7592
- children: [runningKey !== void 0 ? t(runningKey) : latest.ownResult === void 0 ? t("detail.result.running") : t("detail.subtasks.waiting"), "…"]
7761
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7762
+ className: board_module_css_default.cardStatus,
7763
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7764
+ className: board_module_css_default.cardStatusText,
7765
+ children: [
7766
+ !archived && pending && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7767
+ className: board_module_css_default.cardRunningLabel,
7768
+ children: [t("board.pending"), "…"]
7769
+ }),
7770
+ runningLabel !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7771
+ className: board_module_css_default.cardRunningLabel,
7772
+ children: [runningLabel, "…"]
7773
+ }),
7774
+ runLine
7775
+ ]
7776
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
7777
+ className: board_module_css_default.cardStatusTrail,
7778
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
7779
+ className: board_module_css_default.cardSpinnerSlot,
7780
+ "aria-hidden": "true",
7781
+ children: !archived && (busy || pending) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { className: board_module_css_default.cardSpinner })
7782
+ }), sessionMark]
7783
+ })]
7593
7784
  })
7594
7785
  ] })
7595
7786
  ]
@@ -7716,29 +7907,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
7716
7907
  })] });
7717
7908
  }
7718
7909
  //#endregion
7719
- //#region src/client/board/team-run-promotion.ts
7720
- /**
7721
- * Whether a join would promote this parent: the deployment serves Agent Teams
7722
- * and the parent has not opted in yet.
7723
- * @param controller - the board controller (the snapshot carries both facts).
7724
- * @param parent - the task that gained a subtask, if there is one.
7725
- */
7726
- function parentAwaitsTeamRunPromotion(controller, parent) {
7727
- if (parent === void 0) return false;
7728
- const snapshot = controller.getSnapshot();
7729
- if (snapshot.host?.teamRunAvailable !== true) return false;
7730
- return (snapshot.tasks.find((task) => task.id === parent.id) ?? parent).teamRun !== true;
7731
- }
7732
- /**
7733
- * Opt the parent in after the Host confirmed the join.
7734
- * @returns true when the opt-in was written; false when it did not apply.
7735
- */
7736
- async function promoteParentForTeamRun(controller, parent) {
7737
- if (parent === void 0) return false;
7738
- if (!parentAwaitsTeamRunPromotion(controller, parent)) return false;
7739
- return await controller.updateTask(parent.id, { teamRun: true });
7740
- }
7741
- //#endregion
7742
7910
  //#region src/client/board/NewTaskModal.tsx
7743
7911
  /**
7744
7912
  * New-task modal: title + description + the prompt that execution will send.
@@ -7914,7 +8082,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
7914
8082
  setError(controller.getSnapshot().transportError ?? t("new.required"));
7915
8083
  return;
7916
8084
  }
7917
- await promoteParentForTeamRun(controller, parentTask);
7918
8085
  if (isDuplicate && archiveOriginal && initialTask !== void 0) if (onDuplicateSuccess !== void 0) await onDuplicateSuccess(initialTask.id);
7919
8086
  else await controller.archiveTask(initialTask.id);
7920
8087
  if (runAfterCreate) {
@@ -8017,7 +8184,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8017
8184
  children: t("new.aiParseCancel")
8018
8185
  }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8019
8186
  type: "button",
8020
- className: board_module_css_default.primaryButton,
8187
+ className: board_module_css_default.ghostButton,
8021
8188
  disabled: parseText.trim() === "",
8022
8189
  onClick: () => {
8023
8190
  runParse();
@@ -8032,7 +8199,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8032
8199
  ]
8033
8200
  })
8034
8201
  }),
8035
- parentTask !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
8202
+ parentTask !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
8036
8203
  className: board_module_css_default.detailText,
8037
8204
  "data-dsh-part": "subtask-inherit",
8038
8205
  children: [
@@ -8042,10 +8209,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8042
8209
  " · ",
8043
8210
  t("new.subtaskInherit")
8044
8211
  ]
8045
- }), parentAwaitsTeamRunPromotion(controller, parentTask) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8046
- className: board_module_css_default.detailText,
8047
- children: t("exec.teamRunAutoHint")
8048
- })] }),
8212
+ }) }),
8049
8213
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(CollapsibleSection, {
8050
8214
  title: t("new.section.content"),
8051
8215
  defaultOpen: true,
@@ -8060,7 +8224,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8060
8224
  onDescriptionChange: setDescription,
8061
8225
  onPromptChange: setPrompt
8062
8226
  }), isDuplicate && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
8063
- className: board_module_css_default.checkboxLabel,
8227
+ className: board_module_css_default.scheduleToggle,
8064
8228
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
8065
8229
  type: "checkbox",
8066
8230
  checked: archiveOriginal,
@@ -8860,7 +9024,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8860
9024
  setPending(true);
8861
9025
  setError(void 0);
8862
9026
  if (await controller.setParent(taskId, parent.id)) {
8863
- await promoteParentForTeamRun(controller, parent);
8864
9027
  onClose();
8865
9028
  return;
8866
9029
  }
@@ -8887,10 +9050,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8887
9050
  className: board_module_css_default.fieldHint,
8888
9051
  children: t("link.subtask.hint")
8889
9052
  }),
8890
- parentAwaitsTeamRunPromotion(controller, parent) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8891
- className: board_module_css_default.fieldHint,
8892
- children: t("exec.teamRunAutoHint")
8893
- }),
8894
9053
  candidates.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
8895
9054
  className: board_module_css_default.detailText,
8896
9055
  children: t("link.subtask.empty")
@@ -8910,7 +9069,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8910
9069
  }),
8911
9070
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
8912
9071
  type: "button",
8913
- className: board_module_css_default.primaryButton,
9072
+ className: board_module_css_default.ghostButton,
8914
9073
  disabled: pending,
8915
9074
  onClick: () => {
8916
9075
  link(task.id);
@@ -8938,16 +9097,96 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8938
9097
  });
8939
9098
  }
8940
9099
  //#endregion
9100
+ //#region src/client/board/ClampedMarkdown.tsx
9101
+ /**
9102
+ * Clamped markdown body for the detail overlay: a long description or prompt
9103
+ * renders behind a max-height clamp with a fade into the dialog surface and
9104
+ * an expand toggle, so it no longer pushes the execution settings and the
9105
+ * execution history out of view. Content that fits the clamp renders
9106
+ * untouched — no toggle, no fade, no extra markup behaviour.
9107
+ */
9108
+ /**
9109
+ * Clamp height used when the stylesheet is unavailable to the runtime (unit
9110
+ * tests). The rendered value lives on `.clampBody[data-clamped='true']` in
9111
+ * board.module.css and is read back through getComputedStyle, so the CSS
9112
+ * stays the single source of the geometry.
9113
+ */
9114
+ const CLAMP_FALLBACK_PX = 160;
9115
+ function ClampedMarkdown({ source }) {
9116
+ const [expanded, setExpanded] = (0, react.useState)(false);
9117
+ const [overflowing, setOverflowing] = (0, react.useState)(false);
9118
+ const bodyRef = (0, react.useRef)(null);
9119
+ (0, react.useEffect)(() => {
9120
+ setExpanded(false);
9121
+ }, [source]);
9122
+ (0, react.useEffect)(() => {
9123
+ const node = bodyRef.current;
9124
+ if (node === null) return;
9125
+ const measure = () => {
9126
+ const declared = Number.parseFloat(getComputedStyle(node).maxHeight);
9127
+ const clamp = Number.isFinite(declared) ? declared : CLAMP_FALLBACK_PX;
9128
+ setOverflowing(node.scrollHeight > clamp + 1);
9129
+ };
9130
+ measure();
9131
+ if (typeof ResizeObserver === "undefined") return;
9132
+ const observer = new ResizeObserver(measure);
9133
+ observer.observe(node);
9134
+ return () => {
9135
+ observer.disconnect();
9136
+ };
9137
+ }, [source, expanded]);
9138
+ const clamped = overflowing && !expanded;
9139
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9140
+ ref: bodyRef,
9141
+ className: board_module_css_default.clampBody,
9142
+ "data-clamped": clamped,
9143
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TaskMarkdown, { source })
9144
+ }), overflowing && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9145
+ type: "button",
9146
+ className: `${board_module_css_default.linkButton} ${board_module_css_default.clampToggle}`,
9147
+ "aria-expanded": expanded,
9148
+ onClick: () => {
9149
+ setExpanded(!expanded);
9150
+ },
9151
+ children: expanded ? t("detail.collapse") : t("detail.expand")
9152
+ })] });
9153
+ }
9154
+ //#endregion
9155
+ //#region src/core/workspace-target.ts
9156
+ /**
9157
+ * The failure text the Host records when a card names no workspace and the
9158
+ * deployment has none to resolve it to: the run is refused before any session
9159
+ * exists instead of letting `session.create` fall back to the Host process
9160
+ * working directory (the desktop app's profile directory), which is never the
9161
+ * project the user meant.
9162
+ *
9163
+ * A finished sentence rather than a code: the ledger stores it as the
9164
+ * execution's failure text, which the agent tools serve to a model and which
9165
+ * any client prints verbatim. It names the fix, not the mechanism.
9166
+ */
9167
+ const MISSING_WORKSPACE_REASON = "this card pins no workspace; choose a workspace on the card before running";
9168
+ /**
9169
+ * Whether a recorded failure text is the missing-workspace refusal, which the
9170
+ * browser half renders in the reader's own language.
9171
+ * @param reason - the execution's recorded failure text.
9172
+ * @returns true when that run was refused for naming no workspace.
9173
+ */
9174
+ function isMissingWorkspaceReason(reason) {
9175
+ return reason === MISSING_WORKSPACE_REASON;
9176
+ }
9177
+ //#endregion
8941
9178
  //#region src/client/board/VerificationReport.tsx
8942
9179
  /**
8943
9180
  * One execution's goal-acceptance report.
8944
9181
  *
8945
9182
  * Rendered inside the execution-history row, so a rerun or a scheduled run
8946
9183
  * keeps its OWN report and a later cycle never overwrites an earlier verdict.
8947
- * It shows what the board decided and the evidence it decided on: the verdict,
8948
- * the judge route and reasoning level, the acceptance count, the total and
8949
- * per-criterion scores against their threshold, the findings the judge located,
8950
- * the evidence scope with its truncation, and the token usage.
9184
+ * The row itself only carries the verdict: the judge route, the acceptance
9185
+ * count, the per-criterion scores and their threshold, the findings, the
9186
+ * evidence scope and the token usage sit behind one disclosure, because the
9187
+ * same machine explanation repeated on all thirty-four rows of a card was what
9188
+ * buried the row a reader needed. Expanding it shows every field the board
9189
+ * decided on — nothing is dropped, only folded.
8951
9190
  *
8952
9191
  * Deliberately adds no new `data-dsh-part` value: the part enum is owned by the
8953
9192
  * cross-repository semantic-attribute contract, and this report reuses the
@@ -8976,6 +9215,21 @@ Please report this to https://github.com/markedjs/marked.`, e) {
8976
9215
  failed: "verify.status.failed",
8977
9216
  invalid: "verify.status.invalidHeld"
8978
9217
  };
9218
+ /**
9219
+ * Board phase → the badge's colour slot. One slot per meaning instead of one
9220
+ * per phase: a phase that is still running reads as a warning, a refused
9221
+ * acceptance reads as a failure, and an acceptance that never applied reads as
9222
+ * neutral — never as a pass.
9223
+ */
9224
+ const PHASE_TONE = {
9225
+ off: "neutral",
9226
+ executing: "warn",
9227
+ verifying: "warn",
9228
+ repairing: "error",
9229
+ passed: "success",
9230
+ failed: "error",
9231
+ invalid: "error"
9232
+ };
8979
9233
  /** Evidence location → locale key, for one structured finding's citation. */
8980
9234
  const LOCATION_KEY = {
8981
9235
  task: "verify.location.task",
@@ -9002,28 +9256,34 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9002
9256
  exception: "verify.cleanup.stage.exception",
9003
9257
  budget: "verify.cleanup.stage.budget"
9004
9258
  };
9259
+ /** Stable key for one finding row. */
9260
+ function findingKey(attempt, index) {
9261
+ return attempt.at.toString(36) + "-" + String(index);
9262
+ }
9005
9263
  /** One recorded attempt: a quality verdict, an invalid veto, an anomaly, or a budget stop. */
9006
9264
  function AttemptRow({ attempt, detailRemoved }) {
9007
9265
  const invalid = attempt.stage === "invalid";
9008
9266
  const exception = attempt.stage !== "quality" && !invalid;
9009
9267
  const result = exception ? "failed" : attempt.passed ? "succeeded" : "failed";
9010
9268
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
9011
- className: board_module_css_default.executionRow,
9269
+ className: board_module_css_default.attemptRow,
9012
9270
  "data-result": result,
9013
9271
  children: [
9014
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9015
- className: board_module_css_default.executionBadge,
9016
- "data-result": result,
9017
- children: invalid ? t("verify.status.invalid") : exception ? t("verify.status.exception") : attempt.passed ? t("verify.status.passed") : t("verify.status.failed")
9018
- }),
9019
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9020
- className: board_module_css_default.executionTimes,
9021
- children: [
9022
- invalid ? t("verify.attemptInvalid", { index: String(attempt.index) }) : exception ? t("verify.attemptException", { index: String(attempt.index) }) : t("verify.attempt", { index: String(attempt.index) }),
9023
- " · ",
9024
- routeLabel(attempt),
9025
- !exception && !invalid && " · " + t("verify.rounds", { rounds: String(attempt.rounds) })
9026
- ]
9272
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9273
+ className: board_module_css_default.attemptHead,
9274
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9275
+ className: board_module_css_default.executionBadge,
9276
+ "data-result": result,
9277
+ children: invalid ? t("verify.status.invalid") : exception ? t("verify.status.exception") : attempt.passed ? t("verify.status.passed") : t("verify.status.failed")
9278
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9279
+ className: board_module_css_default.executionTimes,
9280
+ children: [
9281
+ invalid ? t("verify.attemptInvalid", { index: String(attempt.index) }) : exception ? t("verify.attemptException", { index: String(attempt.index) }) : t("verify.attempt", { index: String(attempt.index) }),
9282
+ " · ",
9283
+ routeLabel(attempt),
9284
+ !exception && !invalid && " · " + t("verify.rounds", { rounds: String(attempt.rounds) })
9285
+ ]
9286
+ })]
9027
9287
  }),
9028
9288
  invalid && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9029
9289
  className: board_module_css_default.executionTimes,
@@ -9109,85 +9369,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9109
9369
  ]
9110
9370
  });
9111
9371
  }
9112
- /** Stable key for one finding row. */
9113
- function findingKey(attempt, index) {
9114
- return attempt.at.toString(36) + "-" + String(index);
9115
- }
9116
- /**
9117
- * Render one execution's acceptance report.
9118
- * @param props - the execution's persisted acceptance block.
9119
- * @returns the report, or nothing when acceptance never applied.
9120
- */
9121
- function VerificationReport({ verification }) {
9122
- const phase = verificationPhase(verification);
9123
- if (phase === "off" && verification.contract.enabled === false && verification.applicability !== "skipped") return null;
9124
- const totals = verificationTotals(verification);
9125
- const route = verification.contract.route;
9126
- const applicabilityKey = verification.applicability === "disabled" ? "verify.applicability.disabled" : verification.applicability === "skipped" ? "verify.applicability.skipped" : verification.applicability === "goal-unavailable" ? "verify.applicability.goalUnavailable" : verification.applicability === "goal-disabled" ? "verify.applicability.goalDisabled" : verification.applicability === "team-member" ? "verify.applicability.teamMember" : void 0;
9127
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9128
- className: board_module_css_default.executionTimes,
9129
- children: [
9130
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9131
- className: board_module_css_default.executionBadge,
9132
- "data-result": phase === "passed" ? "succeeded" : phase === "failed" ? "failed" : void 0,
9133
- children: [
9134
- t("verify.title"),
9135
- " · ",
9136
- t(PHASE_STATUS_KEY[phase])
9137
- ]
9138
- }),
9139
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9140
- className: board_module_css_default.executionTimes,
9141
- children: t("verify.invalidCounts", {
9142
- quality: String(qualityAttempts(verification).length),
9143
- max: String(2),
9144
- invalid: String(invalidAttempts(verification).length),
9145
- maxInvalid: String(2),
9146
- exceptions: String(exceptionAttempts(verification).length)
9147
- })
9148
- }),
9149
- route !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9150
- className: board_module_css_default.executionTimes,
9151
- children: verification.contract.modelSource === "inherit" ? t("verify.judgeInherited", { model: route.provider + "/" + route.model }) : t(route.reasoningEffort === void 0 || route.reasoningEffort === "" ? "verify.judgeNoEffort" : "verify.judge", {
9152
- model: route.provider + "/" + route.model,
9153
- ...route.reasoningEffort === void 0 ? {} : { effort: route.reasoningEffort }
9154
- })
9155
- }),
9156
- verification.contract.effortFallback !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9157
- className: board_module_css_default.executionTimes,
9158
- children: t("verify.effortFallback", {
9159
- requested: verification.contract.effortFallback.requested,
9160
- resolved: verification.contract.effortFallback.resolved ?? t("settings.goalVerificationResolvedNoEffort")
9161
- })
9162
- }),
9163
- applicabilityKey !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9164
- className: board_module_css_default.executionTimes,
9165
- children: t(applicabilityKey)
9166
- }),
9167
- verification.failedReason !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9168
- className: board_module_css_default.executionTimes,
9169
- children: t("verify.finalFailure", { reason: verification.failedReason })
9170
- }),
9171
- totals.calls > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9172
- className: board_module_css_default.executionTimes,
9173
- children: [t("verify.usage", {
9174
- calls: String(totals.calls),
9175
- input: String(totals.inputTokens),
9176
- output: String(totals.outputTokens),
9177
- reasoning: String(totals.reasoningTokens)
9178
- }), totals.usageIncomplete ? t("verify.usageIncomplete") : ""]
9179
- }),
9180
- verification.attempts.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
9181
- className: board_module_css_default.executionList,
9182
- children: [...verification.attempts].reverse().map((attempt) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AttemptRow, {
9183
- attempt,
9184
- detailRemoved: verification.cleanup?.state === "cleaned"
9185
- }, attempt.at.toString(36) + "-" + attempt.stage + "-" + String(attempt.index)))
9186
- }),
9187
- verification.cleanup !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CleanupNotice, { cleanup: verification.cleanup })
9188
- ]
9189
- });
9190
- }
9191
9372
  /**
9192
9373
  * Retention notice of one execution's acceptance detail.
9193
9374
  *
@@ -9218,127 +9399,367 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9218
9399
  }, record.at.toString(36) + "-" + record.stage + "-" + String(index)))
9219
9400
  })] });
9220
9401
  }
9221
- //#endregion
9222
- //#region src/client/board/ClampedMarkdown.tsx
9223
- /**
9224
- * Clamped markdown body for the detail overlay: a long description or prompt
9225
- * renders behind a max-height clamp with a fade into the dialog surface and
9226
- * an expand toggle, so it no longer pushes the execution settings and the
9227
- * execution history out of view. Content that fits the clamp renders
9228
- * untouched — no toggle, no fade, no extra markup behaviour.
9229
- */
9230
9402
  /**
9231
- * Clamp height used when the stylesheet is unavailable to the runtime (unit
9232
- * tests). The rendered value lives on `.clampBody[data-clamped='true']` in
9233
- * board.module.css and is read back through getComputedStyle, so the CSS
9234
- * stays the single source of the geometry.
9403
+ * Render one execution's acceptance report.
9404
+ * @param props - the execution's persisted acceptance block.
9405
+ * @returns the verdict badge with its fold-out detail, or nothing when
9406
+ * acceptance never applied.
9235
9407
  */
9236
- const CLAMP_FALLBACK_PX = 160;
9237
- function ClampedMarkdown({ source }) {
9408
+ function VerificationReport({ verification }) {
9238
9409
  const [expanded, setExpanded] = (0, react.useState)(false);
9239
- const [overflowing, setOverflowing] = (0, react.useState)(false);
9240
- const bodyRef = (0, react.useRef)(null);
9241
- (0, react.useEffect)(() => {
9242
- setExpanded(false);
9243
- }, [source]);
9244
- (0, react.useEffect)(() => {
9245
- const node = bodyRef.current;
9246
- if (node === null) return;
9247
- const measure = () => {
9248
- const declared = Number.parseFloat(getComputedStyle(node).maxHeight);
9249
- const clamp = Number.isFinite(declared) ? declared : CLAMP_FALLBACK_PX;
9250
- setOverflowing(node.scrollHeight > clamp + 1);
9251
- };
9252
- measure();
9253
- if (typeof ResizeObserver === "undefined") return;
9254
- const observer = new ResizeObserver(measure);
9255
- observer.observe(node);
9256
- return () => {
9257
- observer.disconnect();
9258
- };
9259
- }, [source, expanded]);
9260
- const clamped = overflowing && !expanded;
9261
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9262
- ref: bodyRef,
9263
- className: board_module_css_default.clampBody,
9264
- "data-clamped": clamped,
9265
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TaskMarkdown, { source })
9266
- }), overflowing && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9267
- type: "button",
9268
- className: `${board_module_css_default.linkButton} ${board_module_css_default.clampToggle}`,
9269
- "aria-expanded": expanded,
9270
- onClick: () => {
9271
- setExpanded(!expanded);
9272
- },
9273
- children: expanded ? t("detail.collapse") : t("detail.expand")
9274
- })] });
9275
- }
9276
- //#endregion
9277
- //#region src/client/board/TaskDetail.tsx
9278
- /**
9279
- * Task detail: the full view of one task — content, prompt, execution
9280
- * history — and the only place execution can be triggered. Also offers
9281
- * delete (with confirmation), manual status moves, and a jump to the
9282
- * execution's session transcript.
9283
- */
9284
- /** Execution outcome → locale key. */
9285
- const RESULT_KEY = {
9410
+ const presence = usePresence(expanded);
9411
+ const panelId = (0, react.useId)();
9412
+ const phase = verificationPhase(verification);
9413
+ if (phase === "off" && verification.contract.enabled === false && verification.applicability !== "skipped") return null;
9414
+ const totals = verificationTotals(verification);
9415
+ const route = verification.contract.route;
9416
+ const applicabilityKey = verification.applicability === "disabled" ? "verify.applicability.disabled" : verification.applicability === "skipped" ? "verify.applicability.skipped" : verification.applicability === "goal-unavailable" ? "verify.applicability.goalUnavailable" : verification.applicability === "goal-disabled" ? "verify.applicability.goalDisabled" : verification.applicability === "team-member" ? "verify.applicability.teamMember" : void 0;
9417
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9418
+ className: board_module_css_default.verifyReport,
9419
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9420
+ type: "button",
9421
+ className: board_module_css_default.verifyBadge,
9422
+ "data-tone": PHASE_TONE[phase],
9423
+ "aria-expanded": expanded,
9424
+ "aria-controls": panelId,
9425
+ onClick: () => {
9426
+ setExpanded(!expanded);
9427
+ },
9428
+ children: [
9429
+ t("verify.title"),
9430
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9431
+ className: board_module_css_default.verifyVerdict,
9432
+ children: t(PHASE_STATUS_KEY[phase])
9433
+ }),
9434
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9435
+ className: board_module_css_default.disclosureChevron,
9436
+ "data-open": expanded,
9437
+ "aria-hidden": "true"
9438
+ })
9439
+ ]
9440
+ }), presence.mounted && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9441
+ className: board_module_css_default.verifyPanel,
9442
+ id: panelId,
9443
+ "data-state": presence.phase,
9444
+ children: [
9445
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9446
+ className: board_module_css_default.executionTimes,
9447
+ children: t("verify.invalidCounts", {
9448
+ quality: String(qualityAttempts(verification).length),
9449
+ max: String(2),
9450
+ invalid: String(invalidAttempts(verification).length),
9451
+ maxInvalid: String(2),
9452
+ exceptions: String(exceptionAttempts(verification).length)
9453
+ })
9454
+ }),
9455
+ route !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9456
+ className: board_module_css_default.executionTimes,
9457
+ children: verification.contract.modelSource === "inherit" ? t("verify.judgeInherited", { model: route.provider + "/" + route.model }) : t(route.reasoningEffort === void 0 || route.reasoningEffort === "" ? "verify.judgeNoEffort" : "verify.judge", {
9458
+ model: route.provider + "/" + route.model,
9459
+ ...route.reasoningEffort === void 0 ? {} : { effort: route.reasoningEffort }
9460
+ })
9461
+ }),
9462
+ verification.contract.effortFallback !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9463
+ className: board_module_css_default.executionTimes,
9464
+ children: t("verify.effortFallback", {
9465
+ requested: verification.contract.effortFallback.requested,
9466
+ resolved: verification.contract.effortFallback.resolved ?? t("settings.goalVerificationResolvedNoEffort")
9467
+ })
9468
+ }),
9469
+ applicabilityKey !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9470
+ className: board_module_css_default.executionTimes,
9471
+ children: t(applicabilityKey)
9472
+ }),
9473
+ verification.failedReason !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9474
+ className: board_module_css_default.executionTimes,
9475
+ children: t("verify.finalFailure", { reason: verification.failedReason })
9476
+ }),
9477
+ totals.calls > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9478
+ className: board_module_css_default.executionTimes,
9479
+ children: [t("verify.usage", {
9480
+ calls: String(totals.calls),
9481
+ input: String(totals.inputTokens),
9482
+ output: String(totals.outputTokens),
9483
+ reasoning: String(totals.reasoningTokens)
9484
+ }), totals.usageIncomplete ? t("verify.usageIncomplete") : ""]
9485
+ }),
9486
+ verification.attempts.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
9487
+ className: board_module_css_default.executionList,
9488
+ children: [...verification.attempts].reverse().map((attempt) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(AttemptRow, {
9489
+ attempt,
9490
+ detailRemoved: verification.cleanup?.state === "cleaned"
9491
+ }, attempt.at.toString(36) + "-" + attempt.stage + "-" + String(attempt.index)))
9492
+ }),
9493
+ verification.cleanup !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CleanupNotice, { cleanup: verification.cleanup })
9494
+ ]
9495
+ })]
9496
+ });
9497
+ }
9498
+ /** Execution outcome → locale key, shared with the history's folded summary. */
9499
+ const EXECUTION_RESULT_KEY = {
9286
9500
  succeeded: "detail.result.succeeded",
9287
9501
  failed: "detail.result.failed",
9288
9502
  cancelled: "detail.result.cancelled"
9289
9503
  };
9290
- /** One execution-history row. */
9504
+ /** One execution-history row: identity on the head line, evidence below it. */
9291
9505
  function ExecutionRow({ execution, timeZone, onOpen }) {
9292
9506
  const result = execution.result;
9293
9507
  const external = execution.external === true;
9294
9508
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
9295
9509
  className: board_module_css_default.executionRow,
9296
9510
  "data-result": result,
9511
+ "data-execution-id": execution.id,
9297
9512
  "data-external": external ? "true" : void 0,
9513
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9514
+ className: board_module_css_default.executionRowHead,
9515
+ children: [
9516
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9517
+ className: board_module_css_default.executionBadge,
9518
+ "data-result": result,
9519
+ children: result === void 0 ? t("detail.result.running") : t(EXECUTION_RESULT_KEY[result])
9520
+ }),
9521
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9522
+ className: board_module_css_default.executionTimes,
9523
+ children: [
9524
+ t("detail.executionStarted"),
9525
+ " ",
9526
+ formatTime(execution.startedAt, timeZone),
9527
+ execution.endedAt !== void 0 && ` · ${t("detail.executionEnded")} ${formatTime(execution.endedAt, timeZone)}`
9528
+ ]
9529
+ }),
9530
+ execution.sessionId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9531
+ type: "button",
9532
+ className: board_module_css_default.executionSession,
9533
+ onClick: () => {
9534
+ onOpen(execution.sessionId);
9535
+ },
9536
+ title: execution.sessionId,
9537
+ children: [t("detail.viewSession"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSession, { size: 13 })]
9538
+ })
9539
+ ]
9540
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9541
+ className: board_module_css_default.executionRowEvidence,
9542
+ children: [
9543
+ external && execution.initiatedBy !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9544
+ className: board_module_css_default.executionTimes,
9545
+ title: execution.initiatedBy,
9546
+ children: t("detail.execution.external", { agent: execution.initiatedBy })
9547
+ }),
9548
+ !external && execution.initiatedBy !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9549
+ className: board_module_css_default.executionTimes,
9550
+ title: execution.initiatedBy,
9551
+ children: t("detail.execution.initiator", { session: execution.initiatedBy })
9552
+ }),
9553
+ execution.verification !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VerificationReport, { verification: execution.verification }),
9554
+ execution.error !== void 0 && execution.error !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9555
+ className: board_module_css_default.executionError,
9556
+ children: isMissingWorkspaceReason(execution.error) ? t("exec.error.noWorkspace") : execution.error
9557
+ })
9558
+ ]
9559
+ })]
9560
+ });
9561
+ }
9562
+ /**
9563
+ * Render one card's execution history.
9564
+ * @param props - the card's executions, its time zone and the session jump.
9565
+ * @returns the newest rows, the disclosure for the rest, and nothing else.
9566
+ */
9567
+ function ExecutionLog({ executions, timeZone, onOpenSession }) {
9568
+ const [expanded, setExpanded] = (0, react.useState)(false);
9569
+ const presence = usePresence(expanded);
9570
+ const logId = (0, react.useId)();
9571
+ const recent = [...executions].reverse();
9572
+ const visible = recent.slice(0, 5);
9573
+ const older = recent.slice(5);
9574
+ const row = (execution) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExecutionRow, {
9575
+ execution,
9576
+ timeZone,
9577
+ onOpen: onOpenSession
9578
+ }, execution.id);
9579
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9580
+ className: board_module_css_default.executionLog,
9581
+ id: logId,
9298
9582
  children: [
9299
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9300
- className: board_module_css_default.executionBadge,
9301
- "data-result": result,
9302
- children: result === void 0 ? t("detail.result.running") : t(RESULT_KEY[result])
9303
- }),
9304
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
9305
- className: board_module_css_default.executionTimes,
9306
- children: [
9307
- t("detail.executionStarted"),
9308
- " ",
9309
- formatTime(execution.startedAt, timeZone),
9310
- execution.endedAt !== void 0 && ` · ${t("detail.executionEnded")} ${formatTime(execution.endedAt, timeZone)}`
9311
- ]
9312
- }),
9313
- external && execution.initiatedBy !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9314
- className: board_module_css_default.executionTimes,
9315
- title: execution.initiatedBy,
9316
- children: t("detail.execution.external", { agent: execution.initiatedBy })
9583
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
9584
+ className: board_module_css_default.executionList,
9585
+ children: visible.map(row)
9317
9586
  }),
9318
- !external && execution.initiatedBy !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9319
- className: board_module_css_default.executionTimes,
9320
- title: execution.initiatedBy,
9321
- children: t("detail.execution.initiator", { session: execution.initiatedBy })
9587
+ older.length > 0 && presence.mounted && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9588
+ className: board_module_css_default.executionExtra,
9589
+ "data-execution-fold": presence.phase,
9590
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
9591
+ className: board_module_css_default.executionList,
9592
+ children: older.map(row)
9593
+ })
9322
9594
  }),
9323
- execution.verification !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VerificationReport, { verification: execution.verification }),
9324
- execution.sessionId !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9595
+ older.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9325
9596
  type: "button",
9326
- className: board_module_css_default.linkButton,
9597
+ className: `${board_module_css_default.linkButton} ${board_module_css_default.executionDisclosure}`,
9598
+ "aria-expanded": expanded,
9599
+ "aria-controls": logId,
9327
9600
  onClick: () => {
9328
- onOpen(execution.sessionId);
9601
+ setExpanded(!expanded);
9329
9602
  },
9330
- title: execution.sessionId,
9331
- children: [t("detail.viewSession"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSession, { size: 13 })]
9332
- }),
9333
- execution.error !== void 0 && execution.error !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9334
- className: board_module_css_default.executionError,
9335
- children: execution.error
9603
+ children: [expanded ? t("detail.collapse") : t("detail.execution.showAll", { count: String(recent.length) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9604
+ className: board_module_css_default.disclosureChevron,
9605
+ "data-open": expanded,
9606
+ "aria-hidden": "true"
9607
+ })]
9336
9608
  })
9337
9609
  ]
9338
9610
  });
9339
9611
  }
9612
+ //#endregion
9613
+ //#region src/client/board/TaskDetail.tsx
9614
+ /**
9615
+ * Task detail: the full view of one task — content, prompt, execution
9616
+ * history — and the only place execution can be triggered. Also offers
9617
+ * delete (with confirmation), manual status moves, and a jump to the
9618
+ * execution's session transcript.
9619
+ */
9620
+ /**
9621
+ * A compact action menu: one trigger on the panel's control track, the choices
9622
+ * only while it is open, Escape or an outside press to close, and focus back on
9623
+ * the trigger afterwards. The panel's dialog owns Escape on `document` in the
9624
+ * capture phase, so the menu answers from the window leg of the same event —
9625
+ * otherwise the press would close the whole detail view under the menu.
9626
+ */
9627
+ function ActionMenu({ label, items, disabled }) {
9628
+ const [open, setOpen] = (0, react.useState)(false);
9629
+ const rootRef = (0, react.useRef)(null);
9630
+ const triggerRef = (0, react.useRef)(null);
9631
+ const menuRef = (0, react.useRef)(null);
9632
+ const menuId = (0, react.useId)();
9633
+ /** Close the menu; a keyboard user gets the trigger back instead of the document body. */
9634
+ const close = (0, react.useCallback)((restoreFocus) => {
9635
+ setOpen(false);
9636
+ if (restoreFocus) triggerRef.current?.focus();
9637
+ }, []);
9638
+ (0, react.useEffect)(() => {
9639
+ if (!open) return;
9640
+ const onKeyDown = (event) => {
9641
+ if (event.key !== "Escape") return;
9642
+ event.stopPropagation();
9643
+ setOpen(false);
9644
+ triggerRef.current?.focus();
9645
+ };
9646
+ const onPointerDown = (event) => {
9647
+ const root = rootRef.current;
9648
+ if (root !== null && event.target instanceof Node && root.contains(event.target)) return;
9649
+ setOpen(false);
9650
+ };
9651
+ window.addEventListener("keydown", onKeyDown, true);
9652
+ document.addEventListener("mousedown", onPointerDown, true);
9653
+ return () => {
9654
+ window.removeEventListener("keydown", onKeyDown, true);
9655
+ document.removeEventListener("mousedown", onPointerDown, true);
9656
+ };
9657
+ }, [open]);
9658
+ (0, react.useEffect)(() => {
9659
+ if (!open) return;
9660
+ menuRef.current?.querySelector("[role=\"menuitem\"]:not([disabled])")?.focus();
9661
+ }, [open]);
9662
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
9663
+ className: board_module_css_default.menuRoot,
9664
+ ref: rootRef,
9665
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9666
+ ref: triggerRef,
9667
+ type: "button",
9668
+ className: board_module_css_default.ghostButton,
9669
+ "aria-haspopup": "menu",
9670
+ "aria-expanded": open,
9671
+ "aria-controls": menuId,
9672
+ disabled,
9673
+ onClick: () => {
9674
+ setOpen(!open);
9675
+ },
9676
+ children: [label, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9677
+ className: board_module_css_default.menuChevron,
9678
+ "data-open": open,
9679
+ "aria-hidden": "true"
9680
+ })]
9681
+ }), open && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9682
+ ref: menuRef,
9683
+ id: menuId,
9684
+ className: board_module_css_default.menuPanel,
9685
+ role: "menu",
9686
+ "aria-label": label,
9687
+ children: items.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
9688
+ type: "button",
9689
+ role: "menuitem",
9690
+ className: board_module_css_default.menuItem,
9691
+ disabled: item.disabled,
9692
+ title: item.title,
9693
+ onClick: () => {
9694
+ close(true);
9695
+ item.onSelect();
9696
+ },
9697
+ children: item.label
9698
+ }, item.key))
9699
+ })]
9700
+ });
9701
+ }
9702
+ /**
9703
+ * One folded region of the detail panel.
9704
+ *
9705
+ * It reuses the task form's region contract verbatim — `.formSection`, the
9706
+ * chevron drawn from borders, the one-line summary, `data-open`, the
9707
+ * `data-dsh-part="form-section"` part the semantic-attribute contract already
9708
+ * owns — and adds the two things a panel fold needs that a dialog region does
9709
+ * not: an `aria-controls` target and a paired exit leg (`usePresence` keeps the
9710
+ * body mounted until the close has run). The panel cannot reach into the form
9711
+ * module to extend its copy, so the shape is mirrored here rather than forked
9712
+ * into a third disclosure style.
9713
+ */
9714
+ function FoldSection({ title, summary, hint, children }) {
9715
+ const [open, setOpen] = (0, react.useState)(false);
9716
+ const presence = usePresence(open);
9717
+ const panelId = (0, react.useId)();
9718
+ const headerRef = (0, react.useRef)(null);
9719
+ const fullLine = hint ?? summary;
9720
+ const toggle = () => {
9721
+ if (open) {
9722
+ const body = panelId === "" ? null : document.getElementById(panelId);
9723
+ if (body !== null && body.contains(document.activeElement)) headerRef.current?.focus();
9724
+ }
9725
+ setOpen(!open);
9726
+ };
9727
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
9728
+ className: board_module_css_default.formSection,
9729
+ "data-dsh-part": "form-section",
9730
+ "data-open": open ? "true" : void 0,
9731
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
9732
+ ref: headerRef,
9733
+ type: "button",
9734
+ className: board_module_css_default.formSectionHeader,
9735
+ "aria-expanded": open,
9736
+ "aria-controls": panelId,
9737
+ title: fullLine === "" ? void 0 : fullLine,
9738
+ onClick: toggle,
9739
+ children: [
9740
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9741
+ className: board_module_css_default.formSectionChevron,
9742
+ "aria-hidden": "true"
9743
+ }),
9744
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9745
+ className: board_module_css_default.formSectionTitle,
9746
+ children: title
9747
+ }),
9748
+ !open && summary !== "" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
9749
+ className: board_module_css_default.formSectionSummary,
9750
+ children: summary
9751
+ })
9752
+ ]
9753
+ }), presence.mounted && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
9754
+ className: board_module_css_default.formSectionBody,
9755
+ id: panelId,
9756
+ "data-state": presence.phase,
9757
+ children
9758
+ })]
9759
+ });
9760
+ }
9340
9761
  /** The execution-target editor: workspace / mode / permission pickers. */
9341
- function ExecutionSettingsSection({ controller, task, pending, executionOptions, teamRunAvailable, goalRunEnabled }) {
9762
+ function ExecutionSettingsSection({ controller, task, pending, executionOptions, goalRunEnabled }) {
9342
9763
  const options = executionOptions;
9343
9764
  const models = options.models ?? [];
9344
9765
  const workspaceId = task.workspaceId ?? "";
@@ -9349,13 +9770,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9349
9770
  const workspaceKnown = workspaceId === "" || options.workspaces.some((item) => item.workspaceId === workspaceId);
9350
9771
  const modeKnown = mode === "" || options.presets.some((item) => item.id === mode);
9351
9772
  const modelKnown = model === "" || models.some((item) => item.id === model);
9773
+ const advancedOn = [];
9774
+ if (task.reuseSession === true) advancedOn.push(t("detail.settings.summary.reuseSession"));
9775
+ if (task.goalRun === true) advancedOn.push(t("detail.settings.summary.goal"));
9776
+ if (task.skipVerification === true) advancedOn.push(t("detail.settings.summary.skipVerification"));
9777
+ const advancedSummary = advancedOn.length === 0 ? t("detail.settings.summary.none") : advancedOn.join(" · ");
9352
9778
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
9353
9779
  className: board_module_css_default.detailSection,
9354
9780
  children: [
9355
9781
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.executionSettings") }),
9356
9782
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9357
9783
  className: board_module_css_default.detailText,
9358
- children: t("exec.hint")
9784
+ title: t("exec.hint"),
9785
+ children: t("exec.hint.short")
9359
9786
  }),
9360
9787
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9361
9788
  className: board_module_css_default.field,
@@ -9481,69 +9908,64 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9481
9908
  controller.updateTask(task.id, { reasoningEffort: effort });
9482
9909
  }
9483
9910
  }),
9484
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9485
- className: board_module_css_default.scheduleToggle,
9486
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9487
- type: "checkbox",
9488
- checked: task.reuseSession === true,
9489
- disabled: pending,
9490
- onChange: (event) => {
9491
- controller.updateTask(task.id, { reuseSession: event.target.checked });
9492
- }
9493
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("exec.reuseSession") })]
9494
- }),
9495
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9496
- className: board_module_css_default.detailText,
9497
- children: t("exec.reuseSessionHint")
9498
- }),
9499
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9500
- className: board_module_css_default.scheduleToggle,
9501
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9502
- type: "checkbox",
9503
- checked: task.goalRun === true,
9504
- disabled: pending,
9505
- onChange: (event) => {
9506
- controller.updateTask(task.id, { goalRun: event.target.checked });
9507
- }
9508
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("exec.goalRun") })]
9509
- }),
9510
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9511
- className: board_module_css_default.detailText,
9512
- children: t("exec.goalRunHint")
9513
- }),
9514
- !goalRunEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9515
- className: board_module_css_default.detailText,
9516
- children: t("settings.goalRunGlobalDisabledTaskOption")
9517
- }),
9518
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9519
- className: board_module_css_default.scheduleToggle,
9520
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9521
- type: "checkbox",
9522
- checked: task.skipVerification === true,
9523
- disabled: pending,
9524
- onChange: (event) => {
9525
- controller.updateTask(task.id, { skipVerification: event.target.checked });
9526
- }
9527
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("exec.skipVerification") })]
9528
- }),
9529
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9530
- className: board_module_css_default.detailText,
9531
- children: t("exec.skipVerificationHint")
9532
- }),
9533
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9534
- className: board_module_css_default.scheduleToggle,
9535
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9536
- type: "checkbox",
9537
- checked: task.teamRun === true,
9538
- disabled: pending || !teamRunAvailable,
9539
- onChange: (event) => {
9540
- controller.updateTask(task.id, { teamRun: event.target.checked });
9541
- }
9542
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("exec.teamRun") })]
9543
- }),
9544
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9545
- className: board_module_css_default.detailText,
9546
- children: teamRunAvailable ? t("exec.teamRunHint") : t("exec.teamRunUnavailable")
9911
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FoldSection, {
9912
+ title: t("detail.settings.advanced"),
9913
+ summary: advancedSummary,
9914
+ children: [
9915
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9916
+ className: board_module_css_default.scheduleToggle,
9917
+ title: t("exec.reuseSessionHint"),
9918
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9919
+ type: "checkbox",
9920
+ checked: task.reuseSession === true,
9921
+ disabled: pending,
9922
+ onChange: (event) => {
9923
+ controller.updateTask(task.id, { reuseSession: event.target.checked });
9924
+ }
9925
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("exec.reuseSession") })]
9926
+ }),
9927
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9928
+ className: board_module_css_default.detailMeta,
9929
+ children: t("exec.reuseSessionHint.short")
9930
+ }),
9931
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9932
+ className: board_module_css_default.scheduleToggle,
9933
+ title: t("exec.goalRunHint"),
9934
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9935
+ type: "checkbox",
9936
+ checked: task.goalRun === true,
9937
+ disabled: pending,
9938
+ onChange: (event) => {
9939
+ controller.updateTask(task.id, { goalRun: event.target.checked });
9940
+ }
9941
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("exec.goalRun") })]
9942
+ }),
9943
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9944
+ className: board_module_css_default.detailMeta,
9945
+ children: t("exec.goalRunHint.short")
9946
+ }),
9947
+ !goalRunEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9948
+ className: board_module_css_default.detailMeta,
9949
+ title: t("settings.goalRunGlobalDisabledTaskOption"),
9950
+ children: t("exec.goalRunGlobalOff")
9951
+ }),
9952
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9953
+ className: board_module_css_default.scheduleToggle,
9954
+ title: t("exec.skipVerificationHint"),
9955
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
9956
+ type: "checkbox",
9957
+ checked: task.skipVerification === true,
9958
+ disabled: pending,
9959
+ onChange: (event) => {
9960
+ controller.updateTask(task.id, { skipVerification: event.target.checked });
9961
+ }
9962
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t("exec.skipVerification") })]
9963
+ }),
9964
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
9965
+ className: board_module_css_default.detailMeta,
9966
+ children: t("exec.skipVerificationHint.short")
9967
+ })
9968
+ ]
9547
9969
  })
9548
9970
  ]
9549
9971
  });
@@ -9740,10 +10162,18 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9740
10162
  const budget = schedule === void 0 ? void 0 : budgetLabel(schedule);
9741
10163
  const ended = schedule === void 0 ? void 0 : endedLabel(schedule);
9742
10164
  const skipped = schedule === void 0 ? void 0 : skippedLabel(schedule);
9743
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
9744
- className: board_module_css_default.detailSection,
10165
+ const plannedAt = mode === "once" ? parseZonedInput(atText, effectiveZone) : void 0;
10166
+ const planLabel = mode === "once" ? t("detail.schedule.summary.planOnce", { time: plannedAt === void 0 ? "—" : formatHostTimestamp(plannedAt, effectiveZone) }) : t("detail.schedule.summary.planCron", { cron: cron.trim() === "" ? "—" : cron.trim() });
10167
+ const scheduleHint = enabled && ended === void 0 ? t("detail.schedule.summary.onFull", {
10168
+ plan: planLabel,
10169
+ next: nextLabel
10170
+ }) : void 0;
10171
+ const scheduleSummary = ended !== void 0 ? t("detail.schedule.ended", { reason: ended }) : enabled ? t("detail.schedule.summary.on", { next: nextLabel }) : skipped !== void 0 ? t("detail.schedule.skipped", { reason: skipped }) : t("detail.schedule.summary.off");
10172
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(FoldSection, {
10173
+ title: t("detail.schedule"),
10174
+ summary: scheduleSummary,
10175
+ hint: scheduleHint,
9745
10176
  children: [
9746
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.schedule") }),
9747
10177
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
9748
10178
  className: board_module_css_default.scheduleToggle,
9749
10179
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
@@ -9933,13 +10363,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
9933
10363
  });
9934
10364
  }
9935
10365
  /**
9936
- * The run hint of one card: how many subtasks a run opens, counting the same
9937
- * members the Host will launch (`joinsCascadeRun` leaves a finished subtask
9938
- * alone), or why it opens none even though the card has subtasks.
10366
+ * The read-only note under the subtask list. A card with unfinished descendants
10367
+ * runs as ONE session — that card's own — which reads the subtasks and hands
10368
+ * them off in dependency order, so the note states what the run does instead of
10369
+ * promising a session per member. It counts the same members the run hands off
10370
+ * (`joinsCascadeRun` leaves a finished subtask alone, and an archived card never
10371
+ * runs at all), and stays a sentence: nothing here is a card field.
9939
10372
  */
9940
- function subtaskRunHint(parentId, children) {
9941
- const runnable = children.filter((child) => joinsCascadeRun(child, parentId));
9942
- return runnable.length > 0 ? t("detail.subtasks.runHint", { count: String(runnable.length) }) : t("detail.subtasks.runHintSettled");
10373
+ function subtaskDispatchNote(task, tasks, maxSubtaskDepth) {
10374
+ const pending = descendantTasks(tasks, task.id, maxSubtaskDepth).filter((descendant) => descendant.archivedAt === void 0 && joinsCascadeRun(descendant, task.id));
10375
+ return pending.length > 0 ? t("detail.subtasks.runHint", { count: String(pending.length) }) : t("detail.subtasks.runHintSettled");
9943
10376
  }
9944
10377
  /**
9945
10378
  * The subtask block: the parent link, the direct subtasks with their status,
@@ -10015,7 +10448,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10015
10448
  }),
10016
10449
  children.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10017
10450
  className: board_module_css_default.detailText,
10018
- children: subtaskRunHint(task.id, children)
10451
+ children: subtaskDispatchNote(task, tasks, limit)
10019
10452
  }),
10020
10453
  !archived && (canAddChild ? controller.isHostBacked() ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10021
10454
  className: board_module_css_default.subtaskAddRow,
@@ -10088,6 +10521,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10088
10521
  const timeZone = snapshot.host?.scheduler.timeZone;
10089
10522
  const permissionPending = requiresPermissionConfirmation(current, snapshot.host?.sessionDefaultPermission);
10090
10523
  const subtaskChildren = directSubtasks(snapshot.tasks, current.id);
10524
+ const subtaskDepthLimit = snapshot.host?.maxSubtaskDepth ?? 1;
10091
10525
  const dialog = useDialog(() => {
10092
10526
  controller.closeTask();
10093
10527
  }, phase);
@@ -10098,6 +10532,31 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10098
10532
  const editPresence = usePresence(editOpen);
10099
10533
  const tagsPresence = usePresence(tagsOpen);
10100
10534
  const duplicatePresence = usePresence(duplicateOpen);
10535
+ const latestExecution = current.executions[current.executions.length - 1];
10536
+ const historySummary = latestExecution === void 0 ? t("detail.noExecution") : t("detail.execution.summary", {
10537
+ count: String(current.executions.length),
10538
+ time: formatTime(latestExecution.endedAt ?? latestExecution.startedAt, timeZone),
10539
+ result: latestExecution.result === void 0 ? t("detail.result.running") : t(EXECUTION_RESULT_KEY[latestExecution.result])
10540
+ });
10541
+ const headerActions = [];
10542
+ if (!archived) {
10543
+ headerActions.push({
10544
+ key: "duplicate",
10545
+ label: canEditTaskContent(current) ? t("detail.duplicate") : t("detail.duplicateAndEdit"),
10546
+ disabled: pending,
10547
+ onSelect: () => {
10548
+ setShowDuplicate(true);
10549
+ }
10550
+ });
10551
+ if (current.status === "done" || current.status === "failed") headerActions.push({
10552
+ key: "archive",
10553
+ label: t("detail.archive"),
10554
+ disabled: pending,
10555
+ onSelect: () => {
10556
+ controller.archiveTask(current.id);
10557
+ }
10558
+ });
10559
+ }
10101
10560
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10102
10561
  className: board_module_css_default.modalBackdrop,
10103
10562
  "data-state": phase,
@@ -10123,6 +10582,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10123
10582
  "data-status": archived ? "archived" : current.status,
10124
10583
  children: archived ? t("board.archive") : t(STATUS_KEY[current.status])
10125
10584
  }),
10585
+ headerActions.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ActionMenu, {
10586
+ label: t("detail.more"),
10587
+ items: headerActions,
10588
+ disabled: pending
10589
+ }),
10126
10590
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10127
10591
  type: "button",
10128
10592
  className: board_module_css_default.iconButton,
@@ -10137,201 +10601,212 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10137
10601
  }),
10138
10602
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10139
10603
  className: board_module_css_default.detailBody,
10140
- children: [
10141
- transportError !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10142
- className: board_module_css_default.formError,
10143
- children: [
10144
- t("board.hostError", { error: transportError }),
10145
- " ",
10146
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10147
- type: "button",
10148
- className: board_module_css_default.linkButton,
10149
- onClick: () => {
10150
- controller.retryHostSync();
10151
- },
10152
- children: t("board.retryHost")
10153
- })
10154
- ]
10155
- }),
10156
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10157
- className: board_module_css_default.detailSection,
10158
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.description") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClampedMarkdown, { source: current.description !== "" ? current.description : "—" })]
10159
- }),
10160
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubtaskSection, {
10161
- controller,
10162
- task: current,
10163
- pending,
10164
- archived,
10165
- snapshot
10166
- }),
10167
- current.tags !== void 0 && current.tags.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10168
- className: board_module_css_default.detailSection,
10169
- "data-dsh-part": "tags",
10170
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("new.tags") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10171
- className: board_module_css_default.cardTags,
10172
- children: current.tags.map((tag) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10173
- className: board_module_css_default.cardTag,
10174
- "data-tag-tone": tagTone(tag.name),
10175
- "data-dsh-part": "tag-badge",
10176
- "data-tag-hint": tag.promptPrefix === void 0 ? void 0 : tag.promptPrefix,
10177
- title: tag.promptPrefix === void 0 ? tag.name : tag.promptPrefix,
10178
- children: tag.name
10179
- }, tag.name))
10180
- })]
10181
- }),
10182
- current.freeze !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10183
- className: board_module_css_default.detailSection,
10184
- "data-dsh-part": "freeze",
10604
+ children: [transportError !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10605
+ className: board_module_css_default.formError,
10606
+ children: [
10607
+ t("board.hostError", { error: transportError }),
10608
+ " ",
10609
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10610
+ type: "button",
10611
+ className: board_module_css_default.linkButton,
10612
+ onClick: () => {
10613
+ controller.retryHostSync();
10614
+ },
10615
+ children: t("board.retryHost")
10616
+ })
10617
+ ]
10618
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10619
+ className: board_module_css_default.detailColumns,
10620
+ "data-detail-layout": "columns",
10621
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10622
+ className: board_module_css_default.detailColumn,
10623
+ "data-detail-column": "content",
10185
10624
  children: [
10186
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.freeze") }),
10187
- current.freeze.redacted === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10188
- className: board_module_css_default.formError,
10189
- children: t("detail.freeze.redacted")
10190
- }),
10191
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10192
- className: board_module_css_default.detailText,
10193
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.freeze.goal") })
10625
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10626
+ className: board_module_css_default.detailSection,
10627
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.description") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClampedMarkdown, { source: current.description !== "" ? current.description : "—" })]
10194
10628
  }),
10195
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
10196
- className: board_module_css_default.promptBlock,
10197
- children: current.freeze.goal
10629
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10630
+ className: board_module_css_default.detailSection,
10631
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.prompt") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClampedMarkdown, { source: current.prompt !== "" ? current.prompt : current.title })]
10198
10632
  }),
10199
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10200
- className: board_module_css_default.detailText,
10201
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.freeze.progress") })
10633
+ current.tags !== void 0 && current.tags.length > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10634
+ className: board_module_css_default.detailSection,
10635
+ "data-dsh-part": "tags",
10636
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("new.tags") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10637
+ className: board_module_css_default.cardTags,
10638
+ children: current.tags.map((tag) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
10639
+ className: board_module_css_default.cardTag,
10640
+ "data-tag-tone": tagTone(tag.name),
10641
+ "data-dsh-part": "tag-badge",
10642
+ "data-tag-hint": tag.promptPrefix === void 0 ? void 0 : tag.promptPrefix,
10643
+ title: tag.promptPrefix === void 0 ? tag.name : tag.promptPrefix,
10644
+ children: tag.name
10645
+ }, tag.name))
10646
+ })]
10202
10647
  }),
10203
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
10204
- className: board_module_css_default.promptBlock,
10205
- children: current.freeze.progress
10648
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SubtaskSection, {
10649
+ controller,
10650
+ task: current,
10651
+ pending,
10652
+ archived,
10653
+ snapshot
10206
10654
  }),
10207
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10208
- className: board_module_css_default.detailText,
10209
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.freeze.next") })
10210
- }),
10211
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
10212
- className: board_module_css_default.promptBlock,
10213
- children: current.freeze.next
10655
+ current.freeze !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10656
+ className: board_module_css_default.detailSection,
10657
+ "data-dsh-part": "freeze",
10658
+ children: [
10659
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.freeze") }),
10660
+ current.freeze.redacted === true && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10661
+ className: board_module_css_default.formError,
10662
+ children: t("detail.freeze.redacted")
10663
+ }),
10664
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10665
+ className: board_module_css_default.detailText,
10666
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.freeze.goal") })
10667
+ }),
10668
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
10669
+ className: board_module_css_default.promptBlock,
10670
+ children: current.freeze.goal
10671
+ }),
10672
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10673
+ className: board_module_css_default.detailText,
10674
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.freeze.progress") })
10675
+ }),
10676
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
10677
+ className: board_module_css_default.promptBlock,
10678
+ children: current.freeze.progress
10679
+ }),
10680
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10681
+ className: board_module_css_default.detailText,
10682
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.freeze.next") })
10683
+ }),
10684
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
10685
+ className: board_module_css_default.promptBlock,
10686
+ children: current.freeze.next
10687
+ }),
10688
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10689
+ className: board_module_css_default.detailMeta,
10690
+ children: t("detail.freeze.frozenAt", { time: formatHostTimestamp(current.freeze.frozenAt, timeZone) })
10691
+ }),
10692
+ current.freeze.frozenBy !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10693
+ className: board_module_css_default.detailMeta,
10694
+ children: t("detail.freeze.frozenBy", { session: current.freeze.frozenBy })
10695
+ })
10696
+ ]
10214
10697
  }),
10215
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10216
- className: board_module_css_default.detailMeta,
10217
- children: t("detail.freeze.frozenAt", { time: formatHostTimestamp(current.freeze.frozenAt, timeZone) })
10698
+ current.handover !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10699
+ className: board_module_css_default.detailSection,
10700
+ "data-dsh-part": "handover",
10701
+ children: [
10702
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.handover") }),
10703
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
10704
+ className: board_module_css_default.detailText,
10705
+ children: [
10706
+ t("new.workspace"),
10707
+ ": ",
10708
+ current.handover.workspaceId ?? t("exec.workspace.recent"),
10709
+ " · ",
10710
+ t("new.agentPreset"),
10711
+ ": ",
10712
+ current.handover.mode ?? t("exec.mode.inherit"),
10713
+ " · ",
10714
+ t("new.permission"),
10715
+ ": ",
10716
+ current.handover.permission === void 0 ? t("exec.permission.default") : t(`exec.permission.${current.handover.permission}`)
10717
+ ]
10718
+ }),
10719
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10720
+ className: board_module_css_default.detailText,
10721
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.handover.references") })
10722
+ }),
10723
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
10724
+ className: board_module_css_default.referenceList,
10725
+ children: current.handover.references.map((reference, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
10726
+ className: board_module_css_default.referenceRow,
10727
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children: reference })
10728
+ }, `${reference}-${index}`))
10729
+ }),
10730
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10731
+ className: board_module_css_default.detailMeta,
10732
+ children: t("detail.handover.bundledAt", { time: formatHostTimestamp(current.handover.bundledAt, timeZone) })
10733
+ })
10734
+ ]
10218
10735
  }),
10219
- current.freeze.frozenBy !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10220
- className: board_module_css_default.detailMeta,
10221
- children: t("detail.freeze.frozenBy", { session: current.freeze.frozenBy })
10736
+ seats.detailSection({
10737
+ task: current,
10738
+ dispatch
10222
10739
  })
10223
10740
  ]
10224
- }),
10225
- current.handover !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10226
- className: board_module_css_default.detailSection,
10227
- "data-dsh-part": "handover",
10741
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10742
+ className: board_module_css_default.detailColumn,
10743
+ "data-detail-column": "execution",
10228
10744
  children: [
10229
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.handover") }),
10230
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
10231
- className: board_module_css_default.detailText,
10232
- children: [
10233
- t("new.workspace"),
10234
- ": ",
10235
- current.handover.workspaceId ?? t("exec.workspace.recent"),
10236
- " · ",
10237
- t("new.agentPreset"),
10238
- ": ",
10239
- current.handover.mode ?? t("exec.mode.inherit"),
10240
- " · ",
10241
- t("new.permission"),
10242
- ": ",
10243
- current.handover.permission === void 0 ? t("exec.permission.default") : t(`exec.permission.${current.handover.permission}`)
10244
- ]
10745
+ permissionPending && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10746
+ className: board_module_css_default.detailSection,
10747
+ "data-dsh-part": "permission-gate",
10748
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10749
+ className: board_module_css_default.formError,
10750
+ children: t("detail.permissionPending", { permission: t(`exec.permission.${current.handover?.permission ?? current.permission}`) })
10751
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10752
+ type: "button",
10753
+ className: board_module_css_default.primaryButton,
10754
+ disabled: pending,
10755
+ onClick: () => {
10756
+ controller.confirmPermission(current.id);
10757
+ },
10758
+ children: t("detail.permissionConfirm")
10759
+ })]
10245
10760
  }),
10246
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10247
- className: board_module_css_default.detailText,
10248
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("strong", { children: t("detail.handover.references") })
10761
+ current.permissionConfirmedAt !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10762
+ className: board_module_css_default.detailMeta,
10763
+ children: t("detail.permissionConfirmed", { time: formatHostTimestamp(current.permissionConfirmedAt, timeZone) })
10249
10764
  }),
10250
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
10251
- className: board_module_css_default.executionList,
10252
- children: current.handover.references.map((reference, index) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
10253
- className: board_module_css_default.executionRow,
10254
- children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("code", { children: reference })
10255
- }, `${reference}-${index}`))
10765
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
10766
+ className: board_module_css_default.detailFolds,
10767
+ children: [!archived && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExecutionSettingsSection, {
10768
+ controller,
10769
+ task: current,
10770
+ pending,
10771
+ executionOptions: snapshot.executionOptions,
10772
+ goalRunEnabled: snapshot.host?.goalRunEnabled === true
10773
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScheduleSection, {
10774
+ controller,
10775
+ task: current,
10776
+ pending
10777
+ })] }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(FoldSection, {
10778
+ title: t("detail.execution"),
10779
+ summary: historySummary,
10780
+ children: current.executions.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10781
+ className: board_module_css_default.detailText,
10782
+ children: t("detail.noExecution")
10783
+ }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExecutionLog, {
10784
+ executions: current.executions,
10785
+ timeZone,
10786
+ onOpenSession: (sessionId) => {
10787
+ controller.openSession(sessionId);
10788
+ }
10789
+ })
10790
+ })]
10256
10791
  }),
10257
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10258
- className: board_module_css_default.detailMeta,
10259
- children: t("detail.handover.bundledAt", { time: formatHostTimestamp(current.handover.bundledAt, timeZone) })
10792
+ !archived && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10793
+ className: board_module_css_default.detailSection,
10794
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("board.status") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ActionMenu, {
10795
+ label: t("detail.moveTo"),
10796
+ disabled: pending,
10797
+ items: MANUAL_STATUSES.map((status) => ({
10798
+ key: status,
10799
+ label: t(`status.move.${status}`),
10800
+ disabled: !canMoveTask(current, status),
10801
+ onSelect: () => {
10802
+ controller.moveTask(current.id, status);
10803
+ }
10804
+ }))
10805
+ })]
10260
10806
  })
10261
10807
  ]
10262
- }),
10263
- permissionPending && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10264
- className: board_module_css_default.detailSection,
10265
- "data-dsh-part": "permission-gate",
10266
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10267
- className: board_module_css_default.formError,
10268
- children: t("detail.permissionPending", { permission: t(`exec.permission.${current.handover?.permission ?? current.permission}`) })
10269
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10270
- type: "button",
10271
- className: board_module_css_default.primaryButton,
10272
- disabled: pending,
10273
- onClick: () => {
10274
- controller.confirmPermission(current.id);
10275
- },
10276
- children: t("detail.permissionConfirm")
10277
- })]
10278
- }),
10279
- current.permissionConfirmedAt !== void 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10280
- className: board_module_css_default.detailMeta,
10281
- children: t("detail.permissionConfirmed", { time: formatHostTimestamp(current.permissionConfirmedAt, timeZone) })
10282
- }),
10283
- seats.detailSection({
10284
- task: current,
10285
- dispatch
10286
- }),
10287
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10288
- className: board_module_css_default.detailSection,
10289
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.prompt") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClampedMarkdown, { source: current.prompt !== "" ? current.prompt : current.title })]
10290
- }),
10291
- !archived && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExecutionSettingsSection, {
10292
- controller,
10293
- task: current,
10294
- pending,
10295
- executionOptions: snapshot.executionOptions,
10296
- teamRunAvailable: snapshot.host?.teamRunAvailable === true,
10297
- goalRunEnabled: snapshot.host?.goalRunEnabled === true
10298
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ScheduleSection, {
10299
- controller,
10300
- task: current,
10301
- pending
10302
- })] }),
10303
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10304
- className: board_module_css_default.detailSection,
10305
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("detail.execution") }), current.executions.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
10306
- className: board_module_css_default.detailText,
10307
- children: t("detail.noExecution")
10308
- }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
10309
- className: board_module_css_default.executionList,
10310
- children: [...current.executions].reverse().map((execution) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ExecutionRow, {
10311
- execution,
10312
- timeZone,
10313
- onOpen: (sessionId) => {
10314
- controller.openSession(sessionId);
10315
- }
10316
- }, execution.id))
10317
- })]
10318
- }),
10319
- !archived && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
10320
- className: board_module_css_default.detailSection,
10321
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h4", { children: t("board.status") }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10322
- className: board_module_css_default.moveRow,
10323
- children: MANUAL_STATUSES.map((status) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10324
- type: "button",
10325
- className: board_module_css_default.ghostButton,
10326
- disabled: pending || !canMoveTask(current, status),
10327
- onClick: () => {
10328
- controller.moveTask(current.id, status);
10329
- },
10330
- children: t(`status.move.${status}`)
10331
- }, status))
10332
- })]
10333
- })
10334
- ]
10808
+ })]
10809
+ })]
10335
10810
  }),
10336
10811
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("footer", {
10337
10812
  className: board_module_css_default.detailFooter,
@@ -10358,21 +10833,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10358
10833
  },
10359
10834
  children: t("detail.editTags")
10360
10835
  }),
10361
- !archived && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10362
- type: "button",
10363
- className: board_module_css_default.ghostButton,
10364
- disabled: pending,
10365
- onClick: () => {
10366
- setShowDuplicate(true);
10367
- },
10368
- title: canEditTaskContent(current) ? t("detail.duplicate") : t("detail.duplicateAndEdit"),
10369
- children: canEditTaskContent(current) ? t("detail.duplicate") : t("detail.duplicateAndEdit")
10370
- }),
10371
10836
  !archived && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10372
10837
  type: "button",
10373
10838
  className: board_module_css_default.primaryButton,
10374
10839
  disabled: busy || pending,
10375
- title: subtaskChildren.length > 0 ? subtaskRunHint(current.id, subtaskChildren) : void 0,
10840
+ title: subtaskChildren.length > 0 ? subtaskDispatchNote(current, snapshot.tasks, subtaskDepthLimit) : void 0,
10376
10841
  onClick: () => {
10377
10842
  controller.rerunTask(current.id).then(() => {
10378
10843
  if (controller.getSnapshot().transportError === void 0) controller.closeTask();
@@ -10380,7 +10845,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10380
10845
  },
10381
10846
  children: current.executions.length === 0 ? t("detail.run") : t("detail.rerun")
10382
10847
  }),
10383
- archived ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10848
+ archived && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10384
10849
  type: "button",
10385
10850
  className: board_module_css_default.primaryButton,
10386
10851
  disabled: pending,
@@ -10388,14 +10853,15 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10388
10853
  controller.restoreTask(current.id);
10389
10854
  },
10390
10855
  children: t("detail.restore")
10391
- }) : (current.status === "done" || current.status === "failed") && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10392
- type: "button",
10393
- className: board_module_css_default.ghostButton,
10394
- disabled: pending,
10395
- onClick: () => {
10396
- controller.archiveTask(current.id);
10397
- },
10398
- children: t("detail.archive")
10856
+ }),
10857
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
10858
+ className: `${board_module_css_default.detailMeta} ${board_module_css_default.detailStamp}`,
10859
+ children: [
10860
+ t("board.created"),
10861
+ " ",
10862
+ formatTime(current.createdAt, timeZone),
10863
+ archived && ` · ${t("detail.archivedAt", { time: formatTime(current.archivedAt, timeZone) })}`
10864
+ ]
10399
10865
  }),
10400
10866
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
10401
10867
  type: "button",
@@ -10405,15 +10871,6 @@ Please report this to https://github.com/markedjs/marked.`, e) {
10405
10871
  setConfirmDelete(true);
10406
10872
  },
10407
10873
  children: t("detail.delete")
10408
- }),
10409
- /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
10410
- className: board_module_css_default.detailMeta,
10411
- children: [
10412
- t("board.created"),
10413
- " ",
10414
- formatTime(current.createdAt, timeZone),
10415
- archived && ` · ${t("detail.archivedAt", { time: formatTime(current.archivedAt, timeZone) })}`
10416
- ]
10417
10874
  })
10418
10875
  ]
10419
10876
  })
@@ -11122,8 +11579,253 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11122
11579
  };
11123
11580
  }
11124
11581
  //#endregion
11582
+ //#region src/client/body-mutations.ts
11583
+ /** Cross-bundle registry key; `Symbol.for` so every module copy agrees. */
11584
+ const HUB_KEY = Symbol.for("dsh-web.body-mutation-hub");
11585
+ const INVALIDATION_ONLY = Symbol.for("dsh-web.body-mutation-invalidation");
11586
+ function needsRecords(subscribers) {
11587
+ for (const listener of subscribers) if (!listener[INVALIDATION_ONLY]) return true;
11588
+ return false;
11589
+ }
11590
+ /**
11591
+ * Subscribe to a coalesced DOM re-check without retaining mutation records.
11592
+ * The marked wrapper also works with an older hub, which delivers records
11593
+ * that it simply ignores until a page reload picks up the updated hub.
11594
+ */
11595
+ function subscribeBodyInvalidations(subscriber) {
11596
+ const listener = () => {
11597
+ subscriber();
11598
+ };
11599
+ listener[INVALIDATION_ONLY] = true;
11600
+ return subscribeBodyMutations(listener);
11601
+ }
11602
+ /**
11603
+ * Subscribe to body-level childList mutations.
11604
+ * @param subscriber - called at most once per animation frame with the records
11605
+ * collected since the previous flush; must be safe to run repeatedly.
11606
+ * @returns the disposer removing this subscriber (and the observer when it was
11607
+ * the last one).
11608
+ */
11609
+ function subscribeBodyMutations(subscriber) {
11610
+ if (typeof globalThis === "undefined" || typeof document === "undefined") return () => {};
11611
+ if (typeof MutationObserver !== "function") return () => {};
11612
+ const registry = globalThis;
11613
+ let hub = registry[HUB_KEY];
11614
+ if (hub === void 0) {
11615
+ const subscribers = /* @__PURE__ */ new Set();
11616
+ const created = {
11617
+ observer: void 0,
11618
+ subscribers,
11619
+ pending: [],
11620
+ scheduled: false
11621
+ };
11622
+ const flush = () => {
11623
+ created.frame = void 0;
11624
+ created.scheduled = false;
11625
+ const batch = created.pending;
11626
+ created.pending = [];
11627
+ for (const listener of [...subscribers]) {
11628
+ if (!subscribers.has(listener)) continue;
11629
+ try {
11630
+ listener(batch);
11631
+ } catch {}
11632
+ }
11633
+ };
11634
+ const schedule = () => {
11635
+ if (created.scheduled) return;
11636
+ created.scheduled = true;
11637
+ if (typeof requestAnimationFrame === "function") created.frame = requestAnimationFrame(flush);
11638
+ else flush();
11639
+ };
11640
+ created.observer = new MutationObserver((records) => {
11641
+ if (needsRecords(subscribers)) for (const record of records) created.pending.push(record);
11642
+ schedule();
11643
+ });
11644
+ created.observer.observe(document.body ?? document.documentElement, {
11645
+ childList: true,
11646
+ subtree: true
11647
+ });
11648
+ registry[HUB_KEY] = created;
11649
+ hub = created;
11650
+ }
11651
+ const active = hub;
11652
+ active.subscribers.add(subscriber);
11653
+ let subscribed = true;
11654
+ return () => {
11655
+ if (!subscribed) return;
11656
+ subscribed = false;
11657
+ active.subscribers.delete(subscriber);
11658
+ if (!needsRecords(active.subscribers)) active.pending = [];
11659
+ if (active.subscribers.size === 0 && registry[HUB_KEY] === active) {
11660
+ active.observer.disconnect();
11661
+ if (active.frame !== void 0 && typeof cancelAnimationFrame === "function") cancelAnimationFrame(active.frame);
11662
+ active.frame = void 0;
11663
+ active.pending = [];
11664
+ active.scheduled = false;
11665
+ delete registry[HUB_KEY];
11666
+ }
11667
+ };
11668
+ }
11669
+ //#endregion
11670
+ //#region src/client/suppress-schedule-row.ts
11671
+ /**
11672
+ * Hide the official automation-tasks entry while the board is on.
11673
+ *
11674
+ * The shell mounts two scheduling surfaces side by side in the sidebar: the
11675
+ * official `ui-schedule` client half ("Automation tasks" — the Host Schedule
11676
+ * service's own page) and this package's board ("Task board" — a Host ledger
11677
+ * that runs real DSH sessions). The board is the family's complete surface, so
11678
+ * while it is enabled the official row is hidden and the sidebar offers one
11679
+ * scheduling entry instead of two.
11680
+ *
11681
+ * The shell owns that row: it renders the button, the label, the tooltip, the
11682
+ * active highlight and the collapsed rail, and the host's own end-to-end suite
11683
+ * addresses the row by its accessible name. The row is therefore located the
11684
+ * same way — the shell's global panel list seat (`sidebar.panellist`), whose
11685
+ * per-row anchor the slot renderer stamps — and it is identified by the label
11686
+ * the shell itself resolves for that entry (`resolveSlotLabel`, exactly the
11687
+ * call the shell's panel projection makes), so the match follows the active
11688
+ * language instead of a hard-coded translation.
11689
+ *
11690
+ * The write is one inline `display: none` on the shell's own button: the row
11691
+ * stays mounted (React keeps owning it) and the official panel keeps working
11692
+ * everywhere else it is reachable — only the duplicate sidebar entry goes
11693
+ * away. The board's master switch owns the state, exactly as it owns the
11694
+ * board's own row: with the board off, the official row comes back.
11695
+ */
11696
+ /**
11697
+ * The official automation-tasks panel id.
11698
+ *
11699
+ * The host `ui-schedule` client half registers its sidebar row and its
11700
+ * center-column page under this id; the shell's panel projection addresses
11701
+ * both by it.
11702
+ */
11703
+ const OFFICIAL_SCHEDULE_PANEL_ID = "schedules";
11704
+ /** The shell's global panel list seat; every rendered panel row carries one anchor. */
11705
+ const PANEL_LIST_SLOT = "sidebar.panellist";
11706
+ /** The anchor the slot renderer stamps for each global panel row. */
11707
+ const PANEL_ROW_ANCHOR = `[data-slot="${PANEL_LIST_SLOT}"]`;
11708
+ /**
11709
+ * The family's own hook on a plugin-owned panel row.
11710
+ *
11711
+ * A row carrying it belongs to a plugin that owns its entry, never to the
11712
+ * official automation-tasks row, so the guard skips those rows: it must not
11713
+ * be able to hide the board's own entry.
11714
+ */
11715
+ const PLUGIN_ROW_HOOK = "[data-dsh-panel-entry]";
11716
+ /**
11717
+ * The live panel-list ledger, or an empty one.
11718
+ *
11719
+ * A context that serves no slot registry (a capture-only test context, or a
11720
+ * shell that never declared the seat) has no official row to hide, and the
11721
+ * guard must read that as "nothing to do" instead of failing the page.
11722
+ * @param ctx - the client context.
11723
+ * @returns the panel-list entries the shell currently projects.
11724
+ */
11725
+ function panelEntries(ctx) {
11726
+ const reader = ctx.slots;
11727
+ if (reader === void 0 || typeof reader.entriesOfSlot !== "function") return [];
11728
+ try {
11729
+ return reader.entriesOfSlot(PANEL_LIST_SLOT) ?? [];
11730
+ } catch {
11731
+ return [];
11732
+ }
11733
+ }
11734
+ /**
11735
+ * The accessible name the shell renders on the official automation-tasks row.
11736
+ *
11737
+ * The shell projects its panel list with `resolveSlotLabel(options.label) ??
11738
+ * id`, and that value becomes the row's accessible name. Reading the same
11739
+ * value out of the same ledger is what keeps the DOM match correct in every
11740
+ * language.
11741
+ * @param entries - the live panel-list ledger.
11742
+ * @returns the row's accessible name, or undefined when the official panel is not mounted.
11743
+ */
11744
+ function officialScheduleRowLabel(entries) {
11745
+ const entry = entries.find((candidate) => candidate.options.id === OFFICIAL_SCHEDULE_PANEL_ID);
11746
+ if (entry === void 0) return void 0;
11747
+ try {
11748
+ return (0, _deepseek_ai_dsh_client_ui_slots.resolveSlotLabel)(entry.options.label) ?? entry.options.id;
11749
+ } catch {
11750
+ return;
11751
+ }
11752
+ }
11753
+ /**
11754
+ * The shell's button for the panel row carrying this accessible name.
11755
+ *
11756
+ * Every global panel row renders one slot anchor inside the shell's own
11757
+ * button, so the anchor is the row's handle and the button is what the user
11758
+ * sees. Rows a plugin owns (they carry the family's own entry hook) are
11759
+ * skipped.
11760
+ * @param root - the document (or a subtree) to search.
11761
+ * @param label - the accessible name to match.
11762
+ * @returns the row button, or undefined when no row carries that name.
11763
+ */
11764
+ function findPanelRow(root, label) {
11765
+ for (const anchor of root.querySelectorAll(PANEL_ROW_ANCHOR)) {
11766
+ if (anchor.querySelector(PLUGIN_ROW_HOOK) !== null) continue;
11767
+ const button = anchor.closest("button");
11768
+ if (button !== null && button.getAttribute("aria-label") === label) return button;
11769
+ }
11770
+ }
11771
+ /**
11772
+ * Guard the official automation-tasks row against the board's presence.
11773
+ *
11774
+ * The guard hides the row while the board is enabled and restores it when the
11775
+ * board is switched off. It re-applies its write after every DOM change,
11776
+ * because the shell owns the row and may mount or replace it at any time (a
11777
+ * re-render, a panel-list change, the official plugin arriving late).
11778
+ * @param ctx - client context carrying the slot registry.
11779
+ * @param root - the document to search; defaults to the ambient one.
11780
+ * @returns the guard's controls.
11781
+ */
11782
+ function createScheduleRowGuard(ctx, root) {
11783
+ const scope = root ?? (typeof document === "undefined" ? void 0 : document);
11784
+ let hidden;
11785
+ let previousDisplay = null;
11786
+ let stopWatching;
11787
+ const restoreRow = () => {
11788
+ if (hidden === void 0) return;
11789
+ const button = hidden;
11790
+ hidden = void 0;
11791
+ if (previousDisplay === null) button.style.removeProperty("display");
11792
+ else button.style.setProperty("display", previousDisplay);
11793
+ previousDisplay = null;
11794
+ };
11795
+ const hideRow = () => {
11796
+ if (scope === void 0) return;
11797
+ const label = officialScheduleRowLabel(panelEntries(ctx));
11798
+ if (label === void 0) return;
11799
+ const button = findPanelRow(scope, label);
11800
+ if (button === void 0) return;
11801
+ if (hidden === button) return;
11802
+ restoreRow();
11803
+ hidden = button;
11804
+ previousDisplay = button.style.getPropertyValue("display");
11805
+ button.style.setProperty("display", "none", "important");
11806
+ };
11807
+ const sync = () => {
11808
+ if (hidden !== void 0 && !hidden.isConnected) restoreRow();
11809
+ hideRow();
11810
+ };
11811
+ const hide = () => {
11812
+ hideRow();
11813
+ if (stopWatching === void 0) stopWatching = subscribeBodyInvalidations(sync);
11814
+ };
11815
+ const show = () => {
11816
+ stopWatching?.();
11817
+ stopWatching = void 0;
11818
+ restoreRow();
11819
+ };
11820
+ return {
11821
+ hide,
11822
+ show,
11823
+ dispose: show
11824
+ };
11825
+ }
11826
+ //#endregion
11125
11827
  //#region \0dsh-css:packages/dsh-task-board/src/client/settings-card.module.css.mjs
11126
- const css$1 = ".Jh0q7G_card{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:12px;list-style:none;transition:border-color .16s,background .16s}.Jh0q7G_card:hover{border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_cardOpen{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_header{appearance:none;box-sizing:border-box;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px;align-items:center;gap:13px;padding:16px;display:flex}.Jh0q7G_header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.Jh0q7G_headerStatic{box-sizing:border-box;border-radius:12px;align-items:center;gap:13px;width:100%;padding:16px;display:flex}.Jh0q7G_headText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.Jh0q7G_mark{background:var(--dsw-alias-bg-module-platform);width:34px;height:34px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;place-items:center;transition:color .16s;display:grid}.Jh0q7G_header:hover .Jh0q7G_mark,.Jh0q7G_cardOpen .Jh0q7G_mark{color:var(--dsw-alias-label-primary)}.Jh0q7G_name{color:var(--dsw-alias-label-primary);font-size:15px;font-weight:600;line-height:1.4}.Jh0q7G_description{color:var(--dsw-alias-label-secondary);font-size:13px;line-height:1.5}.Jh0q7G_pending{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.Jh0q7G_chevron{color:var(--dsw-alias-label-tertiary);flex:none;width:16px;height:16px;transition:transform .16s,color .16s}.Jh0q7G_header:hover .Jh0q7G_chevron{color:var(--dsw-alias-label-secondary)}.Jh0q7G_chevronOpen{transform:rotate(180deg)}.Jh0q7G_body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 16px;padding-bottom:8px}.Jh0q7G_readOnly{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px;line-height:1.5}.Jh0q7G_notExposed{color:var(--dsw-alias-state-warn-primary);margin:12px 0 0;font-size:12px;line-height:1.5}.Jh0q7G_footer{border-top:1px solid var(--dsw-alias-border-l2);justify-content:flex-end;align-items:center;gap:8px;padding:12px 0 4px;display:flex}.Jh0q7G_failed{min-width:0;color:var(--dsw-alias-state-error-primary,#b42318);text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:12px;line-height:1.5;overflow:hidden}.Jh0q7G_discard,.Jh0q7G_save{appearance:none;font:inherit;cursor:pointer;border:1px solid #0000;border-radius:8px;padding:5px 14px;font-size:13px;line-height:1.5}.Jh0q7G_discard{border-color:var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);background:0 0}.Jh0q7G_discard:hover:not(:disabled){color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_save{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3)}.Jh0q7G_discard:disabled,.Jh0q7G_save:disabled{opacity:.4;cursor:default}.Jh0q7G_discard:focus-visible,.Jh0q7G_save:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.Jh0q7G_field{flex-direction:column;gap:6px;padding:12px 0;display:flex}.Jh0q7G_field+.Jh0q7G_field{border-top:1px solid var(--dsw-alias-border-l2)}.Jh0q7G_head{align-items:center;gap:8px;display:flex}.Jh0q7G_label{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:13px;font-weight:500;line-height:1.5}.Jh0q7G_badges{align-items:center;gap:8px;display:inline-flex}.Jh0q7G_badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.Jh0q7G_reset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;line-height:1.5}.Jh0q7G_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}.Jh0q7G_reset:disabled{cursor:default}.Jh0q7G_reset:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px;outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.Jh0q7G_input,.Jh0q7G_select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.Jh0q7G_input:focus-visible,.Jh0q7G_select:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}.Jh0q7G_input:disabled,.Jh0q7G_select:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.Jh0q7G_inputInvalid{border:1px solid var(--dsw-alias-state-error-primary,#b42318);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.Jh0q7G_inputInvalid:focus-visible{outline:2px solid var(--dsw-alias-state-error-primary,#b42318);outline-offset:1px;border-color:var(--dsw-alias-state-error-primary,#b42318)}.Jh0q7G_selectWrap{position:relative}.Jh0q7G_selectButton{appearance:none;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}.Jh0q7G_selectLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Jh0q7G_selectChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}.Jh0q7G_selectChevronOpen{transform:rotate(180deg)}.Jh0q7G_selectPopup{z-index:40;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);max-height:240px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;border-radius:8px;flex-direction:column;padding:4px;transition:opacity .1s,transform .1s;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;transform:translateY(-4px)}.Jh0q7G_selectPopupOpen{opacity:1;transform:none}.Jh0q7G_selectPopupClose{opacity:0;pointer-events:none;transform:translateY(-4px)}.Jh0q7G_selectOption{color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-radius:6px;flex-shrink:0;padding:6px 10px;font-size:13px;line-height:1.5;overflow:hidden}.Jh0q7G_selectOption:hover,.Jh0q7G_selectOptionActive{background:var(--dsw-alias-interactive-bg-hover)}.Jh0q7G_selectOptionSelected{color:var(--dsw-alias-brand-primary);background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 10%, transparent);font-weight:500}.Jh0q7G_invalid{color:var(--dsw-alias-state-error-primary,#b42318);margin:0;font-size:12px;line-height:1.5}.Jh0q7G_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:1.5}@media (prefers-reduced-motion:reduce){.Jh0q7G_card,.Jh0q7G_header,.Jh0q7G_mark,.Jh0q7G_chevron,.Jh0q7G_chevronOpen,.Jh0q7G_discard,.Jh0q7G_save,.Jh0q7G_selectChevron,.Jh0q7G_selectChevronOpen,.Jh0q7G_selectPopup{transition:none}}";
11828
+ const css$1 = ".Jh0q7G_card{--settings-card-radius:12px;--settings-card-header-pad:16px;--settings-card-header-gap:13px;--settings-card-title-size:15px;--settings-card-description-size:13px;--settings-card-body-inset:16px;--settings-card-motion:.18s;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);border-radius:var(--settings-card-radius);list-style:none;transition:border-color .16s,background .16s}.Jh0q7G_card:hover{border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_cardOpen{background:var(--dsw-alias-bg-layer-2);border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_cardNested{--settings-card-radius:10px;--settings-card-header-pad:10px 12px;--settings-card-header-gap:10px;--settings-card-title-size:13px;--settings-card-description-size:12px;--settings-card-body-inset:12px}.Jh0q7G_cardNested .Jh0q7G_description{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.Jh0q7G_header{appearance:none;box-sizing:border-box;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);padding:var(--settings-card-header-pad);background:0 0;border:0;display:flex}.Jh0q7G_header:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.Jh0q7G_headerStatic{box-sizing:border-box;border-radius:var(--settings-card-radius);align-items:center;gap:var(--settings-card-header-gap);width:100%;padding:var(--settings-card-header-pad);display:flex}.Jh0q7G_headText{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.Jh0q7G_mark{background:var(--dsw-alias-bg-module-platform);width:34px;height:34px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;place-items:center;transition:color .16s;display:grid}.Jh0q7G_header:hover .Jh0q7G_mark,.Jh0q7G_cardOpen .Jh0q7G_mark{color:var(--dsw-alias-label-primary)}.Jh0q7G_name{color:var(--dsw-alias-label-primary);font-size:var(--settings-card-title-size);font-weight:600;line-height:1.4}.Jh0q7G_description{color:var(--dsw-alias-label-secondary);font-size:var(--settings-card-description-size);line-height:1.5}.Jh0q7G_pending{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;flex:none;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.Jh0q7G_headerAction{flex:none;align-items:center;display:inline-flex}.Jh0q7G_chevron{color:var(--dsw-alias-label-tertiary);flex:none;width:16px;height:16px;transition:transform .16s,color .16s}.Jh0q7G_header:hover .Jh0q7G_chevron{color:var(--dsw-alias-label-secondary)}.Jh0q7G_chevronOpen{transform:rotate(180deg)}.Jh0q7G_disclosure{opacity:0;transition:grid-template-rows var(--settings-card-motion) ease, opacity var(--settings-card-motion) ease;grid-template-rows:0fr;display:grid}.Jh0q7G_disclosure[data-state=collapsed],.Jh0q7G_disclosure[data-state=entering],.Jh0q7G_disclosure[data-state=closing]{overflow:hidden}.Jh0q7G_disclosure[data-state=entering],.Jh0q7G_disclosure[data-state=shown]{opacity:1;grid-template-rows:1fr}.Jh0q7G_disclosure>.Jh0q7G_body{min-height:0}.Jh0q7G_body{border-top:1px solid var(--dsw-alias-border-l2);margin:0 var(--settings-card-body-inset);padding-bottom:8px}.Jh0q7G_readOnly{color:var(--dsw-alias-label-secondary);margin:12px 0 0;font-size:12px;line-height:1.5}.Jh0q7G_notExposed{color:var(--dsw-alias-state-warn-primary);margin:12px 0 0;font-size:12px;line-height:1.5}.Jh0q7G_footer{border-top:1px solid var(--dsw-alias-border-l2);justify-content:flex-end;align-items:center;gap:8px;padding:12px 0 4px;display:flex}.Jh0q7G_failed{min-width:0;color:var(--dsw-alias-state-error-primary,#b42318);text-overflow:ellipsis;white-space:nowrap;flex:1;margin:0;font-size:12px;line-height:1.5;overflow:hidden}.Jh0q7G_discard,.Jh0q7G_save{appearance:none;font:inherit;cursor:pointer;border:1px solid #0000;border-radius:8px;padding:5px 14px;font-size:13px;line-height:1.5}.Jh0q7G_discard{border-color:var(--dsw-alias-border-l2);color:var(--dsw-alias-label-secondary);background:0 0}.Jh0q7G_discard:hover:not(:disabled){color:var(--dsw-alias-label-primary);border-color:var(--dsw-alias-label-dimmed)}.Jh0q7G_save{background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3)}.Jh0q7G_discard:disabled,.Jh0q7G_save:disabled{opacity:.4;cursor:default}.Jh0q7G_discard:focus-visible,.Jh0q7G_save:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.Jh0q7G_field{flex-direction:column;gap:6px;padding:12px 0;display:flex}.Jh0q7G_field+.Jh0q7G_field{border-top:1px solid var(--dsw-alias-border-l2)}.Jh0q7G_head{align-items:center;gap:8px;display:flex}.Jh0q7G_label{min-width:0;color:var(--dsw-alias-label-primary);flex:1;font-size:13px;font-weight:500;line-height:1.5}.Jh0q7G_badges{align-items:center;gap:8px;display:inline-flex}.Jh0q7G_badge{white-space:nowrap;background:var(--dsw-alias-bg-module-platform);color:var(--dsw-alias-label-secondary);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.Jh0q7G_reset{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px;line-height:1.5}.Jh0q7G_reset:hover:not(:disabled){color:var(--dsw-alias-label-primary)}.Jh0q7G_reset:disabled{cursor:default}.Jh0q7G_reset:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px;outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.Jh0q7G_input,.Jh0q7G_select{border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.Jh0q7G_input:focus-visible,.Jh0q7G_select:focus-visible{border-color:var(--dsw-alias-brand-primary);outline:none}.Jh0q7G_input:disabled,.Jh0q7G_select:disabled{color:var(--dsw-alias-label-tertiary);cursor:default}.Jh0q7G_inputInvalid{border:1px solid var(--dsw-alias-state-error-primary,#b42318);background:var(--dsw-alias-bg-layer-3);height:34px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:8px;padding:0 12px;font-size:13px;line-height:1.5}.Jh0q7G_inputInvalid:focus-visible{outline:2px solid var(--dsw-alias-state-error-primary,#b42318);outline-offset:1px;border-color:var(--dsw-alias-state-error-primary,#b42318)}.Jh0q7G_selectWrap{position:relative}.Jh0q7G_selectButton{appearance:none;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}.Jh0q7G_selectLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Jh0q7G_selectChevron{color:var(--dsw-alias-label-tertiary);flex:none;transition:transform .16s}.Jh0q7G_selectChevronOpen{transform:rotate(180deg)}.Jh0q7G_selectPopup{z-index:40;border:1px solid var(--dsw-alias-border-l2);background:var(--dsw-alias-bg-layer-3);max-height:240px;box-shadow:0 8px 24px var(--dsw-alias-bg-mask-2);opacity:0;border-radius:8px;flex-direction:column;padding:4px;transition:opacity .1s,transform .1s;display:flex;position:absolute;top:calc(100% + 4px);left:0;right:0;overflow-y:auto;transform:translateY(-4px)}.Jh0q7G_selectPopupOpen{opacity:1;transform:none}.Jh0q7G_selectPopupClose{opacity:0;pointer-events:none;transform:translateY(-4px)}.Jh0q7G_selectOption{color:var(--dsw-alias-label-primary);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border-radius:6px;flex-shrink:0;padding:6px 10px;font-size:13px;line-height:1.5;overflow:hidden}.Jh0q7G_selectOption:hover,.Jh0q7G_selectOptionActive{background:var(--dsw-alias-interactive-bg-hover)}.Jh0q7G_selectOptionSelected{color:var(--dsw-alias-brand-primary);background:color-mix(in srgb, var(--dsw-alias-brand-primary-new-colorprimary-new-color) 10%, transparent);font-weight:500}.Jh0q7G_invalid{color:var(--dsw-alias-state-error-primary,#b42318);margin:0;font-size:12px;line-height:1.5}.Jh0q7G_hint{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:1.5}.Jh0q7G_toggle{appearance:none;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:999px;align-items:center;margin:0;padding:0;display:inline-flex}.Jh0q7G_toggleTrack{background:var(--dsw-alias-label-dimmed);border-radius:999px;flex:none;width:30px;height:16px;transition:background .18s;position:relative}.Jh0q7G_toggleThumb{background:var(--dsw-alias-bg-layer-3);border-radius:50%;width:12px;height:12px;transition:left .18s;position:absolute;top:2px;left:2px}.Jh0q7G_toggle[aria-checked=true] .Jh0q7G_toggleTrack{background:var(--dsw-alias-button-primary-fill,var(--dsw-alias-label-primary))}.Jh0q7G_toggle[aria-checked=true] .Jh0q7G_toggleThumb{background:var(--dsw-alias-label-primary-foreground,var(--dsw-alias-bg-layer-3));left:16px}.Jh0q7G_toggle:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.Jh0q7G_toggle:disabled{opacity:.45;cursor:default}@media (prefers-reduced-motion:reduce){.Jh0q7G_card,.Jh0q7G_header,.Jh0q7G_mark,.Jh0q7G_chevron,.Jh0q7G_chevronOpen,.Jh0q7G_discard,.Jh0q7G_save,.Jh0q7G_selectChevron,.Jh0q7G_selectChevronOpen,.Jh0q7G_selectPopup,.Jh0q7G_toggleTrack,.Jh0q7G_toggleThumb{transition:none}.Jh0q7G_disclosure{transition-property:opacity}}";
11127
11829
  const tagId$1 = "@linxin666/dsh-client-ui-task-board/packages/dsh-task-board/src/client/settings-card.module.css";
11128
11830
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
11129
11831
  const tag = document.createElement("style");
@@ -11137,17 +11839,20 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11137
11839
  "badges": "Jh0q7G_badges",
11138
11840
  "body": "Jh0q7G_body",
11139
11841
  "card": "Jh0q7G_card",
11842
+ "cardNested": "Jh0q7G_cardNested",
11140
11843
  "cardOpen": "Jh0q7G_cardOpen",
11141
11844
  "chevron": "Jh0q7G_chevron",
11142
11845
  "chevronOpen": "Jh0q7G_chevronOpen",
11143
11846
  "description": "Jh0q7G_description",
11144
11847
  "discard": "Jh0q7G_discard",
11848
+ "disclosure": "Jh0q7G_disclosure",
11145
11849
  "failed": "Jh0q7G_failed",
11146
11850
  "field": "Jh0q7G_field",
11147
11851
  "footer": "Jh0q7G_footer",
11148
11852
  "head": "Jh0q7G_head",
11149
11853
  "headText": "Jh0q7G_headText",
11150
11854
  "header": "Jh0q7G_header",
11855
+ "headerAction": "Jh0q7G_headerAction",
11151
11856
  "headerStatic": "Jh0q7G_headerStatic",
11152
11857
  "hint": "Jh0q7G_hint",
11153
11858
  "input": "Jh0q7G_input",
@@ -11172,7 +11877,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11172
11877
  "selectPopup": "Jh0q7G_selectPopup",
11173
11878
  "selectPopupClose": "Jh0q7G_selectPopupClose",
11174
11879
  "selectPopupOpen": "Jh0q7G_selectPopupOpen",
11175
- "selectWrap": "Jh0q7G_selectWrap"
11880
+ "selectWrap": "Jh0q7G_selectWrap",
11881
+ "toggle": "Jh0q7G_toggle",
11882
+ "toggleThumb": "Jh0q7G_toggleThumb",
11883
+ "toggleTrack": "Jh0q7G_toggleTrack"
11176
11884
  };
11177
11885
  //#endregion
11178
11886
  //#region src/client/CardDefaultPresetField.tsx
@@ -11246,6 +11954,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11246
11954
  }),
11247
11955
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11248
11956
  className: props.invalid ? settings_card_module_css_default.invalid : settings_card_module_css_default.hint,
11957
+ title: props.hintTitle,
11249
11958
  children: props.invalid ? props.invalidLabel : props.hint
11250
11959
  })
11251
11960
  ]
@@ -11261,6 +11970,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11261
11970
  * it. Inlined into each consumer's client bundle; mirrors the official
11262
11971
  * ui-plugin-config PluginCard in a self-contained slice.
11263
11972
  */
11973
+ /** Length of the body's disclosure motion; it matches `--settings-card-motion` on the card root. */
11974
+ const BODY_MOTION_MS = 180;
11264
11975
  /**
11265
11976
  * Render one plugin settings card.
11266
11977
  * @param props - the plugin's copy keys, its form state, and its controls.
@@ -11269,12 +11980,48 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11269
11980
  function PluginSettingsCard(props) {
11270
11981
  const [open, setOpen] = (0, react.useState)(props.defaultOpen ?? true);
11271
11982
  const { state, alwaysOpen } = props;
11983
+ const expanded = alwaysOpen === true || open;
11984
+ const [bodyPhase, setBodyPhase] = (0, react.useState)(expanded ? "shown" : "hidden");
11985
+ const bodyRef = (0, react.useRef)(null);
11986
+ (0, react.useLayoutEffect)(() => {
11987
+ if (expanded) {
11988
+ if (bodyPhase === "hidden") setBodyPhase("collapsed");
11989
+ else if (bodyPhase === "collapsed") {
11990
+ const node = bodyRef.current;
11991
+ if (node !== null) node.offsetHeight;
11992
+ setBodyPhase("entering");
11993
+ } else if (bodyPhase === "closing") setBodyPhase("entering");
11994
+ return;
11995
+ }
11996
+ if (bodyPhase === "collapsed") setBodyPhase("hidden");
11997
+ else if (bodyPhase === "entering" || bodyPhase === "shown") setBodyPhase("closing");
11998
+ }, [expanded, bodyPhase]);
11999
+ (0, react.useEffect)(() => {
12000
+ if (bodyPhase !== "entering" && bodyPhase !== "closing") return;
12001
+ const timer = setTimeout(() => {
12002
+ setBodyPhase(bodyPhase === "entering" ? "shown" : "hidden");
12003
+ }, BODY_MOTION_MS);
12004
+ return () => {
12005
+ clearTimeout(timer);
12006
+ };
12007
+ }, [bodyPhase]);
11272
12008
  if (!state.available) return null;
11273
12009
  const title = props.t(props.titleKey);
11274
12010
  const description = props.t(props.descriptionKey);
12011
+ const descriptionTitle = props.descriptionTitleKey === void 0 ? description : props.t(props.descriptionTitleKey);
11275
12012
  const blocked = !state.dirty || state.invalid || state.saving;
11276
- const expanded = alwaysOpen === true || open;
11277
- const cardClass = expanded ? `${settings_card_module_css_default.cardOpen} ${settings_card_module_css_default.card}` : settings_card_module_css_default.card;
12013
+ const baseClass = expanded ? `${settings_card_module_css_default.cardOpen} ${settings_card_module_css_default.card}` : settings_card_module_css_default.card;
12014
+ const cardClass = props.density === "nested" ? `${baseClass} ${settings_card_module_css_default.cardNested}` : baseClass;
12015
+ /** The body region both legs share; a hidden phase renders nothing at all. */
12016
+ const bodyRegion = (content) => bodyPhase === "hidden" ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
12017
+ className: settings_card_module_css_default.disclosure,
12018
+ "data-state": bodyPhase,
12019
+ ref: bodyRef,
12020
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
12021
+ className: settings_card_module_css_default.body,
12022
+ children: content
12023
+ })
12024
+ });
11278
12025
  const header = alwaysOpen === true ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11279
12026
  className: settings_card_module_css_default.headerStatic,
11280
12027
  children: [
@@ -11287,14 +12034,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11287
12034
  className: settings_card_module_css_default.headText,
11288
12035
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11289
12036
  className: settings_card_module_css_default.name,
12037
+ id: props.titleId,
11290
12038
  title,
11291
12039
  children: title
11292
12040
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11293
12041
  className: settings_card_module_css_default.description,
11294
- title: description,
12042
+ title: descriptionTitle,
11295
12043
  children: props.descriptionNode ?? description
11296
12044
  })]
11297
12045
  }),
12046
+ props.headerAction !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12047
+ className: settings_card_module_css_default.headerAction,
12048
+ children: props.headerAction
12049
+ }) : null,
11298
12050
  state.dirty ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11299
12051
  className: settings_card_module_css_default.pending,
11300
12052
  title: props.t("settings.unsaved"),
@@ -11319,14 +12071,19 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11319
12071
  className: settings_card_module_css_default.headText,
11320
12072
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11321
12073
  className: settings_card_module_css_default.name,
12074
+ id: props.titleId,
11322
12075
  title,
11323
12076
  children: title
11324
12077
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11325
12078
  className: settings_card_module_css_default.description,
11326
- title: description,
12079
+ title: descriptionTitle,
11327
12080
  children: props.descriptionNode ?? description
11328
12081
  })]
11329
12082
  }),
12083
+ props.headerAction !== void 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12084
+ className: settings_card_module_css_default.headerAction,
12085
+ children: props.headerAction
12086
+ }) : null,
11330
12087
  state.dirty ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
11331
12088
  className: settings_card_module_css_default.pending,
11332
12089
  title: props.t("settings.unsaved"),
@@ -11346,57 +12103,48 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11346
12103
  })
11347
12104
  ]
11348
12105
  });
11349
- if (!state.exposed && props.renderChildrenWhenNotExposed !== true) {
11350
- const showNotice = props.hideNotExposedNotice !== true;
11351
- return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
11352
- className: cardClass,
11353
- children: [header, expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
11354
- className: settings_card_module_css_default.body,
11355
- children: showNotice ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11356
- className: settings_card_module_css_default.notExposed,
11357
- role: "status",
11358
- children: props.t("settings.notExposed")
11359
- }) : null
11360
- }) : null]
11361
- });
11362
- }
12106
+ if (!state.exposed && props.renderChildrenWhenNotExposed !== true) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
12107
+ className: cardClass,
12108
+ children: [header, bodyRegion(props.hideNotExposedNotice !== true ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12109
+ className: settings_card_module_css_default.notExposed,
12110
+ role: "status",
12111
+ children: props.t("settings.notExposed")
12112
+ }) : null)]
12113
+ });
11363
12114
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("li", {
11364
12115
  className: cardClass,
11365
- children: [header, expanded ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11366
- className: settings_card_module_css_default.body,
11367
- children: [
11368
- !state.writable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11369
- className: settings_card_module_css_default.readOnly,
11370
- role: "status",
11371
- children: props.t("settings.readOnly")
11372
- }) : null,
11373
- props.children,
11374
- props.hideFooter === true ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
11375
- className: settings_card_module_css_default.footer,
11376
- children: [
11377
- state.failed ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
11378
- className: settings_card_module_css_default.failed,
11379
- role: "status",
11380
- children: [props.t("settings.saveFailed"), state.failedReason ? " - " + state.failedReason : ""]
11381
- }) : null,
11382
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11383
- type: "button",
11384
- className: settings_card_module_css_default.discard,
11385
- disabled: !state.dirty || state.saving,
11386
- onClick: props.onDiscard,
11387
- children: props.t("settings.discard")
11388
- }),
11389
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
11390
- type: "button",
11391
- className: settings_card_module_css_default.save,
11392
- disabled: blocked,
11393
- onClick: props.onSave,
11394
- children: props.t(!state.saving ? "settings.save" : "settings.saving")
11395
- })
11396
- ]
11397
- })
11398
- ]
11399
- }) : null]
12116
+ children: [header, props.headerOnly !== true ? bodyRegion(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
12117
+ !state.writable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12118
+ className: settings_card_module_css_default.readOnly,
12119
+ role: "status",
12120
+ children: props.t("settings.readOnly")
12121
+ }) : null,
12122
+ props.children,
12123
+ props.hideFooter === true ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12124
+ className: settings_card_module_css_default.footer,
12125
+ children: [
12126
+ state.failed ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
12127
+ className: settings_card_module_css_default.failed,
12128
+ role: "status",
12129
+ children: [props.t("settings.saveFailed"), state.failedReason ? " - " + state.failedReason : ""]
12130
+ }) : null,
12131
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
12132
+ type: "button",
12133
+ className: settings_card_module_css_default.discard,
12134
+ disabled: !state.dirty || state.saving,
12135
+ onClick: props.onDiscard,
12136
+ children: props.t("settings.discard")
12137
+ }),
12138
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
12139
+ type: "button",
12140
+ className: settings_card_module_css_default.save,
12141
+ disabled: blocked,
12142
+ onClick: props.onSave,
12143
+ children: props.t(!state.saving ? "settings.save" : "settings.saving")
12144
+ })
12145
+ ]
12146
+ })
12147
+ ] })) : null]
11400
12148
  });
11401
12149
  }
11402
12150
  /** A staged value field. `numeric` only hints the keypad: which drafts a field accepts is decided by its spec. */
@@ -11439,6 +12187,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11439
12187
  }),
11440
12188
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11441
12189
  className: props.invalid ? settings_card_module_css_default.invalid : settings_card_module_css_default.hint,
12190
+ title: props.hintTitle,
11442
12191
  children: props.invalid ? props.invalidLabel : props.hint
11443
12192
  })
11444
12193
  ]
@@ -11661,6 +12410,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11661
12410
  }),
11662
12411
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11663
12412
  className: settings_card_module_css_default.hint,
12413
+ title: props.hintTitle,
11664
12414
  children: props.hint
11665
12415
  })
11666
12416
  ]
@@ -11704,6 +12454,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
11704
12454
  }),
11705
12455
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
11706
12456
  className: props.invalid ? settings_card_module_css_default.invalid : settings_card_module_css_default.hint,
12457
+ title: props.hintTitle,
11707
12458
  children: props.invalid ? props.invalidLabel : props.hint
11708
12459
  })
11709
12460
  ]
@@ -12034,7 +12785,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12034
12785
  };
12035
12786
  //#endregion
12036
12787
  //#region \0dsh-css:packages/dsh-task-board/src/client/board-settings.module.css.mjs
12037
- const css = ".bQNdXW_note{color:var(--dsw-alias-label-secondary);margin:4px 0;font-size:12px}.bQNdXW_error{color:var(--dsw-alias-state-error-primary);margin:4px 0;font-size:12px}.bQNdXW_resolvedList{color:var(--dsw-alias-label-secondary);margin:4px 0 8px;padding-left:16px;font-size:12px}.bQNdXW_power{flex-direction:column;gap:2px;margin-top:14px;display:flex}.bQNdXW_powerLine{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:1.5}.bQNdXW_powerError{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:1.5}.bQNdXW_nestedCards{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}";
12788
+ const css = ".bQNdXW_note{color:var(--dsw-alias-label-secondary);margin:4px 0;font-size:12px}.bQNdXW_error{color:var(--dsw-alias-state-error-primary);margin:4px 0;font-size:12px}.bQNdXW_resolvedList{color:var(--dsw-alias-label-secondary);margin:4px 0 8px;padding-left:16px;font-size:12px}.bQNdXW_nestedCards,.bQNdXW_power{--task-board-settings-gap:8px}.bQNdXW_power{gap:var(--task-board-settings-gap);margin-top:calc(var(--task-board-settings-gap) * 2);flex-direction:column;display:flex}.bQNdXW_powerFacts{column-gap:calc(var(--task-board-settings-gap) * 2);color:var(--dsw-alias-label-secondary);grid-template-columns:max-content 1fr;row-gap:2px;margin:0;font-size:12px;line-height:1.5;display:grid}.bQNdXW_powerTerm,.bQNdXW_powerValue{margin:0}.bQNdXW_powerTerm{color:var(--dsw-alias-label-tertiary)}.bQNdXW_powerLine{color:var(--dsw-alias-label-secondary);margin:0;font-size:12px;line-height:1.5}.bQNdXW_powerError{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px;line-height:1.5}.bQNdXW_nestedCards{gap:var(--task-board-settings-gap);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}";
12038
12789
  const tagId = "@linxin666/dsh-client-ui-task-board/packages/dsh-task-board/src/client/board-settings.module.css";
12039
12790
  if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
12040
12791
  const tag = document.createElement("style");
@@ -12049,7 +12800,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12049
12800
  "note": "bQNdXW_note",
12050
12801
  "power": "bQNdXW_power",
12051
12802
  "powerError": "bQNdXW_powerError",
12803
+ "powerFacts": "bQNdXW_powerFacts",
12052
12804
  "powerLine": "bQNdXW_powerLine",
12805
+ "powerTerm": "bQNdXW_powerTerm",
12806
+ "powerValue": "bQNdXW_powerValue",
12053
12807
  "resolvedList": "bQNdXW_resolvedList"
12054
12808
  };
12055
12809
  //#endregion
@@ -12121,6 +12875,26 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12121
12875
  };
12122
12876
  }
12123
12877
  /**
12878
+ * The daily token cap field: whole tokens, 0 for "no gate". Every non-negative
12879
+ * whole number is a legal cap, so the draft only has to be one; a blank draft
12880
+ * clears the entry back to the schema default (0).
12881
+ */
12882
+ function spendBudgetField() {
12883
+ return {
12884
+ field: "spendBudgetTokens",
12885
+ format: (value) => typeof value === "number" && Number.isInteger(value) ? String(value) : "",
12886
+ parse: (text) => {
12887
+ const trimmed = text.trim();
12888
+ if (trimmed === "") return { kind: "clear" };
12889
+ if (!/^\d+$/.test(trimmed)) return void 0;
12890
+ return {
12891
+ kind: "set",
12892
+ value: Number(trimmed)
12893
+ };
12894
+ }
12895
+ };
12896
+ }
12897
+ /**
12124
12898
  * The judge-model field: blank inherits the host model catalog default, and a
12125
12899
  * non-blank draft must be a qualified provider/model route. An unparseable
12126
12900
  * draft blocks the save instead of storing a route nothing can resolve.
@@ -12155,9 +12929,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12155
12929
  booleanField("enabled"),
12156
12930
  booleanField("announceToAgent"),
12157
12931
  booleanField("preventIdleSleep"),
12932
+ booleanField("trustForwardedProxy"),
12158
12933
  subtaskDepthField(),
12159
12934
  sessionPollField(),
12160
12935
  runLaunchWidthField(),
12936
+ spendBudgetField(),
12161
12937
  booleanField("goalRunEnabled"),
12162
12938
  booleanField("goalVerification"),
12163
12939
  modelRouteField("goalVerificationModel"),
@@ -12175,9 +12951,11 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12175
12951
  enabled: this.form.field("enabled"),
12176
12952
  announceToAgent: this.form.field("announceToAgent"),
12177
12953
  preventIdleSleep: this.form.field("preventIdleSleep"),
12954
+ trustForwardedProxy: this.form.field("trustForwardedProxy"),
12178
12955
  maxSubtaskDepth: this.form.field("maxSubtaskDepth"),
12179
12956
  sessionPollSeconds: this.form.field("sessionPollSeconds"),
12180
12957
  runLaunchWidth: this.form.field("runLaunchWidth"),
12958
+ spendBudgetTokens: this.form.field("spendBudgetTokens"),
12181
12959
  goalRunEnabled: this.form.field("goalRunEnabled"),
12182
12960
  goalVerification: this.form.field("goalVerification"),
12183
12961
  goalVerificationModel: this.form.field("goalVerificationModel"),
@@ -12359,6 +13137,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12359
13137
  children: [
12360
13138
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PluginSettingsCard, {
12361
13139
  t,
13140
+ density: "nested",
12362
13141
  titleKey: "settings.enabled",
12363
13142
  descriptionKey: "settings.enabledCardHint",
12364
13143
  defaultOpen: false,
@@ -12370,7 +13149,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12370
13149
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
12371
13150
  id: "settings-task-board-enabled",
12372
13151
  label: t("settings.enabled"),
12373
- hint: t("settings.enabledHint"),
13152
+ hint: t("settings.enabledHintBrief"),
13153
+ hintTitle: t("settings.enabledHint"),
12374
13154
  inheritLabel: t("settings.inherit"),
12375
13155
  onLabel: t("settings.on"),
12376
13156
  offLabel: t("settings.off"),
@@ -12386,7 +13166,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12386
13166
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
12387
13167
  id: "settings-task-board-announce",
12388
13168
  label: t("settings.announceToAgent"),
12389
- hint: t("settings.announceToAgentHint"),
13169
+ hint: t("settings.announceToAgentHintBrief"),
13170
+ hintTitle: t("settings.announceToAgentHint"),
12390
13171
  inheritLabel: t("settings.inherit"),
12391
13172
  onLabel: t("settings.on"),
12392
13173
  offLabel: t("settings.off"),
@@ -12402,7 +13183,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12402
13183
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
12403
13184
  id: "settings-task-board-prevent-idle-sleep",
12404
13185
  label: t("settings.preventIdleSleep"),
12405
- hint: t("settings.preventIdleSleepHint"),
13186
+ hint: t("settings.preventIdleSleepHintBrief"),
13187
+ hintTitle: t("settings.preventIdleSleepHint"),
12406
13188
  inheritLabel: t("settings.inherit"),
12407
13189
  onLabel: t("settings.on"),
12408
13190
  offLabel: t("settings.off"),
@@ -12415,10 +13197,28 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12415
13197
  props.resetField("preventIdleSleep");
12416
13198
  }
12417
13199
  }),
13200
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
13201
+ id: "settings-task-board-trust-forwarded-proxy",
13202
+ label: t("settings.trustForwardedProxy"),
13203
+ hint: t("settings.trustForwardedProxyHintBrief"),
13204
+ hintTitle: t("settings.trustForwardedProxyHint"),
13205
+ inheritLabel: t("settings.inherit"),
13206
+ onLabel: t("settings.on"),
13207
+ offLabel: t("settings.off"),
13208
+ ...fieldProps,
13209
+ ...state.trustForwardedProxy,
13210
+ onEdit: (text) => {
13211
+ props.edit("trustForwardedProxy", text);
13212
+ },
13213
+ onReset: () => {
13214
+ props.resetField("trustForwardedProxy");
13215
+ }
13216
+ }),
12418
13217
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueField, {
12419
13218
  id: "settings-task-board-session-poll",
12420
13219
  label: t("settings.sessionPollSeconds"),
12421
- hint: t("settings.sessionPollSecondsHint"),
13220
+ hint: t("settings.sessionPollSecondsHintBrief"),
13221
+ hintTitle: t("settings.sessionPollSecondsHint"),
12422
13222
  numeric: true,
12423
13223
  ...fieldProps,
12424
13224
  ...state.sessionPollSeconds,
@@ -12432,7 +13232,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12432
13232
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChoiceField, {
12433
13233
  id: "settings-task-board-subtask-depth",
12434
13234
  label: t("settings.maxSubtaskDepth"),
12435
- hint: t("settings.maxSubtaskDepthHint"),
13235
+ hint: t("settings.maxSubtaskDepthHintBrief"),
13236
+ hintTitle: t("settings.maxSubtaskDepthHint"),
12436
13237
  inheritLabel: t("settings.inherit"),
12437
13238
  choices: SUBTASK_DEPTH_CHOICES.map((value) => ({
12438
13239
  value,
@@ -12450,7 +13251,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12450
13251
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueField, {
12451
13252
  id: "settings-task-board-run-launch-width",
12452
13253
  label: t("settings.runLaunchWidth"),
12453
- hint: t("settings.runLaunchWidthHint"),
13254
+ hint: t("settings.runLaunchWidthHintBrief"),
13255
+ hintTitle: t("settings.runLaunchWidthHint"),
12454
13256
  numeric: true,
12455
13257
  ...fieldProps,
12456
13258
  ...state.runLaunchWidth,
@@ -12460,11 +13262,27 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12460
13262
  onReset: () => {
12461
13263
  props.resetField("runLaunchWidth");
12462
13264
  }
13265
+ }),
13266
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ValueField, {
13267
+ id: "settings-task-board-spend-budget",
13268
+ label: t("settings.spendBudgetTokens"),
13269
+ hint: t("settings.spendBudgetTokensHintBrief"),
13270
+ hintTitle: t("settings.spendBudgetTokensHint"),
13271
+ numeric: true,
13272
+ ...fieldProps,
13273
+ ...state.spendBudgetTokens,
13274
+ onEdit: (text) => {
13275
+ props.edit("spendBudgetTokens", text);
13276
+ },
13277
+ onReset: () => {
13278
+ props.resetField("spendBudgetTokens");
13279
+ }
12463
13280
  })
12464
13281
  ]
12465
13282
  }),
12466
13283
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PluginSettingsCard, {
12467
13284
  t,
13285
+ density: "nested",
12468
13286
  titleKey: "settings.runBehaviorTitle",
12469
13287
  descriptionKey: "settings.runBehaviorCardHint",
12470
13288
  defaultOpen: false,
@@ -12475,7 +13293,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12475
13293
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
12476
13294
  id: "settings-task-board-goal-run",
12477
13295
  label: t("settings.goalRunGlobal"),
12478
- hint: t("settings.goalRunGlobalHint"),
13296
+ hint: t("settings.goalRunGlobalHintBrief"),
13297
+ hintTitle: t("settings.goalRunGlobalHint"),
12479
13298
  inheritLabel: t("settings.inherit"),
12480
13299
  onLabel: t("settings.on"),
12481
13300
  offLabel: t("settings.off"),
@@ -12491,6 +13310,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12491
13310
  }),
12492
13311
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PluginSettingsCard, {
12493
13312
  t,
13313
+ density: "nested",
12494
13314
  titleKey: "settings.goalVerificationTitle",
12495
13315
  descriptionKey: "settings.goalVerificationCardHint",
12496
13316
  defaultOpen: false,
@@ -12502,7 +13322,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12502
13322
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(BooleanField, {
12503
13323
  id: "settings-task-board-goal-verification",
12504
13324
  label: t("settings.goalVerification"),
12505
- hint: t("settings.goalVerificationHint"),
13325
+ hint: t("settings.goalVerificationHintBrief"),
13326
+ hintTitle: t("settings.goalVerificationHint"),
12506
13327
  inheritLabel: t("settings.inherit"),
12507
13328
  onLabel: t("settings.on"),
12508
13329
  offLabel: t("settings.off"),
@@ -12518,7 +13339,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12518
13339
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChoiceField, {
12519
13340
  id: "settings-task-board-goal-verification-model",
12520
13341
  label: t("settings.goalVerificationModel"),
12521
- hint: t("settings.goalVerificationModelHint"),
13342
+ hint: t("settings.goalVerificationModelHintBrief"),
13343
+ hintTitle: t("settings.goalVerificationModelHint"),
12522
13344
  inheritLabel: t("settings.inherit"),
12523
13345
  choices: modelChoices,
12524
13346
  ...fieldProps,
@@ -12533,7 +13355,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12533
13355
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChoiceField, {
12534
13356
  id: "settings-task-board-goal-verification-effort",
12535
13357
  label: t("settings.goalVerificationEffort"),
12536
- hint: t("settings.goalVerificationEffortHint"),
13358
+ hint: t("settings.goalVerificationEffortHintBrief"),
13359
+ hintTitle: t("settings.goalVerificationEffortHint"),
12537
13360
  inheritLabel: t("settings.inherit"),
12538
13361
  choices: effortChoices,
12539
13362
  ...fieldProps,
@@ -12576,8 +13399,10 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12576
13399
  }),
12577
13400
  /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PluginSettingsCard, {
12578
13401
  t,
13402
+ density: "nested",
12579
13403
  titleKey: "settings.cardDefaultsTitle",
12580
- descriptionKey: "settings.cardDefaultsCardHint",
13404
+ descriptionKey: "settings.cardDefaultsCardBrief",
13405
+ descriptionTitleKey: "settings.cardDefaultsCardHint",
12581
13406
  defaultOpen: false,
12582
13407
  hideFooter: true,
12583
13408
  state: nestedShell,
@@ -12587,7 +13412,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12587
13412
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CardDefaultPresetField, {
12588
13413
  id: "settings-task-board-card-default-mode",
12589
13414
  label: t("new.agentPreset"),
12590
- hint: t("settings.cardDefaultModeHint"),
13415
+ hint: t("settings.cardDefaultModeHintBrief"),
13416
+ hintTitle: t("settings.cardDefaultModeHint"),
12591
13417
  presets: state.presets,
12592
13418
  ...fieldProps,
12593
13419
  ...state.cardDefaultMode,
@@ -12601,7 +13427,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12601
13427
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChoiceField, {
12602
13428
  id: "settings-task-board-card-default-permission",
12603
13429
  label: t("new.permission"),
12604
- hint: t("settings.cardDefaultPermissionHint"),
13430
+ hint: t("settings.cardDefaultPermissionHintBrief"),
13431
+ hintTitle: t("settings.cardDefaultPermissionHint"),
12605
13432
  inheritLabel: t("exec.permission.default"),
12606
13433
  choices: TASK_PERMISSIONS.map((id) => ({
12607
13434
  value: id,
@@ -12619,7 +13446,8 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12619
13446
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ChoiceField, {
12620
13447
  id: "settings-task-board-card-default-model",
12621
13448
  label: t("new.model"),
12622
- hint: t("settings.cardDefaultModelHint"),
13449
+ hint: t("settings.cardDefaultModelHintBrief"),
13450
+ hintTitle: t("settings.cardDefaultModelHint"),
12623
13451
  inheritLabel: t("exec.model.default"),
12624
13452
  choices: modelChoiceRows(defaultModels),
12625
13453
  ...fieldProps,
@@ -12656,14 +13484,42 @@ Please report this to https://github.com/markedjs/marked.`, e) {
12656
13484
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
12657
13485
  className: board_settings_module_css_default.power,
12658
13486
  children: [
12659
- /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12660
- className: board_settings_module_css_default.powerLine,
12661
- children: t("settings.powerStatus", {
12662
- platform: power?.platform ?? t("settings.powerUnknown"),
12663
- phase: power?.phase ?? t("settings.powerUnknown"),
12664
- running: String(power?.runningSessions ?? 0),
12665
- schedules: String(power?.armedSchedules ?? 0)
12666
- })
13487
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("dl", {
13488
+ className: board_settings_module_css_default.powerFacts,
13489
+ children: [
13490
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
13491
+ className: board_settings_module_css_default.powerTerm,
13492
+ children: t("settings.powerPlatform")
13493
+ }),
13494
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dd", {
13495
+ className: board_settings_module_css_default.powerValue,
13496
+ children: power?.platform ?? t("settings.powerUnknown")
13497
+ }),
13498
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
13499
+ className: board_settings_module_css_default.powerTerm,
13500
+ children: t("settings.powerPhase")
13501
+ }),
13502
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dd", {
13503
+ className: board_settings_module_css_default.powerValue,
13504
+ children: power?.phase ?? t("settings.powerUnknown")
13505
+ }),
13506
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
13507
+ className: board_settings_module_css_default.powerTerm,
13508
+ children: t("settings.powerRunning")
13509
+ }),
13510
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dd", {
13511
+ className: board_settings_module_css_default.powerValue,
13512
+ children: String(power?.runningSessions ?? 0)
13513
+ }),
13514
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dt", {
13515
+ className: board_settings_module_css_default.powerTerm,
13516
+ children: t("settings.powerSchedules")
13517
+ }),
13518
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)("dd", {
13519
+ className: board_settings_module_css_default.powerValue,
13520
+ children: String(power?.armedSchedules ?? 0)
13521
+ })
13522
+ ]
12667
13523
  }),
12668
13524
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
12669
13525
  className: board_settings_module_css_default.powerLine,
@@ -13032,17 +13888,39 @@ Please report this to https://github.com/markedjs/marked.`, e) {
13032
13888
  };
13033
13889
  //#endregion
13034
13890
  //#region src/client/telemetry.ts
13891
+ /** localStorage key carrying the family-wide telemetry opt-out ('1' = off). */
13892
+ const TELEMETRY_OPT_OUT_KEY = "dsh-web-ui-telemetry-opt-out";
13035
13893
  const VISITOR_KEY = "dsh-web-ui-telemetry-visitor";
13036
13894
  const DAY_KEY_PREFIX = "dsh-web-ui-telemetry-day:";
13037
13895
  const ENDPOINT = "https://dsh-market.com/api/telemetry/event";
13038
13896
  /** The building package's version, when the bundle carries it. */
13039
13897
  function bakedVersion() {
13040
13898
  try {
13041
- return "0.4.7";
13899
+ return "0.4.9";
13042
13900
  } catch {
13043
13901
  return;
13044
13902
  }
13045
13903
  }
13904
+ /** Whether the user switched the family-wide opt-out on (reads storage only). */
13905
+ function isTelemetryOptedOut() {
13906
+ try {
13907
+ return localStorage.getItem(TELEMETRY_OPT_OUT_KEY) === "1";
13908
+ } catch {
13909
+ return false;
13910
+ }
13911
+ }
13912
+ /** Whether the browser itself asks not to be tracked; a failed read means no signal. */
13913
+ function doNotTrackRequested() {
13914
+ try {
13915
+ return navigator.doNotTrack === "1" || navigator.doNotTrack === "yes";
13916
+ } catch {
13917
+ return false;
13918
+ }
13919
+ }
13920
+ /** Whether a heartbeat must be suppressed right now: opt-out stored, or the browser asks not to be tracked. */
13921
+ function isTelemetrySuppressed() {
13922
+ return isTelemetryOptedOut() || doNotTrackRequested();
13923
+ }
13046
13924
  /** Read or lazily create the anonymous visitor id; null when storage is unavailable. */
13047
13925
  function visitorId() {
13048
13926
  try {
@@ -13071,6 +13949,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
13071
13949
  */
13072
13950
  function reportDailyHeartbeat(items) {
13073
13951
  try {
13952
+ if (isTelemetrySuppressed()) return;
13074
13953
  if (items.length === 0) return;
13075
13954
  const today = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
13076
13955
  if (navigator.webdriver) return;
@@ -13590,13 +14469,16 @@ Please report this to https://github.com/markedjs/marked.`, e) {
13590
14469
  uiDisposer = void 0;
13591
14470
  };
13592
14471
  };
14472
+ const scheduleRowGuard = createScheduleRowGuard(ctx);
13593
14473
  const syncEnabled = () => {
13594
14474
  const snapshot = settingsForm.getSnapshot();
13595
14475
  if (snapshot.status === "ready" ? snapshot.value?.enabled ?? true : snapshot.status === "unavailable") {
13596
14476
  mountUi();
13597
14477
  clientService.setEnabled(true);
14478
+ scheduleRowGuard.hide();
13598
14479
  } else {
13599
14480
  clientService.setEnabled(false);
14481
+ scheduleRowGuard.show();
13600
14482
  uiDisposer?.();
13601
14483
  }
13602
14484
  };
@@ -13604,6 +14486,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
13604
14486
  ctx.effect(() => () => {
13605
14487
  unsubscribeSettings();
13606
14488
  uiDisposer?.();
14489
+ scheduleRowGuard.dispose();
13607
14490
  }, "task-board: DOM surfaces");
13608
14491
  syncEnabled();
13609
14492
  }