dsh-bili-scroll 0.1.7 → 2.0.4
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/CONTRIBUTORS.md +18 -0
- package/LICENSE +21 -31
- package/LICENSE.bak-20261020 +31 -0
- package/NOTICE.md +18 -0
- package/README.md +39 -18
- package/client.js +343 -84
- package/index.js +1298 -93
- package/lib/asr.py +3 -0
- package/lib/dm.mjs +101 -0
- package/lib/favops.py +84 -0
- package/lib/login.mjs +19 -0
- package/lib/state.mjs +39 -8
- package/lib/uid.mjs +61 -0
- package/lib/verify.mjs +1 -1
- package/package.json +4 -2
- package/prompts/duty.md +4 -1
- package/vendor/bilibili-mcp/mcp_server.py +36 -312
package/CONTRIBUTORS.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# 外部贡献与致谢
|
|
2
|
+
|
|
3
|
+
这个插件的一些修复,最初的判断或实现来自社区。**这里只列代码/修法被采纳、并写进提交 `Co-authored-by` 的人**
|
|
4
|
+
(只有这几位会计入 GitHub 的贡献者名单);其余只提了问题或线索的朋友,我在各条 PR / issue 下另行道谢,不列在这里。
|
|
5
|
+
|
|
6
|
+
| 人 | 采纳了什么 |
|
|
7
|
+
|---|---|
|
|
8
|
+
| [@wotorrrrr](https://github.com/wotorrrrr) | `uv venv` 钉 Python 3.10–3.13(3.14+ 没有 `av` / `ctranslate2` 的 wheel);私信模式必须把 `bili_send_message` 放进 MCP 白名单;数组类设置不能用 `!==` 比默认值 |
|
|
9
|
+
| [@Rookiexg](https://github.com/Rookiexg) | headless overlay 要补 `agent-default-model`,否则账号登录的机器会 `MISSING_CREDENTIAL`(PR #50) |
|
|
10
|
+
| [@383891598](https://github.com/383891598) | yt-dlp 的进度条会污染 stdout,导致"输出非空 = 成功"恒真(PR #23,部分采纳) |
|
|
11
|
+
|
|
12
|
+
## 关于"为什么不整包合 PR"
|
|
13
|
+
|
|
14
|
+
这个仓库的做法是**一条一条读、把修法自己在 main 上实现**,而不是整包合并 —— 这样发布节奏在自己手上、出问题好定位回滚。
|
|
15
|
+
但**采纳的思路照样算贡献**,所以上面这几位写进了提交的 `Co-authored-by`。如果你提的东西被用上了却没在这张表里,开个 issue 说一声,我补上。
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
*本文件只做署名,不构成任何额外许可条款。*
|
package/LICENSE
CHANGED
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026
|
|
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.
|
|
22
|
-
|
|
23
|
-
---------------------------------------------------------------------------
|
|
24
|
-
|
|
25
|
-
本插件内含第三方代码:`vendor/bilibili-mcp/`
|
|
26
|
-
· 项目:bilibili-mcp
|
|
27
|
-
· 许可证:MIT,Copyright (c) 2026 AGI_Ananas
|
|
28
|
-
· 完整许可见该目录下的 LICENSE 文件
|
|
29
|
-
|
|
30
|
-
(如果你要改版权署名 —— 比如换成你自己的名字或 GitHub 用户名 —— 改上面第一行那个
|
|
31
|
-
"dsh-bili-duty contributors" 就行。)
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 c1overzz
|
|
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.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-bili-duty contributors
|
|
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.
|
|
22
|
+
|
|
23
|
+
---------------------------------------------------------------------------
|
|
24
|
+
|
|
25
|
+
本插件内含第三方代码:`vendor/bilibili-mcp/`
|
|
26
|
+
· 项目:bilibili-mcp
|
|
27
|
+
· 许可证:MIT,Copyright (c) 2026 AGI_Ananas
|
|
28
|
+
· 完整许可见该目录下的 LICENSE 文件
|
|
29
|
+
|
|
30
|
+
(如果你要改版权署名 —— 比如换成你自己的名字或 GitHub 用户名 —— 改上面第一行那个
|
|
31
|
+
"dsh-bili-duty contributors" 就行。)
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# 第三方代码与署名说明
|
|
2
|
+
|
|
3
|
+
本插件(`dsh-bili-scroll` / 刷B站)本体以 **MIT** 协议发布,正文见仓库根目录的 `LICENSE`。
|
|
4
|
+
|
|
5
|
+
## 内含第三方代码
|
|
6
|
+
|
|
7
|
+
- 目录:`vendor/bilibili-mcp/`
|
|
8
|
+
- 项目:**bilibili-mcp**
|
|
9
|
+
- 许可证:**MIT**,Copyright (c) 2026 AGI_Ananas
|
|
10
|
+
- 完整许可见该目录下的 `LICENSE`
|
|
11
|
+
|
|
12
|
+
## 关于版权署名
|
|
13
|
+
|
|
14
|
+
`LICENSE` 第一行写的是 `Copyright (c) 2026 c1overzz`。
|
|
15
|
+
如果你要基于本仓库做二次分发,保留这一行和 MIT 正文即可,不必另行取得授权(MIT 本身就允许改、再发、商用)。
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
*本文件只是说明,不构成额外限制。*
|
package/README.md
CHANGED
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
> 跑一次 `dsh plugin --profile web add dsh-bili-scroll` 升级就好(那一版建 Python 环境时缺一个参数,
|
|
14
14
|
> 依赖装不上、二维码也画不出来,重装多少次都一样)。
|
|
15
15
|
|
|
16
|
+
> 🎬 演示视频:**https://www.bilibili.com/video/BV1d8pU6xEZX/** · 💬 交流群(QQ):**1128547307**
|
|
17
|
+
>
|
|
16
18
|
> DSH 插件:**每天替你刷一轮 B站** —— 它自己搜、**读字幕原文**判断、把值得的写成报告,特别值得的会留一条评论 **@ 你**。
|
|
17
19
|
> **你收到的每一条 @,都是它先筛过一遍的。**
|
|
18
20
|
|
|
@@ -44,10 +46,19 @@
|
|
|
44
46
|
## 装
|
|
45
47
|
|
|
46
48
|
|
|
49
|
+
> 🔴 **先看这条:npm 上还是旧版(0.1.7),别用 `add dsh-bili-scroll` 装。**
|
|
50
|
+
> 我们的 npm 发布账号还在申诉里(工单 4880295),2026-10-17 之后的新版本**只能**从下面两条装。
|
|
51
|
+
|
|
47
52
|
```bash
|
|
48
|
-
|
|
49
|
-
dsh plugin --profile web add github
|
|
53
|
+
# ⭐ 首选:Release 里的 tgz 直链(不需要 git,也不会被 pnpm 拦构建脚本)
|
|
54
|
+
dsh plugin --profile web add https://github.com/c1overzz/dsh-bili-scroll/releases/download/v2.0.2/dsh-bili-scroll-2.0.2.tgz
|
|
55
|
+
|
|
56
|
+
# 备选:git 方式(需要机器上装了 git;pnpm 10 可能拦它的构建脚本)
|
|
57
|
+
dsh plugin --profile web add github:c1overzz/dsh-bili-scroll
|
|
50
58
|
```
|
|
59
|
+
|
|
60
|
+
> 连不上 github 的话,在链接前面加镜像:`https://gh-proxy.com/`(实测可用,返回的是同一个文件)。
|
|
61
|
+
> 版本号那一节会变,最新的下载地址在 **Releases** 页(`…/releases/latest`)。
|
|
51
62
|
(⭐ 最省事的一条:把仓库链接贴给你自己的 dsh,说「**帮我装这个插件**」,它会自己装。)
|
|
52
63
|
|
|
53
64
|
⚠️ 装完**必须重启一次 dsh**(bundle 层要重启才组装)。然后进 **设置 → 刷B站**。
|
|
@@ -80,20 +91,16 @@ dsh plugin --profile web add github:c1overzz/dsh-bili-scroll # 备选:直接
|
|
|
80
91
|
|
|
81
92
|
## 设置页里有什么
|
|
82
93
|
|
|
83
|
-
|
|
94
|
+
分成四页签,第一次用建议只看「日常」:
|
|
95
|
+
|
|
96
|
+
| 页签 | 里面有什么 |
|
|
84
97
|
|---|---|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
| **自动评论并 @
|
|
88
|
-
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
| **回复评论(只回楼中楼)** | **默认关**;开了之后展开「每轮最多回几条」—— 只回**直接回复到它那条评论下面的人**,不参与别人的讨论 |
|
|
92
|
-
| **日报写多细** | `完整 / 薄版 / 不写`;薄版每条一两行(输出比输入贵 200 倍,薄版省的是真钱) |
|
|
93
|
-
| 现在跑一轮 / 装主依赖 / 扫码登录 / 看今天的报告 / 打开报告文件夹 | 版本号就在这一行上面(**点「检查更新」可以看有没有新版**) |
|
|
94
|
-
|
|
95
|
-
> ⭐ **这些设置同时写在两处**:插件自己的 `<DSH_HOME>/bili-duty/config.json`,以及 **DSH 原生「插件设置」**里的同一套字段。
|
|
96
|
-
> 在这一页改 ⇒ **以这一页为准,并同步写进原生设置**(写不进去会提示你);某个字段如果你在 **DSH 原生设置页**里显式设过 ⇒ **那个字段以原生设置页为准**。
|
|
98
|
+
| **日常** | **峰谷自动刷**(总开关,打开才展开「中午 12–14」「晚上 18–09」两个子开关)· **每天最多挑几条**(0 = 只手动)· **它刷过的视频**(卡片墙 + 档位/状态筛选 + 分页) |
|
|
99
|
+
| **偏好** | **它按什么说话(人设提示词)** ← 想让它像谁就写在这儿,留空按中性说话 · **关注关键词**(一行一个)· **自动收藏到**(可选收藏夹)· **日报写多细**(完整 / 薄版 / 不写)· 下面一个**保存**按钮 |
|
|
100
|
+
| **互动** | **自动评论并 @ 你**(默认关)· **回复评论**(默认关,只回楼中楼)· **投递方式**(只私信 = 默认 / 只发评论 / 两边都发)· **私信发给谁(UID)**(可留空,用昵称自动查)· **私信双向**(默认关,开了它会读你的私信并回一句) |
|
|
101
|
+
| **高级** | **环境与账号**(装主依赖 / 测一下 / 检查更新 / 扫码登录)· **复制诊断信息** · **环境自检** · **它的地盘**(家目录、报告、复核评论、打开文件夹)· 工作区(老用户才需要) |
|
|
102
|
+
|
|
103
|
+
> ⭐ 这些设置写在 `<DSH_HOME>/bili-duty/config.json`;在插件这一页改,就以这一页为准。
|
|
97
104
|
|
|
98
105
|
## 红线(写死在提示词里,不靠自觉)
|
|
99
106
|
|
|
@@ -138,10 +145,24 @@ dsh plugin --profile web add github:c1overzz/dsh-bili-scroll # 备选:直接
|
|
|
138
145
|
|
|
139
146
|
## 路线图
|
|
140
147
|
|
|
141
|
-
- **0.
|
|
142
|
-
-
|
|
143
|
-
- **v0.2**:**用 JS 重写那几个接口 ⇒ 不再需要 Python**(零安装);报告归档、失败重试
|
|
148
|
+
- **2.0.0(当前)**:私信投递默认 · 私信双向 · 「它刷过的视频」列表(档位/筛选/分页/卡片墙)· 人设提示词框 · 诊断与自检 · 每条视频一份笔记 · 设置页四页签
|
|
149
|
+
- **下一步**:用 JS 重写 search / subtitle / comments / reply ⇒ **不再需要 Python**(零安装)· 手机窄屏入口 · 「停掉这一轮」按钮
|
|
144
150
|
|
|
145
151
|
## 许可证
|
|
146
152
|
|
|
147
153
|
MIT(内置的 `vendor/bilibili-mcp/` 另见该目录下的 LICENSE)
|
|
154
|
+
|
|
155
|
+
## 交流与反馈
|
|
156
|
+
|
|
157
|
+
- **遇到问题先去群里问一句** —— 安装、报错、设置这些,群里大多有人踩过;比自己从头试快得多。
|
|
158
|
+
- **QQ 交流群:1128547307**
|
|
159
|
+
- **确实像 bug 的**(能复现、有报错原文),欢迎开 [Issue](https://github.com/c1overzz/dsh-bili-scroll/issues/new):
|
|
160
|
+
请带上 **dsh 版本 / 插件版本(设置页顶部徽章)/ 系统(web 还是桌面版)/ 报错原文或 `duty.log` 最后几十行**。
|
|
161
|
+
有这个我基本一轮就能定位;只说"装不上",通常要来回问三四次。
|
|
162
|
+
- **想改进它**:欢迎 PR。⚠️ 但请**一件事一个 PR**(不要一个 PR 塞五个功能),
|
|
163
|
+
这样我能独立合并、出问题也好回滚。
|
|
164
|
+
- **二次分发 / 二创**:本仓库是 **MIT**,允许改、允许再发、允许商用,**保留 `LICENSE` 里的版权行和 MIT 正文**即可;
|
|
165
|
+
提一句"基于 dsh-bili-scroll 改的"就更好了。第三方代码与署名见 [NOTICE.md](NOTICE.md)。
|
|
166
|
+
- **演示视频**:<https://www.bilibili.com/video/BV1d8pU6xEZX/>
|
|
167
|
+
|
|
168
|
+
*反馈请不要去打扰素材作者(上善 / ZipZipPipe 等),他们只管角色形象,不管这个插件。*
|