dsh-telegram-style 0.0.0-stage → 0.1.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.
- package/CHANGELOG.md +20 -0
- package/LICENSE +37 -0
- package/README.en.md +62 -0
- package/README.md +61 -2
- package/THIRD_PARTY_NOTICES.md +327 -0
- package/cordis.patch.yml +4 -0
- package/docs/STYLE.md +918 -0
- package/lib/assets/0789d53f7baa.js.br +0 -0
- package/lib/assets/2510fbe7044d.webp +0 -0
- package/lib/assets/427e78a89cb9.js.br +0 -0
- package/lib/assets/4447fd6d583e.js.br +0 -0
- package/lib/assets/675eb532fcd5.js.br +0 -0
- package/lib/assets/777f8d7a0f69.js.br +0 -0
- package/lib/assets/be2a6e14c525.webp +0 -0
- package/lib/assets/f6560dec3a6b.js.br +0 -0
- package/lib/assets/manifest.json +75 -0
- package/lib/client.js +23 -0
- package/lib/fonts/AUTHORS.txt +10 -0
- package/lib/fonts/JetBrainsMonoItalicVariable.ttf +0 -0
- package/lib/fonts/JetBrainsMonoVariable.ttf +0 -0
- package/lib/fonts/OFL.txt +93 -0
- package/lib/host/cache-file.js +71 -0
- package/lib/host/harness-home.js +19 -0
- package/lib/host/hdsl.js +33 -0
- package/lib/host/index.js +20 -0
- package/lib/host/json-document.js +7 -0
- package/lib/host/package-root.js +27 -0
- package/lib/host/prices-document.js +172 -0
- package/lib/host/prices.js +153 -0
- package/lib/host/routes.js +460 -0
- package/lib/host/search.js +258 -0
- package/lib/host/session-cost.js +277 -0
- package/lib/host/settings.js +153 -0
- package/lib/host/usage-fold.js +141 -0
- package/lib/host/usage-ledger.js +79 -0
- package/lib/host/usage-record.js +238 -0
- package/lib/host/usage-summary.js +118 -0
- package/lib/host/usage.js +171 -0
- package/lib/model-descriptions.json +629 -0
- package/lib/peakrate-catalog.json +1601 -0
- package/lib/prices.json +126 -0
- package/lib/telegram-style-mark.svg +15 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +107 -4
- package/skin.json +11 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
本项目基于 [dsh-claude-style](https://github.com/Nwflower/dsh-claude-style) 的 `84a74d73` 提交修改,上游的更新记录不在此列出。
|
|
4
|
+
|
|
5
|
+
## [Unreleased]
|
|
6
|
+
|
|
7
|
+
## [0.1.0] - 2026-11-11
|
|
8
|
+
|
|
9
|
+
[中文](#cn-0.1.0) | [English](#en-0.1.0)
|
|
10
|
+
|
|
11
|
+
<h3 id="cn-0.1.0">新增功能</h3>
|
|
12
|
+
|
|
13
|
+
- 新增 Telegram 网页版风格的界面:墙纸与浮动卡片、会话行、气泡与状态勾、悬浮输入条、三套配色(经典、玻璃、粉色)、线稿图标、Telegram 式菜单与 Toast。
|
|
14
|
+
- 新增贴纸桌宠:一张贴纸站在输入条上沿,跟着会话的状态做动作;单击冒爱心,双击跳一下。可在插件设置的"外观"页关闭,或只在首页出现。
|
|
15
|
+
|
|
16
|
+
<h3 id="en-0.1.0">New Features</h3>
|
|
17
|
+
|
|
18
|
+
- Add a Telegram Web style interface: a wallpaper with floating cards, session rows, bubbles with status ticks, a floating input bar, three palettes (Classic, Glass, Pink), line-art icons, and Telegram-style menus and toasts.
|
|
19
|
+
- Add a sticker mascot that stands on the input bar's top edge and acts out the chat's state; a click lets hearts float up and a double click makes it hop. It can be turned off, or kept to the home page, on the plugin settings' Appearance page.
|
|
20
|
+
|
package/LICENSE
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Nwflower
|
|
4
|
+
Copyright (c) 2026 xmlans
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
Sticker artwork notice: the sticker mascot's images —
|
|
27
|
+
`packages/assets/src/mascot/sticker/sticker.webp`,
|
|
28
|
+
`packages/assets/src/mascot/sticker/sticker-source.png` and their copies inlined
|
|
29
|
+
into or served from `lib/` — are the work of xmlans, all rights reserved. They
|
|
30
|
+
are distributed with this plugin but are **not** covered by the MIT license
|
|
31
|
+
above.
|
|
32
|
+
|
|
33
|
+
Font files notice: `packages/assets/src/fonts/JetBrainsMonoVariable.ttf` and
|
|
34
|
+
`packages/assets/src/fonts/JetBrainsMonoItalicVariable.ttf` are JetBrains Mono,
|
|
35
|
+
distributed under the SIL Open Font License 1.1
|
|
36
|
+
(`packages/assets/src/fonts/OFL.txt`; the package carries them under
|
|
37
|
+
`lib/fonts/`).
|
package/README.en.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# dsh-telegram-style
|
|
2
|
+
|
|
3
|
+
A Telegram Web style theme for DeepSeek Harness: a floating chat list on a wallpaper, session rows, message bubbles, a floating input bar and three palettes.
|
|
4
|
+
|
|
5
|
+
> Unofficial work, not affiliated with Telegram, DeepSeek or Anthropic. Modified from [dsh-claude-style](https://github.com/Nwflower/dsh-claude-style) (MIT, © 2026 Nwflower).
|
|
6
|
+
|
|
7
|
+
<table>
|
|
8
|
+
<tr>
|
|
9
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-home-light.png" alt="Classic palette home page, light" /></td>
|
|
10
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-home-dark.png" alt="Classic palette home page, dark" /></td>
|
|
11
|
+
</tr>
|
|
12
|
+
<tr>
|
|
13
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-conversation-light.png" alt="Classic palette Markdown conversation, light" /></td>
|
|
14
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-conversation-dark.png" alt="Classic palette Markdown conversation, dark" /></td>
|
|
15
|
+
</tr>
|
|
16
|
+
</table>
|
|
17
|
+
|
|
18
|
+
## What it does
|
|
19
|
+
|
|
20
|
+
- **Wallpaper**: a plain colour with a pattern laid over it, the pattern tinted per palette. The Appearance page of the plugin settings can turn the pattern off and keep only the colour.
|
|
21
|
+
- **Floating cards**: the chat list, the right panel, the header and the input bar float on the wallpaper; on a narrow window the cards go edge to edge.
|
|
22
|
+
- **Session rows**: a coloured initial avatar, the time, a second line of status, and badges.
|
|
23
|
+
- **Conversation**: a solid header; bubbles with Telegram's shape and small tail, sent messages carry a time and a status tick; Markdown, code and tables follow the bubble's look.
|
|
24
|
+
- **Input bar**: a floating rounded bar with 48px send and stop buttons, a pill-shaped tool row, an accent-coloured caret, and a send animation that flies the bubble from the bar into the conversation.
|
|
25
|
+
- **Details**: line-art icons, Telegram-style menus and toasts, thin scrollbars and a click ripple.
|
|
26
|
+
- **Sticker mascot**: a sticker stands on the input bar's top edge and acts out the chat's state (thinking, working, waiting for your approval, an error, done, asleep); a click lets hearts float up and a double click makes it hop. The Appearance page of the plugin settings can turn it off, or keep it to the home page.
|
|
27
|
+
|
|
28
|
+
## Palettes
|
|
29
|
+
|
|
30
|
+
- Classic: Telegram's default green wallpaper, white cards in light, a violet tone in dark.
|
|
31
|
+
- Glass: a blue-violet wallpaper with translucent frosted cards.
|
|
32
|
+
- Pink: a light pink wallpaper with deeper pink patterns; bubbles and buttons are in blues.
|
|
33
|
+
|
|
34
|
+
Every palette has a light and a dark side that follow DeepSeek Harness's own light/dark switch. Pick one with the segmented control on the Appearance page of the plugin settings.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
WebUI:
|
|
39
|
+
|
|
40
|
+
dsh plugin --profile web add <path to dsh-telegram-style-0.1.0.tgz>
|
|
41
|
+
|
|
42
|
+
Desktop: use the dsh that ships with the desktop app, at `%LOCALAPPDATA%\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd`:
|
|
43
|
+
|
|
44
|
+
"%LOCALAPPDATA%\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add <path to the tgz>
|
|
45
|
+
|
|
46
|
+
Then enable "Telegram Style" in DeepSeek Harness's skin centre. It can be installed next to dsh-claude-style; one is enabled at a time.
|
|
47
|
+
|
|
48
|
+
## Known limitations
|
|
49
|
+
|
|
50
|
+
- The language label at the top left of a code block is not restyled and stays as the host draws it: the host's code block header has no stable hook.
|
|
51
|
+
- Workspace rows keep the upstream's compact style and may look out of step between the taller session rows.
|
|
52
|
+
- Compared with upstream, the session row's "ongoing" indicator and the sidebar density (relaxed / compact) preferences are removed; the running state shows on the row's second line instead.
|
|
53
|
+
- The Glass palette uses `backdrop-filter`, so scrolling can slow down in a very long session; switch to Classic or Pink if it does.
|
|
54
|
+
- With dsh-chat-ux installed, this theme's matching chat features (folding, token reveal, send animation, follow and caret) stand down for it.
|
|
55
|
+
|
|
56
|
+
## License
|
|
57
|
+
|
|
58
|
+
- Code: MIT, see [LICENSE](LICENSE).
|
|
59
|
+
- JetBrains Mono ships under the SIL OFL 1.1.
|
|
60
|
+
- The wallpaper pattern is supplied by the project's maintainer, who may redistribute it; see [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
|
61
|
+
- The sticker mascot's artwork is the author's, all rights reserved, and not covered by the MIT license; see [LICENSE](LICENSE).
|
|
62
|
+
- Third-party sources are listed in [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
package/README.md
CHANGED
|
@@ -1,3 +1,62 @@
|
|
|
1
|
-
#
|
|
1
|
+
# dsh-telegram-style
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DeepSeek Harness 的 Telegram 网页版风格主题:墙纸上的浮动聊天列表、会话行、消息气泡、悬浮输入条和三套配色。
|
|
4
|
+
|
|
5
|
+
> 非官方作品,与 Telegram、DeepSeek、Anthropic 均无关联。本项目基于 [dsh-claude-style](https://github.com/Nwflower/dsh-claude-style)(MIT,© 2026 Nwflower)修改。
|
|
6
|
+
|
|
7
|
+
<table>
|
|
8
|
+
<tr>
|
|
9
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-home-light.png" alt="经典配色的首页,亮色" /></td>
|
|
10
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-home-dark.png" alt="经典配色的首页,暗色" /></td>
|
|
11
|
+
</tr>
|
|
12
|
+
<tr>
|
|
13
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-conversation-light.png" alt="经典配色的 Markdown 对话,亮色" /></td>
|
|
14
|
+
<td align="center" width="50%"><img src="./docs/screenshots/telegram-conversation-dark.png" alt="经典配色的 Markdown 对话,暗色" /></td>
|
|
15
|
+
</tr>
|
|
16
|
+
</table>
|
|
17
|
+
|
|
18
|
+
## 有什么
|
|
19
|
+
|
|
20
|
+
- **墙纸**:纯色底,上面铺一层图案,图案按配色染色。在插件设置的"外观"页可以关掉图案,只留纯色。
|
|
21
|
+
- **浮动卡片**:聊天列表、右侧面板、标题栏、输入条都是浮在墙纸上的卡片;窄屏下卡片贴边铺满。
|
|
22
|
+
- **会话行**:彩色首字母头像、时间、第二行状态、角标。
|
|
23
|
+
- **对话**:实色标题栏;气泡有 Telegram 的外形和小尾巴,发出的消息带时间和状态勾;Markdown、代码、表格的样式跟着气泡走。
|
|
24
|
+
- **输入条**:悬浮的圆角输入条,48px 的发送键和停止键,工具行是胶囊,光标取强调色,发送时气泡从输入条飞到对话里。
|
|
25
|
+
- **细节**:线稿图标、Telegram 式的菜单和 Toast、细滚动条、点击波纹。
|
|
26
|
+
- **贴纸桌宠**:一张贴纸站在输入条上沿,跟着会话的状态做动作(思考、干活、等你批准、出错、完成、睡着);单击冒爱心,双击跳一下。在插件设置的"外观"页可以关掉,也可以只让它出现在首页。
|
|
27
|
+
|
|
28
|
+
## 配色
|
|
29
|
+
|
|
30
|
+
- 经典:Telegram 默认的绿色墙纸,亮色白卡片,暗色紫调。
|
|
31
|
+
- 玻璃:蓝紫墙纸,半透明磨砂卡片。
|
|
32
|
+
- 粉色:浅粉墙纸配深粉图案,气泡和按钮是蓝色系。
|
|
33
|
+
|
|
34
|
+
三套配色都有亮色和暗色,跟随 DeepSeek Harness 自己的亮暗切换。在插件设置的"外观"页用分段控件挑选。
|
|
35
|
+
|
|
36
|
+
## 安装
|
|
37
|
+
|
|
38
|
+
WebUI:
|
|
39
|
+
|
|
40
|
+
dsh plugin --profile web add <dsh-telegram-style-0.1.0.tgz 的路径>
|
|
41
|
+
|
|
42
|
+
桌面版:用桌面版自带的 dsh,路径在 `%LOCALAPPDATA%\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd`:
|
|
43
|
+
|
|
44
|
+
"%LOCALAPPDATA%\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add <tgz 路径>
|
|
45
|
+
|
|
46
|
+
装好后在 DeepSeek Harness 的皮肤中心启用"Telegram Style"。和 dsh-claude-style 可以同时安装,同一时刻启用一个。
|
|
47
|
+
|
|
48
|
+
## 已知限制
|
|
49
|
+
|
|
50
|
+
- 代码块左上角的语言标签没有改样式,保持宿主原样:宿主的代码块标题栏没有稳定的挂点。
|
|
51
|
+
- 工作区行仍是上游的紧凑样式,夹在较高的会话行之间可能不太协调。
|
|
52
|
+
- 与上游相比,会话行的"进行中"指示和侧栏疏密(宽松 / 紧凑)两项偏好已经删除,运行状态改由会话行第二行显示。
|
|
53
|
+
- 玻璃配色用了 `backdrop-filter`,特别长的会话里滚动可能变慢;觉得卡可以换成经典或粉色。
|
|
54
|
+
- 装了 dsh-chat-ux 时,本主题对应的聊天功能(折叠、逐字显示、发送动画、跟随、光标)会让位给它。
|
|
55
|
+
|
|
56
|
+
## 许可
|
|
57
|
+
|
|
58
|
+
- 代码:MIT,见 [LICENSE](LICENSE)。
|
|
59
|
+
- JetBrains Mono:按 SIL OFL 1.1 随包分发。
|
|
60
|
+
- 墙纸图案由项目维护者提供,可再分发,见 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
|
|
61
|
+
- 贴纸桌宠的图版权归作者,不适用 MIT,见 [LICENSE](LICENSE)。
|
|
62
|
+
- 第三方来源见 [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md)。
|
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
# Third-Party Notices
|
|
2
|
+
|
|
3
|
+
本文件列出 dsh-telegram-style 中来自第三方的代码和素材。本项目基于 dsh-claude-style(MIT,© 2026 Nwflower)修改。
|
|
4
|
+
|
|
5
|
+
This package includes material from the projects below. Each keeps its own license; the MIT license of this package does not relicense it.
|
|
6
|
+
|
|
7
|
+
## dsh-chat-ux
|
|
8
|
+
|
|
9
|
+
The chat area's folding (`packages/client/src/features/chat-fold/`), the token reveal (`packages/client/src/features/chat-reveal/`), the send flight (`packages/client/src/features/chat-send/`), the enhanced follow and the capped process group's follow (`packages/client/src/features/chat-follow/`) and the composer caret (`packages/client/src/features/caret/`) are ported from dsh-chat-ux. The ported source files name it in their headers, and each of those features stands down while that plugin is on the page.
|
|
10
|
+
|
|
11
|
+
The context meter's pie (`packages/client/src/features/context-stats/context-meter-pie.ts`) is derived the same way: the occupied share drawn as a pie in the reading's own colour, painted as the trigger's own background image, and the seam cut by stroking a sector's own path are taken from that plugin; the two sectors standing on one centre, the step that follows the split and the seam shared between their two strokes are this plugin's. The browser half draws it while that plugin is off the page and leaves the host's ring standing while it is on.
|
|
12
|
+
|
|
13
|
+
Source: <https://github.com/alm-allen/dsh-chat-ux>
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
MIT License
|
|
17
|
+
|
|
18
|
+
Copyright (c) 2026 Alm
|
|
19
|
+
|
|
20
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
21
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
22
|
+
in the Software without restriction, including without limitation the rights
|
|
23
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
24
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
25
|
+
furnished to do so, subject to the following conditions:
|
|
26
|
+
|
|
27
|
+
The above copyright notice and this permission notice shall be included in all
|
|
28
|
+
copies or substantial portions of the Software.
|
|
29
|
+
|
|
30
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
31
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
32
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
33
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
34
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
35
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
36
|
+
SOFTWARE.
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## transitions.dev
|
|
40
|
+
|
|
41
|
+
The "Text states swap" transition (`packages/client/src/features/chat-wait/chat-wait.ts` and the `dsh-tg-chat-wait-label` rules in its stylesheet, and the operation label of a shared file row in `packages/client/src/features/chat-files/` with the `dsh-tg-file-op-*` rules in its stylesheet) is ported the same way: its three-phase sequence (leave upward with a blur, change the text out of sight, enter from below), its duration, shift, blur and easing tokens as this package's own custom properties, and the reflow that releases the entry pose. The snippet's `prefers-reduced-motion` guard is answered by the animation choice this skin resolves onto `<body>` (D40), which already folds the system setting in.
|
|
42
|
+
|
|
43
|
+
The "Reasoning stream" transition (`packages/client/src/features/chat-fold/reasoning-stream.ts` and the `data-dsh-tg-reason-window` rules in that feature's `fold-motion.css`) is ported as well: its window (a few lines tall with a mask at each edge rather than painted gradients), its hold, step, lines, fade and easing tokens, and the stepping clock — read as live text, so there is no copy and no wrap and the steps stop at the newest line.
|
|
44
|
+
|
|
45
|
+
Six more are ported the same way, each into this package's own classes, attributes and motion tokens, with the snippet's `prefers-reduced-motion` guard answered by the skin's animation choice: "Menu dropdown" (the popover cards in `packages/client/src/shared/popover.css` and the `dsh-tg-dropdown-in` preset in `packages/client/src/shared/motion.css` — its pre-open and closing scales and its curve, the closing state carried by the separate `scale` property instead of a class), "Page side-by-side" (the settings tabs, `packages/client/src/features/settings/` — the page leaving is a still copy of its rows), "Notification badge" (the waiting line's overtime badge, `packages/client/src/features/chat-wait/` — the slide and the pop as `translate` and `scale` on the one pill), "Skeleton loader and reveal" (the home usage panel, `packages/client/src/features/home/` — the placeholder and the figure being one element, its fill fades while the figure comes out of the blur), "Texts reveal" (the home greeting, `packages/client/src/theme/hero.css` — the brand mark and the greeting as its two lines) and "Toggle" (the settings switches — its double-bounce keyframes, armed by the first press).
|
|
46
|
+
|
|
47
|
+
The colour wash the waiting line can wear instead of the band (`packages/client/src/shared/motion.css`, the `dsh-tg-sweep` and `dsh-tg-wash` presets in that sheet and the `--dsh-tg-wash-*` custom properties) is the paint transitions.dev serves on its own pages as "Pro gradient text" (`.title-pro` on <https://transitions.dev/agent.html>): its seven radial washes over a grey base ramp as inline SVG, its 180% layer sizes, and its orbit and hue-rotation periods, renamed into this package's own custom properties and motion tokens, with the `prefers-reduced-motion` guard answered by the skin's animation choice (D40) as everywhere else.
|
|
48
|
+
|
|
49
|
+
The "Input clear with dissolve" transition (the search field at the top of the model picker's second level, `packages/client/src/features/model/sub-menu.ts` with the `dsh-tg-model-search-*` rules in its stylesheet) is ported the way the rest are: the typed words fly down through a blur while a streak ignites under each of them and the placeholder falls in from above, with the per-frame envelope the snippet writes by hand (its streak cannot be a keyframe), its two halves, its fly, blur and glow-delay times and its curve as this package's motion tokens, and its multiply/screen blend read off the reader's palette. Its `prefers-reduced-motion` guard is answered by the skin's animation choice, which the module asks before it starts a clear.
|
|
50
|
+
|
|
51
|
+
The "Card resize" transition (the model picker's second level taking the height of the list a query leaves, `packages/client/src/features/model/sub-menu.ts` with the `dsh-tg-model-popover-sub` rule in its stylesheet) is ported as the width and height tween it is, with its duration as this package's `--dsh-tg-duration-resize` and its curve the settling one the other surface transitions already read. A height cannot be interpolated into `auto`, so the two ends are written as lengths around the rebuild and the height returns to the content once the travel lands. Its `prefers-reduced-motion` guard is answered by the skin's animation choice (D40).
|
|
52
|
+
|
|
53
|
+
Source: <https://transitions.dev/detail.html?t=text-states-swap> · <https://transitions.dev/detail.html?t=reasoning-stream> · <https://transitions.dev/detail.html?t=menu-dropdown> · <https://transitions.dev/detail.html?t=page-side-by-side> · <https://transitions.dev/detail.html?t=notification-badge> · <https://transitions.dev/detail.html?t=skeleton-loader-and-reveal> · <https://transitions.dev/detail.html?t=texts-reveal> · <https://transitions.dev/detail.html?t=toggle> · <https://transitions.dev/detail.html?t=pro-gradient-text> · <https://transitions.dev/detail.html?t=input-clear-dissolve> · <https://transitions.dev/detail.html?t=card-resize> · <https://github.com/Jakubantalik/transitions.dev>
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Transitions.dev License
|
|
57
|
+
Copyright (c) 2026 Jakub Antalik / Transitions.dev
|
|
58
|
+
|
|
59
|
+
Summary: you (and any coding agent working for you) may use the transitions
|
|
60
|
+
and skills in this repository in unlimited personal and commercial projects,
|
|
61
|
+
modify them freely, and ship them to your users. The tooling is MIT. The one
|
|
62
|
+
restriction is that you may not redistribute the transitions library itself
|
|
63
|
+
as a competing product.
|
|
64
|
+
|
|
65
|
+
Permission is granted, free of charge, to any person or automated agent
|
|
66
|
+
obtaining these transitions to:
|
|
67
|
+
|
|
68
|
+
- use them in unlimited personal and commercial projects;
|
|
69
|
+
- copy, paste, and modify them freely;
|
|
70
|
+
- ship them to end users as part of your own product or website;
|
|
71
|
+
- install and run the skills in any coding agent (Claude Code, Cursor,
|
|
72
|
+
GitHub Copilot, Codex, Gemini CLI, and others) to apply the transitions
|
|
73
|
+
to your code.
|
|
74
|
+
|
|
75
|
+
Restriction: you may not redistribute the library itself. You may not
|
|
76
|
+
repackage, resell, or publish the collection (or a substantial part of it) as
|
|
77
|
+
a competing transitions library, motion pack, or animation kit. Use the
|
|
78
|
+
transitions in your products, not as a product of their own.
|
|
79
|
+
|
|
80
|
+
Full terms: https://transitions.dev/terms.html
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## zai-org/ZCode
|
|
84
|
+
|
|
85
|
+
The figures on a file-change row (`packages/client/src/features/chat-files/` and the `dsh-tg-file-roll-*` rules in its stylesheet) turn the way ZCode's metric flip does (its UI package's `flip-metric-value.tsx`): one short turn per update, only the characters whose own digit changed, a fixed-width slot per character with the perspective on the slot, 160 ms, and an animation choice that writes the value in place instead of turning it.
|
|
86
|
+
|
|
87
|
+
Source: <https://github.com/zai-org/ZCode> · <https://github.com/zai-org/ZCode/blob/main/packages/ui/src/components/ui/flip-metric-value.tsx>
|
|
88
|
+
|
|
89
|
+
License: Apache-2.0.
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
Apache License
|
|
93
|
+
Version 2.0, January 2004
|
|
94
|
+
http://www.apache.org/licenses/
|
|
95
|
+
|
|
96
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
97
|
+
|
|
98
|
+
1. Definitions.
|
|
99
|
+
|
|
100
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
101
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
102
|
+
|
|
103
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
104
|
+
the copyright owner that is granting the License.
|
|
105
|
+
|
|
106
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
107
|
+
other entities that control, are controlled by, or are under common
|
|
108
|
+
control with that entity. For the purposes of this definition,
|
|
109
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
110
|
+
direction or management of such entity, whether by contract or
|
|
111
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
112
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
113
|
+
|
|
114
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
115
|
+
exercising permissions granted by this License.
|
|
116
|
+
|
|
117
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
118
|
+
including but not limited to software source code, documentation
|
|
119
|
+
source, and configuration files.
|
|
120
|
+
|
|
121
|
+
"Object" form shall mean any form resulting from mechanical
|
|
122
|
+
transformation or translation of a Source form, including but
|
|
123
|
+
not limited to compiled object code, generated documentation,
|
|
124
|
+
and conversions to other media types.
|
|
125
|
+
|
|
126
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
127
|
+
Object form, made available under the License, as indicated by a
|
|
128
|
+
copyright notice that is included in or attached to the work
|
|
129
|
+
(an example is provided in the Appendix below).
|
|
130
|
+
|
|
131
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
132
|
+
form, that is based on (or derived from) the Work and for which the
|
|
133
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
134
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
135
|
+
of this License, Derivative Works shall not include works that remain
|
|
136
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
137
|
+
the Work and Derivative Works thereof.
|
|
138
|
+
|
|
139
|
+
"Contribution" shall mean any work of authorship, including
|
|
140
|
+
the original version of the Work and any modifications or additions
|
|
141
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
142
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
143
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
144
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
145
|
+
means any form of electronic, verbal, or written communication sent
|
|
146
|
+
to the Licensor or its representatives, including but not limited to
|
|
147
|
+
communication on electronic mailing lists, source code control systems,
|
|
148
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
149
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
150
|
+
excluding communication that is conspicuously marked or otherwise
|
|
151
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
152
|
+
|
|
153
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
154
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
155
|
+
subsequently incorporated within the Work.
|
|
156
|
+
|
|
157
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
158
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
159
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
160
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
161
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
162
|
+
Work and such Derivative Works in Source or Object form.
|
|
163
|
+
|
|
164
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
165
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
166
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
167
|
+
(except as stated in this section) patent license to make, have made,
|
|
168
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
169
|
+
where such license applies only to those patent claims licensable
|
|
170
|
+
by such Contributor that are necessarily infringed by their
|
|
171
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
172
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
173
|
+
institute patent litigation against any entity (including a
|
|
174
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
175
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
176
|
+
or contributory patent infringement, then any patent licenses
|
|
177
|
+
granted to You under this License for that Work shall terminate
|
|
178
|
+
as of the date such litigation is filed.
|
|
179
|
+
|
|
180
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
181
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
182
|
+
modifications, and in Source or Object form, provided that You
|
|
183
|
+
meet the following conditions:
|
|
184
|
+
|
|
185
|
+
(a) You must give any other recipients of the Work or
|
|
186
|
+
Derivative Works a copy of this License; and
|
|
187
|
+
|
|
188
|
+
(b) You must cause any modified files to carry prominent notices
|
|
189
|
+
stating that You changed the files; and
|
|
190
|
+
|
|
191
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
192
|
+
that You distribute, all copyright, patent, trademark, and
|
|
193
|
+
attribution notices from the Source form of the Work,
|
|
194
|
+
excluding those notices that do not pertain to any part of
|
|
195
|
+
the Derivative Works; and
|
|
196
|
+
|
|
197
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
198
|
+
distribution, then any Derivative Works that You distribute must
|
|
199
|
+
include a readable copy of the attribution notices contained
|
|
200
|
+
within such NOTICE file, excluding those notices that do not
|
|
201
|
+
pertain to any part of the Derivative Works, in at least one
|
|
202
|
+
of the following places: within a NOTICE text file distributed
|
|
203
|
+
as part of the Derivative Works; within the Source form or
|
|
204
|
+
documentation, if provided along with the Derivative Works; or,
|
|
205
|
+
within a display generated by the Derivative Works, if and
|
|
206
|
+
wherever such third-party notices normally appear. The contents
|
|
207
|
+
of the NOTICE file are for informational purposes only and
|
|
208
|
+
do not modify the License. You may add Your own attribution
|
|
209
|
+
notices within Derivative Works that You distribute, alongside
|
|
210
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
211
|
+
that such additional attribution notices cannot be construed
|
|
212
|
+
as modifying the License.
|
|
213
|
+
|
|
214
|
+
You may add Your own copyright statement to Your modifications and
|
|
215
|
+
may provide additional or different license terms and conditions
|
|
216
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
217
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
218
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
219
|
+
the conditions stated in this License.
|
|
220
|
+
|
|
221
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
222
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
223
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
224
|
+
this License, without any additional terms or conditions.
|
|
225
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
226
|
+
the terms of any separate license agreement you may have executed
|
|
227
|
+
with Licensor regarding such Contributions.
|
|
228
|
+
|
|
229
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
230
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
231
|
+
except as required for reasonable and customary use in describing the
|
|
232
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
233
|
+
|
|
234
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
235
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
236
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
237
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
238
|
+
implied, including, without limitation, any warranties or conditions
|
|
239
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
240
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
241
|
+
appropriateness of using or redistributing the Work and assume any
|
|
242
|
+
risks associated with Your exercise of permissions under this License.
|
|
243
|
+
|
|
244
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
245
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
246
|
+
unless required by applicable law (such as deliberate and grossly
|
|
247
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
248
|
+
liable to You for damages, including any direct, indirect, special,
|
|
249
|
+
incidental, or consequential damages of any character arising as a
|
|
250
|
+
result of this License or out of the use or inability to use the
|
|
251
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
252
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
253
|
+
other commercial damages or losses), even if such Contributor
|
|
254
|
+
has been advised of the possibility of such damages.
|
|
255
|
+
|
|
256
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
257
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
258
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
259
|
+
or other liability obligations and/or rights consistent with this
|
|
260
|
+
License. However, in accepting such obligations, You may act only
|
|
261
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
262
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
263
|
+
defend, and hold each Contributor harmless for any liability
|
|
264
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
265
|
+
of your accepting any such warranty or additional liability.
|
|
266
|
+
|
|
267
|
+
END OF TERMS AND CONDITIONS
|
|
268
|
+
|
|
269
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
270
|
+
|
|
271
|
+
To apply the Apache License to your work, attach the following
|
|
272
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
273
|
+
replaced with your own identifying information. (Don't include
|
|
274
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
275
|
+
comment syntax for the file format. We also recommend that a
|
|
276
|
+
file or class name and description of purpose be included on the
|
|
277
|
+
same "printed page" as the copyright notice for easier
|
|
278
|
+
identification within third-party archives.
|
|
279
|
+
|
|
280
|
+
Copyright [yyyy] [name of copyright owner]
|
|
281
|
+
|
|
282
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
283
|
+
you may not use this file except in compliance with the License.
|
|
284
|
+
You may obtain a copy of the License at
|
|
285
|
+
|
|
286
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
287
|
+
|
|
288
|
+
Unless required by applicable law or agreed to in writing, software
|
|
289
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
290
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
291
|
+
See the License for the specific language governing permissions and
|
|
292
|
+
limitations under the License.
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
## Uiverse — "Loader" by mobinkakei
|
|
296
|
+
|
|
297
|
+
The loader the waiting line leads with (`packages/client/src/features/chat-wait/chat-wait.ts` and the `dsh-tg-chat-wait-loader` rules in its stylesheet) is ported from a Uiverse loader: its three dots, its squash-and-stretch keyframes (the flat-bottomed radius the dot lands with, the round pose two fifths into the bounce, the travel to the top), its half-second period and the phase each dot starts behind the one before it — renamed into this package's own classes, read from its own motion tokens and painted with the accent in force. The snippet's three shadow ellipses are left out, so the loader carries no shadow at all.
|
|
298
|
+
|
|
299
|
+
Source: <https://uiverse.io/mobinkakei/grumpy-turtle-41>
|
|
300
|
+
|
|
301
|
+
```
|
|
302
|
+
MIT License
|
|
303
|
+
|
|
304
|
+
Copyright - 2026 mobinkakei (Mobeen)
|
|
305
|
+
|
|
306
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
307
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
308
|
+
in the Software without restriction, including without limitation the rights
|
|
309
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
310
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
311
|
+
furnished to do so, subject to the following conditions:
|
|
312
|
+
|
|
313
|
+
The above copyright notice and this permission notice shall be included in all
|
|
314
|
+
copies or substantial portions of the Software.
|
|
315
|
+
|
|
316
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
317
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
318
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
319
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
320
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
321
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
322
|
+
SOFTWARE.
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
## Wallpaper pattern
|
|
326
|
+
|
|
327
|
+
The pattern laid over the wallpaper (`packages/assets/src/wallpaper/pattern.webp`, tinted per palette through the mask in `packages/client/src/features/wallpaper/wallpaper.css`) is not drawn in this repository. Supplied by the project's maintainer, who holds the right to redistribute it.
|
package/cordis.patch.yml
ADDED