seo 0.22.0 → 0.22.1

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
@@ -23497,5 +23497,4 @@ export declare function parseOlderThan(input?: string): number | undefined;
23497
23497
  export declare function formatRelativeExpiry(expiresAt: number): string;
23498
23498
  export declare function isoDate(daysAgo?: number): string;
23499
23499
  export declare const SEO_VERSION: string;
23500
- export { type AiReferralDataSource, type AiReferralMetrics, type AiReferralQueryEvidence, type AiReferralReport, type AiReferralSourceDefinition, type AnalyzeCannibalImportRowsInput, type AnalyzeCannibalRowsInput, type AnalyzeDecayInput, type AnalyzeQuickWinsInput, type AnalyzeSecondPageInput, type AnalyzeStrikingDistanceInput, type CannibalAnalysis, type CannibalImportAnalysis, type CannibalImportItem, type CannibalImportPage, type CannibalImportReport, type CannibalImportSelection, type CannibalItem, type CannibalPage, type CannibalReport, type CannibalSelection, type CannibalSuppression, type CannibalSuppressionReason, type CrawlAiAvailability, type CrawlAiBotAccess, type CrawlAiLinkCheck, type CrawlAiResourceSignal, type CrawlAiSignals, type CrawlFetchErrorKind, type CrawlSiteChecks, type CrawlSiteDependencies, type CrawlStatusPhase, type CtrUnderperformer, type CtrUnderperformerSelection, type DataForSeoAccountSnapshot, type DataForSeoClientOptions, type DecayAnalysis, type DecayComparison, type DecayDiagnosis, type DecayGroup, type DecayItem, type DecayMetrics, type DecayReport, type DecaySelection, type DecaySignal, type FetchPageOptions, type FetchRateControls, type Ga4AccountSummary, type Ga4PropertySummary, type GoogleAccessTokenClient, type InternalLinkSuggestion, type InternalLinksPage, type InternalLinksReport, type JavaScriptRenderingInput, type JavaScriptRenderingMode, type OAuthClientConfig, type PageOpportunityAnalysis, type PageOpportunityAnalysisInput, type PageOpportunityBenchmark, type PageOpportunityItem, type PageOpportunitySelection, type PageOpportunityType, type PageOpportunityVerification, type PageRenderer, type QueryClusterPage, type QueryClusterRow, type QuickWinAnalysis, type QuickWinGroup, type QuickWinItem, type QuickWinSelection, type QuickWinTemplateRecommendation, SEO_PROVIDER_API_VERSION, type SearchStatusIncident, type SearchUpdate, type SecondPageAnalysis, type SecondPageItem, type SecondPageQuery, type SecondPageRecommendation, type SecondPageReport, type SecondPageSelection, type SegmentDimension, type SegmentImpactItem, type SegmentImpactReport, type SegmentImpactSelection, type SegmentPeriodEvidence, type SegmentRange, SeoAnalyticsConnection, SeoAnalyticsLandingPageResult, SeoLandingPageVisitRow, SeoLandingPageVisitsCapability, SeoLandingPageVisitsResult, SeoProviderActionAdapter, SeoProviderActivate, SeoProviderApiVersion, SeoProviderCapabilityAdapter, SeoProviderCapabilityId, SeoProviderConnection, SeoProviderConnectionAdapter, SeoProviderConnectionField, SeoProviderHost, SeoProviderJson, SeoProviderJsonSchema, SeoProviderKind, SeoProviderRegistration, SeoProviderRequest, SeoProviderRuntime, SeoSearchMarket, SeoSerpLocalPackResult, SeoSerpOrganicResult, SeoSerpSnapshotCapability, SeoSerpSnapshotResult, type StrikingDistanceAnalysis, type StrikingDistanceAnalysisGroup, type StrikingDistanceAnalysisItem, type TelemetryErrorCategory, type TelemetryFailureClassification, type TelemetryFailureContext, type TelemetryFailureReason, type TelemetryOperation, type UnmatchedSegment, pageTechnicalSignals as technicalPageSignals };
23501
- //# sourceMappingURL=index.d.ts.map
23500
+ export { type AiReferralDataSource, type AiReferralMetrics, type AiReferralQueryEvidence, type AiReferralReport, type AiReferralSourceDefinition, type AnalyzeCannibalImportRowsInput, type AnalyzeCannibalRowsInput, type AnalyzeDecayInput, type AnalyzeQuickWinsInput, type AnalyzeSecondPageInput, type AnalyzeStrikingDistanceInput, type CannibalAnalysis, type CannibalImportAnalysis, type CannibalImportItem, type CannibalImportPage, type CannibalImportReport, type CannibalImportSelection, type CannibalItem, type CannibalPage, type CannibalReport, type CannibalSelection, type CannibalSuppression, type CannibalSuppressionReason, type CrawlAiAvailability, type CrawlAiBotAccess, type CrawlAiLinkCheck, type CrawlAiResourceSignal, type CrawlAiSignals, type CrawlFetchErrorKind, type CrawlSiteChecks, type CrawlSiteDependencies, type CrawlStatusPhase, type CtrUnderperformer, type CtrUnderperformerSelection, type DataForSeoAccountSnapshot, type DataForSeoClientOptions, type DecayAnalysis, type DecayComparison, type DecayDiagnosis, type DecayGroup, type DecayItem, type DecayMetrics, type DecayReport, type DecaySelection, type DecaySignal, type FetchPageOptions, type FetchRateControls, type Ga4AccountSummary, type Ga4PropertySummary, type GoogleAccessTokenClient, type InternalLinkSuggestion, type InternalLinksPage, type InternalLinksReport, type JavaScriptRenderingInput, type JavaScriptRenderingMode, type OAuthClientConfig, type PageOpportunityAnalysis, type PageOpportunityAnalysisInput, type PageOpportunityBenchmark, type PageOpportunityItem, type PageOpportunitySelection, type PageOpportunityType, type PageOpportunityVerification, type PageRenderer, type QueryClusterPage, type QueryClusterRow, type QuickWinAnalysis, type QuickWinGroup, type QuickWinItem, type QuickWinSelection, type QuickWinTemplateRecommendation, SEO_PROVIDER_API_VERSION, type SearchStatusIncident, type SearchUpdate, type SecondPageAnalysis, type SecondPageItem, type SecondPageQuery, type SecondPageRecommendation, type SecondPageReport, type SecondPageSelection, type SegmentDimension, type SegmentImpactItem, type SegmentImpactReport, type SegmentImpactSelection, type SegmentPeriodEvidence, type SegmentRange, SeoAnalyticsConnection, SeoAnalyticsLandingPageResult, SeoLandingPageVisitRow, SeoLandingPageVisitsCapability, SeoLandingPageVisitsResult, SeoProviderActionAdapter, SeoProviderActivate, SeoProviderApiVersion, SeoProviderCapabilityAdapter, SeoProviderCapabilityId, SeoProviderConnection, SeoProviderConnectionAdapter, SeoProviderConnectionField, SeoProviderHost, SeoProviderJson, SeoProviderJsonSchema, SeoProviderKind, SeoProviderRegistration, SeoProviderRequest, SeoProviderRuntime, SeoSearchMarket, SeoSerpLocalPackResult, SeoSerpOrganicResult, SeoSerpSnapshotCapability, SeoSerpSnapshotResult, type StrikingDistanceAnalysis, type StrikingDistanceAnalysisGroup, type StrikingDistanceAnalysisItem, type TelemetryErrorCategory, type TelemetryFailureClassification, type TelemetryFailureContext, type TelemetryFailureReason, type TelemetryOperation, type UnmatchedSegment, pageTechnicalSignals as technicalPageSignals };
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-DHsoau-X.js";
2
+ import { n as version, t as load } from "./esm-Bw2SALBq.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";
@@ -37119,17 +37119,16 @@ function onConversionPage(subject, paths) {
37119
37119
  }
37120
37120
  function contextGuide(site, call) {
37121
37121
  return [
37122
- `Write the business context for ${site}: what the business sells, who buys it, and which pages turn a visit into a customer. Every later step uses it to put the pages that bring customers first and to judge whether a search fits the product.`,
37122
+ `Write the business context for ${site}, which says what the business sells, who buys it, and which pages turn a visit into a customer. Every later step uses it to put the pages that bring customers first and to judge whether a search fits the product.`,
37123
37123
  `Research it in this order, and stop once each heading below has an answer:`,
37124
37124
  [
37125
37125
  `1. Read the home page, the pricing page and the main product or feature pages (${call("page", { url: "<url>" })} reads one live).`,
37126
- `2. Read the pages and queries that already bring clicks: ${call("report", { site })}.`,
37127
- `3. Find the competitors: ${call("research", {
37126
+ `2. Read the pages and queries that already bring clicks with ${call("report", { site })}.`,
37127
+ `3. Find the competitors with ${call("research", {
37128
37128
  action: "competitors",
37129
37129
  target: new URL(originOf(site)).hostname
37130
37130
  })}, plus the companies the site's own comparison or alternatives pages name. Without a research key, use any SEO tool or signed-in browser the person has.`,
37131
- `4. Read what customers say, where the business has reviews (G2, Capterra, Trustpilot, app stores, Reddit), and note the words buyers use for their problem.`,
37132
- `5. Ask the person, in one message, only what the site cannot tell you: what counts as a conversion, which customers they want more of, and who they lose deals to.`
37131
+ `4. Read what customers say, where the business has reviews (G2, Capterra, Trustpilot, app stores, Reddit), and note the words buyers use for their problem.`
37133
37132
  ].join("\n"),
37134
37133
  `Write it in Markdown under these headings, short and factual, at most ${CONTEXT_MAX.toLocaleString("en-US")} characters:`,
37135
37134
  [
@@ -37138,14 +37137,14 @@ function contextGuide(site, call) {
37138
37137
  "## What counts as a conversion",
37139
37138
  "Name the Google Analytics key events that count, such as sign_up, where the site has them.",
37140
37139
  "## Conversion pages",
37141
- "The pages where a visitor signs up, starts a trial, books a demo or buys. One path or URL per line, such as /pricing or /demo. A path ending in / covers every page under it.",
37140
+ "The pages whose main job is to get a visitor to sign up, start a trial, book a demo or buy, and the pricing page. A docs page counts when it is the sign-up or install step itself. Jobs on these pages come first, so name single pages rather than whole sections. One path or URL per line, such as /pricing or /demo. A path ending in / covers every page under it, such as /features/, but / on its own is the home page. Use a section path only when every page there does that job.",
37142
37141
  "## Competitors",
37143
37142
  "One domain per line.",
37144
37143
  "## Markets",
37145
37144
  "## Voice",
37146
37145
  "## Notes"
37147
37146
  ].join("\n"),
37148
- `Show it to the person and change what they correct. Then save it with ${call("next", {
37147
+ `Send the person the draft in one message, with up to three questions on what your research left unsure, such as what counts as a conversion, which customers they want more of, or who they lose deals to. Wait for their reply before you save, even when the site or its code seems to answer everything, because only the person can confirm which customers they want. Change what they correct, then save it with ${call("next", {
37149
37148
  site,
37150
37149
  context: "<the Markdown>"
37151
37150
  })}, which replaces any earlier version and returns the next step.`
@@ -39582,16 +39581,16 @@ async function runNext(input, deps) {
39582
39581
  return {
39583
39582
  text: [
39584
39583
  savedNote,
39585
- `Next for ${site}: ${STEP_TITLES[step]}.`,
39584
+ `The next step for ${site} is to ${STEP_TITLES[step]}.`,
39586
39585
  `The loop:\n${loop.join("\n")}`,
39587
39586
  `## ${heading(step)}\n${stepGuide(step, site, call)}`,
39588
39587
  shown.length ? `Jobs ${shown.length} of ${step === "unblock" ? unblock.length : improve.length}, pages with key events first, then conversion pages:\n${jobsTable(shown)}` : null,
39589
- shown.length ? `When a job is done and live: ${call("report", {
39588
+ shown.length ? `When a job is done and live, run ${call("report", {
39590
39589
  site,
39591
39590
  mark: "fixed",
39592
39591
  issues: "<id>,<id>"
39593
- })}. Mark a job that does not fit the business "ignored" with a note. Then ${call("next", { site })}.` : null,
39594
- gone.length ? `${gone.length} open ${gone.length === 1 ? "issue was" : "issues were"} not found by the last check (${gone.slice(0, 10).map((issue) => issue.id).join(", ")}${gone.length > 10 ? " and more" : ""}): if the person fixed them, mark them fixed so their results are measured.` : null,
39592
+ })}. Mark a job "ignored" with a note on your own only when it is not a real opportunity, such as a junk search, a URL that redirects or a page kept out of Google on purpose. When the search fits the product, ask the person first. Then ${call("next", { site })}.` : null,
39593
+ gone.length ? `${gone.length} open ${gone.length === 1 ? "issue was" : "issues were"} not found by the last check (${gone.slice(0, 10).map((issue) => issue.id).join(", ")}${gone.length > 10 ? " and more" : ""}). If the person fixed them, mark them fixed so their results are measured.` : null,
39595
39594
  pages.length ? null : "The business context lists no conversion pages, so jobs without key events are in the list order. Add them under \"## Conversion pages\" and save the context again.",
39596
39595
  `## Business context (saved ${context.updated_at.slice(0, 10)})\n${context.text}`,
39597
39596
  list.stored ? null : `${issuesSaveText(site, list.issues, call)}\nPass the same file as saved to ${call("next", { site })} too.`
@@ -39636,10 +39635,10 @@ const STEP_TITLES = {
39636
39635
  };
39637
39636
  const heading = (step) => STEP_TITLES[step].charAt(0).toUpperCase() + STEP_TITLES[step].slice(1);
39638
39637
  function contextStep(site, context, call) {
39639
- const why = context ? `The business context was saved ${context.updated_at.slice(0, 10)}, more than 90 days ago, so check it again: read it below, look for what changed on the site, its prices and its competitors, and save it again with the changes.` : `There is no business context for ${site} yet.`;
39638
+ const why = context ? `The business context was saved ${context.updated_at.slice(0, 10)}, more than 90 days ago, so check it again. Read it below, look for what changed on the site, its prices and its competitors, and save it again with the changes.` : `There is no business context for ${site} yet.`;
39640
39639
  return {
39641
39640
  text: [
39642
- `Next for ${site}: ${STEP_TITLES.context}.`,
39641
+ `The next step for ${site} is to ${STEP_TITLES.context}.`,
39643
39642
  why,
39644
39643
  `## ${heading("context")}\n${contextGuide(site, call)}`,
39645
39644
  context ? `## Business context (saved ${context.updated_at.slice(0, 10)})\n${context.text}` : null
@@ -39656,12 +39655,12 @@ function contextStep(site, context, call) {
39656
39655
  }
39657
39656
  function stepGuide(step, site, call) {
39658
39657
  switch (step) {
39659
- case "unblock": return `These stop Google from crawling, reading or indexing pages. For each job, find the cause in the site's code or CMS, make the smallest change that fixes it, and open a pull request for the person to review (or push where they have said that is fine). Ask the person before you delete, redirect or noindex a page. Once the change is live, check the page with ${call("page", { url: "<url>" })}.`;
39660
- case "improve": return `These pages already rank for a search but get fewer clicks than they could. For each job, first judge from the business context whether the search fits what the business sells and how close the searcher is to buying; mark a search that does not fit "ignored" with a note. For the rest, rewrite the title and description for that searcher and make the page answer what they came for, with what only this business knows. Open a pull request for each page, and check the new copy with ${call("lint", {})}.`;
39658
+ case "unblock": return `These stop Google from crawling, reading or indexing pages. For each job, find the cause in the site's code or CMS, make the smallest change that fixes it, and open a pull request for the person to review (or push where they have said that is fine). Ask the person before you delete, redirect or noindex a page. Once the change is live, check the page with ${call("page", { url: "<url>" })}. When the live page is already fine and only Google's last reading is out of date, mark the job fixed with a note that says so; the next check shows whether Google agrees.`;
39659
+ case "improve": return `These pages already rank for a search but get fewer clicks than they could. For each job, first judge from the business context whether the search fits what the business sells and how close the searcher is to buying. List the real searches that do not fit for the person, with why, and mark them "ignored" once they agree. For the rest, rewrite the title and description for that searcher and make the page answer what they came for, with what only this business knows. Open a pull request for each page, and check the new copy with ${call("lint", {})}.`;
39661
39660
  case "new-pages": return `Nothing open is blocking or holding back the pages that rank, so look for buying searches the site has no page for. Run ${call("research", {
39662
39661
  action: "ranked_keywords",
39663
39662
  target: "<competitor>"
39664
- })} for the competitors in the business context, and keep searches that fit the product and show someone comparing options or ready to buy: comparisons, alternatives, use cases, industries and integrations. Check each with ${call("research", {
39663
+ })} for the competitors in the business context, and keep searches that fit the product and show someone comparing options or ready to buy, such as comparisons, alternatives, use cases, industries and integrations. Check each with ${call("research", {
39665
39664
  action: "serp",
39666
39665
  keywords: "<keyword>"
39667
39666
  })} and ${call("report", {