dsh-claude-style 0.21.6-dev.68 → 0.21.7-dev.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/CHANGELOG.md CHANGED
@@ -2,6 +2,72 @@
2
2
 
3
3
  All notable changes to `dsh-claude-style` are documented here, newest first.
4
4
 
5
+ ## [0.21.7] - 2026-11-20
6
+
7
+ [中文](#cn-0.21.7) | [English](#en-0.21.7)
8
+
9
+ <h3 id="cn-0.21.7">体验优化</h3>
10
+
11
+ - 移除对话顶栏下方的渐隐遮罩,恢复 DSH 原有的分隔线
12
+ - 新增「焦点不在对话页内隐藏工具栏」开关,指针移到宿主右侧面板时淡出视图标签、更多视图菜单和右侧工具,悬停侧栏或详情栏时保持显示
13
+ - 长会话切换与流式输出时主题的主线程开销约减少一半,统计数字计数期间不再每帧触发整页更新,会话详情栏每帧最多测量一次,关闭的 effort 卡片与无关字体加载不再强制重排
14
+ - 「更多操作」按钮始终紧贴会话标题并显示为向下箭头,网页、窄窗口和桌面标题栏使用同样的排列
15
+ - 独立统计行与对话详情栏支持可配置的 K/M/B/T Token 单位,并默认使用单位显示
16
+ - 统一顶栏、侧栏和详情栏外侧的分隔线,详情分节和模型菜单分组使用更淡的细线
17
+ - 对话视图标签的下划线在悬停时拉伸和平移,点击切换视图时沿用悬停位置
18
+ - 对话和轨迹改用带下划线的文字标签,连同更多视图菜单靠右放在顶栏工具按钮之前
19
+ - 顶栏的对话和轨迹标签在悬停时高亮文字,切换时下划线拉伸并缓动至选中的标签,支持减少动态效果
20
+ - 切换会话时主题强制触发的样式与排版计算从约五次减到一次,详情栏位置、统计行宽度、标签滑块与输入光标都改在帧的读取阶段或尺寸回报里测量,每次切换省下约 70 毫秒主线程时间
21
+ - 对话里的选中配色改为在开始选中文字时才覆盖这段对话,长会话切换时浏览器不再为每个元素额外计算一份选中样式,每次切换的长帧总时长约减少两成;窗口失焦或获得焦点时,没有选中文字就不再触发整页样式重算
22
+ - 折叠起来的进程组不再在切换会话时逐个测量摘要宽度,改为展开显示的那一帧再测量,长会话切换时省下几十次单独的样式计算
23
+
24
+ ### 问题修复
25
+
26
+ - 紧凑统计行直接纳入对话输入区工具栏布局,修复紧凑底部间距在切换会话时跳动的问题
27
+ - 修复重绘账户区后插件菜单触发器入口彻底消失的问题,菜单触发器保留在侧栏原位置,菜单定位与焦点返回正常
28
+ - 关闭「对话 / 轨迹标签靠右显示」时,原位视图标签和更多视图菜单保持可见
29
+ - 过程摘要会一并隐藏活动按钮内的额外工具状态文本,助手正文仍保持可见
30
+ - 展开或收起右侧栏时,桌面顶栏中靠右的对话和轨迹标签保持原位
31
+ - 无上下文压力投影的宿主上,上下文圆环跟随宿主计量条的读数更新
32
+ - 会话标题按顶栏可用宽度显示,空间足够时显示完整名称
33
+ - 修复配色编辑器把预设手调链接色显示成「由强调色推出」的问题,链接行改为显示实际解析出的颜色与对比度,未带链接种子的方案显示推出后的颜色并把来源留作附注
34
+
35
+ ### 其他变更
36
+
37
+ - 清理无人调用的导出、结果与默认值相同的旧值映射、旧宿主日志读取回退、两个孤立探针与作废决策编号引用,并补齐决策作废记录
38
+ - 故障语料补丁跟上当前代码,故障运行计入安装类用例的失败,lint 增加故障补丁可应用性检查
39
+
40
+ <h3 id="en-0.21.7">Improvements</h3>
41
+
42
+ - Restore the native divider below the conversation header by removing the gradient overlay
43
+ - Add a Hide toolbar outside the conversation setting that fades the view tabs, More views menu and right-hand tools over the host right panel and keeps them up over the sidebar and details rail
44
+ - Switching between long sessions and streaming answers costs the theme about half the main-thread time, as the counting statistics no longer wake a page-wide pass every frame, the details rail measures at most once a frame, and a closed effort card or an unrelated font loading no longer forces a layout
45
+ - Keep the More actions button flush with the session title, with a downward chevron in the web header, narrow windows, and the desktop caption
46
+ - Add configurable K/M/B/T token units to the independent statistics line and conversation details rail, with units shown by default
47
+ - Match the dividers at the header and column edges, with subtler hairlines between details sections and model groups
48
+ - Preview the view tab underline on hover, leaving selection free of a new animation
49
+ - Use underlined text tabs for Chat and Trajectory and place them with More views before the tools on the right side of the title bar
50
+ - Highlight Chat and Trajectory labels on hover and ease the stretching underline between tabs, with support for reduced motion
51
+ - Switching sessions now forces one style and layout pass from the theme where it used to force about five, as the details rail, the statistics line, the tab slider and the composer caret measure in the frame's read phase or in a size report, saving about 70 ms of main-thread time per switch
52
+ - The selection colours now cover a conversation from the moment text is first selected in it, so switching long sessions no longer has the browser work out a selection style for every element, cutting about a fifth of the long frames per switch; losing or regaining window focus with nothing selected no longer restyles the whole page
53
+ - Folded process groups no longer measure their summary one by one on a session switch; each is measured in the frame that shows it, sparing a long session's switch dozens of separate style computations
54
+
55
+ ### Bug Fixes
56
+
57
+ - Seat compact statistics inside the composer toolbar and keep the compact bottom gap steady when switching conversations
58
+ - Fix a plugin menu-trigger footer entry vanishing once the account area is redrawn, keeping the trigger in its sidebar place with its menu placement and focus return intact
59
+ - Keep the native view tabs and More views menu visible when right alignment is off
60
+ - The process summary hides extra tool status text inside the activity button while keeping the assistant answer visible
61
+ - Keep the right-aligned Chat and Trajectory tabs in place when the right sidebar opens or closes
62
+ - Follow the host meter's reading on the context ring when the host serves no context-pressure projection
63
+ - Show the full session title whenever it fits in the header
64
+ - Fix the scheme editor reading a preset's hand-tuned link colour as derived-from-accent, so the link row shows the resolved colour and its contrast, and a scheme without a link seed shows the derived colour with its origin kept as a side note
65
+
66
+ ### Chores
67
+
68
+ - Remove unreferenced exports, identity legacy preference mappings, the old-host log read fallback, two standalone probes and retired decision citations, and complete the decision retirement record
69
+ - Bring fault corpus patches up to the current tree, credit installation-case failures in the faults lane, and check fault patch applicability in lint
70
+
5
71
  ## [0.21.6] - 2026-11-19
6
72
 
7
73
  [中文](#cn-0.21.6) | [English](#en-0.21.6)
package/docs/STYLE.md CHANGED
@@ -299,13 +299,24 @@ page itself: no block of their own behind them, and they dim with a modal's mask
299
299
  like everything else. Their hover plate is the system's, a tint of the button
300
300
  glyph's colour.
301
301
 
302
+ **The session's menu at the name.** The more-actions trigger — the launcher
303
+ whose panel carries the session's own actions — starts at the end of the
304
+ session title in either header row, with the preset cluster after it.
305
+ The button uses a downward SVG chevron and stays visible as the surrounding
306
+ tools fade. Its panel opens at the button, and the utilities cluster closes the
307
+ gap the trigger leaves. The title anchors the button in the conversation header
308
+ whenever that is where the title stands. The shell's application menu seat keeps
309
+ the caption row's left end, and the row's content starts after it.
310
+
302
311
  **The header's controls.** The conversation header's controls read as one row of
303
312
  plates, in the caption row and in the header's own row alike: a 28px square at an
304
313
  8px radius with a 16px glyph in the secondary ink, and the skin's hover plate
305
314
  under the pointer. The row divides into the session's actions and the panel
306
315
  switches: three actions — open-with, changes, more — stand 6px apart, a 16px
307
316
  hairline drawn on the first switch opens a 18px break, and the bottom-panel
308
- switch, the details switch and the right-panel switch follow at 6px. The
317
+ switch and the details switch follow at 6px. In the caption row the right-panel
318
+ switch has 8px of leading space in both states, so it keeps the same place
319
+ when its action changes from opening to closing. The
309
320
  open-with split carries no outline of its own; its app icon keeps the app's
310
321
  colour throughout, and the whole control takes one plate rather than one per
311
322
  half.
@@ -438,9 +449,33 @@ separate right-aligned duration beside their execution mode and stop control.
438
449
  An output row names the file and the folder it lies in, and only a
439
450
  file the model presented carries a state word. Its mark is a single-stroke sheet
440
451
  in the row's own ink, with a picture frame for an image, so a coloured file-type
441
- badge never competes with the legend. With the rail standing the
442
- conversation's view switch shares the title's line at the row's right end,
443
- before the utilities, and the title truncates to the span left over.
452
+ badge never competes with the legend.
453
+
454
+ The conversation view switch keeps the host's text tabs and selection. The
455
+ label's text colour brightens on hover or keyboard focus. The shared underline
456
+ rests under the selected label. Hovering a tab previews its position with a
457
+ transform animation. The leading edge stretches across the gap and moves just
458
+ past the hovered label as the trailing edge catches up. Leaving the tabs
459
+ returns the line to the selected label. Selection updates the resting position
460
+ without starting an animation. Reduced motion moves the line immediately.
461
+ The tabs and their overflow menu sit before the right-hand tools in the
462
+ conversation header, including the Windows caption when it has room. A narrow
463
+ header keeps them right-aligned on the next line. The details rail leaves the
464
+ header's width intact. The host's bottom border separates the header from the
465
+ conversation and takes the same colour as the column dividers.
466
+
467
+ The title area and the session's more-actions trigger stay visible. The view
468
+ tabs, their overflow menu and the right-hand tools fade in while the pointer is
469
+ over the header, the main content, the sidebar or the details rail, including the
470
+ composer and the Windows caption space above the conversation. The caption carries
471
+ the sidebar's collapse control, so those columns keep the header buttons up. The
472
+ tools fade out over the host right panel and keep their place in the header.
473
+ Keyboard focus reveals them immediately. Reduced motion applies the opacity
474
+ changes immediately, and touch-only devices keep the controls visible.
475
+ The Conversation setting Hide toolbar outside the conversation starts on.
476
+ Turning it off keeps those controls visible throughout the active conversation.
477
+ When Right-align Chat / Trajectory tabs is off, the host's view tabs and their
478
+ menu stay visible in their original row.
444
479
 
445
480
  The two figures sections put a label on the left and a value on the right, one
446
481
  figure a row, so a long duration or token count keeps the row's width. Session
@@ -477,13 +512,11 @@ runs, and its tokens stay in the session's own figures.
477
512
  code block or a keycap reads as a chamfer catching the top light over whatever
478
513
  fill it sits on rather than as a contour whose colour has to be re-picked per
479
514
  surface. The light rungs stay the warm opaque ladder.
480
- - Separator: `--dsh-claude-divider`, a rung below the lightest border, drawn at
481
- 0.5px on every line that only separates — the sidebar's foot area, the search
482
- panel's foot, the context stats, the settings rows, a menu's separators, the
483
- file block's IN/OUT line and the transcript's `hr`. The line belongs to the
484
- layout rather than to a surface's opening animation, so one thickness covers
485
- every separator a card holds. A card, a field and a popover keep their 1px
486
- border in l1, so an outline always reads heavier than a separator inside it.
515
+ - Layout dividers: 0.5px in `--dsw-alias-border-l1` below the conversation header
516
+ and where the sidebar and details rail meet the conversation.
517
+ - Content dividers: 0.5px in `--dsh-claude-divider`, a rung below the lightest
518
+ border, for details sections, menu groups, settings rows, foot areas and the
519
+ transcript's `hr`. Cards, fields and popovers use a 1px outline in l1.
487
520
  - Spacing: 4 px rhythm.
488
521
  - Bottom edge: the transcript never fades behind the composer by shadow. The
489
522
  composer seat paints an opaque `var(--dsw-alias-bg-base)` bar across its own
@@ -559,6 +592,7 @@ edit the JSON, not the table.
559
592
  | `--dsh-claude-duration-fade` | `300ms` | a slow cross-fade: the theme flip, the reasoning knob's glow, a placeholder handing its place to what it stood for |
560
593
  | `--dsh-claude-duration-column` | `300ms` | a column taking or giving up width beside the chat: the conversation's details rail opening or closing, and the chat's own inset following it |
561
594
  | `--dsh-claude-duration-bounce` | `350ms` | a switch's knob travelling across with its double bounce |
595
+ | `--dsh-claude-duration-tab-underline` | `280ms` | the conversation tab underline stretching and settling under the next label |
562
596
  | `--dsh-claude-duration-flight` | `400ms` | the sent message flying from the composer to its row |
563
597
  | `--dsh-claude-duration-step` | `500ms` | one step of the reasoning window's text rising two lines |
564
598
  | `--dsh-claude-duration-pop` | `500ms` | something popping into place: the overtime badge's own pill |
@@ -594,6 +628,8 @@ edit the JSON, not the table.
594
628
  | `--dsh-claude-ease-status-title` | `cubic-bezier(0.45, 0, 0.55, 1)` | the middle travel segment of the strong running-title shimmer |
595
629
  | `--dsh-claude-ease-in-out` | `ease-in-out` | something that leaves and returns, or swaps in place: wording swaps, pulses, flashes |
596
630
  | `--dsh-claude-ease-glide` | `cubic-bezier(0.22, 0.61, 0.36, 1)` | travel along a track: the sliding highlight, the reasoning slider, the search dialog's entrance, the reasoning window's step, the wording box's width, the stream's slide |
631
+ | `--dsh-claude-ease-tab-leading-edge` | `cubic-bezier(0.2, 0, 0.32, 1.28)` | the leading edge of the tab underline stretching just past the new label before settling |
632
+ | `--dsh-claude-ease-tab-trailing-edge` | `cubic-bezier(0.52, 0, 0.72, 1)` | the trailing edge of the tab underline accelerating later and easing to a stop as it catches the leading edge |
597
633
  | `--dsh-claude-ease-roll` | `cubic-bezier(0.4, 0, 0.2, 1)` | digits rolling over: the file rows' tail and the process group header's counts |
598
634
  | `--dsh-claude-ease-column` | `cubic-bezier(0.4, 0, 0.2, 1)` | a column taking or giving up width beside the chat, and the chat's inset following it |
599
635
  | `--dsh-claude-ease-spring` | `cubic-bezier(0.34, 1.45, 0.64, 1)` | a small overshoot as something lands: the overtime badge popping in, a switch's knob bouncing past its end |
@@ -638,7 +674,7 @@ edit the JSON, not the table.
638
674
  | `--dsh-claude-layer-control` | `10` | a control kept over the composer card's own stacked rows: the send and stop buttons, the reasoning picker's trigger |
639
675
  | `--dsh-claude-layer-picker` | `20` | a picker that hangs its card from inside the composer: the permission picker, whose card has to stand over the controls beside it |
640
676
  | `--dsh-claude-layer-rail` | `24` | the conversation's details column: over the chat and the composer, under the host's own floating panels and under the header row, which hangs its menus in a layer of its own |
641
- | `--dsh-claude-layer-chrome` | `30` | the window's title row the skin draws into: the header band's title and actions, the titlebar's view tabs, over the host's own header |
677
+ | `--dsh-claude-layer-chrome` | `30` | the window's title row the skin draws into: the title, view tabs and actions over the host's own header |
642
678
  | `--dsh-claude-layer-peek` | `40` | the sidebar opened over the page while the pointer rests on its toggle: over the main window's title row and its own controls, under the floating cards and menus its rows open |
643
679
  | `--dsh-claude-layer-float` | `99999` | a floating card or menu over everything the host draws: the popover cards, the hero menu |
644
680
  | `--dsh-claude-layer-tooltip` | `100000` | the host's own tooltip bubble while it explains a control inside a card the skin floats: over those cards, under a takeover |
@@ -655,9 +691,14 @@ Both are solid (never translucent) and `!important`, so they override whatever
655
691
  colour the text underneath carries — links, inline code, syntax tokens. CSS
656
692
  cannot read window focus: Chromium reaches the inactive paint through its own
657
693
  internal `-internal-inactive-selection-*` properties, which a stylesheet cannot
658
- address. `packages/client/src/features/composer/selection-mirror.ts` therefore
659
- mirrors `document.hasFocus()` onto `data-dsh-window-blur` and the stylesheet
660
- switches on that attribute; the selection itself survives the blur.
694
+ address. `packages/client/src/core/selection-paint.ts` therefore mirrors
695
+ `document.hasFocus()` onto `data-dsh-window-blur` while a range is selected, and
696
+ the stylesheet switches on that attribute; the selection itself survives the
697
+ blur. The same module marks a transcript's root with
698
+ `data-dsh-claude-selection-paint` once a selection starts in it, and the
699
+ transcript's paints key on that mark: a `::selection` rule that matches an
700
+ element costs that element a selection style on every recalculation, and a
701
+ session switch mounts the new transcript without the mark.
661
702
 
662
703
  The window's chrome is not text. The sidebar column and the conversation header
663
704
  take `user-select: none`: a press on a row or on the session title is a gesture
@@ -667,7 +708,8 @@ it passes. The transcript, the composer's draft and a text field inside the
667
708
  chrome keep their own selection, which Chromium grants an editing host under a
668
709
  locked ancestor.
669
710
 
670
- The session title is the session's name, and a press on it renames the session.
711
+ The session title uses the space available in its header row and ends with an
712
+ ellipsis when the name exceeds that space. A press on it renames the session.
671
713
  The pointer over the title's last crumb raises a plate under the words — the
672
714
  host's own crumb already carries the padding and the radius — with a tip under
673
715
  the segment naming the press, in the label ink on the canvas tone the usage
@@ -808,7 +850,13 @@ the written-back tokens and the cache share, and it is among the figures the
808
850
  ladder gives up when the line needs the room for the total; in the block it is
809
851
  the usage section's first row.
810
852
 
811
- In the toolbar's placement the segment keeps its width across a session switch:
853
+ Compact footer figures join the tool row between the left controls and the
854
+ model and context controls. Their seat takes the space available in that row.
855
+ When even the shortest statistics line cannot fit, it takes its own row below
856
+ the tools. The invisible measuring copy stays inside its positioning box so
857
+ it cannot extend the transcript's scroll range beyond the composer.
858
+
859
+ In the toolbar the cost segment keeps its width across a session switch:
812
860
  the session's figure is replaced while the next one is being priced, so the
813
861
  amount sits in a box of an amount's measure, right-aligned so a growing figure
814
862
  extends left, and the box stands as the currency symbol and a dash in
Binary file
Binary file
@@ -211,15 +211,15 @@
211
211
  "encoding": "br",
212
212
  "bytes": 103078
213
213
  },
214
- "8d79b206742e.js": {
214
+ "2bb184bdab84.js": {
215
215
  "type": "text/javascript; charset=utf-8",
216
216
  "encoding": "br",
217
- "bytes": 37903
217
+ "bytes": 37586
218
218
  },
219
- "e4c60bfbd7b0.js.map": {
219
+ "003137e6bf75.js.map": {
220
220
  "type": "application/json; charset=utf-8",
221
221
  "encoding": "br",
222
- "bytes": 202086
222
+ "bytes": 202770
223
223
  },
224
224
  "be2ab9259df0.js": {
225
225
  "type": "text/javascript; charset=utf-8",
@@ -271,15 +271,15 @@
271
271
  "encoding": "br",
272
272
  "bytes": 64844
273
273
  },
274
- "916427f9e240.js": {
274
+ "2e6eea310e29.js": {
275
275
  "type": "text/javascript; charset=utf-8",
276
276
  "encoding": "br",
277
- "bytes": 79177
277
+ "bytes": 79320
278
278
  },
279
- "ab20b0a515d4.js.map": {
279
+ "2432ce1c9b44.js.map": {
280
280
  "type": "application/json; charset=utf-8",
281
281
  "encoding": "br",
282
- "bytes": 289385
282
+ "bytes": 289958
283
283
  }
284
284
  }
285
285
  }