dsh-daily-brief 2.0.3 → 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/README.md +3 -1
- package/lib/engine/runner.js +4 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
## 环境要求
|
|
28
28
|
|
|
29
29
|
- Windows 10/11(弹窗与计划任务依赖 Windows;其他平台只能生成 HTML)。
|
|
30
|
+
- DeepSeek Harness 核心 **≥ 0.2.1-rc.3**(已声明 `engines.dsh`,在 0.2.2-rc.1 上验证)。
|
|
30
31
|
- 已安装 DeepSeek Harness,并能用 `plugin_manager` 安装本地插件目录。
|
|
31
32
|
- 本机有 Microsoft Edge 或 Google Chrome(用于独立窗口)。
|
|
32
|
-
- Node.js
|
|
33
|
+
- Node.js 20+(随 DSH 提供;跑测试也用它)。
|
|
33
34
|
|
|
34
35
|
## 安装
|
|
35
36
|
|
|
@@ -176,6 +177,7 @@ Outlook 日历 →「设置 → 共享日历 → 发布日历」→ 复制 ICS
|
|
|
176
177
|
| 桌面窗口没出现 | 检查是否安装 Edge/Chrome;查看 `logs\runner.log` 的投递记录 |
|
|
177
178
|
| 飞书/ManageBac 抓不到条目 | 多为前端渲染或需要登录:改用日历 ICS 订阅,或在「添加来源」里填入 Cookie |
|
|
178
179
|
| Outlook 邮箱填密码后报错 / 连不上 | Microsoft 已停用 IMAP 密码登录,但不再需要 Azure:按上面「Outlook 怎么办」把邮件转发到 Gmail / QQ,再添加接收邮箱;或直接用 Outlook 日历的 ICS 链接 |
|
|
180
|
+
| 插件市场里安装失败,任务日志是 `pnpm` 且提到 `@napi-rs/canvas-*` / `@img/sharp-*` 或 `EPERM`/`EBUSY` | 失败发生在市场对整个 DSH profile 做 pnpm 重解析时(删宿主自带的原生可选包,被运行中的 DSH 占用),与插件包无关。完全退出 DSH(含托盘)后重装;仍失败就在终端执行 `dsh plugin add dsh-daily-brief` 取真正的错误行 |
|
|
179
181
|
|
|
180
182
|
## 配置参考(`config.json`)
|
|
181
183
|
|
package/lib/engine/runner.js
CHANGED
|
@@ -233,6 +233,9 @@ export async function runBriefing(options = {}) {
|
|
|
233
233
|
const config = store.loadConfig();
|
|
234
234
|
const now = options.now ? new Date(options.now) : new Date();
|
|
235
235
|
if (Number.isNaN(now.getTime())) throw new Error(`无效的 --now 时间:${options.now}`);
|
|
236
|
+
// A pinned --now run stays on that clock; wall time is only the default, so a
|
|
237
|
+
// replayed schedule never publishes early because the machine clock is late.
|
|
238
|
+
const clockNow = () => (options.now ? now.getTime() : Date.now());
|
|
236
239
|
const dryRun = Boolean(options.dryRun);
|
|
237
240
|
const deliver = options.deliver !== false && !dryRun;
|
|
238
241
|
const force = Boolean(options.force);
|
|
@@ -301,7 +304,7 @@ export async function runBriefing(options = {}) {
|
|
|
301
304
|
// Preparing can take longer than the lead time (slow sources). If the
|
|
302
305
|
// publish instant has arrived, deliver here instead of waiting for a
|
|
303
306
|
// trigger that IgnoreNew may have already swallowed.
|
|
304
|
-
if (
|
|
307
|
+
if (clockNow() < plan.publishAt.getTime() - PUBLISH_EARLY_MS) {
|
|
305
308
|
return {
|
|
306
309
|
ok: true,
|
|
307
310
|
phase,
|
package/package.json
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-daily-brief",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"type": "module",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=20",
|
|
10
|
+
"dsh": ">=0.2.1-rc.3"
|
|
11
|
+
},
|
|
8
12
|
"description": "Daily briefing plugin for DeepSeek Harness: X, RSS/Atom/JSON/ICS, YouTube, Bilibili, Steam, Minecraft and status pages, mailboxes and calendars in one persona-styled card with a scheduled Windows popup.",
|
|
9
13
|
"license": "MIT",
|
|
10
14
|
"repository": {
|