seo-intel 1.4.5 → 1.4.6

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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.6 (2026-04-09)
4
+
5
+ ### Export: rich actionable content
6
+ - Insights export now renders type-specific tables (quick wins show issue + fix + impact, keyword gaps show coverage, etc.)
7
+ - Schema markup export scoped to own site only — no competitor schema dumps
8
+ - SKILL.md updated with export profiles documentation
9
+
3
10
  ## 1.4.5 (2026-04-09)
4
11
 
5
12
  ### Export: actionable summaries only
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "seo-intel",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "description": "Local Ahrefs-style SEO competitor intelligence. Crawl → SQLite → cloud analysis.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",
package/server.js CHANGED
@@ -828,10 +828,9 @@ async function handleRequest(req, res) {
828
828
  return issues;
829
829
  }
830
830
  case 'schemas': {
831
- if (!Array.isArray(data) || prof !== 'dev') return data;
832
- // Dev: pages missing schema are more useful — but we only have pages WITH schema here
833
- // So return all (schema gaps come from technical section's has_schema=false)
834
- return data;
831
+ if (!Array.isArray(data)) return data;
832
+ // Own site only for all profiles
833
+ return data.filter(r => r.role === 'target' || r.role === 'owned');
835
834
  }
836
835
  case 'aeo': {
837
836
  if (!Array.isArray(data)) return data;
@@ -905,9 +904,47 @@ async function handleRequest(req, res) {
905
904
  for (const r of data) { (grouped[r._type] ||= []).push(r); }
906
905
  for (const [type, items] of Object.entries(grouped)) {
907
906
  md += `### ${type.replace(/_/g, ' ')} (${items.length})\n\n`;
908
- for (const item of items) {
909
- const desc = item.phrase || item.keyword || item.title || item.page || item.message || JSON.stringify(item).slice(0, 120);
910
- md += `- ${desc}\n`;
907
+ switch (type) {
908
+ case 'quick_win':
909
+ md += '| Page | Issue | Fix | Impact |\n|------|-------|-----|--------|\n';
910
+ for (const i of items) md += `| ${i.page || ''} | ${i.issue || ''} | ${i.fix || ''} | ${i.impact || ''} |\n`;
911
+ break;
912
+ case 'keyword_gap':
913
+ md += '| Keyword | Your Coverage | Competitor Coverage |\n|---------|--------------|--------------------|\n';
914
+ for (const i of items) md += `| ${i.keyword || ''} | ${i.your_coverage || i.target_count || 'none'} | ${i.competitor_coverage || i.competitor_count || ''} |\n`;
915
+ break;
916
+ case 'long_tail':
917
+ md += '| Phrase | Parent Keyword | Opportunity |\n|-------|----------------|-------------|\n';
918
+ for (const i of items) md += `| ${i.phrase || ''} | ${i.parent || i.keyword || ''} | ${i.opportunity || i.rationale || ''} |\n`;
919
+ break;
920
+ case 'new_page':
921
+ md += '| Title | Target Keyword | Rationale |\n|-------|----------------|----------|\n';
922
+ for (const i of items) md += `| ${i.title || ''} | ${i.target_keyword || ''} | ${i.rationale || ''} |\n`;
923
+ break;
924
+ case 'content_gap':
925
+ md += '| Topic | Gap | Suggestion |\n|-------|-----|------------|\n';
926
+ for (const i of items) md += `| ${i.topic || ''} | ${i.gap || ''} | ${i.suggestion || ''} |\n`;
927
+ break;
928
+ case 'technical_gap':
929
+ md += '| Issue | Affected | Recommendation |\n|-------|----------|----------------|\n';
930
+ for (const i of items) md += `| ${i.gap || i.issue || ''} | ${i.affected || i.pages || ''} | ${i.recommendation || i.fix || ''} |\n`;
931
+ break;
932
+ case 'citability_gap':
933
+ md += '| URL | Score | Weakest Signals |\n|-----|-------|----------------|\n';
934
+ for (const i of items) md += `| ${i.url || ''} | ${i.score ?? ''} | ${i.weak_signals || ''} |\n`;
935
+ break;
936
+ case 'keyword_inventor':
937
+ md += '| Phrase | Cluster | Search Potential |\n|-------|---------|------------------|\n';
938
+ for (const i of items) md += `| ${i.phrase || ''} | ${i.cluster || ''} | ${i.potential || i.volume || ''} |\n`;
939
+ break;
940
+ case 'site_watch':
941
+ md += '| URL | Event | Details |\n|-----|-------|--------|\n';
942
+ for (const i of items) md += `| ${i.url || ''} | ${i.event_type || ''} | ${i.details || ''} |\n`;
943
+ break;
944
+ default:
945
+ for (const i of items) {
946
+ md += `- ${i.phrase || i.keyword || i.title || i.page || i.message || JSON.stringify(i).slice(0, 120)}\n`;
947
+ }
911
948
  }
912
949
  md += '\n';
913
950
  }