@rankcli/agent-runtime 0.0.28 → 0.0.30
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/dist/index.d.mts +198 -163
- package/dist/index.d.ts +198 -163
- package/dist/index.js +188 -16
- package/dist/index.mjs +185 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2988,6 +2988,14 @@ interface DeterministicFixInput {
|
|
|
2988
2988
|
siteName: string;
|
|
2989
2989
|
/** Monorepo app root, '' at the repository root. Every emitted path starts with it. */
|
|
2990
2990
|
appRoot: string;
|
|
2991
|
+
/**
|
|
2992
|
+
* Where files served at the site root live, relative to appRoot. 'public/' for Vite, CRA
|
|
2993
|
+
* and most bundlers; '' for a static site that serves its directory as-is (GitHub Pages
|
|
2994
|
+
* from docs/), where a public/ subdirectory would simply never be served. Defaults to
|
|
2995
|
+
* 'public/' because that is the common case, but getting it wrong means committing a
|
|
2996
|
+
* robots.txt nobody can fetch.
|
|
2997
|
+
*/
|
|
2998
|
+
publicDir?: string;
|
|
2991
2999
|
/** Issue codes open on the audit; a fix is only offered for something actually reported. */
|
|
2992
3000
|
issueCodes: Set<string> | string[];
|
|
2993
3001
|
/** Current file contents, null when the file does not exist. */
|
|
@@ -3023,6 +3031,192 @@ declare function buildDeterministicFixes(input: DeterministicFixInput): Determin
|
|
|
3023
3031
|
*/
|
|
3024
3032
|
declare function findAppRoot(files: string[]): string;
|
|
3025
3033
|
|
|
3034
|
+
interface ReplacementConcern {
|
|
3035
|
+
/** Machine-readable, for logs and the PR body. */
|
|
3036
|
+
code: 'shrunk' | 'lost_closing_tag' | 'lost_script' | 'lost_stylesheet' | 'lost_verification' | 'lost_import' | 'invalid_json' | 'invalid_xml' | 'invalid_json_ld' | 'fewer_sitemap_urls' | 'lastmod_moved_backwards';
|
|
3037
|
+
detail: string;
|
|
3038
|
+
}
|
|
3039
|
+
/**
|
|
3040
|
+
* Everything wrong with replacing `original` with `replacement` at `path`. Empty means safe
|
|
3041
|
+
* to commit. `original` is null for a file being created, where there is nothing to lose and
|
|
3042
|
+
* only the content's own validity matters.
|
|
3043
|
+
*/
|
|
3044
|
+
declare function assessReplacement(path: string, original: string | null, replacement: string): ReplacementConcern[];
|
|
3045
|
+
/** One line naming why a file was dropped, for a log line or a PR body. */
|
|
3046
|
+
declare function describeConcerns(concerns: ReplacementConcern[]): string;
|
|
3047
|
+
|
|
3048
|
+
/**
|
|
3049
|
+
* Framework Detection
|
|
3050
|
+
*
|
|
3051
|
+
* Detects web frameworks from:
|
|
3052
|
+
* 1. HTML signatures (data attributes, meta tags, scripts)
|
|
3053
|
+
* 2. package.json / Gemfile / requirements.txt / composer.json / etc.
|
|
3054
|
+
* 3. File structure patterns
|
|
3055
|
+
* 4. HTTP response headers
|
|
3056
|
+
*
|
|
3057
|
+
* Supports 25+ frameworks across JavaScript, Ruby, Python, PHP, Java, C#, Go, and Elixir.
|
|
3058
|
+
*/
|
|
3059
|
+
type Framework = 'react' | 'nextjs' | 'vue' | 'nuxt' | 'angular' | 'svelte' | 'sveltekit' | 'astro' | 'remix' | 'gatsby' | 'solidjs' | 'qwik' | 'fresh' | 'rails' | 'django' | 'flask' | 'fastapi' | 'laravel' | 'symfony' | 'wordpress' | 'spring' | 'aspnet' | 'go' | 'phoenix' | 'htmx' | 'hotwire' | 'hugo' | 'jekyll' | 'eleventy' | 'pelican' | 'unknown';
|
|
3060
|
+
type Language = 'javascript' | 'typescript' | 'ruby' | 'python' | 'php' | 'java' | 'csharp' | 'go' | 'elixir' | 'rust' | 'unknown';
|
|
3061
|
+
interface FrameworkInfo {
|
|
3062
|
+
framework: Framework;
|
|
3063
|
+
version?: string;
|
|
3064
|
+
language: Language;
|
|
3065
|
+
confidence: 'high' | 'medium' | 'low';
|
|
3066
|
+
detected_from: 'html' | 'package.json' | 'files' | 'headers' | 'gemfile' | 'requirements' | 'composer' | 'pom' | 'csproj' | 'go.mod' | 'mix.exs';
|
|
3067
|
+
meta_framework?: Framework;
|
|
3068
|
+
}
|
|
3069
|
+
/**
|
|
3070
|
+
* Detect framework from HTML content
|
|
3071
|
+
*/
|
|
3072
|
+
declare function detectFromHtml(html: string): FrameworkInfo | null;
|
|
3073
|
+
/**
|
|
3074
|
+
* Detect framework from package.json content (JavaScript/TypeScript)
|
|
3075
|
+
*/
|
|
3076
|
+
declare function detectFromPackageJson(packageJson: {
|
|
3077
|
+
dependencies?: Record<string, string>;
|
|
3078
|
+
devDependencies?: Record<string, string>;
|
|
3079
|
+
}): FrameworkInfo | null;
|
|
3080
|
+
/**
|
|
3081
|
+
* Detect framework from HTTP response headers
|
|
3082
|
+
*/
|
|
3083
|
+
declare function detectFromHeaders(headers: Record<string, string>): FrameworkInfo | null;
|
|
3084
|
+
/**
|
|
3085
|
+
* Combined detection using multiple sources
|
|
3086
|
+
*/
|
|
3087
|
+
declare function detectFramework$1(options: {
|
|
3088
|
+
html?: string;
|
|
3089
|
+
packageJson?: {
|
|
3090
|
+
dependencies?: Record<string, string>;
|
|
3091
|
+
devDependencies?: Record<string, string>;
|
|
3092
|
+
};
|
|
3093
|
+
composerJson?: {
|
|
3094
|
+
require?: Record<string, string>;
|
|
3095
|
+
'require-dev'?: Record<string, string>;
|
|
3096
|
+
};
|
|
3097
|
+
gemfileContent?: string;
|
|
3098
|
+
requirementsContent?: string;
|
|
3099
|
+
pomXmlContent?: string;
|
|
3100
|
+
csprojContent?: string;
|
|
3101
|
+
goModContent?: string;
|
|
3102
|
+
mixExsContent?: string;
|
|
3103
|
+
headers?: Record<string, string>;
|
|
3104
|
+
files?: string[];
|
|
3105
|
+
}): FrameworkInfo;
|
|
3106
|
+
/**
|
|
3107
|
+
* Get human-readable framework name
|
|
3108
|
+
*/
|
|
3109
|
+
declare function getFrameworkDisplayName(framework: Framework): string;
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Framework-Specific SEO Suggestion Engine
|
|
3113
|
+
*
|
|
3114
|
+
* Loads recipe files and provides framework-specific SEO suggestions.
|
|
3115
|
+
* Works with both CLI and Web UI.
|
|
3116
|
+
*/
|
|
3117
|
+
|
|
3118
|
+
interface FrameworkCheck {
|
|
3119
|
+
code: string;
|
|
3120
|
+
severity: IssueSeverity;
|
|
3121
|
+
title: string;
|
|
3122
|
+
description: string;
|
|
3123
|
+
howToFix: string;
|
|
3124
|
+
impact?: string;
|
|
3125
|
+
detection?: {
|
|
3126
|
+
html_patterns?: string[];
|
|
3127
|
+
html_missing_patterns?: string[];
|
|
3128
|
+
missing_content?: boolean;
|
|
3129
|
+
title_in_js?: boolean;
|
|
3130
|
+
title_not_in_html?: boolean;
|
|
3131
|
+
};
|
|
3132
|
+
app_router_only?: boolean;
|
|
3133
|
+
pages_router_only?: boolean;
|
|
3134
|
+
}
|
|
3135
|
+
interface FrameworkRecipe {
|
|
3136
|
+
framework: Framework;
|
|
3137
|
+
display_name: string;
|
|
3138
|
+
category: string;
|
|
3139
|
+
base_framework?: Framework;
|
|
3140
|
+
ssr_default: boolean;
|
|
3141
|
+
seo_challenges?: string[];
|
|
3142
|
+
seo_strengths?: string[];
|
|
3143
|
+
checks: FrameworkCheck[];
|
|
3144
|
+
performance_tips?: string[];
|
|
3145
|
+
migration_paths?: Record<string, {
|
|
3146
|
+
effort: string;
|
|
3147
|
+
benefits: string[];
|
|
3148
|
+
guide?: string;
|
|
3149
|
+
}>;
|
|
3150
|
+
recommended_plugins?: Record<string, string[]>;
|
|
3151
|
+
recommended_gems?: Record<string, string[]>;
|
|
3152
|
+
integrations?: string[];
|
|
3153
|
+
}
|
|
3154
|
+
/**
|
|
3155
|
+
* Load a recipe from embedded content or file system
|
|
3156
|
+
*/
|
|
3157
|
+
declare function loadRecipe(framework: Framework): Promise<FrameworkRecipe | null>;
|
|
3158
|
+
/**
|
|
3159
|
+
* Get framework-specific issues based on HTML analysis
|
|
3160
|
+
*/
|
|
3161
|
+
declare function getFrameworkIssues(frameworkInfo: FrameworkInfo, html: string, url: string): Promise<AuditIssue[]>;
|
|
3162
|
+
/**
|
|
3163
|
+
* Get framework-specific suggestions for fixing issues
|
|
3164
|
+
*/
|
|
3165
|
+
declare function getFrameworkSuggestions(frameworkInfo: FrameworkInfo, issueCode: string): Promise<string | null>;
|
|
3166
|
+
/**
|
|
3167
|
+
* Get all available checks for a framework
|
|
3168
|
+
*/
|
|
3169
|
+
declare function getFrameworkChecks(framework: Framework): Promise<FrameworkCheck[]>;
|
|
3170
|
+
/**
|
|
3171
|
+
* Get performance tips for a framework
|
|
3172
|
+
*/
|
|
3173
|
+
declare function getPerformanceTips(framework: Framework): Promise<string[]>;
|
|
3174
|
+
/**
|
|
3175
|
+
* Get SEO challenges for a framework
|
|
3176
|
+
*/
|
|
3177
|
+
declare function getSeoChallenges(framework: Framework): Promise<string[]>;
|
|
3178
|
+
/**
|
|
3179
|
+
* Get migration paths from current framework
|
|
3180
|
+
*/
|
|
3181
|
+
declare function getMigrationPaths(framework: Framework): Promise<Record<string, {
|
|
3182
|
+
effort: string;
|
|
3183
|
+
benefits: string[];
|
|
3184
|
+
guide?: string;
|
|
3185
|
+
}>>;
|
|
3186
|
+
/**
|
|
3187
|
+
* Get total number of framework-specific checks
|
|
3188
|
+
*/
|
|
3189
|
+
declare function getTotalFrameworkChecks(): Promise<number>;
|
|
3190
|
+
/**
|
|
3191
|
+
* Get framework summary for display
|
|
3192
|
+
*/
|
|
3193
|
+
declare function getFrameworkSummary(framework: Framework): Promise<{
|
|
3194
|
+
name: string;
|
|
3195
|
+
category: string;
|
|
3196
|
+
ssrDefault: boolean;
|
|
3197
|
+
checkCount: number;
|
|
3198
|
+
strengths: string[];
|
|
3199
|
+
challenges: string[];
|
|
3200
|
+
} | null>;
|
|
3201
|
+
/**
|
|
3202
|
+
* Embed recipe content for bundling (called at build time)
|
|
3203
|
+
*/
|
|
3204
|
+
declare function embedRecipe(framework: Framework, content: string): void;
|
|
3205
|
+
|
|
3206
|
+
interface FrameworkGuidanceOptions {
|
|
3207
|
+
/** Issue codes open on the report. Checks matching these come first. */
|
|
3208
|
+
issueCodes?: string[];
|
|
3209
|
+
/** Roughly 1K tokens. Generous enough for several snippets, small enough to notice. */
|
|
3210
|
+
maxChars?: number;
|
|
3211
|
+
}
|
|
3212
|
+
/**
|
|
3213
|
+
* A markdown block for the prompt, or '' when there is no recipe for the framework.
|
|
3214
|
+
*
|
|
3215
|
+
* Ordering is deliberate: what the framework is, then the traps it has, then the fixes for
|
|
3216
|
+
* the issues this site actually reported, then anything else that fits the budget.
|
|
3217
|
+
*/
|
|
3218
|
+
declare function buildFrameworkGuidance(recipe: FrameworkRecipe | null | undefined, options?: FrameworkGuidanceOptions): string;
|
|
3219
|
+
|
|
3026
3220
|
/**
|
|
3027
3221
|
* World-Class JSON-LD Schema Generators
|
|
3028
3222
|
*
|
|
@@ -3976,7 +4170,7 @@ declare function listFiles(params: {
|
|
|
3976
4170
|
pattern?: string;
|
|
3977
4171
|
recursive?: boolean;
|
|
3978
4172
|
}): Promise<ToolResult>;
|
|
3979
|
-
declare function detectFramework
|
|
4173
|
+
declare function detectFramework(params: {
|
|
3980
4174
|
cwd?: string;
|
|
3981
4175
|
}): Promise<ToolResult>;
|
|
3982
4176
|
declare function findHtmlEntry(params: {
|
|
@@ -5373,164 +5567,6 @@ declare namespace index$1 {
|
|
|
5373
5567
|
export { type index$1_AIAccessResult as AIAccessResult, index$1_AI_CRAWLERS_INFO as AI_CRAWLERS_INFO, type index$1_AnchorTextStats as AnchorTextStats, type index$1_CitationResult as CitationResult, type index$1_ComprehensiveSEOResult as ComprehensiveSEOResult, type index$1_ContentStructureResult as ContentStructureResult, type index$1_ContentWidthAnalysis as ContentWidthAnalysis, type index$1_CoreWebVitalsEstimate as CoreWebVitalsEstimate, type index$1_EntityResult as EntityResult, type index$1_FontSizeAnalysis as FontSizeAnalysis, type index$1_GEOAnalysisResult as GEOAnalysisResult, type index$1_ImageAnalysisResult as ImageAnalysisResult, type index$1_ImageInfo as ImageInfo, type index$1_InternalLinkingResult as InternalLinkingResult, type index$1_LLMSignalResult as LLMSignalResult, type index$1_LinkInfo as LinkInfo, type index$1_MobileSEOResult as MobileSEOResult, type index$1_MobileSpecificAnalysis as MobileSpecificAnalysis, type index$1_SchemaItem as SchemaItem, type index$1_SecurityHeadersResult as SecurityHeadersResult, type index$1_StructuredDataResult as StructuredDataResult, type index$1_TouchTargetAnalysis as TouchTargetAnalysis, type index$1_ViewportAnalysis as ViewportAnalysis, index$1_analyzeCitationReadiness as analyzeCitationReadiness, index$1_analyzeComprehensive as analyzeComprehensive, index$1_analyzeContentStructure as analyzeContentStructure, index$1_analyzeCoreWebVitals as analyzeCoreWebVitals, index$1_analyzeEntityExtraction as analyzeEntityExtraction, index$1_analyzeGEO as analyzeGEO, index$1_analyzeImages as analyzeImages, index$1_analyzeInternalLinking as analyzeInternalLinking, index$1_analyzeMobileSEO as analyzeMobileSEO, index$1_analyzeRobotsTxtForAI as analyzeRobotsTxtForAI, index$1_analyzeSecurityHeaders as analyzeSecurityHeaders, index$1_analyzeStructuredData as analyzeStructuredData, index$1_calculateLLMSignals as calculateLLMSignals, index$1_detectRenderingMode as detectRenderingMode, index$1_generateAIFriendlyRobotsTxt as generateAIFriendlyRobotsTxt, index$1_generateResponsiveImage as generateResponsiveImage, index$1_generateSchemaTemplate as generateSchemaTemplate, index$1_generateSecurityHeaders as generateSecurityHeaders, index$1_suggestInternalLinks as suggestInternalLinks };
|
|
5374
5568
|
}
|
|
5375
5569
|
|
|
5376
|
-
/**
|
|
5377
|
-
* Framework Detection
|
|
5378
|
-
*
|
|
5379
|
-
* Detects web frameworks from:
|
|
5380
|
-
* 1. HTML signatures (data attributes, meta tags, scripts)
|
|
5381
|
-
* 2. package.json / Gemfile / requirements.txt / composer.json / etc.
|
|
5382
|
-
* 3. File structure patterns
|
|
5383
|
-
* 4. HTTP response headers
|
|
5384
|
-
*
|
|
5385
|
-
* Supports 25+ frameworks across JavaScript, Ruby, Python, PHP, Java, C#, Go, and Elixir.
|
|
5386
|
-
*/
|
|
5387
|
-
type Framework = 'react' | 'nextjs' | 'vue' | 'nuxt' | 'angular' | 'svelte' | 'sveltekit' | 'astro' | 'remix' | 'gatsby' | 'solidjs' | 'qwik' | 'fresh' | 'rails' | 'django' | 'flask' | 'fastapi' | 'laravel' | 'symfony' | 'wordpress' | 'spring' | 'aspnet' | 'go' | 'phoenix' | 'htmx' | 'hotwire' | 'hugo' | 'jekyll' | 'eleventy' | 'pelican' | 'unknown';
|
|
5388
|
-
type Language = 'javascript' | 'typescript' | 'ruby' | 'python' | 'php' | 'java' | 'csharp' | 'go' | 'elixir' | 'rust' | 'unknown';
|
|
5389
|
-
interface FrameworkInfo {
|
|
5390
|
-
framework: Framework;
|
|
5391
|
-
version?: string;
|
|
5392
|
-
language: Language;
|
|
5393
|
-
confidence: 'high' | 'medium' | 'low';
|
|
5394
|
-
detected_from: 'html' | 'package.json' | 'files' | 'headers' | 'gemfile' | 'requirements' | 'composer' | 'pom' | 'csproj' | 'go.mod' | 'mix.exs';
|
|
5395
|
-
meta_framework?: Framework;
|
|
5396
|
-
}
|
|
5397
|
-
/**
|
|
5398
|
-
* Detect framework from HTML content
|
|
5399
|
-
*/
|
|
5400
|
-
declare function detectFromHtml(html: string): FrameworkInfo | null;
|
|
5401
|
-
/**
|
|
5402
|
-
* Detect framework from package.json content (JavaScript/TypeScript)
|
|
5403
|
-
*/
|
|
5404
|
-
declare function detectFromPackageJson(packageJson: {
|
|
5405
|
-
dependencies?: Record<string, string>;
|
|
5406
|
-
devDependencies?: Record<string, string>;
|
|
5407
|
-
}): FrameworkInfo | null;
|
|
5408
|
-
/**
|
|
5409
|
-
* Detect framework from HTTP response headers
|
|
5410
|
-
*/
|
|
5411
|
-
declare function detectFromHeaders(headers: Record<string, string>): FrameworkInfo | null;
|
|
5412
|
-
/**
|
|
5413
|
-
* Combined detection using multiple sources
|
|
5414
|
-
*/
|
|
5415
|
-
declare function detectFramework(options: {
|
|
5416
|
-
html?: string;
|
|
5417
|
-
packageJson?: {
|
|
5418
|
-
dependencies?: Record<string, string>;
|
|
5419
|
-
devDependencies?: Record<string, string>;
|
|
5420
|
-
};
|
|
5421
|
-
composerJson?: {
|
|
5422
|
-
require?: Record<string, string>;
|
|
5423
|
-
'require-dev'?: Record<string, string>;
|
|
5424
|
-
};
|
|
5425
|
-
gemfileContent?: string;
|
|
5426
|
-
requirementsContent?: string;
|
|
5427
|
-
pomXmlContent?: string;
|
|
5428
|
-
csprojContent?: string;
|
|
5429
|
-
goModContent?: string;
|
|
5430
|
-
mixExsContent?: string;
|
|
5431
|
-
headers?: Record<string, string>;
|
|
5432
|
-
files?: string[];
|
|
5433
|
-
}): FrameworkInfo;
|
|
5434
|
-
/**
|
|
5435
|
-
* Get human-readable framework name
|
|
5436
|
-
*/
|
|
5437
|
-
declare function getFrameworkDisplayName(framework: Framework): string;
|
|
5438
|
-
|
|
5439
|
-
/**
|
|
5440
|
-
* Framework-Specific SEO Suggestion Engine
|
|
5441
|
-
*
|
|
5442
|
-
* Loads recipe files and provides framework-specific SEO suggestions.
|
|
5443
|
-
* Works with both CLI and Web UI.
|
|
5444
|
-
*/
|
|
5445
|
-
|
|
5446
|
-
interface FrameworkCheck {
|
|
5447
|
-
code: string;
|
|
5448
|
-
severity: IssueSeverity;
|
|
5449
|
-
title: string;
|
|
5450
|
-
description: string;
|
|
5451
|
-
howToFix: string;
|
|
5452
|
-
impact?: string;
|
|
5453
|
-
detection?: {
|
|
5454
|
-
html_patterns?: string[];
|
|
5455
|
-
html_missing_patterns?: string[];
|
|
5456
|
-
missing_content?: boolean;
|
|
5457
|
-
title_in_js?: boolean;
|
|
5458
|
-
title_not_in_html?: boolean;
|
|
5459
|
-
};
|
|
5460
|
-
app_router_only?: boolean;
|
|
5461
|
-
pages_router_only?: boolean;
|
|
5462
|
-
}
|
|
5463
|
-
interface FrameworkRecipe {
|
|
5464
|
-
framework: Framework;
|
|
5465
|
-
display_name: string;
|
|
5466
|
-
category: string;
|
|
5467
|
-
base_framework?: Framework;
|
|
5468
|
-
ssr_default: boolean;
|
|
5469
|
-
seo_challenges?: string[];
|
|
5470
|
-
seo_strengths?: string[];
|
|
5471
|
-
checks: FrameworkCheck[];
|
|
5472
|
-
performance_tips?: string[];
|
|
5473
|
-
migration_paths?: Record<string, {
|
|
5474
|
-
effort: string;
|
|
5475
|
-
benefits: string[];
|
|
5476
|
-
guide?: string;
|
|
5477
|
-
}>;
|
|
5478
|
-
recommended_plugins?: Record<string, string[]>;
|
|
5479
|
-
recommended_gems?: Record<string, string[]>;
|
|
5480
|
-
integrations?: string[];
|
|
5481
|
-
}
|
|
5482
|
-
/**
|
|
5483
|
-
* Load a recipe from embedded content or file system
|
|
5484
|
-
*/
|
|
5485
|
-
declare function loadRecipe(framework: Framework): Promise<FrameworkRecipe | null>;
|
|
5486
|
-
/**
|
|
5487
|
-
* Get framework-specific issues based on HTML analysis
|
|
5488
|
-
*/
|
|
5489
|
-
declare function getFrameworkIssues(frameworkInfo: FrameworkInfo, html: string, url: string): Promise<AuditIssue[]>;
|
|
5490
|
-
/**
|
|
5491
|
-
* Get framework-specific suggestions for fixing issues
|
|
5492
|
-
*/
|
|
5493
|
-
declare function getFrameworkSuggestions(frameworkInfo: FrameworkInfo, issueCode: string): Promise<string | null>;
|
|
5494
|
-
/**
|
|
5495
|
-
* Get all available checks for a framework
|
|
5496
|
-
*/
|
|
5497
|
-
declare function getFrameworkChecks(framework: Framework): Promise<FrameworkCheck[]>;
|
|
5498
|
-
/**
|
|
5499
|
-
* Get performance tips for a framework
|
|
5500
|
-
*/
|
|
5501
|
-
declare function getPerformanceTips(framework: Framework): Promise<string[]>;
|
|
5502
|
-
/**
|
|
5503
|
-
* Get SEO challenges for a framework
|
|
5504
|
-
*/
|
|
5505
|
-
declare function getSeoChallenges(framework: Framework): Promise<string[]>;
|
|
5506
|
-
/**
|
|
5507
|
-
* Get migration paths from current framework
|
|
5508
|
-
*/
|
|
5509
|
-
declare function getMigrationPaths(framework: Framework): Promise<Record<string, {
|
|
5510
|
-
effort: string;
|
|
5511
|
-
benefits: string[];
|
|
5512
|
-
guide?: string;
|
|
5513
|
-
}>>;
|
|
5514
|
-
/**
|
|
5515
|
-
* Get total number of framework-specific checks
|
|
5516
|
-
*/
|
|
5517
|
-
declare function getTotalFrameworkChecks(): Promise<number>;
|
|
5518
|
-
/**
|
|
5519
|
-
* Get framework summary for display
|
|
5520
|
-
*/
|
|
5521
|
-
declare function getFrameworkSummary(framework: Framework): Promise<{
|
|
5522
|
-
name: string;
|
|
5523
|
-
category: string;
|
|
5524
|
-
ssrDefault: boolean;
|
|
5525
|
-
checkCount: number;
|
|
5526
|
-
strengths: string[];
|
|
5527
|
-
challenges: string[];
|
|
5528
|
-
} | null>;
|
|
5529
|
-
/**
|
|
5530
|
-
* Embed recipe content for bundling (called at build time)
|
|
5531
|
-
*/
|
|
5532
|
-
declare function embedRecipe(framework: Framework, content: string): void;
|
|
5533
|
-
|
|
5534
5570
|
/**
|
|
5535
5571
|
* Framework Detection and SEO Recipes
|
|
5536
5572
|
*
|
|
@@ -5557,14 +5593,13 @@ declare function embedRecipe(framework: Framework, content: string): void;
|
|
|
5557
5593
|
* ```
|
|
5558
5594
|
*/
|
|
5559
5595
|
|
|
5560
|
-
declare const SUPPORTED_FRAMEWORKS: readonly ["
|
|
5596
|
+
declare const SUPPORTED_FRAMEWORKS: readonly ["angular", "astro", "django", "laravel", "nextjs", "nuxt", "rails", "react", "sveltekit", "vue", "wordpress"];
|
|
5561
5597
|
|
|
5562
5598
|
type index_Framework = Framework;
|
|
5563
5599
|
type index_FrameworkCheck = FrameworkCheck;
|
|
5564
5600
|
type index_FrameworkInfo = FrameworkInfo;
|
|
5565
5601
|
type index_FrameworkRecipe = FrameworkRecipe;
|
|
5566
5602
|
declare const index_SUPPORTED_FRAMEWORKS: typeof SUPPORTED_FRAMEWORKS;
|
|
5567
|
-
declare const index_detectFramework: typeof detectFramework;
|
|
5568
5603
|
declare const index_detectFromHeaders: typeof detectFromHeaders;
|
|
5569
5604
|
declare const index_detectFromHtml: typeof detectFromHtml;
|
|
5570
5605
|
declare const index_detectFromPackageJson: typeof detectFromPackageJson;
|
|
@@ -5580,7 +5615,7 @@ declare const index_getSeoChallenges: typeof getSeoChallenges;
|
|
|
5580
5615
|
declare const index_getTotalFrameworkChecks: typeof getTotalFrameworkChecks;
|
|
5581
5616
|
declare const index_loadRecipe: typeof loadRecipe;
|
|
5582
5617
|
declare namespace index {
|
|
5583
|
-
export { type index_Framework as Framework, type index_FrameworkCheck as FrameworkCheck, type index_FrameworkInfo as FrameworkInfo, type index_FrameworkRecipe as FrameworkRecipe, index_SUPPORTED_FRAMEWORKS as SUPPORTED_FRAMEWORKS,
|
|
5618
|
+
export { type index_Framework as Framework, type index_FrameworkCheck as FrameworkCheck, type index_FrameworkInfo as FrameworkInfo, type index_FrameworkRecipe as FrameworkRecipe, index_SUPPORTED_FRAMEWORKS as SUPPORTED_FRAMEWORKS, detectFramework$1 as detectFramework, index_detectFromHeaders as detectFromHeaders, index_detectFromHtml as detectFromHtml, index_detectFromPackageJson as detectFromPackageJson, index_embedRecipe as embedRecipe, index_getFrameworkChecks as getFrameworkChecks, index_getFrameworkDisplayName as getFrameworkDisplayName, index_getFrameworkIssues as getFrameworkIssues, index_getFrameworkSuggestions as getFrameworkSuggestions, index_getFrameworkSummary as getFrameworkSummary, index_getMigrationPaths as getMigrationPaths, index_getPerformanceTips as getPerformanceTips, index_getSeoChallenges as getSeoChallenges, index_getTotalFrameworkChecks as getTotalFrameworkChecks, index_loadRecipe as loadRecipe };
|
|
5584
5619
|
}
|
|
5585
5620
|
|
|
5586
|
-
export { type AIContentConfig, type AIKeywordResearchOptions, type AgentDefinition, type AgentTool, type AlertChannel, type AlertConfig, type AlertMessage, type AlertResult, type AlertSeverity, type AlertType, type AuditAlertPayload, type AuditIssue, type AuditIssueData, type AuditOptions, type AuditPRResult, type AuditReport, type AuditReportData, type AuditRunnerOptions, type AuditRunnerResult, type AuditSchedule, type BlogPostConfig, type BrandConfig, type CIAction, type CIKeywordOptions, type CIKeywordResult, COMMIT_TYPES, type ChangelogConfig, type ChangelogResult, type CitationCheckOptions, type CommitConfig, type ComparisonConfig, type ComparisonRow, type CompetitiveInsight, type CompetitiveSearchOptions, type CompetitiveSearchResult, type CompetitorComparison, type CompetitorKeywordResult, type CompetitorOverlap, type CompetitorTool, type CompetitorUrl, type ContentElements, type ContentGeneratorOptions, type ContentRecommendation, type ConventionalCommit, type CrawlResult, type CrawlStats, type CrawledPage, type CreateAuditPROptions, type CreatePROptions, type DataForSEOCredentials, type DeterministicFixInput, type DeterministicFixes, type DiscoveredPage, type EnhancedToolIdea, type ExecOptions, type ExecuteOptions, type ExecutionResult, type FAQItem, type FAQSchemaOptions, type FeaturedSnippetAnalysis, type Fix, type FixFile, type FixGeneratorOptions, type FixResult, type FrameworkInfo$1 as FrameworkInfo, type FreeKeywordResult, type FreeToolIdea, type GA4Config, type GEOAlert, type GEOAlertType, type GEOHistory, type GEOHistoryOptions, type GEOQuery, type GEOReport, type GEOResult, type GEOTrend, type GSCConfig, type GSCCredentials, type GSCPerformanceData, type GSCQueryData, type GSCQueryResult, type GeneratedCode, type GeneratedContent, type GeneratedFix, type HeadingStructure, type HeadlineAnalysis, type HealthScore, ISSUE_DEFINITIONS, type ImageInfo$2 as ImageInfo, type InjectionResult, type IntentAnalysis, type IssueCategory, type IssueDefinition, type IssueSeverity, type KeyFact, type KeyFactsOptions, type KeywordAction, type KeywordCluster, type KeywordData, type KeywordDensityAnalysis, type KeywordLLM, type KeywordOpportunity, type KeywordRecommendation, type KeywordResearchOptions, type KeywordResearchResult, type KeywordStats, type KeywordTopic, type KeywordTrend, type LLMCitationResult, type LLMJudgeOptions, type LLMProvider, LOCATION_CODES, type LSIKeyword, type LinkInfo$1 as LinkInfo, type Mention, type MentionType, type MetaData, type MetaFixOptions, type NGram, type NLPAnalysisResult, OG_IMAGE_SPECS, type OptimizeOptions, type PRConfig, type PRDescription, PRIORITY_WEIGHTS, type PRResult, type PageAudit, type PageData, type PageMeta, type PaidKeywordResult, type ParsedResponse, type PlanTier, type ProviderStats, type QuickWin, type RankCheckOptions, type RankCheckResult, type RankHistory, RankTracker, type RankingResult, type RankingTierLimits, type ReadabilityResult, type ReadmeConfig, type ReadmeResult, type ReportBranding, type ReportConfig, type ReportData, type ReportPageData, type RouteInfo, type SEOAnalysisResult, type SEOFixCommit, type SEOFixSummary, type SEOIssue, type SEORecommendation, type SEOScore, SEO_SCOPES, SITE_PROFILE_QUESTIONS, type ScheduledAuditConfig, type ScheduledAuditResult, type SchemaData, Schemas, type SearchIntent, type Sentiment, type SerpApiConfig, SerpClient, type SerpClientConfig, type SerpFeature, type SiteCrawlResult, type SiteProfile, type SiteSummary, type SnippetRecommendation, type SnippetType, type SocialMetaConfig, type SocialMetaFix, type SummarizerOptions, type TFIDFResult, TIER_LIMITS, type ToolFeasibilityScore, type ToolFunction, type ToolResult, type TopicClusterResult, type TopicModel, type TrackedKeyword, type TrackerConfig, type TrackingOptions, type TrendDirection, type UncertaintyAssessment, type WizardQuestion, type WizardResponse, type WizardResult, type WizardSession, type WorkflowConfig, addTrackingResult, analyzeAnchorText, analyzeCanonicalAdvanced, analyzeClientRendering, analyzeContentFreshness, analyzeDOMStructure, analyzeFeaturedSnippetPotential, analyzeHeadings, analyzeHeadline, analyzeHreflang, analyzeImages$1 as analyzeImages, analyzeKeywordDensity, analyzeKeywords, analyzeLinks, analyzeLocalSEO, analyzeMobile, analyzeModernImages, analyzeOnPage, analyzePagination, analyzePerformance, analyzeReadability, analyzeRedirectChain, analyzeRedirects, analyzeResponsiveImages, analyzeSERPPreview, analyzeSecurity, analyzeSecurityHeaders$1 as analyzeSecurityHeaders, analyzeSocialMeta, analyzeStructuredData$1 as analyzeStructuredData, analyzeTrackerBloat, analyzeUrl, analyzeUrlSafety, index$1 as analyzers, applyFixes, buildDeterministicFixes, buildGSCApiRequest, buildGSCRequest, calculateAIVisibilityScore, calculateBM25, calculateTFIDF$1 as calculateKeywordTFIDF, calculateNextRun, calculateTFIDF, checkAIBotBlocking, checkAMP, checkAdsTxt, checkAppleTouchIcon, checkBalance, checkCertificate, checkDMARC, checkGitHubCLI, checkInternalRedirects, checkJSRenderingRatio, checkLLMCitations, checkLlmsTxt, checkMobileResources, checkPlaintextEmails, checkRedirects, checkRobots, checkRobotsTxt, checkSPF, checkSitemap, classifyIntent, classifyIntents, clusterKeywordsByEmbedding, compareCompetitorVisibility, comparePeriods, completeWizard, crawlSite, crawlUrl, createAuditPR, createFallbackSummary, createGEOHistory, createPullRequest, createSEOCommit, createSEOCommits, detectDuplicates, detectFramework
|
|
5621
|
+
export { type AIContentConfig, type AIKeywordResearchOptions, type AgentDefinition, type AgentTool, type AlertChannel, type AlertConfig, type AlertMessage, type AlertResult, type AlertSeverity, type AlertType, type AuditAlertPayload, type AuditIssue, type AuditIssueData, type AuditOptions, type AuditPRResult, type AuditReport, type AuditReportData, type AuditRunnerOptions, type AuditRunnerResult, type AuditSchedule, type BlogPostConfig, type BrandConfig, type CIAction, type CIKeywordOptions, type CIKeywordResult, COMMIT_TYPES, type ChangelogConfig, type ChangelogResult, type CitationCheckOptions, type CommitConfig, type ComparisonConfig, type ComparisonRow, type CompetitiveInsight, type CompetitiveSearchOptions, type CompetitiveSearchResult, type CompetitorComparison, type CompetitorKeywordResult, type CompetitorOverlap, type CompetitorTool, type CompetitorUrl, type ContentElements, type ContentGeneratorOptions, type ContentRecommendation, type ConventionalCommit, type CrawlResult, type CrawlStats, type CrawledPage, type CreateAuditPROptions, type CreatePROptions, type DataForSEOCredentials, type DeterministicFixInput, type DeterministicFixes, type DiscoveredPage, type EnhancedToolIdea, type ExecOptions, type ExecuteOptions, type ExecutionResult, type FAQItem, type FAQSchemaOptions, type FeaturedSnippetAnalysis, type Fix, type FixFile, type FixGeneratorOptions, type FixResult, type FrameworkInfo$1 as FrameworkInfo, type FreeKeywordResult, type FreeToolIdea, type GA4Config, type GEOAlert, type GEOAlertType, type GEOHistory, type GEOHistoryOptions, type GEOQuery, type GEOReport, type GEOResult, type GEOTrend, type GSCConfig, type GSCCredentials, type GSCPerformanceData, type GSCQueryData, type GSCQueryResult, type GeneratedCode, type GeneratedContent, type GeneratedFix, type HeadingStructure, type HeadlineAnalysis, type HealthScore, ISSUE_DEFINITIONS, type ImageInfo$2 as ImageInfo, type InjectionResult, type IntentAnalysis, type IssueCategory, type IssueDefinition, type IssueSeverity, type KeyFact, type KeyFactsOptions, type KeywordAction, type KeywordCluster, type KeywordData, type KeywordDensityAnalysis, type KeywordLLM, type KeywordOpportunity, type KeywordRecommendation, type KeywordResearchOptions, type KeywordResearchResult, type KeywordStats, type KeywordTopic, type KeywordTrend, type LLMCitationResult, type LLMJudgeOptions, type LLMProvider, LOCATION_CODES, type LSIKeyword, type LinkInfo$1 as LinkInfo, type Mention, type MentionType, type MetaData, type MetaFixOptions, type NGram, type NLPAnalysisResult, OG_IMAGE_SPECS, type OptimizeOptions, type PRConfig, type PRDescription, PRIORITY_WEIGHTS, type PRResult, type PageAudit, type PageData, type PageMeta, type PaidKeywordResult, type ParsedResponse, type PlanTier, type ProviderStats, type QuickWin, type RankCheckOptions, type RankCheckResult, type RankHistory, RankTracker, type RankingResult, type RankingTierLimits, type ReadabilityResult, type ReadmeConfig, type ReadmeResult, type ReportBranding, type ReportConfig, type ReportData, type ReportPageData, type RouteInfo, type SEOAnalysisResult, type SEOFixCommit, type SEOFixSummary, type SEOIssue, type SEORecommendation, type SEOScore, SEO_SCOPES, SITE_PROFILE_QUESTIONS, type ScheduledAuditConfig, type ScheduledAuditResult, type SchemaData, Schemas, type SearchIntent, type Sentiment, type SerpApiConfig, SerpClient, type SerpClientConfig, type SerpFeature, type SiteCrawlResult, type SiteProfile, type SiteSummary, type SnippetRecommendation, type SnippetType, type SocialMetaConfig, type SocialMetaFix, type SummarizerOptions, type TFIDFResult, TIER_LIMITS, type ToolFeasibilityScore, type ToolFunction, type ToolResult, type TopicClusterResult, type TopicModel, type TrackedKeyword, type TrackerConfig, type TrackingOptions, type TrendDirection, type UncertaintyAssessment, type WizardQuestion, type WizardResponse, type WizardResult, type WizardSession, type WorkflowConfig, addTrackingResult, analyzeAnchorText, analyzeCanonicalAdvanced, analyzeClientRendering, analyzeContentFreshness, analyzeDOMStructure, analyzeFeaturedSnippetPotential, analyzeHeadings, analyzeHeadline, analyzeHreflang, analyzeImages$1 as analyzeImages, analyzeKeywordDensity, analyzeKeywords, analyzeLinks, analyzeLocalSEO, analyzeMobile, analyzeModernImages, analyzeOnPage, analyzePagination, analyzePerformance, analyzeReadability, analyzeRedirectChain, analyzeRedirects, analyzeResponsiveImages, analyzeSERPPreview, analyzeSecurity, analyzeSecurityHeaders$1 as analyzeSecurityHeaders, analyzeSocialMeta, analyzeStructuredData$1 as analyzeStructuredData, analyzeTrackerBloat, analyzeUrl, analyzeUrlSafety, index$1 as analyzers, applyFixes, assessReplacement, buildDeterministicFixes, buildFrameworkGuidance, buildGSCApiRequest, buildGSCRequest, calculateAIVisibilityScore, calculateBM25, calculateTFIDF$1 as calculateKeywordTFIDF, calculateNextRun, calculateTFIDF, checkAIBotBlocking, checkAMP, checkAdsTxt, checkAppleTouchIcon, checkBalance, checkCertificate, checkDMARC, checkGitHubCLI, checkInternalRedirects, checkJSRenderingRatio, checkLLMCitations, checkLlmsTxt, checkMobileResources, checkPlaintextEmails, checkRedirects, checkRobots, checkRobotsTxt, checkSPF, checkSitemap, classifyIntent, classifyIntents, clusterKeywordsByEmbedding, compareCompetitorVisibility, comparePeriods, completeWizard, crawlSite, crawlUrl, createAuditPR, createFallbackSummary, createGEOHistory, createPullRequest, createSEOCommit, createSEOCommits, describeConcerns, detectDuplicates, detectFramework, detectGitHubPages, detectMentions, detectSoft404, detectTechnologies, detectVisibilityChanges, discoverCompetitorKeywords, discoverPagesFromLinks, discoverRoutesFromRepo, enhanceSummaryWithCompetitors, enhanceToolIdea, enrichKeywordsWithEstimates, ensureGitRepo, evaluateAndEnhanceToolIdeas, evaluateToolFeasibility, executeAgent, extractContentHash, extractEntityPhrases, extractImages, extractKeyPhrases, extractLinks, extractMeta, extractNgrams, extractSchema, extractSeedKeywords, extractTopics, fetchCoreWebVitals, findAlmostPage1Keywords, findAppRoot, findCTROpportunities, findHtmlEntry, findLSIKeywords, findPageFiles, findTopPerformers, formatAlertMessage, formatCIResult, formatCompetitorReport, formatConventionalCommit, formatFeaturedSnippetReport, formatHeadlineReport, formatIntentReport, formatKeywordDensityReport, formatKeywordReport, formatPRBody, formatPRTitle, formatReadabilityReport, formatReport, formatSEOCommitMessage, formatTopicReport, formatWizardProgress, index as frameworks, generateAICitableContent, generateAllFixes, generateAngularSEOService, generateAspNetCoreSEO, generateAstroBaseHead, generateAstroMeta, generateBlogPost, generateBranchName, generateChangelog, generateCommitSummary, generateComparisonTable, generateCompleteSocialMetaSetup, generateDjangoSEOHelper, generateDuplicateIssues, generateEleventySEO, generateFAQSchema, generateFixes, generateGA4EnvTemplate, generateGA4ReactComponent, generateGA4Script, generateGA4ViteScript, generateGEOReport, generateGSCVerificationTag, generateGitHubActionSetup, generateGoSEO, generateHTMLReport, generateHTMLSocialMeta, generateHTMXSEO, generateHeadlineVariations, generateHugoSEO, generateJekyllSEO, generateJsonReport, generateKeyFacts, generateLaravelSEOHelper, generateMarkdownReport, generateNextAppMetadata, generateNextJsAppRouterMetadata, generateNextJsPagesRouterHead, generateNextPagesHead, generateNuxtSEOHead, generatePDFReport, generatePRDescription, generatePhoenixSEO, generateRailsSEOHelper, generateReactHelmetSocialMeta, generateReactSEOHead, generateRecommendationQueries, generateRemixMeta, generateRemixSEO, generateSecretsDoc, generateSocialMetaFix, generateSpringBootSEO, generateSvelteKitMeta, generateSvelteKitSEOHead, generateUncertaintyQuestions, generateVueSEOHead, generateWizardQuestions, generateWorkflow, getAIVisibilitySummary, getAutocompleteSuggestions, getDateRange, getExpandedSuggestions, getFrameworkSpecificFix, getFrameworkSpecificFixExtended, getGSCSetupInstructions, getGitUser, getKeywordData, getKeywordSuggestions, getMaxKdThreshold, getNextQuestion, getRelatedKeywords, getVisibilityTrend, groupKeywordsByTopic, identifyQuickWins, injectGA4, injectGSCVerification, interpolatePrompt, isGitRepo, keywordLLM, listFiles, loadAgent, loadAgentByName, mergePages, openAIKeywordLLM, optimizeForAI, optimizeReadme, parseGEOResponse, parseGSCResponse, parseJsonReply, parseSitemap, prioritizeKeywords, processWizardResponse, readFile, routesToUrls, runAIKeywordResearch, runAIReadinessChecks, runAdditionalChecks, runAuditWithFixes, runCIKeywordResearch, runCrawlabilityChecks, runDirectAnalysis, runFullAudit, runKeywordResearch, runNLPAnalysis, runScheduledAudit, scoreContentSEO, scoreMention, searchCompetitors, searchFormatConverters, searchHackerNews, sendAlert, sendAlerts, sendDiscordAlert, sendSlackAlert, shouldRunAudit, shouldSendAlert, startWizardSession, suggestSchemaTypes, summarizeSite, tokenize, tools, trackLLMVisibility, transformGSCData, urlSafetyDatabase, wizardResponsesToContext, writeFile, writeGitHubActionFiles };
|