dsh-github-overview 0.0.0-stage → 0.2.12
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 +30 -2
- package/cordis.patch.yml +3 -0
- package/docs/DETAIL.md +1 -0
- package/docs/DETAIL.zh.md +1 -0
- package/docs/preview.svg +37 -0
- package/icon.png +0 -0
- package/icon.svg +8 -0
- package/index.js +246 -0
- package/locale/en.json +7 -0
- package/locale/zh.json +7 -0
- package/package.json +42 -4
package/README.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GitHub Overview
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
一个 DSH 插件,把本机正在跑的 GitHub Overview 看板接给模型:装好之后模型多了一个 `github_overview` 工具,问「我仓库最近的访客」「npm 下载涨了没」「哪些人给我提了 PR」时它读真实数字,不再估。
|
|
4
|
+
|
|
5
|
+
## 装之前
|
|
6
|
+
|
|
7
|
+
- 先让看板跑起来:`npx github-overview start`,或者打开桌面端。插件只跟 `127.0.0.1` 上已经监听的那一个实例说话。
|
|
8
|
+
- 看板要绑过账号,第一次在页面里用 GitHub 登录一次就好。插件自己不读 token、不读 store、不联网到 GitHub。
|
|
9
|
+
|
|
10
|
+
## 工具
|
|
11
|
+
|
|
12
|
+
`github_overview({ repo?, days? })`
|
|
13
|
+
|
|
14
|
+
- `repo`:`owner/name`,或者 `全部仓库`(也就是不带)看全部。
|
|
15
|
+
- `days`:`1` / `7` / `30` / `90`,默认 `7`。超过已采集天数的窗口只覆盖有记录的那几天,返回里 `covered` 会写清楚。
|
|
16
|
+
|
|
17
|
+
返回访客/浏览、去重访客、克隆、克隆去重、npm 下载(总计与近一周)、按天的序列、14 天漏斗、每个仓库一行、外部贡献和 star 增长,以及这份数据是什么时候同步的。
|
|
18
|
+
|
|
19
|
+
三种情况会明确报出来,不会编数字:
|
|
20
|
+
|
|
21
|
+
- 没在看板上跑 → `看板没在运行:先 npx github-overview start,或打开桌面端`
|
|
22
|
+
- 看板没绑账号 → `看板还没绑定账号:在页面里用 GitHub 登录一次`
|
|
23
|
+
- 绑了但还没同步 → `还没有同步数据:在页面上点一次刷新`
|
|
24
|
+
|
|
25
|
+
## 端口
|
|
26
|
+
|
|
27
|
+
依次探测 `4317`–`4321`(CLI 默认 4317,端口被占时会往后挪)。自己改了端口就设 `GITHUB_OVERVIEW_URL=http://127.0.0.1:<端口>`。
|
|
28
|
+
|
|
29
|
+
## 口径
|
|
30
|
+
|
|
31
|
+
插件只是转发看板算好的数,所以口径跟着看板:访客是 GitHub 的 14 天去重人数,不跨仓相加;浏览和克隆不相加;没采集的日子留空,不画成 0。
|
package/cordis.patch.yml
ADDED
package/docs/DETAIL.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+

|
|
@@ -0,0 +1 @@
|
|
|
1
|
+

|
package/docs/preview.svg
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="640" height="300" viewBox="0 0 640 300">
|
|
2
|
+
<rect width="640" height="300" fill="#ffffff"/>
|
|
3
|
+
<rect x="32" y="32" width="272" height="236" rx="14" fill="#f8fafc" stroke="#e2e8f0" stroke-width="2"/>
|
|
4
|
+
<rect x="52" y="52" width="96" height="9" rx="4.5" fill="#94a3b8"/>
|
|
5
|
+
<rect x="52" y="72" width="56" height="7" rx="3.5" fill="#cbd5e1"/>
|
|
6
|
+
<rect x="52" y="192" width="26" height="54" rx="5" fill="#38bdf8"/>
|
|
7
|
+
<rect x="88" y="166" width="26" height="80" rx="5" fill="#38bdf8"/>
|
|
8
|
+
<rect x="124" y="204" width="26" height="42" rx="5" fill="#38bdf8"/>
|
|
9
|
+
<rect x="160" y="140" width="26" height="106" rx="5" fill="#0ea5e9"/>
|
|
10
|
+
<rect x="196" y="178" width="26" height="68" rx="5" fill="#0ea5e9"/>
|
|
11
|
+
<rect x="232" y="152" width="26" height="94" rx="5" fill="#0ea5e9"/>
|
|
12
|
+
<rect x="52" y="100" width="120" height="24" rx="7" fill="#e2e8f0"/>
|
|
13
|
+
<rect x="60" y="108" width="34" height="8" rx="4" fill="#0ea5e9"/>
|
|
14
|
+
<rect x="100" y="108" width="22" height="8" rx="4" fill="#cbd5e1"/>
|
|
15
|
+
<rect x="128" y="108" width="16" height="8" rx="4" fill="#cbd5e1"/>
|
|
16
|
+
<rect x="336" y="32" width="272" height="236" rx="14" fill="#0f172a"/>
|
|
17
|
+
<rect x="356" y="52" width="164" height="22" rx="11" fill="#1e293b"/>
|
|
18
|
+
<rect x="368" y="60" width="72" height="6" rx="3" fill="#38bdf8"/>
|
|
19
|
+
<rect x="446" y="60" width="40" height="6" rx="3" fill="#475569"/>
|
|
20
|
+
<rect x="356" y="94" width="112" height="8" rx="4" fill="#475569"/>
|
|
21
|
+
<rect x="480" y="94" width="48" height="8" rx="4" fill="#e2e8f0"/>
|
|
22
|
+
<rect x="356" y="118" width="140" height="8" rx="4" fill="#475569"/>
|
|
23
|
+
<rect x="480" y="118" width="64" height="8" rx="4" fill="#e2e8f0"/>
|
|
24
|
+
<rect x="356" y="142" width="96" height="8" rx="4" fill="#475569"/>
|
|
25
|
+
<rect x="480" y="142" width="36" height="8" rx="4" fill="#e2e8f0"/>
|
|
26
|
+
<rect x="356" y="166" width="124" height="8" rx="4" fill="#475569"/>
|
|
27
|
+
<rect x="480" y="166" width="52" height="8" rx="4" fill="#e2e8f0"/>
|
|
28
|
+
<rect x="356" y="190" width="86" height="8" rx="4" fill="#475569"/>
|
|
29
|
+
<rect x="480" y="190" width="44" height="8" rx="4" fill="#e2e8f0"/>
|
|
30
|
+
<rect x="356" y="222" width="232" height="26" rx="8" fill="#14312a"/>
|
|
31
|
+
<circle cx="372" cy="235" r="6" fill="none" stroke="#4ade80" stroke-width="2"/>
|
|
32
|
+
<path d="M369.2 235.2l2 2 3.7-4" fill="none" stroke="#4ade80" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
33
|
+
<rect x="388" y="231" width="60" height="8" rx="4" fill="#4ade80"/>
|
|
34
|
+
<rect x="458" y="231" width="96" height="8" rx="4" fill="#1f6f52"/>
|
|
35
|
+
<path d="M312 150h12" stroke="#cbd5e1" stroke-width="2" stroke-linecap="round"/>
|
|
36
|
+
<path d="M318 143l7 7-7 7" fill="none" stroke="#cbd5e1" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
37
|
+
</svg>
|
package/icon.png
ADDED
|
Binary file
|
package/icon.svg
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32">
|
|
2
|
+
<rect x="3" y="7" width="18" height="16" rx="2.5" fill="#1f2937"/>
|
|
3
|
+
<rect x="6" y="10" width="7" height="1.8" rx="0.9" fill="#64748b"/>
|
|
4
|
+
<rect x="6" y="15.5" width="3" height="4.8" rx="0.9" fill="#38bdf8"/>
|
|
5
|
+
<rect x="10.4" y="13.4" width="3" height="6.9" rx="0.9" fill="#38bdf8"/>
|
|
6
|
+
<circle cx="23" cy="20.6" r="7.2" fill="#4ade80"/>
|
|
7
|
+
<path d="M20.3 20.8l2.1 2.1 4-4.4" fill="none" stroke="#0f172a" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
</svg>
|
package/index.js
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-github-overview — let the agent read the local GitHub Overview dashboard.
|
|
3
|
+
*
|
|
4
|
+
* The dashboard (github-overview) already syncs GitHub traffic, npm downloads,
|
|
5
|
+
* stars and external contributions into a local store and serves them over
|
|
6
|
+
* HTTP. This bundle adds one tool that routes a model's question to that
|
|
7
|
+
* running instance instead of guessing: it probes the loopback ports the CLI
|
|
8
|
+
* and the desktop shell bind, reads `/api/data` for the requested window, and
|
|
9
|
+
* hands back the same numbers the page shows.
|
|
10
|
+
*
|
|
11
|
+
* It is deliberately dependency-free and reads nothing from disk: no store
|
|
12
|
+
* parsing, no token, no GitHub call of its own. When no instance is running or
|
|
13
|
+
* the instance is not bound yet, the tool says so and the model asks the user
|
|
14
|
+
* to start it, rather than inventing figures.
|
|
15
|
+
*
|
|
16
|
+
* @module dsh-github-overview
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
/** Plugin id, as declared by the bundle patch. */
|
|
20
|
+
export const name = 'github-overview'
|
|
21
|
+
|
|
22
|
+
/** The tool registry is the only service this plugin needs. */
|
|
23
|
+
export const inject = ['tools']
|
|
24
|
+
|
|
25
|
+
/** Ports the CLI and the desktop shell bind by default, in probe order. */
|
|
26
|
+
const PORTS = [4317, 4318, 4319, 4320, 4321]
|
|
27
|
+
|
|
28
|
+
/** Windows the dashboard stores and the page offers. */
|
|
29
|
+
const DAYS = [1, 7, 30, 90]
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Ask one candidate origin whether a dashboard answers there.
|
|
33
|
+
*
|
|
34
|
+
* It probes `/api/repos`, which is answered from the local store. `/api/auth`
|
|
35
|
+
* would be the natural choice but it asks GitHub for the account name, so it
|
|
36
|
+
* costs about a second and a short timeout would turn a live dashboard into a
|
|
37
|
+
* false "not running".
|
|
38
|
+
*
|
|
39
|
+
* @param origin - `http://127.0.0.1:<port>`.
|
|
40
|
+
* @returns true when a dashboard answers there.
|
|
41
|
+
*/
|
|
42
|
+
async function probe(origin) {
|
|
43
|
+
try {
|
|
44
|
+
const res = await fetch(`${origin}/api/repos`, { signal: AbortSignal.timeout(1200) })
|
|
45
|
+
if (!res.ok) return false
|
|
46
|
+
const body = await res.json()
|
|
47
|
+
// Bound: `{ repos: [...] }`. Unbound: a bare `[]`.
|
|
48
|
+
return Array.isArray(body) || Array.isArray(body?.repos)
|
|
49
|
+
} catch {
|
|
50
|
+
return false
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Locate a running dashboard.
|
|
56
|
+
* @returns its origin, or null when none answers.
|
|
57
|
+
*/
|
|
58
|
+
async function locate() {
|
|
59
|
+
const fixed = process.env.GITHUB_OVERVIEW_URL
|
|
60
|
+
if (fixed) {
|
|
61
|
+
const origin = fixed.replace(/\/$/, '')
|
|
62
|
+
return (await probe(origin)) ? origin : null
|
|
63
|
+
}
|
|
64
|
+
const origins = PORTS.map((port) => `http://127.0.0.1:${port}`)
|
|
65
|
+
const hits = await Promise.all(origins.map(async (origin) => ((await probe(origin)) ? origin : null)))
|
|
66
|
+
return hits.find(Boolean) ?? null
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Read one window of dashboard data.
|
|
71
|
+
* @param origin - dashboard base URL.
|
|
72
|
+
* @param days - window in days.
|
|
73
|
+
* @param repo - repository key, or undefined for the aggregate row.
|
|
74
|
+
* @returns the `/api/data` body.
|
|
75
|
+
*/
|
|
76
|
+
async function read(origin, days, repo, tries = 2) {
|
|
77
|
+
const url = new URL(`${origin}/api/data`)
|
|
78
|
+
url.searchParams.set('days', String(days))
|
|
79
|
+
if (repo) url.searchParams.set('repo', repo)
|
|
80
|
+
const res = await fetch(url, { signal: AbortSignal.timeout(20000) })
|
|
81
|
+
const body = await res.json()
|
|
82
|
+
if (res.ok) return body
|
|
83
|
+
// The first read after a sync can land while the store is being rewritten.
|
|
84
|
+
if (tries > 0 && res.status >= 500) return read(origin, days, repo, tries - 1)
|
|
85
|
+
throw new Error(body?.error ?? `看板返回 ${res.status}`)
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Drop keys the store did not have, so the tool result survives a JSON round
|
|
90
|
+
* trip: an `undefined` field is not lossless JSON and the host rejects it.
|
|
91
|
+
* @param value - any tool result.
|
|
92
|
+
* @returns the same value with `undefined`-valued keys removed.
|
|
93
|
+
*/
|
|
94
|
+
function plain(value) {
|
|
95
|
+
return JSON.parse(JSON.stringify(value ?? null))
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Compress the dashboard payload to what a model needs to answer a question:
|
|
100
|
+
* totals, the daily series, the funnel, and the per-repository rows.
|
|
101
|
+
* @param data - `/api/data` body.
|
|
102
|
+
* @returns a small report.
|
|
103
|
+
*/
|
|
104
|
+
function digest(data) {
|
|
105
|
+
const totals = data.totals ?? {}
|
|
106
|
+
return {
|
|
107
|
+
repo: data.repo?.fullName ?? '全部仓库',
|
|
108
|
+
days: data.range?.days ?? null,
|
|
109
|
+
covered: data.range?.covered ?? null,
|
|
110
|
+
storedDays: data.range?.storedDays ?? null,
|
|
111
|
+
first: data.range?.first ?? null,
|
|
112
|
+
totals: {
|
|
113
|
+
views: totals.views ?? null,
|
|
114
|
+
uniques: totals.uniques ?? null,
|
|
115
|
+
clones: totals.clones ?? null,
|
|
116
|
+
cloneUniques: totals.cloneUniques ?? null,
|
|
117
|
+
npm: totals.npm ?? null,
|
|
118
|
+
npmWeek: totals.npmWeek ?? null,
|
|
119
|
+
},
|
|
120
|
+
series: (data.series ?? []).map((x) => ({ date: x.d, views: x.v ?? null, uniques: x.u ?? null, clones: x.c ?? null, npm: x.n ?? null })),
|
|
121
|
+
funnel: data.funnel ?? null,
|
|
122
|
+
// Rows carry `key`; `fullName` belongs to the aggregate `repo` object.
|
|
123
|
+
repos: (data.repos ?? []).slice(0, 12).map((r) => ({ repo: r.key ?? r.fullName ?? null, uniques: r.uniques ?? null, views: r.views ?? null, npm: r.npm ?? null, stars: r.stars ?? null, starDelta: r.starDelta ?? null })),
|
|
124
|
+
repoCount: (data.repos ?? []).length,
|
|
125
|
+
contributions: contributionsOf(data),
|
|
126
|
+
starGrowth: data.starGrowth ?? null,
|
|
127
|
+
updatedAt: data.updatedAt ?? null,
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Turn the payload into the few lines a person reads in the transcript.
|
|
133
|
+
* The full numbers are in the tool result; this is the summary card.
|
|
134
|
+
* @param value - executed tool result.
|
|
135
|
+
* @returns printable text.
|
|
136
|
+
*/
|
|
137
|
+
function card(value) {
|
|
138
|
+
if (!value || typeof value !== 'object') return '没有拿到数据'
|
|
139
|
+
if (value.ok === false) return value.reason ?? '读不到看板'
|
|
140
|
+
const t = value.totals ?? {}
|
|
141
|
+
const head = `${value.repo ?? '全部仓库'} · 近 ${value.days ?? 7} 天`
|
|
142
|
+
const line = (label, n, extra) => (n === null || n === undefined ? null : `${label} ${Number(n).toLocaleString('en')}${extra ? ` ${extra}` : ''}`)
|
|
143
|
+
const rows = [
|
|
144
|
+
line('浏览', t.views),
|
|
145
|
+
line('去重访客', t.uniques),
|
|
146
|
+
line('克隆', t.clones),
|
|
147
|
+
line('npm', t.npm),
|
|
148
|
+
].filter(Boolean)
|
|
149
|
+
// `starGrowth.delta` is the change inside the window; `span` is the window itself.
|
|
150
|
+
const g = value.starGrowth ?? {}
|
|
151
|
+
if (typeof g.delta === 'number') rows.push(`star ${g.delta >= 0 ? '+' : ''}${g.delta}`)
|
|
152
|
+
const c = value.contributions ?? {}
|
|
153
|
+
if (c.issues || c.pulls) rows.push(`外部 issue ${c.issues ?? 0} · PR ${c.pulls ?? 0}`)
|
|
154
|
+
const stored = typeof value.storedDays === 'number' ? `已存 ${value.storedDays} 天` : ''
|
|
155
|
+
const tail = [stored, value.updatedAt ? `同步于 ${value.updatedAt}` : ''].filter(Boolean).join(' · ')
|
|
156
|
+
return `${head}\n${rows.join(' · ') || '没有数据'}${tail ? `\n${tail}` : ''}`
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Fold the contributions block into counts, which is all a question needs.
|
|
161
|
+
* @param data - `/api/data` body.
|
|
162
|
+
* @returns counts, or null when the window did not collect them.
|
|
163
|
+
*/
|
|
164
|
+
function contributionsOf(data) {
|
|
165
|
+
const c = data.contributions
|
|
166
|
+
if (!c) return null
|
|
167
|
+
const open = c.open ?? {}
|
|
168
|
+
return {
|
|
169
|
+
issues: Array.isArray(c.issues) ? c.issues.length : 0,
|
|
170
|
+
pulls: Array.isArray(c.pulls) ? c.pulls.length : 0,
|
|
171
|
+
openIssues: Array.isArray(open.issues) ? open.issues.length : 0,
|
|
172
|
+
openPulls: Array.isArray(open.pulls) ? open.pulls.length : 0,
|
|
173
|
+
dependabot: c.alerts?.dependabot?.open ?? null,
|
|
174
|
+
at: c.at ?? null,
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** Tool definition: one read of the running dashboard. */
|
|
179
|
+
const definition = {
|
|
180
|
+
name: 'github_overview',
|
|
181
|
+
description:
|
|
182
|
+
'Read the local GitHub Overview dashboard: traffic views and unique visitors, git clones, npm downloads, the 14-day funnel, per-repository rows, external contributions and star growth. Use it whenever the user asks about their GitHub repos\' traffic, downloads or growth instead of estimating. Requires the dashboard to be running (npx github-overview start); it reports that when nothing answers.',
|
|
183
|
+
parameters: {
|
|
184
|
+
type: 'object',
|
|
185
|
+
properties: {
|
|
186
|
+
repo: {
|
|
187
|
+
type: 'string',
|
|
188
|
+
description: 'Repository as owner/name, or 全部仓库 for the aggregate row. Omit for the aggregate.',
|
|
189
|
+
},
|
|
190
|
+
days: {
|
|
191
|
+
type: 'integer',
|
|
192
|
+
enum: DAYS,
|
|
193
|
+
description: 'Window in days. Defaults to 7. Windows beyond the stored snapshots only cover recorded days.',
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
required: [],
|
|
197
|
+
},
|
|
198
|
+
output: {
|
|
199
|
+
schema: {
|
|
200
|
+
type: 'object',
|
|
201
|
+
properties: {
|
|
202
|
+
ok: { type: 'boolean' },
|
|
203
|
+
reason: { type: 'string' },
|
|
204
|
+
origin: { type: 'string' },
|
|
205
|
+
repo: { type: 'string' },
|
|
206
|
+
repoCount: { type: 'integer' },
|
|
207
|
+
days: { type: 'integer' },
|
|
208
|
+
covered: { type: 'integer' },
|
|
209
|
+
storedDays: { type: 'integer' },
|
|
210
|
+
first: { type: 'string' },
|
|
211
|
+
totals: { type: 'object' },
|
|
212
|
+
series: { type: 'array', items: { type: 'object' } },
|
|
213
|
+
repos: { type: 'array', items: { type: 'object' } },
|
|
214
|
+
funnel: { type: 'object' },
|
|
215
|
+
contributions: { type: 'object' },
|
|
216
|
+
starGrowth: { type: 'object' },
|
|
217
|
+
updatedAt: { type: 'string' },
|
|
218
|
+
},
|
|
219
|
+
},
|
|
220
|
+
render: (_args, value) => [{ type: 'text', text: card(value) }],
|
|
221
|
+
},
|
|
222
|
+
async execute(args) {
|
|
223
|
+
const days = DAYS.includes(args?.days) ? args.days : 7
|
|
224
|
+
const repo = typeof args?.repo === 'string' && args.repo.trim() && args.repo.trim() !== '全部仓库' ? args.repo.trim() : undefined
|
|
225
|
+
|
|
226
|
+
const found = await locate()
|
|
227
|
+
if (!found) return { ok: false, reason: '看板没在运行:先 npx github-overview start,或打开桌面端' }
|
|
228
|
+
|
|
229
|
+
try {
|
|
230
|
+
const data = await read(found, days, repo)
|
|
231
|
+
if (data.needsBinding) return { ok: false, reason: '看板还没绑定账号:在页面里用 GitHub 登录一次' }
|
|
232
|
+
if (data.empty) return plain({ ok: true, reason: '还没有同步数据:在页面上点一次刷新', repo: repo ?? '全部仓库', days })
|
|
233
|
+
return plain({ ok: true, origin: found, ...digest(data) })
|
|
234
|
+
} catch (error) {
|
|
235
|
+
return plain({ ok: false, reason: String(error?.message ?? error) })
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Register the dashboard tool.
|
|
242
|
+
* @param ctx - registrant context carrying the `tools` service.
|
|
243
|
+
*/
|
|
244
|
+
export function apply(ctx) {
|
|
245
|
+
ctx.effect(() => ctx.tools.register(definition, {}), 'github-overview.tool')
|
|
246
|
+
}
|
package/locale/en.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"meta": {
|
|
3
|
+
"title": "GitHub Overview",
|
|
4
|
+
"description": "Reads your local dashboard instead of guessing: one tool returns traffic views and unique visitors, clones, npm downloads, the 14-day funnel, per-repository rows, external contributions and star growth. Start the dashboard first (npx github-overview start, or the desktop app); with nothing running it says so and reads nothing from disk.",
|
|
5
|
+
"detail": "docs/DETAIL.md"
|
|
6
|
+
}
|
|
7
|
+
}
|
package/locale/zh.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-github-overview",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.2.12",
|
|
4
|
+
"description": "Reads the local GitHub Overview dashboard inside the agent: traffic, unique visitors, clones, npm downloads, the funnel, per-repository rows and external contributions.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"engines": {
|
|
9
|
+
"dsh": ">=0.1.5"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/regrevia/github-overview.git",
|
|
14
|
+
"directory": "plugin"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/regrevia/github-overview#readme",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"dsh-plugin",
|
|
19
|
+
"deepseek-harness",
|
|
20
|
+
"github",
|
|
21
|
+
"traffic",
|
|
22
|
+
"analytics",
|
|
23
|
+
"npm-downloads"
|
|
24
|
+
],
|
|
25
|
+
"exports": {
|
|
26
|
+
".": "./index.js",
|
|
27
|
+
"./locale/*": "./locale/*",
|
|
28
|
+
"./icon": "./icon.svg"
|
|
29
|
+
},
|
|
30
|
+
"dsh": {
|
|
31
|
+
"bundle": {
|
|
32
|
+
"patch": "./cordis.patch.yml"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"index.js",
|
|
37
|
+
"cordis.patch.yml",
|
|
38
|
+
"locale",
|
|
39
|
+
"docs",
|
|
40
|
+
"icon.svg",
|
|
41
|
+
"README.md",
|
|
42
|
+
"icon.png"
|
|
43
|
+
]
|
|
44
|
+
}
|