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/cli.js +2 -2
- package/dist/{dist-CCprpRVI.js → dist-C_1LpUko.js} +1 -1
- package/dist/{dist-ywe-VX92.js → dist-D4CxHLzA.js} +10 -10
- package/dist/dist-D4CxHLzA.js.map +1 -0
- package/dist/{esm-DHsoau-X.js → esm-Bw2SALBq.js} +6 -6
- package/dist/{esm-DHsoau-X.js.map → esm-Bw2SALBq.js.map} +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +16 -17
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.ts +1 -2
- package/dist/mcp.js +16 -17
- package/dist/mcp.js.map +1 -1
- package/dist/provider-sdk.d.ts +1 -2
- package/package.json +6 -6
- package/dist/dist-ywe-VX92.js.map +0 -1
package/dist/mcp.d.ts
CHANGED
|
@@ -82,5 +82,4 @@ export declare function createServer(options?: {
|
|
|
82
82
|
export declare function startMcpServer(opts?: {
|
|
83
83
|
test?: boolean;
|
|
84
84
|
}): Promise<void>;
|
|
85
|
-
export type { FullReportGuidance, RelatedReport, ReportCategory, ReportDepth, ReportGuidance, ReportSummary };
|
|
86
|
-
//# sourceMappingURL=mcp.d.ts.map
|
|
85
|
+
export type { FullReportGuidance, RelatedReport, ReportCategory, ReportDepth, ReportGuidance, ReportSummary };
|
package/dist/mcp.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __seoCreateRequire } from 'node:module'; const require = __seoCreateRequire(import.meta.url);
|
|
2
|
-
import { i as __toESM, n as version, r as __commonJSMin, t as load } from "./esm-
|
|
2
|
+
import { i as __toESM, n as version, r as __commonJSMin, t as load } from "./esm-Bw2SALBq.js";
|
|
3
3
|
import { createHash, randomUUID, sign } from "node:crypto";
|
|
4
4
|
import { ZodOptional, z } from "zod";
|
|
5
5
|
import { arch, homedir, hostname, platform, tmpdir, totalmem } from "node:os";
|
|
@@ -46897,17 +46897,16 @@ function onConversionPage(subject, paths) {
|
|
|
46897
46897
|
}
|
|
46898
46898
|
function contextGuide(site, call) {
|
|
46899
46899
|
return [
|
|
46900
|
-
`Write the business context for ${site}
|
|
46900
|
+
`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.`,
|
|
46901
46901
|
`Research it in this order, and stop once each heading below has an answer:`,
|
|
46902
46902
|
[
|
|
46903
46903
|
`1. Read the home page, the pricing page and the main product or feature pages (${call("page", { url: "<url>" })} reads one live).`,
|
|
46904
|
-
`2. Read the pages and queries that already bring clicks
|
|
46905
|
-
`3. Find the competitors
|
|
46904
|
+
`2. Read the pages and queries that already bring clicks with ${call("report", { site })}.`,
|
|
46905
|
+
`3. Find the competitors with ${call("research", {
|
|
46906
46906
|
action: "competitors",
|
|
46907
46907
|
target: new URL(originOf(site)).hostname
|
|
46908
46908
|
})}, 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.`,
|
|
46909
|
-
`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
|
|
46910
|
-
`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.`
|
|
46909
|
+
`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.`
|
|
46911
46910
|
].join("\n"),
|
|
46912
46911
|
`Write it in Markdown under these headings, short and factual, at most ${CONTEXT_MAX.toLocaleString("en-US")} characters:`,
|
|
46913
46912
|
[
|
|
@@ -46916,14 +46915,14 @@ function contextGuide(site, call) {
|
|
|
46916
46915
|
"## What counts as a conversion",
|
|
46917
46916
|
"Name the Google Analytics key events that count, such as sign_up, where the site has them.",
|
|
46918
46917
|
"## Conversion pages",
|
|
46919
|
-
"The pages
|
|
46918
|
+
"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.",
|
|
46920
46919
|
"## Competitors",
|
|
46921
46920
|
"One domain per line.",
|
|
46922
46921
|
"## Markets",
|
|
46923
46922
|
"## Voice",
|
|
46924
46923
|
"## Notes"
|
|
46925
46924
|
].join("\n"),
|
|
46926
|
-
`
|
|
46925
|
+
`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", {
|
|
46927
46926
|
site,
|
|
46928
46927
|
context: "<the Markdown>"
|
|
46929
46928
|
})}, which replaces any earlier version and returns the next step.`
|
|
@@ -49418,16 +49417,16 @@ async function runNext(input, deps) {
|
|
|
49418
49417
|
return {
|
|
49419
49418
|
text: [
|
|
49420
49419
|
savedNote,
|
|
49421
|
-
`
|
|
49420
|
+
`The next step for ${site} is to ${STEP_TITLES[step]}.`,
|
|
49422
49421
|
`The loop:\n${loop.join("\n")}`,
|
|
49423
49422
|
`## ${heading(step)}\n${stepGuide(step, site, call)}`,
|
|
49424
49423
|
shown.length ? `Jobs ${shown.length} of ${step === "unblock" ? unblock.length : improve.length}, pages with key events first, then conversion pages:\n${jobsTable(shown)}` : null,
|
|
49425
|
-
shown.length ? `When a job is done and live
|
|
49424
|
+
shown.length ? `When a job is done and live, run ${call("report", {
|
|
49426
49425
|
site,
|
|
49427
49426
|
mark: "fixed",
|
|
49428
49427
|
issues: "<id>,<id>"
|
|
49429
|
-
})}. Mark a job
|
|
49430
|
-
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" : ""})
|
|
49428
|
+
})}. 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,
|
|
49429
|
+
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,
|
|
49431
49430
|
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.",
|
|
49432
49431
|
`## Business context (saved ${context.updated_at.slice(0, 10)})\n${context.text}`,
|
|
49433
49432
|
list.stored ? null : `${issuesSaveText(site, list.issues, call)}\nPass the same file as saved to ${call("next", { site })} too.`
|
|
@@ -49472,10 +49471,10 @@ const STEP_TITLES = {
|
|
|
49472
49471
|
};
|
|
49473
49472
|
const heading = (step) => STEP_TITLES[step].charAt(0).toUpperCase() + STEP_TITLES[step].slice(1);
|
|
49474
49473
|
function contextStep(site, context, call) {
|
|
49475
|
-
const why = context ? `The business context was saved ${context.updated_at.slice(0, 10)}, more than 90 days ago, so check it again
|
|
49474
|
+
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.`;
|
|
49476
49475
|
return {
|
|
49477
49476
|
text: [
|
|
49478
|
-
`
|
|
49477
|
+
`The next step for ${site} is to ${STEP_TITLES.context}.`,
|
|
49479
49478
|
why,
|
|
49480
49479
|
`## ${heading("context")}\n${contextGuide(site, call)}`,
|
|
49481
49480
|
context ? `## Business context (saved ${context.updated_at.slice(0, 10)})\n${context.text}` : null
|
|
@@ -49492,12 +49491,12 @@ function contextStep(site, context, call) {
|
|
|
49492
49491
|
}
|
|
49493
49492
|
function stepGuide(step, site, call) {
|
|
49494
49493
|
switch (step) {
|
|
49495
|
-
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>" })}.`;
|
|
49496
|
-
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
|
|
49494
|
+
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.`;
|
|
49495
|
+
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", {})}.`;
|
|
49497
49496
|
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", {
|
|
49498
49497
|
action: "ranked_keywords",
|
|
49499
49498
|
target: "<competitor>"
|
|
49500
|
-
})} for the competitors in the business context, and keep searches that fit the product and show someone comparing options or ready to buy
|
|
49499
|
+
})} 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", {
|
|
49501
49500
|
action: "serp",
|
|
49502
49501
|
keywords: "<keyword>"
|
|
49503
49502
|
})} and ${call("report", {
|