@canonry/canonry 5.17.0 → 5.19.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/assets/{AuditHistoryPanel-CZUnfysJ.js → AuditHistoryPanel-C_p8jX7Q.js} +1 -1
- package/assets/assets/{BacklinksPage-C9qSkTUW.js → BacklinksPage-jD4nOGw1.js} +1 -1
- package/assets/assets/{HistoryPage-CYMWnCta.js → HistoryPage-DJGBbtBY.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-Dmr3TVlo.js +1 -0
- package/assets/assets/ProjectPage-B_haCKiA.js +8 -0
- package/assets/assets/{RunRow-CwMUW3rM.js → RunRow-BMbwR2yk.js} +1 -1
- package/assets/assets/{RunsPage-DbzSmrnc.js → RunsPage-D8hHakq2.js} +1 -1
- package/assets/assets/{SettingsPage-DM-G5WzL.js → SettingsPage-QKnRcFA9.js} +1 -1
- package/assets/assets/{SiteHealthSection-BwmQJ9Z9.js → SiteHealthSection-CDkUXqmb.js} +3 -3
- package/assets/assets/{TrafficPage-DSumJzUk.js → TrafficPage-CMif8RlM.js} +2 -2
- package/assets/assets/{TrafficSourceDetailPage-D5BjIBkN.js → TrafficSourceDetailPage-DOCTP_4-.js} +1 -1
- package/assets/assets/{extract-error-message-DbpR8Tzb.js → extract-error-message-Dm8RvYE5.js} +1 -1
- package/assets/assets/index-lj0fuFl4.js +86 -0
- package/assets/assets/{react-sigma_core.esm.min-C3cM2I3z.js → react-sigma_core.esm.min-DOPuwLtN.js} +1 -1
- package/assets/assets/v2-overview-adapter-C19tUcDS.js +1 -0
- package/assets/index.html +1 -1
- package/dist/{chunk-2EE6RPWV.js → chunk-ABUO27BV.js} +3 -3
- package/dist/{chunk-GYX277BV.js → chunk-GUJY3RIM.js} +12 -12
- package/dist/{chunk-H6COEFVL.js → chunk-P2EFPLIO.js} +55 -21
- package/dist/{chunk-3OYWLQEE.js → chunk-QJWIOCEO.js} +2 -2
- package/dist/{chunk-XC24KCTL.js → chunk-SPCEXW3B.js} +14 -3969
- package/dist/{chunk-L36TC6LB.js → chunk-WLL7Q7JD.js} +57 -3
- package/dist/chunk-YHKKCXGY.js +3975 -0
- package/dist/cli.js +31 -20
- package/dist/{demo-server-CUBR2NVR.js → demo-server-BOIBS74F.js} +1071 -187
- package/dist/index.js +6 -6
- package/dist/{intelligence-service-6N7SIWLD.js → intelligence-service-IWR2H6OW.js} +2 -2
- package/dist/mcp.js +4 -4
- package/package.json +14 -14
- package/assets/assets/MeasurementPropertyPage-Bu4KDAdf.js +0 -1
- package/assets/assets/ProjectPage-Bg87LPit.js +0 -8
- package/assets/assets/index-BtHRel6S.js +0 -86
- package/assets/assets/v2-overview-adapter-DllH2EQb.js +0 -1
- package/dist/chunk-AOJU5LKX.js +0 -8
package/dist/cli.js
CHANGED
|
@@ -35,15 +35,12 @@ import {
|
|
|
35
35
|
trackCliCommandFinished,
|
|
36
36
|
trackEvent,
|
|
37
37
|
waitForServerRuntimeStartup
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-GUJY3RIM.js";
|
|
39
39
|
import {
|
|
40
40
|
autoSyncSkills,
|
|
41
41
|
formatAutoSyncNotice
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ABUO27BV.js";
|
|
43
43
|
import {
|
|
44
|
-
CliError,
|
|
45
|
-
EXIT_SYSTEM_ERROR,
|
|
46
|
-
EXIT_USER_ERROR,
|
|
47
44
|
configExists,
|
|
48
45
|
createApiClient,
|
|
49
46
|
emitInstallSummary,
|
|
@@ -52,28 +49,32 @@ import {
|
|
|
52
49
|
getConfigPath,
|
|
53
50
|
getMissingUserSkillsNudge,
|
|
54
51
|
installSkills,
|
|
55
|
-
isEndpointMissing,
|
|
56
|
-
isMachineFormat,
|
|
57
52
|
listSkills,
|
|
58
53
|
loadConfig,
|
|
59
54
|
loadConfigRaw,
|
|
60
|
-
measurementDraftOperationSchema,
|
|
61
55
|
parseSkillsClient,
|
|
62
|
-
printCliError,
|
|
63
|
-
runMeasurementDraftAction,
|
|
64
56
|
saveConfig,
|
|
65
57
|
saveConfigPatch,
|
|
66
|
-
shouldPrintServeSkillsNudge
|
|
67
|
-
|
|
68
|
-
usageError
|
|
69
|
-
} from "./chunk-XC24KCTL.js";
|
|
58
|
+
shouldPrintServeSkillsNudge
|
|
59
|
+
} from "./chunk-SPCEXW3B.js";
|
|
70
60
|
import {
|
|
71
61
|
DEFAULT_DEMO_TRUSTED_PROXIES,
|
|
72
62
|
trustedProxiesProblem,
|
|
73
63
|
trustedProxyProblem
|
|
74
64
|
} from "./chunk-RB2F4D3Z.js";
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import
|
|
65
|
+
import "./chunk-QJWIOCEO.js";
|
|
66
|
+
import {
|
|
67
|
+
CliError,
|
|
68
|
+
EXIT_SYSTEM_ERROR,
|
|
69
|
+
EXIT_USER_ERROR,
|
|
70
|
+
isEndpointMissing,
|
|
71
|
+
isMachineFormat,
|
|
72
|
+
measurementDraftOperationSchema,
|
|
73
|
+
printCliError,
|
|
74
|
+
runMeasurementDraftAction,
|
|
75
|
+
systemError,
|
|
76
|
+
usageError
|
|
77
|
+
} from "./chunk-YHKKCXGY.js";
|
|
77
78
|
import {
|
|
78
79
|
CLOUDFLARE_WORKER_BINDINGS,
|
|
79
80
|
CLOUDFLARE_WORKER_GENERATED_MARKER,
|
|
@@ -88,7 +89,7 @@ import {
|
|
|
88
89
|
queries,
|
|
89
90
|
renderReportHtml,
|
|
90
91
|
runs
|
|
91
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-P2EFPLIO.js";
|
|
92
93
|
import {
|
|
93
94
|
AdsDeliverySnapshotStatuses,
|
|
94
95
|
AdsHistoricalCampaignRollupStatuses,
|
|
@@ -110,6 +111,7 @@ import {
|
|
|
110
111
|
RunTriggers,
|
|
111
112
|
TrafficEventKinds,
|
|
112
113
|
TrafficSeriesGranularities,
|
|
114
|
+
UNATTRIBUTED_MENTION_REASON,
|
|
113
115
|
USER_PASSWORD_MIN_LENGTH,
|
|
114
116
|
UserRoles,
|
|
115
117
|
adsActivateTreeRequestSchema,
|
|
@@ -165,6 +167,7 @@ import {
|
|
|
165
167
|
notificationEventSchema,
|
|
166
168
|
queryTrackingCommitRequestSchema,
|
|
167
169
|
queryTrackingPreviewRequestSchema,
|
|
170
|
+
reportUnattributedAnswers,
|
|
168
171
|
researchBatchCreateSchema,
|
|
169
172
|
resolveProviderInput,
|
|
170
173
|
resultsClearRequestSchema,
|
|
@@ -173,7 +176,7 @@ import {
|
|
|
173
176
|
snapshotProviderModeSchema,
|
|
174
177
|
visibilityReportRequestSchema,
|
|
175
178
|
winnabilityClassSchema
|
|
176
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-WLL7Q7JD.js";
|
|
177
180
|
|
|
178
181
|
// src/cli.ts
|
|
179
182
|
import { pathToFileURL } from "url";
|
|
@@ -438,7 +441,7 @@ function parseDemoTrustedProxies(values) {
|
|
|
438
441
|
async function demoCommand(options) {
|
|
439
442
|
const { host, port } = parseDemoListenOptions(options);
|
|
440
443
|
const trustProxy = parseDemoTrustedProxies(options.trustProxy);
|
|
441
|
-
const { createDemoServer } = await import("./demo-server-
|
|
444
|
+
const { createDemoServer } = await import("./demo-server-BOIBS74F.js");
|
|
442
445
|
const app = await createDemoServer({ trustProxy });
|
|
443
446
|
let stopping = false;
|
|
444
447
|
const stop = () => {
|
|
@@ -10372,8 +10375,12 @@ var METRIC_REASONS = {
|
|
|
10372
10375
|
no_completed_run: "not measured (no completed run)",
|
|
10373
10376
|
no_population: "not measured (no questions of this type)",
|
|
10374
10377
|
evidence_incomplete: "not measured (evidence incomplete)",
|
|
10378
|
+
identity_ambiguous: `not measured (${UNATTRIBUTED_MENTION_REASON.toLowerCase()})`,
|
|
10375
10379
|
not_applicable: "not measured (not applicable)"
|
|
10376
10380
|
};
|
|
10381
|
+
function unattributedText(metric) {
|
|
10382
|
+
return metric.state === "available" ? reportUnattributedAnswers(metric) : null;
|
|
10383
|
+
}
|
|
10377
10384
|
function metricText(metric) {
|
|
10378
10385
|
if (metric.state === "unavailable") return METRIC_REASONS[metric.reason] ?? `not measured (${metric.reason})`;
|
|
10379
10386
|
const percent = `${Math.round(metric.value * 100)}%`;
|
|
@@ -10400,7 +10407,9 @@ function printMeasurementProperty(response) {
|
|
|
10400
10407
|
lines.push(`${response.scope.label} \u2014 ${response.queryClass} questions`);
|
|
10401
10408
|
lines.push(`Measurement: ${response.measurement.state}${response.measurement.displayedRunId ? ` \xB7 run ${response.measurement.displayedRunId}` : ""}`);
|
|
10402
10409
|
lines.push("");
|
|
10403
|
-
|
|
10410
|
+
const mention = row ? row.mentionCoverage : response.metrics.mentionCoverage;
|
|
10411
|
+
const unattributed = unattributedText(mention);
|
|
10412
|
+
lines.push(`Mentioned ${metricText(mention)}${unattributed ? ` \xB7 ${unattributed}` : ""}`);
|
|
10404
10413
|
lines.push(`Cited ${metricText(row ? row.citationCoverage : response.metrics.citationCoverage)}`);
|
|
10405
10414
|
if (row && row.flags > 0) lines.push(`Flagged ${row.flags} ${row.flags === 1 ? "result needs" : "results need"} review`);
|
|
10406
10415
|
if (row && row.providers.length > 0) {
|
|
@@ -10408,6 +10417,8 @@ function printMeasurementProperty(response) {
|
|
|
10408
10417
|
lines.push(`${"Engine".padEnd(14)}${"Mentioned".padEnd(34)}Cited`);
|
|
10409
10418
|
for (const provider of row.providers) {
|
|
10410
10419
|
lines.push(`${provider.provider.padEnd(14)}${metricText(provider.mentionCoverage).padEnd(34)}${metricText(provider.citationCoverage)}`);
|
|
10420
|
+
const providerUnattributed = unattributedText(provider.mentionCoverage);
|
|
10421
|
+
if (providerUnattributed) lines.push(`${"".padEnd(14)}${providerUnattributed}`);
|
|
10411
10422
|
}
|
|
10412
10423
|
}
|
|
10413
10424
|
console.log(lines.join("\n"));
|