@contentbit/studio 2.0.0-next.1 → 2.0.0-next.3

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 (30) hide show
  1. package/dist/client/assets/{api-aCc2x-IO.js → api-D5joupdU.js} +1 -1
  2. package/dist/client/assets/{arrow-right-tp4VknZo.js → arrow-right-DgVH2ckT.js} +1 -1
  3. package/dist/client/assets/{document-DIh3ZPXr.js → document-C9j7At_d.js} +1 -1
  4. package/dist/client/assets/{documents-CjBZYbQ4.js → documents-IFM8-M_m.js} +1 -1
  5. package/dist/client/assets/{file-code-corner-Fzc5liO9.js → file-code-corner-Ea1mVVN3.js} +1 -1
  6. package/dist/client/assets/{file-text-B8O46COn.js → file-text-JyAIocHS.js} +1 -1
  7. package/dist/client/assets/index-0pGRBfyx.js +12 -0
  8. package/dist/client/assets/{page-BMU8eIrR.js → page-B3xqvv7Z.js} +1 -1
  9. package/dist/client/assets/{routes-WndCJoku.js → routes-DCV_quef.js} +1 -1
  10. package/dist/client/assets/{search-BnUPH8AI.js → search-Dh1jm8QA.js} +1 -1
  11. package/dist/client/assets/{target-BMSXP2fU.js → target-BIrWK4A2.js} +1 -1
  12. package/dist/client/assets/{templates-IJid1Zwh.js → templates-CyNCDlsk.js} +1 -1
  13. package/dist/server/api.d.ts.map +1 -1
  14. package/dist/server/assets/{_tanstack-start-manifest_v-WfZ3uz_l.js → _tanstack-start-manifest_v-BuI4pWk7.js} +23 -23
  15. package/dist/server/assets/{document-BjPXZ9gS.js → document-DOP_63d9.js} +1 -1
  16. package/dist/server/assets/{documents-jT4KnSkA.js → documents-DFgsCsBO.js} +1 -1
  17. package/dist/server/assets/{empty-plugin-adapters-Ctp1ZmyT.js → empty-plugin-adapters-CViywP8O.js} +1 -1
  18. package/dist/server/assets/{page--xw7NmtK.js → page-aNwYcZ_l.js} +1 -1
  19. package/dist/server/assets/{router-xI8HUWRI.js → router-CtNxhc0G.js} +38 -42
  20. package/dist/server/assets/{routes-CfwU-Ww2.js → routes-C77LqfqF.js} +1 -1
  21. package/dist/server/assets/start-BrmB4H5W.js +3 -0
  22. package/dist/server/index.js +73 -39
  23. package/dist/server/server.js +2790 -2344
  24. package/package.json +7 -7
  25. package/src/routeTree.gen.ts +36 -36
  26. package/src/server/api.ts +16 -13
  27. package/src/server/scan.ts +4 -4
  28. package/src/server/site.test.ts +32 -3
  29. package/dist/client/assets/index-Cd04OFZT.js +0 -11
  30. package/dist/server/assets/start-Dk-BJfGT.js +0 -3
@@ -1 +1 @@
1
- import{a as e,i as t,s as n}from"./index-Cd04OFZT.js";import{_ as r,a as i,d as a,f as o,h as s,m as c,n as l,o as u,p as d,s as f,v as p,y as m}from"./api-aCc2x-IO.js";import{n as h,t as g}from"./file-code-corner-Fzc5liO9.js";import{t as _}from"./target-BMSXP2fU.js";var v={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};v.node;var y=m(v),b={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};b.node;var x=m(b),S={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};S.node;var C=m(S),w=n();function T(){let n=t.useSearch(),{data:m,error:v,refreshing:b,refresh:S}=l(n.path),T=n.path?v:`Missing page path.`,D=m?.context.page===n.path?m.context:void 0,j=m?.root??``;return(0,w.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,w.jsx)(`header`,{className:`border-b bg-muted/30`,children:(0,w.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-5 px-5 py-5`,children:[(0,w.jsx)(d,{}),(0,w.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-center md:justify-between`,children:[(0,w.jsx)(i,{asChild:!0,variant:`outline`,className:`w-fit gap-2`,children:(0,w.jsxs)(e,{to:`/`,search:{q:``},children:[(0,w.jsx)(h,{className:`size-4`}),`Pages`]})}),(0,w.jsxs)(i,{onClick:S,disabled:b,className:`w-fit gap-2`,children:[(0,w.jsx)(p,{className:b?`size-4 animate-spin`:`size-4`}),`Refresh`]})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`page context`}),(0,w.jsx)(`h1`,{className:`mt-1 break-all font-mono text-2xl font-semibold tracking-tight`,children:n.path||`Built page`}),D&&(0,w.jsxs)(w.Fragment,{children:[D.url&&(0,w.jsx)(`a`,{href:D.url,target:`_blank`,rel:`noreferrer`,className:`mt-1 block break-all text-sm text-muted-foreground hover:underline`,children:D.url}),(0,w.jsxs)(`p`,{className:`mt-1 text-sm`,children:[`Source:`,` `,D.source?(0,w.jsx)(e,{to:`/document`,search:{path:D.source.file},className:`font-mono underline underline-offset-4`,children:s(j,D.source.file)}):(0,w.jsx)(`span`,{className:`text-muted-foreground`,children:`none`})]}),(0,w.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2 text-xs`,children:[(0,w.jsx)(u,{children:c(D.words,`word`)}),(0,w.jsxs)(u,{children:[c(D.linksIn.length,`link`),` in`]}),(0,w.jsxs)(u,{children:[c(D.linksOut.length,`link`),` out`]}),(0,w.jsx)(u,{children:c(D.findings.length,`finding`)})]})]})]})]})}),(0,w.jsxs)(`section`,{className:`mx-auto grid max-w-7xl gap-5 px-5 py-5 xl:grid-cols-[minmax(0,1fr)_380px]`,children:[(0,w.jsxs)(`div`,{className:`min-w-0 space-y-5`,children:[T&&(0,w.jsx)(a,{title:`Error`,icon:(0,w.jsx)(r,{className:`size-4`}),children:(0,w.jsx)(`p`,{className:`text-sm text-destructive`,children:T})}),!D&&!T&&(0,w.jsx)(a,{title:`Loading`,icon:(0,w.jsx)(p,{className:`size-4`}),children:(0,w.jsx)(`p`,{className:`text-sm`,children:`Reading the page...`})}),D&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a,{title:`Served`,icon:(0,w.jsx)(y,{className:`size-4`}),children:(0,w.jsx)(E,{rows:[[`Title`,D.served.title],[`Description`,D.served.description],[`Canonical`,D.served.canonical],[`Lang`,D.served.lang],[`Robots`,`${D.served.robots.noindex?`noindex`:`index`}, ${D.served.robots.nofollow?`nofollow`:`follow`}`],[`Hreflang`,D.served.alternates.map(({hreflang:e,href:t})=>`${e} ${t}`).join(`, `)||void 0],[`Structured data`,D.served.structuredData.join(`, `)||void 0]]})}),D.declared&&(0,w.jsx)(a,{title:`Declared`,icon:(0,w.jsx)(g,{className:`size-4`}),children:(0,w.jsx)(E,{rows:[[`Title`,D.declared.title],[`Description`,D.declared.description],[`Type`,D.declared.type],[`Intent`,D.declared.intent],[`Primary keyword`,D.declared.keywords?.primary],[`Secondary keywords`,D.declared.keywords?.secondary?.join(`, `)],[`LSI keywords`,D.declared.keywords?.lsi?.join(`, `)]]})}),(0,w.jsx)(a,{title:`Outline, ${c(D.words,`word`)}`,icon:(0,w.jsx)(C,{className:`size-4`}),children:(0,w.jsx)(O,{context:D})}),(0,w.jsx)(a,{title:`Links out`,icon:(0,w.jsx)(x,{className:`size-4`}),children:(0,w.jsx)(k,{context:D})}),(0,w.jsx)(a,{title:`Links in`,icon:(0,w.jsx)(x,{className:`size-4`}),children:(0,w.jsx)(A,{context:D})})]})]}),D&&(0,w.jsxs)(`aside`,{className:`space-y-5`,children:[(0,w.jsx)(a,{title:`Findings`,icon:(0,w.jsx)(r,{className:`size-4`}),children:D.findings.length>0?(0,w.jsx)(`ul`,{className:`space-y-3`,children:D.findings.map((e,t)=>(0,w.jsx)(o,{finding:e,root:j},`${e.code}-${t}`))}):(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No findings on this page.`})}),D.source&&(0,w.jsx)(a,{title:`Markdown findings`,icon:(0,w.jsx)(g,{className:`size-4`}),children:D.contentFindings.length>0?(0,w.jsx)(`ul`,{className:`space-y-3`,children:D.contentFindings.map((e,t)=>(0,w.jsx)(f,{finding:e},`${e.code}-${t}`))}):(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No findings in its source.`})}),D.contract&&(0,w.jsx)(a,{title:`Contract`,icon:(0,w.jsx)(_,{className:`size-4`}),children:(0,w.jsx)(N,{contract:D.contract})})]})]})]})}function E({rows:e}){return(0,w.jsx)(`dl`,{className:`grid gap-x-4 gap-y-2 text-sm md:grid-cols-[10rem_1fr]`,children:e.map(([e,t])=>(0,w.jsx)(D,{label:e,children:t??(0,w.jsx)(`span`,{className:`text-muted-foreground`,children:`none`})},e))})}function D({label:e,children:t}){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`dt`,{className:`text-xs uppercase text-muted-foreground md:pt-0.5`,children:e}),(0,w.jsx)(`dd`,{className:`min-w-0 break-words`,children:t})]})}function O({context:e}){return(0,w.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[e.intro&&(0,w.jsxs)(`p`,{className:`line-clamp-3 text-muted-foreground`,children:[(0,w.jsx)(`span`,{className:`mr-2 font-mono text-xs uppercase`,children:`intro`}),e.intro]}),e.outline.length===0&&(0,w.jsx)(`p`,{className:`text-muted-foreground`,children:`No headings.`}),(0,w.jsx)(`ul`,{className:`space-y-2`,children:e.outline.map((e,t)=>(0,w.jsxs)(`li`,{style:{paddingLeft:`${(e.level-1)*1.25}rem`},children:[(0,w.jsxs)(`p`,{children:[(0,w.jsxs)(`span`,{className:`mr-2 font-mono text-xs text-muted-foreground`,children:[`h`,e.level]}),(0,w.jsx)(`span`,{className:`font-medium`,children:e.text}),e.id&&(0,w.jsxs)(`span`,{className:`ml-2 font-mono text-xs text-muted-foreground`,children:[`#`,e.id]}),(0,w.jsx)(`span`,{className:`ml-2 text-xs text-muted-foreground`,children:c(e.words,`word`)})]}),e.body&&(0,w.jsx)(`p`,{className:`mt-1 line-clamp-3 text-xs text-muted-foreground`,children:e.body})]},`${e.text}-${t}`))})]})}function k({context:e}){return e.linksOut.length===0?(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No links.`}):(0,w.jsx)(j,{headers:[`Text`,`Target`,`Placement`],children:e.linksOut.map(({href:e,text:t,placement:n,target:r},i)=>(0,w.jsxs)(`tr`,{className:`border-t align-top`,children:[(0,w.jsx)(`td`,{className:`py-1.5 pr-3 break-words`,children:t||(0,w.jsx)(P,{children:`no text`})}),(0,w.jsx)(`td`,{className:`py-1.5 pr-3 font-mono text-xs break-all`,children:(0,w.jsx)(M,{href:e,target:r})}),(0,w.jsx)(`td`,{className:`py-1.5 text-xs text-muted-foreground`,children:n})]},`${e}-${i}`))})}function A({context:t}){return t.linksIn.length===0?(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No built page links here.`}):(0,w.jsx)(j,{headers:[`From`,`Text`,`Placement`],children:t.linksIn.map(({from:t,text:n,anchor:r,placement:i},a)=>(0,w.jsxs)(`tr`,{className:`border-t align-top`,children:[(0,w.jsx)(`td`,{className:`py-1.5 pr-3 font-mono text-xs break-all`,children:(0,w.jsx)(e,{to:`/page`,search:{path:t},className:`hover:underline`,children:t})}),(0,w.jsxs)(`td`,{className:`py-1.5 pr-3 break-words`,children:[n||(0,w.jsx)(P,{children:`no text`}),r!==void 0&&(0,w.jsxs)(`span`,{className:`ml-1 font-mono text-xs text-muted-foreground`,children:[`#`,r]})]}),(0,w.jsx)(`td`,{className:`py-1.5 text-xs text-muted-foreground`,children:i})]},`${t}-${a}`))})}function j({headers:e,children:t}){return(0,w.jsx)(`div`,{className:`max-h-[32rem] overflow-auto`,children:(0,w.jsxs)(`table`,{className:`w-full text-left text-sm`,children:[(0,w.jsx)(`thead`,{className:`text-xs uppercase text-muted-foreground`,children:(0,w.jsx)(`tr`,{children:e.map(e=>(0,w.jsx)(`th`,{className:`pb-2 pr-3 font-medium`,children:e},e))})}),(0,w.jsx)(`tbody`,{children:t})]})})}function M({href:t,target:n}){if(n.kind===`page`)return(0,w.jsxs)(e,{to:`/page`,search:{path:n.page},className:`hover:underline`,children:[n.page,n.anchor!==void 0&&`#${n.anchor}`]});let r=n.kind===`file`?n.exists?`a file in the build`:`a file missing from the build`:n.kind===`missing`?`no built page`:n.kind===`host-route`?`a host route`:n.kind;return(0,w.jsxs)(w.Fragment,{children:[t,(0,w.jsx)(`span`,{className:`ml-2 font-sans ${n.kind===`missing`||n.kind===`file`&&!n.exists?`text-destructive`:`text-muted-foreground`}`,children:r})]})}function N({contract:e}){return(0,w.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[(0,w.jsxs)(`p`,{children:[`Page type: `,(0,w.jsx)(`span`,{className:`font-medium`,children:e.target.type??`none`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`mb-1 text-xs uppercase text-muted-foreground`,children:`Acceptance checks`}),e.acceptanceChecks.length===0?(0,w.jsx)(`p`,{className:`text-muted-foreground`,children:`None.`}):(0,w.jsx)(`ul`,{className:`space-y-1`,children:e.acceptanceChecks.map(e=>(0,w.jsx)(`li`,{className:`border bg-muted/40 px-2 py-1.5`,children:e},e))})]}),e.recommendedBlocks.length>0&&(0,w.jsxs)(`p`,{children:[`Recommended blocks: `,e.recommendedBlocks.join(`, `),`.`]})]})}function P({children:e}){return(0,w.jsx)(`span`,{className:`text-muted-foreground`,children:e})}export{T as component};
1
+ import{a as e,s as t,t as n}from"./index-0pGRBfyx.js";import{_ as r,a as i,d as a,f as o,h as s,m as c,n as l,o as u,p as d,s as f,v as p,y as m}from"./api-D5joupdU.js";import{n as h,t as g}from"./file-code-corner-Ea1mVVN3.js";import{t as _}from"./target-BIrWK4A2.js";var v={name:`globe`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]};v.node;var y=m(v),b={name:`link-2`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]};b.node;var x=m(b),S={name:`list-tree`,size:24,node:[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]};S.node;var C=m(S),w=t();function T(){let t=n.useSearch(),{data:m,error:v,refreshing:b,refresh:S}=l(t.path),T=t.path?v:`Missing page path.`,D=m?.context.page===t.path?m.context:void 0,j=m?.root??``;return(0,w.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,w.jsx)(`header`,{className:`border-b bg-muted/30`,children:(0,w.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-5 px-5 py-5`,children:[(0,w.jsx)(d,{}),(0,w.jsxs)(`div`,{className:`flex flex-col gap-3 md:flex-row md:items-center md:justify-between`,children:[(0,w.jsx)(i,{asChild:!0,variant:`outline`,className:`w-fit gap-2`,children:(0,w.jsxs)(e,{to:`/`,search:{q:``},children:[(0,w.jsx)(h,{className:`size-4`}),`Pages`]})}),(0,w.jsxs)(i,{onClick:S,disabled:b,className:`w-fit gap-2`,children:[(0,w.jsx)(p,{className:b?`size-4 animate-spin`:`size-4`}),`Refresh`]})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`page context`}),(0,w.jsx)(`h1`,{className:`mt-1 break-all font-mono text-2xl font-semibold tracking-tight`,children:t.path||`Built page`}),D&&(0,w.jsxs)(w.Fragment,{children:[D.url&&(0,w.jsx)(`a`,{href:D.url,target:`_blank`,rel:`noreferrer`,className:`mt-1 block break-all text-sm text-muted-foreground hover:underline`,children:D.url}),(0,w.jsxs)(`p`,{className:`mt-1 text-sm`,children:[`Source:`,` `,D.source?(0,w.jsx)(e,{to:`/document`,search:{path:D.source.file},className:`font-mono underline underline-offset-4`,children:s(j,D.source.file)}):(0,w.jsx)(`span`,{className:`text-muted-foreground`,children:`none`})]}),(0,w.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-2 text-xs`,children:[(0,w.jsx)(u,{children:c(D.words,`word`)}),(0,w.jsxs)(u,{children:[c(D.linksIn.length,`link`),` in`]}),(0,w.jsxs)(u,{children:[c(D.linksOut.length,`link`),` out`]}),(0,w.jsx)(u,{children:c(D.findings.length,`finding`)})]})]})]})]})}),(0,w.jsxs)(`section`,{className:`mx-auto grid max-w-7xl gap-5 px-5 py-5 xl:grid-cols-[minmax(0,1fr)_380px]`,children:[(0,w.jsxs)(`div`,{className:`min-w-0 space-y-5`,children:[T&&(0,w.jsx)(a,{title:`Error`,icon:(0,w.jsx)(r,{className:`size-4`}),children:(0,w.jsx)(`p`,{className:`text-sm text-destructive`,children:T})}),!D&&!T&&(0,w.jsx)(a,{title:`Loading`,icon:(0,w.jsx)(p,{className:`size-4`}),children:(0,w.jsx)(`p`,{className:`text-sm`,children:`Reading the page...`})}),D&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(a,{title:`Served`,icon:(0,w.jsx)(y,{className:`size-4`}),children:(0,w.jsx)(E,{rows:[[`Title`,D.served.title],[`Description`,D.served.description],[`Canonical`,D.served.canonical],[`Lang`,D.served.lang],[`Robots`,`${D.served.robots.noindex?`noindex`:`index`}, ${D.served.robots.nofollow?`nofollow`:`follow`}`],[`Hreflang`,D.served.alternates.map(({hreflang:e,href:t})=>`${e} ${t}`).join(`, `)||void 0],[`Structured data`,D.served.structuredData.join(`, `)||void 0]]})}),D.declared&&(0,w.jsx)(a,{title:`Declared`,icon:(0,w.jsx)(g,{className:`size-4`}),children:(0,w.jsx)(E,{rows:[[`Title`,D.declared.title],[`Description`,D.declared.description],[`Type`,D.declared.type],[`Intent`,D.declared.intent],[`Primary keyword`,D.declared.keywords?.primary],[`Secondary keywords`,D.declared.keywords?.secondary?.join(`, `)],[`LSI keywords`,D.declared.keywords?.lsi?.join(`, `)]]})}),(0,w.jsx)(a,{title:`Outline, ${c(D.words,`word`)}`,icon:(0,w.jsx)(C,{className:`size-4`}),children:(0,w.jsx)(O,{context:D})}),(0,w.jsx)(a,{title:`Links out`,icon:(0,w.jsx)(x,{className:`size-4`}),children:(0,w.jsx)(k,{context:D})}),(0,w.jsx)(a,{title:`Links in`,icon:(0,w.jsx)(x,{className:`size-4`}),children:(0,w.jsx)(A,{context:D})})]})]}),D&&(0,w.jsxs)(`aside`,{className:`space-y-5`,children:[(0,w.jsx)(a,{title:`Findings`,icon:(0,w.jsx)(r,{className:`size-4`}),children:D.findings.length>0?(0,w.jsx)(`ul`,{className:`space-y-3`,children:D.findings.map((e,t)=>(0,w.jsx)(o,{finding:e,root:j},`${e.code}-${t}`))}):(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No findings on this page.`})}),D.source&&(0,w.jsx)(a,{title:`Markdown findings`,icon:(0,w.jsx)(g,{className:`size-4`}),children:D.contentFindings.length>0?(0,w.jsx)(`ul`,{className:`space-y-3`,children:D.contentFindings.map((e,t)=>(0,w.jsx)(f,{finding:e},`${e.code}-${t}`))}):(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No findings in its source.`})}),D.contract&&(0,w.jsx)(a,{title:`Contract`,icon:(0,w.jsx)(_,{className:`size-4`}),children:(0,w.jsx)(N,{contract:D.contract})})]})]})]})}function E({rows:e}){return(0,w.jsx)(`dl`,{className:`grid gap-x-4 gap-y-2 text-sm md:grid-cols-[10rem_1fr]`,children:e.map(([e,t])=>(0,w.jsx)(D,{label:e,children:t??(0,w.jsx)(`span`,{className:`text-muted-foreground`,children:`none`})},e))})}function D({label:e,children:t}){return(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`dt`,{className:`text-xs uppercase text-muted-foreground md:pt-0.5`,children:e}),(0,w.jsx)(`dd`,{className:`min-w-0 break-words`,children:t})]})}function O({context:e}){return(0,w.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[e.intro&&(0,w.jsxs)(`p`,{className:`line-clamp-3 text-muted-foreground`,children:[(0,w.jsx)(`span`,{className:`mr-2 font-mono text-xs uppercase`,children:`intro`}),e.intro]}),e.outline.length===0&&(0,w.jsx)(`p`,{className:`text-muted-foreground`,children:`No headings.`}),(0,w.jsx)(`ul`,{className:`space-y-2`,children:e.outline.map((e,t)=>(0,w.jsxs)(`li`,{style:{paddingLeft:`${(e.level-1)*1.25}rem`},children:[(0,w.jsxs)(`p`,{children:[(0,w.jsxs)(`span`,{className:`mr-2 font-mono text-xs text-muted-foreground`,children:[`h`,e.level]}),(0,w.jsx)(`span`,{className:`font-medium`,children:e.text}),e.id&&(0,w.jsxs)(`span`,{className:`ml-2 font-mono text-xs text-muted-foreground`,children:[`#`,e.id]}),(0,w.jsx)(`span`,{className:`ml-2 text-xs text-muted-foreground`,children:c(e.words,`word`)})]}),e.body&&(0,w.jsx)(`p`,{className:`mt-1 line-clamp-3 text-xs text-muted-foreground`,children:e.body})]},`${e.text}-${t}`))})]})}function k({context:e}){return e.linksOut.length===0?(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No links.`}):(0,w.jsx)(j,{headers:[`Text`,`Target`,`Placement`],children:e.linksOut.map(({href:e,text:t,placement:n,target:r},i)=>(0,w.jsxs)(`tr`,{className:`border-t align-top`,children:[(0,w.jsx)(`td`,{className:`py-1.5 pr-3 break-words`,children:t||(0,w.jsx)(P,{children:`no text`})}),(0,w.jsx)(`td`,{className:`py-1.5 pr-3 font-mono text-xs break-all`,children:(0,w.jsx)(M,{href:e,target:r})}),(0,w.jsx)(`td`,{className:`py-1.5 text-xs text-muted-foreground`,children:n})]},`${e}-${i}`))})}function A({context:t}){return t.linksIn.length===0?(0,w.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No built page links here.`}):(0,w.jsx)(j,{headers:[`From`,`Text`,`Placement`],children:t.linksIn.map(({from:t,text:n,anchor:r,placement:i},a)=>(0,w.jsxs)(`tr`,{className:`border-t align-top`,children:[(0,w.jsx)(`td`,{className:`py-1.5 pr-3 font-mono text-xs break-all`,children:(0,w.jsx)(e,{to:`/page`,search:{path:t},className:`hover:underline`,children:t})}),(0,w.jsxs)(`td`,{className:`py-1.5 pr-3 break-words`,children:[n||(0,w.jsx)(P,{children:`no text`}),r!==void 0&&(0,w.jsxs)(`span`,{className:`ml-1 font-mono text-xs text-muted-foreground`,children:[`#`,r]})]}),(0,w.jsx)(`td`,{className:`py-1.5 text-xs text-muted-foreground`,children:i})]},`${t}-${a}`))})}function j({headers:e,children:t}){return(0,w.jsx)(`div`,{className:`max-h-[32rem] overflow-auto`,children:(0,w.jsxs)(`table`,{className:`w-full text-left text-sm`,children:[(0,w.jsx)(`thead`,{className:`text-xs uppercase text-muted-foreground`,children:(0,w.jsx)(`tr`,{children:e.map(e=>(0,w.jsx)(`th`,{className:`pb-2 pr-3 font-medium`,children:e},e))})}),(0,w.jsx)(`tbody`,{children:t})]})})}function M({href:t,target:n}){if(n.kind===`page`)return(0,w.jsxs)(e,{to:`/page`,search:{path:n.page},className:`hover:underline`,children:[n.page,n.anchor!==void 0&&`#${n.anchor}`]});let r=n.kind===`file`?n.exists?`a file in the build`:`a file missing from the build`:n.kind===`missing`?`no built page`:n.kind===`host-route`?`a host route`:n.kind;return(0,w.jsxs)(w.Fragment,{children:[t,(0,w.jsx)(`span`,{className:`ml-2 font-sans ${n.kind===`missing`||n.kind===`file`&&!n.exists?`text-destructive`:`text-muted-foreground`}`,children:r})]})}function N({contract:e}){return(0,w.jsxs)(`div`,{className:`space-y-3 text-sm`,children:[(0,w.jsxs)(`p`,{children:[`Page type: `,(0,w.jsx)(`span`,{className:`font-medium`,children:e.target.type??`none`})]}),(0,w.jsxs)(`div`,{children:[(0,w.jsx)(`p`,{className:`mb-1 text-xs uppercase text-muted-foreground`,children:`Acceptance checks`}),e.acceptanceChecks.length===0?(0,w.jsx)(`p`,{className:`text-muted-foreground`,children:`None.`}):(0,w.jsx)(`ul`,{className:`space-y-1`,children:e.acceptanceChecks.map(e=>(0,w.jsx)(`li`,{className:`border bg-muted/40 px-2 py-1.5`,children:e},e))})]}),e.recommendedBlocks.length>0&&(0,w.jsxs)(`p`,{children:[`Recommended blocks: `,e.recommendedBlocks.join(`, `),`.`]})]})}function P({children:e}){return(0,w.jsx)(`span`,{className:`text-muted-foreground`,children:e})}export{T as component};
@@ -1 +1 @@
1
- import{a as e,c as t,l as n,o as r,s as i,t as a}from"./index-Cd04OFZT.js";import{_ as o,a as s,c,d as l,f as u,g as d,h as f,i as p,l as m,m as h,p as g,u as _,v,y}from"./api-aCc2x-IO.js";import{t as b}from"./arrow-right-tp4VknZo.js";import{t as x}from"./search-BnUPH8AI.js";var S={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};S.node;var C=y(S),w={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};w.node;var T=y(w),E={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};E.node;var D=y(E),O={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};O.node;var k=y(O),A=n(t()),j=i(),M={flag:`from --origin`,config:`from site.origin`,canonicals:`inferred from canonicals`};function N(){let t=a.useSearch(),n=r({from:`/`}),{data:i,error:y,refreshing:S,refresh:w}=p(),E=(0,A.useMemo)(()=>{if(i?.kind!==`built`)return[];let e=t.q.toLowerCase().trim();return i.context.pages.filter(t=>[t.path,t.title,t.source&&f(i.root,t.source),t.type].concat(t.primaryKeyword).filter(Boolean).join(` `).toLowerCase().includes(e))},[i,t.q]),O=i?.kind===`built`?i:void 0,N=O?.context.pages.filter(({source:e})=>e!==void 0).length??0;return(0,j.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,j.jsx)(`section`,{className:`border-b bg-muted/30`,children:(0,j.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-6 px-5 py-6`,children:[(0,j.jsx)(g,{}),(0,j.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-end md:justify-between`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`contentbit studio`}),(0,j.jsx)(`h1`,{className:`mt-1 text-3xl font-semibold tracking-tight`,children:`Built pages`}),(0,j.jsx)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted-foreground`,children:`The pages the build serves, as contentbit check and contentbit context read them.`})]}),(0,j.jsxs)(s,{onClick:w,disabled:S,className:`w-fit gap-2`,children:[(0,j.jsx)(v,{className:S?`size-4 animate-spin`:`size-4`}),`Refresh`]})]}),O&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`dl`,{className:`grid gap-x-6 gap-y-1 text-sm md:grid-cols-[auto_1fr]`,children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Build`}),(0,j.jsxs)(`dd`,{className:`font-mono`,children:[f(O.root,O.context.build),`,`,` `,h(O.context.pages.length,`page`)]}),(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Origin`}),(0,j.jsx)(`dd`,{className:`font-mono`,children:O.context.origin?`${O.context.origin.url} (${M[O.context.origin.source]})`:`unknown`}),(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Markdown`}),(0,j.jsx)(`dd`,{children:O.markdownFiles===0?`none`:`${h(O.markdownFiles,`file`)}, ${N} with a built page`}),O.summary.ignored>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Ignored`}),(0,j.jsx)(`dd`,{children:`${h(O.summary.ignored,`finding`)}, by check.severity and check.ignore`})]})]}),(0,j.jsxs)(`div`,{className:`grid gap-px overflow-hidden rounded-sm border bg-border md:grid-cols-4`,children:[(0,j.jsx)(m,{label:`pages`,value:O.summary.pages}),(0,j.jsx)(m,{label:`errors`,value:O.summary.errors,tone:O.summary.errors>0?`bad`:`ok`}),(0,j.jsx)(m,{label:`warnings`,value:O.summary.warnings,tone:O.summary.warnings>0?`warn`:`ok`}),(0,j.jsx)(m,{label:`template findings`,value:O.context.templateFindings.length})]})]})]})}),(0,j.jsxs)(`section`,{className:`mx-auto grid max-w-7xl gap-5 px-5 py-5 lg:grid-cols-[minmax(0,1fr)_320px]`,children:[(0,j.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[y&&(0,j.jsx)(l,{title:`Error`,icon:(0,j.jsx)(o,{className:`size-4`}),children:(0,j.jsx)(`p`,{className:`text-sm text-destructive`,children:y})}),!i&&!y&&(0,j.jsx)(`div`,{className:`border p-4 text-sm text-muted-foreground`,children:`Reading the site...`}),i?.kind===`unbuilt`&&(0,j.jsx)(_,{...i}),O&&O.staleSources.length>0&&(0,j.jsx)(l,{title:`Stale build`,icon:(0,j.jsx)(o,{className:`size-4`}),children:(0,j.jsxs)(`p`,{className:`text-sm`,children:[h(O.staleSources.length,`Markdown file`),` changed after the build, so its pages may not show them yet. Rebuild the site and press Refresh.`]})}),O&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`label`,{className:`relative flex min-w-0 items-center`,children:[(0,j.jsx)(x,{className:`pointer-events-none absolute left-3 size-4 text-muted-foreground`}),(0,j.jsx)(`input`,{value:t.q,onChange:e=>void n({to:`/`,search:{q:e.target.value}}),placeholder:`Search path, title, source, type, keyword...`,className:`h-10 w-full border bg-background pl-9 pr-3 text-sm outline-none transition-colors focus:border-foreground`})]}),(0,j.jsxs)(`div`,{className:`overflow-hidden border`,children:[(0,j.jsx)(`div`,{className:`grid grid-cols-[1.4fr_1fr_0.4fr_0.6fr_0.7fr_2rem] gap-px border-b bg-border text-xs font-medium uppercase text-muted-foreground`,children:[`Page`,`Source`,`Words`,`Links in`,`Findings`,``].map(e=>(0,j.jsx)(`div`,{className:`bg-muted/50 px-3 py-2`,children:e},e))}),(0,j.jsxs)(`div`,{className:`divide-y`,children:[E.map(t=>(0,j.jsxs)(e,{to:`/page`,search:{path:t.path},className:`grid grid-cols-[1.4fr_1fr_0.4fr_0.6fr_0.7fr_2rem] gap-px bg-border text-sm transition-colors hover:bg-foreground/20`,children:[(0,j.jsxs)(`div`,{className:`min-w-0 bg-background px-3 py-3`,children:[(0,j.jsx)(`p`,{className:`truncate font-mono text-xs`,children:t.path}),(0,j.jsx)(`p`,{className:`truncate text-muted-foreground`,children:t.title??`No title`})]}),(0,j.jsxs)(`div`,{className:`min-w-0 bg-background px-3 py-3 font-mono text-xs text-muted-foreground`,children:[(0,j.jsx)(`p`,{className:`truncate`,children:t.source?f(O.root,t.source):`none`}),t.type&&(0,j.jsx)(`p`,{className:`truncate`,children:t.type})]}),(0,j.jsx)(`div`,{className:`bg-background px-3 py-3 font-mono text-xs`,children:t.words}),(0,j.jsxs)(`div`,{className:`bg-background px-3 py-3 text-xs`,children:[t.linksIn.content,` content`,(0,j.jsxs)(`span`,{className:`block text-muted-foreground`,children:[t.linksIn.layout,` layout`]})]}),(0,j.jsx)(`div`,{className:`bg-background px-3 py-3 text-xs`,children:(0,j.jsx)(P,{counts:O.findingCountsByPage[t.path]})}),(0,j.jsx)(`div`,{className:`flex items-center justify-center bg-background px-2 py-3`,children:(0,j.jsx)(b,{className:`size-4 text-muted-foreground`})})]},t.path)),E.length===0&&(0,j.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground`,children:`No built page matches the search.`})]})]})]})]}),O&&(0,j.jsxs)(`aside`,{className:`flex flex-col gap-4`,children:[(0,j.jsxs)(l,{title:`Template findings`,icon:(0,j.jsx)(o,{className:`size-4`}),children:[O.context.templateFindings.length===0?(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`None.`}):(0,j.jsx)(`ul`,{className:`space-y-2 text-sm`,children:O.context.templateFindings.slice(0,5).map((e,t)=>(0,j.jsxs)(`li`,{className:`border bg-muted/30 px-2 py-1.5`,children:[(0,j.jsx)(`span`,{className:`font-medium ${d(e.severity)}`,children:e.code}),(0,j.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:e.origin.kind===`template`&&`on ${h(e.origin.pages.length,`page`)}`})]},`${e.code}-${t}`))}),(0,j.jsx)(e,{to:`/templates`,className:`mt-3 inline-block text-sm font-medium underline underline-offset-4`,children:`All template findings`})]}),O.unbuiltFindings.length>0&&(0,j.jsxs)(l,{title:`Not on a built page`,icon:(0,j.jsx)(o,{className:`size-4`}),children:[(0,j.jsx)(`p`,{className:`mb-2 text-xs text-muted-foreground`,children:`Findings about a URL the build has no page for.`}),(0,j.jsx)(`ul`,{className:`space-y-2`,children:O.unbuiltFindings.map((e,t)=>(0,j.jsx)(u,{finding:e,root:O.root,showPage:!0},`${e.code}-${t}`))})]}),O.configFindings.length>0&&(0,j.jsx)(l,{title:`Check settings`,icon:(0,j.jsx)(k,{className:`size-4`}),children:(0,j.jsx)(c,{root:O.root,findings:O.configFindings})}),O.agentGuidanceFindings.length>0&&(0,j.jsx)(l,{title:`Agent guidance`,icon:(0,j.jsx)(C,{className:`size-4`}),children:(0,j.jsx)(c,{root:O.root,findings:O.agentGuidanceFindings})}),(0,j.jsxs)(l,{title:`Unlinked pages`,icon:(0,j.jsx)(D,{className:`size-4`}),children:[(0,j.jsx)(`p`,{className:`mb-2 text-xs text-muted-foreground`,children:`Indexable pages, other than the home page, that no content link on another page points to.`}),O.context.unlinked.length===0?(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`None.`}):(0,j.jsx)(`ul`,{className:`max-h-64 space-y-1 overflow-auto text-sm`,children:O.context.unlinked.map(t=>(0,j.jsx)(`li`,{children:(0,j.jsx)(e,{to:`/page`,search:{path:t},className:`break-all font-mono text-xs hover:underline`,children:t})},t))})]}),(0,j.jsx)(l,{title:`Primary keywords`,icon:(0,j.jsx)(T,{className:`size-4`}),children:(0,j.jsx)(F,{keywords:O.context.keywords})})]})]})]})}function P({counts:e}){return e?(0,j.jsxs)(j.Fragment,{children:[e.errors>0&&(0,j.jsx)(`span`,{className:`block text-destructive`,children:h(e.errors,`error`)}),e.warnings>0&&(0,j.jsx)(`span`,{className:`block text-amber-700`,children:h(e.warnings,`warning`)})]}):(0,j.jsx)(`span`,{className:`text-emerald-700`,children:`none`})}function F({keywords:t}){let n=t.filter(({pages:e})=>e.length>1);return t.length===0?(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No page declares a primary keyword.`}):n.length===0?(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[h(t.length,`primary keyword`),`, each declared by one page.`]}):(0,j.jsxs)(`div`,{className:`space-y-2 text-sm`,children:[(0,j.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[h(t.length,`primary keyword`),`, `,n.length,` declared by more than one page:`]}),(0,j.jsx)(`ul`,{className:`max-h-64 space-y-2 overflow-auto`,children:n.map(({keyword:t,locale:n,pages:r})=>(0,j.jsxs)(`li`,{className:`border bg-muted/30 px-2 py-1.5`,children:[(0,j.jsxs)(`p`,{className:`font-medium`,children:[t,n&&(0,j.jsxs)(`span`,{className:`ml-1 text-xs text-muted-foreground`,children:[`(`,n,`)`]})]}),r.map(t=>(0,j.jsx)(e,{to:`/page`,search:{path:t},className:`block break-all font-mono text-xs text-muted-foreground hover:underline`,children:t},t))]},`${n??``}-${t}`))})]})}export{N as component};
1
+ import{a as e,c as t,i as n,l as r,o as i,s as a}from"./index-0pGRBfyx.js";import{_ as o,a as s,c,d as l,f as u,g as d,h as f,i as p,l as m,m as h,p as g,u as _,v,y}from"./api-D5joupdU.js";import{t as b}from"./arrow-right-DgVH2ckT.js";import{t as x}from"./search-Dh1jm8QA.js";var S={name:`bot`,size:24,node:[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]};S.node;var C=y(S),w={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};w.node;var T=y(w),E={name:`link-2-off`,size:24,node:[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7`,key:`10o201`}],[`path`,{d:`M15 7h2a5 5 0 0 1 4 8`,key:`1d3206`}],[`line`,{x1:`8`,x2:`12`,y1:`12`,y2:`12`,key:`rvw6j4`}],[`line`,{x1:`2`,x2:`22`,y1:`2`,y2:`22`,key:`a6p6uj`}]]};E.node;var D=y(E),O={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};O.node;var k=y(O),A=r(t()),j=a(),M={flag:`from --origin`,config:`from site.origin`,canonicals:`inferred from canonicals`};function N(){let t=n.useSearch(),r=i({from:`/`}),{data:a,error:y,refreshing:S,refresh:w}=p(),E=(0,A.useMemo)(()=>{if(a?.kind!==`built`)return[];let e=t.q.toLowerCase().trim();return a.context.pages.filter(t=>[t.path,t.title,t.source&&f(a.root,t.source),t.type].concat(t.primaryKeyword).filter(Boolean).join(` `).toLowerCase().includes(e))},[a,t.q]),O=a?.kind===`built`?a:void 0,N=O?.context.pages.filter(({source:e})=>e!==void 0).length??0;return(0,j.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,j.jsx)(`section`,{className:`border-b bg-muted/30`,children:(0,j.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-6 px-5 py-6`,children:[(0,j.jsx)(g,{}),(0,j.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-end md:justify-between`,children:[(0,j.jsxs)(`div`,{children:[(0,j.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`contentbit studio`}),(0,j.jsx)(`h1`,{className:`mt-1 text-3xl font-semibold tracking-tight`,children:`Built pages`}),(0,j.jsx)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted-foreground`,children:`The pages the build serves, as contentbit check and contentbit context read them.`})]}),(0,j.jsxs)(s,{onClick:w,disabled:S,className:`w-fit gap-2`,children:[(0,j.jsx)(v,{className:S?`size-4 animate-spin`:`size-4`}),`Refresh`]})]}),O&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`dl`,{className:`grid gap-x-6 gap-y-1 text-sm md:grid-cols-[auto_1fr]`,children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Build`}),(0,j.jsxs)(`dd`,{className:`font-mono`,children:[f(O.root,O.context.build),`,`,` `,h(O.context.pages.length,`page`)]}),(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Origin`}),(0,j.jsx)(`dd`,{className:`font-mono`,children:O.context.origin?`${O.context.origin.url} (${M[O.context.origin.source]})`:`unknown`}),(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Markdown`}),(0,j.jsx)(`dd`,{children:O.markdownFiles===0?`none`:`${h(O.markdownFiles,`file`)}, ${N} with a built page`}),O.summary.ignored>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`dt`,{className:`text-muted-foreground`,children:`Ignored`}),(0,j.jsx)(`dd`,{children:`${h(O.summary.ignored,`finding`)}, by check.severity and check.ignore`})]})]}),(0,j.jsxs)(`div`,{className:`grid gap-px overflow-hidden rounded-sm border bg-border md:grid-cols-4`,children:[(0,j.jsx)(m,{label:`pages`,value:O.summary.pages}),(0,j.jsx)(m,{label:`errors`,value:O.summary.errors,tone:O.summary.errors>0?`bad`:`ok`}),(0,j.jsx)(m,{label:`warnings`,value:O.summary.warnings,tone:O.summary.warnings>0?`warn`:`ok`}),(0,j.jsx)(m,{label:`template findings`,value:O.context.templateFindings.length})]})]})]})}),(0,j.jsxs)(`section`,{className:`mx-auto grid max-w-7xl gap-5 px-5 py-5 lg:grid-cols-[minmax(0,1fr)_320px]`,children:[(0,j.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[y&&(0,j.jsx)(l,{title:`Error`,icon:(0,j.jsx)(o,{className:`size-4`}),children:(0,j.jsx)(`p`,{className:`text-sm text-destructive`,children:y})}),!a&&!y&&(0,j.jsx)(`div`,{className:`border p-4 text-sm text-muted-foreground`,children:`Reading the site...`}),a?.kind===`unbuilt`&&(0,j.jsx)(_,{...a}),O&&O.staleSources.length>0&&(0,j.jsx)(l,{title:`Stale build`,icon:(0,j.jsx)(o,{className:`size-4`}),children:(0,j.jsxs)(`p`,{className:`text-sm`,children:[h(O.staleSources.length,`Markdown file`),` changed after the build, so its pages may not show them yet. Rebuild the site and press Refresh.`]})}),O&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`label`,{className:`relative flex min-w-0 items-center`,children:[(0,j.jsx)(x,{className:`pointer-events-none absolute left-3 size-4 text-muted-foreground`}),(0,j.jsx)(`input`,{value:t.q,onChange:e=>void r({to:`/`,search:{q:e.target.value}}),placeholder:`Search path, title, source, type, keyword...`,className:`h-10 w-full border bg-background pl-9 pr-3 text-sm outline-none transition-colors focus:border-foreground`})]}),(0,j.jsxs)(`div`,{className:`overflow-hidden border`,children:[(0,j.jsx)(`div`,{className:`grid grid-cols-[1.4fr_1fr_0.4fr_0.6fr_0.7fr_2rem] gap-px border-b bg-border text-xs font-medium uppercase text-muted-foreground`,children:[`Page`,`Source`,`Words`,`Links in`,`Findings`,``].map(e=>(0,j.jsx)(`div`,{className:`bg-muted/50 px-3 py-2`,children:e},e))}),(0,j.jsxs)(`div`,{className:`divide-y`,children:[E.map(t=>(0,j.jsxs)(e,{to:`/page`,search:{path:t.path},className:`grid grid-cols-[1.4fr_1fr_0.4fr_0.6fr_0.7fr_2rem] gap-px bg-border text-sm transition-colors hover:bg-foreground/20`,children:[(0,j.jsxs)(`div`,{className:`min-w-0 bg-background px-3 py-3`,children:[(0,j.jsx)(`p`,{className:`truncate font-mono text-xs`,children:t.path}),(0,j.jsx)(`p`,{className:`truncate text-muted-foreground`,children:t.title??`No title`})]}),(0,j.jsxs)(`div`,{className:`min-w-0 bg-background px-3 py-3 font-mono text-xs text-muted-foreground`,children:[(0,j.jsx)(`p`,{className:`truncate`,children:t.source?f(O.root,t.source):`none`}),t.type&&(0,j.jsx)(`p`,{className:`truncate`,children:t.type})]}),(0,j.jsx)(`div`,{className:`bg-background px-3 py-3 font-mono text-xs`,children:t.words}),(0,j.jsxs)(`div`,{className:`bg-background px-3 py-3 text-xs`,children:[t.linksIn.content,` content`,(0,j.jsxs)(`span`,{className:`block text-muted-foreground`,children:[t.linksIn.layout,` layout`]})]}),(0,j.jsx)(`div`,{className:`bg-background px-3 py-3 text-xs`,children:(0,j.jsx)(P,{counts:O.findingCountsByPage[t.path]})}),(0,j.jsx)(`div`,{className:`flex items-center justify-center bg-background px-2 py-3`,children:(0,j.jsx)(b,{className:`size-4 text-muted-foreground`})})]},t.path)),E.length===0&&(0,j.jsx)(`div`,{className:`p-4 text-sm text-muted-foreground`,children:`No built page matches the search.`})]})]})]})]}),O&&(0,j.jsxs)(`aside`,{className:`flex flex-col gap-4`,children:[(0,j.jsxs)(l,{title:`Template findings`,icon:(0,j.jsx)(o,{className:`size-4`}),children:[O.context.templateFindings.length===0?(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`None.`}):(0,j.jsx)(`ul`,{className:`space-y-2 text-sm`,children:O.context.templateFindings.slice(0,5).map((e,t)=>(0,j.jsxs)(`li`,{className:`border bg-muted/30 px-2 py-1.5`,children:[(0,j.jsx)(`span`,{className:`font-medium ${d(e.severity)}`,children:e.code}),(0,j.jsx)(`span`,{className:`block text-xs text-muted-foreground`,children:e.origin.kind===`template`&&`on ${h(e.origin.pages.length,`page`)}`})]},`${e.code}-${t}`))}),(0,j.jsx)(e,{to:`/templates`,className:`mt-3 inline-block text-sm font-medium underline underline-offset-4`,children:`All template findings`})]}),O.unbuiltFindings.length>0&&(0,j.jsxs)(l,{title:`Not on a built page`,icon:(0,j.jsx)(o,{className:`size-4`}),children:[(0,j.jsx)(`p`,{className:`mb-2 text-xs text-muted-foreground`,children:`Findings about a URL the build has no page for.`}),(0,j.jsx)(`ul`,{className:`space-y-2`,children:O.unbuiltFindings.map((e,t)=>(0,j.jsx)(u,{finding:e,root:O.root,showPage:!0},`${e.code}-${t}`))})]}),O.configFindings.length>0&&(0,j.jsx)(l,{title:`Check settings`,icon:(0,j.jsx)(k,{className:`size-4`}),children:(0,j.jsx)(c,{root:O.root,findings:O.configFindings})}),O.agentGuidanceFindings.length>0&&(0,j.jsx)(l,{title:`Agent guidance`,icon:(0,j.jsx)(C,{className:`size-4`}),children:(0,j.jsx)(c,{root:O.root,findings:O.agentGuidanceFindings})}),(0,j.jsxs)(l,{title:`Unlinked pages`,icon:(0,j.jsx)(D,{className:`size-4`}),children:[(0,j.jsx)(`p`,{className:`mb-2 text-xs text-muted-foreground`,children:`Indexable pages, other than the home page, that no content link on another page points to.`}),O.context.unlinked.length===0?(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`None.`}):(0,j.jsx)(`ul`,{className:`max-h-64 space-y-1 overflow-auto text-sm`,children:O.context.unlinked.map(t=>(0,j.jsx)(`li`,{children:(0,j.jsx)(e,{to:`/page`,search:{path:t},className:`break-all font-mono text-xs hover:underline`,children:t})},t))})]}),(0,j.jsx)(l,{title:`Primary keywords`,icon:(0,j.jsx)(T,{className:`size-4`}),children:(0,j.jsx)(F,{keywords:O.context.keywords})})]})]})]})}function P({counts:e}){return e?(0,j.jsxs)(j.Fragment,{children:[e.errors>0&&(0,j.jsx)(`span`,{className:`block text-destructive`,children:h(e.errors,`error`)}),e.warnings>0&&(0,j.jsx)(`span`,{className:`block text-amber-700`,children:h(e.warnings,`warning`)})]}):(0,j.jsx)(`span`,{className:`text-emerald-700`,children:`none`})}function F({keywords:t}){let n=t.filter(({pages:e})=>e.length>1);return t.length===0?(0,j.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:`No page declares a primary keyword.`}):n.length===0?(0,j.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[h(t.length,`primary keyword`),`, each declared by one page.`]}):(0,j.jsxs)(`div`,{className:`space-y-2 text-sm`,children:[(0,j.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[h(t.length,`primary keyword`),`, `,n.length,` declared by more than one page:`]}),(0,j.jsx)(`ul`,{className:`max-h-64 space-y-2 overflow-auto`,children:n.map(({keyword:t,locale:n,pages:r})=>(0,j.jsxs)(`li`,{className:`border bg-muted/30 px-2 py-1.5`,children:[(0,j.jsxs)(`p`,{className:`font-medium`,children:[t,n&&(0,j.jsxs)(`span`,{className:`ml-1 text-xs text-muted-foreground`,children:[`(`,n,`)`]})]}),r.map(t=>(0,j.jsx)(e,{to:`/page`,search:{path:t},className:`block break-all font-mono text-xs text-muted-foreground hover:underline`,children:t},t))]},`${n??``}-${t}`))})]})}export{N as component};
@@ -1 +1 @@
1
- import{y as e}from"./api-aCc2x-IO.js";var t={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};t.node;var n=e(t);export{n as t};
1
+ import{y as e}from"./api-D5joupdU.js";var t={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{y as e}from"./api-aCc2x-IO.js";var t={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};t.node;var n=e(t);export{n as t};
1
+ import{y as e}from"./api-D5joupdU.js";var t={name:`target`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`6`,key:`1vlfrh`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]};t.node;var n=e(t);export{n as t};
@@ -1 +1 @@
1
- import{a as e,s as t}from"./index-Cd04OFZT.js";import{_ as n,a as r,d as i,g as a,i as o,m as s,p as c,u as l,v as u}from"./api-aCc2x-IO.js";var d=t();function f(){let{data:e,error:t,refreshing:a,refresh:s}=o(),f=e?.kind===`built`?e.context.templateFindings:[];return(0,d.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,d.jsx)(`section`,{className:`border-b bg-muted/30`,children:(0,d.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-6 px-5 py-6`,children:[(0,d.jsx)(c,{}),(0,d.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-end md:justify-between`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`contentbit studio`}),(0,d.jsx)(`h1`,{className:`mt-1 text-3xl font-semibold tracking-tight`,children:`Template findings`}),(0,d.jsx)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted-foreground`,children:`Findings the layout or a shared component renders rather than one page's content, each reported once with every built page it affects.`})]}),(0,d.jsxs)(r,{onClick:s,disabled:a,className:`w-fit gap-2`,children:[(0,d.jsx)(u,{className:a?`size-4 animate-spin`:`size-4`}),`Refresh`]})]})]})}),(0,d.jsxs)(`section`,{className:`mx-auto flex max-w-7xl flex-col gap-4 px-5 py-5`,children:[t&&(0,d.jsx)(i,{title:`Error`,icon:(0,d.jsx)(n,{className:`size-4`}),children:(0,d.jsx)(`p`,{className:`text-sm text-destructive`,children:t})}),!e&&!t&&(0,d.jsx)(`div`,{className:`border p-4 text-sm text-muted-foreground`,children:`Reading the site...`}),e?.kind===`unbuilt`&&(0,d.jsx)(l,{...e}),e?.kind===`built`&&f.length===0&&(0,d.jsx)(`div`,{className:`border p-4 text-sm text-muted-foreground`,children:`No template findings: no finding repeats across pages from the layout.`}),f.map((e,t)=>(0,d.jsx)(p,{finding:e},`${e.code}-${t}`))]})]})}function p({finding:t}){if(t.origin.kind!==`template`)return null;let{element:n,pages:r}=t.origin,i=new Map;for(let{page:e,target:n}of t.occurrences??[])n!==void 0&&i.set(e,[...i.get(e)??[],n]);return(0,d.jsxs)(`section`,{className:`border bg-background`,children:[(0,d.jsxs)(`div`,{className:`flex flex-col gap-1 border-b bg-muted/40 px-4 py-3 md:flex-row md:items-center md:justify-between`,children:[(0,d.jsxs)(`h2`,{className:`text-sm font-semibold`,children:[(0,d.jsx)(`span`,{className:a(t.severity),children:t.severity}),` `,t.code]}),(0,d.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[(0,d.jsx)(`span`,{className:`mr-2 font-mono`,children:n}),`on `,s(r.length,`page`)]})]}),(0,d.jsxs)(`div`,{className:`space-y-3 p-4 text-sm`,children:[(0,d.jsx)(`p`,{className:`break-words`,children:t.message}),t.hint&&(0,d.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.hint}),(0,d.jsx)(`ul`,{className:`grid max-h-72 gap-1 overflow-auto md:grid-cols-2`,children:r.map(t=>(0,d.jsxs)(`li`,{className:`min-w-0`,children:[(0,d.jsx)(e,{to:`/page`,search:{path:t},className:`break-all font-mono text-xs hover:underline`,children:t}),i.has(t)&&(0,d.jsx)(`span`,{className:`ml-2 break-all font-mono text-xs text-muted-foreground`,children:i.get(t)?.join(`, `)})]},t))})]})]})}export{f as component};
1
+ import{a as e,s as t}from"./index-0pGRBfyx.js";import{_ as n,a as r,d as i,g as a,i as o,m as s,p as c,u as l,v as u}from"./api-D5joupdU.js";var d=t();function f(){let{data:e,error:t,refreshing:a,refresh:s}=o(),f=e?.kind===`built`?e.context.templateFindings:[];return(0,d.jsxs)(`main`,{className:`min-h-svh bg-background text-foreground`,children:[(0,d.jsx)(`section`,{className:`border-b bg-muted/30`,children:(0,d.jsxs)(`div`,{className:`mx-auto flex max-w-7xl flex-col gap-6 px-5 py-6`,children:[(0,d.jsx)(c,{}),(0,d.jsxs)(`div`,{className:`flex flex-col gap-4 md:flex-row md:items-end md:justify-between`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`p`,{className:`font-mono text-xs uppercase text-muted-foreground`,children:`contentbit studio`}),(0,d.jsx)(`h1`,{className:`mt-1 text-3xl font-semibold tracking-tight`,children:`Template findings`}),(0,d.jsx)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted-foreground`,children:`Findings the layout or a shared component renders rather than one page's content, each reported once with every built page it affects.`})]}),(0,d.jsxs)(r,{onClick:s,disabled:a,className:`w-fit gap-2`,children:[(0,d.jsx)(u,{className:a?`size-4 animate-spin`:`size-4`}),`Refresh`]})]})]})}),(0,d.jsxs)(`section`,{className:`mx-auto flex max-w-7xl flex-col gap-4 px-5 py-5`,children:[t&&(0,d.jsx)(i,{title:`Error`,icon:(0,d.jsx)(n,{className:`size-4`}),children:(0,d.jsx)(`p`,{className:`text-sm text-destructive`,children:t})}),!e&&!t&&(0,d.jsx)(`div`,{className:`border p-4 text-sm text-muted-foreground`,children:`Reading the site...`}),e?.kind===`unbuilt`&&(0,d.jsx)(l,{...e}),e?.kind===`built`&&f.length===0&&(0,d.jsx)(`div`,{className:`border p-4 text-sm text-muted-foreground`,children:`No template findings: no finding repeats across pages from the layout.`}),f.map((e,t)=>(0,d.jsx)(p,{finding:e},`${e.code}-${t}`))]})]})}function p({finding:t}){if(t.origin.kind!==`template`)return null;let{element:n,pages:r}=t.origin,i=new Map;for(let{page:e,target:n}of t.occurrences??[])n!==void 0&&i.set(e,[...i.get(e)??[],n]);return(0,d.jsxs)(`section`,{className:`border bg-background`,children:[(0,d.jsxs)(`div`,{className:`flex flex-col gap-1 border-b bg-muted/40 px-4 py-3 md:flex-row md:items-center md:justify-between`,children:[(0,d.jsxs)(`h2`,{className:`text-sm font-semibold`,children:[(0,d.jsx)(`span`,{className:a(t.severity),children:t.severity}),` `,t.code]}),(0,d.jsxs)(`span`,{className:`text-xs text-muted-foreground`,children:[(0,d.jsx)(`span`,{className:`mr-2 font-mono`,children:n}),`on `,s(r.length,`page`)]})]}),(0,d.jsxs)(`div`,{className:`space-y-3 p-4 text-sm`,children:[(0,d.jsx)(`p`,{className:`break-words`,children:t.message}),t.hint&&(0,d.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:t.hint}),(0,d.jsx)(`ul`,{className:`grid max-h-72 gap-1 overflow-auto md:grid-cols-2`,children:r.map(t=>(0,d.jsxs)(`li`,{className:`min-w-0`,children:[(0,d.jsx)(e,{to:`/page`,search:{path:t},className:`break-all font-mono text-xs hover:underline`,children:t}),i.has(t)&&(0,d.jsx)(`span`,{className:`ml-2 break-all font-mono text-xs text-muted-foreground`,children:i.get(t)?.join(`, `)})]},t))})]})]})}export{f as component};
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/server/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAIhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,OAAO,CAAC,CAyDlB"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/server/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAKhE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAE/C,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,GAClB,OAAO,CAAC,OAAO,CAAC,CA0DlB"}
@@ -9,61 +9,61 @@ var tsrStartManifest = () => ({ routes: {
9
9
  "/page",
10
10
  "/templates"
11
11
  ],
12
- preloads: ["/assets/index-Cd04OFZT.js"],
12
+ preloads: ["/assets/index-0pGRBfyx.js"],
13
13
  scripts: [{ attrs: {
14
14
  type: "module",
15
15
  async: !0,
16
- src: "/assets/index-Cd04OFZT.js"
16
+ src: "/assets/index-0pGRBfyx.js"
17
17
  } }]
18
18
  },
19
19
  "/": {
20
20
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/index.tsx",
21
21
  children: void 0,
22
22
  preloads: [
23
- "/assets/routes-WndCJoku.js",
24
- "/assets/api-aCc2x-IO.js",
25
- "/assets/arrow-right-tp4VknZo.js",
26
- "/assets/search-BnUPH8AI.js"
23
+ "/assets/routes-DCV_quef.js",
24
+ "/assets/api-D5joupdU.js",
25
+ "/assets/arrow-right-DgVH2ckT.js",
26
+ "/assets/search-Dh1jm8QA.js"
27
27
  ]
28
28
  },
29
29
  "/document": {
30
30
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/document.tsx",
31
31
  children: void 0,
32
32
  preloads: [
33
- "/assets/document-DIh3ZPXr.js",
34
- "/assets/api-aCc2x-IO.js",
35
- "/assets/file-code-corner-Fzc5liO9.js",
36
- "/assets/file-text-B8O46COn.js",
37
- "/assets/search-BnUPH8AI.js",
38
- "/assets/target-BMSXP2fU.js"
33
+ "/assets/document-C9j7At_d.js",
34
+ "/assets/api-D5joupdU.js",
35
+ "/assets/file-code-corner-Ea1mVVN3.js",
36
+ "/assets/file-text-JyAIocHS.js",
37
+ "/assets/search-Dh1jm8QA.js",
38
+ "/assets/target-BIrWK4A2.js"
39
39
  ]
40
40
  },
41
41
  "/documents": {
42
42
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/documents.tsx",
43
43
  children: void 0,
44
44
  preloads: [
45
- "/assets/documents-CjBZYbQ4.js",
46
- "/assets/api-aCc2x-IO.js",
47
- "/assets/arrow-right-tp4VknZo.js",
48
- "/assets/file-text-B8O46COn.js",
49
- "/assets/search-BnUPH8AI.js",
50
- "/assets/target-BMSXP2fU.js"
45
+ "/assets/documents-IFM8-M_m.js",
46
+ "/assets/api-D5joupdU.js",
47
+ "/assets/arrow-right-DgVH2ckT.js",
48
+ "/assets/file-text-JyAIocHS.js",
49
+ "/assets/search-Dh1jm8QA.js",
50
+ "/assets/target-BIrWK4A2.js"
51
51
  ]
52
52
  },
53
53
  "/page": {
54
54
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/page.tsx",
55
55
  children: void 0,
56
56
  preloads: [
57
- "/assets/page-BMU8eIrR.js",
58
- "/assets/api-aCc2x-IO.js",
59
- "/assets/file-code-corner-Fzc5liO9.js",
60
- "/assets/target-BMSXP2fU.js"
57
+ "/assets/page-B3xqvv7Z.js",
58
+ "/assets/api-D5joupdU.js",
59
+ "/assets/file-code-corner-Ea1mVVN3.js",
60
+ "/assets/target-BIrWK4A2.js"
61
61
  ]
62
62
  },
63
63
  "/templates": {
64
64
  filePath: "/home/runner/work/contentbit/contentbit/packages/studio/src/routes/templates.tsx",
65
65
  children: void 0,
66
- preloads: ["/assets/templates-IJid1Zwh.js", "/assets/api-aCc2x-IO.js"]
66
+ preloads: ["/assets/templates-CyNCDlsk.js", "/assets/api-D5joupdU.js"]
67
67
  }
68
68
  } });
69
69
  export { tsrStartManifest };
@@ -2,7 +2,7 @@ import { Link } from "@tanstack/react-router";
2
2
  import { AlertTriangle, ArrowLeft, BarChart3, Braces, Check, Clipboard, Download, FileCode2, FileJson, FileText, ListChecks, RefreshCw, Search, Target } from "lucide-react";
3
3
  import { Fragment, useMemo, useState } from "react";
4
4
  import { a as Button, p as StudioNav, t as useDocument } from "./api-CHfynRIj.js";
5
- import { r as Route } from "./router-xI8HUWRI.js";
5
+ import { i as Route } from "./router-CtNxhc0G.js";
6
6
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
7
7
  // ../../node_modules/.pnpm/zod@4.6.7/node_modules/zod/v4/core/util.js
8
8
  function getEnumValues(entries) {
@@ -2,7 +2,7 @@ import { Link, useNavigate } from "@tanstack/react-router";
2
2
  import { AlertTriangle, ArrowRight, Blocks, ChevronsUpDown, FileText, Filter, RefreshCw, Search, Target } from "lucide-react";
3
3
  import { useMemo } from "react";
4
4
  import { a as Button, c as FileFindings, p as StudioNav, r as useProject } from "./api-CHfynRIj.js";
5
- import { i as Route } from "./router-xI8HUWRI.js";
5
+ import { r as Route } from "./router-CtNxhc0G.js";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
  // src/routes/documents.tsx?tsr-split=component
8
8
  function Dashboard() {
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.16/node_modules/@tanstack/start-server-core/dist/esm/empty-plugin-adapters.js
1
+ // ../../node_modules/.pnpm/@tanstack+start-server-core@1.169.39/node_modules/@tanstack/start-server-core/dist/esm/empty-plugin-adapters.js
2
2
  var pluginSerializationAdapters = [];
3
3
  var hasPluginAdapters = false;
4
4
  export { hasPluginAdapters, pluginSerializationAdapters };
@@ -1,7 +1,7 @@
1
1
  import { Link } from "@tanstack/react-router";
2
2
  import { AlertTriangle, ArrowLeft, FileCode2, Globe, Link2, ListTree, RefreshCw, Target } from "lucide-react";
3
3
  import { a as Button, d as Panel, f as SiteFindingItem, h as relativeTo, m as plural, n as usePage, o as Badge, p as StudioNav, s as ContentFindingItem } from "./api-CHfynRIj.js";
4
- import { a as Route } from "./router-xI8HUWRI.js";
4
+ import { n as Route } from "./router-CtNxhc0G.js";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
6
  // src/routes/page.tsx?tsr-split=component
7
7
  function PageView() {
@@ -41,17 +41,20 @@ function RootDocument({ children }) {
41
41
  children: [/* @__PURE__ */ jsx("head", { children: /* @__PURE__ */ jsx(HeadContent, {}) }), /* @__PURE__ */ jsxs("body", { children: [children, /* @__PURE__ */ jsx(Scripts, {})] })]
42
42
  });
43
43
  }
44
- // src/routes/templates.tsx
45
- var $$splitComponentImporter$4 = () => import("./templates--9wK-MK9.js");
46
- var Route$4 = createFileRoute("/templates")({ component: lazyRouteComponent($$splitComponentImporter$4, "component") });
47
- // src/routes/page.tsx
48
- var $$splitComponentImporter$3 = () => import("./page--xw7NmtK.js");
49
- var Route$3 = createFileRoute("/page")({
44
+ // src/routes/index.tsx
45
+ var $$splitComponentImporter$4 = () => import("./routes-C77LqfqF.js");
46
+ var Route$4 = createFileRoute("/")({
47
+ validateSearch: (search) => ({ q: typeof search.q === "string" ? search.q : "" }),
48
+ component: lazyRouteComponent($$splitComponentImporter$4, "component")
49
+ });
50
+ // src/routes/document.tsx
51
+ var $$splitComponentImporter$3 = () => import("./document-DOP_63d9.js");
52
+ var Route$3 = createFileRoute("/document")({
50
53
  validateSearch: (search) => ({ path: typeof search.path === "string" ? search.path : "" }),
51
54
  component: lazyRouteComponent($$splitComponentImporter$3, "component")
52
55
  });
53
56
  // src/routes/documents.tsx
54
- var $$splitComponentImporter$2 = () => import("./documents-jT4KnSkA.js");
57
+ var $$splitComponentImporter$2 = () => import("./documents-DFgsCsBO.js");
55
58
  var Route$2 = createFileRoute("/documents")({
56
59
  validateSearch: (search) => ({
57
60
  q: typeof search.q === "string" ? search.q : "",
@@ -67,49 +70,42 @@ function isStatus(value) {
67
70
  function isSortKey(value) {
68
71
  return value === "document" || value === "status" || value === "blocks" || value === "keywords" || value === "findings";
69
72
  }
70
- // src/routes/document.tsx
71
- var $$splitComponentImporter$1 = () => import("./document-BjPXZ9gS.js");
72
- var Route$1 = createFileRoute("/document")({
73
+ // src/routes/page.tsx
74
+ var $$splitComponentImporter$1 = () => import("./page-aNwYcZ_l.js");
75
+ var Route$1 = createFileRoute("/page")({
73
76
  validateSearch: (search) => ({ path: typeof search.path === "string" ? search.path : "" }),
74
77
  component: lazyRouteComponent($$splitComponentImporter$1, "component")
75
78
  });
76
- // src/routes/index.tsx
77
- var $$splitComponentImporter = () => import("./routes-CfwU-Ww2.js");
78
- var Route = createFileRoute("/")({
79
- validateSearch: (search) => ({ q: typeof search.q === "string" ? search.q : "" }),
80
- component: lazyRouteComponent($$splitComponentImporter, "component")
81
- });
79
+ // src/routes/templates.tsx
80
+ var $$splitComponentImporter = () => import("./templates--9wK-MK9.js");
81
+ var Route = createFileRoute("/templates")({ component: lazyRouteComponent($$splitComponentImporter, "component") });
82
82
  // src/routeTree.gen.ts
83
- var TemplatesRoute = Route$4.update({
84
- id: "/templates",
85
- path: "/templates",
86
- getParentRoute: () => Route$5
87
- });
88
- var PageRoute = Route$3.update({
89
- id: "/page",
90
- path: "/page",
91
- getParentRoute: () => Route$5
92
- });
93
- var DocumentsRoute = Route$2.update({
94
- id: "/documents",
95
- path: "/documents",
96
- getParentRoute: () => Route$5
97
- });
98
- var DocumentRoute = Route$1.update({
99
- id: "/document",
100
- path: "/document",
101
- getParentRoute: () => Route$5
102
- });
103
83
  var rootRouteChildren = {
104
- IndexRoute: Route.update({
84
+ IndexRoute: Route$4.update({
105
85
  id: "/",
106
86
  path: "/",
107
87
  getParentRoute: () => Route$5
108
88
  }),
109
- DocumentRoute,
110
- DocumentsRoute,
111
- PageRoute,
112
- TemplatesRoute
89
+ DocumentRoute: Route$3.update({
90
+ id: "/document",
91
+ path: "/document",
92
+ getParentRoute: () => Route$5
93
+ }),
94
+ DocumentsRoute: Route$2.update({
95
+ id: "/documents",
96
+ path: "/documents",
97
+ getParentRoute: () => Route$5
98
+ }),
99
+ PageRoute: Route$1.update({
100
+ id: "/page",
101
+ path: "/page",
102
+ getParentRoute: () => Route$5
103
+ }),
104
+ TemplatesRoute: Route.update({
105
+ id: "/templates",
106
+ path: "/templates",
107
+ getParentRoute: () => Route$5
108
+ })
113
109
  };
114
110
  var routeTree = Route$5._addFileChildren(rootRouteChildren)._addFileTypes();
115
111
  // src/router.tsx
@@ -122,4 +118,4 @@ function getRouter() {
122
118
  defaultPreloadStaleTime: 0
123
119
  });
124
120
  }
125
- export { Route$3 as a, getRouter, Route$2 as i, Route as n, Route$1 as r, router_exports as t };
121
+ export { Route$4 as a, getRouter, Route$3 as i, Route$1 as n, Route$2 as r, router_exports as t };
@@ -3,7 +3,7 @@ import { AlertTriangle, ArrowRight, Bot, KeyRound, Link2Off, RefreshCw, Search,
3
3
  import { useMemo } from "react";
4
4
  import { a as Button, c as FileFindings, d as Panel, f as SiteFindingItem, g as severityTone, h as relativeTo, i as useSite, l as Metric, m as plural, p as StudioNav, u as NoBuild } from "./api-CHfynRIj.js";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
6
- import { n as Route } from "./router-xI8HUWRI.js";
6
+ import { a as Route } from "./router-CtNxhc0G.js";
7
7
  // src/routes/index.tsx?tsr-split=component
8
8
  var ORIGIN_SOURCES = {
9
9
  flag: "from --origin",
@@ -0,0 +1,3 @@
1
+ // ../../node_modules/.pnpm/@tanstack+react-start@1.168.60_@rspack+core@2.3.0_@swc+helpers@0.5.23__@types+react@19._6f1a281cb3fb489f3525a1d48bacb142/node_modules/@tanstack/react-start/dist/plugin/default-entry/start.ts
2
+ var startInstance = void 0;
3
+ export { startInstance };