seo 0.0.15 → 0.2.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 (93) hide show
  1. package/LICENSE +201 -0
  2. package/PRIVACY.md +95 -0
  3. package/README.md +431 -35
  4. package/SECURITY.md +55 -0
  5. package/TERMS.md +94 -0
  6. package/TRADEMARKS.md +31 -0
  7. package/dist/cli.js +141 -0
  8. package/dist/cli.js.map +1 -0
  9. package/dist/dist-6bK_8r5M.js +713 -0
  10. package/dist/dist-6bK_8r5M.js.map +1 -0
  11. package/dist/dist-vRmqfhR4.js +3 -0
  12. package/dist/index.d.ts +18013 -0
  13. package/dist/index.js +27197 -0
  14. package/dist/index.js.map +1 -0
  15. package/dist/mcp.d.ts +74 -0
  16. package/dist/mcp.js +28611 -0
  17. package/dist/mcp.js.map +1 -0
  18. package/dist/package-7aT8_Xp0.js +23818 -0
  19. package/dist/package-7aT8_Xp0.js.map +1 -0
  20. package/evals/README.md +117 -0
  21. package/evals/affected-urls.json +57 -0
  22. package/evals/ai-readiness.json +84 -0
  23. package/evals/ai-referrals.json +71 -0
  24. package/evals/ai-search-scorecard.json +70 -0
  25. package/evals/audit-page.json +57 -0
  26. package/evals/audit-urls.json +58 -0
  27. package/evals/cannibalisation.json +57 -0
  28. package/evals/community-intent.json +57 -0
  29. package/evals/compare-crawls.json +56 -0
  30. package/evals/content-optimization.json +57 -0
  31. package/evals/crawl-diff.json +58 -0
  32. package/evals/crawl-history.json +44 -0
  33. package/evals/crawl-report.json +44 -0
  34. package/evals/crawler-rules.json +44 -0
  35. package/evals/ctr-underperformers.json +57 -0
  36. package/evals/decaying-pages.json +57 -0
  37. package/evals/entity-readiness.json +57 -0
  38. package/evals/explain-crawl-issue.json +44 -0
  39. package/evals/generate-llms-txt.json +44 -0
  40. package/evals/geo-gaps.json +57 -0
  41. package/evals/index-coverage-plan.json +58 -0
  42. package/evals/index-coverage.json +70 -0
  43. package/evals/index-monitor.json +58 -0
  44. package/evals/index-watch.json +68 -0
  45. package/evals/internal-links.json +57 -0
  46. package/evals/link-recovery.json +58 -0
  47. package/evals/llms-txt-audit.json +44 -0
  48. package/evals/measure-change.json +58 -0
  49. package/evals/monthly-action-plan.json +56 -0
  50. package/evals/monthly-report.json +58 -0
  51. package/evals/narrative-report.json +58 -0
  52. package/evals/okf-build.json +44 -0
  53. package/evals/okf-validate.json +44 -0
  54. package/evals/page-opportunities.json +57 -0
  55. package/evals/performance-audit.json +57 -0
  56. package/evals/pseo-audit.json +84 -0
  57. package/evals/query-clusters.json +57 -0
  58. package/evals/quick-wins.json +86 -0
  59. package/evals/redirect-trace.json +57 -0
  60. package/evals/refresh-priorities.json +57 -0
  61. package/evals/search-performance-overview.json +86 -0
  62. package/evals/second-page.json +58 -0
  63. package/evals/segment-impact.json +57 -0
  64. package/evals/seo-fix-queue.json +85 -0
  65. package/evals/seo-geo-readiness.json +84 -0
  66. package/evals/seo-site-audit.json +85 -0
  67. package/evals/seo-to-ai-query.json +57 -0
  68. package/evals/seo.json +87 -0
  69. package/evals/setup-check.json +56 -0
  70. package/evals/site-crawl.json +44 -0
  71. package/evals/striking-distance.json +85 -0
  72. package/evals/technical-watch.json +57 -0
  73. package/evals/top-fixes.json +44 -0
  74. package/evals/traffic-anomaly.json +57 -0
  75. package/evals/update-correlation.json +57 -0
  76. package/evals/update-postmortem.json +57 -0
  77. package/package.json +103 -23
  78. package/skills/README.md +68 -0
  79. package/skills/seo/SKILL.md +99 -0
  80. package/skills/seo/agents/openai.yaml +4 -0
  81. package/.jshintrc +0 -18
  82. package/.npmignore +0 -3
  83. package/.travis.yml +0 -3
  84. package/Makefile +0 -10
  85. package/index.js +0 -2
  86. package/lib/middleware.js +0 -159
  87. package/lib/seo.js +0 -32
  88. package/test/init.js +0 -43
  89. package/test/middleware.test.js +0 -111
  90. package/test/seo-page-result.html +0 -9
  91. package/test/seo-page.html +0 -9
  92. package/test/seo-routes.js +0 -5
  93. package/test/vendor/jquery-1.11.1.min.js +0 -4
package/dist/mcp.d.ts ADDED
@@ -0,0 +1,74 @@
1
+
2
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
3
+ import * as z from "zod/v4";
4
+ //#region packages/mcp/src/report-depth.d.ts
5
+ type RelatedReport = {
6
+ id: string;
7
+ reason: string;
8
+ };
9
+ type ReportDepth = {
10
+ readOrder: readonly string[];
11
+ doNotClaim: readonly string[];
12
+ verify: string;
13
+ related: readonly RelatedReport[];
14
+ };
15
+ //#endregion
16
+ //#region packages/mcp/src/report-guidance.d.ts
17
+ type ReportGuidance = {
18
+ name: string;
19
+ description: string;
20
+ useWhen: readonly [string] | readonly [string, string] | readonly [string, string, string];
21
+ avoidWhen: readonly [string] | readonly [string, string];
22
+ outcome: string;
23
+ };
24
+ type FullReportGuidance = ReportGuidance & ReportDepth;
25
+ //#endregion
26
+ //#region packages/mcp/src/tool-result.d.ts
27
+ type ToolResult = {
28
+ content: Array<{
29
+ type: 'text';
30
+ text: string;
31
+ }>;
32
+ structuredContent?: Record<string, unknown>;
33
+ isError?: boolean;
34
+ };
35
+ //#endregion
36
+ //#region packages/mcp/src/report-registry.d.ts
37
+ declare const REPORT_CATEGORIES: readonly ["ai-search", "crawl", "diagnosis", "experiments", "monitoring", "opportunities", "reporting", "setup", "workflows"];
38
+ type ReportCategory = (typeof REPORT_CATEGORIES)[number];
39
+ type ReportSummary = {
40
+ id: string;
41
+ category: ReportCategory;
42
+ name: string;
43
+ description: string;
44
+ };
45
+ //#endregion
46
+ //#region packages/mcp/src/reports.d.ts
47
+ declare function listReports(category?: ReportCategory): ReportSummary[];
48
+ declare function describeReport(id: string): {
49
+ id: string;
50
+ category: "ai-search" | "crawl" | "diagnosis" | "experiments" | "monitoring" | "opportunities" | "reporting" | "setup" | "workflows";
51
+ name: string;
52
+ description: string;
53
+ useWhen: readonly string[];
54
+ avoidWhen: readonly string[];
55
+ outcome: string;
56
+ readOrder: readonly string[];
57
+ doNotClaim: readonly string[];
58
+ verify: string;
59
+ related: readonly RelatedReport[];
60
+ inputSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<Readonly<{
61
+ [k: string]: z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
62
+ }>, z.core.$strip>>;
63
+ };
64
+ declare function executeReport(id: string, params?: Record<string, unknown>): Promise<ToolResult>;
65
+ declare function runReport(id: string, params?: Record<string, unknown>): Promise<ToolResult>;
66
+ //#endregion
67
+ //#region packages/mcp/src/index.d.ts
68
+ declare function createServer(): McpServer;
69
+ declare function startMcpServer(opts?: {
70
+ test?: boolean;
71
+ }): Promise<void>;
72
+ //#endregion
73
+ export { type FullReportGuidance, REPORT_CATEGORIES, type RelatedReport, type ReportCategory, type ReportDepth, type ReportGuidance, type ReportSummary, createServer, describeReport, executeReport, listReports, runReport, startMcpServer };
74
+ //# sourceMappingURL=mcp.d.ts.map