@canonry/canonry 4.180.2 → 4.180.4

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 (26) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +1 -1
  2. package/assets/assets/{AuditHistoryPanel-Cf-jEEKZ.js → AuditHistoryPanel-CdM_9qX1.js} +1 -1
  3. package/assets/assets/{BacklinksPage-oMcS6Hc_.js → BacklinksPage-DWWMPSPn.js} +1 -1
  4. package/assets/assets/{HistoryPage-CDQOpxi0.js → HistoryPage-m7TtGFBQ.js} +1 -1
  5. package/assets/assets/{MeasurementPropertyPage-MoKFTmrS.js → MeasurementPropertyPage-CYBfBtEz.js} +1 -1
  6. package/assets/assets/{ProjectPage-CtD1AwXE.js → ProjectPage-CNPcNrIR.js} +1 -1
  7. package/assets/assets/{RunRow-CPekiscK.js → RunRow-O4u505Fc.js} +1 -1
  8. package/assets/assets/{RunsPage-hn05ImCv.js → RunsPage-CCzFT4X0.js} +1 -1
  9. package/assets/assets/{SettingsPage-BOTYXtfF.js → SettingsPage-DOmE3JbU.js} +1 -1
  10. package/assets/assets/{SiteHealthSection-FwMZ11F8.js → SiteHealthSection-BZFVE2h9.js} +3 -3
  11. package/assets/assets/{TrafficPage-f2v6A_uk.js → TrafficPage-DYxOEVbW.js} +1 -1
  12. package/assets/assets/{TrafficSourceDetailPage-nhWRLHiu.js → TrafficSourceDetailPage-Qd5Zpx_8.js} +1 -1
  13. package/assets/assets/{extract-error-message-Cp1YeVEr.js → extract-error-message-B0bdIDVc.js} +1 -1
  14. package/assets/assets/{index-VmxEHABq.js → index-HmdbSL4h.js} +17 -17
  15. package/assets/assets/{react-sigma_core.esm.min-fnm2MkMi.js → react-sigma_core.esm.min-DXCrX1Ie.js} +1 -1
  16. package/assets/index.html +1 -1
  17. package/dist/{chunk-665YENL2.js → chunk-2J65ALIR.js} +23 -5
  18. package/dist/{chunk-4XHQ2GCN.js → chunk-DK23XZ6C.js} +2 -2
  19. package/dist/{chunk-DA25LOTW.js → chunk-JJIESVNL.js} +1 -1
  20. package/dist/{chunk-6IR32MIH.js → chunk-UESVOQRS.js} +10 -2
  21. package/dist/{chunk-44LVINXQ.js → chunk-V4QGOJNH.js} +681 -452
  22. package/dist/cli.js +17 -6
  23. package/dist/index.js +4 -4
  24. package/dist/{intelligence-service-RNBODYMZ.js → intelligence-service-XNAKDGDQ.js} +2 -2
  25. package/dist/mcp.js +3 -3
  26. package/package.json +11 -11
package/dist/cli.js CHANGED
@@ -26,11 +26,11 @@ import {
26
26
  showFirstRunNotice,
27
27
  trackCliCommandFinished,
28
28
  trackEvent
29
- } from "./chunk-665YENL2.js";
29
+ } from "./chunk-2J65ALIR.js";
30
30
  import {
31
31
  autoSyncSkills,
32
32
  formatAutoSyncNotice
33
- } from "./chunk-4XHQ2GCN.js";
33
+ } from "./chunk-DK23XZ6C.js";
34
34
  import {
35
35
  CliError,
36
36
  EXIT_SYSTEM_ERROR,
@@ -55,7 +55,7 @@ import {
55
55
  saveConfigPatch,
56
56
  systemError,
57
57
  usageError
58
- } from "./chunk-DA25LOTW.js";
58
+ } from "./chunk-JJIESVNL.js";
59
59
  import {
60
60
  CLOUDFLARE_WORKER_BINDINGS,
61
61
  CLOUDFLARE_WORKER_GENERATED_MARKER,
@@ -69,7 +69,7 @@ import {
69
69
  projects,
70
70
  queries,
71
71
  renderReportHtml
72
- } from "./chunk-44LVINXQ.js";
72
+ } from "./chunk-V4QGOJNH.js";
73
73
  import {
74
74
  AdsDeliverySnapshotStatuses,
75
75
  AdsHistoricalCampaignRollupStatuses,
@@ -138,7 +138,7 @@ import {
138
138
  providerQuotaPolicySchema,
139
139
  resolveProviderInput,
140
140
  winnabilityClassSchema
141
- } from "./chunk-6IR32MIH.js";
141
+ } from "./chunk-UESVOQRS.js";
142
142
 
143
143
  // src/cli.ts
144
144
  import { pathToFileURL } from "url";
@@ -14669,6 +14669,17 @@ function encodeLegacySetupState(state) {
14669
14669
  return flags.length > 0 ? flags.sort().join("|") : "none";
14670
14670
  }
14671
14671
 
14672
+ // src/server-shutdown.ts
14673
+ async function closeWithIdleSweep(app, intervalMs = 250) {
14674
+ const sweep = setInterval(() => app.server.closeIdleConnections(), intervalMs);
14675
+ sweep.unref();
14676
+ try {
14677
+ await app.close();
14678
+ } finally {
14679
+ clearInterval(sweep);
14680
+ }
14681
+ }
14682
+
14672
14683
  // src/agent-plugin.ts
14673
14684
  import fs17 from "fs";
14674
14685
  import path12 from "path";
@@ -14914,7 +14925,7 @@ async function serveCommand(format = "text") {
14914
14925
  console.log(`
14915
14926
  Received ${signal}, stopping server...`);
14916
14927
  }
14917
- app.close().then(() => {
14928
+ closeWithIdleSweep(app).then(() => {
14918
14929
  process.exit(0);
14919
14930
  }).catch((err) => {
14920
14931
  console.error("Error during shutdown:", err);
package/dist/index.js CHANGED
@@ -3,12 +3,12 @@ import {
3
3
  createGoogleMarketingCredentialStore,
4
4
  createGoogleMarketingRuntime,
5
5
  createServer
6
- } from "./chunk-665YENL2.js";
6
+ } from "./chunk-2J65ALIR.js";
7
7
  import {
8
8
  loadConfig
9
- } from "./chunk-DA25LOTW.js";
10
- import "./chunk-44LVINXQ.js";
11
- import "./chunk-6IR32MIH.js";
9
+ } from "./chunk-JJIESVNL.js";
10
+ import "./chunk-V4QGOJNH.js";
11
+ import "./chunk-UESVOQRS.js";
12
12
  export {
13
13
  GoogleMarketingRuntimeError,
14
14
  createGoogleMarketingCredentialStore,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IntelligenceService
3
- } from "./chunk-44LVINXQ.js";
4
- import "./chunk-6IR32MIH.js";
3
+ } from "./chunk-V4QGOJNH.js";
4
+ import "./chunk-UESVOQRS.js";
5
5
  export {
6
6
  IntelligenceService
7
7
  };
package/dist/mcp.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  autoSyncSkills
3
- } from "./chunk-4XHQ2GCN.js";
3
+ } from "./chunk-DK23XZ6C.js";
4
4
  import {
5
5
  createApiClient,
6
6
  createCanonryMcpServer
7
- } from "./chunk-DA25LOTW.js";
7
+ } from "./chunk-JJIESVNL.js";
8
8
  import {
9
9
  isReadOnlyKey
10
- } from "./chunk-6IR32MIH.js";
10
+ } from "./chunk-UESVOQRS.js";
11
11
 
12
12
  // src/mcp/cli.ts
13
13
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canonry/canonry",
3
- "version": "4.180.2",
3
+ "version": "4.180.4",
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
  "license": "FSL-1.1-ALv2",
@@ -70,31 +70,31 @@
70
70
  "@types/node-cron": "^3.0.11",
71
71
  "tsup": "^8.5.1",
72
72
  "tsx": "^4.19.0",
73
- "@ainyc/canonry-api-client": "0.0.0",
74
73
  "@ainyc/canonry-api-routes": "0.0.0",
74
+ "@ainyc/canonry-api-client": "0.0.0",
75
75
  "@ainyc/canonry-config": "0.0.0",
76
- "@ainyc/canonry-db": "0.0.0",
77
76
  "@ainyc/canonry-contracts": "0.0.0",
77
+ "@ainyc/canonry-db": "0.0.0",
78
78
  "@ainyc/canonry-integration-bing": "0.0.0",
79
+ "@ainyc/canonry-integration-cloudflare-queue": "0.0.0",
79
80
  "@ainyc/canonry-integration-cloud-run": "0.0.0",
80
81
  "@ainyc/canonry-integration-cloudflare-worker": "0.0.0",
81
- "@ainyc/canonry-integration-commoncrawl": "0.0.0",
82
82
  "@ainyc/canonry-integration-google": "0.0.0",
83
- "@ainyc/canonry-integration-cloudflare-queue": "0.0.0",
83
+ "@ainyc/canonry-integration-commoncrawl": "0.0.0",
84
84
  "@ainyc/canonry-integration-google-ads": "0.0.0",
85
- "@ainyc/canonry-integration-google-business-profile": "0.0.0",
86
85
  "@ainyc/canonry-integration-google-places": "0.0.0",
86
+ "@ainyc/canonry-integration-google-business-profile": "0.0.0",
87
87
  "@ainyc/canonry-integration-google-tag-manager": "0.0.0",
88
- "@ainyc/canonry-integration-traffic": "0.0.0",
89
88
  "@ainyc/canonry-integration-openai-ads": "0.0.0",
89
+ "@ainyc/canonry-integration-traffic": "0.0.0",
90
+ "@ainyc/canonry-integration-wordpress": "0.0.0",
90
91
  "@ainyc/canonry-provider-claude": "0.0.0",
91
- "@ainyc/canonry-intelligence": "0.0.0",
92
- "@ainyc/canonry-provider-cdp": "0.0.0",
93
92
  "@ainyc/canonry-provider-gemini": "0.0.0",
93
+ "@ainyc/canonry-intelligence": "0.0.0",
94
94
  "@ainyc/canonry-provider-local": "0.0.0",
95
- "@ainyc/canonry-provider-perplexity": "0.0.0",
96
95
  "@ainyc/canonry-provider-openai": "0.0.0",
97
- "@ainyc/canonry-integration-wordpress": "0.0.0"
96
+ "@ainyc/canonry-provider-cdp": "0.0.0",
97
+ "@ainyc/canonry-provider-perplexity": "0.0.0"
98
98
  },
99
99
  "scripts": {
100
100
  "build": "tsx scripts/copy-agent-assets.ts && tsup && tsx build-web.ts",