dsh-douyin-audio 0.0.0-stage → 1.2.2

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 ADDED
@@ -0,0 +1,27 @@
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
+ 本项目中包含来自第三方、同样以 MIT 协议发布的代码。详见同目录的 NOTICE.md。
26
+ This project includes third-party code also released under the MIT License.
27
+ See NOTICE.md in the same directory for details.
package/NOTICE.md ADDED
@@ -0,0 +1,43 @@
1
+ # 第三方代码与署名说明
2
+
3
+ 本项目 `dsh-douyin-audio`(刷抖音 + 音频转写,作者:**大肥鱼、豆老师**)本体以 **MIT** 协议发布,
4
+ 正文见同目录 `LICENSE`。
5
+
6
+ ## 包含的第三方代码
7
+
8
+ ### lib/hostdeps.mjs
9
+
10
+ - 来源项目:**dsh-bili-scroll**(中文名「刷B站」)
11
+ - 作者:**c1overzz**
12
+ - 仓库:https://github.com/c1overzz/dsh-bili-scroll
13
+ - 协议:MIT
14
+ - 使用方式:**逐字节原样拷贝,未做修改**
15
+ - 文件:`lib/hostdeps.mjs`(7098 字节,SHA256 `6ADCD90C8CA33B7BB5DF3AEFD790A7452AC088D81465912CEDEA085C0318D35F`)
16
+ - 作用:在 DSH 桌面版上解析宿主侧的 `@deepseek-ai/*` 依赖
17
+ (桌面版 profile 是 `autoInstallPeers: false`,这类 optional peer 永远不会被装上),
18
+ 拿不到宿主那棵树时退回本地等价实现,避免「一个 import 让整条插件不激活」。
19
+ - 保留原样的理由:该文件承载的是原作者踩坑得到的解法,改动即失去可对照性。
20
+
21
+ ### 未随包分发的运行时依赖
22
+
23
+ 以下依赖由使用者环境提供,本项目不打包、不修改、不重新分发:
24
+
25
+ - **ffmpeg**(LGPL/GPL,视构建而定)—— 用于音频转码与音轨探测
26
+ - **sherpa-onnx** + **SenseVoice 模型**(Apache-2.0 / 模型自带协议)—— 本地语音识别
27
+ - **Python 3** 标准库与 `numpy`、`soundfile`
28
+ - **Playwright** 及其浏览器 —— 页面自动化
29
+
30
+ ## 本项目自有部分
31
+
32
+ 除上述 `lib/hostdeps.mjs` 外,其余文件为本项目自行编写:
33
+
34
+ | 文件 | 说明 |
35
+ |---|---|
36
+ | `index.js` | host 半端:4 个工具 + HTTP 接口 + 配置 |
37
+ | `client.js` | 浏览器半端:设置页(注册 `settings.section`) |
38
+ | `lib/runner.mjs` | Python 探测与执行(含沙箱降级) |
39
+ | `lib/state.mjs` | 状态目录、配置、日志轮转 |
40
+ | `scripts/douyin_scroller.py` | 刷抖音脚本(候选分组 / 去重 / 音轨校验) |
41
+ | `scripts/transcribe_douyin.py` | 转写 CLI |
42
+ | `selfcheck.mjs` | 预检(假 ctx 真跑 `apply()`) |
43
+ | `README.md` | 使用文档 |