@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.
Files changed (34) hide show
  1. package/assets/assets/{AuditHistoryPanel-CZUnfysJ.js → AuditHistoryPanel-C_p8jX7Q.js} +1 -1
  2. package/assets/assets/{BacklinksPage-C9qSkTUW.js → BacklinksPage-jD4nOGw1.js} +1 -1
  3. package/assets/assets/{HistoryPage-CYMWnCta.js → HistoryPage-DJGBbtBY.js} +1 -1
  4. package/assets/assets/MeasurementPropertyPage-Dmr3TVlo.js +1 -0
  5. package/assets/assets/ProjectPage-B_haCKiA.js +8 -0
  6. package/assets/assets/{RunRow-CwMUW3rM.js → RunRow-BMbwR2yk.js} +1 -1
  7. package/assets/assets/{RunsPage-DbzSmrnc.js → RunsPage-D8hHakq2.js} +1 -1
  8. package/assets/assets/{SettingsPage-DM-G5WzL.js → SettingsPage-QKnRcFA9.js} +1 -1
  9. package/assets/assets/{SiteHealthSection-BwmQJ9Z9.js → SiteHealthSection-CDkUXqmb.js} +3 -3
  10. package/assets/assets/{TrafficPage-DSumJzUk.js → TrafficPage-CMif8RlM.js} +2 -2
  11. package/assets/assets/{TrafficSourceDetailPage-D5BjIBkN.js → TrafficSourceDetailPage-DOCTP_4-.js} +1 -1
  12. package/assets/assets/{extract-error-message-DbpR8Tzb.js → extract-error-message-Dm8RvYE5.js} +1 -1
  13. package/assets/assets/index-lj0fuFl4.js +86 -0
  14. package/assets/assets/{react-sigma_core.esm.min-C3cM2I3z.js → react-sigma_core.esm.min-DOPuwLtN.js} +1 -1
  15. package/assets/assets/v2-overview-adapter-C19tUcDS.js +1 -0
  16. package/assets/index.html +1 -1
  17. package/dist/{chunk-2EE6RPWV.js → chunk-ABUO27BV.js} +3 -3
  18. package/dist/{chunk-GYX277BV.js → chunk-GUJY3RIM.js} +12 -12
  19. package/dist/{chunk-H6COEFVL.js → chunk-P2EFPLIO.js} +55 -21
  20. package/dist/{chunk-3OYWLQEE.js → chunk-QJWIOCEO.js} +2 -2
  21. package/dist/{chunk-XC24KCTL.js → chunk-SPCEXW3B.js} +14 -3969
  22. package/dist/{chunk-L36TC6LB.js → chunk-WLL7Q7JD.js} +57 -3
  23. package/dist/chunk-YHKKCXGY.js +3975 -0
  24. package/dist/cli.js +31 -20
  25. package/dist/{demo-server-CUBR2NVR.js → demo-server-BOIBS74F.js} +1071 -187
  26. package/dist/index.js +6 -6
  27. package/dist/{intelligence-service-6N7SIWLD.js → intelligence-service-IWR2H6OW.js} +2 -2
  28. package/dist/mcp.js +4 -4
  29. package/package.json +14 -14
  30. package/assets/assets/MeasurementPropertyPage-Bu4KDAdf.js +0 -1
  31. package/assets/assets/ProjectPage-Bg87LPit.js +0 -8
  32. package/assets/assets/index-BtHRel6S.js +0 -86
  33. package/assets/assets/v2-overview-adapter-DllH2EQb.js +0 -1
  34. package/dist/chunk-AOJU5LKX.js +0 -8
@@ -4239,7 +4239,12 @@ var measurementMetricValueSchema = z6.discriminatedUnion("state", [
4239
4239
  state: z6.literal("available"),
4240
4240
  value: z6.number(),
4241
4241
  numerator: z6.number().int().nonnegative().optional(),
4242
- denominator: z6.number().int().positive().optional()
4242
+ denominator: z6.number().int().positive().optional(),
4243
+ /**
4244
+ * Mention coverage only: answers left out of numerator and denominator
4245
+ * because they could not be tied to one Property. Absent means none.
4246
+ */
4247
+ unattributed: z6.number().int().positive().optional()
4243
4248
  }).strict(),
4244
4249
  z6.object({
4245
4250
  state: z6.literal("unavailable"),
@@ -6259,13 +6264,25 @@ var visibilityReportRateSchema = z15.object({
6259
6264
  numerator: z15.number().int().nonnegative().nullable(),
6260
6265
  denominator: z15.number().int().nonnegative().nullable(),
6261
6266
  rate: z15.number().min(0).max(1).nullable(),
6262
- reason: z15.enum(["no-population", "incomplete", "evidence-incomplete", "identity-ambiguous", "not-applicable"]).optional()
6267
+ reason: z15.enum(["no-population", "incomplete", "evidence-incomplete", "identity-ambiguous", "not-applicable"]).optional(),
6268
+ /**
6269
+ * Answers left out of a mention rate because they could not be tied to one
6270
+ * Property (`mentionUnavailableReason: 'identity-ambiguous'`). They leave the
6271
+ * numerator AND the denominator, so they are never counted as not mentioned.
6272
+ * Present only on an available rate that left at least one answer out;
6273
+ * absent means none were. When every answer is unattributable the rate is
6274
+ * unavailable with reason `identity-ambiguous` instead.
6275
+ */
6276
+ unattributed: z15.number().int().positive().optional()
6263
6277
  }).strict().superRefine((value, ctx) => {
6264
6278
  const unavailable = value.numerator === null || value.denominator === null || value.rate === null;
6265
6279
  if (unavailable) {
6266
6280
  if (value.numerator !== null || value.denominator !== null || value.rate !== null || value.reason === void 0) {
6267
6281
  ctx.addIssue({ code: z15.ZodIssueCode.custom, message: "Unavailable rates require null values and a reason" });
6268
6282
  }
6283
+ if (value.unattributed !== void 0) {
6284
+ ctx.addIssue({ code: z15.ZodIssueCode.custom, path: ["unattributed"], message: "Only an available rate can leave answers out" });
6285
+ }
6269
6286
  return;
6270
6287
  }
6271
6288
  if (value.reason !== void 0) {
@@ -6918,7 +6935,8 @@ var measurementRateSchema = z17.union([
6918
6935
  z17.object({
6919
6936
  numerator: z17.number().int().nonnegative(),
6920
6937
  denominator: z17.number().int().positive(),
6921
- rate: z17.number().min(0).max(1)
6938
+ rate: z17.number().min(0).max(1),
6939
+ unattributed: z17.number().int().positive().optional()
6922
6940
  }).strict(),
6923
6941
  z17.object({
6924
6942
  numerator: z17.null(),
@@ -14135,6 +14153,33 @@ function agentConversationTitle(messages) {
14135
14153
  }
14136
14154
  return "New conversation";
14137
14155
  }
14156
+ var aeroPreviewStarterIds = ["status", "changes", "gaps", "insights"];
14157
+ var aeroPreviewStarterIdSchema = z46.enum(aeroPreviewStarterIds);
14158
+ var aeroPreviewStepSchema = z46.object({
14159
+ /** Assistant text shown before the tool call, when the turn narrates it. */
14160
+ text: z46.string().optional(),
14161
+ tool: z46.object({
14162
+ /** Real Canonry MCP tool name, such as canonry_visibility_report. */
14163
+ name: z46.string(),
14164
+ /** The tool's registered title, which the live bar shows as the card label. */
14165
+ label: z46.string(),
14166
+ arguments: z46.record(z46.string(), z46.unknown()),
14167
+ /** A compact excerpt of the stored result, not the full payload. */
14168
+ result: z46.unknown(),
14169
+ durationMs: z46.number().int().nonnegative()
14170
+ })
14171
+ });
14172
+ var aeroPreviewStarterSchema = z46.object({
14173
+ id: aeroPreviewStarterIdSchema,
14174
+ steps: z46.array(aeroPreviewStepSchema),
14175
+ /** Final assistant markdown. */
14176
+ answer: z46.string()
14177
+ });
14178
+ var aeroPreviewResponseSchema = z46.object({
14179
+ project: z46.string(),
14180
+ seededAt: z46.string(),
14181
+ starters: z46.array(aeroPreviewStarterSchema)
14182
+ });
14138
14183
  var agentConversationListQuerySchema = z46.object({
14139
14184
  offset: z46.coerce.number().int().min(0).default(0),
14140
14185
  limit: z46.coerce.number().int().min(1).max(100).default(50)
@@ -15009,6 +15054,12 @@ function reportVisibilityEvidence(value) {
15009
15054
  return REPORT_VISIBILITY_COPY.incomplete;
15010
15055
  }
15011
15056
  }
15057
+ var UNATTRIBUTED_MENTION_REASON = "No answer could be tied to one property";
15058
+ function reportUnattributedAnswers(value) {
15059
+ if (value.denominator === null || value.denominator === void 0) return null;
15060
+ if (value.unattributed === void 0 || value.unattributed <= 0) return null;
15061
+ return `${value.unattributed} of ${value.denominator + value.unattributed} answers could not be tied to one property`;
15062
+ }
15012
15063
  function reportVisibilityComparison(state, outsideWindow = false) {
15013
15064
  const label = state === "first" ? REPORT_VISIBILITY_COPY.baseline : state === "comparable" ? REPORT_VISIBILITY_COPY.comparable : state === "legacy-unknown" ? REPORT_VISIBILITY_COPY.unknownHistory : REPORT_VISIBILITY_COPY.changed;
15014
15065
  return outsideWindow ? `${label} \xB7 ${REPORT_VISIBILITY_COPY.previousOutsideWindow}` : label;
@@ -19902,6 +19953,7 @@ export {
19902
19953
  agentConversationCreateSchema,
19903
19954
  agentConversationDeleteSchema,
19904
19955
  agentConversationTitle,
19956
+ aeroPreviewResponseSchema,
19905
19957
  agentConversationListQuerySchema,
19906
19958
  backlinkSourceSchema,
19907
19959
  BacklinkSources,
@@ -19950,6 +20002,8 @@ export {
19950
20002
  reportQueryClassLabel,
19951
20003
  reportVisibilityRate,
19952
20004
  reportVisibilityEvidence,
20005
+ UNATTRIBUTED_MENTION_REASON,
20006
+ reportUnattributedAnswers,
19953
20007
  reportVisibilityComparison,
19954
20008
  reportVisibilityMeasurementLabel,
19955
20009
  reportVisibilityHistoryLabel,