dsh-claude-style 0.18.2 → 0.18.3
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/README.en.md +1 -1
- package/README.md +1 -1
- package/{CHANGELOG.md → docs/CHANGELOG.md} +71 -3
- package/{NOTICE.md → docs/NOTICE.md} +1 -1
- package/docs/STYLE.md +225 -124
- package/{THIRD_PARTY_NOTICES.md → docs/THIRD_PARTY_NOTICES.md} +3 -1
- package/lib/assets/3e595d5a03ea.js.br +0 -0
- package/lib/assets/486564e86d44.js.br +0 -0
- package/lib/assets/bd927cdd11c0.js.br +0 -0
- package/lib/assets/ddc043c7a932.js.br +0 -0
- package/lib/assets/manifest.json +15 -15
- package/lib/client.js +14 -14
- package/lib/host/settings.js +14 -1
- package/lib/prices.json +240 -199
- package/package.json +6 -4
- package/lib/assets/26ac5bfbade6.js.br +0 -0
- package/lib/assets/6f75a6052515.js.br +0 -0
- package/lib/assets/926518b8cde7.js.br +0 -0
- package/lib/assets/d5aa963bf99b.js.br +0 -0
package/README.en.md
CHANGED
|
@@ -94,7 +94,7 @@ To enable them, install the `.ttf` files on your system, or copy them into `$DSH
|
|
|
94
94
|
| --- | --- |
|
|
95
95
|
| [Design tokens](docs/STYLE.md) | The palette, typography, shape, motion and layer rules |
|
|
96
96
|
| [Architecture decisions](docs/adr/README.md) | One page per direction: background, decision, consequences, revisiting conditions |
|
|
97
|
-
| [Changelog](CHANGELOG.md) | Version history |
|
|
97
|
+
| [Changelog](docs/CHANGELOG.md) | Version history |
|
|
98
98
|
| [Contributing](CONTRIBUTING.md) | Building from `packages/client/src/`, commit conventions, and the screenshot and regression tooling |
|
|
99
99
|
|
|
100
100
|
## License
|
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ dsh plugin --profile web add Nwflower/dsh-claude-style#dist # GitHub 发布
|
|
|
93
93
|
| --- | --- |
|
|
94
94
|
| [设计令牌](docs/STYLE.md) | 配色、字体、形状、动效与层级 |
|
|
95
95
|
| [架构决策](docs/adr/README.md) | 每条方向一页:背景、决定、后果与重审条件 |
|
|
96
|
-
| [更新日志](CHANGELOG.md) | 版本历史 |
|
|
96
|
+
| [更新日志](docs/CHANGELOG.md) | 版本历史 |
|
|
97
97
|
| [贡献指南](CONTRIBUTING.md) | 构建、提交规范与回归工具 |
|
|
98
98
|
|
|
99
99
|
## 许可
|
|
@@ -4,23 +4,91 @@ All notable changes to `dsh-claude-style` are documented here, newest first.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
-
[
|
|
7
|
+
## [0.18.3] - 2026-10-22
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
[中文](#cn-0.18.3) | [English](#en-0.18.3)
|
|
10
|
+
|
|
11
|
+
<h3 id="cn-0.18.3">新增功能</h3>
|
|
12
|
+
|
|
13
|
+
- 新增思考强度重点色选项:推理等级按钮按当前档位取色,关闭的档位与模型自己的默认档位保持灰色,每个思考档位在蓝色到紫色之间取自己的一档,越高越靠紫色一端。
|
|
14
|
+
|
|
15
|
+
### 体验优化
|
|
10
16
|
|
|
11
17
|
- 改善会话标题的重命名:鼠标扫过顶栏标题时浮出一块底板与「重命名会话」提示,点击即可就地编辑,回车写入新名称、Esc 保持原名。
|
|
18
|
+
- 改善会话标题重命名输入框的样子:换成与 Claude 一致的样式,画布底色、一圈选区蓝细边、小圆角,宽度随输入的会话名伸展。
|
|
19
|
+
- 改善流式回复期间写回 token 的估算:正文按中文字符、中文标点、拉丁词、数字、空白与标点各段本身的形状计价,替换原先按宽窄字符计数的规则,估算值贴近服务商的分词结果。
|
|
20
|
+
- 把只做分隔的线收细、调淡一档:侧栏账号行上沿、搜索面板页脚、上下文统计、设置行、弹层与菜单分隔线以及正文分隔线改用新的分隔线令牌,宽度收到 0.5px,卡片与输入框的轮廓保持原样。
|
|
21
|
+
- 把配色改为由少量种子颜色与一张共用音阶表在构建时生成:两档各自的强调色、明暗画布与正文链接成为仅有的输入,其余颜色按明度、彩度与透明度的台阶推出;两档的观感保持不变,个别中性色与强调色与此前的取值最多相差几个色差单位。
|
|
22
|
+
- 把模型名与推理等级放进同一个座位框里:两段文字在行里成为一个整体,贴着行的右端、向左生长,悬停底板画在整个框上,模型菜单与档位卡片都从它的右端挂下来;原先单独浮在行上、靠逐帧测量钉在模型按钮旁的档位按钮不再需要定位。
|
|
23
|
+
- 把配色下的强调色选项改成颜色卡:两张品牌卡画出各自的强调色、明暗背景与行内代码色,第三张自定义卡可以改这四个颜色,改一个就整页换上;正在生效的那张卡带选中边框,品牌卡不能点选,跟随当前品牌亮起;指向或聚焦一个圆点时它连同邻近的圆点一起抬起,上方的提示说明它是什么颜色,并随指针在圆点之间移动;「图片颜色」多了强调色一档,此前存下的强调色成为自定义卡的第一个颜色。
|
|
24
|
+
- 改善切换模型时模型名的样子:名字在原地换成新模型名,离开的名字向上穿过一层模糊,新名字从下方升上来,两段文字同时站在座位框里,座位宽度随两段中较宽的一段过渡;选了减弱动效时名字直接换过去。
|
|
12
25
|
|
|
13
26
|
### 问题修复
|
|
14
27
|
|
|
15
28
|
- 修复按住窗口框架上的文字拖动时变成划词的问题:侧栏与会话标题所在的头部不再产生选区,正文、输入框与草稿照旧可以选中。
|
|
29
|
+
- 修复窗口标题栏里的会话标题与它下方那一行控件重叠:行顶原先插进标题自己的框里,标题框随窗口与字号变高时两行字就压在一起;行顶现在停在标题框下方一段固定的空白处,整行始终留在会话头部里。
|
|
30
|
+
- 修复页面缩放不为 100% 时费用窗口比窗口宽:插件的费用明细窗口与单步费用弹窗按视口单位声明尺寸,缩放再乘一次,右侧一列连同它所在的边缘被推出窗口,倍率越高越明显;这两个窗口现在按页面自己的尺寸封顶,卡片比内容窄时窗口里的表格可以横向滚动。
|
|
31
|
+
- 修复页面缩放不为 100% 时右栏面板比它自己的列宽:宿主按窗口像素写下面板宽度与拖拽手柄,缩放又把两者放大一次,面板因此盖住中间列,手柄也离面板可见边缘一截;现在两者按页面的像素重算,面板宽度以框架分给它的那一列为上限。
|
|
32
|
+
- 修复页面缩放不为 100% 时搜索面板比它该在的位置低一截:面板顶部的空白读的是窗口高度的百分比,而面板画在页面自己的像素里;这条空白现在按皮肤量出的页面高度换算。
|
|
33
|
+
- 修复页面缩放切换后宿主的框架与浮层停在旧倍率:换挡时皮肤量出的页面尺寸、宿主框架的列宽与宿主浮层的空间都由偏好写入唤醒,面板从别处写入倍率时它们不动;现在这一次写入本身也会唤醒它们,换挡、回到 100% 与从 100% 离开都立即生效。
|
|
34
|
+
- 修复输入框提示在中文界面里仍读英文的问题:提示文案按宿主的界面语言取词,宿主不画提示的卡片由皮肤补上自己的提示。
|
|
35
|
+
- 修复回复流式生成时在输入框里用输入法打字被打断:过程分组与思考行自己折叠时,原先在每次活动状态变化时替读者按一下标题,按下与抬起焦点都发生在输入法还没上屏的那一刻,浏览器于是把已敲的拼音丢掉、重新弹出候选框。这两处现在等到上屏之后再按,上屏那一刻补做一次折叠。
|
|
36
|
+
- 修复会话已经显示正文时输入框停在正文中间的问题:宿主把输入框的位置与正文区的高度挂在会话根上的 active 标记上,这个标记落到别处时输入框就不再贴在窗口下沿,正文从它下面接着画;现在只要页面上有对话列,输入框照旧贴住窗口下沿、脚下的画布与渐隐带照旧铺满,新会话页不受影响。
|
|
37
|
+
- 修复桌面窗口里 ds-bot 的 Bot 界面占住页面时 Chat / Code 切换消失的问题:切换器改留在 ds-bot 自己的顶行,不再按标题栏里本主题侧栏列的标记定位,从 Bot 界面回到代码界面的路一直都在。
|
|
38
|
+
- 修复大量输出时等待行下方露出正文残行的问题:等待行钉在输入框上方时,它脚下的画布一直铺到输入框顶,滑动中的正文不再从状态行下沿透出。
|
|
39
|
+
- 修复中止生成后过程内容被收起、页面只剩空白的问题:被读者中止的轮次没有最终回答,它的过程组保持展开,工作到停下为止的内容留在页面上。
|
|
40
|
+
- 修复推理等级滑块拖到最高或最低档后无法往回拖的问题:指针越过轨道端点时滑钮停在端点、手势继续,往回拖仍跟着指针,直到松开才定在该档,卡片保持打开。
|
|
41
|
+
- 修复重绘消息导航在宿主轨标不再写 `data-index` 的宿主上点击无反应的问题:轨标数量与列表一致时按轨道自己的顺序取标记,宿主写下的位置照旧优先。
|
|
42
|
+
- 修复切换会话时费用金额停在币种符号加短横的占位上的问题:金额的请求还在路上时离开这场会话,回到会话后照常重新索取,金额落在原位。
|
|
43
|
+
- 修复选完模型、宿主重新枚举目录期间座位短暂变空的问题:模型名与推理等级留在原处,打开的卡片不移动,宿主答复到达时两者一同更新。
|
|
44
|
+
- 修复切换模型时模型名横向滑动的问题:旧名字与新名字的右边都停在座位框的右端,座位框向左移动宽度时文字不再跟着移动,换字只在竖直方向上发生。
|
|
45
|
+
- 修复「收进上下文」档位下统计条可能盖住输入区底行控件的问题:统计条退到卡片下面只作定位层,卡片与底行画在它上面,计量圆环与手机插件的信息条仍立在卡片之上。
|
|
46
|
+
|
|
47
|
+
### 其他变更
|
|
48
|
+
|
|
49
|
+
- 删除十二个没有调用方的导出,把注释里三十二处指向引擎迁移前位置的路径改成现址,四条故障补丁按当前代码重记,构建里「滚动位置只由 scroll-owner 写入」那条检查按引擎所在的位置恢复生效,AGENTS.md 的四处陈述与实现一致,工作树的删除工具接受 .agents/worktrees/,插件的表现与断言不变。
|
|
50
|
+
- 新增本地工单系统:每个任务在 `.debug/work/` 下拥有自己的目录、索引与临时文件,测量值随工单退役,关闭时整目录删除,孤儿目录与散落临时文件由 `npm run work -- gc` 清理。
|
|
16
51
|
|
|
17
|
-
<h3 id="en-
|
|
52
|
+
<h3 id="en-0.18.3">New Features</h3>
|
|
53
|
+
|
|
54
|
+
- Add the effort accent colour option, which paints the reasoning-effort button by the level in force: a switched-off level and the model's own default level stay grey, each thinking level takes its own step between the blue and the violet, and the ladder climbs toward the violet.
|
|
55
|
+
|
|
56
|
+
### Improvements
|
|
18
57
|
|
|
19
58
|
- Improve renaming a session from its title: the pointer over the header title raises a plate and a tip naming the press, a click opens an editor in place, Enter writes the new name and Escape keeps the old one.
|
|
59
|
+
- Improve the field a session title is renamed in: it takes Claude's own face — the canvas fill, a thin ring in the selection blue and a small radius — and grows with the name being typed.
|
|
60
|
+
- Improve the written-back token estimate while an answer streams: the text is now priced by the shape of its runs — CJK characters and marks, Latin words, digits, whitespace, punctuation — in place of the wide/narrow character rule, so the figure stays close to the provider's own count.
|
|
61
|
+
- Bring every line that only separates down one finer, quieter step: the account row's upper edge, the search panel's foot, the context stats, the settings rows, the menu and popover separators and the transcript's rule take the new divider token at 0.5px, while a card's and a field's outline keep theirs.
|
|
62
|
+
- Generate the palette at build time from a handful of seed colours and one shared tone ladder: each look's accent, its light and dark canvases and its prose link are the only inputs, and every other colour follows a lightness, chroma and alpha step; both looks keep their appearance, with individual neutral and accent colours a few ΔE00 away from their former values.
|
|
63
|
+
- Put the model's name and the reasoning level in one seat box: the two texts are a single item in the row, standing against the row's right end and growing leftward, with the hover plate on the whole box and both the model menu and the effort card hanging from that right end. The level's button no longer floats over the row on coordinates measured every frame.
|
|
64
|
+
- Replace the accent option under Colours with colour cards: the two brand cards draw their accent, light and dark backgrounds and inline-code colour, and the third card lets the reader change those four, repainting the page as soon as one changes; the card in effect wears a selected border, and a brand card, which cannot be picked, lights up while its brand is the current one; pointing at or focusing a disc lifts it along with its neighbours, and a hint above names its colour and follows the pointer from disc to disc; the image-colour choice gains an accent option, and a stored accent becomes the first colour of the reader's card.
|
|
65
|
+
- Improve how the model's name changes when another model is picked: the name swaps in place — the words leaving rise through a blur while the new name comes up from below, both standing in the seat box at once, with the seat travelling to the wider of the two as it runs; with reduced motion the name simply changes.
|
|
20
66
|
|
|
21
67
|
### Bug Fixes
|
|
22
68
|
|
|
23
69
|
- Fix a drag that starts on the window's own chrome turning into word selection: the sidebar and the conversation header take no selection, while the transcript, the fields and the draft still do.
|
|
70
|
+
- Fix the conversation title in the window's caption row overlapping the row of controls below it: the row's top was tucked into the title's own box, so a taller window or type size pressed the two lines together. The row's top now stands a fixed gap below the title's box, keeping the row inside the conversation header.
|
|
71
|
+
- Fix the cost meter's fee windows standing wider than the window at a page scale other than 100%: both state their size in viewport units, which the scale multiplies once more, so the right column and the edge it sits on are pushed out of the window and the higher the factor the further. Both are now capped with the page's own size, and a card narrower than its rows lets the table inside scroll sideways.
|
|
72
|
+
- Fix the right panel standing wider than the column the frame gives it at a page scale other than 100%: the host states the panel's width and the drag handle's place in the window's pixels, and the scale enlarges both once more, so the panel covers the centre and the handle leaves the panel's visible edge. Both are recomputed in the page's pixels here, with the width the frame gives that column as the panel's ceiling.
|
|
73
|
+
- Fix the search panel standing lower than its place at a page scale other than 100%: the air above it was a percentage of the window's height while the panel is drawn in the page's pixels, and that gap now converts through the page height the skin measures.
|
|
74
|
+
- Fix the host frame and the host's floating cards keeping the old factor after the page scale changes: the page's own size, the frame's columns and the space the host's cards are given were woken by a preference write alone, so a factor written from anywhere else left them as they were. The write itself now wakes them, so leaving 100%, switching between factors and coming back all take effect at once.
|
|
75
|
+
- Fix the composer's hint reading English under a Chinese interface: the words now follow the host's interface language, and the skin supplies its own hint where the host draws none, as on a card holding an attachment.
|
|
76
|
+
- Fix input-method typing in the composer being cut short while an answer streams: when a process group or a thinking row folded itself, the skin pressed its header for the reader on every activity change, and the focus leaving and returning landed mid-composition, so the browser dropped the letters typed so far and opened the candidate window again. Both now wait for the composition to land, and settle once it has.
|
|
77
|
+
- Fix the composer coming to rest in the middle of the transcript once a conversation is showing: the host grants the composer's place and the transcript's height from the conversation root's active mark alone, so a mark landing elsewhere left the card off the window's bottom edge with rows painting on below it. While a message column is mounted the card now keeps the window's bottom edge, the canvas bar and the fade band with it, and the new-conversation page is untouched.
|
|
78
|
+
- Fix the Chat / Code switch disappearing when ds-bot's Bot surface has the page in the desktop window: the switch now stays in ds-bot's own top row instead of taking the caption strip through this theme's sidebar-column mark, so the way back to the code interface stays on screen.
|
|
79
|
+
- Fix a sliver of the answer showing under the waiting line while a large answer streams in: while the line is pinned over the composer, the canvas under it now reaches the composer's top, so the text the stream slide is bringing up no longer shows below the line.
|
|
80
|
+
- Fix the page collapsing to a blank band when a turn is stopped: a turn the reader stopped has no final answer, so its process group stays open and the work up to the stop stays on the page.
|
|
81
|
+
- Fix the reasoning-effort slider sticking at its strongest or weakest level after the pointer overshot the track's end: the knob now stays at the end while the gesture goes on, follows the pointer back, and settles on the level under it at the release, with the card still open.
|
|
82
|
+
- Fix the redrawn message navigator ignoring a press on hosts whose rail marks carry no `data-index`: while the rail holds as many marks as the list has turns, a mark is now taken by its place in the rail, and a place the host states is still read first.
|
|
83
|
+
- Fix the cost segment staying on the currency's dash after a session switch: an answer still on its way when the reader leaves the conversation no longer blocks the next ask, and the total lands in the segment's place.
|
|
84
|
+
- Fix the seat blanking while the host re-enumerates the directory after a model is picked: the model's name and the reasoning level stay where they are, the open card holds still, and both move together when the host answers.
|
|
85
|
+
- Fix the model's name sliding sideways while another model is picked: the outgoing and arriving names both hold the seat box's right end, so the box travelling to the other width leaves the words where they stand and the swap stays vertical.
|
|
86
|
+
- Fix the statistics dock being able to draw over the composer row's controls in the "into the context" position: the dock now sits below the card as a positioning layer, the card and its row paint above it, and the meter and a mobile plugin's strip still stand above the card.
|
|
87
|
+
|
|
88
|
+
### Chores
|
|
89
|
+
|
|
90
|
+
- Remove twelve exported symbols with no caller, rewrite thirty-two comment references that still named the files' pre-migration paths, rebase four defect patches onto the current code, restore the build check that only the scroll owner writes a scroll position at its engine path, bring four statements in AGENTS.md in line with the implementation, and let the worktree remover accept .agents/worktrees/, with the plugin's behavior and assertions unchanged.
|
|
91
|
+
- Add a local work-order system: each task owns a directory, index entry and temporary files under `.debug/work/`, measurements retire with the order, closing deletes the directory, and `npm run work -- gc` clears orphaned directories and loose temporary files.
|
|
24
92
|
|
|
25
93
|
## [0.18.2] - 2026-10-21
|
|
26
94
|
|
|
@@ -5,7 +5,7 @@ under `packages/client/src/features/sodium/` (compiled into `lib/client.js`) and
|
|
|
5
5
|
`packages/engine/src/sheet-rewrite.ts`. Those files are licensed under the
|
|
6
6
|
PolyForm Shield License 1.0.0 — read, change and redistribute them, but not to
|
|
7
7
|
provide a product competing with this plugin. The terms travel with the package
|
|
8
|
-
in `packages/client/src/features/sodium/LICENSE`, and the
|
|
8
|
+
in `packages/client/src/features/sodium/LICENSE`, and the repository's `LICENSE` carries
|
|
9
9
|
the MIT license that covers everything else. Releases up to and including 0.17.0
|
|
10
10
|
were published under the MIT license; this license applies to the releases
|
|
11
11
|
published after it.
|