@ainyc/canonry 4.7.2 → 4.8.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/index.html CHANGED
@@ -12,7 +12,7 @@
12
12
  <link rel="icon" type="image/png" sizes="32x32" href="./favicon-32.png" />
13
13
  <link rel="apple-touch-icon" href="./apple-touch-icon.png" />
14
14
  <title>Canonry</title>
15
- <script type="module" crossorigin src="./assets/index-Ca3kZYGw.js"></script>
15
+ <script type="module" crossorigin src="./assets/index-C2ZxtVjD.js"></script>
16
16
  <link rel="stylesheet" crossorigin href="./assets/index-DAS6pOry.css">
17
17
  </head>
18
18
  <body>
@@ -12,7 +12,7 @@ import {
12
12
  queryGenerateRequestSchema,
13
13
  runTriggerRequestSchema,
14
14
  scheduleUpsertRequestSchema
15
- } from "./chunk-XAW66QUX.js";
15
+ } from "./chunk-IJEP6LB4.js";
16
16
 
17
17
  // src/config.ts
18
18
  import fs from "fs";
@@ -1608,10 +1608,32 @@ var projectSearchResponseSchema = z15.object({
1608
1608
  import { z as z16 } from "zod";
1609
1609
  var contentActionSchema = z16.enum(["create", "expand", "refresh", "add-schema"]);
1610
1610
  var ContentActions = contentActionSchema.enum;
1611
+ function contentActionLabel(action) {
1612
+ switch (action) {
1613
+ case "create":
1614
+ return "Create";
1615
+ case "expand":
1616
+ return "Expand";
1617
+ case "refresh":
1618
+ return "Refresh";
1619
+ case "add-schema":
1620
+ return "Add schema";
1621
+ }
1622
+ }
1611
1623
  var demandSourceSchema = z16.enum(["gsc", "competitor-evidence", "both"]);
1612
1624
  var DemandSources = demandSourceSchema.enum;
1613
1625
  var actionConfidenceSchema = z16.enum(["high", "medium", "low"]);
1614
1626
  var ActionConfidences = actionConfidenceSchema.enum;
1627
+ function actionConfidenceLabel(confidence) {
1628
+ switch (confidence) {
1629
+ case "high":
1630
+ return "High";
1631
+ case "medium":
1632
+ return "Medium";
1633
+ case "low":
1634
+ return "Low";
1635
+ }
1636
+ }
1615
1637
  var pageTypeSchema = z16.enum([
1616
1638
  "blog-post",
1617
1639
  "comparison",
@@ -1969,6 +1991,56 @@ function reportActionTone(action) {
1969
1991
  if (action.confidence === "low") return "neutral";
1970
1992
  return "caution";
1971
1993
  }
1994
+ function reportSeverityLabel(severity) {
1995
+ switch (severity) {
1996
+ case "critical":
1997
+ return "Critical";
1998
+ case "high":
1999
+ return "High";
2000
+ case "medium":
2001
+ return "Medium";
2002
+ case "low":
2003
+ return "Low";
2004
+ }
2005
+ }
2006
+ function reportHorizonLabel(horizon) {
2007
+ switch (horizon) {
2008
+ case "immediate":
2009
+ return "Immediate";
2010
+ case "short-term":
2011
+ return "Short term";
2012
+ case "medium-term":
2013
+ return "Medium term";
2014
+ }
2015
+ }
2016
+ function reportActionCategoryLabel(category) {
2017
+ switch (category) {
2018
+ case "content":
2019
+ return "Content";
2020
+ case "competitors":
2021
+ return "Competitors";
2022
+ case "provider":
2023
+ return "Provider";
2024
+ case "search-demand":
2025
+ return "Search demand";
2026
+ case "indexing":
2027
+ return "Indexing";
2028
+ case "location":
2029
+ return "Location";
2030
+ case "monitoring":
2031
+ return "Monitoring";
2032
+ }
2033
+ }
2034
+ function reportConfidenceLabel(confidence) {
2035
+ switch (confidence) {
2036
+ case "high":
2037
+ return "High";
2038
+ case "medium":
2039
+ return "Medium";
2040
+ case "low":
2041
+ return "Low";
2042
+ }
2043
+ }
1972
2044
 
1973
2045
  // ../contracts/src/skills.ts
1974
2046
  import { z as z19 } from "zod";
@@ -2047,6 +2119,8 @@ export {
2047
2119
  agentMemoryDeleteRequestSchema,
2048
2120
  CcReleaseSyncStatuses,
2049
2121
  ContentActions,
2122
+ contentActionLabel,
2123
+ actionConfidenceLabel,
2050
2124
  CheckStatuses,
2051
2125
  CheckScopes,
2052
2126
  CheckCategories,
@@ -2056,6 +2130,10 @@ export {
2056
2130
  emptyCitationVisibility,
2057
2131
  citationStateToCited,
2058
2132
  reportActionTone,
2133
+ reportSeverityLabel,
2134
+ reportHorizonLabel,
2135
+ reportActionCategoryLabel,
2136
+ reportConfidenceLabel,
2059
2137
  CodingAgents,
2060
2138
  skillsClientSchema,
2061
2139
  SkillsClients