@morehao/dsh-github-trending 0.0.1 → 0.1.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.
@@ -0,0 +1,48 @@
1
+ import {
2
+ channel_exports,
3
+ config_exports,
4
+ core_exports,
5
+ credentials_exports,
6
+ errors_exports,
7
+ handshake_exports,
8
+ import_cli_exports,
9
+ ipc_exports,
10
+ locate_exports,
11
+ paths_exports,
12
+ preflight_exports,
13
+ proxy_exports,
14
+ quickfill_exports,
15
+ release_exports,
16
+ routes_exports,
17
+ run_exports,
18
+ runner_exports,
19
+ schedule_exports,
20
+ state_exports,
21
+ tools_exports
22
+ } from "./chunk-RXYA5WFW.js";
23
+ import {
24
+ exec_exports
25
+ } from "./chunk-XLIFTAVL.js";
26
+ export {
27
+ channel_exports as channel,
28
+ config_exports as config,
29
+ core_exports as core,
30
+ credentials_exports as credentials,
31
+ errors_exports as errors,
32
+ exec_exports as exec,
33
+ handshake_exports as handshake,
34
+ import_cli_exports as importCli,
35
+ ipc_exports as ipc,
36
+ locate_exports as locate,
37
+ paths_exports as paths,
38
+ preflight_exports as preflight,
39
+ proxy_exports as proxy,
40
+ quickfill_exports as quickfill,
41
+ release_exports as release,
42
+ routes_exports as routes,
43
+ run_exports as run,
44
+ runner_exports as runner,
45
+ schedule_exports as schedule,
46
+ state_exports as state,
47
+ tools_exports as tools
48
+ };
package/locale/en.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "GitHub Trending Digest",
4
+ "description": "Fetch GitHub Trending on a daily schedule, summarize it in Chinese, commit into your own repo and auto-merge the PR. All content is produced by the local trendradar core."
5
+ }
6
+ }
package/locale/zh.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "meta": {
3
+ "title": "GitHub 趋势日报",
4
+ "description": "每天定时把 GitHub Trending 抓取、生成中文简介与总结,提交到你自己的仓库并自动合并 PR;内容全部由本地 trendradar 核心产出。"
5
+ }
6
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@morehao/dsh-github-trending",
3
- "version": "0.0.1",
4
- "description": "GitHub 趋势日报插件:每日抓取 Trending、生成中文简介与总结,提交到自己仓库并自动合并 PR。",
3
+ "version": "0.1.2",
4
+ "description": "GitHub 趋势日报插件:每天定时 spawn 本地 trendradar 核心,抓取 Trending、生成中文简介与总结,提交到你的仓库并自动合并 PR。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -10,16 +10,23 @@
10
10
  "types": "./lib/index.d.ts",
11
11
  "default": "./lib/index.js"
12
12
  },
13
+ "./client": "./client.js",
13
14
  "./cordis.patch.yml": "./cordis.patch.yml",
15
+ "./locale/*.json": "./locale/*.json",
16
+ "./icon": "./icon.svg",
17
+ "./contract/*": "./contract/*",
14
18
  "./package.json": "./package.json"
15
19
  },
16
20
  "files": [
17
21
  "lib",
22
+ "client.js",
23
+ "contract",
24
+ "locale",
18
25
  "cordis.patch.yml",
26
+ "icon.svg",
19
27
  "README.md",
20
- "LICENSE",
21
28
  "CHANGELOG.md",
22
- "icon.svg"
29
+ "LICENSE"
23
30
  ],
24
31
  "icon": "icon.svg",
25
32
  "keywords": [
@@ -29,24 +36,56 @@
29
36
  "github",
30
37
  "trending",
31
38
  "daily-digest",
32
- "chinese"
39
+ "chinese",
40
+ "trendradar"
33
41
  ],
34
42
  "engines": {
35
43
  "node": ">=22.20",
36
44
  "dsh": ">=0.2.1-rc.3 <0.3.0-0"
37
45
  },
46
+ "peerDependencies": {
47
+ "@deepseek-ai/dsh-tools": ">=0.2.1-rc.3 <0.3.0-0"
48
+ },
49
+ "peerDependenciesMeta": {
50
+ "@deepseek-ai/dsh-tools": {
51
+ "optional": true
52
+ }
53
+ },
38
54
  "dsh": {
39
55
  "bundle": {
40
56
  "patch": "./cordis.patch.yml"
57
+ },
58
+ "core": {
59
+ "repo": "morehao/trendradar",
60
+ "version": "0.1.0"
61
+ },
62
+ "client": {
63
+ "platform": "web",
64
+ "immediately": true,
65
+ "inject": [
66
+ "@deepseek-ai/dsh-client-ui-slots",
67
+ "@deepseek-ai/dsh-client-locale"
68
+ ]
41
69
  }
42
70
  },
43
71
  "scripts": {
44
- "build": "tsup",
72
+ "build": "tsup && node scripts/build-client.mjs",
73
+ "build:host": "tsup",
74
+ "build:client": "node scripts/build-client.mjs",
75
+ "dev:client": "node scripts/build-client.mjs --watch",
45
76
  "typecheck": "tsc --noEmit",
46
- "prepublishOnly": "npm run build"
77
+ "gen:ipc": "node scripts/gen-ipc-types.mjs",
78
+ "check:contract": "node scripts/sync-contract.mjs --check && node scripts/gen-ipc-types.mjs --check",
79
+ "check:lockfile": "node scripts/check-lockfile.mjs",
80
+ "test": "node --test \"test/*.test.mjs\"",
81
+ "pretest": "npm run build",
82
+ "check": "npm run typecheck && npm run check:lockfile && npm run check:contract && npm run build && npm test",
83
+ "prepublishOnly": "npm run check"
47
84
  },
48
85
  "devDependencies": {
49
86
  "@types/node": "^22.0.0",
87
+ "@types/react": "^18.3.31",
88
+ "esbuild": "^0.28.0",
50
89
  "tsup": "^8.0.0",
51
90
  "typescript": "^5.9.0"
52
91
  },
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * dsh-github-trending — 插件入口(脚手架)\n *\n * 当前只做最小装配,验证包结构可被宿主加载。\n * 业务模块(fetcher / parser / summarizer / renderer / git / pr)按设计文档分阶段接入。\n */\n\nexport const name = 'dsh-github-trending'\n\nexport interface PluginLogger {\n info?: (message: string) => void\n warn?: (message: string) => void\n}\n\nexport interface PluginContext {\n logger?: PluginLogger\n}\n\nexport const inject: string[] = []\n\nexport function apply(ctx: PluginContext): void {\n ctx.logger?.info?.('[dsh-github-trending] loaded (scaffold)')\n}\n\nexport default { name, inject, apply }\n"],"mappings":";AAOO,IAAM,OAAO;AAWb,IAAM,SAAmB,CAAC;AAE1B,SAAS,MAAM,KAA0B;AAC9C,MAAI,QAAQ,OAAO,yCAAyC;AAC9D;AAEA,IAAO,gBAAQ,EAAE,MAAM,QAAQ,MAAM;","names":[]}