@rankcli/agent-runtime 0.0.8 → 0.0.11

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 (49) hide show
  1. package/README.md +90 -196
  2. package/dist/analyzer-GMURJADU.mjs +7 -0
  3. package/dist/chunk-2JADKV3Z.mjs +244 -0
  4. package/dist/chunk-3ZSCLNTW.mjs +557 -0
  5. package/dist/chunk-4E4MQOSP.mjs +374 -0
  6. package/dist/chunk-6BWS3CLP.mjs +16 -0
  7. package/dist/chunk-AK2IC22C.mjs +206 -0
  8. package/dist/chunk-K6VSXDD6.mjs +293 -0
  9. package/dist/chunk-M27NQCWW.mjs +303 -0
  10. package/dist/{chunk-YNZYHEYM.mjs → chunk-PJLNXOLN.mjs} +0 -14
  11. package/dist/chunk-VSQD74I7.mjs +474 -0
  12. package/dist/core-web-vitals-analyzer-TE6LQJMS.mjs +7 -0
  13. package/dist/geo-analyzer-D47LTMMA.mjs +25 -0
  14. package/dist/image-optimization-analyzer-XP4OQGRP.mjs +9 -0
  15. package/dist/index.d.mts +1523 -17
  16. package/dist/index.d.ts +1523 -17
  17. package/dist/index.js +9582 -2664
  18. package/dist/index.mjs +4812 -380
  19. package/dist/internal-linking-analyzer-MRMBV7NM.mjs +9 -0
  20. package/dist/mobile-seo-analyzer-67HNQ7IO.mjs +7 -0
  21. package/dist/security-headers-analyzer-3ZUQARS5.mjs +9 -0
  22. package/dist/structured-data-analyzer-2I4NQAUP.mjs +9 -0
  23. package/package.json +2 -2
  24. package/src/analyzers/core-web-vitals-analyzer.test.ts +236 -0
  25. package/src/analyzers/core-web-vitals-analyzer.ts +557 -0
  26. package/src/analyzers/geo-analyzer.test.ts +310 -0
  27. package/src/analyzers/geo-analyzer.ts +814 -0
  28. package/src/analyzers/image-optimization-analyzer.test.ts +145 -0
  29. package/src/analyzers/image-optimization-analyzer.ts +348 -0
  30. package/src/analyzers/index.ts +233 -0
  31. package/src/analyzers/internal-linking-analyzer.test.ts +141 -0
  32. package/src/analyzers/internal-linking-analyzer.ts +419 -0
  33. package/src/analyzers/mobile-seo-analyzer.test.ts +140 -0
  34. package/src/analyzers/mobile-seo-analyzer.ts +455 -0
  35. package/src/analyzers/security-headers-analyzer.test.ts +115 -0
  36. package/src/analyzers/security-headers-analyzer.ts +318 -0
  37. package/src/analyzers/structured-data-analyzer.test.ts +210 -0
  38. package/src/analyzers/structured-data-analyzer.ts +590 -0
  39. package/src/audit/engine.ts +3 -3
  40. package/src/audit/types.ts +3 -2
  41. package/src/fixer/framework-fixes.test.ts +489 -0
  42. package/src/fixer/framework-fixes.ts +3418 -0
  43. package/src/fixer/index.ts +1 -0
  44. package/src/fixer/schemas.ts +971 -0
  45. package/src/frameworks/detector.ts +642 -114
  46. package/src/frameworks/suggestion-engine.ts +38 -1
  47. package/src/index.ts +6 -0
  48. package/src/types.ts +15 -1
  49. package/dist/analyzer-2CSWIQGD.mjs +0 -6
@@ -48,6 +48,7 @@ export interface FrameworkRecipe {
48
48
 
49
49
  // Embedded recipes (loaded at build time or dynamically)
50
50
  const RECIPES: Record<Framework, FrameworkRecipe | null> = {
51
+ // JavaScript/TypeScript
51
52
  react: null,
52
53
  nextjs: null,
53
54
  vue: null,
@@ -58,10 +59,46 @@ const RECIPES: Record<Framework, FrameworkRecipe | null> = {
58
59
  astro: null,
59
60
  remix: null,
60
61
  gatsby: null,
62
+ solidjs: null,
63
+ qwik: null,
64
+ fresh: null,
65
+
66
+ // Ruby
61
67
  rails: null,
62
- laravel: null,
68
+
69
+ // Python
63
70
  django: null,
71
+ flask: null,
72
+ fastapi: null,
73
+
74
+ // PHP
75
+ laravel: null,
76
+ symfony: null,
64
77
  wordpress: null,
78
+
79
+ // Java
80
+ spring: null,
81
+
82
+ // C#
83
+ aspnet: null,
84
+
85
+ // Go
86
+ go: null,
87
+
88
+ // Elixir
89
+ phoenix: null,
90
+
91
+ // Hypermedia
92
+ htmx: null,
93
+ hotwire: null,
94
+
95
+ // Static Site Generators
96
+ hugo: null,
97
+ jekyll: null,
98
+ eleventy: null,
99
+ pelican: null,
100
+
101
+ // Unknown
65
102
  unknown: null,
66
103
  };
67
104
 
package/src/index.ts CHANGED
@@ -26,6 +26,9 @@ export type { ExecuteOptions, ExecutionResult } from './executor.js';
26
26
  export { generateFixes, applyFixes } from './fixer.js';
27
27
  export type { FixGeneratorOptions, GeneratedFix } from './fixer.js';
28
28
  export * from './fixer/framework-fixes.js';
29
+ // Schemas are exported from ./fixer/schemas.js - import directly to avoid conflicts
30
+ // with generateFAQJsonLd and other duplicates in framework-fixes
31
+ export { Schemas } from './fixer/schemas.js';
29
32
 
30
33
  // Tools
31
34
  export { tools } from './tools/index.js';
@@ -59,6 +62,9 @@ export * from './reports/index.js';
59
62
  // GEO (Generative Engine Optimization) tracking
60
63
  export * from './geo/index.js';
61
64
 
65
+ // Advanced Analyzers (GEO, CWV, Security, Schema, Images, Links, Mobile)
66
+ export * as analyzers from './analyzers/index.js';
67
+
62
68
  // Framework Detection & SEO Recipes
63
69
  // Note: Export as namespace to avoid conflict with tools/detectFramework
64
70
  export * as frameworks from './frameworks/index.js';
package/src/types.ts CHANGED
@@ -110,7 +110,21 @@ export interface FrameworkInfo {
110
110
  name: string;
111
111
  version?: string;
112
112
  router?: 'app' | 'pages' | 'file-based' | 'custom';
113
- metaPattern: 'metadata-export' | 'head-component' | 'frontmatter' | 'meta-function' | 'html-head';
113
+ language?: 'javascript' | 'typescript' | 'ruby' | 'python' | 'php' | 'java' | 'csharp' | 'go' | 'elixir' | 'rust';
114
+ metaPattern:
115
+ | 'metadata-export' // Next.js App Router
116
+ | 'head-component' // React, Vue, Svelte
117
+ | 'frontmatter' // Astro, Hugo, Jekyll, Eleventy
118
+ | 'meta-function' // Remix
119
+ | 'html-head' // Plain HTML
120
+ | 'erb-helpers' // Rails with meta-tags gem
121
+ | 'blade-components' // Laravel Blade
122
+ | 'thymeleaf' // Spring Boot
123
+ | 'razor' // ASP.NET Core
124
+ | 'heex' // Phoenix/Elixir
125
+ | 'go-templates' // Go (Gin/Echo/Fiber)
126
+ | 'django-templates' // Django/Jinja2
127
+ | 'server-rendered'; // HTMX and other server-rendered
114
128
  }
115
129
 
116
130
  export interface Fix {
@@ -1,6 +0,0 @@
1
- import {
2
- analyzeUrl
3
- } from "./chunk-YNZYHEYM.mjs";
4
- export {
5
- analyzeUrl
6
- };