@canonry/canonry 7.115.0 → 7.116.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 (27) hide show
  1. package/dist/{backfill-BZOT2OWS.js → backfill-WNCUA5QU.js} +4 -4
  2. package/dist/{bootstrap-MIVDV6NW.js → bootstrap-CJ4T6WIR.js} +1 -1
  3. package/dist/{chunk-R5G7SFRX.js → chunk-3MUJYDIH.js} +1 -1
  4. package/dist/{chunk-2PDXME2V.js → chunk-BBMZ6534.js} +102 -0
  5. package/dist/{chunk-VUPCE7GC.js → chunk-BBVTNECC.js} +2 -2
  6. package/dist/{chunk-FBQ4ACPA.js → chunk-D7XW5LNC.js} +1 -1
  7. package/dist/{chunk-4ZMO7NGG.js → chunk-IIIBDDAR.js} +2 -2
  8. package/dist/{chunk-WQXRRCFC.js → chunk-JU3KGXW6.js} +2 -2
  9. package/dist/{chunk-CY52NTTK.js → chunk-KWAAPYTA.js} +8 -8
  10. package/dist/{chunk-67YNSJJY.js → chunk-LLKXFSCH.js} +4 -4
  11. package/dist/{chunk-ADBL7P3V.js → chunk-LSYMN3XT.js} +1 -1
  12. package/dist/{chunk-OE5AMT4X.js → chunk-QMNM2YWF.js} +15 -15
  13. package/dist/{chunk-OTW4SJ5G.js → chunk-WAFH2X45.js} +2 -2
  14. package/dist/{cli-commands-DPRC73IM.js → cli-commands-3P4EFKQC.js} +1 -1
  15. package/dist/cli.js +2 -2
  16. package/dist/{dashboard-JBXWQXYU.js → dashboard-SWAO3TZZ.js} +2 -2
  17. package/dist/{demo-W3QIXSYT.js → demo-QIIAAUSK.js} +1 -1
  18. package/dist/{demo-server-E7KMACLN.js → demo-server-UUENUNWU.js} +4 -4
  19. package/dist/index.d.ts +631 -5
  20. package/dist/index.js +8 -8
  21. package/dist/{init-Z337GCOA.js → init-2K3C2O27.js} +2 -2
  22. package/dist/{intelligence-service-2N3SLVGN.js → intelligence-service-R7ZGIFFP.js} +3 -3
  23. package/dist/{serve-K7VUWZ3J.js → serve-233RXB4F.js} +9 -9
  24. package/dist/{session-M6ALLPJZ.js → session-QLNH3YT4.js} +4 -4
  25. package/dist/{src-YZ5QIJMF.js → src-SS2AAYBS.js} +5 -1
  26. package/dist/{tools-J2XJFSXA.js → tools-HDZAXBXJ.js} +3 -3
  27. package/package.json +1 -1
@@ -10,8 +10,8 @@ import {
10
10
  backfillSnapshotAttributionCommand,
11
11
  backfillTrafficClassificationCommand,
12
12
  replayQueryAuditLog
13
- } from "./chunk-67YNSJJY.js";
14
- import "./chunk-VUPCE7GC.js";
13
+ } from "./chunk-LLKXFSCH.js";
14
+ import "./chunk-BBVTNECC.js";
15
15
  import "./chunk-3BMWBXHZ.js";
16
16
  import "./chunk-HGMYEDAQ.js";
17
17
  import "./chunk-PSP56PWY.js";
@@ -19,10 +19,10 @@ import "./chunk-GNXQMAHP.js";
19
19
  import {
20
20
  backfillProjectAnswerMentions,
21
21
  backfillProjectAnswerMentionsInChunks
22
- } from "./chunk-R5G7SFRX.js";
22
+ } from "./chunk-3MUJYDIH.js";
23
23
  import "./chunk-3NUSGD54.js";
24
24
  import "./chunk-BGIH54A3.js";
25
- import "./chunk-2PDXME2V.js";
25
+ import "./chunk-BBMZ6534.js";
26
26
  import "./chunk-LABWX26D.js";
27
27
  import "./chunk-MLKGABMK.js";
28
28
  export {
@@ -44,7 +44,7 @@ import {
44
44
  createClient,
45
45
  dashboardSessions,
46
46
  migrate
47
- } from "./chunk-2PDXME2V.js";
47
+ } from "./chunk-BBMZ6534.js";
48
48
  import {
49
49
  ProviderNames,
50
50
  ProviderReloadErrorReasons
@@ -190,7 +190,7 @@ import {
190
190
  userSessions,
191
191
  users,
192
192
  writeNegativeReviewMaxStars
193
- } from "./chunk-2PDXME2V.js";
193
+ } from "./chunk-BBMZ6534.js";
194
194
  import {
195
195
  ADS_ACTIVATE_SCOPE,
196
196
  ADS_ACTIVATION_ABSOLUTE_MAX_ENTITIES,
@@ -194,6 +194,8 @@ __export(schema_exports, {
194
194
  siteHealthNotifyState: () => siteHealthNotifyState,
195
195
  siteLivenessState: () => siteLivenessState,
196
196
  sitemapListSyncs: () => sitemapListSyncs,
197
+ socialConnections: () => socialConnections,
198
+ socialMentions: () => socialMentions,
197
199
  trafficEventReceipts: () => trafficEventReceipts,
198
200
  trafficReclassificationState: () => trafficReclassificationState,
199
201
  trafficSources: () => trafficSources,
@@ -330,6 +332,8 @@ var projects = sqliteTable2("projects", {
330
332
  configSource: text2("config_source").$type().notNull().default("cli"),
331
333
  configRevision: integer2("config_revision").notNull().default(1),
332
334
  icpDescription: text2("icp_description"),
335
+ /** The social platforms this project monitors (`SocialMonitorPlatform` values, each at most once); default `[]`, none. */
336
+ socialPlatforms: text2("social_platforms", { mode: "json" }).$type().notNull().default([]),
333
337
  createdAt: text2("created_at").notNull(),
334
338
  updatedAt: text2("updated_at").notNull()
335
339
  });
@@ -3962,6 +3966,53 @@ var sentimentAttempts = sqliteTable2("sentiment_attempts", {
3962
3966
  index2("idx_sentiment_attempt_dispatch").on(table.dispatchedAt),
3963
3967
  foreignKey({ columns: [table.projectId, table.workItemId], foreignColumns: [sentimentWorkItems.projectId, sentimentWorkItems.id] }).onDelete("cascade")
3964
3968
  ]);
3969
+ var socialMentions = sqliteTable2("social_mentions", {
3970
+ id: text2("id").primaryKey(),
3971
+ projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
3972
+ runId: text2("run_id").notNull(),
3973
+ platform: text2("platform").$type().notNull(),
3974
+ /** The platform's own post id. */
3975
+ externalId: text2("external_id").notNull(),
3976
+ externalUrl: text2("external_url").notNull(),
3977
+ /** The search term that found the post; null for a post found by a domain-only search, never an invented query. */
3978
+ matchedQuery: text2("matched_query"),
3979
+ authorHandle: text2("author_handle"),
3980
+ authorName: text2("author_name"),
3981
+ authorFollowers: integer2("author_followers"),
3982
+ /** The post title where the platform has one (a Reddit submission). */
3983
+ contentTitle: text2("content_title"),
3984
+ /** The post body; empty for a post with only a title. */
3985
+ contentText: text2("content_text").notNull(),
3986
+ /** The project URLs the post links to, as full URLs; `[]` when it links to none. */
3987
+ linkedUrls: text2("linked_urls", { mode: "json" }).$type().notNull().default([]),
3988
+ sentiment: text2("sentiment"),
3989
+ likes: integer2("likes"),
3990
+ shares: integer2("shares"),
3991
+ comments: integer2("comments"),
3992
+ /** The community the post was made in (a subreddit on Reddit). */
3993
+ community: text2("community"),
3994
+ hashtags: text2("hashtags", { mode: "json" }).$type().notNull().default([]),
3995
+ /** Platform-specific fields that have no column of their own (a platform's own score). */
3996
+ metadata: text2("metadata", { mode: "json" }).$type().notNull().default({}),
3997
+ postedAt: text2("posted_at").notNull(),
3998
+ createdAt: text2("created_at").notNull()
3999
+ }, (table) => [
4000
+ index2("idx_social_mentions_run").on(table.runId),
4001
+ uniqueIndex2("idx_social_mentions_project_platform_external").on(table.projectId, table.platform, table.externalId),
4002
+ foreignKey({ columns: [table.projectId, table.runId], foreignColumns: [runs.projectId, runs.id] }).onDelete("cascade")
4003
+ ]);
4004
+ var socialConnections = sqliteTable2("social_connections", {
4005
+ id: text2("id").primaryKey(),
4006
+ platform: text2("platform").$type().notNull(),
4007
+ projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
4008
+ tokenExpiresAt: text2("token_expires_at"),
4009
+ scopes: text2("scopes", { mode: "json" }).$type().notNull().default([]),
4010
+ metadata: text2("metadata", { mode: "json" }).$type().notNull().default({}),
4011
+ createdAt: text2("created_at").notNull(),
4012
+ updatedAt: text2("updated_at").notNull()
4013
+ }, (table) => [
4014
+ uniqueIndex2("idx_social_connections_platform_project").on(table.platform, table.projectId)
4015
+ ]);
3965
4016
 
3966
4017
  // ../db/src/client.ts
3967
4018
  function createClient(databasePath) {
@@ -9461,6 +9512,55 @@ var MIGRATION_VERSIONS = [
9461
9512
  )`,
9462
9513
  `CREATE INDEX IF NOT EXISTS idx_sentiment_alert_runs_run ON sentiment_alert_runs(run_id)`
9463
9514
  ]
9515
+ },
9516
+ {
9517
+ version: 225,
9518
+ name: "social-monitoring-tables",
9519
+ // Social monitoring: the posts a run found, which platforms each project
9520
+ // has connected (metadata only; secrets live in config.yaml), and the
9521
+ // platforms a project monitors. Every existing project reads `[]`, so none
9522
+ // starts monitoring on upgrade.
9523
+ statements: [
9524
+ `CREATE TABLE IF NOT EXISTS social_mentions (
9525
+ id TEXT PRIMARY KEY,
9526
+ project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
9527
+ run_id TEXT NOT NULL,
9528
+ platform TEXT NOT NULL,
9529
+ external_id TEXT NOT NULL,
9530
+ external_url TEXT NOT NULL,
9531
+ matched_query TEXT,
9532
+ author_handle TEXT,
9533
+ author_name TEXT,
9534
+ author_followers INTEGER,
9535
+ content_title TEXT,
9536
+ content_text TEXT NOT NULL,
9537
+ linked_urls TEXT NOT NULL DEFAULT '[]',
9538
+ sentiment TEXT,
9539
+ likes INTEGER,
9540
+ shares INTEGER,
9541
+ comments INTEGER,
9542
+ community TEXT,
9543
+ hashtags TEXT NOT NULL DEFAULT '[]',
9544
+ metadata TEXT NOT NULL DEFAULT '{}',
9545
+ posted_at TEXT NOT NULL,
9546
+ created_at TEXT NOT NULL,
9547
+ FOREIGN KEY (project_id, run_id) REFERENCES runs(project_id, id) ON DELETE CASCADE
9548
+ )`,
9549
+ `CREATE INDEX IF NOT EXISTS idx_social_mentions_run ON social_mentions(run_id)`,
9550
+ `CREATE UNIQUE INDEX IF NOT EXISTS idx_social_mentions_project_platform_external ON social_mentions(project_id, platform, external_id)`,
9551
+ `CREATE TABLE IF NOT EXISTS social_connections (
9552
+ id TEXT PRIMARY KEY,
9553
+ platform TEXT NOT NULL,
9554
+ project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
9555
+ token_expires_at TEXT,
9556
+ scopes TEXT NOT NULL DEFAULT '[]',
9557
+ metadata TEXT NOT NULL DEFAULT '{}',
9558
+ created_at TEXT NOT NULL,
9559
+ updated_at TEXT NOT NULL
9560
+ )`,
9561
+ `CREATE UNIQUE INDEX IF NOT EXISTS idx_social_connections_platform_project ON social_connections(platform, project_id)`,
9562
+ `ALTER TABLE projects ADD COLUMN social_platforms TEXT NOT NULL DEFAULT '[]'`
9563
+ ]
9464
9564
  }
9465
9565
  ];
9466
9566
  var V222_BROWSER_AGENT_HOURLY_TABLES = ["ai_user_fetch_events_hourly", "ai_user_fetch_likely_fake_hourly"];
@@ -11108,6 +11208,8 @@ export {
11108
11208
  sentimentJobItems,
11109
11209
  sentimentResults,
11110
11210
  sentimentAttempts,
11211
+ socialMentions,
11212
+ socialConnections,
11111
11213
  createClient,
11112
11214
  readNegativeReviewMaxStars,
11113
11215
  readAllNegativeReviewMaxStars,
@@ -7,7 +7,7 @@ import {
7
7
  mergeSplitJourneyVisitors,
8
8
  repairAiReferralArrivalsOnStartup,
9
9
  writeUnrecognizedAgentBuckets
10
- } from "./chunk-R5G7SFRX.js";
10
+ } from "./chunk-3MUJYDIH.js";
11
11
  import {
12
12
  AGENT_TRUST_RULES_VERSION,
13
13
  BROWSER_AGENT_BOT_IDS,
@@ -48,7 +48,7 @@ import {
48
48
  trafficReclassificationState,
49
49
  trafficSources,
50
50
  unrecognizedAgentEventsHourly
51
- } from "./chunk-2PDXME2V.js";
51
+ } from "./chunk-BBMZ6534.js";
52
52
  import {
53
53
  AI_ENGINE_DOMAINS,
54
54
  AI_ENGINE_SELF_DOMAINS,
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-HGMYEDAQ.js";
12
12
  import {
13
13
  buildOpenApiDocument
14
- } from "./chunk-R5G7SFRX.js";
14
+ } from "./chunk-3MUJYDIH.js";
15
15
  import {
16
16
  DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
17
17
  MeasurementPortfolioLists,
@@ -28,7 +28,7 @@ async function buildSetupState() {
28
28
  }
29
29
  if (dbPath && fs.existsSync(dbPath)) {
30
30
  try {
31
- const { createClient, projects, queries: queriesTable } = await import("./src-YZ5QIJMF.js");
31
+ const { createClient, projects, queries: queriesTable } = await import("./src-SS2AAYBS.js");
32
32
  const db = createClient(dbPath);
33
33
  project_count = db.select({ id: projects.id }).from(projects).all().length;
34
34
  const firstQuery = db.select({ id: queriesTable.id }).from(queriesTable).limit(1).all();
@@ -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-K7VUWZ3J.js");
50
+ const { serveCommand } = await import("./serve-233RXB4F.js");
51
51
  await serveCommand(format);
52
52
  }
53
53
 
@@ -17,7 +17,7 @@ import {
17
17
  mergeGscQueryTotalsWithFallback,
18
18
  readGscQueryDailyRows,
19
19
  readLatestGscDataDate
20
- } from "./chunk-R5G7SFRX.js";
20
+ } from "./chunk-3MUJYDIH.js";
21
21
  import {
22
22
  competitors,
23
23
  gbpDailyMetrics,
@@ -35,7 +35,7 @@ import {
35
35
  queries,
36
36
  querySnapshots,
37
37
  runs
38
- } from "./chunk-2PDXME2V.js";
38
+ } from "./chunk-BBMZ6534.js";
39
39
  import {
40
40
  CitationStates,
41
41
  RunKinds,
@@ -24,7 +24,7 @@ import {
24
24
  resolveConfiguredAgentProvider,
25
25
  resolveSessionProviderAndModel,
26
26
  setAeroSystemPrompt
27
- } from "./chunk-OTW4SJ5G.js";
27
+ } from "./chunk-WAFH2X45.js";
28
28
  import {
29
29
  answerServiceAdapters,
30
30
  answerServiceDescriptors
@@ -35,7 +35,7 @@ import {
35
35
  buildAeroStateTools,
36
36
  isAeroToolProfile,
37
37
  truncateToolResult
38
- } from "./chunk-FBQ4ACPA.js";
38
+ } from "./chunk-D7XW5LNC.js";
39
39
  import {
40
40
  getGoogleAuthConfig,
41
41
  getGoogleConnection,
@@ -66,7 +66,7 @@ import {
66
66
  openrouterAdapter,
67
67
  perplexityAdapter,
68
68
  startTrafficReclassification
69
- } from "./chunk-VUPCE7GC.js";
69
+ } from "./chunk-BBVTNECC.js";
70
70
  import {
71
71
  classifyUsageSurface,
72
72
  createApiUsageTelemetry,
@@ -153,7 +153,7 @@ import {
153
153
  persistSiteCrawlGraphLayout,
154
154
  prepareSiteCrawlGraphLayout,
155
155
  recordedSharePct
156
- } from "./chunk-ADBL7P3V.js";
156
+ } from "./chunk-LSYMN3XT.js";
157
157
  import {
158
158
  CanonryMcpToolNames,
159
159
  canonryMcpTools
@@ -166,7 +166,7 @@ import {
166
166
  } from "./chunk-HGMYEDAQ.js";
167
167
  import {
168
168
  IntelligenceService
169
- } from "./chunk-WQXRRCFC.js";
169
+ } from "./chunk-JU3KGXW6.js";
170
170
  import {
171
171
  computeCitedCompetitorDomains,
172
172
  determineCitationState
@@ -327,7 +327,7 @@ import {
327
327
  webhookTargetRefusalReason,
328
328
  webhookUserAgent,
329
329
  writeAuditLog
330
- } from "./chunk-R5G7SFRX.js";
330
+ } from "./chunk-3MUJYDIH.js";
331
331
  import {
332
332
  OperationalLogStore,
333
333
  SentimentIdempotencyConflict,
@@ -429,7 +429,7 @@ import {
429
429
  unrecognizedAgentEventsHourly,
430
430
  unrecognizedAgentNotifyState,
431
431
  usageCounters
432
- } from "./chunk-2PDXME2V.js";
432
+ } from "./chunk-BBMZ6534.js";
433
433
  import {
434
434
  AGENT_MEMORY_VALUE_MAX_BYTES,
435
435
  AI_ENGINE_DOMAINS,
@@ -6465,7 +6465,7 @@ function nonBlank(value) {
6465
6465
  return trimmed ? trimmed : void 0;
6466
6466
  }
6467
6467
  function resolveBuildCommit(env = process.env) {
6468
- const embedded = true ? "a62640589cbdfa66b6d425edd2ac4c272ed7fbfe" : void 0;
6468
+ const embedded = true ? "7d52598d8e5babcef629385ac8f2a3336b3dceac" : void 0;
6469
6469
  return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
6470
6470
  }
6471
6471
  function resolveInstanceIdentity(env = process.env) {
@@ -8,7 +8,7 @@ import {
8
8
  reparseStoredResult4,
9
9
  reparseStoredResult5,
10
10
  resolveStoredApiResponse
11
- } from "./chunk-VUPCE7GC.js";
11
+ } from "./chunk-BBVTNECC.js";
12
12
  import {
13
13
  loadConfig
14
14
  } from "./chunk-3BMWBXHZ.js";
@@ -25,7 +25,7 @@ import {
25
25
  createRunCompetitorResolver,
26
26
  readMarketCompetitorNames,
27
27
  refreshSnapshotMentionIdentity
28
- } from "./chunk-R5G7SFRX.js";
28
+ } from "./chunk-3MUJYDIH.js";
29
29
  import {
30
30
  RawEventSampleEventTypes,
31
31
  auditLog,
@@ -39,7 +39,7 @@ import {
39
39
  querySnapshots,
40
40
  rawEventSamples,
41
41
  runs
42
- } from "./chunk-2PDXME2V.js";
42
+ } from "./chunk-BBMZ6534.js";
43
43
  import {
44
44
  ProviderNames,
45
45
  RetrievalContracts,
@@ -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-2N3SLVGN.js");
433
+ const { IntelligenceService } = await import("./intelligence-service-R7ZGIFFP.js");
434
434
  const config = loadConfig();
435
435
  const db = createClient(config.database);
436
436
  migrate(db);
@@ -5,7 +5,7 @@ import {
5
5
  siteCrawlGraphNodes,
6
6
  siteCrawlPages,
7
7
  siteCrawlSnapshots
8
- } from "./chunk-2PDXME2V.js";
8
+ } from "./chunk-BBMZ6534.js";
9
9
  import {
10
10
  SITE_CRAWL_GRAPH_MAX_EDGES,
11
11
  SITE_CRAWL_GRAPH_MAX_NODES,
@@ -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-W3QIXSYT.js");
786
+ const { demoCommand } = await import("./demo-QIIAAUSK.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-BZOT2OWS.js");
807
+ const { backfillAnswerVisibilityCommand } = await import("./backfill-WNCUA5QU.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-BZOT2OWS.js");
824
+ const { backfillAnswerMentionsCommand } = await import("./backfill-WNCUA5QU.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-BZOT2OWS.js");
842
+ const { backfillInsightsCommand } = await import("./backfill-WNCUA5QU.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-BZOT2OWS.js");
862
+ const { backfillNormalizedPathsCommand } = await import("./backfill-WNCUA5QU.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-BZOT2OWS.js");
877
+ const { backfillAiReferralPathsCommand } = await import("./backfill-WNCUA5QU.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-BZOT2OWS.js");
889
+ const { backfillSnapshotAttributionCommand } = await import("./backfill-WNCUA5QU.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-BZOT2OWS.js");
908
+ const { backfillTrafficClassificationCommand } = await import("./backfill-WNCUA5QU.js");
909
909
  await backfillTrafficClassificationCommand({
910
910
  project: getString(input.values, "project"),
911
911
  dryRun: input.dryRun,
@@ -1549,7 +1549,7 @@ var DASHBOARD_CLI_COMMANDS = [
1549
1549
  usage: "canonry dashboard reset-password [--format json]",
1550
1550
  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.",
1551
1551
  run: async (input) => {
1552
- const { resetDashboardPassword } = await import("./dashboard-JBXWQXYU.js");
1552
+ const { resetDashboardPassword } = await import("./dashboard-SWAO3TZZ.js");
1553
1553
  await resetDashboardPassword({ format: input.format });
1554
1554
  }
1555
1555
  },
@@ -7386,7 +7386,7 @@ var SYSTEM_CLI_COMMANDS = [
7386
7386
  options: { access: stringOption() },
7387
7387
  run: async (input) => {
7388
7388
  if (input.positionals.length > 1) throw usageError("Expected at most one command group");
7389
- const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-SAUMPDAU.js"), import("./cli-commands-DPRC73IM.js")]);
7389
+ const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-SAUMPDAU.js"), import("./cli-commands-3P4EFKQC.js")]);
7390
7390
  printCliCatalog(REGISTERED_CLI_COMMANDS2, input.format, input.positionals[0], getString(input.values, "access"));
7391
7391
  }
7392
7392
  },
@@ -7435,7 +7435,7 @@ var SYSTEM_CLI_COMMANDS = [
7435
7435
  },
7436
7436
  allowPositionals: false,
7437
7437
  run: async (input) => {
7438
- const { initCommand } = await import("./init-Z337GCOA.js");
7438
+ const { initCommand } = await import("./init-2K3C2O27.js");
7439
7439
  await initCommand({
7440
7440
  force: getBoolean(input.values, "force"),
7441
7441
  ref: getString(input.values, "ref"),
@@ -7468,7 +7468,7 @@ var SYSTEM_CLI_COMMANDS = [
7468
7468
  },
7469
7469
  allowPositionals: false,
7470
7470
  run: async (input) => {
7471
- const { bootstrapCommand } = await import("./bootstrap-MIVDV6NW.js");
7471
+ const { bootstrapCommand } = await import("./bootstrap-CJ4T6WIR.js");
7472
7472
  await bootstrapCommand({
7473
7473
  format: input.format,
7474
7474
  ref: getString(input.values, "ref")
@@ -7490,7 +7490,7 @@ var SYSTEM_CLI_COMMANDS = [
7490
7490
  allowPositionals: false,
7491
7491
  run: async (input) => {
7492
7492
  applyServerEnv(input.values);
7493
- const { serveCommand } = await import("./serve-K7VUWZ3J.js");
7493
+ const { serveCommand } = await import("./serve-233RXB4F.js");
7494
7494
  await serveCommand(input.format);
7495
7495
  }
7496
7496
  },
@@ -8864,8 +8864,8 @@ var AGENT_CLI_COMMANDS = [
8864
8864
  "timeout-ms": stringOption()
8865
8865
  },
8866
8866
  run: async (input) => {
8867
- const { coerceAgentProvider } = await import("./session-M6ALLPJZ.js");
8868
- const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-J2XJFSXA.js");
8867
+ const { coerceAgentProvider } = await import("./session-QLNH3YT4.js");
8868
+ const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-HDZAXBXJ.js");
8869
8869
  const { agentAsk } = await import("./agent-ask-SKR5ZR3S.js");
8870
8870
  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]`;
8871
8871
  const project3 = requireProject(input, "agent.ask", usage);
@@ -5,7 +5,7 @@ import {
5
5
  isStoredPageReadTool,
6
6
  isStoredReadTool,
7
7
  truncateToolResult
8
- } from "./chunk-FBQ4ACPA.js";
8
+ } from "./chunk-D7XW5LNC.js";
9
9
  import {
10
10
  CANONRY_MCP_TOOLKITS,
11
11
  resolveAeroSkillDir
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  agentToolEvents,
36
36
  llmUsageEvents
37
- } from "./chunk-2PDXME2V.js";
37
+ } from "./chunk-BBMZ6534.js";
38
38
  import {
39
39
  MeasurementPortfolioLists,
40
40
  SEO_TREND_METRICS_BY_KIND,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  REGISTERED_CLI_COMMANDS
3
- } from "./chunk-OE5AMT4X.js";
3
+ } from "./chunk-QMNM2YWF.js";
4
4
  import "./chunk-6GO5VVAC.js";
5
5
  import "./chunk-VJWDBFSL.js";
6
6
  import "./chunk-P5EFITKV.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-OE5AMT4X.js";
4
+ } from "./chunk-QMNM2YWF.js";
5
5
  import "./chunk-6GO5VVAC.js";
6
6
  import {
7
7
  buildSetupState,
8
8
  runPendingServeHandoff
9
- } from "./chunk-4ZMO7NGG.js";
9
+ } from "./chunk-IIIBDDAR.js";
10
10
  import "./chunk-VJWDBFSL.js";
11
11
  import "./chunk-P5EFITKV.js";
12
12
  import "./chunk-TSENU4GG.js";
@@ -7,12 +7,12 @@ import {
7
7
  } from "./chunk-HGMYEDAQ.js";
8
8
  import {
9
9
  anyUsersExist
10
- } from "./chunk-R5G7SFRX.js";
10
+ } from "./chunk-3MUJYDIH.js";
11
11
  import "./chunk-3NUSGD54.js";
12
12
  import "./chunk-BGIH54A3.js";
13
13
  import {
14
14
  createClient
15
- } from "./chunk-2PDXME2V.js";
15
+ } from "./chunk-BBMZ6534.js";
16
16
  import "./chunk-LABWX26D.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
@@ -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-E7KMACLN.js");
43
+ const { createDemoServer } = await import("./demo-server-UUENUNWU.js");
44
44
  const app = await createDemoServer({ trustProxy });
45
45
  let stopping = false;
46
46
  const stop = () => {
@@ -5,7 +5,7 @@ import {
5
5
  computeFactorAverages,
6
6
  layoutSiteCrawlGraphInput,
7
7
  persistSiteCrawlGraphLayout
8
- } from "./chunk-ADBL7P3V.js";
8
+ } from "./chunk-LSYMN3XT.js";
9
9
  import {
10
10
  canonryMcpTools
11
11
  } from "./chunk-QFIUKE5K.js";
@@ -19,7 +19,7 @@ import "./chunk-HGMYEDAQ.js";
19
19
  import {
20
20
  HISTORY_WINDOW_RUNS,
21
21
  IntelligenceService
22
- } from "./chunk-WQXRRCFC.js";
22
+ } from "./chunk-JU3KGXW6.js";
23
23
  import {
24
24
  determineCitationState
25
25
  } from "./chunk-PSP56PWY.js";
@@ -27,7 +27,7 @@ import "./chunk-GNXQMAHP.js";
27
27
  import {
28
28
  apiRoutes,
29
29
  assessConversionTrackingIntegrity
30
- } from "./chunk-R5G7SFRX.js";
30
+ } from "./chunk-3MUJYDIH.js";
31
31
  import "./chunk-3NUSGD54.js";
32
32
  import "./chunk-BGIH54A3.js";
33
33
  import {
@@ -105,7 +105,7 @@ import {
105
105
  siteCrawlPages,
106
106
  siteCrawlSnapshots,
107
107
  trafficSources
108
- } from "./chunk-2PDXME2V.js";
108
+ } from "./chunk-BBMZ6534.js";
109
109
  import {
110
110
  AI_ENGINE_DOMAINS,
111
111
  CitationStates,