@canonry/canonry 7.112.0 → 7.114.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/canonry/references/aeo-analysis.md +8 -0
- package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +3 -0
- package/assets/assets/AccessControls-CZ9e8JQj.js +2 -0
- package/assets/assets/{AgentSetupPage-q1Ku1PAd.js → AgentSetupPage-GAYSye6c.js} +1 -1
- package/assets/assets/{AuditHistoryPanel-6EnlABwM.js → AuditHistoryPanel-B8Nvxw1T.js} +1 -1
- package/assets/assets/{BacklinksPage-BaHCJEuK.js → BacklinksPage-DYDrtPvl.js} +1 -1
- package/assets/assets/{ChartPrimitives-C3lJj3eO.js → ChartPrimitives-D5jY1n81.js} +1 -1
- package/assets/assets/{HistoryPage-B_NVeDCn.js → HistoryPage-oWlfgq2q.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-8_IMBhbd.js +4 -0
- package/assets/assets/ProjectPage-mopnzPrl.js +15 -0
- package/assets/assets/{RunsPage-9T1OrQw3.js → RunsPage-BQVy2FfY.js} +1 -1
- package/assets/assets/{ServerTrafficSection-iUdFKWEc.js → ServerTrafficSection-rxO0hr0U.js} +1 -1
- package/assets/assets/{SettingsPage-BswQYkkB.js → SettingsPage-DNd1rljp.js} +1 -1
- package/assets/assets/{ToneBadge-CWufDJgM.js → ToneBadge-ClBoU45-.js} +2 -2
- package/assets/assets/{TrafficPage-DN9DxoWm.js → TrafficPage-DS7e2HJF.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-D6TdTyP-.js → TrafficSourceDetailPage-GM_NYof2.js} +1 -1
- package/assets/assets/{account-context-CyE8qMvH.js → account-context-DPSUr6ab.js} +1 -1
- package/assets/assets/{agent-trust-copy-CinW-f_8.js → agent-trust-copy-CzC0CyvN.js} +1 -1
- package/assets/assets/{card-CI9gz2Hb.js → card-BuGARNWu.js} +1 -1
- package/assets/assets/index-7gTTbr2Y.js +43 -0
- package/assets/assets/{query-client-BlAtm9zS.js → query-client-20-WKWRF.js} +1 -1
- package/assets/assets/{react-query-DE_LaZkX.js → react-query-BcbS-PEL.js} +1 -1
- package/assets/assets/{react-sigma_core.esm.min-CZkN6sL0.js → react-sigma_core.esm.min-BPHKUIql.js} +1 -1
- package/assets/assets/{server-traffic-Ci9JbS2U.js → server-traffic-k9hvgv11.js} +1 -1
- package/assets/assets/service-CNCw9nYd.js +1 -0
- package/assets/index.html +8 -8
- package/dist/{ads-WRMNYPJ7.js → ads-MBUYUCIO.js} +3 -3
- package/dist/{agent-V4PAGAPZ.js → agent-H4TXDFUY.js} +7 -7
- package/dist/{agent-ask-3LAAT4WN.js → agent-ask-VYCPGN7W.js} +3 -3
- package/dist/{agent-conversations-TVNDZY54.js → agent-conversations-HOAJSJ2V.js} +3 -3
- package/dist/{agent-journeys-UB7ZGAKP.js → agent-journeys-GCN2DMNW.js} +3 -3
- package/dist/{agent-memory-RWF2WODB.js → agent-memory-5ZY5GMXL.js} +3 -3
- package/dist/{agent-providers-77A45KZD.js → agent-providers-3BFMXJZZ.js} +3 -3
- package/dist/{agent-transcript-K5WZJHJX.js → agent-transcript-BMGQADZ2.js} +3 -3
- package/dist/{analytics-RNSYOGUP.js → analytics-4OBHR4V2.js} +3 -3
- package/dist/{apply-UU6GFYIJ.js → apply-JQHWDI43.js} +3 -3
- package/dist/{backfill-DOYPYZJL.js → backfill-XU4QLLNT.js} +10 -10
- package/dist/{backlinks-UKRILGDJ.js → backlinks-LFDFDL4X.js} +3 -3
- package/dist/{bing-P6GTLGIP.js → bing-HSZ2HYX4.js} +3 -3
- package/dist/{bootstrap-BRXDKCNB.js → bootstrap-5M3WJOHV.js} +10 -10
- package/dist/{cdp-CPGVPWTU.js → cdp-3L2UFZ6G.js} +7 -7
- package/dist/{chunk-NICTKJ3O.js → chunk-3T6YDOJX.js} +1 -1
- package/dist/{chunk-M2RTTCLC.js → chunk-4IB3LHZV.js} +3 -3
- package/dist/{chunk-N5K35MDQ.js → chunk-4UZR7UUC.js} +1 -1
- package/dist/{chunk-SNL4C4BV.js → chunk-AP7ZGBXF.js} +2 -2
- package/dist/{chunk-JCK5TDIU.js → chunk-B4CKWKSX.js} +858 -712
- package/dist/{chunk-W3UYVNYQ.js → chunk-BRAUKTBG.js} +1 -1
- package/dist/{chunk-4WXNCSYL.js → chunk-CD5JEVPS.js} +2 -2
- package/dist/{chunk-YXCMVHYJ.js → chunk-CHDPNIRF.js} +4 -4
- package/dist/{chunk-NLU2MMFA.js → chunk-D7KVKYYT.js} +279 -90
- package/dist/{chunk-YN7OV22K.js → chunk-EUQ6F4FY.js} +4 -4
- package/dist/{chunk-ZVDUBOE4.js → chunk-FXMIX2BP.js} +30 -3
- package/dist/{chunk-SJD3ZAEH.js → chunk-GLAOBAJP.js} +2 -2
- package/dist/{chunk-B27F7C6S.js → chunk-HDCBIMFZ.js} +5 -5
- package/dist/{chunk-4PMS7CAF.js → chunk-HK72OBW5.js} +2 -2
- package/dist/{chunk-DZCJNSBY.js → chunk-HNHJ7HQK.js} +1 -1
- package/dist/{chunk-S6ULO6H5.js → chunk-K3H67IQZ.js} +1 -1
- package/dist/{chunk-LGAQXH3L.js → chunk-KOMFBAUK.js} +2 -1
- package/dist/{chunk-7IF576RC.js → chunk-M5C7R7OF.js} +5 -5
- package/dist/{chunk-Q4XHWZDT.js → chunk-MHNMMFON.js} +1 -1
- package/dist/{chunk-I4YRKF6G.js → chunk-MSBSKTO2.js} +3 -3
- package/dist/{chunk-CIDXBCEW.js → chunk-NNHI6SOT.js} +2 -2
- package/dist/{chunk-WHBLQJGZ.js → chunk-ODFPL6P5.js} +1 -1
- package/dist/{chunk-JHAG6DEG.js → chunk-PPM2ZLVN.js} +3 -3
- package/dist/{chunk-KYZ5A7AX.js → chunk-QDBKBXC7.js} +1 -1
- package/dist/{chunk-ZMCRVQ6Q.js → chunk-RFJM6G7L.js} +1 -1
- package/dist/{chunk-Y6D7K63F.js → chunk-RSTJWK3S.js} +3 -3
- package/dist/{chunk-R4PQ7D32.js → chunk-SGQGEKBN.js} +7 -7
- package/dist/{chunk-F6CYO37C.js → chunk-TCCGE2WF.js} +7 -7
- package/dist/{chunk-C44S7EE7.js → chunk-TJGGK6IQ.js} +4 -4
- package/dist/{chunk-OBDRDAIK.js → chunk-UK2WX3PM.js} +1 -1
- package/dist/{chunk-2LXLJXTG.js → chunk-VTT4VYJC.js} +2 -2
- package/dist/{chunk-AZPWF42S.js → chunk-WBGBCRVH.js} +26 -2
- package/dist/{chunk-YWKALX6A.js → chunk-WMMIMZHL.js} +4 -4
- package/dist/{chunk-4ALKLWSQ.js → chunk-WW7XJXSQ.js} +1560 -1297
- package/dist/{chunk-TDSISMOJ.js → chunk-X5ITRJ5N.js} +22 -22
- package/dist/{chunk-PT3VROG7.js → chunk-Y2ZQFWH2.js} +399 -366
- package/dist/{chunk-TDRPVIUB.js → chunk-ZWWEWFCM.js} +1 -1
- package/dist/{citations-GW2ELWME.js → citations-KLOXXIX5.js} +52 -4
- package/dist/{cli-catalog-PDU4Z4IO.js → cli-catalog-SPUYWLST.js} +3 -3
- package/dist/{cli-commands-XWIWF4VG.js → cli-commands-4WVVOSGO.js} +7 -7
- package/dist/cli.js +13 -13
- package/dist/{competitor-MS4P6GJ4.js → competitor-TVOPWBTO.js} +3 -3
- package/dist/{content-3QQRT3Q4.js → content-FOHOEMPN.js} +3 -3
- package/dist/{dashboard-FDVY7CMI.js → dashboard-Y2MWS75I.js} +6 -6
- package/dist/{demo-WRF3ZSQ5.js → demo-KKYQOGOL.js} +1 -1
- package/dist/{demo-server-Q77EUE5A.js → demo-server-7W7G3WBF.js} +13 -12
- package/dist/{discover-BAKAHH5X.js → discover-NEFL3GNJ.js} +4 -4
- package/dist/{discover-eval-KMYMVZVX.js → discover-eval-5UTXVZN2.js} +3 -3
- package/dist/{doctor-OAYNGBBT.js → doctor-IPEY4PEU.js} +3 -3
- package/dist/{evidence-FEDSZTLW.js → evidence-2I55I5RU.js} +3 -3
- package/dist/{export-cmd-OYQVBE5C.js → export-cmd-CMCUOJY4.js} +3 -3
- package/dist/{ga-MWJQ2S4D.js → ga-HBFR7YAV.js} +3 -3
- package/dist/{gbp-K4FXHF6N.js → gbp-6KGE44C3.js} +3 -3
- package/dist/{google-B6VUPLQN.js → google-PFQMLRET.js} +4 -4
- package/dist/{google-marketing-3KKTACAA.js → google-marketing-DKZPDKSJ.js} +1 -1
- package/dist/{health-cmd-YEHYFXEN.js → health-cmd-YQ2CYZJF.js} +4 -4
- package/dist/{history-5EYU4PQT.js → history-GC6KSYLZ.js} +3 -3
- package/dist/index.d.ts +28 -28
- package/dist/index.js +26 -26
- package/dist/{init-2HLTEB5Y.js → init-YOI6WNXX.js} +12 -12
- package/dist/{insights-MW5VTF7N.js → insights-M5H3P2VD.js} +3 -3
- package/dist/intelligence-service-ODVPS6D6.js +16 -0
- package/dist/{journeys-YW2IWDMN.js → journeys-EXIVMEY7.js} +3 -3
- package/dist/{keys-RRT26LGV.js → keys-VFAC5KWZ.js} +3 -3
- package/dist/{keyword-KSN3JTCX.js → keyword-I5TY67XC.js} +3 -3
- package/dist/{logs-IPAE4F4W.js → logs-3LEGAI5D.js} +3 -3
- package/dist/{mcp-WJR6RKYK.js → mcp-6TETRXJ2.js} +4 -4
- package/dist/mcp.js +10 -10
- package/dist/{measurement-plan-DGLUEK7M.js → measurement-plan-76O3EEXW.js} +5 -5
- package/dist/{notify-3QOG6NWS.js → notify-KIUJJX7L.js} +3 -3
- package/dist/{organic-evidence-M3VSSLQR.js → organic-evidence-R7TA4MZM.js} +3 -3
- package/dist/{overview-7RRCHUWZ.js → overview-PMD3GYMJ.js} +5 -5
- package/dist/{project-T3JZJPVK.js → project-R7AAYKYH.js} +3 -3
- package/dist/{project-setup-Y6DSDF4V.js → project-setup-VDEHXJ6V.js} +3 -3
- package/dist/{query-24JZPB3M.js → query-QPPVYE6C.js} +3 -3
- package/dist/{research-ERVKTKMV.js → research-UZCT66YL.js} +3 -3
- package/dist/{results-export-KSGIWPAM.js → results-export-YITLJ6QN.js} +3 -3
- package/dist/{run-XX6YUJRI.js → run-6WWMQSYW.js} +5 -5
- package/dist/{schedule-JBZENJ2V.js → schedule-ZZ4N4NWR.js} +3 -3
- package/dist/{search-V67KUYIZ.js → search-PFNLSSB2.js} +3 -3
- package/dist/{serve-HTQ76BFW.js → serve-7OKBRXOG.js} +27 -27
- package/dist/{session-AJ6R6K4B.js → session-UOJNPN2F.js} +14 -14
- package/dist/{settings-KVKWFTJZ.js → settings-J5DVHHRL.js} +3 -3
- package/dist/{sitemaps-UDIC4YUU.js → sitemaps-E4EEEB2G.js} +3 -3
- package/dist/{skills-35CPSNXM.js → skills-XOEQIEV6.js} +2 -2
- package/dist/{snapshot-OHGM7JBF.js → snapshot-MHNO5GFX.js} +3 -3
- package/dist/{src-GNBUAHT7.js → src-TWXSURXK.js} +2 -2
- package/dist/{status-GKWSTMUV.js → status-CASSB3RI.js} +5 -5
- package/dist/{technical-aeo-IHQYV4TT.js → technical-aeo-WNNXAOVE.js} +3 -3
- package/dist/{telemetry-AA2CONG2.js → telemetry-5PJFKHDT.js} +4 -4
- package/dist/{tools-CWNRV7PQ.js → tools-OACYTLJ5.js} +11 -11
- package/dist/{traffic-F7WR32VB.js → traffic-Q5QRTBKR.js} +5 -5
- package/dist/{trends-YB2GNT75.js → trends-4X5EDJAA.js} +3 -3
- package/dist/{users-PXTIUGXI.js → users-5FZLNPXR.js} +3 -3
- package/dist/{visibility-stats-KSPE4GHQ.js → visibility-stats-AKIM3332.js} +4 -4
- package/dist/{wordpress-YGSH5MSK.js → wordpress-CO6XLP53.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/AccessControls-BxtFDXYH.js +0 -2
- package/assets/assets/MeasurementPropertyPage-DxCRxoIF.js +0 -4
- package/assets/assets/ProjectPage-BjGsilZJ.js +0 -15
- package/assets/assets/index-DshFRkPM.js +0 -43
- package/assets/assets/service-CiYDMju_.js +0 -1
- package/dist/intelligence-service-PTAA5WJB.js +0 -16
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registeredProviderNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZWWEWFCM.js";
|
|
4
4
|
import {
|
|
5
5
|
configExists,
|
|
6
6
|
loadConfigRaw
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RFJM6G7L.js";
|
|
8
8
|
|
|
9
9
|
// src/setup-state.ts
|
|
10
10
|
import fs from "fs";
|
|
@@ -28,7 +28,7 @@ async function buildSetupState() {
|
|
|
28
28
|
}
|
|
29
29
|
if (dbPath && fs.existsSync(dbPath)) {
|
|
30
30
|
try {
|
|
31
|
-
const { createClient, projects, queries: queriesTable } = await import("./src-
|
|
31
|
+
const { createClient, projects, queries: queriesTable } = await import("./src-TWXSURXK.js");
|
|
32
32
|
const db = createClient(dbPath);
|
|
33
33
|
project_count = db.select({ id: projects.id }).from(projects).all().length;
|
|
34
34
|
const firstQuery = db.select({ id: queriesTable.id }).from(queriesTable).limit(1).all();
|
|
@@ -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-7OKBRXOG.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -5,17 +5,18 @@ import {
|
|
|
5
5
|
dedupeGscSitemapUrls,
|
|
6
6
|
resolveDiscoveredGscSitemapUrls,
|
|
7
7
|
submitGscSitemapBatches
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3T6YDOJX.js";
|
|
9
9
|
import {
|
|
10
10
|
measurementDraftOperationSchema,
|
|
11
11
|
runMeasurementDraftAction
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ODFPL6P5.js";
|
|
13
13
|
import {
|
|
14
14
|
CliError
|
|
15
15
|
} from "./chunk-HGMYEDAQ.js";
|
|
16
16
|
import {
|
|
17
17
|
AGENT_MEMORY_KEY_MAX_LENGTH,
|
|
18
18
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
19
|
+
CITATION_URL_CATEGORY_HINT,
|
|
19
20
|
DISCOVERY_DEFAULT_DEDUP_THRESHOLD,
|
|
20
21
|
DISCOVERY_MAX_PROBES_CAP,
|
|
21
22
|
DISCOVERY_PROBE_CONCURRENCY_CAP,
|
|
@@ -109,6 +110,7 @@ import {
|
|
|
109
110
|
operationAccess,
|
|
110
111
|
operationalLogListReadSchema,
|
|
111
112
|
organicEvidencePeriodSchema,
|
|
113
|
+
parseCitationUrlCategories,
|
|
112
114
|
parseTrafficEventGroupBy,
|
|
113
115
|
parseTrafficEventKindFilter,
|
|
114
116
|
projectConfigSchema,
|
|
@@ -203,7 +205,7 @@ import {
|
|
|
203
205
|
trendSurfaceSchema,
|
|
204
206
|
visibilityCompareSelectionSchema,
|
|
205
207
|
visibilityReportRequestSchema
|
|
206
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-B4CKWKSX.js";
|
|
207
209
|
|
|
208
210
|
// src/mcp/tool-registry.ts
|
|
209
211
|
import { z as z2 } from "zod";
|
|
@@ -2115,6 +2117,31 @@ var rawCanonryMcpTools = [
|
|
|
2115
2117
|
openApiOperations: ["GET /api/v1/projects/{name}/citations/visibility"],
|
|
2116
2118
|
handler: (client, input) => client.getCitationVisibility(input.project)
|
|
2117
2119
|
}),
|
|
2120
|
+
defineTool({
|
|
2121
|
+
name: "canonry_citation_urls",
|
|
2122
|
+
title: "List cited pages",
|
|
2123
|
+
description: 'Every page the stored answers cite, one row per page across the sweeps in scope: answers citing it, how many mention the brand (answersMentionUnchecked were never checked, never "not mentioned"), engines, queries, first and last sweep, and newInLatest. Answers stored before page capture are left out and counted in answersPagesNotCaptured. Use category "forum,social,video" for discussion threads and posts, domain for one site, and newInLatest=true for pages the latest sweep cited for the first time. "First" is within the window, so pass window "all" for all history. Links are compared one way (https, no www, no utm parameters, a Reddit thread by its id). Page with nextCursor.',
|
|
2124
|
+
access: "read",
|
|
2125
|
+
tier: "monitoring",
|
|
2126
|
+
inputSchema: z2.object({
|
|
2127
|
+
project: projectNameSchema,
|
|
2128
|
+
window: z2.enum(["7d", "30d", "90d", "all"]).optional().describe("Sweeps in scope. Defaults to all."),
|
|
2129
|
+
domain: z2.string().min(1).optional().describe('Only pages on this host or its subdomains, e.g. "reddit.com".'),
|
|
2130
|
+
category: z2.string().refine((value) => parseCitationUrlCategories(value) !== null, { message: `category must be ${CITATION_URL_CATEGORY_HINT}` }).optional().describe('Comma-separated source categories, e.g. "forum,social,video" for threads and posts people can reply to.'),
|
|
2131
|
+
provider: z2.string().min(1).optional().describe('Only answers from this engine id, e.g. "gemini" or "openai".'),
|
|
2132
|
+
queryClass: z2.enum(["all", "branded", "non-brand"]).optional().describe("Branded or non-brand queries only, classified as the sources read does. Defaults to all, which pools both classes."),
|
|
2133
|
+
newInLatest: z2.boolean().optional().describe("Only pages the latest sweep cited and no earlier sweep in scope did."),
|
|
2134
|
+
sort: z2.enum(["answers", "newest"]).optional().describe("answers (default): most citing answers first. newest: most recent first citation first."),
|
|
2135
|
+
limit: z2.number().int().min(1).max(1e3).optional().describe("Pages per response, default 100."),
|
|
2136
|
+
cursor: z2.string().min(1).optional().describe("nextCursor from the previous response; repeat the same filters.")
|
|
2137
|
+
}),
|
|
2138
|
+
annotations: readAnnotations(),
|
|
2139
|
+
openApiOperations: ["GET /api/v1/projects/{name}/citations/urls"],
|
|
2140
|
+
handler: (client, input) => {
|
|
2141
|
+
const { project, ...query } = input;
|
|
2142
|
+
return client.getCitationUrls(project, query);
|
|
2143
|
+
}
|
|
2144
|
+
}),
|
|
2118
2145
|
defineTool({
|
|
2119
2146
|
name: "canonry_visibility_stats",
|
|
2120
2147
|
title: "Get aggregated mention/citation stats",
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
} from "./chunk-VJWDBFSL.js";
|
|
5
5
|
import {
|
|
6
6
|
createApiClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WBGBCRVH.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError,
|
|
10
10
|
isMachineFormat
|
|
11
11
|
} from "./chunk-HGMYEDAQ.js";
|
|
12
12
|
import {
|
|
13
13
|
describeError
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-B4CKWKSX.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/mcp.ts
|
|
17
17
|
import fs from "fs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
pickProjectCitedDomain
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QDBKBXC7.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AP7ZGBXF.js";
|
|
7
7
|
import {
|
|
8
8
|
GBP_INSIGHT_PROVIDER,
|
|
9
9
|
PERSISTENT_GAP_THRESHOLD,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
mergeGscQueryTotalsWithFallback,
|
|
18
18
|
readGscQueryDailyRows,
|
|
19
19
|
readLatestGscDataDate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WW7XJXSQ.js";
|
|
21
21
|
import {
|
|
22
22
|
competitors,
|
|
23
23
|
gbpDailyMetrics,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
queries,
|
|
36
36
|
querySnapshots,
|
|
37
37
|
runs
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-UK2WX3PM.js";
|
|
39
39
|
import {
|
|
40
40
|
CitationStates,
|
|
41
41
|
RunKinds,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
effectiveDomains,
|
|
45
45
|
isCitationStateMeasured,
|
|
46
46
|
readCitationState
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-B4CKWKSX.js";
|
|
48
48
|
|
|
49
49
|
// src/intelligence-service.ts
|
|
50
50
|
import { eq, desc, asc, and, ne, or, inArray, gte, lte, isNull, sql, exists } from "drizzle-orm";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigRaw,
|
|
7
7
|
saveConfigPatch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RFJM6G7L.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_NPM_PACKAGE_URL,
|
|
11
11
|
compareSemver,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
updateCheckEnvOptOut,
|
|
19
19
|
upgradeCaveatFor,
|
|
20
20
|
upgradeCommandFor
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-B4CKWKSX.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-context.ts
|
|
24
24
|
function cliRuntimeContext(env = process.env, stdio = process) {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
AppError,
|
|
6
6
|
parseWindowIn,
|
|
7
7
|
resolveDateRange
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-B4CKWKSX.js";
|
|
9
9
|
|
|
10
10
|
// src/cli-access.ts
|
|
11
11
|
var CLI_ACCESS_BY_ID = Object.freeze({
|
|
@@ -132,6 +132,7 @@ var CLI_ACCESS_BY_ID = Object.freeze({
|
|
|
132
132
|
"cdp.status": "live",
|
|
133
133
|
"cdp.targets": "live",
|
|
134
134
|
"citations.visibility": "stored",
|
|
135
|
+
"citations.urls": "stored",
|
|
135
136
|
"competitor": "write",
|
|
136
137
|
"competitor.add": "write",
|
|
137
138
|
"competitor.aliases": "stored",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AP7ZGBXF.js";
|
|
4
4
|
import {
|
|
5
5
|
addLikelyFakeAgentHits,
|
|
6
6
|
correctBackgroundCallJourneys,
|
|
7
7
|
mergeSplitJourneyVisitors,
|
|
8
8
|
repairAiReferralArrivalsOnStartup,
|
|
9
9
|
writeUnrecognizedAgentBuckets
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WW7XJXSQ.js";
|
|
11
11
|
import {
|
|
12
12
|
AGENT_TRUST_RULES_VERSION,
|
|
13
13
|
BROWSER_AGENT_BOT_IDS,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
normalizeTrafficPathPattern,
|
|
32
32
|
rulesShareVerificationList,
|
|
33
33
|
unrecognizedAgentName
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-K3H67IQZ.js";
|
|
35
35
|
import {
|
|
36
36
|
RawEventSampleEventTypes,
|
|
37
37
|
agentJourneyCaptureDays,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
trafficReclassificationState,
|
|
49
49
|
trafficSources,
|
|
50
50
|
unrecognizedAgentEventsHourly
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-UK2WX3PM.js";
|
|
52
52
|
import {
|
|
53
53
|
AI_ENGINE_DOMAINS,
|
|
54
54
|
AI_ENGINE_SELF_DOMAINS,
|
|
@@ -84,7 +84,7 @@ import {
|
|
|
84
84
|
sortedUnique,
|
|
85
85
|
usageCount,
|
|
86
86
|
withRetry
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-B4CKWKSX.js";
|
|
88
88
|
|
|
89
89
|
// ../provider-openai/src/normalize.ts
|
|
90
90
|
import OpenAI from "openai";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBGBCRVH.js";
|
|
4
4
|
import {
|
|
5
5
|
emitJsonl
|
|
6
6
|
} from "./chunk-Z7IUAJOF.js";
|
|
7
7
|
import {
|
|
8
8
|
measurementDraftOperationSchema,
|
|
9
9
|
runMeasurementDraftAction
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ODFPL6P5.js";
|
|
11
11
|
import {
|
|
12
12
|
isMachineFormat,
|
|
13
13
|
systemError
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
unattributedAnswersLabel,
|
|
40
40
|
uncheckedSourcesLabel,
|
|
41
41
|
visibilityReportRequestSchema
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-B4CKWKSX.js";
|
|
43
43
|
|
|
44
44
|
// src/commands/measurement-plan.ts
|
|
45
45
|
import crypto from "crypto";
|
|
@@ -62,8 +62,8 @@ var CANONRY_MCP_TOOLKITS = [
|
|
|
62
62
|
{
|
|
63
63
|
name: "monitoring",
|
|
64
64
|
title: "Measurement, runs, insights, health",
|
|
65
|
-
description: "Inspect portfolio and Property measurement, question results, branded and non-brand sentiment and evidence, content opportunities and addressed-target records, run history, intelligence insights, health timelines, and bounded Agent Readiness reads (score, overview, issues, page audit evidence, focused subgraphs, paths, and scan changes).",
|
|
66
|
-
whenToLoad: "Load when finding weak Properties, reviewing answers, sentiment and competitors, marking or restoring addressed content targets, checking data quality, tying an Agent Readiness page score to concrete findings, investigating site architecture, comparing scans, or diagnosing regressions."
|
|
65
|
+
description: "Inspect portfolio and Property measurement, question results, branded and non-brand sentiment and evidence, cited pages and threads (new ones per sweep), content opportunities and addressed-target records, run history, intelligence insights, health timelines, and bounded Agent Readiness reads (score, overview, issues, page audit evidence, focused subgraphs, paths, and scan changes).",
|
|
66
|
+
whenToLoad: "Load when finding weak Properties, reviewing answers, sentiment and competitors, listing the threads and pages engines cite, marking or restoring addressed content targets, checking data quality, tying an Agent Readiness page score to concrete findings, investigating site architecture, comparing scans, or diagnosing regressions."
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
name: "setup",
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
measurementDraftUpsertGroupRequestSchema,
|
|
24
24
|
measurementDraftUpsertMarketRequestSchema,
|
|
25
25
|
measurementDraftUpsertTargetRequestSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-B4CKWKSX.js";
|
|
27
27
|
|
|
28
28
|
// src/measurement-draft-actions.ts
|
|
29
29
|
import { z } from "zod";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
resolveCliAccess,
|
|
4
4
|
resolveCliAccessForInvocation,
|
|
5
5
|
windowOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KOMFBAUK.js";
|
|
7
7
|
import {
|
|
8
8
|
emitJsonl
|
|
9
9
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./chunk-HGMYEDAQ.js";
|
|
15
15
|
import {
|
|
16
16
|
OperationAccesses
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-B4CKWKSX.js";
|
|
18
18
|
|
|
19
19
|
// src/cli-catalog.ts
|
|
20
20
|
import { createRequire } from "module";
|
|
@@ -122,7 +122,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
|
|
|
122
122
|
const accessValue = accessFilterFromArgs(argsWithoutHelp);
|
|
123
123
|
validateAccessFilter(accessValue);
|
|
124
124
|
if (fallbackFormat !== "text") {
|
|
125
|
-
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-
|
|
125
|
+
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-SPUYWLST.js");
|
|
126
126
|
const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
|
|
127
127
|
printCliCatalog2(specs, fallbackFormat, group2, accessValue);
|
|
128
128
|
return true;
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
configExists,
|
|
3
3
|
loadConfigRaw,
|
|
4
4
|
saveConfigPatch
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RFJM6G7L.js";
|
|
6
6
|
import {
|
|
7
7
|
BUNDLED_SKILL_NAMES,
|
|
8
8
|
installSkills
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-BRAUKTBG.js";
|
|
10
10
|
import {
|
|
11
11
|
PACKAGE_VERSION
|
|
12
12
|
} from "./chunk-AOJU5LKX.js";
|
|
13
13
|
import {
|
|
14
14
|
SKILL_MANIFEST_FILENAME,
|
|
15
15
|
SkillsClients
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-B4CKWKSX.js";
|
|
17
17
|
|
|
18
18
|
// src/skills-autosync.ts
|
|
19
19
|
import fs from "fs";
|
|
@@ -8,24 +8,24 @@ import {
|
|
|
8
8
|
reparseStoredResult4,
|
|
9
9
|
reparseStoredResult5,
|
|
10
10
|
resolveStoredApiResponse
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-M5C7R7OF.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RFJM6G7L.js";
|
|
15
15
|
import {
|
|
16
16
|
CliError,
|
|
17
17
|
isMachineFormat
|
|
18
18
|
} from "./chunk-HGMYEDAQ.js";
|
|
19
19
|
import {
|
|
20
20
|
determineCitationState
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QDBKBXC7.js";
|
|
22
22
|
import {
|
|
23
23
|
backfillProjectAnswerMentions,
|
|
24
24
|
competitorIdentityColumns,
|
|
25
25
|
createRunCompetitorResolver,
|
|
26
26
|
readMarketCompetitorNames,
|
|
27
27
|
refreshSnapshotMentionIdentity
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-WW7XJXSQ.js";
|
|
29
29
|
import {
|
|
30
30
|
RawEventSampleEventTypes,
|
|
31
31
|
auditLog,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
querySnapshots,
|
|
40
40
|
rawEventSamples,
|
|
41
41
|
runs
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-UK2WX3PM.js";
|
|
43
43
|
import {
|
|
44
44
|
ProviderNames,
|
|
45
45
|
RetrievalContracts,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
extractRecommendedCompetitors,
|
|
53
53
|
normalizeUrlPath,
|
|
54
54
|
openRouterRouteModel
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-B4CKWKSX.js";
|
|
56
56
|
|
|
57
57
|
// src/commands/backfill.ts
|
|
58
58
|
import { setImmediate as yieldToEventLoop } from "timers/promises";
|
|
@@ -430,7 +430,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
async function backfillInsightsCommand(project, opts) {
|
|
433
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
433
|
+
const { IntelligenceService } = await import("./intelligence-service-ODVPS6D6.js");
|
|
434
434
|
const config = loadConfig();
|
|
435
435
|
const db = createClient(config.database);
|
|
436
436
|
migrate(db);
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
isStoredPageReadTool,
|
|
6
6
|
isStoredReadTool,
|
|
7
7
|
truncateToolResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-WMMIMZHL.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_MCP_TOOLKITS,
|
|
11
11
|
resolveAeroSkillDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NNHI6SOT.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-RFJM6G7L.js";
|
|
27
27
|
import {
|
|
28
28
|
CanonryMcpToolNames,
|
|
29
29
|
canonryMcpTools
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-FXMIX2BP.js";
|
|
31
31
|
import {
|
|
32
32
|
createLogger
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-AP7ZGBXF.js";
|
|
34
34
|
import {
|
|
35
35
|
agentToolEvents,
|
|
36
36
|
llmUsageEvents
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-UK2WX3PM.js";
|
|
38
38
|
import {
|
|
39
39
|
MeasurementPortfolioLists,
|
|
40
40
|
SEO_TREND_METRICS_BY_KIND,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
describeError,
|
|
46
46
|
validationError,
|
|
47
47
|
visibilityReportRequestSchema
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-B4CKWKSX.js";
|
|
49
49
|
|
|
50
50
|
// src/agent/session.ts
|
|
51
51
|
import fs2 from "fs";
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
bucketCliCommandDuration,
|
|
3
3
|
isTelemetryEnabled,
|
|
4
4
|
trackEvent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HK72OBW5.js";
|
|
6
6
|
import {
|
|
7
7
|
getConfigDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RFJM6G7L.js";
|
|
9
9
|
import {
|
|
10
10
|
currentOutcomeAttribution
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4UZR7UUC.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT_NONE,
|
|
14
14
|
OutcomeSurfaces,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
integrationConnectionPropertiesSchema,
|
|
20
20
|
normalizeAgentSlug,
|
|
21
21
|
usageSurfaceSchema
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-B4CKWKSX.js";
|
|
23
23
|
|
|
24
24
|
// src/outcome-telemetry.ts
|
|
25
25
|
import fs from "fs";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
siteCrawlGraphNodes,
|
|
6
6
|
siteCrawlPages,
|
|
7
7
|
siteCrawlSnapshots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-UK2WX3PM.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-B4CKWKSX.js";
|
|
19
19
|
|
|
20
20
|
// src/site-audit-factors.ts
|
|
21
21
|
function recordedSharePct(factor) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RFJM6G7L.js";
|
|
4
4
|
import {
|
|
5
5
|
PACKAGE_VERSION
|
|
6
6
|
} from "./chunk-AOJU5LKX.js";
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
sentimentSettingsReadSchema,
|
|
37
37
|
sentimentSummaryReadSchema,
|
|
38
38
|
upgradeCommandFor
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-B4CKWKSX.js";
|
|
40
40
|
|
|
41
41
|
// ../api-client-generated/src/generated/core/bodySerializer.gen.ts
|
|
42
42
|
var jsonBodySerializer = {
|
|
@@ -3133,6 +3133,11 @@ var getApiV1ProjectsByNameCitationsVisibility = (options) => (options.client ??
|
|
|
3133
3133
|
url: "/api/v1/projects/{name}/citations/visibility",
|
|
3134
3134
|
...options
|
|
3135
3135
|
});
|
|
3136
|
+
var getApiV1ProjectsByNameCitationsUrls = (options) => (options.client ?? client).get({
|
|
3137
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
3138
|
+
url: "/api/v1/projects/{name}/citations/urls",
|
|
3139
|
+
...options
|
|
3140
|
+
});
|
|
3136
3141
|
var getApiV1ProjectsByNameContentTargets = (options) => (options.client ?? client).get({
|
|
3137
3142
|
security: [{ scheme: "bearer", type: "http" }],
|
|
3138
3143
|
url: "/api/v1/projects/{name}/content/targets",
|
|
@@ -7182,6 +7187,25 @@ var ApiClient = class {
|
|
|
7182
7187
|
() => getApiV1ProjectsByNameCitationsVisibility({ client: this.heyClient, path: { name: project } })
|
|
7183
7188
|
);
|
|
7184
7189
|
}
|
|
7190
|
+
async getCitationUrls(project, query = {}) {
|
|
7191
|
+
return this.invoke(
|
|
7192
|
+
() => getApiV1ProjectsByNameCitationsUrls({
|
|
7193
|
+
client: this.heyClient,
|
|
7194
|
+
path: { name: project },
|
|
7195
|
+
query: {
|
|
7196
|
+
window: query.window,
|
|
7197
|
+
domain: query.domain,
|
|
7198
|
+
category: query.category,
|
|
7199
|
+
provider: query.provider,
|
|
7200
|
+
queryClass: query.queryClass,
|
|
7201
|
+
newInLatest: query.newInLatest === void 0 ? void 0 : String(query.newInLatest),
|
|
7202
|
+
sort: query.sort,
|
|
7203
|
+
limit: query.limit === void 0 ? void 0 : String(query.limit),
|
|
7204
|
+
cursor: query.cursor
|
|
7205
|
+
}
|
|
7206
|
+
})
|
|
7207
|
+
);
|
|
7208
|
+
}
|
|
7185
7209
|
async getVisibilityStats(project, opts = {}) {
|
|
7186
7210
|
return this.invoke(
|
|
7187
7211
|
() => getApiV1ProjectsByNameVisibilityStats({
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWithUsageTags
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WBGBCRVH.js";
|
|
4
4
|
import {
|
|
5
5
|
CanonryMcpToolNames,
|
|
6
6
|
DEPRECATED_MCP_TOOL_ALIAS_NAMES,
|
|
7
7
|
canonryMcpTools
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FXMIX2BP.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-WW7XJXSQ.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-B4CKWKSX.js";
|
|
28
28
|
|
|
29
29
|
// src/agent/tools.ts
|
|
30
30
|
import { Type as Type2 } from "@earendil-works/pi-ai";
|