@neuralnomads/codenomad-dev 0.17.0-dev-20260608-ff10c1f3 → 0.17.0-dev-20260608-d29dbf75
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/package.json +1 -1
- package/public/assets/FilesTab-B5ysoRLh.js +2 -0
- package/public/assets/GitChangesTab-BksCi53d.js +2 -0
- package/public/assets/{SplitFilePanel-DqxwMIe0.js → SplitFilePanel-CrSfR22r.js} +1 -1
- package/public/assets/StatusTab-Dgqekgjn.js +1 -0
- package/public/assets/{align-justify-Dxvk4j0i.js → align-justify-hRtBz8xe.js} +1 -1
- package/public/assets/{bundle-full-D4mYh8t-.js → bundle-full-BVDA-a9Y.js} +2 -2
- package/public/assets/{diff-viewer-Dc4-Qlfy.js → diff-viewer-BCAI0Cw8.js} +1 -1
- package/public/assets/{index-rOdMpwo6.css → index-B2Qd6xQq.css} +1 -1
- package/public/assets/index-BQpEhdk5.js +1 -0
- package/public/assets/index-BXIEm2zT.js +1 -0
- package/public/assets/index-CWjU9mAF.js +1 -0
- package/public/assets/index-Cvtlo58a.js +1 -0
- package/public/assets/index-DFlxnvHT.js +2 -0
- package/public/assets/index-Ddsv8Uc0.js +1 -0
- package/public/assets/index-Dn7woJnK.js +1 -0
- package/public/assets/index-DnCBfFB3.js +1 -0
- package/public/assets/index-DnXT1F8T.js +1 -0
- package/public/assets/index-Kv-3BRTi.js +1 -0
- package/public/assets/index-g-G1RiME.js +1 -0
- package/public/assets/{loading-Cs2YiY8R.js → loading-bD3ppK2l.js} +1 -1
- package/public/assets/main-BsbMOeQg.js +65 -0
- package/public/assets/{markdown-B2oEpKDv.js → markdown-DJuaMC5H.js} +3 -3
- package/public/assets/monaco-viewer-BFNhPQX7.js +26 -0
- package/public/assets/{tool-call-B4kil3h0.js → tool-call-BSJluZRW.js} +3 -3
- package/public/assets/{unified-picker-ccHSjvP1.js → unified-picker-DmFyrIis.js} +1 -1
- package/public/assets/{wrap-text-B0kJ9Vff.js → wrap-text-BkcW_eTA.js} +1 -1
- package/public/index.html +4 -4
- package/public/loading.html +4 -4
- package/public/sw.js +1 -1
- package/public/assets/ChangesTab-BIh4_omv.js +0 -2
- package/public/assets/DiffToolbar-D5VJHBTG.js +0 -1
- package/public/assets/FilesTab-C-n54Sb9.js +0 -2
- package/public/assets/GitChangesTab-CZKmWbZm.js +0 -2
- package/public/assets/StatusTab-DPEERsjK.js +0 -1
- package/public/assets/index-BABoBC9z.js +0 -1
- package/public/assets/index-BOSM8vHG.js +0 -1
- package/public/assets/index-BojPpsvR.js +0 -1
- package/public/assets/index-BukIsQdK.js +0 -2
- package/public/assets/index-C67fezMm.js +0 -1
- package/public/assets/index-D0ddGssx.js +0 -1
- package/public/assets/index-DPOLN9hi.js +0 -1
- package/public/assets/index-R6xj13wr.js +0 -1
- package/public/assets/index-dnW0si-t.js +0 -1
- package/public/assets/index-vdSY4LFo.js +0 -1
- package/public/assets/index-xmIKK5uD.js +0 -1
- package/public/assets/main-CubPCiKs.js +0 -65
- package/public/assets/monaco-viewer-CavxO_DD.js +0 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{aq as _,t as b,i as x,u as E,m as V,k as B}from"./monaco-viewer-BFNhPQX7.js";import{c as L,b as F,n as p,a as D,S as q,E as z,D as G,C as T,G as U}from"./git-diff-vendor-CSgooKT_.js";import{aw as N,ax as K}from"./main-BsbMOeQg.js";import"./fast-diff-vendor-DgdwVvTQ.js";import"./highlight-vendor-8FKMu9os.js";import"./index-DFlxnvHT.js";var $=b("<div>"),O=b("<div class=tool-call-diff-viewer>"),P=b("<pre class=tool-call-diff-fallback>");const j=B("session");U();function I(e,s,o){const a=window.getComputedStyle(o),i=document.createElement("span");i.textContent=s||"",i.style.position="absolute",i.style.visibility="hidden",i.style.pointerEvents="none",i.style.display="inline-block",i.style.width="auto",i.style.maxWidth="none",i.style.whiteSpace="nowrap",i.style.fontFamily=a.fontFamily,i.style.fontSize=a.fontSize,i.style.fontWeight=a.fontWeight,i.style.fontStyle=a.fontStyle,i.style.letterSpacing=a.letterSpacing,i.style.fontVariant=a.fontVariant,i.style.textTransform=a.textTransform,i.style.lineHeight=a.lineHeight,e.appendChild(i);const f=Math.ceil(i.getBoundingClientRect().width);return i.remove(),f}function M(e,s,o=40){const a=s.reduce((l,n)=>Math.max(l,I(e,n.text,n.source)),0),i=s.reduce((l,n)=>Math.max(l,n.text.length),1),f=Math.round(i*7+4);return Math.max(2,Math.min(o,a>0?a+2:f))}function J(e,s){const o=e.querySelector(".unified-diff-table-wrapper"),a=e.querySelector(".unified-diff-table"),i=e.querySelector(".unified-diff-table-num-col"),f=e.querySelectorAll(".diff-line-num"),l=e.querySelectorAll(".diff-line-hunk-action, .diff-line-widget-wrapper, .diff-line-extend-wrapper"),n=[];a&&(s?(a.classList.add("table-fixed"),a.style.tableLayout="fixed",a.style.width="100%",a.style.minWidth="100%"):(a.classList.remove("table-fixed"),a.style.tableLayout="auto",a.style.width="max-content",a.style.minWidth="100%")),f.forEach(r=>{var v,k;const c=r.querySelector("[data-line-old-num]"),m=r.querySelector("[data-line-new-num]"),W=r.querySelector(".shrink-0"),S=r.querySelector(":scope > .flex"),C=r.querySelector(":scope > .tool-call-diff-compact-line-number"),y=((v=c==null?void 0:c.textContent)==null?void 0:v.trim())??"",w=((k=m==null?void 0:m.textContent)==null?void 0:k.trim())??"",H=w.length>0&&w!=="0",R=y.length>0&&y!=="0",g=H?w:R?y:w||y;S&&(S.style.display="none"),W&&(W.style.display="none"),c&&(c.style.display="none",c.style.width="auto"),m&&(m.style.display="none",m.style.width="auto"),r.style.paddingLeft="1px",r.style.paddingRight="1px",r.style.textAlign="left";const u=C??document.createElement("span");u.className="tool-call-diff-compact-line-number",u.textContent=g,u.setAttribute("aria-hidden",g?"false":"true"),C||r.appendChild(u),n.push({gutter:r,label:u,text:g})});const t=M(e,n.map(r=>({text:r.text,source:r.label}))),d=`${t}px`,h=`${Math.max(8,t-10)}px`;o&&(o.style.setProperty("--diff-aside-width",h),o.style.setProperty("--diff-aside-width--",h)),i&&(i.style.width=d),n.forEach(({gutter:r,label:c})=>{r.style.width=d,r.style.minWidth=d,r.style.maxWidth=d,c.style.width="auto",c.style.maxWidth="none"}),l.forEach(r=>{r.style.width=d,r.style.minWidth=d,r.style.maxWidth=d,r.style.paddingLeft="0",r.style.paddingRight="0"})}function Q(e){const s=e.querySelector(".old-diff-table-wrapper"),o=e.querySelector(".new-diff-table-wrapper"),a=Array.from(e.querySelectorAll(".diff-line-old-num, .diff-line-new-num")),i=Array.from(e.querySelectorAll(".diff-line-hunk-action, .diff-line-widget-wrapper, .diff-line-extend-wrapper")),f=a.map(t=>({cell:t,span:t.querySelector("[data-line-num]")})).filter(t=>!!t.span),n=`${M(e,f.map(({span:t})=>{var d;return{text:((d=t.textContent)==null?void 0:d.trim())??"",source:t}}),64)}px`;[s,o].forEach(t=>{t&&t.style.setProperty("--diff-aside-width",n)}),a.forEach(t=>{t.style.width=n,t.style.minWidth=n,t.style.maxWidth=n,t.style.paddingLeft="2px",t.style.paddingRight="2px",t.style.textAlign="left",t.style.whiteSpace="nowrap",t.style.overflowWrap="normal",t.style.wordBreak="normal"}),f.forEach(({span:t})=>{t.style.whiteSpace="nowrap",t.style.overflowWrap="normal",t.style.wordBreak="normal"}),i.forEach(t=>{t.style.width=n,t.style.minWidth=n,t.style.maxWidth=n,t.style.paddingLeft="0",t.style.paddingRight="0"})}function A(e,s,o=!1){if(s==="unified"){J(e,o);return}s==="split"&&Q(e)}function ne(e){const s=L(()=>{const f=_(e.diffText);if(!f)return null;const l=N(e.filePath)||"text",n=e.filePath||"diff";return{oldFile:{fileName:n,fileLang:l},newFile:{fileName:n,fileLang:l},hunks:[f]}});let o,a;const i=L(()=>s()?`${e.theme}|${e.mode}|${e.wrap?"wrap":"nowrap"}|${e.diffText}`:"");return F(()=>{var n;if(e.cachedHtml){o&&A(o,e.mode,!!e.wrap),(n=e.onRendered)==null||n.call(e);return}const l=i();l&&o&&a!==l&&requestAnimationFrame(()=>{var d;if(!o)return;A(o,e.mode,!!e.wrap);const t=o.innerHTML;t&&(a=l,e.cacheEntryParams&&K(e.cacheEntryParams,{text:e.diffText,html:t,theme:e.theme,mode:e.mode,wrap:e.wrap}),(d=e.onRendered)==null||d.call(e))})}),(()=>{var f=O();return x(f,p(q,{get when(){return e.cachedHtml},get fallback(){return(()=>{var l=$(),n=o;return typeof n=="function"?E(n,l):o=l,x(l,p(q,{get when(){return s()},get fallback(){return(()=>{var t=P();return x(t,()=>e.diffText),t})()},children:t=>p(z,{fallback:d=>(j.warn("Failed to render diff view",d),(()=>{var h=P();return x(h,()=>e.diffText),h})()),get children(){return p(G,{get data(){return t()},get diffViewMode(){return V(()=>e.mode==="split")()?T.Split:T.Unified},get diffViewTheme(){return e.theme},diffViewHighlight:!0,get diffViewWrap(){return!!e.wrap},diffViewFontSize:13})}})})),l})()},get children(){var l=$(),n=o;return typeof n=="function"?E(n,l):o=l,D(()=>l.innerHTML=e.cachedHtml),l}})),f})()}export{ne as ToolCallDiffViewer};
|