@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.
- package/CHANGELOG.md +61 -1
- package/README.md +115 -9
- package/client.js +1408 -0
- package/contract/CONTRACT.sha256 +10 -0
- package/contract/UPSTREAM.json +37 -0
- package/contract/fixtures/digest-degraded.json +39 -0
- package/contract/fixtures/digest-empty-lang.json +39 -0
- package/contract/fixtures/digest-normal.json +91 -0
- package/contract/schema/api.v1.yaml +70 -0
- package/contract/schema/digest.v1.json +24 -0
- package/contract/schema/ipc.v1.json +103 -0
- package/contract/schema/model.v1.json +46 -0
- package/cordis.patch.yml +3 -0
- package/lib/chunk-RXYA5WFW.js +2909 -0
- package/lib/chunk-XLIFTAVL.js +117 -0
- package/lib/exec-33EQXGUA.js +8 -0
- package/lib/index.d.ts +20 -9
- package/lib/index.js +82 -4
- package/lib/internal.d.ts +1443 -0
- package/lib/internal.js +48 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +46 -7
- package/lib/index.js.map +0 -1
package/lib/internal.js
ADDED
|
@@ -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
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morehao/dsh-github-trending",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "GitHub
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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":[]}
|