gitifact 0.8.3 → 0.8.4

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 (52) hide show
  1. package/README.md +4 -2
  2. package/dist/browser/assets/{HgiRefresh-UIdBFt6N.js → HgiRefresh-CAJ0Xdvi.js} +1 -1
  3. package/dist/browser/assets/{Markdown-CR_AHfxJ.js → Markdown-ev4hMr67.js} +1 -1
  4. package/dist/browser/assets/{Selector-CPFOT7Wj.js → Selector-CGOdL2eo.js} +1 -1
  5. package/dist/browser/assets/{Tab-DL11wx1W.js → Tab-BwJj0rUr.js} +1 -1
  6. package/dist/browser/assets/{Table-BK5793GP.js → Table-XuC9zK9w.js} +1 -1
  7. package/dist/browser/assets/{Token-BnQGlhSv.js → Token-BV_4bSkY.js} +1 -1
  8. package/dist/browser/assets/{about-3BiGgi3V.js → about-vlKWfG7J.js} +1 -1
  9. package/dist/browser/assets/{activity-timeline-CCrOFWbb.js → activity-timeline-Dmc-97N6.js} +1 -1
  10. package/dist/browser/assets/changelog-6QcNKW8u.js +1 -0
  11. package/dist/browser/assets/{commit-CMw0y1Oj.js → commit-BcdbBdP4.js} +1 -1
  12. package/dist/browser/assets/{contributor-Cg_cxulE.js → contributor-Bs3RWHQv.js} +1 -1
  13. package/dist/browser/assets/{contributors-ol5bZm_T.js → contributors-B_bVSY4J.js} +1 -1
  14. package/dist/browser/assets/{contributors._email-BoTYVUTP.js → contributors._email-BR9sLgCs.js} +1 -1
  15. package/dist/browser/assets/{contributors.index-DrdKDOYt.js → contributors.index-FoYwG7VE.js} +1 -1
  16. package/dist/browser/assets/dashboard.index-BFp6Hqsf.js +1 -0
  17. package/dist/browser/assets/{document-CteWuasx.js → document-DPtVyR5y.js} +1 -1
  18. package/dist/browser/assets/{document-C2htw6u5.js → document-Q3lvgyX8.js} +1 -1
  19. package/dist/browser/assets/{features-haTu80rD.js → features-CmvypKgf.js} +1 -1
  20. package/dist/browser/assets/{features._featureId-CHZA4Y9C.js → features._featureId-xxpihTEs.js} +1 -1
  21. package/dist/browser/assets/{features.index-BY8ScP1y.js → features.index-CO7APsrh.js} +1 -1
  22. package/dist/browser/assets/{getting-started-GU6t7LF-.js → getting-started-11zYPwlJ.js} +1 -1
  23. package/dist/browser/assets/git-CVY8qpaV.js +1 -0
  24. package/dist/browser/assets/{index-DaKOj2qL.js → index-BeeP8ZFW.js} +4 -4
  25. package/dist/browser/assets/{instructions-mU0nkIyN.js → instructions-D3-EfbZG.js} +1 -1
  26. package/dist/browser/assets/{instructions._instructionId-D-pztPg5.js → instructions._instructionId-Bp9u9xx9.js} +1 -1
  27. package/dist/browser/assets/instructions.agents-DvFHo8x8.js +1 -0
  28. package/dist/browser/assets/instructions.index-zHzGHq7D.js +1 -0
  29. package/dist/browser/assets/{lazyRouteComponent-DcCLQOpn.js → lazyRouteComponent-D4lq6X5s.js} +1 -1
  30. package/dist/browser/assets/{load-more-YVDkQmcp.js → load-more-CymfxLt7.js} +1 -1
  31. package/dist/browser/assets/{page-header-rHElc4Gv.js → page-header-CVCjLFQo.js} +2 -2
  32. package/dist/browser/assets/{records._recordId-CQAy7eOv.js → records._recordId-Be8aM0F-.js} +1 -1
  33. package/dist/browser/assets/{records.commits._commit-BP1KDLvt.js → records.commits._commit-Dm3gX-bQ.js} +1 -1
  34. package/dist/browser/assets/{records.index-CZ6iNU57.js → records.index-BgfJnGAl.js} +1 -1
  35. package/dist/browser/assets/{records.working-Bv9veUIm.js → records.working-Eeag2L5N.js} +1 -1
  36. package/dist/browser/assets/{settings-D2ZdL-Vu.js → settings-BNIy3TaP.js} +1 -1
  37. package/dist/browser/assets/{useInfiniteQuery-guh_cfSb.js → useInfiniteQuery-03AIcFvA.js} +1 -1
  38. package/dist/browser/assets/{useKeyboardHint-BD_Jlpwp.js → useKeyboardHint-DN1hAi8g.js} +1 -1
  39. package/dist/browser/index.html +20 -20
  40. package/dist/i18n/en/block.md +2 -2
  41. package/dist/i18n/en/changelog.md +7 -0
  42. package/dist/i18n/en/docs/workflow.md +4 -4
  43. package/dist/i18n/ko/block.md +2 -2
  44. package/dist/i18n/ko/changelog.md +7 -0
  45. package/dist/i18n/ko/docs/workflow.md +4 -4
  46. package/dist/main.js +8 -8
  47. package/package.json +1 -1
  48. package/dist/browser/assets/changelog-DMiOCVuF.js +0 -1
  49. package/dist/browser/assets/dashboard.index-BUzgcF91.js +0 -1
  50. package/dist/browser/assets/git-D2zVLj_w.js +0 -1
  51. package/dist/browser/assets/instructions.agents-WcmyZITb.js +0 -1
  52. package/dist/browser/assets/instructions.index-BEJLVyZD.js +0 -1
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,l as n,n as r,q as i}from"./themeProps-CkLe5zXY.js";import{a,l as o,r as s}from"./document-CteWuasx.js";import{T as c,V as l,a as u,bt as d,cn as f,fn as p,ft as m,ht as h,l as g,mt as _,n as v,nt as y,pt as b,rn as x,t as S,w as C}from"./page-header-rHElc4Gv.js";import{h as w,m as T,s as E,t as D}from"./document-C2htw6u5.js";import{g as O,p as k}from"./Table-BK5793GP.js";import{a as A}from"./useMediaQuery-twbHF0pO.js";import{W as j,t as M,w as N}from"./Icon-DPaLmsmh.js";import{s as P}from"./Markdown-CR_AHfxJ.js";import{r as F}from"./Token-BnQGlhSv.js";import{i as I,r as ee}from"./HgiRefresh-UIdBFt6N.js";import{n as L,t as R}from"./MetadataListItem-BEwPg27H.js";var z=e(i(),1),B=n(),V={mark:`_mark_3sf3o_2`,markLarge:`_markLarge_3sf3o_4`,rows:`_rows_3sf3o_15`,row:`_row_3sf3o_15`,rowText:`_rowText_3sf3o_20`,rowHead:`_rowHead_3sf3o_21`,rowTitle:`_rowTitle_3sf3o_22`,rowEnd:`_rowEnd_3sf3o_23`,clip:`_clip_3sf3o_24`,heading:`_heading_3sf3o_27`,back:`_back_3sf3o_29`,summary:`_summary_3sf3o_32`,activity:`_activity_3sf3o_33`,reader:`_reader_3sf3o_34`,files:`_files_3sf3o_35`,filesHeading:`_filesHeading_3sf3o_36`,content:`_content_3sf3o_37`,fileGroup:`_fileGroup_3sf3o_38`,folder:`_folder_3sf3o_40`,folderName:`_folderName_3sf3o_41`,folderFiles:`_folderFiles_3sf3o_43`,filePath:`_filePath_3sf3o_49`,fileTitle:`_fileTitle_3sf3o_51`,groupLabel:`_groupLabel_3sf3o_60`,agentsBody:`_agentsBody_3sf3o_62`};function H({color:e,title:t,size:n=`md`}){return(0,B.jsx)(`span`,{"aria-hidden":`true`,"data-instruction-color":e,className:n===`lg`?`${V.mark} ${V.markLarge}`:V.mark,children:[...t.trim()][0]?.toUpperCase()??`?`})}var U=[`blue`,`green`,`purple`,`orange`,`teal`,`pink`,`cyan`,`yellow`];function W(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function G(e){let t=new Map,n=new Set;for(let r of[...e].sort((e,t)=>e.name.localeCompare(t.name))){let e=W(r.id)%U.length;n.size===U.length&&n.clear();let i=e;for(;n.has(U[i]);)i=(i+1)%U.length;t.set(r.id,U[i]),n.add(U[i])}return t}function K({instructions:e,agents:t}){if(p(),!e.length&&!t)return(0,B.jsx)(u,{kind:`empty`,title:f(`instructions.emptyTitle`),description:f(`instructions.emptyDescription`)});let n=G(e);return(0,B.jsxs)(h,{gap:0,children:[t&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.groupLabel,children:f(`instructions.always`)}),(0,B.jsx)(h,{as:`ul`,gap:0,"aria-label":f(`instructions.always`),className:V.rows,children:(0,B.jsx)(q,{href:`/instructions/agents`,color:`agents`,title:`AGENTS.md`,description:f(`instructions.agentsDescription`)})})]}),(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.groupLabel,children:f(`instructions.byWork`,{count:e.length})}),e.length?(0,B.jsx)(h,{as:`ul`,gap:0,"aria-label":f(`instructions.byWorkLabel`),className:V.rows,children:e.map(e=>(0,B.jsx)(q,{href:`/instructions/${encodeURIComponent(e.id)}`,color:n.get(e.id),title:e.title,name:e.name,description:e.description,state:e.state},e.id))}):(0,B.jsx)(N,{type:`supporting`,color:`secondary`,children:f(`instructions.noneYet`)})]})}function q({href:e,color:t,title:n,name:r,description:i,state:a=`committed`}){return(0,B.jsx)(`li`,{"data-state":a===`committed`?void 0:a,children:(0,B.jsxs)(o,{href:e,className:V.row,children:[(0,B.jsx)(H,{color:t,title:n,size:`lg`}),(0,B.jsxs)(h,{gap:.5,className:V.rowText,children:[(0,B.jsxs)(_,{gap:2,className:V.rowHead,children:[(0,B.jsx)(N,{weight:`semibold`,className:V.rowTitle,"data-state-title":!0,children:n}),(0,B.jsx)(D,{state:a}),r&&r!==n&&(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.clip,children:r})]}),(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.clip,children:i})]})]})})}var J={root:{kzqmXN:`xh8yej3`,$$css:!0},trigger:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kzqmXN:`xh8yej3`,kkrTdU:`x1ypdohk x16khyan`,kMv6JI:`x9ynric`,kGuDYH:`x18juvz8`,k63SB2:`x2mo6ok`,kMwMTN:`x1tgivj0`,k9WMMc:`x1yc453h`,k8WAf4:`xt970qd`,$$css:!0},triggerDisabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0},chevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xta46cu`,kZKoxP:`x1seg80s`,kGuDYH:`x18juvz8`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},chevronOpen:{k3aq6I:`x19jd1h0`,$$css:!0},chevronClosed:{k3aq6I:`x7p49u4`,$$css:!0},chevronStart:{k71WvV:`x1pezmd8`,$$css:!0},chevronStartOpen:{k3aq6I:`x1iffjtl x1nxqau`,$$css:!0},chevronStartClosed:{k3aq6I:`x7p49u4 xaafvuh`,$$css:!0},contentHidden:{k1xSpc:`x1s85apg`,$$css:!0},content:{kLKAdn:`xfsso4q`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,k63SB2:`xxovm9e`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,$$css:!0},divided:{kEafiO:`x11xkdxz x1g31smg`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,$$css:!0}},Y={triggerCompact:{k8WAf4:`xu0wf1k`,$$css:!0},triggerBalanced:{k8WAf4:`xce4md1`,$$css:!0},triggerSpacious:{k8WAf4:`x8o8v82`,$$css:!0},contentCompact:{kGO01o:`xy143xn`,$$css:!0},contentBalanced:{kGO01o:`x1wesfrj`,$$css:!0},contentSpacious:{kGO01o:`xvmdzux`,$$css:!0}},X={compact:Y.triggerCompact,balanced:Y.triggerBalanced,spacious:Y.triggerSpacious},Z={compact:Y.contentCompact,balanced:Y.contentBalanced,spacious:Y.contentSpacious};function Q({trigger:e,children:n,defaultIsOpen:i,isOpen:a,isDisabled:o=!1,onOpenChange:s,chevronPosition:c,value:l,ref:u,xstyle:d,className:f,style:p,...m}){let{isOpen:h,toggle:g}=ee({isCollapsible:a===void 0?{defaultIsOpen:i??!0,onOpenChange:s}:{isOpen:a,onOpenChange:s},value:l}),_=()=>{o||g()},v=(0,z.use)(I),y=v?.hasDividers??!1,b=v?.density??null,x=(c??v?.chevronPosition??`end`)===`start`,S=(0,z.useId)(),C=(0,B.jsx)(M,{icon:x?`chevronRight`:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[J.chevron,x&&J.chevronStart,x?h?J.chevronStartOpen:J.chevronStartClosed:h?J.chevronOpen:J.chevronClosed]});return(0,B.jsxs)(`div`,{ref:u,...A(r(`collapsible`,{density:b??void 0}),t(J.root,y&&J.divided,d),f,p),...m,children:[(0,B.jsxs)(`button`,{type:`button`,onClick:_,"aria-disabled":o||void 0,"aria-expanded":h,"aria-controls":S,tabIndex:o?-1:void 0,...A(r(`collapsible-trigger`,{density:b??void 0}),j.focusVisible(J.trigger,b!=null&&X[b],o&&J.triggerDisabled)),children:[x&&C,(0,B.jsx)(`span`,{className:`x1b2iylo xwgcxoh x1iyjqo2`,children:e}),!x&&C]}),(0,B.jsx)(`div`,{id:S,...A(r(`collapsible-content`,{density:b??void 0}),t(J.content,b!=null&&Z[b],!h&&J.contentHidden)),children:v==null?n:(0,B.jsx)(I,{value:null,children:n})})]})}Q.displayName=`Collapsible`;var te=[[`path`,{d:`M7.99978 3.5H6.60021C4.43183 3.5 3.34764 3.5 2.67399 4.17362C2.00034 4.84724 2.00029 5.93144 2.00021 8.09982L2 13.3998C1.99992 15.5684 1.99987 16.6526 2.67353 17.3263C3.34719 18 4.43146 18 6.6 18H8.95042C10.4329 18 11.7092 19.0464 11.9999 20.5V5.5C11.0556 4.24097 9.99989 3.5 7.99978 3.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16.0001 3.5H17.3997C19.5681 3.5 20.6523 3.5 21.3259 4.17362C21.9996 4.84724 21.9996 5.93144 21.9997 8.09982L21.9999 13.3998C22 15.5684 22 16.6526 21.3264 17.3263C20.6527 18 19.5684 18 17.3999 18H15.0495C13.567 18 12.2907 19.0464 12 20.5V5.5C12.9443 4.24097 14 3.5 16.0001 3.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]];function ne({size:e=16}){return(0,B.jsx)(b,{data:te,size:e})}function re({size:e=20}){return(0,B.jsx)(b,{data:T,size:e})}var ie=[[`path`,{d:`M10 18C10 18 7.50004 16.1588 7.50003 15.5C7.50003 14.8412 10 13 10 13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M14 18C14 18 16.5 16.1588 16.5 15.5C16.5 14.8412 14 13 14 13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]];function ae({size:e=16}){return(0,B.jsx)(b,{data:ie,size:e})}var oe=[[`circle`,{cx:`7.5`,cy:`7.5`,r:`1.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5 21C9.37246 15.775 14.2741 8.88406 21.4975 13.5424`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}]];function se({size:e=16}){return(0,B.jsx)(b,{data:oe,size:e})}var ce=/\.(png|jpe?g|gif|webp|svg|avif|ico)$/i;function le({path:e}){return e.toLowerCase().endsWith(`.md`)?(0,B.jsx)(re,{size:16}):ce.test(e)?(0,B.jsx)(se,{}):(0,B.jsx)(ae,{})}var ue={sh:`bash`,bash:`bash`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,ts:`typescript`,tsx:`tsx`,jsx:`jsx`,py:`python`,json:`json`,yaml:`yaml`,yml:`yaml`,toml:`toml`,css:`css`,html:`html`,sql:`sql`,ps1:`powershell`},de=e=>e.replace(/^---\r?\n(?:.*\r?\n)*?---(?:\r?\n|$)/,``);function fe({session:e,instruction:t,file:n}){p();let r=l({...C(e,t.id,n.path,n.size),placeholderData:y});if(r.error)return(0,B.jsx)(F,{error:r.error,retry:()=>{r.refetch()}});if(!r.data)return(0,B.jsx)(F,{});let{text:i,binary:a,path:o}=r.data;if(i===null)return(0,B.jsx)(N,{color:`secondary`,children:f(a?`instructions.binary`:`instructions.tooLarge`)});let c=o.includes(`.`)?o.slice(o.lastIndexOf(`.`)+1).toLowerCase():``;return c===`md`?(0,B.jsx)(s,{path:t.path.slice(0,-8)+o,children:de(i)}):(0,B.jsx)(P,{code:i,language:ue[c]??`plaintext`,width:`100%`})}var $=`index.md`;function pe(e){let t=new Map;for(let n of e){let e=n.path.includes(`/`)?n.path.slice(0,n.path.lastIndexOf(`/`)):``;t.set(e,[...t.get(e)??[],n])}return[...t].sort(([e],[t])=>e===``?-1:t===``?1:e.localeCompare(t))}var me=e=>e<1024?`${e} B`:`${(e/1024).toFixed(+(e<10240))} KB`;function he({instruction:e,color:t,file:n,session:r}){p();let i=n&&e.files.find(e=>e.path===n),a=e.path.slice(0,-8),o=m(),c=t=>{o.prefetchQuery(C(r,e.id,t.path,t.size))},l=t=>`/instructions/${encodeURIComponent(e.id)}${t?`?file=`+encodeURIComponent(t):``}`;return(0,B.jsxs)(h,{as:`article`,gap:0,"aria-label":e.title,children:[(0,B.jsxs)(h,{gap:3,className:V.heading,children:[(0,B.jsx)(d,{to:`/instructions`,className:V.back,children:f(`instructions.back`)}),(0,B.jsxs)(_,{gap:3,vAlign:`center`,children:[(0,B.jsx)(H,{color:t,title:e.title,size:`lg`}),(0,B.jsx)(x,{level:1,children:e.title})]}),(0,B.jsx)(N,{color:`secondary`,className:V.summary,children:e.description}),(0,B.jsxs)(L,{orientation:`horizontal`,children:[(0,B.jsx)(R,{label:f(`instructions.folder`),children:(0,B.jsx)(N,{type:`code`,children:e.name})}),(0,B.jsx)(R,{label:`ID`,children:e.id}),(0,B.jsx)(R,{label:f(`common.recentChange`),children:e.updatedAt?(0,B.jsx)(E,{value:e.updatedAt,format:`relative`}):f(`common.inProgress`)})]}),(0,B.jsx)(d,{to:`/records`,search:{document:`instruction`,q:e.id},className:V.activity,children:f(`instructions.activity`)})]}),(0,B.jsxs)(_,{gap:0,className:V.reader,children:[(0,B.jsxs)(h,{as:`nav`,gap:1,"aria-label":f(`instructions.files`),className:V.files,children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.filesHeading,children:f(`instructions.files`)}),(0,B.jsx)(O,{density:`compact`,children:(0,B.jsx)(k,{label:e.title,href:l(),isSelected:!i,startContent:(0,B.jsx)(ne,{})})}),pe(e.files).map(([e,t])=>{let n=(0,B.jsx)(O,{density:`compact`,"aria-label":e||$,children:t.map(t=>(0,B.jsx)(k,{label:t.title??t.path.slice(e?e.length+1:0),href:l(t.path),isSelected:i===t,onMouseEnter:()=>c(t),onFocus:()=>c(t),startContent:(0,B.jsx)(le,{path:t.path}),endContent:(0,B.jsx)(N,{type:`supporting`,color:`secondary`,children:me(t.size)})},t.path))});return e?(0,B.jsx)(h,{gap:0,className:V.fileGroup,children:(0,B.jsx)(Q,{chevronPosition:`start`,trigger:(0,B.jsxs)(_,{gap:2,vAlign:`center`,className:V.folder,children:[(0,B.jsx)(v,{}),(0,B.jsxs)(N,{type:`supporting`,color:`secondary`,className:V.folderName,children:[e,`/`]})]}),children:(0,B.jsx)(h,{gap:0,className:V.folderFiles,children:n})})},e):(0,B.jsx)(h,{gap:0,children:n},e)}),e.filesLimited&&(0,B.jsx)(N,{type:`supporting`,color:`secondary`,children:f(`instructions.filesLimited`)})]}),(0,B.jsxs)(h,{gap:0,className:V.content,children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.filePath,children:a+(i?i.path:$)}),i&&i.title&&(0,B.jsxs)(h,{gap:1,className:V.fileTitle,children:[(0,B.jsx)(x,{level:2,children:i.title}),i.description&&(0,B.jsx)(N,{color:`secondary`,children:i.description})]}),n&&!i?(0,B.jsx)(N,{color:`secondary`,children:f(`instructions.fileMissing`,{path:n})}):i?(0,B.jsx)(fe,{session:r,instruction:e,file:i}):(0,B.jsx)(s,{path:e.path,children:e.body})]})]})]})}var ge=e=>e.replace(/<!--[\s\S]*?-->\n?/g,``);function _e({agents:e}){return p(),(0,B.jsxs)(h,{as:`article`,gap:0,"aria-label":`AGENTS.md`,children:[(0,B.jsxs)(h,{gap:3,className:V.heading,children:[(0,B.jsx)(d,{to:`/instructions`,className:V.back,children:f(`instructions.back`)}),(0,B.jsxs)(_,{gap:3,vAlign:`center`,children:[(0,B.jsx)(H,{color:`agents`,title:`AGENTS.md`,size:`lg`}),(0,B.jsx)(x,{level:1,children:`AGENTS.md`})]}),(0,B.jsx)(N,{color:`secondary`,children:f(`instructions.agentsDescription`)}),(0,B.jsxs)(L,{orientation:`horizontal`,children:[(0,B.jsx)(R,{label:f(`common.path`),children:(0,B.jsx)(N,{type:`code`,children:e.path})}),(0,B.jsx)(R,{label:f(`common.recentChange`),children:e.updatedAt?(0,B.jsx)(E,{value:e.updatedAt,format:`relative`}):f(`common.inProgress`)})]})]}),(0,B.jsx)(h,{gap:0,className:V.agentsBody,children:(0,B.jsx)(s,{path:e.path,children:ge(e.body)})})]})}function ve({instructionId:e,agents:t,file:n}){p();let r=t||!!e;return(0,B.jsx)(w,{header:S,title:f(`nav.instructions`),description:f(`pageDescription.instructions`),root:`/instructions`,hasTitle:!r,trail:n=>{if(t)return[{label:`AGENTS.md`}];let r=e?n.index.instructions.find(t=>t.id===e):void 0;return r?[{label:r.title}]:[]},children:({session:r})=>(0,B.jsx)(ye,{session:r,instructionId:e,agents:t,file:n})})}function ye({session:e,instructionId:t,agents:n,file:r}){p();let i=l(c(e));if(i.error)return(0,B.jsx)(F,{error:i.error,retry:()=>{i.refetch()}});if(!i.data)return(0,B.jsx)(F,{});let{instructions:a,agents:o}=i.data,s=(e,t)=>(0,B.jsx)(u,{kind:`not-found`,title:e,description:t,actions:(0,B.jsx)(d,{to:`/instructions`,children:f(`instructions.backToList`)})});if(n)return o?(0,B.jsx)(_e,{agents:o}):s(f(`instructions.agentsMissingTitle`),f(`instructions.agentsMissingDescription`));if(!t)return(0,B.jsx)(K,{instructions:a,agents:o});let m=a.find(e=>e.id===t);return m?(0,B.jsx)(he,{instruction:m,color:G(a).get(m.id),file:r,session:e}):s(f(`instructions.notFoundTitle`),f(`instructions.notFoundDescription`,{id:t}))}async function be(e,t){let{session:n}=await g(e);if(!n)return;let r=await e.ensureQueryData(c(n)).catch(()=>void 0);if(!r||!t)return;if(t.agents){await a([r.agents?.body]);return}let i=r.instructions.find(e=>e.id===t.instructionId);if(!i)return;let o=t.file?i.files.find(e=>e.path===t.file):void 0;if(!o){await a([i.body]);return}let s=await e.ensureQueryData(C(n,i.id,o.path,o.size)).catch(()=>void 0);s&&o.path.toLowerCase().endsWith(`.md`)&&await a([s.text])}export{ve as n,be as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{K as t,l as n,n as r,q as i}from"./themeProps-CkLe5zXY.js";import{a,l as o,r as s}from"./document-DPtVyR5y.js";import{T as c,V as l,a as u,bt as d,cn as f,fn as p,ft as m,ht as h,l as g,mt as _,n as v,nt as y,pt as b,rn as x,t as S,w as C}from"./page-header-CVCjLFQo.js";import{h as w,m as T,s as E,t as D}from"./document-Q3lvgyX8.js";import{g as O,p as k}from"./Table-XuC9zK9w.js";import{a as A}from"./useMediaQuery-twbHF0pO.js";import{W as j,t as M,w as N}from"./Icon-DPaLmsmh.js";import{s as P}from"./Markdown-ev4hMr67.js";import{r as F}from"./Token-BV_4bSkY.js";import{i as I,r as ee}from"./HgiRefresh-CAJ0Xdvi.js";import{n as L,t as R}from"./MetadataListItem-BEwPg27H.js";var z=e(i(),1),B=n(),V={mark:`_mark_3sf3o_2`,markLarge:`_markLarge_3sf3o_4`,rows:`_rows_3sf3o_15`,row:`_row_3sf3o_15`,rowText:`_rowText_3sf3o_20`,rowHead:`_rowHead_3sf3o_21`,rowTitle:`_rowTitle_3sf3o_22`,rowEnd:`_rowEnd_3sf3o_23`,clip:`_clip_3sf3o_24`,heading:`_heading_3sf3o_27`,back:`_back_3sf3o_29`,summary:`_summary_3sf3o_32`,activity:`_activity_3sf3o_33`,reader:`_reader_3sf3o_34`,files:`_files_3sf3o_35`,filesHeading:`_filesHeading_3sf3o_36`,content:`_content_3sf3o_37`,fileGroup:`_fileGroup_3sf3o_38`,folder:`_folder_3sf3o_40`,folderName:`_folderName_3sf3o_41`,folderFiles:`_folderFiles_3sf3o_43`,filePath:`_filePath_3sf3o_49`,fileTitle:`_fileTitle_3sf3o_51`,groupLabel:`_groupLabel_3sf3o_60`,agentsBody:`_agentsBody_3sf3o_62`};function H({color:e,title:t,size:n=`md`}){return(0,B.jsx)(`span`,{"aria-hidden":`true`,"data-instruction-color":e,className:n===`lg`?`${V.mark} ${V.markLarge}`:V.mark,children:[...t.trim()][0]?.toUpperCase()??`?`})}var U=[`blue`,`green`,`purple`,`orange`,`teal`,`pink`,`cyan`,`yellow`];function W(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return t>>>0}function G(e){let t=new Map,n=new Set;for(let r of[...e].sort((e,t)=>e.name.localeCompare(t.name))){let e=W(r.id)%U.length;n.size===U.length&&n.clear();let i=e;for(;n.has(U[i]);)i=(i+1)%U.length;t.set(r.id,U[i]),n.add(U[i])}return t}function K({instructions:e,agents:t}){if(p(),!e.length&&!t)return(0,B.jsx)(u,{kind:`empty`,title:f(`instructions.emptyTitle`),description:f(`instructions.emptyDescription`)});let n=G(e);return(0,B.jsxs)(h,{gap:0,children:[t&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.groupLabel,children:f(`instructions.always`)}),(0,B.jsx)(h,{as:`ul`,gap:0,"aria-label":f(`instructions.always`),className:V.rows,children:(0,B.jsx)(q,{href:`/instructions/agents`,color:`agents`,title:`AGENTS.md`,description:f(`instructions.agentsDescription`)})})]}),(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.groupLabel,children:f(`instructions.byWork`,{count:e.length})}),e.length?(0,B.jsx)(h,{as:`ul`,gap:0,"aria-label":f(`instructions.byWorkLabel`),className:V.rows,children:e.map(e=>(0,B.jsx)(q,{href:`/instructions/${encodeURIComponent(e.id)}`,color:n.get(e.id),title:e.title,name:e.name,description:e.description,state:e.state},e.id))}):(0,B.jsx)(N,{type:`supporting`,color:`secondary`,children:f(`instructions.noneYet`)})]})}function q({href:e,color:t,title:n,name:r,description:i,state:a=`committed`}){return(0,B.jsx)(`li`,{"data-state":a===`committed`?void 0:a,children:(0,B.jsxs)(o,{href:e,className:V.row,children:[(0,B.jsx)(H,{color:t,title:n,size:`lg`}),(0,B.jsxs)(h,{gap:.5,className:V.rowText,children:[(0,B.jsxs)(_,{gap:2,className:V.rowHead,children:[(0,B.jsx)(N,{weight:`semibold`,className:V.rowTitle,"data-state-title":!0,children:n}),(0,B.jsx)(D,{state:a}),r&&r!==n&&(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.clip,children:r})]}),(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.clip,children:i})]})]})})}var J={root:{kzqmXN:`xh8yej3`,$$css:!0},trigger:{kB7OPa:`x9f619`,k1xSpc:`x78zum5`,kGNEyG:`x6s0dn4`,kjj79g:`x1qughib`,kzqmXN:`xh8yej3`,kkrTdU:`x1ypdohk x16khyan`,kMv6JI:`x9ynric`,kGuDYH:`x18juvz8`,k63SB2:`x2mo6ok`,kMwMTN:`x1tgivj0`,k9WMMc:`x1yc453h`,k8WAf4:`xt970qd`,$$css:!0},triggerDisabled:{kkrTdU:`xt0e3qv`,kSiTet:`xbyyjgo`,$$css:!0},chevron:{k1xSpc:`x3nfvp2`,kGNEyG:`x6s0dn4`,kjj79g:`xl56j7k`,kmuXW:`x2lah0s`,kzqmXN:`xta46cu`,kZKoxP:`x1seg80s`,kGuDYH:`x18juvz8`,k1ekBW:`x11xpdln`,kIyJzY:`xuedmi6`,kAMwcw:`xlr8y92`,$$css:!0},chevronOpen:{k3aq6I:`x19jd1h0`,$$css:!0},chevronClosed:{k3aq6I:`x7p49u4`,$$css:!0},chevronStart:{k71WvV:`x1pezmd8`,$$css:!0},chevronStartOpen:{k3aq6I:`x1iffjtl x1nxqau`,$$css:!0},chevronStartClosed:{k3aq6I:`x7p49u4 xaafvuh`,$$css:!0},contentHidden:{k1xSpc:`x1s85apg`,$$css:!0},content:{kLKAdn:`xfsso4q`,kMv6JI:`x9ynric`,kGuDYH:`xjm74w1`,k63SB2:`xxovm9e`,kLWn49:`xw6l6zx`,kMwMTN:`x1tgivj0`,$$css:!0},divided:{kEafiO:`x11xkdxz x1g31smg`,kPef9Z:`x13fuv20`,kLZC3w:`x1pc3f07`,$$css:!0}},Y={triggerCompact:{k8WAf4:`xu0wf1k`,$$css:!0},triggerBalanced:{k8WAf4:`xce4md1`,$$css:!0},triggerSpacious:{k8WAf4:`x8o8v82`,$$css:!0},contentCompact:{kGO01o:`xy143xn`,$$css:!0},contentBalanced:{kGO01o:`x1wesfrj`,$$css:!0},contentSpacious:{kGO01o:`xvmdzux`,$$css:!0}},X={compact:Y.triggerCompact,balanced:Y.triggerBalanced,spacious:Y.triggerSpacious},Z={compact:Y.contentCompact,balanced:Y.contentBalanced,spacious:Y.contentSpacious};function Q({trigger:e,children:n,defaultIsOpen:i,isOpen:a,isDisabled:o=!1,onOpenChange:s,chevronPosition:c,value:l,ref:u,xstyle:d,className:f,style:p,...m}){let{isOpen:h,toggle:g}=ee({isCollapsible:a===void 0?{defaultIsOpen:i??!0,onOpenChange:s}:{isOpen:a,onOpenChange:s},value:l}),_=()=>{o||g()},v=(0,z.use)(I),y=v?.hasDividers??!1,b=v?.density??null,x=(c??v?.chevronPosition??`end`)===`start`,S=(0,z.useId)(),C=(0,B.jsx)(M,{icon:x?`chevronRight`:`chevronDown`,size:`sm`,color:`secondary`,xstyle:[J.chevron,x&&J.chevronStart,x?h?J.chevronStartOpen:J.chevronStartClosed:h?J.chevronOpen:J.chevronClosed]});return(0,B.jsxs)(`div`,{ref:u,...A(r(`collapsible`,{density:b??void 0}),t(J.root,y&&J.divided,d),f,p),...m,children:[(0,B.jsxs)(`button`,{type:`button`,onClick:_,"aria-disabled":o||void 0,"aria-expanded":h,"aria-controls":S,tabIndex:o?-1:void 0,...A(r(`collapsible-trigger`,{density:b??void 0}),j.focusVisible(J.trigger,b!=null&&X[b],o&&J.triggerDisabled)),children:[x&&C,(0,B.jsx)(`span`,{className:`x1b2iylo xwgcxoh x1iyjqo2`,children:e}),!x&&C]}),(0,B.jsx)(`div`,{id:S,...A(r(`collapsible-content`,{density:b??void 0}),t(J.content,b!=null&&Z[b],!h&&J.contentHidden)),children:v==null?n:(0,B.jsx)(I,{value:null,children:n})})]})}Q.displayName=`Collapsible`;var te=[[`path`,{d:`M7.99978 3.5H6.60021C4.43183 3.5 3.34764 3.5 2.67399 4.17362C2.00034 4.84724 2.00029 5.93144 2.00021 8.09982L2 13.3998C1.99992 15.5684 1.99987 16.6526 2.67353 17.3263C3.34719 18 4.43146 18 6.6 18H8.95042C10.4329 18 11.7092 19.0464 11.9999 20.5V5.5C11.0556 4.24097 9.99989 3.5 7.99978 3.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M16.0001 3.5H17.3997C19.5681 3.5 20.6523 3.5 21.3259 4.17362C21.9996 4.84724 21.9996 5.93144 21.9997 8.09982L21.9999 13.3998C22 15.5684 22 16.6526 21.3264 17.3263C20.6527 18 19.5684 18 17.3999 18H15.0495C13.567 18 12.2907 19.0464 12 20.5V5.5C12.9443 4.24097 14 3.5 16.0001 3.5Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}]];function ne({size:e=16}){return(0,B.jsx)(b,{data:te,size:e})}function re({size:e=20}){return(0,B.jsx)(b,{data:T,size:e})}var ie=[[`path`,{d:`M10 18C10 18 7.50004 16.1588 7.50003 15.5C7.50003 14.8412 10 13 10 13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M14 18C14 18 16.5 16.1588 16.5 15.5C16.5 14.8412 14 13 14 13`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`2`}]];function ae({size:e=16}){return(0,B.jsx)(b,{data:ie,size:e})}var oe=[[`circle`,{cx:`7.5`,cy:`7.5`,r:`1.5`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`1.5`,key:`0`}],[`path`,{d:`M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z`,stroke:`currentColor`,strokeWidth:`1.5`,key:`1`}],[`path`,{d:`M5 21C9.37246 15.775 14.2741 8.88406 21.4975 13.5424`,stroke:`currentColor`,strokeWidth:`1.5`,key:`2`}]];function se({size:e=16}){return(0,B.jsx)(b,{data:oe,size:e})}var ce=/\.(png|jpe?g|gif|webp|svg|avif|ico)$/i;function le({path:e}){return e.toLowerCase().endsWith(`.md`)?(0,B.jsx)(re,{size:16}):ce.test(e)?(0,B.jsx)(se,{}):(0,B.jsx)(ae,{})}var ue={sh:`bash`,bash:`bash`,js:`javascript`,mjs:`javascript`,cjs:`javascript`,ts:`typescript`,tsx:`tsx`,jsx:`jsx`,py:`python`,json:`json`,yaml:`yaml`,yml:`yaml`,toml:`toml`,css:`css`,html:`html`,sql:`sql`,ps1:`powershell`},de=e=>e.replace(/^---\r?\n(?:.*\r?\n)*?---(?:\r?\n|$)/,``);function fe({session:e,instruction:t,file:n}){p();let r=l({...C(e,t.id,n.path,n.size),placeholderData:y});if(r.error)return(0,B.jsx)(F,{error:r.error,retry:()=>{r.refetch()}});if(!r.data)return(0,B.jsx)(F,{});let{text:i,binary:a,path:o}=r.data;if(i===null)return(0,B.jsx)(N,{color:`secondary`,children:f(a?`instructions.binary`:`instructions.tooLarge`)});let c=o.includes(`.`)?o.slice(o.lastIndexOf(`.`)+1).toLowerCase():``;return c===`md`?(0,B.jsx)(s,{path:t.path.slice(0,-8)+o,children:de(i)}):(0,B.jsx)(P,{code:i,language:ue[c]??`plaintext`,width:`100%`})}var $=`index.md`;function pe(e){let t=new Map;for(let n of e){let e=n.path.includes(`/`)?n.path.slice(0,n.path.lastIndexOf(`/`)):``;t.set(e,[...t.get(e)??[],n])}return[...t].sort(([e],[t])=>e===``?-1:t===``?1:e.localeCompare(t))}var me=e=>e<1024?`${e} B`:`${(e/1024).toFixed(+(e<10240))} KB`;function he({instruction:e,color:t,file:n,session:r}){p();let i=n&&e.files.find(e=>e.path===n),a=e.path.slice(0,-8),o=m(),c=t=>{o.prefetchQuery(C(r,e.id,t.path,t.size))},l=t=>`/instructions/${encodeURIComponent(e.id)}${t?`?file=`+encodeURIComponent(t):``}`;return(0,B.jsxs)(h,{as:`article`,gap:0,"aria-label":e.title,children:[(0,B.jsxs)(h,{gap:3,className:V.heading,children:[(0,B.jsx)(d,{to:`/instructions`,className:V.back,children:f(`instructions.back`)}),(0,B.jsxs)(_,{gap:3,vAlign:`center`,children:[(0,B.jsx)(H,{color:t,title:e.title,size:`lg`}),(0,B.jsx)(x,{level:1,children:e.title})]}),(0,B.jsx)(N,{color:`secondary`,className:V.summary,children:e.description}),(0,B.jsxs)(L,{orientation:`horizontal`,children:[(0,B.jsx)(R,{label:f(`instructions.folder`),children:(0,B.jsx)(N,{type:`code`,children:e.name})}),(0,B.jsx)(R,{label:`ID`,children:e.id}),(0,B.jsx)(R,{label:f(`common.recentChange`),children:e.updatedAt?(0,B.jsx)(E,{value:e.updatedAt,format:`relative`}):f(`common.inProgress`)})]}),(0,B.jsx)(d,{to:`/records`,search:{document:`instruction`,q:e.id},className:V.activity,children:f(`instructions.activity`)})]}),(0,B.jsxs)(_,{gap:0,className:V.reader,children:[(0,B.jsxs)(h,{as:`nav`,gap:1,"aria-label":f(`instructions.files`),className:V.files,children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.filesHeading,children:f(`instructions.files`)}),(0,B.jsx)(O,{density:`compact`,children:(0,B.jsx)(k,{label:e.title,href:l(),isSelected:!i,startContent:(0,B.jsx)(ne,{})})}),pe(e.files).map(([e,t])=>{let n=(0,B.jsx)(O,{density:`compact`,"aria-label":e||$,children:t.map(t=>(0,B.jsx)(k,{label:t.title??t.path.slice(e?e.length+1:0),href:l(t.path),isSelected:i===t,onMouseEnter:()=>c(t),onFocus:()=>c(t),startContent:(0,B.jsx)(le,{path:t.path}),endContent:(0,B.jsx)(N,{type:`supporting`,color:`secondary`,children:me(t.size)})},t.path))});return e?(0,B.jsx)(h,{gap:0,className:V.fileGroup,children:(0,B.jsx)(Q,{chevronPosition:`start`,trigger:(0,B.jsxs)(_,{gap:2,vAlign:`center`,className:V.folder,children:[(0,B.jsx)(v,{}),(0,B.jsxs)(N,{type:`supporting`,color:`secondary`,className:V.folderName,children:[e,`/`]})]}),children:(0,B.jsx)(h,{gap:0,className:V.folderFiles,children:n})})},e):(0,B.jsx)(h,{gap:0,children:n},e)}),e.filesLimited&&(0,B.jsx)(N,{type:`supporting`,color:`secondary`,children:f(`instructions.filesLimited`)})]}),(0,B.jsxs)(h,{gap:0,className:V.content,children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.filePath,children:a+(i?i.path:$)}),i&&i.title&&(0,B.jsxs)(h,{gap:1,className:V.fileTitle,children:[(0,B.jsx)(x,{level:2,children:i.title}),i.description&&(0,B.jsx)(N,{color:`secondary`,children:i.description})]}),n&&!i?(0,B.jsx)(N,{color:`secondary`,children:f(`instructions.fileMissing`,{path:n})}):i?(0,B.jsx)(fe,{session:r,instruction:e,file:i}):(0,B.jsx)(s,{path:e.path,children:e.body})]})]})]})}var ge=e=>e.replace(/<!--[\s\S]*?-->\n?/g,``);function _e({agents:e}){return p(),(0,B.jsxs)(h,{as:`article`,gap:0,"aria-label":`AGENTS.md`,children:[(0,B.jsxs)(h,{gap:3,className:V.heading,children:[(0,B.jsx)(d,{to:`/instructions`,className:V.back,children:f(`instructions.back`)}),(0,B.jsxs)(_,{gap:3,vAlign:`center`,children:[(0,B.jsx)(H,{color:`agents`,title:`AGENTS.md`,size:`lg`}),(0,B.jsx)(x,{level:1,children:`AGENTS.md`})]}),(0,B.jsx)(N,{color:`secondary`,children:f(`instructions.agentsDescription`)}),(0,B.jsxs)(L,{orientation:`horizontal`,children:[(0,B.jsx)(R,{label:f(`common.path`),children:(0,B.jsx)(N,{type:`code`,children:e.path})}),(0,B.jsx)(R,{label:f(`common.recentChange`),children:e.updatedAt?(0,B.jsx)(E,{value:e.updatedAt,format:`relative`}):f(`common.inProgress`)})]})]}),(0,B.jsx)(h,{gap:0,className:V.agentsBody,children:(0,B.jsx)(s,{path:e.path,children:ge(e.body)})})]})}function ve({instructionId:e,agents:t,file:n}){p();let r=t||!!e;return(0,B.jsx)(w,{header:S,title:f(`nav.instructions`),description:f(`pageDescription.instructions`),root:`/instructions`,hasTitle:!r,trail:n=>{if(t)return[{label:`AGENTS.md`}];let r=e?n.index.instructions.find(t=>t.id===e):void 0;return r?[{label:r.title}]:[]},children:({session:r})=>(0,B.jsx)(ye,{session:r,instructionId:e,agents:t,file:n})})}function ye({session:e,instructionId:t,agents:n,file:r}){p();let i=l(c(e));if(i.error)return(0,B.jsx)(F,{error:i.error,retry:()=>{i.refetch()}});if(!i.data)return(0,B.jsx)(F,{});let{instructions:a,agents:o}=i.data,s=(e,t)=>(0,B.jsx)(u,{kind:`not-found`,title:e,description:t,actions:(0,B.jsx)(d,{to:`/instructions`,children:f(`instructions.backToList`)})});if(n)return o?(0,B.jsx)(_e,{agents:o}):s(f(`instructions.agentsMissingTitle`),f(`instructions.agentsMissingDescription`));if(!t)return(0,B.jsx)(K,{instructions:a,agents:o});let m=a.find(e=>e.id===t);return m?(0,B.jsx)(he,{instruction:m,color:G(a).get(m.id),file:r,session:e}):s(f(`instructions.notFoundTitle`),f(`instructions.notFoundDescription`,{id:t}))}async function be(e,t){let{session:n}=await g(e);if(!n)return;let r=await e.ensureQueryData(c(n)).catch(()=>void 0);if(!r||!t)return;if(t.agents){await a([r.agents?.body]);return}let i=r.instructions.find(e=>e.id===t.instructionId);if(!i)return;let o=t.file?i.files.find(e=>e.path===t.file):void 0;if(!o){await a([i.body]);return}let s=await e.ensureQueryData(C(n,i.id,o.path,o.size)).catch(()=>void 0);s&&o.path.toLowerCase().endsWith(`.md`)&&await a([s.text])}export{ve as n,be as t};
@@ -1 +1 @@
1
- import{l as e}from"./themeProps-CkLe5zXY.js";import{n as t}from"./instructions-mU0nkIyN.js";import{o as n}from"./index-DaKOj2qL.js";var r=e();function i(){let{instructionId:e}=n.useParams(),{file:i}=n.useSearch();return(0,r.jsx)(t,{instructionId:e,file:i})}export{i as component};
1
+ import{l as e}from"./themeProps-CkLe5zXY.js";import{n as t}from"./instructions-D3-EfbZG.js";import{o as n}from"./index-BeeP8ZFW.js";var r=e();function i(){let{instructionId:e}=n.useParams(),{file:i}=n.useSearch();return(0,r.jsx)(t,{instructionId:e,file:i})}export{i as component};
@@ -0,0 +1 @@
1
+ import{l as e}from"./themeProps-CkLe5zXY.js";import{n as t}from"./instructions-D3-EfbZG.js";var n=e(),r=()=>(0,n.jsx)(t,{agents:!0});export{r as component};
@@ -0,0 +1 @@
1
+ import{l as e}from"./themeProps-CkLe5zXY.js";import{n as t}from"./instructions-D3-EfbZG.js";var n=e(),r=()=>(0,n.jsx)(t,{});export{r as component};
@@ -1 +1 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{Bt as r,Ct as i,Mt as a,Ot as o,St as s,Xt as c,bt as l,en as u,jt as d,tn as f,xt as p}from"./page-header-rHElc4Gv.js";var m=`__root__`;function h(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function g(e){return e instanceof Response&&!!e.options}var _=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=m:this.parentRoute||r();let i=n?m:t?.path;i&&i!==`/`&&(i=d(i));let s=t?.id||i,c=n?m:o([this.parentRoute.id===`__root__`?``:this.parentRoute.id,s]);i===`__root__`&&(i=`/`),c!==`__root__`&&(c=o([`/`,c]));let l=c===`__root__`?`/`:o([this.parentRoute.fullPath,i]);this._path=i,this._id=c,this._fullPath=l,this._to=a(l)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>h({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},v=class extends _{constructor(e){super(e)}},y=e(n(),1),b=y.createContext(void 0),x=y.createContext(void 0),S={};function C(e,t){let n=y.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=u(n.current,i):i}}function w(e){let t=i(),n=y.useContext(e.from?x:b),a=e.from??n,o=t.stores.getMatchStore(a),c=C(e,t),l=s(o,e=>e?c(e):S);if(l!==S)return l;(e.shouldThrow??!0)&&r()}function T(e){return w({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function E(e){let{select:t,...n}=e;return w({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function D(e){return w({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function O(e){return w({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function k(e){return w({...e,select:t=>e.select?e.select(t.context):t.context})}var A=t(),j=class extends _{constructor(e){super(e),this.useMatch=e=>w({...e,from:this.id}),this.useRouteContext=e=>k({...e,from:this.id}),this.useSearch=e=>O({...e,from:this.id}),this.useParams=e=>D({...e,from:this.id}),this.useLoaderDeps=e=>E({...e,from:this.id}),this.useLoaderData=e=>T({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,A.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function M(e){return new j(e)}function N(){return e=>F(e)}var P=class extends v{constructor(e){super(e),this.useMatch=e=>w({...e,from:this.id}),this.useRouteContext=e=>k({...e,from:this.id}),this.useSearch=e=>O({...e,from:this.id}),this.useParams=e=>D({...e,from:this.id}),this.useLoaderDeps=e=>E({...e,from:this.id}),this.useLoaderData=e=>T({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,A.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function F(e){return new P(e)}function I(e){return e=>{let t=M(e);return t.isRoot=!1,t}}function L(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(c(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(f)f(a());else throw a()}return y.createElement(r,e)};return o.preload=a,o}export{b as a,m as c,C as i,I as n,g as o,N as r,h as s,L as t};
1
+ import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{Bt as r,Ct as i,Mt as a,Ot as o,St as s,Xt as c,bt as l,en as u,jt as d,tn as f,xt as p}from"./page-header-CVCjLFQo.js";var m=`__root__`;function h(e){e.statusCode=e.statusCode||e.code||307;let t=new Headers(e.headers);e.href&&t.get(`Location`)===null&&t.set(`Location`,e.href);let n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function g(e){return e instanceof Response&&!!e.options}var _=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e.originalIndex;let t=this.options,n=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=m:this.parentRoute||r();let i=n?m:t?.path;i&&i!==`/`&&(i=d(i));let s=t?.id||i,c=n?m:o([this.parentRoute.id===`__root__`?``:this.parentRoute.id,s]);i===`__root__`&&(i=`/`),c!==`__root__`&&(c=o([`/`,c]));let l=c===`__root__`?`/`:o([this.parentRoute.fullPath,i]);this._path=i,this._id=c,this._fullPath=l,this._to=a(l)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>h({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},v=class extends _{constructor(e){super(e)}},y=e(n(),1),b=y.createContext(void 0),x=y.createContext(void 0),S={};function C(e,t){let n=y.useRef();return r=>{let i=e?.select?e.select(r):r;return e?.structuralSharing??t.options.defaultStructuralSharing?n.current=u(n.current,i):i}}function w(e){let t=i(),n=y.useContext(e.from?x:b),a=e.from??n,o=t.stores.getMatchStore(a),c=C(e,t),l=s(o,e=>e?c(e):S);if(l!==S)return l;(e.shouldThrow??!0)&&r()}function T(e){return w({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function E(e){let{select:t,...n}=e;return w({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function D(e){return w({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function O(e){return w({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function k(e){return w({...e,select:t=>e.select?e.select(t.context):t.context})}var A=t(),j=class extends _{constructor(e){super(e),this.useMatch=e=>w({...e,from:this.id}),this.useRouteContext=e=>k({...e,from:this.id}),this.useSearch=e=>O({...e,from:this.id}),this.useParams=e=>D({...e,from:this.id}),this.useLoaderDeps=e=>E({...e,from:this.id}),this.useLoaderData=e=>T({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,A.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function M(e){return new j(e)}function N(){return e=>F(e)}var P=class extends v{constructor(e){super(e),this.useMatch=e=>w({...e,from:this.id}),this.useRouteContext=e=>k({...e,from:this.id}),this.useSearch=e=>O({...e,from:this.id}),this.useParams=e=>D({...e,from:this.id}),this.useLoaderDeps=e=>E({...e,from:this.id}),this.useLoaderData=e=>T({...e,from:this.id}),this.useNavigate=()=>p({from:this.fullPath}),this.Link=y.forwardRef((e,t)=>(0,A.jsx)(l,{ref:t,from:this.fullPath,...e}))}};function F(e){return new P(e)}function I(e){return e=>{let t=M(e);return t.isRoot=!1,t}}function L(e,t){let n,r,i,a=()=>(n||=(i=void 0,e().then(e=>{n=void 0,o.preload=void 0,r=e[t??`default`]}).catch(e=>{n=void 0,i=e})),n),o=function(e){if(i){if(c(i)&&typeof sessionStorage<`u`){let e=`tanstack_router_reload:${i.message}`;if(!sessionStorage.getItem(e))throw sessionStorage.setItem(e,`1`),window.location.reload(),new Promise(()=>{})}throw i}if(!r){if(f)f(a());else throw a()}return y.createElement(r,e)};return o.preload=a,o}export{b as a,m as c,C as i,I as n,g as o,N as r,h as s,L as t};
@@ -1 +1 @@
1
- import{l as e}from"./themeProps-CkLe5zXY.js";import{cn as t,fn as n}from"./page-header-rHElc4Gv.js";import{n as r}from"./IconButton-Br-4XhQr.js";var i=e();function a({label:e,query:a}){return n(),a.hasNextPage?(0,i.jsx)(r,{isDisabled:a.isFetching,onClick:()=>{a.fetchNextPage()},label:a.isFetchingNextPage?t(`history.loadingMore`):a.isFetchNextPageError?t(`history.retryMore`):e}):null}export{a as t};
1
+ import{l as e}from"./themeProps-CkLe5zXY.js";import{cn as t,fn as n}from"./page-header-CVCjLFQo.js";import{n as r}from"./IconButton-Br-4XhQr.js";var i=e();function a({label:e,query:a}){return n(),a.hasNextPage?(0,i.jsx)(r,{isDisabled:a.isFetching,onClick:()=>{a.fetchNextPage()},label:a.isFetchingNextPage?t(`history.loadingMore`):a.isFetchNextPageError?t(`history.retryMore`):e}):null}export{a as t};