@ainyc/canonry 5.4.0 → 5.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/assets/agent-workspace/skills/aero/references/portfolio-analysis.md +1 -1
  2. package/assets/agent-workspace/skills/canonry/references/aeo-analysis.md +10 -0
  3. package/assets/assets/{AuditHistoryPanel-DNSskBJN.js → AuditHistoryPanel-DVUbjx1M.js} +1 -1
  4. package/assets/assets/{BacklinksPage-COtLVzT8.js → BacklinksPage-D01VTDAp.js} +1 -1
  5. package/assets/assets/ChartPrimitives-BQC2VH0O.js +1 -0
  6. package/assets/assets/{HistoryPage-D9e6cGrq.js → HistoryPage-Bk1gsXe5.js} +1 -1
  7. package/assets/assets/{MeasurementPropertyPage-BSs4ba4N.js → MeasurementPropertyPage-D7p5vpY_.js} +1 -1
  8. package/assets/assets/ProjectPage-Dv3USEIE.js +8 -0
  9. package/assets/assets/{RunRow-DRjXGgeI.js → RunRow-Dpa0kAip.js} +1 -1
  10. package/assets/assets/{RunsPage-BXyqLNMQ.js → RunsPage-B59z7DQ_.js} +1 -1
  11. package/assets/assets/{SettingsPage-DKmzGwx3.js → SettingsPage-HJDgmQi9.js} +1 -1
  12. package/assets/assets/{SiteHealthSection-DuSY6jzY.js → SiteHealthSection-BnJA-zvQ.js} +3 -3
  13. package/assets/assets/TrafficPage-C8na59q_.js +40 -0
  14. package/assets/assets/{TrafficSourceDetailPage-Bw8PCVl9.js → TrafficSourceDetailPage-B2fO8bDc.js} +1 -1
  15. package/assets/assets/{extract-error-message-rTGTNN_D.js → extract-error-message-670MySRM.js} +1 -1
  16. package/assets/assets/index-DTrkuKOh.js +86 -0
  17. package/assets/assets/index-PT4UiPTM.css +1 -0
  18. package/assets/assets/{react-sigma_core.esm.min-Xwhtf0bv.js → react-sigma_core.esm.min-DOhuYLQj.js} +1 -1
  19. package/assets/assets/v2-overview-adapter-CQyDNkXa.js +1 -0
  20. package/assets/assets/vendor-lucide-CneDbhOr.js +1 -0
  21. package/assets/assets/{vendor-recharts-D-cUuLZo.js → vendor-recharts-llkUFBGR.js} +1 -1
  22. package/assets/index.html +4 -4
  23. package/dist/{chunk-SLOTTXIL.js → chunk-C4KBR4H6.js} +6 -6
  24. package/dist/{chunk-Z6RA7LWY.js → chunk-D3DKDTXP.js} +1027 -70
  25. package/dist/{chunk-L3FG66O7.js → chunk-GHAUT7XJ.js} +2 -2
  26. package/dist/{chunk-67OM5KEH.js → chunk-I4AHG7K3.js} +3 -3
  27. package/dist/{chunk-P5YYRGFS.js → chunk-KZYOJ4F5.js} +2 -2
  28. package/dist/{chunk-2P52FD5B.js → chunk-TM2NQMJA.js} +803 -777
  29. package/dist/cli.js +10 -9
  30. package/dist/{demo-server-6QU77ZMV.js → demo-server-JEGVGOPQ.js} +7 -3
  31. package/dist/index.js +5 -5
  32. package/dist/{intelligence-service-PHCK6A35.js → intelligence-service-5P62KKG6.js} +2 -2
  33. package/dist/mcp.js +3 -3
  34. package/package.json +13 -13
  35. package/assets/assets/ChartPrimitives-Bxa_vFmq.js +0 -1
  36. package/assets/assets/ProjectPage-BbpGgwgd.js +0 -8
  37. package/assets/assets/TrafficPage-Bc9NGm4L.js +0 -1
  38. package/assets/assets/index-CVK43vax.js +0 -86
  39. package/assets/assets/index-Hmnj0RO5.css +0 -1
  40. package/assets/assets/v2-overview-adapter-BgGH6oLq.js +0 -1
  41. package/assets/assets/vendor-lucide-CBIL4Nkq.js +0 -1
@@ -1 +0,0 @@
1
- import{r as d,j as e,k as F,u as L,f as $,L as I}from"./vendor-tanstack-ZXXkndVj.js";import{cq as E,cr as O,cs as A,ct as D,cu as R,B as C,m as U,dA as z,cl as H,i as V,j as w,f as S,dB as W,T as J,dC as M}from"./index-CVK43vax.js";import{d as Q,f as G,g as _,c as q,a as K,t as Y}from"./extract-error-message-rTGTNN_D.js";import{i as X,O as Z,Q as ee,V as te,q as T,A as re}from"./vendor-lucide-CBIL4Nkq.js";import"./vendor-radix-twS1M3FF.js";import"./vendor-recharts-D-cUuLZo.js";import"./vendor-markdown-B-Oq2NYq.js";import"./vendor-yaml-GWJz5H2G.js";function se({open:t,onOpenChange:a,projectName:n}){const[r,i]=d.useState("pick");d.useEffect(()=>{t&&i("pick")},[t]);const s=()=>{a(!1),i("pick")};return e.jsx(E,{open:t,onOpenChange:o=>{o?a(!0):s()},children:e.jsx(O,{children:r==="pick"?e.jsx(oe,{onPick:i}):r==="wordpress"?e.jsx(le,{projectName:n,onBack:()=>i("pick"),onClose:s}):r==="vercel"?e.jsx(de,{projectName:n,onBack:()=>i("pick"),onClose:s}):e.jsx(ce,{projectName:n,onBack:()=>i("pick"),onClose:s})})})}const ne=[{type:"wordpress",name:"WordPress",action:"Install the traffic plugin",icon:X},{type:"cloud-run",name:"Google Cloud Run",action:"Read request logs",icon:Z},{type:"vercel",name:"Vercel",action:"Read request logs",icon:ee}];function oe({onPick:t}){return e.jsxs(e.Fragment,{children:[e.jsxs(A,{children:[e.jsx(D,{children:"Connect a traffic source"}),e.jsx(R,{children:"Choose where Canonry should read traffic logs."})]}),e.jsx("div",{className:"mt-6 flex flex-col gap-3",children:ne.map(({type:a,name:n,action:r,icon:i})=>e.jsxs("button",{type:"button",onClick:()=>t(a),className:"group flex items-center gap-3 rounded-md border border-base bg-bg-elevated/30 px-3 py-3 text-left transition-colors hover:border-mono-600 hover:bg-bg-elevated/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400",children:[e.jsx("span",{className:"mt-0.5 inline-flex size-9 shrink-0 items-center justify-center rounded-md border border-base bg-bg text-neutral group-hover:text-heading",children:e.jsx(i,{className:"size-4"})}),e.jsxs("span",{className:"flex min-w-0 flex-1 items-baseline justify-between gap-3",children:[e.jsx("span",{className:"text-sm font-medium text-heading",children:n}),e.jsx("span",{className:"text-sm text-secondary",children:r})]})]},a))})]})}function ae({title:t,description:a,onBack:n}){return e.jsxs(A,{children:[e.jsxs("button",{type:"button",onClick:n,className:"mb-1 inline-flex w-fit items-center gap-1 rounded text-sm text-secondary transition-colors hover:text-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-mono-400",children:[e.jsx(te,{className:"size-3"}),"Choose a different source"]}),e.jsx(D,{children:t}),e.jsx(R,{children:a})]})}function ie(t,a){const n=F();return async(r,i)=>{i.startInitialBackfill&&await z(t,r),i.afterConnected?.(),a(),n({to:"/traffic/$projectName/$sourceId",params:{projectName:t,sourceId:r}})}}function k(t,a){const[n,r]=d.useState(null),i=ie(t,a);return{error:n,runConnect:async o=>{r(null);const l=o.validate();if(l){r(l);return}let u;try{u=await o.mutate()}catch(c){r(q(c));return}try{await i(u.id,{startInitialBackfill:o.startInitialBackfill??!0,afterConnected:o.onConnected})}catch(c){r(`Source connected, but starting the initial backfill failed: ${q(c)}`)}}}}function P({title:t,description:a,projectName:n,onBack:r,onClose:i,onSubmit:s,isPending:o,error:l,children:u}){return e.jsxs(e.Fragment,{children:[e.jsx(ae,{title:t,description:a,onBack:r}),e.jsxs("form",{onSubmit:U(async c=>{c.preventDefault(),await s()}),className:"mt-6 flex flex-col gap-5 overflow-y-auto pr-1",children:[e.jsx(p,{label:"Project",description:"Canonry project this source attaches to.",children:e.jsx("input",{type:"text",value:n,disabled:!0,className:"w-full rounded border border-strong bg-bg-elevated/50 px-2 py-1.5 text-sm text-neutral"})}),u,l?e.jsx("p",{className:"rounded-md border border-negative-800/50 bg-negative-950/30 px-3 py-2 text-xs text-negative-200",children:l}):null,e.jsxs("div",{className:"mt-2 flex items-center justify-end gap-2 border-t border-default pt-4",children:[e.jsx(C,{type:"button",variant:"ghost",size:"sm",onClick:i,children:"Close"}),e.jsx(C,{type:"submit",disabled:o,size:"sm",children:o?"Connecting…":"Connect"})]})]})]})}function le({projectName:t,onBack:a,onClose:n}){const[r,i]=d.useState(""),[s,o]=d.useState(""),[l,u]=d.useState(""),[c,j]=d.useState(""),f=Q(t||null),{error:g,runConnect:b}=k(t,n),v=()=>b({validate:()=>r.trim()?s.trim()?l.trim()?null:"Application Password is required.":"Username is required.":"WordPress site URL is required.",mutate:()=>f.mutateAsync({baseUrl:r.trim(),username:s.trim(),applicationPassword:l.trim(),displayName:c.trim()||void 0}),onConnected:()=>u("")});return e.jsxs(P,{title:"Connect a WordPress site",description:e.jsxs(e.Fragment,{children:["Pulls request events from the Canonry Traffic Logger plugin. The Application Password is stored in ",e.jsx("code",{children:"~/.canonry/config.yaml"})," on the server and never echoed back to the dashboard."]}),projectName:t,onBack:a,onClose:n,onSubmit:v,isPending:f.isPending,error:g,children:[e.jsx(p,{label:"WordPress site URL",description:"Base URL of the site running the Canonry Traffic Logger plugin.",required:!0,children:e.jsx("input",{type:"url",value:r,onChange:x=>i(x.target.value),required:!0,autoComplete:"url",placeholder:"https://example.com",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Username",description:"WordPress user that owns the Application Password.",required:!0,children:e.jsx("input",{type:"text",value:s,onChange:x=>o(x.target.value),required:!0,autoComplete:"username",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Application Password",description:"Create one in wp-admin under Users -> Profile -> Application Passwords.",required:!0,children:e.jsx("input",{type:"password",value:l,onChange:x=>u(x.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Display name (optional)",description:"Friendly label shown in the dashboard. Defaults to the WordPress host.",children:e.jsx("input",{type:"text",value:c,onChange:x=>j(x.target.value),autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})})]})}function ce({projectName:t,onBack:a,onClose:n}){const[r,i]=d.useState(""),[s,o]=d.useState(""),[l,u]=d.useState(""),[c,j]=d.useState(""),[f,g]=d.useState(""),b=_(t||null),{error:v,runConnect:x}=k(t,n),N=()=>x({validate:()=>r.trim()?f.trim()?null:"Service-account JSON content is required.":"GCP project ID is required.",mutate:()=>b.mutateAsync({gcpProjectId:r.trim(),serviceName:s.trim()||void 0,location:l.trim()||void 0,displayName:c.trim()||void 0,keyJson:f.trim()}),onConnected:()=>g("")}),h=async m=>{if(!m)return;const B=await m.text();g(B)};return e.jsxs(P,{title:"Connect a Cloud Run service",description:e.jsxs(e.Fragment,{children:["v1 supports service-account JSON only. The private key is stored in"," ",e.jsx("code",{children:"~/.canonry/config.yaml"})," on the server and never echoed back to the dashboard."]}),projectName:t,onBack:a,onClose:n,onSubmit:N,isPending:b.isPending,error:v,children:[e.jsx(p,{label:"GCP project ID",description:"The Google Cloud project hosting the Cloud Run service (e.g. my-prod-foo).",required:!0,children:e.jsx("input",{type:"text",value:r,onChange:m=>i(m.target.value),required:!0,autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Service name (optional)",description:"Restrict log pulls to a specific Cloud Run service. Omit to pull all services in the project.",children:e.jsx("input",{type:"text",value:s,onChange:m=>o(m.target.value),autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Location (optional)",description:"Region of the Cloud Run service (e.g. us-central1). Helpful when multiple regions emit logs.",children:e.jsx("input",{type:"text",value:l,onChange:m=>u(m.target.value),autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Display name (optional)",description:"Friendly label shown in the dashboard. Defaults to the project + service combo.",children:e.jsx("input",{type:"text",value:c,onChange:m=>j(m.target.value),autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsxs(p,{label:"Service-account JSON",description:"Paste the contents of the SA key (JSON). The SA needs roles/logging.viewer (or any role granting logging.logEntries.list).",required:!0,children:[e.jsx("textarea",{value:f,onChange:m=>g(m.target.value),rows:6,spellCheck:!1,autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 font-mono text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none",placeholder:'{"type":"service_account","project_id":"…","private_key":"…"}',required:!0}),e.jsxs("label",{className:"mt-2 inline-flex cursor-pointer items-center gap-2 text-sm text-secondary hover:text-strong",children:[e.jsx("input",{type:"file",accept:"application/json,.json",className:"hidden",onChange:m=>{h(m.target.files?.[0]??null)}}),e.jsx("span",{className:"rounded-md border border-base px-2 py-1",children:"Or upload a key file"})]})]})]})}function de({projectName:t,onBack:a,onClose:n}){const[r,i]=d.useState(""),[s,o]=d.useState(""),[l,u]=d.useState(""),[c,j]=d.useState("production"),[f,g]=d.useState(""),b=G(t||null),{error:v,runConnect:x}=k(t,n),N=()=>x({validate:()=>r.trim()?s.trim()?l.trim()?null:"Vercel personal access token is required.":"Vercel team / account ID is required.":"Vercel project ID is required.",mutate:()=>b.mutateAsync({projectId:r.trim(),teamId:s.trim(),token:l.trim(),environment:c,displayName:f.trim()||void 0}),startInitialBackfill:!1,onConnected:()=>u("")});return e.jsxs(P,{title:"Connect a Vercel project",description:e.jsxs(e.Fragment,{children:["Pulls request logs straight from Vercel, no in-app instrumentation needed. The personal access token is stored in ",e.jsx("code",{children:"~/.canonry/config.yaml"})," on the server and never echoed back to the dashboard."]}),projectName:t,onBack:a,onClose:n,onSubmit:N,isPending:b.isPending,error:v,children:[e.jsx(p,{label:"Vercel project ID",description:"The prj_… id from the Vercel dashboard or .vercel/project.json.",required:!0,children:e.jsx("input",{type:"text",value:r,onChange:h=>i(h.target.value),required:!0,autoComplete:"off",placeholder:"prj_…",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Vercel team / account ID",description:"The Vercel team or personal account that owns the project. Find it as orgId in your .vercel/project.json.",required:!0,children:e.jsx("input",{type:"text",value:s,onChange:h=>o(h.target.value),required:!0,autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Personal access token",description:"Create a Vercel personal access token under Account Settings → Tokens. Tokens can expire, so use a long-lived one.",required:!0,children:e.jsx("input",{type:"password",value:l,onChange:h=>u(h.target.value),required:!0,autoComplete:"new-password",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})}),e.jsx(p,{label:"Environment",description:"Which deployment environment's request logs to pull.",children:e.jsxs("select",{value:c,onChange:h=>j(h.target.value),className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong focus:border-mono-500 focus:outline-none",children:[e.jsx("option",{value:"production",children:"production"}),e.jsx("option",{value:"preview",children:"preview"})]})}),e.jsx(p,{label:"Display name (optional)",description:"Friendly label shown in the dashboard. Defaults to the Vercel project ID.",children:e.jsx("input",{type:"text",value:f,onChange:h=>g(h.target.value),autoComplete:"off",className:"w-full rounded border border-strong bg-transparent px-2 py-1.5 text-sm text-strong placeholder-mono-600 focus:border-mono-500 focus:outline-none"})})]})}function p({label:t,description:a,required:n,children:r}){return e.jsxs("label",{className:"flex flex-col gap-1",children:[e.jsxs("span",{className:"text-sm font-medium text-strong",children:[t,n?e.jsx("span",{className:"ml-1 text-negative-400",children:"*"}):null]}),r,e.jsx("span",{className:"text-[13px] leading-5 text-secondary",children:a})]})}function ue(t){if(!t)return"never";const a=Date.now()-new Date(t).getTime(),n=Math.floor(a/6e4);if(n<1)return"just now";if(n<60)return`${n}m ago`;const r=Math.floor(n/60);return r<24?`${r}h ago`:`${Math.floor(r/24)}d ago`}function y(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}K`:t.toLocaleString()}function ye(){const[t,a]=d.useState(""),[n,r]=d.useState(!1),s=L(H({client:V})).data??[],o=d.useMemo(()=>t||(s[0]?.name??""),[t,s]),l=K(o||null),u=l.data?.sources??[];return e.jsxs("div",{className:"page-container",children:[e.jsxs("div",{className:"page-header",children:[e.jsxs("div",{className:"page-header-left",children:[e.jsx("h1",{className:"page-title",children:"Traffic sources"}),e.jsx("p",{className:"page-subtitle",children:"AI crawler hits and referral sessions from your server logs."})]}),!w()&&e.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2",children:e.jsxs(C,{type:"button",variant:"outline",size:"sm",onClick:()=>r(!0),disabled:!o,children:[e.jsx(T,{className:"size-3.5"}),"Connect a source"]})})]}),e.jsxs("section",{children:[s.length>1&&e.jsxs("label",{className:"mb-4 flex w-fit items-center gap-2 text-sm font-medium text-secondary",htmlFor:"traffic-project",children:["Project",e.jsx("select",{id:"traffic-project",className:"h-8 min-w-44 rounded-md border border-base bg-bg px-2 text-sm text-heading outline-none transition focus:border-mono-500 focus:ring-1 focus:ring-mono-500",value:o,onChange:c=>a(c.target.value),children:s.map(c=>e.jsx("option",{value:c.name,children:c.displayName??c.name},c.id))})]}),o?l.isLoading?e.jsx(S,{className:"p-6 text-center text-sm text-muted",children:"Loading sources…"}):u.length===0?e.jsxs(S,{className:"p-8 text-center",children:[e.jsxs("p",{className:"text-sm text-neutral",children:["No traffic sources connected for ",o,"."]}),!w()&&e.jsxs(e.Fragment,{children:[e.jsx("p",{className:"mt-1 text-sm text-secondary",children:"Connect a source to start collecting traffic."}),e.jsx("div",{className:"mt-4 flex flex-wrap items-center justify-center gap-2",children:e.jsxs(C,{type:"button",variant:"outline",size:"sm",onClick:()=>r(!0),children:[e.jsx(T,{className:"size-3.5"}),"Connect a source"]})})]})]}):e.jsx(pe,{projectName:o,sources:u}):e.jsx(S,{className:"p-6 text-center text-sm text-muted",children:"No projects yet."})]}),!w()&&e.jsx(se,{open:n,onOpenChange:r,projectName:o})]})}function pe({projectName:t,sources:a}){const n=F(),r=$({queries:a.map(s=>({...W({client:V,path:{name:t,id:s.id}}),staleTime:3e4}))}),i=a.map((s,o)=>({source:s,detail:r[o]?.data,isLoading:r[o]?.isLoading??!1}));return e.jsx("div",{className:"rounded-xl border border-default bg-surface overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{className:"bg-bg-elevated/50 text-[10px] font-semibold uppercase tracking-wider text-muted",children:e.jsxs("tr",{children:[e.jsx("th",{className:"px-4 py-2 text-left",children:"Source"}),e.jsx("th",{className:"px-4 py-2 text-left",children:"Status"}),e.jsx("th",{className:"px-4 py-2 text-left",children:"Last sync"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Content crawls"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"Infra crawls"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"AI fetches"}),e.jsx("th",{className:"px-4 py-2 text-right",children:"AI referrals"}),e.jsx("th",{className:"px-4 py-2 text-right"})]})}),e.jsx("tbody",{className:"divide-y divide-mono-800/60",children:i.map(({source:s,detail:o,isLoading:l})=>e.jsxs("tr",{className:"cursor-pointer transition-colors hover:bg-bg-elevated/40 focus-within:bg-bg-elevated/40",onClick:u=>{M(u)&&n({to:"/traffic/$projectName/$sourceId",params:{projectName:t,sourceId:s.id}})},children:[e.jsx("td",{className:"px-4 py-3",children:e.jsx(I,{to:"/traffic/$projectName/$sourceId",params:{projectName:t,sourceId:s.id},className:"font-medium text-heading hover:underline",children:s.displayName})}),e.jsxs("td",{className:"px-4 py-3",children:[e.jsx(J,{tone:Y(s.status),children:s.status}),s.lastError?e.jsx("p",{className:"mt-1 max-w-[18rem] truncate text-sm text-negative-400",title:s.lastError,children:s.lastError}):null]}),e.jsx("td",{className:"px-4 py-3 text-neutral",children:ue(s.lastSyncedAt)}),e.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-heading",title:o?`${o.totals24h.crawlerHits.toLocaleString("en-US")} total crawler hits`:void 0,children:l?"—":y(o?.totals24h.crawlerContentHits??0)}),e.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-muted",children:l?"—":y(o?.totals24h.crawlerInfraHits??0)}),e.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-heading",children:l?"—":y(o?.totals24h.aiUserFetchHits??0)}),e.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-heading",children:l?"—":y(o?.totals24h.aiReferralLandedHits??0)}),e.jsx("td",{className:"px-4 py-3 text-right",children:e.jsxs(I,{to:"/traffic/$projectName/$sourceId",params:{projectName:t,sourceId:s.id},className:"inline-flex items-center gap-1 text-sm text-secondary hover:text-heading",children:["View",e.jsx(re,{className:"size-3.5"})]})})]},s.id))})]})})}export{ye as TrafficPage};