@canonry/canonry 7.101.0 → 7.104.0
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/aero/references/ai-traffic-tracking.md +32 -4
- package/assets/agent-workspace/skills/canonry/references/ai-traffic-tracking.md +32 -4
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +29 -2
- package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +51 -15
- package/assets/assets/{AccessControls-BMcboMU7.js → AccessControls-CBkDcxwx.js} +1 -1
- package/assets/assets/{AgentSetupPage-D8zYfyZC.js → AgentSetupPage-iGYETW-I.js} +4 -4
- package/assets/assets/AuditHistoryPanel-DiFMK7eE.js +1 -0
- package/assets/assets/{BacklinksPage-D8HxzRDh.js → BacklinksPage-Cg9LQLMo.js} +1 -1
- package/assets/assets/{ChartPrimitives-nJi3Kmez.js → ChartPrimitives-DYS88Zzt.js} +1 -1
- package/assets/assets/{HistoryPage-DZ9Cuei4.js → HistoryPage-CmI5CX94.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-DshJzp9b.js +4 -0
- package/assets/assets/ProjectPage-DwVxUhxM.js +15 -0
- package/assets/assets/{RunsPage-Q_prFKG5.js → RunsPage-BqvrT8Xm.js} +1 -1
- package/assets/assets/{ServerTrafficSection-D03quNUe.js → ServerTrafficSection-CtFe7WDd.js} +2 -2
- package/assets/assets/{SettingsPage-BjNzAJC4.js → SettingsPage-snu8wJ8l.js} +1 -1
- package/assets/assets/ToneBadge-CkTo2T8d.js +60 -0
- package/assets/assets/{TrafficPage-B6W88b1f.js → TrafficPage-BxiiQjwl.js} +1 -1
- package/assets/assets/TrafficSourceDetailPage-8BKFz7py.js +1 -0
- package/assets/assets/{account-context-Do9YhtFR.js → account-context-BlfC71NP.js} +1 -1
- package/assets/assets/{agent-trust-copy-CYbhNL0S.js → agent-trust-copy-C_J3OmRg.js} +1 -1
- package/assets/assets/{card-FXvJKWST.js → card-CeXmlLH2.js} +1 -1
- package/assets/assets/index-BKbmkmyo.js +43 -0
- package/assets/assets/{index-C4GJ1tQ2.css → index-DPz1idfn.css} +1 -1
- package/assets/assets/{query-client-BhpTEFNb.js → query-client-DWYnC2Lg.js} +1 -1
- package/assets/assets/react-query-CQhkmL4O.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-DseCmd8v.js → react-sigma_core.esm.min-YHPB9pkU.js} +1 -1
- package/assets/assets/{server-traffic-1qKARWJy.js → server-traffic-ChxoKQ0y.js} +1 -1
- package/assets/assets/{service-CLPD132h.js → service-u1pn5oyA.js} +1 -1
- package/assets/index.html +9 -9
- package/dist/{ads-BCYHOU4L.js → ads-ARJJACSH.js} +3 -3
- package/dist/{agent-EX5MI762.js → agent-57EQMSOO.js} +7 -7
- package/dist/{agent-ask-BQPVESBJ.js → agent-ask-TF2WTRTO.js} +3 -3
- package/dist/{agent-conversations-A3JVDL3D.js → agent-conversations-5GXNREFK.js} +3 -3
- package/dist/{agent-journeys-3LQ7XWYH.js → agent-journeys-6CDPI4TE.js} +3 -3
- package/dist/{agent-memory-LPQQOZR7.js → agent-memory-X3FQ4YDE.js} +3 -3
- package/dist/{agent-providers-34EDHZQB.js → agent-providers-32Z3YXO4.js} +3 -3
- package/dist/{agent-transcript-LQUMSRRD.js → agent-transcript-2S64XPF2.js} +3 -3
- package/dist/{analytics-CVTVJUUE.js → analytics-WPCHRXQZ.js} +3 -3
- package/dist/{apply-6532DFBW.js → apply-3WHRQBQB.js} +3 -3
- package/dist/{backfill-TC57HUDP.js → backfill-KR2NSPSE.js} +10 -10
- package/dist/{backlinks-MZXW2DZL.js → backlinks-TRVNCPUB.js} +3 -3
- package/dist/{bing-VTXDVW6U.js → bing-F3B76XX5.js} +3 -3
- package/dist/{bootstrap-3IC5HUMH.js → bootstrap-QOAGLWNN.js} +10 -10
- package/dist/{cdp-CTL2TJE6.js → cdp-4I3DNMLG.js} +7 -7
- package/dist/{chunk-E2SYIZ55.js → chunk-2AECECUY.js} +1 -1
- package/dist/{chunk-WSAWPVPE.js → chunk-2QWG6HWM.js} +5 -5
- package/dist/{chunk-G7LYCMQJ.js → chunk-2VNQKUCW.js} +32 -2
- package/dist/{chunk-2FFTK4PG.js → chunk-3V5Y2XTA.js} +1 -1
- package/dist/{chunk-L7WSODHZ.js → chunk-52D6WBCZ.js} +1 -1
- package/dist/{chunk-WDGVJPWZ.js → chunk-5FMZGO6R.js} +4 -4
- package/dist/{chunk-F4FHK5IK.js → chunk-6AW6ONTF.js} +2 -2
- package/dist/{chunk-FGITR7KU.js → chunk-7UQZCDYK.js} +4 -1
- package/dist/{chunk-MUK7BYVL.js → chunk-7VKVGR6X.js} +3 -3
- package/dist/{chunk-OMGPF7QF.js → chunk-BYYP43Q3.js} +261 -1
- package/dist/{chunk-YMWX6QAX.js → chunk-C6RWAAF6.js} +4 -4
- package/dist/{chunk-S7UYYD2Y.js → chunk-CCHYRLX4.js} +2 -2
- package/dist/{chunk-UBOUJ6RS.js → chunk-CJ55MGWI.js} +1 -1
- package/dist/{chunk-AOIDPATQ.js → chunk-D76TB5JS.js} +1 -1
- package/dist/{chunk-JFTB74BQ.js → chunk-DLZCOJCY.js} +1 -1
- package/dist/{chunk-HN4EB3RS.js → chunk-FCUUJO3Z.js} +2 -2
- package/dist/{chunk-VAHTXCUU.js → chunk-FUERP5PU.js} +567 -185
- package/dist/{chunk-2T5HRNYT.js → chunk-HLM3GYK4.js} +1 -1
- package/dist/{chunk-7HQWMG3E.js → chunk-HPFT4IKN.js} +31 -1
- package/dist/{chunk-VLNJ2HEZ.js → chunk-HTGJSXCR.js} +5 -5
- package/dist/{chunk-5TSSSL2I.js → chunk-K32GU473.js} +632 -462
- package/dist/{chunk-BRNVPRLS.js → chunk-LCZZACLE.js} +3 -3
- package/dist/{chunk-5WZPTVEF.js → chunk-MDRAKMCV.js} +3 -3
- package/dist/{chunk-CT45LO6U.js → chunk-MT2LENZA.js} +6 -6
- package/dist/{chunk-2UF2K6MD.js → chunk-PL76V2DY.js} +3107 -1665
- package/dist/{chunk-3SJDTQMT.js → chunk-QRR5ZW22.js} +3 -3
- package/dist/{chunk-F73M7PKH.js → chunk-R4VAGCFW.js} +286 -28
- package/dist/{chunk-3ED3KWEP.js → chunk-RBAK7RQX.js} +409 -366
- package/dist/{chunk-XM6OZ2OK.js → chunk-SFLSZXLO.js} +4 -4
- package/dist/{chunk-3QA5NJR4.js → chunk-SZ64N26K.js} +1 -1
- package/dist/{chunk-YIJLFPSH.js → chunk-T3G44DHS.js} +46 -31
- package/dist/{chunk-XZE6RAHE.js → chunk-TCXITSDO.js} +1 -1
- package/dist/{chunk-UE27XRSS.js → chunk-TFP6UJXW.js} +3 -3
- package/dist/{chunk-PX7O4WH2.js → chunk-WQQ4TNIY.js} +2 -2
- package/dist/{chunk-6UB4Y6CB.js → chunk-WT22Z3I7.js} +361 -143
- package/dist/{chunk-CLYPPLCG.js → chunk-ZJFLVXDZ.js} +2 -2
- package/dist/{citations-QXQ5MUSF.js → citations-6CW3G5YP.js} +4 -4
- package/dist/{cli-catalog-B3TUL26L.js → cli-catalog-6B2O2JQE.js} +3 -3
- package/dist/{cli-commands-R3CN4VVC.js → cli-commands-RJX2UC5L.js} +7 -7
- package/dist/cli.js +13 -13
- package/dist/{competitor-25MZKLVJ.js → competitor-D4BVO2KQ.js} +3 -3
- package/dist/{content-4STS5IKM.js → content-H2PGFRWM.js} +3 -3
- package/dist/{dashboard-XBMH4MGN.js → dashboard-4GWISEMI.js} +6 -6
- package/dist/{demo-2S46SBJD.js → demo-63JTCWN5.js} +1 -1
- package/dist/{demo-server-JTRHOBVR.js → demo-server-QA5OSH45.js} +12 -12
- package/dist/{discover-W6BSJXYO.js → discover-K4GIXAN5.js} +4 -4
- package/dist/{discover-eval-VP3XYODD.js → discover-eval-L4IF5XFV.js} +3 -3
- package/dist/{doctor-M5CC6T2H.js → doctor-OVJTEQCK.js} +3 -3
- package/dist/{evidence-KA6S266J.js → evidence-MXQK4YYL.js} +3 -3
- package/dist/{export-cmd-IBWYGJ2S.js → export-cmd-Z3CWJALI.js} +3 -3
- package/dist/{ga-GR2QLPZI.js → ga-347UNNJP.js} +3 -3
- package/dist/{gbp-U7NRBE2Q.js → gbp-47MIYIQC.js} +3 -3
- package/dist/{google-IV62SWDP.js → google-7Q3FYNVP.js} +4 -4
- package/dist/{google-marketing-LBEJZ2NZ.js → google-marketing-TMKWY5AP.js} +1 -1
- package/dist/{health-cmd-Y57EUJCG.js → health-cmd-77TMLQ6T.js} +4 -4
- package/dist/{history-ZKZNZ24X.js → history-Q756HPJM.js} +3 -3
- package/dist/index.d.ts +867 -14
- package/dist/index.js +25 -25
- package/dist/{init-X6NNIX63.js → init-CLSFH5OL.js} +12 -12
- package/dist/{insights-3A2I5LQ5.js → insights-TPNHIVNH.js} +3 -3
- package/dist/intelligence-service-TTDFQ2TB.js +16 -0
- package/dist/{journeys-WHQ4XC4I.js → journeys-F6UAVPVI.js} +3 -3
- package/dist/{keys-6XIMEOV2.js → keys-Q6VMDIAH.js} +3 -3
- package/dist/{keyword-DGGFQNYE.js → keyword-7BH5P5P7.js} +3 -3
- package/dist/{logs-Z5ZV7ODN.js → logs-P2J6XFVJ.js} +3 -3
- package/dist/{mcp-U64GUOQN.js → mcp-RPXFNAKS.js} +4 -4
- package/dist/mcp.js +9 -9
- package/dist/{measurement-plan-J5ERRBIR.js → measurement-plan-KKUB6SLB.js} +5 -5
- package/dist/{notify-43M77D6T.js → notify-2IK6NR7Y.js} +3 -3
- package/dist/{organic-evidence-H2X6ILDC.js → organic-evidence-N4HIUIHJ.js} +3 -3
- package/dist/{overview-XT35O2XZ.js → overview-FSNB42W5.js} +5 -5
- package/dist/{project-F2EKXLWT.js → project-D5ODS46C.js} +3 -3
- package/dist/{project-setup-5GB65EUE.js → project-setup-X7NGKC4R.js} +3 -3
- package/dist/{query-MHSMDWMP.js → query-JGCEDLI2.js} +3 -3
- package/dist/{research-FH62JC57.js → research-3S5FLAFX.js} +3 -3
- package/dist/{results-export-D4VB2OBW.js → results-export-YMX4F2K6.js} +3 -3
- package/dist/{run-B4B3CG7J.js → run-MCJAGAHJ.js} +5 -5
- package/dist/{schedule-BUJX7ULT.js → schedule-CLWDPYZG.js} +3 -3
- package/dist/{search-6CXRPRG6.js → search-X7SXPESS.js} +3 -3
- package/dist/{serve-BAIQI6TL.js → serve-WDUJ36KJ.js} +26 -26
- package/dist/{session-AXSKOKCZ.js → session-M66S3VTK.js} +13 -13
- package/dist/{settings-TADPOGVE.js → settings-UZEODHZ3.js} +3 -3
- package/dist/{sitemaps-HHEQTH4E.js → sitemaps-SK2ZE5EJ.js} +3 -3
- package/dist/{skills-4L7SDS6D.js → skills-SI6C7MPT.js} +2 -2
- package/dist/{snapshot-6RWDOATX.js → snapshot-AOQUU5Q2.js} +3 -3
- package/dist/{src-XZVMW2PD.js → src-BXXLPHVZ.js} +10 -2
- package/dist/{status-4NRAVD3B.js → status-TMKQNQ74.js} +5 -5
- package/dist/{technical-aeo-DBWEDC3J.js → technical-aeo-WBLZMCUY.js} +3 -3
- package/dist/{telemetry-OEAHQV6Q.js → telemetry-DS22S3C3.js} +4 -4
- package/dist/{tools-64NJHOA5.js → tools-W63YOE6T.js} +11 -11
- package/dist/{traffic-M2TCCDCP.js → traffic-6AIRXYMI.js} +24 -7
- package/dist/{trends-XHOOQAGY.js → trends-LEAXHSM6.js} +3 -3
- package/dist/{users-VX5RRVBY.js → users-VCNIWES5.js} +54 -4
- package/dist/{visibility-stats-QGEQKBPJ.js → visibility-stats-4XA2YZET.js} +4 -4
- package/dist/{wordpress-HRTBWGT4.js → wordpress-YG3ECQXW.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/AuditHistoryPanel-DWM5jJ3T.js +0 -1
- package/assets/assets/MeasurementPropertyPage-9-ItFHr-.js +0 -4
- package/assets/assets/ProjectPage-yQTM6p0E.js +0 -15
- package/assets/assets/ToneBadge-BZJuMrq1.js +0 -60
- package/assets/assets/TrafficSourceDetailPage-zSr5FqmD.js +0 -1
- package/assets/assets/index-BYLZIyID.js +0 -43
- package/assets/assets/react-query-Cja6j8Tp.js +0 -1
- package/dist/intelligence-service-5FILIP2J.js +0 -16
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWithUsageTags
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2VNQKUCW.js";
|
|
4
4
|
import {
|
|
5
5
|
CanonryMcpToolNames,
|
|
6
6
|
DEPRECATED_MCP_TOOL_ALIAS_NAMES,
|
|
7
7
|
canonryMcpTools
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HTGJSXCR.js";
|
|
9
9
|
import {
|
|
10
10
|
CliError
|
|
11
11
|
} from "./chunk-HGMYEDAQ.js";
|
|
12
12
|
import {
|
|
13
13
|
buildOpenApiDocument
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PL76V2DY.js";
|
|
15
15
|
import {
|
|
16
16
|
DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
|
|
17
17
|
MeasurementPortfolioLists,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
seoDatasetWithoutVendor,
|
|
25
25
|
seoProviderSchema,
|
|
26
26
|
truncateUtf16
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WT22Z3I7.js";
|
|
28
28
|
|
|
29
29
|
// src/agent/tools.ts
|
|
30
30
|
import { Type as Type2 } from "@earendil-works/pi-ai";
|
|
@@ -8,23 +8,24 @@ import {
|
|
|
8
8
|
reparseStoredResult4,
|
|
9
9
|
reparseStoredResult5,
|
|
10
10
|
resolveStoredApiResponse
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FUERP5PU.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HPFT4IKN.js";
|
|
15
15
|
import {
|
|
16
|
+
CliError,
|
|
16
17
|
isMachineFormat
|
|
17
18
|
} from "./chunk-HGMYEDAQ.js";
|
|
18
19
|
import {
|
|
19
20
|
determineCitationState
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CJ55MGWI.js";
|
|
21
22
|
import {
|
|
22
23
|
backfillProjectAnswerMentions,
|
|
23
24
|
competitorIdentityColumns,
|
|
24
25
|
createRunCompetitorResolver,
|
|
25
26
|
readMarketCompetitorNames,
|
|
26
27
|
refreshSnapshotMentionIdentity
|
|
27
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PL76V2DY.js";
|
|
28
29
|
import {
|
|
29
30
|
RawEventSampleEventTypes,
|
|
30
31
|
auditLog,
|
|
@@ -38,7 +39,7 @@ import {
|
|
|
38
39
|
querySnapshots,
|
|
39
40
|
rawEventSamples,
|
|
40
41
|
runs
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-BYYP43Q3.js";
|
|
42
43
|
import {
|
|
43
44
|
ProviderNames,
|
|
44
45
|
RetrievalContracts,
|
|
@@ -51,7 +52,7 @@ import {
|
|
|
51
52
|
extractRecommendedCompetitors,
|
|
52
53
|
normalizeUrlPath,
|
|
53
54
|
openRouterRouteModel
|
|
54
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-WT22Z3I7.js";
|
|
55
56
|
|
|
56
57
|
// src/commands/backfill.ts
|
|
57
58
|
import { setImmediate as yieldToEventLoop } from "timers/promises";
|
|
@@ -429,7 +430,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
429
430
|
}
|
|
430
431
|
}
|
|
431
432
|
async function backfillInsightsCommand(project, opts) {
|
|
432
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
433
|
+
const { IntelligenceService } = await import("./intelligence-service-TTDFQ2TB.js");
|
|
433
434
|
const config = loadConfig();
|
|
434
435
|
const db = createClient(config.database);
|
|
435
436
|
migrate(db);
|
|
@@ -777,53 +778,60 @@ async function backfillTrafficClassificationCommand(opts) {
|
|
|
777
778
|
const projectFilter = opts?.project?.trim();
|
|
778
779
|
const isDryRun = opts?.dryRun === true;
|
|
779
780
|
const isJson = isMachineFormat(opts?.format);
|
|
780
|
-
|
|
781
|
-
if (
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
781
|
+
let projectIds;
|
|
782
|
+
if (projectFilter) {
|
|
783
|
+
const project = db.select({ id: projects.id }).from(projects).where(eq(projects.name, projectFilter)).get();
|
|
784
|
+
if (!project) {
|
|
785
|
+
throw new CliError({
|
|
786
|
+
code: "NOT_FOUND",
|
|
787
|
+
message: `Project "${projectFilter}" not found`,
|
|
788
|
+
displayMessage: `Error: no project named "${projectFilter}".`,
|
|
789
|
+
details: { project: projectFilter }
|
|
790
|
+
});
|
|
785
791
|
}
|
|
786
|
-
|
|
787
|
-
return;
|
|
792
|
+
projectIds = [project.id];
|
|
788
793
|
}
|
|
789
794
|
if (!isJson) {
|
|
790
795
|
const mode = isDryRun ? " [DRY RUN \u2014 no writes]" : "";
|
|
791
796
|
const scope = projectFilter ? `"${projectFilter}"` : "all projects";
|
|
792
|
-
process.stderr.write(`Re-classifying stored
|
|
797
|
+
process.stderr.write(`Re-classifying stored traffic under today's rules for ${scope}${mode}...
|
|
793
798
|
`);
|
|
794
799
|
}
|
|
795
|
-
const projectIds = scopedProjects.map((p) => p.id);
|
|
796
800
|
const countUnknown = () => Number(db.select({ n: sql`count(*)` }).from(rawEventSamples).where(and(
|
|
797
801
|
eq(rawEventSamples.eventType, RawEventSampleEventTypes.unknown),
|
|
798
|
-
inArray(rawEventSamples.projectId, projectIds)
|
|
802
|
+
projectIds ? inArray(rawEventSamples.projectId, projectIds) : void 0
|
|
799
803
|
)).get()?.n ?? 0);
|
|
800
804
|
const unknownBefore = countUnknown();
|
|
801
|
-
const stored = await reclassifyStoredTraffic(db, { projectIds, dryRun: isDryRun });
|
|
802
|
-
const
|
|
803
|
-
|
|
805
|
+
const stored = await reclassifyStoredTraffic(db, { projectIds, dryRun: isDryRun, allowVerificationLoss: true });
|
|
806
|
+
const { samples, dryRun, ...sections } = stored;
|
|
807
|
+
const byBot = { ...samples.byBot };
|
|
808
|
+
for (const moved of [sections.unrecognized.byBot, sections.crawlers.byBot]) {
|
|
809
|
+
for (const [bot, hits] of Object.entries(moved)) byBot[bot] = (byBot[bot] ?? 0) + hits;
|
|
810
|
+
}
|
|
804
811
|
emitTrafficClassificationReport({
|
|
805
812
|
project: projectFilter ?? null,
|
|
806
|
-
examined:
|
|
807
|
-
reclassified:
|
|
813
|
+
examined: samples.examined,
|
|
814
|
+
reclassified: samples.reclassified,
|
|
808
815
|
unknownBefore,
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
816
|
+
// A dry run writes nothing, so its count after is what the pass found.
|
|
817
|
+
unknownAfter: dryRun ? unknownBefore - samples.reclassified - samples.removed + sections.crawlers.samplesNowUnknown : countUnknown(),
|
|
818
|
+
samplesCounted: samples.counted,
|
|
819
|
+
samplesRemoved: samples.removed,
|
|
820
|
+
dryRun,
|
|
813
821
|
byBot,
|
|
814
|
-
|
|
815
|
-
agentHits: stored.agentHits,
|
|
816
|
-
agentRequests: stored.agentRequests,
|
|
817
|
-
journeys: stored.journeys,
|
|
818
|
-
journeyMerges: stored.journeyMerges
|
|
822
|
+
...sections
|
|
819
823
|
}, isJson);
|
|
820
824
|
}
|
|
825
|
+
function formatHitsByBot(byBot) {
|
|
826
|
+
return Object.entries(byBot).sort(([, a], [, b]) => b - a).map(([bot, hits]) => `${bot} ${hits}`).join(", ");
|
|
827
|
+
}
|
|
821
828
|
function emitTrafficClassificationReport(result, isJson) {
|
|
822
829
|
if (isJson) {
|
|
823
830
|
console.log(JSON.stringify(result, null, 2));
|
|
824
831
|
return;
|
|
825
832
|
}
|
|
826
833
|
const verb = result.dryRun ? "Would re-classify" : "Re-classified";
|
|
834
|
+
const indent = " ";
|
|
827
835
|
console.log(`
|
|
828
836
|
Traffic classification ${result.dryRun ? "preview" : "recovery"} complete.`);
|
|
829
837
|
console.log(` Examined unknowns: ${result.examined}`);
|
|
@@ -831,10 +839,17 @@ Traffic classification ${result.dryRun ? "preview" : "recovery"} complete.`);
|
|
|
831
839
|
console.log(` Unknown before: ${result.unknownBefore}`);
|
|
832
840
|
console.log(` Unknown after: ${result.unknownAfter}`);
|
|
833
841
|
console.log(` Unrecognized rows: ${result.unrecognized.examined} examined, ${result.unrecognized.moved} moved to a bot (${result.unrecognized.movedHits} hits), ${result.unrecognized.renamed} renamed, ${result.unrecognized.removed} removed`);
|
|
842
|
+
const { crawlers } = result;
|
|
843
|
+
console.log(` Crawler rows: ${crawlers.examined} examined; ${crawlers.moved} moved to the crawler their user agent names today (${crawlers.movedHits} hits), ${crawlers.toUserFetch} to AI user fetch (${crawlers.toUserFetchHits} hits), ${crawlers.toUnrecognized} back to unrecognized agents (${crawlers.toUnrecognizedHits} hits), ${crawlers.removed} of Canonry's own tools removed (${crawlers.removedHits} hits)`);
|
|
844
|
+
if (Object.keys(crawlers.byBot).length > 0) console.log(`${indent}Hits moved to: ${formatHitsByBot(crawlers.byBot)}`);
|
|
845
|
+
console.log(`${indent}${crawlers.unverifiedHits} verified hits no longer verified; ${crawlers.samplesRelabeled} samples relabeled (${crawlers.samplesNowUnknown} now unknown), ${crawlers.samplesRemoved} removed`);
|
|
846
|
+
if (crawlers.unknownBot > 0) console.log(`${indent}${crawlers.unknownBot} rows under a bot this version has no rule for (a newer release wrote them) left as they are`);
|
|
834
847
|
console.log(` Fake agent hits: ${result.agentHits.moved} hourly rows moved to likely fake (${result.agentHits.movedHits} hits)`);
|
|
835
848
|
console.log(` Agent requests: ${result.agentRequests.removed} removed (${result.agentRequests.probes} asked for a scanner path)`);
|
|
849
|
+
console.log(` Browser agent files: ${result.agentRequests.pageResources} stored requests its pages made by themselves removed`);
|
|
836
850
|
console.log(` Journeys: ${result.journeys.visitorsRemoved} visitors and ${result.journeys.visitsRemoved} visits removed, ${result.journeys.visitsRelanded} visits now start at a different page`);
|
|
837
851
|
console.log(` Split visitors: ${result.journeyMerges.visitorsMerged} joined to the same person's first visitor, seen from another IP (${result.journeyMerges.visitsJoined} visits merged)`);
|
|
852
|
+
if (result.orphans > 0) console.log(` Orphaned rows: ${result.orphans} left as they are: their project or traffic source no longer exists`);
|
|
838
853
|
if (Object.keys(result.byBot).length > 0) {
|
|
839
854
|
console.log(` By bot:`);
|
|
840
855
|
const sorted = Object.entries(result.byBot).sort(([, a], [, b]) => b - a);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
SNAPSHOT_CELL_LEGEND,
|
|
3
3
|
citationGlyph,
|
|
4
4
|
mentionGlyph
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2AECECUY.js";
|
|
6
6
|
import {
|
|
7
7
|
createApiClient
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2VNQKUCW.js";
|
|
9
9
|
import {
|
|
10
10
|
emitJsonl
|
|
11
11
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
formatMicros,
|
|
24
24
|
formatRunErrorOneLine,
|
|
25
25
|
resolveProviderInput
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WT22Z3I7.js";
|
|
27
27
|
|
|
28
28
|
// src/commands/run.ts
|
|
29
29
|
function getClient() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRequestContext
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TCXITSDO.js";
|
|
4
4
|
import {
|
|
5
5
|
diagnosticIdentity,
|
|
6
6
|
redactLogString,
|
|
7
7
|
redactLogValue
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WT22Z3I7.js";
|
|
9
9
|
|
|
10
10
|
// ../api-routes/src/runtime-logger.ts
|
|
11
11
|
import { format } from "util";
|