@canonry/canonry 7.126.0 → 7.127.0
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/assets/agent-workspace/skills/aero/references/getting-started.md +2 -3
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +6 -1
- package/assets/agent-workspace/skills/canonry/references/getting-started.md +2 -3
- package/assets/agent-workspace/skills/canonry/references/indexing.md +4 -1
- package/assets/assets/{AccessControls-ogV5Gz4X.js → AccessControls-2bimiIhw.js} +1 -1
- package/assets/assets/{AgentSetupPage-DEVRQ04Z.js → AgentSetupPage-BGAU8xzj.js} +1 -1
- package/assets/assets/{AuditHistoryPanel-DyXqEWpq.js → AuditHistoryPanel-Br4LNvcM.js} +1 -1
- package/assets/assets/{BacklinksPage-B4powgfU.js → BacklinksPage-BBh43gcY.js} +1 -1
- package/assets/assets/{ChartPrimitives-De8aCfZp.js → ChartPrimitives-ChO_4pZz.js} +1 -1
- package/assets/assets/{HistoryPage-CN2VzZeY.js → HistoryPage-okXPylcp.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-CP9p7C6B.js → MeasurementPropertyPage-C2otbn5d.js} +1 -1
- package/assets/assets/{ProjectPage-Dq1mGFwA.js → ProjectPage-DGrfKxfG.js} +3 -3
- package/assets/assets/{RunsPage-p4FSGSzR.js → RunsPage-4u1VBVOW.js} +1 -1
- package/assets/assets/{ServerTrafficSection-xzcv0S85.js → ServerTrafficSection-Bl0HTTwh.js} +3 -3
- package/assets/assets/{SettingsPage-C6Oh-XQT.js → SettingsPage-C05qxsby.js} +1 -1
- package/assets/assets/{ToneBadge-CxostV9z.js → ToneBadge-BE2H103M.js} +1 -1
- package/assets/assets/{TrafficPage-D5_wyrCY.js → TrafficPage-Bd3ey_0C.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-CGbQlo1a.js → TrafficSourceDetailPage-B6Gi-qBP.js} +1 -1
- package/assets/assets/{account-context-Mya_uodz.js → account-context-y7mzU3Ko.js} +1 -1
- package/assets/assets/{agent-trust-copy-DjdjfF7q.js → agent-trust-copy-CHQ9IAa3.js} +1 -1
- package/assets/assets/{card-B20lVlLX.js → card-BmJz19vt.js} +1 -1
- package/assets/assets/{index-rQgaFhmc.js → index-s7MwkxGB.js} +3 -3
- package/assets/assets/{preload-helper-DN5snQJ-.js → preload-helper-BLaGg0Jn.js} +1 -1
- package/assets/assets/{query-client-2aOrFPOz.js → query-client-DmQlVZMA.js} +1 -1
- package/assets/assets/{react-query-CEsVk5jq.js → react-query-BnTbVX2a.js} +1 -1
- package/assets/assets/{react-sigma_core.esm.min-DHJ5hJS1.js → react-sigma_core.esm.min-DNPGgfTG.js} +1 -1
- package/assets/assets/{server-traffic-Cx7fQ2OF.js → server-traffic-ALYWW6k0.js} +1 -1
- package/assets/assets/{service-DNaYUxv9.js → service-BKTlKu2x.js} +1 -1
- package/assets/index.html +9 -9
- package/dist/activity-2KFFWLYN.js +13 -0
- package/dist/{ads-7JYMSESY.js → ads-PB3VFUPV.js} +4 -4
- package/dist/{agent-3AIKIBOZ.js → agent-VOL7SOEQ.js} +8 -8
- package/dist/{agent-ask-F7OMYKXU.js → agent-ask-F46ERE3W.js} +4 -4
- package/dist/{agent-conversations-W3WMXSDE.js → agent-conversations-T5Q43627.js} +4 -4
- package/dist/{agent-journeys-SNUC3IGG.js → agent-journeys-GVEVJ5J2.js} +4 -4
- package/dist/{agent-memory-PFVKTCZC.js → agent-memory-XXN7QXNM.js} +4 -4
- package/dist/{agent-providers-TV3SV75C.js → agent-providers-U6XIM5JI.js} +4 -4
- package/dist/{agent-transcript-X6RMTVV5.js → agent-transcript-ONEA6JBO.js} +4 -4
- package/dist/{analytics-U6CLZESN.js → analytics-XWVTM57N.js} +4 -4
- package/dist/{answerability-YJSPCE4T.js → answerability-GNYSELX5.js} +4 -4
- package/dist/{apply-VBX4BJCQ.js → apply-WXW4KWUK.js} +4 -4
- package/dist/{backfill-VY4PWO5A.js → backfill-SWDR5M4O.js} +11 -11
- package/dist/{backlinks-U7SI3OOX.js → backlinks-5LIBLUEG.js} +4 -4
- package/dist/{bing-HONIKTUQ.js → bing-4U4ODKGV.js} +4 -4
- package/dist/{bootstrap-K7LRU624.js → bootstrap-FY72AHVW.js} +11 -11
- package/dist/{cdp-VVETHJFO.js → cdp-H5WMBYIF.js} +8 -8
- package/dist/{chunk-V7LDAQAK.js → chunk-2IU7GJCX.js} +4 -4
- package/dist/{chunk-474HYXOY.js → chunk-2PLJ4QG5.js} +4 -4
- package/dist/{chunk-WCRFVAYB.js → chunk-2T4OGJWP.js} +1 -1
- package/dist/{chunk-UQXWOIPI.js → chunk-2VDYFOKB.js} +8 -8
- package/dist/{chunk-2BSAW7H4.js → chunk-3GE4Z4J3.js} +5 -5
- package/dist/{chunk-CWV3JV2S.js → chunk-3ZNDJ4OM.js} +5 -5
- package/dist/{chunk-N7NL4SCF.js → chunk-425BZPKK.js} +5 -5
- package/dist/{chunk-SBAQZ6PY.js → chunk-5WDU7ZML.js} +7 -7
- package/dist/{chunk-RKM6YN3X.js → chunk-A36PZKKS.js} +2 -2
- package/dist/{chunk-I3MJISLF.js → chunk-BAO3PHQP.js} +2 -2
- package/dist/{chunk-VNCDWND5.js → chunk-DY2Q3VIM.js} +2 -2
- package/dist/{chunk-MVTPR7ZY.js → chunk-FIF4N7DP.js} +1 -1
- package/dist/{chunk-QQXE2GUM.js → chunk-FMS7CIEK.js} +2 -2
- package/dist/{chunk-6ZJKEUGC.js → chunk-G2NIO2J3.js} +2 -2
- package/dist/{chunk-2WT4IQD7.js → chunk-GCBFSIKI.js} +1 -1
- package/dist/{chunk-DRNCCGUW.js → chunk-GKQ4CYUM.js} +22 -2
- package/dist/{chunk-4IC3FHM5.js → chunk-GPPTW3HU.js} +4 -4
- package/dist/{chunk-GNQZBQ5X.js → chunk-GRX2DION.js} +4 -4
- package/dist/{chunk-OU7TJX25.js → chunk-GTX7C5Y5.js} +5 -5
- package/dist/{chunk-VRBKUMA3.js → chunk-HQEH4YRO.js} +1 -1
- package/dist/{chunk-LLKNKNEB.js → chunk-HS2HYFPX.js} +79 -4
- package/dist/{chunk-IOXAYJ4Z.js → chunk-IIL4NKRU.js} +4 -4
- package/dist/{chunk-3CYLLBEC.js → chunk-JRWHQVA6.js} +41 -24
- package/dist/{chunk-UQG5TWLM.js → chunk-K3YHPTKL.js} +2 -2
- package/dist/{chunk-DP2SUDRW.js → chunk-LWRPSAVC.js} +1 -1
- package/dist/{chunk-6JQ5ZM5H.js → chunk-M4IAXLBT.js} +3 -3
- package/dist/{chunk-F2TGOWIW.js → chunk-MG4COK23.js} +2 -2
- package/dist/{chunk-V3GIVVXW.js → chunk-NEJEHRPT.js} +2 -2
- package/dist/{chunk-2CRAVATO.js → chunk-OKIAF573.js} +1 -1
- package/dist/{chunk-CFGVH4K5.js → chunk-PUEARV37.js} +372 -372
- package/dist/{chunk-2RF4RB53.js → chunk-PWXLKW2F.js} +3 -3
- package/dist/{chunk-5UJ5CG6J.js → chunk-QWD3ABAW.js} +1 -1
- package/dist/{chunk-SF2KLXZM.js → chunk-QXRI6DRE.js} +6 -6
- package/dist/{chunk-DU26WF7A.js → chunk-RDCEFEXP.js} +3 -3
- package/dist/{chunk-N3QGWIWL.js → chunk-RMLGMB5B.js} +1 -1
- package/dist/{chunk-CF6R6DUA.js → chunk-RPAWPX7B.js} +1 -1
- package/dist/{chunk-FVPJ5CRH.js → chunk-X6DD3OIR.js} +3 -2
- package/dist/{chunk-KTRRC5P4.js → chunk-XONND7NT.js} +3 -3
- package/dist/{chunk-NCOW55N3.js → chunk-ZKIEOEUZ.js} +2 -2
- package/dist/{citations-UREMIMHU.js → citations-622BWQTR.js} +5 -5
- package/dist/{cli-catalog-JXAESW3A.js → cli-catalog-ACK3FVAX.js} +4 -4
- package/dist/cli-commands-UH3DRBPC.js +18 -0
- package/dist/cli.js +14 -14
- package/dist/{competitor-DIM5OLHQ.js → competitor-QYZIWXGC.js} +4 -4
- package/dist/{content-A2V3BCU6.js → content-PJASAMIV.js} +4 -4
- package/dist/{dashboard-ZOBWCHMG.js → dashboard-FQOS3J4B.js} +7 -7
- package/dist/{demo-6OE36ZR7.js → demo-ZGGVSKN4.js} +3 -3
- package/dist/{demo-server-GIUEYO52.js → demo-server-TLXLEPOI.js} +13 -13
- package/dist/{discover-Y67SDM3U.js → discover-ZLDSXDRI.js} +5 -5
- package/dist/{discover-eval-Z6DAQNRE.js → discover-eval-7F5Q3RXS.js} +4 -4
- package/dist/{doctor-XBAVQYHA.js → doctor-3KSQZDZ3.js} +4 -4
- package/dist/{evidence-OYRYCO3J.js → evidence-BJZIRJ4U.js} +4 -4
- package/dist/{export-cmd-MZRJI63B.js → export-cmd-BYPGV4IU.js} +4 -4
- package/dist/{ga-VPVM2NI3.js → ga-A3BAZCYH.js} +4 -4
- package/dist/{gbp-SKZQA4E5.js → gbp-U6VCRAFN.js} +4 -4
- package/dist/{google-6LWEJTAC.js → google-UNQZBUGS.js} +5 -5
- package/dist/{google-marketing-X2FOU4W2.js → google-marketing-QSIRQAVH.js} +2 -2
- package/dist/{health-cmd-XF5PCISV.js → health-cmd-Z5KTTJQU.js} +5 -5
- package/dist/{history-TP6O4LMA.js → history-IIGUZMOM.js} +4 -4
- package/dist/index.d.ts +96 -76
- package/dist/index.js +27 -27
- package/dist/{init-YMFUF4YJ.js → init-HZANRCMW.js} +13 -13
- package/dist/{insights-ZKTREJVG.js → insights-UQ234W6T.js} +4 -4
- package/dist/intelligence-service-S3GTOTGQ.js +15 -0
- package/dist/{journeys-T65PNRFS.js → journeys-2EZIRL7K.js} +4 -4
- package/dist/{keys-U54Y36FC.js → keys-NIAANGXE.js} +4 -4
- package/dist/{keyword-JHQKINGN.js → keyword-LHHNG3GL.js} +4 -4
- package/dist/{logs-6RH3NGMN.js → logs-UFOOIKTC.js} +4 -4
- package/dist/{mcp-JVJUVT3I.js → mcp-AZYUFL5V.js} +5 -5
- package/dist/mcp.js +11 -11
- package/dist/{measurement-plan-MOBOCU7X.js → measurement-plan-H2HIHJ3D.js} +6 -6
- package/dist/{notify-M3YPFBKX.js → notify-TIE2ZJ26.js} +4 -4
- package/dist/{organic-evidence-VDSGYYEB.js → organic-evidence-BX5MGZTK.js} +4 -4
- package/dist/{overview-FAJ5KKSI.js → overview-MGQE43GU.js} +7 -7
- package/dist/{project-3X4JNUQ2.js → project-2JL4ZW52.js} +4 -4
- package/dist/{project-setup-CMIASV25.js → project-setup-CXOVBRLZ.js} +4 -4
- package/dist/{query-NLTDZVPT.js → query-Q5BF63QF.js} +4 -4
- package/dist/{research-DATD7M5T.js → research-RQBZ57W5.js} +4 -4
- package/dist/{results-export-ONHLJT35.js → results-export-TVCBJNJN.js} +4 -4
- package/dist/{run-ZZ65W4T2.js → run-L6WG5WP2.js} +6 -6
- package/dist/{schedule-L6NQQWZP.js → schedule-3HQMG3AM.js} +4 -4
- package/dist/{search-JBV4A3JB.js → search-ZLQE4J66.js} +4 -4
- package/dist/{serve-JTVUXC5V.js → serve-E4N2XMIC.js} +28 -28
- package/dist/{session-L5ZT52AV.js → session-IJLUYO4T.js} +15 -15
- package/dist/{settings-N3HNIFMB.js → settings-T3U7TQOF.js} +4 -4
- package/dist/{sitemaps-HQV366MP.js → sitemaps-UZPLGN4W.js} +4 -4
- package/dist/{skills-6MCHPZAQ.js → skills-P4WSSFPF.js} +3 -3
- package/dist/{snapshot-SJKZGC7B.js → snapshot-ROJPISJE.js} +4 -4
- package/dist/{src-BUUBDKML.js → src-ZYWTGILQ.js} +2 -2
- package/dist/{status-T3LFFLRY.js → status-43XNR3NS.js} +6 -6
- package/dist/{support-BIPNOY7V.js → support-I7E4I3GG.js} +2 -2
- package/dist/{technical-aeo-APUKKLVK.js → technical-aeo-D4F2R6M3.js} +4 -4
- package/dist/{telemetry-RGSGE6ED.js → telemetry-5DMVDDZI.js} +5 -5
- package/dist/{tools-LPL4IECG.js → tools-M534GJMS.js} +12 -12
- package/dist/{traffic-SU7KRKO3.js → traffic-R2UA27AZ.js} +6 -6
- package/dist/{trends-3NJBRFXS.js → trends-BXOZIWIE.js} +4 -4
- package/dist/{users-SU4AONBT.js → users-X6WJV7VJ.js} +4 -4
- package/dist/{visibility-stats-EQEBABZR.js → visibility-stats-MCNUXUCL.js} +5 -5
- package/dist/{wordpress-SNOM6ETD.js → wordpress-AMGUJUZX.js} +4 -4
- package/package.json +1 -1
- package/dist/activity-D5YDZLCK.js +0 -13
- package/dist/cli-commands-X4XPZQZH.js +0 -18
- package/dist/intelligence-service-LNXDWZ3F.js +0 -15
|
@@ -5,14 +5,14 @@ import {
|
|
|
5
5
|
dedupeGscSitemapUrls,
|
|
6
6
|
resolveDiscoveredGscSitemapUrls,
|
|
7
7
|
submitGscSitemapBatches
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZKIEOEUZ.js";
|
|
9
9
|
import {
|
|
10
10
|
measurementDraftOperationSchema,
|
|
11
11
|
runMeasurementDraftAction
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OKIAF573.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2T4OGJWP.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_MEMORY_KEY_MAX_LENGTH,
|
|
18
18
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
PROVIDER_ACCOUNT_FAILURE_STREAK,
|
|
29
29
|
PROVIDER_ACCOUNT_RETRY_HOURS,
|
|
30
30
|
RESEARCH_RUN_SCOPE,
|
|
31
|
+
RunStatuses,
|
|
31
32
|
SENTIMENT_ATTEMPT_PAGE_DEFAULT,
|
|
32
33
|
SENTIMENT_QUERY_PAGE_DEFAULT,
|
|
33
34
|
SENTIMENT_QUERY_PAGE_MAX,
|
|
@@ -218,7 +219,7 @@ import {
|
|
|
218
219
|
trendSurfaceSchema,
|
|
219
220
|
visibilityCompareSelectionSchema,
|
|
220
221
|
visibilityReportRequestSchema
|
|
221
|
-
} from "./chunk-
|
|
222
|
+
} from "./chunk-GKQ4CYUM.js";
|
|
222
223
|
|
|
223
224
|
// src/mcp/tool-registry.ts
|
|
224
225
|
import { z as z2 } from "zod";
|
|
@@ -631,6 +632,69 @@ async function submitGscSitemapsFromMcp(client, input) {
|
|
|
631
632
|
}
|
|
632
633
|
return submitGscSitemapBatches(client, input.project, sitemapUrls);
|
|
633
634
|
}
|
|
635
|
+
var gscSyncInputSchema = z2.object({
|
|
636
|
+
project: projectNameSchema,
|
|
637
|
+
days: z2.number().int().positive().max(180).optional().describe("Days of history to refresh, 1 to 180. Defaults to 30. For more, use full."),
|
|
638
|
+
full: z2.boolean().optional().describe("Re-read the 16 months Search Console keeps (480 days), the backfill after connecting a site. Do not combine with days.")
|
|
639
|
+
});
|
|
640
|
+
var GSC_SYNC_WAIT_MS = 10 * 60 * 1e3;
|
|
641
|
+
var GSC_SYNC_POLL_DELAYS_MS = [250, 1e3, 2e3];
|
|
642
|
+
var FINISHED_RUN_STATUSES = /* @__PURE__ */ new Set([RunStatuses.completed, RunStatuses.partial, RunStatuses.failed, RunStatuses.cancelled]);
|
|
643
|
+
async function syncGscFromMcp(client, input) {
|
|
644
|
+
const { project, days, full } = input;
|
|
645
|
+
if (full === true && days !== void 0) {
|
|
646
|
+
throw new CliError({
|
|
647
|
+
code: "VALIDATION_ERROR",
|
|
648
|
+
message: "Pass days or full, not both: full re-reads all 16 months and ignores days.",
|
|
649
|
+
details: { project, days, full }
|
|
650
|
+
});
|
|
651
|
+
}
|
|
652
|
+
let run;
|
|
653
|
+
try {
|
|
654
|
+
run = await client.gscSync(project, { days, full });
|
|
655
|
+
} catch (error) {
|
|
656
|
+
if (error instanceof CliError && error.code === "INTEGRATION_NOT_CONNECTED") {
|
|
657
|
+
throw new CliError({
|
|
658
|
+
code: error.code,
|
|
659
|
+
message: `Search Console is not connected for project "${project}". Connect it with canonry_gsc_connect, then select its site with canonry_gsc_properties and canonry_gsc_set_property.`,
|
|
660
|
+
details: { ...error.details, project }
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
throw error;
|
|
664
|
+
}
|
|
665
|
+
const runId = run.id;
|
|
666
|
+
const deadline = Date.now() + GSC_SYNC_WAIT_MS;
|
|
667
|
+
for (let poll = 0; !FINISHED_RUN_STATUSES.has(run.status); poll += 1) {
|
|
668
|
+
if (Date.now() >= deadline) {
|
|
669
|
+
throw new CliError({
|
|
670
|
+
code: "GOOGLE_SYNC_TIMEOUT",
|
|
671
|
+
message: `Search Console sync ${runId} is still ${run.status} after ${GSC_SYNC_WAIT_MS / 6e4} minutes. It keeps running on the server: read it with canonry_run_get rather than starting another sync.`,
|
|
672
|
+
details: { project, runId, status: run.status }
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
const delay = GSC_SYNC_POLL_DELAYS_MS[Math.min(poll, GSC_SYNC_POLL_DELAYS_MS.length - 1)];
|
|
676
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
677
|
+
run = await client.getRun(runId);
|
|
678
|
+
}
|
|
679
|
+
if (run.status !== RunStatuses.completed) {
|
|
680
|
+
throw new CliError({
|
|
681
|
+
code: "GOOGLE_SYNC_FAILED",
|
|
682
|
+
message: `Search Console sync ${run.status}: ${run.error?.message ?? "no reason was recorded."}`,
|
|
683
|
+
details: { project, runId, status: run.status }
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
return {
|
|
687
|
+
id: run.id,
|
|
688
|
+
projectId: run.projectId,
|
|
689
|
+
kind: run.kind,
|
|
690
|
+
status: run.status,
|
|
691
|
+
trigger: run.trigger,
|
|
692
|
+
createdAt: run.createdAt,
|
|
693
|
+
startedAt: run.startedAt ?? null,
|
|
694
|
+
finishedAt: run.finishedAt ?? null,
|
|
695
|
+
syncSummary: run.syncSummary ?? null
|
|
696
|
+
};
|
|
697
|
+
}
|
|
634
698
|
var gaWindowInputSchema = z2.object({
|
|
635
699
|
project: projectNameSchema,
|
|
636
700
|
window: z2.enum(WINDOW_SETS.gaTraffic).optional(),
|
|
@@ -2670,6 +2734,17 @@ var rawCanonryMcpTools = [
|
|
|
2670
2734
|
openApiOperations: ["PUT /api/v1/projects/{name}/google/connections/{type}/property"],
|
|
2671
2735
|
handler: (client, input) => client.googleSetProperty(input.project, "gsc", input.siteUrl)
|
|
2672
2736
|
}),
|
|
2737
|
+
defineTool({
|
|
2738
|
+
name: "canonry_gsc_sync",
|
|
2739
|
+
title: "Sync Search Console data",
|
|
2740
|
+
description: "Run a Search Console sync for a project now and wait for it to finish (up to 10 minutes): search rows by query, page, country and device, property daily totals, per-query daily totals and the sitemap list, stored for every GSC read. Calls Google for three reports and the sitemap list; usually seconds, longer with full. It also runs daily as part of the data refresh, so trigger it when stored data is missing or stale (canonry_answerability search-console, or canonry_doctor gsc.data.recent-data). days refreshes 1 to 180 days (default 30); full re-reads the 16 months Google keeps, the backfill after connecting. A completed sync also queues the index-coverage refresh (URL Inspection over the sitemap, its own run) unless one is running or just ran. Returns the finished run with syncSummary, what it stored: days, startDate, endDate, searchRows, dailyTotals, queryTotals, sitemaps (null when the list could not be read) and dataThroughDate. syncSummary is null from a server too old to record it, which is not a sync that stored nothing. GOOGLE_SYNC_FAILED carries the run's reason; GOOGLE_SYNC_TIMEOUT means the run is still going, so read it with canonry_run_get instead of starting another. Without a Search Console connection it returns INTEGRATION_NOT_CONNECTED: connect with canonry_gsc_connect.",
|
|
2741
|
+
access: "write",
|
|
2742
|
+
tier: "gsc",
|
|
2743
|
+
inputSchema: gscSyncInputSchema,
|
|
2744
|
+
annotations: writeAnnotations({ idempotentHint: true, openWorldHint: true }),
|
|
2745
|
+
openApiOperations: ["POST /api/v1/projects/{name}/google/gsc/sync", "GET /api/v1/runs/{id}"],
|
|
2746
|
+
handler: syncGscFromMcp
|
|
2747
|
+
}),
|
|
2673
2748
|
defineTool({
|
|
2674
2749
|
name: "canonry_gsc_performance",
|
|
2675
2750
|
title: "Get GSC performance",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-XONND7NT.js";
|
|
4
4
|
import {
|
|
5
5
|
emitJsonl
|
|
6
6
|
} from "./chunk-Z7IUAJOF.js";
|
|
7
7
|
import {
|
|
8
8
|
measurementDraftOperationSchema,
|
|
9
9
|
runMeasurementDraftAction
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OKIAF573.js";
|
|
11
11
|
import {
|
|
12
12
|
isMachineFormat,
|
|
13
13
|
systemError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2T4OGJWP.js";
|
|
15
15
|
import {
|
|
16
16
|
CITATION_NOT_MEASURED_REASON,
|
|
17
17
|
MeasurementEvidenceShapes,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
unattributedAnswersLabel,
|
|
40
40
|
uncheckedSourcesLabel,
|
|
41
41
|
visibilityReportRequestSchema
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-GKQ4CYUM.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/measurement-plan.ts
|
|
45
45
|
import crypto from "crypto";
|
|
@@ -24,18 +24,18 @@ import {
|
|
|
24
24
|
resolveConfiguredAgentProvider,
|
|
25
25
|
resolveSessionProviderAndModel,
|
|
26
26
|
setAeroSystemPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5WDU7ZML.js";
|
|
28
28
|
import {
|
|
29
29
|
AeroToolProfiles,
|
|
30
30
|
AeroToolScopes,
|
|
31
31
|
buildAeroStateTools,
|
|
32
32
|
isAeroToolProfile,
|
|
33
33
|
truncateToolResult
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3ZNDJ4OM.js";
|
|
35
35
|
import {
|
|
36
36
|
answerServiceAdapters,
|
|
37
37
|
answerServiceDescriptors
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-QWD3ABAW.js";
|
|
39
39
|
import {
|
|
40
40
|
isManagedCanonryInstall
|
|
41
41
|
} from "./chunk-XAJS5FH3.js";
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
removeCloudflareTrafficConnection,
|
|
58
58
|
removeCloudflareTrafficConnectionBySourceId,
|
|
59
59
|
upsertCloudflareTrafficConnection
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HQEH4YRO.js";
|
|
61
61
|
import {
|
|
62
62
|
claudeAdapter,
|
|
63
63
|
embedQueries,
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
openrouterAdapter,
|
|
70
70
|
perplexityAdapter,
|
|
71
71
|
startTrafficReclassification
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-GTX7C5Y5.js";
|
|
73
73
|
import {
|
|
74
74
|
classifyUsageSurface,
|
|
75
75
|
createApiUsageTelemetry,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
startOutcomeTimer,
|
|
82
82
|
trackFeatureCompleted,
|
|
83
83
|
trackInstallState
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-GPPTW3HU.js";
|
|
85
85
|
import {
|
|
86
86
|
isLoopbackBindHost
|
|
87
87
|
} from "./chunk-TSENU4GG.js";
|
|
@@ -89,7 +89,7 @@ import {
|
|
|
89
89
|
isApiProviderRegistrable,
|
|
90
90
|
isCdpProviderRegistrable,
|
|
91
91
|
registeredProviderNames
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-GCBFSIKI.js";
|
|
93
93
|
import {
|
|
94
94
|
checkLatestVersionForServer,
|
|
95
95
|
getOrCreateAnonymousId,
|
|
@@ -101,17 +101,17 @@ import {
|
|
|
101
101
|
recordDashboardEvent,
|
|
102
102
|
setTelemetryPreference,
|
|
103
103
|
trackEvent
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-DY2Q3VIM.js";
|
|
105
105
|
import {
|
|
106
106
|
createCanonryMcpServer
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-425BZPKK.js";
|
|
108
108
|
import {
|
|
109
109
|
CANONRY_MCP_TIERS,
|
|
110
110
|
CANONRY_MCP_TOOLKIT_NAMES
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-MG4COK23.js";
|
|
112
112
|
import {
|
|
113
113
|
ApiClient
|
|
114
|
-
} from "./chunk-
|
|
114
|
+
} from "./chunk-XONND7NT.js";
|
|
115
115
|
import {
|
|
116
116
|
AGENT_PROVIDERS,
|
|
117
117
|
PROVIDER_MODELS,
|
|
@@ -146,39 +146,39 @@ import {
|
|
|
146
146
|
saveConfigPatch,
|
|
147
147
|
sentimentInstallReadiness,
|
|
148
148
|
updateSharedProviderExecutionGate
|
|
149
|
-
} from "./chunk-
|
|
149
|
+
} from "./chunk-FMS7CIEK.js";
|
|
150
150
|
import {
|
|
151
151
|
getBundledSkillSnapshots
|
|
152
|
-
} from "./chunk-
|
|
152
|
+
} from "./chunk-NEJEHRPT.js";
|
|
153
153
|
import {
|
|
154
154
|
computeFactorAverages,
|
|
155
155
|
deleteSiteCrawlGraphLayout,
|
|
156
156
|
persistSiteCrawlGraphLayout,
|
|
157
157
|
prepareSiteCrawlGraphLayout,
|
|
158
158
|
recordedSharePct
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-K3YHPTKL.js";
|
|
160
160
|
import {
|
|
161
161
|
CanonryMcpToolNames,
|
|
162
162
|
canonryMcpTools
|
|
163
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-HS2HYFPX.js";
|
|
164
164
|
import {
|
|
165
165
|
PACKAGE_VERSION
|
|
166
166
|
} from "./chunk-AOJU5LKX.js";
|
|
167
167
|
import {
|
|
168
168
|
CliError
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-2T4OGJWP.js";
|
|
170
170
|
import {
|
|
171
171
|
IntelligenceService
|
|
172
|
-
} from "./chunk-
|
|
172
|
+
} from "./chunk-3GE4Z4J3.js";
|
|
173
173
|
import {
|
|
174
174
|
computeCitedCompetitorDomains,
|
|
175
175
|
determineCitationState
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-RPAWPX7B.js";
|
|
177
177
|
import {
|
|
178
178
|
addLogListener,
|
|
179
179
|
createFastifyLogger,
|
|
180
180
|
createLogger
|
|
181
|
-
} from "./chunk-
|
|
181
|
+
} from "./chunk-G2NIO2J3.js";
|
|
182
182
|
import {
|
|
183
183
|
BING_THROTTLE_COOLDOWN_MS,
|
|
184
184
|
BingApiError,
|
|
@@ -334,7 +334,7 @@ import {
|
|
|
334
334
|
webhookTargetRefusalReason,
|
|
335
335
|
webhookUserAgent,
|
|
336
336
|
writeAuditLog
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-QXRI6DRE.js";
|
|
338
338
|
import {
|
|
339
339
|
OperationalLogStore,
|
|
340
340
|
SentimentIdempotencyConflict,
|
|
@@ -436,7 +436,7 @@ import {
|
|
|
436
436
|
unrecognizedAgentEventsHourly,
|
|
437
437
|
unrecognizedAgentNotifyState,
|
|
438
438
|
usageCounters
|
|
439
|
-
} from "./chunk-
|
|
439
|
+
} from "./chunk-X6DD3OIR.js";
|
|
440
440
|
import {
|
|
441
441
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
442
442
|
AI_ENGINE_DOMAINS,
|
|
@@ -722,7 +722,7 @@ import {
|
|
|
722
722
|
winnabilityClassLabel,
|
|
723
723
|
withRetry,
|
|
724
724
|
withSkippedProviders
|
|
725
|
-
} from "./chunk-
|
|
725
|
+
} from "./chunk-GKQ4CYUM.js";
|
|
726
726
|
|
|
727
727
|
// src/google-marketing-runtime.ts
|
|
728
728
|
import crypto2 from "crypto";
|
|
@@ -6474,7 +6474,7 @@ function nonBlank(value) {
|
|
|
6474
6474
|
return trimmed ? trimmed : void 0;
|
|
6475
6475
|
}
|
|
6476
6476
|
function resolveBuildCommit(env = process.env) {
|
|
6477
|
-
const embedded = true ? "
|
|
6477
|
+
const embedded = true ? "2ae716a5772d55661182e02bd3960d83f972c373" : void 0;
|
|
6478
6478
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
6479
6479
|
}
|
|
6480
6480
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -9355,9 +9355,11 @@ async function executeGscSync(db, runId, projectId, opts) {
|
|
|
9355
9355
|
}).run();
|
|
9356
9356
|
}
|
|
9357
9357
|
const observedThrough = totalRows.map((row) => row.keys[0] ?? "").filter((date) => date !== "").reduce((max2, date) => max2 === null || date > max2 ? date : max2, null);
|
|
9358
|
+
let dataThroughDate = null;
|
|
9358
9359
|
if (observedThrough !== null || endDate) {
|
|
9359
9360
|
const existing = db.select().from(gscDataWatermarks).where(eq8(gscDataWatermarks.projectId, projectId)).get();
|
|
9360
9361
|
const nextThrough = [existing?.dataThroughDate ?? null, observedThrough].filter((d) => d !== null).reduce((max2, d) => max2 === null || d > max2 ? d : max2, null);
|
|
9362
|
+
dataThroughDate = nextThrough;
|
|
9361
9363
|
if (nextThrough !== null) {
|
|
9362
9364
|
db.insert(gscDataWatermarks).values({
|
|
9363
9365
|
projectId,
|
|
@@ -9390,9 +9392,11 @@ async function executeGscSync(db, runId, projectId, opts) {
|
|
|
9390
9392
|
)
|
|
9391
9393
|
).run();
|
|
9392
9394
|
const queryTotalsNow = (/* @__PURE__ */ new Date()).toISOString();
|
|
9395
|
+
let queryTotalsStored = 0;
|
|
9393
9396
|
for (const row of queryTotalRows) {
|
|
9394
9397
|
const [date, query] = row.keys;
|
|
9395
9398
|
if (!date || !query) continue;
|
|
9399
|
+
queryTotalsStored += 1;
|
|
9396
9400
|
db.insert(gscQueryDailyTotals).values({
|
|
9397
9401
|
id: crypto10.randomUUID(),
|
|
9398
9402
|
projectId,
|
|
@@ -9407,14 +9411,27 @@ async function executeGscSync(db, runId, projectId, opts) {
|
|
|
9407
9411
|
}).run();
|
|
9408
9412
|
}
|
|
9409
9413
|
log4.info("query-totals.complete", { runId, projectId, rowCount: queryTotalRows.length });
|
|
9414
|
+
let sitemapsStored = null;
|
|
9410
9415
|
try {
|
|
9411
9416
|
const stored = await syncGscSitemaps(db, projectId, runId, accessToken, propertyId);
|
|
9417
|
+
sitemapsStored = stored.sitemaps;
|
|
9412
9418
|
log4.info("sitemaps.complete", { runId, projectId, ...stored });
|
|
9413
9419
|
} catch (err) {
|
|
9414
9420
|
log4.warn("sitemaps.failed", { runId, projectId, error: describeError(err) });
|
|
9415
9421
|
}
|
|
9416
9422
|
const coverage = writeCoverageSnapshot(db, projectId, runId);
|
|
9417
|
-
|
|
9423
|
+
const syncSummary = {
|
|
9424
|
+
type: "gsc",
|
|
9425
|
+
days,
|
|
9426
|
+
startDate,
|
|
9427
|
+
endDate,
|
|
9428
|
+
searchRows: rows.length,
|
|
9429
|
+
dailyTotals: totalRows.length,
|
|
9430
|
+
queryTotals: queryTotalsStored,
|
|
9431
|
+
sitemaps: sitemapsStored,
|
|
9432
|
+
dataThroughDate
|
|
9433
|
+
};
|
|
9434
|
+
db.update(runs).set({ status: "completed", finishedAt: (/* @__PURE__ */ new Date()).toISOString(), syncSummary }).where(eq8(runs.id, runId)).run();
|
|
9418
9435
|
log4.info("sync.completed", { runId, projectId, searchDataRows: rows.length, indexed: coverage.indexed, notIndexed: coverage.notIndexed, unknown: coverage.unknown, verifiedByInspection: coverage.verifiedByInspection });
|
|
9419
9436
|
const counts = { rows: rows.length, urls: new Set(rows.map((row) => row.keys[1] ?? "")).size };
|
|
9420
9437
|
reportOutcome(rows.length === 0 ? { status: OutcomeStatuses.skipped, reasonCode: OutcomeReasonCodes.NO_DATA, counts } : { status: OutcomeStatuses.succeeded, counts });
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
siteCrawlGraphNodes,
|
|
6
6
|
siteCrawlPages,
|
|
7
7
|
siteCrawlSnapshots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-X6DD3OIR.js";
|
|
9
9
|
import {
|
|
10
10
|
SITE_CRAWL_GRAPH_MAX_EDGES,
|
|
11
11
|
SITE_CRAWL_GRAPH_MAX_NODES,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
factorStatusFromDistribution,
|
|
16
16
|
factorStatusFromScore,
|
|
17
17
|
roundPreservingTotal
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GKQ4CYUM.js";
|
|
19
19
|
|
|
20
20
|
// src/site-audit-factors.ts
|
|
21
21
|
function recordedSharePct(factor) {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-VJWDBFSL.js";
|
|
5
5
|
import {
|
|
6
6
|
createApiClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XONND7NT.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
isMachineFormat
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2T4OGJWP.js";
|
|
12
12
|
import {
|
|
13
13
|
describeError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-GKQ4CYUM.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/mcp.ts
|
|
17
17
|
import fs from "fs";
|
|
@@ -74,8 +74,8 @@ var CANONRY_MCP_TOOLKITS = [
|
|
|
74
74
|
{
|
|
75
75
|
name: "gsc",
|
|
76
76
|
title: "Google Search Console",
|
|
77
|
-
description: "Read GSC performance, per-query totals, inspections, coverage, sitemaps, and deindexed URLs.",
|
|
78
|
-
whenToLoad: "Load to connect Search Console, select a property,
|
|
77
|
+
description: "Read GSC performance, per-query totals, inspections, coverage, sitemaps, and deindexed URLs, and run a Search Console sync when stored data is stale.",
|
|
78
|
+
whenToLoad: "Load to connect Search Console, select a property, inspect indexing, coverage and sitemaps, or refresh search data with a Search Console sync."
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
name: "bing",
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
CliError,
|
|
6
6
|
isMachineFormat
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2T4OGJWP.js";
|
|
8
8
|
import {
|
|
9
9
|
CodingAgents,
|
|
10
10
|
SKILL_MANIFEST_FILENAME,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
formatCanonryPluginUpdateHint,
|
|
16
16
|
formatCanonryPluginVersionMismatch,
|
|
17
17
|
skillsClientSchema
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GKQ4CYUM.js";
|
|
19
19
|
|
|
20
20
|
// src/commands/skills.ts
|
|
21
21
|
import crypto from "crypto";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
measurementDraftUpsertGroupRequestSchema,
|
|
24
24
|
measurementDraftUpsertMarketRequestSchema,
|
|
25
25
|
measurementDraftUpsertTargetRequestSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-GKQ4CYUM.js";
|
|
27
27
|
|
|
28
28
|
// src/measurement-draft-actions.ts
|
|
29
29
|
import { z } from "zod";
|