deep-read-summarize 0.3.6 → 0.3.9

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.
@@ -0,0 +1,306 @@
1
+ #!/usr/bin/env node
2
+ // ============================================================================
3
+ // transcribe.js — faster-whisper 转写自举脚本(插件内部,跨平台:Windows/macOS/Linux)
4
+ // ============================================================================
5
+ // 用法(三平台完全一致,不需要 pwsh / bash 之别):
6
+ // node transcribe.js --audio <音频文件> --out <输出txt> [--model small] [--language zh] [--device cpu|auto|cuda]
7
+ // node transcribe.js --self-check # 只打印解析出的路径,不安装、不下载、不联网
8
+ //
9
+ // 为什么是 Node 而不是 PowerShell / shell:
10
+ // - Node 是 DSH 与本插件自身的硬依赖,三平台天然可用,不必维护 ps1 + sh 两份实现;
11
+ // - 「本机与用户使用一致」只需要守在一处(0.3.8 修过的正是「两份真相漂移」)。
12
+ // 平台差异只集中在四个纯函数里:cacheRoot / venvPython / uvInstallHint / findUv,
13
+ // 它们都接受注入的 platform/env/home,可以在任意 OS 上跑全平台矩阵单测。
14
+ // 本文件不会被内联进 workflow 沙箱脚本(沙箱没有 process/require),只在宿主 shell 里执行。
15
+ // ============================================================================
16
+
17
+ 'use strict';
18
+
19
+ const { spawnSync } = require('node:child_process');
20
+ const fs = require('node:fs');
21
+ const os = require('node:os');
22
+ const path = require('node:path');
23
+
24
+ // 版本锁定:保证作者机器与用户机器跑的是同一套(见 README「转写工具链」)。
25
+ const PY_VERSION = '3.12';
26
+ const PYPI_MIRROR = 'https://pypi.tuna.tsinghua.edu.cn/simple';
27
+ // uv 拉 CPython 走的是 GitHub(python-build-standalone),在部分网络下极慢 → 走镜像。
28
+ const UV_PYTHON_INSTALL_MIRROR =
29
+ 'https://ghproxy.com/https://github.com/astral-sh/python-build-standalone/releases/download';
30
+ const HF_ENDPOINT = 'https://hf-mirror.com';
31
+ const UV_INSTALL_SH = 'curl -LsSf https://astral.sh/uv/install.sh | sh';
32
+ const CACHE_DIR_NAME = 'deep-read-summarize';
33
+
34
+ // ---------------------------------------------------------------------------
35
+ // 纯函数区:平台差异全部收在这里
36
+ // ---------------------------------------------------------------------------
37
+
38
+ /** 目标平台用哪套路径分隔符(不依赖宿主 OS,测试可在 Windows 上断言 POSIX 结果)。 */
39
+ function pathImpl(platform) {
40
+ return platform === 'win32' ? path.win32 : path.posix;
41
+ }
42
+
43
+ /** 归一化注入上下文:默认取真实运行环境,测试可注入任意平台。 */
44
+ function context(overrides) {
45
+ const o = overrides || {};
46
+ return {
47
+ platform: o.platform || process.platform,
48
+ env: o.env || process.env,
49
+ home: o.home || os.homedir(),
50
+ isFile: o.isFile || function (p) {
51
+ try { return fs.statSync(p).isFile(); } catch (e) { return false; }
52
+ }
53
+ };
54
+ }
55
+
56
+ /**
57
+ * 转写缓存根目录(venv + HF 模型都放这里,跨次复用)。
58
+ * - Windows:%LOCALAPPDATA%\\deep-read-summarize(**与 0.3.6-0.3.8 的 transcribe.ps1 完全一致,
59
+ * 老用户已下载的模型不会重下**)
60
+ * - macOS:~/Library/Caches/deep-read-summarize
61
+ * - Linux:$XDG_CACHE_HOME/deep-read-summarize(回退 ~/.cache)
62
+ */
63
+ function cacheRoot(overrides) {
64
+ const c = context(overrides);
65
+ const p = pathImpl(c.platform);
66
+ if (c.platform === 'win32') {
67
+ const base = c.env.LOCALAPPDATA || p.join(c.home, 'AppData', 'Local');
68
+ return p.join(base, CACHE_DIR_NAME);
69
+ }
70
+ if (c.platform === 'darwin') return p.join(c.home, 'Library', 'Caches', CACHE_DIR_NAME);
71
+ return p.join(c.env.XDG_CACHE_HOME || p.join(c.home, '.cache'), CACHE_DIR_NAME);
72
+ }
73
+
74
+ /** venv 里 python 解释器的位置:Windows 在 Scripts/,POSIX 在 bin/。 */
75
+ function venvPython(venvDir, overrides) {
76
+ const c = context(overrides);
77
+ const p = pathImpl(c.platform);
78
+ return c.platform === 'win32'
79
+ ? p.join(venvDir, 'Scripts', 'python.exe')
80
+ : p.join(venvDir, 'bin', 'python');
81
+ }
82
+
83
+ /** 找不到 uv 时给用户的安装命令(按平台)。 */
84
+ function uvInstallHint(overrides) {
85
+ const c = context(overrides);
86
+ if (c.platform === 'win32') return 'winget install astral-sh.uv';
87
+ if (c.platform === 'darwin') return 'brew install uv(或 ' + UV_INSTALL_SH + ')';
88
+ return UV_INSTALL_SH;
89
+ }
90
+
91
+ /** uv 候选路径(先 PATH,再各平台常见的用户级/包管理器安装位置)。 */
92
+ function uvCandidates(overrides) {
93
+ const c = context(overrides);
94
+ const p = pathImpl(c.platform);
95
+ const exe = c.platform === 'win32' ? 'uv.exe' : 'uv';
96
+ const sep = c.platform === 'win32' ? ';' : ':';
97
+ const dirs = String(c.env.PATH || '').split(sep).filter(Boolean).map(function (d) {
98
+ // Windows PATH 里可能带引号;剥掉再拼。
99
+ return String(d).replace(/^"|"$/g, '');
100
+ });
101
+ const list = dirs.map(function (d) { return p.join(d, exe); });
102
+ if (c.platform === 'win32') {
103
+ list.push(p.join(c.home, '.local', 'bin', 'uv.exe'));
104
+ list.push(p.join(c.home, '.cargo', 'bin', 'uv.exe'));
105
+ } else {
106
+ list.push(p.join(c.home, '.local', 'bin', 'uv'));
107
+ list.push('/opt/homebrew/bin/uv'); // macOS arm64 Homebrew
108
+ list.push('/usr/local/bin/uv'); // macOS Intel Homebrew / 通用
109
+ list.push(p.join(c.home, '.cargo', 'bin', 'uv'));
110
+ }
111
+ return list;
112
+ }
113
+
114
+ /** 找到可用的 uv,找不到返回 null。 */
115
+ function findUv(overrides) {
116
+ const c = context(overrides);
117
+ const candidates = uvCandidates(c);
118
+ for (let i = 0; i < candidates.length; i++) {
119
+ if (c.isFile(candidates[i])) return candidates[i];
120
+ }
121
+ return null;
122
+ }
123
+
124
+ /** 解析命令行(支持 --k v、--k=v、-k v 三种写法)。 */
125
+ function parseArgs(argv) {
126
+ const out = { audio: '', out: '', model: 'small', language: 'zh', device: 'cpu', selfCheck: false, help: false, unknown: [] };
127
+ const takes = {
128
+ '--audio': 'audio', '-a': 'audio',
129
+ '--out': 'out', '-o': 'out',
130
+ '--model': 'model', '-m': 'model',
131
+ '--language': 'language', '-l': 'language', '--lang': 'language',
132
+ '--device': 'device', '-d': 'device'
133
+ };
134
+ const list = argv || [];
135
+ for (let i = 0; i < list.length; i++) {
136
+ const a = String(list[i]);
137
+ if (a === '--help' || a === '-h') { out.help = true; continue; }
138
+ if (a === '--self-check') { out.selfCheck = true; continue; }
139
+ if (takes[a]) {
140
+ const v = list[i + 1];
141
+ if (v === undefined || String(v).indexOf('-') === 0) { out.unknown.push(a); continue; }
142
+ out[takes[a]] = String(v);
143
+ i++;
144
+ continue;
145
+ }
146
+ const eq = a.indexOf('=');
147
+ if (eq > 1 && takes[a.slice(0, eq)]) { out[takes[a.slice(0, eq)]] = a.slice(eq + 1); continue; }
148
+ out.unknown.push(a);
149
+ }
150
+ return out;
151
+ }
152
+
153
+ /** 运行时 Python 片段:分段文本以空格连接成一行落盘;device 默认 cpu,非 cpu 失败自动回退。 */
154
+ const PY_RUNNER = [
155
+ "import os",
156
+ "import sys",
157
+ "from faster_whisper import WhisperModel",
158
+ "",
159
+ "def load(device):",
160
+ " return WhisperModel(os.environ['DRS_MODEL'], device=device, compute_type='int8')",
161
+ "",
162
+ "def run(device):",
163
+ " model = load(device)",
164
+ " segs, info = model.transcribe(os.environ['DRS_AUDIO'], vad_filter=True, language=(os.environ.get('DRS_LANG') or None))",
165
+ " return [s.text.strip() for s in segs], info",
166
+ "",
167
+ "# device 默认 cpu:ctranslate2 只要探测到 NVIDIA 显卡就会在 auto 下选 CUDA,",
168
+ "# 而多数机器没装 cuBLAS/cuDNN(cublas64_12.dll),会在推理时硬失败(实测 RTX 3050 复现)。",
169
+ "device = os.environ.get('DRS_DEVICE') or 'cpu'",
170
+ "try:",
171
+ " segments, info = run(device)",
172
+ "except Exception as exc:",
173
+ " if device == 'cpu':",
174
+ " raise",
175
+ " print('[transcribe] device=%s failed (%s); retrying on cpu' % (device, exc), file=sys.stderr)",
176
+ " segments, info = run('cpu')",
177
+ "",
178
+ "# 先把全部分段收集完再落盘:中途失败时不会留下半截 transcript.txt",
179
+ "# (调用方按「文件非空且稳定」判断完成,半截文件会被误判成成功)。",
180
+ "with open(os.environ['DRS_OUT'], 'w', encoding='utf-8') as f:",
181
+ " f.write(' '.join([x for x in segments if x]))",
182
+ "print('DONE', info.language, round(info.duration, 1))",
183
+ ""
184
+ ].join("\n");
185
+
186
+ // ---------------------------------------------------------------------------
187
+ // 执行区
188
+ // ---------------------------------------------------------------------------
189
+
190
+ const USAGE = [
191
+ '用法:node transcribe.js --audio <音频文件> --out <输出txt> [--model small] [--language zh] [--device cpu|auto|cuda]',
192
+ ' node transcribe.js --self-check # 只打印解析出的路径,不安装不下载',
193
+ '',
194
+ '选项:--audio/-a --out/-o --model/-m(默认 small) --language/-l(默认 zh)',
195
+ ' --device(默认 cpu;auto/cuda 需自备 CUDA 运行库,失败会自动回退 cpu)'
196
+ ].join('\n');
197
+
198
+ function fail(msg, code) {
199
+ process.stderr.write('[transcribe] ERROR: ' + msg + '\n');
200
+ return code === undefined ? 1 : code;
201
+ }
202
+
203
+ function runStep(cmd, cmdArgs, env, errLabel) {
204
+ const r = spawnSync(cmd, cmdArgs, { stdio: 'inherit', env: env, shell: false });
205
+ if (r.error) throw new Error(errLabel + ' 无法执行(' + cmd + '):' + r.error.message);
206
+ if (r.status !== 0) throw new Error(errLabel + ' 失败(退出码 ' + r.status + ')');
207
+ }
208
+
209
+ function main(argv) {
210
+ const args = parseArgs(argv);
211
+ const c = context({});
212
+ const root = cacheRoot(c);
213
+ const venvDir = path.join(root, 'venv');
214
+ const py = venvPython(venvDir, c);
215
+ const uv = findUv(c);
216
+
217
+ if (args.help) { process.stdout.write(USAGE + '\n'); return 0; }
218
+
219
+ // --self-check:CI 与排查用,只报告解析结果,不产生任何副作用。
220
+ if (args.selfCheck) {
221
+ process.stdout.write(JSON.stringify({
222
+ platform: c.platform,
223
+ cacheRoot: root,
224
+ venvDir: venvDir,
225
+ venvPython: py,
226
+ uv: uv,
227
+ uvInstallHint: uvInstallHint(c),
228
+ pythonVersion: PY_VERSION,
229
+ node: process.version
230
+ }, null, 2) + '\n');
231
+ return 0;
232
+ }
233
+
234
+ if (args.unknown.length) process.stderr.write('[transcribe] 忽略未知参数:' + args.unknown.join(', ') + '\n');
235
+ if (!args.audio || !args.out) {
236
+ process.stderr.write(USAGE + '\n');
237
+ return fail('--audio 与 --out 都是必填的。');
238
+ }
239
+ if (!fs.existsSync(args.audio)) return fail('音频文件不存在:' + args.audio);
240
+ if (uv === null) {
241
+ return fail('没有找到 uv。请先安装:' + uvInstallHint(c) + '(装好后重跑本脚本;或改用 options.transcribe=false / 手动提供转写文本降级)');
242
+ }
243
+
244
+ try {
245
+ fs.mkdirSync(root, { recursive: true });
246
+ // 输出目录可能在别处(如 ./.tmp),提前建好,免得 python 侧报一句难懂的错
247
+ fs.mkdirSync(path.dirname(path.resolve(args.out)), { recursive: true });
248
+
249
+ const childEnv = Object.assign({}, process.env);
250
+ childEnv.UV_PYTHON_INSTALL_MIRROR = UV_PYTHON_INSTALL_MIRROR;
251
+
252
+ // 1) venv:优先复用已装好的 3.12,没有才让 uv 装(走镜像)
253
+ if (!fs.existsSync(py)) {
254
+ process.stdout.write('[transcribe] 创建 venv(Python ' + PY_VERSION + '):' + venvDir + '\n');
255
+ runStep(uv, ['venv', '--python', PY_VERSION, venvDir], childEnv, 'uv venv');
256
+ }
257
+
258
+ // 2) faster-whisper:只在 import 失败时才装(离线/已装时零网络请求)
259
+ const probe = spawnSync(py, ['-c', 'import faster_whisper'], { stdio: 'ignore', shell: false });
260
+ if (probe.status !== 0) {
261
+ process.stdout.write('[transcribe] 安装 faster-whisper(清华镜像)…\n');
262
+ runStep(uv, ['pip', 'install', '--python', py, 'faster-whisper', '-i', PYPI_MIRROR], childEnv, 'faster-whisper 安装');
263
+ }
264
+
265
+ // 3) 运行时环境变量:hf-mirror + 关掉会绕开镜像并 401 的 hf-xet 后端
266
+ childEnv.HF_ENDPOINT = HF_ENDPOINT;
267
+ childEnv.HF_HOME = path.join(root, 'hf');
268
+ childEnv.HF_HUB_DISABLE_XET = '1';
269
+ childEnv.HF_HUB_DISABLE_SYMLINKS_WARNING = '1';
270
+ childEnv.DRS_AUDIO = args.audio;
271
+ childEnv.DRS_OUT = args.out;
272
+ childEnv.DRS_MODEL = args.model;
273
+ childEnv.DRS_LANG = args.language;
274
+ childEnv.DRS_DEVICE = args.device;
275
+
276
+ const pyScript = path.join(root, 'transcribe_run.py');
277
+ fs.writeFileSync(pyScript, PY_RUNNER, 'utf8');
278
+
279
+ // 4) 转写(首次会下载模型到 HF_HOME,之后缓存复用)
280
+ runStep(py, [pyScript], childEnv, '转写');
281
+
282
+ const bytes = fs.statSync(args.out).size;
283
+ process.stdout.write('TRANSCRIBED ' + bytes + ' bytes to ' + args.out + '\n');
284
+ if (bytes === 0) {
285
+ process.stderr.write('[transcribe] 输出为 0 字节:音频可能是纯静音(VAD 过滤)或解码失败,请按降级处理。\n');
286
+ }
287
+ return 0;
288
+ } catch (e) {
289
+ return fail(e.message + '(可降级:让用户手动提供转写文本,或用 options.transcribe=false 跳过转写)');
290
+ }
291
+ }
292
+
293
+ if (require.main === module) {
294
+ process.exitCode = main(process.argv.slice(2));
295
+ }
296
+
297
+ module.exports = {
298
+ cacheRoot: cacheRoot,
299
+ venvPython: venvPython,
300
+ uvInstallHint: uvInstallHint,
301
+ uvCandidates: uvCandidates,
302
+ findUv: findUv,
303
+ parseArgs: parseArgs,
304
+ PY_VERSION: PY_VERSION,
305
+ PY_RUNNER: PY_RUNNER
306
+ };
@@ -10,9 +10,10 @@ whenToUse: 用户提供一本书、论文(arXiv/PDF)、视频链接(YouTub
10
10
 
11
11
  ## 能力
12
12
 
13
- - 书籍(PDF/EPUB/MOBI)、论文(arXiv/PDF/HTML)、视频(yt-dlp 字幕)、网页
13
+ - 书籍(PDF/EPUB/MOBI)、论文(arXiv/PDF/HTML)、视频(字幕优先,无字幕自动转写)、网页
14
14
  - 长内容分块后由并行子代理精读(MapReduce),不溢出上下文
15
- - JSON Schema 约束子任务输出,不合格自动重试
15
+ - 获取/分块与质量校验的输出受 JSON Schema 约束,结构稳定、下游可解析
16
+ - 分块计划与子代理数量受 `maxChunks` 强制约束(计划失控会顶穿单次调用时限)
16
17
  - 关键引用标注页码/章节/段落,降低编造风险
17
18
  - 配置错误终止(FATAL);内容解析失败降级标记缺口继续
18
19
  - 输出带 YAML frontmatter(type 字段可配 Dataview)
@@ -20,21 +21,25 @@ whenToUse: 用户提供一本书、论文(arXiv/PDF)、视频链接(YouTub
20
21
  ## 输入
21
22
 
22
23
  用户提供:内容链接或本地文件路径。
23
- 可选参数:`type`(auto/book/paper/video/web)、`options`(minWords/fastMode/maxChunks/requireCitations/includeTimestamps/outputDir)。
24
+ 可选参数:`type`(auto/book/paper/video/web)、`options`(minWords / fastMode / maxChunks / maxRetries / requireCitations / includeTimestamps / transcribe / whisperModel / language / device / outputDir / tempDir)。
24
25
 
25
26
  ## 执行步骤
26
27
 
27
28
  1. **配置校验**:缺 input 或 type 非法 → 报 FATAL 终止
28
- 2. **幂等检查**:若输入已处理过(args._processedKeys 命中)→ 直接返回缓存结果
29
+ 2. **幂等检查(由你执行,脚本不做)**:脚本在沙箱内没有文件系统,写不了指纹记录。落盘前先看目标 `filePath` 是否已有同名笔记——已存在就问用户是覆盖还是跳过,别默默重跑一遍烧 token。(要在程序里做去重,可用插件导出的 `lib/cache.js`:fingerprint / hasProcessed / markProcessed。)
29
30
  3. **解析器选择**:按类型从 parsers 注册表选解析器(book/paper/video/web)
30
31
  4. **波次1 获取+分块**:解析器获取全文 → 写入临时文件 → 生成分块计划(JSON Schema 校验)
31
32
  5. **波次2 并行精读**:每个分块一个子代理深度精读(Map)
32
33
  6. **波次3 合并成稿**:整合为完整笔记(Reduce),内嵌质量自检
33
34
  7. **质量校验**:可选重试(maxRetries),检查覆盖度/引用真实性/术语一致/格式完整/篇幅/语言
35
+ 8. **落盘(必须,别跳过)**:workflow 工具只返回 `note`(笔记正文)与 `filePath`(建议路径)——**脚本本身没有文件系统权限**。拿到结果后要用 `write` 工具把 `note` 原样写入 `filePath`(目录不存在就先创建);不写就等于笔记丢了,用户只会看到一段返回文本
36
+ 9. **如实交代结果**:`ok: false` 要说明卡在哪一步(`stage`)和原因,别拿半成品冒充成品;`qualityPassed: false`、`qualityIssues` 非空、或 `failedChunks > 0`(有块精读失败、笔记存在缺口)时,必须在回复里点出来
34
37
 
35
38
  ## 输出
36
39
 
37
- Markdown 笔记(默认写到 `./output/`,可用 `options.outputDir` 指向 Obsidian 仓库)
40
+ workflow 返回 `{ ok, filePath, note, qualityPassed, qualityIssues, failedChunks, textSource }`。
41
+
42
+ > ⚠️ **`note` 就是完整笔记正文,`filePath` 只是建议路径**:脚本运行在无文件系统的沙箱里(DSH 的 workflow 契约:脚本只负责协调子代理),**它不会替你写文件**。必须由你(主代理)在拿到结果后用 `write` 工具把它写到 `filePath`——默认 `./output/`,可用 `options.outputDir` 指向 Obsidian 仓库。
38
43
 
39
44
  ```markdown
40
45
  ---
@@ -61,16 +66,17 @@ status: 已完成
61
66
 
62
67
  - **统一流水线(去三档)**:目标 = 拿到完整逐字稿再精读。
63
68
  1. **有平台字幕**(B站 AI 字幕 / YouTube CC / yt-dlp CC)→ 直接用字幕(=全文,最快、零依赖)。
64
- 2. **无公开字幕** → 用插件自带转写(`scripts/transcribe.ps1`:faster-whisper small / int8 / VAD)得到全文。
69
+ 2. **无公开字幕** → 用插件自带转写(`scripts/transcribe.js`:faster-whisper small / int8 / VAD)得到全文。
65
70
  3. 都不行 → 降级提示用户手动提供转写文本,或退回 desc 作背景;**绝不阻塞、绝不自动装重依赖**。
66
71
  - `options.transcribe`:**默认 true**(无字幕自动转写);设为 `false` 则跳过转写(只用字幕/desc 或降级)。
67
- - **转写工具链**:脚本自举,本机/用户一致——`uv` 建 Python 3.12 环境 + 清华镜像装 `faster-whisper` + `HF_ENDPOINT=https://hf-mirror.com` 下模型并缓存;faster-whisper 内置 PyAV 解码音频,**无需单独 ffmpeg**。
72
+ - **转写工具链**:脚本自举,本机/用户一致——`uv` 建 Python 3.12 环境 + 清华镜像装 `faster-whisper` + `HF_ENDPOINT=https://hf-mirror.com` 下模型并缓存;脚本是 **Node** 写的,三平台**同一份实现、同一条命令**(`node <脚本路径> --audio <音频> --out <txt>`);转写默认 **CPU**(`options.device` 默认 `cpu`),GPU 需自备 CUDA 运行库(设 `options.device: "auto"`,失败自动回退 CPU);faster-whisper 内置 PyAV 解码音频,**无需单独 ffmpeg**。
68
73
  - **⚠️ 首次转写会先下载 small 模型(约 484MB,hf-mirror,非 GitHub),可能较慢**——执行转写前**先向用户说明**这是正常的一次性下载,之后缓存复用、秒开;不要当成卡死而中断。
69
74
  - **质量/速度**:small/int8 + VAD 静音过滤,中文质量可用且 CPU 友好;有字幕视频不转写(快)。装不上/失败则降级,不静默。
70
- - YouTube 用 yt-dlp 抓 CC;未装时**绝不下载 exe 二进制**(GitHub 直连易卡死),改用 winget/pip;仍不可用则转写或降级。
75
+ - YouTube 用 yt-dlp 抓 CC;未装时**绝不下载 exe 二进制**(GitHub 直连易卡死),按系统装(Windows `winget install yt-dlp.yt-dlp` / macOS `brew install yt-dlp` / 任意平台 `pip install -U yt-dlp`);仍不可用则转写或降级。
71
76
  - 运行 yt-dlp 加 `--socket-timeout 15 --retries 3` 防超时。
77
+ - **跨平台**:Windows / macOS / Linux **同等支持**(0.3.9 起)。无字幕自动转写走 `scripts/transcribe.js`(Node + `uv` + Python 3.12),三平台命令一致:`node <脚本路径> --audio <音频> --out <txt> [--device cpu]`;脚本定位命令按系统选(Windows `Get-ChildItem -Path $env:USERPROFILE/.dsh -Recurse -Filter transcribe.js`,macOS/Linux `find "$HOME/.dsh" -name transcribe.js`)。缓存目录按平台取:Windows `%LOCALAPPDATA%\deep-read-summarize`、macOS `~/Library/Caches/deep-read-summarize`、Linux `$XDG_CACHE_HOME/deep-read-summarize`。若 `node` 不在 PATH(macOS 从图形界面启动时常见)则直接降级,不要为此安装 Node。
72
78
  - 默认不标时间戳(`options.includeTimestamps` 可开)
73
79
 
74
80
  ## 参考
75
81
 
76
- 项目主页:https://github.com/PensiveFei/deep-read-summarize
82
+ 项目主页:https://github.com/PensiveFei/deep-read-summarize