@morehao/dsh-github-trending 0.1.2 → 0.1.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/CHANGELOG.md +17 -0
- package/README.md +5 -2
- package/package.json +14 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.4 - 2026-10-30
|
|
4
|
+
|
|
5
|
+
> 0.1.3 从未发布到 npm(tag 推上去后 `release.yml` 在「发布前校验」失败)。0.1.4 是这批改动的第一次真实发布,内容 = 0.1.3 小节 + 本节的修复。
|
|
6
|
+
|
|
7
|
+
### 修复
|
|
8
|
+
|
|
9
|
+
- `check-pack` 不再假设 `npm pack --dry-run --json` 是单段干净 JSON:改为扫描顶层平衡 JSON 值、取第一个含 `files` 的数组,兼容 CI 上「两段 JSON 以逗号相连」的输出形态(release run 41083620340 实测);新增 `test/pack-json.test.mjs` 6 条回归。
|
|
10
|
+
|
|
11
|
+
## 0.1.3 - 2026-10-30
|
|
12
|
+
|
|
13
|
+
### 工程(CI / 工具链)
|
|
14
|
+
|
|
15
|
+
- **门禁补齐为单一入口**:`npm run check` 现在串起语法 → host/client 类型 → lockfile → 契约 → 构建 → 命名/接线 → 打包白名单 → Release 正文冒烟 → 单测 → AC-P;`check.yml` 只调用它,本地与 CI 跑同一串脚本。
|
|
16
|
+
- 新增四道检查:`check-syntax.mjs`(`scripts/`、`test/` 语法 + `locale/`、`contract/` JSON 可解析)、`check-naming.mjs`(包名 / patch `name` / `export const name` 三处一致,`dsh.core` 与 `UPSTREAM.json` 同源,`exports`/`files` 接线)、`check-pack.mjs`(tarball 白名单 + 必备文件)、`smoke-release-notes.mjs`(投影与 git-kit 读回管道逐字一致)。
|
|
17
|
+
- release 链路不再重复校验:`prepublishOnly: npm run check` 改为 `prepack: npm run build`,发布时只构建、不再跑第二遍测试。
|
|
18
|
+
- **actions 升 v7**:此前的两条 CI warning(`Node.js 20 is deprecated`、`package-manager-cache` 非法输入——v4 不认识该输入,等于「关依赖缓存」一直空转)来自 actions v4,升 v7 后消失;Node 保持 22(CI 与发布),`engines` 为 `^22.20.0 || >=24.0.0`,新增 `.nvmrc`,构建依赖精确锁版本。
|
|
19
|
+
|
|
3
20
|
## 0.1.2
|
|
4
21
|
|
|
5
22
|
> 0.1.1 从未发布到 npm(tag 推上去后 CI 在 `npm ci` 就失败),0.1.2 是它的第一次真实发布。
|
package/README.md
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
# dsh-github-trending
|
|
2
2
|
|
|
3
|
+
[](https://github.com/morehao/dsh-github-trending/actions/workflows/check.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@morehao/dsh-github-trending)
|
|
5
|
+
|
|
3
6
|
> GitHub 趋势日报的 **DSH 入口**:每天定时 spawn 本地 [`trendradar`](https://github.com/morehao/trendradar) 核心,抓取 Trending、生成中文简介与当日总结,提交到你自己的仓库并自动合并 PR。
|
|
4
7
|
|
|
5
|
-
**状态:0.1.
|
|
8
|
+
**状态:0.1.2。** 插件侧(配置、调度、核心调用、状态与界面、两个工具)已完成。核心二进制走 **GitHub Release**:首次运行按 `os/arch` 下载、用 `checksums.txt` 校验 sha256、缓存到插件数据目录,之后离线复用。核心仓库打 tag 出资产之前,运行会明确报 `CORE_NOT_DOWNLOADED` / `CORE_UNAVAILABLE` 并给出下载地址——不会写空文件,也不会退回旧内容。
|
|
6
9
|
|
|
7
10
|
## 它做什么
|
|
8
11
|
|
|
@@ -31,7 +34,7 @@ dsh plugin --profile <profile> add @morehao/dsh-github-trending
|
|
|
31
34
|
|
|
32
35
|
**需要什么**
|
|
33
36
|
|
|
34
|
-
- DSH `0.2.1-rc.3` 以上(`engines.dsh`),Node.js
|
|
37
|
+
- DSH `0.2.1-rc.3` 以上(`engines.dsh`),Node.js `^22.20.0 || >=24.0.0`(`.nvmrc` 钉 22 线;CI 与发布跑 22)
|
|
35
38
|
- 一个本地 **git 仓库**(提交目标)与可写的远端
|
|
36
39
|
- 模型:provider + 模型 ID + 密钥(或用宿主已配置的 provider;OAuth 类凭据不需要密钥)
|
|
37
40
|
- Git 与 GitHub 凭据(PAT / Device Flow / 本机 `gh`),仅 push 与开 PR 需要
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morehao/dsh-github-trending",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "GitHub 趋势日报插件:每天定时 spawn 本地 trendradar 核心,抓取 Trending、生成中文简介与总结,提交到你的仓库并自动合并 PR。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"trendradar"
|
|
41
41
|
],
|
|
42
42
|
"engines": {
|
|
43
|
-
"node": "
|
|
43
|
+
"node": "^22.20.0 || >=24.0.0",
|
|
44
44
|
"dsh": ">=0.2.1-rc.3 <0.3.0-0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
@@ -74,20 +74,25 @@
|
|
|
74
74
|
"build:client": "node scripts/build-client.mjs",
|
|
75
75
|
"dev:client": "node scripts/build-client.mjs --watch",
|
|
76
76
|
"typecheck": "tsc --noEmit",
|
|
77
|
+
"check:types": "tsc -p tsconfig.client.json",
|
|
77
78
|
"gen:ipc": "node scripts/gen-ipc-types.mjs",
|
|
78
79
|
"check:contract": "node scripts/sync-contract.mjs --check && node scripts/gen-ipc-types.mjs --check",
|
|
79
80
|
"check:lockfile": "node scripts/check-lockfile.mjs",
|
|
81
|
+
"check:syntax": "node scripts/check-syntax.mjs",
|
|
82
|
+
"check:naming": "node scripts/check-naming.mjs",
|
|
83
|
+
"check:pack": "node scripts/check-pack.mjs",
|
|
84
|
+
"check:release-notes": "node scripts/smoke-release-notes.mjs",
|
|
80
85
|
"test": "node --test \"test/*.test.mjs\"",
|
|
81
86
|
"pretest": "npm run build",
|
|
82
|
-
"check": "npm run typecheck && npm run check:lockfile && npm run check:contract && npm run build && npm test",
|
|
83
|
-
"
|
|
87
|
+
"check": "npm run check:syntax && npm run typecheck && npm run check:types && npm run check:lockfile && npm run check:contract && npm run build && npm run check:naming && npm run check:pack && npm run check:release-notes && npm test --ignore-scripts && node scripts/ac/run.mjs",
|
|
88
|
+
"prepack": "npm run build"
|
|
84
89
|
},
|
|
85
90
|
"devDependencies": {
|
|
86
|
-
"@types/node": "
|
|
87
|
-
"@types/react": "
|
|
88
|
-
"esbuild": "
|
|
89
|
-
"tsup": "
|
|
90
|
-
"typescript": "
|
|
91
|
+
"@types/node": "22.20.5",
|
|
92
|
+
"@types/react": "18.3.31",
|
|
93
|
+
"esbuild": "0.28.2",
|
|
94
|
+
"tsup": "8.5.1",
|
|
95
|
+
"typescript": "5.9.3"
|
|
91
96
|
},
|
|
92
97
|
"license": "MIT",
|
|
93
98
|
"author": "morehao <morehao@qq.com>",
|