@canonry/canonry 7.56.0 → 7.56.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/{backfill-HMP43HMJ.js → backfill-73XI3CEL.js} +2 -2
- package/dist/{chunk-S4H7KMIH.js → chunk-4J7PL5R2.js} +5 -5
- package/dist/{chunk-XUW5SU24.js → chunk-A3NZOK4X.js} +1 -1
- package/dist/{chunk-3HZZ2XZD.js → chunk-H4IJXVG5.js} +1 -1
- package/dist/{chunk-RWYKUCPF.js → chunk-JZEK26CT.js} +14 -14
- package/dist/{chunk-BALZYIFH.js → chunk-TJJLANDV.js} +1 -1
- package/dist/{chunk-T7A46CVU.js → chunk-UDF3A2O7.js} +1 -1
- package/dist/{chunk-3BHGEP3O.js → chunk-UJRPQOKE.js} +2 -2
- package/dist/{chunk-DOP5QNPM.js → chunk-VRFTXW6H.js} +933 -895
- package/dist/{cli-commands-KGTXEDAZ.js → cli-commands-FWCI6VIN.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{dashboard-YEYFINMF.js → dashboard-QZXKGD6T.js} +1 -1
- package/dist/{demo-RK5OKZIY.js → demo-3DMRH7BC.js} +1 -1
- package/dist/{demo-server-JL4JLKMG.js → demo-server-TU3BW763.js} +2 -2
- package/dist/index.d.ts +8 -8
- package/dist/index.js +5 -5
- package/dist/{init-WTLTEYSB.js → init-LEGXLKPA.js} +1 -1
- package/dist/{intelligence-service-PY6QR36M.js → intelligence-service-3JS4X4Y4.js} +2 -2
- package/dist/{serve-BIWTUO6A.js → serve-UMF32HVA.js} +6 -6
- package/dist/{session-T4Q6NH3K.js → session-GEJOH3FN.js} +3 -3
- package/dist/{tools-PDV6BJ5Y.js → tools-EJ5AHYFS.js} +2 -2
- package/package.json +1 -1
|
@@ -1042,7 +1042,7 @@ Target, or market attribution. Server sessions and GA sessions remain separate.
|
|
|
1042
1042
|
|
|
1043
1043
|
## Google Analytics 4
|
|
1044
1044
|
|
|
1045
|
-
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 is an AI engine's host or a subdomain of it (`chatgpt.com`, `www.perplexity.ai`, `gemini.google.com`, `claude.ai`, `copilot.microsoft.com`, `grok.com`, `meta.ai`, `you.com`, …), its bare name (`chatgpt`, `gemini`, `grok`), its official Android app id, bare or as `android-app://` (`com.openai.chatgpt`, `com.microsoft.copilot`), or, for ChatGPT, Perplexity, Claude, DeepSeek and Phind, a tag that starts with the name or host (`perplexity_ai`, `chatgpt.com_ads`). These cover older history and AI visits GA4 files elsewhere. An engine name inside another source is never matched, so ngrok tunnels, `philanthropic.org` and the Gemini exchange stay out. 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`.
|
|
1045
|
+
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 is an AI engine's host or a subdomain of it (`chatgpt.com`, `www.perplexity.ai`, `gemini.google.com`, `claude.ai`, `copilot.microsoft.com`, `grok.com`, `meta.ai`, `you.com`, …), its bare name (`chatgpt`, `gemini`, `grok`), its official Android app id, bare or as `android-app://` (`com.openai.chatgpt`, `com.microsoft.copilot`), or, for ChatGPT, Perplexity, Claude, DeepSeek and Phind, a tag that starts with the name or host (`perplexity_ai`, `chatgpt.com_ads`). These cover older history and AI visits GA4 files elsewhere. An engine name inside another source is never matched, so ngrok tunnels, `philanthropic.org` and the Gemini exchange stay out. 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`. Synced rows carry no GA4 property, so anything that changes the property a project resolves to (`ga connect` to another property, `ga disconnect`, or `google disconnect --type ga4` with no service account behind it) deletes the project's GA rows; the next `ga sync` refills them from the new property. All commands support `--format json`.
|
|
1046
1046
|
|
|
1047
1047
|
```bash
|
|
1048
1048
|
cnry ga connect <project> --property-id <id> --key-file ./sa-key.json
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
backfillSnapshotAttributionCommand,
|
|
11
11
|
backfillTrafficClassificationCommand,
|
|
12
12
|
replayQueryAuditLog
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UJRPQOKE.js";
|
|
14
14
|
import "./chunk-RELKG6XH.js";
|
|
15
15
|
import "./chunk-PUTJ6LPE.js";
|
|
16
16
|
import "./chunk-HGMYEDAQ.js";
|
|
@@ -18,7 +18,7 @@ import "./chunk-ZOVL5NAP.js";
|
|
|
18
18
|
import {
|
|
19
19
|
backfillProjectAnswerMentions,
|
|
20
20
|
backfillProjectAnswerMentionsInChunks
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-VRFTXW6H.js";
|
|
22
22
|
import "./chunk-P2OVWQKT.js";
|
|
23
23
|
import "./chunk-AOBMI5UM.js";
|
|
24
24
|
import "./chunk-37YB52NM.js";
|
|
@@ -27,14 +27,14 @@ import {
|
|
|
27
27
|
resolveConfiguredAgentProvider,
|
|
28
28
|
resolveSessionProviderAndModel,
|
|
29
29
|
setAeroSystemPrompt
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-H4IJXVG5.js";
|
|
31
31
|
import {
|
|
32
32
|
AeroToolProfiles,
|
|
33
33
|
AeroToolScopes,
|
|
34
34
|
buildAeroStateTools,
|
|
35
35
|
isAeroToolProfile,
|
|
36
36
|
truncateToolResult
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-A3NZOK4X.js";
|
|
38
38
|
import {
|
|
39
39
|
getGoogleAuthConfig,
|
|
40
40
|
getGoogleConnection,
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
addLogListener,
|
|
163
163
|
createFastifyLogger,
|
|
164
164
|
createLogger
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-UDF3A2O7.js";
|
|
166
166
|
import {
|
|
167
167
|
computeCitedCompetitorDomains,
|
|
168
168
|
determineCitationState
|
|
@@ -284,7 +284,7 @@ import {
|
|
|
284
284
|
webhookResponseReason,
|
|
285
285
|
webhookTargetRefusalReason,
|
|
286
286
|
writeAuditLog
|
|
287
|
-
} from "./chunk-
|
|
287
|
+
} from "./chunk-VRFTXW6H.js";
|
|
288
288
|
import {
|
|
289
289
|
OperationalLogStore,
|
|
290
290
|
SentimentIdempotencyConflict,
|
|
@@ -5097,7 +5097,7 @@ function nonBlank(value) {
|
|
|
5097
5097
|
return trimmed ? trimmed : void 0;
|
|
5098
5098
|
}
|
|
5099
5099
|
function resolveBuildCommit(env = process.env) {
|
|
5100
|
-
const embedded = true ? "
|
|
5100
|
+
const embedded = true ? "bb67f86140644b0eb70a9b464c629b08c8a5417c" : void 0;
|
|
5101
5101
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
5102
5102
|
}
|
|
5103
5103
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -376,7 +376,7 @@ var DEMO_CLI_COMMANDS = [{
|
|
|
376
376
|
options: { host: stringOption(), port: stringOption(), "trust-proxy": multiStringOption() },
|
|
377
377
|
allowPositionals: false,
|
|
378
378
|
run: async (input) => {
|
|
379
|
-
const { demoCommand } = await import("./demo-
|
|
379
|
+
const { demoCommand } = await import("./demo-3DMRH7BC.js");
|
|
380
380
|
await demoCommand({
|
|
381
381
|
host: getString(input.values, "host"),
|
|
382
382
|
port: getString(input.values, "port"),
|
|
@@ -397,7 +397,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
397
397
|
allowPositionals: false,
|
|
398
398
|
supportsDryRun: true,
|
|
399
399
|
run: async (input) => {
|
|
400
|
-
const { backfillAnswerVisibilityCommand } = await import("./backfill-
|
|
400
|
+
const { backfillAnswerVisibilityCommand } = await import("./backfill-73XI3CEL.js");
|
|
401
401
|
await backfillAnswerVisibilityCommand({
|
|
402
402
|
project: getString(input.values, "project"),
|
|
403
403
|
dryRun: input.dryRun,
|
|
@@ -414,7 +414,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
414
414
|
allowPositionals: false,
|
|
415
415
|
supportsDryRun: true,
|
|
416
416
|
run: async (input) => {
|
|
417
|
-
const { backfillAnswerMentionsCommand } = await import("./backfill-
|
|
417
|
+
const { backfillAnswerMentionsCommand } = await import("./backfill-73XI3CEL.js");
|
|
418
418
|
await backfillAnswerMentionsCommand({
|
|
419
419
|
project: getString(input.values, "project"),
|
|
420
420
|
dryRun: input.dryRun,
|
|
@@ -432,7 +432,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
432
432
|
},
|
|
433
433
|
supportsDryRun: true,
|
|
434
434
|
run: async (input) => {
|
|
435
|
-
const { backfillInsightsCommand } = await import("./backfill-
|
|
435
|
+
const { backfillInsightsCommand } = await import("./backfill-73XI3CEL.js");
|
|
436
436
|
const usage = "canonry backfill insights <project> [--from-run <id>] [--to-run <id>] [--since <date>] [--dry-run] [--format json]";
|
|
437
437
|
const project2 = requireProject(input, "backfill insights", usage);
|
|
438
438
|
await backfillInsightsCommand(project2, {
|
|
@@ -452,7 +452,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
452
452
|
},
|
|
453
453
|
allowPositionals: false,
|
|
454
454
|
run: async (input) => {
|
|
455
|
-
const { backfillNormalizedPathsCommand } = await import("./backfill-
|
|
455
|
+
const { backfillNormalizedPathsCommand } = await import("./backfill-73XI3CEL.js");
|
|
456
456
|
await backfillNormalizedPathsCommand({
|
|
457
457
|
project: getString(input.values, "project"),
|
|
458
458
|
format: input.format
|
|
@@ -467,7 +467,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
467
467
|
},
|
|
468
468
|
allowPositionals: false,
|
|
469
469
|
run: async (input) => {
|
|
470
|
-
const { backfillAiReferralPathsCommand } = await import("./backfill-
|
|
470
|
+
const { backfillAiReferralPathsCommand } = await import("./backfill-73XI3CEL.js");
|
|
471
471
|
await backfillAiReferralPathsCommand({
|
|
472
472
|
project: getString(input.values, "project"),
|
|
473
473
|
format: input.format
|
|
@@ -479,7 +479,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
479
479
|
usage: "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]",
|
|
480
480
|
supportsDryRun: true,
|
|
481
481
|
run: async (input) => {
|
|
482
|
-
const { backfillSnapshotAttributionCommand } = await import("./backfill-
|
|
482
|
+
const { backfillSnapshotAttributionCommand } = await import("./backfill-73XI3CEL.js");
|
|
483
483
|
const usage = "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]";
|
|
484
484
|
const project2 = requireProject(input, "backfill snapshot-attribution", usage);
|
|
485
485
|
await backfillSnapshotAttributionCommand({
|
|
@@ -498,7 +498,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
498
498
|
allowPositionals: false,
|
|
499
499
|
supportsDryRun: true,
|
|
500
500
|
run: async (input) => {
|
|
501
|
-
const { backfillTrafficClassificationCommand } = await import("./backfill-
|
|
501
|
+
const { backfillTrafficClassificationCommand } = await import("./backfill-73XI3CEL.js");
|
|
502
502
|
await backfillTrafficClassificationCommand({
|
|
503
503
|
project: getString(input.values, "project"),
|
|
504
504
|
dryRun: input.dryRun,
|
|
@@ -940,7 +940,7 @@ var DASHBOARD_CLI_COMMANDS = [
|
|
|
940
940
|
usage: "canonry dashboard reset-password [--format json]",
|
|
941
941
|
help: "Clears the dashboard password from config.yaml, so the dashboard asks for a new one after a restart.\nLocal only: it edits the config file under CANONRY_CONFIG_DIR and does not call the server.",
|
|
942
942
|
run: async (input) => {
|
|
943
|
-
const { resetDashboardPassword } = await import("./dashboard-
|
|
943
|
+
const { resetDashboardPassword } = await import("./dashboard-QZXKGD6T.js");
|
|
944
944
|
await resetDashboardPassword({ format: input.format });
|
|
945
945
|
}
|
|
946
946
|
},
|
|
@@ -6342,7 +6342,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
6342
6342
|
options: { access: stringOption() },
|
|
6343
6343
|
run: async (input) => {
|
|
6344
6344
|
if (input.positionals.length > 1) throw usageError("Expected at most one command group");
|
|
6345
|
-
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-XD7VY3ES.js"), import("./cli-commands-
|
|
6345
|
+
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-XD7VY3ES.js"), import("./cli-commands-FWCI6VIN.js")]);
|
|
6346
6346
|
printCliCatalog(REGISTERED_CLI_COMMANDS2, input.format, input.positionals[0], getString(input.values, "access"));
|
|
6347
6347
|
}
|
|
6348
6348
|
},
|
|
@@ -6391,7 +6391,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
6391
6391
|
},
|
|
6392
6392
|
allowPositionals: false,
|
|
6393
6393
|
run: async (input) => {
|
|
6394
|
-
const { initCommand } = await import("./init-
|
|
6394
|
+
const { initCommand } = await import("./init-LEGXLKPA.js");
|
|
6395
6395
|
await initCommand({
|
|
6396
6396
|
force: getBoolean(input.values, "force"),
|
|
6397
6397
|
ref: getString(input.values, "ref"),
|
|
@@ -6446,7 +6446,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
6446
6446
|
allowPositionals: false,
|
|
6447
6447
|
run: async (input) => {
|
|
6448
6448
|
applyServerEnv(input.values);
|
|
6449
|
-
const { serveCommand } = await import("./serve-
|
|
6449
|
+
const { serveCommand } = await import("./serve-UMF32HVA.js");
|
|
6450
6450
|
await serveCommand(input.format);
|
|
6451
6451
|
}
|
|
6452
6452
|
},
|
|
@@ -7754,8 +7754,8 @@ var AGENT_CLI_COMMANDS = [
|
|
|
7754
7754
|
"timeout-ms": stringOption()
|
|
7755
7755
|
},
|
|
7756
7756
|
run: async (input) => {
|
|
7757
|
-
const { coerceAgentProvider } = await import("./session-
|
|
7758
|
-
const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-
|
|
7757
|
+
const { coerceAgentProvider } = await import("./session-GEJOH3FN.js");
|
|
7758
|
+
const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-EJ5AHYFS.js");
|
|
7759
7759
|
const { agentAsk } = await import("./agent-ask-VHRA5RVU.js");
|
|
7760
7760
|
const usage = `canonry agent ask <project> "<prompt>" [--provider ${AGENT_PROVIDER_IDS.join("|")}] [--model <id>] [--scope all|read-only] [--profile default|ads-operator] [--context <json>] [--conversation <id>] [--max-tool-calls <n>] [--timeout-ms <ms>] [--format json]`;
|
|
7761
7761
|
const project2 = requireProject(input, "agent.ask", usage);
|
|
@@ -47,7 +47,7 @@ function queueServeHandoff() {
|
|
|
47
47
|
async function runPendingServeHandoff(format) {
|
|
48
48
|
if (!pendingServeHandoff) return;
|
|
49
49
|
pendingServeHandoff = false;
|
|
50
|
-
const { serveCommand } = await import("./serve-
|
|
50
|
+
const { serveCommand } = await import("./serve-UMF32HVA.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
createRunCompetitorResolver,
|
|
24
24
|
readMarketCompetitorNames,
|
|
25
25
|
refreshSnapshotMentionIdentity
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VRFTXW6H.js";
|
|
27
27
|
import {
|
|
28
28
|
classifyAiUserFetch,
|
|
29
29
|
classifyCrawler
|
|
@@ -437,7 +437,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
439
|
async function backfillInsightsCommand(project, opts) {
|
|
440
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
440
|
+
const { IntelligenceService } = await import("./intelligence-service-3JS4X4Y4.js");
|
|
441
441
|
const config = loadConfig();
|
|
442
442
|
const db = createClient(config.database);
|
|
443
443
|
migrate(db);
|