@canonry/canonry 7.115.0 → 7.116.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/assets/{AgentSetupPage-CgZuonLM.js → AgentSetupPage-s4qM5l-m.js} +1 -1
- package/assets/assets/MeasurementPropertyPage-D5As0Tnh.js +4 -0
- package/assets/assets/{ProjectPage-Ce4gBiK_.js → ProjectPage-DpsuPdQ6.js} +7 -7
- package/assets/assets/RunsPage-DdZT_ymi.js +1 -0
- package/assets/assets/ServerTrafficSection-Co3bhYAQ.js +41 -0
- package/assets/assets/{SettingsPage-D6iGHRSV.js → SettingsPage-BBMyfzb2.js} +1 -1
- package/assets/assets/{TrafficPage-DtUjNJ9U.js → TrafficPage-BiOAIZ_a.js} +1 -1
- package/assets/assets/TrafficSourceDetailPage-CmA6q6Gi.js +1 -0
- package/assets/assets/extract-error-message-C1RkZ7dQ.js +1 -0
- package/assets/assets/index-yaR6JS3H.js +43 -0
- package/assets/assets/preload-helper-BHTtLTWU.js +1 -0
- package/assets/assets/{react-sigma_core.esm.min-BN4etdK8.js → react-sigma_core.esm.min-BVgWTcxp.js} +1 -1
- package/assets/index.html +3 -1
- package/dist/{backfill-BZOT2OWS.js → backfill-WNCUA5QU.js} +4 -4
- package/dist/{bootstrap-MIVDV6NW.js → bootstrap-CJ4T6WIR.js} +1 -1
- package/dist/{chunk-R5G7SFRX.js → chunk-3MUJYDIH.js} +1 -1
- package/dist/{chunk-CY52NTTK.js → chunk-7Q4DS5JP.js} +8 -8
- package/dist/{chunk-2PDXME2V.js → chunk-BBMZ6534.js} +102 -0
- package/dist/{chunk-VUPCE7GC.js → chunk-BBVTNECC.js} +2 -2
- package/dist/{chunk-OE5AMT4X.js → chunk-CSQTR3JO.js} +15 -15
- package/dist/{chunk-FBQ4ACPA.js → chunk-D7XW5LNC.js} +1 -1
- package/dist/{chunk-4ZMO7NGG.js → chunk-DCW5R7SJ.js} +2 -2
- package/dist/{chunk-WQXRRCFC.js → chunk-JU3KGXW6.js} +2 -2
- package/dist/{chunk-67YNSJJY.js → chunk-LLKXFSCH.js} +4 -4
- package/dist/{chunk-ADBL7P3V.js → chunk-LSYMN3XT.js} +1 -1
- package/dist/{chunk-OTW4SJ5G.js → chunk-WAFH2X45.js} +2 -2
- package/dist/{cli-commands-DPRC73IM.js → cli-commands-J2E4ZSGG.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{dashboard-JBXWQXYU.js → dashboard-SWAO3TZZ.js} +2 -2
- package/dist/{demo-W3QIXSYT.js → demo-QIIAAUSK.js} +1 -1
- package/dist/{demo-server-E7KMACLN.js → demo-server-UUENUNWU.js} +4 -4
- package/dist/index.d.ts +694 -68
- package/dist/index.js +8 -8
- package/dist/{init-Z337GCOA.js → init-HU3CQ3KE.js} +2 -2
- package/dist/{intelligence-service-2N3SLVGN.js → intelligence-service-R7ZGIFFP.js} +3 -3
- package/dist/{serve-K7VUWZ3J.js → serve-AAGQ7AV7.js} +9 -9
- package/dist/{session-M6ALLPJZ.js → session-QLNH3YT4.js} +4 -4
- package/dist/{src-YZ5QIJMF.js → src-SS2AAYBS.js} +5 -1
- package/dist/{tools-J2XJFSXA.js → tools-HDZAXBXJ.js} +3 -3
- package/package.json +1 -1
- package/assets/assets/MeasurementPropertyPage-Dd7B-Ixb.js +0 -4
- package/assets/assets/RunsPage-DRGUFx7X.js +0 -1
- package/assets/assets/ServerTrafficSection-CrPHSAa5.js +0 -40
- package/assets/assets/TrafficSourceDetailPage-o-I_uVwZ.js +0 -1
- package/assets/assets/index-CWI3NboX.js +0 -43
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{ft as t,n}from"./vendor-lucide-iE5MEh2-.js";import{a as r,i,n as a,o,r as s,s as c,t as l}from"./vendor-radix-DKCt5Z_h.js";import{r as u}from"./vendor-markdown-BBGbNklj.js";import{a as d}from"./ToneBadge-D3F2fbxC.js";function f(e){return e!==``&&/^[\w./:@%+=,-]+$/.test(e)?e:`'${e.replace(/'/g,`'\\''`)}'`}var p=e(t(),1),m=u(),h=l,g=o,_=p.forwardRef(({className:e,...t},n)=>(0,m.jsx)(r,{ref:n,className:d(`fixed inset-0 z-50 bg-overlay-scrim/70 backdrop-blur-sm`,e),...t}));_.displayName=r.displayName;var v=400,y=1200,b=720,x=p.forwardRef(({className:e,children:t,...r},i)=>{let[o,c]=p.useState(b),l=p.useRef(!1),u=p.useRef(0),f=p.useRef(0),h=p.useCallback(e=>{l.current=!0,u.current=e.clientX,f.current=o,e.target.setPointerCapture(e.pointerId),e.preventDefault()},[o]),x=p.useCallback(e=>{if(!l.current)return;let t=u.current-e.clientX,n=Math.min(y,Math.max(v,f.current+t));c(n)},[]),S=p.useCallback(()=>{l.current=!1},[]);return(0,m.jsxs)(g,{children:[(0,m.jsx)(_,{}),(0,m.jsxs)(s,{ref:i,className:d(`material-modal fixed z-50 flex flex-col px-5 py-4 overflow-hidden`,`max-md:inset-x-0 max-md:bottom-0 max-md:top-auto max-md:max-h-[88vh] max-md:rounded-b-none`,`md:inset-y-0 md:right-0 md:h-full md:rounded-none`,e),style:{width:`min(${o}px, 100vw)`},...r,children:[(0,m.jsx)(`div`,{className:`absolute inset-y-0 left-0 w-1.5 cursor-col-resize hover:bg-mono-700/50 active:bg-mono-600/50 transition-colors max-md:hidden`,onPointerDown:h,onPointerMove:x,onPointerUp:S}),t,(0,m.jsxs)(a,{className:`absolute right-4 top-4 inline-flex size-8 items-center justify-center rounded-md text-muted transition hover:bg-bg-elevated hover:text-heading focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400`,children:[(0,m.jsx)(n,{className:`size-4`}),(0,m.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]})});x.displayName=s.displayName;var S=({className:e,...t})=>(0,m.jsx)(`div`,{className:d(`flex flex-col gap-1.5 pr-10`,e),...t}),C=p.forwardRef(({className:e,...t},n)=>(0,m.jsx)(c,{ref:n,className:d(`text-heading-20 text-primary`,e),...t}));C.displayName=c.displayName;var w=p.forwardRef(({className:e,...t},n)=>(0,m.jsx)(i,{ref:n,className:d(`text-copy-14 text-secondary`,e),...t}));w.displayName=i.displayName;var T=`a, button, input, select, textarea, label, summary, details, [role="button"], [role="link"], [role="checkbox"], [role="menuitem"]`;function E(e){if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return!1;let t=e.target;if(t&&typeof t.closest==`function`){let n=t.closest(T),r=e.currentTarget;if(n&&(typeof r?.contains!=`function`||r.contains(n)))return!1}let n=typeof window<`u`?window.getSelection():null;return!(n&&!n.isCollapsed&&n.toString().trim()!==``)}var D=`modulepreload`,O=function(e,t){return new URL(e,t).href},k={},A=function(e){return e.pathname.endsWith(`.css`)},j=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},M=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=O(t,n);let r=s(t),i=A(r);return j(k,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:D,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};export{w as a,f as c,x as i,E as n,S as o,h as r,C as s,M as t};
|
package/assets/assets/{react-sigma_core.esm.min-BN4etdK8.js → react-sigma_core.esm.min-BVgWTcxp.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{ft as n}from"./vendor-lucide-iE5MEh2-.js";import{n as r,r as i}from"./ProjectPage-
|
|
1
|
+
import{r as e,t}from"./rolldown-runtime-XKyaHtl9.js";import{ft as n}from"./vendor-lucide-iE5MEh2-.js";import{n as r,r as i}from"./ProjectPage-DpsuPdQ6.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:`
|
package/assets/index.html
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32.png" />
|
|
13
13
|
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
|
|
14
14
|
<title>Canonry</title>
|
|
15
|
-
<script type="module" crossorigin src="./assets/index-
|
|
15
|
+
<script type="module" crossorigin src="./assets/index-yaR6JS3H.js"></script>
|
|
16
16
|
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-XKyaHtl9.js">
|
|
17
17
|
<link rel="modulepreload" crossorigin href="./assets/vendor-lucide-iE5MEh2-.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="./assets/vendor-markdown-BBGbNklj.js">
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
<link rel="modulepreload" crossorigin href="./assets/vendor-recharts-ColROAYR.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="./assets/vendor-tanstack-16u6cATb.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="./assets/ToneBadge-D3F2fbxC.js">
|
|
23
|
+
<link rel="modulepreload" crossorigin href="./assets/preload-helper-BHTtLTWU.js">
|
|
23
24
|
<link rel="modulepreload" crossorigin href="./assets/ChartPrimitives-IodrWRFV.js">
|
|
24
25
|
<link rel="modulepreload" crossorigin href="./assets/account-context-CBRGXimz.js">
|
|
25
26
|
<link rel="modulepreload" crossorigin href="./assets/async-handler-Bj3TnIRw.js">
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
<link rel="modulepreload" crossorigin href="./assets/react-query-DNgX0alO.js">
|
|
28
29
|
<link rel="modulepreload" crossorigin href="./assets/card-Biwv3_aH.js">
|
|
29
30
|
<link rel="modulepreload" crossorigin href="./assets/AccessControls-BTEv8WEG.js">
|
|
31
|
+
<link rel="modulepreload" crossorigin href="./assets/extract-error-message-C1RkZ7dQ.js">
|
|
30
32
|
<link rel="modulepreload" crossorigin href="./assets/use-tooltip-position-BOzm-6Wy.js">
|
|
31
33
|
<link rel="modulepreload" crossorigin href="./assets/InfoTooltip-D29JcNMW.js">
|
|
32
34
|
<link rel="modulepreload" crossorigin href="./assets/vendor-yaml-Y43rmNgW.js">
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
backfillSnapshotAttributionCommand,
|
|
11
11
|
backfillTrafficClassificationCommand,
|
|
12
12
|
replayQueryAuditLog
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-LLKXFSCH.js";
|
|
14
|
+
import "./chunk-BBVTNECC.js";
|
|
15
15
|
import "./chunk-3BMWBXHZ.js";
|
|
16
16
|
import "./chunk-HGMYEDAQ.js";
|
|
17
17
|
import "./chunk-PSP56PWY.js";
|
|
@@ -19,10 +19,10 @@ import "./chunk-GNXQMAHP.js";
|
|
|
19
19
|
import {
|
|
20
20
|
backfillProjectAnswerMentions,
|
|
21
21
|
backfillProjectAnswerMentionsInChunks
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-3MUJYDIH.js";
|
|
23
23
|
import "./chunk-3NUSGD54.js";
|
|
24
24
|
import "./chunk-BGIH54A3.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-BBMZ6534.js";
|
|
26
26
|
import "./chunk-LABWX26D.js";
|
|
27
27
|
import "./chunk-MLKGABMK.js";
|
|
28
28
|
export {
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
resolveConfiguredAgentProvider,
|
|
25
25
|
resolveSessionProviderAndModel,
|
|
26
26
|
setAeroSystemPrompt
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WAFH2X45.js";
|
|
28
28
|
import {
|
|
29
29
|
answerServiceAdapters,
|
|
30
30
|
answerServiceDescriptors
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
buildAeroStateTools,
|
|
36
36
|
isAeroToolProfile,
|
|
37
37
|
truncateToolResult
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-D7XW5LNC.js";
|
|
39
39
|
import {
|
|
40
40
|
getGoogleAuthConfig,
|
|
41
41
|
getGoogleConnection,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
openrouterAdapter,
|
|
67
67
|
perplexityAdapter,
|
|
68
68
|
startTrafficReclassification
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-BBVTNECC.js";
|
|
70
70
|
import {
|
|
71
71
|
classifyUsageSurface,
|
|
72
72
|
createApiUsageTelemetry,
|
|
@@ -153,7 +153,7 @@ import {
|
|
|
153
153
|
persistSiteCrawlGraphLayout,
|
|
154
154
|
prepareSiteCrawlGraphLayout,
|
|
155
155
|
recordedSharePct
|
|
156
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-LSYMN3XT.js";
|
|
157
157
|
import {
|
|
158
158
|
CanonryMcpToolNames,
|
|
159
159
|
canonryMcpTools
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
} from "./chunk-HGMYEDAQ.js";
|
|
167
167
|
import {
|
|
168
168
|
IntelligenceService
|
|
169
|
-
} from "./chunk-
|
|
169
|
+
} from "./chunk-JU3KGXW6.js";
|
|
170
170
|
import {
|
|
171
171
|
computeCitedCompetitorDomains,
|
|
172
172
|
determineCitationState
|
|
@@ -327,7 +327,7 @@ import {
|
|
|
327
327
|
webhookTargetRefusalReason,
|
|
328
328
|
webhookUserAgent,
|
|
329
329
|
writeAuditLog
|
|
330
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-3MUJYDIH.js";
|
|
331
331
|
import {
|
|
332
332
|
OperationalLogStore,
|
|
333
333
|
SentimentIdempotencyConflict,
|
|
@@ -429,7 +429,7 @@ import {
|
|
|
429
429
|
unrecognizedAgentEventsHourly,
|
|
430
430
|
unrecognizedAgentNotifyState,
|
|
431
431
|
usageCounters
|
|
432
|
-
} from "./chunk-
|
|
432
|
+
} from "./chunk-BBMZ6534.js";
|
|
433
433
|
import {
|
|
434
434
|
AGENT_MEMORY_VALUE_MAX_BYTES,
|
|
435
435
|
AI_ENGINE_DOMAINS,
|
|
@@ -6465,7 +6465,7 @@ function nonBlank(value) {
|
|
|
6465
6465
|
return trimmed ? trimmed : void 0;
|
|
6466
6466
|
}
|
|
6467
6467
|
function resolveBuildCommit(env = process.env) {
|
|
6468
|
-
const embedded = true ? "
|
|
6468
|
+
const embedded = true ? "45426b2d6168fc04ba79bedec85b88f08e07486f" : void 0;
|
|
6469
6469
|
return nonBlank(embedded) ?? nonBlank(env.CANONRY_COMMIT);
|
|
6470
6470
|
}
|
|
6471
6471
|
function resolveInstanceIdentity(env = process.env) {
|
|
@@ -194,6 +194,8 @@ __export(schema_exports, {
|
|
|
194
194
|
siteHealthNotifyState: () => siteHealthNotifyState,
|
|
195
195
|
siteLivenessState: () => siteLivenessState,
|
|
196
196
|
sitemapListSyncs: () => sitemapListSyncs,
|
|
197
|
+
socialConnections: () => socialConnections,
|
|
198
|
+
socialMentions: () => socialMentions,
|
|
197
199
|
trafficEventReceipts: () => trafficEventReceipts,
|
|
198
200
|
trafficReclassificationState: () => trafficReclassificationState,
|
|
199
201
|
trafficSources: () => trafficSources,
|
|
@@ -330,6 +332,8 @@ var projects = sqliteTable2("projects", {
|
|
|
330
332
|
configSource: text2("config_source").$type().notNull().default("cli"),
|
|
331
333
|
configRevision: integer2("config_revision").notNull().default(1),
|
|
332
334
|
icpDescription: text2("icp_description"),
|
|
335
|
+
/** The social platforms this project monitors (`SocialMonitorPlatform` values, each at most once); default `[]`, none. */
|
|
336
|
+
socialPlatforms: text2("social_platforms", { mode: "json" }).$type().notNull().default([]),
|
|
333
337
|
createdAt: text2("created_at").notNull(),
|
|
334
338
|
updatedAt: text2("updated_at").notNull()
|
|
335
339
|
});
|
|
@@ -3962,6 +3966,53 @@ var sentimentAttempts = sqliteTable2("sentiment_attempts", {
|
|
|
3962
3966
|
index2("idx_sentiment_attempt_dispatch").on(table.dispatchedAt),
|
|
3963
3967
|
foreignKey({ columns: [table.projectId, table.workItemId], foreignColumns: [sentimentWorkItems.projectId, sentimentWorkItems.id] }).onDelete("cascade")
|
|
3964
3968
|
]);
|
|
3969
|
+
var socialMentions = sqliteTable2("social_mentions", {
|
|
3970
|
+
id: text2("id").primaryKey(),
|
|
3971
|
+
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
3972
|
+
runId: text2("run_id").notNull(),
|
|
3973
|
+
platform: text2("platform").$type().notNull(),
|
|
3974
|
+
/** The platform's own post id. */
|
|
3975
|
+
externalId: text2("external_id").notNull(),
|
|
3976
|
+
externalUrl: text2("external_url").notNull(),
|
|
3977
|
+
/** The search term that found the post; null for a post found by a domain-only search, never an invented query. */
|
|
3978
|
+
matchedQuery: text2("matched_query"),
|
|
3979
|
+
authorHandle: text2("author_handle"),
|
|
3980
|
+
authorName: text2("author_name"),
|
|
3981
|
+
authorFollowers: integer2("author_followers"),
|
|
3982
|
+
/** The post title where the platform has one (a Reddit submission). */
|
|
3983
|
+
contentTitle: text2("content_title"),
|
|
3984
|
+
/** The post body; empty for a post with only a title. */
|
|
3985
|
+
contentText: text2("content_text").notNull(),
|
|
3986
|
+
/** The project URLs the post links to, as full URLs; `[]` when it links to none. */
|
|
3987
|
+
linkedUrls: text2("linked_urls", { mode: "json" }).$type().notNull().default([]),
|
|
3988
|
+
sentiment: text2("sentiment"),
|
|
3989
|
+
likes: integer2("likes"),
|
|
3990
|
+
shares: integer2("shares"),
|
|
3991
|
+
comments: integer2("comments"),
|
|
3992
|
+
/** The community the post was made in (a subreddit on Reddit). */
|
|
3993
|
+
community: text2("community"),
|
|
3994
|
+
hashtags: text2("hashtags", { mode: "json" }).$type().notNull().default([]),
|
|
3995
|
+
/** Platform-specific fields that have no column of their own (a platform's own score). */
|
|
3996
|
+
metadata: text2("metadata", { mode: "json" }).$type().notNull().default({}),
|
|
3997
|
+
postedAt: text2("posted_at").notNull(),
|
|
3998
|
+
createdAt: text2("created_at").notNull()
|
|
3999
|
+
}, (table) => [
|
|
4000
|
+
index2("idx_social_mentions_run").on(table.runId),
|
|
4001
|
+
uniqueIndex2("idx_social_mentions_project_platform_external").on(table.projectId, table.platform, table.externalId),
|
|
4002
|
+
foreignKey({ columns: [table.projectId, table.runId], foreignColumns: [runs.projectId, runs.id] }).onDelete("cascade")
|
|
4003
|
+
]);
|
|
4004
|
+
var socialConnections = sqliteTable2("social_connections", {
|
|
4005
|
+
id: text2("id").primaryKey(),
|
|
4006
|
+
platform: text2("platform").$type().notNull(),
|
|
4007
|
+
projectId: text2("project_id").notNull().references(() => projects.id, { onDelete: "cascade" }),
|
|
4008
|
+
tokenExpiresAt: text2("token_expires_at"),
|
|
4009
|
+
scopes: text2("scopes", { mode: "json" }).$type().notNull().default([]),
|
|
4010
|
+
metadata: text2("metadata", { mode: "json" }).$type().notNull().default({}),
|
|
4011
|
+
createdAt: text2("created_at").notNull(),
|
|
4012
|
+
updatedAt: text2("updated_at").notNull()
|
|
4013
|
+
}, (table) => [
|
|
4014
|
+
uniqueIndex2("idx_social_connections_platform_project").on(table.platform, table.projectId)
|
|
4015
|
+
]);
|
|
3965
4016
|
|
|
3966
4017
|
// ../db/src/client.ts
|
|
3967
4018
|
function createClient(databasePath) {
|
|
@@ -9461,6 +9512,55 @@ var MIGRATION_VERSIONS = [
|
|
|
9461
9512
|
)`,
|
|
9462
9513
|
`CREATE INDEX IF NOT EXISTS idx_sentiment_alert_runs_run ON sentiment_alert_runs(run_id)`
|
|
9463
9514
|
]
|
|
9515
|
+
},
|
|
9516
|
+
{
|
|
9517
|
+
version: 225,
|
|
9518
|
+
name: "social-monitoring-tables",
|
|
9519
|
+
// Social monitoring: the posts a run found, which platforms each project
|
|
9520
|
+
// has connected (metadata only; secrets live in config.yaml), and the
|
|
9521
|
+
// platforms a project monitors. Every existing project reads `[]`, so none
|
|
9522
|
+
// starts monitoring on upgrade.
|
|
9523
|
+
statements: [
|
|
9524
|
+
`CREATE TABLE IF NOT EXISTS social_mentions (
|
|
9525
|
+
id TEXT PRIMARY KEY,
|
|
9526
|
+
project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
|
9527
|
+
run_id TEXT NOT NULL,
|
|
9528
|
+
platform TEXT NOT NULL,
|
|
9529
|
+
external_id TEXT NOT NULL,
|
|
9530
|
+
external_url TEXT NOT NULL,
|
|
9531
|
+
matched_query TEXT,
|
|
9532
|
+
author_handle TEXT,
|
|
9533
|
+
author_name TEXT,
|
|
9534
|
+
author_followers INTEGER,
|
|
9535
|
+
content_title TEXT,
|
|
9536
|
+
content_text TEXT NOT NULL,
|
|
9537
|
+
linked_urls TEXT NOT NULL DEFAULT '[]',
|
|
9538
|
+
sentiment TEXT,
|
|
9539
|
+
likes INTEGER,
|
|
9540
|
+
shares INTEGER,
|
|
9541
|
+
comments INTEGER,
|
|
9542
|
+
community TEXT,
|
|
9543
|
+
hashtags TEXT NOT NULL DEFAULT '[]',
|
|
9544
|
+
metadata TEXT NOT NULL DEFAULT '{}',
|
|
9545
|
+
posted_at TEXT NOT NULL,
|
|
9546
|
+
created_at TEXT NOT NULL,
|
|
9547
|
+
FOREIGN KEY (project_id, run_id) REFERENCES runs(project_id, id) ON DELETE CASCADE
|
|
9548
|
+
)`,
|
|
9549
|
+
`CREATE INDEX IF NOT EXISTS idx_social_mentions_run ON social_mentions(run_id)`,
|
|
9550
|
+
`CREATE UNIQUE INDEX IF NOT EXISTS idx_social_mentions_project_platform_external ON social_mentions(project_id, platform, external_id)`,
|
|
9551
|
+
`CREATE TABLE IF NOT EXISTS social_connections (
|
|
9552
|
+
id TEXT PRIMARY KEY,
|
|
9553
|
+
platform TEXT NOT NULL,
|
|
9554
|
+
project_id TEXT NOT NULL REFERENCES projects(id) ON DELETE CASCADE,
|
|
9555
|
+
token_expires_at TEXT,
|
|
9556
|
+
scopes TEXT NOT NULL DEFAULT '[]',
|
|
9557
|
+
metadata TEXT NOT NULL DEFAULT '{}',
|
|
9558
|
+
created_at TEXT NOT NULL,
|
|
9559
|
+
updated_at TEXT NOT NULL
|
|
9560
|
+
)`,
|
|
9561
|
+
`CREATE UNIQUE INDEX IF NOT EXISTS idx_social_connections_platform_project ON social_connections(platform, project_id)`,
|
|
9562
|
+
`ALTER TABLE projects ADD COLUMN social_platforms TEXT NOT NULL DEFAULT '[]'`
|
|
9563
|
+
]
|
|
9464
9564
|
}
|
|
9465
9565
|
];
|
|
9466
9566
|
var V222_BROWSER_AGENT_HOURLY_TABLES = ["ai_user_fetch_events_hourly", "ai_user_fetch_likely_fake_hourly"];
|
|
@@ -11108,6 +11208,8 @@ export {
|
|
|
11108
11208
|
sentimentJobItems,
|
|
11109
11209
|
sentimentResults,
|
|
11110
11210
|
sentimentAttempts,
|
|
11211
|
+
socialMentions,
|
|
11212
|
+
socialConnections,
|
|
11111
11213
|
createClient,
|
|
11112
11214
|
readNegativeReviewMaxStars,
|
|
11113
11215
|
readAllNegativeReviewMaxStars,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
mergeSplitJourneyVisitors,
|
|
8
8
|
repairAiReferralArrivalsOnStartup,
|
|
9
9
|
writeUnrecognizedAgentBuckets
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3MUJYDIH.js";
|
|
11
11
|
import {
|
|
12
12
|
AGENT_TRUST_RULES_VERSION,
|
|
13
13
|
BROWSER_AGENT_BOT_IDS,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
trafficReclassificationState,
|
|
49
49
|
trafficSources,
|
|
50
50
|
unrecognizedAgentEventsHourly
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-BBMZ6534.js";
|
|
52
52
|
import {
|
|
53
53
|
AI_ENGINE_DOMAINS,
|
|
54
54
|
AI_ENGINE_SELF_DOMAINS,
|
|
@@ -783,7 +783,7 @@ var DEMO_CLI_COMMANDS = [{
|
|
|
783
783
|
options: { host: stringOption(), port: stringOption(), "trust-proxy": multiStringOption() },
|
|
784
784
|
allowPositionals: false,
|
|
785
785
|
run: async (input) => {
|
|
786
|
-
const { demoCommand } = await import("./demo-
|
|
786
|
+
const { demoCommand } = await import("./demo-QIIAAUSK.js");
|
|
787
787
|
await demoCommand({
|
|
788
788
|
host: getString(input.values, "host"),
|
|
789
789
|
port: getString(input.values, "port"),
|
|
@@ -804,7 +804,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
804
804
|
allowPositionals: false,
|
|
805
805
|
supportsDryRun: true,
|
|
806
806
|
run: async (input) => {
|
|
807
|
-
const { backfillAnswerVisibilityCommand } = await import("./backfill-
|
|
807
|
+
const { backfillAnswerVisibilityCommand } = await import("./backfill-WNCUA5QU.js");
|
|
808
808
|
await backfillAnswerVisibilityCommand({
|
|
809
809
|
project: getString(input.values, "project"),
|
|
810
810
|
dryRun: input.dryRun,
|
|
@@ -821,7 +821,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
821
821
|
allowPositionals: false,
|
|
822
822
|
supportsDryRun: true,
|
|
823
823
|
run: async (input) => {
|
|
824
|
-
const { backfillAnswerMentionsCommand } = await import("./backfill-
|
|
824
|
+
const { backfillAnswerMentionsCommand } = await import("./backfill-WNCUA5QU.js");
|
|
825
825
|
await backfillAnswerMentionsCommand({
|
|
826
826
|
project: getString(input.values, "project"),
|
|
827
827
|
dryRun: input.dryRun,
|
|
@@ -839,7 +839,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
839
839
|
},
|
|
840
840
|
supportsDryRun: true,
|
|
841
841
|
run: async (input) => {
|
|
842
|
-
const { backfillInsightsCommand } = await import("./backfill-
|
|
842
|
+
const { backfillInsightsCommand } = await import("./backfill-WNCUA5QU.js");
|
|
843
843
|
const usage = "canonry backfill insights <project> [--from-run <id>] [--to-run <id>] [--since <date>] [--dry-run] [--format json]";
|
|
844
844
|
const project3 = requireProject(input, "backfill insights", usage);
|
|
845
845
|
await backfillInsightsCommand(project3, {
|
|
@@ -859,7 +859,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
859
859
|
},
|
|
860
860
|
allowPositionals: false,
|
|
861
861
|
run: async (input) => {
|
|
862
|
-
const { backfillNormalizedPathsCommand } = await import("./backfill-
|
|
862
|
+
const { backfillNormalizedPathsCommand } = await import("./backfill-WNCUA5QU.js");
|
|
863
863
|
await backfillNormalizedPathsCommand({
|
|
864
864
|
project: getString(input.values, "project"),
|
|
865
865
|
format: input.format
|
|
@@ -874,7 +874,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
874
874
|
},
|
|
875
875
|
allowPositionals: false,
|
|
876
876
|
run: async (input) => {
|
|
877
|
-
const { backfillAiReferralPathsCommand } = await import("./backfill-
|
|
877
|
+
const { backfillAiReferralPathsCommand } = await import("./backfill-WNCUA5QU.js");
|
|
878
878
|
await backfillAiReferralPathsCommand({
|
|
879
879
|
project: getString(input.values, "project"),
|
|
880
880
|
format: input.format
|
|
@@ -886,7 +886,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
886
886
|
usage: "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]",
|
|
887
887
|
supportsDryRun: true,
|
|
888
888
|
run: async (input) => {
|
|
889
|
-
const { backfillSnapshotAttributionCommand } = await import("./backfill-
|
|
889
|
+
const { backfillSnapshotAttributionCommand } = await import("./backfill-WNCUA5QU.js");
|
|
890
890
|
const usage = "canonry backfill snapshot-attribution <project> [--dry-run] [--format json]";
|
|
891
891
|
const project3 = requireProject(input, "backfill snapshot-attribution", usage);
|
|
892
892
|
await backfillSnapshotAttributionCommand({
|
|
@@ -905,7 +905,7 @@ var BACKFILL_CLI_COMMANDS = [
|
|
|
905
905
|
allowPositionals: false,
|
|
906
906
|
supportsDryRun: true,
|
|
907
907
|
run: async (input) => {
|
|
908
|
-
const { backfillTrafficClassificationCommand } = await import("./backfill-
|
|
908
|
+
const { backfillTrafficClassificationCommand } = await import("./backfill-WNCUA5QU.js");
|
|
909
909
|
await backfillTrafficClassificationCommand({
|
|
910
910
|
project: getString(input.values, "project"),
|
|
911
911
|
dryRun: input.dryRun,
|
|
@@ -1549,7 +1549,7 @@ var DASHBOARD_CLI_COMMANDS = [
|
|
|
1549
1549
|
usage: "canonry dashboard reset-password [--format json]",
|
|
1550
1550
|
help: "Clears the dashboard password from config.yaml, so the dashboard asks for a new one after a restart.\nLocal only: it edits the config file under CANONRY_CONFIG_DIR and does not call the server.",
|
|
1551
1551
|
run: async (input) => {
|
|
1552
|
-
const { resetDashboardPassword } = await import("./dashboard-
|
|
1552
|
+
const { resetDashboardPassword } = await import("./dashboard-SWAO3TZZ.js");
|
|
1553
1553
|
await resetDashboardPassword({ format: input.format });
|
|
1554
1554
|
}
|
|
1555
1555
|
},
|
|
@@ -7386,7 +7386,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
7386
7386
|
options: { access: stringOption() },
|
|
7387
7387
|
run: async (input) => {
|
|
7388
7388
|
if (input.positionals.length > 1) throw usageError("Expected at most one command group");
|
|
7389
|
-
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-SAUMPDAU.js"), import("./cli-commands-
|
|
7389
|
+
const [{ printCliCatalog }, { REGISTERED_CLI_COMMANDS: REGISTERED_CLI_COMMANDS2 }] = await Promise.all([import("./cli-catalog-SAUMPDAU.js"), import("./cli-commands-J2E4ZSGG.js")]);
|
|
7390
7390
|
printCliCatalog(REGISTERED_CLI_COMMANDS2, input.format, input.positionals[0], getString(input.values, "access"));
|
|
7391
7391
|
}
|
|
7392
7392
|
},
|
|
@@ -7435,7 +7435,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
7435
7435
|
},
|
|
7436
7436
|
allowPositionals: false,
|
|
7437
7437
|
run: async (input) => {
|
|
7438
|
-
const { initCommand } = await import("./init-
|
|
7438
|
+
const { initCommand } = await import("./init-HU3CQ3KE.js");
|
|
7439
7439
|
await initCommand({
|
|
7440
7440
|
force: getBoolean(input.values, "force"),
|
|
7441
7441
|
ref: getString(input.values, "ref"),
|
|
@@ -7468,7 +7468,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
7468
7468
|
},
|
|
7469
7469
|
allowPositionals: false,
|
|
7470
7470
|
run: async (input) => {
|
|
7471
|
-
const { bootstrapCommand } = await import("./bootstrap-
|
|
7471
|
+
const { bootstrapCommand } = await import("./bootstrap-CJ4T6WIR.js");
|
|
7472
7472
|
await bootstrapCommand({
|
|
7473
7473
|
format: input.format,
|
|
7474
7474
|
ref: getString(input.values, "ref")
|
|
@@ -7490,7 +7490,7 @@ var SYSTEM_CLI_COMMANDS = [
|
|
|
7490
7490
|
allowPositionals: false,
|
|
7491
7491
|
run: async (input) => {
|
|
7492
7492
|
applyServerEnv(input.values);
|
|
7493
|
-
const { serveCommand } = await import("./serve-
|
|
7493
|
+
const { serveCommand } = await import("./serve-AAGQ7AV7.js");
|
|
7494
7494
|
await serveCommand(input.format);
|
|
7495
7495
|
}
|
|
7496
7496
|
},
|
|
@@ -8864,8 +8864,8 @@ var AGENT_CLI_COMMANDS = [
|
|
|
8864
8864
|
"timeout-ms": stringOption()
|
|
8865
8865
|
},
|
|
8866
8866
|
run: async (input) => {
|
|
8867
|
-
const { coerceAgentProvider } = await import("./session-
|
|
8868
|
-
const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-
|
|
8867
|
+
const { coerceAgentProvider } = await import("./session-QLNH3YT4.js");
|
|
8868
|
+
const { AERO_TOOL_PROFILES, isAeroToolProfile } = await import("./tools-HDZAXBXJ.js");
|
|
8869
8869
|
const { agentAsk } = await import("./agent-ask-SKR5ZR3S.js");
|
|
8870
8870
|
const usage = `canonry agent ask <project> "<prompt>" [--provider ${AGENT_PROVIDER_IDS.join("|")}] [--model <id>] [--scope all|read-only] [--profile default|ads-operator] [--context <json>] [--conversation <id>] [--max-tool-calls <n>] [--timeout-ms <ms>] [--format json]`;
|
|
8871
8871
|
const project3 = requireProject(input, "agent.ask", usage);
|
|
@@ -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-SS2AAYBS.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-AAGQ7AV7.js");
|
|
51
51
|
await serveCommand(format);
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
mergeGscQueryTotalsWithFallback,
|
|
18
18
|
readGscQueryDailyRows,
|
|
19
19
|
readLatestGscDataDate
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3MUJYDIH.js";
|
|
21
21
|
import {
|
|
22
22
|
competitors,
|
|
23
23
|
gbpDailyMetrics,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
queries,
|
|
36
36
|
querySnapshots,
|
|
37
37
|
runs
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-BBMZ6534.js";
|
|
39
39
|
import {
|
|
40
40
|
CitationStates,
|
|
41
41
|
RunKinds,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
reparseStoredResult4,
|
|
9
9
|
reparseStoredResult5,
|
|
10
10
|
resolveStoredApiResponse
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BBVTNECC.js";
|
|
12
12
|
import {
|
|
13
13
|
loadConfig
|
|
14
14
|
} from "./chunk-3BMWBXHZ.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
createRunCompetitorResolver,
|
|
26
26
|
readMarketCompetitorNames,
|
|
27
27
|
refreshSnapshotMentionIdentity
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3MUJYDIH.js";
|
|
29
29
|
import {
|
|
30
30
|
RawEventSampleEventTypes,
|
|
31
31
|
auditLog,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
querySnapshots,
|
|
40
40
|
rawEventSamples,
|
|
41
41
|
runs
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-BBMZ6534.js";
|
|
43
43
|
import {
|
|
44
44
|
ProviderNames,
|
|
45
45
|
RetrievalContracts,
|
|
@@ -430,7 +430,7 @@ No DB writes performed. Re-run without --dry-run to apply.`);
|
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
432
|
async function backfillInsightsCommand(project, opts) {
|
|
433
|
-
const { IntelligenceService } = await import("./intelligence-service-
|
|
433
|
+
const { IntelligenceService } = await import("./intelligence-service-R7ZGIFFP.js");
|
|
434
434
|
const config = loadConfig();
|
|
435
435
|
const db = createClient(config.database);
|
|
436
436
|
migrate(db);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
isStoredPageReadTool,
|
|
6
6
|
isStoredReadTool,
|
|
7
7
|
truncateToolResult
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-D7XW5LNC.js";
|
|
9
9
|
import {
|
|
10
10
|
CANONRY_MCP_TOOLKITS,
|
|
11
11
|
resolveAeroSkillDir
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
import {
|
|
35
35
|
agentToolEvents,
|
|
36
36
|
llmUsageEvents
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BBMZ6534.js";
|
|
38
38
|
import {
|
|
39
39
|
MeasurementPortfolioLists,
|
|
40
40
|
SEO_TREND_METRICS_BY_KIND,
|
package/dist/cli.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node --import tsx
|
|
2
2
|
import {
|
|
3
3
|
REGISTERED_CLI_COMMANDS
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CSQTR3JO.js";
|
|
5
5
|
import "./chunk-6GO5VVAC.js";
|
|
6
6
|
import {
|
|
7
7
|
buildSetupState,
|
|
8
8
|
runPendingServeHandoff
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DCW5R7SJ.js";
|
|
10
10
|
import "./chunk-VJWDBFSL.js";
|
|
11
11
|
import "./chunk-P5EFITKV.js";
|
|
12
12
|
import "./chunk-TSENU4GG.js";
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
} from "./chunk-HGMYEDAQ.js";
|
|
8
8
|
import {
|
|
9
9
|
anyUsersExist
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3MUJYDIH.js";
|
|
11
11
|
import "./chunk-3NUSGD54.js";
|
|
12
12
|
import "./chunk-BGIH54A3.js";
|
|
13
13
|
import {
|
|
14
14
|
createClient
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BBMZ6534.js";
|
|
16
16
|
import "./chunk-LABWX26D.js";
|
|
17
17
|
import "./chunk-MLKGABMK.js";
|
|
18
18
|
|
|
@@ -40,7 +40,7 @@ function parseDemoTrustedProxies(values) {
|
|
|
40
40
|
async function demoCommand(options) {
|
|
41
41
|
const { host, port } = parseDemoListenOptions(options);
|
|
42
42
|
const trustProxy = parseDemoTrustedProxies(options.trustProxy);
|
|
43
|
-
const { createDemoServer } = await import("./demo-server-
|
|
43
|
+
const { createDemoServer } = await import("./demo-server-UUENUNWU.js");
|
|
44
44
|
const app = await createDemoServer({ trustProxy });
|
|
45
45
|
let stopping = false;
|
|
46
46
|
const stop = () => {
|