@ainyc/canonry 4.51.0 → 4.51.2

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.
package/dist/cli.js CHANGED
@@ -7,6 +7,8 @@ import {
7
7
  backfillInsightsCommand,
8
8
  backfillNormalizedPaths,
9
9
  backfillNormalizedPathsCommand,
10
+ backfillSnapshotAttributionCommand,
11
+ backfillTrafficClassificationCommand,
10
12
  checkLatestVersionForCli,
11
13
  coerceAgentProvider,
12
14
  createServer,
@@ -21,7 +23,7 @@ import {
21
23
  setTelemetrySource,
22
24
  showFirstRunNotice,
23
25
  trackEvent
24
- } from "./chunk-FDR3G6SB.js";
26
+ } from "./chunk-WBO5S3IX.js";
25
27
  import {
26
28
  CliError,
27
29
  EXIT_SYSTEM_ERROR,
@@ -37,14 +39,14 @@ import {
37
39
  saveConfig,
38
40
  saveConfigPatch,
39
41
  usageError
40
- } from "./chunk-GGXU5VKI.js";
42
+ } from "./chunk-HMZKIOLG.js";
41
43
  import {
42
44
  apiKeys,
43
45
  createClient,
44
46
  migrate,
45
47
  projects,
46
48
  queries
47
- } from "./chunk-DLDLDWH4.js";
49
+ } from "./chunk-QZ5XSM6C.js";
48
50
  import {
49
51
  CcReleaseSyncStatuses,
50
52
  CheckScopes,
@@ -63,7 +65,7 @@ import {
63
65
  providerQuotaPolicySchema,
64
66
  resolveProviderInput,
65
67
  skillsClientSchema
66
- } from "./chunk-2ARCCG5E.js";
68
+ } from "./chunk-FYGBW3SM.js";
67
69
 
68
70
  // src/cli.ts
69
71
  import { pathToFileURL } from "url";
@@ -375,14 +377,44 @@ var BACKFILL_CLI_COMMANDS = [
375
377
  });
376
378
  }
377
379
  },
380
+ {
381
+ path: ["backfill", "snapshot-attribution"],
382
+ usage: "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]",
383
+ supportsDryRun: true,
384
+ run: async (input) => {
385
+ const usage = "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]";
386
+ const project = requireProject(input, "backfill snapshot-attribution", usage);
387
+ await backfillSnapshotAttributionCommand({
388
+ project,
389
+ dryRun: input.dryRun,
390
+ format: input.format
391
+ });
392
+ }
393
+ },
394
+ {
395
+ path: ["backfill", "traffic-classification"],
396
+ usage: "canonry backfill traffic-classification [--project <name>] [--dry-run] [--format json]",
397
+ options: {
398
+ project: stringOption()
399
+ },
400
+ allowPositionals: false,
401
+ supportsDryRun: true,
402
+ run: async (input) => {
403
+ await backfillTrafficClassificationCommand({
404
+ project: getString(input.values, "project"),
405
+ dryRun: input.dryRun,
406
+ format: input.format
407
+ });
408
+ }
409
+ },
378
410
  {
379
411
  path: ["backfill"],
380
- usage: "canonry backfill <answer-visibility|answer-mentions|insights|normalized-paths|ai-referral-paths> [options]",
412
+ usage: "canonry backfill <answer-visibility|answer-mentions|insights|normalized-paths|ai-referral-paths|snapshot-attribution|traffic-classification> [options]",
381
413
  run: async (input) => {
382
414
  unknownSubcommand(input.positionals[0], {
383
415
  command: "backfill",
384
- usage: "canonry backfill <answer-visibility|answer-mentions|insights|normalized-paths|ai-referral-paths> [options]",
385
- available: ["answer-visibility", "answer-mentions", "insights", "normalized-paths", "ai-referral-paths"]
416
+ usage: "canonry backfill <answer-visibility|answer-mentions|insights|normalized-paths|ai-referral-paths|snapshot-attribution|traffic-classification> [options]",
417
+ available: ["answer-visibility", "answer-mentions", "insights", "normalized-paths", "ai-referral-paths", "snapshot-attribution", "traffic-classification"]
386
418
  });
387
419
  }
388
420
  }
@@ -8852,7 +8884,7 @@ function getBootstrapEnv(source, overrides) {
8852
8884
  if (parsed.GEMINI_API_KEY || parsed.GEMINI_VERTEX_PROJECT) {
8853
8885
  providers.gemini = {
8854
8886
  apiKey: parsed.GEMINI_API_KEY ?? "",
8855
- model: parsed.GEMINI_MODEL || "gemini-3-flash",
8887
+ model: parsed.GEMINI_MODEL || "gemini-2.5-flash",
8856
8888
  quota: providerQuotaPolicySchema.parse({
8857
8889
  maxConcurrency: 2,
8858
8890
  maxRequestsPerMinute: 10,
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-FDR3G6SB.js";
3
+ } from "./chunk-WBO5S3IX.js";
4
4
  import {
5
5
  loadConfig
6
- } from "./chunk-GGXU5VKI.js";
7
- import "./chunk-DLDLDWH4.js";
8
- import "./chunk-2ARCCG5E.js";
6
+ } from "./chunk-HMZKIOLG.js";
7
+ import "./chunk-QZ5XSM6C.js";
8
+ import "./chunk-FYGBW3SM.js";
9
9
  export {
10
10
  createServer,
11
11
  loadConfig
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IntelligenceService
3
- } from "./chunk-DLDLDWH4.js";
4
- import "./chunk-2ARCCG5E.js";
3
+ } from "./chunk-QZ5XSM6C.js";
4
+ import "./chunk-FYGBW3SM.js";
5
5
  export {
6
6
  IntelligenceService
7
7
  };
package/dist/mcp.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  CliError,
3
3
  canonryMcpTools,
4
4
  createApiClient
5
- } from "./chunk-GGXU5VKI.js";
6
- import "./chunk-2ARCCG5E.js";
5
+ } from "./chunk-HMZKIOLG.js";
6
+ import "./chunk-FYGBW3SM.js";
7
7
 
8
8
  // src/mcp/cli.ts
9
9
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ainyc/canonry",
3
- "version": "4.51.0",
3
+ "version": "4.51.2",
4
4
  "type": "module",
5
5
  "description": "Agent-first open-source AEO operating platform - track how answer engines cite your domain",
6
6
  "license": "FSL-1.1-ALv2",
@@ -53,31 +53,31 @@
53
53
  "pdf-lib": "^1.17.1",
54
54
  "pino-pretty": "^13.1.3",
55
55
  "yaml": "^2.7.1",
56
- "zod": "^4.1.12",
57
- "@ainyc/canonry-api-client": "0.0.0"
56
+ "zod": "^4.1.12"
58
57
  },
59
58
  "devDependencies": {
60
59
  "@types/better-sqlite3": "^7.6.13",
61
60
  "@types/node-cron": "^3.0.11",
62
61
  "tsup": "^8.5.1",
63
62
  "tsx": "^4.19.0",
64
- "@ainyc/canonry-api-routes": "0.0.0",
63
+ "@ainyc/canonry-api-client": "0.0.0",
65
64
  "@ainyc/canonry-config": "0.0.0",
66
- "@ainyc/canonry-intelligence": "0.0.0",
65
+ "@ainyc/canonry-api-routes": "0.0.0",
67
66
  "@ainyc/canonry-contracts": "0.0.0",
68
67
  "@ainyc/canonry-db": "0.0.0",
68
+ "@ainyc/canonry-intelligence": "0.0.0",
69
69
  "@ainyc/canonry-integration-bing": "0.0.0",
70
- "@ainyc/canonry-integration-commoncrawl": "0.0.0",
71
70
  "@ainyc/canonry-integration-cloud-run": "0.0.0",
72
71
  "@ainyc/canonry-integration-google": "0.0.0",
73
72
  "@ainyc/canonry-integration-traffic": "0.0.0",
74
- "@ainyc/canonry-provider-cdp": "0.0.0",
75
73
  "@ainyc/canonry-integration-wordpress": "0.0.0",
76
74
  "@ainyc/canonry-provider-claude": "0.0.0",
75
+ "@ainyc/canonry-integration-commoncrawl": "0.0.0",
76
+ "@ainyc/canonry-provider-cdp": "0.0.0",
77
77
  "@ainyc/canonry-provider-local": "0.0.0",
78
- "@ainyc/canonry-provider-openai": "0.0.0",
79
78
  "@ainyc/canonry-provider-gemini": "0.0.0",
80
- "@ainyc/canonry-provider-perplexity": "0.0.0"
79
+ "@ainyc/canonry-provider-perplexity": "0.0.0",
80
+ "@ainyc/canonry-provider-openai": "0.0.0"
81
81
  },
82
82
  "scripts": {
83
83
  "build": "tsx scripts/copy-agent-assets.ts && tsup && tsx build-web.ts",