Delete src/core/state.js

This commit is contained in:
2025-11-08 19:45:53 -08:00
committed by GitHub
parent f77c31344c
commit cbcd225367

View File

@@ -1,3 +0,0 @@
import{el}from'../lib/dom.js';
export const state=window.state={messages:[],busy:false,controller:null,currentThreadId:null,abortRequested:false,attachments:[],stream:{rid:null,bubble:null,meta:null,text:'',done:false}}
export function clearChat(){el.suneHtml.dispatchEvent(new CustomEvent('sune:unmount'));state.messages=[];el.messages.innerHTML='';state.attachments=[];el.fileInput.value=''}