@cobola/dsh-geo 0.2.0 → 0.3.1
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/.github/workflows/publish.yml +7 -1
- package/CHANGELOG.md +15 -0
- package/README.md +37 -3
- package/bin/dsh-geo.js +3 -0
- package/client.js +29 -4
- package/docs/.nojekyll +0 -0
- package/docs/NPM-TRUSTED-PUBLISHING.md +4 -4
- package/docs/PROFILES.md +18 -7
- package/docs/icons/geo.svg +8 -0
- package/docs/index.json +41 -0
- package/index.js +6 -1
- package/lib/html.js +2 -0
- package/lib/platforms/bing.js +95 -0
- package/lib/platforms/index.js +70 -0
- package/lib/report.js +51 -0
- package/lib/robots.js +11 -0
- package/lib/scan.js +3 -1
- package/lib/score.js +2 -0
- package/lib/store.js +6 -0
- package/package.json +13 -2
|
@@ -56,4 +56,10 @@ jobs:
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
- name: Publish with npm Trusted Publishing
|
|
59
|
-
run:
|
|
59
|
+
run: |
|
|
60
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
61
|
+
if npm view "@cobola/dsh-geo@$VERSION" version >/dev/null 2>&1; then
|
|
62
|
+
echo "@cobola/dsh-geo@$VERSION is already published; skipping."
|
|
63
|
+
exit 0
|
|
64
|
+
fi
|
|
65
|
+
npm publish --access public
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.1 - 2026-11-29
|
|
4
|
+
|
|
5
|
+
### Fixes
|
|
6
|
+
|
|
7
|
+
- The visibility dashboard now names the audited site in its header, so it is
|
|
8
|
+
clear which site the score, trend and platform results belong to.
|
|
9
|
+
- The settings panel states that it configures scan behaviour only and is not
|
|
10
|
+
tied to any site.
|
|
11
|
+
|
|
12
|
+
### Tests
|
|
13
|
+
|
|
14
|
+
- Panel tests now render the dashboard component in loading, empty, error and
|
|
15
|
+
ready states, and assert the audited site URL is displayed.
|
|
16
|
+
|
|
17
|
+
|
|
3
18
|
## 0.2.0 - 2026-11-29
|
|
4
19
|
|
|
5
20
|
- Published as the scoped npm package `@cobola/dsh-geo` (the unscoped `dsh-geo` name was refused by npm for being too similar to `d3-geo`).
|
package/README.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
> Apache-2.0 开源项目 · 当前版本 v0.2.0 · npm / 本地目录安装 · 不上传站点内容
|
|
6
6
|
|
|
7
|
+
[](https://www.npmjs.com/package/@cobola/dsh-geo)
|
|
8
|
+
[](LICENSE)
|
|
9
|
+
[](https://github.com/cobola/dsh-geo/releases)
|
|
10
|
+
|
|
7
11
|
`dsh-geo` 是一个面向网站维护者、内容团队、SEO/GEO 顾问和开发者的只读、可复现网站可见性体检工具。
|
|
8
12
|
|
|
9
13
|
`dsh-geo` 是一个只读、可复现的网站 GEO/SEO 结构体检工具:它读取网站实际返回的 HTML、robots.txt、sitemap 和结构化数据,找出影响可见性的具体问题,生成可以直接执行的修复清单,并在修改后用同一套规则复查结果。
|
|
@@ -33,6 +37,24 @@
|
|
|
33
37
|
|
|
34
38
|
## 安装
|
|
35
39
|
|
|
40
|
+
### 在 DSH 中通过插件源安装
|
|
41
|
+
|
|
42
|
+
本仓库附带一个可直接添加的 DSH 插件索引(Discover):
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
https://cobola.github.io/dsh-geo/index.json
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
步骤:
|
|
49
|
+
|
|
50
|
+
1. **Plugins → Experimental plugins → Custom plugin indexes** 打开 Discover;
|
|
51
|
+
2. **Discover → Add index source**,粘贴上面的 URL;
|
|
52
|
+
3. 在 dsh-geo 卡片上点 **Install**。
|
|
53
|
+
|
|
54
|
+
这会从 npm 安装 `@cobola/dsh-geo@0.2.0`,并注册插件 bundle。
|
|
55
|
+
|
|
56
|
+
### 从 npm 安装(命令行)
|
|
57
|
+
|
|
36
58
|
从 npm 安装(命令行):
|
|
37
59
|
|
|
38
60
|
```sh
|
|
@@ -125,6 +147,8 @@ CLI 也随 npm 包提供:`npx @cobola/dsh-geo --help`;完整参数见 `dsh-g
|
|
|
125
147
|
|
|
126
148
|
## 评分模型
|
|
127
149
|
|
|
150
|
+
### Core:五维结构体检
|
|
151
|
+
|
|
128
152
|
| 维度 | 权重 | 回答的问题 |
|
|
129
153
|
|---|---|---|
|
|
130
154
|
| 可发现性 | 25 | 爬虫能否找到、抓取并索引页面 |
|
|
@@ -135,7 +159,16 @@ CLI 也随 npm 包提供:`npx @cobola/dsh-geo --help`;完整参数见 `dsh-g
|
|
|
135
159
|
|
|
136
160
|
45 条可审计检查,维度内按权重归一化;`pass` 计 1、`warn` 计 0.5、`fail` 计 0、`skip` 移出分母。总分是五维加权平均。完整规则、阈值与修复建议见 **[docs/RULES.md](docs/RULES.md)**(由 `lib/rules.js` 生成)。
|
|
137
161
|
|
|
138
|
-
|
|
162
|
+
### 平台适配:单独计分,不进 Core 总分
|
|
163
|
+
|
|
164
|
+
| Profile | 状态 | 覆盖内容 |
|
|
165
|
+
|---|---|---|
|
|
166
|
+
| Google | 已实现(作为 Core 的规范边界) | Googlebot、Search 技术要求、Google 明确不需要的 GEO 手段 |
|
|
167
|
+
| Bing / Copilot | 已实现 | Bingbot / BingPreview 可达性、页面级 bingbot 指令、sitemap、站长验证、`data-nosnippet` |
|
|
168
|
+
| 百度 | 规划中 | Baiduspider、资源平台、sitemap 与提交;百度 AI 引用标准未公开 |
|
|
169
|
+
| OpenAI / Perplexity | 规划中 | crawler 与 robots 控制检查 |
|
|
170
|
+
|
|
171
|
+
平台分在报告、CLI 与看板中单独显示,**从不计入 Core 总分**,也不代表任何平台的排名或引用结果。规则与官方来源见 [docs/PROFILES.md](docs/PROFILES.md),Google 边界见 [docs/GOOGLE.md](docs/GOOGLE.md)。
|
|
139
172
|
|
|
140
173
|
fixture 基线(参考时间 `2026-06-15T00:00:00Z`,由测试锁定):
|
|
141
174
|
|
|
@@ -166,7 +199,7 @@ fixture 基线(参考时间 `2026-06-15T00:00:00Z`,由测试锁定):
|
|
|
166
199
|
## 开发与发布
|
|
167
200
|
|
|
168
201
|
```sh
|
|
169
|
-
npm test #
|
|
202
|
+
npm test # 运行完整测试套件,验证规则、平台、工具、存储、面板、CLI 与安全边界
|
|
170
203
|
npm run docs # 规则改动后重新生成 docs/RULES.md
|
|
171
204
|
```
|
|
172
205
|
|
|
@@ -181,7 +214,8 @@ lib/fetch.js SSRF 防护 + 限额 HTTP 传输
|
|
|
181
214
|
lib/robots.js robots.txt 解析
|
|
182
215
|
lib/html.js 无依赖 HTML 解析与事实抽取
|
|
183
216
|
lib/scan.js 抓取流程
|
|
184
|
-
lib/rules.js 45
|
|
217
|
+
lib/rules.js 45 条 Core 规则(唯一事实源)
|
|
218
|
+
lib/platforms/ 平台 profile(Bing 已实现)
|
|
185
219
|
lib/score.js 评分聚合(纯函数)
|
|
186
220
|
lib/report.js 报告/修复清单/diff 生成
|
|
187
221
|
lib/audit.js 工具与 CLI 共用的高层动作
|
package/bin/dsh-geo.js
CHANGED
|
@@ -159,6 +159,9 @@ function renderScan(report, scan, extras = {}) {
|
|
|
159
159
|
for (const dimension of report.dimensions) {
|
|
160
160
|
lines.push(`${dimension.title.padEnd(6, ' ')} ${String(dimension.score).padStart(5, ' ')} ${bar(dimension.score)} 权重 ${dimension.weight}`);
|
|
161
161
|
}
|
|
162
|
+
for (const platform of report.platforms ?? []) {
|
|
163
|
+
lines.push(`${platform.title.padEnd(14, ' ')} ${String(platform.total).padStart(5, ' ')} ${bar(platform.total)} 平台参考分(不计入总分)`);
|
|
164
|
+
}
|
|
162
165
|
if (report.blockedByRobots) {
|
|
163
166
|
lines.push('');
|
|
164
167
|
lines.push('robots.txt 拒绝了扫描 UA,未抓取任何页面。用 --no-robots 可在本地显式绕过。');
|
package/client.js
CHANGED
|
@@ -20,7 +20,7 @@ window.__ModuleLoader__.load({
|
|
|
20
20
|
zh: {
|
|
21
21
|
nav: '网站可见性体检',
|
|
22
22
|
title: '网站可见性体检设置',
|
|
23
|
-
lede: '
|
|
23
|
+
lede: '这里只配置扫描行为和报告位置,不对应任何具体网站;站点数据由每次 geo_scan 产生。改动立即生效,不影响评分规则。',
|
|
24
24
|
tools: '可用工具',
|
|
25
25
|
toolsHint: '在对话里让 agent 扫描站点、生成修复清单,改完代码后再扫一次对比分数。报告写入工作区里配置的报告目录(默认 .dsh-geo/)。',
|
|
26
26
|
crawl: '抓取',
|
|
@@ -56,7 +56,8 @@ window.__ModuleLoader__.load({
|
|
|
56
56
|
badge: '可复现规则评分 · 不预测排名',
|
|
57
57
|
navDashboard: '可见性效果看板',
|
|
58
58
|
dashTitle: '可见性效果看板',
|
|
59
|
-
|
|
59
|
+
dashSite: '体检站点',
|
|
60
|
+
dashLede: '下面所有数据都针对上方这一个站点,来自本地 .dsh-geo/ 扫描历史。这不是 GSC 或 Perplexity 的流量数据,真实曝光与点击请到对应平台查看。',
|
|
60
61
|
dashScore: '总分',
|
|
61
62
|
dashDelta: '较上次',
|
|
62
63
|
dashDimensions: '五维',
|
|
@@ -76,11 +77,12 @@ window.__ModuleLoader__.load({
|
|
|
76
77
|
dashUpdated: '更新于',
|
|
77
78
|
dashNoData: '暂无数据',
|
|
78
79
|
dashScans: '次扫描',
|
|
80
|
+
dashPlatforms: '平台适配(参考,不计入总分)',
|
|
79
81
|
},
|
|
80
82
|
en: {
|
|
81
83
|
nav: 'Website visibility audit',
|
|
82
84
|
title: 'Website visibility audit settings',
|
|
83
|
-
lede: 'These settings
|
|
85
|
+
lede: 'These settings configure scan behaviour and report location only — they are not tied to any site. Site data comes from each geo_scan run, and these values never change the rubric.',
|
|
84
86
|
tools: 'Tools',
|
|
85
87
|
toolsHint: 'Ask the agent to audit a site, generate a fix plan, then audit again after the code changes. Reports live in the configured report directory (default .dsh-geo/).',
|
|
86
88
|
crawl: 'Crawl',
|
|
@@ -116,7 +118,8 @@ window.__ModuleLoader__.load({
|
|
|
116
118
|
badge: 'Reproducible checks · no ranking prediction',
|
|
117
119
|
navDashboard: 'Visibility dashboard',
|
|
118
120
|
dashTitle: 'Visibility dashboard',
|
|
119
|
-
|
|
121
|
+
dashSite: 'Audited site',
|
|
122
|
+
dashLede: 'Everything below describes the single site above, from local .dsh-geo/ scan history. This is not GSC or Perplexity traffic data; see those platforms for real impressions and clicks.',
|
|
120
123
|
dashScore: 'Score',
|
|
121
124
|
dashDelta: 'vs previous',
|
|
122
125
|
dashDimensions: 'Dimensions',
|
|
@@ -136,6 +139,7 @@ window.__ModuleLoader__.load({
|
|
|
136
139
|
dashUpdated: 'Updated',
|
|
137
140
|
dashNoData: 'No data yet',
|
|
138
141
|
dashScans: 'scans',
|
|
142
|
+
dashPlatforms: 'Platform profiles (reference, not in Core score)',
|
|
139
143
|
},
|
|
140
144
|
};
|
|
141
145
|
|
|
@@ -487,6 +491,7 @@ window.__ModuleLoader__.load({
|
|
|
487
491
|
}, []);
|
|
488
492
|
|
|
489
493
|
const children = [];
|
|
494
|
+
const auditedSite = state.data && state.data.url ? state.data.url : null;
|
|
490
495
|
children.push(h('div', { key: 'head', style: { display: 'flex', flexDirection: 'column', gap: 8 } },
|
|
491
496
|
h('div', { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 } },
|
|
492
497
|
h('h2', { style: styles.title }, t('dashTitle')),
|
|
@@ -494,6 +499,16 @@ window.__ModuleLoader__.load({
|
|
|
494
499
|
type: 'button', style: styles.ghost, disabled: refreshing,
|
|
495
500
|
onClick: () => { void load(true); },
|
|
496
501
|
}, refreshing ? t('loading') : t('dashRefresh'))),
|
|
502
|
+
auditedSite
|
|
503
|
+
? h('div', { style: { display: 'flex', alignItems: 'baseline', gap: 8, flexWrap: 'wrap' } },
|
|
504
|
+
h('span', { style: styles.dashCap }, `${t('dashSite')}:`),
|
|
505
|
+
h('a', {
|
|
506
|
+
href: auditedSite,
|
|
507
|
+
target: '_blank',
|
|
508
|
+
rel: 'noreferrer',
|
|
509
|
+
style: { ...styles.mono, fontSize: 14, fontWeight: 600, color: 'var(--dsw-alias-brand-primary, #0969da)' },
|
|
510
|
+
}, auditedSite))
|
|
511
|
+
: null,
|
|
497
512
|
h('p', { style: styles.lede }, t('dashLede')),
|
|
498
513
|
state.session && state.session.cwd
|
|
499
514
|
? h('div', { style: styles.hint },
|
|
@@ -563,6 +578,16 @@ window.__ModuleLoader__.load({
|
|
|
563
578
|
diff === null || dimension.scored === false ? '' : ` (${signed(diff)})`));
|
|
564
579
|
})));
|
|
565
580
|
|
|
581
|
+
if ((current.platforms ?? []).length > 0) {
|
|
582
|
+
children.push(h('div', { key: 'platforms', style: styles.card },
|
|
583
|
+
h('div', { style: styles.sectionLabel }, t('dashPlatforms')),
|
|
584
|
+
current.platforms.map((platform) => h('div', { key: platform.id, style: styles.dashRow },
|
|
585
|
+
h('span', { style: styles.label }, platform.title),
|
|
586
|
+
h('div', { style: styles.barTrack },
|
|
587
|
+
h('div', { style: { ...styles.barFill, width: `${Math.max(0, Math.min(100, platform.total))}%` } })),
|
|
588
|
+
h('span', { style: { ...styles.hint, textAlign: 'right' } }, `${platform.total}`)))));
|
|
589
|
+
}
|
|
590
|
+
|
|
566
591
|
if ((dashboard.actions ?? []).length > 0) {
|
|
567
592
|
children.push(h('div', { key: 'actions', style: styles.card },
|
|
568
593
|
h('div', { style: styles.sectionLabel }, t('dashActions')),
|
package/docs/.nojekyll
ADDED
|
File without changes
|
|
@@ -26,7 +26,7 @@ A package maintainer must configure the trust relationship on npmjs.com:
|
|
|
26
26
|
8. Save the trusted publisher configuration.
|
|
27
27
|
|
|
28
28
|
npm requires a package settings page to configure this relationship. Since
|
|
29
|
-
`@cobola/dsh-geo@0.
|
|
29
|
+
`@cobola/dsh-geo@0.3.0` has not yet been published, the package may not have a settings
|
|
30
30
|
page yet. If npm does not allow adding a trusted publisher before the first
|
|
31
31
|
version exists, make one initial manual publication from a maintainer machine
|
|
32
32
|
with npm 2FA enabled, then immediately add the trusted publisher and use OIDC
|
|
@@ -41,11 +41,11 @@ delete and recreate the configuration.
|
|
|
41
41
|
1. Update `package.json` version and `CHANGELOG.md`.
|
|
42
42
|
2. Run `npm ci`, `npm test`, `npm run docs`, and `npm pack --dry-run`.
|
|
43
43
|
3. Commit and push the release changes to `main`.
|
|
44
|
-
4. Create and push a matching version tag,
|
|
44
|
+
4. Create and push a matching version tag, e.g.
|
|
45
45
|
|
|
46
46
|
```sh
|
|
47
|
-
git tag -a v0.
|
|
48
|
-
git push origin v0.
|
|
47
|
+
git tag -a v0.3.0 -m "Release @cobola/dsh-geo v0.3.0"
|
|
48
|
+
git push origin v0.3.0
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
5. GitHub Actions verifies the package and publishes it to npm using OIDC.
|
package/docs/PROFILES.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
4. **Baidu**:百度搜索资源平台和 Baiduspider 的官方事项;
|
|
11
11
|
5. **Crawler controls**:OpenAI、Perplexity 等公开 crawler/robots 控制。
|
|
12
12
|
|
|
13
|
-
profile
|
|
13
|
+
profile 是证据和检查边界,**不改变 Core 总分**。平台分数在报告、CLI 和看板中单独显示,并明确标注“不等于该平台的排名或引用结果”。
|
|
14
14
|
|
|
15
15
|
## 证据等级
|
|
16
16
|
|
|
@@ -26,15 +26,26 @@ profile 是证据和检查边界,不自动改变 Core 总分。只有用户显
|
|
|
26
26
|
|---|---|---|---|
|
|
27
27
|
| Core | implemented | — | 通用抓取、索引、结构、实体 |
|
|
28
28
|
| Google | implemented | [Google AI Search guide](https://developers.google.com/search/docs/fundamentals/ai-optimization-guide) | Googlebot、Search 技术要求、Google 不需要的 GEO hacks 边界 |
|
|
29
|
-
| Bing |
|
|
29
|
+
| Bing | implemented (v0.3.0) | [Bing Webmaster Guidelines](https://www.bing.com/webmasters/help/webmaster-guidelines-30fba23a)、[robots meta](https://www.bing.com/webmasters/help/robots-meta-tags-and-attributes-that-bing-supports-5198d240)、[Sitemaps in AI search](https://blogs.bing.com/webmaster/July-2025/Keep-Content-Discoverable-with-Sitemaps-in-AI-Powered-Search) | Bingbot / BingPreview 可达性、页面级 bingbot 指令、sitemap、站长验证标识、data-nosnippet |
|
|
30
30
|
| Baidu | source-mapped | [百度 SEO 指南](https://ziyuan.baidu.com/college/articleinfo?id=193undefinedpage%3D1&page=6)、[抓取友好](https://ziyuan.baidu.com/college/courseinfo?id=1399) | Baiduspider、资源平台、sitemap/提交;百度 AI 引用未公开 |
|
|
31
31
|
| OpenAI | source-mapped | [OpenAI crawlers](https://developers.openai.com/api/docs/bots) | OAI-SearchBot 与 GPTBot 分离控制 |
|
|
32
32
|
| Perplexity | source-mapped | [Perplexity crawlers](https://docs.perplexity.ai/docs/resources/perplexity-crawlers) | crawler 身份、robots 与抓取可达性 |
|
|
33
33
|
|
|
34
|
+
## Bing profile 规则(已实现)
|
|
35
|
+
|
|
36
|
+
| 规则 | 权重 | 检查内容 |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| `bing.bingbot-access` | 4 | Bingbot 是否被 robots.txt 允许;BingPreview 是否被禁 |
|
|
39
|
+
| `bing.bingbot-directives` | 2 | 页面级 `meta name="bingbot"` 与 `X-Robots-Tag` 是否误用 noindex/nosnippet |
|
|
40
|
+
| `bing.sitemap` | 2 | 是否有 Bing 可用的 XML sitemap |
|
|
41
|
+
| `bing.webmaster-verification` | 1 | 是否存在 `msvalidate.01` 站长验证标识(可选) |
|
|
42
|
+
| `bing.snippet-controls` | 1 | 是否使用 Bing 支持的 `data-nosnippet` 做局部摘要控制(可选) |
|
|
43
|
+
|
|
44
|
+
源码:[lib/platforms/bing.js](../lib/platforms/bing.js)。
|
|
45
|
+
|
|
34
46
|
## 下一步实现顺序
|
|
35
47
|
|
|
36
|
-
1.
|
|
37
|
-
2.
|
|
38
|
-
3.
|
|
39
|
-
4.
|
|
40
|
-
5. 后续接 Search Console / Bing Webmaster / 百度平台数据时,放入独立“效果数据”模块,不混入 HTML 结构评分。
|
|
48
|
+
1. 实现 Baidu Search profile(Baiduspider、robots、sitemap/提交、页面直出),不声称百度 AI 引用规则已知;
|
|
49
|
+
2. OpenAI / Perplexity 只做 crawler 与 robots 控制检查;
|
|
50
|
+
3. 把 `lib/profiles.js` 的成熟度字段同步到看板,让用户看到每个平台覆盖了什么;
|
|
51
|
+
4. 后续接 Search Console / Bing Webmaster / 百度平台数据时,放入独立“效果数据”模块,不混入 HTML 结构评分。
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64" role="img" aria-label="GEO audit">
|
|
2
|
+
<rect x="2" y="2" width="60" height="60" rx="14" fill="#0d2f4f"/>
|
|
3
|
+
<circle cx="32" cy="32" r="19" fill="none" stroke="#5eead4" stroke-opacity="0.35" stroke-width="2"/>
|
|
4
|
+
<circle cx="32" cy="32" r="12" fill="none" stroke="#5eead4" stroke-opacity="0.6" stroke-width="2"/>
|
|
5
|
+
<path d="M32 32 L47 20" stroke="#5eead4" stroke-width="2.5" stroke-linecap="round"/>
|
|
6
|
+
<circle cx="32" cy="32" r="3" fill="#e6fffb"/>
|
|
7
|
+
<path d="M24 40 L29 45 L40 33" fill="none" stroke="#7ee787" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
|
|
8
|
+
</svg>
|
package/docs/index.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"title": {
|
|
4
|
+
"en": "dsh-geo plugin index",
|
|
5
|
+
"zh": "dsh-geo 插件源"
|
|
6
|
+
},
|
|
7
|
+
"description": {
|
|
8
|
+
"en": "Website visibility audit for DeepSeek Harness: deterministic GEO/SEO checks, evidence and prioritized fixes.",
|
|
9
|
+
"zh": "DeepSeek Harness 的网站可见性体检:确定性 GEO/SEO 检查、证据与按影响排序的修复清单。"
|
|
10
|
+
},
|
|
11
|
+
"plugins": [
|
|
12
|
+
{
|
|
13
|
+
"name": "@cobola/dsh-geo",
|
|
14
|
+
"title": {
|
|
15
|
+
"en": "Website visibility audit",
|
|
16
|
+
"zh": "网站可见性体检"
|
|
17
|
+
},
|
|
18
|
+
"description": {
|
|
19
|
+
"en": "Audit crawlability, parseability and citation-ready structure, then verify repairs with a re-scan.",
|
|
20
|
+
"zh": "检查站点可抓取性、可解析性与可引用结构,修改后再复扫验证。"
|
|
21
|
+
},
|
|
22
|
+
"icon": "icons/geo.svg",
|
|
23
|
+
"author": "cobola",
|
|
24
|
+
"homepage": "https://github.com/cobola/dsh-geo#readme",
|
|
25
|
+
"repository": {
|
|
26
|
+
"url": "https://github.com/cobola/dsh-geo"
|
|
27
|
+
},
|
|
28
|
+
"versions": [
|
|
29
|
+
{
|
|
30
|
+
"version": "0.3.1",
|
|
31
|
+
"source": {
|
|
32
|
+
"type": "npm"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"dsh": ">=0.2.2-rc.5 <0.3.0"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
package/index.js
CHANGED
|
@@ -167,7 +167,7 @@ const scanOutputSchema = {
|
|
|
167
167
|
additionalProperties: false,
|
|
168
168
|
required: [
|
|
169
169
|
'url', 'scannedAt', 'pages', 'total', 'grade', 'gradeLabel', 'counts',
|
|
170
|
-
'dimensions', 'topActions', 'blockedByRobots', 'paths',
|
|
170
|
+
'dimensions', 'topActions', 'platforms', 'blockedByRobots', 'paths',
|
|
171
171
|
],
|
|
172
172
|
properties: {
|
|
173
173
|
url: { type: 'string' },
|
|
@@ -179,6 +179,7 @@ const scanOutputSchema = {
|
|
|
179
179
|
counts: countsSchema,
|
|
180
180
|
dimensions: { type: 'array', items: { type: 'object', additionalProperties: true } },
|
|
181
181
|
topActions: { type: 'array', items: { type: 'object', additionalProperties: true } },
|
|
182
|
+
platforms: { type: 'array', items: { type: 'object', additionalProperties: true } },
|
|
182
183
|
blockedByRobots: { type: 'boolean' },
|
|
183
184
|
comparison: { type: 'object', additionalProperties: true },
|
|
184
185
|
paths: { type: 'object', additionalProperties: true },
|
|
@@ -209,6 +210,9 @@ function scanRender(args, value) {
|
|
|
209
210
|
for (const dimension of value.dimensions) {
|
|
210
211
|
lines.push(`- ${dimension.title}: ${dimension.score} (weight ${dimension.weight})`);
|
|
211
212
|
}
|
|
213
|
+
for (const platform of value.platforms ?? []) {
|
|
214
|
+
lines.push(`- ${platform.title} (platform, not in Core score): ${platform.total}`);
|
|
215
|
+
}
|
|
212
216
|
if (value.blockedByRobots) {
|
|
213
217
|
lines.push('');
|
|
214
218
|
lines.push('robots.txt refused the audit; no pages were fetched.');
|
|
@@ -309,6 +313,7 @@ export function apply(ctx, config) {
|
|
|
309
313
|
counts: summary.counts,
|
|
310
314
|
dimensions: summary.dimensions,
|
|
311
315
|
topActions: summary.topActions,
|
|
316
|
+
platforms: summary.platforms,
|
|
312
317
|
blockedByRobots: Boolean(scan.blockedByRobots),
|
|
313
318
|
paths,
|
|
314
319
|
};
|
package/lib/html.js
CHANGED
|
@@ -635,6 +635,8 @@ export function analyzeHtml(html, pageUrl) {
|
|
|
635
635
|
externalScriptCount: externalScripts.length,
|
|
636
636
|
scriptCount: scriptTexts.length,
|
|
637
637
|
numericFacts: countNumericFacts(contentText),
|
|
638
|
+
dataNosnippetCount: nodes.filter((node) => node.attrs && 'data-nosnippet' in node.attrs).length,
|
|
639
|
+
metaBingbot: (meta.bingbot ?? '').toLowerCase(),
|
|
638
640
|
questionHeadings,
|
|
639
641
|
snippetBlockCount: snippetCandidates.length,
|
|
640
642
|
// A shell has scripts but no readable structure at all. This is a
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bing / Copilot profile.
|
|
3
|
+
*
|
|
4
|
+
* Separate from the Core score: these checks reflect Bing's own documentation
|
|
5
|
+
* and do not change the site's Core visibility score.
|
|
6
|
+
*
|
|
7
|
+
* Sources (retrieved 2026-11-29):
|
|
8
|
+
* - Bing Webmaster Guidelines
|
|
9
|
+
* https://www.bing.com/webmasters/help/webmaster-guidelines-30fba23a
|
|
10
|
+
* - Robots meta tags and attributes Bing supports
|
|
11
|
+
* https://www.bing.com/webmasters/help/robots-meta-tags-and-attributes-that-bing-supports-5198d240
|
|
12
|
+
* - Sitemaps in AI-powered search
|
|
13
|
+
* https://blogs.bing.com/webmaster/July-2025/Keep-Content-Discoverable-with-Sitemaps-in-AI-Powered-Search
|
|
14
|
+
*/
|
|
15
|
+
export const BING_PROFILE = {
|
|
16
|
+
id: 'bing',
|
|
17
|
+
title: 'Bing / Copilot',
|
|
18
|
+
sources: [
|
|
19
|
+
'https://www.bing.com/webmasters/help/webmaster-guidelines-30fba23a',
|
|
20
|
+
'https://www.bing.com/webmasters/help/robots-meta-tags-and-attributes-that-bing-supports-5198d240',
|
|
21
|
+
'https://blogs.bing.com/webmaster/July-2025/Keep-Content-Discoverable-with-Sitemaps-in-AI-Powered-Search',
|
|
22
|
+
],
|
|
23
|
+
rules: [
|
|
24
|
+
{
|
|
25
|
+
id: 'bing.bingbot-access',
|
|
26
|
+
weight: 4,
|
|
27
|
+
title: 'Bingbot 可抓取',
|
|
28
|
+
fix: '在 robots.txt 中允许 Bingbot 抓取公开页面;Bing Search 与 Copilot grounding 都依赖它。',
|
|
29
|
+
evaluate({ scan }) {
|
|
30
|
+
if (!scan.robots.found) return { status: 'pass', evidence: '无 robots.txt,默认允许 Bingbot' };
|
|
31
|
+
if (scan.robots.unreachable) return { status: 'warn', evidence: 'robots.txt 不可访问,Bingbot 抓取可能受影响' };
|
|
32
|
+
const access = scan.robots.bingbot ?? { allowed: true, previewAllowed: true };
|
|
33
|
+
if (access.allowed === false) return { status: 'fail', evidence: 'robots.txt 明确禁止 Bingbot 抓取' };
|
|
34
|
+
if (access.previewAllowed === false) return { status: 'warn', evidence: 'Bingbot 可抓取,但 BingPreview 被禁止' };
|
|
35
|
+
return { status: 'pass', evidence: 'robots.txt 允许 Bingbot' };
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: 'bing.bingbot-directives',
|
|
40
|
+
weight: 2,
|
|
41
|
+
title: '页面级 bingbot 指令不误伤',
|
|
42
|
+
fix: '避免在 meta name="bingbot" 或 X-Robots-Tag 中对公开页面使用 noindex;nosnippet 仅用于确实不应出现在摘要中的内容。',
|
|
43
|
+
evaluate({ factsPages }) {
|
|
44
|
+
if (factsPages.length === 0) return { status: 'fail', evidence: '未抓取到 HTML 页面' };
|
|
45
|
+
const blocked = [];
|
|
46
|
+
const nosnippet = [];
|
|
47
|
+
for (const page of factsPages) {
|
|
48
|
+
const meta = page.facts.metaBingbot ?? '';
|
|
49
|
+
const header = (page.headers?.['x-robots-tag'] ?? '').toLowerCase();
|
|
50
|
+
if (meta.includes('noindex') || /bingbot\s*:\s*[^,]*noindex/.test(header)) {
|
|
51
|
+
blocked.push(page.path);
|
|
52
|
+
} else if (meta.includes('nosnippet') || /bingbot\s*:\s*[^,]*nosnippet/.test(header)) {
|
|
53
|
+
nosnippet.push(page.path);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (blocked.length > 0) return { status: 'fail', evidence: `bingbot noindex:${blocked.slice(0, 3).join(', ')}` };
|
|
57
|
+
if (nosnippet.length > 0) return { status: 'warn', evidence: `bingbot nosnippet:${nosnippet.slice(0, 3).join(', ')}` };
|
|
58
|
+
return { status: 'pass', evidence: '没有 bingbot 级别的 noindex/nosnippet 指令' };
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
id: 'bing.sitemap',
|
|
63
|
+
weight: 2,
|
|
64
|
+
title: 'XML sitemap 可供 Bing 使用',
|
|
65
|
+
fix: '发布并声明 /sitemap.xml;Bing 持续支持 Sitemap 协议,它仍是 AI 搜索发现内容的基础信号。',
|
|
66
|
+
evaluate({ scan }) {
|
|
67
|
+
if (scan.sitemap.valid) return { status: 'pass', evidence: `${scan.sitemap.urlCount} 个 URL` };
|
|
68
|
+
if (scan.sitemap.found) return { status: 'warn', evidence: 'sitemap 可访问但无有效 URL' };
|
|
69
|
+
return { status: 'fail', evidence: '未找到可用的 XML sitemap' };
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'bing.webmaster-verification',
|
|
74
|
+
weight: 1,
|
|
75
|
+
title: 'Bing Webmaster 验证标识',
|
|
76
|
+
fix: '在首页添加 <meta name="msvalidate.01" content="...">,用于 Bing Webmaster Tools 站点验证与 IndexNow 管理。',
|
|
77
|
+
evaluate({ primary }) {
|
|
78
|
+
if (!primary) return { status: 'fail', evidence: '未抓取到 HTML 入口页' };
|
|
79
|
+
if (primary.facts.meta['msvalidate.01']) return { status: 'pass', evidence: '存在 msvalidate.01 验证 meta' };
|
|
80
|
+
return { status: 'skip', evidence: '未提供 msvalidate.01;这是可选的站长平台验证标识' };
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 'bing.snippet-controls',
|
|
85
|
+
weight: 1,
|
|
86
|
+
title: '使用 Bing 支持的摘要控制',
|
|
87
|
+
fix: '如需对部分内容控制摘要展示,使用 Bing 支持的 data-nosnippet 属性,而不是整页 noindex。',
|
|
88
|
+
evaluate({ factsPages }) {
|
|
89
|
+
const pages = factsPages.filter((page) => (page.facts.dataNosnippetCount ?? 0) > 0);
|
|
90
|
+
if (pages.length > 0) return { status: 'pass', evidence: `${pages.length} 个页面使用 data-nosnippet` };
|
|
91
|
+
return { status: 'skip', evidence: '未使用 data-nosnippet;只有需要局部摘要控制时才需要' };
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
],
|
|
95
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Platform profile evaluation.
|
|
3
|
+
*
|
|
4
|
+
* Profiles score separately from Core: a profile's score never changes the
|
|
5
|
+
* site's Core total. Every profile declares its official sources, and each
|
|
6
|
+
* rule returns evidence, a repair hint and an explicit status.
|
|
7
|
+
*/
|
|
8
|
+
import { BING_PROFILE } from './bing.js';
|
|
9
|
+
|
|
10
|
+
export const PLATFORM_PROFILES = [BING_PROFILE];
|
|
11
|
+
|
|
12
|
+
const STATUS_FACTOR = { pass: 1, warn: 0.5, fail: 0, skip: 0 };
|
|
13
|
+
|
|
14
|
+
function round1(value) {
|
|
15
|
+
return Math.round(value * 10) / 10;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function scoreProfile(profile, ctx) {
|
|
19
|
+
const findings = profile.rules.map((rule) => {
|
|
20
|
+
let outcome;
|
|
21
|
+
try {
|
|
22
|
+
outcome = rule.evaluate(ctx);
|
|
23
|
+
} catch (error) {
|
|
24
|
+
outcome = { status: 'fail', evidence: `规则执行异常:${error?.message ?? String(error)}` };
|
|
25
|
+
}
|
|
26
|
+
if (!outcome || !['pass', 'warn', 'fail', 'skip'].includes(outcome.status)) {
|
|
27
|
+
outcome = { status: 'fail', evidence: '规则未返回有效结论' };
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
id: rule.id,
|
|
31
|
+
platform: profile.id,
|
|
32
|
+
weight: rule.weight,
|
|
33
|
+
title: rule.title,
|
|
34
|
+
status: outcome.status,
|
|
35
|
+
evidence: outcome.evidence ?? '',
|
|
36
|
+
fix: rule.fix,
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
const applicable = findings.reduce((sum, finding) => sum + (finding.status === 'skip' ? 0 : finding.weight), 0);
|
|
41
|
+
const earned = findings.reduce((sum, finding) => sum + finding.weight * (STATUS_FACTOR[finding.status] ?? 0), 0);
|
|
42
|
+
const total = applicable > 0 ? round1((earned / applicable) * 100) : 0;
|
|
43
|
+
const actions = findings
|
|
44
|
+
.filter((finding) => finding.status === 'fail' || finding.status === 'warn')
|
|
45
|
+
.sort((a, b) => b.weight - a.weight || (a.id < b.id ? -1 : a.id > b.id ? 1 : 0));
|
|
46
|
+
|
|
47
|
+
return {
|
|
48
|
+
id: profile.id,
|
|
49
|
+
title: profile.title,
|
|
50
|
+
sources: [...profile.sources],
|
|
51
|
+
total,
|
|
52
|
+
scored: applicable > 0,
|
|
53
|
+
counts: {
|
|
54
|
+
pass: findings.filter((finding) => finding.status === 'pass').length,
|
|
55
|
+
warn: findings.filter((finding) => finding.status === 'warn').length,
|
|
56
|
+
fail: findings.filter((finding) => finding.status === 'fail').length,
|
|
57
|
+
skip: findings.filter((finding) => finding.status === 'skip').length,
|
|
58
|
+
},
|
|
59
|
+
findings,
|
|
60
|
+
actions,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Evaluate every platform profile against one scan artifact.
|
|
66
|
+
* @param {{scan: object, primary: object|null, pages: object[], factsPages: object[]}} ctx
|
|
67
|
+
*/
|
|
68
|
+
export function evaluatePlatforms(ctx) {
|
|
69
|
+
return PLATFORM_PROFILES.map((profile) => scoreProfile(profile, ctx));
|
|
70
|
+
}
|
package/lib/report.js
CHANGED
|
@@ -234,6 +234,21 @@ function renderFixPlanMarkdown(report, actions, { scan, diff }) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
const platformActions = (report.platforms ?? []).flatMap((platform) =>
|
|
238
|
+
(platform.actions ?? []).map((action) => ({ ...action, platformTitle: platform.title })));
|
|
239
|
+
if (platformActions.length > 0) {
|
|
240
|
+
lines.push('## 平台适配建议(不计入 Core 总分)');
|
|
241
|
+
lines.push('');
|
|
242
|
+
for (const action of platformActions) {
|
|
243
|
+
lines.push(`### [${action.platformTitle}] ${action.title}`);
|
|
244
|
+
lines.push('');
|
|
245
|
+
lines.push(`- 状态:${STATUS_LABEL[action.status]}(权重 ${action.weight})`);
|
|
246
|
+
lines.push(`- 证据:${escapeInline(action.evidence)}`);
|
|
247
|
+
lines.push(`- 做法:${escapeInline(action.fix)}`);
|
|
248
|
+
lines.push('');
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
237
252
|
lines.push('## 复扫');
|
|
238
253
|
lines.push('');
|
|
239
254
|
lines.push('改完代码后,用同一个站点与同一个参考时间复扫,才能把分数变化归因到改动本身:');
|
|
@@ -276,6 +291,28 @@ export function renderAuditMarkdown(report, context = {}) {
|
|
|
276
291
|
lines.push(`检查项合计:通过 ${report.counts.pass} / 部分 ${report.counts.warn} / 失败 ${report.counts.fail} / 不适用 ${report.counts.skip}`);
|
|
277
292
|
lines.push('');
|
|
278
293
|
|
|
294
|
+
if (Array.isArray(report.platforms) && report.platforms.length > 0) {
|
|
295
|
+
lines.push('## 平台适配(参考,不计入 Core 总分)');
|
|
296
|
+
lines.push('');
|
|
297
|
+
lines.push('| 平台 | 分数 | 通过 | 部分 | 失败 | 不适用 |');
|
|
298
|
+
lines.push('|---|---|---|---|---|---|');
|
|
299
|
+
for (const platform of report.platforms) {
|
|
300
|
+
const { pass, warn, fail, skip } = platform.counts;
|
|
301
|
+
lines.push(`| ${platform.title} | ${platform.total} | ${pass} | ${warn} | ${fail} | ${skip} |`);
|
|
302
|
+
}
|
|
303
|
+
lines.push('');
|
|
304
|
+
for (const platform of report.platforms) {
|
|
305
|
+
if (platform.actions.length === 0) continue;
|
|
306
|
+
lines.push(`**${platform.title}:**`);
|
|
307
|
+
for (const action of platform.actions) {
|
|
308
|
+
lines.push(`- ${action.title} — ${escapeInline(action.evidence)}`);
|
|
309
|
+
}
|
|
310
|
+
lines.push('');
|
|
311
|
+
}
|
|
312
|
+
lines.push('平台检查只反映该平台公开文档中的可验证事项,不代表该平台的排名或引用结果。');
|
|
313
|
+
lines.push('');
|
|
314
|
+
}
|
|
315
|
+
|
|
279
316
|
if (diff) {
|
|
280
317
|
lines.push('## 对照上次');
|
|
281
318
|
lines.push('');
|
|
@@ -339,6 +376,20 @@ export function summarizeReport(report, options = {}) {
|
|
|
339
376
|
weight: dimension.weight,
|
|
340
377
|
score: dimension.score,
|
|
341
378
|
})),
|
|
379
|
+
platforms: (report.platforms ?? []).map((platform) => ({
|
|
380
|
+
id: platform.id,
|
|
381
|
+
title: platform.title,
|
|
382
|
+
total: platform.total,
|
|
383
|
+
counts: platform.counts,
|
|
384
|
+
actions: platform.actions.slice(0, 3).map((action) => ({
|
|
385
|
+
ruleId: action.id,
|
|
386
|
+
title: action.title,
|
|
387
|
+
status: action.status,
|
|
388
|
+
weight: action.weight,
|
|
389
|
+
evidence: action.evidence,
|
|
390
|
+
fix: action.fix,
|
|
391
|
+
})),
|
|
392
|
+
})),
|
|
342
393
|
topActions: report.actions.slice(0, limit).map((action) => ({
|
|
343
394
|
ruleId: action.ruleId,
|
|
344
395
|
dimension: action.dimension,
|
package/lib/robots.js
CHANGED
|
@@ -189,6 +189,17 @@ export function googlebotAccess(robots) {
|
|
|
189
189
|
};
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Bingbot access at the site root.
|
|
194
|
+
* @param {ReturnType<typeof parseRobots>} robots
|
|
195
|
+
*/
|
|
196
|
+
export function bingbotAccess(robots) {
|
|
197
|
+
return {
|
|
198
|
+
allowed: isAllowed(robots, '/', 'Bingbot'),
|
|
199
|
+
previewAllowed: isAllowed(robots, '/', 'BingPreview'),
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
192
203
|
/**
|
|
193
204
|
* True when the file forbids the whole site to everyone.
|
|
194
205
|
* @param {ReturnType<typeof parseRobots>} robots
|
package/lib/scan.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
import { analyzeHtml } from './html.js';
|
|
15
15
|
import { createTransport, DEFAULT_USER_AGENT, FetchError } from './fetch.js';
|
|
16
|
-
import { aiCrawlerPolicy, blocksEverything, crawlDelayMs, googlebotAccess, isAllowed, parseRobots } from './robots.js';
|
|
16
|
+
import { aiCrawlerPolicy, bingbotAccess, blocksEverything, crawlDelayMs, googlebotAccess, isAllowed, parseRobots } from './robots.js';
|
|
17
17
|
|
|
18
18
|
export const SCAN_VERSION = 'scan@1';
|
|
19
19
|
|
|
@@ -238,6 +238,7 @@ export async function scanSite(input, options = {}) {
|
|
|
238
238
|
blocksEverything: robotsFound ? blocksEverything(robots) : false,
|
|
239
239
|
aiCrawlers: robotsFound ? aiCrawlerPolicy(robots, new URL(startUrl).pathname) : [],
|
|
240
240
|
googlebot: robotsFound ? googlebotAccess(robots) : { allowed: true, imageAllowed: true },
|
|
241
|
+
bingbot: robotsFound ? bingbotAccess(robots) : { allowed: true, previewAllowed: true },
|
|
241
242
|
crawlDelayMs: robotsFound ? crawlDelayMs(robots, settings.userAgent) : 0,
|
|
242
243
|
sitemapDeclarations: robots.sitemaps.slice(0, 10),
|
|
243
244
|
unreachable: robotsUnreachable,
|
|
@@ -298,6 +299,7 @@ export async function scanSite(input, options = {}) {
|
|
|
298
299
|
blocksEverything: robotsFound ? blocksEverything(robots) : false,
|
|
299
300
|
aiCrawlers: robotsFound ? aiCrawlerPolicy(robots, new URL(startUrl).pathname) : [],
|
|
300
301
|
googlebot: robotsFound ? googlebotAccess(robots) : { allowed: true, imageAllowed: true },
|
|
302
|
+
bingbot: robotsFound ? bingbotAccess(robots) : { allowed: true, previewAllowed: true },
|
|
301
303
|
crawlDelayMs: robotsFound ? crawlDelayMs(robots, settings.userAgent) : 0,
|
|
302
304
|
sitemapDeclarations: robots.sitemaps.slice(0, 10),
|
|
303
305
|
unreachable: settings.respectRobots && (robotsStatus === 0 || robotsStatus >= 500),
|
package/lib/score.js
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* denominator. Numbers are rounded to one decimal place.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
import { evaluatePlatforms } from './platforms/index.js';
|
|
11
12
|
import { DIMENSIONS, RULES, RUBRIC_VERSION, evaluateRules } from './rules.js';
|
|
12
13
|
|
|
13
14
|
export const SCORE_VERSION = 'score@1';
|
|
@@ -137,6 +138,7 @@ export function scoreScan(scan, options = {}) {
|
|
|
137
138
|
counts,
|
|
138
139
|
findings,
|
|
139
140
|
actions,
|
|
141
|
+
platforms: evaluatePlatforms({ scan, primary, pages: scan.pages, factsPages }),
|
|
140
142
|
blockedByRobots: Boolean(scan.blockedByRobots),
|
|
141
143
|
stats: scan.stats ?? { pages: factsPages.length, requested: 0, bytes: 0 },
|
|
142
144
|
};
|
package/lib/store.js
CHANGED
|
@@ -156,6 +156,12 @@ function buildDashboard(scan, report, diff, previousDashboard) {
|
|
|
156
156
|
gradeLabel: report.gradeLabel,
|
|
157
157
|
counts: report.counts,
|
|
158
158
|
dimensions: dimensionSummary(report.dimensions),
|
|
159
|
+
platforms: (report.platforms ?? []).map((platform) => ({
|
|
160
|
+
id: platform.id,
|
|
161
|
+
title: platform.title,
|
|
162
|
+
total: platform.total,
|
|
163
|
+
counts: platform.counts,
|
|
164
|
+
})),
|
|
159
165
|
},
|
|
160
166
|
previous: diff
|
|
161
167
|
? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobola/dsh-geo",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Read-only, reproducible GEO/SEO website audits for DeepSeek Harness: inspect crawlability and citation-ready structure, return evidence and prioritized fixes, and never edit the site or promise rankings.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -64,5 +64,16 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@deepseek-ai/schemastery": "^3.19.0"
|
|
67
|
-
}
|
|
67
|
+
},
|
|
68
|
+
"keywords": [
|
|
69
|
+
"deepseek",
|
|
70
|
+
"deepseek-harness",
|
|
71
|
+
"dsh",
|
|
72
|
+
"dsh-plugin",
|
|
73
|
+
"geo",
|
|
74
|
+
"seo",
|
|
75
|
+
"website-audit",
|
|
76
|
+
"ai-search",
|
|
77
|
+
"llms"
|
|
78
|
+
]
|
|
68
79
|
}
|