dsh-douyin-agent 1.4.4 → 1.4.5

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.
Files changed (3) hide show
  1. package/README.md +5 -2
  2. package/client.js +2 -0
  3. package/package.json +7 -4
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # DSH 抖音助手
2
2
 
3
+ > **作者:dafeiyu1314520** —— 装这个包的人,第一眼会看到这个名字。
4
+ > 原作 [LockyBee/dsh-douyin-agent](https://github.com/LockyBee/dsh-douyin-agent)(MIT),这一份是在它基础上改的。
5
+
3
6
  让 DSH 里的 DeepSeek(大肥鱼)自己刷抖音:搜索、换片、看真实画面,把有意思的内容记下来,并在你许可的范围内分享给好友。
4
7
 
5
8
  在专用 Edge 里浏览电脑网页版抖音:开头先抓 6 帧拼成一张采样图,让模型决定看不看;决定看之后按秒抽帧,拼成最多三张故事板,连同带时间轴的弹幕和转写一起交给模型。所有外发功能默认关闭,每一项都有独立开关、次数上限和时间限制。这是第三方适配,不是 DeepSeek 官方出品。
@@ -41,7 +44,7 @@
41
44
  在 DSH Desktop 自带终端中运行:
42
45
 
43
46
  ```powershell
44
- dsh plugin --profile desktop add dsh-douyin-agent@1.4.2
47
+ dsh plugin --profile desktop add dsh-douyin-browser-local@1.4.0
45
48
  ```
46
49
 
47
50
  需要 Windows、已安装 Microsoft Edge 和 DSH 0.2.0-rc.2,以及一个独立的 **Node.js 22.13 或更高版本**(插件要用它单独起浏览器进程;装了 Node LTS 就行,没装的话点「开始自主观看」会提示下载地址,也可以用 `DOUYIN_NODE_EXECUTABLE` 指定已有的 node.exe)。安装后按宿主提示重新加载,在设置中打开“刷抖音”;抖音登录和验证由使用者自行完成。市场收录与 npm 包发布分别同步,不能把发布成功当成市场已刷新。
@@ -52,7 +55,7 @@ dsh plugin --profile desktop add dsh-douyin-agent@1.4.2
52
55
  需要 Windows、Microsoft Edge、Node.js 22.13 以上,以及 DSH 0.2.0-rc.2 系列(已在 DSH Desktop 2.0.17 上核对过设置页)。
53
56
 
54
57
  ```powershell
55
- git clone https://github.com/dafeiyu1314520/dsh-douyin-agent.git
58
+ git clone https://github.com/LockyBee/dsh-douyin-agent.git
56
59
  cd dsh-douyin-agent
57
60
  pnpm install --frozen-lockfile
58
61
  $dshInstallDirectory = 'C:\Apps\DSH Desktop' # 替换为正在使用的 DSH 安装目录
package/client.js CHANGED
@@ -192,6 +192,8 @@ window.__ModuleLoader__.load({
192
192
  note(`已确认回复 ${state?.replies?.counts?.confirmed ?? 0} 条;许可:${state?.replies?.enabled ? '已开启' : '未开启'}${state?.replies?.paused ? ';有未核对结果,已暂停' : ''}。`)),
193
193
  state?.media && section('可选音频', toggle('读取视频声音', 'media'), h('label', { style: column }, '音频后端', h('select', { 'aria-label': '音频后端', value: value('media', 'backend', 'local-whisper'), disabled: !ready, style: formControl, onChange: event => edit('media', 'backend', event.target.value) }, h('option', { value: 'local-whisper' }, '本机 Whisper'), h('option', { value: 'mimo' }, 'MiMo'), h('option', { value: 'minimax' }, 'MiniMax'))), button('保存音频设置', 'media', () => post('media', '/media/configure', { enabled: value('media', 'enabled', false), backend: value('media', 'backend', 'local-whisper') }, 'media')), note('音频可以不接入。下面这些 Key 只用于对应的云音频服务,和 DSH 主模型分开,明文保存在本机共享媒体文件里。'),
194
194
  note('保存 Key 不会开启音频,也不会发起云请求,更不会安装依赖或下载模型。'), credentialForm('mimo', 'MiMo'), credentialForm('minimax', 'MiniMax'), operationActive && note('请先停止自主观看、问候及私信回复,再更换音频 Key。')),
195
+ h('div', { style: { display: 'flex', flexWrap: 'wrap', gap: 8, marginTop: 18, paddingTop: 12, borderTop: '1px solid var(--dsw-alias-border-secondary, #e5e7eb)', color: 'var(--dsw-alias-label-tertiary)', fontSize: 12 } },
196
+ h('span', null, '本插件由 '), h('strong', { style: { fontWeight: 600 } }, 'dafeiyu1314520'), h('span', null, ' 维护 · 原作 LockyBee(MIT)')),
195
197
  section('观看日报', note(state?.reports?.folder || '日报保存在共用记忆的 reports/videos 目录。'), button('生成今天日报', 'reportGenerate', () => { void perform('reportGenerate', async () => { const result = await api.request('/reports/generate', {}); setReport(result); return result; }); }),
196
198
  h('label', { style: column }, '日报日期', h('input', { 'aria-label': '日报日期', type: 'date', value: reportDate, onChange: event => setReportDate(event.target.value), style: formControl })),
197
199
  button('读取所选日报', 'reportRead', () => { void perform('reportRead', async () => { if (!/^\d{4}-\d{2}-\d{2}$/.test(reportDate)) throw new Error('请选择有效日报日期。'); const result = await api.request(`/reports/read?date=${reportDate}`); setReport(result); return result; }); }),
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "dsh-douyin-agent",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "type": "module",
5
5
  "description": "DSH 原生抖音工具:有限自主观看、抽帧故事板与弹幕、人格与兴趣记忆、自动问候与私信回复、观看日报",
6
6
  "license": "MIT",
7
- "author": "LockyBee",
7
+ "author": {
8
+ "name": "dafeiyu1314520",
9
+ "url": "https://github.com/dafeiyu1314520"
10
+ },
8
11
  "contributors": [
9
12
  {
10
- "name": "dafeiyu1314520",
11
- "url": "https://github.com/dafeiyu1314520"
13
+ "name": "LockyBee",
14
+ "url": "https://github.com/LockyBee"
12
15
  }
13
16
  ],
14
17
  "repository": {