@ainyc/canonry 3.4.5 → 3.4.6

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/assets/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
  <link rel="icon" type="image/png" sizes="32x32" href="./favicon-32.png" />
13
13
  <link rel="apple-touch-icon" href="./apple-touch-icon.png" />
14
14
  <title>Canonry</title>
15
- <script type="module" crossorigin src="./assets/index-C1kUp1aS.js"></script>
15
+ <script type="module" crossorigin src="./assets/index-C6qeFqvR.js"></script>
16
16
  <link rel="stylesheet" crossorigin href="./assets/index-JG7aBJrz.css">
17
17
  </head>
18
18
  <body>
@@ -2,7 +2,7 @@ import {
2
2
  ContentActions,
3
3
  RunKinds,
4
4
  __export
5
- } from "./chunk-D4YFX3X4.js";
5
+ } from "./chunk-VIUWGDDU.js";
6
6
 
7
7
  // src/intelligence-service.ts
8
8
  import { eq, desc, asc, and, or, inArray } from "drizzle-orm";
@@ -4,7 +4,7 @@ import {
4
4
  configExists,
5
5
  loadConfig,
6
6
  saveConfigPatch
7
- } from "./chunk-5OYYYY4I.js";
7
+ } from "./chunk-ZYESHCMF.js";
8
8
  import {
9
9
  IntelligenceService,
10
10
  MIN_TREND_POINTS,
@@ -48,7 +48,7 @@ import {
48
48
  runs,
49
49
  schedules,
50
50
  usageCounters
51
- } from "./chunk-ZOJLW6WR.js";
51
+ } from "./chunk-K33FVWFW.js";
52
52
  import {
53
53
  AGENT_MEMORY_VALUE_MAX_BYTES,
54
54
  AGENT_PROVIDER_IDS,
@@ -110,7 +110,7 @@ import {
110
110
  visibilityStateFromAnswerMentioned,
111
111
  windowCutoff,
112
112
  wordpressEnvSchema
113
- } from "./chunk-D4YFX3X4.js";
113
+ } from "./chunk-VIUWGDDU.js";
114
114
 
115
115
  // src/telemetry.ts
116
116
  import crypto from "crypto";
@@ -8372,6 +8372,8 @@ async function googleRoutes(app, opts) {
8372
8372
  const total = latestByUrl.size;
8373
8373
  const indexed = indexedUrls.length;
8374
8374
  const notIndexed = notIndexedUrls.length;
8375
+ const latestSnapshot = app.db.select({ createdAt: gscCoverageSnapshots.createdAt }).from(gscCoverageSnapshots).where(eq18(gscCoverageSnapshots.projectId, project.id)).orderBy(desc8(gscCoverageSnapshots.createdAt)).limit(1).get();
8376
+ const lastSyncedAt = latestSnapshot?.createdAt ?? null;
8375
8377
  const formatRow = (r) => ({
8376
8378
  id: r.id,
8377
8379
  url: r.url,
@@ -8410,6 +8412,7 @@ async function googleRoutes(app, opts) {
8410
8412
  percentage: total > 0 ? Math.round(indexed / total * 1e3) / 10 : 0
8411
8413
  },
8412
8414
  lastInspectedAt,
8415
+ lastSyncedAt,
8413
8416
  indexed: indexedUrls.map(formatRow),
8414
8417
  notIndexed: notIndexedUrls.map(formatRow),
8415
8418
  deindexed: deindexedUrls,
@@ -608,6 +608,7 @@ var gscCoverageSummaryDtoSchema = z6.object({
608
608
  percentage: z6.number()
609
609
  }),
610
610
  lastInspectedAt: z6.string().nullable(),
611
+ lastSyncedAt: z6.string().nullable(),
611
612
  indexed: z6.array(gscUrlInspectionDtoSchema).default([]),
612
613
  notIndexed: z6.array(gscUrlInspectionDtoSchema).default([]),
613
614
  deindexed: z6.array(gscDeindexedRowSchema).default([]),
@@ -10,7 +10,7 @@ import {
10
10
  projectUpsertRequestSchema,
11
11
  runTriggerRequestSchema,
12
12
  scheduleUpsertRequestSchema
13
- } from "./chunk-D4YFX3X4.js";
13
+ } from "./chunk-VIUWGDDU.js";
14
14
 
15
15
  // src/config.ts
16
16
  import fs from "fs";
package/dist/cli.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  setGoogleAuthConfig,
18
18
  showFirstRunNotice,
19
19
  trackEvent
20
- } from "./chunk-P3PS3ZSN.js";
20
+ } from "./chunk-UJRPODX3.js";
21
21
  import {
22
22
  CliError,
23
23
  EXIT_SYSTEM_ERROR,
@@ -32,7 +32,7 @@ import {
32
32
  saveConfig,
33
33
  saveConfigPatch,
34
34
  usageError
35
- } from "./chunk-5OYYYY4I.js";
35
+ } from "./chunk-ZYESHCMF.js";
36
36
  import {
37
37
  MIN_TREND_POINTS,
38
38
  apiKeys,
@@ -47,7 +47,7 @@ import {
47
47
  projects,
48
48
  querySnapshots,
49
49
  runs
50
- } from "./chunk-ZOJLW6WR.js";
50
+ } from "./chunk-K33FVWFW.js";
51
51
  import {
52
52
  CcReleaseSyncStatuses,
53
53
  CheckScopes,
@@ -65,7 +65,7 @@ import {
65
65
  providerQuotaPolicySchema,
66
66
  resolveProviderInput,
67
67
  skillsClientSchema
68
- } from "./chunk-D4YFX3X4.js";
68
+ } from "./chunk-VIUWGDDU.js";
69
69
 
70
70
  // src/cli.ts
71
71
  import { pathToFileURL } from "url";
@@ -581,7 +581,7 @@ function readStoredGroundingSources(rawResponse) {
581
581
  return result;
582
582
  }
583
583
  async function backfillInsightsCommand(project, opts) {
584
- const { IntelligenceService } = await import("./intelligence-service-GV6CAJ3Q.js");
584
+ const { IntelligenceService } = await import("./intelligence-service-NGA6RLCH.js");
585
585
  const config = loadConfig();
586
586
  const db = createClient(config.database);
587
587
  migrate(db);
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-P3PS3ZSN.js";
3
+ } from "./chunk-UJRPODX3.js";
4
4
  import {
5
5
  loadConfig
6
- } from "./chunk-5OYYYY4I.js";
7
- import "./chunk-ZOJLW6WR.js";
8
- import "./chunk-D4YFX3X4.js";
6
+ } from "./chunk-ZYESHCMF.js";
7
+ import "./chunk-K33FVWFW.js";
8
+ import "./chunk-VIUWGDDU.js";
9
9
  export {
10
10
  createServer,
11
11
  loadConfig
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IntelligenceService
3
- } from "./chunk-ZOJLW6WR.js";
4
- import "./chunk-D4YFX3X4.js";
3
+ } from "./chunk-K33FVWFW.js";
4
+ import "./chunk-VIUWGDDU.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-5OYYYY4I.js";
6
- import "./chunk-D4YFX3X4.js";
5
+ } from "./chunk-ZYESHCMF.js";
6
+ import "./chunk-VIUWGDDU.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": "3.4.5",
3
+ "version": "3.4.6",
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",
@@ -59,21 +59,21 @@
59
59
  "@types/node-cron": "^3.0.11",
60
60
  "tsup": "^8.5.1",
61
61
  "tsx": "^4.19.0",
62
- "@ainyc/canonry-api-routes": "0.0.0",
63
62
  "@ainyc/canonry-config": "0.0.0",
64
- "@ainyc/canonry-contracts": "0.0.0",
65
63
  "@ainyc/canonry-db": "0.0.0",
66
- "@ainyc/canonry-integration-bing": "0.0.0",
64
+ "@ainyc/canonry-contracts": "0.0.0",
65
+ "@ainyc/canonry-api-routes": "0.0.0",
67
66
  "@ainyc/canonry-intelligence": "0.0.0",
68
- "@ainyc/canonry-integration-google": "0.0.0",
67
+ "@ainyc/canonry-integration-bing": "0.0.0",
69
68
  "@ainyc/canonry-integration-commoncrawl": "0.0.0",
70
69
  "@ainyc/canonry-integration-wordpress": "0.0.0",
71
- "@ainyc/canonry-provider-claude": "0.0.0",
70
+ "@ainyc/canonry-integration-google": "0.0.0",
72
71
  "@ainyc/canonry-provider-cdp": "0.0.0",
73
- "@ainyc/canonry-provider-openai": "0.0.0",
72
+ "@ainyc/canonry-provider-claude": "0.0.0",
74
73
  "@ainyc/canonry-provider-gemini": "0.0.0",
75
- "@ainyc/canonry-provider-perplexity": "0.0.0",
76
- "@ainyc/canonry-provider-local": "0.0.0"
74
+ "@ainyc/canonry-provider-local": "0.0.0",
75
+ "@ainyc/canonry-provider-openai": "0.0.0",
76
+ "@ainyc/canonry-provider-perplexity": "0.0.0"
77
77
  },
78
78
  "scripts": {
79
79
  "build": "tsx scripts/copy-agent-assets.ts && tsup && tsx build-web.ts",