@rankcli/agent-runtime 0.0.14 → 0.0.15
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 +34 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +269 -75
- package/dist/index.mjs +238 -45
- package/package.json +1 -1
- package/src/audit/checks/agent-experience.ts +108 -0
- package/src/audit/checks/ai-readiness.ts +67 -0
- package/src/audit/checks/rag-chunk-readiness.test.ts +159 -0
- package/src/audit/checks/rag-chunk-readiness.ts +163 -0
- package/src/audit/engine.ts +11 -5
- package/src/audit/types.ts +24 -0
package/dist/index.d.mts
CHANGED
|
@@ -564,6 +564,33 @@ declare function checkInternalRedirects(internalLinks: string[], batchSize?: num
|
|
|
564
564
|
}>;
|
|
565
565
|
}>;
|
|
566
566
|
|
|
567
|
+
/**
|
|
568
|
+
* Agent Experience (AX) readiness
|
|
569
|
+
*
|
|
570
|
+
* Classic GEO asks "can an AI crawler read this page and cite it in an
|
|
571
|
+
* answer?" — that's what ai-readiness.ts covers. AX asks a different
|
|
572
|
+
* question: "can an AI AGENT (not just a chatbot) discover what this site
|
|
573
|
+
* can DO and act on it?" — a distinct, newer discipline (named tooling in
|
|
574
|
+
* this space: AgentGrade and similar agent-readiness scanners, 2026).
|
|
575
|
+
*
|
|
576
|
+
* This checks for the machine-readable discovery surface an agent looks
|
|
577
|
+
* for before it can act: llms-full.txt (the fuller, more-fetched sibling
|
|
578
|
+
* of llms.txt), a SKILL.md capability manifest, a discoverable MCP server,
|
|
579
|
+
* and an OpenAPI spec. None of these are required — most sites won't have
|
|
580
|
+
* any of them yet, this is genuinely emerging — so absence is reported as
|
|
581
|
+
* a low-severity opportunity, not a failure.
|
|
582
|
+
*/
|
|
583
|
+
|
|
584
|
+
interface AgentExperienceSignal {
|
|
585
|
+
path: string;
|
|
586
|
+
present: boolean;
|
|
587
|
+
description: string;
|
|
588
|
+
}
|
|
589
|
+
interface AgentExperienceData {
|
|
590
|
+
signals: AgentExperienceSignal[];
|
|
591
|
+
score: number;
|
|
592
|
+
}
|
|
593
|
+
|
|
567
594
|
interface LlmsTxtResult {
|
|
568
595
|
exists: boolean;
|
|
569
596
|
content?: string;
|
|
@@ -576,10 +603,17 @@ interface AIBotBlockingResult {
|
|
|
576
603
|
allowedBots: string[];
|
|
577
604
|
allBlocked: boolean;
|
|
578
605
|
}
|
|
606
|
+
interface CloudflareAICrawlerGateResult {
|
|
607
|
+
behindCloudflare: boolean;
|
|
608
|
+
hasExplicitAIRules: boolean;
|
|
609
|
+
ambiguous: boolean;
|
|
610
|
+
}
|
|
579
611
|
interface AIReadinessData {
|
|
580
612
|
llmsTxt: LlmsTxtResult;
|
|
581
613
|
botBlocking: AIBotBlockingResult;
|
|
582
614
|
jsRenderingRatio: number;
|
|
615
|
+
cloudflareAIGate: CloudflareAICrawlerGateResult;
|
|
616
|
+
agentExperience: AgentExperienceData;
|
|
583
617
|
}
|
|
584
618
|
/**
|
|
585
619
|
* Check for llms.txt file
|
package/dist/index.d.ts
CHANGED
|
@@ -564,6 +564,33 @@ declare function checkInternalRedirects(internalLinks: string[], batchSize?: num
|
|
|
564
564
|
}>;
|
|
565
565
|
}>;
|
|
566
566
|
|
|
567
|
+
/**
|
|
568
|
+
* Agent Experience (AX) readiness
|
|
569
|
+
*
|
|
570
|
+
* Classic GEO asks "can an AI crawler read this page and cite it in an
|
|
571
|
+
* answer?" — that's what ai-readiness.ts covers. AX asks a different
|
|
572
|
+
* question: "can an AI AGENT (not just a chatbot) discover what this site
|
|
573
|
+
* can DO and act on it?" — a distinct, newer discipline (named tooling in
|
|
574
|
+
* this space: AgentGrade and similar agent-readiness scanners, 2026).
|
|
575
|
+
*
|
|
576
|
+
* This checks for the machine-readable discovery surface an agent looks
|
|
577
|
+
* for before it can act: llms-full.txt (the fuller, more-fetched sibling
|
|
578
|
+
* of llms.txt), a SKILL.md capability manifest, a discoverable MCP server,
|
|
579
|
+
* and an OpenAPI spec. None of these are required — most sites won't have
|
|
580
|
+
* any of them yet, this is genuinely emerging — so absence is reported as
|
|
581
|
+
* a low-severity opportunity, not a failure.
|
|
582
|
+
*/
|
|
583
|
+
|
|
584
|
+
interface AgentExperienceSignal {
|
|
585
|
+
path: string;
|
|
586
|
+
present: boolean;
|
|
587
|
+
description: string;
|
|
588
|
+
}
|
|
589
|
+
interface AgentExperienceData {
|
|
590
|
+
signals: AgentExperienceSignal[];
|
|
591
|
+
score: number;
|
|
592
|
+
}
|
|
593
|
+
|
|
567
594
|
interface LlmsTxtResult {
|
|
568
595
|
exists: boolean;
|
|
569
596
|
content?: string;
|
|
@@ -576,10 +603,17 @@ interface AIBotBlockingResult {
|
|
|
576
603
|
allowedBots: string[];
|
|
577
604
|
allBlocked: boolean;
|
|
578
605
|
}
|
|
606
|
+
interface CloudflareAICrawlerGateResult {
|
|
607
|
+
behindCloudflare: boolean;
|
|
608
|
+
hasExplicitAIRules: boolean;
|
|
609
|
+
ambiguous: boolean;
|
|
610
|
+
}
|
|
579
611
|
interface AIReadinessData {
|
|
580
612
|
llmsTxt: LlmsTxtResult;
|
|
581
613
|
botBlocking: AIBotBlockingResult;
|
|
582
614
|
jsRenderingRatio: number;
|
|
615
|
+
cloudflareAIGate: CloudflareAICrawlerGateResult;
|
|
616
|
+
agentExperience: AgentExperienceData;
|
|
583
617
|
}
|
|
584
618
|
/**
|
|
585
619
|
* Check for llms.txt file
|