@skillre/dsh-plugin-work-dashboard 0.0.0-stage → 0.6.0

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 (62) hide show
  1. package/LICENSE +21 -0
  2. package/README.en.md +253 -0
  3. package/README.md +347 -2
  4. package/UNINSTALL.md +7 -0
  5. package/compatibility.json +155 -0
  6. package/cordis.patch.yml +24 -0
  7. package/docs/DESIGN-0.3.md +122 -0
  8. package/docs/DETAIL.md +1 -0
  9. package/docs/DETAIL.zh.md +1 -0
  10. package/docs/preview.svg +254 -0
  11. package/docs/preview.zh.svg +254 -0
  12. package/icon.svg +17 -0
  13. package/lib/client/api.d.ts +35 -0
  14. package/lib/client/api.js +44 -0
  15. package/lib/client/contracts.d.ts +94 -0
  16. package/lib/client/contracts.js +21 -0
  17. package/lib/client/css/base.d.ts +31 -0
  18. package/lib/client/css/base.js +422 -0
  19. package/lib/client/css/charts.d.ts +14 -0
  20. package/lib/client/css/charts.js +191 -0
  21. package/lib/client/css/detail.d.ts +21 -0
  22. package/lib/client/css/detail.js +399 -0
  23. package/lib/client/css/insights.d.ts +27 -0
  24. package/lib/client/css/insights.js +660 -0
  25. package/lib/client/css/overview.d.ts +22 -0
  26. package/lib/client/css/overview.js +338 -0
  27. package/lib/client/preferences.d.ts +56 -0
  28. package/lib/client/preferences.js +118 -0
  29. package/lib/client/styles.d.ts +17 -0
  30. package/lib/client/styles.js +22 -0
  31. package/lib/client/text.d.ts +32 -0
  32. package/lib/client/text.js +934 -0
  33. package/lib/client/view-contract.d.ts +110 -0
  34. package/lib/client/view-contract.js +28 -0
  35. package/lib/client.js +5389 -0
  36. package/lib/config.d.ts +61 -0
  37. package/lib/config.js +67 -0
  38. package/lib/gap.d.ts +60 -0
  39. package/lib/gap.js +227 -0
  40. package/lib/index.d.ts +40 -0
  41. package/lib/index.js +130 -0
  42. package/lib/repo.d.ts +124 -0
  43. package/lib/repo.js +407 -0
  44. package/lib/risks.d.ts +24 -0
  45. package/lib/risks.js +85 -0
  46. package/lib/skill.d.ts +94 -0
  47. package/lib/skill.js +220 -0
  48. package/lib/store.d.ts +63 -0
  49. package/lib/store.js +494 -0
  50. package/lib/timeline.d.ts +23 -0
  51. package/lib/timeline.js +93 -0
  52. package/lib/transport.d.ts +61 -0
  53. package/lib/transport.js +121 -0
  54. package/lib/types.d.ts +612 -0
  55. package/lib/types.js +62 -0
  56. package/locale/en.json +7 -0
  57. package/locale/zh.json +7 -0
  58. package/package.json +117 -4
  59. package/skills/poc-export/SKILL.md +81 -0
  60. package/skills/poc-export/scripts/export-form.mjs +654 -0
  61. package/skills/poc-ledger/SKILL.md +171 -0
  62. package/skills/poc-submit/SKILL.md +186 -0
@@ -0,0 +1,254 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1280" height="600" viewBox="0 0 1280 600">
2
+ <defs>
3
+ <linearGradient id="ground" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#F7F9FC"/><stop offset="1" stop-color="#EDF1F7"/></linearGradient>
4
+ </defs>
5
+ <rect x="0" y="0" width="1280" height="600" rx="0" fill="url(#ground)" stroke="none" stroke-width="0"/>
6
+ <rect x="24" y="20" width="1232" height="560" rx="16" fill="#F5F7FB" stroke="#DDE4EE" stroke-width="1.5"/>
7
+ <rect x="24" y="20" width="206" height="560" rx="0" fill="#FFFFFF" stroke="none" stroke-width="0"/>
8
+ <line x1="230" y1="20" x2="230" y2="580" stroke="#E6EBF2" stroke-width="1"/>
9
+ <circle cx="52" cy="50" r="9" fill="#2864E8" stroke="none" stroke-width="0"/>
10
+ <text x="70" y="55" font-family="Noto Sans SC" font-size="13" font-weight="700" fill="#192638" text-anchor="start">deepseek</text>
11
+ <text x="141" y="55" font-family="Noto Sans SC" font-size="8.5" font-weight="700" fill="#8B99AC" text-anchor="start">HARNESS</text>
12
+ <rect x="40" y="74" width="174" height="28" rx="8" fill="#F7F9FC" stroke="#E6EBF2" stroke-width="1"/>
13
+ <text x="56" y="93" font-family="Noto Sans SC" font-size="10.5" font-weight="normal" fill="#5A6A80" text-anchor="start">+ 新会话</text>
14
+ <circle cx="50" cy="121" r="3.2" fill="#8B99AC" stroke="none" stroke-width="0"/>
15
+ <text x="63" y="126" font-family="Noto Sans SC" font-size="11" font-weight="normal" fill="#5A6A80" text-anchor="start">插件</text>
16
+ <circle cx="50" cy="147" r="3.2" fill="#8B99AC" stroke="none" stroke-width="0"/>
17
+ <text x="63" y="152" font-family="Noto Sans SC" font-size="11" font-weight="normal" fill="#5A6A80" text-anchor="start">自动化任务</text>
18
+ <rect x="34" y="163" width="186" height="26" rx="7" fill="#EAF0FE" stroke="none" stroke-width="0"/>
19
+ <circle cx="50" cy="173" r="3.2" fill="#2864E8" stroke="none" stroke-width="0"/>
20
+ <text x="63" y="178" font-family="Noto Sans SC" font-size="11" font-weight="700" fill="#1B4FC2" text-anchor="start">工作看板</text>
21
+ <circle cx="50" cy="199" r="3.2" fill="#8B99AC" stroke="none" stroke-width="0"/>
22
+ <text x="63" y="204" font-family="Noto Sans SC" font-size="11" font-weight="normal" fill="#5A6A80" text-anchor="start">更多</text>
23
+ <text x="252" y="52" font-family="Noto Sans SC" font-size="9.5" font-weight="normal" fill="#8B99AC" text-anchor="start">工作看板 · 只读</text>
24
+ <text x="252" y="78" font-family="Noto Sans SC" font-size="21" font-weight="700" fill="#192638" text-anchor="start">POC 运营</text>
25
+ <rect x="1128" y="56" width="64" height="26" rx="8" fill="#2864E8" stroke="none" stroke-width="0"/>
26
+ <text x="1160" y="73" font-family="Noto Sans SC" font-size="10.5" font-weight="600" fill="#FFFFFF" text-anchor="middle">刷新</text>
27
+ <rect x="1044" y="56" width="76" height="26" rx="8" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
28
+ <text x="1082" y="73" font-family="Noto Sans SC" font-size="10" font-weight="normal" fill="#5A6A80" text-anchor="middle">风险看板</text>
29
+ <rect x="252" y="92" width="224" height="28" rx="9" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
30
+ <circle cx="267" cy="106" r="4.6" fill="none" stroke="#8B99AC" stroke-width="1.3"/>
31
+ <text x="278" y="110" font-family="Noto Sans SC" font-size="10" font-weight="normal" fill="#8B99AC" text-anchor="start">项目名 / 编号 / 负责人 / 公司</text>
32
+ <rect x="548" y="94" width="130" height="24" rx="8" fill="#F7F9FC" stroke="#E6EBF2" stroke-width="1"/>
33
+ <rect x="550" y="97" width="41" height="18" rx="6" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
34
+ <text x="570.5" y="110" font-family="Noto Sans SC" font-size="9.5" font-weight="700" fill="#192638" text-anchor="middle">卡片</text>
35
+ <text x="613.5" y="110" font-family="Noto Sans SC" font-size="9.5" font-weight="normal" fill="#5A6A80" text-anchor="middle">看板</text>
36
+ <text x="656.5" y="110" font-family="Noto Sans SC" font-size="9.5" font-weight="normal" fill="#5A6A80" text-anchor="middle">表格</text>
37
+ <rect x="690" y="94" width="74" height="24" rx="8" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
38
+ <text x="727" y="110" font-family="Noto Sans SC" font-size="10" font-weight="normal" fill="#5A6A80" text-anchor="middle">按金额</text>
39
+ <text x="1168" y="110" font-family="Noto Sans SC" font-size="9.5" font-weight="normal" fill="#8B99AC" text-anchor="end">筛出 5 / 5 个项目</text>
40
+ <rect x="252" y="128" width="73.6" height="20" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
41
+ <text x="288.8" y="142" font-family="Noto Sans SC" font-size="9" font-weight="normal" fill="#5A6A80" text-anchor="middle">体系 人保体系 3</text>
42
+ <rect x="331.6" y="128" width="67.2" height="20" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
43
+ <text x="365.20000000000005" y="142" font-family="Noto Sans SC" font-size="9" font-weight="normal" fill="#5A6A80" text-anchor="middle">阶段 已关闭 1</text>
44
+ <rect x="404.8" y="128" width="60.800000000000004" height="20" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
45
+ <text x="435.2" y="142" font-family="Noto Sans SC" font-size="9" font-weight="normal" fill="#5A6A80" text-anchor="middle">G0 立项 1</text>
46
+ <rect x="471.6" y="128" width="73.6" height="20" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
47
+ <text x="508.40000000000003" y="142" font-family="Noto Sans SC" font-size="9" font-weight="normal" fill="#5A6A80" text-anchor="middle">G2 方案验证 1</text>
48
+ <rect x="551.2" y="128" width="67.2" height="20" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
49
+ <text x="584.8000000000001" y="142" font-family="Noto Sans SC" font-size="9" font-weight="normal" fill="#5A6A80" text-anchor="middle">状态 进行中 4</text>
50
+ <rect x="624.4000000000001" y="128" width="73.6" height="20" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
51
+ <text x="661.2" y="142" font-family="Noto Sans SC" font-size="9" font-weight="normal" fill="#5A6A80" text-anchor="middle">类型 AI安全 1</text>
52
+ <rect x="252" y="160" width="792" height="250" rx="12" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
53
+ <line x1="252" y1="192" x2="1044" y2="192" stroke="#E6EBF2" stroke-width="1"/>
54
+ <text x="266" y="181" font-family="Noto Sans SC" font-size="12.5" font-weight="700" fill="#192638" text-anchor="start">组合视图</text>
55
+ <text x="976" y="181" font-family="Noto Sans SC" font-size="9.5" font-weight="normal" fill="#8B99AC" text-anchor="end">5 个项目 · 3,100 万元</text>
56
+ <rect x="988" y="169" width="42" height="17" rx="6" fill="#F7F9FC" stroke="#E6EBF2" stroke-width="1"/>
57
+ <text x="1009" y="181" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">收起</text>
58
+ <line x1="648" y1="192" x2="648" y2="324" stroke="#E6EBF2" stroke-width="1"/>
59
+ <text x="266" y="209" font-family="Noto Sans SC" font-size="10.5" font-weight="600" fill="#5A6A80" text-anchor="start">阶段分布</text>
60
+ <text x="636" y="209" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#8B99AC" text-anchor="end">按当前阶段</text>
61
+ <text x="295" y="226" font-family="Noto Sans SC" font-size="9" font-weight="600" fill="#5A6A80" text-anchor="middle">1</text>
62
+ <rect x="282" y="232" width="26" height="46" rx="3" fill="#C0392B" stroke="none" stroke-width="0"/>
63
+ <text x="295" y="292" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">G0 立项</text>
64
+ <text x="351" y="226" font-family="Noto Sans SC" font-size="9" font-weight="600" fill="#5A6A80" text-anchor="middle">1</text>
65
+ <rect x="338" y="232" width="26" height="46" rx="3" fill="#2864E8" stroke="none" stroke-width="0"/>
66
+ <text x="351" y="292" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">G1 方案设计</text>
67
+ <text x="407" y="226" font-family="Noto Sans SC" font-size="9" font-weight="600" fill="#5A6A80" text-anchor="middle">1</text>
68
+ <rect x="394" y="232" width="26" height="46" rx="3" fill="#C0392B" stroke="none" stroke-width="0"/>
69
+ <text x="407" y="292" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">G2 方案验证</text>
70
+ <text x="463" y="226" font-family="Noto Sans SC" font-size="9" font-weight="600" fill="#5A6A80" text-anchor="middle">0</text>
71
+ <rect x="450" y="275" width="26" height="3" rx="3" fill="#E6EBF2" stroke="none" stroke-width="0"/>
72
+ <text x="463" y="292" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">G3 结果验证</text>
73
+ <text x="519" y="226" font-family="Noto Sans SC" font-size="9" font-weight="600" fill="#5A6A80" text-anchor="middle">1</text>
74
+ <rect x="506" y="232" width="26" height="46" rx="3" fill="#C0392B" stroke="none" stroke-width="0"/>
75
+ <text x="519" y="292" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">G4 结果转化</text>
76
+ <text x="575" y="226" font-family="Noto Sans SC" font-size="9" font-weight="600" fill="#5A6A80" text-anchor="middle">1</text>
77
+ <rect x="562" y="232" width="26" height="46" rx="3" fill="#C0392B" stroke="none" stroke-width="0"/>
78
+ <text x="575" y="292" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">已关闭</text>
79
+ <text x="266" y="310" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">■ G0 立项 300 万 ■ G1 方案设计 500 万 ■ G2 方案验证 1,500 万</text>
80
+ <text x="266" y="322" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">■ G4 结果转化 800 万 ■ 已关闭 0 万</text>
81
+ <text x="662" y="209" font-family="Noto Sans SC" font-size="10.5" font-weight="600" fill="#5A6A80" text-anchor="start">四维覆盖</text>
82
+ <text x="1032" y="209" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#8B99AC" text-anchor="end">有值项目占比</text>
83
+ <circle cx="706" cy="246" r="20" fill="none" stroke="#E6EBF2" stroke-width="5"/>
84
+ <circle cx="706" cy="246" r="20" fill="none" stroke="#2864E8" stroke-width="5" stroke-dasharray="75.4 125.7"/>
85
+ <text x="706" y="250" font-family="Noto Sans SC" font-size="10.5" font-weight="700" fill="#192638" text-anchor="middle">3/5</text>
86
+ <text x="706" y="284" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#5A6A80" text-anchor="middle">目标达成</text>
87
+ <text x="706" y="297" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">2 个缺</text>
88
+ <circle cx="802" cy="246" r="20" fill="none" stroke="#E6EBF2" stroke-width="5"/>
89
+ <circle cx="802" cy="246" r="20" fill="none" stroke="#218568" stroke-width="5" stroke-dasharray="50.3 125.7"/>
90
+ <text x="802" y="250" font-family="Noto Sans SC" font-size="10.5" font-weight="700" fill="#192638" text-anchor="middle">2/5</text>
91
+ <text x="802" y="284" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#5A6A80" text-anchor="middle">证据</text>
92
+ <text x="802" y="297" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">2 个缺</text>
93
+ <circle cx="898" cy="246" r="20" fill="none" stroke="#E6EBF2" stroke-width="5"/>
94
+ <circle cx="898" cy="246" r="20" fill="none" stroke="#B77919" stroke-width="5" stroke-dasharray="75.4 125.7"/>
95
+ <text x="898" y="250" font-family="Noto Sans SC" font-size="10.5" font-weight="700" fill="#192638" text-anchor="middle">3/5</text>
96
+ <text x="898" y="284" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#5A6A80" text-anchor="middle">客户认可</text>
97
+ <text x="898" y="297" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">2 个缺</text>
98
+ <circle cx="994" cy="246" r="20" fill="none" stroke="#E6EBF2" stroke-width="5"/>
99
+ <circle cx="994" cy="246" r="20" fill="none" stroke="#C0392B" stroke-width="5" stroke-dasharray="25.1 125.7"/>
100
+ <text x="994" y="250" font-family="Noto Sans SC" font-size="10.5" font-weight="700" fill="#192638" text-anchor="middle">1/5</text>
101
+ <text x="994" y="284" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#5A6A80" text-anchor="middle">下一步</text>
102
+ <text x="994" y="297" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">2 个缺</text>
103
+ <line x1="252" y1="324" x2="1044" y2="324" stroke="#E6EBF2" stroke-width="1"/>
104
+ <line x1="448" y1="324" x2="448" y2="410" stroke="#E6EBF2" stroke-width="1"/>
105
+ <line x1="648" y1="324" x2="648" y2="410" stroke="#E6EBF2" stroke-width="1"/>
106
+ <line x1="846" y1="324" x2="846" y2="410" stroke="#E6EBF2" stroke-width="1"/>
107
+ <text x="266" y="340" font-family="Noto Sans SC" font-size="10" font-weight="600" fill="#5A6A80" text-anchor="start">体系 / 公司</text>
108
+ <text x="438" y="340" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#8B99AC" text-anchor="end">按金额</text>
109
+ <text x="266" y="356" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">人保财险</text>
110
+ <rect x="348" y="350.5" width="56" height="5" rx="2" fill="#C0392B" stroke="none" stroke-width="0"/>
111
+ <text x="438" y="356" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">1,500 万</text>
112
+ <text x="266" y="371" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">人保寿险</text>
113
+ <rect x="348" y="365.5" width="34" height="5" rx="2" fill="#C0392B" stroke="none" stroke-width="0"/>
114
+ <text x="438" y="371" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">800 万</text>
115
+ <text x="266" y="386" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">国寿股份</text>
116
+ <rect x="348" y="380.5" width="22" height="5" rx="2" fill="#2864E8" stroke="none" stroke-width="0"/>
117
+ <text x="438" y="386" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">500 万</text>
118
+ <text x="462" y="340" font-family="Noto Sans SC" font-size="10" font-weight="600" fill="#5A6A80" text-anchor="start">缺口规则命中</text>
119
+ <text x="634" y="340" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#8B99AC" text-anchor="end">共 12 条</text>
120
+ <text x="462" y="356" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">R10 G3-2 未确认</text>
121
+ <rect x="544" y="350.5" width="38" height="5" rx="2" fill="#C0392B" stroke="none" stroke-width="0"/>
122
+ <text x="634" y="356" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">2 次</text>
123
+ <text x="462" y="371" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">R12 阶段停滞</text>
124
+ <rect x="544" y="365.5" width="30" height="5" rx="2" fill="#B77919" stroke="none" stroke-width="0"/>
125
+ <text x="634" y="371" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">2 次</text>
126
+ <text x="462" y="386" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">R1 G0 必填未齐</text>
127
+ <rect x="544" y="380.5" width="20" height="5" rx="2" fill="#C0392B" stroke="none" stroke-width="0"/>
128
+ <text x="634" y="386" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">1 次</text>
129
+ <text x="662" y="340" font-family="Noto Sans SC" font-size="10" font-weight="600" fill="#5A6A80" text-anchor="start">项目类型</text>
130
+ <text x="834" y="340" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#8B99AC" text-anchor="end">按数量</text>
131
+ <text x="662" y="356" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">大体量项目</text>
132
+ <text x="834" y="356" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">1</text>
133
+ <text x="662" y="371" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">AI安全</text>
134
+ <text x="834" y="371" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">1</text>
135
+ <text x="662" y="386" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">保护AI</text>
136
+ <text x="834" y="386" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">1</text>
137
+ <text x="860" y="340" font-family="Noto Sans SC" font-size="10" font-weight="600" fill="#5A6A80" text-anchor="start">金额集中度</text>
138
+ <text x="1032" y="340" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#8B99AC" text-anchor="end">前 5 名</text>
139
+ <text x="860" y="356" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">某某银行零信任…</text>
140
+ <rect x="942" y="350.5" width="48" height="5" rx="2" fill="#B77919" stroke="none" stroke-width="0"/>
141
+ <text x="1032" y="356" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">48%</text>
142
+ <text x="860" y="371" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">某某制造产线安…</text>
143
+ <rect x="942" y="365.5" width="30" height="5" rx="2" fill="#B77919" stroke="none" stroke-width="0"/>
144
+ <text x="1032" y="371" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">26%</text>
145
+ <text x="860" y="386" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">某某保险集团数…</text>
146
+ <rect x="942" y="380.5" width="18" height="5" rx="2" fill="#B77919" stroke="none" stroke-width="0"/>
147
+ <text x="1032" y="386" font-family="Noto Sans SC" font-size="8" font-weight="600" fill="#5A6A80" text-anchor="end">16%</text>
148
+ <text x="252" y="434" font-family="Noto Sans SC" font-size="12" font-weight="700" fill="#192638" text-anchor="start">项目总览</text>
149
+ <rect x="252" y="444" width="792" height="128" rx="12" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
150
+ <rect x="266" y="456" width="248" height="106" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
151
+ <text x="278" y="476" font-family="Noto Sans SC" font-size="10" font-weight="700" fill="#192638" text-anchor="start">某某银行零信任试点</text>
152
+ <text x="278" y="489" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="start">POC-2026-001 · 张三</text>
153
+ <rect x="448" y="465" width="54" height="16" rx="8" fill="#FAE9E7" stroke="none" stroke-width="0"/>
154
+ <text x="475" y="476" font-family="Noto Sans SC" font-size="7.5" font-weight="600" fill="#C0392B" text-anchor="middle">1 处高危</text>
155
+ <rect x="278" y="496" width="62" height="15" rx="8" fill="#EAF0FE" stroke="none" stroke-width="0"/>
156
+ <text x="309" y="507" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#2864E8" text-anchor="middle">G2-方案验证</text>
157
+ <rect x="350" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
158
+ <rect x="369" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
159
+ <rect x="388" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
160
+ <rect x="407" y="502" width="16" height="3.5" rx="2" fill="#E6EBF2" stroke="none" stroke-width="0"/>
161
+ <rect x="426" y="502" width="16" height="3.5" rx="2" fill="#E6EBF2" stroke="none" stroke-width="0"/>
162
+ <rect x="278" y="518" width="224" height="27" rx="6" fill="#F7F9FC" stroke="#E6EBF2" stroke-width="1"/>
163
+ <text x="285" y="529" font-family="Noto Sans SC" font-size="6.5" font-weight="normal" fill="#8B99AC" text-anchor="start">最新进展</text>
164
+ <text x="285" y="540" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">内部Review · 完成 150 人灰度</text>
165
+ <rect x="278" y="550" width="44" height="12" rx="3" fill="#E7F4F0" stroke="none" stroke-width="0"/>
166
+ <circle cx="286" cy="556" r="2.6" fill="#218568" stroke="none" stroke-width="0"/>
167
+ <text x="293" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#218568" text-anchor="start">✓</text>
168
+ <rect x="334" y="550" width="44" height="12" rx="3" fill="#E7F4F0" stroke="none" stroke-width="0"/>
169
+ <circle cx="342" cy="556" r="2.6" fill="#218568" stroke="none" stroke-width="0"/>
170
+ <text x="349" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#218568" text-anchor="start">✓</text>
171
+ <rect x="390" y="550" width="44" height="12" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
172
+ <circle cx="398" cy="556" r="2.6" fill="#C0392B" stroke="none" stroke-width="0"/>
173
+ <text x="405" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="start">✗</text>
174
+ <rect x="446" y="550" width="44" height="12" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
175
+ <circle cx="454" cy="556" r="2.6" fill="#C0392B" stroke="none" stroke-width="0"/>
176
+ <text x="461" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="start">✗</text>
177
+ <rect x="526" y="456" width="248" height="106" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
178
+ <text x="538" y="476" font-family="Noto Sans SC" font-size="10" font-weight="700" fill="#192638" text-anchor="start">某某制造产线安全接入</text>
179
+ <text x="538" y="489" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="start">POC-2026-003 · 孙八</text>
180
+ <rect x="708" y="465" width="54" height="16" rx="8" fill="#FAE9E7" stroke="none" stroke-width="0"/>
181
+ <text x="735" y="476" font-family="Noto Sans SC" font-size="7.5" font-weight="600" fill="#C0392B" text-anchor="middle">1 处高危</text>
182
+ <rect x="538" y="496" width="62" height="15" rx="8" fill="#EAF0FE" stroke="none" stroke-width="0"/>
183
+ <text x="569" y="507" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#2864E8" text-anchor="middle">G4-结果转化</text>
184
+ <rect x="610" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
185
+ <rect x="629" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
186
+ <rect x="648" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
187
+ <rect x="667" y="502" width="16" height="3.5" rx="2" fill="#E6EBF2" stroke="none" stroke-width="0"/>
188
+ <rect x="686" y="502" width="16" height="3.5" rx="2" fill="#E6EBF2" stroke="none" stroke-width="0"/>
189
+ <rect x="538" y="518" width="224" height="27" rx="6" fill="#F7F9FC" stroke="#E6EBF2" stroke-width="1"/>
190
+ <text x="545" y="529" font-family="Noto Sans SC" font-size="6.5" font-weight="normal" fill="#8B99AC" text-anchor="start">最新进展</text>
191
+ <text x="545" y="540" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">内部Review · 完成 150 人灰度</text>
192
+ <rect x="538" y="550" width="44" height="12" rx="3" fill="#E7F4F0" stroke="none" stroke-width="0"/>
193
+ <circle cx="546" cy="556" r="2.6" fill="#218568" stroke="none" stroke-width="0"/>
194
+ <text x="553" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#218568" text-anchor="start">✓</text>
195
+ <rect x="594" y="550" width="44" height="12" rx="3" fill="#E7F4F0" stroke="none" stroke-width="0"/>
196
+ <circle cx="602" cy="556" r="2.6" fill="#218568" stroke="none" stroke-width="0"/>
197
+ <text x="609" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#218568" text-anchor="start">✓</text>
198
+ <rect x="650" y="550" width="44" height="12" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
199
+ <circle cx="658" cy="556" r="2.6" fill="#C0392B" stroke="none" stroke-width="0"/>
200
+ <text x="665" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="start">✗</text>
201
+ <rect x="706" y="550" width="44" height="12" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
202
+ <circle cx="714" cy="556" r="2.6" fill="#C0392B" stroke="none" stroke-width="0"/>
203
+ <text x="721" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="start">✗</text>
204
+ <rect x="786" y="456" width="248" height="106" rx="10" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
205
+ <text x="798" y="476" font-family="Noto Sans SC" font-size="10" font-weight="700" fill="#192638" text-anchor="start">某某保险集团数据安全治理</text>
206
+ <text x="798" y="489" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#8B99AC" text-anchor="start">POC-2026-004 · 郑十</text>
207
+ <rect x="968" y="465" width="54" height="16" rx="8" fill="#FAE9E7" stroke="none" stroke-width="0"/>
208
+ <text x="995" y="476" font-family="Noto Sans SC" font-size="7.5" font-weight="600" fill="#C0392B" text-anchor="middle">2 处高危</text>
209
+ <rect x="798" y="496" width="62" height="15" rx="8" fill="#EAF0FE" stroke="none" stroke-width="0"/>
210
+ <text x="829" y="507" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#2864E8" text-anchor="middle">G1-方案设计</text>
211
+ <rect x="870" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
212
+ <rect x="889" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
213
+ <rect x="908" y="502" width="16" height="3.5" rx="2" fill="#218568" stroke="none" stroke-width="0"/>
214
+ <rect x="927" y="502" width="16" height="3.5" rx="2" fill="#E6EBF2" stroke="none" stroke-width="0"/>
215
+ <rect x="946" y="502" width="16" height="3.5" rx="2" fill="#E6EBF2" stroke="none" stroke-width="0"/>
216
+ <rect x="798" y="518" width="224" height="27" rx="6" fill="#F7F9FC" stroke="#E6EBF2" stroke-width="1"/>
217
+ <text x="805" y="529" font-family="Noto Sans SC" font-size="6.5" font-weight="normal" fill="#8B99AC" text-anchor="start">最新进展</text>
218
+ <text x="805" y="540" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#5A6A80" text-anchor="start">内部Review · 完成 150 人灰度</text>
219
+ <rect x="798" y="550" width="44" height="12" rx="3" fill="#E7F4F0" stroke="none" stroke-width="0"/>
220
+ <circle cx="806" cy="556" r="2.6" fill="#218568" stroke="none" stroke-width="0"/>
221
+ <text x="813" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#218568" text-anchor="start">✓</text>
222
+ <rect x="854" y="550" width="44" height="12" rx="3" fill="#E7F4F0" stroke="none" stroke-width="0"/>
223
+ <circle cx="862" cy="556" r="2.6" fill="#218568" stroke="none" stroke-width="0"/>
224
+ <text x="869" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#218568" text-anchor="start">✓</text>
225
+ <rect x="910" y="550" width="44" height="12" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
226
+ <circle cx="918" cy="556" r="2.6" fill="#C0392B" stroke="none" stroke-width="0"/>
227
+ <text x="925" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="start">✗</text>
228
+ <rect x="966" y="550" width="44" height="12" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
229
+ <circle cx="974" cy="556" r="2.6" fill="#C0392B" stroke="none" stroke-width="0"/>
230
+ <text x="981" y="559" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="start">✗</text>
231
+ <rect x="1048" y="160" width="200" height="390" rx="12" fill="#FFFFFF" stroke="#E6EBF2" stroke-width="1"/>
232
+ <line x1="1048" y1="192" x2="1248" y2="192" stroke="#E6EBF2" stroke-width="1"/>
233
+ <text x="1062" y="181" font-family="Noto Sans SC" font-size="12" font-weight="700" fill="#192638" text-anchor="start">待处理</text>
234
+ <rect x="1190" y="169" width="44" height="17" rx="8" fill="#F7F9FC" stroke="#E6EBF2" stroke-width="1"/>
235
+ <text x="1212" y="181" font-family="Noto Sans SC" font-size="8.5" font-weight="normal" fill="#8B99AC" text-anchor="middle">12 项</text>
236
+ <rect x="1048" y="192" width="3" height="86" rx="0" fill="#C0392B" stroke="none" stroke-width="0"/>
237
+ <rect x="1062" y="204" width="24" height="13" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
238
+ <text x="1074" y="214" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="middle">R11</text>
239
+ <text x="1092" y="214" font-family="Noto Sans SC" font-size="9" font-weight="700" fill="#192638" text-anchor="start">R11 已达成但无下一步里程碑</text>
240
+ <text x="1062" y="230" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#5A6A80" text-anchor="start">结果已达成,却没有下一个里程碑:</text>
241
+ <text x="1062" y="242" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#5A6A80" text-anchor="start">价值做出来了,没有转化路径。</text>
242
+ <text x="1062" y="262" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#2864E8" text-anchor="start">某某制造产线安全接入 · POC-2026-003</text>
243
+ <line x1="1048" y1="278" x2="1248" y2="278" stroke="#E6EBF2" stroke-width="1"/>
244
+ <rect x="1048" y="278" width="3" height="76" rx="0" fill="#C0392B" stroke="none" stroke-width="0"/>
245
+ <rect x="1062" y="290" width="20" height="13" rx="3" fill="#FAE9E7" stroke="none" stroke-width="0"/>
246
+ <text x="1072" y="300" font-family="Noto Sans SC" font-size="7" font-weight="700" fill="#C0392B" text-anchor="middle">R1</text>
247
+ <text x="1088" y="300" font-family="Noto Sans SC" font-size="9" font-weight="700" fill="#192638" text-anchor="start">R1 G0 必填未齐</text>
248
+ <text x="1062" y="316" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#5A6A80" text-anchor="start">G0 五必填缺 2 项:</text>
249
+ <text x="1062" y="328" font-family="Noto Sans SC" font-size="7.5" font-weight="normal" fill="#5A6A80" text-anchor="start">decision_chain, post_poc_decision。</text>
250
+ <line x1="1048" y1="354" x2="1248" y2="354" stroke="#E6EBF2" stroke-width="1"/>
251
+ <text x="1062" y="372" font-family="Noto Sans SC" font-size="8.5" font-weight="600" fill="#5A6A80" text-anchor="start">R12 已在 G2 停留 68 天</text>
252
+ <text x="1062" y="394" font-family="Noto Sans SC" font-size="8.5" font-weight="600" fill="#5A6A80" text-anchor="start">R4 成功指标 1 个(要求 2–3)</text>
253
+ <text x="1062" y="422" font-family="Noto Sans SC" font-size="8" font-weight="normal" fill="#8B99AC" text-anchor="start">还有 8 条…</text>
254
+ </svg>
package/icon.svg ADDED
@@ -0,0 +1,17 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" width="96" height="96" role="img" aria-label="Work Dashboard">
2
+ <defs>
3
+ <linearGradient id="wd-bg" x1="0" y1="0" x2="1" y2="1">
4
+ <stop offset="0" stop-color="#3B7BF0" />
5
+ <stop offset="1" stop-color="#1B4FC2" />
6
+ </linearGradient>
7
+ </defs>
8
+ <rect x="6" y="6" width="84" height="84" rx="20" fill="url(#wd-bg)" />
9
+ <!-- Dashboard board: two metric tiles above, one wide row below -->
10
+ <rect x="18" y="22" width="27" height="22" rx="6" fill="#ffffff" opacity="0.95" />
11
+ <rect x="51" y="22" width="27" height="22" rx="6" fill="#ffffff" opacity="0.62" />
12
+ <rect x="18" y="50" width="60" height="12" rx="5" fill="#ffffff" opacity="0.82" />
13
+ <rect x="18" y="66" width="38" height="9" rx="4" fill="#ffffff" opacity="0.42" />
14
+ <!-- Accent mark: the current module -->
15
+ <circle cx="27.5" cy="33" r="3.4" fill="#218568" />
16
+ <circle cx="60.5" cy="33" r="3.4" fill="#C9D8F5" />
17
+ </svg>
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Typed Client-side API over the Host's exact Connection route.
3
+ *
4
+ * The browser RPC caller validates the envelope and the correlation id, so this
5
+ * layer only has to unwrap the endpoint's own result: `ok: true` returns the
6
+ * value, `ok: false` throws an {@link ActionError} carrying the Host's stable
7
+ * code and message. No Host object, function or live Session value crosses this
8
+ * boundary — only lossless JSON.
9
+ */
10
+ import type { ClientConnectionLike } from './contracts.js';
11
+ import type { GlobalTimeline, ProjectDetail, RefreshOutcome, RiskBoard, Snapshot } from '../types.js';
12
+ /** Failure raised by the Host; `code` is stable enough to switch on. */
13
+ export declare class ActionError extends Error {
14
+ readonly code: string;
15
+ readonly details: Record<string, unknown>;
16
+ constructor(code: string, message: string, details?: Record<string, unknown>);
17
+ }
18
+ /** The one API face the view uses. */
19
+ export interface ClientApi {
20
+ /** Current snapshot; `cacheReady: false` means "no data pulled yet". */
21
+ list(signal?: AbortSignal): Promise<Snapshot>;
22
+ /** Clone or fast-forward, then return the new snapshot and what happened. */
23
+ refresh(signal?: AbortSignal): Promise<{
24
+ snapshot: Snapshot;
25
+ outcome: RefreshOutcome;
26
+ }>;
27
+ /** One project's detail page. */
28
+ detail(pocId: string, signal?: AbortSignal): Promise<ProjectDetail>;
29
+ /** Risks across all projects, sorted by severity. */
30
+ risks(signal?: AbortSignal): Promise<RiskBoard>;
31
+ /** Rounds across all projects, newest first. */
32
+ timeline(signal?: AbortSignal): Promise<GlobalTimeline>;
33
+ }
34
+ /** Create the API bound to this plugin's Fiber lifetime. */
35
+ export declare function createApi(connection: ClientConnectionLike, lifetime: AbortSignal): ClientApi;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Typed Client-side API over the Host's exact Connection route.
3
+ *
4
+ * The browser RPC caller validates the envelope and the correlation id, so this
5
+ * layer only has to unwrap the endpoint's own result: `ok: true` returns the
6
+ * value, `ok: false` throws an {@link ActionError} carrying the Host's stable
7
+ * code and message. No Host object, function or live Session value crosses this
8
+ * boundary — only lossless JSON.
9
+ */
10
+ import { ENDPOINT } from '../types.js';
11
+ /** Failure raised by the Host; `code` is stable enough to switch on. */
12
+ export class ActionError extends Error {
13
+ code;
14
+ details;
15
+ constructor(code, message, details = {}) {
16
+ super(message);
17
+ this.code = code;
18
+ this.details = details;
19
+ this.name = 'ActionError';
20
+ }
21
+ }
22
+ /** Unwrap one endpoint result, converting a failure into a thrown error. */
23
+ function unwrap(result) {
24
+ if (result === null || typeof result !== 'object' || !('ok' in result)) {
25
+ throw new ActionError('invalid-response', 'The Host returned an invalid work dashboard response.');
26
+ }
27
+ if (!result.ok)
28
+ throw new ActionError(result.error.code, result.error.message, result.error.details);
29
+ return result.value;
30
+ }
31
+ /** Create the API bound to this plugin's Fiber lifetime. */
32
+ export function createApi(connection, lifetime) {
33
+ const call = async (request, signal) => {
34
+ const signalToUse = signal === undefined ? lifetime : AbortSignal.any([lifetime, signal]);
35
+ return unwrap(await connection.rpc.call('/api', ENDPOINT, request, signalToUse));
36
+ };
37
+ return {
38
+ list: (signal) => call({ action: 'list' }, signal),
39
+ refresh: (signal) => call({ action: 'refresh' }, signal),
40
+ detail: (pocId, signal) => call({ action: 'detail', pocId }, signal),
41
+ risks: (signal) => call({ action: 'risks' }, signal),
42
+ timeline: (signal) => call({ action: 'timeline' }, signal),
43
+ };
44
+ }
@@ -0,0 +1,94 @@
1
+ /**
2
+ * Structural mirrors of the DSH Client contracts this bundle consumes.
3
+ *
4
+ * Queried from the live 0.2.1-rc.5 runtime on 2026-11-05:
5
+ * - `ctx.slots` (provided by `@deepseek-ai/dsh-client-ui-renderer`'s SlotRegistry):
6
+ * `inject(key, callback)` waits for a slot declaration, `register(options,
7
+ * component)` registers one entry through the caller's Fiber.
8
+ * - `sidebar.panellist` is a `list` slot whose entries take `{ size, active }`
9
+ * and whose `id` addresses the matching `main` panel; `main` is a `keyed`
10
+ * slot selected by `ctx.layout.selectPanel(key)`.
11
+ * - `ctx.locale` (`@deepseek-ai/dsh-client-locale`): `register(ns, { zh, en })`,
12
+ * `bind(ns)`, `getSnapshot()` / `subscribe()` for reactive translation.
13
+ * - `ctx.connection` (`@deepseek-ai/dsh-client-connection`):
14
+ * `rpc.call(channel, endpoint, payload, signal)` resolving
15
+ * `{ ok: true, value } | { ok: false, error }`.
16
+ *
17
+ * Mirrored rather than imported so this package does not pull the whole client
18
+ * package graph into its own build. Re-query the live contracts before widening
19
+ * this surface, and treat a mismatch as a compatibility finding.
20
+ */
21
+ import type { ComponentType, ReactNode } from 'react';
22
+ /** One teardown callback returned by every registration. */
23
+ export type Disposer = () => void;
24
+ /** Registration options shared by the list and keyed slots used here. */
25
+ export interface SlotRegisterOptions {
26
+ /** Target slot name, e.g. `sidebar.panellist` or `main`. */
27
+ readonly name: string;
28
+ /** Cell id for list slots; a fresh id is added beside the shipped entries. */
29
+ readonly id?: string;
30
+ /** Panel key for keyed slots such as `main`. */
31
+ readonly key?: string;
32
+ /** Ascending position among the entries. */
33
+ readonly order?: number;
34
+ /** Display text where the owner projects one; a thunk follows the locale. */
35
+ readonly label?: string | (() => string);
36
+ }
37
+ /** The slot registry face a Client plugin uses. */
38
+ export interface SlotsLike {
39
+ /** Wait for a slot declaration, then run the registration callback. */
40
+ inject(slot: string, callback: () => Disposer | readonly Disposer[]): Disposer;
41
+ /** Register one contribution; returns its disposer. */
42
+ register<P>(options: SlotRegisterOptions, component: ComponentType<P> | ((props: P) => ReactNode)): Disposer;
43
+ }
44
+ /** Current locale snapshot as `ctx.locale.getSnapshot()` returns it. */
45
+ export interface ClientLocaleSnapshot {
46
+ /** Active locale id, e.g. `en` or `zh`. */
47
+ readonly active: string;
48
+ /** Every declared locale definition. */
49
+ readonly locales: readonly {
50
+ readonly id: string;
51
+ }[];
52
+ /** Bumped on every locale switch or dictionary registration. */
53
+ readonly revision: number;
54
+ }
55
+ /** The Client locale service face this bundle uses. */
56
+ export interface ClientLocaleLike {
57
+ /** Read the current locale snapshot (stable reference between changes). */
58
+ getSnapshot(): ClientLocaleSnapshot;
59
+ /** Observe locale switches and dictionary registrations. */
60
+ subscribe(listener: () => void): Disposer;
61
+ /** Register one namespace dictionary for one or more locales. */
62
+ register(namespace: string, locales: Record<string, Record<string, string>>): Disposer;
63
+ /** Bind a namespace to a translate function reading the active locale. */
64
+ bind(namespace: string): (key: string, params?: Record<string, string | number>) => string;
65
+ }
66
+ /** The result envelope Connection's browser RPC caller resolves. */
67
+ export type RpcResult<T> = {
68
+ readonly ok: true;
69
+ readonly value: T;
70
+ } | {
71
+ readonly ok: false;
72
+ readonly error: {
73
+ readonly code: string;
74
+ readonly message: string;
75
+ readonly details: Record<string, unknown>;
76
+ };
77
+ };
78
+ /** The Client connection face this bundle uses. */
79
+ export interface ClientConnectionLike {
80
+ readonly rpc: {
81
+ call<T>(channel: string, endpoint: string, payload: unknown, signal?: AbortSignal): Promise<RpcResult<T>>;
82
+ };
83
+ }
84
+ /** The restricted Client context handed to a module's `apply`. */
85
+ export interface ClientContext {
86
+ /** The slot registry service, a hard dependency of this module. */
87
+ readonly slots: SlotsLike;
88
+ /** The locale service, a hard dependency of this module. */
89
+ readonly locale: ClientLocaleLike;
90
+ /** The authenticated Host transport, a hard dependency of this module. */
91
+ readonly connection: ClientConnectionLike;
92
+ /** Register a resource owned by this plugin's Fiber; returns its disposer. */
93
+ effect(callback: () => Disposer | void, label?: string): Disposer;
94
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Structural mirrors of the DSH Client contracts this bundle consumes.
3
+ *
4
+ * Queried from the live 0.2.1-rc.5 runtime on 2026-11-05:
5
+ * - `ctx.slots` (provided by `@deepseek-ai/dsh-client-ui-renderer`'s SlotRegistry):
6
+ * `inject(key, callback)` waits for a slot declaration, `register(options,
7
+ * component)` registers one entry through the caller's Fiber.
8
+ * - `sidebar.panellist` is a `list` slot whose entries take `{ size, active }`
9
+ * and whose `id` addresses the matching `main` panel; `main` is a `keyed`
10
+ * slot selected by `ctx.layout.selectPanel(key)`.
11
+ * - `ctx.locale` (`@deepseek-ai/dsh-client-locale`): `register(ns, { zh, en })`,
12
+ * `bind(ns)`, `getSnapshot()` / `subscribe()` for reactive translation.
13
+ * - `ctx.connection` (`@deepseek-ai/dsh-client-connection`):
14
+ * `rpc.call(channel, endpoint, payload, signal)` resolving
15
+ * `{ ok: true, value } | { ok: false, error }`.
16
+ *
17
+ * Mirrored rather than imported so this package does not pull the whole client
18
+ * package graph into its own build. Re-query the live contracts before widening
19
+ * this surface, and treat a mismatch as a compatibility finding.
20
+ */
21
+ export {};
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Shell styles: the frame, the page chrome, the toolbar, and shared atoms.
3
+ *
4
+ * Design goals, in the order that drove the decisions:
5
+ *
6
+ * 1. **Depth through layering, not decoration.** Three surface levels
7
+ * (canvas → card → inset) with a single soft shadow ramp. A flat page reads
8
+ * "unstyled"; three tones read "designed" without adding visual noise.
9
+ * 2. **One accent, used sparingly.** The brand blue marks only the current
10
+ * selection, the active view and the primary action. Status colour
11
+ * (green/amber/red) is reserved for judgement — never for chrome.
12
+ * 3. **Density with air.** The ledger is data-heavy, so rows stay compact, but
13
+ * every section gets a real gap and a real heading hierarchy. Cramped and
14
+ * airy are both failures; the target is "scannable at 1440".
15
+ * 4. **Theme-native.** The frame uses `--dsw-alias-*` tokens so light and dark
16
+ * both work. The ledger's own palette (blue/green/amber/red from DESIGN.md)
17
+ * is literal, with dark-theme variants that stay legible.
18
+ * 5. **Chrome is one column.** Header, search, toolbar, body and footer share
19
+ * the same 32px gutter and the same stack, so the page reads as one
20
+ * instrument rather than a table wedged between two bars.
21
+ *
22
+ * This sheet owns ONLY the frame: `.page-*`, `.module-*`, `.toolbar-*`,
23
+ * `.filter-*`, `.view-*`, `.sort-*`, `.search-*`, `.btn`, `.empty-*`,
24
+ * `.failure`, `.modal-*`, and the shared `.chip` / `.status-pill` atoms.
25
+ * Charts, overview, detail and insights each ship their own sheet beside their
26
+ * component, and `styles.ts` concatenates all of them.
27
+ *
28
+ * Everything is scoped under `.wd-shell`, and the sheet lives in a `<style>`
29
+ * element React removes on unmount, so nothing leaks into product DOM.
30
+ */
31
+ export declare const BASE_CSS = "\n.wd-shell {\n /* Brand + status palette (DESIGN.md), with soft tints derived from each. */\n --wd-primary: #2864E8;\n --wd-primary-deep: #1B4FC2;\n --wd-primary-soft: rgba(40, 100, 232, .09);\n --wd-primary-ring: rgba(40, 100, 232, .26);\n --wd-text: #192638;\n --wd-bg: #F5F7FB;\n --wd-border: #E6EBF2;\n --wd-green: #218568;\n --wd-amber: #B77919;\n --wd-red: #C0392B;\n --wd-slate: #5A6A80;\n --wd-green-soft: rgba(33, 133, 104, .10);\n --wd-amber-soft: rgba(183, 121, 25, .11);\n --wd-red-soft: rgba(192, 57, 43, .10);\n --wd-slate-soft: rgba(90, 106, 128, .10);\n\n /* Surface ramp: canvas \u2192 card \u2192 inset. */\n --wd-canvas: #F5F7FB;\n --wd-surface: #FFFFFF;\n --wd-inset: #F7F9FC;\n --wd-hairline: #E6EBF2;\n\n /* One shadow ramp; three steps is enough for any depth in this UI. */\n --wd-shadow-1: 0 1px 2px rgba(20, 32, 52, .05);\n --wd-shadow-2: 0 2px 6px rgba(20, 32, 52, .07), 0 1px 2px rgba(20, 32, 52, .04);\n --wd-shadow-3: 0 10px 30px rgba(20, 32, 52, .12), 0 2px 8px rgba(20, 32, 52, .06);\n\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n background: var(--wd-canvas);\n color: var(--wd-text);\n font-family: 'Avenir Next', 'PingFang SC', system-ui, -apple-system, sans-serif;\n font-size: 13px;\n line-height: 20px;\n -webkit-font-smoothing: antialiased;\n}\nbody[data-ds-dark-theme] .wd-shell {\n --wd-text: #E8EDF5;\n --wd-bg: #14181F;\n --wd-border: #2A3341;\n --wd-green: #4FC59B;\n --wd-amber: #E0A94A;\n --wd-red: #F07A6B;\n --wd-slate: #97A6BA;\n --wd-primary: #6E9BFF;\n --wd-primary-deep: #8DB0FF;\n --wd-primary-soft: rgba(110, 155, 255, .14);\n --wd-primary-ring: rgba(110, 155, 255, .32);\n --wd-green-soft: rgba(79, 197, 155, .14);\n --wd-amber-soft: rgba(224, 169, 74, .16);\n --wd-red-soft: rgba(240, 122, 107, .14);\n --wd-slate-soft: rgba(151, 166, 186, .14);\n --wd-canvas: #14181F;\n --wd-surface: #1B2029;\n --wd-inset: #222834;\n --wd-hairline: #2A3341;\n --wd-shadow-1: 0 1px 2px rgba(0, 0, 0, .28);\n --wd-shadow-2: 0 2px 8px rgba(0, 0, 0, .34), 0 1px 2px rgba(0, 0, 0, .24);\n --wd-shadow-3: 0 12px 34px rgba(0, 0, 0, .48), 0 2px 8px rgba(0, 0, 0, .3);\n}\n.wd-shell *, .wd-shell *::before, .wd-shell *::after { box-sizing: border-box; }\n.wd-shell button, .wd-shell input, .wd-shell select { font: inherit; color: inherit; }\n.wd-shell:focus { outline: none; }\n\n/* ---------- shell: rail + canvas ---------- */\n.wd-shell .page { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }\n\n.wd-shell .module-rail {\n flex: 0 0 auto;\n display: flex; align-items: center; gap: 6px;\n padding: 10px 32px 0;\n}\n.wd-shell .module-tab {\n display: inline-flex; align-items: center; gap: 7px;\n height: 30px; padding: 0 12px;\n border: 1px solid transparent; border-radius: 8px 8px 0 0;\n background: transparent; color: var(--dsw-alias-label-secondary);\n cursor: pointer; font-size: 12.5px; font-weight: 500;\n border-bottom: 0; position: relative; top: 1px;\n}\n.wd-shell .module-tab[data-active=\"true\"] {\n background: var(--wd-surface); color: var(--wd-text);\n border-color: var(--wd-hairline); font-weight: 600;\n}\n.wd-shell .module-tab:not([data-active=\"true\"]):hover { background: var(--wd-primary-soft); color: var(--wd-text); }\n.wd-shell .module-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wd-primary); flex: none; }\n.wd-shell .module-tab[data-active=\"false\"] .module-tab-dot { background: var(--wd-slate); opacity: .55; }\n.wd-shell .module-rail-hint { margin-left: auto; font-size: 10.5px; color: var(--dsw-alias-label-tertiary); }\n\n/* ---------- page header ---------- */\n.wd-shell .page-header {\n flex: 0 0 auto;\n display: flex; align-items: flex-start; gap: 16px;\n padding: 14px 28px 12px;\n background: var(--wd-surface);\n border: 1px solid var(--wd-hairline);\n box-shadow: var(--wd-shadow-1);\n position: relative; z-index: 2;\n}\n.wd-shell .page-header-text { flex: 1 1 auto; min-width: 0; }\n.wd-shell .page-eyebrow {\n display: flex; align-items: center; gap: 6px;\n font-size: 11px; line-height: 16px; letter-spacing: .06em;\n text-transform: uppercase; color: var(--dsw-alias-label-tertiary);\n margin: 0 0 3px;\n}\n.wd-shell .page-title {\n margin: 0; font-size: 19px; line-height: 25px; font-weight: 650;\n letter-spacing: -.01em; display: flex; align-items: center; gap: 10px;\n}\n.wd-shell .page-subtitle { margin: 2px 0 0; font-size: 12px; line-height: 18px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .page-source {\n margin: 4px 0 0; font-size: 10.5px; line-height: 15px;\n color: var(--dsw-alias-label-tertiary);\n display: flex; gap: 7px; flex-wrap: wrap; align-items: center;\n}\n.wd-shell .page-source code {\n font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px;\n padding: 2px 7px; border-radius: 5px;\n background: var(--wd-inset); border: 1px solid var(--wd-hairline);\n}\n.wd-shell .header-actions { flex: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }\n.wd-shell .page-body {\n flex: 1 1 auto; overflow: auto; overscroll-behavior: contain;\n padding: 16px 28px 36px;\n}\n.wd-shell .detail-body {\n flex: 1 1 auto; overflow: auto; overscroll-behavior: contain;\n padding: 0;\n}\n.wd-shell .page-footer {\n flex: 0 0 auto; display: flex; align-items: center; gap: 10px;\n padding: 8px 32px; min-height: 32px;\n border-top: 1px solid var(--wd-hairline);\n background: var(--wd-surface);\n font-size: 11.5px; color: var(--dsw-alias-label-tertiary);\n}\n.wd-shell .page-footer .spacer { flex: 1 1 auto; }\n\n/* ---------- search (inside the toolbar) ---------- */\n.wd-shell .search-box {\n position: relative; display: flex; align-items: center;\n width: min(300px, 100%); flex: 0 1 300px;\n height: 28px; padding: 0 9px 0 27px;\n border: 1px solid var(--wd-hairline); border-radius: 9px;\n background: var(--wd-inset);\n transition: border-color .13s ease, background .13s ease, box-shadow .13s ease;\n}\n.wd-shell .search-box:focus-within {\n border-color: var(--wd-primary); background: var(--wd-surface);\n box-shadow: 0 0 0 3px var(--wd-primary-soft);\n}\n.wd-shell .search-glyph {\n position: absolute; left: 9px; top: 50%; transform: translateY(-50%);\n font-size: 14px; line-height: 1; color: var(--dsw-alias-label-tertiary);\n pointer-events: none;\n}\n.wd-shell .search-input {\n flex: 1 1 auto; min-width: 0; height: 100%;\n border: 0; background: transparent; outline: none;\n font-size: 12.5px;\n}\n.wd-shell .search-input::placeholder { color: var(--dsw-alias-label-tertiary); }\n.wd-shell .search-input::-webkit-search-cancel-button { display: none; }\n.wd-shell .search-clear {\n flex: none; width: 18px; height: 18px; border-radius: 50%;\n border: 0; background: var(--wd-slate-soft); color: var(--dsw-alias-label-secondary);\n font-size: 12px; line-height: 1; cursor: pointer;\n display: flex; align-items: center; justify-content: center;\n}\n.wd-shell .search-clear:hover { background: var(--wd-primary-soft); color: var(--wd-primary); }\n.wd-shell .footer-hint { font-size: 10px; color: var(--dsw-alias-label-tertiary); white-space: nowrap; }\n\n/* ---------- toolbar ---------- */\n.wd-shell .toolbar {\n flex: 0 0 auto;\n display: flex; flex-direction: column; gap: 6px;\n padding: 8px 28px 9px;\n background: var(--wd-surface);\n border-bottom: 1px solid var(--wd-hairline);\n box-shadow: var(--wd-shadow-1);\n position: relative; z-index: 1;\n}\n.wd-shell .toolbar-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; min-width: 0; }\n/* The filter strip is ONE scrolling line. Wrapping it onto three lines cost the\n project list most of the first screen, which is the opposite of the point. */\n.wd-shell .toolbar-row-filters {\n gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;\n padding-bottom: 2px; scrollbar-width: thin;\n}\n.wd-shell .toolbar-row-filters .toolbar-group { flex: none; }\n.wd-shell .toolbar-group { display: flex; align-items: center; gap: 7px; min-width: 0; }\n.wd-shell .toolbar-group-label {\n flex: none; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase;\n color: var(--dsw-alias-label-tertiary); font-weight: 600;\n}\n.wd-shell .chip-scroll { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; min-width: 0; }\n.wd-shell .filter-chip {\n display: inline-flex; align-items: center; gap: 5px;\n height: 24px; padding: 0 9px;\n border: 1px solid var(--wd-hairline); border-radius: 20px;\n background: var(--wd-surface); color: var(--dsw-alias-label-secondary);\n font-size: 11.5px; cursor: pointer; white-space: nowrap;\n transition: background .12s ease, border-color .12s ease, color .12s ease;\n}\n.wd-shell .filter-chip:hover:not([disabled]) { background: var(--wd-inset); color: var(--wd-text); }\n.wd-shell .filter-chip[data-active=\"true\"] {\n background: var(--wd-primary-soft); border-color: var(--wd-primary);\n color: var(--wd-primary); font-weight: 600;\n}\n.wd-shell .filter-chip[disabled] { opacity: .4; cursor: default; }\n.wd-shell .filter-chip-count {\n font-size: 10px; font-variant-numeric: tabular-nums;\n color: var(--dsw-alias-label-tertiary); font-weight: 500;\n}\n.wd-shell .filter-chip[data-active=\"true\"] .filter-chip-count { color: var(--wd-primary); }\n.wd-shell .view-switch {\n display: inline-flex; align-items: center; padding: 2px;\n border: 1px solid var(--wd-hairline); border-radius: 9px;\n background: var(--wd-inset); gap: 2px;\n}\n.wd-shell .view-switch-btn {\n height: 24px; padding: 0 11px; border: 0; border-radius: 7px;\n background: transparent; color: var(--dsw-alias-label-secondary);\n font-size: 11.5px; cursor: pointer; white-space: nowrap;\n transition: background .12s ease, color .12s ease, box-shadow .12s ease;\n}\n.wd-shell .view-switch-btn:hover:not([data-active=\"true\"]) { color: var(--wd-text); }\n.wd-shell .view-switch-btn[data-active=\"true\"] {\n background: var(--wd-surface); color: var(--wd-text); font-weight: 600;\n box-shadow: var(--wd-shadow-1);\n}\n.wd-shell .sort-switch { display: inline-flex; align-items: center; gap: 4px; }\n.wd-shell .sort-select {\n height: 26px; padding: 0 8px; border-radius: 7px;\n border: 1px solid var(--wd-hairline); background: var(--wd-surface);\n color: var(--dsw-alias-label-secondary); font-size: 11.5px; cursor: pointer;\n}\n.wd-shell .sort-select:focus-visible { outline: 2px solid var(--wd-primary); outline-offset: 1px; }\n.wd-shell .toolbar-result { margin-left: auto; font-size: 11px; color: var(--dsw-alias-label-tertiary); font-variant-numeric: tabular-nums; }\n\n/* ---------- buttons ---------- */\n.wd-shell .btn {\n height: 30px; padding: 0 12px;\n display: inline-flex; align-items: center; gap: 6px;\n border-radius: 8px; border: 1px solid var(--wd-hairline);\n background: var(--wd-surface); color: var(--dsw-alias-label-secondary);\n cursor: pointer; white-space: nowrap; font-size: 12.5px;\n transition: background .13s ease, border-color .13s ease, box-shadow .13s ease, transform .06s ease;\n box-shadow: var(--wd-shadow-1);\n}\n.wd-shell .btn:hover:not([disabled]) {\n background: var(--wd-inset); color: var(--wd-text);\n border-color: var(--dsw-alias-border-l2); box-shadow: var(--wd-shadow-2);\n}\n.wd-shell .btn:active:not([disabled]) { transform: translateY(1px); box-shadow: var(--wd-shadow-1); }\n.wd-shell .btn:focus-visible { outline: 2px solid var(--wd-primary); outline-offset: 2px; }\n.wd-shell .btn[disabled] { opacity: .5; cursor: default; box-shadow: none; }\n.wd-shell .btn-primary {\n background: linear-gradient(180deg, var(--wd-primary) 0%, var(--wd-primary-deep) 100%);\n border-color: transparent; color: #fff; font-weight: 550;\n box-shadow: 0 1px 2px rgba(40, 100, 232, .3), 0 4px 12px rgba(40, 100, 232, .18);\n}\n.wd-shell .btn-primary:hover:not([disabled]) {\n background: linear-gradient(180deg, var(--wd-primary) 0%, var(--wd-primary-deep) 100%);\n color: #fff; filter: brightness(1.07);\n box-shadow: 0 2px 4px rgba(40, 100, 232, .32), 0 8px 20px rgba(40, 100, 232, .22);\n}\n.wd-shell .btn-ghost { border-color: transparent; background: transparent; box-shadow: none; }\n.wd-shell .btn-ghost:hover:not([disabled]) { background: var(--wd-inset); box-shadow: none; }\n.wd-shell .btn-small { height: 25px; padding: 0 9px; font-size: 11.5px; border-radius: 7px; }\n.wd-shell .btn-icon { width: 26px; padding: 0; justify-content: center; font-size: 12px; }\n\n/* ---------- shared atoms ---------- */\n.wd-shell .chip {\n display: inline-flex; align-items: center; gap: 4px;\n padding: 2px 9px; border-radius: 20px; font-size: 11.5px; line-height: 18px;\n background: var(--wd-inset); color: var(--dsw-alias-label-secondary);\n border: 1px solid var(--wd-hairline);\n}\n.wd-shell .chip-row { display: flex; flex-wrap: wrap; gap: 6px; }\n.wd-shell .chip-button { border: 0; cursor: pointer; font-family: inherit; }\n.wd-shell .chip-button:hover { background: var(--wd-primary-soft); color: var(--wd-primary); }\n.wd-shell .status-pill {\n display: inline-flex; align-items: center; gap: 5px;\n height: 21px; padding: 0 9px; border-radius: 20px;\n font-size: 11px; font-weight: 550; white-space: nowrap;\n background: var(--wd-slate-soft); color: var(--dsw-alias-label-secondary);\n}\n.wd-shell .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--wd-slate); flex: none; }\n.wd-shell .tone-blue { background: var(--wd-primary-soft); color: var(--wd-primary); }\n.wd-shell .tone-blue .status-dot { background: var(--wd-primary); }\n.wd-shell .tone-green { background: var(--wd-green-soft); color: var(--wd-green); }\n.wd-shell .tone-green .status-dot { background: var(--wd-green); }\n.wd-shell .tone-amber { background: var(--wd-amber-soft); color: var(--wd-amber); }\n.wd-shell .tone-amber .status-dot { background: var(--wd-amber); }\n.wd-shell .tone-red { background: var(--wd-red-soft); color: var(--wd-red); }\n.wd-shell .tone-red .status-dot { background: var(--wd-red); }\n.wd-shell .tone-slate { background: var(--wd-slate-soft); color: var(--wd-slate); }\n.wd-shell .tone-slate .status-dot { background: var(--wd-slate); }\n.wd-shell .is-muted { color: var(--dsw-alias-label-tertiary); font-style: italic; }\n.wd-shell .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: var(--dsw-alias-label-tertiary); }\n.wd-shell .prose { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 19px; color: var(--dsw-alias-label-secondary); }\n\n/* ---------- empty / failure ---------- */\n.wd-shell .empty-state {\n margin: 0 auto; max-width: 440px; padding: 56px 24px;\n text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px;\n}\n.wd-shell .empty-icon {\n width: 76px; height: 76px; border-radius: 18px;\n border: 1px solid var(--wd-hairline); background: var(--wd-surface);\n display: flex; align-items: center; justify-content: center;\n color: var(--dsw-alias-label-tertiary); margin-bottom: 10px;\n box-shadow: var(--wd-shadow-2);\n}\n.wd-shell .empty-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 650; }\n.wd-shell .empty-copy { margin: 0 0 12px; font-size: 12.5px; line-height: 19px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n.wd-shell .empty-meta { margin-top: 16px; font-size: 11px; line-height: 16px; color: var(--dsw-alias-label-tertiary); overflow-wrap: anywhere; }\n.wd-shell .failure {\n border: 1px solid var(--wd-red-soft); border-radius: 10px;\n background: var(--wd-red-soft); padding: 13px 15px;\n display: flex; align-items: flex-start; gap: 11px;\n border-left: 3px solid var(--wd-red);\n}\n.wd-shell .failure-text { min-width: 0; flex: 1 1 auto; }\n.wd-shell .failure-title { font-size: 13px; line-height: 19px; font-weight: 650; color: var(--wd-red); }\n.wd-shell .failure-reason { font-size: 12px; line-height: 18px; color: var(--dsw-alias-label-secondary); overflow-wrap: anywhere; }\n.wd-shell .spinner {\n display: inline-block; width: 12px; height: 12px;\n border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;\n animation: wd-spin .9s linear infinite; opacity: .8;\n}\n@keyframes wd-spin { to { transform: rotate(360deg); } }\n\n/* ---------- settings modal ---------- */\n.wd-shell .modal-overlay {\n position: fixed; inset: 0; z-index: 40;\n display: flex; align-items: center; justify-content: center; padding: 24px;\n background: rgba(12, 18, 28, .46);\n backdrop-filter: blur(2px);\n}\n.wd-shell .modal {\n width: min(452px, 100%); max-height: 86vh;\n display: flex; flex-direction: column;\n border-radius: 14px; border: 1px solid var(--dsw-alias-border-l2);\n background: var(--wd-surface);\n box-shadow: var(--wd-shadow-3);\n overflow: hidden;\n}\n.wd-shell .modal-header { display: flex; align-items: center; gap: 9px; padding: 15px 19px; border-bottom: 1px solid var(--wd-hairline); }\n.wd-shell .modal-title { margin: 0; font-size: 14.5px; line-height: 21px; font-weight: 650; }\n.wd-shell .modal-content { padding: 15px 19px; display: flex; flex-direction: column; gap: 5px; overflow: auto; }\n.wd-shell .modal-footer { display: flex; align-items: center; gap: 8px; padding: 13px 19px; border-top: 1px solid var(--wd-hairline); background: var(--wd-inset); }\n.wd-shell .modal-footer .spacer { flex: 1 1 auto; }\n.wd-shell .checkbox-row {\n display: flex; align-items: center; gap: 10px;\n padding: 9px 11px; border-radius: 8px; cursor: pointer;\n border: 1px solid transparent; transition: background .11s ease, border-color .11s ease;\n}\n.wd-shell .checkbox-row:hover { background: var(--wd-inset); }\n.wd-shell .checkbox-row[data-selected=\"true\"] { border-color: var(--wd-hairline); background: var(--wd-inset); }\n.wd-shell .checkbox-row input[type=\"radio\"] { accent-color: var(--wd-primary); flex: none; margin: 0; }\n.wd-shell .field { display: flex; flex-direction: column; gap: 5px; }\n.wd-shell .field-label { font-size: 12px; color: var(--dsw-alias-label-secondary); }\n.wd-shell .input {\n height: 30px; width: 94px; padding: 0 10px; border-radius: 8px;\n border: 1px solid var(--wd-hairline); background: var(--wd-surface);\n color: var(--wd-text); font-variant-numeric: tabular-nums;\n}\n.wd-shell .input:focus-visible { outline: 2px solid var(--wd-primary); outline-offset: 1px; }\n.wd-shell .form-error { margin: 2px 0 0; font-size: 11.5px; color: var(--wd-red); }\n.wd-shell .inline-field { display: flex; align-items: center; gap: 9px; padding: 4px 11px 4px 35px; }\n.wd-shell .helper-box {\n margin-top: 7px; padding: 9px 11px; border-radius: 8px;\n background: var(--wd-inset); border: 1px solid var(--wd-hairline);\n font-size: 11.5px; line-height: 17px; color: var(--dsw-alias-label-tertiary);\n}\n\n/* ---------- sidebar glyph ---------- */\n.wd-glyph { display: block; }\n\n@media (prefers-reduced-motion: reduce) {\n .wd-shell .spinner { animation-duration: 2.4s; }\n .wd-shell .btn, .wd-shell .filter-chip, .wd-shell .search-box, .wd-shell .view-switch-btn { transition: none; }\n}\n";