@canonry/canonry 4.180.4 → 4.180.5
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.
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
siteCrawlSnapshots,
|
|
158
158
|
toAlertView,
|
|
159
159
|
usageCounters
|
|
160
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-EC2O3LHD.js";
|
|
161
161
|
import {
|
|
162
162
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
163
163
|
AGENT_PROVIDER_IDS,
|
|
@@ -11866,7 +11866,7 @@ function readStoredGroundingSources(rawResponse) {
|
|
|
11866
11866
|
return result;
|
|
11867
11867
|
}
|
|
11868
11868
|
async function backfillInsightsCommand(project, opts) {
|
|
11869
|
-
const { IntelligenceService: IntelligenceService2 } = await import("./intelligence-service-
|
|
11869
|
+
const { IntelligenceService: IntelligenceService2 } = await import("./intelligence-service-NJUFIWAO.js");
|
|
11870
11870
|
const config = loadConfig();
|
|
11871
11871
|
const db = createClient(config.database);
|
|
11872
11872
|
migrate(db);
|
|
@@ -22954,13 +22954,15 @@ function buildCandidateQueries(opts) {
|
|
|
22954
22954
|
});
|
|
22955
22955
|
}
|
|
22956
22956
|
var DEFAULT_CONTENT_GSC_WINDOW_DAYS = 30;
|
|
22957
|
-
function
|
|
22958
|
-
const endDate = readLatestGscDataDate(db, projectId);
|
|
22959
|
-
if (!endDate) return null;
|
|
22957
|
+
function windowEndingOn(endDate, windowDays2) {
|
|
22960
22958
|
const end = /* @__PURE__ */ new Date(`${endDate}T00:00:00Z`);
|
|
22961
22959
|
end.setUTCDate(end.getUTCDate() - (Math.max(1, windowDays2) - 1));
|
|
22962
22960
|
return { startDate: end.toISOString().slice(0, 10), endDate };
|
|
22963
22961
|
}
|
|
22962
|
+
function resolveContentGscWindow(db, projectId, windowDays2) {
|
|
22963
|
+
const endDate = readLatestGscDataDate(db, projectId);
|
|
22964
|
+
return endDate ? windowEndingOn(endDate, windowDays2) : null;
|
|
22965
|
+
}
|
|
22964
22966
|
function pageDayFallback(rows) {
|
|
22965
22967
|
const byDay = /* @__PURE__ */ new Map();
|
|
22966
22968
|
for (const r of rows) {
|
|
@@ -27327,7 +27329,7 @@ function buildProjectReport(db, projectName, periodDays) {
|
|
|
27327
27329
|
const indexingHealthSection = buildIndexingHealth(db, project.id);
|
|
27328
27330
|
const citationsTrend = buildCitationsTrend(db, project.id, queryLookup, latestRunLocation);
|
|
27329
27331
|
const insightList = buildInsightList(db, project.id, latestRunLocation);
|
|
27330
|
-
const orchestratorInput = loadOrchestratorInput(db, project, latestRunLocation
|
|
27332
|
+
const orchestratorInput = loadOrchestratorInput(db, project, latestRunLocation);
|
|
27331
27333
|
const dismissedTargetRefs = loadDismissedTargetRefs(db, project.id);
|
|
27332
27334
|
const rawContentOpportunities = buildContentTargetRows(orchestratorInput);
|
|
27333
27335
|
const contentOpportunities = dismissedTargetRefs.size > 0 ? rawContentOpportunities.filter((r) => !dismissedTargetRefs.has(r.targetRef)) : rawContentOpportunities;
|
package/dist/cli.js
CHANGED
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
showFirstRunNotice,
|
|
27
27
|
trackCliCommandFinished,
|
|
28
28
|
trackEvent
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6LSP7ODK.js";
|
|
30
30
|
import {
|
|
31
31
|
autoSyncSkills,
|
|
32
32
|
formatAutoSyncNotice
|
|
@@ -69,7 +69,7 @@ import {
|
|
|
69
69
|
projects,
|
|
70
70
|
queries,
|
|
71
71
|
renderReportHtml
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-EC2O3LHD.js";
|
|
73
73
|
import {
|
|
74
74
|
AdsDeliverySnapshotStatuses,
|
|
75
75
|
AdsHistoricalCampaignRollupStatuses,
|
package/dist/index.js
CHANGED
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
createGoogleMarketingCredentialStore,
|
|
4
4
|
createGoogleMarketingRuntime,
|
|
5
5
|
createServer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6LSP7ODK.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig
|
|
9
9
|
} from "./chunk-JJIESVNL.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EC2O3LHD.js";
|
|
11
11
|
import "./chunk-UESVOQRS.js";
|
|
12
12
|
export {
|
|
13
13
|
GoogleMarketingRuntimeError,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonry/canonry",
|
|
3
|
-
"version": "4.180.
|
|
3
|
+
"version": "4.180.5",
|
|
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-routes": "0.0.0",
|
|
74
73
|
"@ainyc/canonry-api-client": "0.0.0",
|
|
75
|
-
"@ainyc/canonry-
|
|
74
|
+
"@ainyc/canonry-api-routes": "0.0.0",
|
|
76
75
|
"@ainyc/canonry-contracts": "0.0.0",
|
|
76
|
+
"@ainyc/canonry-config": "0.0.0",
|
|
77
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",
|
|
80
79
|
"@ainyc/canonry-integration-cloud-run": "0.0.0",
|
|
81
|
-
"@ainyc/canonry-integration-cloudflare-
|
|
82
|
-
"@ainyc/canonry-integration-google": "0.0.0",
|
|
80
|
+
"@ainyc/canonry-integration-cloudflare-queue": "0.0.0",
|
|
83
81
|
"@ainyc/canonry-integration-commoncrawl": "0.0.0",
|
|
82
|
+
"@ainyc/canonry-integration-google": "0.0.0",
|
|
83
|
+
"@ainyc/canonry-integration-cloudflare-worker": "0.0.0",
|
|
84
84
|
"@ainyc/canonry-integration-google-ads": "0.0.0",
|
|
85
85
|
"@ainyc/canonry-integration-google-places": "0.0.0",
|
|
86
86
|
"@ainyc/canonry-integration-google-business-profile": "0.0.0",
|
|
87
87
|
"@ainyc/canonry-integration-google-tag-manager": "0.0.0",
|
|
88
|
-
"@ainyc/canonry-
|
|
89
|
-
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
88
|
+
"@ainyc/canonry-intelligence": "0.0.0",
|
|
90
89
|
"@ainyc/canonry-integration-wordpress": "0.0.0",
|
|
90
|
+
"@ainyc/canonry-integration-traffic": "0.0.0",
|
|
91
|
+
"@ainyc/canonry-integration-openai-ads": "0.0.0",
|
|
92
|
+
"@ainyc/canonry-provider-cdp": "0.0.0",
|
|
91
93
|
"@ainyc/canonry-provider-claude": "0.0.0",
|
|
92
94
|
"@ainyc/canonry-provider-gemini": "0.0.0",
|
|
93
|
-
"@ainyc/canonry-intelligence": "0.0.0",
|
|
94
|
-
"@ainyc/canonry-provider-local": "0.0.0",
|
|
95
95
|
"@ainyc/canonry-provider-openai": "0.0.0",
|
|
96
|
-
"@ainyc/canonry-provider-
|
|
97
|
-
"@ainyc/canonry-provider-
|
|
96
|
+
"@ainyc/canonry-provider-perplexity": "0.0.0",
|
|
97
|
+
"@ainyc/canonry-provider-local": "0.0.0"
|
|
98
98
|
},
|
|
99
99
|
"scripts": {
|
|
100
100
|
"build": "tsx scripts/copy-agent-assets.ts && tsup && tsx build-web.ts",
|