@wrongstack/webui 0.296.4 → 0.297.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.d.ts.map +1 -1
- package/dist/assets/{AgentRosterView-DTbg5NoZ.js → AgentRosterView-Cje2NBtU.js} +4 -4
- package/dist/assets/AnalyticsDashboard-CkceglT6.js +1 -0
- package/dist/assets/{AudienceMemoryPanel-C1mj_XOq.js → AudienceMemoryPanel-DB-8ISNP.js} +2 -2
- package/dist/assets/{ChangesView-W_UTPolz.js → ChangesView-DouwIaDk.js} +1 -1
- package/dist/assets/ChronicleDashboard-B4Khm6hu.js +1 -0
- package/dist/assets/CodeEditor-CrKbA5s8.js +1 -0
- package/dist/assets/CodeMap-Dz8yNlUe.js +1 -0
- package/dist/assets/{CronJobsPanel-0virGKLS.js → CronJobsPanel-CAImDL8t.js} +1 -1
- package/dist/assets/{DeadCodeScanPanel-DHsw8Nn4.js → DeadCodeScanPanel-C5ehBTQF.js} +1 -1
- package/dist/assets/DebugDashboard-DLNPZIEI.js +1 -0
- package/dist/assets/{DesignGalleryView-BSBDNBNf.js → DesignGalleryView-D0azMq2e.js} +1 -1
- package/dist/assets/GoalView-gtQRK78W.js +1 -0
- package/dist/assets/KanbanView-BXKe19EI.js +3 -0
- package/dist/assets/{LazyMarkdown-Bt3iw3ZV.js → LazyMarkdown-BGwFjYKr.js} +3 -3
- package/dist/assets/MailboxDetailView-D4fXipos.js +1 -0
- package/dist/assets/MemoryManager-D_rquas9.js +1 -0
- package/dist/assets/{ModelPicker-CJBOoZME.js → ModelPicker-CN-UD3lc.js} +1 -1
- package/dist/assets/OfficeMapPanel-CJFrTNmg.js +4 -0
- package/dist/assets/{ProcessMonitor-d_5Iwyo7.js → ProcessMonitor-ButM8C0T.js} +1 -1
- package/dist/assets/{QueuePanel-DlNF8CUn.js → QueuePanel-C5oihwYM.js} +1 -1
- package/dist/assets/{RefreshDebugView-gPMro5jy.js → RefreshDebugView-DVvWsh9A.js} +1 -1
- package/dist/assets/{SageTabs-yP5fr4lP.js → SageTabs-C9vAgvCD.js} +2 -2
- package/dist/assets/SddHub-D_nsWjuM.js +2 -0
- package/dist/assets/SessionsDashboard-DdwU3Ma5.js +1 -0
- package/dist/assets/{SetupScreen-Dsek43zs.js → SetupScreen-CQCfLdPI.js} +1 -1
- package/dist/assets/SkillDetailView-mVxi-9jo.js +3 -0
- package/dist/assets/{SpecsView-Bu8xHf5j.js → SpecsView-BJs_okSx.js} +1 -1
- package/dist/assets/TechStackView-BZ4M7TYc.js +1 -0
- package/dist/assets/{TerminalPanel-gA6ThdVE.js → TerminalPanel-W2V0X7b9.js} +1 -1
- package/dist/assets/{Toaster-DTJHnKyl.js → Toaster-CbcX_Cou.js} +1 -1
- package/dist/assets/{button-Bmh1yFe5.js → button-uGqXvobk.js} +1 -1
- package/dist/assets/chat-store-CM1dMeuY.js +17 -0
- package/dist/assets/{codemap-activity-store-CkJTt5go.js → codemap-activity-store-DP3mCZu1.js} +1 -1
- package/dist/assets/codemap-index-store-DyAe3ZYJ.js +1 -0
- package/dist/assets/{dialog-BLr7olIX.js → dialog-CT1PTjzK.js} +1 -1
- package/dist/assets/{empty-state-DoEewhfx.js → empty-state-CdyXy96A.js} +1 -1
- package/dist/assets/{i18n-C2VyJ0Kz.js → i18n-1BkaqMgr.js} +1 -1
- package/dist/assets/index-BPfIz78e.js +131 -0
- package/dist/assets/{index-3CuRO3-V.css → index-BlceaIyu.css} +1 -1
- package/dist/assets/{input-BRS2rHSR.js → input-B-VCX2sG.js} +1 -1
- package/dist/assets/{mailbox-store-BN2cGkN_.js → mailbox-store-DVoNbOZr.js} +1 -1
- package/dist/assets/{progress-ring-BEsRLdjq.js → progress-ring-CFOvGxw7.js} +1 -1
- package/dist/assets/{roster-ws-CVCrt_ih.js → roster-ws-DXm0krqH.js} +1 -1
- package/dist/assets/session-store-BsNYnfOc.js +1 -0
- package/dist/assets/{shared-DYL4K3aB.js → shared-jvJxtKc5.js} +1 -1
- package/dist/assets/{stores-hEu6z1qz.js → stores-mpa0202y.js} +1 -1
- package/dist/assets/{ui-store-BI3LH2q8.js → ui-store-CS-njcmT.js} +1 -1
- package/dist/assets/useWebSocket-Dh3aAFDE.js +28 -0
- package/dist/assets/{utils-DzRQUvln.js → utils-CN2sfDVP.js} +1 -1
- package/dist/assets/{vendor-9hC4n4Me.js → vendor-2VBBgNb5.js} +27 -27
- package/dist/assets/{view-navigation-BSA3_knE.js → view-navigation-Cgy5xh9q.js} +1 -1
- package/dist/assets/ws-client-WVGn8ORh.js +1 -0
- package/dist/components/AnalyticsDashboard.d.ts.map +1 -1
- package/dist/components/DebugDashboard.d.ts.map +1 -1
- package/dist/components/UpdateBanner.d.ts +8 -0
- package/dist/components/UpdateBanner.d.ts.map +1 -0
- package/dist/hooks/ws-handlers/chat-handlers.d.ts.map +1 -1
- package/dist/hooks/ws-handlers/files-mailbox-handlers.d.ts +2 -1
- package/dist/hooks/ws-handlers/files-mailbox-handlers.d.ts.map +1 -1
- package/dist/hooks/ws-handlers/session-handlers.d.ts.map +1 -1
- package/dist/index.html +21 -21
- package/dist/index.js +9165 -8858
- package/dist/index.js.map +4 -4
- package/dist/lib/ws-client.d.ts.map +1 -1
- package/dist/stores/chat-store.d.ts +17 -1
- package/dist/stores/chat-store.d.ts.map +1 -1
- package/dist/stores/session-store.d.ts +11 -0
- package/dist/stores/session-store.d.ts.map +1 -1
- package/dist/types/server-message.d.ts +9 -0
- package/dist/types/server-message.d.ts.map +1 -1
- package/package.json +7 -7
- package/dist/assets/AnalyticsDashboard-Xc8aG4ev.js +0 -1
- package/dist/assets/ChronicleDashboard-BivxCmdl.js +0 -1
- package/dist/assets/CodeEditor-NAOGCzZS.js +0 -1
- package/dist/assets/CodeMap-BOhBy8OQ.js +0 -1
- package/dist/assets/DebugDashboard-DYEVc0PA.js +0 -1
- package/dist/assets/GoalView-C_wodXvj.js +0 -1
- package/dist/assets/KanbanView-D7SKeieE.js +0 -3
- package/dist/assets/MailboxDetailView-BaFQIyhC.js +0 -1
- package/dist/assets/MemoryManager-CWkdwf8F.js +0 -1
- package/dist/assets/OfficeMapPanel-BopbmfGN.js +0 -4
- package/dist/assets/SddHub-DjeM7IaL.js +0 -2
- package/dist/assets/SessionsDashboard-D7b7aEse.js +0 -1
- package/dist/assets/SkillDetailView-DxdqTQ5E.js +0 -3
- package/dist/assets/TechStackView--7TPHg0R.js +0 -1
- package/dist/assets/chat-store-DaSs2P3S.js +0 -13
- package/dist/assets/codemap-index-store-8v-MK2XF.js +0 -1
- package/dist/assets/index-DSXHr5yP.js +0 -131
- package/dist/assets/session-store-w5G2euPs.js +0 -1
- package/dist/assets/useWebSocket-Ba38Sknk.js +0 -28
- package/dist/assets/ws-client-eyEv8wbm.js +0 -1
package/dist/assets/{codemap-activity-store-CkJTt5go.js → codemap-activity-store-DP3mCZu1.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ha as e}from"./vendor-9hC4n4Me.js";var t=8e3,n=2500,r=30*6e4,i=200,a=500,o={read:`read`,read_file:`read`,write:`write`,write_file:`write`,edit:`edit`,patch:`edit`,apply_patch:`edit`,replace:`edit`,delete:`delete`,delete_file:`delete`,remove:`delete`,grep:`search`,glob:`search`,search:`search`,"codebase-search":`search`,"codebase-index":`index`,remember:`memory`,forget:`memory`,memory_search:`memory`,memory_update:`memory`,memory_delete:`memory`};function s(e,t=``){return e===`rename`?`edit`:e in{read:1,write:1,edit:1,delete:1,search:1}?e:o[t]}function c(e){let t=[];for(let n of[`path`,`file`,`filePath`,`target`]){let r=e[n];typeof r==`string`&&t.push(r)}let n=e.files;if(typeof n==`string`&&t.push(n),Array.isArray(n))for(let e of n)typeof e==`string`&&t.push(e);return[...new Set(t)]}function l(e,t){let n=typeof t.old_string==`string`?t.old_string.trim():``,r=typeof t.new_string==`string`?t.new_string.trim():``;if(n||r)return`${n.replace(/\s+/g,` `).slice(0,42)||`∅`} → ${r.replace(/\s+/g,` `).slice(0,42)||`∅`}`;if(typeof t.patch==`string`){let n=d(t);return`${e} +${n?.added??0} −${n?.removed??0}`}let i=typeof t.content==`string`?t.content:void 0;if(i!==void 0){let t=i.length===0?0:i.split(/\r?\n/).length;return`${e} ${t} line${t===1?``:`s`}`}for(let e of[`query`,`pattern`,`old_string`,`new_string`,`text`,`command`]){let n=t[e];if(typeof n==`string`&&n.trim()){let t=n.trim().replace(/\s+/g,` `).slice(0,96);return e===`query`?`"${t}"`:e===`pattern`?`/${t}/`:e===`command`?`$ ${t}`:t}}return e}function u(e){return e.trim().replace(/\s+/g,` `).slice(0,72)}function d(e){let t=typeof e.old_string==`string`?e.old_string:void 0,n=typeof e.new_string==`string`?e.new_string:void 0;if(t!==void 0||n!==void 0){let e=t?t.split(/\r?\n/).length:0;return{added:n?n.split(/\r?\n/).length:0,removed:e,...t?{before:u(t)}:{},...n?{after:u(n)}:{}}}let r=typeof e.patch==`string`?e.patch:void 0;if(r){let e=r.split(/\r?\n/),t=e.filter(e=>e.startsWith(`+`)&&!e.startsWith(`+++`)),n=e.filter(e=>e.startsWith(`-`)&&!e.startsWith(`---`));return{added:t.length,removed:n.length,...n[0]?{before:u(n[0].slice(1))}:{},...t[0]?{after:u(t[0].slice(1))}:{}}}let i=typeof e.content==`string`?e.content:void 0;if(i!==void 0)return{added:i.length===0?0:i.split(/\r?\n/).length,removed:0,...i?{after:u(i)}:{}}}function f(e){let t=e.status??`observed`;return{...e,id:e.id??`${e.toolUseId??`event`}:${e.filePath}:${e.timestamp}`,status:t,source:e.source??`legacy`,agentName:e.agentName??e.agent,agent:e.agent??e.agentName}}function p(e,t){let n=e.get(t.filePath)??[];if(e.set(t.filePath,[t,...n].slice(0,i)),e.size<=a)return;let r=[...e.entries()].sort((e,t)=>(e[1][0]?.timestamp??0)-(t[1][0]?.timestamp??0))[0]?.[0];r&&e.delete(r)}function m(e){return`${e.sessionId??`unscoped`}:${e.agentId??e.agentName??e.agent??`external`}`}function h(e){let t=new Map;for(let n of e){let e=n.agentId??`external`,r=n.agentName??n.agent??`External process`,i=n.sessionId??`unscoped`,a=m(n),o=t.get(a);o?(o.operations.push(n),o.startedAt=Math.min(o.startedAt,n.timestamp)):t.set(a,{key:a,agentId:e,agentName:r,sessionId:i,operations:[n],startedAt:n.timestamp})}return[...t.values()].sort((e,t)=>e.startedAt-t.startedAt)}function g(e,t,n){let r=String(e.name??`unknown`),i=e.input&&typeof e.input==`object`?e.input:{},a=Date.now(),o=String(e.id??`${r}:${a}`),c=d(i);return(t.length>0?t:[{filePath:`(tool:${r})`,operation:`execute`}]).map((u,d)=>({id:`${o}:${d}`,toolUseId:o,filePath:u.filePath,type:u.operation===`execute`?`execute`:s(u.operation,r)??`edit`,toolName:r,summary:l(r,i),timestamp:a,status:n,source:`tool`,attribution:t.length>0?`exact`:`correlated`,...c?{change:c}:{},sessionId:typeof e.sessionId==`string`?e.sessionId:void 0,traceId:typeof e.traceId==`string`?e.traceId:void 0,agentId:typeof e.agentId==`string`?e.agentId:`leader`,agentName:typeof e.agentName==`string`?e.agentName:`LEADER`,...u.line?{line:u.line}:{},...u.endLine?{endLine:u.endLine}:{}}))}function _(e){let t=e.payload??{};if(e.type===`tool.started`||e.type===`tool.executed`||e.type===`codemap.tool_started`||e.type===`codemap.tool_executed`)return g(t,Array.isArray(t.fileTargets)?t.fileTargets:c(t.input&&typeof t.input==`object`?t.input:{}).map(e=>({filePath:e,operation:o[String(t.name??``)]??`edit`})),e.type===`tool.started`||e.type===`codemap.tool_started`?`active`:`completed`);if(e.type===`provider.response`){let e=t.blocks;if(!Array.isArray(e))return[];let n=[];for(let t of e){if(!t||typeof t!=`object`)continue;let e=t;if(e.type!==`tool_use`)continue;let r=String(e.name??``),i=o[r];if(!i)continue;let a=e.input&&typeof e.input==`object`?e.input:{},s=c(a),u=Date.now();s.length===0&&(i===`memory`||i===`search`||i===`index`)&&s.push(`(global)`);for(let e of s)n.push({filePath:e,type:i,toolName:r,summary:l(r,a),timestamp:u})}return n}if(e.type===`tool.progress`){let e=t.event&&typeof t.event==`object`?t.event:void 0;if(e?.type!==`file_changed`||typeof e.path!=`string`)return[];let n=String(e.operation??`edit`);return[{id:`${String(t.id??`progress`)}:${e.path}:${Date.now()}`,toolUseId:typeof t.id==`string`?t.id:void 0,filePath:e.path,type:s(n)??`edit`,toolName:String(t.name??`deterministic-tool`),summary:String(e.text??`tool reported file change`),timestamp:Date.now(),status:`active`,source:`deterministic`,sessionId:typeof t.sessionId==`string`?t.sessionId:void 0,traceId:typeof t.traceId==`string`?t.traceId:void 0,agentId:typeof t.agentId==`string`?t.agentId:void 0,agentName:typeof t.agentName==`string`?t.agentName:void 0,line:typeof e.line==`number`?e.line:void 0,endLine:typeof e.endLine==`number`?e.endLine:void 0,attribution:`exact`}]}if(e.type===`codemap.file_event`){let e=s(String(t.operation??`edit`))??`edit`;return typeof t.filePath==`string`?[{filePath:t.filePath,type:e,toolName:typeof t.toolName==`string`?t.toolName:String(t.source??`watcher`),summary:`${String(t.source??`external`)} ${String(t.operation??`changed`)}`,timestamp:typeof t.at==`number`?t.at:Date.now(),status:t.phase===`started`?`active`:`observed`,source:t.source??`external`,sessionId:typeof t.sessionId==`string`?t.sessionId:void 0,traceId:typeof t.traceId==`string`?t.traceId:void 0,agentId:typeof t.agentId==`string`?t.agentId:void 0,agentName:typeof t.agentName==`string`?t.agentName:void 0,toolUseId:typeof t.toolUseId==`string`?t.toolUseId:void 0,line:typeof t.line==`number`?t.line:void 0,endLine:typeof t.endLine==`number`?t.endLine:void 0}]:[]}return e.type===`file.saved`&&typeof t.filePath==`string`?[{filePath:t.filePath,type:`write`,toolName:`save`,summary:``,timestamp:Date.now(),source:`editor`}]:e.type===`memory.event`&&typeof t.event==`string`?[{filePath:`(memory)`,type:`memory`,toolName:`memory.${t.event}`,summary:String(t.memoryId??``),timestamp:Date.now()}]:[]}var v=e((e,i)=>({history:new Map,pulses:new Map,activeOperations:new Map,totalCount:0,recordActivity(n){let r=f(n);e(e=>{let n=new Map(e.history),i=new Map(e.pulses);return p(n,r),i.set(r.filePath,Date.now()+t),{history:n,pulses:i,totalCount:e.totalCount+1}})},startActivities(n){if(n.length===0)return;let r=n.map(e=>f({...e,status:`active`}));e(e=>{let n=new Map(e.history),i=new Map(e.pulses),a=new Map(e.activeOperations);for(let e of r)if(p(n,e),i.set(e.filePath,Date.now()+t),e.toolUseId){let t=a.get(e.toolUseId)??[];a.set(e.toolUseId,[...t,e])}return{history:n,pulses:i,activeOperations:a,totalCount:e.totalCount+r.length}})},finishTool(n,r){let i=r.timestamp??Date.now();e(e=>{let a=e.activeOperations.get(n)??[];if(a.length===0)return e;let o=new Map(e.history),s=new Map(e.pulses);for(let e of a){let a=o.get(e.filePath)??[];o.set(e.filePath,a.map(e=>e.toolUseId===n?{...e,status:r.ok?`completed`:`failed`,ok:r.ok,completedAt:i,durationMs:r.durationMs??i-e.timestamp}:e)),s.set(e.filePath,Date.now()+t)}let c=new Map(e.activeOperations);return c.delete(n),{history:o,pulses:s,activeOperations:c}})},recordFileEvent(r){let i=f({...r,attribution:r.attribution??(r.agentId?`exact`:`external`)});e(e=>{let r=(e.history.get(i.filePath)??[]).find(e=>e.source!==`watcher`&&e.source!==`external`&&Math.abs(i.timestamp-e.timestamp)<=n);if(r){let n=new Map(e.history);n.set(i.filePath,(n.get(i.filePath)??[]).map(e=>e.id===r.id?{...e,watcherConfirmed:e.watcherConfirmed||i.source===`watcher`||i.source===`editor`}:e));let a=new Map(e.pulses);return a.set(i.filePath,Date.now()+t),{history:n,pulses:a}}let a=i.toolUseId?e.activeOperations.get(i.toolUseId):void 0;if(a&&a.length>0){let n=a[0],r=f({...i,status:`active`,source:i.source??`deterministic`,sessionId:i.sessionId??n.sessionId,traceId:i.traceId??n.traceId,agentId:i.agentId??n.agentId,agentName:i.agentName??n.agentName,agent:i.agent??n.agent,attribution:`exact`}),o=new Map(e.history),s=new Map(e.pulses),c=new Map(e.activeOperations);return p(o,r),s.set(r.filePath,Date.now()+t),c.set(i.toolUseId,[...a,r]),{history:o,pulses:s,activeOperations:c,totalCount:e.totalCount+1}}let o=[...e.activeOperations.values()].flat().filter(e=>e.filePath.startsWith(`(tool:`)&&Math.abs(i.timestamp-e.timestamp)<=3e5);if(o.length===1){let n=o[0],r=f({...i,id:`${n.toolUseId}:${i.filePath}:${i.timestamp}`,toolUseId:n.toolUseId,toolName:n.toolName,summary:`${n.toolName} → filesystem ${i.type}`,status:`active`,source:`deterministic`,sessionId:n.sessionId,traceId:n.traceId,agentId:n.agentId,agentName:n.agentName,agent:n.agent,watcherConfirmed:!0,attribution:`correlated`}),a=new Map(e.history),s=new Map(e.pulses),c=new Map(e.activeOperations);if(p(a,r),s.set(r.filePath,Date.now()+t),r.toolUseId){let e=c.get(r.toolUseId)??[];c.set(r.toolUseId,[...e,r])}return{history:a,pulses:s,activeOperations:c,totalCount:e.totalCount+1}}let s=new Map(e.history),c=new Map(e.pulses);return p(s,i),c.set(i.filePath,Date.now()+t),{history:s,pulses:c,totalCount:e.totalCount+1}})},resolveActivitySymbol(t,n,r){e(e=>{let i=new Map(e.history);i.set(n,(i.get(n)??[]).map(e=>e.toolUseId===t?{...e,symbol:r}:e));let a=new Map(e.activeOperations),o=a.get(t);return o&&a.set(t,o.map(e=>e.filePath===n?{...e,symbol:r}:e)),{history:i,activeOperations:a}})},getActivityForFile(e){return i().history.get(e)??[]},getActiveForFile(e){return[...i().activeOperations.values()].flat().filter(t=>t.filePath===e)},getActiveOperations(){return[...i().activeOperations.values()].flat()},getAgentPresences(){return h(i().getActiveOperations())},getPulsingFiles(){return i()._sweep(),new Set(i().pulses.keys())},getPulseType(e){if(i()._sweep(),i().pulses.has(e))return i().history.get(e)?.[0]?.type},clear(){e({history:new Map,pulses:new Map,activeOperations:new Map,totalCount:0})},_sweep(){let t=Date.now(),n=[...i().pulses].filter(([,e])=>e<t).map(([e])=>e),a=[...i().activeOperations].filter(([,e])=>e.every(e=>t-e.timestamp>r)).map(([e])=>e);n.length===0&&a.length===0||e(e=>{let r=new Map(e.pulses);for(let e of n)r.delete(e);if(a.length===0)return{pulses:r};let i=new Map(e.history),o=new Map(e.activeOperations);for(let e of a){for(let n of o.get(e)??[])i.set(n.filePath,(i.get(n.filePath)??[]).map(n=>n.toolUseId===e?{...n,status:`failed`,ok:!1,completedAt:t,durationMs:t-n.timestamp,summary:`${n.summary||n.toolName} · telemetry timeout`}:n));o.delete(e)}return{pulses:r,history:i,activeOperations:o}})}}));export{v as i,_ as n,h as r,m as t};
|
|
1
|
+
import{ga as e}from"./vendor-2VBBgNb5.js";var t=8e3,n=2500,r=30*6e4,i=200,a=500,o={read:`read`,read_file:`read`,write:`write`,write_file:`write`,edit:`edit`,patch:`edit`,apply_patch:`edit`,replace:`edit`,delete:`delete`,delete_file:`delete`,remove:`delete`,grep:`search`,glob:`search`,search:`search`,"codebase-search":`search`,"codebase-index":`index`,remember:`memory`,forget:`memory`,memory_search:`memory`,memory_update:`memory`,memory_delete:`memory`};function s(e,t=``){return e===`rename`?`edit`:e in{read:1,write:1,edit:1,delete:1,search:1}?e:o[t]}function c(e){let t=[];for(let n of[`path`,`file`,`filePath`,`target`]){let r=e[n];typeof r==`string`&&t.push(r)}let n=e.files;if(typeof n==`string`&&t.push(n),Array.isArray(n))for(let e of n)typeof e==`string`&&t.push(e);return[...new Set(t)]}function l(e,t){let n=typeof t.old_string==`string`?t.old_string.trim():``,r=typeof t.new_string==`string`?t.new_string.trim():``;if(n||r)return`${n.replace(/\s+/g,` `).slice(0,42)||`∅`} → ${r.replace(/\s+/g,` `).slice(0,42)||`∅`}`;if(typeof t.patch==`string`){let n=d(t);return`${e} +${n?.added??0} −${n?.removed??0}`}let i=typeof t.content==`string`?t.content:void 0;if(i!==void 0){let t=i.length===0?0:i.split(/\r?\n/).length;return`${e} ${t} line${t===1?``:`s`}`}for(let e of[`query`,`pattern`,`old_string`,`new_string`,`text`,`command`]){let n=t[e];if(typeof n==`string`&&n.trim()){let t=n.trim().replace(/\s+/g,` `).slice(0,96);return e===`query`?`"${t}"`:e===`pattern`?`/${t}/`:e===`command`?`$ ${t}`:t}}return e}function u(e){return e.trim().replace(/\s+/g,` `).slice(0,72)}function d(e){let t=typeof e.old_string==`string`?e.old_string:void 0,n=typeof e.new_string==`string`?e.new_string:void 0;if(t!==void 0||n!==void 0){let e=t?t.split(/\r?\n/).length:0;return{added:n?n.split(/\r?\n/).length:0,removed:e,...t?{before:u(t)}:{},...n?{after:u(n)}:{}}}let r=typeof e.patch==`string`?e.patch:void 0;if(r){let e=r.split(/\r?\n/),t=e.filter(e=>e.startsWith(`+`)&&!e.startsWith(`+++`)),n=e.filter(e=>e.startsWith(`-`)&&!e.startsWith(`---`));return{added:t.length,removed:n.length,...n[0]?{before:u(n[0].slice(1))}:{},...t[0]?{after:u(t[0].slice(1))}:{}}}let i=typeof e.content==`string`?e.content:void 0;if(i!==void 0)return{added:i.length===0?0:i.split(/\r?\n/).length,removed:0,...i?{after:u(i)}:{}}}function f(e){let t=e.status??`observed`;return{...e,id:e.id??`${e.toolUseId??`event`}:${e.filePath}:${e.timestamp}`,status:t,source:e.source??`legacy`,agentName:e.agentName??e.agent,agent:e.agent??e.agentName}}function p(e,t){let n=e.get(t.filePath)??[];if(e.set(t.filePath,[t,...n].slice(0,i)),e.size<=a)return;let r=[...e.entries()].sort((e,t)=>(e[1][0]?.timestamp??0)-(t[1][0]?.timestamp??0))[0]?.[0];r&&e.delete(r)}function m(e){return`${e.sessionId??`unscoped`}:${e.agentId??e.agentName??e.agent??`external`}`}function h(e){let t=new Map;for(let n of e){let e=n.agentId??`external`,r=n.agentName??n.agent??`External process`,i=n.sessionId??`unscoped`,a=m(n),o=t.get(a);o?(o.operations.push(n),o.startedAt=Math.min(o.startedAt,n.timestamp)):t.set(a,{key:a,agentId:e,agentName:r,sessionId:i,operations:[n],startedAt:n.timestamp})}return[...t.values()].sort((e,t)=>e.startedAt-t.startedAt)}function g(e,t,n){let r=String(e.name??`unknown`),i=e.input&&typeof e.input==`object`?e.input:{},a=Date.now(),o=String(e.id??`${r}:${a}`),c=d(i);return(t.length>0?t:[{filePath:`(tool:${r})`,operation:`execute`}]).map((u,d)=>({id:`${o}:${d}`,toolUseId:o,filePath:u.filePath,type:u.operation===`execute`?`execute`:s(u.operation,r)??`edit`,toolName:r,summary:l(r,i),timestamp:a,status:n,source:`tool`,attribution:t.length>0?`exact`:`correlated`,...c?{change:c}:{},sessionId:typeof e.sessionId==`string`?e.sessionId:void 0,traceId:typeof e.traceId==`string`?e.traceId:void 0,agentId:typeof e.agentId==`string`?e.agentId:`leader`,agentName:typeof e.agentName==`string`?e.agentName:`LEADER`,...u.line?{line:u.line}:{},...u.endLine?{endLine:u.endLine}:{}}))}function _(e){let t=e.payload??{};if(e.type===`tool.started`||e.type===`tool.executed`||e.type===`codemap.tool_started`||e.type===`codemap.tool_executed`)return g(t,Array.isArray(t.fileTargets)?t.fileTargets:c(t.input&&typeof t.input==`object`?t.input:{}).map(e=>({filePath:e,operation:o[String(t.name??``)]??`edit`})),e.type===`tool.started`||e.type===`codemap.tool_started`?`active`:`completed`);if(e.type===`provider.response`){let e=t.blocks;if(!Array.isArray(e))return[];let n=[];for(let t of e){if(!t||typeof t!=`object`)continue;let e=t;if(e.type!==`tool_use`)continue;let r=String(e.name??``),i=o[r];if(!i)continue;let a=e.input&&typeof e.input==`object`?e.input:{},s=c(a),u=Date.now();s.length===0&&(i===`memory`||i===`search`||i===`index`)&&s.push(`(global)`);for(let e of s)n.push({filePath:e,type:i,toolName:r,summary:l(r,a),timestamp:u})}return n}if(e.type===`tool.progress`){let e=t.event&&typeof t.event==`object`?t.event:void 0;if(e?.type!==`file_changed`||typeof e.path!=`string`)return[];let n=String(e.operation??`edit`);return[{id:`${String(t.id??`progress`)}:${e.path}:${Date.now()}`,toolUseId:typeof t.id==`string`?t.id:void 0,filePath:e.path,type:s(n)??`edit`,toolName:String(t.name??`deterministic-tool`),summary:String(e.text??`tool reported file change`),timestamp:Date.now(),status:`active`,source:`deterministic`,sessionId:typeof t.sessionId==`string`?t.sessionId:void 0,traceId:typeof t.traceId==`string`?t.traceId:void 0,agentId:typeof t.agentId==`string`?t.agentId:void 0,agentName:typeof t.agentName==`string`?t.agentName:void 0,line:typeof e.line==`number`?e.line:void 0,endLine:typeof e.endLine==`number`?e.endLine:void 0,attribution:`exact`}]}if(e.type===`codemap.file_event`){let e=s(String(t.operation??`edit`))??`edit`;return typeof t.filePath==`string`?[{filePath:t.filePath,type:e,toolName:typeof t.toolName==`string`?t.toolName:String(t.source??`watcher`),summary:`${String(t.source??`external`)} ${String(t.operation??`changed`)}`,timestamp:typeof t.at==`number`?t.at:Date.now(),status:t.phase===`started`?`active`:`observed`,source:t.source??`external`,sessionId:typeof t.sessionId==`string`?t.sessionId:void 0,traceId:typeof t.traceId==`string`?t.traceId:void 0,agentId:typeof t.agentId==`string`?t.agentId:void 0,agentName:typeof t.agentName==`string`?t.agentName:void 0,toolUseId:typeof t.toolUseId==`string`?t.toolUseId:void 0,line:typeof t.line==`number`?t.line:void 0,endLine:typeof t.endLine==`number`?t.endLine:void 0}]:[]}return e.type===`file.saved`&&typeof t.filePath==`string`?[{filePath:t.filePath,type:`write`,toolName:`save`,summary:``,timestamp:Date.now(),source:`editor`}]:e.type===`memory.event`&&typeof t.event==`string`?[{filePath:`(memory)`,type:`memory`,toolName:`memory.${t.event}`,summary:String(t.memoryId??``),timestamp:Date.now()}]:[]}var v=e((e,i)=>({history:new Map,pulses:new Map,activeOperations:new Map,totalCount:0,recordActivity(n){let r=f(n);e(e=>{let n=new Map(e.history),i=new Map(e.pulses);return p(n,r),i.set(r.filePath,Date.now()+t),{history:n,pulses:i,totalCount:e.totalCount+1}})},startActivities(n){if(n.length===0)return;let r=n.map(e=>f({...e,status:`active`}));e(e=>{let n=new Map(e.history),i=new Map(e.pulses),a=new Map(e.activeOperations);for(let e of r)if(p(n,e),i.set(e.filePath,Date.now()+t),e.toolUseId){let t=a.get(e.toolUseId)??[];a.set(e.toolUseId,[...t,e])}return{history:n,pulses:i,activeOperations:a,totalCount:e.totalCount+r.length}})},finishTool(n,r){let i=r.timestamp??Date.now();e(e=>{let a=e.activeOperations.get(n)??[];if(a.length===0)return e;let o=new Map(e.history),s=new Map(e.pulses);for(let e of a){let a=o.get(e.filePath)??[];o.set(e.filePath,a.map(e=>e.toolUseId===n?{...e,status:r.ok?`completed`:`failed`,ok:r.ok,completedAt:i,durationMs:r.durationMs??i-e.timestamp}:e)),s.set(e.filePath,Date.now()+t)}let c=new Map(e.activeOperations);return c.delete(n),{history:o,pulses:s,activeOperations:c}})},recordFileEvent(r){let i=f({...r,attribution:r.attribution??(r.agentId?`exact`:`external`)});e(e=>{let r=(e.history.get(i.filePath)??[]).find(e=>e.source!==`watcher`&&e.source!==`external`&&Math.abs(i.timestamp-e.timestamp)<=n);if(r){let n=new Map(e.history);n.set(i.filePath,(n.get(i.filePath)??[]).map(e=>e.id===r.id?{...e,watcherConfirmed:e.watcherConfirmed||i.source===`watcher`||i.source===`editor`}:e));let a=new Map(e.pulses);return a.set(i.filePath,Date.now()+t),{history:n,pulses:a}}let a=i.toolUseId?e.activeOperations.get(i.toolUseId):void 0;if(a&&a.length>0){let n=a[0],r=f({...i,status:`active`,source:i.source??`deterministic`,sessionId:i.sessionId??n.sessionId,traceId:i.traceId??n.traceId,agentId:i.agentId??n.agentId,agentName:i.agentName??n.agentName,agent:i.agent??n.agent,attribution:`exact`}),o=new Map(e.history),s=new Map(e.pulses),c=new Map(e.activeOperations);return p(o,r),s.set(r.filePath,Date.now()+t),c.set(i.toolUseId,[...a,r]),{history:o,pulses:s,activeOperations:c,totalCount:e.totalCount+1}}let o=[...e.activeOperations.values()].flat().filter(e=>e.filePath.startsWith(`(tool:`)&&Math.abs(i.timestamp-e.timestamp)<=3e5);if(o.length===1){let n=o[0],r=f({...i,id:`${n.toolUseId}:${i.filePath}:${i.timestamp}`,toolUseId:n.toolUseId,toolName:n.toolName,summary:`${n.toolName} → filesystem ${i.type}`,status:`active`,source:`deterministic`,sessionId:n.sessionId,traceId:n.traceId,agentId:n.agentId,agentName:n.agentName,agent:n.agent,watcherConfirmed:!0,attribution:`correlated`}),a=new Map(e.history),s=new Map(e.pulses),c=new Map(e.activeOperations);if(p(a,r),s.set(r.filePath,Date.now()+t),r.toolUseId){let e=c.get(r.toolUseId)??[];c.set(r.toolUseId,[...e,r])}return{history:a,pulses:s,activeOperations:c,totalCount:e.totalCount+1}}let s=new Map(e.history),c=new Map(e.pulses);return p(s,i),c.set(i.filePath,Date.now()+t),{history:s,pulses:c,totalCount:e.totalCount+1}})},resolveActivitySymbol(t,n,r){e(e=>{let i=new Map(e.history);i.set(n,(i.get(n)??[]).map(e=>e.toolUseId===t?{...e,symbol:r}:e));let a=new Map(e.activeOperations),o=a.get(t);return o&&a.set(t,o.map(e=>e.filePath===n?{...e,symbol:r}:e)),{history:i,activeOperations:a}})},getActivityForFile(e){return i().history.get(e)??[]},getActiveForFile(e){return[...i().activeOperations.values()].flat().filter(t=>t.filePath===e)},getActiveOperations(){return[...i().activeOperations.values()].flat()},getAgentPresences(){return h(i().getActiveOperations())},getPulsingFiles(){return i()._sweep(),new Set(i().pulses.keys())},getPulseType(e){if(i()._sweep(),i().pulses.has(e))return i().history.get(e)?.[0]?.type},clear(){e({history:new Map,pulses:new Map,activeOperations:new Map,totalCount:0})},_sweep(){let t=Date.now(),n=[...i().pulses].filter(([,e])=>e<t).map(([e])=>e),a=[...i().activeOperations].filter(([,e])=>e.every(e=>t-e.timestamp>r)).map(([e])=>e);n.length===0&&a.length===0||e(e=>{let r=new Map(e.pulses);for(let e of n)r.delete(e);if(a.length===0)return{pulses:r};let i=new Map(e.history),o=new Map(e.activeOperations);for(let e of a){for(let n of o.get(e)??[])i.set(n.filePath,(i.get(n.filePath)??[]).map(n=>n.toolUseId===e?{...n,status:`failed`,ok:!1,completedAt:t,durationMs:t-n.timestamp,summary:`${n.summary||n.toolName} · telemetry timeout`}:n));o.delete(e)}return{pulses:r,history:i,activeOperations:o}})}}));export{v as i,_ as n,h as r,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ga as e}from"./vendor-2VBBgNb5.js";var t=e(e=>({generation:0,lastUpdatedAt:null,notifyIndexUpdated(t=Date.now()){e(e=>({generation:e.generation+1,lastUpdatedAt:t}))}}));export{t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{B as t,F as n,I as r,L as i,P as a,R as o,
|
|
1
|
+
import{r as e}from"./rolldown-runtime-QTnfLwEv.js";import{B as t,F as n,I as r,L as i,P as a,R as o,Sa as s,at as c,et as l,z as u}from"./vendor-2VBBgNb5.js";import{t as d}from"./utils-CN2sfDVP.js";var f=e(s(),1),p=l(),m=a,h=u,g=f.forwardRef(({className:e,...t},n)=>(0,p.jsx)(o,{ref:n,className:d(`fixed inset-0 z-50 bg-black/65 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0`,e),...t}));g.displayName=o.displayName;var _=f.forwardRef(({className:e,children:t,showCloseButton:i=!0,...a},o)=>(0,p.jsxs)(h,{children:[(0,p.jsx)(g,{}),(0,p.jsxs)(r,{ref:o,className:d(`fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100dvh-2rem)] w-[calc(100vw-1.5rem)] max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border/70 bg-card p-5 shadow-2xl duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:p-6`,e),...a,children:[t,i&&(0,p.jsxs)(n,{className:`absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground`,children:[(0,p.jsx)(c,{className:`h-4 w-4`}),(0,p.jsx)(`span`,{className:`sr-only`,children:`Close`})]})]})]}));_.displayName=r.displayName;var v=({className:e,...t})=>(0,p.jsx)(`div`,{className:d(`flex flex-col space-y-1.5 text-center sm:text-left`,e),...t});v.displayName=`DialogHeader`;var y=({className:e,...t})=>(0,p.jsx)(`div`,{className:d(`flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2`,e),...t});y.displayName=`DialogFooter`;var b=f.forwardRef(({className:e,...n},r)=>(0,p.jsx)(t,{ref:r,className:d(`text-lg font-semibold leading-none`,e),...n}));b.displayName=t.displayName;var x=f.forwardRef(({className:e,...t},n)=>(0,p.jsx)(i,{ref:n,className:d(`text-sm text-muted-foreground`,e),...t}));x.displayName=i.displayName;export{v as a,y as i,_ as n,b as o,x as r,m as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{et as e}from"./vendor-
|
|
1
|
+
import{et as e}from"./vendor-2VBBgNb5.js";import{t}from"./utils-CN2sfDVP.js";var n=e();function r({icon:e,title:r,description:i,action:a,className:o,panel:s=!0}){return(0,n.jsx)(`div`,{className:t(`flex min-h-0 min-w-0 flex-1 items-center justify-center p-4`,s&&`bg-[hsl(var(--surface-2)/0.45)]`,o),children:(0,n.jsxs)(`div`,{className:`ws-surface flex max-w-md flex-col items-center gap-3 rounded-xl p-6 text-center text-muted-foreground`,children:[e&&(0,n.jsx)(`span`,{className:`flex h-12 w-12 items-center justify-center rounded-lg bg-primary/10 text-primary`,children:e}),(0,n.jsxs)(`div`,{children:[(0,n.jsx)(`p`,{className:`text-base font-semibold text-foreground`,children:r}),i&&(0,n.jsx)(`p`,{className:`mt-1 text-sm`,children:i})]}),a&&(0,n.jsx)(`button`,{type:`button`,onClick:a.onClick,className:`mt-1 rounded-md border border-border/70 bg-card/70 px-4 py-2 text-sm text-foreground shadow-sm transition-colors hover:bg-accent`,children:a.label})]})})}export{r as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/activity-qoJ3grs0.js","assets/rolldown-runtime-QTnfLwEv.js","assets/chat-BJzPxfyr.js","assets/commandPalette-DpaemFux.js","assets/common-suUxW9sA.js","assets/settings-D6wFOw5n.js","assets/setup-BFcmn89w.js","assets/toasts-BL_8kH4B.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{
|
|
2
|
+
import{ba as e,va as t,ya as n}from"./vendor-2VBBgNb5.js";import{a as r,o as i,r as a}from"./ui-store-CS-njcmT.js";import{t as o}from"./activity-qoJ3grs0.js";import{t as s}from"./chat-BJzPxfyr.js";import{t as c}from"./commandPalette-DpaemFux.js";import{t as l}from"./common-suUxW9sA.js";import{t as u}from"./settings-D6wFOw5n.js";import{t as d}from"./setup-BFcmn89w.js";import{t as f}from"./toasts-BL_8kH4B.js";import{s as p}from"./monaco-BLUV5g0U.js";var m=(e,t,n)=>{let r=t.lastIndexOf(`?`),i=e[r===-1||r<t.lastIndexOf(`/`)?t:t.slice(0,r)];return i?typeof i==`function`?i():Promise.resolve(i):new Promise((e,r)=>{(typeof queueMicrotask==`function`?queueMicrotask:setTimeout)(r.bind(null,Error(`Unknown variable dynamic import: `+t+(t.split(`/`).length===n?``:`. Note that variables only represent file names one level deep.`))))})},h=[`common`,`activity`,`chat`,`commandPalette`,`settings`,`setup`,`toasts`];function g(){try{return i(a.getState().uiLocale)}catch{return`en`}}e.use(t).use(n((e,t)=>m(Object.assign({"./locales/de/activity.json":()=>p(()=>import(`./activity-B4Ngvkan.js`),[]),"./locales/de/chat.json":()=>p(()=>import(`./chat-Bkom8vQo.js`),[]),"./locales/de/commandPalette.json":()=>p(()=>import(`./commandPalette-aaAou3Tl.js`),[]),"./locales/de/common.json":()=>p(()=>import(`./common-C9ikgX7d.js`),[]),"./locales/de/settings.json":()=>p(()=>import(`./settings-DEmKlLmn.js`),[]),"./locales/de/setup.json":()=>p(()=>import(`./setup-DD8rKpQU.js`),[]),"./locales/de/toasts.json":()=>p(()=>import(`./toasts-CFzweRH5.js`),[]),"./locales/en/activity.json":()=>p(()=>import(`./activity-qoJ3grs0.js`).then(e=>e.n),__vite__mapDeps([0,1])),"./locales/en/chat.json":()=>p(()=>import(`./chat-BJzPxfyr.js`).then(e=>e.n),__vite__mapDeps([2,1])),"./locales/en/commandPalette.json":()=>p(()=>import(`./commandPalette-DpaemFux.js`).then(e=>e.n),__vite__mapDeps([3,1])),"./locales/en/common.json":()=>p(()=>import(`./common-suUxW9sA.js`).then(e=>e.n),__vite__mapDeps([4,1])),"./locales/en/settings.json":()=>p(()=>import(`./settings-D6wFOw5n.js`).then(e=>e.n),__vite__mapDeps([5,1])),"./locales/en/setup.json":()=>p(()=>import(`./setup-BFcmn89w.js`).then(e=>e.n),__vite__mapDeps([6,1])),"./locales/en/toasts.json":()=>p(()=>import(`./toasts-BL_8kH4B.js`).then(e=>e.n),__vite__mapDeps([7,1])),"./locales/es/activity.json":()=>p(()=>import(`./activity-C4z6-WoZ.js`),[]),"./locales/es/chat.json":()=>p(()=>import(`./chat-Du7n7HZ7.js`),[]),"./locales/es/commandPalette.json":()=>p(()=>import(`./commandPalette-Nlxs0V7J.js`),[]),"./locales/es/common.json":()=>p(()=>import(`./common-DMM-xyW3.js`),[]),"./locales/es/settings.json":()=>p(()=>import(`./settings-skShEZ2B.js`),[]),"./locales/es/setup.json":()=>p(()=>import(`./setup-COxU-AT_.js`),[]),"./locales/es/toasts.json":()=>p(()=>import(`./toasts-BwQJwYLe.js`),[]),"./locales/fr/activity.json":()=>p(()=>import(`./activity-B8uejnae.js`),[]),"./locales/fr/chat.json":()=>p(()=>import(`./chat-VkTBQmmx.js`),[]),"./locales/fr/commandPalette.json":()=>p(()=>import(`./commandPalette-Dfk74u87.js`),[]),"./locales/fr/common.json":()=>p(()=>import(`./common-D29Zdkxb.js`),[]),"./locales/fr/settings.json":()=>p(()=>import(`./settings-Cdk8i_p6.js`),[]),"./locales/fr/setup.json":()=>p(()=>import(`./setup-CMteRkTs.js`),[]),"./locales/fr/toasts.json":()=>p(()=>import(`./toasts-BCDGDcyq.js`),[]),"./locales/it/activity.json":()=>p(()=>import(`./activity-D57y5l1T.js`),[]),"./locales/it/chat.json":()=>p(()=>import(`./chat-C7ybebfi.js`),[]),"./locales/it/commandPalette.json":()=>p(()=>import(`./commandPalette-CUh_kgfp.js`),[]),"./locales/it/common.json":()=>p(()=>import(`./common-DoUBSHRY.js`),[]),"./locales/it/settings.json":()=>p(()=>import(`./settings-DCEOkxYE.js`),[]),"./locales/it/setup.json":()=>p(()=>import(`./setup-pPW1kVR_.js`),[]),"./locales/it/toasts.json":()=>p(()=>import(`./toasts-Dm12Nq8t.js`),[]),"./locales/pt-BR/activity.json":()=>p(()=>import(`./activity-CbbZyUMG.js`),[]),"./locales/pt-BR/chat.json":()=>p(()=>import(`./chat-BRBVFl4h.js`),[]),"./locales/pt-BR/commandPalette.json":()=>p(()=>import(`./commandPalette-tFxIIhvU.js`),[]),"./locales/pt-BR/common.json":()=>p(()=>import(`./common-vdwxzODB.js`),[]),"./locales/pt-BR/settings.json":()=>p(()=>import(`./settings-C5F2tQ7C.js`),[]),"./locales/pt-BR/setup.json":()=>p(()=>import(`./setup-BOYK0I6-.js`),[]),"./locales/pt-BR/toasts.json":()=>p(()=>import(`./toasts-frBt6fvE.js`),[]),"./locales/tr/activity.json":()=>p(()=>import(`./activity-B5MvPWYV.js`),[]),"./locales/tr/chat.json":()=>p(()=>import(`./chat-IRKmQ6we.js`),[]),"./locales/tr/commandPalette.json":()=>p(()=>import(`./commandPalette-CGMq-qlP.js`),[]),"./locales/tr/common.json":()=>p(()=>import(`./common-D8_r1x8x.js`),[]),"./locales/tr/settings.json":()=>p(()=>import(`./settings-DsflqNn0.js`),[]),"./locales/tr/setup.json":()=>p(()=>import(`./setup-Bd23KLtt.js`),[]),"./locales/tr/toasts.json":()=>p(()=>import(`./toasts-DDYQsJV8.js`),[])}),`./locales/${e}/${t}.json`,4))).init({lng:g(),fallbackLng:`en`,supportedLngs:[...r],ns:[...h],defaultNS:`common`,partialBundledLanguages:!0,resources:{en:{common:l,activity:o,chat:s,commandPalette:c,settings:u,setup:d,toasts:f}},interpolation:{escapeValue:!1},react:{useSuspense:!1},returnNull:!1});function _(e){typeof document<`u`&&(document.documentElement.lang=e)}_(e.language||`en`),a.subscribe((t,n)=>{let r=t.uiLocale;r&&r!==n.uiLocale&&r!==e.language&&e.changeLanguage(r).then(()=>_(r))});function v(){window.wrongstackDesktopHost?.onLocaleChanged?.(t=>{if(!t)return;let n=i(t);if(n===e.language)return;let r=a.getState();r.uiLocale!==n&&r.set({uiLocale:n}),e.changeLanguage(n).then(()=>_(n))})}try{v()}catch{}
|