@rankcli/agent-runtime 0.0.27 → 0.0.28

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.js CHANGED
@@ -15009,7 +15009,7 @@ async function analyzeLlmsTxt(url) {
15009
15009
  timeout: 1e4,
15010
15010
  validateStatus: () => true
15011
15011
  });
15012
- if (response.status === 200) {
15012
+ if (response.status === 200 && !looksLikeHtmlFallback(response.data, response.headers?.["content-type"])) {
15013
15013
  exists = true;
15014
15014
  content = response.data;
15015
15015
  contentLength = content.length;
@@ -15019,7 +15019,7 @@ async function analyzeLlmsTxt(url) {
15019
15019
  timeout: 1e4,
15020
15020
  validateStatus: () => true
15021
15021
  });
15022
- if (fullResponse.status === 200) {
15022
+ if (fullResponse.status === 200 && !looksLikeHtmlFallback(fullResponse.data, fullResponse.headers?.["content-type"])) {
15023
15023
  fullVersionExists = true;
15024
15024
  }
15025
15025
  } catch {
package/dist/index.mjs CHANGED
@@ -11462,7 +11462,7 @@ async function analyzeLlmsTxt(url) {
11462
11462
  timeout: 1e4,
11463
11463
  validateStatus: () => true
11464
11464
  });
11465
- if (response.status === 200) {
11465
+ if (response.status === 200 && !looksLikeHtmlFallback(response.data, response.headers?.["content-type"])) {
11466
11466
  exists = true;
11467
11467
  content = response.data;
11468
11468
  contentLength = content.length;
@@ -11472,7 +11472,7 @@ async function analyzeLlmsTxt(url) {
11472
11472
  timeout: 1e4,
11473
11473
  validateStatus: () => true
11474
11474
  });
11475
- if (fullResponse.status === 200) {
11475
+ if (fullResponse.status === 200 && !looksLikeHtmlFallback(fullResponse.data, fullResponse.headers?.["content-type"])) {
11476
11476
  fullVersionExists = true;
11477
11477
  }
11478
11478
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rankcli/agent-runtime",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "description": "RankCLI agent runtime - executes SEO audits and fixes with AI",
5
5
  "homepage": "https://rankcli.dev",
6
6
  "main": "dist/index.js",