@canonry/canonry 7.50.0 → 7.50.1
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/agent-workspace/skills/canonry/references/canonry-cli.md +1 -1
- package/dist/{chunk-U2GU6MAC.js → chunk-4KAZO6PU.js} +117 -60
- package/dist/{chunk-74NFXXD2.js → chunk-7MDPU6T5.js} +9 -9
- package/dist/{chunk-AKDSQTHE.js → chunk-ALZAMWTF.js} +1 -1
- package/dist/{chunk-5KCJQO4I.js → chunk-BGQV35Y6.js} +1 -1
- package/dist/{chunk-JPFZ4CXQ.js → chunk-HGWJCYGW.js} +2 -2
- package/dist/{chunk-NPYNNEFP.js → chunk-IFIPKXEP.js} +3 -3
- package/dist/{chunk-WMYDLP4K.js → chunk-LAFRGDAN.js} +6 -6
- package/dist/{chunk-CS4POCLI.js → chunk-PNY6B5NF.js} +2 -2
- package/dist/{chunk-P6KH6N4Z.js → chunk-Q2XQ2YRP.js} +3 -3
- package/dist/{chunk-NVKQVQ3C.js → chunk-WYI6KLC4.js} +1 -0
- package/dist/{cli-catalog-NJPHC55G.js → cli-catalog-XOBGGUUS.js} +3 -3
- package/dist/cli-commands-Y2YQGMEZ.js +15 -0
- package/dist/cli.js +10 -10
- package/dist/{demo-server-CX2FZGR5.js → demo-server-4E3LDHBX.js} +4 -4
- package/dist/index.js +6 -6
- package/dist/{intelligence-service-6INMSEAQ.js → intelligence-service-ITB34LC7.js} +2 -2
- package/dist/mcp.js +4 -4
- package/package.json +12 -12
- package/dist/cli-commands-LCP2I6IP.js +0 -15
|
@@ -1019,7 +1019,7 @@ Target, or market attribution. Server sessions and GA sessions remain separate.
|
|
|
1019
1019
|
|
|
1020
1020
|
## Google Analytics 4
|
|
1021
1021
|
|
|
1022
|
-
GA4 integration supports service-account auth and OAuth (`canonry google connect <project> --type ga4`). With OAuth, `ga properties` lists the readable properties so the numeric id `ga connect --property-id` needs can be discovered without leaving canonry. The service account must have Viewer access on the GA4 property. `ga sync` writes the traffic tables (`gaTrafficSnapshots`, `gaAiReferrals`, `gaSocialReferrals`, `gaTrafficSummaries`) plus the GA4 Search Console landing-page snapshot (`gaSearchLandingWindows`, `gaSearchLandingPages`); every subsequent read command queries the local store rather than re-fetching from GA4, so reads are fast and quotaless. AI-referral rows are
|
|
1022
|
+
GA4 integration supports service-account auth and OAuth (`canonry google connect <project> --type ga4`). With OAuth, `ga properties` lists the readable properties so the numeric id `ga connect --property-id` needs can be discovered without leaving canonry. The service account must have Viewer access on the GA4 property. `ga sync` writes the traffic tables (`gaTrafficSnapshots`, `gaAiReferrals`, `gaSocialReferrals`, `gaTrafficSummaries`) plus the GA4 Search Console landing-page snapshot (`gaSearchLandingWindows`, `gaSearchLandingPages`); every subsequent read command queries the local store rather than re-fetching from GA4, so reads are fast and quotaless. AI-referral rows are sessions GA4 puts in its `AI Assistant` channel (medium `ai-assistant`, since 2026-05-13, not retroactive) plus sessions whose source matches chatgpt, openai, perplexity, claude, anthropic, gemini, copilot, deepseek, phind, you.com or meta.ai, or is `grok.com`, a subdomain of it or the tag `grok` (never a substring, so ngrok tunnels stay out), which cover older history and AI visits GA4 files elsewhere. A channel row whose source names no engine is kept under its own source and counted in every AI total; visits that send no referrer still land in Direct. Rows are tracked across three GA4 attribution dimensions (`session` / `first_user` / `manual_utm`; the manual UTM lens matches sources only, since GA4 has no channel for it) and joined to landing pages. Social referrals are split Organic vs Paid via GA4's `sessionDefaultChannelGroup`. All commands support `--format json`.
|
|
1023
1023
|
|
|
1024
1024
|
```bash
|
|
1025
1025
|
cnry ga connect <project> --property-id <id> --key-file ./sa-key.json
|
|
@@ -74,6 +74,7 @@ import {
|
|
|
74
74
|
DiscoveryPromoteCompetitorSkipReasons,
|
|
75
75
|
DiscoverySessionStatuses,
|
|
76
76
|
FeatureNames,
|
|
77
|
+
GA4_AI_ASSISTANT_CHANNEL_GROUP,
|
|
77
78
|
GA_SEARCH_LANDING_DEFAULT_LIMIT,
|
|
78
79
|
GA_SEARCH_LANDING_DEFAULT_WINDOW,
|
|
79
80
|
GA_SEARCH_LANDING_MAX_LIMIT,
|
|
@@ -916,7 +917,7 @@ import {
|
|
|
916
917
|
wordpressSchemaDeployResultDtoSchema,
|
|
917
918
|
wordpressSchemaStatusResultDtoSchema,
|
|
918
919
|
wordpressStatusDtoSchema
|
|
919
|
-
} from "./chunk-
|
|
920
|
+
} from "./chunk-WYI6KLC4.js";
|
|
920
921
|
|
|
921
922
|
// src/intelligence-service.ts
|
|
922
923
|
import { eq as eq99, desc as desc45, asc as asc20, and as and82, ne as ne17, or as or24, inArray as inArray40, gte as gte26, lte as lte23, isNull as isNull19, sql as sql37, exists as exists2 } from "drizzle-orm";
|
|
@@ -50037,6 +50038,12 @@ var GA4_DIMENSIONS = {
|
|
|
50037
50038
|
sessionManualMedium: "sessionManualMedium",
|
|
50038
50039
|
firstUserSource: "firstUserSource",
|
|
50039
50040
|
firstUserMedium: "firstUserMedium",
|
|
50041
|
+
/**
|
|
50042
|
+
* The channel group of the source and medium that first acquired the user,
|
|
50043
|
+
* the first-user counterpart of `sessionDefaultChannelGroup` (deprecated
|
|
50044
|
+
* name `firstUserDefaultChannelGrouping`, getMetadata, captured live).
|
|
50045
|
+
*/
|
|
50046
|
+
firstUserDefaultChannelGroup: "firstUserDefaultChannelGroup",
|
|
50040
50047
|
sessionDefaultChannelGrouping: "sessionDefaultChannelGrouping",
|
|
50041
50048
|
sessionDefaultChannelGroup: "sessionDefaultChannelGroup",
|
|
50042
50049
|
hostName: "hostName",
|
|
@@ -50496,9 +50503,40 @@ var AI_REFERRAL_SOURCE_FILTERS = [
|
|
|
50496
50503
|
{ matchType: "CONTAINS", value: "anthropic" },
|
|
50497
50504
|
{ matchType: "CONTAINS", value: "copilot" },
|
|
50498
50505
|
{ matchType: "CONTAINS", value: "phind" },
|
|
50506
|
+
// Grok by host and bare tag only: as a substring it sits inside ordinary
|
|
50507
|
+
// sources such as ngrok tunnels (`demo.ngrok-free.app`).
|
|
50508
|
+
{ matchType: "EXACT", value: AI_ENGINE_DOMAINS.grok },
|
|
50509
|
+
{ matchType: "ENDS_WITH", value: `.${AI_ENGINE_DOMAINS.grok}` },
|
|
50510
|
+
{ matchType: "EXACT", value: "grok" },
|
|
50511
|
+
{ matchType: "CONTAINS", value: "deepseek" },
|
|
50499
50512
|
{ matchType: "EXACT", value: AI_ENGINE_DOMAINS.you },
|
|
50500
50513
|
{ matchType: "CONTAINS", value: AI_ENGINE_DOMAINS.metaAi }
|
|
50501
50514
|
];
|
|
50515
|
+
var AI_REFERRAL_PASSES = [
|
|
50516
|
+
{
|
|
50517
|
+
label: "session",
|
|
50518
|
+
sourceDimension: GA4_DIMENSIONS.sessionSource,
|
|
50519
|
+
mediumDimension: GA4_DIMENSIONS.sessionMedium,
|
|
50520
|
+
// Same name as the channel the report requests, so the filter matches the
|
|
50521
|
+
// stored `channelGroup` value exactly.
|
|
50522
|
+
channelDimension: GA4_DIMENSIONS.sessionDefaultChannelGrouping
|
|
50523
|
+
},
|
|
50524
|
+
{
|
|
50525
|
+
label: "first_user",
|
|
50526
|
+
sourceDimension: GA4_DIMENSIONS.firstUserSource,
|
|
50527
|
+
mediumDimension: GA4_DIMENSIONS.firstUserMedium,
|
|
50528
|
+
channelDimension: GA4_DIMENSIONS.firstUserDefaultChannelGroup
|
|
50529
|
+
},
|
|
50530
|
+
{
|
|
50531
|
+
label: "manual_utm",
|
|
50532
|
+
sourceDimension: GA4_DIMENSIONS.sessionManualSource,
|
|
50533
|
+
mediumDimension: GA4_DIMENSIONS.sessionManualMedium,
|
|
50534
|
+
channelDimension: null
|
|
50535
|
+
}
|
|
50536
|
+
];
|
|
50537
|
+
function isInvalidGa4Request(error) {
|
|
50538
|
+
return error instanceof GA4ApiError && error.status === 400;
|
|
50539
|
+
}
|
|
50502
50540
|
async function fetchTrafficByLandingPage(accessToken, propertyId, days) {
|
|
50503
50541
|
validateAccessToken2(accessToken);
|
|
50504
50542
|
validatePropertyId(propertyId);
|
|
@@ -50844,69 +50882,24 @@ async function fetchAiReferrals(accessToken, propertyId, days) {
|
|
|
50844
50882
|
const endDate = /* @__PURE__ */ new Date();
|
|
50845
50883
|
const startDate = /* @__PURE__ */ new Date();
|
|
50846
50884
|
startDate.setDate(startDate.getDate() - syncDays);
|
|
50885
|
+
const dateRange = { startDate: formatDate(startDate), endDate: formatDate(endDate) };
|
|
50847
50886
|
ga4Log("info", "fetch-ai-referrals.start", { propertyId, days: syncDays });
|
|
50848
|
-
const PAGE_SIZE = 1e3;
|
|
50849
50887
|
const rows = [];
|
|
50850
|
-
const
|
|
50851
|
-
|
|
50852
|
-
|
|
50853
|
-
|
|
50854
|
-
|
|
50855
|
-
|
|
50856
|
-
|
|
50857
|
-
|
|
50858
|
-
|
|
50859
|
-
|
|
50860
|
-
|
|
50861
|
-
dateRanges: [{ startDate: formatDate(startDate), endDate: formatDate(endDate) }],
|
|
50862
|
-
dimensions: [
|
|
50863
|
-
{ name: GA4_DIMENSIONS.date },
|
|
50864
|
-
{ name: sourceDim },
|
|
50865
|
-
{ name: mediumDim },
|
|
50866
|
-
{ name: GA4_DIMENSIONS.sessionDefaultChannelGrouping },
|
|
50867
|
-
{ name: GA4_DIMENSIONS.landingPagePlusQueryString }
|
|
50868
|
-
],
|
|
50869
|
-
metrics: [
|
|
50870
|
-
{ name: GA4_METRICS.sessions },
|
|
50871
|
-
{ name: GA4_METRICS.totalUsers }
|
|
50872
|
-
],
|
|
50873
|
-
dimensionFilter: {
|
|
50874
|
-
orGroup: {
|
|
50875
|
-
expressions: AI_REFERRAL_SOURCE_FILTERS.map(({ matchType, value }) => ({
|
|
50876
|
-
filter: {
|
|
50877
|
-
fieldName: sourceDim,
|
|
50878
|
-
stringFilter: { matchType, value }
|
|
50879
|
-
}
|
|
50880
|
-
}))
|
|
50881
|
-
}
|
|
50882
|
-
},
|
|
50883
|
-
limit: PAGE_SIZE,
|
|
50884
|
-
offset
|
|
50885
|
-
};
|
|
50886
|
-
const response = await runReport(accessToken, propertyId, request);
|
|
50887
|
-
if (!response) break;
|
|
50888
|
-
const pageRows = (response.rows ?? []).map((row) => {
|
|
50889
|
-
const source = row.dimensionValues[1].value;
|
|
50890
|
-
const medium = row.dimensionValues[2].value;
|
|
50891
|
-
const channelGroup = row.dimensionValues[3]?.value ?? "(not set)";
|
|
50892
|
-
const landingPage = row.dimensionValues[4]?.value ?? "(not set)";
|
|
50893
|
-
return {
|
|
50894
|
-
date: row.dimensionValues[0].value,
|
|
50895
|
-
source,
|
|
50896
|
-
medium,
|
|
50897
|
-
trafficClass: classifyAiReferralTrafficClass({ source, medium, channelGroup, landingPage }),
|
|
50898
|
-
channelGroup,
|
|
50899
|
-
landingPage,
|
|
50900
|
-
sessions: parseInt(row.metricValues[0].value, 10) || 0,
|
|
50901
|
-
users: parseInt(row.metricValues[1].value, 10) || 0,
|
|
50902
|
-
sourceDimension: dimLabel
|
|
50903
|
-
};
|
|
50888
|
+
for (const pass of AI_REFERRAL_PASSES) {
|
|
50889
|
+
let passRows;
|
|
50890
|
+
try {
|
|
50891
|
+
passRows = await fetchAiReferralPass(accessToken, propertyId, dateRange, pass, pass.channelDimension);
|
|
50892
|
+
} catch (error) {
|
|
50893
|
+
if (pass.channelDimension === null || !isInvalidGa4Request(error)) throw error;
|
|
50894
|
+
ga4Log("error", "fetch-ai-referrals.channel-filter-rejected", {
|
|
50895
|
+
propertyId,
|
|
50896
|
+
sourceDimension: pass.label,
|
|
50897
|
+
channelDimension: pass.channelDimension,
|
|
50898
|
+
error: describeError(error)
|
|
50904
50899
|
});
|
|
50905
|
-
|
|
50906
|
-
const totalRows = response.rowCount ?? 0;
|
|
50907
|
-
offset += pageRows.length;
|
|
50908
|
-
if (pageRows.length < PAGE_SIZE || offset >= totalRows) break;
|
|
50900
|
+
passRows = await fetchAiReferralPass(accessToken, propertyId, dateRange, pass, null);
|
|
50909
50901
|
}
|
|
50902
|
+
rows.push(...passRows);
|
|
50910
50903
|
}
|
|
50911
50904
|
const deduped = /* @__PURE__ */ new Map();
|
|
50912
50905
|
for (const row of rows) {
|
|
@@ -50929,6 +50922,70 @@ async function fetchAiReferrals(accessToken, propertyId, days) {
|
|
|
50929
50922
|
ga4Log("info", "fetch-ai-referrals.done", { propertyId, rowCount: dedupedRows.length });
|
|
50930
50923
|
return dedupedRows;
|
|
50931
50924
|
}
|
|
50925
|
+
async function fetchAiReferralPass(accessToken, propertyId, dateRange, pass, channelDimension) {
|
|
50926
|
+
const PAGE_SIZE = 1e3;
|
|
50927
|
+
const expressions = AI_REFERRAL_SOURCE_FILTERS.map(({ matchType, value }) => ({
|
|
50928
|
+
filter: {
|
|
50929
|
+
fieldName: pass.sourceDimension,
|
|
50930
|
+
stringFilter: { matchType, value }
|
|
50931
|
+
}
|
|
50932
|
+
}));
|
|
50933
|
+
if (channelDimension) {
|
|
50934
|
+
expressions.push({
|
|
50935
|
+
filter: {
|
|
50936
|
+
fieldName: channelDimension,
|
|
50937
|
+
stringFilter: { matchType: "EXACT", value: GA4_AI_ASSISTANT_CHANNEL_GROUP, caseSensitive: false }
|
|
50938
|
+
}
|
|
50939
|
+
});
|
|
50940
|
+
}
|
|
50941
|
+
const rows = [];
|
|
50942
|
+
let offset = 0;
|
|
50943
|
+
let pageCount = 0;
|
|
50944
|
+
while (pageCount < GA4_MAX_PAGES) {
|
|
50945
|
+
pageCount++;
|
|
50946
|
+
const request = {
|
|
50947
|
+
dateRanges: [dateRange],
|
|
50948
|
+
dimensions: [
|
|
50949
|
+
{ name: GA4_DIMENSIONS.date },
|
|
50950
|
+
{ name: pass.sourceDimension },
|
|
50951
|
+
{ name: pass.mediumDimension },
|
|
50952
|
+
{ name: GA4_DIMENSIONS.sessionDefaultChannelGrouping },
|
|
50953
|
+
{ name: GA4_DIMENSIONS.landingPagePlusQueryString }
|
|
50954
|
+
],
|
|
50955
|
+
metrics: [
|
|
50956
|
+
{ name: GA4_METRICS.sessions },
|
|
50957
|
+
{ name: GA4_METRICS.totalUsers }
|
|
50958
|
+
],
|
|
50959
|
+
dimensionFilter: { orGroup: { expressions } },
|
|
50960
|
+
limit: PAGE_SIZE,
|
|
50961
|
+
offset
|
|
50962
|
+
};
|
|
50963
|
+
const response = await runReport(accessToken, propertyId, request);
|
|
50964
|
+
if (!response) break;
|
|
50965
|
+
const pageRows = (response.rows ?? []).map((row) => {
|
|
50966
|
+
const source = row.dimensionValues[1].value;
|
|
50967
|
+
const medium = row.dimensionValues[2].value;
|
|
50968
|
+
const channelGroup = row.dimensionValues[3]?.value ?? "(not set)";
|
|
50969
|
+
const landingPage = row.dimensionValues[4]?.value ?? "(not set)";
|
|
50970
|
+
return {
|
|
50971
|
+
date: row.dimensionValues[0].value,
|
|
50972
|
+
source,
|
|
50973
|
+
medium,
|
|
50974
|
+
trafficClass: classifyAiReferralTrafficClass({ source, medium, channelGroup, landingPage }),
|
|
50975
|
+
channelGroup,
|
|
50976
|
+
landingPage,
|
|
50977
|
+
sessions: parseInt(row.metricValues[0].value, 10) || 0,
|
|
50978
|
+
users: parseInt(row.metricValues[1].value, 10) || 0,
|
|
50979
|
+
sourceDimension: pass.label
|
|
50980
|
+
};
|
|
50981
|
+
});
|
|
50982
|
+
rows.push(...pageRows);
|
|
50983
|
+
const totalRows = response.rowCount ?? 0;
|
|
50984
|
+
offset += pageRows.length;
|
|
50985
|
+
if (pageRows.length < PAGE_SIZE || offset >= totalRows) break;
|
|
50986
|
+
}
|
|
50987
|
+
return rows;
|
|
50988
|
+
}
|
|
50932
50989
|
var SOCIAL_CHANNEL_GROUPS = ["Organic Social", "Paid Social"];
|
|
50933
50990
|
async function fetchSocialReferrals(accessToken, propertyId, days) {
|
|
50934
50991
|
validateAccessToken2(accessToken);
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
trackFeatureCompleted,
|
|
32
32
|
trackIntegrationConnection,
|
|
33
33
|
waitForServerRuntimeStartup
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-LAFRGDAN.js";
|
|
35
35
|
import {
|
|
36
36
|
clearDashboardPassword,
|
|
37
37
|
configExists,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
saveConfigPatch,
|
|
51
51
|
shouldPrintServeSkillsNudge,
|
|
52
52
|
withBootstrapProviderDefaults
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-PNY6B5NF.js";
|
|
54
54
|
import {
|
|
55
55
|
emitJsonl,
|
|
56
56
|
getBoolean,
|
|
@@ -64,7 +64,7 @@ import {
|
|
|
64
64
|
resolveCliAccess,
|
|
65
65
|
stringOption,
|
|
66
66
|
unknownSubcommand
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ALZAMWTF.js";
|
|
68
68
|
import {
|
|
69
69
|
DEFAULT_DEMO_TRUSTED_PROXIES,
|
|
70
70
|
trustedProxiesProblem,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
resolveDiscoveredGscSitemapUrls,
|
|
78
78
|
runMeasurementDraftAction,
|
|
79
79
|
submitGscSitemapBatches
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-BGQV35Y6.js";
|
|
81
81
|
import {
|
|
82
82
|
CANONRY_DISCORD_URL,
|
|
83
83
|
CANONRY_ISSUES_URL,
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
rawEventSamples,
|
|
123
123
|
readMarketCompetitorNames,
|
|
124
124
|
runs
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-4KAZO6PU.js";
|
|
126
126
|
import {
|
|
127
127
|
AdsDeliverySnapshotStatuses,
|
|
128
128
|
AdsHistoricalCampaignRollupStatuses,
|
|
@@ -278,7 +278,7 @@ import {
|
|
|
278
278
|
visibilityCompareSelectionSchema,
|
|
279
279
|
visibilityReportRequestSchema,
|
|
280
280
|
winnabilityClassSchema
|
|
281
|
-
} from "./chunk-
|
|
281
|
+
} from "./chunk-WYI6KLC4.js";
|
|
282
282
|
|
|
283
283
|
// src/cli-commands/sentiment.ts
|
|
284
284
|
import "zod";
|
|
@@ -586,7 +586,7 @@ function parseDemoTrustedProxies(values) {
|
|
|
586
586
|
async function demoCommand(options) {
|
|
587
587
|
const { host, port } = parseDemoListenOptions(options);
|
|
588
588
|
const trustProxy = parseDemoTrustedProxies(options.trustProxy);
|
|
589
|
-
const { createDemoServer } = await import("./demo-server-
|
|
589
|
+
const { createDemoServer } = await import("./demo-server-4E3LDHBX.js");
|
|
590
590
|
const app = await createDemoServer({ trustProxy });
|
|
591
591
|
let stopping = false;
|
|
592
592
|
const stop = () => {
|
|
@@ -1000,7 +1000,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
1000
1000
|
}
|
|
1001
1001
|
}
|
|
1002
1002
|
async function backfillInsightsCommand(project2, opts) {
|
|
1003
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
1003
|
+
const { IntelligenceService } = await import("./intelligence-service-ITB34LC7.js");
|
|
1004
1004
|
const config = loadConfig();
|
|
1005
1005
|
const db = createClient(config.database);
|
|
1006
1006
|
migrate(db);
|
|
@@ -19378,7 +19378,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
19378
19378
|
options: { access: stringOption() },
|
|
19379
19379
|
run: async (input) => {
|
|
19380
19380
|
if (input.positionals.length > 1) throw usageError("Expected at most one command group");
|
|
19381
|
-
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-
|
|
19381
|
+
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-XOBGGUUS.js"), import("./cli-commands-Y2YQGMEZ.js")]);
|
|
19382
19382
|
printCliCatalog(REGISTERED_CLI_COMMANDS2, input.format, input.positionals[0], getString(input.values, "access"));
|
|
19383
19383
|
}
|
|
19384
19384
|
},
|
|
@@ -163,7 +163,7 @@ import {
|
|
|
163
163
|
trafficSeriesGranularitySchema,
|
|
164
164
|
visibilityCompareSelectionSchema,
|
|
165
165
|
visibilityReportRequestSchema
|
|
166
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-WYI6KLC4.js";
|
|
167
167
|
|
|
168
168
|
// src/package-version.ts
|
|
169
169
|
import { createRequire } from "module";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
siteCrawlGraphNodes,
|
|
6
6
|
siteCrawlPages,
|
|
7
7
|
siteCrawlSnapshots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4KAZO6PU.js";
|
|
9
9
|
import {
|
|
10
10
|
SITE_CRAWL_GRAPH_MAX_EDGES,
|
|
11
11
|
SITE_CRAWL_GRAPH_MAX_NODES,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
factorStatusFromDistribution,
|
|
16
16
|
factorStatusFromScore,
|
|
17
17
|
roundPreservingTotal
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WYI6KLC4.js";
|
|
19
19
|
|
|
20
20
|
// src/site-audit-factors.ts
|
|
21
21
|
function recordedSharePct(factor) {
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
installSkills,
|
|
5
5
|
loadConfigRaw,
|
|
6
6
|
saveConfigPatch
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PNY6B5NF.js";
|
|
8
8
|
import {
|
|
9
9
|
PACKAGE_VERSION
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BGQV35Y6.js";
|
|
11
11
|
import {
|
|
12
12
|
SKILL_MANIFEST_FILENAME,
|
|
13
13
|
SkillsClients
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WYI6KLC4.js";
|
|
15
15
|
|
|
16
16
|
// src/skills-autosync.ts
|
|
17
17
|
import fs from "fs";
|
|
@@ -22,19 +22,19 @@ import {
|
|
|
22
22
|
saveConfig,
|
|
23
23
|
saveConfigPatch,
|
|
24
24
|
sentimentInstallReadiness
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-PNY6B5NF.js";
|
|
26
26
|
import {
|
|
27
27
|
computeFactorAverages,
|
|
28
28
|
deleteSiteCrawlGraphLayout,
|
|
29
29
|
persistSiteCrawlGraphLayout,
|
|
30
30
|
prepareSiteCrawlGraphLayout,
|
|
31
31
|
recordedSharePct
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-HGWJCYGW.js";
|
|
33
33
|
import {
|
|
34
34
|
CanonryMcpToolNames,
|
|
35
35
|
PACKAGE_VERSION,
|
|
36
36
|
canonryMcpTools
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BGQV35Y6.js";
|
|
38
38
|
import {
|
|
39
39
|
CliError
|
|
40
40
|
} from "./chunk-HGMYEDAQ.js";
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
webhookResponseReason,
|
|
242
242
|
webhookTargetRefusalReason,
|
|
243
243
|
writeAuditLog
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-4KAZO6PU.js";
|
|
245
245
|
import {
|
|
246
246
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
247
247
|
AGENT_NONE,
|
|
@@ -489,7 +489,7 @@ import {
|
|
|
489
489
|
winnabilityClassLabel,
|
|
490
490
|
withRetry,
|
|
491
491
|
withSkippedProviders
|
|
492
|
-
} from "./chunk-
|
|
492
|
+
} from "./chunk-WYI6KLC4.js";
|
|
493
493
|
|
|
494
494
|
// src/runtime-context.ts
|
|
495
495
|
function cliRuntimeContext(env = process.env, stdio = process) {
|
|
@@ -8625,7 +8625,7 @@ function nonBlank(value) {
|
|
|
8625
8625
|
return trimmed ? trimmed : void 0;
|
|
8626
8626
|
}
|
|
8627
8627
|
function resolveBuildCommit(env = process.env) {
|
|
8628
|
-
const embedded = true ? "
|
|
8628
|
+
const embedded = true ? "a36190c8c42b049004b2d307f0b7a12225d95e04" : void 0;
|
|
8629
8629
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
8630
8630
|
}
|
|
8631
8631
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
PACKAGE_VERSION,
|
|
3
3
|
canonryMcpTools,
|
|
4
4
|
toolOperationAccess
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BGQV35Y6.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
EXIT_SYSTEM_ERROR,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
skillsClientSchema,
|
|
58
58
|
upgradeCaveatFor,
|
|
59
59
|
upgradeCommandFor
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-WYI6KLC4.js";
|
|
61
61
|
|
|
62
62
|
// src/config.ts
|
|
63
63
|
import fs from "fs";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
resolveCliAccess,
|
|
5
5
|
resolveCliAccessForInvocation,
|
|
6
6
|
windowOptions
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ALZAMWTF.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
EXIT_USER_ERROR,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
} from "./chunk-HGMYEDAQ.js";
|
|
13
13
|
import {
|
|
14
14
|
OperationAccesses
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WYI6KLC4.js";
|
|
16
16
|
|
|
17
17
|
// src/cli-catalog.ts
|
|
18
18
|
import { createRequire } from "module";
|
|
@@ -109,7 +109,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
|
|
|
109
109
|
const accessValue = accessFilterFromArgs(argsWithoutHelp);
|
|
110
110
|
validateAccessFilter(accessValue);
|
|
111
111
|
if (fallbackFormat !== "text") {
|
|
112
|
-
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-
|
|
112
|
+
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-XOBGGUUS.js");
|
|
113
113
|
const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
|
|
114
114
|
printCliCatalog2(specs, fallbackFormat, group2, accessValue);
|
|
115
115
|
return true;
|
|
@@ -24218,6 +24218,7 @@ export {
|
|
|
24218
24218
|
normalizePathPrefix,
|
|
24219
24219
|
aiEngineForReferralSource,
|
|
24220
24220
|
aiReferralEngineLabel,
|
|
24221
|
+
GA4_AI_ASSISTANT_CHANNEL_GROUP,
|
|
24221
24222
|
isGa4AiAssistantChannel,
|
|
24222
24223
|
ratioUnitSchema,
|
|
24223
24224
|
RatioUnits,
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
buildCliCatalog,
|
|
4
4
|
printCliCatalog,
|
|
5
5
|
renderTopLevelHelp
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-Q2XQ2YRP.js";
|
|
7
|
+
import "./chunk-ALZAMWTF.js";
|
|
8
8
|
import "./chunk-HGMYEDAQ.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-WYI6KLC4.js";
|
|
10
10
|
export {
|
|
11
11
|
CLI_ROOT_SUMMARIES,
|
|
12
12
|
buildCliCatalog,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
REGISTERED_CLI_COMMANDS
|
|
3
|
+
} from "./chunk-7MDPU6T5.js";
|
|
4
|
+
import "./chunk-LAFRGDAN.js";
|
|
5
|
+
import "./chunk-PNY6B5NF.js";
|
|
6
|
+
import "./chunk-ALZAMWTF.js";
|
|
7
|
+
import "./chunk-RB2F4D3Z.js";
|
|
8
|
+
import "./chunk-HGWJCYGW.js";
|
|
9
|
+
import "./chunk-BGQV35Y6.js";
|
|
10
|
+
import "./chunk-HGMYEDAQ.js";
|
|
11
|
+
import "./chunk-4KAZO6PU.js";
|
|
12
|
+
import "./chunk-WYI6KLC4.js";
|
|
13
|
+
export {
|
|
14
|
+
REGISTERED_CLI_COMMANDS
|
|
15
|
+
};
|
package/dist/cli.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoSyncSkills,
|
|
4
4
|
formatAutoSyncNotice
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IFIPKXEP.js";
|
|
6
6
|
import {
|
|
7
7
|
accessFilterFromArgs,
|
|
8
8
|
dispatchRegisteredCommand,
|
|
9
9
|
printCliCatalog
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-Q2XQ2YRP.js";
|
|
11
11
|
import {
|
|
12
12
|
REGISTERED_CLI_COMMANDS,
|
|
13
13
|
buildSetupState,
|
|
14
14
|
consumePendingServeHandoff,
|
|
15
15
|
serveCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7MDPU6T5.js";
|
|
17
17
|
import {
|
|
18
18
|
checkLatestVersionForCli,
|
|
19
19
|
cliRuntimeContext,
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
showFirstRunNotice,
|
|
28
28
|
trackCliCommandFinished,
|
|
29
29
|
trackEvent
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-LAFRGDAN.js";
|
|
31
|
+
import "./chunk-PNY6B5NF.js";
|
|
32
32
|
import {
|
|
33
33
|
resolveCliAccess
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ALZAMWTF.js";
|
|
35
35
|
import "./chunk-RB2F4D3Z.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-HGWJCYGW.js";
|
|
37
|
+
import "./chunk-BGQV35Y6.js";
|
|
38
38
|
import {
|
|
39
39
|
CliError,
|
|
40
40
|
EXIT_SYSTEM_ERROR,
|
|
@@ -42,10 +42,10 @@ import {
|
|
|
42
42
|
printCliError,
|
|
43
43
|
usageError
|
|
44
44
|
} from "./chunk-HGMYEDAQ.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-4KAZO6PU.js";
|
|
46
46
|
import {
|
|
47
47
|
OperationAccesses
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WYI6KLC4.js";
|
|
49
49
|
|
|
50
50
|
// src/cli.ts
|
|
51
51
|
import { pathToFileURL } from "url";
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
computeFactorAverages,
|
|
6
6
|
layoutSiteCrawlGraphInput,
|
|
7
7
|
persistSiteCrawlGraphLayout
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HGWJCYGW.js";
|
|
9
9
|
import {
|
|
10
10
|
PACKAGE_VERSION,
|
|
11
11
|
canonryMcpTools
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-BGQV35Y6.js";
|
|
13
13
|
import "./chunk-HGMYEDAQ.js";
|
|
14
14
|
import {
|
|
15
15
|
HISTORY_WINDOW_RUNS,
|
|
@@ -86,7 +86,7 @@ import {
|
|
|
86
86
|
siteCrawlPages,
|
|
87
87
|
siteCrawlSnapshots,
|
|
88
88
|
trafficSources
|
|
89
|
-
} from "./chunk-
|
|
89
|
+
} from "./chunk-4KAZO6PU.js";
|
|
90
90
|
import {
|
|
91
91
|
RunKinds,
|
|
92
92
|
SiteCrawlFetchStates,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
roundPreservingTotal,
|
|
117
117
|
siteAuditPageFactorSchema,
|
|
118
118
|
wilsonInterval
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-WYI6KLC4.js";
|
|
120
120
|
|
|
121
121
|
// src/demo-server.ts
|
|
122
122
|
import { dirname, join as join2 } from "path";
|
package/dist/index.js
CHANGED
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
createGoogleMarketingCredentialStore,
|
|
4
4
|
createGoogleMarketingRuntime,
|
|
5
5
|
createServer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LAFRGDAN.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-PNY6B5NF.js";
|
|
10
|
+
import "./chunk-HGWJCYGW.js";
|
|
11
|
+
import "./chunk-BGQV35Y6.js";
|
|
12
12
|
import "./chunk-HGMYEDAQ.js";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4KAZO6PU.js";
|
|
14
|
+
import "./chunk-WYI6KLC4.js";
|
|
15
15
|
export {
|
|
16
16
|
GoogleMarketingRuntimeError,
|
|
17
17
|
createGoogleMarketingCredentialStore,
|
package/dist/mcp.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoSyncSkills
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IFIPKXEP.js";
|
|
4
4
|
import {
|
|
5
5
|
createApiClient,
|
|
6
6
|
createCanonryMcpServer
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-PNY6B5NF.js";
|
|
8
|
+
import "./chunk-BGQV35Y6.js";
|
|
9
9
|
import "./chunk-HGMYEDAQ.js";
|
|
10
10
|
import {
|
|
11
11
|
isReadOnlyKey,
|
|
12
12
|
updateCheckEnvOptOut
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WYI6KLC4.js";
|
|
14
14
|
|
|
15
15
|
// src/mcp/cli.ts
|
|
16
16
|
import { randomUUID } from "crypto";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonry/canonry",
|
|
3
|
-
"version": "7.50.
|
|
3
|
+
"version": "7.50.1",
|
|
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
|
"keywords": [
|
|
@@ -86,33 +86,33 @@
|
|
|
86
86
|
"tsup": "^8.5.1",
|
|
87
87
|
"tsx": "^4.19.0",
|
|
88
88
|
"@canonry/canonry-web": "0.0.0",
|
|
89
|
-
"@canonry/canonry-contracts": "0.0.0",
|
|
90
89
|
"@canonry/canonry-api-routes": "0.0.0",
|
|
91
90
|
"@canonry/canonry-config": "0.0.0",
|
|
91
|
+
"@canonry/canonry-contracts": "0.0.0",
|
|
92
92
|
"@canonry/canonry-db": "0.0.0",
|
|
93
|
-
"@canonry/canonry-api-client": "0.0.0",
|
|
94
93
|
"@canonry/canonry-integration-bing": "0.0.0",
|
|
95
94
|
"@canonry/canonry-integration-cloud-run": "0.0.0",
|
|
96
95
|
"@canonry/canonry-integration-cloudflare-worker": "0.0.0",
|
|
97
|
-
"@canonry/canonry-integration-google": "0.0.0",
|
|
98
96
|
"@canonry/canonry-integration-commoncrawl": "0.0.0",
|
|
99
|
-
"@canonry/canonry-
|
|
97
|
+
"@canonry/canonry-api-client": "0.0.0",
|
|
100
98
|
"@canonry/canonry-integration-cloudflare-queue": "0.0.0",
|
|
99
|
+
"@canonry/canonry-integration-google": "0.0.0",
|
|
101
100
|
"@canonry/canonry-integration-google-business-profile": "0.0.0",
|
|
101
|
+
"@canonry/canonry-integration-google-places": "0.0.0",
|
|
102
102
|
"@canonry/canonry-integration-google-tag-manager": "0.0.0",
|
|
103
|
-
"@canonry/canonry-integration-openai-ads": "0.0.0",
|
|
104
103
|
"@canonry/canonry-integration-traffic": "0.0.0",
|
|
105
|
-
"@canonry/canonry-integration-
|
|
106
|
-
"@canonry/canonry-integration-wordpress": "0.0.0",
|
|
104
|
+
"@canonry/canonry-integration-openai-ads": "0.0.0",
|
|
107
105
|
"@canonry/canonry-provider-cdp": "0.0.0",
|
|
106
|
+
"@canonry/canonry-intelligence": "0.0.0",
|
|
107
|
+
"@canonry/canonry-integration-wordpress": "0.0.0",
|
|
108
108
|
"@canonry/canonry-provider-gemini": "0.0.0",
|
|
109
|
+
"@canonry/canonry-provider-claude": "0.0.0",
|
|
109
110
|
"@canonry/canonry-provider-local": "0.0.0",
|
|
110
|
-
"@canonry/canonry-intelligence": "0.0.0",
|
|
111
111
|
"@canonry/canonry-provider-muse": "0.0.0",
|
|
112
|
-
"@canonry/canonry-provider-
|
|
113
|
-
"@canonry/canonry-integration-
|
|
112
|
+
"@canonry/canonry-provider-openai": "0.0.0",
|
|
113
|
+
"@canonry/canonry-integration-google-ads": "0.0.0",
|
|
114
114
|
"@canonry/canonry-provider-perplexity": "0.0.0",
|
|
115
|
-
"@canonry/canonry-
|
|
115
|
+
"@canonry/canonry-integration-typesafe": "0.0.0"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|
|
118
118
|
"build": "pnpm run build:cli && pnpm run build:web",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
REGISTERED_CLI_COMMANDS
|
|
3
|
-
} from "./chunk-74NFXXD2.js";
|
|
4
|
-
import "./chunk-WMYDLP4K.js";
|
|
5
|
-
import "./chunk-CS4POCLI.js";
|
|
6
|
-
import "./chunk-AKDSQTHE.js";
|
|
7
|
-
import "./chunk-RB2F4D3Z.js";
|
|
8
|
-
import "./chunk-JPFZ4CXQ.js";
|
|
9
|
-
import "./chunk-5KCJQO4I.js";
|
|
10
|
-
import "./chunk-HGMYEDAQ.js";
|
|
11
|
-
import "./chunk-U2GU6MAC.js";
|
|
12
|
-
import "./chunk-NVKQVQ3C.js";
|
|
13
|
-
export {
|
|
14
|
-
REGISTERED_CLI_COMMANDS
|
|
15
|
-
};
|