@canonry/canonry 7.123.3 → 7.124.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.
@@ -1329,7 +1329,7 @@ cnry ga status <project> # connected, propertyId, authMetho
1329
1329
  cnry ga properties <project> # list GA4 properties the connected account can read,
1330
1330
  # with their numeric ids. OAuth connections only —
1331
1331
  # the id cannot be derived from the domain or the grant
1332
- cnry ga sync <project> [--days 30] [--only traffic|ai|social|search-landing]
1332
+ cnry ga sync <project> [--days 30] [--only traffic|ai|social|search-landing] # MCP: canonry_ga_sync (ga toolkit)
1333
1333
  # refresh from GA4 → DB; --only restricts which slice is replaced
1334
1334
  # (search-landing = the Search Console landing-page snapshot)
1335
1335
  # returns: synced, rowCount, aiReferralCount, socialReferralCount,
@@ -3,7 +3,7 @@ import {
3
3
  CANONRY_MCP_TOOLKIT_NAMES,
4
4
  isCanonryMcpToolkitName,
5
5
  resolveAeroSkillDir
6
- } from "./chunk-XXKC266R.js";
6
+ } from "./chunk-F2TGOWIW.js";
7
7
  import {
8
8
  createApiClient,
9
9
  runWithUsageTags
@@ -12,7 +12,7 @@ import {
12
12
  canonryMcpTools,
13
13
  mcpOutputSchema,
14
14
  toolOperationAccess
15
- } from "./chunk-2YRIEAVO.js";
15
+ } from "./chunk-D723JFOO.js";
16
16
  import {
17
17
  PACKAGE_VERSION
18
18
  } from "./chunk-AOJU5LKX.js";
@@ -79,6 +79,7 @@ import {
79
79
  gaMeasurementAnalysisWindowSchema,
80
80
  gaMeasurementHostScopeSchema,
81
81
  gaSearchLandingWindowSchema,
82
+ gaSyncOnlySchema,
82
83
  googleAdsMetricsWindowSchema,
83
84
  googleConnectionDtoSchema,
84
85
  googleOAuthStartResponseSchema,
@@ -677,6 +678,11 @@ var gbpLocationSelectionInputSchema = z2.object({
677
678
  locationName: z2.string().min(1).regex(/^locations\//, 'locationName must be a Google resource name like "locations/12345"'),
678
679
  selected: z2.boolean()
679
680
  });
681
+ var gaSyncInputSchema = z2.object({
682
+ project: projectNameSchema,
683
+ days: z2.number().int().positive().max(180).optional().describe("Days of history to refresh, 1 to 180. Defaults to 30. Days an earlier sync already settled are reused, not fetched again."),
684
+ only: gaSyncOnlySchema.optional().describe("Refresh traffic plus one breakdown: ai, social or search-landing (traffic alone with traffic). Omit for the full sync.")
685
+ });
680
686
  var gbpSyncInputSchema = z2.object({
681
687
  project: projectNameSchema,
682
688
  locationNames: z2.array(z2.string()).optional(),
@@ -2990,6 +2996,17 @@ var rawCanonryMcpTools = [
2990
2996
  openApiOperations: ["GET /api/v1/projects/{name}/ga/status"],
2991
2997
  handler: (client, input) => client.gaStatus(input.project)
2992
2998
  }),
2999
+ defineTool({
3000
+ name: "canonry_ga_sync",
3001
+ title: "Sync GA4 data",
3002
+ description: "Run a GA4 sync for a project now and wait for it to finish: traffic by landing page, daily totals, the overview windows, AI and social referrals, acquisition, lead events and the Search Console landing-page report, stored for every GA read. Calls GA4 for several reports; usually under a minute, a few minutes when GA4 is slow. It also runs daily as part of the data refresh, so trigger it when stored data is missing or stale (canonry_ga_status lastSyncedAt, or canonry_doctor ga.data.recent-data). Returns rows written, the effective days, and each measurement component's status; keptWindows names overview windows GA4 did not answer, whose earlier totals stay stored with their own dates.",
3003
+ access: "write",
3004
+ tier: "ga",
3005
+ inputSchema: gaSyncInputSchema,
3006
+ annotations: writeAnnotations({ idempotentHint: true, openWorldHint: true }),
3007
+ openApiOperations: ["POST /api/v1/projects/{name}/ga/sync"],
3008
+ handler: (client, input) => client.gaSync(input.project, { days: input.days, only: input.only })
3009
+ }),
2993
3010
  defineTool({
2994
3011
  name: "canonry_ga_oauth_start",
2995
3012
  title: "Authorize Google Analytics 4",
@@ -86,8 +86,8 @@ var CANONRY_MCP_TOOLKITS = [
86
86
  {
87
87
  name: "ga",
88
88
  title: "Google Analytics 4",
89
- description: "Read GA traffic (with social and creator platforms ranked by conversions per 1,000 sessions), AI/social referral history, attribution trend, session history, and GA4's Search Console landing-page report (Google organic clicks, impressions, CTR, position and active users per landing page).",
90
- whenToLoad: "Load to connect Google Analytics 4, select a property, or read traffic, referral and attribution data."
89
+ description: "Read GA traffic (with social and creator platforms ranked by conversions per 1,000 sessions), AI/social referral history, attribution trend, session history, and GA4's Search Console landing-page report (Google organic clicks, impressions, CTR, position and active users per landing page), and run a GA4 sync when stored data is stale.",
90
+ whenToLoad: "Load to connect Google Analytics 4, select a property, read traffic, referral and attribution data, or refresh it with a GA4 sync."
91
91
  },
92
92
  {
93
93
  name: "gbp",
@@ -24,14 +24,14 @@ import {
24
24
  resolveConfiguredAgentProvider,
25
25
  resolveSessionProviderAndModel,
26
26
  setAeroSystemPrompt
27
- } from "./chunk-VZLBOKGW.js";
27
+ } from "./chunk-KH63FTCS.js";
28
28
  import {
29
29
  AeroToolProfiles,
30
30
  AeroToolScopes,
31
31
  buildAeroStateTools,
32
32
  isAeroToolProfile,
33
33
  truncateToolResult
34
- } from "./chunk-WQT37J7C.js";
34
+ } from "./chunk-N5QUNRYO.js";
35
35
  import {
36
36
  answerServiceAdapters,
37
37
  answerServiceDescriptors
@@ -104,11 +104,11 @@ import {
104
104
  } from "./chunk-IA7U7XXS.js";
105
105
  import {
106
106
  createCanonryMcpServer
107
- } from "./chunk-MFZIEBHI.js";
107
+ } from "./chunk-BRDQSDEP.js";
108
108
  import {
109
109
  CANONRY_MCP_TIERS,
110
110
  CANONRY_MCP_TOOLKIT_NAMES
111
- } from "./chunk-XXKC266R.js";
111
+ } from "./chunk-F2TGOWIW.js";
112
112
  import {
113
113
  ApiClient
114
114
  } from "./chunk-VSPGQLEH.js";
@@ -160,7 +160,7 @@ import {
160
160
  import {
161
161
  CanonryMcpToolNames,
162
162
  canonryMcpTools
163
- } from "./chunk-2YRIEAVO.js";
163
+ } from "./chunk-D723JFOO.js";
164
164
  import {
165
165
  PACKAGE_VERSION
166
166
  } from "./chunk-AOJU5LKX.js";
@@ -6471,7 +6471,7 @@ function nonBlank(value) {
6471
6471
  return trimmed ? trimmed : void 0;
6472
6472
  }
6473
6473
  function resolveBuildCommit(env = process.env) {
6474
- const embedded = true ? "939707f8c544b14ba5a377e17d745ee4a8d86779" : void 0;
6474
+ const embedded = true ? "ef639792fe6c996d3e587f14e4b2c63bf3823c3d" : void 0;
6475
6475
  return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
6476
6476
  }
6477
6477
  function resolveInstanceIdentity(env = process.env) {
@@ -47,7 +47,7 @@ function queueServeHandoff() {
47
47
  async function runPendingServeHandoff(format) {
48
48
  if (!pendingServeHandoff) return;
49
49
  pendingServeHandoff = false;
50
- const { serveCommand } = await import("./serve-O4I7EIU4.js");
50
+ const { serveCommand } = await import("./serve-OMZ7PFR5.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -5,11 +5,11 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-WQT37J7C.js";
8
+ } from "./chunk-N5QUNRYO.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS,
11
11
  resolveAeroSkillDir
12
- } from "./chunk-XXKC266R.js";
12
+ } from "./chunk-F2TGOWIW.js";
13
13
  import {
14
14
  AGENT_REASONING_LEVELS,
15
15
  aeroStreamFn,
@@ -27,7 +27,7 @@ import {
27
27
  import {
28
28
  CanonryMcpToolNames,
29
29
  canonryMcpTools
30
- } from "./chunk-2YRIEAVO.js";
30
+ } from "./chunk-D723JFOO.js";
31
31
  import {
32
32
  createLogger
33
33
  } from "./chunk-XAF22QBW.js";
@@ -5,7 +5,7 @@ import {
5
5
  CanonryMcpToolNames,
6
6
  DEPRECATED_MCP_TOOL_ALIAS_NAMES,
7
7
  canonryMcpTools
8
- } from "./chunk-2YRIEAVO.js";
8
+ } from "./chunk-D723JFOO.js";
9
9
  import {
10
10
  CliError
11
11
  } from "./chunk-B7YR57FO.js";
@@ -783,7 +783,7 @@ var DEMO_CLI_COMMANDS = [{
783
783
  options: { host: stringOption(), port: stringOption(), "trust-proxy": multiStringOption() },
784
784
  allowPositionals: false,
785
785
  run: async (input) => {
786
- const { demoCommand } = await import("./demo-2EBAMJXS.js");
786
+ const { demoCommand } = await import("./demo-ZBTEOKUO.js");
787
787
  await demoCommand({
788
788
  host: getString(input.values, "host"),
789
789
  port: getString(input.values, "port"),
@@ -7453,7 +7453,7 @@ var SYSTEM_CLI_COMMANDS = [
7453
7453
  options: { access: stringOption() },
7454
7454
  run: async (input) => {
7455
7455
  if (input.positionals.length > 1) throw usageError("Expected at most one command group");
7456
- const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-I4EVHBN3.js"), import("./cli-commands-Q2OPF77S.js")]);
7456
+ const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-I4EVHBN3.js"), import("./cli-commands-5ZLXK4KF.js")]);
7457
7457
  printCliCatalog(REGISTERED_CLI_COMMANDS2, input.format, input.positionals[0], getString(input.values, "access"));
7458
7458
  }
7459
7459
  },
@@ -7502,7 +7502,7 @@ var SYSTEM_CLI_COMMANDS = [
7502
7502
  },
7503
7503
  allowPositionals: false,
7504
7504
  run: async (input) => {
7505
- const { initCommand } = await import("./init-ZE6F37WY.js");
7505
+ const { initCommand } = await import("./init-GTPG4CAO.js");
7506
7506
  await initCommand({
7507
7507
  force: getBoolean(input.values, "force"),
7508
7508
  ref: getString(input.values, "ref"),
@@ -7558,7 +7558,7 @@ var SYSTEM_CLI_COMMANDS = [
7558
7558
  allowPositionals: false,
7559
7559
  run: async (input) => {
7560
7560
  applyServerEnv(input.values);
7561
- const { serveCommand } = await import("./serve-O4I7EIU4.js");
7561
+ const { serveCommand } = await import("./serve-OMZ7PFR5.js");
7562
7562
  await serveCommand(input.format);
7563
7563
  }
7564
7564
  },
@@ -8934,8 +8934,8 @@ var AGENT_CLI_COMMANDS = [
8934
8934
  "timeout-ms": stringOption()
8935
8935
  },
8936
8936
  run: async (input) => {
8937
- const { coerceAgentProvider } = await import("./session-VPC2DFWP.js");
8938
- const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-2TVT5ECW.js");
8937
+ const { coerceAgentProvider } = await import("./session-4YVVEABA.js");
8938
+ const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-A74SUU7E.js");
8939
8939
  const { agentAsk } = await import("./agent-ask-4HETA3Z7.js");
8940
8940
  const usage = `canonry agent ask <project> "<prompt>" [--provider ${AGENT_PROVIDER_IDS.join("|")}] [--model <id>] [--scope all|read-only] [--profile default|ads-operator] [--context <json>] [--conversation <id>] [--max-tool-calls <n>] [--timeout-ms <ms>] [--format json]`;
8941
8941
  const project3 = requireProject(input, "agent.ask", usage);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REGISTERED_CLI_COMMANDS
3
- } from "./chunk-VY3SUJWI.js";
3
+ } from "./chunk-TSRJA76S.js";
4
4
  import "./chunk-6GO5VVAC.js";
5
5
  import "./chunk-VJWDBFSL.js";
6
6
  import "./chunk-3MYRQB3W.js";
package/dist/cli.js CHANGED
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env node --import tsx
2
2
  import {
3
3
  REGISTERED_CLI_COMMANDS
4
- } from "./chunk-VY3SUJWI.js";
4
+ } from "./chunk-TSRJA76S.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-QZMAW2K7.js";
9
+ } from "./chunk-K3TD32LM.js";
10
10
  import "./chunk-VJWDBFSL.js";
11
11
  import "./chunk-3MYRQB3W.js";
12
12
  import "./chunk-TSENU4GG.js";
@@ -40,7 +40,7 @@ function parseDemoTrustedProxies(values) {
40
40
  async function demoCommand(options) {
41
41
  const { host, port } = parseDemoListenOptions(options);
42
42
  const trustProxy = parseDemoTrustedProxies(options.trustProxy);
43
- const { createDemoServer } = await import("./demo-server-BLE5KA5J.js");
43
+ const { createDemoServer } = await import("./demo-server-Y2NV22QX.js");
44
44
  const app = await createDemoServer({ trustProxy });
45
45
  let stopping = false;
46
46
  const stop = () => {
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-WHJA4QYX.js";
9
9
  import {
10
10
  canonryMcpTools
11
- } from "./chunk-2YRIEAVO.js";
11
+ } from "./chunk-D723JFOO.js";
12
12
  import "./chunk-UX3HJV2V.js";
13
13
  import "./chunk-3SKGFNCD.js";
14
14
  import "./chunk-UF5MG47X.js";
package/dist/index.d.ts CHANGED
@@ -1306,8 +1306,8 @@ declare const seoCapabilitySchema: z.ZodEnum<{
1306
1306
  type SeoCapability = z.infer<typeof seoCapabilitySchema>;
1307
1307
  declare const seoTargetSchema: z.ZodObject<{
1308
1308
  kind: z.ZodEnum<{
1309
- domain: "domain";
1310
1309
  host: "host";
1310
+ domain: "domain";
1311
1311
  }>;
1312
1312
  value: z.ZodString;
1313
1313
  includeSubdomains: z.ZodBoolean;
@@ -1323,8 +1323,8 @@ type SeoDevice = z.infer<typeof seoDeviceSchema>;
1323
1323
  declare const seoCompetitorSchema: z.ZodObject<{
1324
1324
  target: z.ZodObject<{
1325
1325
  kind: z.ZodEnum<{
1326
- domain: "domain";
1327
1326
  host: "host";
1327
+ domain: "domain";
1328
1328
  }>;
1329
1329
  value: z.ZodString;
1330
1330
  includeSubdomains: z.ZodBoolean;
@@ -1352,24 +1352,24 @@ declare const seoCompetitorSchema: z.ZodObject<{
1352
1352
  }, z.core.$strict>;
1353
1353
  type SeoCompetitor = z.infer<typeof seoCompetitorSchema>;
1354
1354
  declare const seoKeywordGapModeSchema: z.ZodEnum<{
1355
- shared: "shared";
1356
1355
  missing: "missing";
1356
+ shared: "shared";
1357
1357
  }>;
1358
1358
  type SeoKeywordGapMode = z.infer<typeof seoKeywordGapModeSchema>;
1359
1359
  /** Missing means absent from the provider's database result for this pair, never a fresh Google rank check. */
1360
1360
  declare const seoKeywordGapSchema: z.ZodObject<{
1361
1361
  target: z.ZodObject<{
1362
1362
  kind: z.ZodEnum<{
1363
- domain: "domain";
1364
1363
  host: "host";
1364
+ domain: "domain";
1365
1365
  }>;
1366
1366
  value: z.ZodString;
1367
1367
  includeSubdomains: z.ZodBoolean;
1368
1368
  }, z.core.$strict>;
1369
1369
  competitor: z.ZodObject<{
1370
1370
  kind: z.ZodEnum<{
1371
- domain: "domain";
1372
1371
  host: "host";
1372
+ domain: "domain";
1373
1373
  }>;
1374
1374
  value: z.ZodString;
1375
1375
  includeSubdomains: z.ZodBoolean;
@@ -1383,8 +1383,8 @@ declare const seoKeywordGapSchema: z.ZodObject<{
1383
1383
  keywordDifficulty: z.ZodNullable<z.ZodNumber>;
1384
1384
  cpcUsd: z.ZodNullable<z.ZodNumber>;
1385
1385
  kind: z.ZodEnum<{
1386
- shared: "shared";
1387
1386
  missing: "missing";
1387
+ shared: "shared";
1388
1388
  outranked: "outranked";
1389
1389
  }>;
1390
1390
  rankGap: z.ZodNullable<z.ZodNumber>;
@@ -1440,16 +1440,16 @@ declare const seoMarketRankingSchema: z.ZodObject<{
1440
1440
  locationLabel: z.ZodString;
1441
1441
  target: z.ZodObject<{
1442
1442
  kind: z.ZodEnum<{
1443
- domain: "domain";
1444
1443
  host: "host";
1444
+ domain: "domain";
1445
1445
  }>;
1446
1446
  value: z.ZodString;
1447
1447
  includeSubdomains: z.ZodBoolean;
1448
1448
  }, z.core.$strict>;
1449
1449
  searchStatus: z.ZodEnum<{
1450
1450
  partial: "partial";
1451
- completed: "completed";
1452
1451
  failed: "failed";
1452
+ completed: "completed";
1453
1453
  cancelled: "cancelled";
1454
1454
  }>;
1455
1455
  rankOrganic: z.ZodNullable<z.ZodNumber>;
@@ -1510,8 +1510,8 @@ declare const seoResultsSchema: z.ZodObject<{
1510
1510
  domainIntelligence: z.ZodArray<z.ZodObject<{
1511
1511
  target: z.ZodObject<{
1512
1512
  kind: z.ZodEnum<{
1513
- domain: "domain";
1514
1513
  host: "host";
1514
+ domain: "domain";
1515
1515
  }>;
1516
1516
  value: z.ZodString;
1517
1517
  includeSubdomains: z.ZodBoolean;
@@ -1542,8 +1542,8 @@ declare const seoResultsSchema: z.ZodObject<{
1542
1542
  rankedKeywords: z.ZodArray<z.ZodObject<{
1543
1543
  target: z.ZodObject<{
1544
1544
  kind: z.ZodEnum<{
1545
- domain: "domain";
1546
1545
  host: "host";
1546
+ domain: "domain";
1547
1547
  }>;
1548
1548
  value: z.ZodString;
1549
1549
  includeSubdomains: z.ZodBoolean;
@@ -1588,16 +1588,16 @@ declare const seoResultsSchema: z.ZodObject<{
1588
1588
  locationLabel: z.ZodString;
1589
1589
  target: z.ZodObject<{
1590
1590
  kind: z.ZodEnum<{
1591
- domain: "domain";
1592
1591
  host: "host";
1592
+ domain: "domain";
1593
1593
  }>;
1594
1594
  value: z.ZodString;
1595
1595
  includeSubdomains: z.ZodBoolean;
1596
1596
  }, z.core.$strict>;
1597
1597
  searchStatus: z.ZodEnum<{
1598
1598
  partial: "partial";
1599
- completed: "completed";
1600
1599
  failed: "failed";
1600
+ completed: "completed";
1601
1601
  cancelled: "cancelled";
1602
1602
  }>;
1603
1603
  rankOrganic: z.ZodNullable<z.ZodNumber>;
@@ -1627,8 +1627,8 @@ declare const seoResultsSchema: z.ZodObject<{
1627
1627
  competitors: z.ZodArray<z.ZodObject<{
1628
1628
  target: z.ZodObject<{
1629
1629
  kind: z.ZodEnum<{
1630
- domain: "domain";
1631
1630
  host: "host";
1631
+ domain: "domain";
1632
1632
  }>;
1633
1633
  value: z.ZodString;
1634
1634
  includeSubdomains: z.ZodBoolean;
@@ -1657,16 +1657,16 @@ declare const seoResultsSchema: z.ZodObject<{
1657
1657
  keywordGaps: z.ZodArray<z.ZodObject<{
1658
1658
  target: z.ZodObject<{
1659
1659
  kind: z.ZodEnum<{
1660
- domain: "domain";
1661
1660
  host: "host";
1661
+ domain: "domain";
1662
1662
  }>;
1663
1663
  value: z.ZodString;
1664
1664
  includeSubdomains: z.ZodBoolean;
1665
1665
  }, z.core.$strict>;
1666
1666
  competitor: z.ZodObject<{
1667
1667
  kind: z.ZodEnum<{
1668
- domain: "domain";
1669
1668
  host: "host";
1669
+ domain: "domain";
1670
1670
  }>;
1671
1671
  value: z.ZodString;
1672
1672
  includeSubdomains: z.ZodBoolean;
@@ -1680,8 +1680,8 @@ declare const seoResultsSchema: z.ZodObject<{
1680
1680
  keywordDifficulty: z.ZodNullable<z.ZodNumber>;
1681
1681
  cpcUsd: z.ZodNullable<z.ZodNumber>;
1682
1682
  kind: z.ZodEnum<{
1683
- shared: "shared";
1684
1683
  missing: "missing";
1684
+ shared: "shared";
1685
1685
  outranked: "outranked";
1686
1686
  }>;
1687
1687
  rankGap: z.ZodNullable<z.ZodNumber>;
@@ -1825,7 +1825,7 @@ declare const seoProfiles: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1825
1825
  connectionId: string;
1826
1826
  capabilities: ("keyword-metrics" | "domain-intelligence" | "ranked-keywords" | "market-rankings" | "competitor-discovery" | "keyword-gaps")[];
1827
1827
  targets: {
1828
- kind: "domain" | "host";
1828
+ kind: "host" | "domain";
1829
1829
  value: string;
1830
1830
  includeSubdomains: boolean;
1831
1831
  }[];
@@ -1834,12 +1834,12 @@ declare const seoProfiles: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1834
1834
  languageCode: string;
1835
1835
  limit: number;
1836
1836
  scope: {
1837
- kind: "project" | "property" | "group" | "market";
1837
+ kind: "project" | "property" | "market" | "group";
1838
1838
  key?: string | undefined;
1839
1839
  expectedPlanRevision?: number | undefined;
1840
1840
  };
1841
1841
  competitors?: {
1842
- kind: "domain" | "host";
1842
+ kind: "host" | "domain";
1843
1843
  value: string;
1844
1844
  includeSubdomains: boolean;
1845
1845
  }[] | undefined;
@@ -1870,7 +1870,7 @@ declare const seoProfiles: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1870
1870
  connectionId: string;
1871
1871
  capabilities: ("keyword-metrics" | "domain-intelligence" | "ranked-keywords" | "market-rankings" | "competitor-discovery" | "keyword-gaps")[];
1872
1872
  targets: {
1873
- kind: "domain" | "host";
1873
+ kind: "host" | "domain";
1874
1874
  value: string;
1875
1875
  includeSubdomains: boolean;
1876
1876
  }[];
@@ -1879,12 +1879,12 @@ declare const seoProfiles: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1879
1879
  languageCode: string;
1880
1880
  limit: number;
1881
1881
  scope: {
1882
- kind: "project" | "property" | "group" | "market";
1882
+ kind: "project" | "property" | "market" | "group";
1883
1883
  key?: string | undefined;
1884
1884
  expectedPlanRevision?: number | undefined;
1885
1885
  };
1886
1886
  competitors?: {
1887
- kind: "domain" | "host";
1887
+ kind: "host" | "domain";
1888
1888
  value: string;
1889
1889
  includeSubdomains: boolean;
1890
1890
  }[] | undefined;
@@ -2067,7 +2067,7 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2067
2067
  connectionId: string;
2068
2068
  capabilities: ("keyword-metrics" | "domain-intelligence" | "ranked-keywords" | "market-rankings" | "competitor-discovery" | "keyword-gaps")[];
2069
2069
  targets: {
2070
- kind: "domain" | "host";
2070
+ kind: "host" | "domain";
2071
2071
  value: string;
2072
2072
  includeSubdomains: boolean;
2073
2073
  }[];
@@ -2076,12 +2076,12 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2076
2076
  languageCode: string;
2077
2077
  limit: number;
2078
2078
  scope: {
2079
- kind: "project" | "property" | "group" | "market";
2079
+ kind: "project" | "property" | "market" | "group";
2080
2080
  key?: string | undefined;
2081
2081
  expectedPlanRevision?: number | undefined;
2082
2082
  };
2083
2083
  competitors?: {
2084
- kind: "domain" | "host";
2084
+ kind: "host" | "domain";
2085
2085
  value: string;
2086
2086
  includeSubdomains: boolean;
2087
2087
  }[] | undefined;
@@ -2112,7 +2112,7 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2112
2112
  connectionId: string;
2113
2113
  capabilities: ("keyword-metrics" | "domain-intelligence" | "ranked-keywords" | "market-rankings" | "competitor-discovery" | "keyword-gaps")[];
2114
2114
  targets: {
2115
- kind: "domain" | "host";
2115
+ kind: "host" | "domain";
2116
2116
  value: string;
2117
2117
  includeSubdomains: boolean;
2118
2118
  }[];
@@ -2121,12 +2121,12 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2121
2121
  languageCode: string;
2122
2122
  limit: number;
2123
2123
  scope: {
2124
- kind: "project" | "property" | "group" | "market";
2124
+ kind: "project" | "property" | "market" | "group";
2125
2125
  key?: string | undefined;
2126
2126
  expectedPlanRevision?: number | undefined;
2127
2127
  };
2128
2128
  competitors?: {
2129
- kind: "domain" | "host";
2129
+ kind: "host" | "domain";
2130
2130
  value: string;
2131
2131
  includeSubdomains: boolean;
2132
2132
  }[] | undefined;
@@ -2280,7 +2280,7 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2280
2280
  tableName: "seo_jobs";
2281
2281
  dataType: "string";
2282
2282
  columnType: "SQLiteText";
2283
- data: "partial" | "completed" | "queued" | "running" | "failed" | "cancelled" | "reconciliation-required";
2283
+ data: "queued" | "running" | "partial" | "failed" | "completed" | "cancelled" | "reconciliation-required";
2284
2284
  driverParam: string;
2285
2285
  notNull: true;
2286
2286
  hasDefault: false;
@@ -2293,7 +2293,7 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2293
2293
  generated: undefined;
2294
2294
  }, {}, {
2295
2295
  length: number | undefined;
2296
- $type: "partial" | "completed" | "queued" | "running" | "failed" | "cancelled" | "reconciliation-required";
2296
+ $type: "queued" | "running" | "partial" | "failed" | "completed" | "cancelled" | "reconciliation-required";
2297
2297
  }>;
2298
2298
  cancelRequested: drizzle_orm_sqlite_core.SQLiteColumn<{
2299
2299
  name: "cancel_requested";
@@ -2457,7 +2457,7 @@ declare const seoTasks: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2457
2457
  tableName: "seo_tasks";
2458
2458
  dataType: "string";
2459
2459
  columnType: "SQLiteText";
2460
- data: "partial" | "completed" | "queued" | "running" | "failed" | "cancelled" | "reconciliation-required";
2460
+ data: "queued" | "running" | "partial" | "failed" | "completed" | "cancelled" | "reconciliation-required";
2461
2461
  driverParam: string;
2462
2462
  notNull: true;
2463
2463
  hasDefault: false;
@@ -2470,7 +2470,7 @@ declare const seoTasks: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2470
2470
  generated: undefined;
2471
2471
  }, {}, {
2472
2472
  length: number | undefined;
2473
- $type: "partial" | "completed" | "queued" | "running" | "failed" | "cancelled" | "reconciliation-required";
2473
+ $type: "queued" | "running" | "partial" | "failed" | "completed" | "cancelled" | "reconciliation-required";
2474
2474
  }>;
2475
2475
  leaseOwner: drizzle_orm_sqlite_core.SQLiteColumn<{
2476
2476
  name: "lease_owner";
@@ -2534,7 +2534,7 @@ declare const seoTasks: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2534
2534
  tableName: "seo_tasks";
2535
2535
  dataType: "string";
2536
2536
  columnType: "SQLiteText";
2537
- data: "unknown" | "partial" | "completed" | "failed";
2537
+ data: "unknown" | "partial" | "failed" | "completed";
2538
2538
  driverParam: string;
2539
2539
  notNull: false;
2540
2540
  hasDefault: false;
@@ -2547,7 +2547,7 @@ declare const seoTasks: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
2547
2547
  generated: undefined;
2548
2548
  }, {}, {
2549
2549
  length: number | undefined;
2550
- $type: "unknown" | "partial" | "completed" | "failed";
2550
+ $type: "unknown" | "partial" | "failed" | "completed";
2551
2551
  }>;
2552
2552
  reservedMicros: drizzle_orm_sqlite_core.SQLiteColumn<{
2553
2553
  name: "reserved_micros";
@@ -6271,7 +6271,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6271
6271
  tableName: "query_snapshots";
6272
6272
  dataType: "string";
6273
6273
  columnType: "SQLiteText";
6274
- data: "partial" | "unsupported" | "complete" | "failed";
6274
+ data: "complete" | "partial" | "failed" | "unsupported";
6275
6275
  driverParam: string;
6276
6276
  notNull: false;
6277
6277
  hasDefault: false;
@@ -6284,7 +6284,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6284
6284
  generated: undefined;
6285
6285
  }, {}, {
6286
6286
  length: number | undefined;
6287
- $type: "partial" | "unsupported" | "complete" | "failed";
6287
+ $type: "complete" | "partial" | "failed" | "unsupported";
6288
6288
  }>;
6289
6289
  sourceCount: drizzle_orm_sqlite_core.SQLiteColumn<{
6290
6290
  name: "source_count";
@@ -6651,7 +6651,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6651
6651
  parserVersion: string;
6652
6652
  };
6653
6653
  completion: {
6654
- status: "partial" | "complete" | "failed" | "pending";
6654
+ status: "complete" | "partial" | "failed" | "pending";
6655
6655
  finishReason: string | null;
6656
6656
  upstreamStatus: string | null;
6657
6657
  upstreamRequestId: string | null;
@@ -6756,7 +6756,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6756
6756
  parserVersion: string;
6757
6757
  };
6758
6758
  completion: {
6759
- status: "partial" | "complete" | "failed" | "pending";
6759
+ status: "complete" | "partial" | "failed" | "pending";
6760
6760
  finishReason: string | null;
6761
6761
  upstreamStatus: string | null;
6762
6762
  upstreamRequestId: string | null;
@@ -31452,7 +31452,7 @@ declare const researchRunQueries: drizzle_orm_sqlite_core.SQLiteTableWithColumns
31452
31452
  parserVersion: string;
31453
31453
  };
31454
31454
  completion: {
31455
- status: "partial" | "complete" | "failed" | "pending";
31455
+ status: "complete" | "partial" | "failed" | "pending";
31456
31456
  finishReason: string | null;
31457
31457
  upstreamStatus: string | null;
31458
31458
  upstreamRequestId: string | null;
@@ -31557,7 +31557,7 @@ declare const researchRunQueries: drizzle_orm_sqlite_core.SQLiteTableWithColumns
31557
31557
  parserVersion: string;
31558
31558
  };
31559
31559
  completion: {
31560
- status: "partial" | "complete" | "failed" | "pending";
31560
+ status: "complete" | "partial" | "failed" | "pending";
31561
31561
  finishReason: string | null;
31562
31562
  upstreamStatus: string | null;
31563
31563
  upstreamRequestId: string | null;
@@ -34593,7 +34593,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
34593
34593
  tableName: "gbp_reviews";
34594
34594
  dataType: "string";
34595
34595
  columnType: "SQLiteText";
34596
- data: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
34596
+ data: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
34597
34597
  driverParam: string;
34598
34598
  notNull: true;
34599
34599
  hasDefault: true;
@@ -34606,7 +34606,7 @@ declare const gbpReviews: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
34606
34606
  generated: undefined;
34607
34607
  }, {}, {
34608
34608
  length: number | undefined;
34609
- $type: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
34609
+ $type: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
34610
34610
  }>;
34611
34611
  alertStateAt: drizzle_orm_sqlite_core.SQLiteColumn<{
34612
34612
  name: "alert_state_at";
@@ -34903,7 +34903,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
34903
34903
  tableName: "gbp_review_ratings";
34904
34904
  dataType: "string";
34905
34905
  columnType: "SQLiteText";
34906
- data: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
34906
+ data: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
34907
34907
  driverParam: string;
34908
34908
  notNull: true;
34909
34909
  hasDefault: true;
@@ -34916,7 +34916,7 @@ declare const gbpReviewRatings: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
34916
34916
  generated: undefined;
34917
34917
  }, {}, {
34918
34918
  length: number | undefined;
34919
- $type: "none" | "baseline" | "stale" | "pending" | "sent" | "skipped" | "suppressed";
34919
+ $type: "none" | "baseline" | "stale" | "skipped" | "pending" | "sent" | "suppressed";
34920
34920
  }>;
34921
34921
  alertStateAt: drizzle_orm_sqlite_core.SQLiteColumn<{
34922
34922
  name: "alert_state_at";
@@ -36162,7 +36162,7 @@ declare const adsOperationSteps: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
36162
36162
  tableName: "ads_operation_steps";
36163
36163
  dataType: "string";
36164
36164
  columnType: "SQLiteText";
36165
- data: "unknown" | "active" | "failed" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
36165
+ data: "unknown" | "failed" | "active" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
36166
36166
  driverParam: string;
36167
36167
  notNull: true;
36168
36168
  hasDefault: false;
@@ -36175,7 +36175,7 @@ declare const adsOperationSteps: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
36175
36175
  generated: undefined;
36176
36176
  }, {}, {
36177
36177
  length: number | undefined;
36178
- $type: "unknown" | "active" | "failed" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
36178
+ $type: "unknown" | "failed" | "active" | "pending" | "executing" | "rollback_executing" | "rolled_back" | "rollback_failed";
36179
36179
  }>;
36180
36180
  providerUpdatedAt: drizzle_orm_sqlite_core.SQLiteColumn<{
36181
36181
  name: "provider_updated_at";
@@ -42930,8 +42930,8 @@ type ClassificationConfig = z.infer<typeof classificationConfigSchema>;
42930
42930
  declare const seoInstallConfigSchema: z.ZodObject<{
42931
42931
  enabled: z.ZodBoolean;
42932
42932
  fundingMode: z.ZodEnum<{
42933
- hosted: "hosted";
42934
42933
  "self-hosted": "self-hosted";
42934
+ hosted: "hosted";
42935
42935
  }>;
42936
42936
  policy: z.ZodObject<{
42937
42937
  maxRunCostMicros: z.ZodNumber;
package/dist/index.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  createGoogleMarketingCredentialStore,
4
4
  createGoogleMarketingRuntime,
5
5
  createServer
6
- } from "./chunk-NUYGUUZZ.js";
7
- import "./chunk-VZLBOKGW.js";
8
- import "./chunk-WQT37J7C.js";
6
+ } from "./chunk-JMYALC4E.js";
7
+ import "./chunk-KH63FTCS.js";
8
+ import "./chunk-N5QUNRYO.js";
9
9
  import "./chunk-N2BYOBOL.js";
10
10
  import "./chunk-XAJS5FH3.js";
11
11
  import "./chunk-ELCLGWUT.js";
@@ -16,15 +16,15 @@ import "./chunk-WAAESDBG.js";
16
16
  import "./chunk-TSENU4GG.js";
17
17
  import "./chunk-JPRWAASQ.js";
18
18
  import "./chunk-IA7U7XXS.js";
19
- import "./chunk-MFZIEBHI.js";
20
- import "./chunk-XXKC266R.js";
19
+ import "./chunk-BRDQSDEP.js";
20
+ import "./chunk-F2TGOWIW.js";
21
21
  import "./chunk-VSPGQLEH.js";
22
22
  import {
23
23
  loadConfig
24
24
  } from "./chunk-NLW6XEUI.js";
25
25
  import "./chunk-QNO2KO66.js";
26
26
  import "./chunk-WHJA4QYX.js";
27
- import "./chunk-2YRIEAVO.js";
27
+ import "./chunk-D723JFOO.js";
28
28
  import "./chunk-UX3HJV2V.js";
29
29
  import "./chunk-3SKGFNCD.js";
30
30
  import "./chunk-UF5MG47X.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  buildSetupState,
9
9
  queueServeHandoff
10
- } from "./chunk-QZMAW2K7.js";
10
+ } from "./chunk-K3TD32LM.js";
11
11
  import "./chunk-VJWDBFSL.js";
12
12
  import "./chunk-WAAESDBG.js";
13
13
  import "./chunk-JPRWAASQ.js";
package/dist/mcp.js CHANGED
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-LBVLZWLF.js";
4
4
  import {
5
5
  createCanonryMcpServer
6
- } from "./chunk-MFZIEBHI.js";
7
- import "./chunk-XXKC266R.js";
6
+ } from "./chunk-BRDQSDEP.js";
7
+ import "./chunk-F2TGOWIW.js";
8
8
  import {
9
9
  createApiClient
10
10
  } from "./chunk-VSPGQLEH.js";
11
11
  import "./chunk-NLW6XEUI.js";
12
12
  import "./chunk-QNO2KO66.js";
13
- import "./chunk-2YRIEAVO.js";
13
+ import "./chunk-D723JFOO.js";
14
14
  import "./chunk-UX3HJV2V.js";
15
15
  import "./chunk-3SKGFNCD.js";
16
16
  import "./chunk-UF5MG47X.js";
@@ -9,9 +9,9 @@ import {
9
9
  allowsKeylessFirstRunSetup,
10
10
  createServer,
11
11
  waitForServerRuntimeStartup
12
- } from "./chunk-NUYGUUZZ.js";
13
- import "./chunk-VZLBOKGW.js";
14
- import "./chunk-WQT37J7C.js";
12
+ } from "./chunk-JMYALC4E.js";
13
+ import "./chunk-KH63FTCS.js";
14
+ import "./chunk-N5QUNRYO.js";
15
15
  import "./chunk-N2BYOBOL.js";
16
16
  import "./chunk-XAJS5FH3.js";
17
17
  import "./chunk-ELCLGWUT.js";
@@ -36,8 +36,8 @@ import {
36
36
  setTelemetrySource,
37
37
  trackEvent
38
38
  } from "./chunk-IA7U7XXS.js";
39
- import "./chunk-MFZIEBHI.js";
40
- import "./chunk-XXKC266R.js";
39
+ import "./chunk-BRDQSDEP.js";
40
+ import "./chunk-F2TGOWIW.js";
41
41
  import "./chunk-VSPGQLEH.js";
42
42
  import {
43
43
  getConfigDir,
@@ -50,7 +50,7 @@ import {
50
50
  shouldPrintServeSkillsNudge
51
51
  } from "./chunk-QNO2KO66.js";
52
52
  import "./chunk-WHJA4QYX.js";
53
- import "./chunk-2YRIEAVO.js";
53
+ import "./chunk-D723JFOO.js";
54
54
  import "./chunk-UX3HJV2V.js";
55
55
  import "./chunk-3SKGFNCD.js";
56
56
  import "./chunk-UF5MG47X.js";
@@ -9,18 +9,18 @@ import {
9
9
  resolveAeroModel,
10
10
  resolveConfiguredAgentProvider,
11
11
  resolveSessionProviderAndModel
12
- } from "./chunk-VZLBOKGW.js";
13
- import "./chunk-WQT37J7C.js";
12
+ } from "./chunk-KH63FTCS.js";
13
+ import "./chunk-N5QUNRYO.js";
14
14
  import {
15
15
  resolveAeroSkillDir
16
- } from "./chunk-XXKC266R.js";
16
+ } from "./chunk-F2TGOWIW.js";
17
17
  import "./chunk-VSPGQLEH.js";
18
18
  import {
19
19
  AgentProviders,
20
20
  coerceAgentProvider,
21
21
  listAgentProviders
22
22
  } from "./chunk-NLW6XEUI.js";
23
- import "./chunk-2YRIEAVO.js";
23
+ import "./chunk-D723JFOO.js";
24
24
  import "./chunk-UX3HJV2V.js";
25
25
  import "./chunk-3SKGFNCD.js";
26
26
  import "./chunk-UF5MG47X.js";
@@ -11,10 +11,10 @@ import {
11
11
  buildAllTools,
12
12
  buildReadTools,
13
13
  isAeroToolProfile
14
- } from "./chunk-WQT37J7C.js";
14
+ } from "./chunk-N5QUNRYO.js";
15
15
  import "./chunk-VSPGQLEH.js";
16
16
  import "./chunk-NLW6XEUI.js";
17
- import "./chunk-2YRIEAVO.js";
17
+ import "./chunk-D723JFOO.js";
18
18
  import "./chunk-UX3HJV2V.js";
19
19
  import "./chunk-3SKGFNCD.js";
20
20
  import "./chunk-UF5MG47X.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonry/canonry",
3
- "version": "7.123.3",
3
+ "version": "7.124.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": [