@canonry/canonry 7.82.1 → 7.83.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 +20 -3
- package/assets/agent-workspace/skills/canonry/references/ai-traffic-tracking.md +20 -3
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +35 -2
- package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +57 -1
- package/assets/assets/{AgentSetupPage-CcjQeUvK.js → AgentSetupPage-B9NOQP8a.js} +6 -6
- package/assets/assets/{AuditHistoryPanel-DgTvt2hQ.js → AuditHistoryPanel-Fvh4WFjq.js} +1 -1
- package/assets/assets/{BacklinksPage-DFQhtk4d.js → BacklinksPage-D1UHFLoV.js} +1 -1
- package/assets/assets/{ChartPrimitives-CfjGDL5d.js → ChartPrimitives-B5L9FUj3.js} +1 -1
- package/assets/assets/{Hint-Ro2RKH6t.js → Hint-CfeZmZig.js} +1 -1
- package/assets/assets/{HistoryPage-CkkWqQol.js → HistoryPage-CBcacDgP.js} +1 -1
- package/assets/assets/{InfoTooltip-CJ3IWqBk.js → InfoTooltip-DrBIPuSU.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-ZuZpurwr.js +4 -0
- package/assets/assets/ProjectPage-BoqDyoGi.js +11 -0
- package/assets/assets/{RunsPage-B4tMl-_9.js → RunsPage-tlCk_gOw.js} +1 -1
- package/assets/assets/{SettingsPage-DmDdf02o.js → SettingsPage-7mRTFLFQ.js} +1 -1
- package/assets/assets/SiteHealthSection-l_A_AmY_.js +2 -0
- package/assets/assets/ToneBadge-CXyUIWzB.js +60 -0
- package/assets/assets/{TrafficPage-C9y8xEr6.js → TrafficPage-DQbBT3TP.js} +2 -2
- package/assets/assets/TrafficSourceDetailPage-D3DwE6Qd.js +1 -0
- package/assets/assets/{account-context-BjM5ZlYl.js → account-context-Bhgg1lEH.js} +1 -1
- package/assets/assets/agent-trust-copy-CKZsKhc0.js +1 -0
- package/assets/assets/{card-CDFncx20.js → card-B16Dvxau.js} +1 -1
- package/assets/assets/{extract-error-message-s3FKmMjt.js → extract-error-message-B5_v_-U8.js} +1 -1
- package/assets/assets/{format-helpers-CYQ-LjnQ.js → format-helpers-Bs9rrO74.js} +1 -1
- package/assets/assets/index-3aBRkQpI.js +60 -0
- package/assets/assets/{index-TBDfE2OO.css → index-BnmWwrZA.css} +1 -1
- package/assets/assets/{query-client-C_dAEVvf.js → query-client-D-tt1sn3.js} +1 -1
- package/assets/assets/react-query-DQr9PoNm.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-J2l6CcJl.js → react-sigma_core.esm.min-BfZVKh7v.js} +1 -1
- package/assets/assets/{service-BhAtQFOI.js → service-Cmt36bhL.js} +1 -1
- package/assets/assets/{vendor-lucide-BILL9eZH.js → vendor-lucide-CoTHJwai.js} +1 -1
- package/assets/assets/{vendor-markdown-DNTP_967.js → vendor-markdown-cQgSk2i0.js} +1 -1
- package/assets/assets/{vendor-radix-C6jOoh_7.js → vendor-radix-wS8sWIWE.js} +1 -1
- package/assets/assets/{vendor-recharts-PsGDYxIT.js → vendor-recharts-AnNqECZW.js} +1 -1
- package/assets/assets/{vendor-tanstack-BoP7BGaH.js → vendor-tanstack-q5SvZtcv.js} +1 -1
- package/assets/index.html +15 -15
- package/dist/{ads-UDOONRKQ.js → ads-BSVYKQ2L.js} +3 -3
- package/dist/{agent-JTEGEX6X.js → agent-L7VUHOHS.js} +7 -7
- package/dist/{agent-ask-PUV4EVGS.js → agent-ask-A4HQCNLV.js} +3 -3
- package/dist/{agent-conversations-TWTSQHBR.js → agent-conversations-L3TJJKPJ.js} +3 -3
- package/dist/agent-journeys-FEXRAZYN.js +86 -0
- package/dist/{agent-memory-ZJEXAUJB.js → agent-memory-LBTLOHUA.js} +3 -3
- package/dist/{agent-providers-2RQZSGMP.js → agent-providers-X7V2IHRK.js} +3 -3
- package/dist/{agent-transcript-YYS3XBES.js → agent-transcript-YSP2HKUZ.js} +3 -3
- package/dist/{analytics-RLC6PRUZ.js → analytics-FBPHES6M.js} +3 -3
- package/dist/{apply-Z5SSCEJ2.js → apply-PBCXZC5F.js} +3 -3
- package/dist/{backfill-6K2UMALK.js → backfill-NMHO3AIW.js} +9 -9
- package/dist/{backlinks-LDI2VTPT.js → backlinks-QMLTF2VF.js} +3 -3
- package/dist/{bing-SSNMNZEF.js → bing-H65WGTXU.js} +3 -3
- package/dist/{bootstrap-ISRV5I52.js → bootstrap-JAZNMAKP.js} +10 -10
- package/dist/{cdp-WU7QCPQ3.js → cdp-4DAMAHTB.js} +7 -7
- package/dist/{chunk-T76RQIGK.js → chunk-32U5LFIT.js} +4 -4
- package/dist/{chunk-SIRWPXGJ.js → chunk-33EHXZDH.js} +18 -9
- package/dist/{chunk-2GJLKCXL.js → chunk-3UFQI4KL.js} +114 -1
- package/dist/{chunk-5NDUJLUL.js → chunk-4PPF3SIU.js} +7 -7
- package/dist/{chunk-J7EYQFMJ.js → chunk-4XM3T65L.js} +4 -4
- package/dist/{chunk-QHEKMJL4.js → chunk-7Q5BSCKN.js} +2 -2
- package/dist/{chunk-JMUSNZJR.js → chunk-AA6P5NK3.js} +1 -1
- package/dist/{chunk-462CIYLY.js → chunk-CBAYQHNX.js} +1 -1
- package/dist/{chunk-Q47DEZGT.js → chunk-DRZDOL3P.js} +22 -22
- package/dist/{chunk-M7WS2BL3.js → chunk-FICCBAAY.js} +152 -5
- package/dist/{chunk-HDVJNYYE.js → chunk-HIC62JTS.js} +34 -5
- package/dist/{chunk-ZX7XDVPC.js → chunk-IPPNN5KE.js} +18 -2
- package/dist/{chunk-LRFCNERP.js → chunk-JCWXEVYW.js} +3 -3
- package/dist/{chunk-ZR3RYJF3.js → chunk-JECDHS6M.js} +5 -5
- package/dist/{chunk-EIDOBJF2.js → chunk-KCFIQJOL.js} +2 -2
- package/dist/{chunk-2FIDPBWE.js → chunk-KFMU6CLU.js} +1 -1
- package/dist/{chunk-OH42CAWP.js → chunk-LZGVQSZL.js} +1 -1
- package/dist/{chunk-JI7FDO7I.js → chunk-MTW37GXF.js} +1 -1
- package/dist/{chunk-ZBAB5DFZ.js → chunk-N3PYCQYT.js} +392 -343
- package/dist/{chunk-JDEHNF7K.js → chunk-NCM6PX64.js} +1 -1
- package/dist/{chunk-NPMJFPBM.js → chunk-OIHR2BDK.js} +3042 -2633
- package/dist/{chunk-GKHM5OT6.js → chunk-OMNS42ZQ.js} +2 -2
- package/dist/{chunk-NNUZ37NJ.js → chunk-P76XOEWL.js} +4 -4
- package/dist/{chunk-S6IC7ZK2.js → chunk-PHVIMUAQ.js} +2683 -2474
- package/dist/{chunk-SVF4P6DB.js → chunk-QAJDHHC5.js} +1 -1
- package/dist/{chunk-FDKDS4TK.js → chunk-S5Y633HH.js} +4 -4
- package/dist/{chunk-5K3S74ZX.js → chunk-SEAXXCU6.js} +3 -1
- package/dist/{chunk-4IYFVC22.js → chunk-SKH3N6WI.js} +3 -3
- package/dist/{chunk-VVOCZTNC.js → chunk-SVMTN7MI.js} +2 -2
- package/dist/{chunk-WB6VIQ7L.js → chunk-W5ZBMBBZ.js} +1 -1
- package/dist/{chunk-7ZJHKLTK.js → chunk-WA4FD5Y6.js} +1 -1
- package/dist/{chunk-AAMOBJXJ.js → chunk-WDEDEEWA.js} +1 -1
- package/dist/{chunk-F4FDJI5O.js → chunk-X7U7XYJQ.js} +3 -3
- package/dist/{chunk-DWFVH3E2.js → chunk-Y7WHB65J.js} +2 -2
- package/dist/{chunk-JP4RTZGE.js → chunk-YCRPOY2Y.js} +2 -2
- package/dist/{chunk-VWYB4RA4.js → chunk-YJOGWS7F.js} +2 -2
- package/dist/{citations-X5LS7SZX.js → citations-MNLMO33V.js} +3 -3
- package/dist/{cli-catalog-S4RLOOCK.js → cli-catalog-IKF4A7ZS.js} +3 -3
- package/dist/{cli-commands-LPBKNYWG.js → cli-commands-7UXIHESS.js} +7 -7
- package/dist/cli.js +14 -14
- package/dist/{competitor-O5YXN5SD.js → competitor-5DY5PKNU.js} +3 -3
- package/dist/{content-C6SO5LNZ.js → content-XNK2YY4S.js} +3 -3
- package/dist/{dashboard-3P6FFYCW.js → dashboard-72QZZ5Q6.js} +6 -6
- package/dist/{demo-OJ6C4DU3.js → demo-KD2SLCIP.js} +1 -1
- package/dist/{demo-server-GJXDVREB.js → demo-server-7EYKEN23.js} +12 -12
- package/dist/{discover-Z355GK36.js → discover-D4H4ALIE.js} +3 -3
- package/dist/{discover-eval-6OVS55LV.js → discover-eval-2CID2IBT.js} +3 -3
- package/dist/{doctor-E52VMIEP.js → doctor-OWRQNDWF.js} +3 -3
- package/dist/{evidence-ITVU3HYF.js → evidence-SQX4IMQM.js} +3 -3
- package/dist/{export-cmd-S2UD3ALT.js → export-cmd-73PYMZZ5.js} +3 -3
- package/dist/{ga-T3UEGAZC.js → ga-S6AKEVAL.js} +3 -3
- package/dist/{gbp-3G45OTYX.js → gbp-57J3AXEY.js} +3 -3
- package/dist/{google-YZS4HLN3.js → google-PPU5MJSV.js} +4 -4
- package/dist/{google-marketing-LIV6O63R.js → google-marketing-W4KZ74HX.js} +1 -1
- package/dist/{health-cmd-2FC73XH6.js → health-cmd-QYP4MS3E.js} +3 -3
- package/dist/{history-KLRMAVLG.js → history-MFHBHYH7.js} +3 -3
- package/dist/index.d.ts +677 -5
- package/dist/index.js +26 -26
- package/dist/{init-327KB44R.js → init-R2OT2EC7.js} +12 -12
- package/dist/{insights-KTGRGFAN.js → insights-IIMMXGRO.js} +3 -3
- package/dist/intelligence-service-4D34S2P6.js +16 -0
- package/dist/{journeys-PF2OO5W2.js → journeys-DXXRNANM.js} +6 -5
- package/dist/{keys-7NTJ7TFJ.js → keys-O3T52MLX.js} +3 -3
- package/dist/{keyword-C37ZTBOS.js → keyword-MS23BR7O.js} +3 -3
- package/dist/{logs-GU223TLX.js → logs-SKR5OLTY.js} +3 -3
- package/dist/{mcp-2DZFAHOW.js → mcp-NFC2PBGD.js} +4 -4
- package/dist/mcp.js +10 -10
- package/dist/{measurement-plan-ZSZUAW4Y.js → measurement-plan-Z73LMQYB.js} +5 -5
- package/dist/{notify-GYSA5V67.js → notify-2RUWK2AR.js} +3 -3
- package/dist/{organic-evidence-2NLMSKHX.js → organic-evidence-BGAOEVMZ.js} +3 -3
- package/dist/{overview-NL3B5XME.js → overview-DONWVYZT.js} +4 -4
- package/dist/{project-3THJAPRN.js → project-FFSPWR6R.js} +3 -3
- package/dist/{query-JU5UHTGT.js → query-AXEUWIW3.js} +3 -3
- package/dist/{research-WLS77NOR.js → research-YURAJRCV.js} +3 -3
- package/dist/{results-export-RQKUM5OA.js → results-export-ECSJKZHZ.js} +3 -3
- package/dist/{run-H6BA7COC.js → run-27EXPBE4.js} +4 -4
- package/dist/{schedule-ISTF4OHX.js → schedule-NY55SZZF.js} +3 -3
- package/dist/{search-HIYAHDZR.js → search-RXCBX3ST.js} +3 -3
- package/dist/{serve-7WKYATM7.js → serve-HWLAUXAU.js} +27 -27
- package/dist/{session-4B5VWFCF.js → session-LBMTUPPY.js} +14 -14
- package/dist/{settings-ZI4UQXJO.js → settings-IPC5SSDU.js} +3 -3
- package/dist/{skills-LN34DUVA.js → skills-Y3VNCWQM.js} +2 -2
- package/dist/{snapshot-BDPWMMDS.js → snapshot-TPDSMADU.js} +3 -3
- package/dist/{src-UENQLEK4.js → src-IDX2F2SR.js} +8 -2
- package/dist/{status-6CIRB7TO.js → status-YSQJBNM7.js} +4 -4
- package/dist/{technical-aeo-L435UGJL.js → technical-aeo-NMUQVIFG.js} +3 -3
- package/dist/{telemetry-VIY5GILS.js → telemetry-OA6W7Q54.js} +4 -4
- package/dist/{tools-LILY27JS.js → tools-LROEIKWI.js} +11 -11
- package/dist/{traffic-KHGUZSP6.js → traffic-ZJHB2TWF.js} +10 -6
- package/dist/{users-KLOJMJSB.js → users-NMWBTCDI.js} +3 -3
- package/dist/{visibility-stats-OG2HEGFX.js → visibility-stats-DE64FVOJ.js} +3 -3
- package/dist/{wordpress-NPVZAUSN.js → wordpress-AJWIJSM7.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/MeasurementPropertyPage-Cwnda2BA.js +0 -4
- package/assets/assets/ProjectPage-C39ua8CG.js +0 -11
- package/assets/assets/SiteHealthSection-CfQePJ7s.js +0 -2
- package/assets/assets/ToneBadge-bXf5LaSI.js +0 -60
- package/assets/assets/TrafficSourceDetailPage-Dklvlek4.js +0 -1
- package/assets/assets/index-qWvnlyfA.js +0 -60
- package/assets/assets/react-query-BKozxbv1.js +0 -1
- package/dist/intelligence-service-YX72V6NG.js +0 -16
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createApiClient
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
|
+
import {
|
|
6
|
+
emitJsonl
|
|
7
|
+
} from "./chunk-Z7IUAJOF.js";
|
|
8
|
+
import "./chunk-AOJU5LKX.js";
|
|
9
|
+
import {
|
|
10
|
+
isMachineFormat,
|
|
11
|
+
usageError
|
|
12
|
+
} from "./chunk-HGMYEDAQ.js";
|
|
13
|
+
import {
|
|
14
|
+
AgentJourneyCorrelationBases,
|
|
15
|
+
agentJourneysQuerySchema,
|
|
16
|
+
formatValidationIssues
|
|
17
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
18
|
+
import "./chunk-MLKGABMK.js";
|
|
19
|
+
|
|
20
|
+
// src/commands/agent-journeys.ts
|
|
21
|
+
function journeyQuery({ format: _format, ...selection }) {
|
|
22
|
+
const parsed = agentJourneysQuerySchema.safeParse(selection);
|
|
23
|
+
if (parsed.success) return parsed.data;
|
|
24
|
+
throw usageError(formatValidationIssues(parsed.error.issues), {
|
|
25
|
+
details: { issues: parsed.error.issues.map(({ path, message }) => ({ path, message })) }
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function printJourneyContext(context) {
|
|
29
|
+
const { scope, coverage } = context;
|
|
30
|
+
console.log(`Scope: ${scope.project} (${scope.mode}), source ${scope.sourceId ?? "all"}, agent ${scope.agentId ?? "all"}, trust ${scope.trust ?? "all"}`);
|
|
31
|
+
console.log(`Window: ${context.windowStart} to ${context.windowEnd}; sequences are bounded by this window.`);
|
|
32
|
+
const revision = scope.planRevision === null ? "" : `, revision ${scope.planRevision}`;
|
|
33
|
+
console.log(`Property: ${scope.targetKey ?? "all"}; attribution ${scope.attribution}${revision}`);
|
|
34
|
+
console.log(`Unavailable dimensions: ${scope.unavailableDimensions.join(", ")}`);
|
|
35
|
+
console.log(`Recording: ${coverage.recordingEnabled ? "enabled" : "disabled"}; retention ${coverage.retentionDays} days; inactivity gap ${coverage.idleMinutes} minutes; daily cap ${coverage.dailyEventLimit} events per source.`);
|
|
36
|
+
for (const limitation of coverage.limitations) console.log(`Coverage: ${limitation}`);
|
|
37
|
+
for (const source of coverage.sources) {
|
|
38
|
+
for (const limitation of source.limitations) console.log(`Source ${source.sourceId} (${source.sourceType}): ${limitation}`);
|
|
39
|
+
}
|
|
40
|
+
for (const capped of coverage.cappedSourceDays) console.log(`Daily cap reached: ${capped.sourceId} on ${capped.day}`);
|
|
41
|
+
if (coverage.likelyFakeRequests === null) console.log("Likely fake requests: not counted per Property (hourly totals carry no page path).");
|
|
42
|
+
else if (coverage.likelyFakeRequests > 0) console.log(`Likely fake requests in this window (counted, not listed): ${coverage.likelyFakeRequests}`);
|
|
43
|
+
}
|
|
44
|
+
function printJourney(journey) {
|
|
45
|
+
console.log(`${journey.id} ${journey.product} (${journey.operator}, ${journey.agentId}) trust ${journey.trustLevels.join(", ")}`);
|
|
46
|
+
console.log(` ${journey.startedAt} to ${journey.endedAt} ${journey.requestCount} requests, ${journey.errorCount} HTTP errors source ${journey.sourceId}`);
|
|
47
|
+
console.log(` ${journey.firstHost ?? "(host unavailable)"}${journey.firstPath} \u2192 ${journey.lastPath}`);
|
|
48
|
+
console.log(journey.correlationBasis === AgentJourneyCorrelationBases["ip-ua"] ? " Inferred sequence from IP and user agent; shared infrastructure can merge tasks." : " Unlinked request; no reliable request correlation is available.");
|
|
49
|
+
if (journey.targetKeys.length > 0) console.log(` Properties: ${journey.targetKeys.join(", ")}`);
|
|
50
|
+
}
|
|
51
|
+
async function trafficAgentJourneys(project, opts) {
|
|
52
|
+
const result = await createApiClient().trafficAgentJourneys(project, journeyQuery(opts));
|
|
53
|
+
if (isMachineFormat(opts.format)) {
|
|
54
|
+
if (opts.format === "jsonl") {
|
|
55
|
+
const { journeys, ...context } = result;
|
|
56
|
+
emitJsonl(journeys.map((journey) => ({ ...context, journey })));
|
|
57
|
+
} else console.log(JSON.stringify(result, null, 2));
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
console.log(`Agent journeys: ${result.journeys.length} of ${result.totalJourneys}; ${result.observedRequests} recorded requests`);
|
|
61
|
+
printJourneyContext(result);
|
|
62
|
+
for (const journey of result.journeys) printJourney(journey);
|
|
63
|
+
if (result.offset + result.journeys.length < result.totalJourneys) console.log(`More: --offset ${result.offset + result.journeys.length}`);
|
|
64
|
+
}
|
|
65
|
+
async function trafficAgentJourney(project, journeyId, opts) {
|
|
66
|
+
const result = await createApiClient().trafficAgentJourney(project, journeyId, journeyQuery(opts));
|
|
67
|
+
if (isMachineFormat(opts.format)) {
|
|
68
|
+
if (opts.format === "jsonl") {
|
|
69
|
+
const { events, ...context } = result;
|
|
70
|
+
emitJsonl(events.map((event) => ({ ...context, event })));
|
|
71
|
+
} else console.log(JSON.stringify(result, null, 2));
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
printJourneyContext(result);
|
|
75
|
+
printJourney(result.journey);
|
|
76
|
+
console.log("Recorded requests; paths and HTTP status do not establish task success.");
|
|
77
|
+
for (const event of result.events) {
|
|
78
|
+
console.log(` ${event.ts} ${event.method ?? "-"} ${event.status ?? "-"} ${event.host ?? "(host unavailable)"}${event.path} ${event.latencyMs === null ? "-" : `${event.latencyMs}ms`} ${event.trust} (${event.trustReasons.join(", ")}) Property ${event.targetKey ?? "-"} (${event.attribution})`);
|
|
79
|
+
}
|
|
80
|
+
console.log(`Requests shown: ${result.events.length} of ${result.totalEvents}`);
|
|
81
|
+
if (result.offset + result.events.length < result.totalEvents) console.log(`More: --offset ${result.offset + result.events.length}`);
|
|
82
|
+
}
|
|
83
|
+
export {
|
|
84
|
+
trafficAgentJourney,
|
|
85
|
+
trafficAgentJourneys
|
|
86
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
5
|
import {
|
|
6
6
|
emitJsonl
|
|
7
7
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
isMachineFormat,
|
|
12
12
|
printCliError
|
|
13
13
|
} from "./chunk-HGMYEDAQ.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-PHVIMUAQ.js";
|
|
15
15
|
import "./chunk-MLKGABMK.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/agent-memory.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
5
|
import {
|
|
6
6
|
emitJsonl
|
|
7
7
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
CliError,
|
|
11
11
|
printCliError
|
|
12
12
|
} from "./chunk-HGMYEDAQ.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-PHVIMUAQ.js";
|
|
14
14
|
import "./chunk-MLKGABMK.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/agent-providers.ts
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
5
|
import "./chunk-AOJU5LKX.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
8
8
|
isMachineFormat,
|
|
9
9
|
printCliError
|
|
10
10
|
} from "./chunk-HGMYEDAQ.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-PHVIMUAQ.js";
|
|
12
12
|
import "./chunk-MLKGABMK.js";
|
|
13
13
|
|
|
14
14
|
// src/commands/agent-transcript.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
5
|
import "./chunk-AOJU5LKX.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
formatPercent,
|
|
14
14
|
formatSignedPointDelta,
|
|
15
15
|
queryClassFilterSchema
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/analytics.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
5
|
import "./chunk-AOJU5LKX.js";
|
|
6
6
|
import {
|
|
7
7
|
CliError,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-HGMYEDAQ.js";
|
|
11
11
|
import {
|
|
12
12
|
describeError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
14
14
|
import "./chunk-MLKGABMK.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/apply.ts
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
backfillSnapshotAttributionCommand,
|
|
11
11
|
backfillTrafficClassificationCommand,
|
|
12
12
|
replayQueryAuditLog
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-33EHXZDH.js";
|
|
14
|
+
import "./chunk-OMNS42ZQ.js";
|
|
15
|
+
import "./chunk-WA4FD5Y6.js";
|
|
16
16
|
import "./chunk-HGMYEDAQ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-LZGVQSZL.js";
|
|
18
18
|
import {
|
|
19
19
|
backfillProjectAnswerMentions,
|
|
20
20
|
backfillProjectAnswerMentionsInChunks
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-OIHR2BDK.js";
|
|
22
|
+
import "./chunk-FICCBAAY.js";
|
|
23
|
+
import "./chunk-WDEDEEWA.js";
|
|
24
|
+
import "./chunk-3UFQI4KL.js";
|
|
25
|
+
import "./chunk-PHVIMUAQ.js";
|
|
26
26
|
import "./chunk-MLKGABMK.js";
|
|
27
27
|
export {
|
|
28
28
|
activeQueriesAt,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
5
|
import {
|
|
6
6
|
emitJsonl
|
|
7
7
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
backlinkSourceSchema,
|
|
18
18
|
formatPercent,
|
|
19
19
|
formatRunErrorOneLine
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
21
21
|
import "./chunk-MLKGABMK.js";
|
|
22
22
|
|
|
23
23
|
// src/commands/backlinks.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IPPNN5KE.js";
|
|
4
|
+
import "./chunk-WA4FD5Y6.js";
|
|
5
5
|
import {
|
|
6
6
|
emitJsonl
|
|
7
7
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
describeError,
|
|
15
15
|
formatPercent
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
|
18
18
|
|
|
19
19
|
// src/commands/bing.ts
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
trackCliConnection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YCRPOY2Y.js";
|
|
4
4
|
import {
|
|
5
5
|
answerServiceDescriptors
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NCM6PX64.js";
|
|
7
7
|
import {
|
|
8
8
|
outcomeFailure
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-P76XOEWL.js";
|
|
10
10
|
import {
|
|
11
11
|
isLoopbackBindHost
|
|
12
12
|
} from "./chunk-TSENU4GG.js";
|
|
13
13
|
import {
|
|
14
14
|
registeredProviderNames
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AA6P5NK3.js";
|
|
16
16
|
import {
|
|
17
17
|
isTelemetryEnabled,
|
|
18
18
|
recordInstallRef
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YJOGWS7F.js";
|
|
20
20
|
import {
|
|
21
21
|
createApiClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-IPPNN5KE.js";
|
|
23
23
|
import {
|
|
24
24
|
configExists,
|
|
25
25
|
getAnswerServiceEnv,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
loadConfigRaw,
|
|
31
31
|
saveConfig,
|
|
32
32
|
withBootstrapProviderDefaults
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-WA4FD5Y6.js";
|
|
34
34
|
import "./chunk-AOJU5LKX.js";
|
|
35
35
|
import {
|
|
36
36
|
CliError,
|
|
@@ -38,17 +38,17 @@ import {
|
|
|
38
38
|
isMachineFormat,
|
|
39
39
|
systemError
|
|
40
40
|
} from "./chunk-HGMYEDAQ.js";
|
|
41
|
-
import "./chunk-
|
|
41
|
+
import "./chunk-WDEDEEWA.js";
|
|
42
42
|
import {
|
|
43
43
|
apiKeys,
|
|
44
44
|
createClient,
|
|
45
45
|
dashboardSessions,
|
|
46
46
|
migrate
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3UFQI4KL.js";
|
|
48
48
|
import {
|
|
49
49
|
ProviderNames,
|
|
50
50
|
ProviderReloadErrorReasons
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
52
52
|
import "./chunk-MLKGABMK.js";
|
|
53
53
|
|
|
54
54
|
// src/commands/bootstrap.ts
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
trackCliConnection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YCRPOY2Y.js";
|
|
4
4
|
import {
|
|
5
5
|
outcomeFailure
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-P76XOEWL.js";
|
|
7
|
+
import "./chunk-YJOGWS7F.js";
|
|
8
8
|
import {
|
|
9
9
|
createApiClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IPPNN5KE.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig,
|
|
13
13
|
saveConfigPatch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WA4FD5Y6.js";
|
|
15
15
|
import "./chunk-AOJU5LKX.js";
|
|
16
16
|
import {
|
|
17
17
|
CliError,
|
|
18
18
|
isMachineFormat
|
|
19
19
|
} from "./chunk-HGMYEDAQ.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WDEDEEWA.js";
|
|
21
21
|
import {
|
|
22
22
|
describeError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
24
24
|
import "./chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/cdp.ts
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
CANONRY_MCP_TOOLKIT_NAMES,
|
|
4
4
|
isCanonryMcpToolkitName,
|
|
5
5
|
resolveAeroSkillDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MTW37GXF.js";
|
|
7
7
|
import {
|
|
8
8
|
createApiClient,
|
|
9
9
|
runWithUsageTags
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IPPNN5KE.js";
|
|
11
11
|
import {
|
|
12
12
|
canonryMcpTools,
|
|
13
13
|
mcpOutputSchema,
|
|
14
14
|
toolOperationAccess
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-HIC62JTS.js";
|
|
16
16
|
import {
|
|
17
17
|
PACKAGE_VERSION
|
|
18
18
|
} from "./chunk-AOJU5LKX.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
isReadOnlyKey,
|
|
26
26
|
restrictedWriteScopes,
|
|
27
27
|
upgradeCaveatFor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
29
29
|
|
|
30
30
|
// src/mcp/server.ts
|
|
31
31
|
import { randomUUID } from "crypto";
|
|
@@ -7,27 +7,28 @@ import {
|
|
|
7
7
|
reparseStoredResult4,
|
|
8
8
|
reparseStoredResult5,
|
|
9
9
|
resolveStoredApiResponse
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-OMNS42ZQ.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-WA4FD5Y6.js";
|
|
14
14
|
import {
|
|
15
15
|
isMachineFormat
|
|
16
16
|
} from "./chunk-HGMYEDAQ.js";
|
|
17
17
|
import {
|
|
18
18
|
determineCitationState
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-LZGVQSZL.js";
|
|
20
20
|
import {
|
|
21
|
+
addLikelyFakeAgentHits,
|
|
21
22
|
backfillProjectAnswerMentions,
|
|
22
23
|
competitorIdentityColumns,
|
|
23
24
|
createRunCompetitorResolver,
|
|
24
25
|
readMarketCompetitorNames,
|
|
25
26
|
refreshSnapshotMentionIdentity
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OIHR2BDK.js";
|
|
27
28
|
import {
|
|
28
29
|
classifyAiUserFetch,
|
|
29
30
|
classifyCrawler
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FICCBAAY.js";
|
|
31
32
|
import {
|
|
32
33
|
RawEventSampleEventTypes,
|
|
33
34
|
aiUserFetchEventsHourly,
|
|
@@ -43,8 +44,9 @@ import {
|
|
|
43
44
|
querySnapshots,
|
|
44
45
|
rawEventSamples,
|
|
45
46
|
runs
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-3UFQI4KL.js";
|
|
47
48
|
import {
|
|
49
|
+
AgentTrustLevels,
|
|
48
50
|
ProviderNames,
|
|
49
51
|
RetrievalContracts,
|
|
50
52
|
RunKinds,
|
|
@@ -59,7 +61,7 @@ import {
|
|
|
59
61
|
extractRecommendedCompetitors,
|
|
60
62
|
normalizeUrlPath,
|
|
61
63
|
openRouterRouteModel
|
|
62
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
63
65
|
|
|
64
66
|
// src/commands/backfill.ts
|
|
65
67
|
import { setImmediate as yieldToEventLoop } from "timers/promises";
|
|
@@ -437,7 +439,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
437
439
|
}
|
|
438
440
|
}
|
|
439
441
|
async function backfillInsightsCommand(project, opts) {
|
|
440
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
442
|
+
const { IntelligenceService } = await import("./intelligence-service-4D34S2P6.js");
|
|
441
443
|
const config = loadConfig();
|
|
442
444
|
const db = createClient(config.database);
|
|
443
445
|
migrate(db);
|
|
@@ -876,7 +878,14 @@ async function backfillTrafficClassificationCommand(opts) {
|
|
|
876
878
|
aiReferral: null
|
|
877
879
|
}
|
|
878
880
|
}).where(eq(rawEventSamples.id, snap.id)).run();
|
|
879
|
-
if (userFetch) {
|
|
881
|
+
if (userFetch?.trust === AgentTrustLevels.likely_fake) {
|
|
882
|
+
addLikelyFakeAgentHits(tx, {
|
|
883
|
+
projectId: snap.projectId,
|
|
884
|
+
sourceId: snap.sourceId,
|
|
885
|
+
buckets: [{ tsHour: tsHourIso, botId: userFetch.botId, operator: userFetch.operator, reason: userFetch.trustReasons[0], hits: 1 }],
|
|
886
|
+
now
|
|
887
|
+
});
|
|
888
|
+
} else if (userFetch) {
|
|
880
889
|
tx.insert(aiUserFetchEventsHourly).values({
|
|
881
890
|
projectId: snap.projectId,
|
|
882
891
|
sourceId: snap.sourceId,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
templateLinkRatio,
|
|
21
21
|
templateLinkUbiquityAvailable,
|
|
22
22
|
validationError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -44,11 +44,14 @@ __export(schema_exports, {
|
|
|
44
44
|
adsOperationSteps: () => adsOperationSteps,
|
|
45
45
|
adsOperations: () => adsOperations,
|
|
46
46
|
agentConversations: () => agentConversations,
|
|
47
|
+
agentJourneyCaptureDays: () => agentJourneyCaptureDays,
|
|
48
|
+
agentJourneyEvents: () => agentJourneyEvents,
|
|
47
49
|
agentMemory: () => agentMemory,
|
|
48
50
|
agentSessions: () => agentSessions,
|
|
49
51
|
agentToolEvents: () => agentToolEvents,
|
|
50
52
|
aiReferralEventsHourly: () => aiReferralEventsHourly,
|
|
51
53
|
aiUserFetchEventsHourly: () => aiUserFetchEventsHourly,
|
|
54
|
+
aiUserFetchLikelyFakeHourly: () => aiUserFetchLikelyFakeHourly,
|
|
52
55
|
aiUserFetchVerificationManifestsHourly: () => aiUserFetchVerificationManifestsHourly,
|
|
53
56
|
apiKeys: () => apiKeys,
|
|
54
57
|
auditLog: () => auditLog,
|
|
@@ -2506,6 +2509,21 @@ var aiUserFetchEventsHourly = sqliteTable2("ai_user_fetch_events_hourly", {
|
|
|
2506
2509
|
index2("idx_ai_user_fetch_hourly_project_ts").on(table.projectId, table.tsHour),
|
|
2507
2510
|
index2("idx_ai_user_fetch_hourly_path").on(table.projectId, table.pathNormalized)
|
|
2508
2511
|
]);
|
|
2512
|
+
var aiUserFetchLikelyFakeHourly = sqliteTable2("ai_user_fetch_likely_fake_hourly", {
|
|
2513
|
+
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
2514
|
+
sourceId: text2("source_id").notNull().references(() => trafficSources.id, { onDelete: "cascade" }),
|
|
2515
|
+
tsHour: text2("ts_hour").notNull(),
|
|
2516
|
+
botId: text2("bot_id").notNull(),
|
|
2517
|
+
operator: text2("operator").notNull(),
|
|
2518
|
+
reason: text2("reason").$type().notNull(),
|
|
2519
|
+
hits: integer2("hits").notNull().default(0),
|
|
2520
|
+
createdAt: text2("created_at").notNull(),
|
|
2521
|
+
updatedAt: text2("updated_at").notNull()
|
|
2522
|
+
}, (table) => [
|
|
2523
|
+
primaryKey2({ columns: [table.projectId, table.sourceId, table.tsHour, table.botId, table.reason] }),
|
|
2524
|
+
index2("idx_ai_user_fetch_likely_fake_project_ts").on(table.projectId, table.tsHour),
|
|
2525
|
+
index2("idx_ai_user_fetch_likely_fake_source_ts").on(table.sourceId, table.tsHour)
|
|
2526
|
+
]);
|
|
2509
2527
|
var aiUserFetchVerificationManifestsHourly = sqliteTable2("ai_user_fetch_verification_manifests_hourly", {
|
|
2510
2528
|
projectId: text2("project_id").notNull(),
|
|
2511
2529
|
sourceId: text2("source_id").notNull(),
|
|
@@ -2702,6 +2720,43 @@ var journeyEvents = sqliteTable2("journey_events", {
|
|
|
2702
2720
|
index2("idx_journey_events_visit_ts").on(table.visitId, table.ts),
|
|
2703
2721
|
index2("idx_journey_events_ts").on(table.ts)
|
|
2704
2722
|
]);
|
|
2723
|
+
var agentJourneyEvents = sqliteTable2("agent_journey_events", {
|
|
2724
|
+
id: text2("id").primaryKey(),
|
|
2725
|
+
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
2726
|
+
sourceId: text2("source_id").notNull().references(() => trafficSources.id, { onDelete: "cascade" }),
|
|
2727
|
+
sourceEventId: text2("source_event_id").notNull(),
|
|
2728
|
+
ts: text2("ts").notNull(),
|
|
2729
|
+
correlationKey: text2("correlation_key").notNull(),
|
|
2730
|
+
correlationBasis: text2("correlation_basis").$type().notNull(),
|
|
2731
|
+
agentId: text2("agent_id").notNull(),
|
|
2732
|
+
operator: text2("operator").notNull(),
|
|
2733
|
+
product: text2("product").notNull(),
|
|
2734
|
+
verificationStatus: text2("verification_status").$type().notNull(),
|
|
2735
|
+
verificationManifest: text2("verification_manifest", { mode: "json" }).$type(),
|
|
2736
|
+
trust: text2("trust").$type().notNull(),
|
|
2737
|
+
trustReasons: text2("trust_reasons", { mode: "json" }).$type().notNull(),
|
|
2738
|
+
host: text2("host"),
|
|
2739
|
+
path: text2("path").notNull(),
|
|
2740
|
+
method: text2("method"),
|
|
2741
|
+
status: integer2("status"),
|
|
2742
|
+
latencyMs: real("latency_ms"),
|
|
2743
|
+
createdAt: text2("created_at").notNull()
|
|
2744
|
+
}, (table) => [
|
|
2745
|
+
uniqueIndex2("idx_agent_journey_events_source_event").on(table.projectId, table.sourceId, table.sourceEventId),
|
|
2746
|
+
index2("idx_agent_journey_events_project_ts").on(table.projectId, table.ts),
|
|
2747
|
+
index2("idx_agent_journey_events_correlation").on(table.projectId, table.sourceId, table.correlationKey, table.ts),
|
|
2748
|
+
index2("idx_agent_journey_events_ts").on(table.ts)
|
|
2749
|
+
]);
|
|
2750
|
+
var agentJourneyCaptureDays = sqliteTable2("agent_journey_capture_days", {
|
|
2751
|
+
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
2752
|
+
sourceId: text2("source_id").notNull().references(() => trafficSources.id, { onDelete: "cascade" }),
|
|
2753
|
+
day: text2("day").notNull(),
|
|
2754
|
+
storedEvents: integer2("stored_events").notNull().default(0),
|
|
2755
|
+
capped: integer2("capped", { mode: "boolean" }).notNull().default(false)
|
|
2756
|
+
}, (table) => [
|
|
2757
|
+
primaryKey2({ columns: [table.projectId, table.sourceId, table.day] }),
|
|
2758
|
+
index2("idx_agent_journey_capture_days_day").on(table.day)
|
|
2759
|
+
]);
|
|
2705
2760
|
var discoverySessions = sqliteTable2("discovery_sessions", {
|
|
2706
2761
|
id: text2("id").primaryKey(),
|
|
2707
2762
|
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
@@ -8428,6 +8483,61 @@ var MIGRATION_VERSIONS = [
|
|
|
8428
8483
|
PRIMARY KEY (project_id, agent_name)
|
|
8429
8484
|
)`
|
|
8430
8485
|
]
|
|
8486
|
+
},
|
|
8487
|
+
{
|
|
8488
|
+
version: 203,
|
|
8489
|
+
name: "agent-journeys-and-agent-trust",
|
|
8490
|
+
statements: [
|
|
8491
|
+
`CREATE TABLE IF NOT EXISTS agent_journey_events (
|
|
8492
|
+
id TEXT PRIMARY KEY,
|
|
8493
|
+
project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
|
8494
|
+
source_id TEXT NOT NULL REFERENCES traffic_sources(id) ON DELETE CASCADE,
|
|
8495
|
+
source_event_id TEXT NOT NULL,
|
|
8496
|
+
ts TEXT NOT NULL,
|
|
8497
|
+
correlation_key TEXT NOT NULL,
|
|
8498
|
+
correlation_basis TEXT NOT NULL,
|
|
8499
|
+
agent_id TEXT NOT NULL,
|
|
8500
|
+
operator TEXT NOT NULL,
|
|
8501
|
+
product TEXT NOT NULL,
|
|
8502
|
+
verification_status TEXT NOT NULL,
|
|
8503
|
+
verification_manifest TEXT,
|
|
8504
|
+
trust TEXT NOT NULL,
|
|
8505
|
+
trust_reasons TEXT NOT NULL,
|
|
8506
|
+
host TEXT,
|
|
8507
|
+
path TEXT NOT NULL,
|
|
8508
|
+
method TEXT,
|
|
8509
|
+
status INTEGER,
|
|
8510
|
+
latency_ms REAL,
|
|
8511
|
+
created_at TEXT NOT NULL
|
|
8512
|
+
)`,
|
|
8513
|
+
`CREATE UNIQUE INDEX IF NOT EXISTS idx_agent_journey_events_source_event ON agent_journey_events(project_id, source_id, source_event_id)`,
|
|
8514
|
+
`CREATE INDEX IF NOT EXISTS idx_agent_journey_events_project_ts ON agent_journey_events(project_id, ts)`,
|
|
8515
|
+
`CREATE INDEX IF NOT EXISTS idx_agent_journey_events_correlation ON agent_journey_events(project_id, source_id, correlation_key, ts)`,
|
|
8516
|
+
`CREATE INDEX IF NOT EXISTS idx_agent_journey_events_ts ON agent_journey_events(ts)`,
|
|
8517
|
+
`CREATE TABLE IF NOT EXISTS agent_journey_capture_days (
|
|
8518
|
+
project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
|
8519
|
+
source_id TEXT NOT NULL REFERENCES traffic_sources(id) ON DELETE CASCADE,
|
|
8520
|
+
day TEXT NOT NULL,
|
|
8521
|
+
stored_events INTEGER NOT NULL DEFAULT 0,
|
|
8522
|
+
capped INTEGER NOT NULL DEFAULT 0,
|
|
8523
|
+
PRIMARY KEY(project_id, source_id, day)
|
|
8524
|
+
)`,
|
|
8525
|
+
`CREATE INDEX IF NOT EXISTS idx_agent_journey_capture_days_day ON agent_journey_capture_days(day)`,
|
|
8526
|
+
`CREATE TABLE IF NOT EXISTS ai_user_fetch_likely_fake_hourly (
|
|
8527
|
+
project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
|
8528
|
+
source_id TEXT NOT NULL REFERENCES traffic_sources(id) ON DELETE CASCADE,
|
|
8529
|
+
ts_hour TEXT NOT NULL,
|
|
8530
|
+
bot_id TEXT NOT NULL,
|
|
8531
|
+
operator TEXT NOT NULL,
|
|
8532
|
+
reason TEXT NOT NULL,
|
|
8533
|
+
hits INTEGER NOT NULL DEFAULT 0,
|
|
8534
|
+
created_at TEXT NOT NULL,
|
|
8535
|
+
updated_at TEXT NOT NULL,
|
|
8536
|
+
PRIMARY KEY(project_id, source_id, ts_hour, bot_id, reason)
|
|
8537
|
+
)`,
|
|
8538
|
+
`CREATE INDEX IF NOT EXISTS idx_ai_user_fetch_likely_fake_project_ts ON ai_user_fetch_likely_fake_hourly(project_id, ts_hour)`,
|
|
8539
|
+
`CREATE INDEX IF NOT EXISTS idx_ai_user_fetch_likely_fake_source_ts ON ai_user_fetch_likely_fake_hourly(source_id, ts_hour)`
|
|
8540
|
+
]
|
|
8431
8541
|
}
|
|
8432
8542
|
];
|
|
8433
8543
|
var AERO_LEDGER_REBUILDS = [
|
|
@@ -9932,6 +10042,7 @@ export {
|
|
|
9932
10042
|
crawlerEventsHourly,
|
|
9933
10043
|
crawlerVerificationManifestsHourly,
|
|
9934
10044
|
aiUserFetchEventsHourly,
|
|
10045
|
+
aiUserFetchLikelyFakeHourly,
|
|
9935
10046
|
aiUserFetchVerificationManifestsHourly,
|
|
9936
10047
|
unrecognizedAgentEventsHourly,
|
|
9937
10048
|
unrecognizedAgentNotifyState,
|
|
@@ -9941,6 +10052,8 @@ export {
|
|
|
9941
10052
|
journeyVisitors,
|
|
9942
10053
|
journeyVisits,
|
|
9943
10054
|
journeyEvents,
|
|
10055
|
+
agentJourneyEvents,
|
|
10056
|
+
agentJourneyCaptureDays,
|
|
9944
10057
|
discoverySessions,
|
|
9945
10058
|
researchRuns,
|
|
9946
10059
|
researchRunQueries,
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
isStoredPageReadTool,
|
|
6
6
|
isStoredReadTool,
|
|
7
7
|
truncateToolResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-4XM3T65L.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_MCP_TOOLKITS,
|
|
11
11
|
resolveAeroSkillDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MTW37GXF.js";
|
|
13
13
|
import {
|
|
14
14
|
AGENT_REASONING_LEVELS,
|
|
15
15
|
aeroStreamFn,
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
resolveApiKeyFor,
|
|
24
24
|
resolveModelForProvider,
|
|
25
25
|
validateAgentProviderRegistry
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-WA4FD5Y6.js";
|
|
27
27
|
import {
|
|
28
28
|
CanonryMcpToolNames,
|
|
29
29
|
canonryMcpTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-HIC62JTS.js";
|
|
31
31
|
import {
|
|
32
32
|
createLogger
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SVMTN7MI.js";
|
|
34
34
|
import {
|
|
35
35
|
agentToolEvents,
|
|
36
36
|
llmUsageEvents
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3UFQI4KL.js";
|
|
38
38
|
import {
|
|
39
39
|
MeasurementPortfolioLists,
|
|
40
40
|
SeoCapabilities,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
describeError,
|
|
44
44
|
validationError,
|
|
45
45
|
visibilityReportRequestSchema
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-PHVIMUAQ.js";
|
|
47
47
|
|
|
48
48
|
// src/agent/session.ts
|
|
49
49
|
import fs2 from "fs";
|