@opensumi/cli-engine 3.9.1-next-1748939097.0 → 3.9.1-next-1748943529.0

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.
@@ -32378,7 +32378,7 @@ The rules section has a number of possible rules/memories/context that you shoul
32378
32378
  ${b}
32379
32379
  </user_specific_rule>
32380
32380
 
32381
- </rules>`;return[T,w]}serializeAttachedRules(b=[]){if(b.length===0){const T=this.rulesService.projectRules.filter(O=>O.description),w=this.rulesService.projectRules.filter(O=>O.alwaysApply),I=this.rulesService.projectRules.filter(O=>O.globs),R=this.attachedFiles.map(O=>O.uri.toString()),P=this.attachedFolders.map(O=>O.uri.toString());if(I.length>0)for(const O of I){let M=[];(0,E.isString)(O.globs)?M=O.globs.split(","):M=O.globs||[],M=M.map(L=>{const B=L.trim();return B.startsWith("**")?B:`**/${B}`}),[...M.map(L=>(0,p.parseGlob)(L))].some(L=>R.some(B=>L(B))||P.some(B=>L(B)))&&b.push(O)}if(T.length>0&&b.push(...T),w.length>0&&b.push(...w),b.length===0)return[]}const A=`
32381
+ </rules>`;return[T,w]}findApplicableRules(b){const A=this.rulesService.projectRules.filter(w=>!b.some(I=>I.path===w.path)),S=A.filter(w=>w.description),D=A.filter(w=>w.alwaysApply);return[...this.findFileMatchingRules(A),...S,...D]}findFileMatchingRules(b){const A=b.filter(T=>T.globs),S=this.attachedFiles.map(T=>T.uri.toString()),D=this.attachedFolders.map(T=>T.uri.toString());return A.filter(T=>{let w=T.globs;return(0,E.isString)(w)?w=this.normalizeGlobs(w.split(",")):w=this.normalizeGlobs(w||[]),w.map(R=>(0,p.parseGlob)(R)).some(R=>S.some(P=>R(P))||D.some(P=>R(P)))})}normalizeGlobs(b){return((0,E.isString)(b)?b.split(","):b||[]).map(S=>{const D=S.trim();return D.startsWith("**")?D:`**/${D}`})}serializeAttachedRules(b=[]){if(b=this.findApplicableRules(b),b.length===0)return[];const A=`
32382
32382
  <rules_context>
32383
32383
 
32384
32384
  Rules are extra documentation provided by the user to help the AI understand the codebase.
@@ -32565,7 +32565,7 @@ Adhere to these rules:
32565
32565
  `?g.DefaultEndOfLine.CRLF:g.DefaultEndOfLine.LF,{textBuffer:O,disposable:M}=(0,a.createTextBuffer)(I,P),k=h.ModelService._computeEdits(R,O);R.pushEditOperations([],k,()=>[]),M.dispose(),(T=this.node)===null||T===void 0||T.layout()}onError(S){var D;(D=this.node)===null||D===void 0||D.layout()}onAbort(){var S;(S=this.node)===null||S===void 0||S.layout()}onEnd(){var S;(S=this.node)===null||S===void 0||S.layout()}};t.SideBySideInlineDiffWidget=y,y.AI_DIFF_WIDGET_ID="AI-DIFF-WIDGET",t.SideBySideInlineDiffWidget=y=n=r.__decorate([(0,o.Injectable)({multiple:!0})],y);let b=class extends d{listenNode(S){S.addDispose(S.onDidEditChange(()=>this.layout())),S.addDispose(S.onPartialEditWidgetListChange(T=>{var w;T.every(I=>I.isHidden)&&(this.dispose(),(w=this.inlineContentWidget)===null||w===void 0||w.dispose())}));const D=S.onDispose(()=>{this.dispose(),D.dispose()});this.addDispose(S)}createNode(S){let D;return S?D=this.injector.get(E.ReverseInlineStreamDiffHandler,[this.monacoEditor]):D=this.injector.get(E.InlineStreamDiffHandler,[this.monacoEditor]),D.initialize(this.selection),this.listenNode(D),D}getPosition(){var S;const D=(S=this.node)===null||S===void 0?void 0:S.getZone();return D?v.Position.lift({lineNumber:D.startLineNumber,column:1}):v.Position.lift({lineNumber:1,column:1})}handleAction(S){var D,T;switch(S){case c.EResultKind.ACCEPT:(D=this.node)===null||D===void 0||D.acceptAll();break;case c.EResultKind.DISCARD:case c.EResultKind.REGENERATE:(T=this.node)===null||T===void 0||T.rejectAll();break;default:break}}onLineCount(){return l.Disposable.NULL}layout(){var S,D,T;(S=this.inlineContentWidget)===null||S===void 0||S.setPositionPreference([m.ContentWidgetPositionPreference.ABOVE,m.ContentWidgetPositionPreference.BELOW]),super.layout();const w=this.getPosition();if(w&&this.inlineContentWidget){const I=(D=this.node)===null||D===void 0?void 0:D.livePreviewDiffDecorationModel.getRemovedWidgets();if(I?.length){const R=w.lineNumber,P=I[0];if(P)if(((T=P.getLastPosition())===null||T===void 0?void 0:T.lineNumber)<=R){const M=this.inlineContentWidget.getLineHeight(),k=P.height+1;this.inlineContentWidget.setOffsetTop(-M*k-4)}else this.inlineContentWidget.setOffsetTop(0)}else this.inlineContentWidget.setOffsetTop(0)}}render(){var S,D;(S=this.inlineContentWidget)===null||S===void 0||S.show(),(D=this.node)===null||D===void 0||D.rateRenderEditController()}hide(){var S,D;(S=this.inlineContentWidget)===null||S===void 0||S.hide(),(D=this.node)===null||D===void 0||D.hide()}resume(){var S,D;(S=this.inlineContentWidget)===null||S===void 0||S.show(),(D=this.node)===null||D===void 0||D.resume()}onData(S){var D;const{message:T}=S;(D=this.node)===null||D===void 0||D.addLinesToDiff(this.formatIndentation(T))}onAbort(){var S,D;const T=(S=this.node)===null||S===void 0?void 0:S.recompute(E.EComputerMode.default);T&&(T.activeLine=0,T.pendingRange=new s.LineRange(0,0),(D=this.node)===null||D===void 0||D.finallyRender(T))}onEnd(){var S,D;const T=(S=this.node)===null||S===void 0?void 0:S.recompute(E.EComputerMode.legacy);T&&((D=this.node)===null||D===void 0||D.pushRateFinallyDiffStack(T))}getValue(){var S;return((S=this.node)===null||S===void 0?void 0:S.getVirtualModelValue())||""}getOriginValue(){var S;return((S=this.node)===null||S===void 0?void 0:S.getOriginModelValue())||""}setValue(S){var D,T;const w=(D=this.node)===null||D===void 0?void 0:D.recompute(E.EComputerMode.legacy,this.formatIndentation(S));w&&((T=this.node)===null||T===void 0||T.finallyRender(w))}revealFirstDiff(){var S;(S=this.node)===null||S===void 0||S.revealFirstDiff()}};t.LiveInlineDiffPreviewer=b,t.LiveInlineDiffPreviewer=b=r.__decorate([(0,o.Injectable)({multiple:!0})],b)},37679:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineDiffWidget=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(43144),l=n.__importDefault(e(25873)),_=e(76003),v=e(41869),m=n.__importStar(e(20868)),p=e(87822),s=e(34819),g=e(16781),a=n.__importDefault(e(69790)),h={fixedOverflowWidgets:!0,readOnly:!1,enableSplitViewResizing:!0,ignoreTrimWhitespace:!0,renderSideBySide:!0,lineNumbers:"on",glyphMargin:!0,scrollbar:{useShadows:!1,alwaysConsumeMouseWheel:!1,vertical:"hidden"},scrollBeyondLastLine:!1,renderMarginRevertIcon:!1,renderOverviewRuler:!1,rulers:void 0,overviewRulerBorder:void 0,overviewRulerLanes:0,padding:{top:0,bottom:0},folding:!1,diffCodeLens:!1,stickyScroll:{enabled:!1},minimap:{enabled:!1},automaticLayout:!0,renderIndicators:!1,inDiffEditor:!0},u=r.default.memo(E=>{const{range:f,onMaxLineCount:d,editor:y,onReady:b}=E,A=(0,v.useInjectable)(v.MonacoService),S=(0,r.useRef)(null);return(0,r.useEffect)(()=>{if(!f)return;const D=y.getModel();if(!D)return;const T=D.getValueInRange(f),w=A.createDiffEditor(S.current,{...h,lineDecorationsWidth:y.getLayoutInfo().decorationsWidth,lineNumbersMinChars:y.getOption(m.editor.EditorOption.lineNumbersMinChars)}),I=g.StandaloneServices.get(p.IModelService),R={languageId:D.getLanguageId(),onDidChange:v.Event.None},P=I.createModel(T,R,m.Uri.from({scheme:v.Schemes.inMemory,path:"inline-diff-widget/"+(0,v.randomString)(8)}),!0),O=I.createModel("",R,m.Uri.from({scheme:v.Schemes.inMemory,path:"inline-diff-widget/"+(0,v.randomString)(8)}),!0);w.setModel({original:P,modified:O}),w.revealLine(f.startLineNumber,m.editor.ScrollType.Immediate);const M=()=>{if(d){const k=P.getLineCount(),F=O.getLineCount();d(Math.max(k,F)+1)}};return b&&b({getModifiedModel:()=>O,getOriginModel:()=>P,layout:M}),M(),()=>{w&&w.dispose()}},[f,y]),r.default.createElement("div",{ref:S,className:a.default.diff_editor_widget})});let c=class extends s.ZoneWidget{setPreviewerOptions(f){this.previewerOptions=f}_fillContainer(f){this.setCssClass("inline-diff-widget"),this.root=l.default.createRoot(f);let d=null;if(this._resolveResultWidget)if(f.parentNode){const y=document.createElement("div");requestAnimationFrame(()=>{y.className=a.default.ai_diff_editor_resolve_result_widget;const b=this.editor.getLayoutInfo();y.style.width=`${b.contentWidth}px`,y.style.left=`${b.contentLeft}px`}),f.parentNode.appendChild(y),d=(0,o.createPortal)(this._resolveResultWidget,y),this.resultContainer=y}else throw new Error("[impossible path] container.parentNode is null");this.root.render(r.default.createElement(v.ConfigProvider,{value:this.configContext},r.default.createElement("div",{className:a.default.ai_diff_editor_container},r.default.createElement(u,{range:this.range,editor:this.editor,onMaxLineCount:y=>{y&&(this._relayout(y),this._onMaxLineCount.fire(y))},onReady:y=>{this.diffWidgetHandler=y,this._onReady.fire()}})),d))}computeResultWidgetWidth(){const f=this.editor.getLayoutInfo();return f.contentWidth+f.contentLeft}_onWidth(f){super._onWidth(f),requestAnimationFrame(()=>{this.resultContainer&&(this.resultContainer.style.width=`${this.computeResultWidgetWidth()}px`)})}getModifiedModel(){var f;return(f=this.diffWidgetHandler)===null||f===void 0?void 0:f.getModifiedModel()}getOriginModel(){var f;return(f=this.diffWidgetHandler)===null||f===void 0?void 0:f.getOriginModel()}layout(){var f;return(f=this.diffWidgetHandler)===null||f===void 0?void 0:f.layout()}constructor(f,d){super(d.editor,{showArrow:!1,showFrame:!1,arrowColor:void 0,frameColor:void 0,keepEditorSelection:!0,showInHiddenAreas:!0}),this.id=f,this._onMaxLineCount=new v.Emitter,this.onMaxLineCount=this._onMaxLineCount.event,this._onReady=new v.Emitter,this.onReady=this._onReady.event,this.diffWidgetHandler=null,this.resultContainer=null,this._resolveResultWidget=null;const{selection:y,hiddenArea:b,editor:A}=d;this.range=y,this.hiddenArea=b||y,A.setHiddenAreas([this.hiddenArea],this.id)}revealRange(f,d){}setContainerStyle(f){var d;const y=Object.keys(f);for(const b of y)Object.prototype.hasOwnProperty.call((d=this.container)===null||d===void 0?void 0:d.style,b)&&(this.container.style[b]=f[b])}addClassName(f){return this.setCssClass(f),this}dispose(){this.hide(),super.dispose()}hide(){this.editor.setHiddenAreas([],this.id),super.hide(),this.root&&this.root.unmount()}showByLine(f,d=20){this.editor._modelData.viewModel.coordinatesConverter.modelPositionIsVisible=()=>!0,super.show({startLineNumber:f,startColumn:1,endLineNumber:f,endColumn:Number.MAX_SAFE_INTEGER},d)}setResolveResultWidget(f){this._resolveResultWidget=f}};t.InlineDiffWidget=c,n.__decorate([(0,_.Autowired)(v.AppConfig),n.__metadata("design:type",Object)],c.prototype,"configContext",void 0),t.InlineDiffWidget=c=n.__decorate([(0,_.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[String,Object])],c)},38890:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineDiffController=void 0;const n=e(41869),r=e(43718),o=e(28423),l=e(99906),_=e(83854),v=e(40111),m=e(49444);class p extends l.BaseAIMonacoEditorController{constructor(){super(...arguments),this._onMaxLineCount=new r.Emitter,this.onMaxLineCount=this._onMaxLineCount.event}static get(g){return g.getContribution(p.ID)}get preferenceService(){return this.injector.get(n.PreferenceService)}mount(){return this.previewerStore=new Map,this.currentPreviewer=(0,o.observableValue)(this,void 0),this.modelChangeObs=(0,o.observableFromEvent)(this,this.monacoEditor.onDidChangeModel,()=>this.monacoEditor.getModel()),this.featureDisposable.addDispose((0,o.autorun)(g=>{const a=this.modelChangeObs.read(g);if(!a)return;const h=a.id,u=this.currentPreviewer.get();u&&u.modelId!==h&&!u.disposed&&u.hide();const c=this.previewerStore.get(a.id);(0,o.transaction)(E=>{c&&c.modelId===h?(this.currentPreviewer.set(c,E),c.resume()):this.currentPreviewer.set(void 0,E)})})),this.featureDisposable}getPreviewer(){return this.currentPreviewer.get()}renderDiff(g,a){var h;g&&(g.onData(a),((h=this.modelChangeObs.get())===null||h===void 0?void 0:h.id)===g.modelId&&g.render())}showPreviewerByStream(g,a){const{crossSelection:h,chatResponse:u}=a,c=new r.Disposable,E=this.createDiffPreviewer(g,h,a.previewerOptions),f=()=>{E.layout(),c.dispose()},d=new r.DisposableCollection;return c.addDispose(E.onReady(()=>{if(v.InlineChatController.is(u)){const y=u;d.pushAll([y.onData(b=>{r.ReplyResponse.is(b)&&this.renderDiff(E,b)}),y.onError(b=>{E.onError(b),f()}),y.onAbort(()=>{E.onAbort(),f()}),y.onEnd(()=>{E.onEnd(),f()})]),y.listen()}else E.setValue(u.message),f()})),E.onDispose(()=>{d.dispose()}),c.addDispose(d),E.layout(),E}createDiffPreviewer(g,a,h){const u=this.preferenceService.getValid(r.AINativeSettingSectionsId.InlineDiffPreviewMode,_.EInlineDiffPreviewMode.inlineLive);let c;return u===_.EInlineDiffPreviewMode.sideBySide?c=this.injector.get(m.SideBySideInlineDiffWidget,[g]):c=this.injector.get(m.LiveInlineDiffPreviewer,[g]),c.create(a,h),c.show(a.startLineNumber-1,a.endLineNumber-a.startLineNumber+2),c.addDispose(c.onLineCount(E=>this._onMaxLineCount.fire(E))),c.addDispose(r.Disposable.create(()=>{this.previewerStore.delete(c.modelId)})),(0,o.transaction)(E=>{this.currentPreviewer.set(c,E),this.previewerStore.set(c.modelId,c)}),c}handleAction(g){const a=this.getPreviewer();a&&a.handleAction(g)}getModifyContent(){const g=this.getPreviewer();if(g)return g.getValue()}getOriginContent(){const g=this.getPreviewer();if(g)return g.getOriginValue()}revealFirstDiff(){const g=this.getPreviewer();g&&g.revealFirstDiff()}}t.InlineDiffController=p,p.ID="editor.contrib.ai.inline.diff"},51347:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineDiffService=void 0;const n=e(85608),r=e(76003),o=e(70392);let l=class{constructor(){this._partialEventEmitter=new o.Emitter,this.onPartialEdit=this._partialEventEmitter.event}firePartialEdit(v){this._partialEventEmitter.fire(v)}};t.InlineDiffService=l,t.InlineDiffService=l=n.__decorate([(0,r.Injectable)()],l)},53182:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineHintLineDecoration=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(57925),_=e(43718),v=e(20868),m=e(60304),p=e(52416),s=e(75189),g="inline_hint_description",a="inline_hint_description_key";let h=class extends _.Disposable{constructor(c){super(),this.monacoEditor=c,this.colorRegister=(0,p.getColorRegistry)(),m.StandaloneServices.get(s.ICodeEditorService).registerDecorationType(g,a,{isWholeLine:!0}),this.addDispose(_.Disposable.create(()=>{this.monacoEditor.setDecorationsByType(g,a,[])}))}getSequenceKeyString(c="+"){var E;const d=(E=this.keybindingRegistry.getKeybindingsForCommand(l.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id)[0])===null||E===void 0?void 0:E.resolved;return d?this.keybindingRegistry.acceleratorForSequence(d,c):""}async show(c){var E;const f=(0,_.formatLocalize)("aiNative.inline.hint.widget.placeholder",this.getSequenceKeyString("")),d=await this.themeService.getCurrentTheme(),y=this.colorRegister.resolveDefaultColor(p.inputPlaceholderForeground,d);this.monacoEditor.setDecorationsByType(g,a,[{range:v.Range.fromPositions(c),renderOptions:{after:{contentText:f,opacity:"0.5",color:(E=y?.toString())!==null&&E!==void 0?E:"",padding:"0 0 0 12px",width:"max-content",fontFamily:"-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,sans-serif"}}}])}};t.InlineHintLineDecoration=h,n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],h.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(p.IThemeService),n.__metadata("design:type",Object)],h.prototype,"themeService",void 0),t.InlineHintLineDecoration=h=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object])],h)},77886:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineHintController=void 0;const n=e(85608),r=n.__importDefault(e(97331)),o=e(43718),l=n.__importStar(e(20868)),_=e(77659),v=e(99906),m=e(71863),p=e(19520),s=e(53182);class g extends v.BaseAIMonacoEditorController{static get(h){return h.getContribution(g.ID)}get inlineCompletionsService(){return this.injector.get(m.AICompletionsService)}mount(){return this.registerHintLineFeature(this.monacoEditor)}registerHintLineFeature(h){const u=new o.Disposable,c=this.injector.get(_.AINativeContextKey,[h.contextKeyService]),E=()=>{u.dispose()},f=y=>{const b=h.getModel();if(!b||y.lineNumber>b.getLineCount()||this.inlineCompletionsService.isVisibleCompletion)return;if(!b.getLineDecorations(y.lineNumber).some(D=>D.options.description===p.InlineInputPreviewDecorationID)){const D=this.injector.get(s.InlineHintLineDecoration,[h]),T=b.getLineContent(y.lineNumber);T?.trim()||D.show(y),c.inlineHintWidgetIsVisible.set(!0),u.addDispose(D.onDispose(()=>{c.inlineHintWidgetIsVisible.set(!1)})),u.addDispose(D)}},d=(0,r.default)(async y=>{E(),f(y)},100);return this.featureDisposable.addDispose(h.onDidChangeCursorPosition(y=>{d(y.position)})),this.featureDisposable.addDispose(h.onDidChangeModelContent(y=>{var b,A;d(new l.Position((b=y.changes[0])===null||b===void 0?void 0:b.range.endLineNumber,(A=y.changes[0])===null||A===void 0?void 0:A.range.endColumn))})),this.featureDisposable.addDispose(h.onDidFocusEditorWidget(()=>{const y=h.getPosition();y&&(E(),f(y))})),this.featureDisposable.addDispose(h.onDidBlurEditorWidget(()=>{E()})),this.featureDisposable.addDispose(this.inlineCompletionsService.onVisibleCompletion(y=>{y&&E()})),this.featureDisposable.addDispose(u),this.featureDisposable}}t.InlineHintController=g,g.ID="editor.contrib.ai.inline.hint"},32213:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineInputWidget=void 0;const n=e(85608),r=n.__importStar(e(14041)),o=e(76003),l=e(41869),_=e(89195),v=e(43718),m=e(90052),p=e(90614),s=e(31031),g=e(26664),a=n.__importDefault(e(13185)),h=c=>{const{defaultValue:E,onClose:f,onInteractiveInputSend:d,onLayoutChange:y,onChatStatus:b,onResultClick:A,onValueChange:S}=c,[D,T]=(0,r.useState)(s.EInlineChatStatus.READY),w=(0,l.useInjectable)(l.AINativeConfigService);(0,r.useEffect)(()=>{const k=new v.Disposable;return k.addDispose(b(F=>T(F))),()=>{k.dispose()}},[b]);const I=(0,r.useMemo)(()=>D===s.EInlineChatStatus.THINKING,[D]),R=(0,r.useMemo)(()=>D===s.EInlineChatStatus.DONE,[D]),P=(0,r.useMemo)(()=>D===s.EInlineChatStatus.ERROR,[D]),O=(0,r.useCallback)(()=>{f?.()},[f]),M=(0,r.useCallback)(k=>{d?.(k)},[d]);return P?null:R?r.default.createElement(p.InlineResultAction,{onResultClick:A}):r.default.createElement(_.AIAction,{loadingShowOperation:!0,onClose:O,loading:I,customOperationRender:r.default.createElement(_.InteractiveInput,{autoFocus:!0,defaultValue:E,onValueChange:S,onHeightChange:k=>y(k),size:"small",placeholder:(0,v.localize)("aiNative.inline.chat.input.placeholder.default"),width:w.inlineChat.inputWidth,disabled:I,onSend:M})})};let u=class extends g.AIInlineContentWidget{constructor(E,f){super(E),this.editor=E,this.defaultValue=f,this.allowEditorOverflow=!0,this.positionPreference=[m.ContentWidgetPositionPreference.ABOVE],this._onSend=new v.Emitter,this.onSend=this._onSend.event,this._onClose=new v.Emitter,this.onClose=this._onClose.event,this._onValueChange=new v.Emitter,this.onValueChange=this._onValueChange.event}dispose(){super.dispose(),this.inlineInputService.hide()}id(){return v.AIInlineInputChatContentWidgetId}renderView(){return r.default.createElement("div",{className:a.default.input_wrapper},r.default.createElement(h,{defaultValue:this.defaultValue,onClose:()=>this._onClose.fire(),onChatStatus:this.onStatusChange.bind(this),onLayoutChange:()=>{this.editor.layoutContentWidget(this)},onValueChange:E=>{this._onValueChange.fire(E)},onInteractiveInputSend:E=>{this.launchChatStatus(s.EInlineChatStatus.THINKING),this._onSend.fire(E)},onResultClick:E=>{this._onResultClick.fire(E)}}))}};t.InlineInputWidget=u,t.InlineInputWidget=u=n.__decorate([(0,o.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object,String])],u)},89060:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.InlineInputController=void 0;const r=e(85608),o=e(76003),l=e(43718),_=e(57517),v=r.__importStar(e(20868)),m=e(28423),p=e(75124),s=e(2261),g=e(52451),a=e(24347),h=e(77659),u=e(99906),c=e(77633),E=e(40111),f=e(31031),d=e(15989),y=e(19520),b=e(32213),A=r.__importDefault(e(13185)),S=e(74353),D=e(86443);let T=n=class extends u.BaseAIMonacoEditorController{static get(I){return I.getContribution(n.ID)}get inlineInputService(){return this.injector.get(S.InlineInputService)}get aiReporter(){return this.injector.get(l.IAIReporter)}get eventBus(){return this.injector.get(l.IEventBus)}get messageService(){return this.injector.get(p.MessageService)}mount(){return this.inputDisposable=new l.Disposable,this.aiNativeContextKey=this.injector.get(h.AINativeContextKey,[this.monacoEditor.contextKeyService]),this.inlineDiffController=d.InlineDiffController.get(this.monacoEditor),this.inputValue=(0,m.observableValue)(this,""),this.modelChangeObs=(0,m.observableFromEvent)(this,this.monacoEditor.onDidChangeModel,()=>this.monacoEditor.getModel()),this.inlineInputWidgetStore=new Map,this.featureDisposable.addDispose(this.eventBus.on(_.EditorGroupCloseEvent,I=>{var R;if(!this.aiNativeContextKey.inlineInputWidgetIsStreaming.get())return;const O=I.payload.resource.uri.toString();if(((R=this.monacoEditor.getModel())===null||R===void 0?void 0:R.uri.toString())===O){this.hideInput();const k=(0,l.localize)("aiNative.inline.chat.generating.canceled");k&&this.messageService.info(k)}})),this.featureDisposable.addDispose(this.inlineInputService.onHidden(()=>{this.hideInput()})),this.featureDisposable.addDispose(this.inlineInputService.onInteractiveInputVisibleInPosition(async I=>{I?this.showInputInEmptyLine(I,this.monacoEditor):setTimeout(()=>this.monacoEditor.focus(),0)})),this.featureDisposable.addDispose(this.inlineInputService.onInteractiveInputVisibleInSelection(I=>{I&&this.showInputInSelection(I,this.monacoEditor)})),this.featureDisposable.addDispose(this.inputDisposable),this.featureDisposable}cancelToken(){super.cancelToken(),this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1)}hideInput(){this.inlineInputWidgetStore.delete(this.monacoEditor.getModel().id),this.inputDisposable.dispose()}async showInputInEmptyLine(I,R,P){const O=R.getModel();if(!O)return;const M=R.getSelection();if(M&&!M.isEmpty())return;this.inputValue.set(P||"",void 0),this.inlineInputWidgetStore.set(O.id,new D.InlineInputWidgetStoreInEmptyLine(I,P)),this.inputDisposable&&(this.inputDisposable.dispose(),this.inputDisposable=new l.Disposable);const k=R.createDecorationsCollection(),F=this.injector.get(b.InlineInputWidget,[R,this.inputValue.get()]);k.append([{range:v.Range.fromPositions(I),options:a.ModelDecorationOptions.register({description:y.InlineInputPreviewDecorationID,isWholeLine:!0,className:A.default.input_decoration_readable_container,inlineClassName:A.default.inline_chat_inserted_range})}]);const L=k.getRange(0);let B;L&&(B=g.LineRange.fromRange(L),F.show({position:L.getStartPosition()}),this.aiNativeContextKey.inlineInputWidgetIsVisible.set(!0)),this.inputDisposable.addDispose(F.onDispose(()=>{this.cancelToken(),k.clear(),this.aiNativeContextKey.inlineInputWidgetIsVisible.set(!1)})),this.inputDisposable.addDispose(F.onValueChange(U=>{this.inputValue.set(U,void 0);const W=this.inlineInputWidgetStore.get(O.id);W instanceof D.InlineInputWidgetStoreInEmptyLine&&W.setValue(U)})),this.inputDisposable.addDispose(F.onResultClick(async U=>{const W=()=>{const j=k.getRange(0);O.pushStackElement(),O.pushEditOperations(null,[s.EditOperation.delete(j)],()=>null),O.pushStackElement()};switch(U){case f.EResultKind.ACCEPT:this.hideInput();break;case f.EResultKind.DISCARD:W(),this.hideInput();break;case f.EResultKind.REGENERATE:W(),requestAnimationFrame(()=>{const Q=k.getRange(0).getStartPosition();this.showInputInEmptyLine(Q,R,this.inputValue.get())});break;default:break}})),this.inputDisposable.addDispose(l.Event.debounce(k.onDidChange.bind(k),()=>{},l.FRAME_THREE)(()=>{if(!k.getRange(0))return;const U=k.getRange(0),W=g.LineRange.fromRange(U);B.equals(W)||(F.setOptions({position:U.getStartPosition()}),F.layoutContentWidget()),B=W})),this.inputDisposable.addDispose(F.onClose(()=>{this.aiNativeContextKey.inlineInputWidgetIsStreaming.get()?this.cancelToken():this.hideInput()})),this.inputDisposable.addDispose(F.onSend(async U=>{R.focus();const W=this.inlineInputService.getInteractiveInputHandler(),j=R.getModel();if(!W||!j)return;F.launchChatStatus(f.EInlineChatStatus.THINKING);const Q=await this.inlineInputService.getInteractiveInputStrategyHandler()(R,U),G=v.Selection.fromPositions(I);if(Q===c.ERunStrategy.EXECUTE&&W.execute){W.execute(R,G,U,this.token),F.launchChatStatus(f.EInlineChatStatus.DONE),this.hideInput();return}if(Q===c.ERunStrategy.PREVIEW&&W.providePreviewStrategy){const Z=await W.providePreviewStrategy(R,G,U,this.token);if(l.CancelResponse.is(Z)){F.launchChatStatus(f.EInlineChatStatus.READY),this.hideInput();return}if(E.InlineChatController.is(Z)){const $=Z;let V;const H=this.registerDispose(new l.RunOnceScheduler(()=>{const K=k.getRange(0);K&&V&&j.pushEditOperations(null,[s.EditOperation.replace(K,V)],()=>null)},l.FRAME_FIVE));this.inputDisposable.addDispose([$.onData(async K=>{l.ReplyResponse.is(K)&&(this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!0),V=K.message,H.isScheduled()||H.schedule())}),$.onError(K=>{this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1),F.launchChatStatus(f.EInlineChatStatus.READY)}),$.onAbort(()=>{this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1),j.pushStackElement(),F.launchChatStatus(f.EInlineChatStatus.DONE)}),$.onEnd(()=>{this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1),j.pushStackElement(),F.launchChatStatus(f.EInlineChatStatus.DONE)})]),$.listen()}}})),this.inputDisposable.addDispose(F)}async showInputInSelection(I,R,P){this.inputDisposable&&(this.inputDisposable.dispose(),this.inputDisposable=new l.Disposable);const O=R.getModel();if(!O)return;const M=R.createDecorationsCollection();M.set([{range:v.Range.fromPositions({lineNumber:I.startLineNumber,column:1},{lineNumber:I.endLineNumber,column:R.getModel().getLineMaxColumn(I.endLineNumber)}),options:a.ModelDecorationOptions.register({description:y.InlineInputPreviewDecorationID,isWholeLine:!0,className:A.default.input_decoration_pending_container})}]);const k=v.Selection.fromRange(M.getRange(0),I.getDirection());this.inputValue.set(P||"",void 0),this.inlineInputWidgetStore.set(O.id,new D.InlineInputWidgetStoreInSelection(k,P));const F=this.injector.get(b.InlineInputWidget,[R,this.inputValue.get()]);F.show({selection:k}),this.aiNativeContextKey.inlineInputWidgetIsVisible.set(!0),this.inputDisposable.addDispose(F.onDispose(()=>{this.cancelToken(),M.clear(),this.aiNativeContextKey.inlineInputWidgetIsVisible.set(!1)})),this.inputDisposable.addDispose(F.onValueChange(L=>{this.inputValue.set(L,void 0);const B=this.inlineInputWidgetStore.get(O.id);B instanceof D.InlineInputWidgetStoreInSelection&&B.setValue(L)})),this.inputDisposable.addDispose(F.onClose(()=>{this.aiNativeContextKey.inlineInputWidgetIsStreaming.get()?this.cancelToken():this.hideInput()})),this.inputDisposable.addDispose(F.onSend(async L=>{R.focus();const B=this.inlineInputService.getInteractiveInputHandler();if(!B)return;if(F.launchChatStatus(f.EInlineChatStatus.THINKING),await this.inlineInputService.getInteractiveInputStrategyHandler()(R,L)===c.ERunStrategy.PREVIEW&&B.providePreviewStrategy){const W=await B.providePreviewStrategy(R,k,L,this.token);if(l.CancelResponse.is(W)){M.clear(),this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1),F.launchChatStatus(f.EInlineChatStatus.DONE);return}if(E.InlineChatController.is(W)){const j=W;this.inputDisposable.addDispose([j.onData(G=>{M.clear(),l.ReplyResponse.is(G)&&this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!0)}),j.onError(G=>{this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1),F.launchChatStatus(f.EInlineChatStatus.READY)}),j.onAbort(()=>{M.clear(),this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1),F.launchChatStatus(f.EInlineChatStatus.DONE)}),j.onEnd(()=>{M.clear(),this.aiNativeContextKey.inlineInputWidgetIsStreaming.set(!1),F.launchChatStatus(f.EInlineChatStatus.DONE)})]),this.inlineDiffController.showPreviewerByStream(R,{crossSelection:k,chatResponse:j}).mountWidget(F),j.listen()}}else M.clear(),F.launchChatStatus(f.EInlineChatStatus.READY),this.hideInput()})),this.inputDisposable.addDispose(F.onResultClick(L=>{this.inlineDiffController.handleAction(L),this.hideInput(),L===f.EResultKind.REGENERATE&&requestAnimationFrame(()=>{this.showInputInSelection(k,R,this.inputValue.get())})})),this.inputDisposable.addDispose(F)}};t.InlineInputController=T,T.ID="editor.contrib.ai.inline.input",t.InlineInputController=T=n=r.__decorate([(0,o.Injectable)()],T)},74353:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineInputService=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(57925),_=e(43718),v=e(20868),m=e(85679),p=e(77633),s=e(86443);let g=class extends _.Disposable{constructor(){super(...arguments),this.interactiveInputModel=new s.InteractiveInputModel,this._onInteractiveInputVisibleInPosition=new _.Emitter,this.onInteractiveInputVisibleInPosition=this._onInteractiveInputVisibleInPosition.event,this._onInteractiveInputVisibleInSelection=new _.Emitter,this.onInteractiveInputVisibleInSelection=this._onInteractiveInputVisibleInSelection.event,this._onHidden=new _.Emitter,this.onHidden=this._onHidden.event}visibleByPosition(h){this._onInteractiveInputVisibleInPosition.fire(h)}visibleBySelection(h){this._onInteractiveInputVisibleInSelection.fire(h)}async visibleByNearestCodeBlock(h,u){const c=await this.findNearestCodeBlockWithPosition(h,u);c&&this.visibleBySelection(c)}hide(){this._onHidden.fire()}getInteractiveInputHandler(){return this.interactiveInputModel.handler()}getInteractiveInputStrategyHandler(){return this.interactiveInputModel.strategyHandler()}async findNearestCodeBlockWithPosition(h,u){const c=u.getModel(),E=c?.getOffsetAt(h),f=c?.getLanguageId(),d=this.languageParserService.createParser(f),y=await d?.findNearestCodeBlockWithPosition(c?.getValue()||"",E);if(y)return new v.Selection(y.range.start.line+1,y.range.start.character,y.range.end.line+1,y.range.end.character)}getSequenceKeyString(){var h;const c=(h=this.keybindingRegistry.getKeybindingsForCommand(l.AI_INLINE_CHAT_INTERACTIVE_INPUT_VISIBLE.id)[0])===null||h===void 0?void 0:h.resolved;return c?this.keybindingRegistry.acceleratorForSequence(c,"+"):""}registerInlineInput(h,u){return this.interactiveInputModel.setHandler(u),h.handleStrategy?this.interactiveInputModel.setStrategyHandler(h.handleStrategy):this.interactiveInputModel.setStrategyHandler(()=>h.strategy||p.ERunStrategy.EXECUTE),this.interactiveInputModel}};t.InlineInputService=g,n.__decorate([(0,r.Autowired)(o.KeybindingRegistry),n.__metadata("design:type",Object)],g.prototype,"keybindingRegistry",void 0),n.__decorate([(0,r.Autowired)(m.LanguageParserService),n.__metadata("design:type",m.LanguageParserService)],g.prototype,"languageParserService",void 0),t.InlineInputService=g=n.__decorate([(0,r.Injectable)()],g)},86443:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineInputWidgetStoreInSelection=t.InlineInputWidgetStoreInEmptyLine=t.InteractiveInputModel=void 0;const n=e(89195),r=e(43718);class o{setHandler(m){this._handler=m}handler(){return this._handler}setStrategyHandler(m){this._strategyHandler=m}strategyHandler(){return this._strategyHandler}dispose(){this._handler=void 0}}t.InteractiveInputModel=o,o.ID=`${n.InteractiveInput.displayName}:${(0,r.uuid)(4)}`;class l{constructor(m,p){this.position=m,this.value=p}getPosition(){return this.position}setPosition(m){this.position=m}getValue(){return this.value}setValue(m){this.value=m}}t.InlineInputWidgetStoreInEmptyLine=l;class _{constructor(m,p){this.selection=m,this.value=p}getSelection(){return this.selection}setSelection(m){this.selection=m}getValue(){return this.value}setValue(m){this.value=m}}t.InlineInputWidgetStoreInSelection=_},99136:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineStreamDiffComputer=void 0;const n=e(9514),r=e(52451),o=e(37348),l=e(44781),_=e(68450),v=e(56702),m=e(89216),p=e(10438),s=e(30861),g=e(46739),a=(u,c,E=_.InfiniteTimeout.instance)=>{if(!u.length||!c.length)return _.DiffAlgorithmResult.trivial(u,c);const f=new p.Array2D(2*u.length+1,c.length+1),d=new p.Array2D(2*u.length+1,c.length+1);for(let w=0;w<=c.length;w++)f.set(0,w,w),d.set(0,w,w>0);for(let w=0;w<=2*u.length;w++)f.set(w,0,Math.floor((w+1)/2)),d.set(w,0,!1);for(let w=1;w<=c.length;w++)for(let I=1;I<=2*u.length;I++){if(!E.isValid())return _.DiffAlgorithmResult.trivialTimedOut(u,c);if(I%2===0){const R=f.get(I,w-1)+1,P=f.get(I-1,w),O=R<P;f.set(I,w,O?R:P),d.set(I,w,O)}else{const R=f.get(I-1,w)+.4,P=u.getElement(Math.floor(I/2))===c.getElement(w-1)?f.get(I-1,w-1):Number.MAX_VALUE,O=P<R;f.set(I,w,O?P:R),d.set(I,w,O)}}let y=Number.MAX_VALUE,b=-1;for(let w=0;w<=2*u.length;w++){const I=f.get(w,c.length);I<y&&(y=I,b=w)}const A=[];let S=b,D=c.length;S<=2*u.length-2&&A.push(new _.SequenceDiff(new o.OffsetRange(Math.floor((S+1)/2),u.length),new o.OffsetRange(D,D)));let T;for(;S>=0&&D>=0;)d.get(S,D)?(S%2===0?T===void 0&&(T={originalLineIndex:Math.floor(S/2),modifiedLineIndex:D}):(T!==void 0&&((T.originalLineIndex!==Math.floor(S/2)+1||T.modifiedLineIndex!==D)&&A.push(new _.SequenceDiff(new o.OffsetRange(Math.floor(S/2)+1,T.originalLineIndex),new o.OffsetRange(D,T.modifiedLineIndex))),T=void 0),S-=1),D-=1):(T=T||{originalLineIndex:Math.floor((S+1)/2),modifiedLineIndex:D},S-=1);return T!==void 0&&((T.originalLineIndex!==Math.floor(S/2)+1||T.modifiedLineIndex!==D)&&A.push(new _.SequenceDiff(new o.OffsetRange(Math.floor(S/2)+1,T.originalLineIndex),new o.OffsetRange(D,T.modifiedLineIndex))),T=void 0),A.reverse(),new _.DiffAlgorithmResult(A,!1)};class h extends v.DefaultLinesDiffComputer{computeDiff(c,E,f){if(c.length<=1&&(0,n.equals)(c,E,(M,k)=>M===k))return new s.LinesDiff([],[],!1);if(c.length===1&&c[0].length===0||E.length===1&&E[0].length===0)return new s.LinesDiff([new g.DetailedLineRangeMapping(new r.LineRange(1,c.length+1),new r.LineRange(1,E.length+1),[new g.RangeMapping(new l.Range(1,1,c.length,c[c.length-1].length+1),new l.Range(1,1,E.length,E[E.length-1].length+1))])],[],!1);const d=f.maxComputationTimeMs===0?_.InfiniteTimeout.instance:new _.DateTimeout(f.maxComputationTimeMs),y=new Map;function b(M){let k=y.get(M);return k===void 0&&(k=y.size,y.set(M,k)),k}const A=c.length*E.length<1e6&&f.onlyCareAboutPrefixOfOriginalLines,S=c.map(M=>b(A?M:M.trim())),D=E.map(M=>b(A?M:M.trim())),T=new m.LineSequence(S,c),w=new m.LineSequence(D,E),I=c.every(M=>M.trim().length===0);let R;A?I?R=_.DiffAlgorithmResult.trivial(T,w):R=a(T,w,d):T.length+w.length<1700?R=this.dynamicProgrammingDiffing.compute(T,w,d,(M,k)=>c[M]===E[k]?E[k].length===0?.1:1+Math.log(1+E[k].length):.99):R=this.myersDiffingAlgorithm.compute(T,w,d);const P=R.diffs,O=R.hitTimeout;if(A){const M=P.map(k=>new g.DetailedLineRangeMapping(new r.LineRange(k.seq1Range.start+1,k.seq1Range.endExclusive+1),new r.LineRange(k.seq2Range.start+1,k.seq2Range.endExclusive+1),[]));return new s.LinesDiff(M,[],O)}return super.computeDiff(c,E,f)}}t.InlineStreamDiffComputer=h},33062:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReverseInlineStreamDiffHandler=t.InlineStreamDiffHandler=t.BaseInlineStreamDiffHandler=t.EComputerMode=void 0;const n=e(85608),r=e(76003),o=e(41869),l=e(20868),_=e(60304),v=e(28423),m=e(52451),p=e(84968),s=e(46739),g=e(87822),a=e(99093),h=e(25539),u=e(99136),c=e(80715);var E;(function(A){A.legacy="legacy",A.default="default"})(E||(t.EComputerMode=E={}));const f=new u.InlineStreamDiffComputer;let d=class extends o.Disposable{get uri(){return this.savedModel.uri}constructor(S){super(),this.monacoEditor=S,this._onDidEditChange=this.registerDispose(new o.Emitter),this.onDidEditChange=this._onDidEditChange.event,this.onDiffFinishedEmitter=this.registerDispose(new o.Emitter),this.onDiffFinished=this.onDiffFinishedEmitter.event,this.undoRedoGroup=new h.UndoRedoGroup,this.finallyDiffModel=(0,v.observableValue)(this,void 0),this.currentEditLine=0,this.isEditing=!1;const D=_.StandaloneServices.get(g.IModelService),T=this.monacoEditor.getModel(),w=D.createModel("",null,o.Uri.from({scheme:o.Schemes.inMemory,path:"inline-stream-diff/"+(0,o.randomString)(8)}),!0);this.savedModel=T,this.virtualModel=w,this.livePreviewDiffDecorationModel=this.injector.get(c.LivePreviewDiffDecorationModel,[this.monacoEditor]),this.addDispose(this.livePreviewDiffDecorationModel),this.addDispose(this.virtualModel);const I=this.livePreviewDiffDecorationModel.onDispose(()=>{this.dispose(),I.dispose()})}setPreviewerOptions(S){this.previewerOptions=S,this.livePreviewDiffDecorationModel.setPreviewerOptions({partialEditWidgetOptions:{hideAcceptPartialEditWidget:S.hideAcceptPartialEditWidget},renderRemovedWidgetImmediately:S.renderRemovedWidgetImmediately})}getVirtualModelValue(){return this.virtualModel.getValue()}getOriginModelValue(){return this.rawSavedTextLines.join(`
32566
32566
  `)}get onPartialEditWidgetListChange(){return this.livePreviewDiffDecorationModel.onPartialEditWidgetListChange}computeDiff(S,D,T=E.default){const w=(T===E.default?f:p.linesDiffComputers.getLegacy()).computeDiff(S,D,{computeMoves:!1,maxComputationTimeMs:200,ignoreTrimWhitespace:!1,onlyCareAboutPrefixOfOriginalLines:!0});let I=w.changes;w.hitTimeout&&(I=[new s.DetailedLineRangeMapping(new m.LineRange(1,S.length+1),new m.LineRange(1,D.length+1),void 0)]);const R=[];let P=[];for(const F of I)if(F.modified.endLineNumberExclusive===D.length+1&&T===E.default){if(P=S.slice(F.original.startLineNumber-1,F.original.endLineNumberExclusive-1),F.modified.isEmpty)continue;R.push({removedTextLines:[],removedLinesOriginalRange:new m.LineRange(F.original.startLineNumber,F.original.startLineNumber),addedRange:F.modified,relativeInnerChanges:void 0})}else R.push({removedTextLines:S.slice(F.original.startLineNumber-1,F.original.endLineNumberExclusive-1),removedLinesOriginalRange:F.original,addedRange:F.modified,relativeInnerChanges:F.innerChanges?F.innerChanges.map(L=>({originalRange:L.originalRange.delta(-F.original.startLineNumber+1),modifiedRange:L.modifiedRange.delta(-F.modified.startLineNumber+1)})):void 0});const O=[...D,...P];let M=0,k=new m.LineRange(1,1);return P.length>0&&(M=D.length+1,k=new m.LineRange(D.length+1,D.length+1+P.length)),{changes:R,newFullRangeTextLines:O,activeLine:M,pendingRange:k}}calculateAddedDecorationCollectionState(S){const D=this.getZone();return S.changes.map(w=>{const I=w.addedRange,R={lineNumber:D.startLineNumber+I.startLineNumber-1,column:1},P={lineNumber:D.startLineNumber+I.endLineNumberExclusive-2,column:1};return{startPosition:R,endPosition:P,len:I.endLineNumberExclusive-I.startLineNumber}})}renderPartialEditWidgets(S){const D=this.calculateAddedDecorationCollectionState(S);this.livePreviewDiffDecorationModel.touchPartialEditWidgets(D.map(T=>T.startPosition.lineNumber))}renderAddedRangeDecoration(S){const D=this.calculateAddedDecorationCollectionState(S);this.livePreviewDiffDecorationModel.touchAddedRange(D)}renderRemovedRangeDecoration(S){const{changes:D}=S,T=this.getZone();let w=0;const I=[];for(const R of D){const{removedTextLines:P,removedLinesOriginalRange:O,addedRange:M}=R;P.length>0&&I.push({position:{column:1,lineNumber:T.startLineNumber+O.startLineNumber-2-w},textLines:P.map((k,F)=>{var L;return{text:k,lineTokens:((L=this.rawOriginTextLinesTokens)===null||L===void 0?void 0:L[O.startLineNumber-1+F])||a.LineTokens.createEmpty(k,{encodeLanguageId:()=>0,decodeLanguageId:()=>"plaintext"})}})}),w+=O.length-M.length}this.livePreviewDiffDecorationModel.touchRemovedWidget(I,()=>{this._onDidEditChange.fire()})}pushStackElement(){const S=this.livePreviewDiffDecorationModel.createEditStackElement(this.undoRedoGroup);S.attachModel(this.livePreviewDiffDecorationModel),S.registerUndo(D=>{D.dispose()})}renderDiffEdits(S){const{activeLine:D,newFullRangeTextLines:T,pendingRange:w}=S,I=this.getZone(),R=this.getOriginalModel(),P=R.getEOL(),O=I.startLineNumber<I.endLineNumberExclusive?new l.Range(I.startLineNumber,1,I.endLineNumberExclusive-1,R.getLineMaxColumn(I.endLineNumberExclusive-1)):new l.Range(I.startLineNumber,1,I.startLineNumber,1),M=R.getValueInRange(O).split(P),k=p.linesDiffComputers.getDefault().computeDiff(M,T,{computeMoves:!1,maxComputationTimeMs:200,ignoreTrimWhitespace:!1}),F=[];if(k.hitTimeout){let L=T.join(P);O.isEmpty()&&(L+=P);const B={range:O,text:L,forceMoveMarkers:!1};F.push(B)}else for(const L of k.changes){let B=T.slice(L.modified.startLineNumber-1,L.modified.endLineNumberExclusive-1).join(P),U;L.original.isEmpty?(U=new l.Range(O.startLineNumber+L.original.startLineNumber-1,1,O.startLineNumber+L.original.startLineNumber-1,1),B+=P):L.modified.isEmpty?(U=new l.Range(O.startLineNumber+L.original.startLineNumber-1,1,O.startLineNumber+L.original.endLineNumberExclusive-1,1),B=null):U=new l.Range(O.startLineNumber+L.original.startLineNumber-1,1,O.startLineNumber+L.original.endLineNumberExclusive-2,R.getLineMaxColumn(O.startLineNumber+L.original.endLineNumberExclusive-2));const W={range:U,text:B,forceMoveMarkers:!1};F.push(W)}R.pushEditOperations(null,F,()=>null,this.undoRedoGroup),this.livePreviewDiffDecorationModel.updateZone(new m.LineRange(I.startLineNumber,I.startLineNumber+T.length)),D>0?this.livePreviewDiffDecorationModel.touchActiveLine(D):this.livePreviewDiffDecorationModel.clearActiveLine(),this.renderAddedRangeDecoration(S),w.length>0?this.livePreviewDiffDecorationModel.touchPendingRange(w):this.livePreviewDiffDecorationModel.clearPendingLine(),this.renderRemovedRangeDecoration(S),this._onDidEditChange.fire()}recompute(S,D){D&&this.virtualModel.setValue(D);const T=this.virtualModel.getLinesContent();return this.processDiffComputation(T,S)}async rateRenderEditController(){var S;if(this.isEditing===!1){for(this.isEditing=!0;this.currentEditLine<=this.virtualModel.getLinesContent().length;){if(this.disposed)return;const w=this.virtualModel.getLinesContent().slice(0,this.currentEditLine),I=this.processDiffComputation(w);this.savedModel.id===((S=this.monacoEditor.getModel())===null||S===void 0?void 0:S.id)&&this.renderDiffEdits(I),this.currentEditLine+=1,await(0,o.sleep)(o.FRAME_THREE)}const D=this.finallyDiffModel.get();D&&this.finallyRender(D),this.isEditing=!1}}addLinesToDiff(S,D=E.default){this.recompute(D,S)}pushRateFinallyDiffStack(S){(0,v.transaction)(D=>{this.finallyDiffModel.set(S,D),this.isEditing===!1&&this.finallyRender(S)})}finallyRender(S){var D;(0,v.transaction)(T=>{this.finallyDiffModel.set(S,T)}),this.savedModel.id===((D=this.monacoEditor.getModel())===null||D===void 0?void 0:D.id)&&(this.onDiffFinishedEmitter.fire(S),!this.livePreviewDiffDecorationModel.disposed&&(this.renderPartialEditWidgets(S),this.renderDiffEdits(S),this.pushStackElement(),this.monacoEditor.focus()))}hide(){this.livePreviewDiffDecorationModel.hide()}resume(){this.finallyDiffModel.get()||this.rateRenderEditController(),this.livePreviewDiffDecorationModel.resume()}acceptAll(){this.livePreviewDiffDecorationModel.acceptUnProcessed(),this.dispose()}rejectAll(){this.livePreviewDiffDecorationModel.discardUnProcessed(),this.dispose()}revealFirstDiff(){this.livePreviewDiffDecorationModel.revealFirstDiff()}getZone(){return this.livePreviewDiffDecorationModel.getZone()}getTotalCodeInfo(){return this.livePreviewDiffDecorationModel.getTotalCodeInfo()}};t.BaseInlineStreamDiffHandler=d,n.__decorate([(0,r.Autowired)(r.INJECTOR_TOKEN),n.__metadata("design:type",r.Injector)],d.prototype,"injector",void 0),t.BaseInlineStreamDiffHandler=d=n.__decorate([(0,r.Injectable)({multiple:!0}),n.__metadata("design:paramtypes",[Object])],d);let y=class extends d{initialize(S){const D=this.savedModel.getEOL(),T=S.getStartPosition(),w=S.getEndPosition();this.rawSavedTextLines=this.savedModel.getValueInRange(l.Range.fromPositions(T,w)).split(D);const I=m.LineRange.fromRangeInclusive(l.Range.fromPositions({lineNumber:S.startLineNumber,column:1},{lineNumber:S.endLineNumber,column:Number.MAX_SAFE_INTEGER}));this.livePreviewDiffDecorationModel.initialize(I),this.rawOriginTextLinesTokens=this.rawSavedTextLines.map((R,P)=>{const O=T.lineNumber+P;return this.savedModel.tokenization.forceTokenization(O),this.savedModel.tokenization.getLineTokens(O)})}processDiffComputation(S,D){return this.computeDiff(this.rawSavedTextLines,S,D)}getOriginalModel(){return this.savedModel}};t.InlineStreamDiffHandler=y,t.InlineStreamDiffHandler=y=n.__decorate([(0,r.Injectable)({multiple:!0})],y);let b=class extends d{recompute(S,D){const T=super.recompute(S,D);return this.rawOriginTextLinesTokens=this.virtualModel.getLinesContent().map((w,I)=>{const R=I+1;return this.virtualModel.tokenization.forceTokenization(R),this.virtualModel.tokenization.getLineTokens(R)}),T}initialize(){const S=this.savedModel.getEOL();this.rawSavedTextLines=this.savedModel.getValue().split(S);const D=m.LineRange.fromRangeInclusive(l.Range.fromPositions({lineNumber:1,column:1},{lineNumber:this.virtualModel.getLineCount(),column:Number.MAX_SAFE_INTEGER}));this.livePreviewDiffDecorationModel.initialize(D)}getOriginalModel(){return this.virtualModel}processDiffComputation(S,D){return this.computeDiff(S,this.rawSavedTextLines,D)}};t.ReverseInlineStreamDiffHandler=b,t.ReverseInlineStreamDiffHandler=b=n.__decorate([(0,r.Injectable)({multiple:!0})],b)},22169:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineStreamDiffService=void 0;const n=e(85608),r=e(76003),o=e(43718);let l=class{constructor(){this._onAcceptDiscardPartialEdit=new o.Emitter,this.onAcceptDiscardPartialEdit=this._onAcceptDiscardPartialEdit.event}launchAcceptDiscardPartialEdit(v){this._onAcceptDiscardPartialEdit.fire(v)}};t.InlineStreamDiffService=l,t.InlineStreamDiffService=l=n.__decorate([(0,r.Injectable)()],l)},54362:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LivePreviewUndoRedoStackElement=void 0;const n=e(25539);class r{get type(){return n.UndoRedoElementType.Resource}get label(){return"Live.Preview.UndoRedo"}get code(){return"Live.Preview.UndoRedo"}get resource(){return this.model.uri}constructor(l){this.model=l,this.confirmBeforeUndo=!1}attachModel(l){this.decorationModel=l}registerUndo(l){this._undo=l}undo(){var l;(l=this._undo)===null||l===void 0||l.call(this,this.decorationModel)}registerRedo(l){this._redo=l}redo(){var l;(l=this._redo)===null||l===void 0||l.call(this,this.decorationModel)}}t.LivePreviewUndoRedoStackElement=r},8106:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AddedRangeDecorationsCollection=t.RemovedZoneWidget=t.AcceptPartialEditWidget=t.PendingRangeDecoration=t.AddedRangeDecoration=t.ActiveLineDecoration=void 0;const r=e(85608),o=r.__importDefault(e(53373)),l=r.__importStar(e(14041)),_=r.__importDefault(e(25873)),v=e(76003),m=e(41869),p=e(57925),s=e(43718),g=e(52659),a=e(90052),h=e(31324),u=e(34819),c=e(53617),E=e(24522),f=r.__importDefault(e(71749));t.ActiveLineDecoration="activeLine-decoration",t.AddedRangeDecoration="added-range-decoration",t.PendingRangeDecoration="pending-range-decoration";const d=T=>{const{keyStrings:w,onAccept:I,onDiscard:R,editor:P}=T,[O,M]=l.default.useState(0),k=(0,l.useCallback)(()=>{I?.()},[I]),F=(0,l.useCallback)(()=>{R?.()},[R]);return(0,m.useDisposable)(()=>P.onDidScrollChange(L=>{const{scrollLeftChanged:B,scrollLeft:U}=L;B&&M(U)}),[P]),l.default.createElement("div",{className:(0,o.default)("kt-inline-diff-accept-partial-widget-container",f.default.inline_diff_accept_partial_widget_container),style:{marginLeft:O}},l.default.createElement("div",{className:f.default.content},l.default.createElement("span",{className:(0,o.default)(f.default.accept_btn,f.default.btn),onClick:k},(0,s.localize)("aiNative.inline.diff.accept"),l.default.createElement("span",null,w.acceptSequence)),l.default.createElement("span",{className:(0,o.default)(f.default.discard_btn,f.default.btn),onClick:F},(0,s.localize)("aiNative.inline.diff.reject"),l.default.createElement("span",null,w.discardSequence))))};let y=n=class extends g.ReactInlineContentWidget{constructor(w,I){super(w),this.editor=w,this.editWidgetOptions=I,this._onAccept=this.registerDispose(new s.Emitter),this.onAccept=this._onAccept.event,this._onDiscard=this.registerDispose(new s.Emitter),this.onDiscard=this._onDiscard.event,this.positionPreference=[a.ContentWidgetPositionPreference.EXACT],this.addedLinesCount=0,this.deletedLinesCount=0,this.status="pending"}get group(){return this._group}getSequenceKeyStrings(){let w=this.keybindingRegistry.getKeybindingsForCommand(p.AI_INLINE_DIFF_PARTIAL_EDIT.id);if(w=w.sort((I,R)=>R.args-I.args),!(!w||w.length!==2&&w.some(I=>(0,s.isUndefined)(I.resolved))))return{acceptSequence:this.keybindingRegistry.acceleratorForSequence(w[0].resolved,"")[0],discardSequence:this.keybindingRegistry.acceleratorForSequence(w[1].resolved,"")[0]}}renderView(){var w;if(!((w=this.editWidgetOptions)===null||w===void 0)&&w.hideAcceptPartialEditWidget)return;const I=this.getSequenceKeyStrings();if(I)return l.default.createElement(d,{keyStrings:I,onAccept:()=>this._onAccept.fire(),onDiscard:()=>this._onDiscard.fire(),editor:this.editor})}id(){return this._id||(this._id=`${n.ID}_${(0,s.uuid)(4)}`),this._id}getClassName(){return f.default.accept_partial_edit_widget_id}recordAddedRangeId(w){this._addedRangeId=w}getAddedRangeId(){return this._addedRangeId}resume(){this.status="pending",this.addedLinesCount=0,this.deletedLinesCount=0,super.resume()}setGroup(w){this._group=w}get isPending(){return this.status==="pending"}accept(w,I){this.status="accept",this.addedLinesCount=w,this.deletedLinesCount=I,super.hide()}get isAccepted(){return this.status==="accept"}discard(w,I){this.status="discard",this.addedLinesCount=w,this.deletedLinesCount=I,super.hide()}get isRejected(){return this.status==="discard"}};t.AcceptPartialEditWidget=y,y.ID="AcceptPartialEditWidgetID",r.__decorate([(0,v.Autowired)(m.KeybindingRegistry),r.__metadata("design:type",Object)],y.prototype,"keybindingRegistry",void 0),t.AcceptPartialEditWidget=y=n=r.__decorate([(0,v.Injectable)({multiple:!0}),r.__metadata("design:paramtypes",[Object,Object])],y);const b=({dom:T,editor:w})=>{const I=l.default.useRef(null),[R,P]=l.default.useState(0),[O,M]=l.default.useState(0);return(0,l.useEffect)(()=>{T&&I&&I.current&&I.current.appendChild(T)},[T,I]),(0,m.useDisposable)(()=>w.onDidScrollChange(k=>{const{scrollLeftChanged:F,scrollLeft:L}=k;F&&P(L)}),[w]),(0,m.useDisposable)(()=>(M(w.getOption(h.EditorOption.layoutInfo).contentLeft),w.onDidChangeConfiguration(k=>{k.hasChanged(h.EditorOption.layoutInfo)&&M(w.getOption(h.EditorOption.layoutInfo).contentLeft)})),[w]),l.default.createElement("div",{className:f.default.inline_diff_remove_zone_fixed_box,style:{marginLeft:O+"px"}},l.default.createElement("div",{className:f.default.inline_diff_remove_zone,ref:I,style:{marginLeft:-R+"px"}}))};class A extends u.ZoneWidget{get isHidden(){return this._hidden}get group(){return this._group}constructor(w,I,R){super(w,R),this.textLines=I,this._hidden=!1,this.status="pending",(0,s.isDefined)(R.isHidden)&&(this._hidden=R.isHidden),(0,s.isDefined)(R.recordPosition)&&(this._recordPosition=R.recordPosition),(0,s.isDefined)(R.undoRedoGroup)&&(this._group=R.undoRedoGroup);const P=this._positionMarkerId;this._disposables.add(P.onDidChange(O=>{const M=P.getRange(0);M&&(this._recordPosition=M.getStartPosition())}))}setGroup(w){this._group=w}_fillContainer(w){w.classList.add(f.default.inline_diff_remove_zone_widget_container),this.root=_.default.createRoot(w)}getRemovedTextLines(){return this.textLines.map(w=>w.text)}get height(){return this.textLines.length}getLastPosition(){return this.position||this._recordPosition}accept(){this.status="accept",this.hide()}discard(){this.status="discard",super.hide()}hide(){this._hidden=!0,super.hide()}resume(){this.status="pending";const w=this.getLastPosition();w&&this.show(w,this.height)}show(w,I){this._hidden=!1,this.status="pending",super.show(w,I)}revealRange(){}create(){super.create(),this.mountRender()}mountRender(){const w=document.createElement("div");(0,E.renderLines)(w,this.editor.getOption(h.EditorOption.tabIndex),this.textLines.map(({text:I,lineTokens:R})=>({content:I,decorations:[],lineTokens:R})),this.editor.getOptions()),this.root.render(l.default.createElement(b,{dom:w,editor:this.editor}))}dispose(){this.root.unmount(),super.dispose()}}t.RemovedZoneWidget=A;class S extends c.DeltaDecorations{constructor(){super(...arguments),this.status="pending"}accept(){this.status="accept",super.hide()}discard(){this.status="discard",super.hide()}}class D extends c.EnhanceDecorationsCollection{createDecorations(w){return new S(w)}}t.AddedRangeDecorationsCollection=D},80715:(x,t,e)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.LivePreviewDiffDecorationModel=void 0;const r=e(85608),o=e(76003),l=e(41869),_=e(43718),v=e(20868),m=e(60304),p=e(72665),s=e(2261),g=e(24347),a=e(25539),h=e(19413),u=e(69820),c=e(77659),E=r.__importDefault(e(71749)),f=e(22169),d=e(54362),y=e(8106);let b=n=class extends _.Disposable{get partialEditWidgetCount(){return this.partialEditWidgetList.length}constructor(S){super(),this.monacoEditor=S,this._onPartialEditWidgetListChange=this.registerDispose(new _.Emitter),this.onPartialEditWidgetListChange=this._onPartialEditWidgetListChange.event,this.options={partialEditWidgetOptions:{}},this.partialEditWidgetList=[],this.removedZoneWidgets=[],this.currentChangeIndex=0,this.model=this.monacoEditor.getModel(),this.undoRedoService=m.StandaloneServices.get(a.IUndoRedoService),this.aiNativeContextKey=this.injector.get(c.AINativeContextKey,[this.monacoEditor.contextKeyService]),this.activeLineDec=this.monacoEditor.createDecorationsCollection(),this.pendingRangeDec=this.monacoEditor.createDecorationsCollection(),this.addDispose(this.inlineStreamDiffService.onAcceptDiscardPartialEdit(D=>{const T=this.monacoEditor.getPosition(),w=this.partialEditWidgetList.filter(I=>!I.isHidden).sort((I,R)=>{var P,O,M,k;const F=((O=(P=I.getPosition())===null||P===void 0?void 0:P.position)===null||O===void 0?void 0:O.lineNumber)||1,L=((k=(M=R.getPosition())===null||M===void 0?void 0:M.position)===null||k===void 0?void 0:k.lineNumber)||1,B=Math.abs(T.lineNumber-F),U=Math.abs(T.lineNumber-L);return B-U});w.length>0&&this.handlePartialEditAction(D?u.EPartialEdit.accept:u.EPartialEdit.discard,w[0])})),this.addedRangeDec=new y.AddedRangeDecorationsCollection(this.monacoEditor),this.addDispose(this.addedRangeDec.onDidDecorationsChange(D=>{this.aiNativeContextKey.inlineDiffPartialEditsIsVisible.get()&&this.partialEditWidgetList.forEach(w=>{const I=D.find(R=>w.getAddedRangeId()===R.id);if(I){const R=I.getRange();w.setOptions({position:{lineNumber:R.startLineNumber,column:1}}),w.layoutContentWidget()}})})),this.addDispose(_.Disposable.create(()=>this.clear()))}clear(){this.clearPendingLine(),this.clearActiveLine(),this.clearAddedLine(),this.clearRemovedWidgets(),this.clearPartialEditWidgetList()}hide(){this.addedRangeDec.getDecorations().forEach(S=>S.hide()),this.partialEditWidgetList.forEach(S=>S.hide()),this.removedZoneWidgets.forEach(S=>S.hide()),this.activeLineDec.clear(),this.pendingRangeDec.clear()}resume(){this.addedRangeDec.getDecorations().forEach(S=>S.status==="pending"&&S.resume()),this.partialEditWidgetList.forEach(S=>S.status==="pending"&&S.resume()),this.removedZoneWidgets.forEach(S=>S.status==="pending"&&S.resume())}initialize(S){this.updateZone(S)}getRemovedWidgets(){return this.removedZoneWidgets}showRemovedWidgetByLineNumber(S,D,T){const w=new v.Position(S,1),I=D.length,R=new y.RemovedZoneWidget(this.monacoEditor,D,{...T,showInHiddenAreas:!0,showFrame:!1,showArrow:!1});R.create(),this.removedZoneWidgets.push(R),T.isHidden?R.hide():R.show(w,I)}updateZone(S){this.zone=S}getZone(){return this.zone}touchActiveLine(S){const D=this.getZone();this.activeLineDec.set([{range:v.Range.fromPositions({lineNumber:D.startLineNumber+S-1,column:0}),options:g.ModelDecorationOptions.register({description:y.ActiveLineDecoration,isWholeLine:!0,className:E.default.inline_diff_current,zIndex:l.StackingLevel.Workbench})}])}doDiscardPartialWidget(S,D,T){let w=null,I=0,R=0;if(D&&D.length>0){const P=D.getRange();w=s.EditOperation.delete(v.Range.lift({startLineNumber:P.startLineNumber,startColumn:P.startColumn,endLineNumber:P.endLineNumber+1,endColumn:1})),I=D.length,D.hide()}if(T){const P=T.getLastPosition(),O=this.model.getEOL(),M=T.getRemovedTextLines();R=M.length;const k=M.join(O)+O;w?w=s.EditOperation.replace(v.Range.lift(w.range),k):w=s.EditOperation.insert(P.delta(1),k),T.hide()}return S.discard(I,R),w}handlePartialEditAction(S,D,T=!0,w=!1){const I=D.getPosition().position,R=this.aiReporter.getRelationId(),P=this.model,O=this.removedZoneWidgets.find(K=>K.getLastPosition().lineNumber===Math.max(1,I.lineNumber-1)),M=this.addedRangeDec.getDecorationByLineNumber(I.lineNumber),k=M?.length||0,F=O?.height||0,L=new a.UndoRedoGroup;D.setGroup(L),O?.setGroup(L),M?.setGroup(L);const B=K=>K.partialEditWidgetList.find(Y=>Y.group===L),U=K=>K.removedZoneWidgets.find(Y=>Y.group===L),W=K=>K.addedRangeDec.getDecorationByGroup(L);let j;const Q=O?.getRemovedTextLines().join(`
32567
32567
  `)||"",G=M?.getRange();try{G&&(j=P.getValueInRange({...G,endColumn:P.getLineMaxColumn(G.endLineNumber)}))}catch{j=""}const Z=K=>{w&&this.aiReporter.end(R,{message:"discard",success:!0,isDrop:!0,code:j,originCode:Q,actionSource:_.ActionSourceEnum.InlineChat,actionType:_.ActionTypeEnum.LineDiscard});const Y=U(K);Y?.discard();const X=W(K);X?.discard();const oe=B(K);return this.doDiscardPartialWidget(oe,X,Y)},$=K=>{w&&this.aiReporter.end(R,{message:"accept",success:!0,isReceive:!0,code:j,originCode:Q,actionSource:_.ActionSourceEnum.InlineChat,actionType:_.ActionTypeEnum.lineAccept});const Y=B(K);Y?.accept(k,F);const X=U(K);X?.accept();const oe=W(K);oe?.accept()},V=K=>{const Y=B(K);Y?.resume();const X=U(K);X?.resume();const oe=W(K);oe?.resume()};switch(S){case u.EPartialEdit.accept:if($(this),T){const K=this.createEditStackElement(L);K.attachModel(this),K.registerUndo(Y=>{V(Y)}),K.registerRedo(Y=>{$(Y)})}break;case u.EPartialEdit.discard:{const K=Z(this);if(K){if(T){const Y=this.createEditStackElement(L);Y.attachModel(this),Y.registerUndo(X=>{V(X)}),Y.registerRedo(X=>{Z(X)})}P.pushStackElement(),P.pushEditOperations(null,[K],()=>null,L),P.pushStackElement()}}break;default:break}const H={uri:this.model.uri,totalPartialEditCount:this.partialEditWidgetList.length,resolvedPartialEditCount:this.partialEditWidgetList.filter(K=>K.isHidden).length,acceptPartialEditCount:this.partialEditWidgetList.filter(K=>K.isAccepted).length,currentPartialEdit:{addedLinesCount:k,deletedLinesCount:F,type:S},...this.getTotalCodeInfo()};this.monacoEditor.focus(),this.inlineDiffService.firePartialEdit(H),this.firePartialEditWidgetList()}firePartialEditWidgetList(){this._onPartialEditWidgetListChange.fire(this.partialEditWidgetList);const S=this.partialEditWidgetList.filter(D=>!D.isHidden);this.aiNativeContextKey.inlineDiffPartialEditsIsVisible.set(S.length!==0)}createEditStackElement(S){const D=new d.LivePreviewUndoRedoStackElement(this.model);return this.undoRedoService.pushElement(D,S),D}static computeCodeInfo(S,D,T){const w=R(S),I={added:0,deleted:0,changed:0};return S.forEach((P,O)=>{if(P.status==="pending"){const M=D[O],k=T[O],F=M?.length||0,L=k?.height||0;I.added+=F,I.deleted+=L,I.changed+=Math.max(F,L)}}),{totalAddedLinesCount:w.added,totalDeletedLinesCount:w.deleted,totalChangedLinesCount:w.changed,unresolvedAddedLinesCount:I.added,unresolvedDeletedLinesCount:I.deleted,unresolvedChangedLinesCount:I.changed};function R(P){const O={added:0,deleted:0,changed:0};return P.forEach(M=>{const k=M.addedLinesCount,F=M.deletedLinesCount;O.added+=k,O.deleted+=F,O.changed+=Math.max(k,F)}),O}}getTotalCodeInfo(){const S=this.partialEditWidgetList,D=this.addedRangeDec.getDecorations(),T=this.removedZoneWidgets;return n.computeCodeInfo(S,D,T)}recordPartialEditWidgetWithAddedDec(){this.partialEditWidgetList.forEach(S=>{var D,T;const w=(T=(D=S.getPosition())===null||D===void 0?void 0:D.position)===null||T===void 0?void 0:T.lineNumber;if(w){const I=this.addedRangeDec.getDecorationByLineNumber(w);I&&S.recordAddedRangeId(I.id)}})}acceptUnProcessed(){this.partialEditWidgetList.filter(D=>D.isPending).forEach(D=>{this.handlePartialEditAction(u.EPartialEdit.accept,D,!1)})}discardUnProcessed(){this.partialEditWidgetList.filter(D=>D.isPending).forEach(D=>{this.handlePartialEditAction(u.EPartialEdit.discard,D,!1)})}createPartialEditWidget(S){const D=this.injector.get(y.AcceptPartialEditWidget,[this.monacoEditor,this.options.partialEditWidgetOptions]);D.show({position:{lineNumber:S,column:1}});const T=D.onDispose(()=>{const w=D.getId();this.partialEditWidgetList=this.partialEditWidgetList.filter(I=>I.getId()!==w),T.dispose()});return D.addDispose([D.onAccept(()=>{this.handlePartialEditAction(u.EPartialEdit.accept,D,!0,!0)}),D.onDiscard(()=>{this.handlePartialEditAction(u.EPartialEdit.discard,D,!0,!0)})]),D}touchPartialEditWidgets(S){this.clearPartialEditWidgetList(),this.partialEditWidgetList=S.map(D=>this.createPartialEditWidget(D)),this.firePartialEditWidgetList()}touchAddedRange(S){this.addedRangeDec.set(S.map(D=>{const T=D.startPosition,w=D.endPosition,I=D.len;let R=v.Range.fromPositions(T,w),P=E.default.inline_diff_added_range+" ";return I===0&&(R=v.Range.fromPositions(T),P+=E.default.hide),{length:I,range:R,isHidden:I===0,options:g.ModelDecorationOptions.register({description:y.AddedRangeDecoration,isWholeLine:!0,className:P})}})),this.recordPartialEditWidgetWithAddedDec()}touchRemovedWidget(S,D){const T=()=>{this.clearRemovedWidgets(),S.forEach(({textLines:w,position:I})=>{this.showRemovedWidgetByLineNumber(I.lineNumber,w,{})}),D?.()};this.options.renderRemovedWidgetImmediately?T():this.addDispose((0,_.runWhenIdle)(T))}touchPendingRange(S){const D=this.getZone();this.pendingRangeDec.set([{range:v.Range.fromPositions({lineNumber:D.startLineNumber+S.startLineNumber-1,column:0},{lineNumber:D.startLineNumber+S.endLineNumberExclusive-2,column:Number.MAX_SAFE_INTEGER}),options:g.ModelDecorationOptions.register({description:y.PendingRangeDecoration,isWholeLine:!0,className:E.default.inline_diff_pending_range})}])}clearPendingLine(){this.pendingRangeDec.clear()}clearActiveLine(){this.activeLineDec.clear()}clearAddedLine(){this.addedRangeDec.clear()}clearPartialEditWidgetList(){this.partialEditWidgetList.forEach(S=>{S.dispose()}),this.partialEditWidgetList=[],this.aiNativeContextKey.inlineDiffPartialEditsIsVisible.set(!1)}clearRemovedWidgets(){this.removedZoneWidgets.forEach(S=>{S.dispose()}),this.removedZoneWidgets=[]}revealFirstDiff(){const S=this.removedZoneWidgets[0];if(S){const D=S.getLastPosition();D&&this.monacoEditor.revealLineInCenterIfOutsideViewport(D.lineNumber)}}revealSiblingChange(S){if(this.currentChangeIndex=this.currentChangeIndex+(S==="up"?-1:1),this.currentChangeIndex>=0&&this.currentChangeIndex<this.partialEditWidgetList.length){const T=this.partialEditWidgetList[this.currentChangeIndex].getPosition();if(T?.position)return this.monacoEditor.revealLineInCenter(T.position.lineNumber),this.currentChangeIndex}else this.messageService.info(S==="up"?(0,_.localize)("aiNative.inlineDiff.noMoreChangesUp"):(0,_.localize)("aiNative.inlineDiff.noMoreChangesDown"))}setPreviewerOptions(S){this.options=S}};t.LivePreviewDiffDecorationModel=b,r.__decorate([(0,o.Autowired)(o.INJECTOR_TOKEN),r.__metadata("design:type",o.Injector)],b.prototype,"injector",void 0),r.__decorate([(0,o.Autowired)(_.IAIReporter),r.__metadata("design:type",Object)],b.prototype,"aiReporter",void 0),r.__decorate([(0,o.Autowired)(f.InlineStreamDiffService),r.__metadata("design:type",f.InlineStreamDiffService)],b.prototype,"inlineStreamDiffService",void 0),r.__decorate([(0,o.Autowired)(h.InlineDiffServiceToken),r.__metadata("design:type",Object)],b.prototype,"inlineDiffService",void 0),r.__decorate([(0,o.Autowired)(p.IMessageService),r.__metadata("design:type",Object)],b.prototype,"messageService",void 0),t.LivePreviewDiffDecorationModel=b=n=r.__decorate([(0,o.Injectable)({multiple:!0}),r.__metadata("design:paramtypes",[Object])],b)},19520:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineInputPreviewDecorationID=void 0,t.InlineInputPreviewDecorationID="InlineInputPreviewDecorationID"},90058:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SumiLightBulbWidget=void 0;const n=e(41869),r=e(3908),o=e(19202);class l extends o.LightBulbWidget{_updateLightBulbTitleAndIcon(){super._updateLightBulbTitleAndIcon();const v=super.state;if(v.type!==1)return;let m=super.icon;(v.actions.allAIFixes||v.actions.hasAutoFix&&v.actions.hasAIFix||v.actions.hasAIFix)&&(m=r.Sumicon.magicWand),m&&(this.getDomNode().classList.remove(...this._iconClasses),this.getDomNode().classList.add(...(0,n.asClassNameArrayWrapper)(m)))}}t.SumiLightBulbWidget=l},8191:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RewriteWidget=t.REWRITE_DECORATION_INLINE_ADD=void 0;const n=e(85608),r=n.__importDefault(e(53373)),o=n.__importStar(e(14041)),l=n.__importDefault(e(25873)),_=e(76003),v=e(41869),m=n.__importStar(e(20868)),p=e(52659),s=e(90052),g=e(77714),a=e(2261),h=e(87822),u=e(16781),c=n.__importDefault(e(32518)),E={fixedOverflowWidgets:!0,readOnly:!0,domReadOnly:!0,lineNumbers:"off",glyphMargin:!1,scrollBeyondLastLine:!1,rulers:void 0,overviewRulerBorder:void 0,overviewRulerLanes:0,padding:{top:0,bottom:0},folding:!1,stickyScroll:{enabled:!1},minimap:{enabled:!1},automaticLayout:!0,scrollbar:{horizontal:"hidden",vertical:"hidden",horizontalScrollbarSize:0,verticalScrollbarSize:0,arrowSize:0,verticalSliderSize:0,horizontalSliderSize:0,ignoreHorizontalScrollbarInContentHeight:!0},hover:{enabled:!1},guides:{indentation:!1}};t.REWRITE_DECORATION_INLINE_ADD="rewrite-decoration-inline-add";const f=o.default.memo(y=>{const{editor:b,onReady:A}=y,S=(0,v.useInjectable)(v.MonacoService),D=(0,o.useRef)(null),T=(0,o.useRef)(null),[w,I]=(0,o.useState)(null),[R,P]=(0,o.useState)(0),[O,M]=(0,o.useState)(null),k=(0,o.useCallback)((U,W,j)=>{const Q=b.getModel().getEOL();let G=W.startLineNumber,Z=W.startColumn;const $=U.getModel();U.changeDecorations(ie=>{if(U){$.getAllDecorations().map(he=>he.id).forEach(he=>ie.removeDecoration(he));for(const he of j){if(he.removed)continue;const pe=he.value.split(Q);for(let q=0;q<pe.length;q++){const be=pe[q];q!==0&&(G++,Z=1),he.added&&ie.addDecoration(new m.Range(G,Z,G,Z+be.length),{description:t.REWRITE_DECORATION_INLINE_ADD,className:c.default.ghost_text_decoration_inline_add}),Z+=be.length}}}});const V=U.getOption(m.editor.EditorOption.lineHeight);U?.setScrollTop(Math.max(W.startLineNumber-1,0)*V);const H=G-W.startLineNumber,K=U.getOption(m.editor.EditorOption.fontInfo).spaceWidth,Y=U.getOption(m.editor.EditorOption.layoutInfo).contentLeft;let X=0;const oe=$.getOptions().tabSize;Array.from({length:H+1},(ie,he)=>W.startLineNumber+he).forEach(ie=>{const he=$.getLineContent(ie);let pe=0;for(const q of he)q===g.space?pe+=oe:pe+=1,X=Math.max(X,pe)}),I({width:X*K+Y*2,height:V*(H+1)})},[w,b]);(0,o.useEffect)(()=>{if(b.getModel())return A&&A({getVirtualEditor:()=>O,renderVirtualEditor:(W,j,Q)=>F(W,j,Q),renderTextLineThrough:W=>L(W),layout:W=>B(W)}),()=>{O&&O.dispose(),T.current&&(0,v.runWhenIdle)(()=>{var W;(W=T.current)===null||W===void 0||W.unmount(),T.current=null})}},[b,A,O]);const F=(0,o.useCallback)((U,W,j)=>{if(!D.current)return;const Q=b.getModel();if(!Q)return;let G=O;if(!G){G=S.createCodeEditor(D.current,E);const Z=u.StandaloneServices.get(h.IModelService),$={languageId:Q.getLanguageId(),onDidChange:v.Event.None},V=Z.createModel("",$);G.setModel(V),M(G)}G.setValue(U),k(G,W,j)},[D,O]),L=(0,o.useCallback)(U=>{if(!D.current)return;O&&(O.dispose(),M(null));const W=({changes:j})=>{const Q=b.getOption(m.editor.EditorOption.lineHeight),G=b.getOption(m.editor.EditorOption.fontInfo).spaceWidth,Z=(V,H=c.default.ghost_text_decoration)=>o.default.createElement("span",{className:(0,r.default)(c.default.space_span,H),style:{width:`${G*V}px`}},g.space.repeat(V)),$=(V,H)=>o.default.createElement("span",{className:(0,r.default)(c.default.text_span,H)},V);return o.default.createElement(o.default.Fragment,null,j.map((V,H)=>{let K=!0,Y="",X=0;const oe=[];for(const ie of V){const{value:he,added:pe,removed:q}=ie;if(q)Y+=he;else{K=!1,X+=he.length;const be=he.length-he.trimStart().length,ge=he.length-he.trimEnd().length,te=he.trim();oe.push(Z(be)),te&&(oe.push($(te,pe?c.default.ghost_text_decoration_inline_add:c.default.ghost_text_decoration)),oe.push(Z(ge)))}}if(K){const ie=Y.length-Y.trimStart().length,he=Y.length-Y.trimEnd().length,pe=Y.trim();oe.push(Z(ie,c.default.ghost_text_decoration_remove)),pe&&(oe.push($(pe,c.default.ghost_text_decoration_inline_remove)),oe.push(Z(he,c.default.ghost_text_decoration_inline_remove)))}return o.default.createElement("div",{key:H,className:c.default.deletions_code_line,style:{height:`${Q}px`}},oe)}))};T.current&&(T.current.unmount(),T.current=null),T.current=l.default.createRoot(D.current),T.current.render(o.default.createElement(o.default.Fragment,null,U.map((j,Q)=>o.default.createElement(W,{key:Q,changes:j.changes}))))},[b,D,O,T]),B=(0,o.useCallback)(U=>{const W=b.getOption(m.editor.EditorOption.fontInfo).spaceWidth;let j=0;for(let Q=U.startLineNumber;Q<=U.endLineNumber;Q++){const G=b.getModel().getLineMaxColumn(Q);j=Math.max(j,G)}P(j*W+10)},[b]);return o.default.createElement("div",{className:c.default.rewrite_widget_container,style:{width:w?.width,height:w?.height,marginLeft:R}},o.default.createElement("div",{className:c.default.virtual_editor_container,ref:D}))});let d=class extends p.ReactInlineContentWidget{constructor(){super(...arguments),this.virtualEditorHandler=null,this.positionPreference=[s.ContentWidgetPositionPreference.EXACT],this.defered=new v.Deferred,this.updateFontStyle=()=>{const b=this.editor.getOption(m.editor.EditorOption.fontInfo);this.domNode.style.fontFamily=b.fontFamily,this.domNode.style.fontSize=b.fontSize+"px"}}renderView(){return this.updateFontStyle(),o.default.createElement(f,{editor:this.editor,onReady:b=>{this.defered.resolve(),this.virtualEditorHandler=b}})}id(){return"RewriteWidget"}show(b){const{position:A}=b;if(!A)return;const{lineNumber:S}=A;super.show({position:m.Position.lift({lineNumber:S,column:1})})}setInsertText(b){this.insertText=b}setEditArea(b){this.editArea=b}getEditArea(){return this.editArea}getVirtualEditor(){var b,A;return(A=(b=this.virtualEditorHandler)===null||b===void 0?void 0:b.getVirtualEditor())!==null&&A!==void 0?A:null}renderTextLineThrough(b){var A,S;(A=this.virtualEditorHandler)===null||A===void 0||A.renderTextLineThrough(b),(S=this.virtualEditorHandler)===null||S===void 0||S.layout(this.editArea)}renderVirtualEditor(b,A){this.virtualEditorHandler.renderVirtualEditor(b,this.editArea,A),this.virtualEditorHandler.layout(this.editArea)}accept(){(0,v.isUndefined)(this.insertText)||(this.editor.pushUndoStop(),this.editor.getModel().pushEditOperations(null,[a.EditOperation.replace(m.Range.lift(this.editArea),this.insertText)],()=>null))}};t.RewriteWidget=d,t.RewriteWidget=d=n.__decorate([(0,_.Injectable)({multiple:!0})],d)},36059:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getBase64ImageSize=o,t.compressBase64Image=l,t.compressContentArrayResult=_,t.compressToolResultSmart=v;const n=e(70392),r={maxSizeKB:500,quality:.8,maxWidth:1920,maxHeight:1080,mimeType:"image/jpeg"};function o(m){return m?(m.split(",")[1]||m).length*3/4/1024:0}function l(m,p={}){return new Promise(s=>{try{if(!m||typeof m!="string"){s(m||"");return}!m.startsWith("data:")&&p.mimeType&&(m=`data:${p.mimeType};base64,${m}`);const g={...r,...p};if(o(m)<=g.maxSizeKB){s(m);return}const h=new Image;h.onload=()=>{try{let{width:u,height:c}=h;if(u<=1||c<=1){s(m);return}const E=u/c;u>g.maxWidth&&(u=g.maxWidth,c=u/E),c>g.maxHeight&&(c=g.maxHeight,u=c*E);const f=document.createElement("canvas"),d=f.getContext("2d");if(!d){s(m);return}f.width=Math.round(u),f.height=Math.round(c),d.drawImage(h,0,0,f.width,f.height);let y=f.toDataURL(g.mimeType,g.quality),b=o(y),A=g.quality,S=0;const D=5;for(;b>g.maxSizeKB&&S<D;)A*=.6,y=f.toDataURL(g.mimeType,A),b=o(y),S++;const[,T]=y.split(",");s(T)}catch{s(m)}},h.onerror=()=>{s(m)},h.src=m}catch{s(m)}})}async function _(m,p={}){if(!m||!m.content||!Array.isArray(m.content))return m;const s=await Promise.all(m.content.map(async g=>{if(g.type==="image"){let a;return typeof window<"u"&&typeof document<"u"?a=await l(g.data,{...p,mimeType:g.mimeType}):a=g.data,{...g,data:a}}return g}));return{...m,content:s}}async function v(m,p={}){return m&&(0,n.isObject)(m)&&m.content&&Array.isArray(m.content)&&m.content.some(s=>s.type==="image")?await _(m,p):m}},19413:(x,t,e)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InlineDiffServiceToken=t.IAIInlineCompletionsProvider=t.EResultKind=t.EInlineChatStatus=t.SumiMCPServerProxyServicePath=t.TokenMCPServerProxyService=t.ChatProxyServiceToken=t.IChatAgentService=t.IChatManagerService=t.IChatInternalService=t.ChatCompletionRequestMessageRoleEnum=t.AT_SIGN_SYMBOL=t.SLASH_SYMBOL=t.AI_MENUBAR_CONTAINER_VIEW_ID=t.BUILTIN_MCP_SERVER_NAME=t.AI_MENU_BAR_DEBUG_TOOLBAR=t.AI_CHAT_LOGO_AVATAR_ID=t.AI_CHAT_CONTAINER_ID=t.AI_CHAT_VIEW_ID=t.AIInlineChatContentWidget=t.IAINativeService=void 0;const n=e(85608),r=e(43718),o=e(66338);n.__exportStar(e(25264),t),t.IAINativeService=Symbol("IAINativeService"),t.AIInlineChatContentWidget=r.AIInlineChatContentWidgetId,t.AI_CHAT_VIEW_ID="AI-Chat",t.AI_CHAT_CONTAINER_ID="AI-Chat-Container",t.AI_CHAT_LOGO_AVATAR_ID="AI-Chat-Logo-Avatar",t.AI_MENU_BAR_DEBUG_TOOLBAR="AI_MENU_BAR_DEBUG_TOOLBAR",t.BUILTIN_MCP_SERVER_NAME="Builtin",t.AI_MENUBAR_CONTAINER_VIEW_ID=o.DESIGN_MENUBAR_CONTAINER_VIEW_ID,t.SLASH_SYMBOL="/",t.AT_SIGN_SYMBOL="@";var l;(function(m){m.System="system",m.User="user",m.Assistant="assistant"})(l||(t.ChatCompletionRequestMessageRoleEnum=l={})),t.IChatInternalService=Symbol("IChatInternalService"),t.IChatManagerService=Symbol("IChatManagerService"),t.IChatAgentService=Symbol("IChatAgentService"),t.ChatProxyServiceToken=Symbol("ChatProxyServiceToken"),t.TokenMCPServerProxyService=Symbol("TokenMCPServerProxyService"),t.SumiMCPServerProxyServicePath="SumiMCPServerProxyServicePath";var _;(function(m){m[m.READY=0]="READY",m[m.THINKING=1]="THINKING",m[m.DONE=2]="DONE",m[m.ERROR=3]="ERROR"})(_||(t.EInlineChatStatus=_={}));var v;(function(m){m.ACCEPT="ACCEPT",m.DISCARD="DISCARD",m.REGENERATE="REGENERATE"})(v||(t.EResultKind=v={})),t.IAIInlineCompletionsProvider=Symbol("IAIInlineCompletionsProvider"),t.InlineDiffServiceToken=Symbol("InlineDiffService"),n.__exportStar(e(58196),t),n.__exportStar(e(24147),t)},46044:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LLM_CONTEXT_KEY_REGEX=t.LLM_CONTEXT_KEY=t.LLMContextServiceToken=void 0,t.LLMContextServiceToken=Symbol("LLMContextService");var e;(function(n){n.AttachedFile="<attached_file>",n.AttachedFolder="<attached_folder>"})(e||(t.LLM_CONTEXT_KEY=e={})),t.LLM_CONTEXT_KEY_REGEX=/<attached_file>|<attached_folder>/g},64811:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MCPServersEnabledKey=t.MCPServerManagerPath=t.MCPServerManager=void 0,t.MCPServerManager=Symbol("MCPServerManager"),t.MCPServerManagerPath="ServicesMCPServerManager",t.MCPServersEnabledKey="mcp_servers_enabled"},24147:(x,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseMDC=o,t.serializeMDC=l,t.validateMDCFrontmatter=_,t.createDefaultMDCFrontmatter=v,t.updateMDCFrontmatter=m,t.extractMDCContent=p;function e(s){const g=s.trim();if(g==="true")return!0;if(g==="false")return!1;if(g==="null"||g==="~"||g==="")return null;if(/^-?\d+(\.\d+)?$/.test(g))return g.includes(".")?parseFloat(g):parseInt(g,10);if(g.startsWith("[")&&g.endsWith("]")){const a=g.slice(1,-1).trim();return a?a.split(",").map(h=>e(h)):[]}return g.startsWith('"')&&g.endsWith('"')||g.startsWith("'")&&g.endsWith("'")?g.slice(1,-1):g}function n(s){const g={},a=s.split(`
32568
- `);let h=null,u=[],c=!1;for(const E of a){const f=E.trim();if(!f||f.startsWith("#"))continue;if(f.startsWith("- ")){h&&c&&u.push(f.slice(2).trim());continue}c&&h&&(g[h]=u.map(A=>e(A)),u=[],c=!1,h=null);const d=f.indexOf(":");if(d===-1)continue;const y=f.slice(0,d).trim(),b=f.slice(d+1).trim();h=y,b?(g[y]=e(b),c=!1):(c=!0,u=[])}return c&&h&&(g[h]=u.map(E=>e(E))),g}function r(s){const g=[];for(const[a,h]of Object.entries(s))if(h==null)g.push(`${a}:`);else if(Array.isArray(h))if(h.length===0)g.push(`${a}: []`);else{g.push(`${a}:`);for(const u of h)g.push(` - ${typeof u=="string"?u:JSON.stringify(u)}`)}else typeof h=="string"?h.includes(":")||h.includes("#")||h.includes(`
32568
+ `);let h=null,u=[],c=!1;for(const E of a){const f=E.trim();if(!f||f.startsWith("#"))continue;if(f.startsWith("- ")){h&&c&&u.push(f.slice(2).trim());continue}c&&h&&(g[h]=u.map(A=>e(A)),u=[],c=!1,h=null);const d=f.indexOf(":");if(d===-1)continue;const y=f.slice(0,d).trim(),b=f.slice(d+1).trim();h=y,b&&(g[y]=e(b),c=!1)}return c&&h&&(g[h]=u.map(E=>e(E))),g}function r(s){const g=[];for(const[a,h]of Object.entries(s))if(h==null)g.push(`${a}:`);else if(Array.isArray(h))if(h.length===0)g.push(`${a}: []`);else{g.push(`${a}:`);for(const u of h)g.push(` - ${typeof u=="string"?u:JSON.stringify(u)}`)}else typeof h=="string"?h.includes(":")||h.includes("#")||h.includes(`
32569
32569
  `)||h.trim()!==h?g.push(`${a}: "${h.replace(/"/g,'\\"')}"`):g.push(`${a}: ${h}`):g.push(`${a}: ${h}`);return g.join(`
32570
32570
  `)}function o(s){const g=/^---\s*\n([\s\S]*?)\n---\s*\n?([\s\S]*)$/,a=s.match(g);if(!a)return{frontmatter:{},content:s.trim()};const[,h,u]=a;let c={};try{c=n(h)}catch{c={}}return{frontmatter:c,content:u.trim()}}function l(s){const{frontmatter:g,content:a}=s;if(!g||Object.keys(g).length===0)return a;try{return`---
32571
32571
  ${r(g)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensumi/cli-engine",
3
- "version": "3.9.1-next-1748939097.0",
3
+ "version": "3.9.1-next-1748943529.0",
4
4
  "description": "Integration engine runtime for opensumi-cli and opensumi extension",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "dependencies": {
27
27
  "@koa/cors": "^5.0.0",
28
28
  "@opensumi/di": "^1.8.0",
29
- "@opensumi/ide-core-browser": "3.9.1-next-1748939097.0",
30
- "@opensumi/ide-core-common": "3.9.1-next-1748939097.0",
31
- "@opensumi/ide-core-node": "3.9.1-next-1748939097.0",
32
- "@opensumi/ide-express-file-server": "3.9.1-next-1748939097.0",
33
- "@opensumi/ide-extension": "3.9.1-next-1748939097.0",
34
- "@opensumi/ide-i18n": "3.9.1-next-1748939097.0",
35
- "@opensumi/ide-main-layout": "3.9.1-next-1748939097.0",
36
- "@opensumi/ide-startup": "3.9.1-next-1748939097.0",
29
+ "@opensumi/ide-core-browser": "3.9.1-next-1748943529.0",
30
+ "@opensumi/ide-core-common": "3.9.1-next-1748943529.0",
31
+ "@opensumi/ide-core-node": "3.9.1-next-1748943529.0",
32
+ "@opensumi/ide-express-file-server": "3.9.1-next-1748943529.0",
33
+ "@opensumi/ide-extension": "3.9.1-next-1748943529.0",
34
+ "@opensumi/ide-i18n": "3.9.1-next-1748943529.0",
35
+ "@opensumi/ide-main-layout": "3.9.1-next-1748943529.0",
36
+ "@opensumi/ide-startup": "3.9.1-next-1748943529.0",
37
37
  "chalk": "^4.1.2",
38
38
  "ejs": "^3.1.7",
39
39
  "ip": "^1.1.8",
@@ -72,5 +72,5 @@
72
72
  "webpack": "^5.90.0",
73
73
  "webpack-cli": "^5.1.4"
74
74
  },
75
- "gitHead": "54024133ab1833b52a0fbfc07683a46906d19d31"
75
+ "gitHead": "c35c6eff635d7d8e4b8c4d795c90791ddf036970"
76
76
  }