@canonry/canonry 7.50.1 → 7.51.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.
Files changed (40) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +9 -3
  2. package/assets/assets/{AuditHistoryPanel-CX61JUTX.js → AuditHistoryPanel-wdUF2gRW.js} +1 -1
  3. package/assets/assets/{BacklinksPage-DqnhCPLf.js → BacklinksPage-CJY1OPYR.js} +1 -1
  4. package/assets/assets/{ChartPrimitives-CZ4wVBJL.js → ChartPrimitives-B6ryduMN.js} +1 -1
  5. package/assets/assets/{HistoryPage-rRFCtFL5.js → HistoryPage-BuJ6rkxQ.js} +1 -1
  6. package/assets/assets/{MeasurementPropertyPage-CfIZVKgg.js → MeasurementPropertyPage-B2L33Gl3.js} +3 -3
  7. package/assets/assets/ProjectPage-26oduSKK.js +8 -0
  8. package/assets/assets/RunsPage-BLflXqnd.js +1 -0
  9. package/assets/assets/{SettingsPage-098-3JC1.js → SettingsPage-Dh5p6mPo.js} +1 -1
  10. package/assets/assets/{SiteHealthSection-CfcQYuwU.js → SiteHealthSection-ulXVd0QR.js} +3 -3
  11. package/assets/assets/{TrafficPage-Bl6INnLT.js → TrafficPage-DKn4SB01.js} +3 -3
  12. package/assets/assets/{TrafficSourceDetailPage-Bu_0hPCZ.js → TrafficSourceDetailPage-Ew3DvkC2.js} +1 -1
  13. package/assets/assets/{extract-error-message-Dp43pOCs.js → extract-error-message-Bqp9rHty.js} +1 -1
  14. package/assets/assets/{index-Bll2LqWk.css → index-Br2WtEIO.css} +1 -1
  15. package/assets/assets/{index-je69pgAK.js → index-CKxYUKlD.js} +26 -26
  16. package/assets/assets/{react-sigma_core.esm.min-DFuzq2Lx.js → react-sigma_core.esm.min-CmQ0UJ-q.js} +1 -1
  17. package/assets/assets/{v2-overview-adapter-CjEkLZwJ.js → v2-overview-adapter-P6JaB0ii.js} +1 -1
  18. package/assets/assets/{vendor-recharts-D-cUuLZo.js → vendor-recharts-D_R6YxjS.js} +1 -1
  19. package/assets/index.html +3 -3
  20. package/dist/{chunk-PNY6B5NF.js → chunk-2SWNW5O6.js} +2 -2
  21. package/dist/{chunk-BGQV35Y6.js → chunk-5ZYVREGG.js} +1 -1
  22. package/dist/{chunk-WYI6KLC4.js → chunk-77T24PPR.js} +2347 -2162
  23. package/dist/{chunk-IFIPKXEP.js → chunk-CNBKVUMJ.js} +3 -3
  24. package/dist/{chunk-HGWJCYGW.js → chunk-GG6ECPAO.js} +2 -2
  25. package/dist/{chunk-ALZAMWTF.js → chunk-IKIAETMK.js} +1 -1
  26. package/dist/{chunk-7MDPU6T5.js → chunk-T4EXTQQK.js} +36 -9
  27. package/dist/{chunk-4KAZO6PU.js → chunk-UJLIMXPX.js} +137 -13
  28. package/dist/{chunk-LAFRGDAN.js → chunk-WTATIC3M.js} +6 -6
  29. package/dist/{chunk-Q2XQ2YRP.js → chunk-ZKIUO7RY.js} +3 -3
  30. package/dist/{cli-catalog-XOBGGUUS.js → cli-catalog-MGEBTBSU.js} +3 -3
  31. package/dist/cli-commands-D5TBJLXO.js +15 -0
  32. package/dist/cli.js +10 -10
  33. package/dist/{demo-server-4E3LDHBX.js → demo-server-GJD7I6FS.js} +86 -5
  34. package/dist/index.js +6 -6
  35. package/dist/{intelligence-service-ITB34LC7.js → intelligence-service-COKNG64A.js} +2 -2
  36. package/dist/mcp.js +4 -4
  37. package/package.json +12 -12
  38. package/assets/assets/ProjectPage-DU88Joxp.js +0 -8
  39. package/assets/assets/RunsPage-B3NIVoWb.js +0 -1
  40. package/dist/cli-commands-Y2YQGMEZ.js +0 -15
@@ -5,11 +5,11 @@ import {
5
5
  computeFactorAverages,
6
6
  layoutSiteCrawlGraphInput,
7
7
  persistSiteCrawlGraphLayout
8
- } from "./chunk-HGWJCYGW.js";
8
+ } from "./chunk-GG6ECPAO.js";
9
9
  import {
10
10
  PACKAGE_VERSION,
11
11
  canonryMcpTools
12
- } from "./chunk-BGQV35Y6.js";
12
+ } from "./chunk-5ZYVREGG.js";
13
13
  import "./chunk-HGMYEDAQ.js";
14
14
  import {
15
15
  HISTORY_WINDOW_RUNS,
@@ -45,6 +45,7 @@ import {
45
45
  gaMeasurementSyncStates,
46
46
  gaSearchLandingPages,
47
47
  gaSearchLandingWindows,
48
+ gaSocialReferrals,
48
49
  gaTrafficSnapshots,
49
50
  gaTrafficSummaries,
50
51
  gaTrafficWindowSummaries,
@@ -86,8 +87,9 @@ import {
86
87
  siteCrawlPages,
87
88
  siteCrawlSnapshots,
88
89
  trafficSources
89
- } from "./chunk-4KAZO6PU.js";
90
+ } from "./chunk-UJLIMXPX.js";
90
91
  import {
92
+ AI_ENGINE_DOMAINS,
91
93
  RunKinds,
92
94
  SiteCrawlFetchStates,
93
95
  SiteCrawlIndexabilityReasons,
@@ -99,6 +101,7 @@ import {
99
101
  canonicalMeasurementExecutionIdentityJson,
100
102
  canonicalMeasurementPlanV2Json,
101
103
  canonicalSimpleMeasurementDefinitionJson,
104
+ classifyAiReferralTrafficClass,
102
105
  compareText,
103
106
  computeCompetitorOverlap,
104
107
  deriveSiteHealthState,
@@ -116,7 +119,7 @@ import {
116
119
  roundPreservingTotal,
117
120
  siteAuditPageFactorSchema,
118
121
  wilsonInterval
119
- } from "./chunk-WYI6KLC4.js";
122
+ } from "./chunk-77T24PPR.js";
120
123
 
121
124
  // src/demo-server.ts
122
125
  import { dirname, join as join2 } from "path";
@@ -2424,6 +2427,84 @@ async function seedSiteCrawl(db, input) {
2424
2427
  return { ...crawl, layout };
2425
2428
  }
2426
2429
 
2430
+ // src/demo/seed-ga-referrals.ts
2431
+ var SOCIAL_ROWS = [
2432
+ { source: "ig", medium: "social", channelGroup: "Organic Social", daily: 3 },
2433
+ { source: "Pinterest", medium: "PaidSocial", channelGroup: "Paid Social", daily: 2 },
2434
+ { source: "facebook", medium: "paid", channelGroup: "Paid Social", daily: 1 },
2435
+ { source: "l.instagram.com", medium: "referral", channelGroup: "Organic Social", daily: 1 },
2436
+ { source: "pinterest.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 2 },
2437
+ { source: "Pinterest", medium: "organic", channelGroup: "Organic Social", daily: 1, every: 3 },
2438
+ { source: "FB_Ads", medium: "social", channelGroup: "Organic Social", daily: 1, every: 3 },
2439
+ { source: "ig", medium: "paidsocial", channelGroup: "Paid Social", daily: 1, every: 4 },
2440
+ { source: "instagram.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 4 },
2441
+ { source: "m.facebook.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 4 },
2442
+ { source: "facebook.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 5 },
2443
+ { source: "Instagram+Story", medium: "social", channelGroup: "Organic Social", daily: 1, every: 5 },
2444
+ { source: "linkedin.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 5 },
2445
+ { source: "lnkd.in", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 7 },
2446
+ { source: "reddit.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 6 },
2447
+ { source: "youtube.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 6 },
2448
+ { source: "t.co", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 7 },
2449
+ { source: "l.facebook.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 7 },
2450
+ { source: "nextdoor.com", medium: "referral", channelGroup: "Organic Social", daily: 1, every: 7 }
2451
+ ];
2452
+ var AI_ROWS = [
2453
+ { source: AI_ENGINE_DOMAINS.chatgpt, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 3 },
2454
+ { source: AI_ENGINE_DOMAINS.perplexity, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1 },
2455
+ { source: AI_ENGINE_DOMAINS.gemini, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1, every: 2 },
2456
+ { source: AI_ENGINE_DOMAINS.claude, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1, every: 2 },
2457
+ { source: AI_ENGINE_DOMAINS.copilotMicrosoft, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1, every: 3 },
2458
+ { source: AI_ENGINE_DOMAINS.grok, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1, every: 4 },
2459
+ { source: `chat.${AI_ENGINE_DOMAINS.deepseek}`, medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1, every: 5 },
2460
+ // GA4 put it in the AI channel, and no engine matches it: AI traffic, unattributed.
2461
+ { source: "demo-answer-engine.example", medium: "ai-assistant", channelGroup: "AI Assistant", daily: 1, every: 3 },
2462
+ { source: AI_ENGINE_DOMAINS.metaAi, medium: "referral", channelGroup: "Referral", daily: 1, every: 6 },
2463
+ { source: "chatgpt", medium: "cpc", channelGroup: "Paid Other", daily: 1, every: 2 }
2464
+ ];
2465
+ var AI_LANDING_PAGES = ["/", "/services/", "/guides/"];
2466
+ function seedGaReferrals(db, input) {
2467
+ const { projectId, prefix, syncRunId, nowIso, dates } = input;
2468
+ for (const [day2, date] of dates.entries()) {
2469
+ for (const [index, row] of SOCIAL_ROWS.entries()) {
2470
+ if (day2 % (row.every ?? 1) !== 0) continue;
2471
+ db.insert(gaSocialReferrals).values({
2472
+ id: `${prefix}-ga-social-${day2}-${index}`,
2473
+ projectId,
2474
+ date,
2475
+ source: row.source,
2476
+ medium: row.medium,
2477
+ channelGroup: row.channelGroup,
2478
+ sessions: row.daily + (day2 % 3 === 0 ? 1 : 0),
2479
+ users: row.daily,
2480
+ syncedAt: nowIso,
2481
+ syncRunId
2482
+ }).run();
2483
+ }
2484
+ for (const [index, row] of AI_ROWS.entries()) {
2485
+ if (day2 % (row.every ?? 1) !== 0) continue;
2486
+ const landingPage = row.medium === "cpc" ? "/?utm_source=chatgpt&utm_medium=cpc" : AI_LANDING_PAGES[(day2 + index) % AI_LANDING_PAGES.length];
2487
+ const sessions = row.daily + (day2 % 4 === 0 ? 1 : 0);
2488
+ db.insert(gaAiReferrals).values({
2489
+ id: `${prefix}-ga-ai-${day2}-${index}`,
2490
+ projectId,
2491
+ date,
2492
+ source: row.source,
2493
+ medium: row.medium,
2494
+ trafficClass: classifyAiReferralTrafficClass({ source: row.source, medium: row.medium, channelGroup: row.channelGroup, landingPage }),
2495
+ sourceDimension: "session",
2496
+ channelGroup: row.channelGroup,
2497
+ landingPage,
2498
+ landingPageNormalized: landingPage.split("?")[0],
2499
+ sessions,
2500
+ users: sessions,
2501
+ syncedAt: nowIso,
2502
+ syncRunId
2503
+ }).run();
2504
+ }
2505
+ }
2506
+ }
2507
+
2427
2508
  // src/demo/site-inventories/harbor-resorts.ts
2428
2509
  var SECTIONS = [
2429
2510
  ["rooms", ["ocean-suite", "family-suite", "garden-studio", "accessible-suite", "penthouse", "two-bedroom-villa", "king-room", "connecting-rooms"]],
@@ -2889,9 +2970,9 @@ async function seedProjectSignals(db, project, now, variant) {
2889
2970
  db.insert(gaTrafficSnapshots).values({ id: `${prefix}-ga-page-${date}`, projectId: project.id, date, landingPage: "/", landingPageNormalized: "/", sessions: 62 + i * 3, organicSessions: 39 + i * 2, directSessions: 14 + i, users: 48 + i * 2, syncedAt: nowIso, syncRunId }).run();
2890
2971
  db.insert(gaAcquisitionDaily).values({ id: `${prefix}-ga-acquisition-${date}`, projectId: project.id, date, channelGroup: "Organic Search", source: "google", medium: "organic", hostName: project.domain, landingPage: "/", landingPageNormalized: "/", sessions: 39 + i * 2, syncedAt: nowIso, syncRunId, createdAt: at(date) }).run();
2891
2972
  db.insert(gaLeadEventsDaily).values({ id: `${prefix}-ga-lead-${date}`, projectId: project.id, date, eventName: "generate_lead", channelGroup: "Organic Search", source: "google", medium: "organic", hostName: project.domain, landingPage: "/", landingPageNormalized: "/", attributionScope: "landing-page", eventCount: 3 + i % 4, syncedAt: nowIso, syncRunId, createdAt: at(date) }).run();
2892
- db.insert(gaAiReferrals).values({ id: `${prefix}-ga-ai-${date}`, projectId: project.id, date, source: i % 2 ? "demo-answer-engine.example" : "demo-ai-referral.example", medium: "referral", trafficClass: "organic", sourceDimension: "session", channelGroup: "Referral", landingPage: "/", landingPageNormalized: "/", sessions: 4 + i % 3, users: 3 + i % 2, syncedAt: nowIso, syncRunId }).run();
2893
2973
  db.insert(bingCoverageSnapshots).values({ id: `${prefix}-bing-coverage-${date}`, projectId: project.id, syncRunId, date, indexed: 48 + i, notIndexed: 3, unknown: 2, createdAt: at(date) }).run();
2894
2974
  }
2975
+ seedGaReferrals(db, { projectId: project.id, prefix, syncRunId, nowIso, dates });
2895
2976
  db.insert(gscDataWatermarks).values({ projectId: project.id, dataThroughDate: dates.at(-1), syncedThroughDate: dates.at(-1), updatedAt: nowIso }).run();
2896
2977
  db.insert(gscCoverageSnapshots).values({ id: `${prefix}-gsc-coverage`, projectId: project.id, syncRunId, date: dates.at(-1), indexed: 1, notIndexed: 0, unknownPages: 0, verifiedByInspection: 1, derivedFromImpressions: 0, reasonBreakdown: {}, createdAt: nowIso }).run();
2897
2978
  db.insert(gscUrlInspections).values({ id: `${prefix}-gsc-inspection`, projectId: project.id, syncRunId, url: `${root}services/`, indexingState: "INDEXING_ALLOWED", verdict: "PASS", coverageState: "Submitted and indexed", pageFetchState: "SUCCESSFUL", robotsTxtState: "ALLOWED", crawlTime: nowIso, lastCrawlResult: "SUCCESSFUL", isMobileFriendly: true, richResults: ["Sample FAQ"], referringUrls: [root], inspectedAt: nowIso, createdAt: nowIso }).run();
package/dist/index.js CHANGED
@@ -3,15 +3,15 @@ import {
3
3
  createGoogleMarketingCredentialStore,
4
4
  createGoogleMarketingRuntime,
5
5
  createServer
6
- } from "./chunk-LAFRGDAN.js";
6
+ } from "./chunk-WTATIC3M.js";
7
7
  import {
8
8
  loadConfig
9
- } from "./chunk-PNY6B5NF.js";
10
- import "./chunk-HGWJCYGW.js";
11
- import "./chunk-BGQV35Y6.js";
9
+ } from "./chunk-2SWNW5O6.js";
10
+ import "./chunk-GG6ECPAO.js";
11
+ import "./chunk-5ZYVREGG.js";
12
12
  import "./chunk-HGMYEDAQ.js";
13
- import "./chunk-4KAZO6PU.js";
14
- import "./chunk-WYI6KLC4.js";
13
+ import "./chunk-UJLIMXPX.js";
14
+ import "./chunk-77T24PPR.js";
15
15
  export {
16
16
  GoogleMarketingRuntimeError,
17
17
  createGoogleMarketingCredentialStore,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  HISTORY_WINDOW_RUNS,
3
3
  IntelligenceService
4
- } from "./chunk-4KAZO6PU.js";
5
- import "./chunk-WYI6KLC4.js";
4
+ } from "./chunk-UJLIMXPX.js";
5
+ import "./chunk-77T24PPR.js";
6
6
  export {
7
7
  HISTORY_WINDOW_RUNS,
8
8
  IntelligenceService
package/dist/mcp.js CHANGED
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  autoSyncSkills
3
- } from "./chunk-IFIPKXEP.js";
3
+ } from "./chunk-CNBKVUMJ.js";
4
4
  import {
5
5
  createApiClient,
6
6
  createCanonryMcpServer
7
- } from "./chunk-PNY6B5NF.js";
8
- import "./chunk-BGQV35Y6.js";
7
+ } from "./chunk-2SWNW5O6.js";
8
+ import "./chunk-5ZYVREGG.js";
9
9
  import "./chunk-HGMYEDAQ.js";
10
10
  import {
11
11
  isReadOnlyKey,
12
12
  updateCheckEnvOptOut
13
- } from "./chunk-WYI6KLC4.js";
13
+ } from "./chunk-77T24PPR.js";
14
14
 
15
15
  // src/mcp/cli.ts
16
16
  import { randomUUID } from "crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonry/canonry",
3
- "version": "7.50.1",
3
+ "version": "7.51.0",
4
4
  "type": "module",
5
5
  "description": "Self-hosted AI visibility (AEO) platform: track how ChatGPT, Claude, Gemini, and Perplexity cite your domain, join it with Search Console, GA4, server-side traffic, and paid media, and fix what you find through agent tools (CLI, REST, MCP). Local SQLite.",
6
6
  "keywords": [
@@ -85,34 +85,34 @@
85
85
  "@types/node-cron": "^3.0.11",
86
86
  "tsup": "^8.5.1",
87
87
  "tsx": "^4.19.0",
88
- "@canonry/canonry-web": "0.0.0",
89
88
  "@canonry/canonry-api-routes": "0.0.0",
90
- "@canonry/canonry-config": "0.0.0",
91
89
  "@canonry/canonry-contracts": "0.0.0",
92
90
  "@canonry/canonry-db": "0.0.0",
93
- "@canonry/canonry-integration-bing": "0.0.0",
91
+ "@canonry/canonry-web": "0.0.0",
92
+ "@canonry/canonry-config": "0.0.0",
93
+ "@canonry/canonry-api-client": "0.0.0",
94
94
  "@canonry/canonry-integration-cloud-run": "0.0.0",
95
+ "@canonry/canonry-integration-cloudflare-queue": "0.0.0",
96
+ "@canonry/canonry-integration-bing": "0.0.0",
95
97
  "@canonry/canonry-integration-cloudflare-worker": "0.0.0",
96
98
  "@canonry/canonry-integration-commoncrawl": "0.0.0",
97
- "@canonry/canonry-api-client": "0.0.0",
98
- "@canonry/canonry-integration-cloudflare-queue": "0.0.0",
99
+ "@canonry/canonry-integration-google-ads": "0.0.0",
99
100
  "@canonry/canonry-integration-google": "0.0.0",
100
- "@canonry/canonry-integration-google-business-profile": "0.0.0",
101
101
  "@canonry/canonry-integration-google-places": "0.0.0",
102
+ "@canonry/canonry-integration-google-business-profile": "0.0.0",
102
103
  "@canonry/canonry-integration-google-tag-manager": "0.0.0",
103
104
  "@canonry/canonry-integration-traffic": "0.0.0",
104
105
  "@canonry/canonry-integration-openai-ads": "0.0.0",
105
- "@canonry/canonry-provider-cdp": "0.0.0",
106
- "@canonry/canonry-intelligence": "0.0.0",
107
106
  "@canonry/canonry-integration-wordpress": "0.0.0",
108
- "@canonry/canonry-provider-gemini": "0.0.0",
107
+ "@canonry/canonry-intelligence": "0.0.0",
108
+ "@canonry/canonry-provider-cdp": "0.0.0",
109
109
  "@canonry/canonry-provider-claude": "0.0.0",
110
110
  "@canonry/canonry-provider-local": "0.0.0",
111
111
  "@canonry/canonry-provider-muse": "0.0.0",
112
112
  "@canonry/canonry-provider-openai": "0.0.0",
113
- "@canonry/canonry-integration-google-ads": "0.0.0",
114
113
  "@canonry/canonry-provider-perplexity": "0.0.0",
115
- "@canonry/canonry-integration-typesafe": "0.0.0"
114
+ "@canonry/canonry-integration-typesafe": "0.0.0",
115
+ "@canonry/canonry-provider-gemini": "0.0.0"
116
116
  },
117
117
  "scripts": {
118
118
  "build": "pnpm run build:cli && pnpm run build:web",