@canonry/canonry 7.80.0 → 7.82.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 +16 -0
- package/assets/agent-workspace/skills/canonry/references/server-side-traffic.md +13 -0
- package/assets/assets/{AgentSetupPage-Cr2ZU_4s.js → AgentSetupPage-CcjQeUvK.js} +1 -1
- package/assets/assets/{AuditHistoryPanel-Bb5wq-Bk.js → AuditHistoryPanel-DgTvt2hQ.js} +1 -1
- package/assets/assets/{BacklinksPage-i1cfxTDj.js → BacklinksPage-DFQhtk4d.js} +1 -1
- package/assets/assets/{HistoryPage-C2NRdNrn.js → HistoryPage-CkkWqQol.js} +1 -1
- package/assets/assets/{MeasurementPropertyPage-ighxjOiq.js → MeasurementPropertyPage-Cwnda2BA.js} +1 -1
- package/assets/assets/{ProjectPage-DnAXCPle.js → ProjectPage-C39ua8CG.js} +1 -1
- package/assets/assets/{RunsPage-Ds5K3fOQ.js → RunsPage-B4tMl-_9.js} +1 -1
- package/assets/assets/{SettingsPage-B8Jed-xH.js → SettingsPage-DmDdf02o.js} +1 -1
- package/assets/assets/{SiteHealthSection-cjNQasWj.js → SiteHealthSection-CfQePJ7s.js} +2 -2
- package/assets/assets/ToneBadge-bXf5LaSI.js +60 -0
- package/assets/assets/{TrafficPage-BUid1rkh.js → TrafficPage-C9y8xEr6.js} +1 -1
- package/assets/assets/{TrafficSourceDetailPage-D3KHgRvF.js → TrafficSourceDetailPage-Dklvlek4.js} +1 -1
- package/assets/assets/{account-context-B50QqDEA.js → account-context-BjM5ZlYl.js} +1 -1
- package/assets/assets/{card-BE2fqwVq.js → card-CDFncx20.js} +1 -1
- package/assets/assets/{extract-error-message-xuN_xeRJ.js → extract-error-message-s3FKmMjt.js} +1 -1
- package/assets/assets/{format-helpers-CiC6gALY.js → format-helpers-CYQ-LjnQ.js} +1 -1
- package/assets/assets/{index-BhoSVTom.js → index-qWvnlyfA.js} +4 -4
- package/assets/assets/{query-client-C5GhDMY7.js → query-client-C_dAEVvf.js} +1 -1
- package/assets/assets/{react-query-CmHyfYFq.js → react-query-BKozxbv1.js} +1 -1
- package/assets/assets/{react-sigma_core.esm.min-SbOH7c6K.js → react-sigma_core.esm.min-J2l6CcJl.js} +1 -1
- package/assets/assets/{service-B2i_ZzWP.js → service-BhAtQFOI.js} +1 -1
- package/assets/index.html +7 -7
- package/dist/{ads-MNMND5VH.js → ads-UDOONRKQ.js} +3 -3
- package/dist/{agent-4KNDL3D3.js → agent-JTEGEX6X.js} +7 -7
- package/dist/{agent-ask-32RTOL2M.js → agent-ask-PUV4EVGS.js} +3 -3
- package/dist/{agent-conversations-BXVWHUZC.js → agent-conversations-TWTSQHBR.js} +3 -3
- package/dist/{agent-memory-7R7UVFS5.js → agent-memory-ZJEXAUJB.js} +3 -3
- package/dist/{agent-providers-QGVLCCH4.js → agent-providers-2RQZSGMP.js} +3 -3
- package/dist/{agent-transcript-7Y6BJCIT.js → agent-transcript-YYS3XBES.js} +3 -3
- package/dist/{analytics-YOGEHW6J.js → analytics-RLC6PRUZ.js} +3 -3
- package/dist/{apply-TB3MF3PH.js → apply-Z5SSCEJ2.js} +3 -3
- package/dist/{backfill-BXEYMV3Y.js → backfill-6K2UMALK.js} +9 -9
- package/dist/{backlinks-6GTL324T.js → backlinks-LDI2VTPT.js} +3 -3
- package/dist/{bing-OMQACSDY.js → bing-SSNMNZEF.js} +3 -3
- package/dist/{bootstrap-ITVA7X45.js → bootstrap-ISRV5I52.js} +10 -10
- package/dist/{cdp-3WBLAWOL.js → cdp-WU7QCPQ3.js} +7 -7
- package/dist/{chunk-7HB6QLX4.js → chunk-2FIDPBWE.js} +1 -1
- package/dist/{chunk-HRFPGXON.js → chunk-2GJLKCXL.js} +61 -1
- package/dist/{chunk-ENUSVOQ5.js → chunk-2PDDTRTG.js} +4 -4
- package/dist/{chunk-AI44ZCMK.js → chunk-462CIYLY.js} +1 -1
- package/dist/{chunk-BLZCNL3B.js → chunk-4IYFVC22.js} +3 -3
- package/dist/{chunk-6ACWXQNZ.js → chunk-5K3S74ZX.js} +2 -1
- package/dist/{chunk-MIQMUSE4.js → chunk-5NDUJLUL.js} +6 -6
- package/dist/{chunk-3QJWOF2B.js → chunk-7ZJHKLTK.js} +1 -1
- package/dist/{chunk-3MGM3U6V.js → chunk-AAMOBJXJ.js} +1 -1
- package/dist/{chunk-OIRHCT63.js → chunk-DWFVH3E2.js} +2 -2
- package/dist/{chunk-72YPSNCG.js → chunk-EIDOBJF2.js} +2 -2
- package/dist/{chunk-45RGH7XI.js → chunk-F4FDJI5O.js} +3 -3
- package/dist/{chunk-7S6SQFFT.js → chunk-GKHM5OT6.js} +2 -2
- package/dist/{chunk-MUYTDD35.js → chunk-HDVJNYYE.js} +18 -3
- package/dist/{chunk-DKONZ36U.js → chunk-J2DA4LUR.js} +402 -270
- package/dist/{chunk-JJO5XNS6.js → chunk-J7EYQFMJ.js} +4 -4
- package/dist/{chunk-WSWHLKKJ.js → chunk-JDEHNF7K.js} +1 -1
- package/dist/{chunk-FCYGY4FT.js → chunk-JMUSNZJR.js} +1 -1
- package/dist/{chunk-KF7I7FBI.js → chunk-JP4RTZGE.js} +2 -2
- package/dist/{chunk-2EWZ3DJ4.js → chunk-LRFCNERP.js} +3 -3
- package/dist/{chunk-B36XUBYK.js → chunk-M7WS2BL3.js} +102 -57
- package/dist/{chunk-PLLDJUG2.js → chunk-NNUZ37NJ.js} +4 -4
- package/dist/{chunk-R3US2RG6.js → chunk-NPMJFPBM.js} +1501 -1353
- package/dist/{chunk-JERATA5R.js → chunk-OH42CAWP.js} +1 -1
- package/dist/{chunk-R26CF4WT.js → chunk-QHEKMJL4.js} +2 -2
- package/dist/{chunk-CJ4JDM5W.js → chunk-RMZCQUKN.js} +347 -335
- package/dist/{chunk-PM2DB3HE.js → chunk-S6IC7ZK2.js} +38 -1
- package/dist/{chunk-T2TIQP5O.js → chunk-SIRWPXGJ.js} +8 -8
- package/dist/{chunk-KZB6HLFT.js → chunk-SVF4P6DB.js} +1 -1
- package/dist/{chunk-RPTOVEZT.js → chunk-T76RQIGK.js} +3 -3
- package/dist/{chunk-TZRYVW75.js → chunk-VVOCZTNC.js} +2 -2
- package/dist/{chunk-4GEEYY3N.js → chunk-VWYB4RA4.js} +2 -2
- package/dist/{chunk-ZHFE6J3A.js → chunk-WB6VIQ7L.js} +1 -1
- package/dist/{chunk-QAVJ6LHN.js → chunk-ZR3RYJF3.js} +5 -5
- package/dist/{chunk-7OAXEMOF.js → chunk-ZX7XDVPC.js} +10 -2
- package/dist/{citations-PGG7JEIN.js → citations-X5LS7SZX.js} +3 -3
- package/dist/{cli-catalog-KC6JYHSW.js → cli-catalog-S4RLOOCK.js} +3 -3
- package/dist/{cli-commands-XFFBO46N.js → cli-commands-BGNM6H6P.js} +7 -7
- package/dist/cli.js +13 -13
- package/dist/{competitor-B3CZOKZU.js → competitor-O5YXN5SD.js} +3 -3
- package/dist/{content-Z4XJMZB4.js → content-C6SO5LNZ.js} +3 -3
- package/dist/{dashboard-L5XCPIFW.js → dashboard-3P6FFYCW.js} +6 -6
- package/dist/{demo-HWM3OWEO.js → demo-OJ6C4DU3.js} +1 -1
- package/dist/{demo-server-5DE5PAEC.js → demo-server-GJXDVREB.js} +12 -12
- package/dist/{discover-OT3K7KQK.js → discover-Z355GK36.js} +3 -3
- package/dist/{discover-eval-DN4J4KD5.js → discover-eval-6OVS55LV.js} +3 -3
- package/dist/{doctor-UDF6OCSR.js → doctor-E52VMIEP.js} +3 -3
- package/dist/{evidence-Z364UFOD.js → evidence-ITVU3HYF.js} +3 -3
- package/dist/{export-cmd-K27XN4G5.js → export-cmd-S2UD3ALT.js} +3 -3
- package/dist/{ga-Q2CELDLG.js → ga-T3UEGAZC.js} +3 -3
- package/dist/{gbp-V2APGSIQ.js → gbp-3G45OTYX.js} +3 -3
- package/dist/{google-WFHYA3QT.js → google-YZS4HLN3.js} +4 -4
- package/dist/{google-marketing-5ROIKBC7.js → google-marketing-LIV6O63R.js} +1 -1
- package/dist/{health-cmd-RGFAJ4YP.js → health-cmd-2FC73XH6.js} +3 -3
- package/dist/{history-RUSU66BZ.js → history-KLRMAVLG.js} +3 -3
- package/dist/index.d.ts +344 -83
- package/dist/index.js +25 -25
- package/dist/{init-WXKOOS25.js → init-CTP7OZTR.js} +12 -12
- package/dist/{insights-4IFQLPS3.js → insights-KTGRGFAN.js} +3 -3
- package/dist/intelligence-service-YX72V6NG.js +16 -0
- package/dist/{journeys-PTC2QY57.js → journeys-PF2OO5W2.js} +3 -3
- package/dist/{keys-JASXI2SR.js → keys-7NTJ7TFJ.js} +3 -3
- package/dist/{keyword-SK2HJXCJ.js → keyword-C37ZTBOS.js} +3 -3
- package/dist/{logs-AS5I5V2A.js → logs-GU223TLX.js} +3 -3
- package/dist/{mcp-BQSOYHEX.js → mcp-2DZFAHOW.js} +4 -4
- package/dist/mcp.js +9 -9
- package/dist/{measurement-plan-LZYYH3OD.js → measurement-plan-ZSZUAW4Y.js} +5 -5
- package/dist/{notify-JM6252F6.js → notify-GYSA5V67.js} +5 -4
- package/dist/{organic-evidence-L3Y6RZIH.js → organic-evidence-2NLMSKHX.js} +3 -3
- package/dist/{overview-VIF2GXYW.js → overview-NL3B5XME.js} +4 -4
- package/dist/{project-FQEPFPRD.js → project-3THJAPRN.js} +3 -3
- package/dist/{query-VKRESS6B.js → query-JU5UHTGT.js} +3 -3
- package/dist/{research-6A6QWKN3.js → research-WLS77NOR.js} +3 -3
- package/dist/{results-export-VUB2ZD5B.js → results-export-RQKUM5OA.js} +3 -3
- package/dist/{run-PG5GYZT7.js → run-H6BA7COC.js} +4 -4
- package/dist/{schedule-EBGOLCQZ.js → schedule-ISTF4OHX.js} +3 -3
- package/dist/{search-NS4XPZRL.js → search-HIYAHDZR.js} +3 -3
- package/dist/{serve-7JITP7HH.js → serve-5WPYWTOF.js} +26 -26
- package/dist/{session-PCUTTGTF.js → session-4B5VWFCF.js} +13 -13
- package/dist/{settings-LNCAYCDF.js → settings-ZI4UQXJO.js} +3 -3
- package/dist/{skills-DWXA55QA.js → skills-LN34DUVA.js} +2 -2
- package/dist/{snapshot-LX7OR7SO.js → snapshot-BDPWMMDS.js} +3 -3
- package/dist/{src-QC2VNJWJ.js → src-UENQLEK4.js} +6 -2
- package/dist/{status-DQ6FNWUT.js → status-6CIRB7TO.js} +4 -4
- package/dist/{technical-aeo-5GU2IY6W.js → technical-aeo-L435UGJL.js} +3 -3
- package/dist/{telemetry-QK2GPII3.js → telemetry-VIY5GILS.js} +4 -4
- package/dist/{tools-LILIKI26.js → tools-LILY27JS.js} +11 -11
- package/dist/{traffic-77CKSYM3.js → traffic-KHGUZSP6.js} +30 -7
- package/dist/{users-7OJ2RGV3.js → users-KLOJMJSB.js} +3 -3
- package/dist/{visibility-stats-VR25XMMY.js → visibility-stats-OG2HEGFX.js} +3 -3
- package/dist/{wordpress-JYXTF4PL.js → wordpress-NPVZAUSN.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/ToneBadge-CUe-WrzN.js +0 -60
- package/dist/intelligence-service-RVKSPP4X.js +0 -16
package/assets/assets/{react-sigma_core.esm.min-SbOH7c6K.js → react-sigma_core.esm.min-J2l6CcJl.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{ot as n}from"./vendor-lucide-BILL9eZH.js";import{c as r,l as i}from"./SiteHealthSection-
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{ot as n}from"./vendor-lucide-BILL9eZH.js";import{c as r,l as i}from"./SiteHealthSection-CfQePJ7s.js";var a=e(n(),1);function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function c(e){if(Array.isArray(e))return e}function l(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function u(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d(e,t){return c(e)||l(e,t)||s(e,t)||u()}function f(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=s(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){c=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(c)throw a}}}}function p(){return Float32Array.of(1,0,0,0,1,0,0,0,1)}function m(e,t,n){return e[0]=t,e[4]=typeof n==`number`?n:t,e}function h(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[3]=-n,e[4]=r,e}function g(e,t,n){return e[6]=t,e[7]=n,e}function _(e,t){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],d=t[0],f=t[1],p=t[2],m=t[3],h=t[4],g=t[5],_=t[6],v=t[7],y=t[8];return e[0]=d*n+f*a+p*c,e[1]=d*r+f*o+p*l,e[2]=d*i+f*s+p*u,e[3]=m*n+h*a+g*c,e[4]=m*r+h*o+g*l,e[5]=m*i+h*s+g*u,e[6]=_*n+v*a+y*c,e[7]=_*r+v*o+y*l,e[8]=_*i+v*s+y*u,e}function v(e,t){var n=Math.cos(t),r=Math.sin(t);return{x:n*e.x+r*e.y,y:-r*e.x+n*e.y}}function y(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=e[0],i=e[1],a=e[3],o=e[4],s=e[6],c=e[7],l=t.x,u=t.y;return{x:l*r+u*a+s*n,y:l*i+u*o+c*n}}function b(e,t){var n=e.height/e.width,r=t.height/t.width;return n<1&&r>1||n>1&&r<1?1:Math.min(Math.max(r,1/r),Math.max(1/n,n))}function x(e,t,n,r,i){var a=e.angle,o=e.ratio,s=e.x,c=e.y,l=t.width,u=t.height,d=p(),f=Math.min(l,u)-2*r,v=b(t,n);return i?(_(d,g(p(),s,c)),_(d,m(p(),o)),_(d,h(p(),a)),_(d,m(p(),l/f/2/v,u/f/2/v))):(_(d,m(p(),f/l*2*v,f/u*2*v)),_(d,h(p(),-a)),_(d,m(p(),1/o)),_(d,g(p(),-s,-c))),d}function S(e,t,n){var r=y(e,{x:Math.cos(t.angle),y:Math.sin(t.angle)},0),i=r.x,a=r.y;return 1/Math.sqrt(i**2+a**2)/n.width}function C(e,t,n,r,i){return[Math.floor(t/i*r),Math.floor(e.drawingBufferHeight/i-n/i*r)]}var w={black:`#000000`,silver:`#C0C0C0`,gray:`#808080`,grey:`#808080`,white:`#FFFFFF`,maroon:`#800000`,red:`#FF0000`,purple:`#800080`,fuchsia:`#FF00FF`,green:`#008000`,lime:`#00FF00`,olive:`#808000`,yellow:`#FFFF00`,navy:`#000080`,blue:`#0000FF`,teal:`#008080`,aqua:`#00FFFF`,darkblue:`#00008B`,mediumblue:`#0000CD`,darkgreen:`#006400`,darkcyan:`#008B8B`,deepskyblue:`#00BFFF`,darkturquoise:`#00CED1`,mediumspringgreen:`#00FA9A`,springgreen:`#00FF7F`,cyan:`#00FFFF`,midnightblue:`#191970`,dodgerblue:`#1E90FF`,lightseagreen:`#20B2AA`,forestgreen:`#228B22`,seagreen:`#2E8B57`,darkslategray:`#2F4F4F`,darkslategrey:`#2F4F4F`,limegreen:`#32CD32`,mediumseagreen:`#3CB371`,turquoise:`#40E0D0`,royalblue:`#4169E1`,steelblue:`#4682B4`,darkslateblue:`#483D8B`,mediumturquoise:`#48D1CC`,indigo:`#4B0082`,darkolivegreen:`#556B2F`,cadetblue:`#5F9EA0`,cornflowerblue:`#6495ED`,rebeccapurple:`#663399`,mediumaquamarine:`#66CDAA`,dimgray:`#696969`,dimgrey:`#696969`,slateblue:`#6A5ACD`,olivedrab:`#6B8E23`,slategray:`#708090`,slategrey:`#708090`,lightslategray:`#778899`,lightslategrey:`#778899`,mediumslateblue:`#7B68EE`,lawngreen:`#7CFC00`,chartreuse:`#7FFF00`,aquamarine:`#7FFFD4`,skyblue:`#87CEEB`,lightskyblue:`#87CEFA`,blueviolet:`#8A2BE2`,darkred:`#8B0000`,darkmagenta:`#8B008B`,saddlebrown:`#8B4513`,darkseagreen:`#8FBC8F`,lightgreen:`#90EE90`,mediumpurple:`#9370DB`,darkviolet:`#9400D3`,palegreen:`#98FB98`,darkorchid:`#9932CC`,yellowgreen:`#9ACD32`,sienna:`#A0522D`,brown:`#A52A2A`,darkgray:`#A9A9A9`,darkgrey:`#A9A9A9`,lightblue:`#ADD8E6`,greenyellow:`#ADFF2F`,paleturquoise:`#AFEEEE`,lightsteelblue:`#B0C4DE`,powderblue:`#B0E0E6`,firebrick:`#B22222`,darkgoldenrod:`#B8860B`,mediumorchid:`#BA55D3`,rosybrown:`#BC8F8F`,darkkhaki:`#BDB76B`,mediumvioletred:`#C71585`,indianred:`#CD5C5C`,peru:`#CD853F`,chocolate:`#D2691E`,tan:`#D2B48C`,lightgray:`#D3D3D3`,lightgrey:`#D3D3D3`,thistle:`#D8BFD8`,orchid:`#DA70D6`,goldenrod:`#DAA520`,palevioletred:`#DB7093`,crimson:`#DC143C`,gainsboro:`#DCDCDC`,plum:`#DDA0DD`,burlywood:`#DEB887`,lightcyan:`#E0FFFF`,lavender:`#E6E6FA`,darksalmon:`#E9967A`,violet:`#EE82EE`,palegoldenrod:`#EEE8AA`,lightcoral:`#F08080`,khaki:`#F0E68C`,aliceblue:`#F0F8FF`,honeydew:`#F0FFF0`,azure:`#F0FFFF`,sandybrown:`#F4A460`,wheat:`#F5DEB3`,beige:`#F5F5DC`,whitesmoke:`#F5F5F5`,mintcream:`#F5FFFA`,ghostwhite:`#F8F8FF`,salmon:`#FA8072`,antiquewhite:`#FAEBD7`,linen:`#FAF0E6`,lightgoldenrodyellow:`#FAFAD2`,oldlace:`#FDF5E6`,magenta:`#FF00FF`,deeppink:`#FF1493`,orangered:`#FF4500`,tomato:`#FF6347`,hotpink:`#FF69B4`,coral:`#FF7F50`,darkorange:`#FF8C00`,lightsalmon:`#FFA07A`,orange:`#FFA500`,lightpink:`#FFB6C1`,pink:`#FFC0CB`,gold:`#FFD700`,peachpuff:`#FFDAB9`,navajowhite:`#FFDEAD`,moccasin:`#FFE4B5`,bisque:`#FFE4C4`,mistyrose:`#FFE4E1`,blanchedalmond:`#FFEBCD`,papayawhip:`#FFEFD5`,lavenderblush:`#FFF0F5`,seashell:`#FFF5EE`,cornsilk:`#FFF8DC`,lemonchiffon:`#FFFACD`,floralwhite:`#FFFAF0`,snow:`#FFFAFA`,lightyellow:`#FFFFE0`,ivory:`#FFFFF0`},T=new Int8Array(4),E=new Int32Array(T.buffer,0,1),D=new Float32Array(T.buffer,0,1),O=/^\s*rgba?\s*\(/,k=/^\s*rgba?\s*\(\s*([0-9]*)\s*,\s*([0-9]*)\s*,\s*([0-9]*)(?:\s*,\s*(.*)?)?\)\s*$/;function A(e){var t=0,n=0,r=0,i=1,a=e.toLowerCase();if(a===`transparent`)return{r:0,g:0,b:0,a:0};if(a in w)return A(w[a]);if(e[0]===`#`)e.length===4?(t=parseInt(e.charAt(1)+e.charAt(1),16),n=parseInt(e.charAt(2)+e.charAt(2),16),r=parseInt(e.charAt(3)+e.charAt(3),16)):(t=parseInt(e.charAt(1)+e.charAt(2),16),n=parseInt(e.charAt(3)+e.charAt(4),16),r=parseInt(e.charAt(5)+e.charAt(6),16)),e.length===9&&(i=parseInt(e.charAt(7)+e.charAt(8),16)/255);else if(O.test(e)){var o=e.match(k);o&&(t=+o[1],n=+o[2],r=+o[3],o[4]&&(i=+o[4]))}return{r:t,g:n,b:r,a:i}}function j(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=A(e),r=n.r,i=n.g,a=n.b,o=n.a;return t?[r/255*o,i/255*o,a/255*o,o]:[r/255,i/255,a/255,o]}var M={};for(var N in w)M[N]=F(w[N]),M[w[N]]=M[N];function P(e,t,n,r,i){return E[0]=r<<24|n<<16|t<<8|e,i&&(E[0]&=4278190079),D[0]}function F(e){if(e=e.toLowerCase(),M[e]!==void 0)return M[e];var t=A(e),n=t.r,r=t.g,i=t.b,a=t.a;a=a*255|0;var o=P(n,r,i,a,!0);return M[e]=o,o}function I(e,t){D[0]=F(e);var n=E[0];return t&&(n|=16777216),[n&255,n>>8&255,n>>16&255,n>>24&255]}function ee(e){var t=e>>>8&255,n=e>>>16&255,r=e>>>24&255;return((e&255)<<24|r<<16|n<<8|t)>>>0}function te(e,t,n,r){return(n<<24|t<<16|e<<8|r)>>>0}function L(e,t,n,r,i,a){var o=d(C(e,n,r,i,a),2),s=o[0],c=o[1],l=new Uint8Array(4);e.bindFramebuffer(e.FRAMEBUFFER,t),e.readPixels(s,c,1,1,e.RGBA,e.UNSIGNED_BYTE,l);var u=d(l,4);return[u[0],u[1],u[2],u[3]]}function ne(e){var t=A(e),n=t.r,r=t.g,i=t.b,a=t.a;return`vec4(${(n/255).toFixed(6)}, ${(r/255).toFixed(6)}, ${(i/255).toFixed(6)}, ${a.toFixed(6)})`}function re(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ie(e){var t=re(e,`string`);return typeof t==`symbol`?t:t+``}function R(e,t,n){return(t=ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ae(Object(n),!0).forEach(function(t){R(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function B(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,ie(r.key),r)}}function V(e,t,n){return t&&oe(e.prototype,t),n&&oe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function se(e){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},se(e)}function ce(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ce=function(){return!!e})()}function le(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function ue(e,t){if(t&&(typeof t==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return le(e)}function H(e,t,n){return t=se(t),ue(e,ce()?Reflect.construct(t,n||[],se(e).constructor):t.apply(e,n))}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}function U(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}function fe(e){if(Array.isArray(e))return o(e)}function pe(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function me(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
4
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function W(e){return fe(e)||pe(e)||s(e)||me()}function G(e){"@babel/helpers - typeof";return G=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},G(e)}function he(e){return G(e)===`object`&&e!==null&&`attribute`in e}function ge(){return{name:`circle`,glsl:`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{J as t,K as n,ot as r,q as i}from"./vendor-lucide-BILL9eZH.js";import{r as a}from"./vendor-markdown-DNTP_967.js";import{$o as o,Qo as s,Ya as c,Zo as l,_s as u,a as d,as as f,cs as p,ds as m,es as h,fs as g,gs as _,hs as v,is as y,ls as b,ms as x,mt as S,ns as C,os as w,ps as T,rs as E,to as D,ts as O,us as k,vs as A,ys as j,yt as M}from"./ToneBadge-CUe-WrzN.js";import{x as N}from"./format-helpers-CiC6gALY.js";var P=e(r(),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:r,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??(r.kind===`market`?r.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=r.kind===`group`?x.get(r.id):void 0,t=x.get(j?.parentGroupIds?.[0]??``),n=(r.parentGroupIds??[]).flatMap(e=>{let t=x.get(e);return t?[G(t)]:[]}),i=n.find(e=>e.at(-1)===S?.id)??n.sort((e,t)=>t.length-e.length)[0]??[],a=t?G(t):r.marketKeys?.length?[]:i;m(e?G(e):a),g(r.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":r.kind===e.kind&&r.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)(n,{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(r)}${r.kind===`group`?` · ${B(r.targetCount)}`:r.kind===`property`?` · ${u.find(e=>e.kind===`market`&&e.id===o)?.label??(r.marketKeys?.length?z.allMarkets:`Property`)}`:r.kind===`market`?` · Market`:``}`,(0,F.jsx)(t,{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)(i,{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)(n,{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 d&&(e.statusCode===404||e.statusCode===409||e.statusCode===412)}function ie(e,t){return e instanceof d?t:(e instanceof Error?e.message.trim():``)||t}function ae(e){let t=`Could not calculate assignment impact.`;if(!(e instanceof d)||e.code!==`VALIDATION_ERROR`)return t;let n=e.message.trim();return e.details?.displayToOperator===!0&&n?n:t}var oe={loadSetup:e=>M(()=>D({client:S,path:{name:e}})),loadDraft:e=>M(()=>c({client:S,path:{name:e}})),createDraft:(e,t)=>M(()=>C({client:S,path:{name:e},headers:{"Idempotency-Key":Q()},body:{expectedActiveRevision:t}})),importSitemap:(e,t,n)=>M(()=>w({client:S,path:{name:e},headers:$(t),body:n})),applySitemapSelection:(e,t,n,r)=>M(()=>h({client:S,path:{name:e},headers:$(t),body:{selections:n,selectedTargetKeys:r}})),previewAssignments:(e,t)=>M(()=>p({client:S,path:{name:e},body:t})),applyAssignments:(e,t,n)=>M(()=>l({client:S,path:{name:e},headers:$(t),body:n})),replaceAssignments:(e,t,n)=>M(()=>v({client:S,path:{name:e},headers:$(t),body:n})),applyPairedAssignments:(e,t,n,r)=>M(()=>o({client:S,path:{name:e},headers:$(t),body:{pairs:n,...r?{contextOverride:r}:{}}})),previewMarketRouting:(e,t)=>M(()=>k({client:S,path:{name:e},body:t})),routeMarkets:(e,t,n)=>M(()=>_({client:S,path:{name:e},headers:$(t),body:n})),removeAssignment:(e,t,n,r)=>M(()=>g({client:S,path:{name:e},headers:$(t),body:{targetKeys:n,queryId:r}})),excludeTarget:(e,t,n)=>M(()=>f({client:S,path:{name:e},headers:$(t),body:{targetKey:n,cleanup:`assignments-and-group-memberships`}})),upsertTarget:(e,t,n)=>M(()=>j({client:S,path:{name:e},headers:$(t),body:{target:n}})),upsertGroup:(e,t,n)=>M(()=>A({client:S,path:{name:e},headers:$(t),body:{group:n}})),removeGroup:(e,t,n)=>M(()=>x({client:S,path:{name:e},headers:$(t),body:{groupKey:n}})),upsertCompetitor:(e,t,n)=>M(()=>u({client:S,path:{name:e},headers:$(t),body:n})),removeCompetitor:(e,t,n,r)=>M(()=>T({client:S,path:{name:e},headers:$(t),body:{groupKey:n,competitorKey:r}})),previewGroupMembership:(e,t)=>M(()=>b({client:S,path:{name:e},body:t})),applyGroupMembership:(e,t,n)=>M(()=>s({client:S,path:{name:e},headers:$(t),body:n})),compilePreview:e=>M(()=>O({client:S,path:{name:e}})),diffPreview:e=>M(()=>E({client:S,path:{name:e}})),publish:(e,t,n)=>M(()=>m({client:S,path:{name:e},headers:$(t),body:n})),discard:(e,t)=>M(()=>y({client:S,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,K as n,ot as r,q as i}from"./vendor-lucide-BILL9eZH.js";import{r as a}from"./vendor-markdown-DNTP_967.js";import{$o as o,Qo as s,Ya as c,Zo as l,_s as u,a as d,as as f,cs as p,ds as m,es as h,fs as g,gs as _,hs as v,is as y,ls as b,ms as x,mt as S,ns as C,os as w,ps as T,rs as E,to as D,ts as O,us as k,vs as A,ys as j,yt as M}from"./ToneBadge-bXf5LaSI.js";import{x as N}from"./format-helpers-CYQ-LjnQ.js";var P=e(r(),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:r,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??(r.kind===`market`?r.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=r.kind===`group`?x.get(r.id):void 0,t=x.get(j?.parentGroupIds?.[0]??``),n=(r.parentGroupIds??[]).flatMap(e=>{let t=x.get(e);return t?[G(t)]:[]}),i=n.find(e=>e.at(-1)===S?.id)??n.sort((e,t)=>t.length-e.length)[0]??[],a=t?G(t):r.marketKeys?.length?[]:i;m(e?G(e):a),g(r.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":r.kind===e.kind&&r.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)(n,{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(r)}${r.kind===`group`?` · ${B(r.targetCount)}`:r.kind===`property`?` · ${u.find(e=>e.kind===`market`&&e.id===o)?.label??(r.marketKeys?.length?z.allMarkets:`Property`)}`:r.kind===`market`?` · Market`:``}`,(0,F.jsx)(t,{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)(i,{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)(n,{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 d&&(e.statusCode===404||e.statusCode===409||e.statusCode===412)}function ie(e,t){return e instanceof d?t:(e instanceof Error?e.message.trim():``)||t}function ae(e){let t=`Could not calculate assignment impact.`;if(!(e instanceof d)||e.code!==`VALIDATION_ERROR`)return t;let n=e.message.trim();return e.details?.displayToOperator===!0&&n?n:t}var oe={loadSetup:e=>M(()=>D({client:S,path:{name:e}})),loadDraft:e=>M(()=>c({client:S,path:{name:e}})),createDraft:(e,t)=>M(()=>C({client:S,path:{name:e},headers:{"Idempotency-Key":Q()},body:{expectedActiveRevision:t}})),importSitemap:(e,t,n)=>M(()=>w({client:S,path:{name:e},headers:$(t),body:n})),applySitemapSelection:(e,t,n,r)=>M(()=>h({client:S,path:{name:e},headers:$(t),body:{selections:n,selectedTargetKeys:r}})),previewAssignments:(e,t)=>M(()=>p({client:S,path:{name:e},body:t})),applyAssignments:(e,t,n)=>M(()=>l({client:S,path:{name:e},headers:$(t),body:n})),replaceAssignments:(e,t,n)=>M(()=>v({client:S,path:{name:e},headers:$(t),body:n})),applyPairedAssignments:(e,t,n,r)=>M(()=>o({client:S,path:{name:e},headers:$(t),body:{pairs:n,...r?{contextOverride:r}:{}}})),previewMarketRouting:(e,t)=>M(()=>k({client:S,path:{name:e},body:t})),routeMarkets:(e,t,n)=>M(()=>_({client:S,path:{name:e},headers:$(t),body:n})),removeAssignment:(e,t,n,r)=>M(()=>g({client:S,path:{name:e},headers:$(t),body:{targetKeys:n,queryId:r}})),excludeTarget:(e,t,n)=>M(()=>f({client:S,path:{name:e},headers:$(t),body:{targetKey:n,cleanup:`assignments-and-group-memberships`}})),upsertTarget:(e,t,n)=>M(()=>j({client:S,path:{name:e},headers:$(t),body:{target:n}})),upsertGroup:(e,t,n)=>M(()=>A({client:S,path:{name:e},headers:$(t),body:{group:n}})),removeGroup:(e,t,n)=>M(()=>x({client:S,path:{name:e},headers:$(t),body:{groupKey:n}})),upsertCompetitor:(e,t,n)=>M(()=>u({client:S,path:{name:e},headers:$(t),body:n})),removeCompetitor:(e,t,n,r)=>M(()=>T({client:S,path:{name:e},headers:$(t),body:{groupKey:n,competitorKey:r}})),previewGroupMembership:(e,t)=>M(()=>b({client:S,path:{name:e},body:t})),applyGroupMembership:(e,t,n)=>M(()=>s({client:S,path:{name:e},headers:$(t),body:n})),compilePreview:e=>M(()=>O({client:S,path:{name:e}})),diffPreview:e=>M(()=>E({client:S,path:{name:e}})),publish:(e,t,n)=>M(()=>m({client:S,path:{name:e},headers:$(t),body:n})),discard:(e,t)=>M(()=>y({client:S,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,22 +12,22 @@
|
|
|
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-
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-qWvnlyfA.js"></script>
|
|
16
16
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-XKyaHtl9.js">
|
|
17
17
|
<link rel="modulepreload" crossorigin href="./assets/vendor-lucide-BILL9eZH.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="./assets/vendor-markdown-DNTP_967.js">
|
|
19
19
|
<link rel="modulepreload" crossorigin href="./assets/vendor-radix-C6jOoh_7.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="./assets/vendor-recharts-PsGDYxIT.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="./assets/vendor-tanstack-BoP7BGaH.js">
|
|
22
|
-
<link rel="modulepreload" crossorigin href="./assets/ToneBadge-
|
|
23
|
-
<link rel="modulepreload" crossorigin href="./assets/format-helpers-
|
|
24
|
-
<link rel="modulepreload" crossorigin href="./assets/account-context-
|
|
22
|
+
<link rel="modulepreload" crossorigin href="./assets/ToneBadge-bXf5LaSI.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="./assets/format-helpers-CYQ-LjnQ.js">
|
|
24
|
+
<link rel="modulepreload" crossorigin href="./assets/account-context-BjM5ZlYl.js">
|
|
25
25
|
<link rel="modulepreload" crossorigin href="./assets/async-handler-Bj3TnIRw.js">
|
|
26
|
-
<link rel="modulepreload" crossorigin href="./assets/query-client-
|
|
27
|
-
<link rel="modulepreload" crossorigin href="./assets/react-query-
|
|
26
|
+
<link rel="modulepreload" crossorigin href="./assets/query-client-C_dAEVvf.js">
|
|
27
|
+
<link rel="modulepreload" crossorigin href="./assets/react-query-BKozxbv1.js">
|
|
28
28
|
<link rel="modulepreload" crossorigin href="./assets/ChartPrimitives-CfjGDL5d.js">
|
|
29
29
|
<link rel="modulepreload" crossorigin href="./assets/InfoTooltip-CJ3IWqBk.js">
|
|
30
|
-
<link rel="modulepreload" crossorigin href="./assets/card-
|
|
30
|
+
<link rel="modulepreload" crossorigin href="./assets/card-CDFncx20.js">
|
|
31
31
|
<link rel="modulepreload" crossorigin href="./assets/vendor-yaml-Y43rmNgW.js">
|
|
32
32
|
<link rel="stylesheet" crossorigin href="./assets/index-TBDfE2OO.css">
|
|
33
33
|
</head>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
34
|
+
} from "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-JP4RTZGE.js";
|
|
4
|
+
import "./chunk-NNUZ37NJ.js";
|
|
5
|
+
import "./chunk-VWYB4RA4.js";
|
|
6
6
|
import {
|
|
7
7
|
createApiClient
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
9
|
+
import "./chunk-7ZJHKLTK.js";
|
|
10
10
|
import "./chunk-AOJU5LKX.js";
|
|
11
11
|
import {
|
|
12
12
|
isMachineFormat
|
|
13
13
|
} from "./chunk-HGMYEDAQ.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-AAMOBJXJ.js";
|
|
15
|
+
import "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
12
|
+
import "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
11
|
+
import "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
14
|
+
import "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
13
|
+
import "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
11
|
+
import "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
16
|
+
} from "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
13
|
+
} from "./chunk-S6IC7ZK2.js";
|
|
14
14
|
import "./chunk-MLKGABMK.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/apply.ts
|
|
@@ -10,19 +10,19 @@ import {
|
|
|
10
10
|
backfillSnapshotAttributionCommand,
|
|
11
11
|
backfillTrafficClassificationCommand,
|
|
12
12
|
replayQueryAuditLog
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-SIRWPXGJ.js";
|
|
14
|
+
import "./chunk-GKHM5OT6.js";
|
|
15
|
+
import "./chunk-7ZJHKLTK.js";
|
|
16
16
|
import "./chunk-HGMYEDAQ.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-OH42CAWP.js";
|
|
18
18
|
import {
|
|
19
19
|
backfillProjectAnswerMentions,
|
|
20
20
|
backfillProjectAnswerMentionsInChunks
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-NPMJFPBM.js";
|
|
22
|
+
import "./chunk-M7WS2BL3.js";
|
|
23
|
+
import "./chunk-AAMOBJXJ.js";
|
|
24
|
+
import "./chunk-2GJLKCXL.js";
|
|
25
|
+
import "./chunk-S6IC7ZK2.js";
|
|
26
26
|
import "./chunk-MLKGABMK.js";
|
|
27
27
|
export {
|
|
28
28
|
activeQueriesAt,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createApiClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
20
|
+
} from "./chunk-S6IC7ZK2.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-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
4
|
+
import "./chunk-7ZJHKLTK.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-
|
|
16
|
+
} from "./chunk-S6IC7ZK2.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-
|
|
3
|
+
} from "./chunk-JP4RTZGE.js";
|
|
4
4
|
import {
|
|
5
5
|
answerServiceDescriptors
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JDEHNF7K.js";
|
|
7
7
|
import {
|
|
8
8
|
outcomeFailure
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NNUZ37NJ.js";
|
|
10
10
|
import {
|
|
11
11
|
isLoopbackBindHost
|
|
12
12
|
} from "./chunk-TSENU4GG.js";
|
|
13
13
|
import {
|
|
14
14
|
registeredProviderNames
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-JMUSNZJR.js";
|
|
16
16
|
import {
|
|
17
17
|
isTelemetryEnabled,
|
|
18
18
|
recordInstallRef
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-VWYB4RA4.js";
|
|
20
20
|
import {
|
|
21
21
|
createApiClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZX7XDVPC.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-
|
|
33
|
+
} from "./chunk-7ZJHKLTK.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-
|
|
41
|
+
import "./chunk-AAMOBJXJ.js";
|
|
42
42
|
import {
|
|
43
43
|
apiKeys,
|
|
44
44
|
createClient,
|
|
45
45
|
dashboardSessions,
|
|
46
46
|
migrate
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-2GJLKCXL.js";
|
|
48
48
|
import {
|
|
49
49
|
ProviderNames,
|
|
50
50
|
ProviderReloadErrorReasons
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-S6IC7ZK2.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-
|
|
3
|
+
} from "./chunk-JP4RTZGE.js";
|
|
4
4
|
import {
|
|
5
5
|
outcomeFailure
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-NNUZ37NJ.js";
|
|
7
|
+
import "./chunk-VWYB4RA4.js";
|
|
8
8
|
import {
|
|
9
9
|
createApiClient
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ZX7XDVPC.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig,
|
|
13
13
|
saveConfigPatch
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-7ZJHKLTK.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-AAMOBJXJ.js";
|
|
21
21
|
import {
|
|
22
22
|
describeError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-S6IC7ZK2.js";
|
|
24
24
|
import "./chunk-MLKGABMK.js";
|
|
25
25
|
|
|
26
26
|
// src/commands/cdp.ts
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
measurementDraftUpsertGroupRequestSchema,
|
|
24
24
|
measurementDraftUpsertMarketRequestSchema,
|
|
25
25
|
measurementDraftUpsertTargetRequestSchema
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-S6IC7ZK2.js";
|
|
27
27
|
|
|
28
28
|
// src/measurement-draft-actions.ts
|
|
29
29
|
import { z } from "zod";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
templateLinkRatio,
|
|
21
21
|
templateLinkUbiquityAvailable,
|
|
22
22
|
validationError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-S6IC7ZK2.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./chunk-MLKGABMK.js";
|
|
@@ -174,6 +174,8 @@ __export(schema_exports, {
|
|
|
174
174
|
siteLivenessState: () => siteLivenessState,
|
|
175
175
|
trafficEventReceipts: () => trafficEventReceipts,
|
|
176
176
|
trafficSources: () => trafficSources,
|
|
177
|
+
unrecognizedAgentEventsHourly: () => unrecognizedAgentEventsHourly,
|
|
178
|
+
unrecognizedAgentNotifyState: () => unrecognizedAgentNotifyState,
|
|
177
179
|
usageCounters: () => usageCounters,
|
|
178
180
|
userSessions: () => userSessions,
|
|
179
181
|
users: () => users
|
|
@@ -2553,6 +2555,29 @@ var aiUserFetchVerificationManifestsHourly = sqliteTable2("ai_user_fetch_verific
|
|
|
2553
2555
|
}).onDelete("cascade"),
|
|
2554
2556
|
index2("idx_ai_user_fetch_verification_manifests_project_ts").on(table.projectId, table.tsHour)
|
|
2555
2557
|
]);
|
|
2558
|
+
var unrecognizedAgentEventsHourly = sqliteTable2("unrecognized_agent_events_hourly", {
|
|
2559
|
+
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
2560
|
+
sourceId: text2("source_id").notNull().references(() => trafficSources.id, { onDelete: "cascade" }),
|
|
2561
|
+
tsHour: text2("ts_hour").notNull(),
|
|
2562
|
+
agentName: text2("agent_name").notNull(),
|
|
2563
|
+
hits: integer2("hits").notNull().default(0),
|
|
2564
|
+
sampledUserAgent: text2("sampled_user_agent"),
|
|
2565
|
+
sampledPath: text2("sampled_path"),
|
|
2566
|
+
createdAt: text2("created_at").notNull(),
|
|
2567
|
+
updatedAt: text2("updated_at").notNull()
|
|
2568
|
+
}, (table) => [
|
|
2569
|
+
primaryKey2({ columns: [table.projectId, table.sourceId, table.tsHour, table.agentName] }),
|
|
2570
|
+
index2("idx_unrecognized_agent_hourly_project_ts").on(table.projectId, table.tsHour),
|
|
2571
|
+
index2("idx_unrecognized_agent_hourly_project_name").on(table.projectId, table.agentName)
|
|
2572
|
+
]);
|
|
2573
|
+
var unrecognizedAgentNotifyState = sqliteTable2("unrecognized_agent_notify_state", {
|
|
2574
|
+
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
2575
|
+
agentName: text2("agent_name").notNull(),
|
|
2576
|
+
state: text2("state").notNull(),
|
|
2577
|
+
recordedAt: text2("recorded_at").notNull()
|
|
2578
|
+
}, (table) => [
|
|
2579
|
+
primaryKey2({ columns: [table.projectId, table.agentName] })
|
|
2580
|
+
]);
|
|
2556
2581
|
var aiReferralEventsHourly = sqliteTable2("ai_referral_events_hourly", {
|
|
2557
2582
|
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
2558
2583
|
sourceId: text2("source_id").notNull().references(() => trafficSources.id, { onDelete: "cascade" }),
|
|
@@ -8370,6 +8395,39 @@ var MIGRATION_VERSIONS = [
|
|
|
8370
8395
|
statements: [
|
|
8371
8396
|
`UPDATE raw_event_samples SET event_type = 'ai_user_fetch' WHERE event_type = 'ai-user-fetch'`
|
|
8372
8397
|
]
|
|
8398
|
+
},
|
|
8399
|
+
{
|
|
8400
|
+
version: 201,
|
|
8401
|
+
name: "unrecognized-agent-events-hourly",
|
|
8402
|
+
statements: [
|
|
8403
|
+
`CREATE TABLE IF NOT EXISTS unrecognized_agent_events_hourly (
|
|
8404
|
+
project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
|
8405
|
+
source_id TEXT NOT NULL REFERENCES traffic_sources(id) ON DELETE CASCADE,
|
|
8406
|
+
ts_hour TEXT NOT NULL,
|
|
8407
|
+
agent_name TEXT NOT NULL,
|
|
8408
|
+
hits INTEGER NOT NULL DEFAULT 0,
|
|
8409
|
+
sampled_user_agent TEXT,
|
|
8410
|
+
sampled_path TEXT,
|
|
8411
|
+
created_at TEXT NOT NULL,
|
|
8412
|
+
updated_at TEXT NOT NULL,
|
|
8413
|
+
PRIMARY KEY (project_id, source_id, ts_hour, agent_name)
|
|
8414
|
+
)`,
|
|
8415
|
+
`CREATE INDEX IF NOT EXISTS idx_unrecognized_agent_hourly_project_ts ON unrecognized_agent_events_hourly(project_id, ts_hour)`,
|
|
8416
|
+
`CREATE INDEX IF NOT EXISTS idx_unrecognized_agent_hourly_project_name ON unrecognized_agent_events_hourly(project_id, agent_name)`
|
|
8417
|
+
]
|
|
8418
|
+
},
|
|
8419
|
+
{
|
|
8420
|
+
version: 202,
|
|
8421
|
+
name: "unrecognized-agent-notify-state",
|
|
8422
|
+
statements: [
|
|
8423
|
+
`CREATE TABLE IF NOT EXISTS unrecognized_agent_notify_state (
|
|
8424
|
+
project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
|
8425
|
+
agent_name TEXT NOT NULL,
|
|
8426
|
+
state TEXT NOT NULL,
|
|
8427
|
+
recorded_at TEXT NOT NULL,
|
|
8428
|
+
PRIMARY KEY (project_id, agent_name)
|
|
8429
|
+
)`
|
|
8430
|
+
]
|
|
8373
8431
|
}
|
|
8374
8432
|
];
|
|
8375
8433
|
var AERO_LEDGER_REBUILDS = [
|
|
@@ -9875,6 +9933,8 @@ export {
|
|
|
9875
9933
|
crawlerVerificationManifestsHourly,
|
|
9876
9934
|
aiUserFetchEventsHourly,
|
|
9877
9935
|
aiUserFetchVerificationManifestsHourly,
|
|
9936
|
+
unrecognizedAgentEventsHourly,
|
|
9937
|
+
unrecognizedAgentNotifyState,
|
|
9878
9938
|
aiReferralEventsHourly,
|
|
9879
9939
|
rawEventSamples,
|
|
9880
9940
|
RawEventSampleEventTypes,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registeredProviderNames
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JMUSNZJR.js";
|
|
4
4
|
import {
|
|
5
5
|
configExists,
|
|
6
6
|
loadConfigRaw
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7ZJHKLTK.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-UENQLEK4.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-5WPYWTOF.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|