@ericality/dsh-notice-banner 0.11.1
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/LICENSE +21 -0
- package/README.md +26 -0
- package/lib/client.js +1928 -0
- package/lib/index.js +21 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ericality
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# @ericality/dsh-notice-banner
|
|
2
|
+
|
|
3
|
+
Banner UI for DSH — 通知横幅(host + 浏览器 client 混合插件):注册 `notice/banner` 会话事件类型,并把服务端注入的横幅事件渲染为带主题色的聊天卡(cost / queue / ledger / restart 等家族)。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
npm i @ericality/dsh-notice-banner
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
> 需 dsh (DeepSeek Harness) 宿主环境;作为宿主插件加载(服务端 `apply` + client bundle 注入)。
|
|
12
|
+
|
|
13
|
+
## 功能
|
|
14
|
+
|
|
15
|
+
- host half(`lib/index.js`):把 `notice/banner` 与 `notice/banner-replace` 注册进宿主的 `KNOWN_SESSION_EVENT_TYPES`,使持久化读取路径接受这些自定义会话事件类型(`Set.add` 幂等)。
|
|
16
|
+
- client(`lib/client.js`,`exports["./client"]`):把横幅事件渲染为会话中的横幅卡,按 kind 分家族配色(费用 / 任务完成 / 队列入队 / 余额 / 错误 / 会话账本 / 多会话费用 / 状态迷你行 / 优雅重启),含队列面板、账本委托树等交互组件。
|
|
17
|
+
- 事件由宿主内其他插件注入(dsh-cost-guard / dsh-notify / dsh-taskqueue / dsh-balance / dsh-sessions-cost / dsh-cost-ledger 等),本包只负责类型注册与渲染,无跨包 npm 依赖。
|
|
18
|
+
|
|
19
|
+
## 依赖
|
|
20
|
+
|
|
21
|
+
peer:`@deepseek-ai/dsh-session`(宿主,服务端);`react`(浏览器端,由宿主 client 运行时提供)。
|
|
22
|
+
client 注入(`dsh.client.inject`,web 平台):由宿主提供 `@deepseek-ai/dsh-client-locale` / `dsh-client-runtime` / `dsh-client-ui-conversation`。
|
|
23
|
+
|
|
24
|
+
## 许可
|
|
25
|
+
|
|
26
|
+
MIT
|