@canonry/canonry 7.123.2 → 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.
Files changed (28) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +1 -1
  2. package/dist/{backfill-YL2FNUFE.js → backfill-UDC4DTJJ.js} +3 -3
  3. package/dist/{chunk-54X76NGL.js → chunk-7ELQ3IH4.js} +1 -1
  4. package/dist/{chunk-MFZIEBHI.js → chunk-BRDQSDEP.js} +2 -2
  5. package/dist/{chunk-2YRIEAVO.js → chunk-D723JFOO.js} +17 -0
  6. package/dist/{chunk-V7OJEOEQ.js → chunk-EHCH77U4.js} +19 -30
  7. package/dist/{chunk-XXKC266R.js → chunk-F2TGOWIW.js} +2 -2
  8. package/dist/{chunk-MMCYPRRQ.js → chunk-JMYALC4E.js} +9 -9
  9. package/dist/{chunk-RII4R3ZZ.js → chunk-K3TD32LM.js} +1 -1
  10. package/dist/{chunk-2FZM66FH.js → chunk-KH63FTCS.js} +3 -3
  11. package/dist/{chunk-MKCI6M2G.js → chunk-N5QUNRYO.js} +2 -2
  12. package/dist/{chunk-LN7L45WN.js → chunk-TSRJA76S.js} +14 -14
  13. package/dist/{chunk-NGD7TX3R.js → chunk-X6O6Q72D.js} +1 -1
  14. package/dist/{chunk-UUKO5OCN.js → chunk-XS5OT4FV.js} +3 -3
  15. package/dist/{cli-commands-RQQ2IA24.js → cli-commands-5ZLXK4KF.js} +1 -1
  16. package/dist/cli.js +2 -2
  17. package/dist/{dashboard-TCT2OZFG.js → dashboard-FRSMK5KF.js} +1 -1
  18. package/dist/{demo-JQNKAWZI.js → demo-ZBTEOKUO.js} +1 -1
  19. package/dist/{demo-server-7SFA77LN.js → demo-server-Y2NV22QX.js} +3 -3
  20. package/dist/index.d.ts +33 -33
  21. package/dist/index.js +9 -9
  22. package/dist/{init-KSAQEVOI.js → init-GTPG4CAO.js} +1 -1
  23. package/dist/{intelligence-service-XOQWGWUQ.js → intelligence-service-WWG4RBK3.js} +2 -2
  24. package/dist/mcp.js +3 -3
  25. package/dist/{serve-MCHKKOOS.js → serve-OMZ7PFR5.js} +10 -10
  26. package/dist/{session-7DJVNGNI.js → session-4YVVEABA.js} +5 -5
  27. package/dist/{tools-DPR6GTYF.js → tools-A74SUU7E.js} +3 -3
  28. package/package.json +1 -1
@@ -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,
@@ -10,8 +10,8 @@ import {
10
10
  backfillSnapshotAttributionCommand,
11
11
  backfillTrafficClassificationCommand,
12
12
  replayQueryAuditLog
13
- } from "./chunk-UUKO5OCN.js";
14
- import "./chunk-54X76NGL.js";
13
+ } from "./chunk-XS5OT4FV.js";
14
+ import "./chunk-7ELQ3IH4.js";
15
15
  import "./chunk-NLW6XEUI.js";
16
16
  import "./chunk-B7YR57FO.js";
17
17
  import "./chunk-RXDYCDE6.js";
@@ -19,7 +19,7 @@ import "./chunk-XAF22QBW.js";
19
19
  import {
20
20
  backfillProjectAnswerMentions,
21
21
  backfillProjectAnswerMentionsInChunks
22
- } from "./chunk-V7OJEOEQ.js";
22
+ } from "./chunk-EHCH77U4.js";
23
23
  import "./chunk-YA54KGF3.js";
24
24
  import "./chunk-UEIMKBG6.js";
25
25
  import "./chunk-W7KF43JV.js";
@@ -7,7 +7,7 @@ import {
7
7
  mergeSplitJourneyVisitors,
8
8
  repairAiReferralArrivalsOnStartup,
9
9
  writeUnrecognizedAgentBuckets
10
- } from "./chunk-V7OJEOEQ.js";
10
+ } from "./chunk-EHCH77U4.js";
11
11
  import {
12
12
  AGENT_TRUST_RULES_VERSION,
13
13
  BROWSER_AGENT_BOT_IDS,
@@ -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",
@@ -1714,7 +1714,7 @@ async function userSessionRoutes(app, opts = {}) {
1714
1714
  }));
1715
1715
  };
1716
1716
  const cookieSessionId = (request) => parseCookieHeader(request.headers.cookie)[USER_SESSION_COOKIE_NAME];
1717
- app.get("/auth/session", async (request, reply) => {
1717
+ app.get("/auth/session", { config: { skipInstanceAuth: true } }, async (request, reply) => {
1718
1718
  if (!anyUsersExist(app.db)) return { authRequired: false, user: null };
1719
1719
  const signInMethods = opts.chatgptSignIn?.() ? { signInMethods: { chatgpt: true } } : {};
1720
1720
  const token = cookieSessionId(request);
@@ -1726,7 +1726,7 @@ async function userSessionRoutes(app, opts = {}) {
1726
1726
  ...signInMethods
1727
1727
  };
1728
1728
  });
1729
- app.post("/auth/login", async (request, reply) => {
1729
+ app.post("/auth/login", { config: { skipInstanceAuth: true } }, async (request, reply) => {
1730
1730
  const parsed = loginRequestSchema.safeParse(request.body);
1731
1731
  if (!parsed.success) {
1732
1732
  throw validationError("Enter a name and a password.", { issues: parsed.error.issues });
@@ -1749,7 +1749,7 @@ async function userSessionRoutes(app, opts = {}) {
1749
1749
  user: { name: account.name, role: account.role }
1750
1750
  });
1751
1751
  });
1752
- app.get("/auth/sessions", async (request, reply) => {
1752
+ app.get("/auth/sessions", { config: { skipInstanceAuth: true } }, async (request, reply) => {
1753
1753
  const token = cookieSessionId(request);
1754
1754
  const resolved = token ? resolveUserSession(app.db, token) : null;
1755
1755
  if (!token || !resolved) {
@@ -1769,7 +1769,7 @@ async function userSessionRoutes(app, opts = {}) {
1769
1769
  }))
1770
1770
  });
1771
1771
  });
1772
- app.delete("/auth/sessions", async (request, reply) => {
1772
+ app.delete("/auth/sessions", { config: { skipInstanceAuth: true } }, async (request, reply) => {
1773
1773
  const token = cookieSessionId(request);
1774
1774
  const resolved = token ? resolveUserSession(app.db, token) : null;
1775
1775
  if (!token || !resolved) {
@@ -1781,7 +1781,7 @@ async function userSessionRoutes(app, opts = {}) {
1781
1781
  clearSessionCookie(request, reply);
1782
1782
  return reply.status(204).send();
1783
1783
  });
1784
- app.post("/auth/logout", async (request, reply) => {
1784
+ app.post("/auth/logout", { config: { skipInstanceAuth: true } }, async (request, reply) => {
1785
1785
  assertCookieWriteOrigin(request);
1786
1786
  const sessionId = cookieSessionId(request);
1787
1787
  if (sessionId) deleteUserSession(app.db, sessionId);
@@ -6469,19 +6469,6 @@ function requireGooglePropertyDiscovery(request) {
6469
6469
  function hashApiKey(key) {
6470
6470
  return crypto8.createHash("sha256").update(key).digest("hex");
6471
6471
  }
6472
- var SKIP_PATHS = ["/health"];
6473
- function shouldSkipAuth(url) {
6474
- if (SKIP_PATHS.includes(url)) return true;
6475
- if (url.endsWith("/openapi.json")) return true;
6476
- if (url.endsWith("/google/callback")) return true;
6477
- if (url.endsWith("/google-marketing/callback")) return true;
6478
- if (url.endsWith("/session") || url.endsWith("/session/setup")) return true;
6479
- if (url.endsWith("/auth/session") || url.endsWith("/auth/login") || url.endsWith("/auth/logout")) return true;
6480
- if (url.endsWith("/auth/sessions")) return true;
6481
- if (url.endsWith("/auth/chatgpt/status") || url.endsWith("/auth/chatgpt/start") || url.endsWith("/auth/chatgpt/callback") || url.endsWith("/auth/chatgpt/disconnect") || url.endsWith("/auth/chatgpt/models") || url.endsWith("/auth/chatgpt/model")) return true;
6482
- if (url.endsWith("/traffic/cloudflare/ingest")) return true;
6483
- return false;
6484
- }
6485
6472
  var MCP_DELEGATED_KEY_MAX_AGE_MS = 60 * 60 * 1e3;
6486
6473
  var USERS_READ_SCOPE = "users.read";
6487
6474
  var USERS_WRITE_SCOPE = "users.write";
@@ -6633,8 +6620,8 @@ function applyScopedWriteGates(request) {
6633
6620
  }
6634
6621
  async function authPlugin(app, opts = {}) {
6635
6622
  app.addHook("onRequest", async (request, reply) => {
6623
+ if (request.routeOptions.config?.skipInstanceAuth === true) return;
6636
6624
  const url = request.url.split("?")[0];
6637
- if (shouldSkipAuth(url)) return;
6638
6625
  const header2 = request.headers.authorization;
6639
6626
  let key;
6640
6627
  let keyArrivedInCookie = false;
@@ -50008,7 +49995,7 @@ function withLegacyAgentReadinessOperations(catalog) {
50008
49995
  });
50009
49996
  }
50010
49997
  async function openApiRoutes(app, opts = {}) {
50011
- app.get("/openapi.json", async (_request, reply) => {
49998
+ app.get("/openapi.json", { config: { skipInstanceAuth: true } }, async (_request, reply) => {
50012
49999
  return reply.type("application/json").send(buildOpenApiDocument(opts));
50013
50000
  });
50014
50001
  }
@@ -51268,7 +51255,8 @@ function appendCookie(reply, cookie) {
51268
51255
  }
51269
51256
  async function chatGptRoutes(app, opts) {
51270
51257
  const dashboardPath = opts.dashboardPath ?? "/";
51271
- const perCaller = (max2) => ({
51258
+ const signInRouteConfig = (max2) => ({
51259
+ skipInstanceAuth: true,
51272
51260
  rateLimit: {
51273
51261
  timeWindow: "1 minute",
51274
51262
  keyGenerator: (request) => {
@@ -51320,7 +51308,7 @@ async function chatGptRoutes(app, opts) {
51320
51308
  reply.header("cache-control", "no-store");
51321
51309
  return reply.redirect(withParam(returnTo ?? dashboardPath, "chatgpt_error", error), 302);
51322
51310
  };
51323
- app.get("/auth/chatgpt/status", { config: perCaller(120) }, async (request, reply) => {
51311
+ app.get("/auth/chatgpt/status", { config: signInRouteConfig(120) }, async (request, reply) => {
51324
51312
  reply.header("cache-control", "no-store");
51325
51313
  const userId = signedInUserId(request, reply);
51326
51314
  if (!opts.accounts) {
@@ -51328,7 +51316,7 @@ async function chatGptRoutes(app, opts) {
51328
51316
  }
51329
51317
  return opts.accounts.status(userId);
51330
51318
  });
51331
- app.get("/auth/chatgpt/start", { config: perCaller(20) }, async (request, reply) => {
51319
+ app.get("/auth/chatgpt/start", { config: signInRouteConfig(20) }, async (request, reply) => {
51332
51320
  const parsedIntent = chatGptSignInIntentSchema.safeParse(request.query.intent ?? ChatGptSignInIntents.login);
51333
51321
  const returnTo = safeReturnTo(request.query.returnTo, dashboardPath);
51334
51322
  if (!parsedIntent.success) return redirectWithError(reply, ChatGptSignInErrors.failed, returnTo);
@@ -51351,7 +51339,7 @@ async function chatGptRoutes(app, opts) {
51351
51339
  reply.header("referrer-policy", "no-referrer");
51352
51340
  return reply.redirect(started.url, 302);
51353
51341
  });
51354
- app.get("/auth/chatgpt/callback", { config: perCaller(30) }, async (request, reply) => {
51342
+ app.get("/auth/chatgpt/callback", { config: signInRouteConfig(30) }, async (request, reply) => {
51355
51343
  appendCookie(reply, bindingCookie(request, null));
51356
51344
  reply.header("cache-control", "no-store");
51357
51345
  reply.header("referrer-policy", "no-referrer");
@@ -51400,7 +51388,7 @@ async function chatGptRoutes(app, opts) {
51400
51388
  }
51401
51389
  return reply.redirect(withParam(returnTo ?? dashboardPath, "chatgpt", result.plan === "connected" ? "connected" : "linked"), 302);
51402
51390
  });
51403
- app.post("/auth/chatgpt/disconnect", { config: perCaller(10) }, async (request, reply) => {
51391
+ app.post("/auth/chatgpt/disconnect", { config: signInRouteConfig(10) }, async (request, reply) => {
51404
51392
  assertCookieWriteOrigin(request);
51405
51393
  const userId = requireSignedIn(request, reply);
51406
51394
  if (!opts.accounts) return { disconnected: false, revoked: false };
@@ -51416,7 +51404,7 @@ async function chatGptRoutes(app, opts) {
51416
51404
  }
51417
51405
  return result;
51418
51406
  });
51419
- app.get("/auth/chatgpt/models", { config: perCaller(30) }, async (request, reply) => {
51407
+ app.get("/auth/chatgpt/models", { config: signInRouteConfig(30) }, async (request, reply) => {
51420
51408
  reply.header("cache-control", "no-store");
51421
51409
  const userId = requireSignedIn(request, reply);
51422
51410
  if (!opts.accounts?.planUsageEnabled()) throw validationError("ChatGPT plan usage is not turned on for this dashboard.");
@@ -51427,7 +51415,7 @@ async function chatGptRoutes(app, opts) {
51427
51415
  throw toAppError2(error);
51428
51416
  }
51429
51417
  });
51430
- app.put("/auth/chatgpt/model", { config: perCaller(30) }, async (request, reply) => {
51418
+ app.put("/auth/chatgpt/model", { config: signInRouteConfig(30) }, async (request, reply) => {
51431
51419
  assertCookieWriteOrigin(request);
51432
51420
  const userId = requireSignedIn(request, reply);
51433
51421
  if (!opts.accounts?.planUsageEnabled()) throw validationError("ChatGPT plan usage is not turned on for this dashboard.");
@@ -55994,10 +55982,10 @@ async function googleRoutes(app, opts) {
55994
55982
  attempt.succeeded();
55995
55983
  return reply.type("text/html").send(googleOAuthSuccessHtml(type));
55996
55984
  }
55997
- app.get("/google/callback", async (request, reply) => {
55985
+ app.get("/google/callback", { config: { skipInstanceAuth: true } }, async (request, reply) => {
55998
55986
  return handleOAuthCallback(request, reply);
55999
55987
  });
56000
- app.get("/projects/:name/google/callback", async (request, reply) => {
55988
+ app.get("/projects/:name/google/callback", { config: { skipInstanceAuth: true } }, async (request, reply) => {
56001
55989
  return handleOAuthCallback(request, reply);
56002
55990
  });
56003
55991
  app.delete("/projects/:name/google/connections/:type", connectionRoute(app, (request) => {
@@ -58266,7 +58254,7 @@ async function googleMarketingRoutes(app, opts) {
58266
58254
  };
58267
58255
  registerOAuthConnect("/projects/:name/google-ads/oauth/connect", GoogleMarketingProviders["google-ads"]);
58268
58256
  registerOAuthConnect("/projects/:name/gtm/oauth/connect", GoogleMarketingProviders.gtm);
58269
- app.get("/google-marketing/callback", connectionRoute(app, (request) => {
58257
+ app.get("/google-marketing/callback", { config: { skipInstanceAuth: true } }, connectionRoute(app, (request) => {
58270
58258
  const verified = oauthStateSchema.safeParse(verifySignedGoogleOAuthState(request.query.state ?? "", stateSecret));
58271
58259
  return marketingConnection(verified.success ? verified.data.provider : unverifiedOAuthStateField(request.query.state, "provider"));
58272
58260
  }, async (request, reply, attempt) => {
@@ -74474,6 +74462,7 @@ async function trafficRoutes(app, opts) {
74474
74462
  });
74475
74463
  },
74476
74464
  config: {
74465
+ skipInstanceAuth: true,
74477
74466
  rateLimit: {
74478
74467
  hook: "onRequest",
74479
74468
  max: opts.cloudflareIngestIpRateLimitMax ?? DEFAULT_CLOUDFLARE_INGEST_RATE_LIMIT_MAX,
@@ -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-2FZM66FH.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-MKCI6M2G.js";
34
+ } from "./chunk-N5QUNRYO.js";
35
35
  import {
36
36
  answerServiceAdapters,
37
37
  answerServiceDescriptors
@@ -69,7 +69,7 @@ import {
69
69
  openrouterAdapter,
70
70
  perplexityAdapter,
71
71
  startTrafficReclassification
72
- } from "./chunk-54X76NGL.js";
72
+ } from "./chunk-7ELQ3IH4.js";
73
73
  import {
74
74
  classifyUsageSurface,
75
75
  createApiUsageTelemetry,
@@ -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";
@@ -169,7 +169,7 @@ import {
169
169
  } from "./chunk-B7YR57FO.js";
170
170
  import {
171
171
  IntelligenceService
172
- } from "./chunk-NGD7TX3R.js";
172
+ } from "./chunk-X6O6Q72D.js";
173
173
  import {
174
174
  computeCitedCompetitorDomains,
175
175
  determineCitationState
@@ -334,7 +334,7 @@ import {
334
334
  webhookTargetRefusalReason,
335
335
  webhookUserAgent,
336
336
  writeAuditLog
337
- } from "./chunk-V7OJEOEQ.js";
337
+ } from "./chunk-EHCH77U4.js";
338
338
  import {
339
339
  OperationalLogStore,
340
340
  SentimentIdempotencyConflict,
@@ -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 ? "1a08e495b9057d15e2f1356410ac1450eaee6d03" : 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-MCHKKOOS.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-MKCI6M2G.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,13 +5,13 @@ 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";
12
12
  import {
13
13
  buildOpenApiDocument
14
- } from "./chunk-V7OJEOEQ.js";
14
+ } from "./chunk-EHCH77U4.js";
15
15
  import {
16
16
  DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
17
17
  MeasurementPortfolioLists,
@@ -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-JQNKAWZI.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"),
@@ -804,7 +804,7 @@ var BACKFILL_CLI_COMMANDS = [
804
804
  allowPositionals: false,
805
805
  supportsDryRun: true,
806
806
  run: async (input) => {
807
- const { backfillAnswerVisibilityCommand } = await import("./backfill-YL2FNUFE.js");
807
+ const { backfillAnswerVisibilityCommand } = await import("./backfill-UDC4DTJJ.js");
808
808
  await backfillAnswerVisibilityCommand({
809
809
  project: getString(input.values, "project"),
810
810
  dryRun: input.dryRun,
@@ -821,7 +821,7 @@ var BACKFILL_CLI_COMMANDS = [
821
821
  allowPositionals: false,
822
822
  supportsDryRun: true,
823
823
  run: async (input) => {
824
- const { backfillAnswerMentionsCommand } = await import("./backfill-YL2FNUFE.js");
824
+ const { backfillAnswerMentionsCommand } = await import("./backfill-UDC4DTJJ.js");
825
825
  await backfillAnswerMentionsCommand({
826
826
  project: getString(input.values, "project"),
827
827
  dryRun: input.dryRun,
@@ -839,7 +839,7 @@ var BACKFILL_CLI_COMMANDS = [
839
839
  },
840
840
  supportsDryRun: true,
841
841
  run: async (input) => {
842
- const { backfillInsightsCommand } = await import("./backfill-YL2FNUFE.js");
842
+ const { backfillInsightsCommand } = await import("./backfill-UDC4DTJJ.js");
843
843
  const usage = "canonry backfill insights <project> [--from-run <id>] [--to-run <id>] [--since <date>] [--dry-run] [--format json]";
844
844
  const project3 = requireProject(input, "backfill insights", usage);
845
845
  await backfillInsightsCommand(project3, {
@@ -859,7 +859,7 @@ var BACKFILL_CLI_COMMANDS = [
859
859
  },
860
860
  allowPositionals: false,
861
861
  run: async (input) => {
862
- const { backfillNormalizedPathsCommand } = await import("./backfill-YL2FNUFE.js");
862
+ const { backfillNormalizedPathsCommand } = await import("./backfill-UDC4DTJJ.js");
863
863
  await backfillNormalizedPathsCommand({
864
864
  project: getString(input.values, "project"),
865
865
  format: input.format
@@ -874,7 +874,7 @@ var BACKFILL_CLI_COMMANDS = [
874
874
  },
875
875
  allowPositionals: false,
876
876
  run: async (input) => {
877
- const { backfillAiReferralPathsCommand } = await import("./backfill-YL2FNUFE.js");
877
+ const { backfillAiReferralPathsCommand } = await import("./backfill-UDC4DTJJ.js");
878
878
  await backfillAiReferralPathsCommand({
879
879
  project: getString(input.values, "project"),
880
880
  format: input.format
@@ -886,7 +886,7 @@ var BACKFILL_CLI_COMMANDS = [
886
886
  usage: "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]",
887
887
  supportsDryRun: true,
888
888
  run: async (input) => {
889
- const { backfillSnapshotAttributionCommand } = await import("./backfill-YL2FNUFE.js");
889
+ const { backfillSnapshotAttributionCommand } = await import("./backfill-UDC4DTJJ.js");
890
890
  const usage = "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]";
891
891
  const project3 = requireProject(input, "backfill snapshot-attribution", usage);
892
892
  await backfillSnapshotAttributionCommand({
@@ -905,7 +905,7 @@ var BACKFILL_CLI_COMMANDS = [
905
905
  allowPositionals: false,
906
906
  supportsDryRun: true,
907
907
  run: async (input) => {
908
- const { backfillTrafficClassificationCommand } = await import("./backfill-YL2FNUFE.js");
908
+ const { backfillTrafficClassificationCommand } = await import("./backfill-UDC4DTJJ.js");
909
909
  await backfillTrafficClassificationCommand({
910
910
  project: getString(input.values, "project"),
911
911
  dryRun: input.dryRun,
@@ -1551,7 +1551,7 @@ var DASHBOARD_CLI_COMMANDS = [
1551
1551
  usage: "canonry dashboard reset-password [--format json]",
1552
1552
  help: "Clears the dashboard password from config.yaml, so the dashboard asks for a new one after a restart.\nLocal only: it edits the config file under CANONRY_CONFIG_DIR and does not call the server.",
1553
1553
  run: async (input) => {
1554
- const { resetDashboardPassword } = await import("./dashboard-TCT2OZFG.js");
1554
+ const { resetDashboardPassword } = await import("./dashboard-FRSMK5KF.js");
1555
1555
  await resetDashboardPassword({ format: input.format });
1556
1556
  }
1557
1557
  },
@@ -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-RQQ2IA24.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-KSAQEVOI.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-MCHKKOOS.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-7DJVNGNI.js");
8938
- const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-DPR6GTYF.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);
@@ -18,7 +18,7 @@ import {
18
18
  notScopedRun,
19
19
  readGscQueryDailyRows,
20
20
  readLatestGscDataDate
21
- } from "./chunk-V7OJEOEQ.js";
21
+ } from "./chunk-EHCH77U4.js";
22
22
  import {
23
23
  competitors,
24
24
  gbpDailyMetrics,
@@ -8,7 +8,7 @@ import {
8
8
  reparseStoredResult4,
9
9
  reparseStoredResult5,
10
10
  resolveStoredApiResponse
11
- } from "./chunk-54X76NGL.js";
11
+ } from "./chunk-7ELQ3IH4.js";
12
12
  import {
13
13
  loadConfig
14
14
  } from "./chunk-NLW6XEUI.js";
@@ -25,7 +25,7 @@ import {
25
25
  createRunCompetitorResolver,
26
26
  readMarketCompetitorNames,
27
27
  refreshSnapshotMentionIdentity
28
- } from "./chunk-V7OJEOEQ.js";
28
+ } from "./chunk-EHCH77U4.js";
29
29
  import {
30
30
  RawEventSampleEventTypes,
31
31
  auditLog,
@@ -430,7 +430,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
430
430
  }
431
431
  }
432
432
  async function backfillInsightsCommand(project, opts) {
433
- const { IntelligenceService } = await import("./intelligence-service-XOQWGWUQ.js");
433
+ const { IntelligenceService } = await import("./intelligence-service-WWG4RBK3.js");
434
434
  const config = loadConfig();
435
435
  const db = createClient(config.database);
436
436
  migrate(db);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REGISTERED_CLI_COMMANDS
3
- } from "./chunk-LN7L45WN.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-LN7L45WN.js";
4
+ } from "./chunk-TSRJA76S.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-RII4R3ZZ.js";
9
+ } from "./chunk-K3TD32LM.js";
10
10
  import "./chunk-VJWDBFSL.js";
11
11
  import "./chunk-3MYRQB3W.js";
12
12
  import "./chunk-TSENU4GG.js";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-B7YR57FO.js";
8
8
  import {
9
9
  anyUsersExist
10
- } from "./chunk-V7OJEOEQ.js";
10
+ } from "./chunk-EHCH77U4.js";
11
11
  import "./chunk-YA54KGF3.js";
12
12
  import "./chunk-UEIMKBG6.js";
13
13
  import {
@@ -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-7SFA77LN.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";
@@ -19,7 +19,7 @@ import "./chunk-B7YR57FO.js";
19
19
  import {
20
20
  HISTORY_WINDOW_RUNS,
21
21
  IntelligenceService
22
- } from "./chunk-NGD7TX3R.js";
22
+ } from "./chunk-X6O6Q72D.js";
23
23
  import {
24
24
  determineCitationState
25
25
  } from "./chunk-RXDYCDE6.js";
@@ -27,7 +27,7 @@ import "./chunk-XAF22QBW.js";
27
27
  import {
28
28
  apiRoutes,
29
29
  assessConversionTrackingIntegrity
30
- } from "./chunk-V7OJEOEQ.js";
30
+ } from "./chunk-EHCH77U4.js";
31
31
  import "./chunk-YA54KGF3.js";
32
32
  import "./chunk-UEIMKBG6.js";
33
33
  import {
package/dist/index.d.ts CHANGED
@@ -331,8 +331,8 @@ declare const gtmRawSnapshotDtoSchema: z.ZodObject<{
331
331
  connectionId: z.ZodString;
332
332
  runId: z.ZodString;
333
333
  kind: z.ZodEnum<{
334
- draft: "draft";
335
334
  live: "live";
335
+ draft: "draft";
336
336
  accounts: "accounts";
337
337
  container: "container";
338
338
  }>;
@@ -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;
@@ -1360,16 +1360,16 @@ type SeoKeywordGapMode = z.infer<typeof seoKeywordGapModeSchema>;
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;
@@ -1440,8 +1440,8 @@ 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;
@@ -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,8 +1588,8 @@ 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;
@@ -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;
@@ -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
  }[];
@@ -1839,7 +1839,7 @@ declare const seoProfiles: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
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
  }[];
@@ -1884,7 +1884,7 @@ declare const seoProfiles: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
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
  }[];
@@ -2081,7 +2081,7 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
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
  }[];
@@ -2126,7 +2126,7 @@ declare const seoJobs: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
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;
@@ -6342,7 +6342,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6342
6342
  tableName: "query_snapshots";
6343
6343
  dataType: "string";
6344
6344
  columnType: "SQLiteText";
6345
- data: "unknown" | "used" | "not-used" | "not-applicable";
6345
+ data: "unknown" | "not-applicable" | "used" | "not-used";
6346
6346
  driverParam: string;
6347
6347
  notNull: false;
6348
6348
  hasDefault: false;
@@ -6355,7 +6355,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6355
6355
  generated: undefined;
6356
6356
  }, {}, {
6357
6357
  length: number | undefined;
6358
- $type: "unknown" | "used" | "not-used" | "not-applicable";
6358
+ $type: "unknown" | "not-applicable" | "used" | "not-used";
6359
6359
  }>;
6360
6360
  retrievalContract: drizzle_orm_sqlite_core.SQLiteColumn<{
6361
6361
  name: "retrieval_contract";
@@ -6703,7 +6703,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6703
6703
  status?: string | null | undefined;
6704
6704
  }[];
6705
6705
  searchQueries: string[];
6706
- retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
6706
+ retrievalStatus: "unknown" | "not-applicable" | "used" | "not-used";
6707
6707
  citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
6708
6708
  citationMeasurable: boolean;
6709
6709
  directSourceUrls: boolean;
@@ -6808,7 +6808,7 @@ declare const querySnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
6808
6808
  status?: string | null | undefined;
6809
6809
  }[];
6810
6810
  searchQueries: string[];
6811
- retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
6811
+ retrievalStatus: "unknown" | "not-applicable" | "used" | "not-used";
6812
6812
  citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
6813
6813
  citationMeasurable: boolean;
6814
6814
  directSourceUrls: boolean;
@@ -13593,7 +13593,7 @@ declare const siteAuditSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns
13593
13593
  weight: number;
13594
13594
  sharePct: number | null;
13595
13595
  avgScore: number;
13596
- status: "fail" | "partial" | "pass";
13596
+ status: "partial" | "fail" | "pass";
13597
13597
  pagesPassing: number;
13598
13598
  pagesPartial: number;
13599
13599
  pagesFailing: number;
@@ -13615,7 +13615,7 @@ declare const siteAuditSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns
13615
13615
  weight: number;
13616
13616
  sharePct: number | null;
13617
13617
  avgScore: number;
13618
- status: "fail" | "partial" | "pass";
13618
+ status: "partial" | "fail" | "pass";
13619
13619
  pagesPassing: number;
13620
13620
  pagesPartial: number;
13621
13621
  pagesFailing: number;
@@ -31504,7 +31504,7 @@ declare const researchRunQueries: drizzle_orm_sqlite_core.SQLiteTableWithColumns
31504
31504
  status?: string | null | undefined;
31505
31505
  }[];
31506
31506
  searchQueries: string[];
31507
- retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
31507
+ retrievalStatus: "unknown" | "not-applicable" | "used" | "not-used";
31508
31508
  citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
31509
31509
  citationMeasurable: boolean;
31510
31510
  directSourceUrls: boolean;
@@ -31609,7 +31609,7 @@ declare const researchRunQueries: drizzle_orm_sqlite_core.SQLiteTableWithColumns
31609
31609
  status?: string | null | undefined;
31610
31610
  }[];
31611
31611
  searchQueries: string[];
31612
- retrievalStatus: "unknown" | "used" | "not-used" | "not-applicable";
31612
+ retrievalStatus: "unknown" | "not-applicable" | "used" | "not-used";
31613
31613
  citationBasis: "none" | "mixed" | "answer-support" | "explicit-citation";
31614
31614
  citationMeasurable: boolean;
31615
31615
  directSourceUrls: boolean;
@@ -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";
@@ -38754,7 +38754,7 @@ declare const gtmRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
38754
38754
  tableName: "gtm_raw_snapshots";
38755
38755
  dataType: "string";
38756
38756
  columnType: "SQLiteText";
38757
- data: "draft" | "live" | "accounts" | "container";
38757
+ data: "live" | "draft" | "accounts" | "container";
38758
38758
  driverParam: string;
38759
38759
  notNull: true;
38760
38760
  hasDefault: false;
@@ -38767,7 +38767,7 @@ declare const gtmRawSnapshots: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
38767
38767
  generated: undefined;
38768
38768
  }, {}, {
38769
38769
  length: number | undefined;
38770
- $type: "draft" | "live" | "accounts" | "container";
38770
+ $type: "live" | "draft" | "accounts" | "container";
38771
38771
  }>;
38772
38772
  accountId: drizzle_orm_sqlite_core.SQLiteColumn<{
38773
38773
  name: "account_id";
@@ -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,37 +3,37 @@ import {
3
3
  createGoogleMarketingCredentialStore,
4
4
  createGoogleMarketingRuntime,
5
5
  createServer
6
- } from "./chunk-MMCYPRRQ.js";
7
- import "./chunk-2FZM66FH.js";
8
- import "./chunk-MKCI6M2G.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";
12
12
  import "./chunk-XEBKF4N5.js";
13
13
  import "./chunk-K77OPDGD.js";
14
- import "./chunk-54X76NGL.js";
14
+ import "./chunk-7ELQ3IH4.js";
15
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";
31
31
  import "./chunk-AOJU5LKX.js";
32
32
  import "./chunk-B7YR57FO.js";
33
- import "./chunk-NGD7TX3R.js";
33
+ import "./chunk-X6O6Q72D.js";
34
34
  import "./chunk-RXDYCDE6.js";
35
35
  import "./chunk-XAF22QBW.js";
36
- import "./chunk-V7OJEOEQ.js";
36
+ import "./chunk-EHCH77U4.js";
37
37
  import "./chunk-YA54KGF3.js";
38
38
  import "./chunk-UEIMKBG6.js";
39
39
  import "./chunk-W7KF43JV.js";
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  buildSetupState,
9
9
  queueServeHandoff
10
- } from "./chunk-RII4R3ZZ.js";
10
+ } from "./chunk-K3TD32LM.js";
11
11
  import "./chunk-VJWDBFSL.js";
12
12
  import "./chunk-WAAESDBG.js";
13
13
  import "./chunk-JPRWAASQ.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  HISTORY_WINDOW_RUNS,
3
3
  IntelligenceService
4
- } from "./chunk-NGD7TX3R.js";
4
+ } from "./chunk-X6O6Q72D.js";
5
5
  import "./chunk-RXDYCDE6.js";
6
6
  import "./chunk-XAF22QBW.js";
7
- import "./chunk-V7OJEOEQ.js";
7
+ import "./chunk-EHCH77U4.js";
8
8
  import "./chunk-YA54KGF3.js";
9
9
  import "./chunk-UEIMKBG6.js";
10
10
  import "./chunk-W7KF43JV.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";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  backfillAiReferralPaths,
3
3
  backfillNormalizedPaths
4
- } from "./chunk-UUKO5OCN.js";
4
+ } from "./chunk-XS5OT4FV.js";
5
5
  import {
6
6
  operatorHttpUrl
7
7
  } from "./chunk-6GO5VVAC.js";
@@ -9,15 +9,15 @@ import {
9
9
  allowsKeylessFirstRunSetup,
10
10
  createServer,
11
11
  waitForServerRuntimeStartup
12
- } from "./chunk-MMCYPRRQ.js";
13
- import "./chunk-2FZM66FH.js";
14
- import "./chunk-MKCI6M2G.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";
18
18
  import "./chunk-XEBKF4N5.js";
19
19
  import "./chunk-K77OPDGD.js";
20
- import "./chunk-54X76NGL.js";
20
+ import "./chunk-7ELQ3IH4.js";
21
21
  import {
22
22
  trackFeatureCompleted
23
23
  } from "./chunk-WAAESDBG.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";
@@ -59,13 +59,13 @@ import {
59
59
  CliError,
60
60
  isMachineFormat
61
61
  } from "./chunk-B7YR57FO.js";
62
- import "./chunk-NGD7TX3R.js";
62
+ import "./chunk-X6O6Q72D.js";
63
63
  import "./chunk-RXDYCDE6.js";
64
64
  import "./chunk-XAF22QBW.js";
65
65
  import {
66
66
  refreshSnapshotMentionIdentity,
67
67
  snapshotsWithSentimentResults
68
- } from "./chunk-V7OJEOEQ.js";
68
+ } from "./chunk-EHCH77U4.js";
69
69
  import "./chunk-YA54KGF3.js";
70
70
  import "./chunk-UEIMKBG6.js";
71
71
  import {
@@ -9,25 +9,25 @@ import {
9
9
  resolveAeroModel,
10
10
  resolveConfiguredAgentProvider,
11
11
  resolveSessionProviderAndModel
12
- } from "./chunk-2FZM66FH.js";
13
- import "./chunk-MKCI6M2G.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";
27
27
  import "./chunk-AOJU5LKX.js";
28
28
  import "./chunk-B7YR57FO.js";
29
29
  import "./chunk-XAF22QBW.js";
30
- import "./chunk-V7OJEOEQ.js";
30
+ import "./chunk-EHCH77U4.js";
31
31
  import "./chunk-YA54KGF3.js";
32
32
  import "./chunk-UEIMKBG6.js";
33
33
  import "./chunk-W7KF43JV.js";
@@ -11,16 +11,16 @@ import {
11
11
  buildAllTools,
12
12
  buildReadTools,
13
13
  isAeroToolProfile
14
- } from "./chunk-MKCI6M2G.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";
21
21
  import "./chunk-AOJU5LKX.js";
22
22
  import "./chunk-B7YR57FO.js";
23
- import "./chunk-V7OJEOEQ.js";
23
+ import "./chunk-EHCH77U4.js";
24
24
  import "./chunk-YA54KGF3.js";
25
25
  import "./chunk-UEIMKBG6.js";
26
26
  import "./chunk-W7KF43JV.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonry/canonry",
3
- "version": "7.123.2",
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": [