vibe64 0.1.57 → 0.1.59
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/bin/run.js +585 -585
- package/bin/server.js +169 -169
- package/bin/upgrade-state.js +1161 -1161
- package/dist/assets/{GithubBrowserTabs-DfRzbuSv.js → GithubBrowserTabs-D_nMB5Y1.js} +1 -1
- package/dist/assets/{LocalDatabaseServer-7LqUsfAQ.js → LocalDatabaseServer-BgO_aeUg.js} +1 -1
- package/dist/assets/{Vibe64AuthSettingsButton-DGm_9G9A.js → Vibe64AuthSettingsButton-Bx9patil.js} +1 -1
- package/dist/assets/{Vibe64ConversationLog-DlwCuaVi.js → Vibe64ConversationLog-DtOgxPNR.js} +1 -1
- package/dist/assets/{Vibe64DashboardShell-CZ5cMJ9k.js → Vibe64DashboardShell-DhPE6H3P.js} +1 -1
- package/dist/assets/{Vibe64DatabaseWorkspace-DfZpwSzB.js → Vibe64DatabaseWorkspace-CHV0cd3l.js} +1 -1
- package/dist/assets/{Vibe64OutputControls-CkXzIhro.js → Vibe64OutputControls-mNWUWLSm.js} +1 -1
- package/dist/assets/{Vibe64SessionFiles-BZQwcfGG.js → Vibe64SessionFiles-BXt__PJL.js} +1 -1
- package/dist/assets/{Vibe64SessionSourceEditor-CSX0GD_w.js → Vibe64SessionSourceEditor-NyG6niQM.js} +1 -1
- package/dist/assets/{Vibe64UiStoryboardView-Tml9lmTO.js → Vibe64UiStoryboardView-BXH2MSWn.js} +1 -1
- package/dist/assets/{Vibe64UnavailableSessions-D1LJQ7jc.js → Vibe64UnavailableSessions-CCPWJo8e.js} +1 -1
- package/dist/assets/{_pageId_-myxTAoqm.js → _pageId_-D54CqzqG.js} +1 -1
- package/dist/assets/{_sessionId_-BM4eQHUu.js → _sessionId_-CW044RVi.js} +1 -1
- package/dist/assets/{_slug_-C1Zt2FsE.js → _slug_-CRtFhc0A.js} +5 -5
- package/dist/assets/{_slug_-BvyD0DHo.css → _slug_-WWvJTLoc.css} +1 -1
- package/dist/assets/{access-DbK06uO7.js → access-ChMLRErk.js} +1 -1
- package/dist/assets/{app-D35Na9o5.js → app-D9FegZf0.js} +1 -1
- package/dist/assets/assistantRouting-D4SnnxJn.js +3 -0
- package/dist/assets/{client-C5sPrfkm.js → client-BBqNv4HL.js} +1 -1
- package/dist/assets/{client-CjNw-kf-.js → client-DnjkdG6K.js} +1 -1
- package/dist/assets/{client-DT3BbWpI.js → client-Dra4Vp3A.js} +2 -2
- package/dist/assets/{client-BTq67t0Y.js → client-DuDOzb5A.js} +2 -2
- package/dist/assets/{client-CkV1cE5C.js → client-mU-LObHG.js} +1 -1
- package/dist/assets/{dashboard-CbOtBwwu.js → dashboard-B26QwE6y.js} +1 -1
- package/dist/assets/{english-definitions--F8iwoB9.js → english-definitions-I9tIXY2u.js} +1 -1
- package/dist/assets/{env-BxyHxFmS.js → env-BXsvM592.js} +1 -1
- package/dist/assets/{health-Bnnb6E2j.js → health-C4WtefLm.js} +1 -1
- package/dist/assets/{history-1Xemjfmv.js → history-HHPFoNi3.js} +1 -1
- package/dist/assets/index-BBfSvf2i.css +1 -0
- package/dist/assets/{index-Btrr1DGq.js → index-Bvd00puv.js} +3 -3
- package/dist/assets/{integrations-hQJR-UJM.js → integrations-CQNJxkMu.js} +1 -1
- package/dist/assets/{issues-0y_naQdl.js → issues-BHr_nI-9.js} +1 -1
- package/dist/assets/{learning-CG0NUB8v.js → learning-0cINHUSN.js} +1 -1
- package/dist/assets/{pages-CHjGYtFn.js → pages-CIKw99GN.js} +1 -1
- package/dist/assets/{project-files-S6i36bSy.js → project-files-CklWobqZ.js} +1 -1
- package/dist/assets/{publish-BmfmLaWn.js → publish-Cot797YN.js} +1 -1
- package/dist/assets/{pull-requests-COBi3Wfj.js → pull-requests-ybnixBv0.js} +1 -1
- package/dist/assets/{settings-D0U9Lxsg.js → settings-DJByC5Wb.js} +1 -1
- package/dist/assets/{useArchivedVibe64Sessions-DQcmDT-k.js → useArchivedVibe64Sessions-B-DtXrk-.js} +1 -1
- package/dist/assets/{useVibe64ConversationLog-yo2ewb9G.js → useVibe64ConversationLog-BVANhCHq.js} +2 -2
- package/dist/assets/{useVibe64SessionData-DngAc96i.js → useVibe64SessionData-rBvWMqyc.js} +1 -1
- package/dist/assets/{useVibe64SessionSelection-Cxt1pCjM.js → useVibe64SessionSelection-C546mBu8.js} +1 -1
- package/dist/assets/{vibe64SessionFocus-CQraoYFY.js → vibe64SessionFocus-CxX2nK6F.js} +1 -1
- package/dist/assets/vibe64SessionFocus-DW73PN_o.css +1 -0
- package/dist/index.html +5 -5
- package/docs/colleague-usage/auto-workflow.md +2 -2
- package/docs/colleague-usage/chat-settings.md +7 -3
- package/docs/colleague-usage/coding-agents.md +10 -0
- package/docs/colleague-usage/sessions.md +2 -1
- package/docs/colleague-usage/ui-pass.md +8 -8
- package/node_modules/@jskit-ai/assistant-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/assistant-core/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-runtime/CHANGELOG.md +2 -0
- package/node_modules/@jskit-ai/assistant-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/assistant-voice/package.json +1 -1
- package/node_modules/@jskit-ai/connector-google-calendar/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-catalog/package.json +1 -1
- package/node_modules/@jskit-ai/connectors-core/CHANGELOG.md +1 -0
- package/node_modules/@jskit-ai/connectors-core/README.md +8 -0
- package/node_modules/@jskit-ai/connectors-core/package.json +1 -1
- package/node_modules/@jskit-ai/http-runtime/package.json +1 -1
- package/node_modules/@jskit-ai/kernel/CHANGELOG.md +3 -0
- package/node_modules/@jskit-ai/kernel/package.json +1 -1
- package/node_modules/@jskit-ai/payments-core/CHANGELOG.md +2 -0
- package/node_modules/@jskit-ai/payments-core/package.json +1 -1
- package/node_modules/@jskit-ai/realtime/CHANGELOG.md +2 -0
- package/node_modules/@jskit-ai/realtime/package.json +1 -1
- package/node_modules/@jskit-ai/resource-core/CHANGELOG.md +5 -0
- package/node_modules/@jskit-ai/resource-core/package.json +1 -1
- package/node_modules/@jskit-ai/resource-core/patterns/table-resource/PATTERN.md +7 -4
- package/node_modules/@jskit-ai/uploads-runtime/package.json +1 -1
- package/node_modules/@local/vibe64-execution/src/server/gitTurnCheckpointCommand.js +145 -530
- package/node_modules/@local/vibe64-genesis/bin/vibe64-genesis-host-context +89 -89
- package/node_modules/@local/vibe64-genesis/src/server/index.js +325 -322
- package/node_modules/@local/vibe64-runtime/src/server/codexAppServerProcess.js +41 -41
- package/node_modules/@local/vibe64-terminals/src/server/opencodeSessionEnvironmentPlugin.js +66 -66
- package/node_modules/@local/vibe64-terminals/src/server/sessionWorkOperationCommand.js +318 -318
- package/package.json +14 -14
- package/server.bundle.mjs +33440 -33403
- package/dist/assets/assistantRouting--Xm-hai_.js +0 -3
- package/dist/assets/index-CmzEKG3z.css +0 -1
- package/dist/assets/vibe64SessionFocus-CcHYt9SU.css +0 -1
package/dist/assets/{Vibe64SessionSourceEditor-CSX0GD_w.js → Vibe64SessionSourceEditor-NyG6niQM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as __exportAll}from"./placement-Lk1Lpy6s.js";import{Ct as toRef,Et as unref,G as renderList,H as openBlock,I as onBeforeUnmount,K as renderSlot,Kt as normalizeClass,M as mergeProps,N as nextTick,Xt as toDisplayString,b as createVNode,d as createBaseVNode,et as useModel,f as createBlock,ft as isRef,i as Fragment,it as watch,j as mergeModels,m as createElementBlock,ot as withCtx,p as createCommentVNode,q as resolveComponent,st as withDirectives,u as computed,vt as ref,xt as shallowRef,y as createTextVNode,z as onMounted}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,cr as vShow,lr as withKeys,mt as useDisplay,t as VChip,ur as withModifiers}from"./VChip-D2IukBZw.js";import{u as normalizeText}from"./normalize-BD25VwNK.js";import{t as VAlert}from"./VAlert-DyCQWe9P.js";import{n as VList,s as VListItem,t as VMenu}from"./VMenu-DQ9SZ1Fq.js";import{t as VTextField}from"./VTextField-BMvaWVTN.js";import{n as getHttpWebClient}from"./httpClient-BRO3GqjU.js";import{i as scopedDevelopmentApiUrl,n as resolveStudioRequestUrl}from"./studioUrls-oIU1Eq_t.js";import{t as VBtn}from"./VBtn-2vbH580C.js";import{t as VDialog}from"./VDialog-B2W9wqR8.js";import{i as VCardTitle,n as VCardText,o as VCardActions,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{t as VSkeletonLoader}from"./VSkeletonLoader-C5ZRrPV4.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{g as scrollElementNearBottom,h as useScrollToBottom,v as LongTextPreviewBlocks_default,y as parseLongTextReviewBlocks}from"./conversation-QpMeXw70.js";import"./conversation-p_mmD9ie.js";import{r as useRealtimeEvent}from"./useRealtimeEvent-B4oRg9Dt.js";import{t as useUiFeedback}from"./useUiFeedback-CycH_fvY.js";import{t as readRefOrGetterValue}from"./vueRefOrGetterValue-y-4f_In7.js";import{i as vibe64RealtimePayloadFromCurrentTab,n as vibe64BrowserTabOriginId}from"./vibe64BrowserTabOrigin-vIN_87mi.js";import{$ as vibe64SourceEditorResolvePathPath,G as vibe64SourceEditorDownloadPath,J as vibe64SourceEditorExplanationStopPath,K as vibe64SourceEditorExplanationFollowupsStreamPath,Q as vibe64SourceEditorFilesPath,U as vibe64SourceEditorChangesStreamPath,W as vibe64SourceEditorCreateFilePath,X as vibe64SourceEditorExplanationsStreamPath,Y as vibe64SourceEditorExplanationsCleanupPath,Z as vibe64SourceEditorFilePath,d as VIBE64_SOURCE_EDITOR_SYNC_READY_EVENT,et as vibe64SourceEditorSearchPath,l as VIBE64_SOURCE_EDITOR_FILE_CHANGED_EVENT,nt as vibe64SourceEditorTreePath,q as vibe64SourceEditorExplanationPath,u as VIBE64_SOURCE_EDITOR_SYNC_ERROR_EVENT}from"./vibe64SessionRequestConfig-DVRCRAex.js";import{c as vibe64AssistantSelectionLabel,h as vibe64AgentExecutionProfileAuditSnapshot}from"./shared-X5MxTHwl.js";import{d as Vibe64StarredFilesList_default,f as markdownDocumentLinkTarget,g as sourcePathReferenceAtLineColumn,h as sourceEditorLinkTarget,m as normalizeSourceEditorPath,p as normalizeSourceEditorDirectoryPaths,s as _sfc_main$10}from"./Vibe64ConversationLog-DlwCuaVi.js";import{n as vibe64ApiResponseError,t as vibe64ApiError}from"./vibe64ApiResponses-DuJ9mfus.js";import{n as stableLocalStorageKeyPart,r as writeLocalStorageJson,t as readLocalStorageJson}from"./browserLocalStorage-B4C7rHrs.js";import{t as writeClipboardText}from"./clipboard-CZs9aH3L.js";import{X as usePageActivity,d as F,u as GithubMarkdown_default}from"./index-Btrr1DGq.js";import{$ as rectangularSelection,A as foldService,B as tags$1,C as continuedIndent,Ct as NodeWeakMap,D as flatIndent,E as delimitedIndent,Et as parseMixed,F as sublanguageProp,G as drawSelection,H as EditorView,I as syntaxHighlighting,J as getPanel,K as dropCursor,L as syntaxTree,M as indentOnInput,N as indentUnit,O as foldInside,P as languageDataProp,Q as lineNumbers,R as Tag,S as bracketMatchingHandle,St as NodeType,T as defineLanguageFacet,Tt as Tree,U as ViewPlugin,V as Decoration,W as crosshairCursor,X as highlightActiveLineGutter,Z as keymap,_ as LanguageDescription,_t as findClusterBreak,a as redo,at as Compartment,b as StreamLanguage,bt as NodeProp,c as completeFromList,ct as Facet,d as ContextTracker,dt as StateEffect,et as runScopeHandlers,f as ExternalTokenizer,ft as StateField,g as Language,gt as countColumn,h as LRLanguage,ht as combineConfig,i as indentWithTab,it as CharCategory,j as indentNodeProp,k as foldNodeProp,l as ifNotIn,lt as Prec,m as LocalTokenGroup,mt as codePointSize,n as history,nt as showPanel,o as undo,ot as EditorSelection,p as LRParser,pt as codePointAt,q as getDialog,r as historyKeymap,rt as crelt,s as CompletionContext,st as EditorState,t as defaultKeymap,tt as showDialog,u as snippetCompletion,ut as RangeSetBuilder,v as LanguageSupport,vt as fromCodePoint,w as defaultHighlightStyle,wt as Parser,x as bracketMatching,xt as NodeSet,y as ParseContext,yt as IterMode,z as styleTags}from"./dist-CDa9Iec1.js";import{r as useVibe64SystemGraph}from"./client-BTq67t0Y.js";import{n as vibe64SessionDebugError,r as vibe64SessionDebugLog}from"./vibe64SessionDebugLog-BfO7tG1A.js";import{a as vibe64FileArea,i as vibe64DroppedFiles,n as Vibe64ImagePreview_default,t as filePreviewImageType}from"./fileTypes-DRyfajWx.js";import{t as diffLines}from"./libesm-CR-iGldz.js";import{t as downloadAttachment}from"./vibe64AttachmentDownload-BWRCIKUr.js";var _hoisted_1$8={class:`source-interface`,"aria-label":`File public interface`};var _hoisted_2$7={class:`source-interface__heading`};var _hoisted_3$7={class:`source-interface__modes`};var _hoisted_4$7={class:`source-interface__overview`,"aria-label":`File explanation`};var _hoisted_5$6={class:`source-interface__field-heading`};var _hoisted_6$5={key:2,class:`source-interface__hint`};var _hoisted_7$5={key:3,class:`source-interface__membership`,"aria-label":`Program membership`};var _hoisted_8$5={key:0,class:`source-interface__main`};var _hoisted_9$5={key:1};var _hoisted_10$4=[`onClick`];var _hoisted_11$4={key:4,class:`source-interface__hint`,role:`status`};var _hoisted_12$2=[`title`];var _hoisted_13$2={key:5,class:`source-interface__analysis`};var _hoisted_14$1={key:0,class:`source-interface__hint`};var _hoisted_15$1={key:1,class:`source-interface__hint`};var _hoisted_16$1={class:`source-interface__layout`};var _hoisted_17$1={class:`source-interface__symbols`,"aria-label":`Exported and public symbols`};var _hoisted_18=[`data-symbol-id`,`disabled`,`aria-pressed`,`onClick`];var _hoisted_19=[`title`];var _hoisted_20={key:0};var _hoisted_21={key:1};var _hoisted_22={key:0,class:`source-interface__detail`,"aria-label":`Selected symbol`};var _hoisted_23={key:0,class:`source-interface__hint`};var _hoisted_24={class:`source-interface__modes`,"aria-label":`Symbol presentation`};var _hoisted_25={key:0};var _hoisted_26={key:1,class:`source-interface__hint`};var _hoisted_27={key:2,class:`source-interface__code`};var _hoisted_28={key:0,class:`source-interface__hint`};var _hoisted_29={key:3,class:`source-interface__hint`};var _hoisted_30={key:0,class:`source-interface__hint`};var _sfc_main$9={__name:`Vibe64SourceInterface`,props:{filePath:{type:String,default:``},fileHash:{type:String,default:``},analysisError:{type:String,default:``},symbols:{type:Array,default:()=>[]},programs:{type:Array,default:()=>[]},programStatus:{type:String,default:``},interpretations:{type:Array,default:()=>[]},interpretationWarning:{type:String,default:``},activeInterpretation:Boolean,activeFileInterpretation:Boolean,selectedId:{type:String,default:``},current:Boolean,indexed:Boolean,dirty:Boolean,busy:Boolean,assistantAvailable:Boolean,assistantUnavailableMessage:{type:String,default:``},source:{type:String,default:``},presentation:{type:String,default:`description`},coverage:{type:String,default:`Partial static coverage`}},emits:[`select-symbol`,`present-symbol`,`explain-file`,`whole-file-code`,`open-source`,`open-program`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const orderedPrograms=computed(()=>[...props.programs.filter(program=>program.mainSource===props.filePath),...props.programs.filter(program=>program.mainSource!==props.filePath)]);function openProgramLink(payload={}){const target=sourceEditorLinkTarget(payload);if(!target)return;payload.event.preventDefault();const program=props.programs.find(program=>program.path===target.path);if(program)emit(`open-program`,program.id);else emit(`open-source`,target)}const selectedSymbol=computed(()=>props.symbols.find(symbol=>symbol.id===props.selectedId));const explanationDisabled=computed(()=>props.busy||props.dirty||!props.assistantAvailable);function signature(symbol){return(symbol.qualifiedName||symbol.name)+(Array.isArray(symbol.parameters)?`(${symbol.parameters.join(`, `)})`:``)}function saved(scope,symbolId,presentation){return props.interpretations.find(record=>record.path===props.filePath&&record.scope===scope&&(record.symbolId||``)===symbolId&&record.presentation===presentation)}function isCurrentInterpretation(record){return record.status===`current`&&record.fileHash===props.fileHash&&!props.dirty}const selectedInterpretation=computed(()=>saved(`selection`,selectedSymbol.value?.id||``,`steps`));const fileInterpretation=computed(()=>saved(`file`,``,`description`));const interpretationBlocks=computed(()=>parseLongTextReviewBlocks(selectedInterpretation.value?.body||``));return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$8,[createBaseVNode(`header`,_hoisted_2$7,[createBaseVNode(`h3`,null,toDisplayString(__props.filePath?.split(`/`).pop()),1),createBaseVNode(`div`,_hoisted_3$7,[createVNode(VBtn,{size:`small`,variant:`text`,onClick:_cache[0]||(_cache[0]=$event=>_ctx.$emit(`whole-file-code`))},{default:withCtx(()=>[..._cache[5]||(_cache[5]=[createTextVNode(`Code · whole file`,-1)])]),_:1})]),createBaseVNode(`p`,null,toDisplayString(__props.filePath),1)]),__props.analysisError?(openBlock(),createBlock(VAlert,{key:0,type:`error`,variant:`tonal`,class:`mb-3`},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.analysisError),1)]),_:1})):createCommentVNode(``,true),__props.dirty?(openBlock(),createBlock(VAlert,{key:1,type:`info`,variant:`tonal`,class:`mb-3`},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(`This file has unsaved edits. Save before generating an explanation or using indexed symbol ranges.`,-1)])]),_:1})):!__props.current?(openBlock(),createBlock(VAlert,{key:2,type:`info`,variant:`tonal`,class:`mb-3`},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.indexed?`Index out of date.`:`Symbols not indexed.`)+` Open whole-file Code. Update the index from Architecture → ⋯.`,1)]),_:1})):createCommentVNode(``,true),createBaseVNode(`section`,_hoisted_4$7,[createBaseVNode(`header`,_hoisted_5$6,[_cache[7]||(_cache[7]=createBaseVNode(`h4`,null,`Explanation`,-1)),fileInterpretation.value?(openBlock(),createElementBlock(`span`,{key:0,class:normalizeClass([`source-interface__freshness`,{"source-interface__freshness--stale":!isCurrentInterpretation(fileInterpretation.value)}])},toDisplayString(isCurrentInterpretation(fileInterpretation.value)?`Saved`:`Out of date`),3)):createCommentVNode(``,true),createVNode(VBtn,{size:`small`,variant:`text`,disabled:explanationDisabled.value,onClick:_cache[1]||(_cache[1]=$event=>_ctx.$emit(`explain-file`,Boolean(fileInterpretation.value)))},{default:withCtx(()=>[createTextVNode(toDisplayString(fileInterpretation.value?`Update explanation`:`Generate explanation`),1)]),_:1},8,[`disabled`])]),createBaseVNode(`div`,{class:normalizeClass([`source-interface__explanation`,{"source-interface__explanation--empty":!fileInterpretation.value&&!__props.activeFileInterpretation}])},[__props.activeFileInterpretation?renderSlot(_ctx.$slots,`explanation`,{savedBody:fileInterpretation.value?.body||``},void 0,true,0):fileInterpretation.value?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:1,blocks:unref(parseLongTextReviewBlocks)(fileInterpretation.value.body),onLinkClick:openProgramLink},null,8,[`blocks`])):(openBlock(),createElementBlock(`p`,_hoisted_6$5,toDisplayString(!__props.assistantAvailable?`Choose an Explain & check model in Models to generate an explanation.`:`No explanation yet.`),1))],2)]),__props.programs.length?(openBlock(),createElementBlock(`nav`,_hoisted_7$5,[(openBlock(true),createElementBlock(Fragment,null,renderList(orderedPrograms.value,program=>{return openBlock(),createElementBlock(`span`,{key:program.id},[program.mainSource===__props.filePath?(openBlock(),createElementBlock(`small`,_hoisted_8$5,`Main Program file`)):(openBlock(),createElementBlock(`span`,_hoisted_9$5,`Part of `)),createBaseVNode(`button`,{type:`button`,onClick:$event=>_ctx.$emit(`open-program`,program.id)},toDisplayString(program.title)+` →`,9,_hoisted_10$4)])}),128))])):createCommentVNode(``,true),__props.interpretationWarning?(openBlock(),createElementBlock(`p`,_hoisted_11$4,toDisplayString(__props.interpretationWarning),1)):createCommentVNode(``,true),createBaseVNode(`h4`,{class:`source-interface__exports-heading`,title:`${__props.coverage}. File exports may be internal to the subsystem. Unrecorded returns are omitted.`},[_cache[8]||(_cache[8]=createTextVNode(`File exports `,-1)),createBaseVNode(`span`,null,toDisplayString(__props.symbols.length),1)],8,_hoisted_12$2),__props.programStatus!==`valid`||!__props.assistantAvailable?(openBlock(),createElementBlock(`details`,_hoisted_13$2,[_cache[9]||(_cache[9]=createBaseVNode(`summary`,null,`Analysis details`,-1)),__props.programStatus!==`valid`?(openBlock(),createElementBlock(`p`,_hoisted_14$1,`Program unavailable.`)):createCommentVNode(``,true),!__props.assistantAvailable?(openBlock(),createElementBlock(`p`,_hoisted_15$1,toDisplayString(__props.assistantUnavailableMessage||`Source explanations are unavailable.`),1)):createCommentVNode(``,true)])):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_16$1,[createBaseVNode(`nav`,_hoisted_17$1,[(openBlock(true),createElementBlock(Fragment,null,renderList(__props.symbols,symbol=>{return openBlock(),createElementBlock(`div`,{key:symbol.id,class:`source-interface__symbol-row`},[createBaseVNode(`button`,{class:normalizeClass([`source-interface__symbol`,{"source-interface__symbol--selected":symbol.id===__props.selectedId}]),type:`button`,"data-symbol-id":symbol.id,disabled:!__props.current||__props.dirty,"aria-pressed":symbol.id===__props.selectedId,onClick:$event=>_ctx.$emit(`select-symbol`,symbol.id)},[createBaseVNode(`small`,null,toDisplayString(symbol.kind),1),createBaseVNode(`code`,{title:signature(symbol)},toDisplayString(signature(symbol)),9,_hoisted_19),symbol.returnType?(openBlock(),createElementBlock(`span`,_hoisted_20,`Returns: `+toDisplayString(symbol.returnType),1)):createCommentVNode(``,true),!symbol.rangeAvailable||symbol.visibilityScope&&symbol.visibilityScope!==`public`?(openBlock(),createElementBlock(`span`,_hoisted_21,toDisplayString(symbol.rangeAvailable?``:`Range unavailable`)+toDisplayString(symbol.visibilityScope&&symbol.visibilityScope!==`public`?` · Visibility: ${symbol.visibilityScope}`:``),1)):createCommentVNode(``,true)],10,_hoisted_18),symbol.id===__props.selectedId?(openBlock(),createElementBlock(`section`,_hoisted_22,[selectedSymbol.value.returnType?(openBlock(),createElementBlock(`p`,_hoisted_23,`Returns: `+toDisplayString(selectedSymbol.value.returnType),1)):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_24,[Array.isArray(selectedSymbol.value.parameters)?(openBlock(),createElementBlock(`h4`,_hoisted_25,`Pseudocode`)):createCommentVNode(``,true),__props.presentation===`code`&&selectedInterpretation.value?(openBlock(),createBlock(VBtn,{key:1,size:`small`,variant:`text`,onClick:_cache[2]||(_cache[2]=$event=>_ctx.$emit(`select-symbol`,__props.selectedId))},{default:withCtx(()=>[..._cache[10]||(_cache[10]=[createTextVNode(`Pseudocode`,-1)])]),_:1})):createCommentVNode(``,true),Array.isArray(selectedSymbol.value.parameters)?(openBlock(),createBlock(VBtn,{key:2,size:`small`,variant:`text`,disabled:!selectedSymbol.value.rangeAvailable||!__props.current||__props.dirty||explanationDisabled.value,onClick:_cache[3]||(_cache[3]=$event=>_ctx.$emit(`present-symbol`,`steps`,Boolean(selectedInterpretation.value)))},{default:withCtx(()=>[createTextVNode(toDisplayString(selectedInterpretation.value?`Update pseudocode`:`Generate pseudocode`),1)]),_:1},8,[`disabled`])):createCommentVNode(``,true),createVNode(VBtn,{size:`small`,variant:`text`,disabled:!selectedSymbol.value.rangeAvailable||!__props.current||__props.dirty,onClick:_cache[4]||(_cache[4]=$event=>_ctx.$emit(`present-symbol`,`code`))},{default:withCtx(()=>[..._cache[11]||(_cache[11]=[createTextVNode(`Code`,-1)])]),_:1},8,[`disabled`])]),Array.isArray(selectedSymbol.value.parameters)&&!__props.assistantAvailable&&!saved(`selection`,__props.selectedId,`steps`)?(openBlock(),createElementBlock(`p`,_hoisted_26,`Pseudocode needs an Explain & check model.`)):createCommentVNode(``,true),__props.presentation===`code`?(openBlock(),createElementBlock(`pre`,_hoisted_27,[createBaseVNode(`code`,null,toDisplayString(__props.source),1)])):Array.isArray(selectedSymbol.value.parameters)?(openBlock(),createElementBlock(Fragment,{key:3},[selectedInterpretation.value?(openBlock(),createElementBlock(`p`,_hoisted_28,toDisplayString(isCurrentInterpretation(selectedInterpretation.value)?`Saved · matches source`:`Out of date · source or guidance changed`),1)):createCommentVNode(``,true),__props.activeInterpretation?renderSlot(_ctx.$slots,`explanation`,{savedBody:selectedInterpretation.value?.body||``},void 0,true,1):selectedInterpretation.value?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:2,blocks:interpretationBlocks.value,onLinkClick:openProgramLink},null,8,[`blocks`])):(openBlock(),createElementBlock(`p`,_hoisted_29,`No pseudocode yet.`))],64)):createCommentVNode(``,true)])):createCommentVNode(``,true)])}),128)),!__props.symbols.length?(openBlock(),createElementBlock(`p`,_hoisted_30,toDisplayString(__props.current?`No exports recorded; analysis may be incomplete.`:`Open whole-file Code.`),1)):createCommentVNode(``,true)])])])}}};var Vibe64SourceInterface_default=_plugin_vue_export_helper_default(_sfc_main$9,[[`__scopeId`,`data-v-8aeba7e1`]]);function basename(filePath=``){return String(filePath||``).split(`/`).at(-1)||filePath}function sourceEditorPathIsMarkdown(filePath=``){const lowerPath=String(filePath||``).toLowerCase();return/\.(md|markdown|todo)$/u.test(lowerPath)||/(^|\/)todo$/u.test(lowerPath)}var _hoisted_1$7={class:`vibe64-source-editor__tools`};var _hoisted_2$6={class:`vibe64-source-editor__tool`};var _hoisted_3$6={key:0,class:`vibe64-source-editor__matches`};var _hoisted_4$6={key:0,class:`vibe64-source-editor__match-note`};var _hoisted_5$5={key:1,class:`vibe64-source-editor__match-note vibe64-source-editor__match-note--error`};var _hoisted_6$4=[`title`,`onClick`];var _hoisted_7$4={class:`vibe64-source-editor__match-name`};var _hoisted_8$4={class:`vibe64-source-editor__match-path`};var _hoisted_9$4={key:0,class:`vibe64-source-editor__match-note`};var _hoisted_10$3={key:1,class:`vibe64-source-editor__match-note`};var _hoisted_11$3={class:`vibe64-source-editor__tool`};var _sfc_main$8={__name:`Vibe64SourceEditorFinder`,props:{editor:{type:Object,required:true}},setup(__props){const props=__props;const fastOpenPanelVisible=computed(()=>Boolean(props.editor.fileQuery.value));return(_ctx,_cache)=>{return openBlock(),createElementBlock(`div`,_hoisted_1$7,[createBaseVNode(`div`,_hoisted_2$6,[createVNode(VTextField,{autocomplete:`off`,clearable:``,density:`compact`,"hide-details":``,label:`Open file`,"model-value":__props.editor.fileQuery.value,"prepend-inner-icon":`$findInPage`,variant:`outlined`,onKeydown:withKeys(withModifiers(__props.editor.openFirstFileMatch,[`prevent`]),[`enter`]),"onUpdate:modelValue":__props.editor.updateFileQuery},null,8,[`model-value`,`onKeydown`,`onUpdate:modelValue`]),fastOpenPanelVisible.value?(openBlock(),createElementBlock(`div`,_hoisted_3$6,[__props.editor.fileMatchesLoading.value?(openBlock(),createElementBlock(`div`,_hoisted_4$6,` Finding files... `)):__props.editor.fileMatchesError.value?(openBlock(),createElementBlock(`div`,_hoisted_5$5,toDisplayString(__props.editor.fileMatchesError.value),1)):(openBlock(),createElementBlock(Fragment,{key:2},[(openBlock(true),createElementBlock(Fragment,null,renderList(__props.editor.fileMatches.value,file=>{return openBlock(),createElementBlock(`button`,{key:file.path,class:`vibe64-source-editor__match`,title:file.path,type:`button`,onClick:$event=>__props.editor.openFileMatch(file.path)},[createBaseVNode(`span`,_hoisted_7$4,toDisplayString(file.name||unref(basename)(file.path)),1),createBaseVNode(`span`,_hoisted_8$4,toDisplayString(file.path),1)],8,_hoisted_6$4)}),128)),!__props.editor.fileMatches.value.length?(openBlock(),createElementBlock(`div`,_hoisted_9$4,` No matching files. `)):createCommentVNode(``,true),__props.editor.fileMatchesTruncated.value?(openBlock(),createElementBlock(`div`,_hoisted_10$3,` Keep typing to narrow the list. `)):createCommentVNode(``,true)],64))])):createCommentVNode(``,true)]),createBaseVNode(`div`,_hoisted_11$3,[createVNode(VTextField,{autocomplete:`off`,clearable:``,density:`compact`,"hide-details":``,label:`Find in files`,"model-value":__props.editor.searchQuery.value,"prepend-inner-icon":`$search`,variant:`outlined`,onKeydown:_cache[0]||(_cache[0]=withKeys(withModifiers($event=>__props.editor.openSearchResult(__props.editor.searchResults.value[0]),[`prevent`]),[`enter`])),"onUpdate:modelValue":__props.editor.updateSearchQuery},null,8,[`model-value`,`onUpdate:modelValue`])])])}}};var Vibe64SourceEditorFinder_default=_plugin_vue_export_helper_default(_sfc_main$8,[[`__scopeId`,`data-v-73b8ab75`]]);var _hoisted_1$6={class:`vibe64-source-editor__header`};var _hoisted_2$5={class:`vibe64-source-editor__title`};var _hoisted_3$5=[`title`];var _hoisted_4$5={key:4,class:`vibe64-source-editor__mobile-actions`};var _hoisted_5$4={key:5,class:`vibe64-source-editor__actions`};var _sfc_main$7={__name:`Vibe64SourceEditorHeader`,props:mergeModels({assistantAvailable:{type:Boolean,default:true},assistantUnavailableMessage:{type:String,default:``},codeFocusMode:{type:Boolean,default:false},displayedPath:{type:String,default:``},downloadingPath:{type:String,default:``},editor:{type:Object,required:true},fileBookmarks:{type:Object,default:null},markdownRenderable:{type:Boolean,default:false},mobile:{type:Boolean,default:false},selectedFileName:{type:String,default:``},singleFile:{type:Boolean,default:false},svgRenderable:{type:Boolean,default:false}},{"fileListCollapsed":{type:Boolean,default:false},"fileListCollapsedModifiers":{},"filePresentation":{type:String,default:`interface`},"filePresentationModifiers":{}}),emits:mergeModels([`command`,`download`,`explain`,`refresh`],[`update:fileListCollapsed`,`update:filePresentation`]),setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const fileListCollapsed=useModel(__props,`fileListCollapsed`);const filePresentation=useModel(__props,`filePresentation`);const selectedStarred=computed(()=>props.fileBookmarks?.paths.value.includes(props.displayedPath)||false);return(_ctx,_cache)=>{return openBlock(),createElementBlock(`header`,_hoisted_1$6,[!__props.singleFile&&__props.mobile&&!__props.codeFocusMode?(openBlock(),createBlock(VBtn,{key:0,"aria-expanded":!fileListCollapsed.value,"aria-label":fileListCollapsed.value?`Show files`:`Hide files`,icon:fileListCollapsed.value?`$folder`:`$close`,variant:`text`,onClick:_cache[0]||(_cache[0]=$event=>fileListCollapsed.value=!fileListCollapsed.value)},null,8,[`aria-expanded`,`aria-label`,`icon`])):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_2$5,[!__props.mobile?(openBlock(),createBlock(VIcon,{key:0,icon:`$codeBlocks`,size:`19`})):createCommentVNode(``,true),createBaseVNode(`h2`,{title:__props.editor.loadingPath.value||__props.displayedPath||`Choose a source file`},toDisplayString(__props.selectedFileName),9,_hoisted_3$5)]),__props.editor.selectedPath.value&&__props.markdownRenderable?(openBlock(),createBlock(VBtn,{key:1,variant:`text`,title:filePresentation.value===`rendered`?`Show the Markdown source`:`Show the formatted document`,onClick:_cache[1]||(_cache[1]=$event=>filePresentation.value=filePresentation.value===`rendered`?`code`:`rendered`)},{default:withCtx(()=>[createTextVNode(toDisplayString(filePresentation.value===`rendered`?`Markdown`:`Rendered`),1)]),_:1},8,[`title`])):__props.editor.selectedPath.value&&__props.svgRenderable?(openBlock(),createBlock(VBtn,{key:2,variant:`text`,title:filePresentation.value===`rendered`?`Show the SVG source`:`Show the image`,onClick:_cache[2]||(_cache[2]=$event=>filePresentation.value=filePresentation.value===`rendered`?`code`:`rendered`)},{default:withCtx(()=>[createTextVNode(toDisplayString(filePresentation.value===`rendered`?`SVG source`:`Image`),1)]),_:1},8,[`title`])):__props.editor.selectedPath.value?(openBlock(),createBlock(VBtn,{key:3,variant:`text`,onClick:_cache[3]||(_cache[3]=$event=>filePresentation.value=filePresentation.value===`code`?`interface`:`code`)},{default:withCtx(()=>[createTextVNode(toDisplayString(filePresentation.value===`code`?`Interface`:`Code`),1)]),_:1})):createCommentVNode(``,true),__props.mobile?(openBlock(),createElementBlock(`div`,_hoisted_4$5,[createVNode(VBtn,{disabled:!__props.editor.dirty.value||__props.editor.saving.value,"aria-label":__props.editor.saving.value?`Saving file`:`Save now`,icon:`$save`,variant:`tonal`,onClick:__props.editor.saveNow},null,8,[`disabled`,`aria-label`,`onClick`]),createVNode(VMenu,null,{activator:withCtx(({props:menuProps})=>[createVNode(VBtn,mergeProps(menuProps,{icon:`$moreVert`,"aria-label":`File actions`,variant:`text`}),null,16)]),default:withCtx(()=>[createVNode(VList,{density:`compact`},{default:withCtx(()=>[__props.editor.statusLabel.value?(openBlock(),createBlock(VListItem,{key:0,title:__props.editor.statusLabel.value,class:normalizeClass({"text-error":__props.editor.saveError.value})},null,8,[`title`,`class`])):createCommentVNode(``,true),__props.fileBookmarks?(openBlock(),createBlock(VListItem,{key:1,title:selectedStarred.value?`Unstar file`:`Star file`,"prepend-icon":selectedStarred.value?`$starFilled`:`$star`,disabled:!__props.displayedPath||__props.fileBookmarks.pendingPaths.value.includes(__props.displayedPath),onClick:_cache[4]||(_cache[4]=$event=>__props.fileBookmarks.toggle(__props.displayedPath))},null,8,[`title`,`prepend-icon`,`disabled`])):createCommentVNode(``,true),createVNode(VListItem,{title:`Download file`,"prepend-icon":`$download`,disabled:!__props.displayedPath||__props.editor.loadingFile.value||Boolean(__props.downloadingPath),onClick:_cache[5]||(_cache[5]=$event=>emit(`download`,__props.displayedPath))},null,8,[`disabled`]),createVNode(VListItem,{title:`Undo`,"prepend-icon":`$undo`,disabled:!__props.editor.selectedPath.value,onClick:_cache[6]||(_cache[6]=$event=>emit(`command`,`undo`))},null,8,[`disabled`]),createVNode(VListItem,{title:`Redo`,"prepend-icon":`$redo`,disabled:!__props.editor.selectedPath.value,onClick:_cache[7]||(_cache[7]=$event=>emit(`command`,`redo`))},null,8,[`disabled`]),!__props.singleFile?(openBlock(),createBlock(VListItem,{key:2,title:`Explain file or selection`,"prepend-icon":`$smartToy`,disabled:!__props.assistantAvailable||!__props.editor.selectedPath.value||__props.editor.explanationBusy.value||__props.editor.explanationClosing.value,onClick:_cache[8]||(_cache[8]=$event=>emit(`explain`))},null,8,[`disabled`])):createCommentVNode(``,true),createVNode(VListItem,{title:`Refresh files`,"prepend-icon":`$refresh`,disabled:__props.editor.loadingTree.value,onClick:_cache[9]||(_cache[9]=$event=>emit(`refresh`))},null,8,[`disabled`])]),_:1})]),_:1})])):(openBlock(),createElementBlock(`div`,_hoisted_5$4,[__props.fileBookmarks?(openBlock(),createBlock(VBtn,{key:0,"aria-label":selectedStarred.value?`Unstar file`:`Star file`,"aria-pressed":selectedStarred.value,disabled:!__props.displayedPath||__props.fileBookmarks.pendingPaths.value.includes(__props.displayedPath),icon:selectedStarred.value?`$starFilled`:`$star`,size:`small`,title:selectedStarred.value?`Unstar file`:`Star file`,variant:`text`,onClick:_cache[10]||(_cache[10]=$event=>__props.fileBookmarks.toggle(__props.displayedPath))},null,8,[`aria-label`,`aria-pressed`,`disabled`,`icon`,`title`])):createCommentVNode(``,true),createVNode(VBtn,{"aria-label":`Download file`,disabled:!__props.displayedPath||__props.editor.loadingFile.value||Boolean(__props.downloadingPath),icon:`$download`,size:`small`,title:__props.downloadingPath?`Downloading file…`:`Download file`,variant:`text`,onClick:_cache[11]||(_cache[11]=$event=>emit(`download`,__props.displayedPath))},null,8,[`disabled`,`title`]),__props.editor.statusLabel.value?(openBlock(),createElementBlock(`span`,{key:1,class:normalizeClass([`vibe64-source-editor__status`,{"vibe64-source-editor__status--error":__props.editor.saveError.value}])},toDisplayString(__props.editor.statusLabel.value),3)):createCommentVNode(``,true),createVNode(VBtn,{disabled:!__props.editor.selectedPath.value,icon:`$undo`,size:`small`,title:`Undo`,type:`button`,variant:`text`,onClick:_cache[12]||(_cache[12]=$event=>emit(`command`,`undo`))},null,8,[`disabled`]),createVNode(VBtn,{disabled:!__props.editor.selectedPath.value,icon:`$redo`,size:`small`,title:`Redo`,type:`button`,variant:`text`,onClick:_cache[13]||(_cache[13]=$event=>emit(`command`,`redo`))},null,8,[`disabled`]),createVNode(VBtn,{disabled:!__props.editor.dirty.value||__props.editor.saving.value,icon:`$save`,loading:__props.editor.saving.value,size:`small`,title:`Save now`,type:`button`,variant:`tonal`,onClick:__props.editor.saveNow},null,8,[`disabled`,`loading`,`onClick`]),!__props.singleFile?(openBlock(),createBlock(VBtn,{key:2,class:`vibe64-source-editor__explain-button`,"aria-busy":__props.editor.explanationBusy.value||__props.editor.explanationClosing.value?`true`:`false`,color:`primary`,disabled:!__props.assistantAvailable||!__props.editor.selectedPath.value||__props.editor.explanationBusy.value||__props.editor.explanationClosing.value,"prepend-icon":`$smartToy`,size:`small`,title:!__props.assistantAvailable?__props.assistantUnavailableMessage:__props.editor.explanationClosing.value?`Closing explanation`:__props.editor.explanationBusy.value?`Explanation in progress`:`Explain file or selection`,type:`button`,variant:`tonal`,onClick:_cache[14]||(_cache[14]=$event=>emit(`explain`))},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.editor.explanationClosing.value?`Closing…`:__props.editor.explanationBusy.value?`Working…`:`Explain`),1)]),_:1},8,[`aria-busy`,`disabled`,`title`])):createCommentVNode(``,true),!__props.singleFile?(openBlock(),createBlock(VBtn,{key:3,disabled:__props.editor.loadingTree.value,icon:`$refresh`,"aria-busy":__props.editor.loadingTree.value,size:`small`,title:`Refresh files`,type:`button`,variant:`text`,onClick:_cache[15]||(_cache[15]=$event=>emit(`refresh`))},null,8,[`disabled`,`aria-busy`])):createCommentVNode(``,true)]))])}}};var Vibe64SourceEditorHeader_default=_plugin_vue_export_helper_default(_sfc_main$7,[[`__scopeId`,`data-v-d01db8ff`]]);var _hoisted_1$5={class:`vibe64-source-editor__side-rail`,type:`button`};var _sfc_main$6={__name:`Vibe64SourceEditorSideRail`,props:{icon:{type:String,required:true},label:{type:String,required:true}},setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`button`,_hoisted_1$5,[createVNode(VIcon,{icon:__props.icon,size:`22`},null,8,[`icon`]),createBaseVNode(`span`,null,toDisplayString(__props.label),1)])}}};var Vibe64SourceEditorSideRail_default=_plugin_vue_export_helper_default(_sfc_main$6,[[`__scopeId`,`data-v-7ad69f2d`]]);var _hoisted_1$4={class:`vibe64-source-tree`};var _hoisted_2$4={class:`vibe64-source-tree__row`};var _hoisted_3$4=[`data-vibe64-guide-path`,`title`,`onClick`];var _hoisted_4$4=[`title`,`onClick`];var _hoisted_5$3={key:1,class:`vibe64-source-tree__chevron-spacer`,"aria-hidden":`true`};var _hoisted_6$3={key:0,class:`vibe64-source-tree__directory`};var _hoisted_7$3={key:0,class:`vibe64-source-tree__notice`};var _hoisted_8$3={key:1,class:`vibe64-source-tree__notice vibe64-source-tree__notice--error`};var _hoisted_9$3={key:2,class:`vibe64-source-tree__notice`};var _hoisted_10$2={key:0,class:`vibe64-source-tree__item`};var _hoisted_11$2=[`disabled`,`title`];var _hoisted_12$1={key:0};var _hoisted_13$1={key:1};var _sfc_main$5={__name:`Vibe64SourceFileTree`,props:{starredPaths:{type:Array,default:()=>[]},expandedPaths:{default:()=>[],type:Array},loadErrors:{default:()=>({}),type:Object},loadingPaths:{default:()=>[],type:Array},node:{default:null,type:Object},selectedPath:{default:``,type:String},assistantDraftAvailable:{default:false,type:Boolean},filesActions:{default:false,type:Boolean}},emits:[`ask-assistant`,`copy-path`,`directory-open-change`,`download-file`,`load-more-directory`,`new-file`,`open-file`,`toggle-star`,`transfer`,`upload`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const nodes=computed(()=>Array.isArray(props.node?.children)?props.node.children:[]);const nodeHasMore=computed(()=>props.node?.hasMore===true);const currentNodeLoading=computed(()=>pathLoading(props.node?.path||``));const nextHiddenNodeCount=computed(()=>{const loadedCount=nodes.value.length;const totalCount=Number(props.node?.total||0);const pageSize=Number(props.node?.limit||0);return totalCount>loadedCount?Math.min(pageSize,totalCount-loadedCount):pageSize});const nodeLabel=computed(()=>props.node?.path||props.node?.name||`source`);const expandedPathSet=computed(()=>new Set((Array.isArray(props.expandedPaths)?props.expandedPaths:[]).map(path=>normalizeSourceEditorPath(path)).filter(Boolean)));const loadingPathSet=computed(()=>new Set((Array.isArray(props.loadingPaths)?props.loadingPaths:[]).map(path=>normalizeSourceEditorPath(path))));function directoryExpandable(node={}){return node.type===`directory`&&(node.loaded!==true||node.hasMore===true||Array.isArray(node.children)&&node.children.length>0)}function directoryKey(node={}){return normalizeSourceEditorPath(node.path||node.name||``)}function directoryOpen(node={}){return expandedPathSet.value.has(directoryKey(node))}function pathLoading(path=``){return loadingPathSet.value.has(normalizeSourceEditorPath(path))}function directoryLoading(node={}){return pathLoading(directoryKey(node))}function directoryLoadError(node={}){return String(props.loadErrors?.[directoryKey(node)]||``)}function directoryChildCount(node={}){return Array.isArray(node.children)?node.children.length:0}function toggleDirectory(node={}){const key=directoryKey(node);if(!key)return;emit(`directory-open-change`,{open:!directoryOpen(node),path:key})}function showMore(){emit(`load-more-directory`,props.node?.path||``)}return(_ctx,_cache)=>{const _component_Vibe64SourceFileTree=resolveComponent(`Vibe64SourceFileTree`,true);return openBlock(),createElementBlock(`ul`,_hoisted_1$4,[(openBlock(true),createElementBlock(Fragment,null,renderList(nodes.value,child=>{return openBlock(),createElementBlock(`li`,{key:child.path||child.name,class:`vibe64-source-tree__item`},[createBaseVNode(`div`,_hoisted_2$4,[child.type===`file`?(openBlock(),createElementBlock(`button`,{key:0,class:normalizeClass([`vibe64-source-tree__button`,{"vibe64-source-tree__button--active":child.path===__props.selectedPath}]),"data-vibe64-guide-path":child.path||void 0,title:child.path||child.name||`source`,type:`button`,onClick:$event=>emit(`open-file`,child.path)},[createVNode(VIcon,{icon:`$description`,size:`15`}),createBaseVNode(`span`,null,toDisplayString(child.name),1),__props.starredPaths.includes(child.path)?(openBlock(),createBlock(VIcon,{key:0,icon:`$starFilled`,size:`14`,"aria-label":`Starred`})):createCommentVNode(``,true)],10,_hoisted_3$4)):(openBlock(),createElementBlock(`button`,{key:1,class:`vibe64-source-tree__button vibe64-source-tree__button--directory`,title:child.path||child.name||`source`,type:`button`,onClick:$event=>toggleDirectory(child)},[directoryExpandable(child)?(openBlock(),createBlock(VIcon,{key:0,class:normalizeClass([`vibe64-source-tree__chevron`,{"vibe64-source-tree__chevron--open":directoryOpen(child)}]),icon:`$chevronRight`,size:`14`},null,8,[`class`])):(openBlock(),createElementBlock(`span`,_hoisted_5$3)),createVNode(VIcon,{icon:`$folder`,size:`15`}),createBaseVNode(`span`,null,toDisplayString(child.name||`source`),1)],8,_hoisted_4$4)),createVNode(VMenu,{location:`bottom end`},{activator:withCtx(({props:activatorProps})=>[createVNode(VBtn,mergeProps({ref_for:true},activatorProps,{"aria-label":`Actions for ${child.path||child.name||`source`}`,class:`vibe64-source-tree__menu-button`,icon:`$moreVert`,size:`x-small`,title:`Actions for ${child.path||child.name||`source`}`,type:`button`,variant:`text`,onClick:_cache[0]||(_cache[0]=withModifiers(()=>{},[`stop`]))}),null,16,[`aria-label`,`title`])]),default:withCtx(()=>[createVNode(VList,{class:`vibe64-source-tree__menu`,density:`compact`},{default:withCtx(()=>[child.type===`file`?(openBlock(),createBlock(VListItem,{key:0,"prepend-icon":__props.starredPaths.includes(child.path)?`$starFilled`:`$star`,title:__props.starredPaths.includes(child.path)?`Unstar file`:`Star file`,onClick:$event=>emit(`toggle-star`,child.path)},null,8,[`prepend-icon`,`title`,`onClick`])):createCommentVNode(``,true),child.type===`file`?(openBlock(),createBlock(VListItem,{key:1,"prepend-icon":`$download`,title:`Download file`,onClick:$event=>emit(`download-file`,child.path)},null,8,[`onClick`])):createCommentVNode(``,true),child.type===`directory`?(openBlock(),createBlock(VListItem,{key:2,"prepend-icon":`$noteAdd`,title:`New file here`,onClick:$event=>emit(`new-file`,child.path||``)},null,8,[`onClick`])):createCommentVNode(``,true),__props.filesActions&&child.type===`directory`?(openBlock(),createBlock(VListItem,{key:3,"prepend-icon":`$uploadArrow`,title:`Upload here`,onClick:$event=>emit(`upload`,child.path||``)},null,8,[`onClick`])):createCommentVNode(``,true),__props.filesActions&&child.path?(openBlock(),createBlock(VListItem,{key:4,"prepend-icon":`$driveFileMove`,title:`Move or copy…`,onClick:$event=>emit(`transfer`,{name:child.name,path:child.path,type:child.type})},null,8,[`onClick`])):createCommentVNode(``,true),createVNode(VListItem,{"prepend-icon":`$contentCopy`,title:`Copy path`,onClick:$event=>emit(`copy-path`,child.path||child.name||``)},null,8,[`onClick`]),child.type===`file`&&__props.assistantDraftAvailable?(openBlock(),createBlock(VListItem,{key:5,"prepend-icon":`$smartToy`,title:`Ask the AI assistant about this file`,onClick:$event=>emit(`ask-assistant`,child.path||``)},null,8,[`onClick`])):createCommentVNode(``,true)]),_:2},1024)]),_:2},1024)]),child.type!==`file`&&directoryOpen(child)?(openBlock(),createElementBlock(`div`,_hoisted_6$3,[createVNode(_component_Vibe64SourceFileTree,{node:child,"assistant-draft-available":__props.assistantDraftAvailable,"files-actions":__props.filesActions,"selected-path":__props.selectedPath,"starred-paths":__props.starredPaths,"expanded-paths":__props.expandedPaths,"load-errors":__props.loadErrors,"loading-paths":__props.loadingPaths,onLoadMoreDirectory:_cache[1]||(_cache[1]=$event=>emit(`load-more-directory`,$event)),onOpenFile:_cache[2]||(_cache[2]=$event=>emit(`open-file`,$event)),onToggleStar:_cache[3]||(_cache[3]=$event=>emit(`toggle-star`,$event)),onDownloadFile:_cache[4]||(_cache[4]=$event=>emit(`download-file`,$event)),onDirectoryOpenChange:_cache[5]||(_cache[5]=$event=>emit(`directory-open-change`,$event)),onNewFile:_cache[6]||(_cache[6]=$event=>emit(`new-file`,$event)),onCopyPath:_cache[7]||(_cache[7]=$event=>emit(`copy-path`,$event)),onAskAssistant:_cache[8]||(_cache[8]=$event=>emit(`ask-assistant`,$event)),onTransfer:_cache[9]||(_cache[9]=$event=>emit(`transfer`,$event)),onUpload:_cache[10]||(_cache[10]=$event=>emit(`upload`,$event))},null,8,[`node`,`assistant-draft-available`,`files-actions`,`selected-path`,`starred-paths`,`expanded-paths`,`load-errors`,`loading-paths`]),directoryLoading(child)?(openBlock(),createElementBlock(`div`,_hoisted_7$3,` Loading... `)):directoryLoadError(child)?(openBlock(),createElementBlock(`div`,_hoisted_8$3,toDisplayString(directoryLoadError(child)),1)):directoryOpen(child)&&child.loaded&&!directoryChildCount(child)&&!child.hasMore?(openBlock(),createElementBlock(`div`,_hoisted_9$3,` Empty directory. `)):createCommentVNode(``,true)])):createCommentVNode(``,true)])}),128)),nodeHasMore.value?(openBlock(),createElementBlock(`li`,_hoisted_10$2,[createBaseVNode(`button`,{class:`vibe64-source-tree__button vibe64-source-tree__button--more`,disabled:currentNodeLoading.value,title:`Load ${nextHiddenNodeCount.value} more entries in ${nodeLabel.value}`,type:`button`,onClick:showMore},[createVNode(VIcon,{icon:`$moreHoriz`,size:`15`}),currentNodeLoading.value?(openBlock(),createElementBlock(`span`,_hoisted_12$1,`Loading...`)):(openBlock(),createElementBlock(`span`,_hoisted_13$1,`Load `+toDisplayString(nextHiddenNodeCount.value)+` more`,1))],8,_hoisted_11$2)])):createCommentVNode(``,true)])}}};var Vibe64SourceFileTree_default=_plugin_vue_export_helper_default(_sfc_main$5,[[`__scopeId`,`data-v-f542a1a2`]]);var _hoisted_1$3={class:`vibe64-source-editor__tree-toolbar`};var _hoisted_2$3={key:0,class:`vibe64-source-editor__drop-label`,role:`status`};var _hoisted_3$3={key:1};var _hoisted_4$3={class:`vibe64-source-editor__tree-actions`};var _hoisted_5$2=[`open`];var _hoisted_6$2={key:1,class:`vibe64-source-editor__search-results`,"aria-label":`Find results`};var _hoisted_7$2={class:`vibe64-source-editor__search-heading`};var _hoisted_8$2={key:1,class:`vibe64-source-editor__notice`};var _hoisted_9$2={key:2,class:`vibe64-source-editor__notice vibe64-source-editor__notice--error`};var _hoisted_10$1={key:3,class:`vibe64-source-editor__notice`};var _hoisted_11$1=[`title`,`onClick`];var _hoisted_12={class:`vibe64-source-editor__search-path`};var _hoisted_13={class:`vibe64-source-editor__search-location`};var _hoisted_14={class:`vibe64-source-editor__search-preview`};var _hoisted_15={key:5,class:`vibe64-source-editor__notice`};var _hoisted_16={key:2,class:`vibe64-source-editor__notice`};var _hoisted_17={key:3,class:`vibe64-source-editor__notice vibe64-source-editor__notice--error`};var _sfc_main$4={__name:`Vibe64SourceEditorSidebar`,props:{assistantDraftAvailable:{type:Boolean,default:false},collapsed:{type:Boolean,default:false},displayedPath:{type:String,default:``},editor:{type:Object,required:true},expandedPaths:{type:Array,default:()=>[]},fileBookmarks:{type:Object,default:null},filesActions:{type:Boolean,default:false}},emits:[`ask-assistant-about-file`,`close-all-directories`,`collapse`,`directory-open-change`,`download-file`,`expand`,`new-file`,`transfer`,`upload`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const uploadFolder=computed(()=>normalizeSourceEditorPath(props.displayedPath).split(`/`).slice(0,-1).join(`/`));const uploadFolderLabel=computed(()=>[vibe64FileArea(`repo`).label,...uploadFolder.value.split(`/`).filter(Boolean)].join(` › `));const uploadFeedback=useUiFeedback({source:`vibe64.files`});const dropDepth=ref(0);const searchPanelVisible=computed(()=>Boolean(props.editor.searchQuery.value)||props.editor.searchResults.value.length>0);function searchResultTitle(result={}){return`${result.path||``}:${result.line||1}:${result.column||1}`}function uploadInto(directoryPath=``){emit(`directory-open-change`,{open:true,path:directoryPath});emit(`upload`,{folder:normalizeSourceEditorPath(directoryPath)})}const fileDrag=event=>props.filesActions&&event.dataTransfer?.types.includes(`Files`);function dragEnter(event){if(!fileDrag(event))return;event.preventDefault();dropDepth.value+=1}function dragOver(event){if(!fileDrag(event))return;event.preventDefault();event.dataTransfer.dropEffect=`copy`}function dragLeave(event){if(fileDrag(event))dropDepth.value=Math.max(0,dropDepth.value-1)}function dropFiles(event){if(!fileDrag(event))return;event.preventDefault();dropDepth.value=0;try{emit(`upload`,{folder:uploadFolder.value,files:vibe64DroppedFiles(event.dataTransfer)})}catch(error){uploadFeedback.error(error)}}async function copySourcePath(path=``){const normalizedPath=normalizeSourceEditorPath(path);if(!normalizedPath)return;try{await writeClipboardText(normalizedPath)}catch{}}function askAssistantAboutPath(path=``){const normalizedPath=normalizeSourceEditorPath(path);if(!normalizedPath||!props.assistantDraftAvailable)return;emit(`ask-assistant-about-file`,normalizedPath)}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`aside`,{class:normalizeClass([`vibe64-source-editor__sidebar`,{"vibe64-source-editor__sidebar--collapsed":__props.collapsed,"vibe64-source-editor__sidebar--drop":dropDepth.value>0}]),onDragenter:dragEnter,onDragover:dragOver,onDragleave:dragLeave,onDrop:dropFiles},[__props.collapsed?(openBlock(),createBlock(Vibe64SourceEditorSideRail_default,{key:0,"aria-label":`Show files`,icon:`$chevronRight`,label:`Files`,title:`Show files`,onClick:_cache[0]||(_cache[0]=$event=>emit(`expand`))})):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode(`div`,_hoisted_1$3,[dropDepth.value>0?(openBlock(),createElementBlock(`span`,_hoisted_2$3,`Drop to upload to `+toDisplayString(uploadFolderLabel.value),1)):(openBlock(),createElementBlock(`span`,_hoisted_3$3,`Files`)),createBaseVNode(`div`,_hoisted_4$3,[__props.filesActions?(openBlock(),createBlock(VBtn,{key:0,"aria-label":`Upload files to ${uploadFolderLabel.value}`,disabled:!__props.editor.tree.value,icon:`$uploadArrow`,size:`x-small`,title:`Upload files to ${uploadFolderLabel.value}`,type:`button`,variant:`text`,onClick:_cache[1]||(_cache[1]=$event=>emit(`upload`,{folder:uploadFolder.value}))},null,8,[`aria-label`,`disabled`,`title`])):createCommentVNode(``,true),createVNode(VBtn,{"aria-label":`New file at source root`,disabled:__props.editor.creatingFile.value||!__props.editor.tree.value,icon:`$noteAdd`,size:`x-small`,title:`New file at source root`,type:`button`,variant:`text`,onClick:_cache[2]||(_cache[2]=$event=>emit(`new-file`,``))},null,8,[`disabled`]),createVNode(VBtn,{class:`vibe64-source-editor__collapse-files-button`,"aria-label":`Collapse file list`,icon:`$chevronLeft`,size:`small`,title:`Collapse file list`,type:`button`,variant:`text`,onClick:_cache[3]||(_cache[3]=$event=>emit(`collapse`))}),createVNode(VBtn,{"aria-label":`Close all folders`,disabled:!__props.editor.tree.value||!__props.expandedPaths.length,icon:`$unfoldLess`,size:`x-small`,title:`Close all folders`,type:`button`,variant:`text`,onClick:_cache[4]||(_cache[4]=$event=>emit(`close-all-directories`))},null,8,[`disabled`])])]),__props.fileBookmarks?(openBlock(),createElementBlock(`details`,{key:0,class:`vibe64-source-editor__starred`,open:__props.fileBookmarks.files.value.length<=4},[createBaseVNode(`summary`,null,[_cache[10]||(_cache[10]=createTextVNode(`Starred `,-1)),createBaseVNode(`span`,null,toDisplayString(__props.fileBookmarks.files.value.length),1)]),createVNode(Vibe64StarredFilesList_default,{bookmarks:__props.fileBookmarks,compact:``,onOpenFile:__props.editor.openFile},null,8,[`bookmarks`,`onOpenFile`])],8,_hoisted_5$2)):createCommentVNode(``,true),searchPanelVisible.value?(openBlock(),createElementBlock(`section`,_hoisted_6$2,[createBaseVNode(`div`,_hoisted_7$2,[_cache[11]||(_cache[11]=createBaseVNode(`span`,null,`Find results`,-1)),createBaseVNode(`small`,null,toDisplayString(__props.editor.searchResults.value.length),1)]),__props.editor.searchIndexLabel.value?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`vibe64-source-editor__notice`,{"vibe64-source-editor__notice--error":__props.editor.searchIndex.value?.state===`error`}]),role:`status`},toDisplayString(__props.editor.searchIndexLabel.value),3)):createCommentVNode(``,true),__props.editor.searchLoading.value&&!__props.editor.searchResults.value.length?(openBlock(),createElementBlock(`div`,_hoisted_8$2,` Searching files... `)):__props.editor.searchError.value?(openBlock(),createElementBlock(`div`,_hoisted_9$2,toDisplayString(__props.editor.searchError.value),1)):!__props.editor.searchResults.value.length&&__props.editor.searchIndex.value?.state!==`error`?(openBlock(),createElementBlock(`div`,_hoisted_10$1,toDisplayString(__props.editor.searchIndexPending.value?`Results will appear as files are indexed.`:`No results.`),1)):(openBlock(true),createElementBlock(Fragment,{key:4},renderList(__props.editor.searchResults.value,result=>{return openBlock(),createElementBlock(`button`,{key:`${result.path}:${result.line}:${result.column}:${result.preview}`,class:`vibe64-source-editor__search-result`,title:searchResultTitle(result),type:`button`,onClick:$event=>__props.editor.openSearchResult(result)},[createBaseVNode(`span`,_hoisted_12,toDisplayString(result.path),1),createBaseVNode(`span`,_hoisted_13,`Line `+toDisplayString(result.line),1),createBaseVNode(`span`,_hoisted_14,toDisplayString(result.preview),1)],8,_hoisted_11$1)}),128)),__props.editor.searchTruncated.value?(openBlock(),createElementBlock(`div`,_hoisted_15,` Search stopped at the first matches. Narrow the query for more precision. `)):createCommentVNode(``,true)])):createCommentVNode(``,true),__props.editor.loadingTree.value&&!__props.editor.tree.value?(openBlock(),createElementBlock(`div`,_hoisted_16,` Loading files... `)):__props.editor.loadError.value&&!__props.editor.tree.value?(openBlock(),createElementBlock(`div`,_hoisted_17,toDisplayString(__props.editor.loadError.value),1)):__props.editor.tree.value?(openBlock(),createBlock(Vibe64SourceFileTree_default,{key:4,"expanded-paths":__props.expandedPaths,"load-errors":__props.editor.treeLoadErrors.value,"loading-paths":__props.editor.treeLoadingPaths.value,node:__props.editor.tree.value,"selected-path":__props.displayedPath,"starred-paths":__props.fileBookmarks?.paths.value||[],"assistant-draft-available":__props.assistantDraftAvailable,"files-actions":__props.filesActions,onAskAssistant:askAssistantAboutPath,onCopyPath:copySourcePath,onDirectoryOpenChange:_cache[5]||(_cache[5]=$event=>emit(`directory-open-change`,$event)),onLoadMoreDirectory:__props.editor.loadMoreDirectory,onNewFile:_cache[6]||(_cache[6]=$event=>emit(`new-file`,$event)),onOpenFile:__props.editor.openFile,onToggleStar:_cache[7]||(_cache[7]=$event=>__props.fileBookmarks?.toggle($event)),onDownloadFile:_cache[8]||(_cache[8]=$event=>emit(`download-file`,$event)),onTransfer:_cache[9]||(_cache[9]=$event=>emit(`transfer`,$event)),onUpload:uploadInto},null,8,[`expanded-paths`,`load-errors`,`loading-paths`,`node`,`selected-path`,`starred-paths`,`assistant-draft-available`,`files-actions`,`onLoadMoreDirectory`,`onOpenFile`])):createCommentVNode(``,true)],64))],34)}}};var Vibe64SourceEditorSidebar_default=_plugin_vue_export_helper_default(_sfc_main$4,[[`__scopeId`,`data-v-221344e4`]]);function sourceExplanationMessages(explanation){return Array.isArray(explanation?.messages)&&explanation.messages.length?explanation.messages:[...explanation?.body?[{id:`body`,role:`assistant`,text:explanation.body}]:[],...Array.isArray(explanation?.followups)?explanation.followups:[]]}function sourceRangeLineSuffix({endLine,startLine}={}){const start=Number(startLine);const end=Number(endLine);if(!Number.isFinite(start)||start<1)return``;if(!Number.isFinite(end)||end<1||end===start)return`:${start}`;return`:${start}-${end}`}function compactSourcePath(path=``,{maxLength=36}={}){const normalized=normalizeSourceEditorPath(path);if(normalized.length<=maxLength)return normalized;return`...${normalized.slice(-maxLength)}`}function sourceRangePathDisplayLabel(range={}){const path=normalizeSourceEditorPath(range.path);if(!path)return`Source`;return compactSourcePath(path)}function sourceRangeDisplayLabel(range={}){const path=normalizeSourceEditorPath(range.path);if(!path)return`Source`;return`${path}${sourceRangeLineSuffix(range)}`}var _hoisted_1$2=[`aria-busy`];var _hoisted_2$2={key:1,class:`source-explanation-document__progress`,role:`status`};var _hoisted_3$2={key:2,class:`source-explanation-document__activity`,open:``};var _hoisted_4$2={key:3,class:`source-explanation-document__progress`,role:`status`};var _sfc_main$3={__name:`Vibe64SourceExplanationDocument`,props:{assistantAvailable:{type:Boolean,default:true},busy:{type:Boolean,default:false},closing:{type:Boolean,default:false},explanation:{type:Object,required:true},savedBody:{type:String,default:``}},emits:[`link-click`,`retry`,`stop`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const messages=computed(()=>sourceExplanationMessages(props.explanation));const documentBody=computed(()=>props.explanation?.body||props.savedBody||messages.value.findLast(message=>message.role===`assistant`&&message.status===`complete`)?.text||``);const documentBlocks=computed(()=>parseLongTextReviewBlocks(documentBody.value));const documentProgress=computed(()=>messages.value.findLast(message=>message.role===`assistant`&&message.status===`thinking`)?.text||``);const documentFailure=computed(()=>messages.value.findLast(message=>message.role===`assistant`&&message.status===`failed`)?.text||``);return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,{class:`source-explanation-document`,"aria-busy":__props.busy||__props.closing,"aria-label":`Generated explanation`},[documentBody.value?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:0,blocks:documentBlocks.value,onLinkClick:_cache[0]||(_cache[0]=$event=>emit(`link-click`,$event))},null,8,[`blocks`])):createCommentVNode(``,true),__props.busy||__props.closing?(openBlock(),createElementBlock(`div`,_hoisted_2$2,[createBaseVNode(`span`,null,toDisplayString(__props.closing?`Stopping…`:`Generating explanation…`),1),!__props.closing?(openBlock(),createBlock(VBtn,{key:0,size:`small`,variant:`text`,onClick:_cache[1]||(_cache[1]=$event=>emit(`stop`))},{default:withCtx(()=>[..._cache[4]||(_cache[4]=[createTextVNode(`Stop`,-1)])]),_:1})):createCommentVNode(``,true)])):createCommentVNode(``,true),__props.busy&&documentProgress.value?(openBlock(),createElementBlock(`details`,_hoisted_3$2,[_cache[5]||(_cache[5]=createBaseVNode(`summary`,null,`Progress`,-1)),createVNode(unref(LongTextPreviewBlocks_default),{blocks:unref(parseLongTextReviewBlocks)(documentProgress.value),onLinkClick:_cache[2]||(_cache[2]=$event=>emit(`link-click`,$event))},null,8,[`blocks`])])):!__props.busy&&!__props.closing&&[`failed`,`stopped`].includes(__props.explanation.status)?(openBlock(),createElementBlock(`div`,_hoisted_4$2,[createBaseVNode(`span`,null,toDisplayString(__props.explanation.status===`stopped`?`Generation stopped.`:documentFailure.value||`Generation failed.`),1),createVNode(VBtn,{size:`small`,variant:`text`,disabled:!__props.assistantAvailable,onClick:_cache[3]||(_cache[3]=$event=>emit(`retry`))},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(`Retry`,-1)])]),_:1},8,[`disabled`])])):createCommentVNode(``,true)],8,_hoisted_1$2)}}};var Vibe64SourceExplanationDocument_default=_plugin_vue_export_helper_default(_sfc_main$3,[[`__scopeId`,`data-v-fde6f089`]]);var _hoisted_1$1=[`aria-busy`];var _hoisted_2$1={class:`vibe64-source-explanation__header`};var _hoisted_3$1={class:`vibe64-source-explanation__source`};var _hoisted_4$1=[`title`];var _hoisted_5$1={class:`vibe64-source-explanation__range-path`};var _hoisted_6$1={key:0,class:`vibe64-source-explanation__range-suffix`};var _hoisted_7$1={key:0,class:`vibe64-source-explanation__thinking`};var _hoisted_8$1={key:3,class:`vibe64-source-explanation__status vibe64-source-explanation__status--stopped`};var _hoisted_9$1={key:1,class:`vibe64-source-explanation__recovery`,"aria-label":`Explanation controls`};var _hoisted_10={class:`vibe64-source-explanation__recovery-actions`};var _hoisted_11={class:`vibe64-source-explanation__followup-footer`};var _sfc_main$2={__name:`Vibe64SourceExplanationPanel`,props:{embedded:Boolean,savedBody:{type:String,default:``},assistantAvailable:{default:true,type:Boolean},assistantUnavailableMessage:{default:`The selected AI connection is unavailable for this account.`,type:String},busy:{default:false,type:Boolean},closing:{default:false,type:Boolean},explanation:{default:()=>({body:``,followups:[],messages:[],sourceRange:{},summary:``,title:``}),type:Object},followup:{default:``,type:String},selectedPath:{default:``,type:String}},emits:[`collapse`,`close`,`open-range`,`open-source-link`,`retry`,`send-followup`,`stop`,`update:followup`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const threadElement=ref(null);const threadBottomElement=ref(null);const followingLatest=ref(true);const assistantLabel=computed(()=>{const profile=props.explanation?.executionProfile;if(!profile?.providerId||!profile?.model)return`Assistant`;return vibe64AssistantSelectionLabel({engineId:profile.providerId,modelId:profile.model,variantId:profile.thinking})});const chatMessages=computed(()=>sourceExplanationMessages(props.explanation).map(message=>({...message,blocks:parseLongTextReviewBlocks(message.text||``,{preserveParagraphLineBreaks:message.role===`user`})})));const followupAvailable=computed(()=>Boolean(props.explanation?.status!==`failed`&&(props.explanation?.agentThreadId||props.explanation?.engine===`agent-cache`)&&(String(props.explanation?.body||``).trim()||chatMessages.value.some(message=>message.role===`assistant`&&message.status===`complete`&&message.text))));const sourceRange=computed(()=>props.explanation?.sourceRange||{});const sourceRangeFullLabel=computed(()=>sourceRangeDisplayLabel(sourceRange.value));const sourceRangePathLabel=computed(()=>sourceRangePathDisplayLabel(sourceRange.value));const sourceRangeSuffixLabel=computed(()=>sourceRangeLineSuffix(sourceRange.value));const threadScrollKey=computed(()=>chatMessages.value.map(message=>[message.id||``,message.role||``,message.status||``,String(message.text||``).length].join(`:`)).join(`|`));const{scrollAfterLayout:scrollThreadToBottom}=useScrollToBottom({anchor:threadBottomElement,enabled:computed(()=>followingLatest.value),scrollAnchorIntoView:false,target:threadElement});function submitFollowup(){if(!props.assistantAvailable||!props.followup.trim()||props.busy||props.closing||!followupAvailable.value)return;emit(`send-followup`)}function queueThreadBottomScroll({force=false}={}){if(props.embedded)return;if(force)followingLatest.value=true;scrollThreadToBottom({behavior:force?`auto`:`smooth`})}function updateThreadFollowState(event={}){followingLatest.value=scrollElementNearBottom(event.currentTarget||threadElement.value)}function handleExplanationLinkClick(payload={}){const target=sourceEditorLinkTarget(payload);if(!target)return;payload.event.preventDefault();payload.event.stopPropagation();emit(`open-source-link`,target)}watch(()=>props.explanation?.id||``,()=>{queueThreadBottomScroll({force:true})},{flush:`post`,immediate:true});watch(threadScrollKey,(value,previous)=>{if(!value||value===previous)return;queueThreadBottomScroll({force:chatMessages.value.at(-1)?.role===`user`})},{flush:`post`});return(_ctx,_cache)=>{return __props.embedded?(openBlock(),createBlock(Vibe64SourceExplanationDocument_default,{key:0,"assistant-available":__props.assistantAvailable,busy:__props.busy,closing:__props.closing,explanation:__props.explanation,"saved-body":__props.savedBody,onLinkClick:handleExplanationLinkClick,onRetry:_cache[0]||(_cache[0]=$event=>emit(`retry`)),onStop:_cache[1]||(_cache[1]=$event=>emit(`stop`))},null,8,[`assistant-available`,`busy`,`closing`,`explanation`,`saved-body`])):(openBlock(),createElementBlock(`aside`,{key:1,"aria-busy":__props.busy||__props.closing?`true`:`false`,class:`vibe64-source-explanation`,"aria-label":`Source explanation`},[createBaseVNode(`header`,_hoisted_2$1,[createBaseVNode(`div`,_hoisted_3$1,[createBaseVNode(`button`,{class:`vibe64-source-explanation__range`,title:sourceRangeFullLabel.value,type:`button`,onClick:_cache[2]||(_cache[2]=$event=>emit(`open-range`,__props.explanation))},[createBaseVNode(`span`,_hoisted_5$1,toDisplayString(sourceRangePathLabel.value),1),sourceRangeSuffixLabel.value?(openBlock(),createElementBlock(`span`,_hoisted_6$1,toDisplayString(sourceRangeSuffixLabel.value),1)):createCommentVNode(``,true)],8,_hoisted_4$1),__props.explanation.stale?(openBlock(),createBlock(VChip,{key:0,color:`warning`,size:`x-small`,variant:`tonal`},{default:withCtx(()=>[..._cache[9]||(_cache[9]=[createTextVNode(` Stale `,-1)])]),_:1})):createCommentVNode(``,true)]),createVNode(VBtn,{"aria-label":`Collapse explanation`,icon:`$chevronRight`,size:`small`,title:`Collapse explanation`,type:`button`,variant:`text`,onClick:_cache[3]||(_cache[3]=$event=>emit(`collapse`,$event))}),createVNode(VBtn,{class:`vibe64-source-explanation__close-button`,"aria-busy":__props.closing?`true`:void 0,"aria-label":`Close explanation`,disabled:__props.closing,"prepend-icon":`$close`,size:`x-small`,title:__props.closing?`Closing explanation`:`Close explanation`,type:`button`,variant:`text`,onClick:_cache[4]||(_cache[4]=$event=>emit(`close`,$event))},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.closing?`Closing…`:`Close`),1)]),_:1},8,[`aria-busy`,`disabled`,`title`])]),__props.explanation.stale?(openBlock(),createBlock(VAlert,{key:0,class:`vibe64-source-explanation__stale`,density:`compact`,type:`warning`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.explanation.staleReason||`The source changed after this explanation was created.`),1)]),_:1})):createCommentVNode(``,true),createBaseVNode(`section`,{ref_key:`threadElement`,ref:threadElement,class:`vibe64-source-explanation__thread`,"aria-label":`Explanation chat`,tabindex:`0`,onScroll:updateThreadFollowState},[(openBlock(true),createElementBlock(Fragment,null,renderList(chatMessages.value,message=>{return openBlock(),createElementBlock(`article`,{key:message.id,class:normalizeClass([`vibe64-source-explanation__message`,[`vibe64-source-explanation__message--${message.role}`,{"vibe64-source-explanation__message--failed":message.status===`failed`,"vibe64-source-explanation__message--thinking":message.status===`thinking`}]])},[createBaseVNode(`strong`,null,toDisplayString(message.role===`user`?`You`:assistantLabel.value),1),message.status===`thinking`?(openBlock(),createElementBlock(`div`,_hoisted_7$1,[message.text?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:0,compact:``,class:`vibe64-source-explanation__thinking-detail`,blocks:message.blocks,onLinkClick:handleExplanationLinkClick},null,8,[`blocks`])):createCommentVNode(``,true),_cache[10]||(_cache[10]=createBaseVNode(`div`,{class:`vibe64-source-explanation__status`,role:`status`},[createBaseVNode(`span`,{"aria-hidden":`true`,class:`vibe64-source-explanation__status-mark`}),createBaseVNode(`span`,null,`Thinking…`)],-1))])):message.status===`failed`&&message.text?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:1,class:`vibe64-source-explanation__failure-detail`,blocks:message.blocks,onLinkClick:handleExplanationLinkClick},null,8,[`blocks`])):message.text?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:2,blocks:message.blocks,onLinkClick:handleExplanationLinkClick},null,8,[`blocks`])):message.status===`stopped`?(openBlock(),createElementBlock(`div`,_hoisted_8$1,` Stopped. `)):createCommentVNode(``,true)],2)}),128)),createBaseVNode(`div`,{ref_key:`threadBottomElement`,ref:threadBottomElement,class:`vibe64-source-explanation__thread-bottom`},null,512)],544),!followupAvailable.value?(openBlock(),createElementBlock(`section`,_hoisted_9$1,[createBaseVNode(`p`,null,toDisplayString(__props.closing?`Closing…`:__props.busy?`Waiting for the explanation…`:`No explanation was produced. Check the assistant provider, then retry.`),1),createBaseVNode(`div`,_hoisted_10,[__props.busy&&!__props.closing?(openBlock(),createBlock(VBtn,{key:0,"aria-label":`Stop explanation`,color:`error`,icon:`$stop`,size:`small`,title:`Stop explanation`,type:`button`,variant:`tonal`,onClick:_cache[5]||(_cache[5]=$event=>emit(`stop`))})):(openBlock(),createBlock(VBtn,{key:1,color:`primary`,disabled:__props.closing||!__props.assistantAvailable,"prepend-icon":`$refresh`,size:`small`,title:__props.assistantAvailable?`Retry explanation`:__props.assistantUnavailableMessage,type:`button`,variant:`flat`,onClick:_cache[6]||(_cache[6]=$event=>emit(`retry`))},{default:withCtx(()=>[..._cache[11]||(_cache[11]=[createTextVNode(` Retry explanation `,-1)])]),_:1},8,[`disabled`,`title`]))])])):(openBlock(),createElementBlock(`form`,{key:2,class:`vibe64-source-explanation__followup`,onSubmit:withModifiers(submitFollowup,[`prevent`])},[createVNode(_sfc_main$10,{"attachments-enabled":false,"auto-grow":true,disabled:__props.busy||__props.closing||!__props.assistantAvailable,label:`Ask about this explanation`,"model-value":__props.followup,placeholder:`Ask a follow-up`,rows:`1`,onSubmit:submitFollowup,"onUpdate:modelValue":_cache[8]||(_cache[8]=$event=>emit(`update:followup`,$event))},{footer:withCtx(()=>[createBaseVNode(`div`,_hoisted_11,[__props.busy&&!__props.closing?(openBlock(),createBlock(VBtn,{key:0,"aria-label":`Stop explanation`,color:`error`,icon:`$stop`,size:`small`,title:`Stop explanation`,type:`button`,variant:`tonal`,onClick:_cache[7]||(_cache[7]=$event=>emit(`stop`))})):createCommentVNode(``,true),createVNode(VBtn,{"aria-label":`Send follow-up`,color:`primary`,disabled:!__props.followup.trim()||__props.busy||__props.closing||!__props.assistantAvailable,icon:`$send`,size:`small`,title:__props.assistantAvailable?`Send follow-up`:__props.assistantUnavailableMessage,type:`submit`,variant:`flat`},null,8,[`disabled`,`title`])])]),_:1},8,[`disabled`,`model-value`])],32))],8,_hoisted_1$1))}}};var Vibe64SourceExplanationPanel_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`__scopeId`,`data-v-25181e8e`]]);var _sfc_main$1={__name:`Vibe64SourceNewFileDialog`,props:{editor:{type:Object,required:true}},emits:[`created`],setup(__props,{expose:__expose,emit:__emit}){const props=__props;const emit=__emit;const newFileDialogOpen=ref(false);const newFileDirectory=ref(``);const newFileError=ref(``);const newFileName=ref(``);const newFileDirectoryLabel=computed(()=>newFileDirectory.value?`Create in ${newFileDirectory.value}`:`Create in source root`);const newFilePath=computed(()=>{const name=normalizeNewFileEntryPath(newFileName.value);if(!name)return``;return newFileDirectory.value?`${newFileDirectory.value}/${name}`:name});const newFileCreateDisabled=computed(()=>Boolean(props.editor.creatingFile.value||!newFilePath.value));function normalizeNewFileEntryPath(value=``){const raw=normalizeSourceEditorPath(value).replace(/\/+$/u,``);if(!raw||raw.startsWith(`/`))return``;const parts=raw.split(`/`).filter(Boolean);if(!parts.length||parts.some(part=>part===`.`||part===`..`))return``;return parts.join(`/`)}function open(directoryPath=``){newFileDirectory.value=normalizeSourceEditorPath(directoryPath);newFileName.value=``;newFileError.value=``;newFileDialogOpen.value=true}function closeNewFileDialog(){if(props.editor.creatingFile.value)return;newFileDialogOpen.value=false;newFileError.value=``}async function submitNewFile(){const filePath=newFilePath.value;if(!filePath||props.editor.creatingFile.value){if(String(newFileName.value||``).trim())newFileError.value=`Enter a nested file path without absolute or parent-directory segments.`;return}if(!await props.editor.createFile(filePath)){newFileError.value=props.editor.createFileError.value||`Source file could not be created.`;return}emit(`created`,filePath);newFileDialogOpen.value=false;newFileError.value=``}__expose({open});return(_ctx,_cache)=>{return openBlock(),createBlock(VDialog,{modelValue:newFileDialogOpen.value,"onUpdate:modelValue":_cache[1]||(_cache[1]=$event=>newFileDialogOpen.value=$event),"max-width":`520`},{default:withCtx(()=>[createVNode(VCard,null,{default:withCtx(()=>[createVNode(VCardTitle,null,{default:withCtx(()=>[..._cache[2]||(_cache[2]=[createTextVNode(`New file`,-1)])]),_:1}),createVNode(VCardText,{class:`vibe64-source-editor__new-file-dialog`},{default:withCtx(()=>[createBaseVNode(`p`,null,toDisplayString(newFileDirectoryLabel.value),1),newFileError.value?(openBlock(),createBlock(VAlert,{key:0,density:`compact`,type:`warning`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(newFileError.value),1)]),_:1})):createCommentVNode(``,true),createVNode(VTextField,{modelValue:newFileName.value,"onUpdate:modelValue":_cache[0]||(_cache[0]=$event=>newFileName.value=$event),autofocus:``,autocomplete:`off`,disabled:__props.editor.creatingFile.value,label:`Path`,placeholder:`components/NewFile.vue`,variant:`outlined`,onKeydown:withKeys(withModifiers(submitNewFile,[`prevent`]),[`enter`])},null,8,[`modelValue`,`disabled`,`onKeydown`])]),_:1}),createVNode(VCardActions,null,{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{disabled:__props.editor.creatingFile.value,type:`button`,variant:`text`,onClick:closeNewFileDialog},{default:withCtx(()=>[..._cache[3]||(_cache[3]=[createTextVNode(` Cancel `,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{color:`primary`,disabled:newFileCreateDisabled.value,loading:__props.editor.creatingFile.value,type:`button`,variant:`flat`,onClick:submitNewFile},{default:withCtx(()=>[..._cache[4]||(_cache[4]=[createTextVNode(` Create `,-1)])]),_:1},8,[`disabled`,`loading`])]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}};var Vibe64SourceNewFileDialog_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-733b00ea`]]);function parseJsonStreamEvent(event){try{return JSON.parse(event?.data||`{}`)}catch{return{}}}function useVibe64SourceEditorFileSync({active=true,onChange,onError,onReady,path=``,sessionId=``,sessionsApiPath=``}){let eventSource=null;function currentValue(value){return String(readRefOrGetterValue(value)||``).trim()}function isActive(){return readRefOrGetterValue(active)!==false}function close(){eventSource?.close();eventSource=null}function start(){close();const currentPath=currentValue(path);const currentSessionId=currentValue(sessionId);const currentSessionsApiPath=currentValue(sessionsApiPath);if(!isActive()||!currentPath||!currentSessionId||!currentSessionsApiPath||typeof EventSource!==`function`)return;let source;try{source=new EventSource(resolveStudioRequestUrl(vibe64SourceEditorChangesStreamPath(currentSessionsApiPath,currentSessionId,currentPath)),{withCredentials:true})}catch(error){onError({error:String(error?.message||error||`Source file observation could not start.`),fatal:true});return}eventSource=source;const isCurrent=()=>eventSource===source;source.addEventListener(VIBE64_SOURCE_EDITOR_FILE_CHANGED_EVENT,event=>{if(isCurrent())onChange(parseJsonStreamEvent(event))});source.addEventListener(VIBE64_SOURCE_EDITOR_SYNC_READY_EVENT,event=>{if(!isCurrent())return;onReady(parseJsonStreamEvent(event))});source.addEventListener(VIBE64_SOURCE_EDITOR_SYNC_ERROR_EVENT,event=>{if(isCurrent()){const payload=parseJsonStreamEvent(event);onError(payload);if(payload.fatal===true)close()}});source.onerror=()=>{if(isCurrent())onError({error:`Source file observation disconnected.`,transient:true})}}watch([()=>isActive(),()=>currentValue(path),()=>currentValue(sessionId),()=>currentValue(sessionsApiPath)],start,{immediate:true});onBeforeUnmount(close)}async function sourceEditorRequest(url=``,options={}){const payload=await getHttpWebClient().request(url,options);if(payload?.ok===false)throw vibe64ApiError(payload,`Source editor request failed.`);return payload}var SOURCE_EDITOR_FILE_MATCH_DELAY_MS=120;var SOURCE_EDITOR_SEARCH_DELAY_MS=260;function normalizeFileMatches(value=[]){return(Array.isArray(value)?value:[]).map((file={})=>({language:String(file.language||``),name:String(file.name||``),path:normalizeSourceEditorPath(file.path)})).filter(file=>file.path)}function normalizeSearchResults(value=[]){return(Array.isArray(value)?value:[]).map((result={})=>({column:Math.max(1,Number(result.column||1)),line:Math.max(1,Number(result.line||1)),path:normalizeSourceEditorPath(result.path),preview:String(result.preview||``)})).filter(result=>result.path)}function useVibe64SourceEditorDiscovery({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,openFile}){const fileQuery=ref(``);const fileMatches=ref([]);const fileMatchesError=ref(``);const fileMatchesLoading=ref(false);const fileMatchesTruncated=ref(false);const searchQuery=ref(``);const searchResults=ref([]);const searchError=ref(``);const searchLoading=ref(false);const searchTruncated=ref(false);const searchIndex=ref(null);const searchIndexPending=computed(()=>[`building`,`refreshing`].includes(searchIndex.value?.state));const searchIndexLabel=computed(()=>{const index=searchIndex.value;if(index?.state===`error`)return index.error||`The search index could not be updated. Use Refresh to retry.`;if(!searchIndexPending.value)return``;const action=index.state===`refreshing`?`Refreshing file index`:`Indexing files`;return index.total?`${action}: ${index.scanned} of ${index.total} files…`:`${action}…`});let fileMatchesRequestId=0;let searchRequestId=0;let fileMatchesTimer=null;let searchTimer=null;function clearFileMatchesTimer(){if(fileMatchesTimer){clearTimeout(fileMatchesTimer);fileMatchesTimer=null}}function clearSearchTimer(){if(searchTimer){clearTimeout(searchTimer);searchTimer=null}}function clearFileMatches(){fileMatchesRequestId+=1;fileMatches.value=[];fileMatchesError.value=``;fileMatchesLoading.value=false;fileMatchesTruncated.value=false}function clearSearchResults(){searchRequestId+=1;searchResults.value=[];searchError.value=``;searchLoading.value=false;searchTruncated.value=false;searchIndex.value=null}function resetDiscoveryState(){clearFileMatchesTimer();clearSearchTimer();fileQuery.value=``;searchQuery.value=``;clearFileMatches();clearSearchResults()}async function loadFileMatches(){const query=normalizeText(fileQuery.value);if(!query){clearFileMatches();return}const requestId=fileMatchesRequestId+1;fileMatchesRequestId=requestId;fileMatchesError.value=``;if(!canLoad.value)return;fileMatchesLoading.value=true;try{const response=await sourceEditorRequest(vibe64SourceEditorFilesPath(currentSessionsApiPath.value,currentSessionId.value,query));if(requestId!==fileMatchesRequestId)return;fileMatches.value=normalizeFileMatches(response.files);fileMatchesTruncated.value=response.truncated===true}catch(error){if(requestId===fileMatchesRequestId){fileMatches.value=[];fileMatchesError.value=String(error?.message||error||`File matches could not be loaded.`)}}finally{if(requestId===fileMatchesRequestId)fileMatchesLoading.value=false}}function updateFileQuery(value=``){fileQuery.value=String(value||``);clearFileMatchesTimer();if(!normalizeText(fileQuery.value)){clearFileMatches();return}fileMatchesTimer=setTimeout(()=>{loadFileMatches()},120)}async function openFileMatch(filePath=``){const normalizedPath=normalizeSourceEditorPath(filePath);if(!normalizedPath)return;clearFileMatchesTimer();fileQuery.value=``;clearFileMatches();await openFile(normalizedPath)}function openFirstFileMatch(){const firstFile=fileMatches.value[0];if(firstFile?.path)openFileMatch(firstFile.path)}async function loadSearchResults({background=false}={}){clearSearchTimer();if(disposed.value||!currentActive.value)return;const query=normalizeText(searchQuery.value);if(!query){clearSearchResults();return}const requestId=searchRequestId+1;searchRequestId=requestId;searchError.value=``;if(!canLoad.value)return;searchLoading.value=!background;try{const response=await sourceEditorRequest(vibe64SourceEditorSearchPath(currentSessionsApiPath.value,currentSessionId.value,query));if(requestId!==searchRequestId)return;searchResults.value=normalizeSearchResults(response.results);searchTruncated.value=response.truncated===true;searchIndex.value=response.index||null;if(searchIndexPending.value&¤tActive.value&&!disposed.value)searchTimer=setTimeout(()=>{loadSearchResults({background:true})},1e3)}catch(error){if(requestId===searchRequestId){searchResults.value=[];searchIndex.value=null;searchError.value=String(error?.message||error||`Search results could not be loaded.`)}}finally{if(requestId===searchRequestId)searchLoading.value=false}}function updateSearchQuery(value=``){searchQuery.value=String(value||``);clearSearchTimer();clearSearchResults();if(!normalizeText(searchQuery.value))return;searchTimer=setTimeout(()=>{loadSearchResults()},260)}function openSearchResult(result={}){const filePath=normalizeSourceEditorPath(result.path);if(!filePath)return;openFile(filePath,{column:result.column,line:result.line})}function pauseSearch(){clearSearchTimer();searchRequestId+=1;searchLoading.value=false}function dispose(){clearFileMatchesTimer();clearSearchTimer();searchRequestId+=1}return{dispose,fileMatches,fileMatchesError,fileMatchesLoading,fileMatchesTruncated,fileQuery,loadSearchResults,openFileMatch,openFirstFileMatch,openSearchResult,pauseSearch,resetDiscoveryState,searchError,searchIndex,searchIndexLabel,searchIndexPending,searchLoading,searchQuery,searchResults,searchTruncated,updateFileQuery,updateSearchQuery}}var sourceExplanationClientIdCounter=0;function normalizeExplanationEntry(entry,{status}={}){return{createdAt:String(entry?.createdAt||``),id:String(entry?.id||``),role:String(entry?.role||``),...status===void 0?{}:{status},text:String(entry?.text||``)}}function explanationEntryVisible(entry){return Boolean(entry.id&&[`assistant`,`user`].includes(entry.role)&&entry.text)}function normalizeExplanationMessages(value=[],{body=``,followups=[]}={}){const messages=(Array.isArray(value)?value:[]).map(entry=>normalizeExplanationEntry(entry,{status:String(entry?.status||`complete`)})).filter(entry=>entry.id&&[`assistant`,`user`].includes(entry.role)&&(entry.text||entry.status!==`complete`));if(messages.length)return messages;const fallback=[];if(String(body||``).trim())fallback.push({createdAt:``,id:`body`,role:`assistant`,status:`complete`,text:String(body||``)});return[...fallback,...(Array.isArray(followups)?followups:[]).map(entry=>normalizeExplanationEntry(entry,{status:`complete`})).filter(explanationEntryVisible)]}function normalizeExplanationExecutionProfile(value=null){try{return vibe64AgentExecutionProfileAuditSnapshot(value)}catch{return null}}function normalizeExplanation(value=null){if(!value||typeof value!==`object`||Array.isArray(value))return null;const sourceRange=value.sourceRange&&typeof value.sourceRange===`object`&&!Array.isArray(value.sourceRange)?value.sourceRange:{};const id=String(value.id||``).trim();if(!id)return null;const followups=(Array.isArray(value.followups)?value.followups:[]).map(entry=>normalizeExplanationEntry(entry)).filter(explanationEntryVisible);return{agentThreadId:String(value.agentThreadId||``),agentTurnId:String(value.agentTurnId||``),body:String(value.body||``),createdAt:String(value.createdAt||``),engine:String(value.engine||``),error:String(value.error||``),executionProfile:normalizeExplanationExecutionProfile(value.executionProfile),followups,id,messages:normalizeExplanationMessages(value.messages,{body:value.body,followups}),model:String(value.model||``),sourceRange:{endColumn:Math.max(1,Number(sourceRange.endColumn||1)),endLine:Math.max(1,Number(sourceRange.endLine||1)),language:String(sourceRange.language||``),path:normalizeSourceEditorPath(sourceRange.path),scope:String(sourceRange.scope||`selection`),...sourceRange.presentation?{presentation:sourceRange.presentation}:{},...sourceRange.fileHash?{fileHash:String(sourceRange.fileHash)}:{},...sourceRange.symbolId?{symbolId:String(sourceRange.symbolId)}:{},startColumn:Math.max(1,Number(sourceRange.startColumn||1)),startLine:Math.max(1,Number(sourceRange.startLine||1))},stale:value.stale===true,staleReason:String(value.staleReason||``),status:String(value.status||``),summary:String(value.summary||``),title:String(value.title||``)}}function sourceEditorClientId(prefix=`id`){sourceExplanationClientIdCounter+=1;return`${prefix}_${Date.now().toString(36)}_${sourceExplanationClientIdCounter.toString(36)}`}function nowIso(){return new Date().toISOString()}function sourceEditorExplanationPromptText(filePath=``,range={}){return range.scope===`file`?`Explain the whole file ${filePath}.`:`Explain ${filePath}:${range.startLine}-${range.endLine}.`}function sourceEditorExplanationTitle(filePath=``,range={}){const name=normalizeSourceEditorPath(filePath).split(`/`).filter(Boolean).pop()||`Code`;return range.scope===`file`?`${name} full file`:`${name} lines ${range.startLine}-${range.endLine}`}function localSourceExplanation({assistantMessageId=sourceEditorClientId(`msg`),explanationId=sourceEditorClientId(`exp`),filePath=``,range={},userMessageId=sourceEditorClientId(`msg`)}={}){const createdAt=nowIso();const sourceRange={endColumn:Math.max(1,Number(range.endColumn||1)),endLine:Math.max(1,Number(range.endLine||1)),language:String(range.language||``),path:normalizeSourceEditorPath(filePath),scope:String(range.scope||`selection`),...range.presentation?{presentation:range.presentation}:{},...range.symbolId?{symbolId:range.symbolId}:{},startColumn:Math.max(1,Number(range.startColumn||1)),startLine:Math.max(1,Number(range.startLine||1))};return normalizeExplanation({agentThreadId:``,agentTurnId:``,body:``,createdAt,engine:`agent-chat`,error:``,executionProfile:null,followups:[],id:explanationId,messages:[{createdAt,id:userMessageId,role:`user`,status:`complete`,text:sourceEditorExplanationPromptText(filePath,sourceRange)},{createdAt,id:assistantMessageId,role:`assistant`,status:`thinking`,text:``}],model:``,sourceRange,status:`running`,summary:``,title:sourceEditorExplanationTitle(filePath,sourceRange)})}function sourceEditorExplanationWithMessage(explanation=null,messageId=``,patch={}){const normalized=normalizeExplanation(explanation);if(!normalized)return null;const messages=normalizeExplanationMessages(normalized.messages);const index=messages.findIndex(message=>message.id===messageId);if(index===-1)return normalized;const nextMessages=[...messages];nextMessages[index]={...nextMessages[index],...patch};return{...normalized,messages:normalizeExplanationMessages(nextMessages)}}function appendSourceEditorExplanationMessages(explanation=null,messages=[]){const normalized=normalizeExplanation(explanation);if(!normalized)return null;return{...normalized,messages:normalizeExplanationMessages([...normalized.messages,...messages])}}function ignoreDisposeError(){}function useVibe64SourceEditorExplanations({canLoad,currentSessionId,currentSessionsApiPath,file,originId,selectedPath}){const explanationFeedback=useUiFeedback({source:`vibe64.source-editor.explanation.feedback`});const activeExplanation=ref(null);const explanationError=ref(``);const explanationBusy=ref(false);const explanationClosing=ref(false);const explanationFollowup=ref(``);let explanationRequestId=0;let explanationAbortController=null;function cleanupAbandonedExplanations(){if(!canLoad.value)return;const activeExplanationIds=activeExplanation.value?.id?[activeExplanation.value.id]:[];sourceEditorRequest(vibe64SourceEditorExplanationsCleanupPath(currentSessionsApiPath.value,currentSessionId.value),{body:{activeExplanationIds,originId},method:`POST`}).catch(error=>{vibe64SessionDebugLog(`client.sourceEditor.explanations.cleanup.error`,{error:vibe64SessionDebugError(error),sessionId:currentSessionId.value})})}function clearExplanationStream(){explanationRequestId+=1;explanationAbortController?.abort();explanationAbortController=null;explanationBusy.value=false}function markActiveExplanationMessage(status=``,text=``){const explanation=activeExplanation.value;const lastAssistant=[...explanation?.messages||[]].reverse().find(message=>message.role===`assistant`);if(!lastAssistant?.id)return;const nextExplanation=sourceEditorExplanationWithMessage(explanation,lastAssistant.id,{status,text:text||lastAssistant.text});activeExplanation.value=status===`failed`?{...nextExplanation,error:text||nextExplanation?.error||`Source explanation failed.`,status:`failed`}:nextExplanation}function applyExplanationStreamEvent(event={},requestId=explanationRequestId){if(requestId!==explanationRequestId)return;if(event.type===`source-explanation.error`||event.ok===false){const message=vibe64ApiResponseError(event,`Source explanation failed.`);explanationError.value=message;markActiveExplanationMessage(`failed`,message);throw new Error(message)}const eventExplanation=normalizeExplanation(event.explanation);if(event.type===`source-explanation.failed`){const message=vibe64ApiResponseError(event,`Source explanation failed.`);explanationError.value=message;if(eventExplanation)activeExplanation.value=eventExplanation;else markActiveExplanationMessage(`failed`,message);return}if(event.type===`source-explanation.started`||event.type===`source-explanation.followup.started`){if(eventExplanation)activeExplanation.value=eventExplanation;return}if(event.type===`source-explanation.thread`||event.type===`source-explanation.turn`){if(!activeExplanation.value)return;activeExplanation.value={...activeExplanation.value,agentThreadId:String(event.threadId||activeExplanation.value.agentThreadId||``),agentTurnId:String(event.turnId||activeExplanation.value.agentTurnId||``)};return}if(event.type===`source-explanation.execution-profile`&&eventExplanation){activeExplanation.value=eventExplanation;return}if(event.type===`source-explanation.message`&&event.messageId){activeExplanation.value=sourceEditorExplanationWithMessage(activeExplanation.value,String(event.messageId),{status:String(event.status||`thinking`),text:String(event.text||``)});return}if(event.type===`source-explanation.finished`&&eventExplanation){activeExplanation.value=eventExplanation;const range=eventExplanation.sourceRange;if(eventExplanation.status===`ready`&&range.presentation&&(range.scope===`file`||range.symbolId)&&!eventExplanation.followups.length&&range.path===selectedPath.value){const record={path:range.path,scope:range.scope,symbolId:range.symbolId||``,presentation:range.presentation,fileHash:range.fileHash,body:eventExplanation.body,summary:eventExplanation.summary,createdAt:eventExplanation.createdAt,status:range.fileHash===file.savedHash.value?`current`:`stale`};file.interpretations.value=[...file.interpretations.value.filter(previous=>!(previous.scope===record.scope&&previous.symbolId===record.symbolId&&previous.presentation===record.presentation)),record]}if(eventExplanation.status!==`failed`)explanationError.value=``}}async function streamSourceEditorRequest(url=``,body={},requestId=explanationRequestId){const controller=new AbortController;explanationAbortController=controller;await getHttpWebClient().requestStream(url,{body,method:`POST`,signal:controller.signal},{onEvent(event){applyExplanationStreamEvent(event,requestId)}})}async function explainSelection(range={}){if(!selectedPath.value||!canLoad.value||explanationBusy.value||explanationClosing.value)return;const requestId=explanationRequestId+1;explanationRequestId=requestId;explanationAbortController?.abort();explanationAbortController=null;const explanationId=sourceEditorClientId(`exp`);const userMessageId=sourceEditorClientId(`msg`);const assistantMessageId=sourceEditorClientId(`msg`);const previousExplanation=activeExplanation.value;activeExplanation.value=localSourceExplanation({assistantMessageId,explanationId,filePath:selectedPath.value,range,userMessageId});explanationBusy.value=true;explanationError.value=``;explanationFollowup.value=``;if(previousExplanation?.id)disposeExplanation(previousExplanation).catch(()=>null);try{await streamSourceEditorRequest(vibe64SourceEditorExplanationsStreamPath(currentSessionsApiPath.value,currentSessionId.value),{assistantMessageId,endColumn:range.endColumn,endLine:range.endLine,explanationId,force:range.force===true,presentation:range.presentation,symbolId:range.symbolId,expectedHash:range.expectedHash,originId,path:selectedPath.value,scope:range.scope,startColumn:range.startColumn,startLine:range.startLine,userMessageId},requestId)}catch(error){if(String(error?.name||``)===`AbortError`)return;if(requestId===explanationRequestId){const message=String(error?.message||error||`Source explanation could not be created.`);explanationError.value=message;markActiveExplanationMessage(`failed`,message)}}finally{if(requestId===explanationRequestId){explanationBusy.value=false;explanationAbortController=null}}}async function retryExplanation(){const range=activeExplanation.value?.sourceRange||{};const explanationPath=normalizeSourceEditorPath(range.path);if(!explanationPath||explanationBusy.value||explanationClosing.value)return;if(selectedPath.value!==explanationPath){await file.openFile(explanationPath);if(selectedPath.value!==explanationPath)return}await explainSelection({...range,...range.presentation&&range.fileHash?{expectedHash:range.fileHash}:{},force:true})}async function stopExplanation(){const explanation=activeExplanation.value;if(!explanation?.id||explanationClosing.value)return;const requestId=explanationRequestId+1;explanationRequestId=requestId;const controller=explanationAbortController;explanationAbortController=null;explanationBusy.value=false;explanationError.value=``;markActiveExplanationMessage(`stopped`,`Stopped.`);controller?.abort();if(!canLoad.value)return;try{const response=await sourceEditorRequest(vibe64SourceEditorExplanationStopPath(currentSessionsApiPath.value,currentSessionId.value,explanation.id),{method:`POST`});if(requestId!==explanationRequestId||activeExplanation.value?.id!==explanation.id)return;const stoppedExplanation=normalizeExplanation(response.explanation);if(stoppedExplanation)activeExplanation.value=stoppedExplanation}catch(error){if(requestId===explanationRequestId&&activeExplanation.value?.id===explanation.id)explanationFeedback.error(error,`Source explanation could not be stopped.`)}}async function disposeExplanation(explanation=null,{onError=ignoreDisposeError,sessionsApiPath:apiPath=currentSessionsApiPath.value,sessionId:targetSessionId=currentSessionId.value}={}){const id=String(explanation?.id||``).trim();if(!id||!apiPath||!targetSessionId)return true;try{await sourceEditorRequest(vibe64SourceEditorExplanationPath(apiPath,targetSessionId,id),{method:`DELETE`});return true}catch(error){vibe64SessionDebugLog(`client.sourceEditor.explanations.cleanup.error`,{error:vibe64SessionDebugError(error),sessionId:targetSessionId});onError(error);return false}}async function disposeActiveExplanation(options={}){const explanation=activeExplanation.value;if(!explanation)return true;const requestId=explanationRequestId;const disposed=await disposeExplanation(explanation,options);if(disposed&&requestId===explanationRequestId&&activeExplanation.value?.id===explanation.id){activeExplanation.value=null;explanationFollowup.value=``}return disposed}async function closeExplanation(){const explanation=activeExplanation.value;if(!explanation?.id||explanationClosing.value)return false;clearExplanationStream();const requestId=explanationRequestId;explanationClosing.value=true;explanationError.value=``;try{return await disposeActiveExplanation({onError(error){if(requestId===explanationRequestId&&activeExplanation.value?.id===explanation.id)explanationFeedback.error(error,`Source explanation cleanup failed. Close it again to retry.`)}})&&requestId===explanationRequestId}finally{if(requestId===explanationRequestId)explanationClosing.value=false}}function updateExplanationFollowup(value=``){explanationFollowup.value=String(value||``)}async function sendExplanationFollowup(){const message=explanationFollowup.value.trim();const explanationId=activeExplanation.value?.id||``;if(!message||!explanationId||!canLoad.value||explanationBusy.value||explanationClosing.value)return;const requestId=explanationRequestId+1;explanationRequestId=requestId;explanationAbortController?.abort();explanationAbortController=null;const createdAt=nowIso();const userMessageId=sourceEditorClientId(`msg`);const assistantMessageId=sourceEditorClientId(`msg`);activeExplanation.value=appendSourceEditorExplanationMessages(activeExplanation.value,[{createdAt,id:userMessageId,role:`user`,status:`complete`,text:message},{createdAt,id:assistantMessageId,role:`assistant`,status:`thinking`,text:``}]);explanationBusy.value=true;explanationError.value=``;explanationFollowup.value=``;try{await streamSourceEditorRequest(vibe64SourceEditorExplanationFollowupsStreamPath(currentSessionsApiPath.value,currentSessionId.value,explanationId),{assistantMessageId,message,userMessageId},requestId)}catch(error){if(String(error?.name||``)===`AbortError`)return;if(requestId===explanationRequestId){const errorMessage=String(error?.message||error||`Source explanation follow-up could not be sent.`);explanationError.value=errorMessage;markActiveExplanationMessage(`failed`,errorMessage)}}finally{if(requestId===explanationRequestId){explanationBusy.value=false;explanationAbortController=null}}}function leaveSession(previousSession){const closePending=explanationClosing.value;clearExplanationStream();explanationClosing.value=false;if(activeExplanation.value&&!closePending)disposeActiveExplanation(previousSession);activeExplanation.value=null;explanationFollowup.value=``}function dispose(){const closePending=explanationClosing.value;clearExplanationStream();explanationClosing.value=false;if(!closePending)disposeActiveExplanation()}return{activeExplanation,cleanupAbandonedExplanations,closeExplanation,dispose,explainSelection,explanationBusy,explanationClosing,explanationError,explanationFollowup,leaveSession,retryExplanation,sendExplanationFollowup,stopExplanation,updateExplanationFollowup}}var SOURCE_EDITOR_AUTOSAVE_DELAY_MS=700;var SOURCE_EDITOR_REMOTE_CHANGE_MESSAGE=`This file changed in another window. Reload it before saving.`;function sourceEditorFileChangePayloadMatches({originId=vibe64BrowserTabOriginId(),path=``,payload={},projectSlug=``,sessionId=``}={}){const normalizedPath=normalizeSourceEditorPath(path);const normalizedProjectSlug=normalizeText(projectSlug);const normalizedSessionId=normalizeText(sessionId);if(!normalizedPath||!normalizedProjectSlug||!normalizedSessionId||normalizeSourceEditorPath(payload.path)!==normalizedPath||normalizeText(payload.projectSlug)!==normalizedProjectSlug||normalizeText(payload.sessionId)!==normalizedSessionId||vibe64RealtimePayloadFromCurrentTab(payload,{originId}))return false;return Boolean(normalizeText(payload.hash))}function normalizeResolvedSourceEditorPath(value={}){const source=value&&typeof value===`object`&&!Array.isArray(value)?value:{};return{path:normalizeSourceEditorPath(source.path||source.file?.path),resolved:source.resolved===true}}function leaveReferencedSourceToEditor(){return false}function useVibe64SourceEditorFile({canLoad,currentActive,currentProjectSlug,currentSessionId,currentSessionsApiPath,disposed,loadFailure,navigateReferencedSource,originId,readCurrentText,selectedPath,tree}){const reportActivity=usePageActivity();const text=ref(``);const savedHash=ref(``);const interpretations=ref([]);const interpretationWarning=ref(``);const dirty=ref(false);const downloadOnlyFile=ref(null);const saveError=ref(``);const createFileError=ref(``);const creatingFile=ref(false);const loadingFile=ref(false);const loadingPath=ref(``);const saving=ref(false);const loadedVersion=ref(0);const cursorRequest=ref(null);let createFileRequestId=0;let fileRequestId=0;let fileRevalidationRequestId=0;let autosaveTimer=null;let pendingFileRevalidation=false;let savePromise=null;let textAtUnmount=null;function clearAutosave(){if(autosaveTimer){clearTimeout(autosaveTimer);autosaveTimer=null}}function applyFileResponse(response={},{column=0,fallbackPath=``,line=0,reveal=true}={}){const file=response.file||{};const filePath=normalizeSourceEditorPath(file.path||fallbackPath);if(!filePath)return false;selectedPath.value=filePath;downloadOnlyFile.value=null;tree.revealSelectedFile(response.revealTree);text.value=String(file.text||``);savedHash.value=String(file.hash||``);applySavedInterpretations(response,filePath);dirty.value=false;if(reveal)tree.revealLoadedFilePath(filePath);cursorRequest.value={column:Number(column||0)||0,line:Number(line||0)||0,path:filePath,version:loadedVersion.value+1};loadedVersion.value+=1;return true}function applySavedInterpretations(response,filePath){interpretations.value=(response.interpretations?.records||[]).filter(record=>record.path===filePath&&[`file`,`selection`].includes(record.scope)&&[`description`,`steps`].includes(record.presentation)&&typeof record.body===`string`&&[`current`,`stale`].includes(record.status));interpretationWarning.value=String(response.interpretations?.warning||``)}async function openFile(filePath=``,options={}){const normalizedPath=normalizeSourceEditorPath(filePath);if(!normalizedPath||!canLoad.value)return false;if((dirty.value||saving.value)&&!await saveNow())return false;const requestId=fileRequestId+1;fileRequestId=requestId;fileRevalidationRequestId+=1;loadFailure.value=null;saveError.value=``;loadingFile.value=true;loadingPath.value=normalizedPath;try{const response=await sourceEditorRequest(vibe64SourceEditorFilePath(currentSessionsApiPath.value,currentSessionId.value,normalizedPath));if(requestId!==fileRequestId)return false;if(!applyFileResponse(response,{column:options.column,fallbackPath:normalizedPath,line:options.line}))return false;reportActivity(`file-opened`,{projectSlug:currentProjectSlug.value,sessionId:currentSessionId.value,path:normalizedPath});return true}catch(error){if(requestId===fileRequestId){const code=error?.code;if(code===`vibe64_source_editor_binary_file`||code===`vibe64_source_editor_file_too_large`){selectedPath.value=``;tree.clearSelectedReveal();text.value=``;savedHash.value=``;downloadOnlyFile.value={path:normalizedPath,message:code===`vibe64_source_editor_binary_file`?`This file cannot be edited as text. Download it to open it in another application.`:`This file is too large to edit here. You can download the complete file.`};tree.revealLoadedFilePath(normalizedPath);return true}loadFailure.value={operation:`open-file`,message:String(error?.message||error||`Source file could not be loaded.`)}}return false}finally{if(requestId===fileRequestId){loadingFile.value=false;loadingPath.value=``}}}async function createFile(filePath=``){const normalizedPath=normalizeSourceEditorPath(filePath);if(!normalizedPath||!canLoad.value||creatingFile.value)return false;if((dirty.value||saving.value)&&!await saveNow())return false;const createRequestId=createFileRequestId+1;createFileRequestId=createRequestId;const fileSelectionRequestId=fileRequestId+1;fileRequestId=fileSelectionRequestId;fileRevalidationRequestId+=1;createFileError.value=``;loadFailure.value=null;saveError.value=``;creatingFile.value=true;try{const response=await sourceEditorRequest(vibe64SourceEditorCreateFilePath(currentSessionsApiPath.value,currentSessionId.value),{body:{originId,path:normalizedPath,projectSlug:currentProjectSlug.value},method:`POST`});if(fileSelectionRequestId!==fileRequestId)return false;if(!applyFileResponse(response,{fallbackPath:normalizedPath}))return false;return true}catch(error){if(fileSelectionRequestId===fileRequestId)createFileError.value=String(error?.message||error||`Source file could not be created.`);return false}finally{if(createRequestId===createFileRequestId)creatingFile.value=false}}async function revalidateSelectedFile(){const pathAtRequest=selectedPath.value;const sessionIdAtRequest=currentSessionId.value;if(disposed.value||!pathAtRequest||!canLoad.value||!currentActive.value)return false;if(saving.value){pendingFileRevalidation=true;return false}const requestId=fileRevalidationRequestId+1;fileRevalidationRequestId=requestId;try{const response=await sourceEditorRequest(vibe64SourceEditorFilePath(currentSessionsApiPath.value,sessionIdAtRequest,pathAtRequest));if(requestId!==fileRevalidationRequestId||selectedPath.value!==pathAtRequest||currentSessionId.value!==sessionIdAtRequest)return false;if(loadFailure.value?.operation===`revalidation`)loadFailure.value=null;tree.revealSelectedFile(response.revealTree);const nextHash=String(response.file?.hash||``);applySavedInterpretations(response,pathAtRequest);if(dirty.value||saving.value){if(nextHash&&nextHash!==savedHash.value)saveError.value=SOURCE_EDITOR_REMOTE_CHANGE_MESSAGE;else if(saveError.value===`This file changed in another window. Reload it before saving.`)saveError.value=``;return false}if(!nextHash||nextHash===savedHash.value)return false;return applyFileResponse(response,{fallbackPath:pathAtRequest,reveal:false})}catch(error){if(requestId===fileRevalidationRequestId&&selectedPath.value===pathAtRequest&¤tSessionId.value===sessionIdAtRequest)loadFailure.value={operation:`revalidation`,message:String(error?.message||error||`Source file could not be refreshed.`)};return false}}async function applySelectedFileChange({hash=``,path=``}={}){const changedPath=normalizeSourceEditorPath(path);const changedHash=normalizeText(hash);if(!changedPath||changedPath!==selectedPath.value||changedHash&&changedHash===savedHash.value)return;if(saving.value){pendingFileRevalidation=true;return}if(dirty.value&&changedHash){saveError.value=SOURCE_EDITOR_REMOTE_CHANGE_MESSAGE;return}await revalidateSelectedFile()}async function applyRemoteFileChange(payload={}){if(!sourceEditorFileChangePayloadMatches({originId,path:selectedPath.value,payload,projectSlug:currentProjectSlug.value,sessionId:currentSessionId.value}))return;await applySelectedFileChange(payload)}async function applyObservedFileChange(payload={}){if(normalizeText(payload.sessionId)!==currentSessionId.value||normalizeSourceEditorPath(payload.path)!==selectedPath.value)return;await applySelectedFileChange(payload)}async function openReferencedSourcePath({fromPath=selectedPath.value,target=``}={}){const normalizedFromPath=normalizeSourceEditorPath(fromPath);const normalizedTarget=String(target||``).trim();if(!normalizedFromPath||!normalizedTarget||!canLoad.value)return false;try{const resolved=normalizeResolvedSourceEditorPath(await sourceEditorRequest(vibe64SourceEditorResolvePathPath(currentSessionsApiPath.value,currentSessionId.value),{body:{fromPath:normalizedFromPath,target:normalizedTarget},method:`POST`}));if(!resolved.resolved||!resolved.path)return false;try{if(await navigateReferencedSource({fromPath:normalizedFromPath,path:resolved.path,target:normalizedTarget})===true)return true}catch{}await openFile(resolved.path);return true}catch{return false}}function scheduleSave(){clearAutosave();if(!selectedPath.value||!dirty.value)return;autosaveTimer=setTimeout(()=>{saveNow()},700)}function updateText(){dirty.value=true;saveError.value=``;scheduleSave()}function currentText(){if(textAtUnmount!==null)return textAtUnmount;return String(readCurrentText()??``)}async function saveDirtyBuffers(){while(selectedPath.value&&dirty.value){const pathAtSave=selectedPath.value;const textAtSave=currentText();const baseHashAtSave=savedHash.value;saving.value=true;saveError.value=``;try{const response=await sourceEditorRequest(vibe64SourceEditorFilePath(currentSessionsApiPath.value,currentSessionId.value),{body:{baseHash:baseHashAtSave,originId,path:pathAtSave,projectSlug:currentProjectSlug.value,text:textAtSave},method:`PUT`});if(selectedPath.value===pathAtSave){savedHash.value=String(response.file?.hash||``);text.value=textAtSave;dirty.value=currentText()!==textAtSave}}catch(error){if(selectedPath.value===pathAtSave)saveError.value=String(error?.message||error||`Source file could not be saved.`);return false}finally{saving.value=false}}if(pendingFileRevalidation){pendingFileRevalidation=false;revalidateSelectedFile()}return!dirty.value}function saveNow(){clearAutosave();if(savePromise)return savePromise;savePromise=saveDirtyBuffers().finally(()=>{savePromise=null});return savePromise}function openRequest(request={}){const filePath=normalizeSourceEditorPath(request.path);if(!filePath)return;openFile(filePath,{column:request.column,line:request.line})}function resetSelectedFile(){fileRequestId+=1;loadingFile.value=false;loadingPath.value=``;fileRevalidationRequestId+=1;pendingFileRevalidation=false;selectedPath.value=``;downloadOnlyFile.value=null;tree.clearSelectedReveal();text.value=``;savedHash.value=``;interpretations.value=[];interpretationWarning.value=``;dirty.value=false}function dispose(){fileRequestId+=1;fileRevalidationRequestId+=1;textAtUnmount=currentText();clearAutosave()}return{applyObservedFileChange,applyRemoteFileChange,createFile,createFileError,creatingFile,cursorRequest,dirty,dispose,downloadOnlyFile,interpretationWarning,interpretations,loadedVersion,loadingFile,loadingPath,openFile,openReferencedSourcePath,openRequest,resetSelectedFile,revalidateSelectedFile,saveError,saveNow,savedHash,saving,text,updateText}}var SOURCE_EDITOR_TREE_PAGE_SIZE=20;function normalizeTreeNode(value=null){if(!value||typeof value!==`object`||Array.isArray(value))return null;const type=String(value.type||``);const path=normalizeSourceEditorPath(value.path);if(type===`file`)return{language:String(value.language||``),name:String(value.name||``),path,size:Number(value.size||0),type};if(type!==`directory`)return null;return{children:(Array.isArray(value.children)?value.children:[]).map(child=>normalizeTreeNode(child)).filter(Boolean),hasMore:value.hasMore===true,limit:Math.max(1,Number(value.limit||20)),loaded:value.loaded===true,name:String(value.name||``),nextOffset:Math.max(0,Number(value.nextOffset||0)),offset:Math.max(0,Number(value.offset||0)),path,total:Math.max(0,Number(value.total||0)),truncated:value.truncated===true,type}}function mergeDirectoryChildren(existingChildren,pageChildren=[],append=false){const byKey=new Map((existingChildren||[]).map(child=>[treeNodeKey(child),child]));const mergedChildren=pageChildren.map(child=>{const previous=byKey.get(treeNodeKey(child));return child.type===`directory`&&previous?.loaded&&!child.loaded?{...child,...previous,name:child.name}:child});if(!append)return mergedChildren;for(const child of mergedChildren)byKey.set(treeNodeKey(child),child);return[...byKey.values()]}function treeNodeKey(node={}){return normalizeSourceEditorPath(node.path)||String(node.name||``)}function sortTreeNodes(children=[]){return[...children].sort((left,right)=>{if(left?.type!==right?.type)return left?.type===`directory`?-1:1;return String(left?.name||``).localeCompare(String(right?.name||``))})}function mergeDirectoryPage(root=null,directoryPath=``,page=null,append=false){const normalizedPath=normalizeSourceEditorPath(directoryPath);const normalizedPage=normalizeTreeNode(page);if(!normalizedPage)return root;if(!normalizedPath)return{...normalizedPage,children:mergeDirectoryChildren(root?.children,normalizedPage.children,append)};function visit(node=null){if(!node||node.type!==`directory`)return node;if(normalizeSourceEditorPath(node.path)===normalizedPath)return{...node,...normalizedPage,children:mergeDirectoryChildren(node.children,normalizedPage.children,append)};return{...node,children:(Array.isArray(node.children)?node.children:[]).map(child=>visit(child))}}return visit(root)}function mergeRevealedTreeNode(existing=null,reveal=null){const normalizedReveal=normalizeTreeNode(reveal);if(!normalizedReveal)return normalizeTreeNode(existing);const normalizedExisting=normalizeTreeNode(existing);if(!normalizedExisting||treeNodeKey(normalizedExisting)!==treeNodeKey(normalizedReveal))return normalizedReveal;if(normalizedExisting.type!==`directory`||normalizedReveal.type!==`directory`)return normalizedExisting;const childrenByKey=new Map((normalizedExisting.children||[]).map(child=>[treeNodeKey(child),child]));for(const child of normalizedReveal.children||[]){const key=treeNodeKey(child);childrenByKey.set(key,mergeRevealedTreeNode(childrenByKey.get(key),child))}return{...normalizedExisting,children:sortTreeNodes([...childrenByKey.values()])}}function mergeRevealTree(root=null,revealTree=null){const normalizedReveal=normalizeTreeNode(revealTree);if(!normalizedReveal)return root;return mergeRevealedTreeNode(root,normalizedReveal)}function findTreeDirectory(root=null,directoryPath=``){const normalizedPath=normalizeSourceEditorPath(directoryPath);if(!root||root.type!==`directory`)return null;if(normalizeSourceEditorPath(root.path)===normalizedPath)return root;for(const child of Array.isArray(root.children)?root.children:[]){const found=findTreeDirectory(child,normalizedPath);if(found)return found}return null}function loadedFileAncestorDirectoryPaths(root=null,filePath=``,ancestors=[]){const normalizedFilePath=normalizeSourceEditorPath(filePath);if(!root||!normalizedFilePath)return null;if(root.type===`file`)return normalizeSourceEditorPath(root.path)===normalizedFilePath?ancestors:null;if(root.type!==`directory`)return null;const normalizedDirectoryPath=normalizeSourceEditorPath(root.path);const childAncestors=normalizedDirectoryPath?[...ancestors,normalizedDirectoryPath]:ancestors;for(const child of Array.isArray(root.children)?root.children:[]){const found=loadedFileAncestorDirectoryPaths(child,normalizedFilePath,childAncestors);if(found)return found}return null}function loadedTreeDirectoryPaths(root=null){const paths=[];function visit(node=null){if(!node||node.type!==`directory`)return;const normalizedPath=normalizeSourceEditorPath(node.path);if(normalizedPath&&node.loaded===true)paths.push(normalizedPath);for(const child of Array.isArray(node.children)?node.children:[])visit(child)}visit(root);return[...new Set(paths)].sort((left,right)=>{return left.split(`/`).length-right.split(`/`).length||left.localeCompare(right)})}function normalizeSourceEditorPolicy(value={}){return value&&typeof value===`object`&&!Array.isArray(value)?{...value}:{}}function useVibe64SourceEditorTree({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,loadFailure,onRefreshInterrupted,selectedPath}){const tree=ref(null);const policy=ref({});const treeLoadingPaths=ref([]);const treeLoadErrors=ref({});const loadingTree=ref(false);const revealedDirectoryPaths=ref([]);const selectedRevealTree=ref(null);let treeRequestId=0;const treeDirectoryRequestIds=new Map;function treePathKey(value=``){return normalizeSourceEditorPath(value)}function setTreePathLoading(path=``,loading=false){const key=treePathKey(path);const current=new Set(treeLoadingPaths.value);if(loading)current.add(key);else current.delete(key);treeLoadingPaths.value=[...current].sort((left,right)=>left.localeCompare(right))}function setTreePathError(path=``,message=``){const key=treePathKey(path);const next={...treeLoadErrors.value};if(message)next[key]=message;else delete next[key];treeLoadErrors.value=next}async function loadDirectoryPage(directoryPath=``,{applyPage=true,append=false,offset=0}={}){const normalizedPath=treePathKey(directoryPath);if(!canLoad.value||disposed.value)return null;const treeGeneration=treeRequestId;const requestKey=normalizedPath;const requestId=(treeDirectoryRequestIds.get(requestKey)||0)+1;treeDirectoryRequestIds.set(requestKey,requestId);setTreePathLoading(normalizedPath,true);setTreePathError(normalizedPath,``);if(!normalizedPath&&!append){loadingTree.value=true;loadFailure.value=null}try{const response=await sourceEditorRequest(vibe64SourceEditorTreePath(currentSessionsApiPath.value,currentSessionId.value,{limit:20,offset,path:normalizedPath}));if(treeGeneration!==treeRequestId||treeDirectoryRequestIds.get(requestKey)!==requestId)return null;if(!normalizedPath)policy.value=normalizeSourceEditorPolicy(response.policy||{});const page=normalizeTreeNode(response.tree);if(applyPage){tree.value=mergeDirectoryPage(tree.value,normalizedPath,page,append);if(selectedRevealTree.value)tree.value=mergeRevealTree(tree.value,selectedRevealTree.value)}if(applyPage)revealLoadedFilePath(selectedPath.value);return page}catch(error){if(treeGeneration===treeRequestId&&treeDirectoryRequestIds.get(requestKey)===requestId){const message=String(error?.message||error||`Source tree could not be loaded.`);setTreePathError(normalizedPath,message);if(!normalizedPath)loadFailure.value={operation:`tree`,message}}return null}finally{if(treeGeneration===treeRequestId&&treeDirectoryRequestIds.get(requestKey)===requestId){setTreePathLoading(normalizedPath,false);if(!normalizedPath&&applyPage)loadingTree.value=false}}}function revealLoadedFilePath(filePath=``){const ancestors=loadedFileAncestorDirectoryPaths(tree.value,filePath);if(ancestors)revealedDirectoryPaths.value=normalizeSourceEditorDirectoryPaths(ancestors)}async function loadTree({preserveLoadedDirectories=true}={}){const refreshingLoadedTree=preserveLoadedDirectories&&Boolean(tree.value);const directoriesToReload=preserveLoadedDirectories?loadedTreeDirectoryPaths(tree.value):[];const loadedCounts=new Map([``,...directoriesToReload].map(directoryPath=>[directoryPath,findTreeDirectory(tree.value,directoryPath)?.children?.length||0]));const requestId=treeRequestId+1;treeRequestId=requestId;if(!preserveLoadedDirectories){tree.value=null;policy.value=normalizeSourceEditorPolicy({});revealedDirectoryPaths.value=[]}treeDirectoryRequestIds.clear();treeLoadingPaths.value=[];treeLoadErrors.value={};loadFailure.value=null;if(!canLoad.value)return;loadingTree.value=true;let refreshedTree=tree.value;for(const directoryPath of[``,...directoriesToReload]){if(requestId!==treeRequestId)return;if(directoryPath&&!findTreeDirectory(refreshedTree,directoryPath))continue;let offset=0;do{if(disposed.value||refreshingLoadedTree&&!currentActive.value){onRefreshInterrupted();loadingTree.value=false;return}const page=await loadDirectoryPage(directoryPath,{applyPage:false,append:offset>0,offset});if(requestId!==treeRequestId)return;if(page)refreshedTree=mergeDirectoryPage(refreshedTree,directoryPath,page,offset>0);if(!page?.hasMore||!page.nextOffset||page.nextOffset<=offset)break;offset=page.nextOffset}while(offset<loadedCounts.get(directoryPath))}tree.value=refreshedTree;loadingTree.value=false;if(selectedRevealTree.value){tree.value=mergeRevealTree(tree.value,selectedRevealTree.value);revealLoadedFilePath(selectedPath.value)}}function loadDirectory(directoryPath=``){const normalizedPath=treePathKey(directoryPath);if(findTreeDirectory(tree.value,normalizedPath)?.loaded===true)return;loadDirectoryPage(normalizedPath,{append:false,offset:0})}function loadMoreDirectory(directoryPath=``){const normalizedPath=treePathKey(directoryPath);const directory=findTreeDirectory(tree.value,normalizedPath);if(!directory?.hasMore)return;loadDirectoryPage(normalizedPath,{append:true,offset:directory.nextOffset||directory.children?.length||0})}function revealSelectedFile(revealTree){selectedRevealTree.value=normalizeTreeNode(revealTree);if(selectedRevealTree.value)tree.value=mergeRevealTree(tree.value,selectedRevealTree.value)}function clearSelectedReveal(){selectedRevealTree.value=null}function dispose(){treeRequestId+=1}return{clearSelectedReveal,dispose,loadDirectory,loadMoreDirectory,loadTree,loadingTree,policy,revealLoadedFilePath,revealSelectedFile,revealedDirectoryPaths,tree,treeLoadErrors,treeLoadingPaths}}function useVibe64SourceEditor({active=true,agentActive=false,navigateReferencedSource,projectSlug,readCurrentText,sessionsApiPath,sessionId}){const originId=vibe64BrowserTabOriginId();const selectedPath=ref(``);const loadFailure=ref(null);const loadError=computed(()=>loadFailure.value?.message||``);const disposed=ref(false);let pendingTreeRefresh=false;let refreshPromise=null;const currentSessionsApiPath=computed(()=>String(readRefOrGetterValue(sessionsApiPath)||``).trim());const currentSessionId=computed(()=>String(readRefOrGetterValue(sessionId)||``).trim());const currentProjectSlug=computed(()=>String(readRefOrGetterValue(projectSlug)||``).trim());const currentActive=computed(()=>readRefOrGetterValue(active)!==false);const canLoad=computed(()=>Boolean(currentSessionsApiPath.value&¤tSessionId.value));const tree=useVibe64SourceEditorTree({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,loadFailure,onRefreshInterrupted:()=>{pendingTreeRefresh=!disposed.value},selectedPath});const file=useVibe64SourceEditorFile({canLoad,currentActive,currentProjectSlug,currentSessionId,currentSessionsApiPath,disposed,loadFailure,navigateReferencedSource,originId,readCurrentText,selectedPath,tree});const discovery=useVibe64SourceEditorDiscovery({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,openFile:file.openFile});const explanations=useVibe64SourceEditorExplanations({canLoad,currentSessionId,currentSessionsApiPath,file,originId,selectedPath});const statusLabel=computed(()=>{if(file.saveError.value)return file.saveError.value;if(file.loadingFile.value)return`Opening...`;if(file.saving.value)return`Saving...`;if(file.dirty.value)return`Unsaved`;return selectedPath.value?`Saved`:``});useRealtimeEvent({enabled:computed(()=>Boolean(canLoad.value&¤tProjectSlug.value)),event:VIBE64_SOURCE_EDITOR_FILE_CHANGED_EVENT,matches:({payload={}}={})=>payload.operation===`created`&&payload.originId!==originId&&payload.projectSlug===currentProjectSlug.value&&payload.sessionId===currentSessionId.value||sourceEditorFileChangePayloadMatches({originId,path:selectedPath.value,payload,projectSlug:currentProjectSlug.value,sessionId:currentSessionId.value}),onEvent:({payload={}}={})=>{file.applyRemoteFileChange(payload);if(payload.operation===`created`){if(currentActive.value)tree.loadTree();else pendingTreeRefresh=true}}});useVibe64SourceEditorFileSync({active:computed(()=>canLoad.value&¤tActive.value),onChange:(payload={})=>{file.applyObservedFileChange(payload)},onError:(error={})=>{vibe64SessionDebugLog(`client.sourceEditor.fileSync.error`,{error:String(error.error||`Source file observation failed.`),path:selectedPath.value,sessionId:currentSessionId.value,transient:error.transient===true})},onReady:()=>{file.revalidateSelectedFile()},path:selectedPath,sessionId:currentSessionId,sessionsApiPath:currentSessionsApiPath});function refresh(){if(refreshPromise){pendingTreeRefresh=true;return refreshPromise}refreshPromise=(async()=>{do{pendingTreeRefresh=false;tree.clearSelectedReveal();await tree.loadTree();await file.revalidateSelectedFile();if(discovery.searchQuery.value&¤tActive.value)await discovery.loadSearchResults({background:true})}while(pendingTreeRefresh&¤tActive.value)})().finally(()=>{refreshPromise=null});return refreshPromise}watch([currentSessionId,()=>Boolean(readRefOrGetterValue(agentActive))],([id,working],previous=[])=>{if(id!==previous[0]||!previous[1]||working)return;if(currentActive.value)refresh();else pendingTreeRefresh=true});if(typeof window!==`undefined`)window.addEventListener(`focus`,file.revalidateSelectedFile);watch([currentSessionsApiPath,currentSessionId,currentActive],async(current,previous=[])=>{if(current[0]===previous[0]&¤t[1]===previous[1]){if(!current[2])discovery.pauseSearch();else if(discovery.searchQuery.value&&!pendingTreeRefresh)discovery.loadSearchResults({background:true});if(current[2]&&pendingTreeRefresh)await refresh();return}pendingTreeRefresh=false;explanations.leaveSession({sessionsApiPath:previous[0]||currentSessionsApiPath.value,sessionId:previous[1]||currentSessionId.value});discovery.resetDiscoveryState();file.resetSelectedFile();await tree.loadTree({preserveLoadedDirectories:false});explanations.cleanupAbandonedExplanations()},{immediate:true});onBeforeUnmount(()=>{disposed.value=true;tree.dispose();file.dispose();explanations.dispose();discovery.dispose();if(typeof window!==`undefined`)window.removeEventListener(`focus`,file.revalidateSelectedFile);file.saveNow()});return{activeExplanation:explanations.activeExplanation,closeExplanation:explanations.closeExplanation,createFile:file.createFile,createFileError:file.createFileError,creatingFile:file.creatingFile,cursorRequest:file.cursorRequest,dirty:file.dirty,downloadOnlyFile:file.downloadOnlyFile,explanationBusy:explanations.explanationBusy,explanationClosing:explanations.explanationClosing,explanationError:explanations.explanationError,explanationFollowup:explanations.explanationFollowup,explainSelection:explanations.explainSelection,fileMatches:discovery.fileMatches,fileMatchesError:discovery.fileMatchesError,fileMatchesLoading:discovery.fileMatchesLoading,fileMatchesTruncated:discovery.fileMatchesTruncated,fileQuery:discovery.fileQuery,loadError,loadedVersion:file.loadedVersion,loadDirectory:tree.loadDirectory,loadMoreDirectory:tree.loadMoreDirectory,loadingFile:file.loadingFile,loadingPath:file.loadingPath,loadingTree:tree.loadingTree,openFile:file.openFile,openFileMatch:discovery.openFileMatch,openFirstFileMatch:discovery.openFirstFileMatch,openReferencedSourcePath:file.openReferencedSourcePath,openRequest:file.openRequest,openSearchResult:discovery.openSearchResult,policy:tree.policy,refresh,retryExplanation:explanations.retryExplanation,revealedDirectoryPaths:tree.revealedDirectoryPaths,saveError:file.saveError,saveNow:file.saveNow,savedHash:file.savedHash,interpretations:file.interpretations,interpretationWarning:file.interpretationWarning,searchError:discovery.searchError,searchLoading:discovery.searchLoading,searchIndex:discovery.searchIndex,searchIndexLabel:discovery.searchIndexLabel,searchIndexPending:discovery.searchIndexPending,searchQuery:discovery.searchQuery,searchResults:discovery.searchResults,searchTruncated:discovery.searchTruncated,selectedPath,sendExplanationFollowup:explanations.sendExplanationFollowup,saving:file.saving,stopExplanation:explanations.stopExplanation,statusLabel,text:file.text,tree:tree.tree,treeLoadErrors:tree.treeLoadErrors,treeLoadingPaths:tree.treeLoadingPaths,updateExplanationFollowup:explanations.updateExplanationFollowup,updateFileQuery:discovery.updateFileQuery,updateSearchQuery:discovery.updateSearchQuery,updateText:file.updateText}}var basicNormalize=typeof String.prototype.normalize==`function`?x=>x.normalize(`NFKD`):x=>x;var SearchCursor=class{constructor(text,query,from=0,to=text.length,normalize,test){this.test=test;this.value={from:0,to:0,precise:false};this.done=false;this.matches=[];this.buffer=``;this.bufferPos=0;this.iter=text.iterRange(from,to);this.bufferStart=from;this.normalize=normalize?x=>normalize(basicNormalize(x)):basicNormalize;this.query=this.normalize(query)}peek(){if(this.bufferPos==this.buffer.length){this.bufferStart+=this.buffer.length;this.iter.next();if(this.iter.done)return-1;this.bufferPos=0;this.buffer=this.iter.value}return codePointAt(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let next=this.peek();if(next<0){this.done=true;return this}let str=fromCodePoint(next),start=this.bufferStart+this.bufferPos;this.bufferPos+=codePointSize(next);let norm=this.normalize(str);if(norm.length)for(let i=0,pos=start,posPrecise=true;;i++){let code=norm.charCodeAt(i);let match=this.match(code,pos,posPrecise,this.bufferPos+this.bufferStart,i==norm.length-1);if(match){this.value=match;return this}if(i==norm.length-1)break;if(posPrecise&&i<str.length&&str.charCodeAt(i)==code)pos++;else posPrecise=false}}}match(code,pos,posPrecise,end,endPrecise){let match=null;for(let i=0;i<this.matches.length;){let partial=this.matches[i],keep=false;if(this.query.charCodeAt(partial.index)==code){if(partial.index==this.query.length-1)match={from:partial.from,to:end,precise:endPrecise&&partial.precise};else{partial.index++;keep=true}}if(keep)i++;else this.matches.splice(i,1)}if(this.query.charCodeAt(0)==code){if(this.query.length==1)match={from:pos,to:end,precise:posPrecise&&endPrecise};else this.matches.push({from:pos,index:1,precise:posPrecise})}if(match&&this.test&&!this.test(match.from,match.to,this.buffer,this.bufferStart))match=null;return match}};if(typeof Symbol!=`undefined`)SearchCursor.prototype[Symbol.iterator]=function(){return this};var empty={from:-1,to:-1,match:/.*/.exec(``),precise:true};var baseFlags=`gm`+(/x/.unicode==null?``:`u`);var RegExpCursor=class{constructor(text,query,options,from=0,to=text.length){this.text=text;this.to=to;this.curLine=``;this.done=false;this.value=empty;if(/\\[sWDnr]|\n|\r|\[\^/.test(query))return new MultilineRegExpCursor(text,query,options,from,to);this.re=new RegExp(query,baseFlags+((options===null||options===void 0?void 0:options.ignoreCase)?`i`:``));this.test=options===null||options===void 0?void 0:options.test;this.iter=text.iter();let startLine=text.lineAt(from);this.curLineStart=startLine.from;this.matchPos=toCharEnd(text,from);this.getLine(this.curLineStart)}getLine(skip){this.iter.next(skip);if(this.iter.lineBreak)this.curLine=``;else{this.curLine=this.iter.value;if(this.curLineStart+this.curLine.length>this.to)this.curLine=this.curLine.slice(0,this.to-this.curLineStart);this.iter.next()}}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1;if(this.curLineStart>this.to)this.curLine=``;else this.getLine(0)}next(){for(let off=this.matchPos-this.curLineStart;;){this.re.lastIndex=off;let match=this.matchPos<=this.to&&this.re.exec(this.curLine);if(match){let from=this.curLineStart+match.index,to=from+match[0].length;this.matchPos=toCharEnd(this.text,to+(from==to?1:0));if(from==this.curLineStart+this.curLine.length)this.nextLine();if((from<to||from>this.value.to)&&(!this.test||this.test(from,to,match))){this.value={from,to,precise:true,match};return this}off=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to){this.nextLine();off=0}else{this.done=true;return this}}}};var flattened=new WeakMap;var FlattenedDoc=class FlattenedDoc{constructor(from,text){this.from=from;this.text=text}get to(){return this.from+this.text.length}static get(doc,from,to){let cached=flattened.get(doc);if(!cached||cached.from>=to||cached.to<=from){let flat=new FlattenedDoc(from,doc.sliceString(from,to));flattened.set(doc,flat);return flat}if(cached.from==from&&cached.to==to)return cached;let{text,from:cachedFrom}=cached;if(cachedFrom>from){text=doc.sliceString(from,cachedFrom)+text;cachedFrom=from}if(cached.to<to)text+=doc.sliceString(cached.to,to);flattened.set(doc,new FlattenedDoc(cachedFrom,text));return new FlattenedDoc(from,text.slice(from-cachedFrom,to-cachedFrom))}};var MultilineRegExpCursor=class{constructor(text,query,options,from,to){this.text=text;this.to=to;this.done=false;this.value=empty;this.matchPos=toCharEnd(text,from);this.re=new RegExp(query,baseFlags+((options===null||options===void 0?void 0:options.ignoreCase)?`i`:``));this.test=options===null||options===void 0?void 0:options.test;this.flat=FlattenedDoc.get(text,from,this.chunkEnd(from+5e3))}chunkEnd(pos){return pos>=this.to?this.to:this.text.lineAt(pos).to}next(){for(;;){let off=this.re.lastIndex=this.matchPos-this.flat.from;let match=this.re.exec(this.flat.text);if(match&&!match[0]&&match.index==off){this.re.lastIndex=off+1;match=this.re.exec(this.flat.text)}if(match){let from=this.flat.from+match.index,to=from+match[0].length;if((this.flat.to>=this.to||match.index+match[0].length<=this.flat.text.length-10)&&(!this.test||this.test(from,to,match))){this.value={from,to,precise:true,match};this.matchPos=toCharEnd(this.text,to+(from==to?1:0));return this}}if(this.flat.to==this.to){this.done=true;return this}this.flat=FlattenedDoc.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};if(typeof Symbol!=`undefined`)RegExpCursor.prototype[Symbol.iterator]=MultilineRegExpCursor.prototype[Symbol.iterator]=function(){return this};function validRegExp(source){try{new RegExp(source,baseFlags);return true}catch(_a){return false}}function toCharEnd(text,pos){if(pos>=text.length)return pos;let line=text.lineAt(pos),next;while(pos<line.to&&(next=line.text.charCodeAt(pos-line.from))>=56320&&next<57344)pos++;return pos}var gotoLine=view=>{let open=getDialog(view,`cm-goto-line`);if(open){let field=open.dom.querySelector(`input[type=text]`);if(field)field.select();return true}let{state}=view;let line=String(state.doc.lineAt(view.state.selection.main.head).number);let{close,result}=showDialog(view,{class:`cm-goto-line`,label:state.phrase(`Go to line`),input:{type:`text`,name:`line`,value:line},focus:true,submitLabel:state.phrase(`go`)});result.then(form=>{let match=form&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(form.elements[`line`].value);if(!match){view.dispatch({effects:close});return}let startLine=state.doc.lineAt(state.selection.main.head);let[,sign,ln,cl,percent]=match;let col=cl?+cl.slice(1):0;let line=ln?+ln:startLine.number;if(ln&&percent){let pc=line/100;if(sign)pc=pc*(sign==`-`?-1:1)+startLine.number/state.doc.lines;line=Math.round(state.doc.lines*pc)}else if(ln&&sign)line=line*(sign==`-`?-1:1)+startLine.number;let docLine=state.doc.line(Math.max(1,Math.min(state.doc.lines,line)));let selection=EditorSelection.cursor(docLine.from+Math.max(0,Math.min(col,docLine.length)));view.dispatch({effects:[close,EditorView.scrollIntoView(selection.from,{y:`center`})],selection})});return true};var selectWord=({state,dispatch})=>{let{selection}=state;let newSel=EditorSelection.create(selection.ranges.map(range=>state.wordAt(range.head)||EditorSelection.cursor(range.head)),selection.mainIndex);if(newSel.eq(selection))return false;dispatch(state.update({selection:newSel}));return true};function findNextOccurrence(state,query){let{main,ranges}=state.selection;let word=state.wordAt(main.head),fullWord=word&&word.from==main.from&&word.to==main.to;for(let cycled=false,cursor=new SearchCursor(state.doc,query,ranges[ranges.length-1].to);;){cursor.next();if(cursor.done){if(cycled)return null;cursor=new SearchCursor(state.doc,query,0,Math.max(0,ranges[ranges.length-1].from-1));cycled=true}else{if(cycled&&ranges.some(r=>r.from==cursor.value.from))continue;if(fullWord){let word=state.wordAt(cursor.value.from);if(!word||word.from!=cursor.value.from||word.to!=cursor.value.to)continue}return cursor.value}}}var selectNextOccurrence=({state,dispatch})=>{let{ranges}=state.selection;if(ranges.some(sel=>sel.from===sel.to))return selectWord({state,dispatch});let searchedText=state.sliceDoc(ranges[0].from,ranges[0].to);if(state.selection.ranges.some(r=>state.sliceDoc(r.from,r.to)!=searchedText))return false;let range=findNextOccurrence(state,searchedText);if(!range)return false;dispatch(state.update({selection:state.selection.addRange(EditorSelection.range(range.from,range.to),false),effects:EditorView.scrollIntoView(range.to)}));return true};var searchConfigFacet=Facet.define({combine(configs){return combineConfig(configs,{top:false,caseSensitive:false,literal:false,regexp:false,wholeWord:false,createPanel:view=>new SearchPanel(view),scrollToMatch:range=>EditorView.scrollIntoView(range)})}});var SearchQuery=class{constructor(config){this.search=config.search;this.caseSensitive=!!config.caseSensitive;this.literal=!!config.literal;this.regexp=!!config.regexp;this.replace=config.replace||``;this.valid=!!this.search&&(!this.regexp||validRegExp(this.search));this.unquoted=this.unquote(this.search);this.wholeWord=!!config.wholeWord;this.test=config.test}unquote(text){return this.literal?text:text.replace(/\\([nrt\\])/g,(_,ch)=>ch==`n`?`
|
|
1
|
+
import{a as __exportAll}from"./placement-Lk1Lpy6s.js";import{Ct as toRef,Et as unref,G as renderList,H as openBlock,I as onBeforeUnmount,K as renderSlot,Kt as normalizeClass,M as mergeProps,N as nextTick,Xt as toDisplayString,b as createVNode,d as createBaseVNode,et as useModel,f as createBlock,ft as isRef,i as Fragment,it as watch,j as mergeModels,m as createElementBlock,ot as withCtx,p as createCommentVNode,q as resolveComponent,st as withDirectives,u as computed,vt as ref,xt as shallowRef,y as createTextVNode,z as onMounted}from"./runtime-core.esm-bundler-Bi1P1jMa.js";import{S as VIcon,cr as vShow,lr as withKeys,mt as useDisplay,t as VChip,ur as withModifiers}from"./VChip-D2IukBZw.js";import{u as normalizeText}from"./normalize-BD25VwNK.js";import{t as VAlert}from"./VAlert-DyCQWe9P.js";import{n as VList,s as VListItem,t as VMenu}from"./VMenu-DQ9SZ1Fq.js";import{t as VTextField}from"./VTextField-BMvaWVTN.js";import{n as getHttpWebClient}from"./httpClient-BRO3GqjU.js";import{i as scopedDevelopmentApiUrl,n as resolveStudioRequestUrl}from"./studioUrls-oIU1Eq_t.js";import{t as VBtn}from"./VBtn-2vbH580C.js";import{t as VDialog}from"./VDialog-B2W9wqR8.js";import{i as VCardTitle,n as VCardText,o as VCardActions,t as VCard}from"./VCard-BFqQSnAE.js";import{t as VSpacer}from"./VSpacer-GgPR_AzN.js";import{t as VSkeletonLoader}from"./VSkeletonLoader-C5ZRrPV4.js";import{t as _plugin_vue_export_helper_default}from"./_plugin-vue_export-helper-DNW4j-dv.js";import{g as scrollElementNearBottom,h as useScrollToBottom,v as LongTextPreviewBlocks_default,y as parseLongTextReviewBlocks}from"./conversation-QpMeXw70.js";import"./conversation-p_mmD9ie.js";import{r as useRealtimeEvent}from"./useRealtimeEvent-B4oRg9Dt.js";import{t as useUiFeedback}from"./useUiFeedback-CycH_fvY.js";import{t as readRefOrGetterValue}from"./vueRefOrGetterValue-y-4f_In7.js";import{i as vibe64RealtimePayloadFromCurrentTab,n as vibe64BrowserTabOriginId}from"./vibe64BrowserTabOrigin-vIN_87mi.js";import{$ as vibe64SourceEditorResolvePathPath,G as vibe64SourceEditorDownloadPath,J as vibe64SourceEditorExplanationStopPath,K as vibe64SourceEditorExplanationFollowupsStreamPath,Q as vibe64SourceEditorFilesPath,U as vibe64SourceEditorChangesStreamPath,W as vibe64SourceEditorCreateFilePath,X as vibe64SourceEditorExplanationsStreamPath,Y as vibe64SourceEditorExplanationsCleanupPath,Z as vibe64SourceEditorFilePath,d as VIBE64_SOURCE_EDITOR_SYNC_READY_EVENT,et as vibe64SourceEditorSearchPath,l as VIBE64_SOURCE_EDITOR_FILE_CHANGED_EVENT,nt as vibe64SourceEditorTreePath,q as vibe64SourceEditorExplanationPath,u as VIBE64_SOURCE_EDITOR_SYNC_ERROR_EVENT}from"./vibe64SessionRequestConfig-DVRCRAex.js";import{c as vibe64AssistantSelectionLabel,h as vibe64AgentExecutionProfileAuditSnapshot}from"./shared-X5MxTHwl.js";import{d as Vibe64StarredFilesList_default,f as markdownDocumentLinkTarget,g as sourcePathReferenceAtLineColumn,h as sourceEditorLinkTarget,m as normalizeSourceEditorPath,p as normalizeSourceEditorDirectoryPaths,s as _sfc_main$10}from"./Vibe64ConversationLog-DtOgxPNR.js";import{n as vibe64ApiResponseError,t as vibe64ApiError}from"./vibe64ApiResponses-DuJ9mfus.js";import{n as stableLocalStorageKeyPart,r as writeLocalStorageJson,t as readLocalStorageJson}from"./browserLocalStorage-B4C7rHrs.js";import{t as writeClipboardText}from"./clipboard-CZs9aH3L.js";import{X as usePageActivity,d as F,u as GithubMarkdown_default}from"./index-Bvd00puv.js";import{$ as rectangularSelection,A as foldService,B as tags$1,C as continuedIndent,Ct as NodeWeakMap,D as flatIndent,E as delimitedIndent,Et as parseMixed,F as sublanguageProp,G as drawSelection,H as EditorView,I as syntaxHighlighting,J as getPanel,K as dropCursor,L as syntaxTree,M as indentOnInput,N as indentUnit,O as foldInside,P as languageDataProp,Q as lineNumbers,R as Tag,S as bracketMatchingHandle,St as NodeType,T as defineLanguageFacet,Tt as Tree,U as ViewPlugin,V as Decoration,W as crosshairCursor,X as highlightActiveLineGutter,Z as keymap,_ as LanguageDescription,_t as findClusterBreak,a as redo,at as Compartment,b as StreamLanguage,bt as NodeProp,c as completeFromList,ct as Facet,d as ContextTracker,dt as StateEffect,et as runScopeHandlers,f as ExternalTokenizer,ft as StateField,g as Language,gt as countColumn,h as LRLanguage,ht as combineConfig,i as indentWithTab,it as CharCategory,j as indentNodeProp,k as foldNodeProp,l as ifNotIn,lt as Prec,m as LocalTokenGroup,mt as codePointSize,n as history,nt as showPanel,o as undo,ot as EditorSelection,p as LRParser,pt as codePointAt,q as getDialog,r as historyKeymap,rt as crelt,s as CompletionContext,st as EditorState,t as defaultKeymap,tt as showDialog,u as snippetCompletion,ut as RangeSetBuilder,v as LanguageSupport,vt as fromCodePoint,w as defaultHighlightStyle,wt as Parser,x as bracketMatching,xt as NodeSet,y as ParseContext,yt as IterMode,z as styleTags}from"./dist-CDa9Iec1.js";import{r as useVibe64SystemGraph}from"./client-DuDOzb5A.js";import{n as vibe64SessionDebugError,r as vibe64SessionDebugLog}from"./vibe64SessionDebugLog-BfO7tG1A.js";import{a as vibe64FileArea,i as vibe64DroppedFiles,n as Vibe64ImagePreview_default,t as filePreviewImageType}from"./fileTypes-DRyfajWx.js";import{t as diffLines}from"./libesm-CR-iGldz.js";import{t as downloadAttachment}from"./vibe64AttachmentDownload-BWRCIKUr.js";var _hoisted_1$8={class:`source-interface`,"aria-label":`File public interface`};var _hoisted_2$7={class:`source-interface__heading`};var _hoisted_3$7={class:`source-interface__modes`};var _hoisted_4$7={class:`source-interface__overview`,"aria-label":`File explanation`};var _hoisted_5$6={class:`source-interface__field-heading`};var _hoisted_6$5={key:2,class:`source-interface__hint`};var _hoisted_7$5={key:3,class:`source-interface__membership`,"aria-label":`Program membership`};var _hoisted_8$5={key:0,class:`source-interface__main`};var _hoisted_9$5={key:1};var _hoisted_10$4=[`onClick`];var _hoisted_11$4={key:4,class:`source-interface__hint`,role:`status`};var _hoisted_12$2=[`title`];var _hoisted_13$2={key:5,class:`source-interface__analysis`};var _hoisted_14$1={key:0,class:`source-interface__hint`};var _hoisted_15$1={key:1,class:`source-interface__hint`};var _hoisted_16$1={class:`source-interface__layout`};var _hoisted_17$1={class:`source-interface__symbols`,"aria-label":`Exported and public symbols`};var _hoisted_18=[`data-symbol-id`,`disabled`,`aria-pressed`,`onClick`];var _hoisted_19=[`title`];var _hoisted_20={key:0};var _hoisted_21={key:1};var _hoisted_22={key:0,class:`source-interface__detail`,"aria-label":`Selected symbol`};var _hoisted_23={key:0,class:`source-interface__hint`};var _hoisted_24={class:`source-interface__modes`,"aria-label":`Symbol presentation`};var _hoisted_25={key:0};var _hoisted_26={key:1,class:`source-interface__hint`};var _hoisted_27={key:2,class:`source-interface__code`};var _hoisted_28={key:0,class:`source-interface__hint`};var _hoisted_29={key:3,class:`source-interface__hint`};var _hoisted_30={key:0,class:`source-interface__hint`};var _sfc_main$9={__name:`Vibe64SourceInterface`,props:{filePath:{type:String,default:``},fileHash:{type:String,default:``},analysisError:{type:String,default:``},symbols:{type:Array,default:()=>[]},programs:{type:Array,default:()=>[]},programStatus:{type:String,default:``},interpretations:{type:Array,default:()=>[]},interpretationWarning:{type:String,default:``},activeInterpretation:Boolean,activeFileInterpretation:Boolean,selectedId:{type:String,default:``},current:Boolean,indexed:Boolean,dirty:Boolean,busy:Boolean,assistantAvailable:Boolean,assistantUnavailableMessage:{type:String,default:``},source:{type:String,default:``},presentation:{type:String,default:`description`},coverage:{type:String,default:`Partial static coverage`}},emits:[`select-symbol`,`present-symbol`,`explain-file`,`whole-file-code`,`open-source`,`open-program`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const orderedPrograms=computed(()=>[...props.programs.filter(program=>program.mainSource===props.filePath),...props.programs.filter(program=>program.mainSource!==props.filePath)]);function openProgramLink(payload={}){const target=sourceEditorLinkTarget(payload);if(!target)return;payload.event.preventDefault();const program=props.programs.find(program=>program.path===target.path);if(program)emit(`open-program`,program.id);else emit(`open-source`,target)}const selectedSymbol=computed(()=>props.symbols.find(symbol=>symbol.id===props.selectedId));const explanationDisabled=computed(()=>props.busy||props.dirty||!props.assistantAvailable);function signature(symbol){return(symbol.qualifiedName||symbol.name)+(Array.isArray(symbol.parameters)?`(${symbol.parameters.join(`, `)})`:``)}function saved(scope,symbolId,presentation){return props.interpretations.find(record=>record.path===props.filePath&&record.scope===scope&&(record.symbolId||``)===symbolId&&record.presentation===presentation)}function isCurrentInterpretation(record){return record.status===`current`&&record.fileHash===props.fileHash&&!props.dirty}const selectedInterpretation=computed(()=>saved(`selection`,selectedSymbol.value?.id||``,`steps`));const fileInterpretation=computed(()=>saved(`file`,``,`description`));const interpretationBlocks=computed(()=>parseLongTextReviewBlocks(selectedInterpretation.value?.body||``));return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,_hoisted_1$8,[createBaseVNode(`header`,_hoisted_2$7,[createBaseVNode(`h3`,null,toDisplayString(__props.filePath?.split(`/`).pop()),1),createBaseVNode(`div`,_hoisted_3$7,[createVNode(VBtn,{size:`small`,variant:`text`,onClick:_cache[0]||(_cache[0]=$event=>_ctx.$emit(`whole-file-code`))},{default:withCtx(()=>[..._cache[5]||(_cache[5]=[createTextVNode(`Code · whole file`,-1)])]),_:1})]),createBaseVNode(`p`,null,toDisplayString(__props.filePath),1)]),__props.analysisError?(openBlock(),createBlock(VAlert,{key:0,type:`error`,variant:`tonal`,class:`mb-3`},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.analysisError),1)]),_:1})):createCommentVNode(``,true),__props.dirty?(openBlock(),createBlock(VAlert,{key:1,type:`info`,variant:`tonal`,class:`mb-3`},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(`This file has unsaved edits. Save before generating an explanation or using indexed symbol ranges.`,-1)])]),_:1})):!__props.current?(openBlock(),createBlock(VAlert,{key:2,type:`info`,variant:`tonal`,class:`mb-3`},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.indexed?`Index out of date.`:`Symbols not indexed.`)+` Open whole-file Code. Update the index from Architecture → ⋯.`,1)]),_:1})):createCommentVNode(``,true),createBaseVNode(`section`,_hoisted_4$7,[createBaseVNode(`header`,_hoisted_5$6,[_cache[7]||(_cache[7]=createBaseVNode(`h4`,null,`Explanation`,-1)),fileInterpretation.value?(openBlock(),createElementBlock(`span`,{key:0,class:normalizeClass([`source-interface__freshness`,{"source-interface__freshness--stale":!isCurrentInterpretation(fileInterpretation.value)}])},toDisplayString(isCurrentInterpretation(fileInterpretation.value)?`Saved`:`Out of date`),3)):createCommentVNode(``,true),createVNode(VBtn,{size:`small`,variant:`text`,disabled:explanationDisabled.value,onClick:_cache[1]||(_cache[1]=$event=>_ctx.$emit(`explain-file`,Boolean(fileInterpretation.value)))},{default:withCtx(()=>[createTextVNode(toDisplayString(fileInterpretation.value?`Update explanation`:`Generate explanation`),1)]),_:1},8,[`disabled`])]),createBaseVNode(`div`,{class:normalizeClass([`source-interface__explanation`,{"source-interface__explanation--empty":!fileInterpretation.value&&!__props.activeFileInterpretation}])},[__props.activeFileInterpretation?renderSlot(_ctx.$slots,`explanation`,{savedBody:fileInterpretation.value?.body||``},void 0,true,0):fileInterpretation.value?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:1,blocks:unref(parseLongTextReviewBlocks)(fileInterpretation.value.body),onLinkClick:openProgramLink},null,8,[`blocks`])):(openBlock(),createElementBlock(`p`,_hoisted_6$5,toDisplayString(!__props.assistantAvailable?`Choose an Explain & check model in Models to generate an explanation.`:`No explanation yet.`),1))],2)]),__props.programs.length?(openBlock(),createElementBlock(`nav`,_hoisted_7$5,[(openBlock(true),createElementBlock(Fragment,null,renderList(orderedPrograms.value,program=>{return openBlock(),createElementBlock(`span`,{key:program.id},[program.mainSource===__props.filePath?(openBlock(),createElementBlock(`small`,_hoisted_8$5,`Main Program file`)):(openBlock(),createElementBlock(`span`,_hoisted_9$5,`Part of `)),createBaseVNode(`button`,{type:`button`,onClick:$event=>_ctx.$emit(`open-program`,program.id)},toDisplayString(program.title)+` →`,9,_hoisted_10$4)])}),128))])):createCommentVNode(``,true),__props.interpretationWarning?(openBlock(),createElementBlock(`p`,_hoisted_11$4,toDisplayString(__props.interpretationWarning),1)):createCommentVNode(``,true),createBaseVNode(`h4`,{class:`source-interface__exports-heading`,title:`${__props.coverage}. File exports may be internal to the subsystem. Unrecorded returns are omitted.`},[_cache[8]||(_cache[8]=createTextVNode(`File exports `,-1)),createBaseVNode(`span`,null,toDisplayString(__props.symbols.length),1)],8,_hoisted_12$2),__props.programStatus!==`valid`||!__props.assistantAvailable?(openBlock(),createElementBlock(`details`,_hoisted_13$2,[_cache[9]||(_cache[9]=createBaseVNode(`summary`,null,`Analysis details`,-1)),__props.programStatus!==`valid`?(openBlock(),createElementBlock(`p`,_hoisted_14$1,`Program unavailable.`)):createCommentVNode(``,true),!__props.assistantAvailable?(openBlock(),createElementBlock(`p`,_hoisted_15$1,toDisplayString(__props.assistantUnavailableMessage||`Source explanations are unavailable.`),1)):createCommentVNode(``,true)])):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_16$1,[createBaseVNode(`nav`,_hoisted_17$1,[(openBlock(true),createElementBlock(Fragment,null,renderList(__props.symbols,symbol=>{return openBlock(),createElementBlock(`div`,{key:symbol.id,class:`source-interface__symbol-row`},[createBaseVNode(`button`,{class:normalizeClass([`source-interface__symbol`,{"source-interface__symbol--selected":symbol.id===__props.selectedId}]),type:`button`,"data-symbol-id":symbol.id,disabled:!__props.current||__props.dirty,"aria-pressed":symbol.id===__props.selectedId,onClick:$event=>_ctx.$emit(`select-symbol`,symbol.id)},[createBaseVNode(`small`,null,toDisplayString(symbol.kind),1),createBaseVNode(`code`,{title:signature(symbol)},toDisplayString(signature(symbol)),9,_hoisted_19),symbol.returnType?(openBlock(),createElementBlock(`span`,_hoisted_20,`Returns: `+toDisplayString(symbol.returnType),1)):createCommentVNode(``,true),!symbol.rangeAvailable||symbol.visibilityScope&&symbol.visibilityScope!==`public`?(openBlock(),createElementBlock(`span`,_hoisted_21,toDisplayString(symbol.rangeAvailable?``:`Range unavailable`)+toDisplayString(symbol.visibilityScope&&symbol.visibilityScope!==`public`?` · Visibility: ${symbol.visibilityScope}`:``),1)):createCommentVNode(``,true)],10,_hoisted_18),symbol.id===__props.selectedId?(openBlock(),createElementBlock(`section`,_hoisted_22,[selectedSymbol.value.returnType?(openBlock(),createElementBlock(`p`,_hoisted_23,`Returns: `+toDisplayString(selectedSymbol.value.returnType),1)):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_24,[Array.isArray(selectedSymbol.value.parameters)?(openBlock(),createElementBlock(`h4`,_hoisted_25,`Pseudocode`)):createCommentVNode(``,true),__props.presentation===`code`&&selectedInterpretation.value?(openBlock(),createBlock(VBtn,{key:1,size:`small`,variant:`text`,onClick:_cache[2]||(_cache[2]=$event=>_ctx.$emit(`select-symbol`,__props.selectedId))},{default:withCtx(()=>[..._cache[10]||(_cache[10]=[createTextVNode(`Pseudocode`,-1)])]),_:1})):createCommentVNode(``,true),Array.isArray(selectedSymbol.value.parameters)?(openBlock(),createBlock(VBtn,{key:2,size:`small`,variant:`text`,disabled:!selectedSymbol.value.rangeAvailable||!__props.current||__props.dirty||explanationDisabled.value,onClick:_cache[3]||(_cache[3]=$event=>_ctx.$emit(`present-symbol`,`steps`,Boolean(selectedInterpretation.value)))},{default:withCtx(()=>[createTextVNode(toDisplayString(selectedInterpretation.value?`Update pseudocode`:`Generate pseudocode`),1)]),_:1},8,[`disabled`])):createCommentVNode(``,true),createVNode(VBtn,{size:`small`,variant:`text`,disabled:!selectedSymbol.value.rangeAvailable||!__props.current||__props.dirty,onClick:_cache[4]||(_cache[4]=$event=>_ctx.$emit(`present-symbol`,`code`))},{default:withCtx(()=>[..._cache[11]||(_cache[11]=[createTextVNode(`Code`,-1)])]),_:1},8,[`disabled`])]),Array.isArray(selectedSymbol.value.parameters)&&!__props.assistantAvailable&&!saved(`selection`,__props.selectedId,`steps`)?(openBlock(),createElementBlock(`p`,_hoisted_26,`Pseudocode needs an Explain & check model.`)):createCommentVNode(``,true),__props.presentation===`code`?(openBlock(),createElementBlock(`pre`,_hoisted_27,[createBaseVNode(`code`,null,toDisplayString(__props.source),1)])):Array.isArray(selectedSymbol.value.parameters)?(openBlock(),createElementBlock(Fragment,{key:3},[selectedInterpretation.value?(openBlock(),createElementBlock(`p`,_hoisted_28,toDisplayString(isCurrentInterpretation(selectedInterpretation.value)?`Saved · matches source`:`Out of date · source or guidance changed`),1)):createCommentVNode(``,true),__props.activeInterpretation?renderSlot(_ctx.$slots,`explanation`,{savedBody:selectedInterpretation.value?.body||``},void 0,true,1):selectedInterpretation.value?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:2,blocks:interpretationBlocks.value,onLinkClick:openProgramLink},null,8,[`blocks`])):(openBlock(),createElementBlock(`p`,_hoisted_29,`No pseudocode yet.`))],64)):createCommentVNode(``,true)])):createCommentVNode(``,true)])}),128)),!__props.symbols.length?(openBlock(),createElementBlock(`p`,_hoisted_30,toDisplayString(__props.current?`No exports recorded; analysis may be incomplete.`:`Open whole-file Code.`),1)):createCommentVNode(``,true)])])])}}};var Vibe64SourceInterface_default=_plugin_vue_export_helper_default(_sfc_main$9,[[`__scopeId`,`data-v-8aeba7e1`]]);function basename(filePath=``){return String(filePath||``).split(`/`).at(-1)||filePath}function sourceEditorPathIsMarkdown(filePath=``){const lowerPath=String(filePath||``).toLowerCase();return/\.(md|markdown|todo)$/u.test(lowerPath)||/(^|\/)todo$/u.test(lowerPath)}var _hoisted_1$7={class:`vibe64-source-editor__tools`};var _hoisted_2$6={class:`vibe64-source-editor__tool`};var _hoisted_3$6={key:0,class:`vibe64-source-editor__matches`};var _hoisted_4$6={key:0,class:`vibe64-source-editor__match-note`};var _hoisted_5$5={key:1,class:`vibe64-source-editor__match-note vibe64-source-editor__match-note--error`};var _hoisted_6$4=[`title`,`onClick`];var _hoisted_7$4={class:`vibe64-source-editor__match-name`};var _hoisted_8$4={class:`vibe64-source-editor__match-path`};var _hoisted_9$4={key:0,class:`vibe64-source-editor__match-note`};var _hoisted_10$3={key:1,class:`vibe64-source-editor__match-note`};var _hoisted_11$3={class:`vibe64-source-editor__tool`};var _sfc_main$8={__name:`Vibe64SourceEditorFinder`,props:{editor:{type:Object,required:true}},setup(__props){const props=__props;const fastOpenPanelVisible=computed(()=>Boolean(props.editor.fileQuery.value));return(_ctx,_cache)=>{return openBlock(),createElementBlock(`div`,_hoisted_1$7,[createBaseVNode(`div`,_hoisted_2$6,[createVNode(VTextField,{autocomplete:`off`,clearable:``,density:`compact`,"hide-details":``,label:`Open file`,"model-value":__props.editor.fileQuery.value,"prepend-inner-icon":`$findInPage`,variant:`outlined`,onKeydown:withKeys(withModifiers(__props.editor.openFirstFileMatch,[`prevent`]),[`enter`]),"onUpdate:modelValue":__props.editor.updateFileQuery},null,8,[`model-value`,`onKeydown`,`onUpdate:modelValue`]),fastOpenPanelVisible.value?(openBlock(),createElementBlock(`div`,_hoisted_3$6,[__props.editor.fileMatchesLoading.value?(openBlock(),createElementBlock(`div`,_hoisted_4$6,` Finding files... `)):__props.editor.fileMatchesError.value?(openBlock(),createElementBlock(`div`,_hoisted_5$5,toDisplayString(__props.editor.fileMatchesError.value),1)):(openBlock(),createElementBlock(Fragment,{key:2},[(openBlock(true),createElementBlock(Fragment,null,renderList(__props.editor.fileMatches.value,file=>{return openBlock(),createElementBlock(`button`,{key:file.path,class:`vibe64-source-editor__match`,title:file.path,type:`button`,onClick:$event=>__props.editor.openFileMatch(file.path)},[createBaseVNode(`span`,_hoisted_7$4,toDisplayString(file.name||unref(basename)(file.path)),1),createBaseVNode(`span`,_hoisted_8$4,toDisplayString(file.path),1)],8,_hoisted_6$4)}),128)),!__props.editor.fileMatches.value.length?(openBlock(),createElementBlock(`div`,_hoisted_9$4,` No matching files. `)):createCommentVNode(``,true),__props.editor.fileMatchesTruncated.value?(openBlock(),createElementBlock(`div`,_hoisted_10$3,` Keep typing to narrow the list. `)):createCommentVNode(``,true)],64))])):createCommentVNode(``,true)]),createBaseVNode(`div`,_hoisted_11$3,[createVNode(VTextField,{autocomplete:`off`,clearable:``,density:`compact`,"hide-details":``,label:`Find in files`,"model-value":__props.editor.searchQuery.value,"prepend-inner-icon":`$search`,variant:`outlined`,onKeydown:_cache[0]||(_cache[0]=withKeys(withModifiers($event=>__props.editor.openSearchResult(__props.editor.searchResults.value[0]),[`prevent`]),[`enter`])),"onUpdate:modelValue":__props.editor.updateSearchQuery},null,8,[`model-value`,`onUpdate:modelValue`])])])}}};var Vibe64SourceEditorFinder_default=_plugin_vue_export_helper_default(_sfc_main$8,[[`__scopeId`,`data-v-73b8ab75`]]);var _hoisted_1$6={class:`vibe64-source-editor__header`};var _hoisted_2$5={class:`vibe64-source-editor__title`};var _hoisted_3$5=[`title`];var _hoisted_4$5={key:4,class:`vibe64-source-editor__mobile-actions`};var _hoisted_5$4={key:5,class:`vibe64-source-editor__actions`};var _sfc_main$7={__name:`Vibe64SourceEditorHeader`,props:mergeModels({assistantAvailable:{type:Boolean,default:true},assistantUnavailableMessage:{type:String,default:``},codeFocusMode:{type:Boolean,default:false},displayedPath:{type:String,default:``},downloadingPath:{type:String,default:``},editor:{type:Object,required:true},fileBookmarks:{type:Object,default:null},markdownRenderable:{type:Boolean,default:false},mobile:{type:Boolean,default:false},selectedFileName:{type:String,default:``},singleFile:{type:Boolean,default:false},svgRenderable:{type:Boolean,default:false}},{"fileListCollapsed":{type:Boolean,default:false},"fileListCollapsedModifiers":{},"filePresentation":{type:String,default:`interface`},"filePresentationModifiers":{}}),emits:mergeModels([`command`,`download`,`explain`,`refresh`],[`update:fileListCollapsed`,`update:filePresentation`]),setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const fileListCollapsed=useModel(__props,`fileListCollapsed`);const filePresentation=useModel(__props,`filePresentation`);const selectedStarred=computed(()=>props.fileBookmarks?.paths.value.includes(props.displayedPath)||false);return(_ctx,_cache)=>{return openBlock(),createElementBlock(`header`,_hoisted_1$6,[!__props.singleFile&&__props.mobile&&!__props.codeFocusMode?(openBlock(),createBlock(VBtn,{key:0,"aria-expanded":!fileListCollapsed.value,"aria-label":fileListCollapsed.value?`Show files`:`Hide files`,icon:fileListCollapsed.value?`$folder`:`$close`,variant:`text`,onClick:_cache[0]||(_cache[0]=$event=>fileListCollapsed.value=!fileListCollapsed.value)},null,8,[`aria-expanded`,`aria-label`,`icon`])):createCommentVNode(``,true),createBaseVNode(`div`,_hoisted_2$5,[!__props.mobile?(openBlock(),createBlock(VIcon,{key:0,icon:`$codeBlocks`,size:`19`})):createCommentVNode(``,true),createBaseVNode(`h2`,{title:__props.editor.loadingPath.value||__props.displayedPath||`Choose a source file`},toDisplayString(__props.selectedFileName),9,_hoisted_3$5)]),__props.editor.selectedPath.value&&__props.markdownRenderable?(openBlock(),createBlock(VBtn,{key:1,variant:`text`,title:filePresentation.value===`rendered`?`Show the Markdown source`:`Show the formatted document`,onClick:_cache[1]||(_cache[1]=$event=>filePresentation.value=filePresentation.value===`rendered`?`code`:`rendered`)},{default:withCtx(()=>[createTextVNode(toDisplayString(filePresentation.value===`rendered`?`Markdown`:`Rendered`),1)]),_:1},8,[`title`])):__props.editor.selectedPath.value&&__props.svgRenderable?(openBlock(),createBlock(VBtn,{key:2,variant:`text`,title:filePresentation.value===`rendered`?`Show the SVG source`:`Show the image`,onClick:_cache[2]||(_cache[2]=$event=>filePresentation.value=filePresentation.value===`rendered`?`code`:`rendered`)},{default:withCtx(()=>[createTextVNode(toDisplayString(filePresentation.value===`rendered`?`SVG source`:`Image`),1)]),_:1},8,[`title`])):__props.editor.selectedPath.value?(openBlock(),createBlock(VBtn,{key:3,variant:`text`,onClick:_cache[3]||(_cache[3]=$event=>filePresentation.value=filePresentation.value===`code`?`interface`:`code`)},{default:withCtx(()=>[createTextVNode(toDisplayString(filePresentation.value===`code`?`Interface`:`Code`),1)]),_:1})):createCommentVNode(``,true),__props.mobile?(openBlock(),createElementBlock(`div`,_hoisted_4$5,[createVNode(VBtn,{disabled:!__props.editor.dirty.value||__props.editor.saving.value,"aria-label":__props.editor.saving.value?`Saving file`:`Save now`,icon:`$save`,variant:`tonal`,onClick:__props.editor.saveNow},null,8,[`disabled`,`aria-label`,`onClick`]),createVNode(VMenu,null,{activator:withCtx(({props:menuProps})=>[createVNode(VBtn,mergeProps(menuProps,{icon:`$moreVert`,"aria-label":`File actions`,variant:`text`}),null,16)]),default:withCtx(()=>[createVNode(VList,{density:`compact`},{default:withCtx(()=>[__props.editor.statusLabel.value?(openBlock(),createBlock(VListItem,{key:0,title:__props.editor.statusLabel.value,class:normalizeClass({"text-error":__props.editor.saveError.value})},null,8,[`title`,`class`])):createCommentVNode(``,true),__props.fileBookmarks?(openBlock(),createBlock(VListItem,{key:1,title:selectedStarred.value?`Unstar file`:`Star file`,"prepend-icon":selectedStarred.value?`$starFilled`:`$star`,disabled:!__props.displayedPath||__props.fileBookmarks.pendingPaths.value.includes(__props.displayedPath),onClick:_cache[4]||(_cache[4]=$event=>__props.fileBookmarks.toggle(__props.displayedPath))},null,8,[`title`,`prepend-icon`,`disabled`])):createCommentVNode(``,true),createVNode(VListItem,{title:`Download file`,"prepend-icon":`$download`,disabled:!__props.displayedPath||__props.editor.loadingFile.value||Boolean(__props.downloadingPath),onClick:_cache[5]||(_cache[5]=$event=>emit(`download`,__props.displayedPath))},null,8,[`disabled`]),createVNode(VListItem,{title:`Undo`,"prepend-icon":`$undo`,disabled:!__props.editor.selectedPath.value,onClick:_cache[6]||(_cache[6]=$event=>emit(`command`,`undo`))},null,8,[`disabled`]),createVNode(VListItem,{title:`Redo`,"prepend-icon":`$redo`,disabled:!__props.editor.selectedPath.value,onClick:_cache[7]||(_cache[7]=$event=>emit(`command`,`redo`))},null,8,[`disabled`]),!__props.singleFile?(openBlock(),createBlock(VListItem,{key:2,title:`Explain file or selection`,"prepend-icon":`$smartToy`,disabled:!__props.assistantAvailable||!__props.editor.selectedPath.value||__props.editor.explanationBusy.value||__props.editor.explanationClosing.value,onClick:_cache[8]||(_cache[8]=$event=>emit(`explain`))},null,8,[`disabled`])):createCommentVNode(``,true),createVNode(VListItem,{title:`Refresh files`,"prepend-icon":`$refresh`,disabled:__props.editor.loadingTree.value,onClick:_cache[9]||(_cache[9]=$event=>emit(`refresh`))},null,8,[`disabled`])]),_:1})]),_:1})])):(openBlock(),createElementBlock(`div`,_hoisted_5$4,[__props.fileBookmarks?(openBlock(),createBlock(VBtn,{key:0,"aria-label":selectedStarred.value?`Unstar file`:`Star file`,"aria-pressed":selectedStarred.value,disabled:!__props.displayedPath||__props.fileBookmarks.pendingPaths.value.includes(__props.displayedPath),icon:selectedStarred.value?`$starFilled`:`$star`,size:`small`,title:selectedStarred.value?`Unstar file`:`Star file`,variant:`text`,onClick:_cache[10]||(_cache[10]=$event=>__props.fileBookmarks.toggle(__props.displayedPath))},null,8,[`aria-label`,`aria-pressed`,`disabled`,`icon`,`title`])):createCommentVNode(``,true),createVNode(VBtn,{"aria-label":`Download file`,disabled:!__props.displayedPath||__props.editor.loadingFile.value||Boolean(__props.downloadingPath),icon:`$download`,size:`small`,title:__props.downloadingPath?`Downloading file…`:`Download file`,variant:`text`,onClick:_cache[11]||(_cache[11]=$event=>emit(`download`,__props.displayedPath))},null,8,[`disabled`,`title`]),__props.editor.statusLabel.value?(openBlock(),createElementBlock(`span`,{key:1,class:normalizeClass([`vibe64-source-editor__status`,{"vibe64-source-editor__status--error":__props.editor.saveError.value}])},toDisplayString(__props.editor.statusLabel.value),3)):createCommentVNode(``,true),createVNode(VBtn,{disabled:!__props.editor.selectedPath.value,icon:`$undo`,size:`small`,title:`Undo`,type:`button`,variant:`text`,onClick:_cache[12]||(_cache[12]=$event=>emit(`command`,`undo`))},null,8,[`disabled`]),createVNode(VBtn,{disabled:!__props.editor.selectedPath.value,icon:`$redo`,size:`small`,title:`Redo`,type:`button`,variant:`text`,onClick:_cache[13]||(_cache[13]=$event=>emit(`command`,`redo`))},null,8,[`disabled`]),createVNode(VBtn,{disabled:!__props.editor.dirty.value||__props.editor.saving.value,icon:`$save`,loading:__props.editor.saving.value,size:`small`,title:`Save now`,type:`button`,variant:`tonal`,onClick:__props.editor.saveNow},null,8,[`disabled`,`loading`,`onClick`]),!__props.singleFile?(openBlock(),createBlock(VBtn,{key:2,class:`vibe64-source-editor__explain-button`,"aria-busy":__props.editor.explanationBusy.value||__props.editor.explanationClosing.value?`true`:`false`,color:`primary`,disabled:!__props.assistantAvailable||!__props.editor.selectedPath.value||__props.editor.explanationBusy.value||__props.editor.explanationClosing.value,"prepend-icon":`$smartToy`,size:`small`,title:!__props.assistantAvailable?__props.assistantUnavailableMessage:__props.editor.explanationClosing.value?`Closing explanation`:__props.editor.explanationBusy.value?`Explanation in progress`:`Explain file or selection`,type:`button`,variant:`tonal`,onClick:_cache[14]||(_cache[14]=$event=>emit(`explain`))},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.editor.explanationClosing.value?`Closing…`:__props.editor.explanationBusy.value?`Working…`:`Explain`),1)]),_:1},8,[`aria-busy`,`disabled`,`title`])):createCommentVNode(``,true),!__props.singleFile?(openBlock(),createBlock(VBtn,{key:3,disabled:__props.editor.loadingTree.value,icon:`$refresh`,"aria-busy":__props.editor.loadingTree.value,size:`small`,title:`Refresh files`,type:`button`,variant:`text`,onClick:_cache[15]||(_cache[15]=$event=>emit(`refresh`))},null,8,[`disabled`,`aria-busy`])):createCommentVNode(``,true)]))])}}};var Vibe64SourceEditorHeader_default=_plugin_vue_export_helper_default(_sfc_main$7,[[`__scopeId`,`data-v-d01db8ff`]]);var _hoisted_1$5={class:`vibe64-source-editor__side-rail`,type:`button`};var _sfc_main$6={__name:`Vibe64SourceEditorSideRail`,props:{icon:{type:String,required:true},label:{type:String,required:true}},setup(__props){return(_ctx,_cache)=>{return openBlock(),createElementBlock(`button`,_hoisted_1$5,[createVNode(VIcon,{icon:__props.icon,size:`22`},null,8,[`icon`]),createBaseVNode(`span`,null,toDisplayString(__props.label),1)])}}};var Vibe64SourceEditorSideRail_default=_plugin_vue_export_helper_default(_sfc_main$6,[[`__scopeId`,`data-v-7ad69f2d`]]);var _hoisted_1$4={class:`vibe64-source-tree`};var _hoisted_2$4={class:`vibe64-source-tree__row`};var _hoisted_3$4=[`data-vibe64-guide-path`,`title`,`onClick`];var _hoisted_4$4=[`title`,`onClick`];var _hoisted_5$3={key:1,class:`vibe64-source-tree__chevron-spacer`,"aria-hidden":`true`};var _hoisted_6$3={key:0,class:`vibe64-source-tree__directory`};var _hoisted_7$3={key:0,class:`vibe64-source-tree__notice`};var _hoisted_8$3={key:1,class:`vibe64-source-tree__notice vibe64-source-tree__notice--error`};var _hoisted_9$3={key:2,class:`vibe64-source-tree__notice`};var _hoisted_10$2={key:0,class:`vibe64-source-tree__item`};var _hoisted_11$2=[`disabled`,`title`];var _hoisted_12$1={key:0};var _hoisted_13$1={key:1};var _sfc_main$5={__name:`Vibe64SourceFileTree`,props:{starredPaths:{type:Array,default:()=>[]},expandedPaths:{default:()=>[],type:Array},loadErrors:{default:()=>({}),type:Object},loadingPaths:{default:()=>[],type:Array},node:{default:null,type:Object},selectedPath:{default:``,type:String},assistantDraftAvailable:{default:false,type:Boolean},filesActions:{default:false,type:Boolean}},emits:[`ask-assistant`,`copy-path`,`directory-open-change`,`download-file`,`load-more-directory`,`new-file`,`open-file`,`toggle-star`,`transfer`,`upload`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const nodes=computed(()=>Array.isArray(props.node?.children)?props.node.children:[]);const nodeHasMore=computed(()=>props.node?.hasMore===true);const currentNodeLoading=computed(()=>pathLoading(props.node?.path||``));const nextHiddenNodeCount=computed(()=>{const loadedCount=nodes.value.length;const totalCount=Number(props.node?.total||0);const pageSize=Number(props.node?.limit||0);return totalCount>loadedCount?Math.min(pageSize,totalCount-loadedCount):pageSize});const nodeLabel=computed(()=>props.node?.path||props.node?.name||`source`);const expandedPathSet=computed(()=>new Set((Array.isArray(props.expandedPaths)?props.expandedPaths:[]).map(path=>normalizeSourceEditorPath(path)).filter(Boolean)));const loadingPathSet=computed(()=>new Set((Array.isArray(props.loadingPaths)?props.loadingPaths:[]).map(path=>normalizeSourceEditorPath(path))));function directoryExpandable(node={}){return node.type===`directory`&&(node.loaded!==true||node.hasMore===true||Array.isArray(node.children)&&node.children.length>0)}function directoryKey(node={}){return normalizeSourceEditorPath(node.path||node.name||``)}function directoryOpen(node={}){return expandedPathSet.value.has(directoryKey(node))}function pathLoading(path=``){return loadingPathSet.value.has(normalizeSourceEditorPath(path))}function directoryLoading(node={}){return pathLoading(directoryKey(node))}function directoryLoadError(node={}){return String(props.loadErrors?.[directoryKey(node)]||``)}function directoryChildCount(node={}){return Array.isArray(node.children)?node.children.length:0}function toggleDirectory(node={}){const key=directoryKey(node);if(!key)return;emit(`directory-open-change`,{open:!directoryOpen(node),path:key})}function showMore(){emit(`load-more-directory`,props.node?.path||``)}return(_ctx,_cache)=>{const _component_Vibe64SourceFileTree=resolveComponent(`Vibe64SourceFileTree`,true);return openBlock(),createElementBlock(`ul`,_hoisted_1$4,[(openBlock(true),createElementBlock(Fragment,null,renderList(nodes.value,child=>{return openBlock(),createElementBlock(`li`,{key:child.path||child.name,class:`vibe64-source-tree__item`},[createBaseVNode(`div`,_hoisted_2$4,[child.type===`file`?(openBlock(),createElementBlock(`button`,{key:0,class:normalizeClass([`vibe64-source-tree__button`,{"vibe64-source-tree__button--active":child.path===__props.selectedPath}]),"data-vibe64-guide-path":child.path||void 0,title:child.path||child.name||`source`,type:`button`,onClick:$event=>emit(`open-file`,child.path)},[createVNode(VIcon,{icon:`$description`,size:`15`}),createBaseVNode(`span`,null,toDisplayString(child.name),1),__props.starredPaths.includes(child.path)?(openBlock(),createBlock(VIcon,{key:0,icon:`$starFilled`,size:`14`,"aria-label":`Starred`})):createCommentVNode(``,true)],10,_hoisted_3$4)):(openBlock(),createElementBlock(`button`,{key:1,class:`vibe64-source-tree__button vibe64-source-tree__button--directory`,title:child.path||child.name||`source`,type:`button`,onClick:$event=>toggleDirectory(child)},[directoryExpandable(child)?(openBlock(),createBlock(VIcon,{key:0,class:normalizeClass([`vibe64-source-tree__chevron`,{"vibe64-source-tree__chevron--open":directoryOpen(child)}]),icon:`$chevronRight`,size:`14`},null,8,[`class`])):(openBlock(),createElementBlock(`span`,_hoisted_5$3)),createVNode(VIcon,{icon:`$folder`,size:`15`}),createBaseVNode(`span`,null,toDisplayString(child.name||`source`),1)],8,_hoisted_4$4)),createVNode(VMenu,{location:`bottom end`},{activator:withCtx(({props:activatorProps})=>[createVNode(VBtn,mergeProps({ref_for:true},activatorProps,{"aria-label":`Actions for ${child.path||child.name||`source`}`,class:`vibe64-source-tree__menu-button`,icon:`$moreVert`,size:`x-small`,title:`Actions for ${child.path||child.name||`source`}`,type:`button`,variant:`text`,onClick:_cache[0]||(_cache[0]=withModifiers(()=>{},[`stop`]))}),null,16,[`aria-label`,`title`])]),default:withCtx(()=>[createVNode(VList,{class:`vibe64-source-tree__menu`,density:`compact`},{default:withCtx(()=>[child.type===`file`?(openBlock(),createBlock(VListItem,{key:0,"prepend-icon":__props.starredPaths.includes(child.path)?`$starFilled`:`$star`,title:__props.starredPaths.includes(child.path)?`Unstar file`:`Star file`,onClick:$event=>emit(`toggle-star`,child.path)},null,8,[`prepend-icon`,`title`,`onClick`])):createCommentVNode(``,true),child.type===`file`?(openBlock(),createBlock(VListItem,{key:1,"prepend-icon":`$download`,title:`Download file`,onClick:$event=>emit(`download-file`,child.path)},null,8,[`onClick`])):createCommentVNode(``,true),child.type===`directory`?(openBlock(),createBlock(VListItem,{key:2,"prepend-icon":`$noteAdd`,title:`New file here`,onClick:$event=>emit(`new-file`,child.path||``)},null,8,[`onClick`])):createCommentVNode(``,true),__props.filesActions&&child.type===`directory`?(openBlock(),createBlock(VListItem,{key:3,"prepend-icon":`$uploadArrow`,title:`Upload here`,onClick:$event=>emit(`upload`,child.path||``)},null,8,[`onClick`])):createCommentVNode(``,true),__props.filesActions&&child.path?(openBlock(),createBlock(VListItem,{key:4,"prepend-icon":`$driveFileMove`,title:`Move or copy…`,onClick:$event=>emit(`transfer`,{name:child.name,path:child.path,type:child.type})},null,8,[`onClick`])):createCommentVNode(``,true),createVNode(VListItem,{"prepend-icon":`$contentCopy`,title:`Copy path`,onClick:$event=>emit(`copy-path`,child.path||child.name||``)},null,8,[`onClick`]),child.type===`file`&&__props.assistantDraftAvailable?(openBlock(),createBlock(VListItem,{key:5,"prepend-icon":`$smartToy`,title:`Ask the AI assistant about this file`,onClick:$event=>emit(`ask-assistant`,child.path||``)},null,8,[`onClick`])):createCommentVNode(``,true)]),_:2},1024)]),_:2},1024)]),child.type!==`file`&&directoryOpen(child)?(openBlock(),createElementBlock(`div`,_hoisted_6$3,[createVNode(_component_Vibe64SourceFileTree,{node:child,"assistant-draft-available":__props.assistantDraftAvailable,"files-actions":__props.filesActions,"selected-path":__props.selectedPath,"starred-paths":__props.starredPaths,"expanded-paths":__props.expandedPaths,"load-errors":__props.loadErrors,"loading-paths":__props.loadingPaths,onLoadMoreDirectory:_cache[1]||(_cache[1]=$event=>emit(`load-more-directory`,$event)),onOpenFile:_cache[2]||(_cache[2]=$event=>emit(`open-file`,$event)),onToggleStar:_cache[3]||(_cache[3]=$event=>emit(`toggle-star`,$event)),onDownloadFile:_cache[4]||(_cache[4]=$event=>emit(`download-file`,$event)),onDirectoryOpenChange:_cache[5]||(_cache[5]=$event=>emit(`directory-open-change`,$event)),onNewFile:_cache[6]||(_cache[6]=$event=>emit(`new-file`,$event)),onCopyPath:_cache[7]||(_cache[7]=$event=>emit(`copy-path`,$event)),onAskAssistant:_cache[8]||(_cache[8]=$event=>emit(`ask-assistant`,$event)),onTransfer:_cache[9]||(_cache[9]=$event=>emit(`transfer`,$event)),onUpload:_cache[10]||(_cache[10]=$event=>emit(`upload`,$event))},null,8,[`node`,`assistant-draft-available`,`files-actions`,`selected-path`,`starred-paths`,`expanded-paths`,`load-errors`,`loading-paths`]),directoryLoading(child)?(openBlock(),createElementBlock(`div`,_hoisted_7$3,` Loading... `)):directoryLoadError(child)?(openBlock(),createElementBlock(`div`,_hoisted_8$3,toDisplayString(directoryLoadError(child)),1)):directoryOpen(child)&&child.loaded&&!directoryChildCount(child)&&!child.hasMore?(openBlock(),createElementBlock(`div`,_hoisted_9$3,` Empty directory. `)):createCommentVNode(``,true)])):createCommentVNode(``,true)])}),128)),nodeHasMore.value?(openBlock(),createElementBlock(`li`,_hoisted_10$2,[createBaseVNode(`button`,{class:`vibe64-source-tree__button vibe64-source-tree__button--more`,disabled:currentNodeLoading.value,title:`Load ${nextHiddenNodeCount.value} more entries in ${nodeLabel.value}`,type:`button`,onClick:showMore},[createVNode(VIcon,{icon:`$moreHoriz`,size:`15`}),currentNodeLoading.value?(openBlock(),createElementBlock(`span`,_hoisted_12$1,`Loading...`)):(openBlock(),createElementBlock(`span`,_hoisted_13$1,`Load `+toDisplayString(nextHiddenNodeCount.value)+` more`,1))],8,_hoisted_11$2)])):createCommentVNode(``,true)])}}};var Vibe64SourceFileTree_default=_plugin_vue_export_helper_default(_sfc_main$5,[[`__scopeId`,`data-v-f542a1a2`]]);var _hoisted_1$3={class:`vibe64-source-editor__tree-toolbar`};var _hoisted_2$3={key:0,class:`vibe64-source-editor__drop-label`,role:`status`};var _hoisted_3$3={key:1};var _hoisted_4$3={class:`vibe64-source-editor__tree-actions`};var _hoisted_5$2=[`open`];var _hoisted_6$2={key:1,class:`vibe64-source-editor__search-results`,"aria-label":`Find results`};var _hoisted_7$2={class:`vibe64-source-editor__search-heading`};var _hoisted_8$2={key:1,class:`vibe64-source-editor__notice`};var _hoisted_9$2={key:2,class:`vibe64-source-editor__notice vibe64-source-editor__notice--error`};var _hoisted_10$1={key:3,class:`vibe64-source-editor__notice`};var _hoisted_11$1=[`title`,`onClick`];var _hoisted_12={class:`vibe64-source-editor__search-path`};var _hoisted_13={class:`vibe64-source-editor__search-location`};var _hoisted_14={class:`vibe64-source-editor__search-preview`};var _hoisted_15={key:5,class:`vibe64-source-editor__notice`};var _hoisted_16={key:2,class:`vibe64-source-editor__notice`};var _hoisted_17={key:3,class:`vibe64-source-editor__notice vibe64-source-editor__notice--error`};var _sfc_main$4={__name:`Vibe64SourceEditorSidebar`,props:{assistantDraftAvailable:{type:Boolean,default:false},collapsed:{type:Boolean,default:false},displayedPath:{type:String,default:``},editor:{type:Object,required:true},expandedPaths:{type:Array,default:()=>[]},fileBookmarks:{type:Object,default:null},filesActions:{type:Boolean,default:false}},emits:[`ask-assistant-about-file`,`close-all-directories`,`collapse`,`directory-open-change`,`download-file`,`expand`,`new-file`,`transfer`,`upload`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const uploadFolder=computed(()=>normalizeSourceEditorPath(props.displayedPath).split(`/`).slice(0,-1).join(`/`));const uploadFolderLabel=computed(()=>[vibe64FileArea(`repo`).label,...uploadFolder.value.split(`/`).filter(Boolean)].join(` › `));const uploadFeedback=useUiFeedback({source:`vibe64.files`});const dropDepth=ref(0);const searchPanelVisible=computed(()=>Boolean(props.editor.searchQuery.value)||props.editor.searchResults.value.length>0);function searchResultTitle(result={}){return`${result.path||``}:${result.line||1}:${result.column||1}`}function uploadInto(directoryPath=``){emit(`directory-open-change`,{open:true,path:directoryPath});emit(`upload`,{folder:normalizeSourceEditorPath(directoryPath)})}const fileDrag=event=>props.filesActions&&event.dataTransfer?.types.includes(`Files`);function dragEnter(event){if(!fileDrag(event))return;event.preventDefault();dropDepth.value+=1}function dragOver(event){if(!fileDrag(event))return;event.preventDefault();event.dataTransfer.dropEffect=`copy`}function dragLeave(event){if(fileDrag(event))dropDepth.value=Math.max(0,dropDepth.value-1)}function dropFiles(event){if(!fileDrag(event))return;event.preventDefault();dropDepth.value=0;try{emit(`upload`,{folder:uploadFolder.value,files:vibe64DroppedFiles(event.dataTransfer)})}catch(error){uploadFeedback.error(error)}}async function copySourcePath(path=``){const normalizedPath=normalizeSourceEditorPath(path);if(!normalizedPath)return;try{await writeClipboardText(normalizedPath)}catch{}}function askAssistantAboutPath(path=``){const normalizedPath=normalizeSourceEditorPath(path);if(!normalizedPath||!props.assistantDraftAvailable)return;emit(`ask-assistant-about-file`,normalizedPath)}return(_ctx,_cache)=>{return openBlock(),createElementBlock(`aside`,{class:normalizeClass([`vibe64-source-editor__sidebar`,{"vibe64-source-editor__sidebar--collapsed":__props.collapsed,"vibe64-source-editor__sidebar--drop":dropDepth.value>0}]),onDragenter:dragEnter,onDragover:dragOver,onDragleave:dragLeave,onDrop:dropFiles},[__props.collapsed?(openBlock(),createBlock(Vibe64SourceEditorSideRail_default,{key:0,"aria-label":`Show files`,icon:`$chevronRight`,label:`Files`,title:`Show files`,onClick:_cache[0]||(_cache[0]=$event=>emit(`expand`))})):(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode(`div`,_hoisted_1$3,[dropDepth.value>0?(openBlock(),createElementBlock(`span`,_hoisted_2$3,`Drop to upload to `+toDisplayString(uploadFolderLabel.value),1)):(openBlock(),createElementBlock(`span`,_hoisted_3$3,`Files`)),createBaseVNode(`div`,_hoisted_4$3,[__props.filesActions?(openBlock(),createBlock(VBtn,{key:0,"aria-label":`Upload files to ${uploadFolderLabel.value}`,disabled:!__props.editor.tree.value,icon:`$uploadArrow`,size:`x-small`,title:`Upload files to ${uploadFolderLabel.value}`,type:`button`,variant:`text`,onClick:_cache[1]||(_cache[1]=$event=>emit(`upload`,{folder:uploadFolder.value}))},null,8,[`aria-label`,`disabled`,`title`])):createCommentVNode(``,true),createVNode(VBtn,{"aria-label":`New file at source root`,disabled:__props.editor.creatingFile.value||!__props.editor.tree.value,icon:`$noteAdd`,size:`x-small`,title:`New file at source root`,type:`button`,variant:`text`,onClick:_cache[2]||(_cache[2]=$event=>emit(`new-file`,``))},null,8,[`disabled`]),createVNode(VBtn,{class:`vibe64-source-editor__collapse-files-button`,"aria-label":`Collapse file list`,icon:`$chevronLeft`,size:`small`,title:`Collapse file list`,type:`button`,variant:`text`,onClick:_cache[3]||(_cache[3]=$event=>emit(`collapse`))}),createVNode(VBtn,{"aria-label":`Close all folders`,disabled:!__props.editor.tree.value||!__props.expandedPaths.length,icon:`$unfoldLess`,size:`x-small`,title:`Close all folders`,type:`button`,variant:`text`,onClick:_cache[4]||(_cache[4]=$event=>emit(`close-all-directories`))},null,8,[`disabled`])])]),__props.fileBookmarks?(openBlock(),createElementBlock(`details`,{key:0,class:`vibe64-source-editor__starred`,open:__props.fileBookmarks.files.value.length<=4},[createBaseVNode(`summary`,null,[_cache[10]||(_cache[10]=createTextVNode(`Starred `,-1)),createBaseVNode(`span`,null,toDisplayString(__props.fileBookmarks.files.value.length),1)]),createVNode(Vibe64StarredFilesList_default,{bookmarks:__props.fileBookmarks,compact:``,onOpenFile:__props.editor.openFile},null,8,[`bookmarks`,`onOpenFile`])],8,_hoisted_5$2)):createCommentVNode(``,true),searchPanelVisible.value?(openBlock(),createElementBlock(`section`,_hoisted_6$2,[createBaseVNode(`div`,_hoisted_7$2,[_cache[11]||(_cache[11]=createBaseVNode(`span`,null,`Find results`,-1)),createBaseVNode(`small`,null,toDisplayString(__props.editor.searchResults.value.length),1)]),__props.editor.searchIndexLabel.value?(openBlock(),createElementBlock(`div`,{key:0,class:normalizeClass([`vibe64-source-editor__notice`,{"vibe64-source-editor__notice--error":__props.editor.searchIndex.value?.state===`error`}]),role:`status`},toDisplayString(__props.editor.searchIndexLabel.value),3)):createCommentVNode(``,true),__props.editor.searchLoading.value&&!__props.editor.searchResults.value.length?(openBlock(),createElementBlock(`div`,_hoisted_8$2,` Searching files... `)):__props.editor.searchError.value?(openBlock(),createElementBlock(`div`,_hoisted_9$2,toDisplayString(__props.editor.searchError.value),1)):!__props.editor.searchResults.value.length&&__props.editor.searchIndex.value?.state!==`error`?(openBlock(),createElementBlock(`div`,_hoisted_10$1,toDisplayString(__props.editor.searchIndexPending.value?`Results will appear as files are indexed.`:`No results.`),1)):(openBlock(true),createElementBlock(Fragment,{key:4},renderList(__props.editor.searchResults.value,result=>{return openBlock(),createElementBlock(`button`,{key:`${result.path}:${result.line}:${result.column}:${result.preview}`,class:`vibe64-source-editor__search-result`,title:searchResultTitle(result),type:`button`,onClick:$event=>__props.editor.openSearchResult(result)},[createBaseVNode(`span`,_hoisted_12,toDisplayString(result.path),1),createBaseVNode(`span`,_hoisted_13,`Line `+toDisplayString(result.line),1),createBaseVNode(`span`,_hoisted_14,toDisplayString(result.preview),1)],8,_hoisted_11$1)}),128)),__props.editor.searchTruncated.value?(openBlock(),createElementBlock(`div`,_hoisted_15,` Search stopped at the first matches. Narrow the query for more precision. `)):createCommentVNode(``,true)])):createCommentVNode(``,true),__props.editor.loadingTree.value&&!__props.editor.tree.value?(openBlock(),createElementBlock(`div`,_hoisted_16,` Loading files... `)):__props.editor.loadError.value&&!__props.editor.tree.value?(openBlock(),createElementBlock(`div`,_hoisted_17,toDisplayString(__props.editor.loadError.value),1)):__props.editor.tree.value?(openBlock(),createBlock(Vibe64SourceFileTree_default,{key:4,"expanded-paths":__props.expandedPaths,"load-errors":__props.editor.treeLoadErrors.value,"loading-paths":__props.editor.treeLoadingPaths.value,node:__props.editor.tree.value,"selected-path":__props.displayedPath,"starred-paths":__props.fileBookmarks?.paths.value||[],"assistant-draft-available":__props.assistantDraftAvailable,"files-actions":__props.filesActions,onAskAssistant:askAssistantAboutPath,onCopyPath:copySourcePath,onDirectoryOpenChange:_cache[5]||(_cache[5]=$event=>emit(`directory-open-change`,$event)),onLoadMoreDirectory:__props.editor.loadMoreDirectory,onNewFile:_cache[6]||(_cache[6]=$event=>emit(`new-file`,$event)),onOpenFile:__props.editor.openFile,onToggleStar:_cache[7]||(_cache[7]=$event=>__props.fileBookmarks?.toggle($event)),onDownloadFile:_cache[8]||(_cache[8]=$event=>emit(`download-file`,$event)),onTransfer:_cache[9]||(_cache[9]=$event=>emit(`transfer`,$event)),onUpload:uploadInto},null,8,[`expanded-paths`,`load-errors`,`loading-paths`,`node`,`selected-path`,`starred-paths`,`assistant-draft-available`,`files-actions`,`onLoadMoreDirectory`,`onOpenFile`])):createCommentVNode(``,true)],64))],34)}}};var Vibe64SourceEditorSidebar_default=_plugin_vue_export_helper_default(_sfc_main$4,[[`__scopeId`,`data-v-221344e4`]]);function sourceExplanationMessages(explanation){return Array.isArray(explanation?.messages)&&explanation.messages.length?explanation.messages:[...explanation?.body?[{id:`body`,role:`assistant`,text:explanation.body}]:[],...Array.isArray(explanation?.followups)?explanation.followups:[]]}function sourceRangeLineSuffix({endLine,startLine}={}){const start=Number(startLine);const end=Number(endLine);if(!Number.isFinite(start)||start<1)return``;if(!Number.isFinite(end)||end<1||end===start)return`:${start}`;return`:${start}-${end}`}function compactSourcePath(path=``,{maxLength=36}={}){const normalized=normalizeSourceEditorPath(path);if(normalized.length<=maxLength)return normalized;return`...${normalized.slice(-maxLength)}`}function sourceRangePathDisplayLabel(range={}){const path=normalizeSourceEditorPath(range.path);if(!path)return`Source`;return compactSourcePath(path)}function sourceRangeDisplayLabel(range={}){const path=normalizeSourceEditorPath(range.path);if(!path)return`Source`;return`${path}${sourceRangeLineSuffix(range)}`}var _hoisted_1$2=[`aria-busy`];var _hoisted_2$2={key:1,class:`source-explanation-document__progress`,role:`status`};var _hoisted_3$2={key:2,class:`source-explanation-document__activity`,open:``};var _hoisted_4$2={key:3,class:`source-explanation-document__progress`,role:`status`};var _sfc_main$3={__name:`Vibe64SourceExplanationDocument`,props:{assistantAvailable:{type:Boolean,default:true},busy:{type:Boolean,default:false},closing:{type:Boolean,default:false},explanation:{type:Object,required:true},savedBody:{type:String,default:``}},emits:[`link-click`,`retry`,`stop`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const messages=computed(()=>sourceExplanationMessages(props.explanation));const documentBody=computed(()=>props.explanation?.body||props.savedBody||messages.value.findLast(message=>message.role===`assistant`&&message.status===`complete`)?.text||``);const documentBlocks=computed(()=>parseLongTextReviewBlocks(documentBody.value));const documentProgress=computed(()=>messages.value.findLast(message=>message.role===`assistant`&&message.status===`thinking`)?.text||``);const documentFailure=computed(()=>messages.value.findLast(message=>message.role===`assistant`&&message.status===`failed`)?.text||``);return(_ctx,_cache)=>{return openBlock(),createElementBlock(`section`,{class:`source-explanation-document`,"aria-busy":__props.busy||__props.closing,"aria-label":`Generated explanation`},[documentBody.value?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:0,blocks:documentBlocks.value,onLinkClick:_cache[0]||(_cache[0]=$event=>emit(`link-click`,$event))},null,8,[`blocks`])):createCommentVNode(``,true),__props.busy||__props.closing?(openBlock(),createElementBlock(`div`,_hoisted_2$2,[createBaseVNode(`span`,null,toDisplayString(__props.closing?`Stopping…`:`Generating explanation…`),1),!__props.closing?(openBlock(),createBlock(VBtn,{key:0,size:`small`,variant:`text`,onClick:_cache[1]||(_cache[1]=$event=>emit(`stop`))},{default:withCtx(()=>[..._cache[4]||(_cache[4]=[createTextVNode(`Stop`,-1)])]),_:1})):createCommentVNode(``,true)])):createCommentVNode(``,true),__props.busy&&documentProgress.value?(openBlock(),createElementBlock(`details`,_hoisted_3$2,[_cache[5]||(_cache[5]=createBaseVNode(`summary`,null,`Progress`,-1)),createVNode(unref(LongTextPreviewBlocks_default),{blocks:unref(parseLongTextReviewBlocks)(documentProgress.value),onLinkClick:_cache[2]||(_cache[2]=$event=>emit(`link-click`,$event))},null,8,[`blocks`])])):!__props.busy&&!__props.closing&&[`failed`,`stopped`].includes(__props.explanation.status)?(openBlock(),createElementBlock(`div`,_hoisted_4$2,[createBaseVNode(`span`,null,toDisplayString(__props.explanation.status===`stopped`?`Generation stopped.`:documentFailure.value||`Generation failed.`),1),createVNode(VBtn,{size:`small`,variant:`text`,disabled:!__props.assistantAvailable,onClick:_cache[3]||(_cache[3]=$event=>emit(`retry`))},{default:withCtx(()=>[..._cache[6]||(_cache[6]=[createTextVNode(`Retry`,-1)])]),_:1},8,[`disabled`])])):createCommentVNode(``,true)],8,_hoisted_1$2)}}};var Vibe64SourceExplanationDocument_default=_plugin_vue_export_helper_default(_sfc_main$3,[[`__scopeId`,`data-v-fde6f089`]]);var _hoisted_1$1=[`aria-busy`];var _hoisted_2$1={class:`vibe64-source-explanation__header`};var _hoisted_3$1={class:`vibe64-source-explanation__source`};var _hoisted_4$1=[`title`];var _hoisted_5$1={class:`vibe64-source-explanation__range-path`};var _hoisted_6$1={key:0,class:`vibe64-source-explanation__range-suffix`};var _hoisted_7$1={key:0,class:`vibe64-source-explanation__thinking`};var _hoisted_8$1={key:3,class:`vibe64-source-explanation__status vibe64-source-explanation__status--stopped`};var _hoisted_9$1={key:1,class:`vibe64-source-explanation__recovery`,"aria-label":`Explanation controls`};var _hoisted_10={class:`vibe64-source-explanation__recovery-actions`};var _hoisted_11={class:`vibe64-source-explanation__followup-footer`};var _sfc_main$2={__name:`Vibe64SourceExplanationPanel`,props:{embedded:Boolean,savedBody:{type:String,default:``},assistantAvailable:{default:true,type:Boolean},assistantUnavailableMessage:{default:`The selected AI connection is unavailable for this account.`,type:String},busy:{default:false,type:Boolean},closing:{default:false,type:Boolean},explanation:{default:()=>({body:``,followups:[],messages:[],sourceRange:{},summary:``,title:``}),type:Object},followup:{default:``,type:String},selectedPath:{default:``,type:String}},emits:[`collapse`,`close`,`open-range`,`open-source-link`,`retry`,`send-followup`,`stop`,`update:followup`],setup(__props,{emit:__emit}){const props=__props;const emit=__emit;const threadElement=ref(null);const threadBottomElement=ref(null);const followingLatest=ref(true);const assistantLabel=computed(()=>{const profile=props.explanation?.executionProfile;if(!profile?.providerId||!profile?.model)return`Assistant`;return vibe64AssistantSelectionLabel({engineId:profile.providerId,modelId:profile.model,variantId:profile.thinking})});const chatMessages=computed(()=>sourceExplanationMessages(props.explanation).map(message=>({...message,blocks:parseLongTextReviewBlocks(message.text||``,{preserveParagraphLineBreaks:message.role===`user`})})));const followupAvailable=computed(()=>Boolean(props.explanation?.status!==`failed`&&(props.explanation?.agentThreadId||props.explanation?.engine===`agent-cache`)&&(String(props.explanation?.body||``).trim()||chatMessages.value.some(message=>message.role===`assistant`&&message.status===`complete`&&message.text))));const sourceRange=computed(()=>props.explanation?.sourceRange||{});const sourceRangeFullLabel=computed(()=>sourceRangeDisplayLabel(sourceRange.value));const sourceRangePathLabel=computed(()=>sourceRangePathDisplayLabel(sourceRange.value));const sourceRangeSuffixLabel=computed(()=>sourceRangeLineSuffix(sourceRange.value));const threadScrollKey=computed(()=>chatMessages.value.map(message=>[message.id||``,message.role||``,message.status||``,String(message.text||``).length].join(`:`)).join(`|`));const{scrollAfterLayout:scrollThreadToBottom}=useScrollToBottom({anchor:threadBottomElement,enabled:computed(()=>followingLatest.value),scrollAnchorIntoView:false,target:threadElement});function submitFollowup(){if(!props.assistantAvailable||!props.followup.trim()||props.busy||props.closing||!followupAvailable.value)return;emit(`send-followup`)}function queueThreadBottomScroll({force=false}={}){if(props.embedded)return;if(force)followingLatest.value=true;scrollThreadToBottom({behavior:force?`auto`:`smooth`})}function updateThreadFollowState(event={}){followingLatest.value=scrollElementNearBottom(event.currentTarget||threadElement.value)}function handleExplanationLinkClick(payload={}){const target=sourceEditorLinkTarget(payload);if(!target)return;payload.event.preventDefault();payload.event.stopPropagation();emit(`open-source-link`,target)}watch(()=>props.explanation?.id||``,()=>{queueThreadBottomScroll({force:true})},{flush:`post`,immediate:true});watch(threadScrollKey,(value,previous)=>{if(!value||value===previous)return;queueThreadBottomScroll({force:chatMessages.value.at(-1)?.role===`user`})},{flush:`post`});return(_ctx,_cache)=>{return __props.embedded?(openBlock(),createBlock(Vibe64SourceExplanationDocument_default,{key:0,"assistant-available":__props.assistantAvailable,busy:__props.busy,closing:__props.closing,explanation:__props.explanation,"saved-body":__props.savedBody,onLinkClick:handleExplanationLinkClick,onRetry:_cache[0]||(_cache[0]=$event=>emit(`retry`)),onStop:_cache[1]||(_cache[1]=$event=>emit(`stop`))},null,8,[`assistant-available`,`busy`,`closing`,`explanation`,`saved-body`])):(openBlock(),createElementBlock(`aside`,{key:1,"aria-busy":__props.busy||__props.closing?`true`:`false`,class:`vibe64-source-explanation`,"aria-label":`Source explanation`},[createBaseVNode(`header`,_hoisted_2$1,[createBaseVNode(`div`,_hoisted_3$1,[createBaseVNode(`button`,{class:`vibe64-source-explanation__range`,title:sourceRangeFullLabel.value,type:`button`,onClick:_cache[2]||(_cache[2]=$event=>emit(`open-range`,__props.explanation))},[createBaseVNode(`span`,_hoisted_5$1,toDisplayString(sourceRangePathLabel.value),1),sourceRangeSuffixLabel.value?(openBlock(),createElementBlock(`span`,_hoisted_6$1,toDisplayString(sourceRangeSuffixLabel.value),1)):createCommentVNode(``,true)],8,_hoisted_4$1),__props.explanation.stale?(openBlock(),createBlock(VChip,{key:0,color:`warning`,size:`x-small`,variant:`tonal`},{default:withCtx(()=>[..._cache[9]||(_cache[9]=[createTextVNode(` Stale `,-1)])]),_:1})):createCommentVNode(``,true)]),createVNode(VBtn,{"aria-label":`Collapse explanation`,icon:`$chevronRight`,size:`small`,title:`Collapse explanation`,type:`button`,variant:`text`,onClick:_cache[3]||(_cache[3]=$event=>emit(`collapse`,$event))}),createVNode(VBtn,{class:`vibe64-source-explanation__close-button`,"aria-busy":__props.closing?`true`:void 0,"aria-label":`Close explanation`,disabled:__props.closing,"prepend-icon":`$close`,size:`x-small`,title:__props.closing?`Closing explanation`:`Close explanation`,type:`button`,variant:`text`,onClick:_cache[4]||(_cache[4]=$event=>emit(`close`,$event))},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.closing?`Closing…`:`Close`),1)]),_:1},8,[`aria-busy`,`disabled`,`title`])]),__props.explanation.stale?(openBlock(),createBlock(VAlert,{key:0,class:`vibe64-source-explanation__stale`,density:`compact`,type:`warning`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(__props.explanation.staleReason||`The source changed after this explanation was created.`),1)]),_:1})):createCommentVNode(``,true),createBaseVNode(`section`,{ref_key:`threadElement`,ref:threadElement,class:`vibe64-source-explanation__thread`,"aria-label":`Explanation chat`,tabindex:`0`,onScroll:updateThreadFollowState},[(openBlock(true),createElementBlock(Fragment,null,renderList(chatMessages.value,message=>{return openBlock(),createElementBlock(`article`,{key:message.id,class:normalizeClass([`vibe64-source-explanation__message`,[`vibe64-source-explanation__message--${message.role}`,{"vibe64-source-explanation__message--failed":message.status===`failed`,"vibe64-source-explanation__message--thinking":message.status===`thinking`}]])},[createBaseVNode(`strong`,null,toDisplayString(message.role===`user`?`You`:assistantLabel.value),1),message.status===`thinking`?(openBlock(),createElementBlock(`div`,_hoisted_7$1,[message.text?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:0,compact:``,class:`vibe64-source-explanation__thinking-detail`,blocks:message.blocks,onLinkClick:handleExplanationLinkClick},null,8,[`blocks`])):createCommentVNode(``,true),_cache[10]||(_cache[10]=createBaseVNode(`div`,{class:`vibe64-source-explanation__status`,role:`status`},[createBaseVNode(`span`,{"aria-hidden":`true`,class:`vibe64-source-explanation__status-mark`}),createBaseVNode(`span`,null,`Thinking…`)],-1))])):message.status===`failed`&&message.text?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:1,class:`vibe64-source-explanation__failure-detail`,blocks:message.blocks,onLinkClick:handleExplanationLinkClick},null,8,[`blocks`])):message.text?(openBlock(),createBlock(unref(LongTextPreviewBlocks_default),{key:2,blocks:message.blocks,onLinkClick:handleExplanationLinkClick},null,8,[`blocks`])):message.status===`stopped`?(openBlock(),createElementBlock(`div`,_hoisted_8$1,` Stopped. `)):createCommentVNode(``,true)],2)}),128)),createBaseVNode(`div`,{ref_key:`threadBottomElement`,ref:threadBottomElement,class:`vibe64-source-explanation__thread-bottom`},null,512)],544),!followupAvailable.value?(openBlock(),createElementBlock(`section`,_hoisted_9$1,[createBaseVNode(`p`,null,toDisplayString(__props.closing?`Closing…`:__props.busy?`Waiting for the explanation…`:`No explanation was produced. Check the assistant provider, then retry.`),1),createBaseVNode(`div`,_hoisted_10,[__props.busy&&!__props.closing?(openBlock(),createBlock(VBtn,{key:0,"aria-label":`Stop explanation`,color:`error`,icon:`$stop`,size:`small`,title:`Stop explanation`,type:`button`,variant:`tonal`,onClick:_cache[5]||(_cache[5]=$event=>emit(`stop`))})):(openBlock(),createBlock(VBtn,{key:1,color:`primary`,disabled:__props.closing||!__props.assistantAvailable,"prepend-icon":`$refresh`,size:`small`,title:__props.assistantAvailable?`Retry explanation`:__props.assistantUnavailableMessage,type:`button`,variant:`flat`,onClick:_cache[6]||(_cache[6]=$event=>emit(`retry`))},{default:withCtx(()=>[..._cache[11]||(_cache[11]=[createTextVNode(` Retry explanation `,-1)])]),_:1},8,[`disabled`,`title`]))])])):(openBlock(),createElementBlock(`form`,{key:2,class:`vibe64-source-explanation__followup`,onSubmit:withModifiers(submitFollowup,[`prevent`])},[createVNode(_sfc_main$10,{"attachments-enabled":false,"auto-grow":true,disabled:__props.busy||__props.closing||!__props.assistantAvailable,label:`Ask about this explanation`,"model-value":__props.followup,placeholder:`Ask a follow-up`,rows:`1`,onSubmit:submitFollowup,"onUpdate:modelValue":_cache[8]||(_cache[8]=$event=>emit(`update:followup`,$event))},{footer:withCtx(()=>[createBaseVNode(`div`,_hoisted_11,[__props.busy&&!__props.closing?(openBlock(),createBlock(VBtn,{key:0,"aria-label":`Stop explanation`,color:`error`,icon:`$stop`,size:`small`,title:`Stop explanation`,type:`button`,variant:`tonal`,onClick:_cache[7]||(_cache[7]=$event=>emit(`stop`))})):createCommentVNode(``,true),createVNode(VBtn,{"aria-label":`Send follow-up`,color:`primary`,disabled:!__props.followup.trim()||__props.busy||__props.closing||!__props.assistantAvailable,icon:`$send`,size:`small`,title:__props.assistantAvailable?`Send follow-up`:__props.assistantUnavailableMessage,type:`submit`,variant:`flat`},null,8,[`disabled`,`title`])])]),_:1},8,[`disabled`,`model-value`])],32))],8,_hoisted_1$1))}}};var Vibe64SourceExplanationPanel_default=_plugin_vue_export_helper_default(_sfc_main$2,[[`__scopeId`,`data-v-25181e8e`]]);var _sfc_main$1={__name:`Vibe64SourceNewFileDialog`,props:{editor:{type:Object,required:true}},emits:[`created`],setup(__props,{expose:__expose,emit:__emit}){const props=__props;const emit=__emit;const newFileDialogOpen=ref(false);const newFileDirectory=ref(``);const newFileError=ref(``);const newFileName=ref(``);const newFileDirectoryLabel=computed(()=>newFileDirectory.value?`Create in ${newFileDirectory.value}`:`Create in source root`);const newFilePath=computed(()=>{const name=normalizeNewFileEntryPath(newFileName.value);if(!name)return``;return newFileDirectory.value?`${newFileDirectory.value}/${name}`:name});const newFileCreateDisabled=computed(()=>Boolean(props.editor.creatingFile.value||!newFilePath.value));function normalizeNewFileEntryPath(value=``){const raw=normalizeSourceEditorPath(value).replace(/\/+$/u,``);if(!raw||raw.startsWith(`/`))return``;const parts=raw.split(`/`).filter(Boolean);if(!parts.length||parts.some(part=>part===`.`||part===`..`))return``;return parts.join(`/`)}function open(directoryPath=``){newFileDirectory.value=normalizeSourceEditorPath(directoryPath);newFileName.value=``;newFileError.value=``;newFileDialogOpen.value=true}function closeNewFileDialog(){if(props.editor.creatingFile.value)return;newFileDialogOpen.value=false;newFileError.value=``}async function submitNewFile(){const filePath=newFilePath.value;if(!filePath||props.editor.creatingFile.value){if(String(newFileName.value||``).trim())newFileError.value=`Enter a nested file path without absolute or parent-directory segments.`;return}if(!await props.editor.createFile(filePath)){newFileError.value=props.editor.createFileError.value||`Source file could not be created.`;return}emit(`created`,filePath);newFileDialogOpen.value=false;newFileError.value=``}__expose({open});return(_ctx,_cache)=>{return openBlock(),createBlock(VDialog,{modelValue:newFileDialogOpen.value,"onUpdate:modelValue":_cache[1]||(_cache[1]=$event=>newFileDialogOpen.value=$event),"max-width":`520`},{default:withCtx(()=>[createVNode(VCard,null,{default:withCtx(()=>[createVNode(VCardTitle,null,{default:withCtx(()=>[..._cache[2]||(_cache[2]=[createTextVNode(`New file`,-1)])]),_:1}),createVNode(VCardText,{class:`vibe64-source-editor__new-file-dialog`},{default:withCtx(()=>[createBaseVNode(`p`,null,toDisplayString(newFileDirectoryLabel.value),1),newFileError.value?(openBlock(),createBlock(VAlert,{key:0,density:`compact`,type:`warning`,variant:`tonal`},{default:withCtx(()=>[createTextVNode(toDisplayString(newFileError.value),1)]),_:1})):createCommentVNode(``,true),createVNode(VTextField,{modelValue:newFileName.value,"onUpdate:modelValue":_cache[0]||(_cache[0]=$event=>newFileName.value=$event),autofocus:``,autocomplete:`off`,disabled:__props.editor.creatingFile.value,label:`Path`,placeholder:`components/NewFile.vue`,variant:`outlined`,onKeydown:withKeys(withModifiers(submitNewFile,[`prevent`]),[`enter`])},null,8,[`modelValue`,`disabled`,`onKeydown`])]),_:1}),createVNode(VCardActions,null,{default:withCtx(()=>[createVNode(VSpacer),createVNode(VBtn,{disabled:__props.editor.creatingFile.value,type:`button`,variant:`text`,onClick:closeNewFileDialog},{default:withCtx(()=>[..._cache[3]||(_cache[3]=[createTextVNode(` Cancel `,-1)])]),_:1},8,[`disabled`]),createVNode(VBtn,{color:`primary`,disabled:newFileCreateDisabled.value,loading:__props.editor.creatingFile.value,type:`button`,variant:`flat`,onClick:submitNewFile},{default:withCtx(()=>[..._cache[4]||(_cache[4]=[createTextVNode(` Create `,-1)])]),_:1},8,[`disabled`,`loading`])]),_:1})]),_:1})]),_:1},8,[`modelValue`])}}};var Vibe64SourceNewFileDialog_default=_plugin_vue_export_helper_default(_sfc_main$1,[[`__scopeId`,`data-v-733b00ea`]]);function parseJsonStreamEvent(event){try{return JSON.parse(event?.data||`{}`)}catch{return{}}}function useVibe64SourceEditorFileSync({active=true,onChange,onError,onReady,path=``,sessionId=``,sessionsApiPath=``}){let eventSource=null;function currentValue(value){return String(readRefOrGetterValue(value)||``).trim()}function isActive(){return readRefOrGetterValue(active)!==false}function close(){eventSource?.close();eventSource=null}function start(){close();const currentPath=currentValue(path);const currentSessionId=currentValue(sessionId);const currentSessionsApiPath=currentValue(sessionsApiPath);if(!isActive()||!currentPath||!currentSessionId||!currentSessionsApiPath||typeof EventSource!==`function`)return;let source;try{source=new EventSource(resolveStudioRequestUrl(vibe64SourceEditorChangesStreamPath(currentSessionsApiPath,currentSessionId,currentPath)),{withCredentials:true})}catch(error){onError({error:String(error?.message||error||`Source file observation could not start.`),fatal:true});return}eventSource=source;const isCurrent=()=>eventSource===source;source.addEventListener(VIBE64_SOURCE_EDITOR_FILE_CHANGED_EVENT,event=>{if(isCurrent())onChange(parseJsonStreamEvent(event))});source.addEventListener(VIBE64_SOURCE_EDITOR_SYNC_READY_EVENT,event=>{if(!isCurrent())return;onReady(parseJsonStreamEvent(event))});source.addEventListener(VIBE64_SOURCE_EDITOR_SYNC_ERROR_EVENT,event=>{if(isCurrent()){const payload=parseJsonStreamEvent(event);onError(payload);if(payload.fatal===true)close()}});source.onerror=()=>{if(isCurrent())onError({error:`Source file observation disconnected.`,transient:true})}}watch([()=>isActive(),()=>currentValue(path),()=>currentValue(sessionId),()=>currentValue(sessionsApiPath)],start,{immediate:true});onBeforeUnmount(close)}async function sourceEditorRequest(url=``,options={}){const payload=await getHttpWebClient().request(url,options);if(payload?.ok===false)throw vibe64ApiError(payload,`Source editor request failed.`);return payload}var SOURCE_EDITOR_FILE_MATCH_DELAY_MS=120;var SOURCE_EDITOR_SEARCH_DELAY_MS=260;function normalizeFileMatches(value=[]){return(Array.isArray(value)?value:[]).map((file={})=>({language:String(file.language||``),name:String(file.name||``),path:normalizeSourceEditorPath(file.path)})).filter(file=>file.path)}function normalizeSearchResults(value=[]){return(Array.isArray(value)?value:[]).map((result={})=>({column:Math.max(1,Number(result.column||1)),line:Math.max(1,Number(result.line||1)),path:normalizeSourceEditorPath(result.path),preview:String(result.preview||``)})).filter(result=>result.path)}function useVibe64SourceEditorDiscovery({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,openFile}){const fileQuery=ref(``);const fileMatches=ref([]);const fileMatchesError=ref(``);const fileMatchesLoading=ref(false);const fileMatchesTruncated=ref(false);const searchQuery=ref(``);const searchResults=ref([]);const searchError=ref(``);const searchLoading=ref(false);const searchTruncated=ref(false);const searchIndex=ref(null);const searchIndexPending=computed(()=>[`building`,`refreshing`].includes(searchIndex.value?.state));const searchIndexLabel=computed(()=>{const index=searchIndex.value;if(index?.state===`error`)return index.error||`The search index could not be updated. Use Refresh to retry.`;if(!searchIndexPending.value)return``;const action=index.state===`refreshing`?`Refreshing file index`:`Indexing files`;return index.total?`${action}: ${index.scanned} of ${index.total} files…`:`${action}…`});let fileMatchesRequestId=0;let searchRequestId=0;let fileMatchesTimer=null;let searchTimer=null;function clearFileMatchesTimer(){if(fileMatchesTimer){clearTimeout(fileMatchesTimer);fileMatchesTimer=null}}function clearSearchTimer(){if(searchTimer){clearTimeout(searchTimer);searchTimer=null}}function clearFileMatches(){fileMatchesRequestId+=1;fileMatches.value=[];fileMatchesError.value=``;fileMatchesLoading.value=false;fileMatchesTruncated.value=false}function clearSearchResults(){searchRequestId+=1;searchResults.value=[];searchError.value=``;searchLoading.value=false;searchTruncated.value=false;searchIndex.value=null}function resetDiscoveryState(){clearFileMatchesTimer();clearSearchTimer();fileQuery.value=``;searchQuery.value=``;clearFileMatches();clearSearchResults()}async function loadFileMatches(){const query=normalizeText(fileQuery.value);if(!query){clearFileMatches();return}const requestId=fileMatchesRequestId+1;fileMatchesRequestId=requestId;fileMatchesError.value=``;if(!canLoad.value)return;fileMatchesLoading.value=true;try{const response=await sourceEditorRequest(vibe64SourceEditorFilesPath(currentSessionsApiPath.value,currentSessionId.value,query));if(requestId!==fileMatchesRequestId)return;fileMatches.value=normalizeFileMatches(response.files);fileMatchesTruncated.value=response.truncated===true}catch(error){if(requestId===fileMatchesRequestId){fileMatches.value=[];fileMatchesError.value=String(error?.message||error||`File matches could not be loaded.`)}}finally{if(requestId===fileMatchesRequestId)fileMatchesLoading.value=false}}function updateFileQuery(value=``){fileQuery.value=String(value||``);clearFileMatchesTimer();if(!normalizeText(fileQuery.value)){clearFileMatches();return}fileMatchesTimer=setTimeout(()=>{loadFileMatches()},120)}async function openFileMatch(filePath=``){const normalizedPath=normalizeSourceEditorPath(filePath);if(!normalizedPath)return;clearFileMatchesTimer();fileQuery.value=``;clearFileMatches();await openFile(normalizedPath)}function openFirstFileMatch(){const firstFile=fileMatches.value[0];if(firstFile?.path)openFileMatch(firstFile.path)}async function loadSearchResults({background=false}={}){clearSearchTimer();if(disposed.value||!currentActive.value)return;const query=normalizeText(searchQuery.value);if(!query){clearSearchResults();return}const requestId=searchRequestId+1;searchRequestId=requestId;searchError.value=``;if(!canLoad.value)return;searchLoading.value=!background;try{const response=await sourceEditorRequest(vibe64SourceEditorSearchPath(currentSessionsApiPath.value,currentSessionId.value,query));if(requestId!==searchRequestId)return;searchResults.value=normalizeSearchResults(response.results);searchTruncated.value=response.truncated===true;searchIndex.value=response.index||null;if(searchIndexPending.value&¤tActive.value&&!disposed.value)searchTimer=setTimeout(()=>{loadSearchResults({background:true})},1e3)}catch(error){if(requestId===searchRequestId){searchResults.value=[];searchIndex.value=null;searchError.value=String(error?.message||error||`Search results could not be loaded.`)}}finally{if(requestId===searchRequestId)searchLoading.value=false}}function updateSearchQuery(value=``){searchQuery.value=String(value||``);clearSearchTimer();clearSearchResults();if(!normalizeText(searchQuery.value))return;searchTimer=setTimeout(()=>{loadSearchResults()},260)}function openSearchResult(result={}){const filePath=normalizeSourceEditorPath(result.path);if(!filePath)return;openFile(filePath,{column:result.column,line:result.line})}function pauseSearch(){clearSearchTimer();searchRequestId+=1;searchLoading.value=false}function dispose(){clearFileMatchesTimer();clearSearchTimer();searchRequestId+=1}return{dispose,fileMatches,fileMatchesError,fileMatchesLoading,fileMatchesTruncated,fileQuery,loadSearchResults,openFileMatch,openFirstFileMatch,openSearchResult,pauseSearch,resetDiscoveryState,searchError,searchIndex,searchIndexLabel,searchIndexPending,searchLoading,searchQuery,searchResults,searchTruncated,updateFileQuery,updateSearchQuery}}var sourceExplanationClientIdCounter=0;function normalizeExplanationEntry(entry,{status}={}){return{createdAt:String(entry?.createdAt||``),id:String(entry?.id||``),role:String(entry?.role||``),...status===void 0?{}:{status},text:String(entry?.text||``)}}function explanationEntryVisible(entry){return Boolean(entry.id&&[`assistant`,`user`].includes(entry.role)&&entry.text)}function normalizeExplanationMessages(value=[],{body=``,followups=[]}={}){const messages=(Array.isArray(value)?value:[]).map(entry=>normalizeExplanationEntry(entry,{status:String(entry?.status||`complete`)})).filter(entry=>entry.id&&[`assistant`,`user`].includes(entry.role)&&(entry.text||entry.status!==`complete`));if(messages.length)return messages;const fallback=[];if(String(body||``).trim())fallback.push({createdAt:``,id:`body`,role:`assistant`,status:`complete`,text:String(body||``)});return[...fallback,...(Array.isArray(followups)?followups:[]).map(entry=>normalizeExplanationEntry(entry,{status:`complete`})).filter(explanationEntryVisible)]}function normalizeExplanationExecutionProfile(value=null){try{return vibe64AgentExecutionProfileAuditSnapshot(value)}catch{return null}}function normalizeExplanation(value=null){if(!value||typeof value!==`object`||Array.isArray(value))return null;const sourceRange=value.sourceRange&&typeof value.sourceRange===`object`&&!Array.isArray(value.sourceRange)?value.sourceRange:{};const id=String(value.id||``).trim();if(!id)return null;const followups=(Array.isArray(value.followups)?value.followups:[]).map(entry=>normalizeExplanationEntry(entry)).filter(explanationEntryVisible);return{agentThreadId:String(value.agentThreadId||``),agentTurnId:String(value.agentTurnId||``),body:String(value.body||``),createdAt:String(value.createdAt||``),engine:String(value.engine||``),error:String(value.error||``),executionProfile:normalizeExplanationExecutionProfile(value.executionProfile),followups,id,messages:normalizeExplanationMessages(value.messages,{body:value.body,followups}),model:String(value.model||``),sourceRange:{endColumn:Math.max(1,Number(sourceRange.endColumn||1)),endLine:Math.max(1,Number(sourceRange.endLine||1)),language:String(sourceRange.language||``),path:normalizeSourceEditorPath(sourceRange.path),scope:String(sourceRange.scope||`selection`),...sourceRange.presentation?{presentation:sourceRange.presentation}:{},...sourceRange.fileHash?{fileHash:String(sourceRange.fileHash)}:{},...sourceRange.symbolId?{symbolId:String(sourceRange.symbolId)}:{},startColumn:Math.max(1,Number(sourceRange.startColumn||1)),startLine:Math.max(1,Number(sourceRange.startLine||1))},stale:value.stale===true,staleReason:String(value.staleReason||``),status:String(value.status||``),summary:String(value.summary||``),title:String(value.title||``)}}function sourceEditorClientId(prefix=`id`){sourceExplanationClientIdCounter+=1;return`${prefix}_${Date.now().toString(36)}_${sourceExplanationClientIdCounter.toString(36)}`}function nowIso(){return new Date().toISOString()}function sourceEditorExplanationPromptText(filePath=``,range={}){return range.scope===`file`?`Explain the whole file ${filePath}.`:`Explain ${filePath}:${range.startLine}-${range.endLine}.`}function sourceEditorExplanationTitle(filePath=``,range={}){const name=normalizeSourceEditorPath(filePath).split(`/`).filter(Boolean).pop()||`Code`;return range.scope===`file`?`${name} full file`:`${name} lines ${range.startLine}-${range.endLine}`}function localSourceExplanation({assistantMessageId=sourceEditorClientId(`msg`),explanationId=sourceEditorClientId(`exp`),filePath=``,range={},userMessageId=sourceEditorClientId(`msg`)}={}){const createdAt=nowIso();const sourceRange={endColumn:Math.max(1,Number(range.endColumn||1)),endLine:Math.max(1,Number(range.endLine||1)),language:String(range.language||``),path:normalizeSourceEditorPath(filePath),scope:String(range.scope||`selection`),...range.presentation?{presentation:range.presentation}:{},...range.symbolId?{symbolId:range.symbolId}:{},startColumn:Math.max(1,Number(range.startColumn||1)),startLine:Math.max(1,Number(range.startLine||1))};return normalizeExplanation({agentThreadId:``,agentTurnId:``,body:``,createdAt,engine:`agent-chat`,error:``,executionProfile:null,followups:[],id:explanationId,messages:[{createdAt,id:userMessageId,role:`user`,status:`complete`,text:sourceEditorExplanationPromptText(filePath,sourceRange)},{createdAt,id:assistantMessageId,role:`assistant`,status:`thinking`,text:``}],model:``,sourceRange,status:`running`,summary:``,title:sourceEditorExplanationTitle(filePath,sourceRange)})}function sourceEditorExplanationWithMessage(explanation=null,messageId=``,patch={}){const normalized=normalizeExplanation(explanation);if(!normalized)return null;const messages=normalizeExplanationMessages(normalized.messages);const index=messages.findIndex(message=>message.id===messageId);if(index===-1)return normalized;const nextMessages=[...messages];nextMessages[index]={...nextMessages[index],...patch};return{...normalized,messages:normalizeExplanationMessages(nextMessages)}}function appendSourceEditorExplanationMessages(explanation=null,messages=[]){const normalized=normalizeExplanation(explanation);if(!normalized)return null;return{...normalized,messages:normalizeExplanationMessages([...normalized.messages,...messages])}}function ignoreDisposeError(){}function useVibe64SourceEditorExplanations({canLoad,currentSessionId,currentSessionsApiPath,file,originId,selectedPath}){const explanationFeedback=useUiFeedback({source:`vibe64.source-editor.explanation.feedback`});const activeExplanation=ref(null);const explanationError=ref(``);const explanationBusy=ref(false);const explanationClosing=ref(false);const explanationFollowup=ref(``);let explanationRequestId=0;let explanationAbortController=null;function cleanupAbandonedExplanations(){if(!canLoad.value)return;const activeExplanationIds=activeExplanation.value?.id?[activeExplanation.value.id]:[];sourceEditorRequest(vibe64SourceEditorExplanationsCleanupPath(currentSessionsApiPath.value,currentSessionId.value),{body:{activeExplanationIds,originId},method:`POST`}).catch(error=>{vibe64SessionDebugLog(`client.sourceEditor.explanations.cleanup.error`,{error:vibe64SessionDebugError(error),sessionId:currentSessionId.value})})}function clearExplanationStream(){explanationRequestId+=1;explanationAbortController?.abort();explanationAbortController=null;explanationBusy.value=false}function markActiveExplanationMessage(status=``,text=``){const explanation=activeExplanation.value;const lastAssistant=[...explanation?.messages||[]].reverse().find(message=>message.role===`assistant`);if(!lastAssistant?.id)return;const nextExplanation=sourceEditorExplanationWithMessage(explanation,lastAssistant.id,{status,text:text||lastAssistant.text});activeExplanation.value=status===`failed`?{...nextExplanation,error:text||nextExplanation?.error||`Source explanation failed.`,status:`failed`}:nextExplanation}function applyExplanationStreamEvent(event={},requestId=explanationRequestId){if(requestId!==explanationRequestId)return;if(event.type===`source-explanation.error`||event.ok===false){const message=vibe64ApiResponseError(event,`Source explanation failed.`);explanationError.value=message;markActiveExplanationMessage(`failed`,message);throw new Error(message)}const eventExplanation=normalizeExplanation(event.explanation);if(event.type===`source-explanation.failed`){const message=vibe64ApiResponseError(event,`Source explanation failed.`);explanationError.value=message;if(eventExplanation)activeExplanation.value=eventExplanation;else markActiveExplanationMessage(`failed`,message);return}if(event.type===`source-explanation.started`||event.type===`source-explanation.followup.started`){if(eventExplanation)activeExplanation.value=eventExplanation;return}if(event.type===`source-explanation.thread`||event.type===`source-explanation.turn`){if(!activeExplanation.value)return;activeExplanation.value={...activeExplanation.value,agentThreadId:String(event.threadId||activeExplanation.value.agentThreadId||``),agentTurnId:String(event.turnId||activeExplanation.value.agentTurnId||``)};return}if(event.type===`source-explanation.execution-profile`&&eventExplanation){activeExplanation.value=eventExplanation;return}if(event.type===`source-explanation.message`&&event.messageId){activeExplanation.value=sourceEditorExplanationWithMessage(activeExplanation.value,String(event.messageId),{status:String(event.status||`thinking`),text:String(event.text||``)});return}if(event.type===`source-explanation.finished`&&eventExplanation){activeExplanation.value=eventExplanation;const range=eventExplanation.sourceRange;if(eventExplanation.status===`ready`&&range.presentation&&(range.scope===`file`||range.symbolId)&&!eventExplanation.followups.length&&range.path===selectedPath.value){const record={path:range.path,scope:range.scope,symbolId:range.symbolId||``,presentation:range.presentation,fileHash:range.fileHash,body:eventExplanation.body,summary:eventExplanation.summary,createdAt:eventExplanation.createdAt,status:range.fileHash===file.savedHash.value?`current`:`stale`};file.interpretations.value=[...file.interpretations.value.filter(previous=>!(previous.scope===record.scope&&previous.symbolId===record.symbolId&&previous.presentation===record.presentation)),record]}if(eventExplanation.status!==`failed`)explanationError.value=``}}async function streamSourceEditorRequest(url=``,body={},requestId=explanationRequestId){const controller=new AbortController;explanationAbortController=controller;await getHttpWebClient().requestStream(url,{body,method:`POST`,signal:controller.signal},{onEvent(event){applyExplanationStreamEvent(event,requestId)}})}async function explainSelection(range={}){if(!selectedPath.value||!canLoad.value||explanationBusy.value||explanationClosing.value)return;const requestId=explanationRequestId+1;explanationRequestId=requestId;explanationAbortController?.abort();explanationAbortController=null;const explanationId=sourceEditorClientId(`exp`);const userMessageId=sourceEditorClientId(`msg`);const assistantMessageId=sourceEditorClientId(`msg`);const previousExplanation=activeExplanation.value;activeExplanation.value=localSourceExplanation({assistantMessageId,explanationId,filePath:selectedPath.value,range,userMessageId});explanationBusy.value=true;explanationError.value=``;explanationFollowup.value=``;if(previousExplanation?.id)disposeExplanation(previousExplanation).catch(()=>null);try{await streamSourceEditorRequest(vibe64SourceEditorExplanationsStreamPath(currentSessionsApiPath.value,currentSessionId.value),{assistantMessageId,endColumn:range.endColumn,endLine:range.endLine,explanationId,force:range.force===true,presentation:range.presentation,symbolId:range.symbolId,expectedHash:range.expectedHash,originId,path:selectedPath.value,scope:range.scope,startColumn:range.startColumn,startLine:range.startLine,userMessageId},requestId)}catch(error){if(String(error?.name||``)===`AbortError`)return;if(requestId===explanationRequestId){const message=String(error?.message||error||`Source explanation could not be created.`);explanationError.value=message;markActiveExplanationMessage(`failed`,message)}}finally{if(requestId===explanationRequestId){explanationBusy.value=false;explanationAbortController=null}}}async function retryExplanation(){const range=activeExplanation.value?.sourceRange||{};const explanationPath=normalizeSourceEditorPath(range.path);if(!explanationPath||explanationBusy.value||explanationClosing.value)return;if(selectedPath.value!==explanationPath){await file.openFile(explanationPath);if(selectedPath.value!==explanationPath)return}await explainSelection({...range,...range.presentation&&range.fileHash?{expectedHash:range.fileHash}:{},force:true})}async function stopExplanation(){const explanation=activeExplanation.value;if(!explanation?.id||explanationClosing.value)return;const requestId=explanationRequestId+1;explanationRequestId=requestId;const controller=explanationAbortController;explanationAbortController=null;explanationBusy.value=false;explanationError.value=``;markActiveExplanationMessage(`stopped`,`Stopped.`);controller?.abort();if(!canLoad.value)return;try{const response=await sourceEditorRequest(vibe64SourceEditorExplanationStopPath(currentSessionsApiPath.value,currentSessionId.value,explanation.id),{method:`POST`});if(requestId!==explanationRequestId||activeExplanation.value?.id!==explanation.id)return;const stoppedExplanation=normalizeExplanation(response.explanation);if(stoppedExplanation)activeExplanation.value=stoppedExplanation}catch(error){if(requestId===explanationRequestId&&activeExplanation.value?.id===explanation.id)explanationFeedback.error(error,`Source explanation could not be stopped.`)}}async function disposeExplanation(explanation=null,{onError=ignoreDisposeError,sessionsApiPath:apiPath=currentSessionsApiPath.value,sessionId:targetSessionId=currentSessionId.value}={}){const id=String(explanation?.id||``).trim();if(!id||!apiPath||!targetSessionId)return true;try{await sourceEditorRequest(vibe64SourceEditorExplanationPath(apiPath,targetSessionId,id),{method:`DELETE`});return true}catch(error){vibe64SessionDebugLog(`client.sourceEditor.explanations.cleanup.error`,{error:vibe64SessionDebugError(error),sessionId:targetSessionId});onError(error);return false}}async function disposeActiveExplanation(options={}){const explanation=activeExplanation.value;if(!explanation)return true;const requestId=explanationRequestId;const disposed=await disposeExplanation(explanation,options);if(disposed&&requestId===explanationRequestId&&activeExplanation.value?.id===explanation.id){activeExplanation.value=null;explanationFollowup.value=``}return disposed}async function closeExplanation(){const explanation=activeExplanation.value;if(!explanation?.id||explanationClosing.value)return false;clearExplanationStream();const requestId=explanationRequestId;explanationClosing.value=true;explanationError.value=``;try{return await disposeActiveExplanation({onError(error){if(requestId===explanationRequestId&&activeExplanation.value?.id===explanation.id)explanationFeedback.error(error,`Source explanation cleanup failed. Close it again to retry.`)}})&&requestId===explanationRequestId}finally{if(requestId===explanationRequestId)explanationClosing.value=false}}function updateExplanationFollowup(value=``){explanationFollowup.value=String(value||``)}async function sendExplanationFollowup(){const message=explanationFollowup.value.trim();const explanationId=activeExplanation.value?.id||``;if(!message||!explanationId||!canLoad.value||explanationBusy.value||explanationClosing.value)return;const requestId=explanationRequestId+1;explanationRequestId=requestId;explanationAbortController?.abort();explanationAbortController=null;const createdAt=nowIso();const userMessageId=sourceEditorClientId(`msg`);const assistantMessageId=sourceEditorClientId(`msg`);activeExplanation.value=appendSourceEditorExplanationMessages(activeExplanation.value,[{createdAt,id:userMessageId,role:`user`,status:`complete`,text:message},{createdAt,id:assistantMessageId,role:`assistant`,status:`thinking`,text:``}]);explanationBusy.value=true;explanationError.value=``;explanationFollowup.value=``;try{await streamSourceEditorRequest(vibe64SourceEditorExplanationFollowupsStreamPath(currentSessionsApiPath.value,currentSessionId.value,explanationId),{assistantMessageId,message,userMessageId},requestId)}catch(error){if(String(error?.name||``)===`AbortError`)return;if(requestId===explanationRequestId){const errorMessage=String(error?.message||error||`Source explanation follow-up could not be sent.`);explanationError.value=errorMessage;markActiveExplanationMessage(`failed`,errorMessage)}}finally{if(requestId===explanationRequestId){explanationBusy.value=false;explanationAbortController=null}}}function leaveSession(previousSession){const closePending=explanationClosing.value;clearExplanationStream();explanationClosing.value=false;if(activeExplanation.value&&!closePending)disposeActiveExplanation(previousSession);activeExplanation.value=null;explanationFollowup.value=``}function dispose(){const closePending=explanationClosing.value;clearExplanationStream();explanationClosing.value=false;if(!closePending)disposeActiveExplanation()}return{activeExplanation,cleanupAbandonedExplanations,closeExplanation,dispose,explainSelection,explanationBusy,explanationClosing,explanationError,explanationFollowup,leaveSession,retryExplanation,sendExplanationFollowup,stopExplanation,updateExplanationFollowup}}var SOURCE_EDITOR_AUTOSAVE_DELAY_MS=700;var SOURCE_EDITOR_REMOTE_CHANGE_MESSAGE=`This file changed in another window. Reload it before saving.`;function sourceEditorFileChangePayloadMatches({originId=vibe64BrowserTabOriginId(),path=``,payload={},projectSlug=``,sessionId=``}={}){const normalizedPath=normalizeSourceEditorPath(path);const normalizedProjectSlug=normalizeText(projectSlug);const normalizedSessionId=normalizeText(sessionId);if(!normalizedPath||!normalizedProjectSlug||!normalizedSessionId||normalizeSourceEditorPath(payload.path)!==normalizedPath||normalizeText(payload.projectSlug)!==normalizedProjectSlug||normalizeText(payload.sessionId)!==normalizedSessionId||vibe64RealtimePayloadFromCurrentTab(payload,{originId}))return false;return Boolean(normalizeText(payload.hash))}function normalizeResolvedSourceEditorPath(value={}){const source=value&&typeof value===`object`&&!Array.isArray(value)?value:{};return{path:normalizeSourceEditorPath(source.path||source.file?.path),resolved:source.resolved===true}}function leaveReferencedSourceToEditor(){return false}function useVibe64SourceEditorFile({canLoad,currentActive,currentProjectSlug,currentSessionId,currentSessionsApiPath,disposed,loadFailure,navigateReferencedSource,originId,readCurrentText,selectedPath,tree}){const reportActivity=usePageActivity();const text=ref(``);const savedHash=ref(``);const interpretations=ref([]);const interpretationWarning=ref(``);const dirty=ref(false);const downloadOnlyFile=ref(null);const saveError=ref(``);const createFileError=ref(``);const creatingFile=ref(false);const loadingFile=ref(false);const loadingPath=ref(``);const saving=ref(false);const loadedVersion=ref(0);const cursorRequest=ref(null);let createFileRequestId=0;let fileRequestId=0;let fileRevalidationRequestId=0;let autosaveTimer=null;let pendingFileRevalidation=false;let savePromise=null;let textAtUnmount=null;function clearAutosave(){if(autosaveTimer){clearTimeout(autosaveTimer);autosaveTimer=null}}function applyFileResponse(response={},{column=0,fallbackPath=``,line=0,reveal=true}={}){const file=response.file||{};const filePath=normalizeSourceEditorPath(file.path||fallbackPath);if(!filePath)return false;selectedPath.value=filePath;downloadOnlyFile.value=null;tree.revealSelectedFile(response.revealTree);text.value=String(file.text||``);savedHash.value=String(file.hash||``);applySavedInterpretations(response,filePath);dirty.value=false;if(reveal)tree.revealLoadedFilePath(filePath);cursorRequest.value={column:Number(column||0)||0,line:Number(line||0)||0,path:filePath,version:loadedVersion.value+1};loadedVersion.value+=1;return true}function applySavedInterpretations(response,filePath){interpretations.value=(response.interpretations?.records||[]).filter(record=>record.path===filePath&&[`file`,`selection`].includes(record.scope)&&[`description`,`steps`].includes(record.presentation)&&typeof record.body===`string`&&[`current`,`stale`].includes(record.status));interpretationWarning.value=String(response.interpretations?.warning||``)}async function openFile(filePath=``,options={}){const normalizedPath=normalizeSourceEditorPath(filePath);if(!normalizedPath||!canLoad.value)return false;if((dirty.value||saving.value)&&!await saveNow())return false;const requestId=fileRequestId+1;fileRequestId=requestId;fileRevalidationRequestId+=1;loadFailure.value=null;saveError.value=``;loadingFile.value=true;loadingPath.value=normalizedPath;try{const response=await sourceEditorRequest(vibe64SourceEditorFilePath(currentSessionsApiPath.value,currentSessionId.value,normalizedPath));if(requestId!==fileRequestId)return false;if(!applyFileResponse(response,{column:options.column,fallbackPath:normalizedPath,line:options.line}))return false;reportActivity(`file-opened`,{projectSlug:currentProjectSlug.value,sessionId:currentSessionId.value,path:normalizedPath});return true}catch(error){if(requestId===fileRequestId){const code=error?.code;if(code===`vibe64_source_editor_binary_file`||code===`vibe64_source_editor_file_too_large`){selectedPath.value=``;tree.clearSelectedReveal();text.value=``;savedHash.value=``;downloadOnlyFile.value={path:normalizedPath,message:code===`vibe64_source_editor_binary_file`?`This file cannot be edited as text. Download it to open it in another application.`:`This file is too large to edit here. You can download the complete file.`};tree.revealLoadedFilePath(normalizedPath);return true}loadFailure.value={operation:`open-file`,message:String(error?.message||error||`Source file could not be loaded.`)}}return false}finally{if(requestId===fileRequestId){loadingFile.value=false;loadingPath.value=``}}}async function createFile(filePath=``){const normalizedPath=normalizeSourceEditorPath(filePath);if(!normalizedPath||!canLoad.value||creatingFile.value)return false;if((dirty.value||saving.value)&&!await saveNow())return false;const createRequestId=createFileRequestId+1;createFileRequestId=createRequestId;const fileSelectionRequestId=fileRequestId+1;fileRequestId=fileSelectionRequestId;fileRevalidationRequestId+=1;createFileError.value=``;loadFailure.value=null;saveError.value=``;creatingFile.value=true;try{const response=await sourceEditorRequest(vibe64SourceEditorCreateFilePath(currentSessionsApiPath.value,currentSessionId.value),{body:{originId,path:normalizedPath,projectSlug:currentProjectSlug.value},method:`POST`});if(fileSelectionRequestId!==fileRequestId)return false;if(!applyFileResponse(response,{fallbackPath:normalizedPath}))return false;return true}catch(error){if(fileSelectionRequestId===fileRequestId)createFileError.value=String(error?.message||error||`Source file could not be created.`);return false}finally{if(createRequestId===createFileRequestId)creatingFile.value=false}}async function revalidateSelectedFile(){const pathAtRequest=selectedPath.value;const sessionIdAtRequest=currentSessionId.value;if(disposed.value||!pathAtRequest||!canLoad.value||!currentActive.value)return false;if(saving.value){pendingFileRevalidation=true;return false}const requestId=fileRevalidationRequestId+1;fileRevalidationRequestId=requestId;try{const response=await sourceEditorRequest(vibe64SourceEditorFilePath(currentSessionsApiPath.value,sessionIdAtRequest,pathAtRequest));if(requestId!==fileRevalidationRequestId||selectedPath.value!==pathAtRequest||currentSessionId.value!==sessionIdAtRequest)return false;if(loadFailure.value?.operation===`revalidation`)loadFailure.value=null;tree.revealSelectedFile(response.revealTree);const nextHash=String(response.file?.hash||``);applySavedInterpretations(response,pathAtRequest);if(dirty.value||saving.value){if(nextHash&&nextHash!==savedHash.value)saveError.value=SOURCE_EDITOR_REMOTE_CHANGE_MESSAGE;else if(saveError.value===`This file changed in another window. Reload it before saving.`)saveError.value=``;return false}if(!nextHash||nextHash===savedHash.value)return false;return applyFileResponse(response,{fallbackPath:pathAtRequest,reveal:false})}catch(error){if(requestId===fileRevalidationRequestId&&selectedPath.value===pathAtRequest&¤tSessionId.value===sessionIdAtRequest)loadFailure.value={operation:`revalidation`,message:String(error?.message||error||`Source file could not be refreshed.`)};return false}}async function applySelectedFileChange({hash=``,path=``}={}){const changedPath=normalizeSourceEditorPath(path);const changedHash=normalizeText(hash);if(!changedPath||changedPath!==selectedPath.value||changedHash&&changedHash===savedHash.value)return;if(saving.value){pendingFileRevalidation=true;return}if(dirty.value&&changedHash){saveError.value=SOURCE_EDITOR_REMOTE_CHANGE_MESSAGE;return}await revalidateSelectedFile()}async function applyRemoteFileChange(payload={}){if(!sourceEditorFileChangePayloadMatches({originId,path:selectedPath.value,payload,projectSlug:currentProjectSlug.value,sessionId:currentSessionId.value}))return;await applySelectedFileChange(payload)}async function applyObservedFileChange(payload={}){if(normalizeText(payload.sessionId)!==currentSessionId.value||normalizeSourceEditorPath(payload.path)!==selectedPath.value)return;await applySelectedFileChange(payload)}async function openReferencedSourcePath({fromPath=selectedPath.value,target=``}={}){const normalizedFromPath=normalizeSourceEditorPath(fromPath);const normalizedTarget=String(target||``).trim();if(!normalizedFromPath||!normalizedTarget||!canLoad.value)return false;try{const resolved=normalizeResolvedSourceEditorPath(await sourceEditorRequest(vibe64SourceEditorResolvePathPath(currentSessionsApiPath.value,currentSessionId.value),{body:{fromPath:normalizedFromPath,target:normalizedTarget},method:`POST`}));if(!resolved.resolved||!resolved.path)return false;try{if(await navigateReferencedSource({fromPath:normalizedFromPath,path:resolved.path,target:normalizedTarget})===true)return true}catch{}await openFile(resolved.path);return true}catch{return false}}function scheduleSave(){clearAutosave();if(!selectedPath.value||!dirty.value)return;autosaveTimer=setTimeout(()=>{saveNow()},700)}function updateText(){dirty.value=true;saveError.value=``;scheduleSave()}function currentText(){if(textAtUnmount!==null)return textAtUnmount;return String(readCurrentText()??``)}async function saveDirtyBuffers(){while(selectedPath.value&&dirty.value){const pathAtSave=selectedPath.value;const textAtSave=currentText();const baseHashAtSave=savedHash.value;saving.value=true;saveError.value=``;try{const response=await sourceEditorRequest(vibe64SourceEditorFilePath(currentSessionsApiPath.value,currentSessionId.value),{body:{baseHash:baseHashAtSave,originId,path:pathAtSave,projectSlug:currentProjectSlug.value,text:textAtSave},method:`PUT`});if(selectedPath.value===pathAtSave){savedHash.value=String(response.file?.hash||``);text.value=textAtSave;dirty.value=currentText()!==textAtSave}}catch(error){if(selectedPath.value===pathAtSave)saveError.value=String(error?.message||error||`Source file could not be saved.`);return false}finally{saving.value=false}}if(pendingFileRevalidation){pendingFileRevalidation=false;revalidateSelectedFile()}return!dirty.value}function saveNow(){clearAutosave();if(savePromise)return savePromise;savePromise=saveDirtyBuffers().finally(()=>{savePromise=null});return savePromise}function openRequest(request={}){const filePath=normalizeSourceEditorPath(request.path);if(!filePath)return;openFile(filePath,{column:request.column,line:request.line})}function resetSelectedFile(){fileRequestId+=1;loadingFile.value=false;loadingPath.value=``;fileRevalidationRequestId+=1;pendingFileRevalidation=false;selectedPath.value=``;downloadOnlyFile.value=null;tree.clearSelectedReveal();text.value=``;savedHash.value=``;interpretations.value=[];interpretationWarning.value=``;dirty.value=false}function dispose(){fileRequestId+=1;fileRevalidationRequestId+=1;textAtUnmount=currentText();clearAutosave()}return{applyObservedFileChange,applyRemoteFileChange,createFile,createFileError,creatingFile,cursorRequest,dirty,dispose,downloadOnlyFile,interpretationWarning,interpretations,loadedVersion,loadingFile,loadingPath,openFile,openReferencedSourcePath,openRequest,resetSelectedFile,revalidateSelectedFile,saveError,saveNow,savedHash,saving,text,updateText}}var SOURCE_EDITOR_TREE_PAGE_SIZE=20;function normalizeTreeNode(value=null){if(!value||typeof value!==`object`||Array.isArray(value))return null;const type=String(value.type||``);const path=normalizeSourceEditorPath(value.path);if(type===`file`)return{language:String(value.language||``),name:String(value.name||``),path,size:Number(value.size||0),type};if(type!==`directory`)return null;return{children:(Array.isArray(value.children)?value.children:[]).map(child=>normalizeTreeNode(child)).filter(Boolean),hasMore:value.hasMore===true,limit:Math.max(1,Number(value.limit||20)),loaded:value.loaded===true,name:String(value.name||``),nextOffset:Math.max(0,Number(value.nextOffset||0)),offset:Math.max(0,Number(value.offset||0)),path,total:Math.max(0,Number(value.total||0)),truncated:value.truncated===true,type}}function mergeDirectoryChildren(existingChildren,pageChildren=[],append=false){const byKey=new Map((existingChildren||[]).map(child=>[treeNodeKey(child),child]));const mergedChildren=pageChildren.map(child=>{const previous=byKey.get(treeNodeKey(child));return child.type===`directory`&&previous?.loaded&&!child.loaded?{...child,...previous,name:child.name}:child});if(!append)return mergedChildren;for(const child of mergedChildren)byKey.set(treeNodeKey(child),child);return[...byKey.values()]}function treeNodeKey(node={}){return normalizeSourceEditorPath(node.path)||String(node.name||``)}function sortTreeNodes(children=[]){return[...children].sort((left,right)=>{if(left?.type!==right?.type)return left?.type===`directory`?-1:1;return String(left?.name||``).localeCompare(String(right?.name||``))})}function mergeDirectoryPage(root=null,directoryPath=``,page=null,append=false){const normalizedPath=normalizeSourceEditorPath(directoryPath);const normalizedPage=normalizeTreeNode(page);if(!normalizedPage)return root;if(!normalizedPath)return{...normalizedPage,children:mergeDirectoryChildren(root?.children,normalizedPage.children,append)};function visit(node=null){if(!node||node.type!==`directory`)return node;if(normalizeSourceEditorPath(node.path)===normalizedPath)return{...node,...normalizedPage,children:mergeDirectoryChildren(node.children,normalizedPage.children,append)};return{...node,children:(Array.isArray(node.children)?node.children:[]).map(child=>visit(child))}}return visit(root)}function mergeRevealedTreeNode(existing=null,reveal=null){const normalizedReveal=normalizeTreeNode(reveal);if(!normalizedReveal)return normalizeTreeNode(existing);const normalizedExisting=normalizeTreeNode(existing);if(!normalizedExisting||treeNodeKey(normalizedExisting)!==treeNodeKey(normalizedReveal))return normalizedReveal;if(normalizedExisting.type!==`directory`||normalizedReveal.type!==`directory`)return normalizedExisting;const childrenByKey=new Map((normalizedExisting.children||[]).map(child=>[treeNodeKey(child),child]));for(const child of normalizedReveal.children||[]){const key=treeNodeKey(child);childrenByKey.set(key,mergeRevealedTreeNode(childrenByKey.get(key),child))}return{...normalizedExisting,children:sortTreeNodes([...childrenByKey.values()])}}function mergeRevealTree(root=null,revealTree=null){const normalizedReveal=normalizeTreeNode(revealTree);if(!normalizedReveal)return root;return mergeRevealedTreeNode(root,normalizedReveal)}function findTreeDirectory(root=null,directoryPath=``){const normalizedPath=normalizeSourceEditorPath(directoryPath);if(!root||root.type!==`directory`)return null;if(normalizeSourceEditorPath(root.path)===normalizedPath)return root;for(const child of Array.isArray(root.children)?root.children:[]){const found=findTreeDirectory(child,normalizedPath);if(found)return found}return null}function loadedFileAncestorDirectoryPaths(root=null,filePath=``,ancestors=[]){const normalizedFilePath=normalizeSourceEditorPath(filePath);if(!root||!normalizedFilePath)return null;if(root.type===`file`)return normalizeSourceEditorPath(root.path)===normalizedFilePath?ancestors:null;if(root.type!==`directory`)return null;const normalizedDirectoryPath=normalizeSourceEditorPath(root.path);const childAncestors=normalizedDirectoryPath?[...ancestors,normalizedDirectoryPath]:ancestors;for(const child of Array.isArray(root.children)?root.children:[]){const found=loadedFileAncestorDirectoryPaths(child,normalizedFilePath,childAncestors);if(found)return found}return null}function loadedTreeDirectoryPaths(root=null){const paths=[];function visit(node=null){if(!node||node.type!==`directory`)return;const normalizedPath=normalizeSourceEditorPath(node.path);if(normalizedPath&&node.loaded===true)paths.push(normalizedPath);for(const child of Array.isArray(node.children)?node.children:[])visit(child)}visit(root);return[...new Set(paths)].sort((left,right)=>{return left.split(`/`).length-right.split(`/`).length||left.localeCompare(right)})}function normalizeSourceEditorPolicy(value={}){return value&&typeof value===`object`&&!Array.isArray(value)?{...value}:{}}function useVibe64SourceEditorTree({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,loadFailure,onRefreshInterrupted,selectedPath}){const tree=ref(null);const policy=ref({});const treeLoadingPaths=ref([]);const treeLoadErrors=ref({});const loadingTree=ref(false);const revealedDirectoryPaths=ref([]);const selectedRevealTree=ref(null);let treeRequestId=0;const treeDirectoryRequestIds=new Map;function treePathKey(value=``){return normalizeSourceEditorPath(value)}function setTreePathLoading(path=``,loading=false){const key=treePathKey(path);const current=new Set(treeLoadingPaths.value);if(loading)current.add(key);else current.delete(key);treeLoadingPaths.value=[...current].sort((left,right)=>left.localeCompare(right))}function setTreePathError(path=``,message=``){const key=treePathKey(path);const next={...treeLoadErrors.value};if(message)next[key]=message;else delete next[key];treeLoadErrors.value=next}async function loadDirectoryPage(directoryPath=``,{applyPage=true,append=false,offset=0}={}){const normalizedPath=treePathKey(directoryPath);if(!canLoad.value||disposed.value)return null;const treeGeneration=treeRequestId;const requestKey=normalizedPath;const requestId=(treeDirectoryRequestIds.get(requestKey)||0)+1;treeDirectoryRequestIds.set(requestKey,requestId);setTreePathLoading(normalizedPath,true);setTreePathError(normalizedPath,``);if(!normalizedPath&&!append){loadingTree.value=true;loadFailure.value=null}try{const response=await sourceEditorRequest(vibe64SourceEditorTreePath(currentSessionsApiPath.value,currentSessionId.value,{limit:20,offset,path:normalizedPath}));if(treeGeneration!==treeRequestId||treeDirectoryRequestIds.get(requestKey)!==requestId)return null;if(!normalizedPath)policy.value=normalizeSourceEditorPolicy(response.policy||{});const page=normalizeTreeNode(response.tree);if(applyPage){tree.value=mergeDirectoryPage(tree.value,normalizedPath,page,append);if(selectedRevealTree.value)tree.value=mergeRevealTree(tree.value,selectedRevealTree.value)}if(applyPage)revealLoadedFilePath(selectedPath.value);return page}catch(error){if(treeGeneration===treeRequestId&&treeDirectoryRequestIds.get(requestKey)===requestId){const message=String(error?.message||error||`Source tree could not be loaded.`);setTreePathError(normalizedPath,message);if(!normalizedPath)loadFailure.value={operation:`tree`,message}}return null}finally{if(treeGeneration===treeRequestId&&treeDirectoryRequestIds.get(requestKey)===requestId){setTreePathLoading(normalizedPath,false);if(!normalizedPath&&applyPage)loadingTree.value=false}}}function revealLoadedFilePath(filePath=``){const ancestors=loadedFileAncestorDirectoryPaths(tree.value,filePath);if(ancestors)revealedDirectoryPaths.value=normalizeSourceEditorDirectoryPaths(ancestors)}async function loadTree({preserveLoadedDirectories=true}={}){const refreshingLoadedTree=preserveLoadedDirectories&&Boolean(tree.value);const directoriesToReload=preserveLoadedDirectories?loadedTreeDirectoryPaths(tree.value):[];const loadedCounts=new Map([``,...directoriesToReload].map(directoryPath=>[directoryPath,findTreeDirectory(tree.value,directoryPath)?.children?.length||0]));const requestId=treeRequestId+1;treeRequestId=requestId;if(!preserveLoadedDirectories){tree.value=null;policy.value=normalizeSourceEditorPolicy({});revealedDirectoryPaths.value=[]}treeDirectoryRequestIds.clear();treeLoadingPaths.value=[];treeLoadErrors.value={};loadFailure.value=null;if(!canLoad.value)return;loadingTree.value=true;let refreshedTree=tree.value;for(const directoryPath of[``,...directoriesToReload]){if(requestId!==treeRequestId)return;if(directoryPath&&!findTreeDirectory(refreshedTree,directoryPath))continue;let offset=0;do{if(disposed.value||refreshingLoadedTree&&!currentActive.value){onRefreshInterrupted();loadingTree.value=false;return}const page=await loadDirectoryPage(directoryPath,{applyPage:false,append:offset>0,offset});if(requestId!==treeRequestId)return;if(page)refreshedTree=mergeDirectoryPage(refreshedTree,directoryPath,page,offset>0);if(!page?.hasMore||!page.nextOffset||page.nextOffset<=offset)break;offset=page.nextOffset}while(offset<loadedCounts.get(directoryPath))}tree.value=refreshedTree;loadingTree.value=false;if(selectedRevealTree.value){tree.value=mergeRevealTree(tree.value,selectedRevealTree.value);revealLoadedFilePath(selectedPath.value)}}function loadDirectory(directoryPath=``){const normalizedPath=treePathKey(directoryPath);if(findTreeDirectory(tree.value,normalizedPath)?.loaded===true)return;loadDirectoryPage(normalizedPath,{append:false,offset:0})}function loadMoreDirectory(directoryPath=``){const normalizedPath=treePathKey(directoryPath);const directory=findTreeDirectory(tree.value,normalizedPath);if(!directory?.hasMore)return;loadDirectoryPage(normalizedPath,{append:true,offset:directory.nextOffset||directory.children?.length||0})}function revealSelectedFile(revealTree){selectedRevealTree.value=normalizeTreeNode(revealTree);if(selectedRevealTree.value)tree.value=mergeRevealTree(tree.value,selectedRevealTree.value)}function clearSelectedReveal(){selectedRevealTree.value=null}function dispose(){treeRequestId+=1}return{clearSelectedReveal,dispose,loadDirectory,loadMoreDirectory,loadTree,loadingTree,policy,revealLoadedFilePath,revealSelectedFile,revealedDirectoryPaths,tree,treeLoadErrors,treeLoadingPaths}}function useVibe64SourceEditor({active=true,agentActive=false,navigateReferencedSource,projectSlug,readCurrentText,sessionsApiPath,sessionId}){const originId=vibe64BrowserTabOriginId();const selectedPath=ref(``);const loadFailure=ref(null);const loadError=computed(()=>loadFailure.value?.message||``);const disposed=ref(false);let pendingTreeRefresh=false;let refreshPromise=null;const currentSessionsApiPath=computed(()=>String(readRefOrGetterValue(sessionsApiPath)||``).trim());const currentSessionId=computed(()=>String(readRefOrGetterValue(sessionId)||``).trim());const currentProjectSlug=computed(()=>String(readRefOrGetterValue(projectSlug)||``).trim());const currentActive=computed(()=>readRefOrGetterValue(active)!==false);const canLoad=computed(()=>Boolean(currentSessionsApiPath.value&¤tSessionId.value));const tree=useVibe64SourceEditorTree({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,loadFailure,onRefreshInterrupted:()=>{pendingTreeRefresh=!disposed.value},selectedPath});const file=useVibe64SourceEditorFile({canLoad,currentActive,currentProjectSlug,currentSessionId,currentSessionsApiPath,disposed,loadFailure,navigateReferencedSource,originId,readCurrentText,selectedPath,tree});const discovery=useVibe64SourceEditorDiscovery({canLoad,currentActive,currentSessionId,currentSessionsApiPath,disposed,openFile:file.openFile});const explanations=useVibe64SourceEditorExplanations({canLoad,currentSessionId,currentSessionsApiPath,file,originId,selectedPath});const statusLabel=computed(()=>{if(file.saveError.value)return file.saveError.value;if(file.loadingFile.value)return`Opening...`;if(file.saving.value)return`Saving...`;if(file.dirty.value)return`Unsaved`;return selectedPath.value?`Saved`:``});useRealtimeEvent({enabled:computed(()=>Boolean(canLoad.value&¤tProjectSlug.value)),event:VIBE64_SOURCE_EDITOR_FILE_CHANGED_EVENT,matches:({payload={}}={})=>payload.operation===`created`&&payload.originId!==originId&&payload.projectSlug===currentProjectSlug.value&&payload.sessionId===currentSessionId.value||sourceEditorFileChangePayloadMatches({originId,path:selectedPath.value,payload,projectSlug:currentProjectSlug.value,sessionId:currentSessionId.value}),onEvent:({payload={}}={})=>{file.applyRemoteFileChange(payload);if(payload.operation===`created`){if(currentActive.value)tree.loadTree();else pendingTreeRefresh=true}}});useVibe64SourceEditorFileSync({active:computed(()=>canLoad.value&¤tActive.value),onChange:(payload={})=>{file.applyObservedFileChange(payload)},onError:(error={})=>{vibe64SessionDebugLog(`client.sourceEditor.fileSync.error`,{error:String(error.error||`Source file observation failed.`),path:selectedPath.value,sessionId:currentSessionId.value,transient:error.transient===true})},onReady:()=>{file.revalidateSelectedFile()},path:selectedPath,sessionId:currentSessionId,sessionsApiPath:currentSessionsApiPath});function refresh(){if(refreshPromise){pendingTreeRefresh=true;return refreshPromise}refreshPromise=(async()=>{do{pendingTreeRefresh=false;tree.clearSelectedReveal();await tree.loadTree();await file.revalidateSelectedFile();if(discovery.searchQuery.value&¤tActive.value)await discovery.loadSearchResults({background:true})}while(pendingTreeRefresh&¤tActive.value)})().finally(()=>{refreshPromise=null});return refreshPromise}watch([currentSessionId,()=>Boolean(readRefOrGetterValue(agentActive))],([id,working],previous=[])=>{if(id!==previous[0]||!previous[1]||working)return;if(currentActive.value)refresh();else pendingTreeRefresh=true});if(typeof window!==`undefined`)window.addEventListener(`focus`,file.revalidateSelectedFile);watch([currentSessionsApiPath,currentSessionId,currentActive],async(current,previous=[])=>{if(current[0]===previous[0]&¤t[1]===previous[1]){if(!current[2])discovery.pauseSearch();else if(discovery.searchQuery.value&&!pendingTreeRefresh)discovery.loadSearchResults({background:true});if(current[2]&&pendingTreeRefresh)await refresh();return}pendingTreeRefresh=false;explanations.leaveSession({sessionsApiPath:previous[0]||currentSessionsApiPath.value,sessionId:previous[1]||currentSessionId.value});discovery.resetDiscoveryState();file.resetSelectedFile();await tree.loadTree({preserveLoadedDirectories:false});explanations.cleanupAbandonedExplanations()},{immediate:true});onBeforeUnmount(()=>{disposed.value=true;tree.dispose();file.dispose();explanations.dispose();discovery.dispose();if(typeof window!==`undefined`)window.removeEventListener(`focus`,file.revalidateSelectedFile);file.saveNow()});return{activeExplanation:explanations.activeExplanation,closeExplanation:explanations.closeExplanation,createFile:file.createFile,createFileError:file.createFileError,creatingFile:file.creatingFile,cursorRequest:file.cursorRequest,dirty:file.dirty,downloadOnlyFile:file.downloadOnlyFile,explanationBusy:explanations.explanationBusy,explanationClosing:explanations.explanationClosing,explanationError:explanations.explanationError,explanationFollowup:explanations.explanationFollowup,explainSelection:explanations.explainSelection,fileMatches:discovery.fileMatches,fileMatchesError:discovery.fileMatchesError,fileMatchesLoading:discovery.fileMatchesLoading,fileMatchesTruncated:discovery.fileMatchesTruncated,fileQuery:discovery.fileQuery,loadError,loadedVersion:file.loadedVersion,loadDirectory:tree.loadDirectory,loadMoreDirectory:tree.loadMoreDirectory,loadingFile:file.loadingFile,loadingPath:file.loadingPath,loadingTree:tree.loadingTree,openFile:file.openFile,openFileMatch:discovery.openFileMatch,openFirstFileMatch:discovery.openFirstFileMatch,openReferencedSourcePath:file.openReferencedSourcePath,openRequest:file.openRequest,openSearchResult:discovery.openSearchResult,policy:tree.policy,refresh,retryExplanation:explanations.retryExplanation,revealedDirectoryPaths:tree.revealedDirectoryPaths,saveError:file.saveError,saveNow:file.saveNow,savedHash:file.savedHash,interpretations:file.interpretations,interpretationWarning:file.interpretationWarning,searchError:discovery.searchError,searchLoading:discovery.searchLoading,searchIndex:discovery.searchIndex,searchIndexLabel:discovery.searchIndexLabel,searchIndexPending:discovery.searchIndexPending,searchQuery:discovery.searchQuery,searchResults:discovery.searchResults,searchTruncated:discovery.searchTruncated,selectedPath,sendExplanationFollowup:explanations.sendExplanationFollowup,saving:file.saving,stopExplanation:explanations.stopExplanation,statusLabel,text:file.text,tree:tree.tree,treeLoadErrors:tree.treeLoadErrors,treeLoadingPaths:tree.treeLoadingPaths,updateExplanationFollowup:explanations.updateExplanationFollowup,updateFileQuery:discovery.updateFileQuery,updateSearchQuery:discovery.updateSearchQuery,updateText:file.updateText}}var basicNormalize=typeof String.prototype.normalize==`function`?x=>x.normalize(`NFKD`):x=>x;var SearchCursor=class{constructor(text,query,from=0,to=text.length,normalize,test){this.test=test;this.value={from:0,to:0,precise:false};this.done=false;this.matches=[];this.buffer=``;this.bufferPos=0;this.iter=text.iterRange(from,to);this.bufferStart=from;this.normalize=normalize?x=>normalize(basicNormalize(x)):basicNormalize;this.query=this.normalize(query)}peek(){if(this.bufferPos==this.buffer.length){this.bufferStart+=this.buffer.length;this.iter.next();if(this.iter.done)return-1;this.bufferPos=0;this.buffer=this.iter.value}return codePointAt(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let next=this.peek();if(next<0){this.done=true;return this}let str=fromCodePoint(next),start=this.bufferStart+this.bufferPos;this.bufferPos+=codePointSize(next);let norm=this.normalize(str);if(norm.length)for(let i=0,pos=start,posPrecise=true;;i++){let code=norm.charCodeAt(i);let match=this.match(code,pos,posPrecise,this.bufferPos+this.bufferStart,i==norm.length-1);if(match){this.value=match;return this}if(i==norm.length-1)break;if(posPrecise&&i<str.length&&str.charCodeAt(i)==code)pos++;else posPrecise=false}}}match(code,pos,posPrecise,end,endPrecise){let match=null;for(let i=0;i<this.matches.length;){let partial=this.matches[i],keep=false;if(this.query.charCodeAt(partial.index)==code){if(partial.index==this.query.length-1)match={from:partial.from,to:end,precise:endPrecise&&partial.precise};else{partial.index++;keep=true}}if(keep)i++;else this.matches.splice(i,1)}if(this.query.charCodeAt(0)==code){if(this.query.length==1)match={from:pos,to:end,precise:posPrecise&&endPrecise};else this.matches.push({from:pos,index:1,precise:posPrecise})}if(match&&this.test&&!this.test(match.from,match.to,this.buffer,this.bufferStart))match=null;return match}};if(typeof Symbol!=`undefined`)SearchCursor.prototype[Symbol.iterator]=function(){return this};var empty={from:-1,to:-1,match:/.*/.exec(``),precise:true};var baseFlags=`gm`+(/x/.unicode==null?``:`u`);var RegExpCursor=class{constructor(text,query,options,from=0,to=text.length){this.text=text;this.to=to;this.curLine=``;this.done=false;this.value=empty;if(/\\[sWDnr]|\n|\r|\[\^/.test(query))return new MultilineRegExpCursor(text,query,options,from,to);this.re=new RegExp(query,baseFlags+((options===null||options===void 0?void 0:options.ignoreCase)?`i`:``));this.test=options===null||options===void 0?void 0:options.test;this.iter=text.iter();let startLine=text.lineAt(from);this.curLineStart=startLine.from;this.matchPos=toCharEnd(text,from);this.getLine(this.curLineStart)}getLine(skip){this.iter.next(skip);if(this.iter.lineBreak)this.curLine=``;else{this.curLine=this.iter.value;if(this.curLineStart+this.curLine.length>this.to)this.curLine=this.curLine.slice(0,this.to-this.curLineStart);this.iter.next()}}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1;if(this.curLineStart>this.to)this.curLine=``;else this.getLine(0)}next(){for(let off=this.matchPos-this.curLineStart;;){this.re.lastIndex=off;let match=this.matchPos<=this.to&&this.re.exec(this.curLine);if(match){let from=this.curLineStart+match.index,to=from+match[0].length;this.matchPos=toCharEnd(this.text,to+(from==to?1:0));if(from==this.curLineStart+this.curLine.length)this.nextLine();if((from<to||from>this.value.to)&&(!this.test||this.test(from,to,match))){this.value={from,to,precise:true,match};return this}off=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to){this.nextLine();off=0}else{this.done=true;return this}}}};var flattened=new WeakMap;var FlattenedDoc=class FlattenedDoc{constructor(from,text){this.from=from;this.text=text}get to(){return this.from+this.text.length}static get(doc,from,to){let cached=flattened.get(doc);if(!cached||cached.from>=to||cached.to<=from){let flat=new FlattenedDoc(from,doc.sliceString(from,to));flattened.set(doc,flat);return flat}if(cached.from==from&&cached.to==to)return cached;let{text,from:cachedFrom}=cached;if(cachedFrom>from){text=doc.sliceString(from,cachedFrom)+text;cachedFrom=from}if(cached.to<to)text+=doc.sliceString(cached.to,to);flattened.set(doc,new FlattenedDoc(cachedFrom,text));return new FlattenedDoc(from,text.slice(from-cachedFrom,to-cachedFrom))}};var MultilineRegExpCursor=class{constructor(text,query,options,from,to){this.text=text;this.to=to;this.done=false;this.value=empty;this.matchPos=toCharEnd(text,from);this.re=new RegExp(query,baseFlags+((options===null||options===void 0?void 0:options.ignoreCase)?`i`:``));this.test=options===null||options===void 0?void 0:options.test;this.flat=FlattenedDoc.get(text,from,this.chunkEnd(from+5e3))}chunkEnd(pos){return pos>=this.to?this.to:this.text.lineAt(pos).to}next(){for(;;){let off=this.re.lastIndex=this.matchPos-this.flat.from;let match=this.re.exec(this.flat.text);if(match&&!match[0]&&match.index==off){this.re.lastIndex=off+1;match=this.re.exec(this.flat.text)}if(match){let from=this.flat.from+match.index,to=from+match[0].length;if((this.flat.to>=this.to||match.index+match[0].length<=this.flat.text.length-10)&&(!this.test||this.test(from,to,match))){this.value={from,to,precise:true,match};this.matchPos=toCharEnd(this.text,to+(from==to?1:0));return this}}if(this.flat.to==this.to){this.done=true;return this}this.flat=FlattenedDoc.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}};if(typeof Symbol!=`undefined`)RegExpCursor.prototype[Symbol.iterator]=MultilineRegExpCursor.prototype[Symbol.iterator]=function(){return this};function validRegExp(source){try{new RegExp(source,baseFlags);return true}catch(_a){return false}}function toCharEnd(text,pos){if(pos>=text.length)return pos;let line=text.lineAt(pos),next;while(pos<line.to&&(next=line.text.charCodeAt(pos-line.from))>=56320&&next<57344)pos++;return pos}var gotoLine=view=>{let open=getDialog(view,`cm-goto-line`);if(open){let field=open.dom.querySelector(`input[type=text]`);if(field)field.select();return true}let{state}=view;let line=String(state.doc.lineAt(view.state.selection.main.head).number);let{close,result}=showDialog(view,{class:`cm-goto-line`,label:state.phrase(`Go to line`),input:{type:`text`,name:`line`,value:line},focus:true,submitLabel:state.phrase(`go`)});result.then(form=>{let match=form&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(form.elements[`line`].value);if(!match){view.dispatch({effects:close});return}let startLine=state.doc.lineAt(state.selection.main.head);let[,sign,ln,cl,percent]=match;let col=cl?+cl.slice(1):0;let line=ln?+ln:startLine.number;if(ln&&percent){let pc=line/100;if(sign)pc=pc*(sign==`-`?-1:1)+startLine.number/state.doc.lines;line=Math.round(state.doc.lines*pc)}else if(ln&&sign)line=line*(sign==`-`?-1:1)+startLine.number;let docLine=state.doc.line(Math.max(1,Math.min(state.doc.lines,line)));let selection=EditorSelection.cursor(docLine.from+Math.max(0,Math.min(col,docLine.length)));view.dispatch({effects:[close,EditorView.scrollIntoView(selection.from,{y:`center`})],selection})});return true};var selectWord=({state,dispatch})=>{let{selection}=state;let newSel=EditorSelection.create(selection.ranges.map(range=>state.wordAt(range.head)||EditorSelection.cursor(range.head)),selection.mainIndex);if(newSel.eq(selection))return false;dispatch(state.update({selection:newSel}));return true};function findNextOccurrence(state,query){let{main,ranges}=state.selection;let word=state.wordAt(main.head),fullWord=word&&word.from==main.from&&word.to==main.to;for(let cycled=false,cursor=new SearchCursor(state.doc,query,ranges[ranges.length-1].to);;){cursor.next();if(cursor.done){if(cycled)return null;cursor=new SearchCursor(state.doc,query,0,Math.max(0,ranges[ranges.length-1].from-1));cycled=true}else{if(cycled&&ranges.some(r=>r.from==cursor.value.from))continue;if(fullWord){let word=state.wordAt(cursor.value.from);if(!word||word.from!=cursor.value.from||word.to!=cursor.value.to)continue}return cursor.value}}}var selectNextOccurrence=({state,dispatch})=>{let{ranges}=state.selection;if(ranges.some(sel=>sel.from===sel.to))return selectWord({state,dispatch});let searchedText=state.sliceDoc(ranges[0].from,ranges[0].to);if(state.selection.ranges.some(r=>state.sliceDoc(r.from,r.to)!=searchedText))return false;let range=findNextOccurrence(state,searchedText);if(!range)return false;dispatch(state.update({selection:state.selection.addRange(EditorSelection.range(range.from,range.to),false),effects:EditorView.scrollIntoView(range.to)}));return true};var searchConfigFacet=Facet.define({combine(configs){return combineConfig(configs,{top:false,caseSensitive:false,literal:false,regexp:false,wholeWord:false,createPanel:view=>new SearchPanel(view),scrollToMatch:range=>EditorView.scrollIntoView(range)})}});var SearchQuery=class{constructor(config){this.search=config.search;this.caseSensitive=!!config.caseSensitive;this.literal=!!config.literal;this.regexp=!!config.regexp;this.replace=config.replace||``;this.valid=!!this.search&&(!this.regexp||validRegExp(this.search));this.unquoted=this.unquote(this.search);this.wholeWord=!!config.wholeWord;this.test=config.test}unquote(text){return this.literal?text:text.replace(/\\([nrt\\])/g,(_,ch)=>ch==`n`?`
|
|
2
2
|
`:ch==`r`?`\r`:ch==`t`?` `:`\\`)}eq(other){return this.search==other.search&&this.replace==other.replace&&this.caseSensitive==other.caseSensitive&&this.regexp==other.regexp&&this.wholeWord==other.wholeWord&&this.test==other.test}create(){return this.regexp?new RegExpQuery(this):new StringQuery(this)}getCursor(state,from=0,to){let st=state.doc?state:EditorState.create({doc:state});if(to==null)to=st.doc.length;return this.regexp?regexpCursor(this,st,from,to):stringCursor(this,st,from,to)}};var QueryType=class{constructor(spec){this.spec=spec}};function wrapStringTest(test,state,inner){return(from,to,buffer,bufferPos)=>{if(inner&&!inner(from,to,buffer,bufferPos))return false;return test(from>=bufferPos&&to<=bufferPos+buffer.length?buffer.slice(from-bufferPos,to-bufferPos):state.doc.sliceString(from,to),state,from,to)}}function stringCursor(spec,state,from,to){let test;if(spec.wholeWord)test=stringWordTest(state.doc,state.charCategorizer(state.selection.main.head));if(spec.test)test=wrapStringTest(spec.test,state,test);return new SearchCursor(state.doc,spec.unquoted,from,to,spec.caseSensitive?void 0:x=>x.toLowerCase(),test)}function stringWordTest(doc,categorizer){return(from,to,buf,bufPos)=>{if(bufPos>from||bufPos+buf.length<to){bufPos=Math.max(0,from-2);buf=doc.sliceString(bufPos,Math.min(doc.length,to+2))}return(categorizer(charBefore(buf,from-bufPos))!=CharCategory.Word||categorizer(charAfter(buf,from-bufPos))!=CharCategory.Word)&&(categorizer(charAfter(buf,to-bufPos))!=CharCategory.Word||categorizer(charBefore(buf,to-bufPos))!=CharCategory.Word)}}var StringQuery=class extends QueryType{constructor(spec){super(spec)}nextMatch(state,curFrom,curTo){let cursor=stringCursor(this.spec,state,curTo,state.doc.length).nextOverlapping();if(cursor.done){let end=Math.min(state.doc.length,curFrom+this.spec.unquoted.length);cursor=stringCursor(this.spec,state,0,end).nextOverlapping()}return cursor.done||cursor.value.from==curFrom&&cursor.value.to==curTo?null:cursor.value}prevMatchInRange(state,from,to){for(let pos=to;;){let start=Math.max(from,pos-1e4-this.spec.unquoted.length);let cursor=stringCursor(this.spec,state,start,pos),range=null;while(!cursor.nextOverlapping().done)range=cursor.value;if(range)return range;if(start==from)return null;pos-=1e4}}prevMatch(state,curFrom,curTo){let found=this.prevMatchInRange(state,0,curFrom);if(!found)found=this.prevMatchInRange(state,Math.max(0,curTo-this.spec.unquoted.length),state.doc.length);return found&&(found.from!=curFrom||found.to!=curTo)?found:null}getReplacement(_result){return this.spec.unquote(this.spec.replace)}matchAll(state,limit){let cursor=stringCursor(this.spec,state,0,state.doc.length),ranges=[];while(!cursor.next().done){if(ranges.length>=limit)return null;ranges.push(cursor.value)}return ranges}highlight(state,from,to,add){let cursor=stringCursor(this.spec,state,Math.max(0,from-this.spec.unquoted.length),Math.min(to+this.spec.unquoted.length,state.doc.length));while(!cursor.next().done)add(cursor.value.from,cursor.value.to)}};function wrapRegexpTest(test,state,inner){return(from,to,match)=>{return(!inner||inner(from,to,match))&&test(match[0],state,from,to)}}function regexpCursor(spec,state,from,to){let test;if(spec.wholeWord)test=regexpWordTest(state.charCategorizer(state.selection.main.head));if(spec.test)test=wrapRegexpTest(spec.test,state,test);return new RegExpCursor(state.doc,spec.search,{ignoreCase:!spec.caseSensitive,test},from,to)}function charBefore(str,index){return str.slice(findClusterBreak(str,index,false),index)}function charAfter(str,index){return str.slice(index,findClusterBreak(str,index))}function regexpWordTest(categorizer){return(_from,_to,match)=>!match[0].length||(categorizer(charBefore(match.input,match.index))!=CharCategory.Word||categorizer(charAfter(match.input,match.index))!=CharCategory.Word)&&(categorizer(charAfter(match.input,match.index+match[0].length))!=CharCategory.Word||categorizer(charBefore(match.input,match.index+match[0].length))!=CharCategory.Word)}var RegExpQuery=class extends QueryType{nextMatch(state,curFrom,curTo){let cursor=regexpCursor(this.spec,state,curTo,state.doc.length).next();if(cursor.done)cursor=regexpCursor(this.spec,state,0,curFrom).next();return cursor.done?null:cursor.value}prevMatchInRange(state,from,to){for(let size=1;;size++){let start=Math.max(from,to-size*1e4);let cursor=regexpCursor(this.spec,state,start,to),range=null;while(!cursor.next().done)range=cursor.value;if(range&&(start==from||range.from>start+10))return range;if(start==from)return null}}prevMatch(state,curFrom,curTo){return this.prevMatchInRange(state,0,curFrom)||this.prevMatchInRange(state,curTo,state.doc.length)}getReplacement(result){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(m,i)=>{if(i==`&`)return result.match[0];if(i==`$`)return`$`;for(let l=i.length;l>0;l--){let n=+i.slice(0,l);if(n>0&&n<result.match.length)return result.match[n]+i.slice(l)}return m})}matchAll(state,limit){let cursor=regexpCursor(this.spec,state,0,state.doc.length),ranges=[];while(!cursor.next().done){if(ranges.length>=limit)return null;ranges.push(cursor.value)}return ranges}highlight(state,from,to,add){let cursor=regexpCursor(this.spec,state,Math.max(0,from-250),Math.min(to+250,state.doc.length));while(!cursor.next().done)add(cursor.value.from,cursor.value.to)}};var setSearchQuery=StateEffect.define();var togglePanel=StateEffect.define();var searchState=StateField.define({create(state){return new SearchState(defaultQuery(state).create(),null)},update(value,tr){for(let effect of tr.effects)if(effect.is(setSearchQuery))value=new SearchState(effect.value.create(),value.panel);else if(effect.is(togglePanel))value=new SearchState(value.query,effect.value?createSearchPanel:null);return value},provide:f=>showPanel.from(f,val=>val.panel)});var SearchState=class{constructor(query,panel){this.query=query;this.panel=panel}};var matchMark=Decoration.mark({class:`cm-searchMatch`});var selectedMatchMark=Decoration.mark({class:`cm-searchMatch cm-searchMatch-selected`});var searchHighlighter=ViewPlugin.fromClass(class{constructor(view){this.view=view;this.decorations=this.highlight(view.state.field(searchState))}update(update){let state=update.state.field(searchState);if(state!=update.startState.field(searchState)||update.docChanged||update.selectionSet||update.viewportChanged)this.decorations=this.highlight(state)}highlight({query,panel}){if(!panel||!query.spec.valid)return Decoration.none;let{view}=this;let builder=new RangeSetBuilder;for(let i=0,ranges=view.visibleRanges,l=ranges.length;i<l;i++){let{from,to}=ranges[i];while(i<l-1&&to>ranges[i+1].from-500)to=ranges[++i].to;query.highlight(view.state,from,to,(from,to)=>{let selected=view.state.selection.ranges.some(r=>r.from==from&&r.to==to);builder.add(from,to,selected?selectedMatchMark:matchMark)})}return builder.finish()}},{decorations:v=>v.decorations});function searchCommand(f){return view=>{let state=view.state.field(searchState,false);return state&&state.query.spec.valid?f(view,state):openSearchPanel(view)}}var findNext=searchCommand((view,{query})=>{let{to}=view.state.selection.main;let next=query.nextMatch(view.state,to,to);if(!next)return false;let selection=EditorSelection.single(next.from,next.to);let config=view.state.facet(searchConfigFacet);view.dispatch({selection,effects:[announceMatch(view,next),config.scrollToMatch(selection.main,view)],userEvent:`select.search`});selectSearchInput(view);return true});var findPrevious=searchCommand((view,{query})=>{let{state}=view,{from}=state.selection.main;let prev=query.prevMatch(state,from,from);if(!prev)return false;let selection=EditorSelection.single(prev.from,prev.to);let config=view.state.facet(searchConfigFacet);view.dispatch({selection,effects:[announceMatch(view,prev),config.scrollToMatch(selection.main,view)],userEvent:`select.search`});selectSearchInput(view);return true});var selectMatches=searchCommand((view,{query})=>{let ranges=query.matchAll(view.state,1e3);if(!ranges||!ranges.length)return false;view.dispatch({selection:EditorSelection.create(ranges.map(r=>EditorSelection.range(r.from,r.to))),userEvent:`select.search.matches`});return true});var selectSelectionMatches=({state,dispatch})=>{let sel=state.selection;if(sel.ranges.length>1||sel.main.empty)return false;let{from,to}=sel.main;let ranges=[],main=0;for(let cur=new SearchCursor(state.doc,state.sliceDoc(from,to));!cur.next().done;){if(ranges.length>1e3)return false;if(cur.value.from==from)main=ranges.length;ranges.push(EditorSelection.range(cur.value.from,cur.value.to))}dispatch(state.update({selection:EditorSelection.create(ranges,main),userEvent:`select.search.matches`}));return true};var replaceNext=searchCommand((view,{query})=>{let{state}=view,{from,to}=state.selection.main;if(state.readOnly)return false;let match=query.nextMatch(state,from,from);if(!match)return false;let next=match;let changes=[],selection,replacement;let effects=[];if(!next.precise)next=query.nextMatch(state,next.from,next.to);else if(next.from==from&&next.to==to){replacement=state.toText(query.getReplacement(next));changes.push({from:next.from,to:next.to,insert:replacement});next=query.nextMatch(state,next.from,next.to);effects.push(EditorView.announce.of(state.phrase(`replaced match on line $`,state.doc.lineAt(from).number)+`.`))}let changeSet=view.state.changes(changes);if(next){selection=EditorSelection.single(next.from,next.to).map(changeSet);effects.push(announceMatch(view,next));effects.push(state.facet(searchConfigFacet).scrollToMatch(selection.main,view))}view.dispatch({changes:changeSet,selection,effects,userEvent:`input.replace`});return true});var replaceAll=searchCommand((view,{query})=>{if(view.state.readOnly)return false;let changes=[];for(let match of query.matchAll(view.state,1e9)){let{from,to,precise}=match;if(precise)changes.push({from,to,insert:query.getReplacement(match)})}if(!changes.length)return false;let announceText=view.state.phrase(`replaced $ matches`,changes.length)+`.`;view.dispatch({changes,effects:EditorView.announce.of(announceText),userEvent:`input.replace.all`});return true});function createSearchPanel(view){return view.state.facet(searchConfigFacet).createPanel(view)}function defaultQuery(state,fallback){var _a,_b,_c,_d,_e;let sel=state.selection.main;let selText=sel.empty||sel.to>sel.from+100?``:state.sliceDoc(sel.from,sel.to);if(fallback&&!selText)return fallback;let config=state.facet(searchConfigFacet);return new SearchQuery({search:((_a=fallback===null||fallback===void 0?void 0:fallback.literal)!==null&&_a!==void 0?_a:config.literal)?selText:selText.replace(/\n/g,`\\n`),caseSensitive:(_b=fallback===null||fallback===void 0?void 0:fallback.caseSensitive)!==null&&_b!==void 0?_b:config.caseSensitive,literal:(_c=fallback===null||fallback===void 0?void 0:fallback.literal)!==null&&_c!==void 0?_c:config.literal,regexp:(_d=fallback===null||fallback===void 0?void 0:fallback.regexp)!==null&&_d!==void 0?_d:config.regexp,wholeWord:(_e=fallback===null||fallback===void 0?void 0:fallback.wholeWord)!==null&&_e!==void 0?_e:config.wholeWord})}function getSearchInput(view){let panel=getPanel(view,createSearchPanel);return panel&&panel.dom.querySelector(`[main-field]`)}function selectSearchInput(view){let input=getSearchInput(view);if(input&&input==view.root.activeElement)input.select()}var openSearchPanel=view=>{let state=view.state.field(searchState,false);if(state&&state.panel){let searchInput=getSearchInput(view);if(searchInput&&searchInput!=view.root.activeElement){let query=defaultQuery(view.state,state.query.spec);if(query.valid)view.dispatch({effects:setSearchQuery.of(query)});searchInput.focus();searchInput.select()}}else view.dispatch({effects:[togglePanel.of(true),state?setSearchQuery.of(defaultQuery(view.state,state.query.spec)):StateEffect.appendConfig.of(searchExtensions)]});return true};var closeSearchPanel=view=>{let state=view.state.field(searchState,false);if(!state||!state.panel)return false;let panel=getPanel(view,createSearchPanel);if(panel&&panel.dom.contains(view.root.activeElement))view.focus();view.dispatch({effects:togglePanel.of(false)});return true};var searchKeymap=[{key:`Mod-f`,run:openSearchPanel,scope:`editor search-panel`},{key:`F3`,run:findNext,shift:findPrevious,scope:`editor search-panel`,preventDefault:true},{key:`Mod-g`,run:findNext,shift:findPrevious,scope:`editor search-panel`,preventDefault:true},{key:`Escape`,run:closeSearchPanel,scope:`editor search-panel`},{key:`Mod-Shift-l`,run:selectSelectionMatches},{key:`Mod-Alt-g`,run:gotoLine},{key:`Mod-d`,run:selectNextOccurrence,preventDefault:true}];var SearchPanel=class{constructor(view){this.view=view;let query=this.query=view.state.field(searchState).query.spec;this.commit=this.commit.bind(this);this.searchField=crelt(`input`,{value:query.search,placeholder:phrase(view,`Find`),"aria-label":phrase(view,`Find`),class:`cm-textfield`,name:`search`,form:``,"main-field":`true`,onchange:this.commit,onkeyup:this.commit});this.replaceField=crelt(`input`,{value:query.replace,placeholder:phrase(view,`Replace`),"aria-label":phrase(view,`Replace`),class:`cm-textfield`,name:`replace`,form:``,onchange:this.commit,onkeyup:this.commit});this.caseField=crelt(`input`,{type:`checkbox`,name:`case`,form:``,checked:query.caseSensitive,onchange:this.commit});this.reField=crelt(`input`,{type:`checkbox`,name:`re`,form:``,checked:query.regexp,onchange:this.commit});this.wordField=crelt(`input`,{type:`checkbox`,name:`word`,form:``,checked:query.wholeWord,onchange:this.commit});function button(name,onclick,content){return crelt(`button`,{class:`cm-button`,name,onclick,type:`button`},content)}this.dom=crelt(`div`,{onkeydown:e=>this.keydown(e),class:`cm-search`},[this.searchField,button(`next`,()=>findNext(view),[phrase(view,`next`)]),button(`prev`,()=>findPrevious(view),[phrase(view,`previous`)]),button(`select`,()=>selectMatches(view),[phrase(view,`all`)]),crelt(`label`,null,[this.caseField,phrase(view,`match case`)]),crelt(`label`,null,[this.reField,phrase(view,`regexp`)]),crelt(`label`,null,[this.wordField,phrase(view,`by word`)]),...view.state.readOnly?[]:[crelt(`br`),this.replaceField,button(`replace`,()=>replaceNext(view),[phrase(view,`replace`)]),button(`replaceAll`,()=>replaceAll(view),[phrase(view,`replace all`)])],crelt(`button`,{name:`close`,onclick:()=>closeSearchPanel(view),"aria-label":phrase(view,`close`),type:`button`},[`×`])])}commit(){let query=new SearchQuery({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});if(!query.eq(this.query)){this.query=query;this.view.dispatch({effects:setSearchQuery.of(query)})}}keydown(e){if(runScopeHandlers(this.view,e,`search-panel`))e.preventDefault();else if(e.keyCode==13&&e.target==this.searchField){e.preventDefault();(e.shiftKey?findPrevious:findNext)(this.view)}else if(e.keyCode==13&&e.target==this.replaceField){e.preventDefault();replaceNext(this.view)}}update(update){for(let tr of update.transactions)for(let effect of tr.effects)if(effect.is(setSearchQuery)&&!effect.value.eq(this.query))this.setQuery(effect.value)}setQuery(query){this.query=query;this.searchField.value=query.search;this.replaceField.value=query.replace;this.caseField.checked=query.caseSensitive;this.reField.checked=query.regexp;this.wordField.checked=query.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(searchConfigFacet).top}};function phrase(view,phrase){return view.state.phrase(phrase)}var AnnounceMargin=30;var Break=/[\s\.,:;?!]/;function announceMatch(view,{from,to}){let line=view.state.doc.lineAt(from),lineEnd=view.state.doc.lineAt(to).to;let start=Math.max(line.from,from-AnnounceMargin),end=Math.min(lineEnd,to+AnnounceMargin);let text=view.state.sliceDoc(start,end);if(start!=line.from){for(let i=0;i<AnnounceMargin;i++)if(!Break.test(text[i+1])&&Break.test(text[i])){text=text.slice(i);break}}if(end!=lineEnd){for(let i=text.length-1;i>text.length-AnnounceMargin;i--)if(!Break.test(text[i-1])&&Break.test(text[i])){text=text.slice(0,i);break}}return EditorView.announce.of(`${view.state.phrase(`current match`)}. ${text} ${view.state.phrase(`on line`)} ${line.number}.`)}var baseTheme=EditorView.baseTheme({".cm-panel.cm-search":{padding:`2px 6px 4px`,position:`relative`,"& [name=close]":{position:`absolute`,top:`0`,right:`4px`,backgroundColor:`inherit`,border:`none`,font:`inherit`,padding:0,margin:0},"& input, & button, & label":{margin:`.2em .6em .2em 0`},"& input[type=checkbox]":{marginRight:`.2em`},"& label":{fontSize:`80%`,whiteSpace:`pre`}},"&light .cm-searchMatch":{backgroundColor:`#ffff0054`},"&dark .cm-searchMatch":{backgroundColor:`#00ffff8a`},"&light .cm-searchMatch-selected":{backgroundColor:`#ff6a0054`},"&dark .cm-searchMatch-selected":{backgroundColor:`#ff00ff8a`}});var searchExtensions=[searchState,Prec.low(searchHighlighter),baseTheme];var SOURCE_EDITOR_DIFF_TIMEOUT_MS=100;function sourceEditorDocumentChanges(currentText,nextText){if(currentText===nextText)return[];const parts=diffLines(currentText,nextText,{timeout:SOURCE_EDITOR_DIFF_TIMEOUT_MS});if(!parts)return[{from:0,insert:nextText,to:currentText.length}];const changes=[];let currentPosition=0;let pendingChange=null;for(const part of parts){if(!part.added&&!part.removed){if(pendingChange){changes.push(pendingChange);pendingChange=null}currentPosition+=part.value.length;continue}pendingChange||={from:currentPosition,insert:``,to:currentPosition};if(part.added)pendingChange.insert+=part.value;else{currentPosition+=part.value.length;pendingChange.to=currentPosition}}if(pendingChange)changes.push(pendingChange);return changes}var noSemi=317;var noSemiType=318;var incdec=1;var incdecPrefix=2;var questionDot=3;var JSXStartTag=4;var insertSemi=319;var spaces=321;var newline$1=322;var LineComment=5;var BlockComment=6;var Dialect_jsx=0;var space$2=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];var braceR=125;var semicolon=59;var slash$1=47;var star=42;var plus=43;var minus=45;var lt=60;var comma=44;var question$1=63;var dot=46;var bracketL$1=91;var trackNewline=new ContextTracker({start:false,shift(context,term){return term==LineComment||term==BlockComment||term==spaces?context:term==newline$1},strict:false});var insertSemicolon=new ExternalTokenizer((input,stack)=>{let{next}=input;if(next==braceR||next==-1||stack.context)input.acceptToken(insertSemi)},{contextual:true,fallback:true});var noSemicolon=new ExternalTokenizer((input,stack)=>{let{next}=input,after;if(space$2.indexOf(next)>-1)return;if(next==slash$1&&((after=input.peek(1))==slash$1||after==star))return;if(next!=braceR&&next!=semicolon&&next!=-1&&!stack.context)input.acceptToken(noSemi)},{contextual:true});var noSemicolonType=new ExternalTokenizer((input,stack)=>{if(input.next==bracketL$1&&!stack.context)input.acceptToken(noSemiType)},{contextual:true});var operatorToken=new ExternalTokenizer((input,stack)=>{let{next}=input;if(next==plus||next==minus){input.advance();if(next==input.next){input.advance();let mayPostfix=!stack.context&&stack.canShift(incdec);input.acceptToken(mayPostfix?incdec:incdecPrefix)}}else if(next==question$1&&input.peek(1)==dot){input.advance();input.advance();if(input.next<48||input.next>57)input.acceptToken(questionDot)}},{contextual:true});function identifierChar(ch,start){return ch>=65&&ch<=90||ch>=97&&ch<=122||ch==95||ch>=192||!start&&ch>=48&&ch<=57}var jsx=new ExternalTokenizer((input,stack)=>{if(input.next!=lt||!stack.dialectEnabled(Dialect_jsx))return;input.advance();if(input.next==slash$1)return;let back=0;while(space$2.indexOf(input.next)>-1){input.advance();back++}if(identifierChar(input.next,true)){input.advance();back++;while(identifierChar(input.next,false)){input.advance();back++}while(space$2.indexOf(input.next)>-1){input.advance();back++}if(input.next==comma)return;for(let i=0;;i++){if(i==7){if(!identifierChar(input.next,true))return;break}if(input.next!=`extends`.charCodeAt(i))break;input.advance();back++}}input.acceptToken(JSXStartTag,-back)});var jsHighlight=styleTags({"get set async static":tags$1.modifier,"for while do if else switch try catch finally return throw break continue default case defer":tags$1.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":tags$1.operatorKeyword,"let var const using function class extends":tags$1.definitionKeyword,"import export from":tags$1.moduleKeyword,"with debugger new":tags$1.keyword,TemplateString:tags$1.special(tags$1.string),super:tags$1.atom,BooleanLiteral:tags$1.bool,this:tags$1.self,null:tags$1.null,Star:tags$1.modifier,VariableName:tags$1.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":tags$1.function(tags$1.variableName),VariableDefinition:tags$1.definition(tags$1.variableName),Label:tags$1.labelName,PropertyName:tags$1.propertyName,PrivatePropertyName:tags$1.special(tags$1.propertyName),"CallExpression/MemberExpression/PropertyName":tags$1.function(tags$1.propertyName),"FunctionDeclaration/VariableDefinition":tags$1.function(tags$1.definition(tags$1.variableName)),"ClassDeclaration/VariableDefinition":tags$1.definition(tags$1.className),"NewExpression/VariableName":tags$1.className,PropertyDefinition:tags$1.definition(tags$1.propertyName),PrivatePropertyDefinition:tags$1.definition(tags$1.special(tags$1.propertyName)),UpdateOp:tags$1.updateOperator,"LineComment Hashbang":tags$1.lineComment,BlockComment:tags$1.blockComment,Number:tags$1.number,String:tags$1.string,Escape:tags$1.escape,ArithOp:tags$1.arithmeticOperator,LogicOp:tags$1.logicOperator,BitOp:tags$1.bitwiseOperator,CompareOp:tags$1.compareOperator,RegExp:tags$1.regexp,Equals:tags$1.definitionOperator,Arrow:tags$1.function(tags$1.punctuation),": Spread":tags$1.punctuation,"( )":tags$1.paren,"[ ]":tags$1.squareBracket,"{ }":tags$1.brace,"InterpolationStart InterpolationEnd":tags$1.special(tags$1.brace),".":tags$1.derefOperator,", ;":tags$1.separator,"@":tags$1.meta,TypeName:tags$1.typeName,TypeDefinition:tags$1.definition(tags$1.typeName),"type enum interface implements namespace module declare":tags$1.definitionKeyword,"abstract global Privacy readonly override":tags$1.modifier,"is keyof unique infer asserts":tags$1.operatorKeyword,JSXAttributeValue:tags$1.attributeValue,JSXText:tags$1.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":tags$1.angleBracket,"JSXIdentifier JSXNameSpacedName":tags$1.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":tags$1.attributeName,"JSXBuiltin/JSXIdentifier":tags$1.standard(tags$1.tagName)});var spec_identifier$2={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:237,private:237,protected:237,readonly:239,instanceof:258,satisfies:261,import:294,keyof:351,unique:355,infer:361,asserts:397,is:399,abstract:419,implements:421,type:423,let:426,var:428,using:431,interface:437,enum:441,namespace:447,module:449,declare:453,global:457,defer:473,for:478,of:487,while:490,with:494,do:498,if:502,else:504,switch:508,case:514,try:520,catch:524,finally:528,return:532,throw:536,break:540,continue:544,debugger:548};var spec_word={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:403};var spec_LessThan={__proto__:null,"<":193};var parser$5=LRParser.deserialize({version:14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2u-dQ4v0]R4{0`R(|#xQ!fQT-e'a-f]!qQ!r'a-f1p5{Q#p]R'j<VR)g$dY!uQ'a-f1p5{Q'l!rS'v!v!yS'x!z5}S-u'm'nQ-w'oR3T-vT#kZ%eS#jZ%eS%km,qU(h#h#i#lS.Z(i(jQ._(kQ0u+`Q3Y.[U3Z.].^.`S7S3[3]R9`7Td#^W#W#Z%h(U(_*Z+[.U/nr#gZm#h#i#l%e(i(j(k+`.[.].^.`3[3]7TS*^$x*cQ/u*_Q2V,qQ2l-WQ4`/qQ6q2eQ7s4aQ9W6rT=l'X+^V#aW%h*ZU#`W%h*ZS(V#W(_U([#Z+[/nS-]'X+^T.P(U.UV'_!e%i*[Q$lfR)y$qT)n$l)oR4V/VT*`$x*cT*i${*ZQ0x+hQ1h,XQ3_.gQ5t1jQ6P1rQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,u,z2]2`Q&l!VR,j&itmOXst!U!V!Z#d%m&i&r&t&u&w,u,z2]2`R,q&oT%lm,qR1l,ZR,i&gQ&U|S,P&V&WR1_,QR+u&PT&p!W&sT&q!W&sT2_,z2`",nodeNames:`⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty VariableDefinition Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem`,maxTerm:381,context:trackNewline,nodeProps:[[`isolate`,-8,5,6,14,37,39,51,53,55,``],[`group`,-26,9,17,19,68,208,212,216,217,219,222,225,235,238,244,246,248,250,253,259,265,267,269,271,273,275,276,`Statement`,-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,121,122,137,140,142,143,144,145,146,148,149,168,170,172,`Expression`,-23,31,33,37,41,43,45,174,176,178,179,181,182,183,185,186,187,189,190,191,202,204,206,207,`Type`,-3,88,103,109,`ClassItem`],[`openedBy`,23,`<`,38,`InterpolationStart`,56,`[`,60,`{`,73,`(`,161,`JSXStartCloseTag`],[`closedBy`,-2,24,169,`>`,40,`InterpolationEnd`,50,`]`,61,`}`,74,`)`,166,`JSXEndTag`]],propSources:[jsHighlight],skippedNodes:[0,5,6,279],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$j&j(Xp([!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$j&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$j&j([!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU([!bOY'}Zw'}x#O'}#P;'S'};'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#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(d~~",141,341),new LocalTokenGroup(`j~RQYZXz{^~^O(R~~aP!P!Qd~iO(S~~`,25,324)],topRules:{"Script":[0,7],"SingleExpression":[1,277],"SingleClassItem":[2,278]},dialects:{jsx:0,ts:15152},dynamicPrecedences:{"80":1,"82":1,"94":1,"170":1,"200":1},specialized:[{term:328,get:value=>spec_identifier$2[value]||-1},{term:344,get:value=>spec_word[value]||-1},{term:95,get:value=>spec_LessThan[value]||-1}],tokenPrec:15178});var snippets=[snippetCompletion("function ${name}(${params}) {\n ${}\n}",{label:`function`,detail:`definition`,type:`keyword`}),snippetCompletion("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:`for`,detail:`loop`,type:`keyword`}),snippetCompletion("for (let ${name} of ${collection}) {\n ${}\n}",{label:`for`,detail:`of loop`,type:`keyword`}),snippetCompletion(`do {
|
|
3
3
|
\${}
|
|
4
4
|
} while (\${})`,{label:`do`,detail:`loop`,type:`keyword`}),snippetCompletion(`while (\${}) {
|