@inkeep/open-knowledge 0.14.1-beta.7 → 0.14.1-beta.9
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/dist/assets/skills/discovery/SKILL.md +1 -1
- package/dist/assets/skills/project/SKILL.md +1 -1
- package/dist/cli.mjs +5 -5
- package/dist/constants-wL1PnBHF.mjs +2 -0
- package/dist/{dist-DXy6vR0C.mjs → dist-Cp_03Nwz.mjs} +5 -5
- package/dist/{dist-BCc8dccQ.mjs → dist-DVfe95Mj.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{init-DmMC7g1H.mjs → init-C2tuu0fd.mjs} +4 -4
- package/dist/init-DFcNkLOp.mjs +1 -0
- package/dist/{loader-CyXFOqHl.mjs → loader-Cs3h4_AY.mjs} +2 -2
- package/dist/loader-cVf26Fwj.mjs +1 -0
- package/dist/{preview-CE5qWEZD.mjs → preview-BSE3HLSA.mjs} +2 -2
- package/dist/preview-D4Ndw3zA.mjs +1 -0
- package/dist/public/assets/{ActivityModeContent-DMWyGmc7.js → ActivityModeContent-Ct2Ie8Uw.js} +1 -1
- package/dist/public/assets/DocumentContext-CSuzjbA_.js +34 -0
- package/dist/public/assets/{GraphPanel-B58JJIOw.js → GraphPanel--je5keW-.js} +2 -2
- package/dist/public/assets/{OpenInAgentMenuRequestContext-DNOfiGA1.js → OpenInAgentMenuRequestContext-A7DCrMXJ.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-Ba3VsWF_.js → SettingsDialogBody-CL1MB92k.js} +2 -2
- package/dist/public/assets/{SourceEditor-DbBTC-jZ.js → SourceEditor-BuwbdE2L.js} +2 -2
- package/dist/public/assets/{TerminalPanel-BkUJX2u2.js → TerminalPanel-D6LgqCx5.js} +1 -1
- package/dist/public/assets/{config-validation-events-YtVSUQ_Q.js → config-validation-events-C0jWGSn7.js} +4 -4
- package/dist/public/assets/{dist-B5dlMLp_.js → dist-xnhTeErX.js} +53 -49
- package/dist/public/assets/index-BM_90V0e.js +2019 -0
- package/dist/public/assets/index-BztJojW-.css +1 -0
- package/dist/public/assets/{keyboard-shortcuts-1uAPTL_K.js → keyboard-shortcuts-CfHQi9DZ.js} +1 -1
- package/dist/public/assets/{prop-types-tSB2OwJB.js → prop-types-BtwbmtAc.js} +2 -2
- package/dist/public/assets/{target-navigation-intent-ehGeZlpY.js → target-navigation-intent-COXec7Je.js} +1 -1
- package/dist/public/index.html +9 -9
- package/dist/{repair-launch-json-VPrHYNNv.mjs → repair-launch-json-PvEztuVK.mjs} +2 -2
- package/dist/{repair-mcp-configs-iiFVCPwk.mjs → repair-mcp-configs-CjyWKron.mjs} +2 -2
- package/dist/repair-skills-Ba-YZuKb.mjs +1 -0
- package/dist/{repair-skills-CJZGi7FS.mjs → repair-skills-BpMSCAS-.mjs} +2 -2
- package/dist/{src-DldIaslT.mjs → src-DWt0EawY.mjs} +2 -2
- package/dist/{start-BblfXsoi.mjs → start-D6G21jKm.mjs} +2 -2
- package/dist/start-DRyhlpzO.mjs +1 -0
- package/dist/{write-project-skill-CPwPwtd9.mjs → write-project-skill-C9C1BoIh.mjs} +2 -2
- package/package.json +1 -1
- package/dist/constants-CNuweEy1.mjs +0 -2
- package/dist/init-BQp2jpD8.mjs +0 -1
- package/dist/loader-CdEhh_oc.mjs +0 -1
- package/dist/preview-tnpafwdF.mjs +0 -1
- package/dist/public/assets/DocumentContext-sN8SjfyG.js +0 -34
- package/dist/public/assets/index-CSgGzdOz.js +0 -2019
- package/dist/public/assets/index-DG6YzT2Z.css +0 -1
- package/dist/repair-skills-BkgkXja6.mjs +0 -1
- package/dist/start-B4f51L6R.mjs +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,o as n,t as r}from"./compiler-runtime-Cs91PcD2.js";import{D as i,E as a,G as o,I as s,O as c,R as l,U as u,bt as d,cn as f,dn as p,fn as m,gn as h,hn as g,in as _,ln as v,mn as y,on as b,pn as x,sn as S,un as C,xt as ee}from"./DocumentContext-
|
|
2
|
-
`);e!==r&&t.delete(e+n,r-e),s.length>0&&t.insert(e+n,s),n+=s.length-(r-e)})},this.conf)}destroy(){this._ytext.unobserve(this._observer)}},U=M.fromClass(H),W=P.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:`0px 2px 0px 4px`},".cm-ySelectionCaret":{position:`relative`,borderLeft:`1px solid black`,borderRight:`1px solid black`,marginLeft:`-1px`,marginRight:`-1px`,boxSizing:`border-box`,display:`inline`},".cm-ySelectionCaretDot":{borderRadius:`50%`,position:`absolute`,width:`.4em`,height:`.4em`,top:`-.2em`,left:`-.2em`,backgroundColor:`inherit`,transition:`transform .3s ease-in-out`,boxSizing:`border-box`},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:`bottom center`,transform:`scale(0)`},".cm-ySelectionInfo":{position:`absolute`,top:`-1.05em`,left:`-1px`,fontSize:`.75em`,fontFamily:`serif`,fontStyle:`normal`,fontWeight:`normal`,lineHeight:`normal`,userSelect:`none`,color:`white`,paddingLeft:`2px`,paddingRight:`2px`,zIndex:101,transition:`opacity .3s ease-in-out`,backgroundColor:`inherit`,opacity:0,transitionDelay:`0s`,whiteSpace:`nowrap`},".cm-ySelectionCaret:hover > .cm-ySelectionInfo":{opacity:1,transitionDelay:`0s`}}),G=I.define(),K=class extends E{constructor(e,t){super(),this.color=e,this.name=t}toDOM(){return m(`span`,[y(`class`,`cm-ySelectionCaret`),y(`style`,`background-color: ${this.color}; border-color: ${this.color}`)],[x(``),m(`div`,[y(`class`,`cm-ySelectionCaretDot`)]),x(``),m(`div`,[y(`class`,`cm-ySelectionInfo`)],[x(this.name)]),x(``)])}eq(e){return e.color===this.color}compare(e){return e.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}},q=class{constructor(e){this.conf=e.state.facet(B),this._listener=({added:t,updated:n,removed:r},i,a)=>{t.concat(n).concat(r).findIndex(e=>e!==this.conf.awareness.doc.clientID)>=0&&e.dispatch({annotations:[G.of([])]})},this._awareness=this.conf.awareness,this._awareness.on(`change`,this._listener),this.decorations=F.of([])}destroy(){this._awareness.off(`change`,this._listener)}update(e){let t=this.conf.ytext,n=t.doc,r=this.conf.awareness,i=[],a=this.conf.awareness.getLocalState();if(a!=null){let n=e.view.hasFocus&&e.view.dom.ownerDocument.hasFocus(),i=n?e.state.selection.main:null,o=a.cursor==null?null:v(a.cursor.anchor),s=a.cursor==null?null:v(a.cursor.head);if(i!=null){let e=C(t,i.anchor),n=C(t,i.head);(a.cursor==null||!S(o,e)||!S(s,n))&&r.setLocalStateField(`cursor`,{anchor:e,head:n})}else a.cursor!=null&&n&&r.setLocalStateField(`cursor`,null)}r.getStates().forEach((a,o)=>{if(o===r.doc.clientID)return;let s=a.cursor;if(s==null||s.anchor==null||s.head==null)return;let c=f(s.anchor,n),l=f(s.head,n);if(c==null||l==null||c.type!==t||l.type!==t)return;let{color:u=`#30bced`,name:d=`Anonymous`}=a.user||{},p=a.user&&a.user.colorLight||u+`33`,m=h(c.index,l.index),_=g(c.index,l.index),v=e.view.state.doc.lineAt(m),y=e.view.state.doc.lineAt(_);if(v.number===y.number)i.push({from:m,to:_,value:k.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})});else{i.push({from:m,to:v.from+v.length,value:k.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})}),i.push({from:y.from,to:_,value:k.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})});for(let t=v.number+1;t<y.number;t++){let n=e.view.state.doc.line(t).from;i.push({from:n,to:n,value:k.line({attributes:{style:`background-color: ${p}`,class:`cm-yLineSelection`}})})}}i.push({from:l.index,to:l.index,value:k.widget({side:l.index-c.index>0?-1:1,block:!1,widget:new K(u,d)})})}),this.decorations=k.set(i,!0)}},J=M.fromClass(q,{decorations:e=>e.decorations}),Y=class{constructor(e){this.undoManager=e}addTrackedOrigin(e){this.undoManager.addTrackedOrigin(e)}removeTrackedOrigin(e){this.undoManager.removeTrackedOrigin(e)}undo(){return this.undoManager.undo()!=null}redo(){return this.undoManager.redo()!=null}},X=A.define({combine(e){return e[e.length-1]}});I.define();var Z=class{constructor(e){this.view=e,this.conf=e.state.facet(X),this._undoManager=this.conf.undoManager,this.syncConf=e.state.facet(B),this._beforeChangeSelection=null,this._mux=_(),this._onStackItemAdded=({stackItem:e,changedParentTypes:t})=>{t.has(this.syncConf.ytext)&&this._beforeChangeSelection&&!e.meta.has(this)&&e.meta.set(this,this._beforeChangeSelection)},this._onStackItemPopped=({stackItem:t})=>{let n=t.meta.get(this);if(n){let t=this.syncConf.fromYRange(n);e.dispatch(e.state.update({selection:t,effects:[P.scrollIntoView(t)]})),this._storeSelection()}},this._storeSelection=()=>{this._beforeChangeSelection=this.syncConf.toYRange(this.view.state.selection.main)},this._undoManager.on(`stack-item-added`,this._onStackItemAdded),this._undoManager.on(`stack-item-popped`,this._onStackItemPopped),this._undoManager.addTrackedOrigin(this.syncConf)}update(e){e.selectionSet&&(e.transactions.length===0||e.transactions[0].annotation(V)!==this.syncConf)&&this._storeSelection()}destroy(){this._undoManager.off(`stack-item-added`,this._onStackItemAdded),this._undoManager.off(`stack-item-popped`,this._onStackItemPopped),this._undoManager.removeTrackedOrigin(this.syncConf)}},Q=M.fromClass(Z),he=({state:e,dispatch:t})=>e.facet(X).undo()||!0,ge=({state:e,dispatch:t})=>e.facet(X).redo()||!0,_e=(e,t,{undoManager:n=new b(e)}={})=>{let r=new z(e,t),i=[B.of(r),U];return t&&i.push(W,J),n!==!1&&i.push(X.of(new Y(n)),Q,P.domEventHandlers({beforeinput(e,t){return e.inputType===`historyUndo`?he(t):e.inputType===`historyRedo`?ge(t):!1}})),i},ve=k.mark({class:`cm-link-ref-broken`}),ye=/^\s{0,3}\[([^\]]+)\]:\s/,be=/\[([^\]]*)\]\[([^\]]*)\]/g,xe=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function $(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function Se(e){let t=[];return j(e).iterate({enter(e){if(xe.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function Ce(e){let t=new Set,n=[],r=e.doc,i=Se(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if($(n.from,i))continue;let a=ye.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!$(t.from,i)&&!ye.test(t.text))for(be.lastIndex=0;;){let e=be.exec(t.text);if(!e)break;let r=t.from+e.index;if($(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(ve.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),k.set(a)}var we=O.define({create(e){return Ce(e)},update(e,t){return t.docChanged?Ce(t.state):e},provide:e=>P.decorations.from(e)}),Te=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,Ee=k.mark({class:`cm-del`}),De=k.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),Oe=k.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function ke(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function Ae(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!w.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(w.test(r.text))return{from:t.from,to:r.to}}return null}function je(e,t){let n=[],r=j(e),i=Ae(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(Ee.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=Te.exec(r.text),a=i?i[1].length:2,o=k.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=ke(r.text),a=k.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(De.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(Oe.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(Oe.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),k.set(n)}var Me=class{decorations;constructor(e){this.decorations=je(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||j(e.startState)!==j(e.state))&&(this.decorations=je(e.view.state,e.view.visibleRanges))}},Ne=M.fromClass(Me,{decorations:e=>e.decorations});function Pe(){return[Ne,we]}var Fe=n(),Ie=56;function Le(e,t){let n=e.state.doc,r=1;if(n.lines>=1&&w.test(n.line(1).text)){for(let e=2;e<=n.lines;e++)if(w.test(n.line(e).text)){r=e+1;break}}let i=T(),a=0;for(let o=r;o<=n.lines;o++){let r=n.line(o);if(!i(r.text)&&/^#{1,6}\s/.test(r.text)){if(a===t.index){e.dispatch({selection:D.cursor(r.from),effects:P.scrollIntoView(r.from,{y:`start`})}),e.focus();return}a++}}}function Re(e,t){requestAnimationFrame(()=>{let n=e.state.doc,r=Math.min(t.offset,n.length);e.dispatch({selection:D.cursor(r),effects:P.scrollIntoView(r,{y:`center`})}),e.focus()})}function ze(e){let t=e.state.selection.main;return t.empty?``:e.state.sliceDoc(t.from,t.to)}function Be(e){let t=(0,me.c)(39),{docName:n,ytext:r,provider:s,placeholder:f,isSourceModeActive:p}=e,m=(0,L.useRef)(null),h=(0,L.useRef)(null),g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=new N,t[0]=g):g=t[0];let _=(0,L.useRef)(g),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v=new N,t[1]=v):v=t[1];let y=(0,L.useRef)(v),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b=new N,t[2]=b):b=t[2];let x=(0,L.useRef)(b),[S,C]=(0,L.useState)(null);if(S)throw S;let{resolvedTheme:w}=ne(),{merged:T}=l(),{openSelection:E}=de(),D=(0,L.useRef)(E),O=(0,L.useRef)(p),k=T?.editor?.wordWrap??!0,A,j;t[3]===E?(A=t[4],j=t[5]):(A=()=>{D.current=E},j=[E],t[3]=E,t[4]=A,t[5]=j),(0,L.useEffect)(A,j);let M,F;t[6]===p?(M=t[7],F=t[8]):(M=()=>{O.current=p},F=[p],t[6]=p,t[7]=M,t[8]=F),(0,L.useEffect)(M,F);let I=(0,L.useRef)(null),R;t[9]!==f||t[10]!==s||t[11]!==w||t[12]!==k||t[13]!==r?(R=()=>{let e=m.current;if(!e)return;let t=s.configuration.name??``,n,i=He;try{n=d({docName:t,container:e,sizeStats:{viewCount:0,bytes:r.length},factory:e=>{let n=null,c=o({ydoc:s.document,ytext:r}),l=new P({state:ie.create({doc:r.toString(),extensions:[pe,oe.of([u]),_e(r,s.awareness),...a({themeCompartment:_.current,resolvedTheme:w,ydoc:s.document,wordWrapCompartment:x.current,wordWrap:k}),Pe(),c,P.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,le(t,`source`,se(e.view))},120))}),P.domEventHandlers({keydown:(e,n)=>!O.current||!te()||!re(e,`edit-with-ai`)?!1:(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),D.current({docName:t,instruction:``,selectionMarkdown:ze(n)}),!0)}),y.current.of(ae(f??``)),P.theme({"&":{height:`100%`}}),P.scrollMargins.of(Ve)]}),parent:e});le(t,`source`,se(l));let d=l.contentDOM;return d.addEventListener(`keydown`,i),d.addEventListener(`paste`,i),d.addEventListener(`drop`,i),d.addEventListener(`cut`,i),{view:l,ydoc:s.document,ytext:r,provider:s}}}),I.current=n,h.current=n.view}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),I.current=null,h.current=null,C(t instanceof Error?t:Error(String(t)))}return()=>{let e=I.current;e&&ee(e),I.current=null,h.current=null}},t[9]=f,t[10]=s,t[11]=w,t[12]=k,t[13]=r,t[14]=R):R=t[14];let z;t[15]!==s||t[16]!==r?(z=[r,s],t[15]=s,t[16]=r,t[17]=z):z=t[17],(0,L.useEffect)(R,z);let B,V;t[18]===n?(B=t[19],V=t[20]):(B=()=>{},V=[n],t[18]=n,t[19]=B,t[20]=V),(0,L.useEffect)(B,V);let H,U;t[21]===w?(H=t[22],U=t[23]):(H=()=>{h.current&&h.current.dispatch({effects:_.current.reconfigure(w===`dark`?i:c)})},U=[w],t[21]=w,t[22]=H,t[23]=U),(0,L.useEffect)(H,U);let W,G;t[24]===k?(W=t[25],G=t[26]):(W=()=>{h.current&&h.current.dispatch({effects:x.current.reconfigure(k?P.lineWrapping:[])})},G=[k],t[24]=k,t[25]=W,t[26]=G),(0,L.useEffect)(W,G);let K,q;t[27]===f?(K=t[28],q=t[29]):(K=()=>{h.current&&h.current.dispatch({effects:y.current.reconfigure(ae(f??``))})},q=[f],t[27]=f,t[28]=K,t[29]=q),(0,L.useEffect)(K,q);let J,Y;t[30]!==n||t[31]!==p?(J=()=>{let e=function(e){let t=e.detail;if(!t||t.mode!==`source`||!p)return;let r=h.current;r&&(Le(r,t),fe(n))};return window.addEventListener(ce,e),()=>window.removeEventListener(ce,e)},Y=[n,p],t[30]=n,t[31]=p,t[32]=J,t[33]=Y):(J=t[32],Y=t[33]),(0,L.useEffect)(J,Y);let X,Z;t[34]!==n||t[35]!==p?(X=()=>{if(!p)return;let e=h.current;if(!e)return;let t=ue(n);if(t){if(t.kind===`outline`){Le(e,t.detail);return}Re(e,t.detail)}},Z=[n,p],t[34]=n,t[35]=p,t[36]=X,t[37]=Z):(X=t[36],Z=t[37]),(0,L.useEffect)(X,Z);let Q;return t[38]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,Fe.jsx)(`div`,{ref:m,className:`source-editor h-full pb-3`}),t[38]=Q):Q=t[38],Q}function Ve(){return{top:Ie}}function He(){return s()}export{Be as SourceEditor};
|
|
1
|
+
import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,o as n,t as r}from"./compiler-runtime-Cs91PcD2.js";import{D as i,E as a,G as o,I as s,O as c,R as l,U as u,bt as d,cn as f,dn as p,fn as m,gn as h,hn as g,in as _,ln as v,mn as y,on as b,pn as x,sn as S,un as C,xt as ee}from"./DocumentContext-CSuzjbA_.js";import{$t as w,I as T,Mr as te,ci as ne}from"./dist-xnhTeErX.js";import{l as re}from"./keyboard-shortcuts-CfHQi9DZ.js";import{$ as E,Dt as ie,Et as D,Ft as O,J as k,Ot as A,P as j,Q as M,Tt as N,X as P,jt as F,pt as ae,ut as oe,xt as I}from"./dist--WFXzgaP.js";import{a as se,d as ce,i as le,m as ue,n as de,p as fe,u as pe}from"./OpenInAgentMenuRequestContext-A7DCrMXJ.js";var L=e(t(),1),me=r(),R=class e{constructor(e,t){this.yanchor=e,this.yhead=t}toJSON(){return{yanchor:p(this.yanchor),yhead:p(this.yhead)}}static fromJSON(t){return new e(v(t.yanchor),v(t.yhead))}},z=class{constructor(e,t){this.ytext=e,this.awareness=t,this.undoManager=new b(e)}toYPos(e,t=0){return C(this.ytext,e,t)}fromYPos(e){let t=f(v(e),this.ytext.doc);if(t==null||t.type!==this.ytext)throw Error(`[y-codemirror] The position you want to retrieve was created by a different document`);return{pos:t.index,assoc:t.assoc}}toYRange(e){let t=e.assoc;return new R(this.toYPos(e.anchor,t),this.toYPos(e.head,t))}fromYRange(e){let t=this.fromYPos(e.yanchor),n=this.fromYPos(e.yhead);return t.pos===n.pos?D.cursor(n.pos,n.assoc):D.range(t.pos,n.pos)}},B=A.define({combine(e){return e[e.length-1]}}),V=I.define(),H=class{constructor(e){this.view=e,this.conf=e.state.facet(B),this._observer=(t,n)=>{if(n.origin!==this.conf){let n=t.delta,r=[],i=0;for(let e=0;e<n.length;e++){let t=n[e];t.insert==null?t.delete==null?i+=t.retain:(r.push({from:i,to:i+t.delete,insert:``}),i+=t.delete):r.push({from:i,to:i,insert:t.insert})}e.dispatch({changes:r,annotations:[V.of(this.conf)]})}},this._ytext=this.conf.ytext,this._ytext.observe(this._observer)}update(e){if(!e.docChanged||e.transactions.length>0&&e.transactions[0].annotation(V)===this.conf)return;let t=this.conf.ytext;t.doc.transact(()=>{let n=0;e.changes.iterChanges((e,r,i,a,o)=>{let s=o.sliceString(0,o.length,`
|
|
2
|
+
`);e!==r&&t.delete(e+n,r-e),s.length>0&&t.insert(e+n,s),n+=s.length-(r-e)})},this.conf)}destroy(){this._ytext.unobserve(this._observer)}},U=M.fromClass(H),W=P.baseTheme({".cm-ySelection":{},".cm-yLineSelection":{padding:0,margin:`0px 2px 0px 4px`},".cm-ySelectionCaret":{position:`relative`,borderLeft:`1px solid black`,borderRight:`1px solid black`,marginLeft:`-1px`,marginRight:`-1px`,boxSizing:`border-box`,display:`inline`},".cm-ySelectionCaretDot":{borderRadius:`50%`,position:`absolute`,width:`.4em`,height:`.4em`,top:`-.2em`,left:`-.2em`,backgroundColor:`inherit`,transition:`transform .3s ease-in-out`,boxSizing:`border-box`},".cm-ySelectionCaret:hover > .cm-ySelectionCaretDot":{transformOrigin:`bottom center`,transform:`scale(0)`},".cm-ySelectionInfo":{position:`absolute`,top:`-1.05em`,left:`-1px`,fontSize:`.75em`,fontFamily:`serif`,fontStyle:`normal`,fontWeight:`normal`,lineHeight:`normal`,userSelect:`none`,color:`white`,paddingLeft:`2px`,paddingRight:`2px`,zIndex:101,transition:`opacity .3s ease-in-out`,backgroundColor:`inherit`,opacity:0,transitionDelay:`0s`,whiteSpace:`nowrap`},".cm-ySelectionCaret:hover > .cm-ySelectionInfo":{opacity:1,transitionDelay:`0s`}}),G=I.define(),K=class extends E{constructor(e,t){super(),this.color=e,this.name=t}toDOM(){return m(`span`,[y(`class`,`cm-ySelectionCaret`),y(`style`,`background-color: ${this.color}; border-color: ${this.color}`)],[x(``),m(`div`,[y(`class`,`cm-ySelectionCaretDot`)]),x(``),m(`div`,[y(`class`,`cm-ySelectionInfo`)],[x(this.name)]),x(``)])}eq(e){return e.color===this.color}compare(e){return e.color===this.color}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}},q=class{constructor(e){this.conf=e.state.facet(B),this._listener=({added:t,updated:n,removed:r},i,a)=>{t.concat(n).concat(r).findIndex(e=>e!==this.conf.awareness.doc.clientID)>=0&&e.dispatch({annotations:[G.of([])]})},this._awareness=this.conf.awareness,this._awareness.on(`change`,this._listener),this.decorations=F.of([])}destroy(){this._awareness.off(`change`,this._listener)}update(e){let t=this.conf.ytext,n=t.doc,r=this.conf.awareness,i=[],a=this.conf.awareness.getLocalState();if(a!=null){let n=e.view.hasFocus&&e.view.dom.ownerDocument.hasFocus(),i=n?e.state.selection.main:null,o=a.cursor==null?null:v(a.cursor.anchor),s=a.cursor==null?null:v(a.cursor.head);if(i!=null){let e=C(t,i.anchor),n=C(t,i.head);(a.cursor==null||!S(o,e)||!S(s,n))&&r.setLocalStateField(`cursor`,{anchor:e,head:n})}else a.cursor!=null&&n&&r.setLocalStateField(`cursor`,null)}r.getStates().forEach((a,o)=>{if(o===r.doc.clientID)return;let s=a.cursor;if(s==null||s.anchor==null||s.head==null)return;let c=f(s.anchor,n),l=f(s.head,n);if(c==null||l==null||c.type!==t||l.type!==t)return;let{color:u=`#30bced`,name:d=`Anonymous`}=a.user||{},p=a.user&&a.user.colorLight||u+`33`,m=h(c.index,l.index),_=g(c.index,l.index),v=e.view.state.doc.lineAt(m),y=e.view.state.doc.lineAt(_);if(v.number===y.number)i.push({from:m,to:_,value:k.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})});else{i.push({from:m,to:v.from+v.length,value:k.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})}),i.push({from:y.from,to:_,value:k.mark({attributes:{style:`background-color: ${p}`},class:`cm-ySelection`})});for(let t=v.number+1;t<y.number;t++){let n=e.view.state.doc.line(t).from;i.push({from:n,to:n,value:k.line({attributes:{style:`background-color: ${p}`,class:`cm-yLineSelection`}})})}}i.push({from:l.index,to:l.index,value:k.widget({side:l.index-c.index>0?-1:1,block:!1,widget:new K(u,d)})})}),this.decorations=k.set(i,!0)}},J=M.fromClass(q,{decorations:e=>e.decorations}),Y=class{constructor(e){this.undoManager=e}addTrackedOrigin(e){this.undoManager.addTrackedOrigin(e)}removeTrackedOrigin(e){this.undoManager.removeTrackedOrigin(e)}undo(){return this.undoManager.undo()!=null}redo(){return this.undoManager.redo()!=null}},X=A.define({combine(e){return e[e.length-1]}});I.define();var Z=class{constructor(e){this.view=e,this.conf=e.state.facet(X),this._undoManager=this.conf.undoManager,this.syncConf=e.state.facet(B),this._beforeChangeSelection=null,this._mux=_(),this._onStackItemAdded=({stackItem:e,changedParentTypes:t})=>{t.has(this.syncConf.ytext)&&this._beforeChangeSelection&&!e.meta.has(this)&&e.meta.set(this,this._beforeChangeSelection)},this._onStackItemPopped=({stackItem:t})=>{let n=t.meta.get(this);if(n){let t=this.syncConf.fromYRange(n);e.dispatch(e.state.update({selection:t,effects:[P.scrollIntoView(t)]})),this._storeSelection()}},this._storeSelection=()=>{this._beforeChangeSelection=this.syncConf.toYRange(this.view.state.selection.main)},this._undoManager.on(`stack-item-added`,this._onStackItemAdded),this._undoManager.on(`stack-item-popped`,this._onStackItemPopped),this._undoManager.addTrackedOrigin(this.syncConf)}update(e){e.selectionSet&&(e.transactions.length===0||e.transactions[0].annotation(V)!==this.syncConf)&&this._storeSelection()}destroy(){this._undoManager.off(`stack-item-added`,this._onStackItemAdded),this._undoManager.off(`stack-item-popped`,this._onStackItemPopped),this._undoManager.removeTrackedOrigin(this.syncConf)}},Q=M.fromClass(Z),he=({state:e,dispatch:t})=>e.facet(X).undo()||!0,ge=({state:e,dispatch:t})=>e.facet(X).redo()||!0,_e=(e,t,{undoManager:n=new b(e)}={})=>{let r=new z(e,t),i=[B.of(r),U];return t&&i.push(W,J),n!==!1&&i.push(X.of(new Y(n)),Q,P.domEventHandlers({beforeinput(e,t){return e.inputType===`historyUndo`?he(t):e.inputType===`historyRedo`?ge(t):!1}})),i},ve=k.mark({class:`cm-link-ref-broken`}),ye=/^\s{0,3}\[([^\]]+)\]:\s/,be=/\[([^\]]*)\]\[([^\]]*)\]/g,xe=new Set([`FencedCode`,`CodeBlock`,`InlineCode`]);function $(e,t){let n=0,r=t.length-1;for(;n<=r;){let i=n+r>>1,a=t[i];if(e<a.from)r=i-1;else if(e>=a.to)n=i+1;else return!0}return!1}function Se(e){let t=[];return j(e).iterate({enter(e){if(xe.has(e.name))return t.push({from:e.from,to:e.to}),!1}}),t.sort((e,t)=>e.from-t.from),t}function Ce(e){let t=new Set,n=[],r=e.doc,i=Se(e);for(let e=1;e<=r.lines;e++){let n=r.line(e);if($(n.from,i))continue;let a=ye.exec(n.text);a&&t.add(a[1].toLowerCase())}for(let e=1;e<=r.lines;e++){let t=r.line(e);if(!$(t.from,i)&&!ye.test(t.text))for(be.lastIndex=0;;){let e=be.exec(t.text);if(!e)break;let r=t.from+e.index;if($(r,i))continue;let a=e[2]||e[1];n.push({from:r,to:r+e[0].length,label:a.toLowerCase()})}}let a=[];for(let e of n)t.has(e.label)||a.push(ve.range(e.from,e.to));return a.sort((e,t)=>e.from-t.from),k.set(a)}var we=O.define({create(e){return Ce(e)},update(e,t){return t.docChanged?Ce(t.state):e},provide:e=>P.decorations.from(e)}),Te=/^(\s*(?:[-*+]|\d+[.)]) (?:\[[ x]\] )?)/,Ee=k.mark({class:`cm-del`}),De=k.line({class:`cm-table-header`,attributes:{style:`--list-hang: 2ch`}}),Oe=k.line({class:`cm-table-row`,attributes:{style:`--list-hang: 2ch`}});function ke(e){let t=0;for(let n of e)if(n===` `)t++;else if(n===` `)t+=4;else break;return t}function Ae(e){if(e.doc.lines<2)return null;let t=e.doc.line(1);if(!T.test(t.text))return null;for(let n=2;n<=e.doc.lines;n++){let r=e.doc.line(n);if(T.test(r.text))return{from:t.from,to:r.to}}return null}function je(e,t){let n=[],r=j(e),i=Ae(e),a=e=>i!==null&&e>=i.from&&e<=i.to;for(let{from:i,to:o}of t)r.iterate({from:i,to:o,enter(t){if(!a(t.from)){if(t.name===`Strikethrough`){let e=t.from,r=t.to,i=t.node.cursor();if(i.firstChild())do i.name===`StrikethroughMark`&&(i.from===t.from?e=i.to:r=i.from);while(i.nextSibling());return e<r&&n.push(Ee.range(e,r)),!1}if(t.name===`ListItem`){let r=e.doc.lineAt(t.from),i=Te.exec(r.text),a=i?i[1].length:2,o=k.line({class:`cm-list-item`,attributes:{style:`--list-hang: ${a}ch`}});n.push(o.range(r.from));return}if(t.name===`FencedCode`){let r=e.doc.lineAt(t.from),i=e.doc.lineAt(t.to);for(let t=r.number+1;t<i.number;t++){let r=e.doc.line(t),i=ke(r.text),a=k.line({class:`cm-fenced-code-line`,attributes:{style:`--line-indent: ${i}`}});n.push(a.range(r.from))}return!1}if(t.name===`TableHeader`){let r=e.doc.lineAt(t.from);return n.push(De.range(r.from)),!1}if(t.name===`TableRow`){let r=e.doc.lineAt(t.from);return n.push(Oe.range(r.from)),!1}if(t.name===`TableDelimiter`&&t.node.parent?.name===`Table`){let r=e.doc.lineAt(t.from);return n.push(Oe.range(r.from)),!1}}}});return n.sort((e,t)=>e.from-t.from||e.value.startSide-t.value.startSide),k.set(n)}var Me=class{decorations;constructor(e){this.decorations=je(e.state,e.visibleRanges)}update(e){(e.docChanged||e.viewportChanged||j(e.startState)!==j(e.state))&&(this.decorations=je(e.view.state,e.view.visibleRanges))}},Ne=M.fromClass(Me,{decorations:e=>e.decorations});function Pe(){return[Ne,we]}var Fe=n(),Ie=56;function Le(e,t){let n=e.state.doc,r=1;if(n.lines>=1&&T.test(n.line(1).text)){for(let e=2;e<=n.lines;e++)if(T.test(n.line(e).text)){r=e+1;break}}let i=w(),a=0;for(let o=r;o<=n.lines;o++){let r=n.line(o);if(!i(r.text)&&/^#{1,6}\s/.test(r.text)){if(a===t.index){e.dispatch({selection:D.cursor(r.from),effects:P.scrollIntoView(r.from,{y:`start`})}),e.focus();return}a++}}}function Re(e,t){requestAnimationFrame(()=>{let n=e.state.doc,r=Math.min(t.offset,n.length);e.dispatch({selection:D.cursor(r),effects:P.scrollIntoView(r,{y:`center`})}),e.focus()})}function ze(e){let t=e.state.selection.main;return t.empty?``:e.state.sliceDoc(t.from,t.to)}function Be(e){let t=(0,me.c)(39),{docName:n,ytext:r,provider:s,placeholder:f,isSourceModeActive:p}=e,m=(0,L.useRef)(null),h=(0,L.useRef)(null),g;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(g=new N,t[0]=g):g=t[0];let _=(0,L.useRef)(g),v;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(v=new N,t[1]=v):v=t[1];let y=(0,L.useRef)(v),b;t[2]===Symbol.for(`react.memo_cache_sentinel`)?(b=new N,t[2]=b):b=t[2];let x=(0,L.useRef)(b),[S,C]=(0,L.useState)(null);if(S)throw S;let{resolvedTheme:w}=ne(),{merged:T}=l(),{openSelection:E}=de(),D=(0,L.useRef)(E),O=(0,L.useRef)(p),k=T?.editor?.wordWrap??!0,A,j;t[3]===E?(A=t[4],j=t[5]):(A=()=>{D.current=E},j=[E],t[3]=E,t[4]=A,t[5]=j),(0,L.useEffect)(A,j);let M,F;t[6]===p?(M=t[7],F=t[8]):(M=()=>{O.current=p},F=[p],t[6]=p,t[7]=M,t[8]=F),(0,L.useEffect)(M,F);let I=(0,L.useRef)(null),R;t[9]!==f||t[10]!==s||t[11]!==w||t[12]!==k||t[13]!==r?(R=()=>{let e=m.current;if(!e)return;let t=s.configuration.name??``,n,i=He;try{n=d({docName:t,container:e,sizeStats:{viewCount:0,bytes:r.length},factory:e=>{let n=null,c=o({ydoc:s.document,ytext:r}),l=new P({state:ie.create({doc:r.toString(),extensions:[pe,oe.of([u]),_e(r,s.awareness),...a({themeCompartment:_.current,resolvedTheme:w,ydoc:s.document,wordWrapCompartment:x.current,wordWrap:k}),Pe(),c,P.updateListener.of(e=>{!e.selectionSet&&!e.docChanged||(n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,le(t,`source`,se(e.view))},120))}),P.domEventHandlers({keydown:(e,n)=>!O.current||!te()||!re(e,`edit-with-ai`)?!1:(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),D.current({docName:t,instruction:``,selectionMarkdown:ze(n)}),!0)}),y.current.of(ae(f??``)),P.theme({"&":{height:`100%`}}),P.scrollMargins.of(Ve)]}),parent:e});le(t,`source`,se(l));let d=l.contentDOM;return d.addEventListener(`keydown`,i),d.addEventListener(`paste`,i),d.addEventListener(`drop`,i),d.addEventListener(`cut`,i),{view:l,ydoc:s.document,ytext:r,provider:s}}}),I.current=n,h.current=n.view}catch(e){let t=e;console.error(`[SourceEditor] mountCmEditor failed`,t),I.current=null,h.current=null,C(t instanceof Error?t:Error(String(t)))}return()=>{let e=I.current;e&&ee(e),I.current=null,h.current=null}},t[9]=f,t[10]=s,t[11]=w,t[12]=k,t[13]=r,t[14]=R):R=t[14];let z;t[15]!==s||t[16]!==r?(z=[r,s],t[15]=s,t[16]=r,t[17]=z):z=t[17],(0,L.useEffect)(R,z);let B,V;t[18]===n?(B=t[19],V=t[20]):(B=()=>{},V=[n],t[18]=n,t[19]=B,t[20]=V),(0,L.useEffect)(B,V);let H,U;t[21]===w?(H=t[22],U=t[23]):(H=()=>{h.current&&h.current.dispatch({effects:_.current.reconfigure(w===`dark`?i:c)})},U=[w],t[21]=w,t[22]=H,t[23]=U),(0,L.useEffect)(H,U);let W,G;t[24]===k?(W=t[25],G=t[26]):(W=()=>{h.current&&h.current.dispatch({effects:x.current.reconfigure(k?P.lineWrapping:[])})},G=[k],t[24]=k,t[25]=W,t[26]=G),(0,L.useEffect)(W,G);let K,q;t[27]===f?(K=t[28],q=t[29]):(K=()=>{h.current&&h.current.dispatch({effects:y.current.reconfigure(ae(f??``))})},q=[f],t[27]=f,t[28]=K,t[29]=q),(0,L.useEffect)(K,q);let J,Y;t[30]!==n||t[31]!==p?(J=()=>{let e=function(e){let t=e.detail;if(!t||t.mode!==`source`||!p)return;let r=h.current;r&&(Le(r,t),fe(n))};return window.addEventListener(ce,e),()=>window.removeEventListener(ce,e)},Y=[n,p],t[30]=n,t[31]=p,t[32]=J,t[33]=Y):(J=t[32],Y=t[33]),(0,L.useEffect)(J,Y);let X,Z;t[34]!==n||t[35]!==p?(X=()=>{if(!p)return;let e=h.current;if(!e)return;let t=ue(n);if(t){if(t.kind===`outline`){Le(e,t.detail);return}Re(e,t.detail)}},Z=[n,p],t[34]=n,t[35]=p,t[36]=X,t[37]=Z):(X=t[36],Z=t[37]),(0,L.useEffect)(X,Z);let Q;return t[38]===Symbol.for(`react.memo_cache_sentinel`)?(Q=(0,Fe.jsx)(`div`,{ref:m,className:`source-editor h-full pb-3`}),t[38]=Q):Q=t[38],Q}function Ve(){return{top:Ie}}function He(){return s()}export{Be as SourceEditor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,i as n,o as r,t as i}from"./compiler-runtime-Cs91PcD2.js";import{Mt as a,
|
|
1
|
+
import{o as e}from"./chunk-CFjPhJqf.js";import{a as t,i as n,o as r,t as i}from"./compiler-runtime-Cs91PcD2.js";import{Mt as a,ci as o}from"./dist-xnhTeErX.js";import{l as s,t as c}from"./button-CNAPefQE.js";import{t as l}from"./trash-2-C957VvQL.js";import{n as u,r as d}from"./dist-QyEeuecv.js";var f=i(),p=2,m=1,h=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;(this._terminal.rows!==e.rows||this._terminal.cols!==e.cols)&&(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core._renderService.dimensions;if(e.css.cell.width===0||e.css.cell.height===0)return;let t=this._terminal.options.scrollback===0?0:this._terminal.options.overviewRuler?.width||14,n=window.getComputedStyle(this._terminal.element.parentElement),r=parseInt(n.getPropertyValue(`height`)),i=Math.max(0,parseInt(n.getPropertyValue(`width`))),a=window.getComputedStyle(this._terminal.element),o={top:parseInt(a.getPropertyValue(`padding-top`)),bottom:parseInt(a.getPropertyValue(`padding-bottom`)),right:parseInt(a.getPropertyValue(`padding-right`)),left:parseInt(a.getPropertyValue(`padding-left`))},s=o.top+o.bottom,c=o.right+o.left,l=r-s,u=i-c-t;return{cols:Math.max(p,Math.floor(u/e.css.cell.width)),rows:Math.max(m,Math.floor(l/e.css.cell.height))}}},g=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],_=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],v;function y(e,t){let n=0,r=t.length-1,i;if(e<t[0][0]||e>t[r][1])return!1;for(;r>=n;)if(i=n+r>>1,e>t[i][1])n=i+1;else if(e<t[i][0])r=i-1;else return!0;return!1}var b=class{constructor(){if(this.version=`6`,!v){v=new Uint8Array(65536),v.fill(1),v[0]=0,v.fill(0,1,32),v.fill(0,127,160),v.fill(2,4352,4448),v[9001]=2,v[9002]=2,v.fill(2,11904,42192),v[12351]=1,v.fill(2,44032,55204),v.fill(2,63744,64256),v.fill(2,65040,65050),v.fill(2,65072,65136),v.fill(2,65280,65377),v.fill(2,65504,65511);for(let e=0;e<g.length;++e)v.fill(0,g[e][0],g[e][1]+1)}}wcwidth(e){return e<32?0:e<127?1:e<65536?v[e]:y(e,_)?0:e>=131072&&e<=196605||e>=196608&&e<=262141?2:1}charProperties(e,t){let n=this.wcwidth(e),r=n===0&&t!==0;if(r){let e=He.extractWidth(t);e===0?r=!1:e>n&&(n=e)}return He.createPropertyValue(0,n,r)}},x=new class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?te.isErrorNoTelemetry(e)?new te(e.message+`
|
|
2
2
|
|
|
3
3
|
`+e.stack):Error(e.message+`
|
|
4
4
|
|