@canonry/canonry 7.123.0 → 7.123.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1136,7 +1136,7 @@ cnry bing keywords <project> <keyword> [--country us] [--language en-US] # any
1136
1136
 
1137
1137
  `cnry bing traffic` is the Bing site total; `queries` and `pages` list only what Bing chooses to name, so never sum them for a total. Bing reports queries and pages per **week**: each stored row is one weekly bucket, and a window total sums the buckets dated inside it. Positions are impression-weighted; Bing's `-1` "no value" is stored as null. `latestAvailableDate` trails today by 2 to 3 days because Bing publishes late. `--window` takes `7d`, `30d`, `90d` or `all` and ends at the newest stored day. `bing traffic` returns `periodComparison` (the window against the stored window before it, or the window's own halves when the sync does not reach back that far, as `basis` says) and `trends` fitted over the calendar; days before the first sync never count as zero. `bing queries` and `bing pages` return `totals` (every matching row, before paging) and `comparison` against the window before, or null when the stored weeks do not reach it. `--exact` matches one whole query or page URL, which is how a single query's weeks are read (`--exact --group-by week`).
1138
1138
 
1139
- `cnry bing sync` runs as part of every `data-refresh` (with `inspect-sitemap`). It reads daily traffic, weekly query and page stats, daily crawl stats, sitemaps (expanding up to 20 sitemap indexes), 12 site settings and weekly search demand for tracked queries (refreshed once a week per query, at most 30 queries per sync, in the project's country and language). Every call goes through the same per-account pacing as the URL inspection sweep (one request start every 2 seconds per Bing key), and a throttle that outlasts the client's retries ends the run as `partial` instead of hammering the account. Sections fail independently: one failure marks the run `partial` and the rest still land. Owner-only settings (`connected-pages`, `site-roles`) are stored as `unauthorized` when the key is not the site owner's; that is not a failure. Bing AI Performance and Topics Portfolio (Copilot citations, grounding queries) are not in Bing's API, so Canonry cannot read them.
1139
+ `cnry bing sync` runs as part of every `data-refresh` (with `inspect-sitemap`). It reads daily traffic, weekly query and page stats, daily crawl stats, sitemaps (expanding up to 20 sitemap indexes), 12 site settings and weekly search demand for tracked queries (refreshed once a week per query, at most 30 queries per sync, in the project's country and language). Every call goes through the same per-account pacing as the URL inspection sweep (one request start every 2 seconds per Bing key), and a throttle that outlasts the client's retries ends the run as `partial` instead of hammering the account. Bing jobs on one key run one at a time across projects, data syncs before `inspect-sitemap` sweeps, and a job that finds the key in a throttle cooldown waits it out before starting (the run stays `queued`). `inspect-sitemap` checks 20 pages per run, never-checked first and then the oldest, and is `completed` when it checks that batch; the rest of the sitemap rotates in on later runs. Sections fail independently: one failure marks the run `partial` and the rest still land. Owner-only settings (`connected-pages`, `site-roles`) are stored as `unauthorized` when the key is not the site owner's; that is not a failure. Bing AI Performance and Topics Portfolio (Copilot citations, grounding queries) are not in Bing's API, so Canonry cannot read them.
1140
1140
 
1141
1141
  `cnry bing request-indexing` reads the site's remaining submission quota first (often 100 a day, not the documented 10,000) and submits only what Bing will accept; the rest come back as per-URL errors with the reason, and the response carries `quota`.
1142
1142
 
@@ -10,8 +10,8 @@ import {
10
10
  backfillSnapshotAttributionCommand,
11
11
  backfillTrafficClassificationCommand,
12
12
  replayQueryAuditLog
13
- } from "./chunk-7G4YTMZE.js";
14
- import "./chunk-RBUT6DJG.js";
13
+ } from "./chunk-CQSLBPR2.js";
14
+ import "./chunk-TSCCU54X.js";
15
15
  import "./chunk-6URM26ZP.js";
16
16
  import "./chunk-DMFFERXC.js";
17
17
  import "./chunk-2RG6CSZB.js";
@@ -19,7 +19,7 @@ import "./chunk-LWGO6ETW.js";
19
19
  import {
20
20
  backfillProjectAnswerMentions,
21
21
  backfillProjectAnswerMentionsInChunks
22
- } from "./chunk-FLUYAMPP.js";
22
+ } from "./chunk-7KQESJWH.js";
23
23
  import "./chunk-2J6LXZPK.js";
24
24
  import "./chunk-YWLJQ2FY.js";
25
25
  import "./chunk-NZOLX55S.js";
@@ -64449,6 +64449,9 @@ function openThrottleCooldown(apiKey, err) {
64449
64449
  throttleCooldownUntil.set(key, retryAt);
64450
64450
  bingClientLog("error", "http.cooldown-open", { cooldownMs: retryAt - now });
64451
64451
  }
64452
+ function bingThrottleCooldownRemainingMs(apiKey) {
64453
+ return throttleCooldownRemainingMs(apiKey);
64454
+ }
64452
64455
  async function bingFetch(apiKey, endpoint, opts) {
64453
64456
  const isIdempotent = opts?.idempotent ?? (opts?.method ?? "GET") === "GET";
64454
64457
  const cooling = throttleCooldownRemainingMs(apiKey);
@@ -83433,7 +83436,9 @@ export {
83433
83436
  extractPlaceAmenities,
83434
83437
  getPlaceReviewSignals,
83435
83438
  buildGbpSummary,
83439
+ BING_THROTTLE_COOLDOWN_MS,
83436
83440
  BingApiError,
83441
+ bingThrottleCooldownRemainingMs,
83437
83442
  getUrlInfo,
83438
83443
  getCrawlStats,
83439
83444
  getCrawlIssues,
@@ -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-E4Q6WQ5R.js");
786
+ const { demoCommand } = await import("./demo-UFZBEKZC.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-5E2D3HFJ.js");
807
+ const { backfillAnswerVisibilityCommand } = await import("./backfill-WGEXXMFQ.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-5E2D3HFJ.js");
824
+ const { backfillAnswerMentionsCommand } = await import("./backfill-WGEXXMFQ.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-5E2D3HFJ.js");
842
+ const { backfillInsightsCommand } = await import("./backfill-WGEXXMFQ.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-5E2D3HFJ.js");
862
+ const { backfillNormalizedPathsCommand } = await import("./backfill-WGEXXMFQ.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-5E2D3HFJ.js");
877
+ const { backfillAiReferralPathsCommand } = await import("./backfill-WGEXXMFQ.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-5E2D3HFJ.js");
889
+ const { backfillSnapshotAttributionCommand } = await import("./backfill-WGEXXMFQ.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-5E2D3HFJ.js");
908
+ const { backfillTrafficClassificationCommand } = await import("./backfill-WGEXXMFQ.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-S4KT2J34.js");
1554
+ const { resetDashboardPassword } = await import("./dashboard-2DBFBHAU.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-STHVOXXT.js"), import("./cli-commands-AHQK2WVB.js")]);
7456
+ const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-STHVOXXT.js"), import("./cli-commands-KWRHN6M5.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-ZRVCNBSL.js");
7505
+ const { initCommand } = await import("./init-IZ3ANN2I.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-LWXCQAA2.js");
7561
+ const { serveCommand } = await import("./serve-365C4I42.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-4FP4QJTN.js");
8938
- const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-46YC2R4V.js");
8937
+ const { coerceAgentProvider } = await import("./session-ZB2BI6VG.js");
8938
+ const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-57J55S4A.js");
8939
8939
  const { agentAsk } = await import("./agent-ask-IGL7KSBW.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);
@@ -8,7 +8,7 @@ import {
8
8
  reparseStoredResult4,
9
9
  reparseStoredResult5,
10
10
  resolveStoredApiResponse
11
- } from "./chunk-RBUT6DJG.js";
11
+ } from "./chunk-TSCCU54X.js";
12
12
  import {
13
13
  loadConfig
14
14
  } from "./chunk-6URM26ZP.js";
@@ -25,7 +25,7 @@ import {
25
25
  createRunCompetitorResolver,
26
26
  readMarketCompetitorNames,
27
27
  refreshSnapshotMentionIdentity
28
- } from "./chunk-FLUYAMPP.js";
28
+ } from "./chunk-7KQESJWH.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-G3EHHS35.js");
433
+ const { IntelligenceService } = await import("./intelligence-service-A6B7TKOX.js");
434
434
  const config = loadConfig();
435
435
  const db = createClient(config.database);
436
436
  migrate(db);
@@ -18,7 +18,7 @@ import {
18
18
  notScopedRun,
19
19
  readGscQueryDailyRows,
20
20
  readLatestGscDataDate
21
- } from "./chunk-FLUYAMPP.js";
21
+ } from "./chunk-7KQESJWH.js";
22
22
  import {
23
23
  competitors,
24
24
  gbpDailyMetrics,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-DMFFERXC.js";
12
12
  import {
13
13
  buildOpenApiDocument
14
- } from "./chunk-FLUYAMPP.js";
14
+ } from "./chunk-7KQESJWH.js";
15
15
  import {
16
16
  DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
17
17
  MeasurementPortfolioLists,
@@ -5,7 +5,7 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-ITX7ELLK.js";
8
+ } from "./chunk-NDVKLJXW.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS,
11
11
  resolveAeroSkillDir
@@ -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-LWXCQAA2.js");
50
+ const { serveCommand } = await import("./serve-365C4I42.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -7,7 +7,7 @@ import {
7
7
  mergeSplitJourneyVisitors,
8
8
  repairAiReferralArrivalsOnStartup,
9
9
  writeUnrecognizedAgentBuckets
10
- } from "./chunk-FLUYAMPP.js";
10
+ } from "./chunk-7KQESJWH.js";
11
11
  import {
12
12
  AGENT_TRUST_RULES_VERSION,
13
13
  BROWSER_AGENT_BOT_IDS,