gitifact 0.8.4 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/browser/assets/{HgiRefresh-CAJ0Xdvi.js → HgiRefresh-BSPkIVFZ.js} +1 -1
- package/dist/browser/assets/{Markdown-ev4hMr67.js → Markdown-B1P3lpA0.js} +1 -1
- package/dist/browser/assets/Selector-BG3Gd_OR.js +2 -0
- package/dist/browser/assets/{Tab-BwJj0rUr.js → Tab-RKLZrCiK.js} +1 -1
- package/dist/browser/assets/{Table-XuC9zK9w.js → Table-DjTkmoR7.js} +2 -2
- package/dist/browser/assets/Token-CKcN25HT.css +1 -0
- package/dist/browser/assets/Token-D337a1e3.js +2 -0
- package/dist/browser/assets/{about-vlKWfG7J.js → about-D06ipt4C.js} +2 -2
- package/dist/browser/assets/activity-timeline-Bl6a55GR.js +2 -0
- package/dist/browser/assets/changelog-DCvEVceR.js +1 -0
- package/dist/browser/assets/commit-Cj7mcn9u.js +4 -0
- package/dist/browser/assets/{contributor-Bs3RWHQv.js → contributor-D1TZSDq9.js} +1 -1
- package/dist/browser/assets/contributors-lkpVuCXS.js +1 -0
- package/dist/browser/assets/{contributors._email-BR9sLgCs.js → contributors._email-B7ATmxN1.js} +1 -1
- package/dist/browser/assets/{contributors.index-FoYwG7VE.js → contributors.index-Cc0QRJwQ.js} +1 -1
- package/dist/browser/assets/dashboard.index-BNTyn3_V.js +1 -0
- package/dist/browser/assets/document-7jVYmB_Z.js +2 -0
- package/dist/browser/assets/{document-DPtVyR5y.js → document-kGFspd5u.js} +4 -4
- package/dist/browser/assets/features-CBeEOrok.js +2 -0
- package/dist/browser/assets/features-FKxsPKab.css +1 -0
- package/dist/browser/assets/{features._featureId-xxpihTEs.js → features._featureId-DGUBnzjL.js} +1 -1
- package/dist/browser/assets/{features.index-CO7APsrh.js → features.index-Dgw4kiMG.js} +1 -1
- package/dist/browser/assets/getting-started-B_LeBSZE.js +1 -0
- package/dist/browser/assets/git-DW-pzDOm.js +1 -0
- package/dist/browser/assets/index-CswY1wJ4.css +1 -0
- package/dist/browser/assets/index-IML0_BCy.js +49 -0
- package/dist/browser/assets/instructions-Qhbd8_KG.js +1 -0
- package/dist/browser/assets/{instructions._instructionId-Bp9u9xx9.js → instructions._instructionId-CnX6OyFZ.js} +1 -1
- package/dist/browser/assets/instructions.agents-0tKcPahQ.js +1 -0
- package/dist/browser/assets/instructions.index-B3v6vtEg.js +1 -0
- package/dist/browser/assets/{lazyRouteComponent-D4lq6X5s.js → lazyRouteComponent-tJOK5sxC.js} +1 -1
- package/dist/browser/assets/load-more-DVsjzCxE.js +1 -0
- package/dist/browser/assets/page-header-AS8jZ1ve.js +248 -0
- package/dist/browser/assets/records._recordId-C2qxnLKN.js +1 -0
- package/dist/browser/assets/records.commits._commit-CSa3sQ8C.js +1 -0
- package/dist/browser/assets/records.docs._docId-SIPsGTwH.js +1 -0
- package/dist/browser/assets/records.index-DoE_3GrP.js +1 -0
- package/dist/browser/assets/records.working-Cp5ualrr.js +1 -0
- package/dist/browser/assets/search-CbtiuqNx.js +1 -0
- package/dist/browser/assets/{settings-BNIy3TaP.js → settings-tVQIx1Uf.js} +1 -1
- package/dist/browser/assets/{useInfiniteQuery-03AIcFvA.js → useInfiniteQuery-C0rB-9Ci.js} +1 -1
- package/dist/browser/assets/{useKeyboardHint-DN1hAi8g.js → useKeyboardHint-D5jGavym.js} +1 -1
- package/dist/browser/index.html +24 -24
- package/dist/i18n/en/changelog.md +15 -0
- package/dist/i18n/en/docs/design.md +2 -0
- package/dist/i18n/en/docs/spec.md +30 -5
- package/dist/i18n/ko/changelog.md +15 -0
- package/dist/i18n/ko/docs/design.md +2 -0
- package/dist/i18n/ko/docs/spec.md +30 -5
- package/dist/main.js +272 -125
- package/package.json +3 -3
- package/dist/browser/assets/Selector-CGOdL2eo.js +0 -2
- package/dist/browser/assets/Token-BV_4bSkY.js +0 -2
- package/dist/browser/assets/Token-Bqkc8eyB.css +0 -1
- package/dist/browser/assets/activity-timeline-Dmc-97N6.js +0 -2
- package/dist/browser/assets/changelog-6QcNKW8u.js +0 -1
- package/dist/browser/assets/commit-BcdbBdP4.js +0 -4
- package/dist/browser/assets/contributors-B_bVSY4J.js +0 -1
- package/dist/browser/assets/dashboard.index-BFp6Hqsf.js +0 -1
- package/dist/browser/assets/document-Q3lvgyX8.js +0 -2
- package/dist/browser/assets/features-CmvypKgf.js +0 -2
- package/dist/browser/assets/features-DUHxz0_L.css +0 -1
- package/dist/browser/assets/getting-started-11zYPwlJ.js +0 -1
- package/dist/browser/assets/git-CVY8qpaV.js +0 -1
- package/dist/browser/assets/index-BeeP8ZFW.js +0 -49
- package/dist/browser/assets/index-D1JeDnJc.css +0 -1
- package/dist/browser/assets/instructions-D3-EfbZG.js +0 -1
- package/dist/browser/assets/instructions.agents-DvFHo8x8.js +0 -1
- package/dist/browser/assets/instructions.index-zHzGHq7D.js +0 -1
- package/dist/browser/assets/load-more-CymfxLt7.js +0 -1
- package/dist/browser/assets/page-header-CVCjLFQo.js +0 -246
- package/dist/browser/assets/records._recordId-Be8aM0F-.js +0 -1
- package/dist/browser/assets/records.commits._commit-Dm3gX-bQ.js +0 -1
- package/dist/browser/assets/records.index-BgfJnGAl.js +0 -1
- package/dist/browser/assets/records.working-Eeag2L5N.js +0 -1
- package/dist/browser/assets/search-CSSuO-jR.js +0 -1
|
@@ -0,0 +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-kGFspd5u.js";import{D as c,E as l,St as u,U as d,_t as f,a as p,an as m,gt as h,ht as g,it as _,l as v,mn as y,mt as b,n as x,t as S,un as C}from"./page-header-AS8jZ1ve.js";import{h as w,m as T,s as E,t as D}from"./document-7jVYmB_Z.js";import{g as O,p as k}from"./Table-DjTkmoR7.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 ee}from"./Markdown-B1P3lpA0.js";import{a as P}from"./Token-D337a1e3.js";import{i as F,r as I}from"./HgiRefresh-BSPkIVFZ.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 te(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 W(e){let t=new Map,n=new Set;for(let r of[...e].sort((e,t)=>e.name.localeCompare(t.name))){let e=te(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 G({instructions:e,agents:t}){if(y(),!e.length&&!t)return(0,B.jsx)(p,{kind:`empty`,title:C(`instructions.emptyTitle`),description:C(`instructions.emptyDescription`)});let n=W(e);return(0,B.jsxs)(f,{gap:0,children:[t&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.groupLabel,children:C(`instructions.always`)}),(0,B.jsx)(f,{as:`ul`,gap:0,"aria-label":C(`instructions.always`),className:V.rows,children:(0,B.jsx)(K,{href:`/instructions/agents`,color:`agents`,title:`AGENTS.md`,description:C(`instructions.agentsDescription`)})})]}),(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.groupLabel,children:C(`instructions.byWork`,{count:e.length})}),e.length?(0,B.jsx)(f,{as:`ul`,gap:0,"aria-label":C(`instructions.byWorkLabel`),className:V.rows,children:e.map(e=>(0,B.jsx)(K,{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:C(`instructions.noneYet`)})]})}function K({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)(f,{gap:.5,className:V.rowText,children:[(0,B.jsxs)(h,{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 q={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}},J={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}},Y={compact:J.triggerCompact,balanced:J.triggerBalanced,spacious:J.triggerSpacious},X={compact:J.contentCompact,balanced:J.contentBalanced,spacious:J.contentSpacious};function Z({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}=I({isCollapsible:a===void 0?{defaultIsOpen:i??!0,onOpenChange:s}:{isOpen:a,onOpenChange:s},value:l}),_=()=>{o||g()},v=(0,z.use)(F),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:[q.chevron,x&&q.chevronStart,x?h?q.chevronStartOpen:q.chevronStartClosed:h?q.chevronOpen:q.chevronClosed]});return(0,B.jsxs)(`div`,{ref:u,...A(r(`collapsible`,{density:b??void 0}),t(q.root,y&&q.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(q.trigger,b!=null&&Y[b],o&&q.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(q.content,b!=null&&X[b],!h&&q.contentHidden)),children:v==null?n:(0,B.jsx)(F,{value:null,children:n})})]})}Z.displayName=`Collapsible`;var Q=[[`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)(g,{data:Q,size:e})}function re({size:e=20}){return(0,B.jsx)(g,{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)(g,{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)(g,{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}){y();let r=d({...l(e,t.id,n.path,n.size),placeholderData:_});if(r.error)return(0,B.jsx)(P,{error:r.error,retry:()=>{r.refetch()}});if(!r.data)return(0,B.jsx)(P,{});let{text:i,binary:a,path:o}=r.data;if(i===null)return(0,B.jsx)(N,{color:`secondary`,children:C(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)(ee,{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}){y();let i=n&&e.files.find(e=>e.path===n),a=e.path.slice(0,-8),o=b(),c=t=>{o.prefetchQuery(l(r,e.id,t.path,t.size))},d=t=>`/instructions/${encodeURIComponent(e.id)}${t?`?file=`+encodeURIComponent(t):``}`;return(0,B.jsxs)(f,{as:`article`,gap:0,"aria-label":e.title,children:[(0,B.jsxs)(f,{gap:3,className:V.heading,children:[(0,B.jsx)(u,{to:`/instructions`,className:V.back,children:C(`instructions.back`)}),(0,B.jsxs)(h,{gap:3,vAlign:`center`,children:[(0,B.jsx)(H,{color:t,title:e.title,size:`lg`}),(0,B.jsx)(m,{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:C(`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:C(`common.recentChange`),children:e.updatedAt?(0,B.jsx)(E,{value:e.updatedAt,format:`relative`}):C(`common.inProgress`)})]}),(0,B.jsx)(u,{to:`/records/docs/$docId`,params:{docId:e.id},className:V.activity,children:C(`instructions.activity`)})]}),(0,B.jsxs)(h,{gap:0,className:V.reader,children:[(0,B.jsxs)(f,{as:`nav`,gap:1,"aria-label":C(`instructions.files`),className:V.files,children:[(0,B.jsx)(N,{type:`supporting`,color:`secondary`,className:V.filesHeading,children:C(`instructions.files`)}),(0,B.jsx)(O,{density:`compact`,children:(0,B.jsx)(k,{label:e.title,href:d(),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:d(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)(f,{gap:0,className:V.fileGroup,children:(0,B.jsx)(Z,{chevronPosition:`start`,trigger:(0,B.jsxs)(h,{gap:2,vAlign:`center`,className:V.folder,children:[(0,B.jsx)(x,{}),(0,B.jsxs)(N,{type:`supporting`,color:`secondary`,className:V.folderName,children:[e,`/`]})]}),children:(0,B.jsx)(f,{gap:0,className:V.folderFiles,children:n})})},e):(0,B.jsx)(f,{gap:0,children:n},e)}),e.filesLimited&&(0,B.jsx)(N,{type:`supporting`,color:`secondary`,children:C(`instructions.filesLimited`)})]}),(0,B.jsxs)(f,{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)(f,{gap:1,className:V.fileTitle,children:[(0,B.jsx)(m,{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:C(`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 y(),(0,B.jsxs)(f,{as:`article`,gap:0,"aria-label":`AGENTS.md`,children:[(0,B.jsxs)(f,{gap:3,className:V.heading,children:[(0,B.jsx)(u,{to:`/instructions`,className:V.back,children:C(`instructions.back`)}),(0,B.jsxs)(h,{gap:3,vAlign:`center`,children:[(0,B.jsx)(H,{color:`agents`,title:`AGENTS.md`,size:`lg`}),(0,B.jsx)(m,{level:1,children:`AGENTS.md`})]}),(0,B.jsx)(N,{color:`secondary`,children:C(`instructions.agentsDescription`)}),(0,B.jsxs)(L,{orientation:`horizontal`,children:[(0,B.jsx)(R,{label:C(`common.path`),children:(0,B.jsx)(N,{type:`code`,children:e.path})}),(0,B.jsx)(R,{label:C(`common.recentChange`),children:e.updatedAt?(0,B.jsx)(E,{value:e.updatedAt,format:`relative`}):C(`common.inProgress`)})]})]}),(0,B.jsx)(f,{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}){y();let r=t||!!e;return(0,B.jsx)(w,{header:S,title:C(`nav.instructions`),description:C(`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}){y();let i=d(c(e));if(i.error)return(0,B.jsx)(P,{error:i.error,retry:()=>{i.refetch()}});if(!i.data)return(0,B.jsx)(P,{});let{instructions:a,agents:o}=i.data,s=(e,t)=>(0,B.jsx)(p,{kind:`not-found`,title:e,description:t,actions:(0,B.jsx)(u,{to:`/instructions`,children:C(`instructions.backToList`)})});if(n)return o?(0,B.jsx)(_e,{agents:o}):s(C(`instructions.agentsMissingTitle`),C(`instructions.agentsMissingDescription`));if(!t)return(0,B.jsx)(G,{instructions:a,agents:o});let l=a.find(e=>e.id===t);return l?(0,B.jsx)(he,{instruction:l,color:W(a).get(l.id),file:r,session:e}):s(C(`instructions.notFoundTitle`),C(`instructions.notFoundDescription`,{id:t}))}async function be(e,t){let{session:n}=await v(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(l(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-
|
|
1
|
+
import{l as e}from"./themeProps-CkLe5zXY.js";import{n as t}from"./instructions-Qhbd8_KG.js";import{c as n}from"./index-IML0_BCy.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-Qhbd8_KG.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-Qhbd8_KG.js";var n=e(),r=()=>(0,n.jsx)(t,{});export{r as component};
|
package/dist/browser/assets/{lazyRouteComponent-D4lq6X5s.js → lazyRouteComponent-tJOK5sxC.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{
|
|
1
|
+
import{r as e}from"./rolldown-runtime-hePW80VL.js";import{l as t,q as n}from"./themeProps-CkLe5zXY.js";import{At as r,Ct as i,Ht as a,Nt as o,Pt as s,Qt as c,St as l,Tt as u,nn as d,rn as f,wt as p}from"./page-header-AS8jZ1ve.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||a();let i=n?m:t?.path;i&&i!==`/`&&(i=o(i));let c=t?.id||i,l=n?m:r([this.parentRoute.id===`__root__`?``:this.parentRoute.id,c]);i===`__root__`&&(i=`/`),l!==`__root__`&&(l=r([`/`,l]));let u=l===`__root__`?`/`:r([this.parentRoute.fullPath,i]);this._path=i,this._id=l,this._fullPath=u,this._to=s(u)},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=d(n.current,i):i}}function w(e){let t=u(),n=y.useContext(e.from?x:b),r=e.from??n,i=t.stores.getMatchStore(r),o=C(e,t),s=p(i,e=>e?o(e):S);if(s!==S)return s;(e.shouldThrow??!0)&&a()}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=()=>i({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=()=>i({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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./themeProps-CkLe5zXY.js";import{mn as t,un as n}from"./page-header-AS8jZ1ve.js";import{n as r}from"./IconButton-Br-4XhQr.js";var i=e();function a({label:e,query:a}){return t(),a.hasNextPage?(0,i.jsx)(r,{isDisabled:a.isFetching,onClick:()=>{a.fetchNextPage()},label:a.isFetchingNextPage?n(`history.loadingMore`):a.isFetchNextPageError?n(`history.retryMore`):e}):null}export{a as t};
|