seo 0.17.5 → 0.17.6

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.ts CHANGED
@@ -3749,10 +3749,10 @@ export declare const crawlPageSnapshotSchema: z.ZodObject<{
3749
3749
  raw: z.ZodString;
3750
3750
  resolved: z.ZodOptional<z.ZodString>;
3751
3751
  ignoredReason: z.ZodOptional<z.ZodEnum<{
3752
+ "invalid-url": "invalid-url";
3752
3753
  "outside-head": "outside-head";
3753
3754
  "alternate-qualifier": "alternate-qualifier";
3754
3755
  fragment: "fragment";
3755
- "invalid-url": "invalid-url";
3756
3756
  "non-http-url": "non-http-url";
3757
3757
  }>>;
3758
3758
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -4390,17 +4390,17 @@ export declare const crawlReportSummarySchema: z.ZodObject<{
4390
4390
  skippedUrls: z.ZodNumber;
4391
4391
  skipReasons: z.ZodArray<z.ZodObject<{
4392
4392
  reason: z.ZodEnum<{
4393
- "invalid-url": "invalid-url";
4394
- "robots-disallowed": "robots-disallowed";
4395
- "origin-backpressure": "origin-backpressure";
4396
4393
  "asset-url": "asset-url";
4397
4394
  "cdn-utility-url": "cdn-utility-url";
4398
4395
  "configured-exclusion": "configured-exclusion";
4399
4396
  "duplicate-normalization": "duplicate-normalization";
4397
+ "invalid-url": "invalid-url";
4400
4398
  "memory-pressure": "memory-pressure";
4401
4399
  "off-origin": "off-origin";
4400
+ "origin-backpressure": "origin-backpressure";
4402
4401
  "queue-safety-limit": "queue-safety-limit";
4403
4402
  "query-variant-limit": "query-variant-limit";
4403
+ "robots-disallowed": "robots-disallowed";
4404
4404
  "robots-uncertain": "robots-uncertain";
4405
4405
  "legacy-unclassified": "legacy-unclassified";
4406
4406
  }>;
@@ -4558,17 +4558,17 @@ export declare const crawlReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4558
4558
  skippedUrls: z.ZodNumber;
4559
4559
  skipReasons: z.ZodArray<z.ZodObject<{
4560
4560
  reason: z.ZodEnum<{
4561
- "invalid-url": "invalid-url";
4562
- "robots-disallowed": "robots-disallowed";
4563
- "origin-backpressure": "origin-backpressure";
4564
4561
  "asset-url": "asset-url";
4565
4562
  "cdn-utility-url": "cdn-utility-url";
4566
4563
  "configured-exclusion": "configured-exclusion";
4567
4564
  "duplicate-normalization": "duplicate-normalization";
4565
+ "invalid-url": "invalid-url";
4568
4566
  "memory-pressure": "memory-pressure";
4569
4567
  "off-origin": "off-origin";
4568
+ "origin-backpressure": "origin-backpressure";
4570
4569
  "queue-safety-limit": "queue-safety-limit";
4571
4570
  "query-variant-limit": "query-variant-limit";
4571
+ "robots-disallowed": "robots-disallowed";
4572
4572
  "robots-uncertain": "robots-uncertain";
4573
4573
  "legacy-unclassified": "legacy-unclassified";
4574
4574
  }>;
@@ -4960,10 +4960,10 @@ export declare const crawlReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
4960
4960
  raw: z.ZodString;
4961
4961
  resolved: z.ZodOptional<z.ZodString>;
4962
4962
  ignoredReason: z.ZodOptional<z.ZodEnum<{
4963
+ "invalid-url": "invalid-url";
4963
4964
  "outside-head": "outside-head";
4964
4965
  "alternate-qualifier": "alternate-qualifier";
4965
4966
  fragment: "fragment";
4966
- "invalid-url": "invalid-url";
4967
4967
  "non-http-url": "non-http-url";
4968
4968
  }>>;
4969
4969
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -5922,17 +5922,17 @@ export declare const crawlReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
5922
5922
  skippedUrls: z.ZodNumber;
5923
5923
  skipReasons: z.ZodArray<z.ZodObject<{
5924
5924
  reason: z.ZodEnum<{
5925
- "invalid-url": "invalid-url";
5926
- "robots-disallowed": "robots-disallowed";
5927
- "origin-backpressure": "origin-backpressure";
5928
5925
  "asset-url": "asset-url";
5929
5926
  "cdn-utility-url": "cdn-utility-url";
5930
5927
  "configured-exclusion": "configured-exclusion";
5931
5928
  "duplicate-normalization": "duplicate-normalization";
5929
+ "invalid-url": "invalid-url";
5932
5930
  "memory-pressure": "memory-pressure";
5933
5931
  "off-origin": "off-origin";
5932
+ "origin-backpressure": "origin-backpressure";
5934
5933
  "queue-safety-limit": "queue-safety-limit";
5935
5934
  "query-variant-limit": "query-variant-limit";
5935
+ "robots-disallowed": "robots-disallowed";
5936
5936
  "robots-uncertain": "robots-uncertain";
5937
5937
  "legacy-unclassified": "legacy-unclassified";
5938
5938
  }>;
@@ -6324,10 +6324,10 @@ export declare const crawlReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
6324
6324
  raw: z.ZodString;
6325
6325
  resolved: z.ZodOptional<z.ZodString>;
6326
6326
  ignoredReason: z.ZodOptional<z.ZodEnum<{
6327
+ "invalid-url": "invalid-url";
6327
6328
  "outside-head": "outside-head";
6328
6329
  "alternate-qualifier": "alternate-qualifier";
6329
6330
  fragment: "fragment";
6330
- "invalid-url": "invalid-url";
6331
6331
  "non-http-url": "non-http-url";
6332
6332
  }>>;
6333
6333
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -7286,17 +7286,17 @@ export declare const crawlReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7286
7286
  skippedUrls: z.ZodNumber;
7287
7287
  skipReasons: z.ZodArray<z.ZodObject<{
7288
7288
  reason: z.ZodEnum<{
7289
- "invalid-url": "invalid-url";
7290
- "robots-disallowed": "robots-disallowed";
7291
- "origin-backpressure": "origin-backpressure";
7292
7289
  "asset-url": "asset-url";
7293
7290
  "cdn-utility-url": "cdn-utility-url";
7294
7291
  "configured-exclusion": "configured-exclusion";
7295
7292
  "duplicate-normalization": "duplicate-normalization";
7293
+ "invalid-url": "invalid-url";
7296
7294
  "memory-pressure": "memory-pressure";
7297
7295
  "off-origin": "off-origin";
7296
+ "origin-backpressure": "origin-backpressure";
7298
7297
  "queue-safety-limit": "queue-safety-limit";
7299
7298
  "query-variant-limit": "query-variant-limit";
7299
+ "robots-disallowed": "robots-disallowed";
7300
7300
  "robots-uncertain": "robots-uncertain";
7301
7301
  "legacy-unclassified": "legacy-unclassified";
7302
7302
  }>;
@@ -7688,10 +7688,10 @@ export declare const crawlReportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7688
7688
  raw: z.ZodString;
7689
7689
  resolved: z.ZodOptional<z.ZodString>;
7690
7690
  ignoredReason: z.ZodOptional<z.ZodEnum<{
7691
+ "invalid-url": "invalid-url";
7691
7692
  "outside-head": "outside-head";
7692
7693
  "alternate-qualifier": "alternate-qualifier";
7693
7694
  fragment: "fragment";
7694
- "invalid-url": "invalid-url";
7695
7695
  "non-http-url": "non-http-url";
7696
7696
  }>>;
7697
7697
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -8652,17 +8652,17 @@ export declare const crawlerSchemas: {
8652
8652
  skippedUrls: z.ZodNumber;
8653
8653
  skipReasons: z.ZodArray<z.ZodObject<{
8654
8654
  reason: z.ZodEnum<{
8655
- "invalid-url": "invalid-url";
8656
- "robots-disallowed": "robots-disallowed";
8657
- "origin-backpressure": "origin-backpressure";
8658
8655
  "asset-url": "asset-url";
8659
8656
  "cdn-utility-url": "cdn-utility-url";
8660
8657
  "configured-exclusion": "configured-exclusion";
8661
8658
  "duplicate-normalization": "duplicate-normalization";
8659
+ "invalid-url": "invalid-url";
8662
8660
  "memory-pressure": "memory-pressure";
8663
8661
  "off-origin": "off-origin";
8662
+ "origin-backpressure": "origin-backpressure";
8664
8663
  "queue-safety-limit": "queue-safety-limit";
8665
8664
  "query-variant-limit": "query-variant-limit";
8665
+ "robots-disallowed": "robots-disallowed";
8666
8666
  "robots-uncertain": "robots-uncertain";
8667
8667
  "legacy-unclassified": "legacy-unclassified";
8668
8668
  }>;
@@ -9054,10 +9054,10 @@ export declare const crawlerSchemas: {
9054
9054
  raw: z.ZodString;
9055
9055
  resolved: z.ZodOptional<z.ZodString>;
9056
9056
  ignoredReason: z.ZodOptional<z.ZodEnum<{
9057
+ "invalid-url": "invalid-url";
9057
9058
  "outside-head": "outside-head";
9058
9059
  "alternate-qualifier": "alternate-qualifier";
9059
9060
  fragment: "fragment";
9060
- "invalid-url": "invalid-url";
9061
9061
  "non-http-url": "non-http-url";
9062
9062
  }>>;
9063
9063
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -10016,17 +10016,17 @@ export declare const crawlerSchemas: {
10016
10016
  skippedUrls: z.ZodNumber;
10017
10017
  skipReasons: z.ZodArray<z.ZodObject<{
10018
10018
  reason: z.ZodEnum<{
10019
- "invalid-url": "invalid-url";
10020
- "robots-disallowed": "robots-disallowed";
10021
- "origin-backpressure": "origin-backpressure";
10022
10019
  "asset-url": "asset-url";
10023
10020
  "cdn-utility-url": "cdn-utility-url";
10024
10021
  "configured-exclusion": "configured-exclusion";
10025
10022
  "duplicate-normalization": "duplicate-normalization";
10023
+ "invalid-url": "invalid-url";
10026
10024
  "memory-pressure": "memory-pressure";
10027
10025
  "off-origin": "off-origin";
10026
+ "origin-backpressure": "origin-backpressure";
10028
10027
  "queue-safety-limit": "queue-safety-limit";
10029
10028
  "query-variant-limit": "query-variant-limit";
10029
+ "robots-disallowed": "robots-disallowed";
10030
10030
  "robots-uncertain": "robots-uncertain";
10031
10031
  "legacy-unclassified": "legacy-unclassified";
10032
10032
  }>;
@@ -10418,10 +10418,10 @@ export declare const crawlerSchemas: {
10418
10418
  raw: z.ZodString;
10419
10419
  resolved: z.ZodOptional<z.ZodString>;
10420
10420
  ignoredReason: z.ZodOptional<z.ZodEnum<{
10421
+ "invalid-url": "invalid-url";
10421
10422
  "outside-head": "outside-head";
10422
10423
  "alternate-qualifier": "alternate-qualifier";
10423
10424
  fragment: "fragment";
10424
- "invalid-url": "invalid-url";
10425
10425
  "non-http-url": "non-http-url";
10426
10426
  }>>;
10427
10427
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -11380,17 +11380,17 @@ export declare const crawlerSchemas: {
11380
11380
  skippedUrls: z.ZodNumber;
11381
11381
  skipReasons: z.ZodArray<z.ZodObject<{
11382
11382
  reason: z.ZodEnum<{
11383
- "invalid-url": "invalid-url";
11384
- "robots-disallowed": "robots-disallowed";
11385
- "origin-backpressure": "origin-backpressure";
11386
11383
  "asset-url": "asset-url";
11387
11384
  "cdn-utility-url": "cdn-utility-url";
11388
11385
  "configured-exclusion": "configured-exclusion";
11389
11386
  "duplicate-normalization": "duplicate-normalization";
11387
+ "invalid-url": "invalid-url";
11390
11388
  "memory-pressure": "memory-pressure";
11391
11389
  "off-origin": "off-origin";
11390
+ "origin-backpressure": "origin-backpressure";
11392
11391
  "queue-safety-limit": "queue-safety-limit";
11393
11392
  "query-variant-limit": "query-variant-limit";
11393
+ "robots-disallowed": "robots-disallowed";
11394
11394
  "robots-uncertain": "robots-uncertain";
11395
11395
  "legacy-unclassified": "legacy-unclassified";
11396
11396
  }>;
@@ -11782,10 +11782,10 @@ export declare const crawlerSchemas: {
11782
11782
  raw: z.ZodString;
11783
11783
  resolved: z.ZodOptional<z.ZodString>;
11784
11784
  ignoredReason: z.ZodOptional<z.ZodEnum<{
11785
+ "invalid-url": "invalid-url";
11785
11786
  "outside-head": "outside-head";
11786
11787
  "alternate-qualifier": "alternate-qualifier";
11787
11788
  fragment: "fragment";
11788
- "invalid-url": "invalid-url";
11789
11789
  "non-http-url": "non-http-url";
11790
11790
  }>>;
11791
11791
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -13272,10 +13272,10 @@ export declare const crawlerSchemas: {
13272
13272
  raw: z.ZodString;
13273
13273
  resolved: z.ZodOptional<z.ZodString>;
13274
13274
  ignoredReason: z.ZodOptional<z.ZodEnum<{
13275
+ "invalid-url": "invalid-url";
13275
13276
  "outside-head": "outside-head";
13276
13277
  "alternate-qualifier": "alternate-qualifier";
13277
13278
  fragment: "fragment";
13278
- "invalid-url": "invalid-url";
13279
13279
  "non-http-url": "non-http-url";
13280
13280
  }>>;
13281
13281
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -13696,17 +13696,17 @@ export declare const crawlerJsonSchemas: {
13696
13696
  skippedUrls: z.ZodNumber;
13697
13697
  skipReasons: z.ZodArray<z.ZodObject<{
13698
13698
  reason: z.ZodEnum<{
13699
- "invalid-url": "invalid-url";
13700
- "robots-disallowed": "robots-disallowed";
13701
- "origin-backpressure": "origin-backpressure";
13702
13699
  "asset-url": "asset-url";
13703
13700
  "cdn-utility-url": "cdn-utility-url";
13704
13701
  "configured-exclusion": "configured-exclusion";
13705
13702
  "duplicate-normalization": "duplicate-normalization";
13703
+ "invalid-url": "invalid-url";
13706
13704
  "memory-pressure": "memory-pressure";
13707
13705
  "off-origin": "off-origin";
13706
+ "origin-backpressure": "origin-backpressure";
13708
13707
  "queue-safety-limit": "queue-safety-limit";
13709
13708
  "query-variant-limit": "query-variant-limit";
13709
+ "robots-disallowed": "robots-disallowed";
13710
13710
  "robots-uncertain": "robots-uncertain";
13711
13711
  "legacy-unclassified": "legacy-unclassified";
13712
13712
  }>;
@@ -14098,10 +14098,10 @@ export declare const crawlerJsonSchemas: {
14098
14098
  raw: z.ZodString;
14099
14099
  resolved: z.ZodOptional<z.ZodString>;
14100
14100
  ignoredReason: z.ZodOptional<z.ZodEnum<{
14101
+ "invalid-url": "invalid-url";
14101
14102
  "outside-head": "outside-head";
14102
14103
  "alternate-qualifier": "alternate-qualifier";
14103
14104
  fragment: "fragment";
14104
- "invalid-url": "invalid-url";
14105
14105
  "non-http-url": "non-http-url";
14106
14106
  }>>;
14107
14107
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -15060,17 +15060,17 @@ export declare const crawlerJsonSchemas: {
15060
15060
  skippedUrls: z.ZodNumber;
15061
15061
  skipReasons: z.ZodArray<z.ZodObject<{
15062
15062
  reason: z.ZodEnum<{
15063
- "invalid-url": "invalid-url";
15064
- "robots-disallowed": "robots-disallowed";
15065
- "origin-backpressure": "origin-backpressure";
15066
15063
  "asset-url": "asset-url";
15067
15064
  "cdn-utility-url": "cdn-utility-url";
15068
15065
  "configured-exclusion": "configured-exclusion";
15069
15066
  "duplicate-normalization": "duplicate-normalization";
15067
+ "invalid-url": "invalid-url";
15070
15068
  "memory-pressure": "memory-pressure";
15071
15069
  "off-origin": "off-origin";
15070
+ "origin-backpressure": "origin-backpressure";
15072
15071
  "queue-safety-limit": "queue-safety-limit";
15073
15072
  "query-variant-limit": "query-variant-limit";
15073
+ "robots-disallowed": "robots-disallowed";
15074
15074
  "robots-uncertain": "robots-uncertain";
15075
15075
  "legacy-unclassified": "legacy-unclassified";
15076
15076
  }>;
@@ -15462,10 +15462,10 @@ export declare const crawlerJsonSchemas: {
15462
15462
  raw: z.ZodString;
15463
15463
  resolved: z.ZodOptional<z.ZodString>;
15464
15464
  ignoredReason: z.ZodOptional<z.ZodEnum<{
15465
+ "invalid-url": "invalid-url";
15465
15466
  "outside-head": "outside-head";
15466
15467
  "alternate-qualifier": "alternate-qualifier";
15467
15468
  fragment: "fragment";
15468
- "invalid-url": "invalid-url";
15469
15469
  "non-http-url": "non-http-url";
15470
15470
  }>>;
15471
15471
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -16424,17 +16424,17 @@ export declare const crawlerJsonSchemas: {
16424
16424
  skippedUrls: z.ZodNumber;
16425
16425
  skipReasons: z.ZodArray<z.ZodObject<{
16426
16426
  reason: z.ZodEnum<{
16427
- "invalid-url": "invalid-url";
16428
- "robots-disallowed": "robots-disallowed";
16429
- "origin-backpressure": "origin-backpressure";
16430
16427
  "asset-url": "asset-url";
16431
16428
  "cdn-utility-url": "cdn-utility-url";
16432
16429
  "configured-exclusion": "configured-exclusion";
16433
16430
  "duplicate-normalization": "duplicate-normalization";
16431
+ "invalid-url": "invalid-url";
16434
16432
  "memory-pressure": "memory-pressure";
16435
16433
  "off-origin": "off-origin";
16434
+ "origin-backpressure": "origin-backpressure";
16436
16435
  "queue-safety-limit": "queue-safety-limit";
16437
16436
  "query-variant-limit": "query-variant-limit";
16437
+ "robots-disallowed": "robots-disallowed";
16438
16438
  "robots-uncertain": "robots-uncertain";
16439
16439
  "legacy-unclassified": "legacy-unclassified";
16440
16440
  }>;
@@ -16826,10 +16826,10 @@ export declare const crawlerJsonSchemas: {
16826
16826
  raw: z.ZodString;
16827
16827
  resolved: z.ZodOptional<z.ZodString>;
16828
16828
  ignoredReason: z.ZodOptional<z.ZodEnum<{
16829
+ "invalid-url": "invalid-url";
16829
16830
  "outside-head": "outside-head";
16830
16831
  "alternate-qualifier": "alternate-qualifier";
16831
16832
  fragment: "fragment";
16832
- "invalid-url": "invalid-url";
16833
16833
  "non-http-url": "non-http-url";
16834
16834
  }>>;
16835
16835
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -18316,10 +18316,10 @@ export declare const crawlerJsonSchemas: {
18316
18316
  raw: z.ZodString;
18317
18317
  resolved: z.ZodOptional<z.ZodString>;
18318
18318
  ignoredReason: z.ZodOptional<z.ZodEnum<{
18319
+ "invalid-url": "invalid-url";
18319
18320
  "outside-head": "outside-head";
18320
18321
  "alternate-qualifier": "alternate-qualifier";
18321
18322
  fragment: "fragment";
18322
- "invalid-url": "invalid-url";
18323
18323
  "non-http-url": "non-http-url";
18324
18324
  }>>;
18325
18325
  streamedMetadata: z.ZodOptional<z.ZodLiteral<true>>;
@@ -19024,7 +19024,7 @@ declare const QUERY_FLAG_METHOD: {
19024
19024
  readonly heuristic: true;
19025
19025
  readonly ranking: "flagged_rows_after_unflagged_rows";
19026
19026
  readonly flags: {
19027
- readonly 'likely-automated': "Snake_case identifier tokens, 20 or more words, or 8 or more ASCII words with no common function word. Such queries often come from scripts, prompts or tools, not people.";
19027
+ readonly 'likely-automated': "A numbered prefix such as \"12264: \", snake_case identifier tokens, 20 or more words, or 8 or more ASCII words with no common function word. Such queries often come from scripts, prompts or tools, not people.";
19028
19028
  readonly 'navigational-other': "Names a domain that is not the property's host, ends with a spoken domain suffix or a login/site/app word, starts with a large platform name and adds no topic word, or is one short ASCII word that is not a brand term. Such queries usually look for another site.";
19029
19029
  };
19030
19030
  };
@@ -19179,7 +19179,7 @@ export declare function ctrUnderperformersReportWith(input: CtrUnderperformersIn
19179
19179
  readonly heuristic: true;
19180
19180
  readonly ranking: "flagged_rows_after_unflagged_rows";
19181
19181
  readonly flags: {
19182
- readonly 'likely-automated': "Snake_case identifier tokens, 20 or more words, or 8 or more ASCII words with no common function word. Such queries often come from scripts, prompts or tools, not people.";
19182
+ readonly 'likely-automated': "A numbered prefix such as \"12264: \", snake_case identifier tokens, 20 or more words, or 8 or more ASCII words with no common function word. Such queries often come from scripts, prompts or tools, not people.";
19183
19183
  readonly 'navigational-other': "Names a domain that is not the property's host, ends with a spoken domain suffix or a login/site/app word, starts with a large platform name and adds no topic word, or is one short ASCII word that is not a brand term. Such queries usually look for another site.";
19184
19184
  };
19185
19185
  };
@@ -20210,6 +20210,7 @@ type StrikingDistanceSelection = {
20210
20210
  belowMinimumRows: number;
20211
20211
  lowActionabilityRows: number;
20212
20212
  brandRows: number;
20213
+ sitelinkRows: number;
20213
20214
  eligibleRows: number;
20214
20215
  likelyAutomatedRows: number;
20215
20216
  navigationalOtherRows: number;
@@ -20290,7 +20291,7 @@ type StrikingDistanceAnalysis = {
20290
20291
  };
20291
20292
  provenance: {
20292
20293
  inputScope: 'provided_rows';
20293
- selectionOrder: readonly ['fragment_and_duplicate_merge', 'valid_row', 'position', 'minimum_impressions', 'query_quality', 'brand', 'query_flag_ranking'];
20294
+ selectionOrder: readonly ['fragment_and_duplicate_merge', 'valid_row', 'position', 'minimum_impressions', 'query_quality', 'brand', 'sitelinks', 'query_flag_ranking'];
20294
20295
  selection: StrikingDistanceSelection;
20295
20296
  };
20296
20297
  summary: {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __seoCreateRequire } from 'node:module'; const require = __seoCreateRequire(import.meta.url);
2
- import { n as version, t as load } from "./esm-lrKCsK_C.js";
2
+ import { n as version, t as load } from "./esm-D7vj4X6E.js";
3
3
  import { SEO_PROVIDER_API_VERSION } from "./provider-sdk.js";
4
4
  import crypto$1, { createHash, randomUUID, sign } from "node:crypto";
5
5
  import { z } from "zod";
@@ -10649,7 +10649,7 @@ const QUERY_FLAG_METHOD = {
10649
10649
  heuristic: true,
10650
10650
  ranking: "flagged_rows_after_unflagged_rows",
10651
10651
  flags: {
10652
- "likely-automated": "Snake_case identifier tokens, 20 or more words, or 8 or more ASCII words with no common function word. Such queries often come from scripts, prompts or tools, not people.",
10652
+ "likely-automated": "A numbered prefix such as \"12264: \", snake_case identifier tokens, 20 or more words, or 8 or more ASCII words with no common function word. Such queries often come from scripts, prompts or tools, not people.",
10653
10653
  "navigational-other": "Names a domain that is not the property's host, ends with a spoken domain suffix or a login/site/app word, starts with a large platform name and adds no topic word, or is one short ASCII word that is not a brand term. Such queries usually look for another site."
10654
10654
  }
10655
10655
  };
@@ -10713,8 +10713,10 @@ const FUNCTION_WORDS$1 = /* @__PURE__ */ new Set([
10713
10713
  "und"
10714
10714
  ]);
10715
10715
  const IDENTIFIER_TOKEN = /[\p{L}\p{N}]_[\p{L}\p{N}]/u;
10716
+ const NUMBERED_PREFIX = /^\d{4,}:\s+\S/u;
10716
10717
  /** Heuristic: the query looks machine-generated rather than typed by a person. */
10717
10718
  function isLikelyAutomatedQuery(query) {
10719
+ if (NUMBERED_PREFIX.test(query.trim())) return true;
10718
10720
  if (query.trim().split(/\s+/).filter(Boolean).some((token) => IDENTIFIER_TOKEN.test(token))) return true;
10719
10721
  const tokens = tokenize(query);
10720
10722
  if (tokens.length >= 20) return true;
@@ -23362,6 +23364,7 @@ function selectRows(input) {
23362
23364
  belowMinimumRows: 0,
23363
23365
  lowActionabilityRows: 0,
23364
23366
  brandRows: 0,
23367
+ sitelinkRows: 0,
23365
23368
  eligibleRows: 0,
23366
23369
  likelyAutomatedRows: 0,
23367
23370
  navigationalOtherRows: 0,
@@ -23382,16 +23385,23 @@ function selectRows(input) {
23382
23385
  brandTerms: input.brandTerms,
23383
23386
  includeBrand: input.includeBrand
23384
23387
  })) selection.brandRows++;
23385
- else {
23386
- rows.push(row);
23387
- selection.eligibleRows++;
23388
- }
23388
+ else rows.push(row);
23389
23389
  }
23390
+ const kept = withoutSitelinkRows(rows);
23391
+ selection.sitelinkRows = rows.length - kept.length;
23392
+ selection.eligibleRows = kept.length;
23390
23393
  return {
23391
- rows,
23394
+ rows: kept,
23392
23395
  selection
23393
23396
  };
23394
23397
  }
23398
+ const SITELINK_MINIMUM_PAGES = 3;
23399
+ function withoutSitelinkRows(rows) {
23400
+ const counts = /* @__PURE__ */ new Map();
23401
+ const key = (row) => `${row.keys[0]?.trim()}\n${row.impressions}\n${row.position}`;
23402
+ for (const row of rows) counts.set(key(row), (counts.get(key(row)) ?? 0) + 1);
23403
+ return rows.filter((row) => (counts.get(key(row)) ?? 0) < SITELINK_MINIMUM_PAGES);
23404
+ }
23395
23405
  function analyzeStrikingDistanceRows(input) {
23396
23406
  const collapsed = collapseFragmentPageRows(input.rows, { pageKeyIndex: 1 });
23397
23407
  const minImpressionsPolicy = resolveMinImpressionsPolicy({
@@ -23466,6 +23476,7 @@ function analyzeStrikingDistanceRows(input) {
23466
23476
  "minimum_impressions",
23467
23477
  "query_quality",
23468
23478
  "brand",
23479
+ "sitelinks",
23469
23480
  "query_flag_ranking"
23470
23481
  ],
23471
23482
  selection: selected.selection
@@ -23629,6 +23640,7 @@ async function strikingDistanceWith(input, dependencies) {
23629
23640
  `Brand queries: ${analysis.brand.filtering}. Brand terms used: ${analysis.brand.terms.join(", ") || "none"} (${analysis.brand.source === "provided" ? "provided" : "host forms, plus the bare domain stem only when Search Console shows the site is its navigational answer"}).`,
23630
23641
  analysis.selection.fragmentRows ? `${countLabel(analysis.selection.fragmentRows, "source row")} with a #fragment URL merged into the base URL.` : "",
23631
23642
  analysis.selection.flaggedRows ? `${countLabel(analysis.selection.flaggedRows, "eligible row")} carry heuristic query flags (likely-automated or navigational-other) and rank after unflagged rows.` : "",
23643
+ analysis.selection.sitelinkRows ? `${countLabel(analysis.selection.sitelinkRows, "row")} left out as sitelinks: three or more pages for the same query with the same impressions and average position, which is one result shown with its sitelinks. A heuristic.` : "",
23632
23644
  "Position is GSC average position for the property's topmost result per impression; it does not prove a URL ranked on a literal second results page every time.",
23633
23645
  "Search Analytics exposes retained query rows only. Anonymized and lower-value queries can be absent even when pagination is exhausted.",
23634
23646
  "Priority is a demand-and-position heuristic, not an estimated click lift or proof that a change will improve rankings.",