@canonry/canonry 7.51.6 → 7.52.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/canonry-cli.md +8 -0
- package/assets/assets/{AccessControls-B5TqDgeq.js → AccessControls-CteIuEGI.js} +1 -1
- package/assets/assets/{AuditHistoryPanel-DgxiizOW.js → AuditHistoryPanel-DqJGiLsf.js} +1 -1
- package/assets/assets/{BacklinksPage-Ay6pdphx.js → BacklinksPage-DotWEPQt.js} +1 -1
- package/assets/assets/{HistoryPage-B11eFH21.js → HistoryPage-aOd198dT.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-CuaKVK8x.js +4 -0
- package/assets/assets/{ProjectPage-DoY0hftd.js → ProjectPage-O9oufMgi.js} +4 -4
- package/assets/assets/{RunsPage-BPBmuQAS.js → RunsPage-DIXMrc-N.js} +1 -1
- package/assets/assets/{SettingsPage-ClKnP8xy.js → SettingsPage-BuGb6AGa.js} +1 -1
- package/assets/assets/SiteHealthSection-CweaKjCo.js +2 -0
- package/assets/assets/TrafficPage-B7MaQalp.js +40 -0
- package/assets/assets/{TrafficSourceDetailPage-DQu0YNt2.js → TrafficSourceDetailPage-BPtjnF9s.js} +1 -1
- package/assets/assets/{card-DYMyvhB9.js → card-DoV-8Txo.js} +1 -1
- package/assets/assets/{extract-error-message-BRM1I_3L.js → extract-error-message-DKQJJlZ-.js} +1 -1
- package/assets/assets/{format-helpers-DrkFERj3.js → format-helpers-BWnMmkiO.js} +1 -1
- package/assets/assets/index-Z63c4PeO.js +39 -0
- package/assets/assets/{query-client-gRFnU4VF.js → query-client-vB35tVTz.js} +1 -1
- package/assets/assets/{react-query-lH82FULK.js → react-query-BI0567qs.js} +1 -1
- package/assets/assets/{react-sigma_core.esm.min-D09H4byP.js → react-sigma_core.esm.min-hGyOC4V_.js} +1 -1
- package/assets/assets/{service-Cx0HSnE9.js → service-c4YvpVKX.js} +1 -1
- package/assets/index.html +6 -6
- package/dist/{ads-ABAT3K4K.js → ads-MREK2AGL.js} +3 -3
- package/dist/{agent-5G4DRLYX.js → agent-4RUZ3MC4.js} +7 -7
- package/dist/{agent-ask-UDVCZRO7.js → agent-ask-YLTYBEYH.js} +3 -3
- package/dist/{agent-conversations-5E4JP2QZ.js → agent-conversations-QA6IKDGR.js} +3 -3
- package/dist/{agent-memory-7IIJ4HGZ.js → agent-memory-MEQAJOB3.js} +3 -3
- package/dist/{agent-providers-BOXPUXZ4.js → agent-providers-AXYPDJHL.js} +3 -3
- package/dist/{agent-transcript-4O56G6PQ.js → agent-transcript-SMNQNYCD.js} +3 -3
- package/dist/{analytics-PKMWX5XL.js → analytics-4OR64IGV.js} +3 -3
- package/dist/{apply-OK4XEBDA.js → apply-CQXCFXAH.js} +3 -3
- package/dist/{backfill-2OT56CX2.js → backfill-TMXCNVOB.js} +9 -9
- package/dist/{backlinks-547WCHND.js → backlinks-6KFAQGYV.js} +3 -3
- package/dist/{bing-ZVBV4ZD5.js → bing-HFCACTAC.js} +3 -3
- package/dist/{bootstrap-HUB7XQ73.js → bootstrap-SQVQXOJC.js} +9 -9
- package/dist/{cdp-KQKQ4PWJ.js → cdp-IACL7EXU.js} +7 -7
- package/dist/{chunk-U3AHE2RT.js → chunk-5N6245R7.js} +4 -4
- package/dist/{chunk-KFT5LOP2.js → chunk-6BPZHNDC.js} +10 -3
- package/dist/{chunk-RKIXES2B.js → chunk-7244X3K6.js} +2 -2
- package/dist/{chunk-WDFI5YMD.js → chunk-7XE2IRBG.js} +1 -1
- package/dist/{chunk-WAULJDKO.js → chunk-AWCWIQAU.js} +2 -2
- package/dist/{chunk-7WZ2FPB4.js → chunk-BBOHY2DQ.js} +1 -1
- package/dist/{chunk-VBCE4CLX.js → chunk-BU3VAG5J.js} +3 -3
- package/dist/{chunk-73P65KPW.js → chunk-BYOK6Z4F.js} +2 -2
- package/dist/{chunk-I77PLCWG.js → chunk-DSNSD5J3.js} +21 -11
- package/dist/{chunk-HM4NNKLG.js → chunk-EGIZNSDA.js} +1 -1
- package/dist/{chunk-MMEO22MF.js → chunk-FC4XND45.js} +1 -1
- package/dist/{chunk-I3A56PFP.js → chunk-GNKOBKPW.js} +4 -4
- package/dist/{chunk-2G6IP3MO.js → chunk-HEGXGCGL.js} +11 -4
- package/dist/{chunk-ISOQPVPY.js → chunk-I6KNMZ77.js} +4 -4
- package/dist/{chunk-TUTKNUMV.js → chunk-IIOEAJTV.js} +3 -3
- package/dist/{chunk-42D2LE2B.js → chunk-ILDT4LPB.js} +5 -5
- package/dist/{chunk-QWKPSFGL.js → chunk-JY3RLZGB.js} +1 -1
- package/dist/{chunk-6G6FTDWC.js → chunk-K5I45PZI.js} +25 -21
- package/dist/{chunk-GO2J7SYT.js → chunk-KXAOMTXN.js} +5 -5
- package/dist/{chunk-HACZUMGM.js → chunk-LK2BG6EX.js} +1 -1
- package/dist/{chunk-ZXUAWVWM.js → chunk-MJNUSPO4.js} +2 -2
- package/dist/{chunk-63ISSSGX.js → chunk-MKAC7HKH.js} +30 -2
- package/dist/{chunk-D6COIM3U.js → chunk-O4RMPA6H.js} +5879 -5836
- package/dist/{chunk-VYMZ3QXG.js → chunk-O77IBNVO.js} +324 -324
- package/dist/{chunk-UQ3MOZGC.js → chunk-OFL4PTYU.js} +1 -1
- package/dist/{chunk-7B2Q4NJE.js → chunk-QLPLENDT.js} +1 -1
- package/dist/{chunk-NHQ2U5I4.js → chunk-R2J4SNKF.js} +1 -1
- package/dist/{chunk-ZWJRY5UI.js → chunk-RVUCY4ZV.js} +3 -3
- package/dist/{chunk-PCXRFT3N.js → chunk-SNFBJKAW.js} +3 -3
- package/dist/{chunk-B2FR2ZQ4.js → chunk-TALC5DX5.js} +1 -1
- package/dist/{chunk-B5J675KK.js → chunk-V5D4XNWV.js} +2 -2
- package/dist/{chunk-PITHTCAX.js → chunk-Y4GK7GCV.js} +1 -1
- package/dist/{chunk-DGVUTH7W.js → chunk-YSEC6TIB.js} +2221 -2067
- package/dist/{citations-UYB2RU5U.js → citations-NSBBWRZ4.js} +3 -3
- package/dist/{cli-catalog-F6FI7NB2.js → cli-catalog-OFWJMNMD.js} +3 -3
- package/dist/{cli-commands-ZG5ILKDA.js → cli-commands-WVBL337U.js} +7 -7
- package/dist/cli.js +13 -13
- package/dist/{competitor-EKP4R7YY.js → competitor-V4OHORBC.js} +3 -3
- package/dist/{content-DREE6JF3.js → content-RUXRI5IC.js} +3 -3
- package/dist/{dashboard-ZALEOLLU.js → dashboard-JXB2YAQJ.js} +6 -6
- package/dist/{demo-JG4Y22O4.js → demo-55ZNUOXU.js} +1 -1
- package/dist/{demo-server-3A4J2C65.js → demo-server-XO7PHM4I.js} +11 -11
- package/dist/{discover-W6GMD2HS.js → discover-JJQ564HS.js} +3 -3
- package/dist/{discover-eval-CKFZHRBW.js → discover-eval-KLEKZ6U4.js} +3 -3
- package/dist/{doctor-TNGBSUMA.js → doctor-JAMQZCMZ.js} +3 -3
- package/dist/{evidence-3H2GFQBZ.js → evidence-YRSB7GFE.js} +3 -3
- package/dist/{export-cmd-WUIKU5GK.js → export-cmd-MHML4OYU.js} +3 -3
- package/dist/{ga-JI6REFO4.js → ga-LSXPE2MN.js} +3 -3
- package/dist/{gbp-4ENDM5NS.js → gbp-RMKMLOC7.js} +3 -3
- package/dist/{google-HKQSCLOC.js → google-JQ4T6JTQ.js} +4 -4
- package/dist/{google-marketing-KQR5J2S4.js → google-marketing-J6SEODYC.js} +1 -1
- package/dist/{health-cmd-TS7EMMCS.js → health-cmd-MV2JM2C3.js} +3 -3
- package/dist/{history-MSD5DK6K.js → history-SRRH7A2E.js} +3 -3
- package/dist/index.d.ts +86 -47
- package/dist/index.js +23 -23
- package/dist/{init-L6WAEOWX.js → init-ZJZFUERV.js} +11 -11
- package/dist/{insights-RTZ3IZTD.js → insights-PMMGNWZH.js} +3 -3
- package/dist/intelligence-service-KCSU6ZUJ.js +15 -0
- package/dist/{keys-625DZBRM.js → keys-TS7NZANS.js} +3 -3
- package/dist/{keyword-CW46RNRR.js → keyword-VNCKDUGC.js} +3 -3
- package/dist/{logs-V33SHBIW.js → logs-VH3WOTZJ.js} +3 -3
- package/dist/{mcp-DFEDPSEG.js → mcp-DG2RROB3.js} +2 -2
- package/dist/mcp.js +9 -9
- package/dist/{measurement-plan-6W37RUOP.js → measurement-plan-4T35TUGG.js} +5 -5
- package/dist/{notify-DSUOT7WO.js → notify-BWHUSKL7.js} +3 -3
- package/dist/{organic-evidence-BMN6L4OB.js → organic-evidence-QX4SXXJP.js} +3 -3
- package/dist/{overview-WRRMBZ6S.js → overview-7IHUTKUV.js} +4 -4
- package/dist/{project-2GJIU3FE.js → project-JXLSWDE2.js} +3 -3
- package/dist/{query-3XPMGJUA.js → query-S75EL25H.js} +3 -3
- package/dist/{research-V433CKJ4.js → research-KFTV3IP4.js} +3 -3
- package/dist/{results-export-RGBU7QQQ.js → results-export-GTKVBU34.js} +3 -3
- package/dist/{run-NIAC6OJN.js → run-26HDIRHF.js} +4 -4
- package/dist/{schedule-KDWXRIE7.js → schedule-N6G4SVHQ.js} +3 -3
- package/dist/{search-626MPUJN.js → search-MI32EPYM.js} +3 -3
- package/dist/{serve-73SMMASI.js → serve-XLGE42AG.js} +67 -26
- package/dist/{session-7WWOETZB.js → session-W5DXWIYM.js} +12 -12
- package/dist/{settings-VKFQO6F2.js → settings-T7WI2UVE.js} +3 -3
- package/dist/{skills-5HC5H7TE.js → skills-F3WPKPTK.js} +2 -2
- package/dist/{snapshot-BSJUHFBC.js → snapshot-PD3EAVEX.js} +3 -3
- package/dist/{src-F6HM73TN.js → src-XDUXMJC3.js} +2 -2
- package/dist/{status-V4OWP7LZ.js → status-PUH7JFZ4.js} +4 -4
- package/dist/{technical-aeo-TG7CGU3F.js → technical-aeo-AUFWWJIP.js} +3 -3
- package/dist/{telemetry-O2IUNUBW.js → telemetry-XBYT7G2K.js} +4 -4
- package/dist/{tools-2GJIDKND.js → tools-GVHIRWSN.js} +11 -11
- package/dist/{traffic-XV4I3UPH.js → traffic-B3HW2ZWG.js} +5 -5
- package/dist/{users-VGBLDL5K.js → users-M5HNQZYI.js} +3 -3
- package/dist/{visibility-stats-UKJYJ6PP.js → visibility-stats-Y7GJKMHN.js} +3 -3
- package/dist/{wordpress-JZA7CGC6.js → wordpress-GCIURYPN.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/MeasurementPropertyPage-1UYI7mzP.js +0 -4
- package/assets/assets/SiteHealthSection-PWjKMmEn.js +0 -2
- package/assets/assets/TrafficPage-DkfGiJXR.js +0 -40
- package/assets/assets/index-CG1Jox52.js +0 -39
- package/dist/intelligence-service-TH52PCNJ.js +0 -15
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
trackCliConnection
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MJNUSPO4.js";
|
|
4
4
|
import {
|
|
5
5
|
outcomeFailure
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-I6KNMZ77.js";
|
|
7
|
+
import "./chunk-7244X3K6.js";
|
|
8
8
|
import {
|
|
9
9
|
createApiClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V5D4XNWV.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig,
|
|
13
13
|
saveConfigPatch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OFL4PTYU.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-QLPLENDT.js";
|
|
21
21
|
import {
|
|
22
22
|
describeError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-O4RMPA6H.js";
|
|
24
24
|
import "./chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/cdp.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runWithUsageTags
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5D4XNWV.js";
|
|
4
4
|
import {
|
|
5
5
|
CanonryMcpToolNames,
|
|
6
6
|
canonryMcpTools
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-RVUCY4ZV.js";
|
|
8
8
|
import {
|
|
9
9
|
CliError
|
|
10
10
|
} from "./chunk-HGMYEDAQ.js";
|
|
11
11
|
import {
|
|
12
12
|
buildOpenApiDocument
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YSEC6TIB.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_COMPETITOR_AUTO_ALIAS_MODE,
|
|
16
16
|
MeasurementPortfolioLists,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
formatPercent,
|
|
21
21
|
ratioUnitSchema,
|
|
22
22
|
truncateUtf16
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-O4RMPA6H.js";
|
|
24
24
|
|
|
25
25
|
// src/agent/tools.ts
|
|
26
26
|
import { Type as Type2 } from "@earendil-works/pi-ai";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5D4XNWV.js";
|
|
4
4
|
import {
|
|
5
5
|
emitJsonl
|
|
6
6
|
} from "./chunk-Z7IUAJOF.js";
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-HGMYEDAQ.js";
|
|
12
12
|
import {
|
|
13
13
|
CitationStates,
|
|
14
|
+
MentionIdentities,
|
|
14
15
|
OUTSTANDING_PROVIDER_BATCH_STATUSES,
|
|
15
16
|
ProviderBatchStatuses,
|
|
16
17
|
RunStatuses,
|
|
@@ -18,7 +19,7 @@ import {
|
|
|
18
19
|
formatMicros,
|
|
19
20
|
formatRunErrorOneLine,
|
|
20
21
|
resolveProviderInput
|
|
21
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-O4RMPA6H.js";
|
|
22
23
|
|
|
23
24
|
// src/commands/run.ts
|
|
24
25
|
function getClient() {
|
|
@@ -462,11 +463,17 @@ function printRunDetail(run) {
|
|
|
462
463
|
if (run.snapshots && run.snapshots.length > 0) {
|
|
463
464
|
console.log(`
|
|
464
465
|
Snapshots: ${run.snapshots.length} (cell = [citation][mention]; C=cited c=not, M=mentioned m=not, \u2013=no data)`);
|
|
466
|
+
let differentSubject = 0;
|
|
465
467
|
for (const s of run.snapshots) {
|
|
466
468
|
const citationGlyph = s.citationState === CitationStates.cited ? "C" : "c";
|
|
467
469
|
const mentionGlyph = typeof s.answerMentioned === "boolean" ? s.answerMentioned ? "M" : "m" : "\u2013";
|
|
468
470
|
const modelLabel = s.model ? ` (${s.model})` : "";
|
|
469
|
-
|
|
471
|
+
const ruledOut = s.mentionIdentity === MentionIdentities["wrong-subject"];
|
|
472
|
+
if (ruledOut) differentSubject++;
|
|
473
|
+
console.log(` [${citationGlyph}${mentionGlyph}] ${s.provider}${modelLabel} ${s.query}${ruledOut ? " \xB7 different subject" : ""}`);
|
|
474
|
+
}
|
|
475
|
+
if (differentSubject > 0) {
|
|
476
|
+
console.log(" \xB7 different subject: the answer uses your name, but sentiment found it is about something else, so it is not counted as mentioned.");
|
|
470
477
|
}
|
|
471
478
|
}
|
|
472
479
|
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
loadConfig,
|
|
6
6
|
loadConfigRaw,
|
|
7
7
|
saveConfigPatch
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OFL4PTYU.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-O4RMPA6H.js";
|
|
22
22
|
|
|
23
23
|
// src/runtime-context.ts
|
|
24
24
|
function cliRuntimeContext(env = process.env, stdio = process) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseJsonColumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MKAC7HKH.js";
|
|
4
4
|
import {
|
|
5
5
|
AI_ENGINE_DOMAINS,
|
|
6
6
|
AI_ENGINE_SELF_DOMAINS,
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
retryAfterDelayMs,
|
|
22
22
|
usageCount,
|
|
23
23
|
withRetry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-O4RMPA6H.js";
|
|
25
25
|
|
|
26
26
|
// ../provider-openai/src/normalize.ts
|
|
27
27
|
import OpenAI from "openai";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
resolveCliAccess,
|
|
4
4
|
resolveCliAccessForInvocation,
|
|
5
5
|
windowOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BBOHY2DQ.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-O4RMPA6H.js";
|
|
18
18
|
|
|
19
19
|
// src/cli-catalog.ts
|
|
20
20
|
import { createRequire } from "module";
|
|
@@ -111,7 +111,7 @@ async function dispatchRegisteredCommand(args, fallbackFormat, specs) {
|
|
|
111
111
|
const accessValue = accessFilterFromArgs(argsWithoutHelp);
|
|
112
112
|
validateAccessFilter(accessValue);
|
|
113
113
|
if (fallbackFormat !== "text") {
|
|
114
|
-
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-
|
|
114
|
+
const { printCliCatalog: printCliCatalog2 } = await import("./cli-catalog-OFWJMNMD.js");
|
|
115
115
|
const group2 = argsWithoutHelp.find((arg) => !arg.startsWith("--"));
|
|
116
116
|
printCliCatalog2(specs, fallbackFormat, group2, accessValue);
|
|
117
117
|
return true;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
siteCrawlGraphNodes,
|
|
6
6
|
siteCrawlPages,
|
|
7
7
|
siteCrawlSnapshots
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MKAC7HKH.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-O4RMPA6H.js";
|
|
19
19
|
|
|
20
20
|
// src/site-audit-factors.ts
|
|
21
21
|
function recordedSharePct(factor) {
|
|
@@ -6,26 +6,27 @@ import {
|
|
|
6
6
|
reparseStoredResult4,
|
|
7
7
|
reparseStoredResult5,
|
|
8
8
|
resolveStoredApiResponse
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AWCWIQAU.js";
|
|
10
10
|
import {
|
|
11
11
|
loadConfig
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OFL4PTYU.js";
|
|
13
13
|
import {
|
|
14
14
|
isMachineFormat
|
|
15
15
|
} from "./chunk-HGMYEDAQ.js";
|
|
16
16
|
import {
|
|
17
17
|
determineCitationState
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FC4XND45.js";
|
|
19
19
|
import {
|
|
20
20
|
backfillProjectAnswerMentions,
|
|
21
21
|
competitorIdentityColumns,
|
|
22
22
|
createRunCompetitorResolver,
|
|
23
|
-
readMarketCompetitorNames
|
|
24
|
-
|
|
23
|
+
readMarketCompetitorNames,
|
|
24
|
+
refreshSnapshotMentionIdentity
|
|
25
|
+
} from "./chunk-YSEC6TIB.js";
|
|
25
26
|
import {
|
|
26
27
|
classifyAiUserFetch,
|
|
27
28
|
classifyCrawler
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Y4GK7GCV.js";
|
|
29
30
|
import {
|
|
30
31
|
aiUserFetchEventsHourly,
|
|
31
32
|
auditLog,
|
|
@@ -40,7 +41,7 @@ import {
|
|
|
40
41
|
querySnapshots,
|
|
41
42
|
rawEventSamples,
|
|
42
43
|
runs
|
|
43
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-MKAC7HKH.js";
|
|
44
45
|
import {
|
|
45
46
|
ProviderNames,
|
|
46
47
|
RetrievalContracts,
|
|
@@ -50,12 +51,13 @@ import {
|
|
|
50
51
|
TrafficEvidenceKinds,
|
|
51
52
|
TrafficSourceTypes,
|
|
52
53
|
computeCompetitorOverlap,
|
|
54
|
+
countsAsMention,
|
|
53
55
|
determineAnswerMentioned,
|
|
54
56
|
effectiveBrandNames,
|
|
55
57
|
effectiveDomains,
|
|
56
58
|
extractRecommendedCompetitors,
|
|
57
59
|
normalizeUrlPath
|
|
58
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-O4RMPA6H.js";
|
|
59
61
|
|
|
60
62
|
// src/commands/backfill.ts
|
|
61
63
|
import { setImmediate as yieldToEventLoop } from "timers/promises";
|
|
@@ -109,6 +111,7 @@ async function backfillAnswerVisibilityCommand(opts) {
|
|
|
109
111
|
provider: querySnapshots.provider,
|
|
110
112
|
citationState: querySnapshots.citationState,
|
|
111
113
|
answerMentioned: querySnapshots.answerMentioned,
|
|
114
|
+
mentionIdentity: querySnapshots.mentionIdentity,
|
|
112
115
|
answerText: querySnapshots.answerText,
|
|
113
116
|
citedDomains: querySnapshots.citedDomains,
|
|
114
117
|
competitorOverlap: querySnapshots.competitorOverlap,
|
|
@@ -118,20 +121,26 @@ async function backfillAnswerVisibilityCommand(opts) {
|
|
|
118
121
|
retrievalContract: querySnapshots.retrievalContract
|
|
119
122
|
}).from(querySnapshots).where(inArray(querySnapshots.runId, batchRunIds)).all();
|
|
120
123
|
const pendingUpdates = [];
|
|
124
|
+
const rewrittenIds = [];
|
|
121
125
|
for (const snapshot of snapshotRows) {
|
|
122
126
|
examined++;
|
|
123
127
|
const reparsedResult = reparseProviderSnapshot(snapshot.provider, snapshot.rawResponse);
|
|
124
128
|
if (reparsedResult) reparsed++;
|
|
125
129
|
if (reparsedResult?.providerError) providerErrors++;
|
|
126
130
|
const answerText = reparsedResult?.answerText ?? snapshot.answerText ?? "";
|
|
127
|
-
const
|
|
131
|
+
const textChanged = (snapshot.answerText ?? "") !== answerText;
|
|
132
|
+
const nextValue = countsAsMention(
|
|
133
|
+
determineAnswerMentioned(answerText, projectBrandNames, projectDomains),
|
|
134
|
+
textChanged ? null : snapshot.mentionIdentity
|
|
135
|
+
);
|
|
128
136
|
if (nextValue) mentioned++;
|
|
129
137
|
const nextPatch = {};
|
|
130
138
|
if (snapshot.answerMentioned !== nextValue) {
|
|
131
139
|
nextPatch.answerMentioned = nextValue;
|
|
132
140
|
}
|
|
133
|
-
if (
|
|
141
|
+
if (textChanged) {
|
|
134
142
|
nextPatch.answerText = answerText;
|
|
143
|
+
rewrittenIds.push(snapshot.id);
|
|
135
144
|
}
|
|
136
145
|
if (reparsedResult) {
|
|
137
146
|
const normalized = {
|
|
@@ -194,6 +203,7 @@ async function backfillAnswerVisibilityCommand(opts) {
|
|
|
194
203
|
for (const update of pendingUpdates) {
|
|
195
204
|
tx.update(querySnapshots).set(update.patch).where(eq(querySnapshots.id, update.id)).run();
|
|
196
205
|
}
|
|
206
|
+
if (rewrittenIds.length > 0) refreshSnapshotMentionIdentity(tx, rewrittenIds);
|
|
197
207
|
});
|
|
198
208
|
updated += pendingUpdates.length;
|
|
199
209
|
}
|
|
@@ -425,7 +435,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
425
435
|
}
|
|
426
436
|
}
|
|
427
437
|
async function backfillInsightsCommand(project, opts) {
|
|
428
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
438
|
+
const { IntelligenceService } = await import("./intelligence-service-KCSU6ZUJ.js");
|
|
429
439
|
const config = loadConfig();
|
|
430
440
|
const db = createClient(config.database);
|
|
431
441
|
migrate(db);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registeredProviderNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JY3RLZGB.js";
|
|
4
4
|
import {
|
|
5
5
|
configExists,
|
|
6
6
|
loadConfigRaw
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OFL4PTYU.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-XDUXMJC3.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-XLGE42AG.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5D4XNWV.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-LK2BG6EX.js";
|
|
11
11
|
import {
|
|
12
12
|
isMachineFormat,
|
|
13
13
|
systemError
|
|
14
14
|
} from "./chunk-HGMYEDAQ.js";
|
|
15
15
|
import {
|
|
16
16
|
MeasurementEvidenceShapes,
|
|
17
|
+
MentionIdentities,
|
|
17
18
|
UNATTRIBUTED_MENTION_REASON,
|
|
18
19
|
formatPercent,
|
|
19
20
|
measurementChangesQuerySchema,
|
|
@@ -36,7 +37,7 @@ import {
|
|
|
36
37
|
unattributedAnswersLabel,
|
|
37
38
|
uncheckedSourcesLabel,
|
|
38
39
|
visibilityReportRequestSchema
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-O4RMPA6H.js";
|
|
40
41
|
|
|
41
42
|
// src/commands/measurement-plan.ts
|
|
42
43
|
import crypto from "crypto";
|
|
@@ -482,11 +483,17 @@ function printMeasurementPropertyEvidence(response) {
|
|
|
482
483
|
}
|
|
483
484
|
} else if (page.shape === MeasurementEvidenceShapes.answers) {
|
|
484
485
|
lines.push(`${"Engine".padEnd(12)}${"Question".padEnd(40)}${"Mentioned".padEnd(15)}${"Cited".padEnd(8)}Sources`);
|
|
486
|
+
let differentSubject = 0;
|
|
485
487
|
for (const item of page.items) {
|
|
488
|
+
const ruledOut = item.mentionIdentity === MentionIdentities["wrong-subject"];
|
|
489
|
+
if (ruledOut) differentSubject++;
|
|
486
490
|
lines.push(
|
|
487
|
-
`${item.provider.padEnd(12)}${item.queryText.slice(0, 39).padEnd(40)}${signalText(item.mentioned).padEnd(15)}${signalText(item.cited).padEnd(8)}${item.sources.length}`
|
|
491
|
+
`${item.provider.padEnd(12)}${item.queryText.slice(0, 39).padEnd(40)}${signalText(item.mentioned).padEnd(15)}${signalText(item.cited).padEnd(8)}${item.sources.length}` + (ruledOut ? " \xB7 different subject" : "")
|
|
488
492
|
);
|
|
489
493
|
}
|
|
494
|
+
if (differentSubject > 0) {
|
|
495
|
+
lines.push("\xB7 different subject: the answer uses this Property's name, but sentiment found it is about something else, so it is not counted as mentioned.");
|
|
496
|
+
}
|
|
490
497
|
} else {
|
|
491
498
|
lines.push(`${"Match".padEnd(14)}${"Engine".padEnd(12)}${"Question".padEnd(40)}URL`);
|
|
492
499
|
for (const item of page.items) {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
bucketCliCommandDuration,
|
|
3
3
|
isTelemetryEnabled,
|
|
4
4
|
trackEvent
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7244X3K6.js";
|
|
6
6
|
import {
|
|
7
7
|
getConfigDir
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OFL4PTYU.js";
|
|
9
9
|
import {
|
|
10
10
|
currentOutcomeAttribution
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-QLPLENDT.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-O4RMPA6H.js";
|
|
23
23
|
|
|
24
24
|
// src/outcome-telemetry.ts
|
|
25
25
|
import fs from "fs";
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
configExists,
|
|
3
3
|
loadConfigRaw,
|
|
4
4
|
saveConfigPatch
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OFL4PTYU.js";
|
|
6
6
|
import {
|
|
7
7
|
BUNDLED_SKILL_NAMES,
|
|
8
8
|
installSkills
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-TALC5DX5.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-O4RMPA6H.js";
|
|
17
17
|
|
|
18
18
|
// src/skills-autosync.ts
|
|
19
19
|
import fs from "fs";
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
isStoredPageReadTool,
|
|
6
6
|
isStoredReadTool,
|
|
7
7
|
truncateToolResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5N6245R7.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_MCP_TOOLKITS
|
|
11
11
|
} from "./chunk-4MJYGB56.js";
|
|
12
12
|
import {
|
|
13
13
|
AGENT_REASONING_LEVELS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OFL4PTYU.js";
|
|
15
15
|
import {
|
|
16
16
|
CanonryMcpToolNames,
|
|
17
17
|
canonryMcpTools
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RVUCY4ZV.js";
|
|
19
19
|
import {
|
|
20
20
|
agentToolEvents,
|
|
21
21
|
llmUsageEvents
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-MKAC7HKH.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT_PROVIDER_IDS,
|
|
25
25
|
AgentProviderIds,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
isAgentProviderId,
|
|
32
32
|
validationError,
|
|
33
33
|
visibilityReportRequestSchema
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-O4RMPA6H.js";
|
|
35
35
|
|
|
36
36
|
// src/agent/session.ts
|
|
37
37
|
import fs3 from "fs";
|