@canonry/canonry 7.86.0 → 7.87.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 (142) hide show
  1. package/assets/agent-workspace/skills/canonry/references/canonry-cli.md +19 -0
  2. package/assets/assets/{AgentSetupPage-0f7Ca4IZ.js → AgentSetupPage-_ZP3F_zA.js} +4 -4
  3. package/assets/assets/{AuditHistoryPanel-BAQuFTNl.js → AuditHistoryPanel-9B0XpYsN.js} +1 -1
  4. package/assets/assets/{BacklinksPage-BK2bn9Xg.js → BacklinksPage-CsvVgXTZ.js} +1 -1
  5. package/assets/assets/{ChartPrimitives-B5L9FUj3.js → ChartPrimitives-4D5wgAn5.js} +1 -1
  6. package/assets/assets/{HistoryPage-ZBfL9nGw.js → HistoryPage-BCxpCul0.js} +1 -1
  7. package/assets/assets/{MeasurementPropertyPage-DDSOq4aU.js → MeasurementPropertyPage-BObvWjVx.js} +4 -4
  8. package/assets/assets/ProjectPage-y378tOaT.js +11 -0
  9. package/assets/assets/{RunsPage-ke0wMYLg.js → RunsPage-CfQ_kqlu.js} +1 -1
  10. package/assets/assets/{SettingsPage-Bbi-sTBk.js → SettingsPage-PIgRvqJc.js} +1 -1
  11. package/assets/assets/SiteHealthSection-DuUE1cB0.js +2 -0
  12. package/assets/assets/ToneBadge-BgTLSTKp.js +60 -0
  13. package/assets/assets/{TrafficPage-nXixENx9.js → TrafficPage-B_YunwjH.js} +1 -1
  14. package/assets/assets/TrafficSourceDetailPage-C51W87fU.js +1 -0
  15. package/assets/assets/{account-context-BmN431xn.js → account-context-CVjb3ZSn.js} +1 -1
  16. package/assets/assets/agent-trust-copy-BlpC8jo5.js +1 -0
  17. package/assets/assets/{card-DUTMWeHB.js → card-BnVez9nG.js} +1 -1
  18. package/assets/assets/{extract-error-message-BFaIHLqb.js → extract-error-message-Dqirbrl0.js} +1 -1
  19. package/assets/assets/{format-helpers-D1w2yznw.js → format-helpers-DVXZD864.js} +1 -1
  20. package/assets/assets/{index-DIHdWY7b.css → index-BOUrrC9J.css} +1 -1
  21. package/assets/assets/index-CsvEqhK4.js +60 -0
  22. package/assets/assets/query-client-CVc7wMKJ.js +1 -0
  23. package/assets/assets/react-query-CSlTSOjz.js +1 -0
  24. package/assets/assets/{react-sigma_core.esm.min-cvMDhRNS.js → react-sigma_core.esm.min-CVfGIEIE.js} +3 -3
  25. package/assets/assets/{service-CvCKbPnf.js → service-BGqeyqhZ.js} +1 -1
  26. package/assets/index.html +9 -9
  27. package/dist/{ads-7IJTHW6T.js → ads-ZUZWSIBV.js} +3 -3
  28. package/dist/{agent-4UC2X7O2.js → agent-YDS3WY7B.js} +7 -7
  29. package/dist/{agent-ask-SVPU2WQU.js → agent-ask-7VUPXTXL.js} +3 -3
  30. package/dist/{agent-conversations-PJQRY5RX.js → agent-conversations-WPEBK3BS.js} +3 -3
  31. package/dist/{agent-journeys-JOD5DQ6G.js → agent-journeys-H5CCYLNB.js} +3 -3
  32. package/dist/{agent-memory-KTMZMUYF.js → agent-memory-CNPKPIWD.js} +3 -3
  33. package/dist/{agent-providers-VEBB3WEW.js → agent-providers-U7FLJO5I.js} +3 -3
  34. package/dist/{agent-transcript-RRZJCMK2.js → agent-transcript-VY3BQNPU.js} +3 -3
  35. package/dist/{analytics-EZV4XJKR.js → analytics-PYUNO7C2.js} +3 -3
  36. package/dist/{apply-NP7ORQS4.js → apply-YNBEYC2G.js} +3 -3
  37. package/dist/{backfill-7T6VFPWT.js → backfill-LIMS34H6.js} +10 -10
  38. package/dist/{backlinks-KTEJM2IP.js → backlinks-LVHZ2MQ7.js} +3 -3
  39. package/dist/{bing-TC54HJUB.js → bing-A2MUG6AV.js} +3 -3
  40. package/dist/{bootstrap-UDSN22NT.js → bootstrap-AZYQXBHN.js} +10 -10
  41. package/dist/{cdp-IZSHF3MS.js → cdp-HCYY4SXR.js} +7 -7
  42. package/dist/{chunk-IILPHGRC.js → chunk-2AXFKYJU.js} +2 -2
  43. package/dist/{chunk-U3QNTJBP.js → chunk-2FJB3CSS.js} +1 -1
  44. package/dist/{chunk-KEIKD6JQ.js → chunk-3KK6FWDF.js} +1 -1
  45. package/dist/{chunk-STHWLBYT.js → chunk-4FWDITQG.js} +1 -1
  46. package/dist/{chunk-3K3QBKNC.js → chunk-4LNZTL7M.js} +3 -3
  47. package/dist/{chunk-Z5LJI5XK.js → chunk-6F5ULQDY.js} +4 -4
  48. package/dist/{chunk-OXI45LZP.js → chunk-BJHHD7VE.js} +2 -2
  49. package/dist/{chunk-EX6GVZAE.js → chunk-CBWGUGME.js} +2 -1
  50. package/dist/{chunk-LJ6VNMCY.js → chunk-D5V6YQXA.js} +7 -7
  51. package/dist/{chunk-CBNFWSWU.js → chunk-DOPUEXMC.js} +2 -2
  52. package/dist/{chunk-UPFWF6TF.js → chunk-EJZHL67Y.js} +4 -4
  53. package/dist/{chunk-DU4QEC65.js → chunk-EQGCGZZY.js} +261 -50
  54. package/dist/{chunk-KUVTXIFX.js → chunk-F643WELJ.js} +1913 -1743
  55. package/dist/{chunk-5WEGX3H7.js → chunk-FAMCDCVK.js} +1 -1
  56. package/dist/{chunk-5ZAQVRFL.js → chunk-G44S34CE.js} +2 -2
  57. package/dist/{chunk-UTG6UUGK.js → chunk-GBWCEOZR.js} +1 -1
  58. package/dist/{chunk-E6IZVSRY.js → chunk-GDU6IMGB.js} +2 -2
  59. package/dist/{chunk-RR76O744.js → chunk-GXTCDNX7.js} +1 -1
  60. package/dist/{chunk-JAK37YKH.js → chunk-IBGZ6D6R.js} +2 -2
  61. package/dist/{chunk-WVMWY4SE.js → chunk-ICS2WJ7H.js} +3 -3
  62. package/dist/{chunk-2J5EUXO2.js → chunk-IK7QEKKD.js} +1 -1
  63. package/dist/{chunk-X3EU4UPS.js → chunk-INH773FB.js} +3 -3
  64. package/dist/{chunk-HHMOUS26.js → chunk-ITOK75B6.js} +5 -5
  65. package/dist/{chunk-BLGYC2K7.js → chunk-JAYUWQAV.js} +1 -1
  66. package/dist/{chunk-GO4RP6XE.js → chunk-JDTKG7KJ.js} +7 -3
  67. package/dist/{chunk-ZFL5DOGJ.js → chunk-JGGDENAA.js} +395 -342
  68. package/dist/{chunk-RI2ZT3OR.js → chunk-KOBOKZXF.js} +6 -6
  69. package/dist/{chunk-4EKPEVJ2.js → chunk-L5NMS7AU.js} +5 -5
  70. package/dist/{chunk-F5SQITTJ.js → chunk-MNLAIB67.js} +1 -1
  71. package/dist/{chunk-SUSQEH2D.js → chunk-O26FQ7RI.js} +1 -1
  72. package/dist/{chunk-TTXBQCE6.js → chunk-OJKWT6U6.js} +21 -21
  73. package/dist/{chunk-VBW33U4E.js → chunk-TEQF4ZJA.js} +22 -2
  74. package/dist/{chunk-AZP37FMA.js → chunk-TN53B5AB.js} +28 -3
  75. package/dist/{chunk-MJE3SGFW.js → chunk-VDYXB6SV.js} +1 -1
  76. package/dist/{chunk-5KHF5FV5.js → chunk-YKB67YKH.js} +4 -4
  77. package/dist/{citations-TOZK6OFP.js → citations-3EZTHA65.js} +3 -3
  78. package/dist/{cli-catalog-LNWBJNOD.js → cli-catalog-CBTM3JKP.js} +3 -3
  79. package/dist/{cli-commands-3HX4JSDX.js → cli-commands-J6KWSWIS.js} +7 -7
  80. package/dist/cli.js +13 -13
  81. package/dist/{competitor-54HLL354.js → competitor-VH4TXJLT.js} +3 -3
  82. package/dist/{content-ZIGSMH5U.js → content-TSMNHXJZ.js} +3 -3
  83. package/dist/{dashboard-YJH6IQGK.js → dashboard-5QMYF4ZP.js} +6 -6
  84. package/dist/{demo-ZYK5XCP3.js → demo-KGQL5EJM.js} +1 -1
  85. package/dist/{demo-server-LZ6MWJ2S.js → demo-server-ERIR2T2N.js} +13 -12
  86. package/dist/{discover-22QKOFIM.js → discover-XTJXTKCI.js} +3 -3
  87. package/dist/{discover-eval-6IFCCH2S.js → discover-eval-IVQI5YEW.js} +3 -3
  88. package/dist/{doctor-WLLBFOJU.js → doctor-SJ4SHSQO.js} +3 -3
  89. package/dist/{evidence-7VHTWNZW.js → evidence-C6T556YH.js} +3 -3
  90. package/dist/{export-cmd-5RZ3QDFH.js → export-cmd-JQZ5ZRSI.js} +3 -3
  91. package/dist/{ga-LPI3CWY4.js → ga-W2WHVRHN.js} +3 -3
  92. package/dist/{gbp-YBOMWR75.js → gbp-3AZIV5WF.js} +3 -3
  93. package/dist/{google-N42X5FBH.js → google-3CKWPZT7.js} +4 -4
  94. package/dist/{google-marketing-SO4B7Z7L.js → google-marketing-PJBGQYYW.js} +1 -1
  95. package/dist/{health-cmd-W7RQWCEB.js → health-cmd-4JTQMCXM.js} +3 -3
  96. package/dist/{history-SDRTOIDZ.js → history-TXUJFEO2.js} +3 -3
  97. package/dist/index.js +25 -25
  98. package/dist/{init-DPXOGP3P.js → init-HOBW5K2Q.js} +12 -12
  99. package/dist/{insights-636LLPVG.js → insights-XZQO4B45.js} +3 -3
  100. package/dist/intelligence-service-2AH42Y4Q.js +16 -0
  101. package/dist/{journeys-NIXKVYA4.js → journeys-VFIV5JYV.js} +3 -3
  102. package/dist/{keys-U2JR56TX.js → keys-PV23G4LW.js} +3 -3
  103. package/dist/{keyword-GLRK2ZHR.js → keyword-D76KBIV5.js} +3 -3
  104. package/dist/{logs-ENACGWGS.js → logs-DYDZ6IEJ.js} +3 -3
  105. package/dist/{mcp-DST2XTP2.js → mcp-GAR5LDQD.js} +4 -4
  106. package/dist/mcp.js +9 -9
  107. package/dist/{measurement-plan-Y3SA4ZQC.js → measurement-plan-K24EOGMI.js} +5 -5
  108. package/dist/{notify-ZYXJQUHU.js → notify-XQHMPDQQ.js} +3 -3
  109. package/dist/{organic-evidence-NSX7VCNW.js → organic-evidence-UHHE7AO4.js} +3 -3
  110. package/dist/{overview-UO6Z64IT.js → overview-AUZ3XRS5.js} +4 -4
  111. package/dist/{project-BHXUPHQA.js → project-FUCPU2BD.js} +3 -3
  112. package/dist/{query-GDRAKEN5.js → query-HRMSXDKL.js} +3 -3
  113. package/dist/{research-YIOQ7WVP.js → research-R23XLZJ3.js} +3 -3
  114. package/dist/{results-export-KXMCAEHJ.js → results-export-N6IV3KG4.js} +3 -3
  115. package/dist/{run-6PN5GOVE.js → run-CJLG5EXH.js} +4 -4
  116. package/dist/{schedule-5B67GLAM.js → schedule-IPDCQ2I5.js} +3 -3
  117. package/dist/{search-BMVPCN2V.js → search-ZU4AKJ76.js} +3 -3
  118. package/dist/{serve-HB7DI7OC.js → serve-WF5ZXWW6.js} +26 -26
  119. package/dist/{session-3RTDTW6Z.js → session-HEDEP77R.js} +13 -13
  120. package/dist/{settings-FJEYHYRH.js → settings-4FS5NRKP.js} +3 -3
  121. package/dist/{skills-6E7IUQUO.js → skills-GSFHACGN.js} +2 -2
  122. package/dist/{snapshot-BJQ7WPJZ.js → snapshot-4NUVPDK3.js} +3 -3
  123. package/dist/{src-QU75IDHI.js → src-SJYGA7NH.js} +2 -2
  124. package/dist/{status-3GHFPN54.js → status-ASBLMFP2.js} +4 -4
  125. package/dist/{technical-aeo-76JRC66W.js → technical-aeo-QXHRBGYY.js} +3 -3
  126. package/dist/{telemetry-KB73JBDZ.js → telemetry-J2I577I3.js} +4 -4
  127. package/dist/{tools-6VWDHNPZ.js → tools-KYG67FBW.js} +11 -11
  128. package/dist/{traffic-XB7MZJ23.js → traffic-B7Q4WPOV.js} +5 -5
  129. package/dist/trends-YOLCJBNM.js +56 -0
  130. package/dist/{users-HYBG3J72.js → users-LPSCZV3M.js} +3 -3
  131. package/dist/{visibility-stats-ZDB2LMRJ.js → visibility-stats-JJQTZSSK.js} +3 -3
  132. package/dist/{wordpress-SXKR6XNT.js → wordpress-4IKDT5KT.js} +3 -3
  133. package/package.json +1 -1
  134. package/assets/assets/ProjectPage-8cVgOm5o.js +0 -11
  135. package/assets/assets/SiteHealthSection-eKxTDUE2.js +0 -2
  136. package/assets/assets/ToneBadge-WAMyKadz.js +0 -60
  137. package/assets/assets/TrafficSourceDetailPage-ir5zJU_l.js +0 -1
  138. package/assets/assets/agent-trust-copy-zfx8m-cx.js +0 -1
  139. package/assets/assets/index-C5r0VqgO.js +0 -60
  140. package/assets/assets/query-client-DrIawr39.js +0 -1
  141. package/assets/assets/react-query-DQuOVjDi.js +0 -1
  142. package/dist/intelligence-service-JRVESWU2.js +0 -16
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{J as t,Y as n,q as r,st as i}from"./vendor-lucide-CoTHJwai.js";import{r as a}from"./vendor-markdown-cQgSk2i0.js";import{As as o,Cs as s,Ds as c,Es as l,Os as u,Ss as d,Ts as f,_s as p,a as m,ao as h,bs as g,do as _,ds as v,fs as y,gs as b,hs as x,js as S,ks as C,ls as w,ms as T,mt as E,ps as D,us as O,vs as k,ws as A,xs as j,yt as M}from"./ToneBadge-WAMyKadz.js";import{x as N}from"./format-helpers-D1w2yznw.js";var P=e(i(),1),F=a(),I=`min-h-11 w-full rounded-md border border-default bg-surface px-3 py-2 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,L=`flex min-h-11 w-full items-center justify-between gap-3 rounded px-2 text-left text-label-14 text-primary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,R=e=>e.kind===`project`?`Whole site`:e.label,z={allMarkets:`All markets`,browse:e=>`Browse ${e}`,select:e=>`Select ${e}`,browseAll:`Browse all properties`},ee=e=>e?.kind===`group`&&e.marketKeys?.length===1?e.marketKeys[0]:void 0,B=e=>`${e} ${e===1?`property`:`properties`}`;function V({options:e,selected:i,onSelect:a,marketKey:o,label:s=`Measurement scope`,labelVisibility:c=`visible`,allowGroupSelect:l=!0}){let u=[...e].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0})||e.id.localeCompare(t.id)),[d,f]=(0,P.useState)(``),[p,m]=(0,P.useState)([]),[h,g]=(0,P.useState)(!1),_=(0,P.useRef)(null),v=(0,P.useRef)(null),y=(0,P.useId)(),b=u.filter(e=>e.kind===`group`),x=new Map(b.map(e=>[e.id,e])),S=x.get(p.at(-1)??``),C=x.get(p.at(-2)??``),w=d.trim().toLocaleLowerCase(),T=b.filter(e=>!e.parentGroupIds?.some(e=>x.has(e))),E=u.filter(e=>e.kind===`property`),D=e=>(e.parentGroupIds??[]).map(e=>x.get(e)?.label).filter(Boolean).join(` · `),O=e=>`${R(e)} ${D(e)}`.toLocaleLowerCase().includes(w),k=e=>{let t=[...e.parentGroupIds??[]],n=new Set;for(;t.length;){let e=t.pop();if(e===S?.id)return!0;n.has(e)||(n.add(e),t.push(...x.get(e)?.parentGroupIds??[]))}return!1},A=(h?[]:S?b.filter(e=>w?k(e):e.parentGroupIds?.includes(S.id)):w?b:T).filter(O),j=u.find(e=>e.kind===`market`&&e.id===(o??(i.kind===`market`?i.id:void 0))),M=S&&j&&(S.marketKeys?.includes(j.id)||j.parentGroupIds?.includes(S.id))?j.id:void 0,N=l?M??ee(S):void 0,V=(S?E.filter(e=>e.parentGroupIds?.includes(S.id)&&(!N||e.marketKeys?.includes(N))):w||h||b.length===0?E:[]).filter(O),H=u.filter(e=>e.kind!==`market`||h||!l&&!S&&!w&&b.length>0||l&&S?.marketKeys?.length===1&&!w?!1:(S?w?k(e):e.parentGroupIds?.includes(S.id):w||!e.parentGroupIds?.some(e=>x.has(e)))&&O(e)),U=S||h?[]:u.filter(e=>e.kind===`project`&&O(e));(0,P.useEffect)(()=>{let e=e=>{_.current?.open&&e.target instanceof Node&&!_.current.contains(e.target)&&(_.current.open=!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[]);let W=e=>{_.current&&(_.current.open=!1,_.current.querySelector(`summary`)?.focus());let t=l?e.kind===`property`?N:e.kind===`group`&&e.id===S?.id?M:void 0:void 0;t?a(e,t):a(e)},G=e=>{let t=[],n=x.get(e.parentGroupIds?.[0]??``);for(;n&&!t.includes(n.id)&&n.id!==e.id;)t.unshift(n.id),n=x.get(n.parentGroupIds?.[0]??``);return[...t,e.id]},K=()=>{let e=i.kind===`group`?x.get(i.id):void 0,t=x.get(j?.parentGroupIds?.[0]??``),n=(i.parentGroupIds??[]).flatMap(e=>{let t=x.get(e);return t?[G(t)]:[]}),r=n.find(e=>e.at(-1)===S?.id)??n.sort((e,t)=>t.length-e.length)[0]??[],a=t?G(t):i.marketKeys?.length?[]:r;m(e?G(e):a),g(i.kind===`property`&&a.length===0&&b.length>0),f(``)},q=e=>{m(G(e)),g(!1),f(``),v.current?.focus()},J=(e,t=R(e))=>(0,F.jsxs)(`div`,{className:`flex items-stretch`,children:[(0,F.jsxs)(`button`,{type:`button`,className:L,"aria-label":e.kind===`group`&&!l?z.browse(R(e)):z.select(R(e)),"aria-current":i.kind===e.kind&&i.id===e.id?`true`:void 0,onClick:()=>e.kind===`group`&&!l?q(e):W(e),children:[(0,F.jsxs)(`span`,{className:`min-w-0 break-words`,children:[t,w&&D(e)?(0,F.jsx)(`span`,{className:`block text-label-13 text-secondary`,children:D(e)}):null]}),(0,F.jsx)(`span`,{className:`shrink-0 text-right text-label-13 text-secondary`,children:e.kind===`market`?l?`Query context`:`Market`:e.kind===`property`?`Property`:B(e.targetCount)})]}),l&&e.kind===`group`&&e.id!==S?.id&&u.some(t=>t.parentGroupIds?.includes(e.id))?(0,F.jsx)(`button`,{type:`button`,"aria-label":z.browse(e.label),title:`Browse ${e.label}`,className:`flex min-h-11 min-w-11 items-center justify-center rounded text-secondary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,onClick:()=>q(e),children:(0,F.jsx)(r,{size:18,"aria-hidden":`true`})}):null]},`${e.kind}:${e.id}`),Y=(e,t)=>t.length>0?(0,F.jsxs)(`section`,{"aria-label":e,className:`mt-2`,children:[(0,F.jsx)(`h3`,{className:`px-2 py-2 text-heading-14 text-secondary`,children:e}),t.map(e=>J(e))]}):null,X=(e,t,n)=>t.length>0?(0,F.jsxs)(`details`,{open:n,className:`mt-2 border-y border-default`,children:[(0,F.jsxs)(`summary`,{className:`min-h-11 cursor-pointer px-2 py-3 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:[e,` (`,t.length,`)`]}),t.map(e=>J(e))]},`${S?.id??`root`}:${e}`):null;return(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{id:`${y}-label`,className:c===`sr-only`?`sr-only`:`mb-1 block text-label-14-strong text-heading`,children:s}),(0,F.jsxs)(`details`,{ref:_,className:`relative`,onToggle:e=>{e.target===e.currentTarget&&e.currentTarget.open&&v.current?.focus()},onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.currentTarget.open=!1,e.currentTarget.querySelector(`summary`)?.focus())},children:[(0,F.jsxs)(`summary`,{id:`${y}-value`,"aria-labelledby":`${y}-label ${y}-value`,className:`${I} visibility-scope-trigger`,onClick:()=>{_.current?.open||K()},children:[`${R(i)}${i.kind===`group`?` · ${B(i.targetCount)}`:i.kind===`property`?` · ${u.find(e=>e.kind===`market`&&e.id===o)?.label??(i.marketKeys?.length?z.allMarkets:`Property`)}`:i.kind===`market`?` · Market`:``}`,(0,F.jsx)(n,{size:16,"aria-hidden":`true`,className:`shrink-0 text-secondary`})]}),(0,F.jsxs)(`div`,{className:`visibility-scope-menu`,children:[S||h?(0,F.jsxs)(`div`,{className:`mb-2 border-b border-default pb-2`,children:[(0,F.jsx)(`button`,{type:`button`,className:L,"aria-label":`Back to ${C?.label??`all groups`}`,onClick:()=>{m(p.slice(0,-1)),g(!1),f(``),v.current?.focus()},children:(0,F.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(t,{size:16,"aria-hidden":`true`}),C?.label??`All groups`]})}),(0,F.jsx)(`p`,{className:`px-2 py-1 text-copy-14-strong text-heading`,"aria-live":`polite`,children:S?.label??`All properties`})]}):null,(0,F.jsx)(`input`,{ref:v,type:`search`,"aria-label":`Search scopes`,className:I,placeholder:S?`Search within this group`:h?`Search properties`:`Search groups or properties`,value:d,onChange:e=>f(e.target.value)}),(0,F.jsxs)(`div`,{className:`mt-2 max-h-80 overflow-y-auto`,children:[l&&S&&!w?J(S,`All properties in this group`):null,U.map(e=>J(e)),S&&!w?X(`Subgroups`,A,!0):Y(S?`Subgroups`:`Groups`,A),w?Y(`Properties`,V):X(S&&A.length>0?`All properties`:`Properties`,V,!S||A.length===0),Y(`Markets`,H),!S&&!h&&!w&&b.length>0&&E.length>0?(0,F.jsxs)(`button`,{type:`button`,className:`${L} mt-2 border-t border-default`,"aria-label":z.browseAll,onClick:()=>{g(!0),v.current?.focus()},children:[(0,F.jsx)(`span`,{children:`All properties`}),(0,F.jsx)(r,{size:18,"aria-hidden":`true`})]}):null,w&&A.length+V.length+H.length+U.length===0?(0,F.jsx)(`p`,{className:`py-3 text-copy-14 text-secondary`,children:`No matching scopes.`}):null]})]})]})]})}function H(e){let t=e[0];return!t||e.every(e=>e.mode===t.mode&&e.scope.kind===t.scope.kind&&e.scope.key===t.scope.key&&e.queryClass===t.queryClass&&e.measurement.displayedRunId===t.measurement.displayedRunId)}function U(e){return e.state===`unavailable`?{numerator:null,denominator:null,reason:e.reason}:e.numerator===void 0||e.denominator===void 0||e.denominator<=0?{numerator:null,denominator:null,reason:`not_applicable`}:{numerator:e.numerator,denominator:e.denominator,...e.unattributed===void 0?{}:{unattributed:e.unattributed},...e.unchecked===void 0?{}:{unchecked:e.unchecked}}}function W(e){return e.kind===`exact`?e.url:e.kind===`prefix`?`https://${e.host}${e.pathPrefix===`/`?``:e.pathPrefix}/*`:`https://${e.host}/*`}function G(e){return e===`assigned`?`this-property`:e===`sibling`?`another-property`:e===`ownedUnmapped`?`owned-unassigned`:e===`external`?`external`:e===`ambiguous`?`multiple-properties`:`invalid-url`}function K(e){return e===`assigned`?`positive`:e===`external`?`neutral`:e===`invalid`?`negative`:`caution`}function q(e){return`target:${e.targetKey}:${e.queryId}:${e.executionNodeKey}`}function J(e,t,n){let r=new Map;if(!t)return r;let i=new Map(e.usageEdges.map(e=>[q(e),e.targetKey])),a=new Map(e.assignments.map(e=>[`${e.targetKey}:${e.queryId}`,e.queryClass])),o=new Map(e.usageEdges.map(e=>[q(e),a.get(`${e.targetKey}:${e.queryId}`)]));for(let e of t.evidence){if(n&&o.get(e.usageEdgeId)!==n)continue;let t=i.get(e.usageEdgeId);if(!t)continue;let a=r.get(t)??[];a.push({id:`${e.observationId}:${e.expectedSlotId}:${e.usageEdgeId}:${e.sourceUrl}`,kind:G(e.classification),query:e.queryText,provider:e.provider,location:e.location,url:e.sourceUrl,tone:K(e.classification),historical:e.historical||e.bridged}),r.set(t,a)}return r}function Y(e){if(e.flags>0)return{label:`Review`,tone:`caution`};let t=[e.mentionCoverage,e.citationCoverage].filter(e=>e.state===`unavailable`).map(e=>e.reason);return t.includes(`no_completed_run`)?{label:`Not measured`,tone:`neutral`}:t.includes(`plan_v1`)?{label:`Update setup`,tone:`caution`}:t.includes(`evidence_incomplete`)?{label:`Evidence incomplete`,tone:`caution`}:t.includes(`identity_ambiguous`)?{label:N.ambiguous,tone:`caution`}:t.includes(`no_population`)?{label:`No queries`,tone:`neutral`}:t.includes(`not_applicable`)?{label:`Not applicable`,tone:`neutral`}:{label:`Complete`,tone:`positive`}}function X(e){return e===`complete`?{label:`Complete`,tone:`positive`}:e===`partial`?{label:`Partial`,tone:`caution`}:e===`queued`?{label:`Queued`,tone:`neutral`}:e===`running`?{label:`Running`,tone:`neutral`}:e===`failed`?{label:`Failed`,tone:`negative`}:{label:`Not measured`,tone:`neutral`}}function te(e){if(!e)return``;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`}):``}function Z(e){let t=e.nextAction.count??e.flags.total;if(e.nextAction.kind===`review_flags`)return`${t} flagged ${t===1?`result needs`:`results need`} review.`;if(e.nextAction.kind===`complete_setup`)return`Finish setup.`;if(e.nextAction.kind===`republish_setup`)return`Setup update required.`;if(e.nextAction.kind===`run_measurement`)return`Ready to measure.`}function ne({overview:e,activePlan:t,report:n,reportState:r=n?`ready`:`loading`,sort:i}){if(t.plan.schemaVersion!==2||e.mode!==`active-v2`)throw Error(`The current overview requires an active version-two setup.`);if(e.scope.kind!==`all`&&e.scope.kind!==`group`)throw Error(`The current overview requires an All Properties or group scope.`);let a=t.plan,o=new Map(a.targets.map(e=>[e.stableKey,e])),s=new Map(a.querySnapshots.map(e=>[e.queryId,e.queryText])),c=new Map;for(let t of a.assignments){if(e.queryClass!==`all`&&t.queryClass!==e.queryClass)continue;let n=s.get(t.queryId);if(!n)continue;let r=c.get(t.targetKey)??new Set;r.add(n),c.set(t.targetKey,r)}let l=n?.revision===t.revision&&n.run?.id===e.measurement.displayedRunId?n:null,u=e.measurement.displayedRunId===void 0||l?`ready`:r===`error`||n!=null?`error`:`loading`,d=J(a,l,e.queryClass===`all`?void 0:e.queryClass),f=new Map;for(let e of a.groups)for(let t of e.targetKeys)f.has(t)||f.set(t,e.label);let p=e.properties.items.map(e=>{let t=o.get(e.targetKey),n=d.get(e.targetKey)??[];return{id:e.targetKey,name:e.label,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage),status:Y(e),providers:e.providers?.map(e=>({provider:e.provider,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage)})),market:f.get(e.targetKey),assignedQueries:[...c.get(e.targetKey)??[]],urls:t?.urlMatchers.map(W)??[],evidence:n,evidenceState:u,historical:n.some(e=>e.historical)}}),m=e.namedShareOfVoice?.entries.map(t=>({name:t.label,coverage:{numerator:t.credits,denominator:e.namedShareOfVoice.denominator}})),h=e.properties.items.flatMap(e=>e.flags>0?[{id:`property:${e.targetKey}`,property:e.label,summary:`${e.flags} ${e.flags===1?`result needs`:`results need`} review.`,tone:`caution`,count:e.flags}]:[]);return{classReporting:`available`,latestMeasurement:{status:X(e.measurement.state),completedSlots:e.measurement.completed,totalSlots:e.measurement.expected,date:te(e.measurement.completedAt),includesBridgedHistory:e.measurement.includesHistoricalData===!0},currentView:{scope:e.scope.kind===`group`?{kind:`group`,...e.scope.key?{key:e.scope.key}:{}}:{kind:`all`},queryClass:e.queryClass,aggregate:{metrics:{propertiesMentioned:U(e.metrics.propertiesMentioned),mentionCoverage:U(e.metrics.mentionCoverage),citationCoverage:U(e.metrics.citationCoverage)},properties:p,...m?{shareOfVoice:m}:{}},propertyTotal:e.properties.totalEstimate??p.length,outcomes:e.outcomes,nextCursor:e.properties.nextCursor,...i?{sort:i}:{}},availableGroups:a.groups.map(e=>({id:e.stableKey,label:e.label})),...Z(e)?{nextActionText:Z(e)}:{},flaggedResultsTotal:e.flags.total,flaggedResults:h}}function Q(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`web-${Date.now()}-${Math.random().toString(36).slice(2)}`}function $(e){return{"If-Match":e,"Idempotency-Key":Q()}}function re(e){return e instanceof m&&(e.statusCode===404||e.statusCode===409||e.statusCode===412)}function ie(e,t){return e instanceof m?t:(e instanceof Error?e.message.trim():``)||t}function ae(e){let t=`Could not calculate assignment impact.`;if(!(e instanceof m)||e.code!==`VALIDATION_ERROR`)return t;let n=e.message.trim();return e.details?.displayToOperator===!0&&n?n:t}var oe={loadSetup:e=>M(()=>_({client:E,path:{name:e}})),loadDraft:e=>M(()=>h({client:E,path:{name:e}})),createDraft:(e,t)=>M(()=>T({client:E,path:{name:e},headers:{"Idempotency-Key":Q()},body:{expectedActiveRevision:t}})),importSitemap:(e,t,n)=>M(()=>k({client:E,path:{name:e},headers:$(t),body:n})),applySitemapSelection:(e,t,n,r)=>M(()=>y({client:E,path:{name:e},headers:$(t),body:{selections:n,selectedTargetKeys:r}})),previewAssignments:(e,t)=>M(()=>g({client:E,path:{name:e},body:t})),applyAssignments:(e,t,n)=>M(()=>w({client:E,path:{name:e},headers:$(t),body:n})),replaceAssignments:(e,t,n)=>M(()=>c({client:E,path:{name:e},headers:$(t),body:n})),applyPairedAssignments:(e,t,n,r)=>M(()=>v({client:E,path:{name:e},headers:$(t),body:{pairs:n,...r?{contextOverride:r}:{}}})),previewMarketRouting:(e,t)=>M(()=>d({client:E,path:{name:e},body:t})),routeMarkets:(e,t,n)=>M(()=>u({client:E,path:{name:e},headers:$(t),body:n})),removeAssignment:(e,t,n,r)=>M(()=>A({client:E,path:{name:e},headers:$(t),body:{targetKeys:n,queryId:r}})),excludeTarget:(e,t,n)=>M(()=>p({client:E,path:{name:e},headers:$(t),body:{targetKey:n,cleanup:`assignments-and-group-memberships`}})),upsertTarget:(e,t,n)=>M(()=>S({client:E,path:{name:e},headers:$(t),body:{target:n}})),upsertGroup:(e,t,n)=>M(()=>o({client:E,path:{name:e},headers:$(t),body:{group:n}})),removeGroup:(e,t,n)=>M(()=>l({client:E,path:{name:e},headers:$(t),body:{groupKey:n}})),upsertCompetitor:(e,t,n)=>M(()=>C({client:E,path:{name:e},headers:$(t),body:n})),removeCompetitor:(e,t,n,r)=>M(()=>f({client:E,path:{name:e},headers:$(t),body:{groupKey:n,competitorKey:r}})),previewGroupMembership:(e,t)=>M(()=>j({client:E,path:{name:e},body:t})),applyGroupMembership:(e,t,n)=>M(()=>O({client:E,path:{name:e},headers:$(t),body:n})),compilePreview:e=>M(()=>D({client:E,path:{name:e}})),diffPreview:e=>M(()=>x({client:E,path:{name:e}})),publish:(e,t,n)=>M(()=>s({client:E,path:{name:e},headers:$(t),body:n})),discard:(e,t)=>M(()=>b({client:E,path:{name:e},headers:$(t)}))};export{ne as a,z as c,ie as i,V as l,ae as n,H as o,re as r,W as s,oe as t};
1
+ import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{J as t,Y as n,q as r,st as i}from"./vendor-lucide-CoTHJwai.js";import{r as a}from"./vendor-markdown-cQgSk2i0.js";import{As as o,Ds as s,Es as c,Fs as l,Ms as u,Ns as d,Os as f,Ps as p,Ss as m,Ts as h,_s as g,a as _,bs as v,co as y,gs as b,hs as x,js as S,ks as C,mo as w,ms as T,mt as E,ps as D,vs as O,ws as k,xs as A,ys as j,yt as M}from"./ToneBadge-BgTLSTKp.js";import{x as N}from"./format-helpers-DVXZD864.js";var P=e(i(),1),F=a(),I=`min-h-11 w-full rounded-md border border-default bg-surface px-3 py-2 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,L=`flex min-h-11 w-full items-center justify-between gap-3 rounded px-2 text-left text-label-14 text-primary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,R=e=>e.kind===`project`?`Whole site`:e.label,z={allMarkets:`All markets`,browse:e=>`Browse ${e}`,select:e=>`Select ${e}`,browseAll:`Browse all properties`},ee=e=>e?.kind===`group`&&e.marketKeys?.length===1?e.marketKeys[0]:void 0,B=e=>`${e} ${e===1?`property`:`properties`}`;function V({options:e,selected:i,onSelect:a,marketKey:o,label:s=`Measurement scope`,labelVisibility:c=`visible`,allowGroupSelect:l=!0}){let u=[...e].sort((e,t)=>e.label.localeCompare(t.label,void 0,{numeric:!0})||e.id.localeCompare(t.id)),[d,f]=(0,P.useState)(``),[p,m]=(0,P.useState)([]),[h,g]=(0,P.useState)(!1),_=(0,P.useRef)(null),v=(0,P.useRef)(null),y=(0,P.useId)(),b=u.filter(e=>e.kind===`group`),x=new Map(b.map(e=>[e.id,e])),S=x.get(p.at(-1)??``),C=x.get(p.at(-2)??``),w=d.trim().toLocaleLowerCase(),T=b.filter(e=>!e.parentGroupIds?.some(e=>x.has(e))),E=u.filter(e=>e.kind===`property`),D=e=>(e.parentGroupIds??[]).map(e=>x.get(e)?.label).filter(Boolean).join(` · `),O=e=>`${R(e)} ${D(e)}`.toLocaleLowerCase().includes(w),k=e=>{let t=[...e.parentGroupIds??[]],n=new Set;for(;t.length;){let e=t.pop();if(e===S?.id)return!0;n.has(e)||(n.add(e),t.push(...x.get(e)?.parentGroupIds??[]))}return!1},A=(h?[]:S?b.filter(e=>w?k(e):e.parentGroupIds?.includes(S.id)):w?b:T).filter(O),j=u.find(e=>e.kind===`market`&&e.id===(o??(i.kind===`market`?i.id:void 0))),M=S&&j&&(S.marketKeys?.includes(j.id)||j.parentGroupIds?.includes(S.id))?j.id:void 0,N=l?M??ee(S):void 0,V=(S?E.filter(e=>e.parentGroupIds?.includes(S.id)&&(!N||e.marketKeys?.includes(N))):w||h||b.length===0?E:[]).filter(O),H=u.filter(e=>e.kind!==`market`||h||!l&&!S&&!w&&b.length>0||l&&S?.marketKeys?.length===1&&!w?!1:(S?w?k(e):e.parentGroupIds?.includes(S.id):w||!e.parentGroupIds?.some(e=>x.has(e)))&&O(e)),U=S||h?[]:u.filter(e=>e.kind===`project`&&O(e));(0,P.useEffect)(()=>{let e=e=>{_.current?.open&&e.target instanceof Node&&!_.current.contains(e.target)&&(_.current.open=!1)};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[]);let W=e=>{_.current&&(_.current.open=!1,_.current.querySelector(`summary`)?.focus());let t=l?e.kind===`property`?N:e.kind===`group`&&e.id===S?.id?M:void 0:void 0;t?a(e,t):a(e)},G=e=>{let t=[],n=x.get(e.parentGroupIds?.[0]??``);for(;n&&!t.includes(n.id)&&n.id!==e.id;)t.unshift(n.id),n=x.get(n.parentGroupIds?.[0]??``);return[...t,e.id]},K=()=>{let e=i.kind===`group`?x.get(i.id):void 0,t=x.get(j?.parentGroupIds?.[0]??``),n=(i.parentGroupIds??[]).flatMap(e=>{let t=x.get(e);return t?[G(t)]:[]}),r=n.find(e=>e.at(-1)===S?.id)??n.sort((e,t)=>t.length-e.length)[0]??[],a=t?G(t):i.marketKeys?.length?[]:r;m(e?G(e):a),g(i.kind===`property`&&a.length===0&&b.length>0),f(``)},q=e=>{m(G(e)),g(!1),f(``),v.current?.focus()},J=(e,t=R(e))=>(0,F.jsxs)(`div`,{className:`flex items-stretch`,children:[(0,F.jsxs)(`button`,{type:`button`,className:L,"aria-label":e.kind===`group`&&!l?z.browse(R(e)):z.select(R(e)),"aria-current":i.kind===e.kind&&i.id===e.id?`true`:void 0,onClick:()=>e.kind===`group`&&!l?q(e):W(e),children:[(0,F.jsxs)(`span`,{className:`min-w-0 break-words`,children:[t,w&&D(e)?(0,F.jsx)(`span`,{className:`block text-label-13 text-secondary`,children:D(e)}):null]}),(0,F.jsx)(`span`,{className:`shrink-0 text-right text-label-13 text-secondary`,children:e.kind===`market`?l?`Query context`:`Market`:e.kind===`property`?`Property`:B(e.targetCount)})]}),l&&e.kind===`group`&&e.id!==S?.id&&u.some(t=>t.parentGroupIds?.includes(e.id))?(0,F.jsx)(`button`,{type:`button`,"aria-label":z.browse(e.label),title:`Browse ${e.label}`,className:`flex min-h-11 min-w-11 items-center justify-center rounded text-secondary hover:bg-surface-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,onClick:()=>q(e),children:(0,F.jsx)(r,{size:18,"aria-hidden":`true`})}):null]},`${e.kind}:${e.id}`),Y=(e,t)=>t.length>0?(0,F.jsxs)(`section`,{"aria-label":e,className:`mt-2`,children:[(0,F.jsx)(`h3`,{className:`px-2 py-2 text-heading-14 text-secondary`,children:e}),t.map(e=>J(e))]}):null,X=(e,t,n)=>t.length>0?(0,F.jsxs)(`details`,{open:n,className:`mt-2 border-y border-default`,children:[(0,F.jsxs)(`summary`,{className:`min-h-11 cursor-pointer px-2 py-3 text-label-14 text-primary focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:[e,` (`,t.length,`)`]}),t.map(e=>J(e))]},`${S?.id??`root`}:${e}`):null;return(0,F.jsxs)(`div`,{className:`min-w-0`,children:[(0,F.jsx)(`span`,{id:`${y}-label`,className:c===`sr-only`?`sr-only`:`mb-1 block text-label-14-strong text-heading`,children:s}),(0,F.jsxs)(`details`,{ref:_,className:`relative`,onToggle:e=>{e.target===e.currentTarget&&e.currentTarget.open&&v.current?.focus()},onKeyDown:e=>{e.key===`Escape`&&(e.preventDefault(),e.currentTarget.open=!1,e.currentTarget.querySelector(`summary`)?.focus())},children:[(0,F.jsxs)(`summary`,{id:`${y}-value`,"aria-labelledby":`${y}-label ${y}-value`,className:`${I} visibility-scope-trigger`,onClick:()=>{_.current?.open||K()},children:[`${R(i)}${i.kind===`group`?` · ${B(i.targetCount)}`:i.kind===`property`?` · ${u.find(e=>e.kind===`market`&&e.id===o)?.label??(i.marketKeys?.length?z.allMarkets:`Property`)}`:i.kind===`market`?` · Market`:``}`,(0,F.jsx)(n,{size:16,"aria-hidden":`true`,className:`shrink-0 text-secondary`})]}),(0,F.jsxs)(`div`,{className:`visibility-scope-menu`,children:[S||h?(0,F.jsxs)(`div`,{className:`mb-2 border-b border-default pb-2`,children:[(0,F.jsx)(`button`,{type:`button`,className:L,"aria-label":`Back to ${C?.label??`all groups`}`,onClick:()=>{m(p.slice(0,-1)),g(!1),f(``),v.current?.focus()},children:(0,F.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,F.jsx)(t,{size:16,"aria-hidden":`true`}),C?.label??`All groups`]})}),(0,F.jsx)(`p`,{className:`px-2 py-1 text-copy-14-strong text-heading`,"aria-live":`polite`,children:S?.label??`All properties`})]}):null,(0,F.jsx)(`input`,{ref:v,type:`search`,"aria-label":`Search scopes`,className:I,placeholder:S?`Search within this group`:h?`Search properties`:`Search groups or properties`,value:d,onChange:e=>f(e.target.value)}),(0,F.jsxs)(`div`,{className:`mt-2 max-h-80 overflow-y-auto`,children:[l&&S&&!w?J(S,`All properties in this group`):null,U.map(e=>J(e)),S&&!w?X(`Subgroups`,A,!0):Y(S?`Subgroups`:`Groups`,A),w?Y(`Properties`,V):X(S&&A.length>0?`All properties`:`Properties`,V,!S||A.length===0),Y(`Markets`,H),!S&&!h&&!w&&b.length>0&&E.length>0?(0,F.jsxs)(`button`,{type:`button`,className:`${L} mt-2 border-t border-default`,"aria-label":z.browseAll,onClick:()=>{g(!0),v.current?.focus()},children:[(0,F.jsx)(`span`,{children:`All properties`}),(0,F.jsx)(r,{size:18,"aria-hidden":`true`})]}):null,w&&A.length+V.length+H.length+U.length===0?(0,F.jsx)(`p`,{className:`py-3 text-copy-14 text-secondary`,children:`No matching scopes.`}):null]})]})]})]})}function H(e){let t=e[0];return!t||e.every(e=>e.mode===t.mode&&e.scope.kind===t.scope.kind&&e.scope.key===t.scope.key&&e.queryClass===t.queryClass&&e.measurement.displayedRunId===t.measurement.displayedRunId)}function U(e){return e.state===`unavailable`?{numerator:null,denominator:null,reason:e.reason}:e.numerator===void 0||e.denominator===void 0||e.denominator<=0?{numerator:null,denominator:null,reason:`not_applicable`}:{numerator:e.numerator,denominator:e.denominator,...e.unattributed===void 0?{}:{unattributed:e.unattributed},...e.unchecked===void 0?{}:{unchecked:e.unchecked}}}function W(e){return e.kind===`exact`?e.url:e.kind===`prefix`?`https://${e.host}${e.pathPrefix===`/`?``:e.pathPrefix}/*`:`https://${e.host}/*`}function G(e){return e===`assigned`?`this-property`:e===`sibling`?`another-property`:e===`ownedUnmapped`?`owned-unassigned`:e===`external`?`external`:e===`ambiguous`?`multiple-properties`:`invalid-url`}function K(e){return e===`assigned`?`positive`:e===`external`?`neutral`:e===`invalid`?`negative`:`caution`}function q(e){return`target:${e.targetKey}:${e.queryId}:${e.executionNodeKey}`}function J(e,t,n){let r=new Map;if(!t)return r;let i=new Map(e.usageEdges.map(e=>[q(e),e.targetKey])),a=new Map(e.assignments.map(e=>[`${e.targetKey}:${e.queryId}`,e.queryClass])),o=new Map(e.usageEdges.map(e=>[q(e),a.get(`${e.targetKey}:${e.queryId}`)]));for(let e of t.evidence){if(n&&o.get(e.usageEdgeId)!==n)continue;let t=i.get(e.usageEdgeId);if(!t)continue;let a=r.get(t)??[];a.push({id:`${e.observationId}:${e.expectedSlotId}:${e.usageEdgeId}:${e.sourceUrl}`,kind:G(e.classification),query:e.queryText,provider:e.provider,location:e.location,url:e.sourceUrl,tone:K(e.classification),historical:e.historical||e.bridged}),r.set(t,a)}return r}function Y(e){if(e.flags>0)return{label:`Review`,tone:`caution`};let t=[e.mentionCoverage,e.citationCoverage].filter(e=>e.state===`unavailable`).map(e=>e.reason);return t.includes(`no_completed_run`)?{label:`Not measured`,tone:`neutral`}:t.includes(`plan_v1`)?{label:`Update setup`,tone:`caution`}:t.includes(`evidence_incomplete`)?{label:`Evidence incomplete`,tone:`caution`}:t.includes(`identity_ambiguous`)?{label:N.ambiguous,tone:`caution`}:t.includes(`no_population`)?{label:`No queries`,tone:`neutral`}:t.includes(`not_applicable`)?{label:`Not applicable`,tone:`neutral`}:{label:`Complete`,tone:`positive`}}function X(e){return e===`complete`?{label:`Complete`,tone:`positive`}:e===`partial`?{label:`Partial`,tone:`caution`}:e===`queued`?{label:`Queued`,tone:`neutral`}:e===`running`?{label:`Running`,tone:`neutral`}:e===`failed`?{label:`Failed`,tone:`negative`}:{label:`Not measured`,tone:`neutral`}}function te(e){if(!e)return``;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleDateString(`en-US`,{month:`short`,day:`numeric`,year:`numeric`,timeZone:`UTC`}):``}function Z(e){let t=e.nextAction.count??e.flags.total;if(e.nextAction.kind===`review_flags`)return`${t} flagged ${t===1?`result needs`:`results need`} review.`;if(e.nextAction.kind===`complete_setup`)return`Finish setup.`;if(e.nextAction.kind===`republish_setup`)return`Setup update required.`;if(e.nextAction.kind===`run_measurement`)return`Ready to measure.`}function ne({overview:e,activePlan:t,report:n,reportState:r=n?`ready`:`loading`,sort:i}){if(t.plan.schemaVersion!==2||e.mode!==`active-v2`)throw Error(`The current overview requires an active version-two setup.`);if(e.scope.kind!==`all`&&e.scope.kind!==`group`)throw Error(`The current overview requires an All Properties or group scope.`);let a=t.plan,o=new Map(a.targets.map(e=>[e.stableKey,e])),s=new Map(a.querySnapshots.map(e=>[e.queryId,e.queryText])),c=new Map;for(let t of a.assignments){if(e.queryClass!==`all`&&t.queryClass!==e.queryClass)continue;let n=s.get(t.queryId);if(!n)continue;let r=c.get(t.targetKey)??new Set;r.add(n),c.set(t.targetKey,r)}let l=n?.revision===t.revision&&n.run?.id===e.measurement.displayedRunId?n:null,u=e.measurement.displayedRunId===void 0||l?`ready`:r===`error`||n!=null?`error`:`loading`,d=J(a,l,e.queryClass===`all`?void 0:e.queryClass),f=new Map;for(let e of a.groups)for(let t of e.targetKeys)f.has(t)||f.set(t,e.label);let p=e.properties.items.map(e=>{let t=o.get(e.targetKey),n=d.get(e.targetKey)??[];return{id:e.targetKey,name:e.label,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage),status:Y(e),providers:e.providers?.map(e=>({provider:e.provider,mentionCoverage:U(e.mentionCoverage),citationCoverage:U(e.citationCoverage)})),market:f.get(e.targetKey),assignedQueries:[...c.get(e.targetKey)??[]],urls:t?.urlMatchers.map(W)??[],evidence:n,evidenceState:u,historical:n.some(e=>e.historical)}}),m=e.namedShareOfVoice?.entries.map(t=>({name:t.label,coverage:{numerator:t.credits,denominator:e.namedShareOfVoice.denominator}})),h=e.properties.items.flatMap(e=>e.flags>0?[{id:`property:${e.targetKey}`,property:e.label,summary:`${e.flags} ${e.flags===1?`result needs`:`results need`} review.`,tone:`caution`,count:e.flags}]:[]);return{classReporting:`available`,latestMeasurement:{status:X(e.measurement.state),completedSlots:e.measurement.completed,totalSlots:e.measurement.expected,date:te(e.measurement.completedAt),includesBridgedHistory:e.measurement.includesHistoricalData===!0},currentView:{scope:e.scope.kind===`group`?{kind:`group`,...e.scope.key?{key:e.scope.key}:{}}:{kind:`all`},queryClass:e.queryClass,aggregate:{metrics:{propertiesMentioned:U(e.metrics.propertiesMentioned),mentionCoverage:U(e.metrics.mentionCoverage),citationCoverage:U(e.metrics.citationCoverage)},properties:p,...m?{shareOfVoice:m}:{}},propertyTotal:e.properties.totalEstimate??p.length,outcomes:e.outcomes,nextCursor:e.properties.nextCursor,...i?{sort:i}:{}},availableGroups:a.groups.map(e=>({id:e.stableKey,label:e.label})),...Z(e)?{nextActionText:Z(e)}:{},flaggedResultsTotal:e.flags.total,flaggedResults:h}}function Q(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`web-${Date.now()}-${Math.random().toString(36).slice(2)}`}function $(e){return{"If-Match":e,"Idempotency-Key":Q()}}function re(e){return e instanceof _&&(e.statusCode===404||e.statusCode===409||e.statusCode===412)}function ie(e,t){return e instanceof _?t:(e instanceof Error?e.message.trim():``)||t}function ae(e){let t=`Could not calculate assignment impact.`;if(!(e instanceof _)||e.code!==`VALIDATION_ERROR`)return t;let n=e.message.trim();return e.details?.displayToOperator===!0&&n?n:t}var oe={loadSetup:e=>M(()=>w({client:E,path:{name:e}})),loadDraft:e=>M(()=>y({client:E,path:{name:e}})),createDraft:(e,t)=>M(()=>O({client:E,path:{name:e},headers:{"Idempotency-Key":Q()},body:{expectedActiveRevision:t}})),importSitemap:(e,t,n)=>M(()=>m({client:E,path:{name:e},headers:$(t),body:n})),applySitemapSelection:(e,t,n,r)=>M(()=>b({client:E,path:{name:e},headers:$(t),body:{selections:n,selectedTargetKeys:r}})),previewAssignments:(e,t)=>M(()=>k({client:E,path:{name:e},body:t})),applyAssignments:(e,t,n)=>M(()=>D({client:E,path:{name:e},headers:$(t),body:n})),replaceAssignments:(e,t,n)=>M(()=>S({client:E,path:{name:e},headers:$(t),body:n})),applyPairedAssignments:(e,t,n,r)=>M(()=>x({client:E,path:{name:e},headers:$(t),body:{pairs:n,...r?{contextOverride:r}:{}}})),previewMarketRouting:(e,t)=>M(()=>c({client:E,path:{name:e},body:t})),routeMarkets:(e,t,n)=>M(()=>u({client:E,path:{name:e},headers:$(t),body:n})),removeAssignment:(e,t,n,r)=>M(()=>f({client:E,path:{name:e},headers:$(t),body:{targetKeys:n,queryId:r}})),excludeTarget:(e,t,n)=>M(()=>A({client:E,path:{name:e},headers:$(t),body:{targetKey:n,cleanup:`assignments-and-group-memberships`}})),upsertTarget:(e,t,n)=>M(()=>l({client:E,path:{name:e},headers:$(t),body:{target:n}})),upsertGroup:(e,t,n)=>M(()=>p({client:E,path:{name:e},headers:$(t),body:{group:n}})),removeGroup:(e,t,n)=>M(()=>o({client:E,path:{name:e},headers:$(t),body:{groupKey:n}})),upsertCompetitor:(e,t,n)=>M(()=>d({client:E,path:{name:e},headers:$(t),body:n})),removeCompetitor:(e,t,n,r)=>M(()=>C({client:E,path:{name:e},headers:$(t),body:{groupKey:n,competitorKey:r}})),previewGroupMembership:(e,t)=>M(()=>h({client:E,path:{name:e},body:t})),applyGroupMembership:(e,t,n)=>M(()=>T({client:E,path:{name:e},headers:$(t),body:n})),compilePreview:e=>M(()=>g({client:E,path:{name:e}})),diffPreview:e=>M(()=>j({client:E,path:{name:e}})),publish:(e,t,n)=>M(()=>s({client:E,path:{name:e},headers:$(t),body:n})),discard:(e,t)=>M(()=>v({client:E,path:{name:e},headers:$(t)}))};export{ne as a,z as c,ie as i,V as l,ae as n,H as o,re as r,W as s,oe as t};
package/assets/index.html CHANGED
@@ -12,24 +12,24 @@
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-C5r0VqgO.js"></script>
15
+ <script type="module" crossorigin src="./assets/index-CsvEqhK4.js"></script>
16
16
  <link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-XKyaHtl9.js">
17
17
  <link rel="modulepreload" crossorigin href="./assets/vendor-lucide-CoTHJwai.js">
18
18
  <link rel="modulepreload" crossorigin href="./assets/vendor-markdown-cQgSk2i0.js">
19
19
  <link rel="modulepreload" crossorigin href="./assets/vendor-radix-wS8sWIWE.js">
20
20
  <link rel="modulepreload" crossorigin href="./assets/vendor-recharts-AnNqECZW.js">
21
21
  <link rel="modulepreload" crossorigin href="./assets/vendor-tanstack-q5SvZtcv.js">
22
- <link rel="modulepreload" crossorigin href="./assets/ToneBadge-WAMyKadz.js">
23
- <link rel="modulepreload" crossorigin href="./assets/format-helpers-D1w2yznw.js">
24
- <link rel="modulepreload" crossorigin href="./assets/account-context-BmN431xn.js">
22
+ <link rel="modulepreload" crossorigin href="./assets/ToneBadge-BgTLSTKp.js">
23
+ <link rel="modulepreload" crossorigin href="./assets/format-helpers-DVXZD864.js">
24
+ <link rel="modulepreload" crossorigin href="./assets/account-context-CVjb3ZSn.js">
25
25
  <link rel="modulepreload" crossorigin href="./assets/async-handler-Bj3TnIRw.js">
26
- <link rel="modulepreload" crossorigin href="./assets/query-client-DrIawr39.js">
27
- <link rel="modulepreload" crossorigin href="./assets/react-query-DQuOVjDi.js">
28
- <link rel="modulepreload" crossorigin href="./assets/ChartPrimitives-B5L9FUj3.js">
26
+ <link rel="modulepreload" crossorigin href="./assets/query-client-CVc7wMKJ.js">
27
+ <link rel="modulepreload" crossorigin href="./assets/react-query-CSlTSOjz.js">
28
+ <link rel="modulepreload" crossorigin href="./assets/ChartPrimitives-4D5wgAn5.js">
29
29
  <link rel="modulepreload" crossorigin href="./assets/InfoTooltip-DrBIPuSU.js">
30
- <link rel="modulepreload" crossorigin href="./assets/card-DUTMWeHB.js">
30
+ <link rel="modulepreload" crossorigin href="./assets/card-BnVez9nG.js">
31
31
  <link rel="modulepreload" crossorigin href="./assets/vendor-yaml-Y43rmNgW.js">
32
- <link rel="stylesheet" crossorigin href="./assets/index-DIHdWY7b.css">
32
+ <link rel="stylesheet" crossorigin href="./assets/index-BOUrrC9J.css">
33
33
  </head>
34
34
  <body>
35
35
  <script id="theme-bootstrap">
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -31,7 +31,7 @@ import {
31
31
  describeError,
32
32
  formatMicros,
33
33
  formatPercent
34
- } from "./chunk-KUVTXIFX.js";
34
+ } from "./chunk-F643WELJ.js";
35
35
  import "./chunk-MLKGABMK.js";
36
36
 
37
37
  // src/commands/ads.ts
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-E6IZVSRY.js";
4
- import "./chunk-Z5LJI5XK.js";
5
- import "./chunk-CBNFWSWU.js";
3
+ } from "./chunk-GDU6IMGB.js";
4
+ import "./chunk-6F5ULQDY.js";
5
+ import "./chunk-DOPUEXMC.js";
6
6
  import {
7
7
  createApiClient
8
- } from "./chunk-VBW33U4E.js";
9
- import "./chunk-U3QNTJBP.js";
8
+ } from "./chunk-TEQF4ZJA.js";
9
+ import "./chunk-2FJB3CSS.js";
10
10
  import "./chunk-AOJU5LKX.js";
11
11
  import {
12
12
  isMachineFormat
13
13
  } from "./chunk-HGMYEDAQ.js";
14
- import "./chunk-UTG6UUGK.js";
15
- import "./chunk-KUVTXIFX.js";
14
+ import "./chunk-GBWCEOZR.js";
15
+ import "./chunk-F643WELJ.js";
16
16
  import "./chunk-MLKGABMK.js";
17
17
 
18
18
  // src/agent-webhook.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -9,7 +9,7 @@ import {
9
9
  isMachineFormat,
10
10
  printCliError
11
11
  } from "./chunk-HGMYEDAQ.js";
12
- import "./chunk-KUVTXIFX.js";
12
+ import "./chunk-F643WELJ.js";
13
13
  import "./chunk-MLKGABMK.js";
14
14
 
15
15
  // src/commands/agent-ask.ts
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
8
8
  isMachineFormat,
9
9
  printCliError
10
10
  } from "./chunk-HGMYEDAQ.js";
11
- import "./chunk-KUVTXIFX.js";
11
+ import "./chunk-F643WELJ.js";
12
12
  import "./chunk-MLKGABMK.js";
13
13
 
14
14
  // src/commands/agent-conversations.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -14,7 +14,7 @@ import {
14
14
  AgentJourneyCorrelationBases,
15
15
  agentJourneysQuerySchema,
16
16
  formatValidationIssues
17
- } from "./chunk-KUVTXIFX.js";
17
+ } from "./chunk-F643WELJ.js";
18
18
  import "./chunk-MLKGABMK.js";
19
19
 
20
20
  // src/commands/agent-journeys.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -11,7 +11,7 @@ import {
11
11
  isMachineFormat,
12
12
  printCliError
13
13
  } from "./chunk-HGMYEDAQ.js";
14
- import "./chunk-KUVTXIFX.js";
14
+ import "./chunk-F643WELJ.js";
15
15
  import "./chunk-MLKGABMK.js";
16
16
 
17
17
  // src/commands/agent-memory.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -10,7 +10,7 @@ import {
10
10
  CliError,
11
11
  printCliError
12
12
  } from "./chunk-HGMYEDAQ.js";
13
- import "./chunk-KUVTXIFX.js";
13
+ import "./chunk-F643WELJ.js";
14
14
  import "./chunk-MLKGABMK.js";
15
15
 
16
16
  // src/commands/agent-providers.ts
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
8
8
  isMachineFormat,
9
9
  printCliError
10
10
  } from "./chunk-HGMYEDAQ.js";
11
- import "./chunk-KUVTXIFX.js";
11
+ import "./chunk-F643WELJ.js";
12
12
  import "./chunk-MLKGABMK.js";
13
13
 
14
14
  // src/commands/agent-transcript.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -13,7 +13,7 @@ import {
13
13
  formatPercent,
14
14
  formatSignedPointDelta,
15
15
  queryClassFilterSchema
16
- } from "./chunk-KUVTXIFX.js";
16
+ } from "./chunk-F643WELJ.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // src/commands/analytics.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import "./chunk-AOJU5LKX.js";
6
6
  import {
7
7
  CliError,
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-HGMYEDAQ.js";
11
11
  import {
12
12
  describeError
13
- } from "./chunk-KUVTXIFX.js";
13
+ } from "./chunk-F643WELJ.js";
14
14
  import "./chunk-MLKGABMK.js";
15
15
 
16
16
  // src/commands/apply.ts
@@ -10,20 +10,20 @@ import {
10
10
  backfillSnapshotAttributionCommand,
11
11
  backfillTrafficClassificationCommand,
12
12
  replayQueryAuditLog
13
- } from "./chunk-LJ6VNMCY.js";
14
- import "./chunk-4EKPEVJ2.js";
15
- import "./chunk-U3QNTJBP.js";
13
+ } from "./chunk-D5V6YQXA.js";
14
+ import "./chunk-L5NMS7AU.js";
15
+ import "./chunk-2FJB3CSS.js";
16
16
  import "./chunk-HGMYEDAQ.js";
17
- import "./chunk-BLGYC2K7.js";
18
- import "./chunk-JAK37YKH.js";
17
+ import "./chunk-JAYUWQAV.js";
18
+ import "./chunk-IBGZ6D6R.js";
19
19
  import {
20
20
  backfillProjectAnswerMentions,
21
21
  backfillProjectAnswerMentionsInChunks
22
- } from "./chunk-DU4QEC65.js";
23
- import "./chunk-MJE3SGFW.js";
24
- import "./chunk-UTG6UUGK.js";
25
- import "./chunk-SUSQEH2D.js";
26
- import "./chunk-KUVTXIFX.js";
22
+ } from "./chunk-EQGCGZZY.js";
23
+ import "./chunk-VDYXB6SV.js";
24
+ import "./chunk-GBWCEOZR.js";
25
+ import "./chunk-O26FQ7RI.js";
26
+ import "./chunk-F643WELJ.js";
27
27
  import "./chunk-MLKGABMK.js";
28
28
  export {
29
29
  activeQueriesAt,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -17,7 +17,7 @@ import {
17
17
  backlinkSourceSchema,
18
18
  formatPercent,
19
19
  formatRunErrorOneLine
20
- } from "./chunk-KUVTXIFX.js";
20
+ } from "./chunk-F643WELJ.js";
21
21
  import "./chunk-MLKGABMK.js";
22
22
 
23
23
  // src/commands/backlinks.ts
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
4
- import "./chunk-U3QNTJBP.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
+ import "./chunk-2FJB3CSS.js";
5
5
  import {
6
6
  emitJsonl
7
7
  } from "./chunk-Z7IUAJOF.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  describeError,
15
15
  formatPercent
16
- } from "./chunk-KUVTXIFX.js";
16
+ } from "./chunk-F643WELJ.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // src/commands/bing.ts
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-E6IZVSRY.js";
3
+ } from "./chunk-GDU6IMGB.js";
4
4
  import {
5
5
  answerServiceDescriptors
6
- } from "./chunk-2J5EUXO2.js";
6
+ } from "./chunk-IK7QEKKD.js";
7
7
  import {
8
8
  outcomeFailure
9
- } from "./chunk-Z5LJI5XK.js";
9
+ } from "./chunk-6F5ULQDY.js";
10
10
  import {
11
11
  isLoopbackBindHost
12
12
  } from "./chunk-TSENU4GG.js";
13
13
  import {
14
14
  registeredProviderNames
15
- } from "./chunk-KEIKD6JQ.js";
15
+ } from "./chunk-3KK6FWDF.js";
16
16
  import {
17
17
  isTelemetryEnabled,
18
18
  recordInstallRef
19
- } from "./chunk-CBNFWSWU.js";
19
+ } from "./chunk-DOPUEXMC.js";
20
20
  import {
21
21
  createApiClient
22
- } from "./chunk-VBW33U4E.js";
22
+ } from "./chunk-TEQF4ZJA.js";
23
23
  import {
24
24
  configExists,
25
25
  getAnswerServiceEnv,
@@ -30,7 +30,7 @@ import {
30
30
  loadConfigRaw,
31
31
  saveConfig,
32
32
  withBootstrapProviderDefaults
33
- } from "./chunk-U3QNTJBP.js";
33
+ } from "./chunk-2FJB3CSS.js";
34
34
  import "./chunk-AOJU5LKX.js";
35
35
  import {
36
36
  CliError,
@@ -38,17 +38,17 @@ import {
38
38
  isMachineFormat,
39
39
  systemError
40
40
  } from "./chunk-HGMYEDAQ.js";
41
- import "./chunk-UTG6UUGK.js";
41
+ import "./chunk-GBWCEOZR.js";
42
42
  import {
43
43
  apiKeys,
44
44
  createClient,
45
45
  dashboardSessions,
46
46
  migrate
47
- } from "./chunk-SUSQEH2D.js";
47
+ } from "./chunk-O26FQ7RI.js";
48
48
  import {
49
49
  ProviderNames,
50
50
  ProviderReloadErrorReasons
51
- } from "./chunk-KUVTXIFX.js";
51
+ } from "./chunk-F643WELJ.js";
52
52
  import "./chunk-MLKGABMK.js";
53
53
 
54
54
  // src/commands/bootstrap.ts
@@ -1,26 +1,26 @@
1
1
  import {
2
2
  trackCliConnection
3
- } from "./chunk-E6IZVSRY.js";
3
+ } from "./chunk-GDU6IMGB.js";
4
4
  import {
5
5
  outcomeFailure
6
- } from "./chunk-Z5LJI5XK.js";
7
- import "./chunk-CBNFWSWU.js";
6
+ } from "./chunk-6F5ULQDY.js";
7
+ import "./chunk-DOPUEXMC.js";
8
8
  import {
9
9
  createApiClient
10
- } from "./chunk-VBW33U4E.js";
10
+ } from "./chunk-TEQF4ZJA.js";
11
11
  import {
12
12
  loadConfig,
13
13
  saveConfigPatch
14
- } from "./chunk-U3QNTJBP.js";
14
+ } from "./chunk-2FJB3CSS.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-UTG6UUGK.js";
20
+ import "./chunk-GBWCEOZR.js";
21
21
  import {
22
22
  describeError
23
- } from "./chunk-KUVTXIFX.js";
23
+ } from "./chunk-F643WELJ.js";
24
24
  import "./chunk-MLKGABMK.js";
25
25
 
26
26
  // src/commands/cdp.ts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
3
+ } from "./chunk-TEQF4ZJA.js";
4
4
  import {
5
5
  emitJsonl
6
6
  } from "./chunk-Z7IUAJOF.js";
@@ -19,7 +19,7 @@ import {
19
19
  formatMicros,
20
20
  formatRunErrorOneLine,
21
21
  resolveProviderInput
22
- } from "./chunk-KUVTXIFX.js";
22
+ } from "./chunk-F643WELJ.js";
23
23
 
24
24
  // src/commands/run.ts
25
25
  function getClient() {
@@ -20,7 +20,7 @@ import {
20
20
  resolveProviderModel,
21
21
  schedulableRunKindSchema,
22
22
  sentimentEvaluatorProviderSchema
23
- } from "./chunk-KUVTXIFX.js";
23
+ } from "./chunk-F643WELJ.js";
24
24
 
25
25
  // ../config/src/index.ts
26
26
  import { z as z5 } from "zod";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  API_PROVIDER_NAMES,
3
3
  ProviderNames
4
- } from "./chunk-KUVTXIFX.js";
4
+ } from "./chunk-F643WELJ.js";
5
5
 
6
6
  // src/provider-registration.ts
7
7
  function isApiProviderRegistrable(name, entry) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  cloudflareQueueNameSchema
3
- } from "./chunk-KUVTXIFX.js";
3
+ } from "./chunk-F643WELJ.js";
4
4
 
5
5
  // src/cloudflare-traffic-config.ts
6
6
  function unsupportedDeliveryMode(deliveryMode) {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createApiClient
3
- } from "./chunk-VBW33U4E.js";
3
+ } from "./chunk-TEQF4ZJA.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-F5SQITTJ.js";
10
+ } from "./chunk-MNLAIB67.js";
11
11
  import {
12
12
  isMachineFormat,
13
13
  systemError
@@ -37,7 +37,7 @@ import {
37
37
  unattributedAnswersLabel,
38
38
  uncheckedSourcesLabel,
39
39
  visibilityReportRequestSchema
40
- } from "./chunk-KUVTXIFX.js";
40
+ } from "./chunk-F643WELJ.js";
41
41
 
42
42
  // src/commands/measurement-plan.ts
43
43
  import crypto from "crypto";
@@ -2,13 +2,13 @@ import {
2
2
  bucketCliCommandDuration,
3
3
  isTelemetryEnabled,
4
4
  trackEvent
5
- } from "./chunk-CBNFWSWU.js";
5
+ } from "./chunk-DOPUEXMC.js";
6
6
  import {
7
7
  getConfigDir
8
- } from "./chunk-U3QNTJBP.js";
8
+ } from "./chunk-2FJB3CSS.js";
9
9
  import {
10
10
  currentOutcomeAttribution
11
- } from "./chunk-UTG6UUGK.js";
11
+ } from "./chunk-GBWCEOZR.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-KUVTXIFX.js";
22
+ } from "./chunk-F643WELJ.js";
23
23
 
24
24
  // src/outcome-telemetry.ts
25
25
  import fs from "fs";
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-VJWDBFSL.js";
5
5
  import {
6
6
  createApiClient
7
- } from "./chunk-VBW33U4E.js";
7
+ } from "./chunk-TEQF4ZJA.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-KUVTXIFX.js";
14
+ } from "./chunk-F643WELJ.js";
15
15
 
16
16
  // src/commands/mcp.ts
17
17
  import fs from "fs";
@@ -5,7 +5,7 @@ import {
5
5
  AppError,
6
6
  parseWindowIn,
7
7
  resolveDateRange
8
- } from "./chunk-KUVTXIFX.js";
8
+ } from "./chunk-F643WELJ.js";
9
9
 
10
10
  // src/cli-access.ts
11
11
  var CLI_ACCESS_BY_ID = Object.freeze({
@@ -404,6 +404,7 @@ var CLI_ACCESS_BY_ID = Object.freeze({
404
404
  "traffic.sources": "stored",
405
405
  "traffic.status": "stored",
406
406
  "traffic.sync": "write",
407
+ "trends": "stored",
407
408
  "user": "stored",
408
409
  "user.create": "write",
409
410
  "user.delete": "write",