@lv24/seo 0.3.1 → 0.4.0

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.
Files changed (2) hide show
  1. package/README.md +43 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -20,9 +20,16 @@ into the unpinned (`latest`) lookup.
20
20
 
21
21
  ## Status
22
22
 
23
- Beta (0.3.x). The current Python/NPM line ships 11 read-only-by-default MCP tools, 3 resources,
24
- 3 prompts, the full CLI and scheduler generators. Recent additions:
25
-
23
+ Beta. The current Python/NPM line ships 11 read-only-by-default MCP tools, 3 resources,
24
+ 3 prompts, the full CLI, scheduler generators and a product-grade weekly email. Recent
25
+ additions:
26
+
27
+ * **Localized product email** — `report weekly --send` renders a 600px inline-CSS digest in
28
+ `ru`, `en` or `zh`: KPI cards for clicks/impressions/CTR/position, top-3 opportunities,
29
+ issue severities, merged sources, data notes and a property/UTC footer. Plain-text fallback
30
+ and subject are localized too; JSON/MCP payloads stay canonical English. Unknown values stay
31
+ unknown, CTR changes are shown in percentage points, and Metrica is labelled as sessions,
32
+ never as clicks. Set the language once with `report.locale`.
26
33
  * **Week-over-week report diff** — `report diff` and the `seo_report_diff` MCP tool compare two
27
34
  stored weekly snapshots without provider calls. Metrics present on one side only stay unknown,
28
35
  not zero; differing period lengths make the pair not comparable. `--markdown` is deterministic
@@ -48,6 +55,7 @@ npx @lv24/seo init --property https://example.com
48
55
  npx @lv24/seo auth set --provider gsc --stdin
49
56
  npx @lv24/seo gsc query --start 2026-11-01 --end 2026-11-07 --dimensions query,page
50
57
  npx @lv24/seo report weekly --json --out reports/
58
+ npx @lv24/seo report weekly --send # product email/Telegram digest
51
59
  npx @lv24/seo report diff --markdown # diff of two stored weekly snapshots
52
60
  npx @lv24/seo crawl --json # issues + sitemap↔crawl coverage diff
53
61
  npx @lv24/seo mcp serve # stdio MCP server for Claude/OpenCode/Cursor
@@ -56,6 +64,36 @@ npx @lv24/seo export skills --out ./skills # packaged agent skills
56
64
 
57
65
  The first run may take a few seconds while uv resolves and caches the Python package.
58
66
 
67
+ ## Email reports
68
+
69
+ `report weekly --send` builds the digest and delivers it over the configured SMTP/Telegram
70
+ channels. The email is a product template, not a raw data dump: dark branded header/footer,
71
+ KPI cards, top-3 opportunities, issue severities, merged sources, data notes/warnings and a
72
+ footer with the exact property id. It contains no external images, stylesheets, scripts or
73
+ tracking pixels; unknown values stay unknown and CTR changes are shown in percentage points.
74
+
75
+ Language is selected once for all human-readable output:
76
+
77
+ ```toml
78
+ [report]
79
+ locale = "ru" # ru | en | zh; JSON/MCP payloads stay canonical English
80
+
81
+ [report.email]
82
+ enabled = true
83
+ to = ["owner@example.com"]
84
+ from = "seo@example.com"
85
+ smtp_host = "smtp.example.com"
86
+ smtp_port = 587
87
+ smtp_user = "seo@example.com"
88
+ only_on_change = true # set false for an email every run, even without material change
89
+ ```
90
+
91
+ Store the SMTP password in the keychain with `npx @lv24/seo auth set --provider smtp --stdin`
92
+ (or set `LV24_SEO_SMTP_PASSWORD`). `schedule install` adds `--send` to the generated job, so a
93
+ weekly/daily schedule delivers automatically. `only_on_change` and the configured
94
+ `report.thresholds` can suppress a send when nothing material moved; switching `report.locale`
95
+ re-sends the same period once because the delivery hash includes the language.
96
+
59
97
  ## MCP surface
60
98
 
61
99
  Eleven tools over stdio (or streamable HTTP via `mcp serve --transport http`): `seo_properties`,
@@ -94,7 +132,8 @@ npm test # node --test test/launcher.test.js, offline: pinning, guards, exit c
94
132
  ## Links
95
133
 
96
134
  * Repository and full docs: <https://github.com/LevapVeeskela/lv24-seo-optimizer>
97
- * CLI, MCP tools and limits: `docs/cli.md`, `docs/mcp.md`, `docs/data-sources.md`
135
+ * CLI, MCP tools, email scheduling and limits: `docs/cli.md`, `docs/mcp.md`,
136
+ `docs/scheduling.md`, `docs/data-sources.md`
98
137
  * Release notes: <https://github.com/LevapVeeskela/lv24-seo-optimizer/tree/main/docs/releases>
99
138
  * Issues: <https://github.com/LevapVeeskela/lv24-seo-optimizer/issues>
100
139
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lv24/seo",
3
- "version": "0.3.1",
3
+ "version": "0.4.0",
4
4
  "description": "SEO audits and diff reports from Search Console, Yandex, Bing, CrUX and PSI - npx CLI + MCP.",
5
5
  "keywords": [
6
6
  "seo",